/* ============================================================
   DigiDoctor.app — Clear File
   Every rule here traces to design.md. Don't add a colour,
   a face or a motion that isn't in that file.
   ============================================================ */

/* ---- Faces: self-hosted, OFL. design.md §4 ---- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin.woff2") format("woff2");
  font-weight: 500; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens: design.md §3. All contrast-checked, see design.md table. ---- */
:root {
  --bg:            oklch(0.965 0.008 250);  /* page — cool grey, tinted to brand */
  --surface:       oklch(0.992 0.004 245);  /* cards — near-white, never #fff */
  --surface-2:     oklch(0.945 0.012 250);  /* hover, inputs */
  --line:          oklch(0.885 0.014 255);

  --ink:           oklch(0.30 0.045 268);   /* indigo-slate, never #000 */
  --muted:         oklch(0.44 0.032 268);   /* body secondary — 7.0:1 on bg */
  --label:         oklch(0.525 0.028 268);  /* utility caps — 4.9:1 on bg */

  --accent:        oklch(0.75 0.14 226);    /* THE accent. Fills and marks only. */
  --accent-hover:  oklch(0.70 0.145 228);
  --accent-strong: oklch(0.515 0.135 235);  /* same hue, for text/icons on light */
  --accent-wash:   oklch(0.962 0.02 228);   /* the tint field */
  --on-accent:     oklch(0.24 0.055 268);   /* text sitting on --accent */

  --deep:          oklch(0.37 0.148 272);   /* footer band */
  --ink-inv:       oklch(0.965 0.01 250);
  --muted-inv:     oklch(0.78 0.025 262);

  --page: clamp(20px, 5vw, 40px);
  --max:  1200px;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --util:    "IBM Plex Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --lift: 0 1px 2px oklch(0.3 0.045 268 / 0.05), 0 8px 24px oklch(0.3 0.045 268 / 0.06);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: var(--page); top: 8px; z-index: 100;
  transform: translateY(-200%);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 4px; text-decoration: none;
  font-weight: 700;
}
.skip:focus { transform: translateY(0); }

/* ---- Type scale: design.md §4 ---- */
.u-util {
  font-family: var(--util);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0;
}

.u-display,
.u-h1,
.u-h2 {
  font-family: var(--display);
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
}
.u-display { font-size: clamp(2.6rem, 6.5vw, 5rem);  line-height: 1.02; letter-spacing: -0.03em; }
.u-h1      { font-size: clamp(2rem, 4vw, 3rem);      line-height: 1.10; letter-spacing: -0.025em; }
.u-h2      { font-size: clamp(1.5rem, 2.6vw, 2rem);  line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

.u-h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

.u-lede {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.55;
  margin: 0;
  max-width: 58ch;
  text-wrap: pretty;
}

.u-body  { margin: 0; max-width: 62ch; text-wrap: pretty; }
.u-muted { color: var(--muted); }
.u-mt-5  { margin-top: var(--s-5); }
.u-mt-6  { margin-top: var(--s-6); }

/* ---- Layout ---- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--page);
}

.section { padding-block: var(--s-9); }
@media (min-width: 900px) { .section { padding-block: var(--s-10); } }

.section-head { max-width: 46ch; margin-bottom: var(--s-7); }
.section-head .u-util { margin-bottom: var(--s-3); }
.section-head .u-body { margin-top: var(--s-4); color: var(--muted); }

/* ---- Signature: the tint field. design.md §6 ---- */
.field { position: relative; overflow: hidden; }
.field::before {
  content: "";
  position: absolute;
  inset: -25% -15% -15%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    58% 55% at 62% 34%,
    var(--accent-wash) 0%,
    oklch(0.97 0.012 232 / 0.55) 45%,
    transparent 74%
  );
}
.field > * { position: relative; z-index: 1; }

.field--left::before {
  background: radial-gradient(
    55% 52% at 30% 34%,
    var(--accent-wash) 0%,
    oklch(0.97 0.012 232 / 0.5) 46%,
    transparent 74%
  );
}

/* ---- Buttons: design.md §8 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { background: var(--accent-strong); color: var(--ink-inv); }

.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { background: var(--surface-2); border-color: var(--muted); }

.btn--text {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 0; padding: 0;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: oklch(0.515 0.135 235 / 0.35);
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease-out;
}
.btn--text:hover { text-decoration-color: var(--accent-strong); }
.btn--text .icon { width: 18px; height: 18px; }

.btn-row {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  margin-top: var(--s-6);
}

/* ---- Store badges: official artwork, never restyled. design.md §8 ---- */
.stores {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.stores a { display: inline-flex; border-radius: 6px; }
.stores img { display: block; }
/* Google's asset ships with 1/4-height clear space baked in; the negative
   margin cancels it so both badges optically align at 45px tall. */
.store-google { height: 68px; margin: -11px; width: auto; }
.store-apple  { height: 45px; width: auto; }

/* ---- Icons ---- */
.icon {
  width: 24px; height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: none;
}

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 240ms ease-out, border-color 240ms ease-out;
}
.nav.is-scrolled { background: var(--surface); border-bottom-color: var(--line); }

.nav__inner {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: 72px;
}
.nav__brand {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "opsz" 14;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  margin-right: auto;
}
/* the domain is the name — set it in the accent so it reads as one mark */
.brand-tld { color: var(--accent-strong); }
.footer .brand-tld { color: var(--accent); }
.nav__links { display: none; gap: var(--s-5); }
.nav__links a {
  font-size: 0.9375rem; font-weight: 500;
  text-decoration: none; color: var(--muted);
  transition: color 160ms ease-out;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: none; }

@media (min-width: 860px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; padding: 10px 18px; min-height: 42px; font-size: 0.9375rem; }
}

/* ---- Hero ---- */
.hero { padding-block: var(--s-8) var(--s-9); }
@media (min-width: 900px) { .hero { padding-block: var(--s-9) var(--s-10); } }

.hero__grid {
  display: grid;
  gap: var(--s-8);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-8); }
}

.hero__copy .u-util { margin-bottom: var(--s-4); }
.hero__copy .u-display { max-width: 15ch; }
.hero__copy .u-lede { margin-top: var(--s-5); color: var(--muted); }

/* ============================================================
   The app: hero object. design.md §6a.
   A rendered stand-in for the real mobile app — copy, tab bar and
   the app's own Material blue are taken from mobile/. Everything
   inside .screen is deliberately in the SYSTEM font, not ours: it
   is an app, and it should not read as more website.
   ============================================================ */
:root {
  --app-blue:   #1976d2;             /* mobile/src/theme — do not retint */
  --app-bg:     oklch(0.985 0.003 250);
  --app-ink:    oklch(0.28 0.02 265);
  --app-muted:  oklch(0.55 0.015 265);
  --app-line:   oklch(0.91 0.006 255);
}

.device {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 0 var(--s-4);
}

.phone {
  width: min(286px, 78vw);
  aspect-ratio: 9 / 19;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: 9px;
  box-shadow: 0 2px 4px oklch(0.3 0.045 268 / 0.06), 0 24px 56px oklch(0.3 0.045 268 / 0.14);
}

.screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: var(--app-bg);
  color: var(--app-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

/* ---- status bar ---- */
.app-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 18px 3px;
  font-size: 10.5px; font-weight: 600;
}
.app-dots { display: inline-flex; gap: 3px; align-items: center; }
.app-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--app-ink); opacity: 0.55; }

/* ---- app header ---- */
.app-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px 10px;
}
.app-brand { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.app-brand__tld { color: var(--app-blue); }
.app-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #d3e4ff; color: var(--app-blue);
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em;
}

/* ---- scrolling body: content runs past the bottom, as it does in the app ---- */
.app-scroll {
  flex: 1;
  min-height: 0;
  padding: 0 14px;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 97%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 97%);
}

.app-title { font-size: 19px; font-weight: 700; margin: 8px 0 12px; letter-spacing: -0.02em; }
.app-greet { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.app-greet-sub { color: var(--app-muted); margin: 2px 0 12px; font-size: 11.5px; }

/* ---- the app's own primary card ---- */
.app-hero {
  position: relative;
  overflow: hidden;
  background: var(--app-blue);
  color: #fff;
  border-radius: 12px;
  padding: 13px 14px 14px;
  margin-bottom: 16px;
}
.app-hero__mark {
  position: absolute; right: -12px; bottom: -14px;
  width: 78px; height: 78px;
  stroke: #fff; stroke-width: 1.4; fill: none;
  opacity: 0.18;
}
.app-hero__title { font-size: 13.5px; font-weight: 700; margin: 0; }
.app-hero__sub { font-size: 11px; margin: 2px 0 10px; opacity: 0.88; }
.app-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; color: var(--app-blue);
  border-radius: 100px; padding: 5px 10px;
  font-size: 10.5px; font-weight: 700;
}
.app-chip svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2.4; fill: none; }

.app-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--app-muted);
  margin: 0 0 6px;
}

/* ---- list cards ---- */
.app-card {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  padding: 9px 10px;
  margin-bottom: 8px;
}
.app-card__day {
  flex: none;
  width: 34px; padding: 4px 0;
  border-radius: 7px;
  background: #eaf2fd; color: var(--app-blue);
  text-align: center; font-size: 9px; font-weight: 600; text-transform: uppercase;
}
.app-card__day b { display: block; font-size: 14px; line-height: 1.1; }
.app-card__body { display: block; font-size: 10.5px; color: var(--app-muted); min-width: 0; }
.app-card__body b { display: block; font-size: 12px; color: var(--app-ink); font-weight: 600; }
.app-card__go { width: 14px; height: 14px; margin-left: auto; flex: none;
  stroke: var(--app-muted); stroke-width: 2; fill: none; }

/* ---- tab bar: the five real tabs ---- */
.app-tabs {
  flex: none;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--app-line);
  padding: 6px 2px 9px;
}
.app-tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 7.5px; font-weight: 600;
  color: var(--app-muted);
  text-align: center;
}
.app-tab svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.app-tab--on { color: var(--app-blue); }

/* ---- Cards ---- */
.cards {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--s-5);
  box-shadow: var(--lift);
  transition: border-color 240ms ease-out, box-shadow 240ms ease-out;
}
.card:hover {
  border-color: oklch(0.75 0.14 226 / 0.5);
  box-shadow: 0 1px 2px oklch(0.3 0.045 268 / 0.06), 0 14px 32px oklch(0.3 0.045 268 / 0.09);
}
.card .icon { color: var(--accent-strong); margin-bottom: var(--s-4); }
.card .u-body { margin-top: var(--s-3); color: var(--muted); }

/* ---- Steps: a real sequence, so the numbers carry information ---- */
.steps {
  display: grid; gap: var(--s-7);
  grid-template-columns: 1fr;
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }

.step { padding-top: var(--s-4); border-top: 2px solid var(--accent); }
.step__n {
  font-family: var(--util);
  font-size: 0.6875rem; letter-spacing: 0.14em;
  color: var(--accent-strong);
  display: block; margin-bottom: var(--s-4);
}
.step .u-body { margin-top: var(--s-3); color: var(--muted); }

/* ---- Privacy ---- */
.privacy__grid { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .privacy__grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-8); } }

.privacy__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
.privacy__list li { padding-left: var(--s-6); position: relative; color: var(--muted); max-width: 56ch; }
.privacy__list strong { color: var(--ink); font-weight: 700; display: block; }
.privacy__list li::before {
  content: "";
  position: absolute; left: 0; top: 11px;
  width: 12px; height: 2px; background: var(--accent);
}
.privacy__icon { color: var(--accent-strong); width: 32px; height: 32px; margin-bottom: var(--s-4); }

/* ---- FAQ ---- */
.faq { max-width: 68ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) 0;
  font-weight: 700; font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-strong); }
.faq summary .icon {
  width: 20px; height: 20px; color: var(--label);
  transition: transform 200ms var(--ease);
}
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq__a { margin: 0 0 var(--s-5); color: var(--muted); max-width: 60ch; }

/* ---- Final CTA ---- */
.get__inner { max-width: 34ch; }
.get .u-lede { margin-top: var(--s-4); color: var(--muted); }

/* ---- Footer: the one dark band on the page ---- */
.footer {
  background: var(--deep);
  color: var(--ink-inv);
  padding-block: var(--s-8);
}
.footer__grid { display: grid; gap: var(--s-7); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); } }

.footer__brand {
  font-family: var(--display); font-weight: 800;
  font-variation-settings: "opsz" 14;
  font-size: 1.0625rem; letter-spacing: -0.03em;
  margin: 0;
}
.footer__tag { color: var(--muted-inv); margin: var(--s-3) 0 0; max-width: 30ch; font-size: 0.9375rem; }
.footer__col h3 {
  font-family: var(--util); font-size: 0.6875rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); font-weight: 500; margin: 0 0 var(--s-4);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.footer__col a { font-size: 0.9375rem; text-decoration: none; color: var(--ink-inv); }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal {
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid oklch(0.965 0.01 250 / 0.18);
  color: var(--muted-inv); font-size: 0.875rem;
}
.footer :focus-visible { outline-color: var(--accent); }

/* ============================================================
   Legal pages. Same system, longer measure, no decoration.
   A policy is read by people who are worried — make it plain.
   ============================================================ */
.legal-head { padding-block: var(--s-8) var(--s-7); }
.legal-head .u-util { margin-bottom: var(--s-4); }
.legal-head .u-lede { margin-top: var(--s-5); color: var(--muted); }
.legal-dates {
  margin-top: var(--s-5);
  font-family: var(--util);
  font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--label);
}

.legal-grid { display: grid; gap: var(--s-7); padding-bottom: var(--s-9); }
@media (min-width: 1000px) {
  .legal-grid { grid-template-columns: 232px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
}

/* contents */
.toc { position: static; }
@media (min-width: 1000px) { .toc { position: sticky; top: 96px; } }
.toc h2 {
  font-family: var(--util); font-size: 0.6875rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--label); font-weight: 500;
  margin: 0 0 var(--s-4);
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: var(--s-3);
  padding: 5px 0;
  font-size: 0.9375rem; line-height: 1.4;
  color: var(--muted); text-decoration: none;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--util); font-size: 0.6875rem;
  color: var(--label); flex: none; padding-top: 3px;
}
.toc a:hover { color: var(--accent-strong); }

/* prose */
.prose { max-width: 68ch; counter-reset: sec; }
.prose > section { margin-bottom: var(--s-8); scroll-margin-top: 96px; }
.prose h2 {
  counter-increment: sec;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em;
  margin: 0 0 var(--s-4); padding-top: var(--s-4);
  border-top: 2px solid var(--accent);
}
.prose h2::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  font-family: var(--util); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.14em; color: var(--accent-strong);
  margin-bottom: var(--s-3);
}
.prose h3 {
  font-family: var(--body); font-weight: 700; font-size: 1.0625rem;
  margin: var(--s-6) 0 var(--s-2);
}
.prose p { margin: 0 0 var(--s-4); color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul { margin: 0 0 var(--s-4); padding-left: var(--s-5); color: var(--muted); }
.prose li { margin-bottom: var(--s-2); }
.prose li::marker { color: var(--accent-strong); }
.prose a { color: var(--accent-strong); text-underline-offset: 3px; }

.prose .callout {
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: var(--s-4) var(--s-5);
  margin: 0 0 var(--s-5);
}
.prose .callout p { color: var(--ink); }
.prose .callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 var(--s-5); }
.prose table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 0.9375rem; }
.prose th, .prose td {
  text-align: left; vertical-align: top;
  padding: var(--s-3) var(--s-4) var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.prose th {
  font-family: var(--util); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--label);
  border-bottom-color: var(--muted);
}
.prose td { color: var(--muted); }
.prose td:first-child { color: var(--ink); font-weight: 600; padding-right: var(--s-5); }

/* Unfilled facts. Loud on purpose — this page must not go live with any left. */
.tbd {
  background: oklch(0.9 0.14 90);
  color: oklch(0.28 0.05 90);
  font-family: var(--util); font-size: 0.8125em; font-weight: 500;
  padding: 1px 5px; border-radius: 3px;
  white-space: nowrap;
}

/* ---- Sticky mobile CTA: design.md §11 ---- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: var(--s-2);
  padding: var(--s-3) var(--page) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px oklch(0.3 0.045 268 / 0.08);
  transform: translateY(110%);
  transition: transform 240ms var(--ease);
}
.dock.is-visible { transform: translateY(0); }
.dock .btn { flex: 1; padding-inline: var(--s-3); font-size: 0.9375rem; }
/* keep the footer clear of the docked bar */
@media (max-width: 859px) { body { padding-bottom: 80px; } }
@media (min-width: 860px) { .dock { display: none; } }

/* ---- Motion: design.md §7. One moving thing, nothing loops. ----
   .reveal is only hidden once app.js has confirmed it can un-hide it
   (html.has-reveal). Without JS, or with a broken observer, every
   .reveal element simply renders normally. */
.has-reveal .reveal { opacity: 0; transform: translateY(8px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
  }
  .has-reveal .reveal { opacity: 1; transform: none; }
  .reveal.is-in { transition: none; }
  .dock { transition: none; }
  .faq summary .icon { transition: none; }
}
