/* WINNR landing v2 — design system from landingv2/stitch_export/DESIGN.md
   Light is primary. Dark follows the team dark palette and switches on
   system preference (prefers-color-scheme). Sharp 0px corners, flat tonal
   layers, hairline dividers, no shadows. */

/* ---------- tokens ---------- */
:root {
  /* light (primary) */
  --bg:           #EFEBE0;   /* warm cream canvas */
  --panel:        #E0DBCB;   /* level 1: panels */
  --card:         #F7F3E8;   /* level 2: cards / brightest */
  --ink:          #0B0B0D;   /* primary text */
  --muted:        #5A554D;   /* secondary text */
  --muted-2:      #7A746A;   /* tertiary / captions */
  --hairline:     #D0CBC0;   /* 1px dividers */
  --accent:       #7A0F0F;   /* blood-red, the only heat */
  --accent-bright:#8B1A1A;   /* hover */
  --accent-deep:  #4E0808;
  --on-accent:    #F7F3E8;   /* text on accent */
  --chip-bg:      #E0DBCB;
  --chip-ink:     #5A554D;
  --field-focus:  #0B0B0D;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-serif:   "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1200px;
  --gutter: 24px;
  --margin: 64px;

  --s-xs: 4px;  --s-sm: 12px; --s-md: 24px;
  --s-lg: 48px; --s-xl: 80px;
}

/* dark tokens, shared by the system default and the manual override */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg:           #0B0B0D;   /* warm dark, not black */
    --panel:        #15161A;   /* surface */
    --card:         #15161A;
    --ink:          #F1ECE4;   /* warm off-white */
    --muted:        #A5A095;
    --muted-2:      #8C857A;
    --hairline:     #1F1E1B;
    --accent:       #8B1A1A;
    --accent-bright:#A52121;
    --accent-deep:  #5C0F0F;
    --on-accent:    #F1ECE4;
    --chip-bg:      #1F1E1B;
    --chip-ink:     #A5A095;
    --field-focus:  #F1ECE4;
  }
}
:root[data-theme="dark"] {
  --bg:           #0B0B0D;
  --panel:        #15161A;
  --card:         #15161A;
  --ink:          #F1ECE4;
  --muted:        #A5A095;
  --muted-2:      #8C857A;
  --hairline:     #1F1E1B;
  --accent:       #8B1A1A;
  --accent-bright:#A52121;
  --accent-deep:  #5C0F0F;
  --on-accent:    #F1ECE4;
  --chip-bg:      #1F1E1B;
  --chip-ink:     #A5A095;
  --field-focus:  #F1ECE4;
}
/* :root[data-theme="light"] falls through to the light defaults above */

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--margin); }
.section { padding: var(--s-xl) 0; border-top: 1px solid var(--hairline); }
.section--panel { background: var(--panel); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-serif); letter-spacing: -0.02em; line-height: 1.15; }
.display { font-size: clamp(40px, 7vw, 76px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; }
.headline { font-size: clamp(28px, 4.4vw, 46px); font-weight: 600; letter-spacing: -0.02em; }
.subhead  { font-size: clamp(20px, 2.6vw, 30px); font-weight: 500; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: var(--muted); max-width: 60ch; font-weight: 300; }
.body { font-size: 17px; line-height: 1.65; color: var(--muted); }
.cap  { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted-2); }
/* Fraunces carries all display-scale headings; body/lead/labels stay sans/mono */
.display, .headline, .subhead, .team .big, .waitlist-title,
.result .band-name, .screen .qtext { font-family: var(--font-serif); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
  letter-spacing: -0.01em; padding: 15px 28px; border-radius: 0;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-bright); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--lg { padding: 18px 34px; font-size: 17px; }
.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.micro { font-size: 14px; color: var(--muted-2); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--margin);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.12em; text-decoration: none; }
.wordmark .nr { color: inherit; }
.topbar nav { display: flex; align-items: center; gap: 28px; }
.topbar nav a { font-size: 15px; color: var(--muted); text-decoration: none; transition: color .15s; }
.topbar nav a:hover { color: var(--ink); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--hairline); color: var(--ink); background: transparent; transition: background .15s, border-color .15s; }
.theme-toggle:hover { border-color: var(--ink); background: var(--card); }
.theme-toggle svg { display: block; }

/* ---------- hero ---------- */
.hero { padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 10vw, 120px); }
.hero .display { max-width: 16ch; }
.hero .lead { margin-top: var(--s-md); }
.hero .cta-row { margin-top: var(--s-lg); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ---------- two-column ("you already know") ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-xl); align-items: start; }
.split .headline { max-width: 14ch; }

/* ---------- features ---------- */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: var(--s-lg); }
.feature {
  padding: var(--s-md) var(--s-lg) var(--s-md) 0;
  border-top: 1px solid var(--hairline);
}
.feature:nth-child(odd) { padding-right: var(--s-lg); border-right: 1px solid var(--hairline); padding-left: 0; }
.feature:nth-child(even) { padding-left: var(--s-lg); }
.feature h3 { font-size: 21px; font-weight: 600; display: flex; gap: 12px; align-items: baseline; }
.feature h3::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--accent); transform: translateY(-2px); }
.feature p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: var(--s-lg); }
.step { padding: var(--s-md) var(--s-md) var(--s-md) 0; border-left: 1px solid var(--hairline); padding-left: var(--s-md); }
.step:first-child { border-left: none; padding-left: 0; }
.step .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { font-size: 19px; font-weight: 600; margin-top: 12px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.science { margin-top: var(--s-xl); text-align: center; }
.science p { font-size: 17px; color: var(--muted); max-width: 56ch; margin: 0 auto; }
.science .cap { display: block; margin-top: 12px; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-xl); align-items: start; margin-top: var(--s-lg); }
.commitments { list-style: none; margin-top: var(--s-md); }
.commitments li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 17px; color: var(--ink); }
.commitments li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; border: 1.5px solid var(--accent); position: relative; }
.commitments li .tick { position: absolute; }
.price-card { background: var(--card); border: 1px solid var(--hairline); padding: 40px 36px; }
.price-card .eyebrow { display: block; margin-bottom: 18px; }
.price-amount { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; }
.price-amount span { font-size: 18px; font-weight: 400; color: var(--muted-2); letter-spacing: 0; }
.waitlist-title { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.price-card .desc { color: var(--muted); margin: 10px 0 28px; }
.where { margin-top: var(--s-lg); }
.where h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.where p { color: var(--muted); font-size: 16px; max-width: 60ch; }

/* ---------- team ---------- */
.team .big { font-size: clamp(28px, 4.6vw, 48px); font-weight: 600; letter-spacing: -0.02em; max-width: 18ch; line-height: 1.12; }
.team .body { margin-top: var(--s-md); max-width: 62ch; }
.team a.link { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); font-weight: 500; }
.team a.link:hover { color: var(--accent-bright); }
.team-roster { margin-top: var(--s-lg); border-top: 1px solid var(--hairline); }
.member {
  display: grid; grid-template-columns: 44px 1fr auto; gap: var(--s-md);
  align-items: start; padding: var(--s-md) 0; border-bottom: 1px solid var(--hairline);
}
.member .mono-tile {
  width: 44px; height: 44px; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0;
}
.member .m-name { font-size: 19px; font-weight: 600; }
.member .m-bio { color: var(--muted); font-size: 15px; line-height: 1.55; margin-top: 4px; max-width: 54ch; }
.member .m-role {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-2); white-space: nowrap; padding-top: 4px;
}
@media (max-width: 860px) {
  .member { grid-template-columns: 44px 1fr; }
  .member .m-role { grid-column: 2; padding-top: 0; margin-top: 6px; }
}

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-xl); margin-top: 0; }
.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font-size: 19px; font-weight: 500; cursor: pointer; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .plus { font-family: var(--font-mono); color: var(--accent); flex: none; transition: transform .2s; }
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-a { padding: 0 0 24px; color: var(--muted); font-size: 16px; max-width: 64ch; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: var(--s-lg) 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-md); flex-wrap: wrap; }
.footer .meta { color: var(--muted-2); font-size: 14px; margin-top: 6px; }

/* ====================================================================
   INTAKE OVERLAY
   ==================================================================== */
.intake {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: none; flex-direction: column;
  opacity: 0; transition: opacity .25s ease;
}
.intake.open { display: flex; opacity: 1; }
.intake-head { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--margin); border-bottom: 1px solid var(--hairline); }
.intake-close { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted-2); text-transform: uppercase; }
.intake-close:hover { color: var(--ink); }
.dots { display: flex; gap: 7px; align-items: center; }
.dot { width: 7px; height: 7px; background: var(--hairline); border-radius: 0; }
.dot.done { background: var(--muted-2); }
.dot.active { background: var(--accent); }

.intake-body { flex: 1; overflow-y: auto; display: flex; align-items: safe center; justify-content: center; padding: var(--s-lg) var(--margin); }
.screen { width: 100%; max-width: 680px; margin: 0 auto; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.screen .qnum { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; }
.screen .qtext { font-size: clamp(24px, 3.6vw, 36px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-top: 14px; }
.screen .qsub { color: var(--muted); margin-top: 14px; font-size: 17px; max-width: 56ch; }

/* likert */
.likert { margin-top: var(--s-lg); }
.likert-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.likert-btn {
  aspect-ratio: 1 / 1; border: 1px solid var(--hairline); background: var(--card);
  font-family: var(--font-mono); font-size: 15px; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.likert-btn:hover { border-color: var(--ink); color: var(--ink); }
.likert-btn.sel { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.likert-labels { display: flex; justify-content: space-between; margin-top: 12px; }
.likert-labels span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted-2); text-transform: uppercase; }
.likert-labels span:nth-child(2) { color: var(--muted); }

/* choice (multi / single) */
.choices { margin-top: var(--s-lg); display: flex; flex-direction: column; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 18px 20px; border: 1px solid var(--hairline); background: var(--card);
  font-size: 17px; transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--ink); }
.choice .box { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--muted-2); display: grid; place-items: center; }
.choice.sel { border-color: var(--accent); }
.choice.sel .box { border-color: var(--accent); background: var(--accent); }
.choice.sel .box::after { content: ""; width: 9px; height: 5px; border-left: 1.5px solid var(--on-accent); border-bottom: 1.5px solid var(--on-accent); transform: rotate(-45deg) translateY(-1px); }
.choice.single .box { border-radius: 0; }

/* email / field */
.field { margin-top: var(--s-lg); }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.field input {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display); font-size: 22px; color: var(--ink); padding: 10px 2px; border-radius: 0;
}
.field input:focus { outline: none; border-bottom-color: var(--field-focus); }
.field input::placeholder { color: var(--muted-2); }
.field .note { font-size: 13px; color: var(--muted-2); margin-top: 12px; }
.consent { margin-top: var(--s-md); display: flex; flex-direction: column; gap: 12px; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent-row input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--accent); }
.inline-link { color: var(--accent); text-decoration: underline; }

.intake-foot { padding: 20px var(--margin); border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.back-link { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.back-link:hover { color: var(--ink); }
.back-link[hidden] { visibility: hidden; }

/* result */
.result .band { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.result .band-name { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -0.03em; margin-top: 10px; }
.result .lead-driver { margin-top: var(--s-md); font-size: 18px; color: var(--muted); max-width: 58ch; }
.result .driver-tag { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--chip-bg); color: var(--chip-ink); padding: 6px 12px; margin-top: var(--s-md); }
.result .what-next { margin-top: var(--s-lg); border-top: 1px solid var(--hairline); padding-top: var(--s-md); }
.result .what-next p { color: var(--muted); max-width: 58ch; }
.result .cta-row { margin-top: var(--s-lg); }
.result .screen-disclaimer { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: var(--s-sm); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  :root { --margin: 24px; }
  .topbar nav a { display: none; }
  .split, .pricing-grid, .faq-grid { grid-template-columns: 1fr; gap: var(--s-lg); }
  .features-grid { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(odd), .feature:nth-child(even) { padding: var(--s-md) 0; border-right: none; padding-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:first-child { border-left: none; border-top: 1px solid var(--hairline); padding: var(--s-md) 0 0; padding-left: 0; }
  .likert-row { gap: 6px; }
  .likert-btn { font-size: 13px; }
}
