/* ============================================================================
   DraftADay — marketing site design system
   Direction: "morning paper & ink" — a daily writing ritual, not a growth tool.
   Paper is a cool dawn-tinted white (NOT cream), ink is deep navy (NOT black),
   and the one accent is golden-hour amber: the mark of a day showing up filled.
   Type: Bricolage Grotesque (display) / Instrument Sans (body) / Spline Sans
   Mono (labels, day numbers). Signature element: the streak ribbon — a strip
   of day-cells that fill amber, encoding the product's thesis (a draft a day
   compounds). Spend the boldness there; keep everything else quiet.
   ========================================================================== */

:root {
  --ink:    #0E1B2C;   /* deep navy-ink: text, dark bands */
  --ink-2:  #23364D;   /* softened ink: secondary text on paper */
  --paper:  #F7F7F4;   /* page background */
  --dawn:   #EAF0F6;   /* alternate section tint, card washes */
  --card:   #FFFFFF;   /* raised surfaces */
  --amber:  #E8A33D;   /* THE accent: day-marks, streaks, primary CTA */
  --amber-2:#B97A1E;   /* amber pressed / on-paper text-safe amber */
  --blue:   #2E6BD6;   /* links + trust touches (deliberately not LinkedIn's) */
  --mist:   #5B7186;   /* captions, hushed labels (AA on paper) */
  --line:   #D8DEE6;   /* hairlines */
  --ok:     #2E7D4F;   /* voice-check ticks */

  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", monospace;

  --w: 1120px;         /* content column */
  --r: 14px;           /* radius */
  --shadow: 0 1px 2px rgba(14,27,44,.06), 0 12px 32px -12px rgba(14,27,44,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }

/* ---- type scale ---------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.17rem; font-weight: 650; line-height: 1.3; }
p  { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-2); max-width: 34em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-2);
  margin: 0 0 14px;
}

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--amber); color: var(--ink); box-shadow: 0 6px 18px -6px rgba(232,163,61,.55); }
.btn--primary:hover { background: #F0B155; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink-2); background: #fff; }
.btn--onink { background: var(--amber); color: var(--ink); }
.btn--ghost-onink { border-color: rgba(255,255,255,.28); color: #fff; }
.btn--ghost-onink:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }

/* ---- topbar --------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; color: var(--ink); letter-spacing: -0.01em; }
.brand em { font-style: normal; color: var(--amber-2); }
.brand:hover { text-decoration: none; }
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.topnav a:hover { color: var(--ink); text-decoration: none; }
.topbar .btn { padding: 9px 16px; font-size: .92rem; }
@media (max-width: 780px) { .topnav { display: none; } }

/* ---- hero ------------------------------------------------------------------ */
.hero { padding: 76px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { font-size: .88rem; color: var(--mist); margin-top: 14px; }

/* the demo post card (LinkedIn-shaped, ours in spirit) */
.postcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 20px 22px; max-width: 440px; margin-left: auto;
}
@media (max-width: 920px) { .postcard { margin: 0 auto; } }
.postcard-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.postcard-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--dawn), var(--amber) 130%);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--ink);
}
.postcard-name { font-weight: 650; font-size: .95rem; line-height: 1.2; }
.postcard-meta { color: var(--mist); font-size: .8rem; }
.postcard-body { font-size: .95rem; color: var(--ink-2); min-height: 132px; white-space: pre-wrap; }
.postcard-body .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--amber-2); vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .postcard-body .caret { display: none; } }
.postcard-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.voicecheck { display: inline-flex; gap: 7px; align-items: center; font-family: var(--font-mono); font-size: .76rem; color: var(--ok); }
.voicecheck .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.postcard-foot .fake-btn { font-size: .82rem; font-weight: 650; color: var(--ink); background: var(--dawn); padding: 7px 14px; border-radius: 999px; }

/* ---- streak ribbon (signature) --------------------------------------------- */
.ribbon { margin: 64px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; }
.ribbon-inner { display: flex; align-items: stretch; }
.daycell {
  flex: 1 0 auto; min-width: 44px; padding: 12px 0 10px; text-align: center;
  border-right: 1px solid var(--line); position: relative;
}
.daycell .n { font-family: var(--font-mono); font-size: .68rem; color: var(--mist); }
.daycell .fill { width: 18px; height: 18px; margin: 7px auto 0; border-radius: 5px; background: var(--dawn); }
.daycell.done .fill { background: var(--amber); }
.daycell.today .fill { background: var(--amber); box-shadow: 0 0 0 4px rgba(232,163,61,.25); }
.daycell.today .n { color: var(--amber-2); font-weight: 700; }
.ribbon-caption { text-align: center; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); padding: 10px 0 12px; }

/* ---- sections --------------------------------------------------------------- */
.section { padding: 88px 0; }
.section--dawn { background: var(--dawn); }
.section--ink { background: var(--ink); color: #EAF0F6; }
.section--ink h2 { color: #fff; }
.section--ink .lede { color: #B9C7D6; }
.section-head { max-width: 620px; margin-bottom: 48px; }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 780px) { .stats { grid-template-columns: 1fr; } }
.stat { border-left: 3px solid var(--amber); padding-left: 18px; }
.stat b { display: block; font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; line-height: 1.1; }
.stat span { color: var(--mist); font-size: .92rem; }
.stat .src { display: block; font-family: var(--font-mono); font-size: .68rem; color: var(--mist); margin-top: 6px; }

/* the loop — a REAL sequence, so numbers carry meaning */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: station; }
@media (max-width: 980px) { .loop { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .loop { grid-template-columns: 1fr; } }
.station { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px 22px; position: relative; }
.station::before {
  counter-increment: station; content: counter(station, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .74rem; color: var(--amber-2);
  letter-spacing: .12em;
}
.station h3 { margin: 10px 0 8px; }
.station p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.station .mini { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; font-family: var(--font-mono); font-size: .74rem; color: var(--mist); }

/* voice before/after */
.voicepair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 780px) { .voicepair { grid-template-columns: 1fr; } }
.voicebox { border-radius: var(--r); padding: 24px; border: 1px solid var(--line); background: var(--card); }
.voicebox--flat { background: transparent; border-style: dashed; color: var(--mist); }
.voicebox .tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.voicebox--flat .tag { color: var(--mist); }
.voicebox--voice .tag { color: var(--ok); }
.voicebox p { margin: 0; font-size: .98rem; }

/* safety cards */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.section--ink .card { background: #16273C; border-color: #2A3E56; }
.section--ink .card h3 { color: #fff; }
.section--ink .card p { color: #B9C7D6; font-size: .95rem; margin: 0; }
.card .ico { font-size: 1.4rem; margin-bottom: 12px; display: block; }

/* roadmap pills */
.platforms { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.pill { font-family: var(--font-mono); font-size: .8rem; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--card); }
.pill--live { border-color: var(--amber); background: rgba(232,163,61,.12); color: var(--amber-2); font-weight: 600; }
.section--ink .pill { background: #16273C; border-color: #2A3E56; color: #B9C7D6; }
.section--ink .pill--live { border-color: var(--amber); background: rgba(232,163,61,.14); color: var(--amber); }

/* feature grid (capability tour) */
.featgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .featgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .featgrid { grid-template-columns: 1fr; } }
.feat { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.feat h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feat p { color: var(--ink-2); font-size: .9rem; margin: 0; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--amber-2); font-size: 1.1rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 0 0 16px; max-width: 60ch; }

/* CTA band */
.ctaband { text-align: center; padding: 96px 0; }
.ctaband h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.ctaband .hero-ctas { justify-content: center; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--mist); font-size: .9rem; }
.footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.footer a { color: var(--mist); }
.footer a:hover { color: var(--ink); }
.footer nav { display: flex; gap: 18px; }

/* reveal on scroll (respectful) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* legal pages */
.legal { max-width: 760px; padding: 72px 24px 96px; margin: 0 auto; }
.legal h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: .97rem; }
.legal .updated { font-family: var(--font-mono); font-size: .78rem; color: var(--mist); margin-bottom: 32px; }
