/* ============================================================
   Neurodivergent Test — quiet editorial
   Reference register: Aesop / Kinfolk. Warm paper, near-black ink,
   one restrained brick accent. No texture, no shadow, no illustration.
   Generous air, hairline rules used sparingly, type does the work.
   Two modes share one token layer:
     editorial = homepage    focus = quiz + results (even quieter)
   ============================================================ */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 380 560;
  font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/newsreader-italic-latin.woff2") format("woff2");
}

:root {
  /* paper + ink */
  --paper:    #F5F2EB;   /* warm off-white, just a touch warm */
  --paper-2:  #EFEBE1;   /* faint recessed tone, used rarely */
  --ink:      #211C16;   /* near-black, warm */
  --ink-2:    #57503F;   /* body secondary */
  --ink-3:    #706858;   /* captions / labels, AA on both paper tones */
  --hair:     rgba(33,28,22,.16);
  --hair-2:   rgba(33,28,22,.30);

  /* one accent: warm terracotta. Default; three lively warm alts below. */
  --accent:      #A74727;
  --accent-deep: #8F3A1F;   /* small text / links on paper (AA) */
  --accent-tint: rgba(167,71,39,.10);

  --on-accent: #F5F2EB;

  --r: 2px;
  --type-scale: 1;
  --measure: 41rem;        /* ~70ch */
  --measure-wide: 52rem;

  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* one heading scale for the whole site */
  --h-page:    clamp(2.1rem, 3.6vw, 2.8rem);   /* page titles: results, privacy */
  --h-section: clamp(1.8rem, 2.8vw, 2.3rem);   /* homepage section heads */
  --h-card:    clamp(1.4rem, 2.2vw, 1.65rem);  /* result card names */
  --h-sub:     1.35rem;                        /* sub-blocks: closing, legal h2 */
  --h-item:    1.22rem;                        /* list-level: FAQ questions, value cards */
}

[data-accent="amber"]  { --accent:#B07313; --accent-deep:#915E0F; --accent-tint:rgba(176,115,19,.12); }
[data-accent="coral"]  { --accent:#C75B45; --accent-deep:#A64834; --accent-tint:rgba(199,91,69,.10); }
[data-accent="rose"]   { --accent:#B8475F; --accent-deep:#9A3A4F; --accent-tint:rgba(184,71,95,.10); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; 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: calc(17.5px * var(--type-scale)); line-height: 1.72; letter-spacing: 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-head); font-weight: 440; line-height: 1.14;
  letter-spacing: -.006em; color: var(--ink); margin: 0;
}
p { margin: 0; text-wrap: pretty; }
/* keep a phrase together so headings break at natural points */
.nb { white-space: nowrap; }
a { color: var(--accent-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--hair-2); transition: text-decoration-color .2s; }
a:hover { text-decoration-color: var(--accent-deep); }
em { font-style: italic; }
strong { font-weight: 600; }
[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 clamp(22px, 5vw, 56px); }
.col { max-width: var(--measure); }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: 1.1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; }

/* small section label (no number, no glyph, no mono) */
.kicker {
  display: block; font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; background: var(--paper);
  border-bottom: 1px solid var(--hair);
}
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 8px clamp(22px,5vw,56px); max-width: 76rem; margin: 0 auto; }
.brand { font-family: var(--font-head); font-weight: 460; font-size: 1.24rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav { margin-left: auto; display: flex; gap: clamp(14px, 2.4vw, 30px); }
.nav a {
  font-size: .82rem; font-weight: 500; letter-spacing: .01em; color: var(--ink-2);
  text-decoration: none; padding: 6px 0; transition: color .18s; white-space: nowrap;
}
.nav a:hover { color: var(--accent-deep); }
@media (max-width: 680px) { .nav { gap: 16px; } .nav a:nth-child(2), .nav a:nth-child(4) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  appearance: none; cursor: pointer; font: inherit; font-weight: 600; font-size: .96rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 30px; border-radius: var(--r);
  border: 1px solid transparent; text-decoration: none; letter-spacing: .01em;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hair-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.btn--block { width: 100%; }

/* quiet text link-button */
.textlink {
  appearance: none; background: none; border: 0; cursor: pointer; font: inherit;
  color: var(--accent-deep); font-weight: 600; padding: 6px 0; letter-spacing: .01em;
}
.textlink:hover { color: var(--ink); }

/* ---------- section rhythm (generous) ---------- */
.section { padding: clamp(44px, 6vw, 84px) 0; }
.section + .section .col { position: relative; }
.section h2 { font-size: var(--h-section); font-weight: 425; letter-spacing: -.01em; line-height: 1.12; }
.section h3 { font-size: var(--h-item); font-weight: 480; margin-top: 1.7em; }
.section .lede { color: var(--ink-2); font-size: 1.08rem; margin-top: 16px; }
.section__rule { border: 0; border-top: 1px solid var(--hair); margin: 0 0 clamp(40px,6vw,72px); }

/* primary inline CTA (no decorative strip) */
.cta-inline { margin-top: clamp(30px,4vw,44px); }

/* ---------- editorial sections ----------
   Mobile: kicker, heading, body stack in one column.
   Desktop: narrow label rail on the left (kicker only), wide reading column
   on the right holding the large h2 + body — every section shares one edge. */
.section .col { max-width: var(--measure); margin: 0 auto; }
.sec-body { margin-top: clamp(22px, 3vw, 30px); }
@media (min-width: 920px) {
  .section .col {
    display: grid; max-width: none; margin: 0;
    grid-template-columns: 13rem minmax(0, var(--measure));
    column-gap: clamp(44px, 5vw, 88px);
    align-items: start;
  }
  .sec-head { display: contents; }
  .sec-head .kicker { grid-column: 1; grid-row: 1; margin: 0; padding-top: clamp(8px, 1vw, 14px); }
  .sec-head h1, .sec-head h2 { grid-column: 2; grid-row: 1; }
  .section .sec-body { grid-column: 2; grid-row: 2; }
}

/* =====================================================================
   SWAP SLOT — hero <-> quiz <-> results, same place
   ===================================================================== */
.slot {
  position: relative;
  padding-bottom: clamp(36px, 6vw, 72px);
  margin-bottom: clamp(24px, 4vw, 48px);
}
.swap { display: none; }
.swap.is-active { display: block; }
/* transform-only entrance: resting state is always opacity:1 */
@media (prefers-reduced-motion: no-preference) {
  .swap.is-active { animation: swapIn .5s cubic-bezier(.2,.7,.2,1); }
  @keyframes swapIn { from { transform: translateY(9px); } to { transform: none; } }
}

/* ===== HERO (editorial, pure type) ===== */
.hero { padding: clamp(40px, 6vw, 76px) 0 clamp(18px, 2.2vw, 28px); }
/* h1 keeps both phrases for SEO; visually: quiet first line, the question huge */
.hero h1 { font-weight: 420; line-height: 1.06; letter-spacing: -.014em; max-width: none; }
.hero .h1-line {
  display: block; font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-weight: 480;
  line-height: 1.35; letter-spacing: -.004em; color: var(--ink-2);
}
.hero h1 em {
  display: block; font-style: italic; color: var(--accent);
  font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.04;
  margin-top: clamp(8px, 1.2vw, 14px);
}
.hero .lede {
  font-size: clamp(1.1rem, 1.7vw, 1.32rem); color: var(--ink-2); line-height: 1.6;
  margin-top: clamp(20px,2.5vw,28px); max-width: 42rem;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin-top: clamp(24px,3vw,34px); }
.hero .fineprint { margin-top: clamp(26px,4vw,40px); }

/* hero layout — switched by html[data-hero]; all three avoid a dead right side
   center = everything on the page axis, symmetric (default)
   wide   = oversized headline spans the full width, type fills the space
   split  = headline left, lede + CTA on the right (desktop only) */

/* center: symmetric column on the page axis */
html[data-hero="center"] .hero > h1,
html[data-hero="center"] .hero > .lede,
html[data-hero="center"] .hero > .fineprint {
  text-align: center; margin-left: auto; margin-right: auto;
}
html[data-hero="center"] .hero > .cta-row { justify-content: center; }
html[data-hero="center"] .hero { padding-top: clamp(48px, 7vw, 96px); }

/* wide: the question itself carries the full width */
html[data-hero="wide"] .hero h1 em {
  font-size: clamp(2.6rem, 6.6vw, 5.8rem); line-height: 1.02; letter-spacing: -.02em;
}
html[data-hero="wide"] .hero .lede { max-width: 42rem; }

/* split: headline block left, reading column right */
@media (min-width: 920px) {
  html[data-hero="split"] .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    column-gap: clamp(48px, 6vw, 104px);
    align-items: start;
  }
  html[data-hero="split"] .hero > h1 { grid-column: 1; grid-row: 1 / 4; }
  html[data-hero="split"] .hero h1 em { font-size: clamp(2.6rem, 4.6vw, 4.4rem); }
  html[data-hero="split"] .hero > .lede { grid-column: 2; grid-row: 1; margin-top: 10px; }
  html[data-hero="split"] .hero > .cta-row { grid-column: 2; grid-row: 2; align-self: start; }
  html[data-hero="split"] .hero > .fineprint { grid-column: 2; grid-row: 3; align-self: start; }
  html[data-hero="split"] .hero .values { grid-column: 1 / -1; grid-row: 4; }
}
/* fine print: a single quiet line, no dots, no strip, no pills */
.fineprint { font-size: .82rem; color: var(--ink-3); letter-spacing: .01em; }
.fineprint .sep { margin: 0 .55em; color: var(--hair-2); }

/* value columns: three text columns, one hairline above, no boxes */
.values { margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--hair); padding-top: clamp(34px,4vw,52px); }
.values__grid { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .values__grid { grid-template-columns: repeat(3, 1fr); gap: clamp(32px,3.5vw,56px); } }
.value h2 { font-family: var(--font-head); font-weight: 470; font-size: var(--h-item); line-height: 1.25; }
.value p { color: var(--ink-2); font-size: .98rem; margin-top: 12px; }

/* not-a-diagnosis note: quiet, hairline-left, no dashed box */
.note { border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; color: var(--ink-2); max-width: var(--measure); }
.note strong { color: var(--ink); font-weight: 600; }
.note--spaced { margin-top: 26px; }
.review-date { margin-top: 22px; color: var(--ink-3); font-size: .92rem; }
.updated-date { margin-top: 18px; color: var(--ink-3); font-size: .92rem; }

/* =====================================================================
   QUIZ (focus) — even quieter
   ===================================================================== */
.quiz { max-width: 38rem; margin: 0 auto; padding-top: clamp(28px,4vw,48px); }
.quiz__bar { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(34px,5vw,54px); }
.progress { flex: 1; height: 2px; background: var(--hair); position: relative; }
.progress__fill { position: absolute; inset: 0 auto 0 0; height: 100%; width: 0; background: var(--accent); transition: width .4s cubic-bezier(.2,.7,.2,1); }
.progress__fill--1 { width: 5%; }
.progress__fill--2 { width: 10%; }
.progress__fill--3 { width: 15%; }
.progress__fill--4 { width: 20%; }
.progress__fill--5 { width: 25%; }
.progress__fill--6 { width: 30%; }
.progress__fill--7 { width: 35%; }
.progress__fill--8 { width: 40%; }
.progress__fill--9 { width: 45%; }
.progress__fill--10 { width: 50%; }
.progress__fill--11 { width: 55%; }
.progress__fill--12 { width: 60%; }
.progress__fill--13 { width: 65%; }
.progress__fill--14 { width: 70%; }
.progress__fill--15 { width: 75%; }
.progress__fill--16 { width: 80%; }
.progress__fill--17 { width: 85%; }
.progress__fill--18 { width: 90%; }
.progress__fill--19 { width: 95%; }
.progress__fill--20 { width: 100%; }
@media (prefers-reduced-motion: reduce) { .progress__fill { transition: none; } }
.progress__count { font-size: .8rem; font-weight: 500; letter-spacing: .04em; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

.qcard__step { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.qcard { --opt-x: 20px; --opt-gap: 15px; --opt-tick: 20px; --opt-border: 1px; }
.qcard__q {
  font-family: var(--font-head); font-weight: 430; font-size: clamp(1.45rem, 3.4vw, 1.85rem);
  line-height: 1.3; letter-spacing: -.008em; margin: 14px 0 clamp(28px,4vw,40px);
  width: 100%; max-width: 100%; box-sizing: border-box;
}

.opts { display: grid; gap: 10px; width: 100%; }
.opt {
  display: flex; align-items: center; gap: var(--opt-gap); width: 100%; text-align: left;
  font: inherit; cursor: pointer; color: var(--ink); background: transparent;
  border: 1px solid var(--hair-2); border-radius: var(--r);
  padding: 16px var(--opt-x); min-height: 58px;
  transition: border-color .14s, background .14s;
}
.opt:hover { border-color: var(--ink-3); background: var(--paper-2); }
.opt__tick {
  width: var(--opt-tick); height: var(--opt-tick); flex: none; border-radius: 50%; border: 1.5px solid var(--hair-2);
  display: grid; place-items: center; color: transparent; transition: border-color .14s, background .14s, color .14s;
}
.opt__tick svg { width: 12px; height: 12px; }
.opt[aria-pressed="true"], .opt.is-on { border-color: var(--accent); background: var(--accent-tint); }
.opt[aria-pressed="true"] .opt__tick, .opt.is-on .opt__tick { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.opt__label { font-size: 1.02rem; flex: 1 1 auto; min-width: 0; }

.quiz__nav { display: flex; align-items: center; gap: 14px; margin-top: clamp(30px,4vw,42px); }
.quiz__nav .btn--back { margin-right: auto; }
.quiz__nav .btn--next { margin-left: auto; }
.btn--back { background: transparent; border: 0; color: var(--ink-3); min-height: 48px; padding: 12px 4px; font-weight: 500; }
.btn--back:hover { color: var(--ink); }
.btn--back[hidden] { display: none; }

/* static (no-JS / view-source) question list */
.js .quiz-static { display: none; }
.no-js .faq__a,
.no-js .faq__a[hidden] { display: block !important; max-height: none; overflow: visible; }
.quiz-static ol { margin: clamp(28px,4vw,40px) 0 0; padding: 0; list-style: none; counter-reset: q; max-width: var(--measure); }
.quiz-static li { counter-increment: q; color: var(--ink); font-size: 1.04rem; padding: 16px 0 16px 44px; position: relative; border-top: 1px solid var(--hair); }
.quiz-static li:first-child { border-top: 0; }
.quiz-static li::before { content: counter(q,decimal-leading-zero); position: absolute; left: 0; top: 18px; font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* session fallback */
.fallback { max-width: 34rem; margin: 0 auto; }
.fallback h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 430; }
.fallback p { color: var(--ink-2); margin-top: 14px; }
.fallback .cta-inline { margin-top: 30px; }

/* =====================================================================
   RESULTS (focus) — colour-quiet; levels by weight/size, not hue
   ===================================================================== */
.results { max-width: 48rem; margin: 0 auto; padding-top: clamp(36px,5vw,56px); }
.results__title { font-size: var(--h-page); font-weight: 420; letter-spacing: -.012em; line-height: 1.08; white-space: nowrap; }
.results__intro { color: var(--ink-2); margin-top: 16px; font-size: 1.08rem; line-height: 1.72; }

@media (max-width: 720px) and (min-width: 561px) {
  .results__title { font-size: clamp(1.75rem, 5.3vw, 2.1rem); }
}

/* overview: 5 rows, single hairline between (not top+bottom on each) */
.overview { margin: clamp(34px,5vw,52px) 0 0; border-top: 1px solid var(--hair); }
.overview__none { padding: 16px 0; color: var(--ink-2); font-style: italic; border-bottom: 1px solid var(--hair); }
.ov-row {
  display: flex; align-items: baseline; gap: 18px; width: 100%; text-align: left;
  font: inherit; cursor: pointer; color: var(--ink); background: transparent; border: 0;
  border-bottom: 1px solid var(--hair); padding: 18px 0; transition: padding-left .2s;
}
.ov-row:hover { padding-left: 8px; }
.ov-row__name { font-family: var(--font-head); font-weight: 440; font-size: var(--h-card); flex: 1; }
.ov-row__level { letter-spacing: .005em; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* the only strong/weak signal: weight + size + ink depth, never a new hue */
.ov-row[data-band="often"]     .ov-row__name { font-weight: 540; }
.ov-row[data-band="often"]     .ov-row__level { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.ov-row[data-band="sometimes"] .ov-row__level { font-size: 1rem; font-weight: 500; color: var(--ink-2); }
.ov-row[data-band="less"]      .ov-row__name { color: var(--ink-2); font-weight: 400; }
.ov-row[data-band="less"]      .ov-row__level { font-size: .95rem; font-weight: 400; color: var(--ink-3); }
.ov-row__jump { color: var(--ink-3); opacity: 0; transition: opacity .18s; font-size: .9rem; }
.ov-row:hover .ov-row__jump { opacity: 1; }

/* detail: airy blocks separated by whitespace alone, no rules */
.detail { margin-top: clamp(44px,6vw,72px); }
.dcard { padding: clamp(26px,3.5vw,40px) 0; scroll-margin-top: 84px; }
.dcard__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dcard__name { font-family: var(--font-head); font-weight: 450; font-size: var(--h-section); flex: 1 1 auto; min-width: 0; }
.dcard__level { margin-left: auto; white-space: nowrap; font-size: 1.02rem; font-weight: 500; letter-spacing: .02em; color: var(--ink-3); }
.dcard[data-band="often"] .dcard__level { color: var(--ink-2); font-weight: 600; }
.dcard[data-band="less"] .dcard__name { color: var(--ink-2); }
.dcard__body p { margin-top: 16px; color: var(--ink-2); max-width: var(--measure); font-size: 1.08rem; line-height: 1.72; }
.dcard__body p:first-child { margin-top: 0; color: var(--ink); }
.dcard__body .dcard__reassure {
  margin-top: 18px; color: var(--ink-2); font-style: normal;
}
.dcard__help { margin-top: 22px; max-width: var(--measure); }
.dcard__help b { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 8px; }
.dcard__help p { margin: 0; color: var(--ink); font-size: 1.08rem; line-height: 1.72; }
.dcard__caveat { margin-top: 18px; font-style: italic; color: var(--ink-3); border-left: 2px solid var(--hair-2); padding-left: 16px; max-width: var(--measure); font-size: 1.02rem; line-height: 1.68; }
.dcard__top { display: inline-block; margin-top: 24px; padding: 0; border: 0; background: transparent; font: inherit; font-size: .9rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); cursor: pointer; }
.dcard__top:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

/* closing: generic, same-for-everyone copy — visually set apart on recessed paper,
   whitespace instead of hairlines */
.closing {
  margin-top: clamp(52px, 7vw, 84px);
  background: var(--paper-2); border-radius: var(--r);
  padding: clamp(28px, 4vw, 46px) clamp(24px, 4vw, 46px);
}
.cblock { padding: clamp(26px, 3.5vw, 38px) 0 0; }
.cblock:first-child { padding-top: 0; }
.cblock h2 { font-family: var(--font-head); font-weight: 450; font-size: var(--h-section); margin: 0 0 14px; }
.cblock p { color: var(--ink-2); max-width: var(--measure); font-size: 1.08rem; line-height: 1.72; }
.cblock p + p { margin-top: 1em; }
.cblock ul { margin: 0; padding: 0; list-style: none; max-width: var(--measure); }
.cblock li { color: var(--ink-2); padding: 7px 0 7px 22px; position: relative; font-size: 1.08rem; line-height: 1.62; }
.cblock li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 10px; height: 1px; background: var(--accent); }

.results__actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: clamp(40px,5vw,60px); }
.results__foot { margin-top: 24px; color: var(--ink-3); font-size: .9rem; font-style: italic; }

@media (prefers-reduced-motion: no-preference) {
  /* transform-only stagger, opacity rests at 1 */
  .results.is-revealing .reveal-item { animation: cardIn .55s cubic-bezier(.2,.7,.2,1) both; }
  .results.is-revealing .reveal-item:nth-child(1){ animation-delay: .04s; }
  .results.is-revealing .reveal-item:nth-child(2){ animation-delay: .1s; }
  .results.is-revealing .reveal-item:nth-child(3){ animation-delay: .16s; }
  .results.is-revealing .reveal-item:nth-child(4){ animation-delay: .22s; }
  .results.is-revealing .reveal-item:nth-child(5){ animation-delay: .28s; }
  @keyframes cardIn { from { transform: translateY(12px); } to { transform: none; } }
}

/* =====================================================================
   FAQ — one hairline between items, thin rotating mark
   ===================================================================== */
.faq { margin-top: clamp(20px,3vw,30px); border-top: 1px solid var(--hair); }
.faq__item { border-bottom: 1px solid var(--hair); }
.section .faq .faq__h { margin: 0; font: inherit; }
.faq__q {
  width: 100%; text-align: left; font: inherit; cursor: pointer; color: var(--ink);
  background: transparent; border: 0; padding: 24px 46px 24px 0; position: relative;
  font-family: var(--font-head); font-size: var(--h-item); font-weight: 450; line-height: 1.32;
  transition: color .18s;
}
.faq__q:hover { color: var(--accent-deep); }
.faq__q::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 11px; height: 11px;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-65%) rotate(45deg); transition: transform .25s;
}
.faq__q[aria-expanded="true"]::after { transform: translateY(-35%) rotate(-135deg); }
.faq__a { overflow: hidden; }
.faq__a-inner { padding: 0 0 26px; color: var(--ink-2); max-width: var(--measure); }
.faq__a-inner p + p { margin-top: .9em; }

/* =====================================================================
   ABOUT — single airy column
   ===================================================================== */
.about .prose p { color: var(--ink-2); font-size: 1.05rem; }
.signoff { font-family: var(--font-head); font-style: italic; font-size: 1.2rem; color: var(--ink); margin-top: 22px; }

/* =====================================================================
   LEGAL / PRIVACY — centered single-column document (linear.app/privacy register)
   ===================================================================== */
.legal { padding-top: clamp(56px, 8vw, 110px); }
.legal .col { display: block; max-width: 44rem; margin: 0 auto; }
.legal .sec-head { display: block; }
.legal .sec-head .kicker { padding-top: 0; margin-bottom: 18px; }
.legal h1 { font-size: var(--h-page); font-weight: 425; letter-spacing: -.012em; line-height: 1.15; }
.legal .sec-body { max-width: none; margin-top: clamp(26px, 4vw, 38px); padding-top: 0; }
.legal .sec-body h2 { font-size: var(--h-section); font-weight: 430; margin-top: 1.6em; }
.legal .sec-body h2 + .prose { margin-top: 12px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-foot { border-top: 1px solid var(--hair); padding: clamp(44px,6vw,72px) 0; }
.site-foot__grid { display: flex; flex-wrap: wrap; gap: 22px 56px; align-items: flex-start; justify-content: space-between; }
.site-foot p { color: var(--ink-2); font-size: .94rem; max-width: 42rem; line-height: 1.65; }
.site-foot__meta { display: flex; flex-direction: column; gap: 9px; font-size: .84rem; color: var(--ink-3); }
.site-foot__meta a { color: var(--ink-2); font-weight: 500; }
.site-foot__meta a:hover { color: var(--accent-deep); }

/* =====================================================================
   SMALL SCREENS — touch comfort, full-width CTAs
   ===================================================================== */
@media (max-width: 560px) {
  /* primary CTAs become full-width, easy thumb targets */
  .hero .cta-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero .cta-row .textlink { align-self: center; }
  .cta-inline .btn { width: 100%; }
  .fallback .btn { width: 100%; }

  /* quiz: answer rows keep height but reclaim horizontal room */
  .qcard { --opt-x: 16px; --opt-gap: 12px; }
  .opt { padding-top: 15px; padding-bottom: 15px; }

  /* results: actions stack */
  .results__title { white-space: normal; }
  .results__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .results__actions .textlink { align-self: center; }
  .ov-row { gap: 12px; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.08rem; }
  .topbar__inner { gap: 12px; min-height: 56px; }
  .nav { gap: 14px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .nb { white-space: normal; }
}

/* quieter tap feedback on touch devices */
@media (hover: none) {
  a, button { -webkit-tap-highlight-color: rgba(33,28,22,.08); }
}

/* =====================================================================
   PRINT — black & white, 1–2 pages, results only
   ===================================================================== */
@media print {
  @page { margin: 10mm; }
  :root { --paper:#fff; --paper-2:#fff; --ink:#000; --ink-2:#222; --ink-3:#444; --hair:rgba(0,0,0,.3); --hair-2:rgba(0,0,0,.5); --accent:#000; --accent-deep:#000; }
  .topbar, .nav, .site-foot, #tweaks-root, .results__actions,
  .hero, .values, .section, .quiz, .quiz-static, .ov-row__jump, .note { display: none !important; }
  body { background: #fff; color: #000; font-size: 9.5pt; line-height: 1.35; }
  .slot { position: static; }
  .swap { display: none !important; }
  .swap.is-active.results { display: block !important; animation: none !important; }
  .results { max-width: 100%; padding: 0; }
  .results__title { font-size: 20pt; }
  .results__intro { margin-top: 6px; }
  .overview { margin-top: 12px; }
  .overview__none, .ov-row { padding: 5px 0; }
  .ov-row__name { font-size: 11pt; }
  .detail { margin-top: 10px; }
  .dcard { padding: 8px 0; }
  .dcard__head { margin-bottom: 4px; }
  .dcard__name { font-size: 13pt; }
  .dcard__body p { margin-top: 4px; }
  .dcard__body .dcard__reassure { margin-top: 5px; padding-left: 0; border-left: 0; }
  .dcard__help, .dcard__caveat { margin-top: 6px; }
  .closing { margin-top: 10px; padding: 10px 12px; }
  .cblock { padding-top: 8px; }
  .cblock h2 { font-size: 12pt; margin-bottom: 4px; }
  .cblock li { padding-top: 2px; padding-bottom: 2px; }
  .results.is-revealing .reveal-item { animation: none !important; transform: none !important; }
  .dcard, .cblock, .overview { page-break-inside: avoid; break-inside: avoid; }
  .results__print-foot { display: block !important; margin-top: 20px; padding-top: 10px; border-top: 1px solid #000; font-size: 9pt; color: #000; letter-spacing: .02em; }
  a { color: #000; text-decoration: none; }
}
.results__print-foot { display: none; }
