/* ─────────────────────────────────────────────────────────────
   Design tokens — extracted from design/HomeV3.dc.html ("editorial mono").
   Every page uses these. Don't add new colours or fonts outside this file.
   ───────────────────────────────────────────────────────────── */
@font-face{font-family:'DM Sans';src:url(/fonts/dm-sans-wght-normal.woff2) format('woff2');font-weight:100 1000;font-style:normal;font-display:swap}
@font-face{font-family:'DM Sans';src:url(/fonts/dm-sans-wght-italic.woff2) format('woff2');font-weight:100 1000;font-style:italic;font-display:swap}
@font-face{font-family:'DM Mono';src:url(/fonts/dm-mono-400.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap}

:root{
  /* Colour — light surfaces (HomeV3 values) */
  --bg:#FAF9F7;          /* page background */
  --surface:#FFFFFF;     /* cards, table, inputs */
  --ink:#18181B;         /* headings, primary buttons, rules */
  --body:#4A4A52;        /* body copy */
  --muted:#6E6E78;       /* lead text, labels, italic second lines (4.8:1 on --bg) */
  --line:#E4E2DE;        /* hairline dividers */
  --shadow:#D9D6D0;      /* hard offset shadow on light */

  /* Colour — dark sections (AI story, report) */
  --dark:#1A1A1F;
  --dark-ink:#F4F4F2;
  --dark-muted:#A1A1AA;
  --dark-line:#3F3F46;
  --dark-faint:#71717A;  /* struck-through / dashed placeholders (large text only) */

  /* Colour — status (comparison table, phone mockup) */
  --good:#0F766E; --good-bg:#EEF6F5; --good-col:#F3F9F8;
  --warn:#B45309; --warn-bg:#FBF4EC;
  --accent-today:#E5A04B;   /* story step 02 */
  --accent-with:#2DD4BF;    /* story step 03 */
  --accent-with-shadow:#134E4A;

  /* Type — 2 families, self-hosted */
  --sans:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'DM Mono',ui-monospace,SFMono-Regular,Menlo,monospace;

  /* Type scale (HomeV3 clamp values) */
  --fs-display:clamp(46px,8.4vw,112px);  /* hero H1, final CTA */
  --fs-story:clamp(52px,7.4vw,104px);    /* "Your clinic: Missing." */
  --fs-h1:clamp(40px,6vw,84px);          /* inner-page H1 (between display and h2) */
  --fs-h2:clamp(40px,5vw,72px);          /* section H2 */
  --fs-h2s:clamp(30px,3.4vw,48px);       /* sub-section heading */
  --fs-h3:clamp(24px,2.4vw,32px);        /* row/card heading */
  --fs-h4:clamp(20px,2vw,24px);          /* FAQ question */
  --fs-lead:clamp(19px,1.9vw,24px);      /* intro paragraphs */
  --fs-body:18px;
  --fs-small:15px;
  --fs-eyebrow:13px;                     /* uppercase label, 0.12em */
  --fs-src:12px;                         /* mono source citation */
  --lh-tight:.98; --lh-head:1.02; --lh-body:1.55;
  --ls-display:-.045em; --ls-h2:-.04em; --ls-h3:-.02em; --ls-eyebrow:.12em;

  /* Spacing & layout */
  --max:1296px;          /* content width */
  --gut:48px;            /* side gutter */
  --sec:160px;           /* section vertical padding (light sections) */
  --sec-dark:120px;      /* AI story padding */
  --sec-cta:200px;       /* final CTA padding */
  --sp-1:8px; --sp-2:12px; --sp-3:16px; --sp-4:24px; --sp-5:32px; --sp-6:40px; --sp-7:48px; --sp-8:64px; --sp-9:80px; --sp-10:96px;

  /* Borders, radius, shadow */
  --rule:1px solid var(--line);
  --rule-ink:1px solid var(--ink);
  --btn-border:1.5px solid var(--ink);
  --radius:0;            /* everything is square, except the phone mockup */
  --radius-phone:44px; --radius-bubble:14px;
  --sh-hard:6px 6px 0 var(--shadow);
  --sh-hard-hover:3px 3px 0 var(--shadow);
  --sh-dark:6px 6px 0 var(--dark-line);
  --sh-phone:10px 10px 0 var(--dark-line);

  /* Controls */
  --tap:44px;            /* minimum tap target */
  --btn-h:60px; --btn-h-sm:52px; --btn-h-lg:68px;
}
@media (max-width:900px){:root{--gut:32px;--sec:112px;--sec-dark:96px;--sec-cta:128px}}
@media (max-width:600px){:root{--gut:20px;--sec:80px;--sec-dark:72px;--sec-cta:96px;--btn-h:56px}}
