/* ============================================================================
   auracare.cc — site stylesheet.

   The palette, type, control geometry and brand lockup are the APPLICATION's,
   copied from apps/web/src/tokens.css and apps/web/index.html so the marketing
   site and the product read as one thing: warm paper, ink text, hairline rules,
   General Sans + JetBrains Mono, 8px control radii, and the gold ring mark.
   Layout and composition come from the Claude Design source files.
   ========================================================================== */

/* Both faces are self-hosted: the site makes no third-party requests at all,
   which is what lets the privacy policy say so plainly. General Sans is the
   application's own file; JetBrains Mono is SIL OFL 1.1. */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('./JetBrainsMono-Variable.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('./GeneralSans-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* surfaces — app: --ac-surface / --ac-soft / body #eeede9 */
  --bg: #EEEDE9;
  --card: #FFFFFF;
  --card2: #FBFBF9;
  --line: #EAEAE6;
  --div: #EFEEE9;
  --band: #1F1F1F;          /* the app's ink chrome (action bar, tooltips)    */
  --band-line: #3A3A35;
  --band-ink: #F4F3EF;
  --band-ink2: #B8B7B0;
  --band-muted: #83837A;

  /* ink — app: --ac-ink / --ac-muted / --ac-faint */
  --ink: #1F1F1F;
  --ink2: #5C5C58;
  --muted: #8A8A84;
  --faint: #A3A29A;

  /* accents. The app's accent IS the ink; gold is the mark; blue is the link. */
  --accent: #1F1F1F;
  --accent-hover: #333330;
  --accent-fg: #FFFFFF;
  --link: #3D6EA8;
  --link-hover: #26476B;
  --gold: #E7B24A;
  --soft: #F4F4F1;
  --soft-line: #E4E3DC;
  --tint: #F6F7ED;          /* the app's avatar / accent wash                 */
  --logo-plate: transparent; /* partner logos are ink-coloured; light needs none */

  /* status — app: --ac-ok / --ac-warn / --ac-danger */
  --ok: #15794B;
  --warn: #855A19;
  --danger: #BE3526;
  --info: #3D6EA8;
  --idle: #A3A29A;

  /* controls — app: --ac-ctl-* */
  --field: #FCFCFA;
  --field-border: #E1E0DA;
  --field-border-hover: #CFCEC6;
  --field-shadow: inset 0 1px 1px rgba(31, 31, 31, .022);
  --ring: 0 0 0 3px rgba(31, 31, 31, .085);
  --ring-danger: 0 0 0 3px rgba(190, 53, 38, .12);

  --sh: 0 2px 8px rgba(16, 18, 22, .05);
  --sh-lg: 0 16px 44px rgba(31, 31, 31, .10);

  /* geometry — app: --ac-ctl-radius 8 / cards 16 */
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  --sans: 'General Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

/* The app ships light only; this is the same warm neutral family inverted,
   built from the ink chrome it already uses (#1c1c1a, #2a2a27, #f4f3ef …). */
@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #161613; --card: #201F1C; --card2: #1B1A17; --line: #33322D; --div: #2A2925;
    --band: #0F0F0D; --band-line: #33322D;
    --ink: #F2F1EC; --ink2: #B8B7B0; --muted: #8A8A84; --faint: #75746C;
    --accent: #F2F1EC; --accent-hover: #FFFFFF; --accent-fg: #1F1F1F;
    --link: #9FB6D8; --link-hover: #C3D2E9;
    --soft: #2A2926; --soft-line: #3A3934; --tint: #2C2C24; --logo-plate: #FFFFFF;
    --ok: #7FB08A; --warn: #D2A44E; --danger: #E08472; --info: #9FB6D8; --idle: #75746C;
    --field: #191815; --field-border: #3A3934; --field-border-hover: #4A4944;
    --field-shadow: inset 0 1px 1px rgba(0, 0, 0, .18);
    --ring: 0 0 0 3px rgba(242, 241, 236, .12);
    --sh: 0 2px 10px rgba(0, 0, 0, .34); --sh-lg: 0 18px 46px rgba(0, 0, 0, .5);
  }
}
html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #161613; --card: #201F1C; --card2: #1B1A17; --line: #33322D; --div: #2A2925;
  --band: #0F0F0D; --band-line: #33322D;
  --ink: #F2F1EC; --ink2: #B8B7B0; --muted: #8A8A84; --faint: #75746C;
  --accent: #F2F1EC; --accent-hover: #FFFFFF; --accent-fg: #1F1F1F;
  --link: #9FB6D8; --link-hover: #C3D2E9;
  --soft: #2A2926; --soft-line: #3A3934; --tint: #2C2C24; --logo-plate: #FFFFFF;
  --ok: #7FB08A; --warn: #D2A44E; --danger: #E08472; --info: #9FB6D8; --idle: #75746C;
  --field: #191815; --field-border: #3A3934; --field-border-hover: #4A4944;
  --field-shadow: inset 0 1px 1px rgba(0, 0, 0, .18);
  --ring: 0 0 0 3px rgba(242, 241, 236, .12);
  --sh: 0 2px 10px rgba(0, 0, 0, .34); --sh-lg: 0 18px 46px rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 420 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
button { font-family: inherit; color: inherit; }
svg { display: block; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--r-sm); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 3.4vw, 44px); }
.sec { padding: clamp(56px, 7vw, 112px) 0; }
.sec-line { border-top: 1px solid var(--line); }

.mono { font-family: var(--mono); font-weight: 500; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 9999px; border: 2px solid var(--gold); }
.eyebrow-text {
  font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.rule-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.rule-head-label {
  font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.rule-head-rule { flex: 1; height: 1px; background: var(--line); }

.dot { flex: none; width: 6px; height: 6px; border-radius: 9999px; }
.dot-ok { background: var(--ok); } .dot-info { background: var(--info); }
.dot-warn { background: var(--warn); } .dot-idle { background: var(--idle); }
@keyframes auraPulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
.live-dot { animation: auraPulse 2s ease-in-out infinite; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border-radius: var(--r); background: var(--accent); color: var(--accent-fg);
  font: 550 12px/1 var(--sans); transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: var(--accent-fg); }

/* ─── buttons — the app's --ac-btn-* ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid transparent; font: 550 12px/1 var(--sans);
  white-space: nowrap; cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-fg); }
.btn-ghost { background: var(--card); border-color: var(--field-border); color: var(--ink); }
.btn-ghost:hover { background: var(--soft); border-color: var(--field-border-hover); color: var(--ink); }
.btn-sm { height: 28px; padding: 0 12px; font-size: 11.5px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 13.5px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn[disabled]:hover { background: var(--card); border-color: var(--field-border); }
.btn-primary[disabled]:hover { background: var(--accent); }

/* ─── fields — the app's .ac-field ────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label {
  font: 500 11px/1 var(--sans); letter-spacing: .04em; color: var(--ink2);
}
.ac-field {
  appearance: none; -webkit-appearance: none; width: 100%; min-width: 0;
  min-height: 40px; padding: 0 13px;
  font: 420 13.5px/38px var(--sans); color: var(--ink);
  background: var(--field); border: 1px solid var(--field-border); border-radius: var(--r);
  box-shadow: var(--field-shadow);
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.ac-field:hover { border-color: var(--field-border-hover); }
.ac-field:focus { outline: none; border-color: var(--ink); background: var(--card); box-shadow: var(--ring); }
.ac-field::placeholder { color: var(--faint); }
.ac-field[aria-invalid='true'] { border-color: var(--danger); }
.ac-field[aria-invalid='true']:focus { box-shadow: var(--ring-danger); }
select.ac-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1.5 5.5 6 10 1.5' fill='none' stroke='%238A8A84' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}

/* ─── brand lockup + nav ──────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 64px; padding: 0 clamp(18px, 3.4vw, 44px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-word { display: flex; flex-direction: column; align-items: flex-start; gap: 2.6px; }
.wordmark { display: block; line-height: 0; color: currentColor; }
.wordmark svg { display: block; height: 17px; width: auto; }
.brand-sub {
  font: 400 8px/2 var(--sans); letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink2); white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font: 510 13px/1 var(--sans); color: var(--ink2); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-current { color: var(--ink); font-weight: 550; }
.nav-right { display: flex; align-items: center; gap: 9px; flex: none; }
.nav-signin { display: inline-flex; align-items: center; font: 510 13px/1 var(--sans); color: var(--ink2); }
.nav-signin:hover { color: var(--ink); }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
  color: var(--muted); font: 500 12px/1 var(--sans); cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--field-border-hover); }
.theme-toggle .icon { width: 15px; height: 15px; }

.only-light { display: inline-flex; }
.only-dark { display: none; }
html[data-theme='dark'] .only-light { display: none; }
html[data-theme='dark'] .only-dark { display: inline-flex; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']) .only-light { display: none; }
  html:not([data-theme='light']) .only-dark { display: inline-flex; }
  html[data-theme='light'] .only-light { display: inline-flex; }
  html[data-theme='light'] .only-dark { display: none; }
}

.hamb {
  display: none; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
  width: 32px; height: 32px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card); cursor: pointer;
}
.hamb span { width: 18px; height: 1.5px; background: var(--ink2); }
.hamb span:last-child { width: 12px; }
.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  padding: 12px clamp(18px, 3.4vw, 44px) 18px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.mobile-menu[data-open='true'] { display: flex; }
.mobile-menu a { padding: 9px 0; font: 510 14.5px/1.2 var(--sans); color: var(--ink2); }
.mobile-menu a:hover { color: var(--ink); }
.mobile-menu .mm-sep { height: 1px; margin: 7px 0; background: var(--line); }
.mobile-menu .btn { margin-top: 10px; align-self: flex-start; color: var(--accent-fg); }

/* ─── the ink band (dark sections, both themes) ───────────────────── */
.band {
  background: var(--band); border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line);
  --ink: #F4F3EF; --ink2: #B8B7B0; --muted: #83837A; --faint: #75746C;
  --line: #33322D; --div: #2A2925; --card: #201F1C; --card2: #1B1A17;
  --soft: #2A2926; --soft-line: #3A3934; --field: #191815; --field-border: #3A3934;
  --accent: #F2F1EC; --accent-fg: #1F1F1F; --accent-hover: #FFFFFF;
  --link: #9FB6D8; --link-hover: #C3D2E9;
  --ok: #7FB08A; --warn: #D2A44E; --danger: #E08472; --info: #9FB6D8; --idle: #75746C;
  color: var(--ink);
}

/* ─── analytics consent ───────────────────────────────────────────── */
.consent {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 80;
  width: min(680px, calc(100vw - 32px));
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  padding: 16px 18px; border-radius: var(--r-lg);
  background: #1F1F1F; color: #F4F3EF; box-shadow: 0 18px 46px rgba(0, 0, 0, .34);
}
.consent[hidden] { display: none; }
.consent-text { flex: 1; min-width: 260px; font: 420 12.5px/1.6 var(--sans); color: #C9C8C1; }
.consent-text a { color: #F4F3EF; text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent .btn-primary { background: #F4F3EF; color: #1F1F1F; }
.consent .btn-primary:hover { background: #FFFFFF; }
.consent .btn-ghost { background: transparent; border-color: #4A4944; color: #F4F3EF; }
.consent .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #75746C; color: #F4F3EF; }
@media (max-width: 560px) {
  .consent { bottom: 10px; padding: 14px; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; height: 44px; }
}

/* ─── footer ──────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--card2); }
.foot-inner { max-width: 1180px; margin: 0 auto; padding: clamp(38px, 4vw, 56px) clamp(18px, 3.4vw, 44px) 26px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); }
.foot-grid > * { min-width: 0; }
.foot-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--ink); }
.foot-word .wordmark svg { height: 15px; }
.foot-blurb { margin-bottom: 16px; font: 420 13px/1.6 var(--sans); color: var(--ink2); max-width: 260px; }
.foot-heading {
  font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.foot-col { display: flex; flex-direction: column; gap: clamp(22px, 2.6vw, 34px); }
.foot-links { display: flex; flex-direction: column; gap: 9px; }
.foot-links a { font: 420 13px/1.4 var(--sans); color: var(--ink2); }
.foot-links a:hover { color: var(--ink); }
.foot-links a.is-current { color: var(--ink); font-weight: 550; }
.foot-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: clamp(30px, 3.4vw, 46px); padding-top: 20px; border-top: 1px solid var(--line);
}
.foot-copy { font: 420 12px/1 var(--sans); color: var(--ink2); }
.foot-tag { font: 420 12px/1 var(--sans); color: var(--muted); }
/* A control that reads as a link but is a button, because it does something
   rather than going somewhere. */
.linkish {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 420 12px/1 var(--sans); color: var(--link); text-decoration: underline; text-underline-offset: 2px;
}
.linkish:hover { color: var(--link-hover); }

@media (max-width: 1180px) { .brand-sub { display: none; } .nav-links { gap: 20px; } }
@media (max-width: 940px) { .nav-links, .nav-signin { display: none; } .hamb { display: flex; } }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-nav .nav-cta { display: none; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
/* Touch targets. Below the desktop breakpoint every control a finger has to
   hit is brought up to the 44px minimum; the desktop chrome keeps its
   tighter geometry, which is the application's. */
@media (max-width: 940px) {
  .hamb { width: 44px; height: 44px; padding: 0 12px; }
  .theme-toggle { height: 44px; padding: 0 14px; }
  .site-nav .btn { height: 44px; padding: 0 18px; }
  .mobile-menu a { padding: 12px 0; }
  .mobile-menu .btn { height: 44px; }
  .foot-links a { padding: 5px 0; }
  .chip { height: 40px; padding: 0 14px; }
  .legal-toc a { padding: 9px 11px; }
  /* The consent buttons are the first thing a visitor has to tap, so they
     belong in the same touch-target rule as the rest of the chrome — not only
     in the narrower phone block below. */
  .consent-actions .btn { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================================
   Home
   ========================================================================== */
.hero-grid { display: grid; grid-template-columns: minmax(390px, 470px) minmax(0, 1fr); align-items: stretch; }
.hero-grid > *, .hero-left > * { min-width: 0; }
.hero-left {
  padding: clamp(38px, 4.6vw, 68px) clamp(18px, 3vw, 40px) clamp(38px, 4.6vw, 58px) clamp(18px, 3.4vw, 44px);
  border-right: 1px solid var(--line);
}
.hero-right { padding: clamp(24px, 3vw, 42px) clamp(18px, 3.4vw, 44px) clamp(34px, 4vw, 52px); }
.hero-title {
  margin-bottom: 18px; font: 550 clamp(36px, 4.7vw, 58px)/1.06 var(--sans);
  letter-spacing: -.026em; color: var(--ink); text-wrap: pretty;
}
.hero-kicker {
  margin-bottom: 18px; font: 550 21px/1.35 var(--sans);
  letter-spacing: -.016em; color: var(--ink); max-width: 30ch;
}
.hero-lede { margin-bottom: 28px; font: 420 16.5px/1.62 var(--sans); color: var(--ink2); max-width: 444px; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.hero-note { margin-bottom: 30px; font: 420 12.5px/1.5 var(--sans); color: var(--muted); }
.hl-b { padding-top: 28px; border-top: 1px solid var(--line); max-width: 450px; }
.hl-quote { margin-bottom: 24px; font: 510 17px/1.5 var(--sans); color: var(--ink); letter-spacing: -.012em; text-wrap: pretty; }

/* Waiting-area display — the app's ink chrome, in both themes. */
.display-card { border-radius: var(--r-lg); overflow: hidden; background: #1F1F1F; border: 1px solid #3A3A35; box-shadow: var(--sh); }
.dc-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 11px; border-bottom: 1px solid #3A3A35; }
.dc-place { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #83837A; }
.dc-live { display: inline-flex; align-items: center; gap: 6px; font: 500 10px/1 var(--mono); letter-spacing: .08em; color: #83837A; }
.dc-live .dot { width: 5px; height: 5px; background: #7FB08A; }
.dc-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 16px 16px 14px; }
.dc-cap { font: 500 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #83837A; margin-bottom: 9px; }
.dc-token { font: 600 40px/1 var(--mono); letter-spacing: -.02em; color: #F4F3EF; }
.dc-room-wrap { text-align: right; }
.dc-room { font: 600 22px/1 var(--mono); color: #E7B24A; }
.dc-next { display: flex; align-items: center; gap: 10px; padding: 11px 16px 13px; border-top: 1px solid #3A3A35; }
.dc-next-label { font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #83837A; }
.dc-next ol { display: flex; align-items: center; gap: 10px; }
.dc-next li { font: 500 12px/1 var(--mono); color: #C9C8C1; }
.dc-next li:nth-child(2) { color: #83837A; }
.dc-next li:nth-child(3) { color: #62615A; }
.display-caption { margin-top: 12px; font: 420 12px/1.55 var(--sans); color: var(--muted); }
.roadmap-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; }
.tag-roadmap {
  flex: none; margin-top: 2px; padding: 3px 6px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--gold) 16%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 44%, transparent);
  color: var(--warn); font: 600 8.5px/1.2 var(--mono); letter-spacing: .08em;
}
.roadmap-note p { font: 420 12px/1.5 var(--sans); color: var(--muted); }

.panel-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.panel-meta-a { font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.panel-meta-rule { flex: 1; height: 1px; background: var(--line); }
.panel-meta-b { font: 500 10.5px/1 var(--mono); color: var(--muted); }
.product-card { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--sh); }
.prod-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.prod-grid > * { min-width: 0; }
.prod-main { border-right: 1px solid var(--line); }
.prod-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 15px; }
.prod-title { font: 550 16px/1.2 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.prod-sub { margin-top: 6px; font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--muted); }
.badge-live {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px;
  border-radius: var(--r-sm); background: var(--soft); border: 1px solid var(--line);
  color: var(--ink2); font: 550 11px/1 var(--sans);
}
.badge-live .dot { background: var(--ok); }
.prod-stats { display: flex; gap: 26px; padding: 0 20px 15px; }
.stat { display: flex; flex-direction: column; gap: 5px; }
.stat-value { font: 600 18px/1 var(--mono); color: var(--ink); }
.stat-label { font: 500 9.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.q-head, .q-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 76px 104px; align-items: center; }
.q-head {
  padding: 0 20px 9px; font: 600 9.5px/1 var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line);
}
.q-row {
  width: 100%; padding: 0 20px; height: 54px; text-align: left; cursor: pointer;
  border: 0; border-bottom: 1px solid var(--div); background: transparent;
  transition: background .12s ease, box-shadow .12s ease;
}
.q-row:hover { background: var(--soft); }
.q-row.is-selected { background: var(--soft); box-shadow: inset 3px 0 0 var(--ink); }
.q-token { font: 500 12.5px/1 var(--mono); color: var(--ink2); }
.q-row.is-selected .q-token { color: var(--ink); font-weight: 600; }
.q-patient { display: flex; align-items: center; gap: 10px; min-width: 0; }
.q-avatar {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 9999px;
  background: var(--tint); color: var(--ink); font: 600 10.5px/1 var(--mono);
}
.q-names { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.q-name { font: 510 13.5px/1.1 var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-row.is-selected .q-name { font-weight: 600; }
.q-svc { font: 420 11px/1.1 var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-wait { font: 420 12px/1 var(--sans); color: var(--ink2); }
.q-status { display: inline-flex; align-items: center; gap: 6px; font: 510 11.5px/1 var(--sans); color: var(--ink2); white-space: nowrap; }
.q-actions { display: flex; gap: 8px; padding: 15px 20px 17px; }
.q-actions .btn { flex: none; }

.prod-side { background: var(--card2); }
.side-head { padding: 18px 18px 15px; border-bottom: 1px solid var(--line); }
.side-name { font: 550 14.5px/1.2 var(--sans); color: var(--ink); }
.side-meta { margin-top: 6px; font: 500 11px/1 var(--mono); color: var(--muted); }
.side-journey { padding: 15px 18px 8px; }
.side-journey-label { font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.journey { position: relative; }
.j-rail { position: absolute; left: 6px; top: 9px; bottom: 11px; width: 1px; background: var(--line); }
.j-progress { position: absolute; left: 6px; top: 9px; width: 1px; background: var(--ink); }
.j-step { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; height: 34px; }
.j-step.has-handoff::before { content: ''; position: absolute; left: 0; top: 0; width: 13px; height: 1px; background: var(--soft-line); }
.j-node-cell { display: inline-flex; width: 24px; justify-content: flex-start; }
.j-node { position: relative; display: inline-flex; width: 9px; height: 9px; margin-left: 2px; border-radius: 9999px; background: var(--card2); border: 1.5px solid var(--line); }
.j-step.is-done .j-node { background: var(--ink2); border-color: var(--ink2); }
.j-step.is-current .j-node { width: 13px; height: 13px; margin-left: 0; background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent); }
.j-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.j-label { font: 420 12.5px/1.1 var(--sans); color: var(--muted); }
.j-step.is-done .j-label { color: var(--ink2); }
.j-step.is-current .j-label { color: var(--ink); font-weight: 600; }
.j-team { font: 420 10px/1.1 var(--sans); color: var(--muted); opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j-step.is-current .j-team { opacity: 1; }
.j-times { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.j-time { font: 500 10px/1 var(--mono); color: var(--muted); }
.j-step.is-current .j-time { color: var(--ink); }
.j-delta { font: 500 10px/1 var(--mono); color: var(--muted); }
.next-work { margin: 12px 18px 18px; padding: 14px; border-radius: var(--r-lg); background: var(--soft); border: 1px solid var(--soft-line); }
.nw-label { font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.nw-task { font: 550 13.5px/1.35 var(--sans); color: var(--ink); margin-bottom: 5px; }
.nw-team { font: 420 11px/1.4 var(--sans); color: var(--ink2); }
.panel-foot { display: flex; align-items: flex-start; gap: 11px; margin-top: 20px; }
.panel-foot-rule { flex: none; width: 26px; height: 1px; margin-top: 9px; background: var(--line); }
.panel-foot p { font: 420 12.5px/1.55 var(--sans); color: var(--muted); max-width: 560px; text-wrap: pretty; }

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-left {
    border-right: 0; border-bottom: 1px solid var(--line);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: clamp(28px, 4vw, 56px); align-items: start;
  }
  .hl-b { max-width: none; padding-top: 0; border-top: 0; }
  .hero-lede { max-width: none; }
}
@media (max-width: 820px) { .hero-left { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .prod-grid { grid-template-columns: 1fr; } .prod-main { border-right: 0; } .prod-side { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .q-head, .q-row { grid-template-columns: 50px minmax(0, 1fr) 96px; } .q-wait { display: none; } .q-actions { overflow-x: auto; } }

/* ─── device demos: kiosk + patient app ──────────────────────────── */
.demo-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(30px, 5vw, 72px); align-items: start;
}
.demo-grid > * { min-width: 0; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.stage-note { font: 420 12px/1.5 var(--sans); color: var(--muted); text-align: center; }

.facts { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.facts li {
  position: relative; padding-left: 18px;
  font: 420 14.5px/1.6 var(--sans); color: var(--ink2);
}
.facts li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 9999px; border: 1.5px solid var(--gold);
}

.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.demo-step { font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--muted); margin-left: 4px; }
.roadmap-list { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.roadmap-list .roadmap-note { margin-top: 12px; }

/* Kiosk — a floor-standing portrait touchscreen. */
.kiosk-frame {
  width: 100%; max-width: 340px; padding: 14px;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--card2); box-shadow: var(--sh);
}
.kiosk-inner {
  height: 480px; border-radius: var(--r-lg); background: var(--card);
  border: 1.5px solid var(--ink); overflow: hidden;
}
.k-screen {
  height: 100%; padding: 30px 26px; display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.k-home { justify-content: center; }
.k-brand { font: 550 30px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.k-welcome { margin-top: 12px; font: 420 16px/1.4 var(--sans); color: var(--ink2); }
.k-btn {
  width: 100%; border-radius: var(--r); cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.k-btn-primary {
  padding: 20px; border: 0; background: var(--accent); color: var(--accent-fg);
  font: 550 19px/1 var(--sans); letter-spacing: .03em;
}
.k-btn-primary:hover { background: var(--accent-hover); }
.k-btn-hero { margin-top: 34px; padding: 26px; font-size: 22px; }
.k-btn-ghost {
  margin-top: 12px; padding: 16px; background: var(--card);
  border: 1.5px solid var(--field-border); color: var(--ink); font: 510 16px/1 var(--sans);
}
.k-btn-ghost:hover { border-color: var(--field-border-hover); background: var(--soft); }
.k-langs { margin-top: auto; padding-top: 24px; font: 420 14px/1 var(--sans); color: var(--muted); }
.k-cap { font: 510 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.k-token {
  margin: 20px 0 10px; font: 600 76px/1 var(--mono); letter-spacing: -.03em; color: var(--ink);
  animation: kioskToken .5s cubic-bezier(.2, .7, .3, 1);
}
@keyframes kioskToken { from { opacity: 0; transform: translateY(10px) scale(.96) } to { opacity: 1; transform: none } }
.k-lead { font: 420 16px/1.5 var(--sans); color: var(--ink2); }

/* The slip printing. The paper starts inside the body and slides out of the
   slot; the body is painted after it, so it does the occluding. */
.k-print { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 2px 0 16px; }
.k-printer { color: var(--ink2); }
.k-printer .k-body, .k-printer .k-slip { fill: var(--card); stroke: currentColor; stroke-width: 1.6; }
.k-printer .k-slot { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.k-printer .k-led { fill: var(--gold); stroke: none; animation: kPrintLed 1.6s ease-in-out 3; }
.k-printer .k-slip { transform: translateY(-15px); animation: kSlip 1.5s cubic-bezier(.2, .7, .3, 1) .3s both; }
@keyframes kSlip { from { transform: translateY(-15px) } to { transform: translateY(0) } }
@keyframes kPrintLed { 0%, 100% { opacity: 1 } 50% { opacity: .2 } }
.k-print-text { position: relative; display: grid; height: 15px; }
.k-print-text > span {
  grid-area: 1 / 1; font: 420 12px/15px var(--sans); color: var(--muted); white-space: nowrap;
}
.k-print-a { animation: kFadeOut .3s ease 1.9s both; }
.k-print-b { opacity: 0; animation: kFadeIn .3s ease 2.1s both; }
@keyframes kFadeOut { to { opacity: 0 } }
@keyframes kFadeIn { from { opacity: 0 } to { opacity: 1 } }
@media (prefers-reduced-motion: reduce) {
  .k-print-a { display: none; }
  .k-print-b { opacity: 1; }
  .k-printer .k-slip { transform: none; }
}
.k-dest { margin-top: 8px; font: 550 28px/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.k-where { margin-top: 8px; font: 420 14px/1.5 var(--sans); color: var(--muted); }
.k-actions { width: 100%; margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.k-actions .k-btn-ghost { margin-top: 0; }
.k-appointment .k-name { margin-top: 16px; font: 550 24px/1.2 var(--sans); color: var(--ink); }
.k-appointment .k-detail { margin-top: 12px; font: 420 17px/1.7 var(--sans); color: var(--ink2); }
.k-appointment .k-note {
  margin-top: 18px; padding: 14px; border-radius: var(--r);
  background: var(--card2); border: 1px solid var(--line);
  font: 420 13.5px/1.5 var(--sans); color: var(--muted);
}
.k-appointment .k-btn-primary { margin-top: auto; }

/* Patient app — the phone from apps/patient. */
.phone-frame {
  width: 300px; padding: 10px; border-radius: 34px;
  border: 1px solid var(--line); background: var(--card2); box-shadow: var(--sh);
}
.phone-inner {
  height: 560px; border-radius: 26px; overflow: hidden;
  border: 1.5px solid var(--ink); background: var(--card); cursor: pointer;
}
.ph-app { height: 100%; display: flex; flex-direction: column; background: var(--card); }
.ph-screen { flex: 1; min-height: 0; padding: 16px 16px 14px; display: flex; flex-direction: column; }
.ph-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.ph-scroll::-webkit-scrollbar { display: none; }
.ph-bar {
  display: flex; justify-content: space-between;
  font: 500 10px/1 var(--mono); color: var(--faint); margin-bottom: 14px;
}
.ph-cap { font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ph-cap-spaced { margin-top: 16px; }
.ph-token { margin: 8px 0 14px; font: 600 32px/1 var(--mono); letter-spacing: -.02em; color: var(--ink); }
.ph-card {
  padding: 14px; margin-bottom: 16px; border-radius: var(--r-lg);
  background: var(--soft); border: 1px solid var(--soft-line);
}
.ph-now { margin-top: 6px; font: 550 16px/1.3 var(--sans); color: var(--ink); }
.ph-sub { margin-top: 5px; font: 420 12px/1.5 var(--sans); color: var(--ink2); }
.ph-meter { height: 3px; margin-top: 12px; border-radius: 9999px; background: var(--line); overflow: hidden; }
.ph-meter span { display: block; height: 100%; background: var(--gold); transition: width .4s cubic-bezier(.2, .7, .3, 1); }
.ph-place { margin-top: 6px; font: 510 14px/1.3 var(--sans); color: var(--ink); }
.ph-done { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; }
.ph-done li {
  display: flex; align-items: center; gap: 7px;
  font: 420 13px/1.2 var(--sans); color: var(--ink2);
}
.ph-done svg { flex: none; color: var(--ok); }
.ph-done .ph-empty { color: var(--muted); }
.ph-next { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.ph-next-label { margin-top: 6px; font: 550 15px/1.3 var(--sans); color: var(--ink); }
.ph-called {
  justify-content: center; align-items: center; text-align: center;
  background: #1F1F1F; color: #F4F3EF;
  animation: phoneCalled .45s cubic-bezier(.2, .7, .3, 1);
}
@keyframes phoneCalled { from { opacity: 0; transform: scale(.98) } to { opacity: 1; transform: none } }
.ph-called-cap { font: 600 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #A09F96; }
.ph-called-token { margin: 18px 0 24px; font: 600 50px/1 var(--mono); letter-spacing: -.02em; }
.ph-called-lead { font: 420 12.5px/1 var(--sans); color: #A09F96; }
.ph-called-dest { margin-top: 12px; font: 550 28px/1.2 var(--sans); letter-spacing: -.02em; }
.ph-called-where { margin-top: 24px; font: 420 12px/1.6 var(--sans); color: #A09F96; }

/* ── the wider patient app: home, doctors, booking, profile ── */
.ph-greet { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ph-greet-sub { display: block; font: 420 11.5px/1 var(--sans); color: var(--muted); }
.ph-greet-name { display: block; margin-top: 5px; font: 550 19px/1.2 var(--sans); letter-spacing: -.018em; color: var(--ink); }
.ph-bell {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9999px; border: 1px solid var(--line);
  background: var(--card2); color: var(--ink2);
}
.ph-bell i { position: absolute; top: 5px; right: 6px; width: 5px; height: 5px; border-radius: 9999px; background: var(--gold); }
.ph-search {
  display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 0 12px; height: 38px;
  border-radius: var(--r); border: 1px solid var(--field-border); background: var(--field);
  color: var(--faint); font: 420 12.5px/1 var(--sans);
}
.ph-sec { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 9px; }
.ph-sec > span:first-child { font: 550 13px/1 var(--sans); color: var(--ink); }
.ph-see { font: 420 11px/1 var(--sans); color: var(--muted); }
.ph-title { font: 550 19px/1.2 var(--sans); letter-spacing: -.018em; color: var(--ink); margin-bottom: 12px; }

/* Appointment card — the ink surface the product uses for anything live. */
.ph-appt { padding: 14px; border-radius: var(--r-lg); background: #1F1F1F; color: #F4F3EF; }
.ph-appt-top { display: flex; align-items: center; gap: 9px; }
.ph-avatar-on-ink { background: rgba(255, 255, 255, .12); color: #F4F3EF; }
.ph-appt-who { flex: 1; min-width: 0; }
.ph-appt-name { display: block; font: 550 13.5px/1.2 var(--sans); }
.ph-appt-spec { display: block; margin-top: 3px; font: 420 11px/1 var(--sans); color: #A09F96; }
.ph-appt-video {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 9999px; background: #F4F3EF; color: #1F1F1F;
}
.ph-appt-meta { display: flex; gap: 18px; margin: 12px 0; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .14); }
.ph-appt-cap { display: block; font: 500 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #A09F96; }
.ph-appt-val { display: block; margin-top: 4px; font: 510 12px/1 var(--sans); }
.ph-appt-actions { display: flex; gap: 8px; }
.ph-appt-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 32px;
  border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .2);
  font: 550 11.5px/1 var(--sans); color: #F4F3EF;
}
.ph-appt-btn-solid { background: #F4F3EF; color: #1F1F1F; border-color: #F4F3EF; }

.ph-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ph-chips::-webkit-scrollbar { display: none; }
.ph-chip {
  flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 11px;
  border-radius: var(--r); border: 1px solid var(--field-border); background: var(--field);
  font: 510 11px/1 var(--sans); color: var(--ink2); white-space: nowrap;
}
.ph-chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

.ph-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ph-doc {
  display: grid; gap: 3px; padding: 11px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card2);
  transition: border-color .14s ease, background .14s ease;
}
.ph-doc:hover { border-color: var(--field-border-hover); background: var(--soft); }
.ph-doc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 5px; }
.ph-heart { color: var(--faint); }
.ph-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9999px;
  background: var(--tint); color: var(--ink); font: 600 10.5px/1 var(--mono);
}
.ph-avatar-lg { width: 58px; height: 58px; font-size: 17px; margin-bottom: 12px; }
.ph-doc-name { font: 550 12.5px/1.25 var(--sans); color: var(--ink); }
.ph-doc-spec { font: 420 10.5px/1.3 var(--sans); color: var(--muted); }
.ph-doc-fee { margin-top: 4px; font: 550 11.5px/1 var(--sans); color: var(--ink); }
.ph-doc-fee span { font-weight: 420; color: var(--muted); }

.ph-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ph-head > span { font: 550 13.5px/1 var(--sans); color: var(--ink); }
.ph-back {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--card2);
  color: var(--ink); cursor: pointer;
}
.ph-back:hover { background: var(--soft); }
.ph-doc-hero { display: flex; flex-direction: column; align-items: flex-start; }
.ph-doc-hero .ph-chip { margin-bottom: 8px; }
.ph-doc-hero-name { font: 550 21px/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.ph-doc-hero-fee { margin-top: 6px; font: 550 14px/1 var(--sans); color: var(--ink); }
.ph-doc-hero-fee span { font-weight: 420; color: var(--muted); }
.ph-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 16px; }
.ph-stat {
  display: grid; gap: 3px; padding: 9px 4px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card2);
}
.ph-stat-v { font: 600 12px/1 var(--mono); color: var(--ink); }
.ph-stat-l { font: 420 8.5px/1 var(--sans); color: var(--muted); }
.ph-dates { display: flex; gap: 6px; }
.ph-date {
  flex: 1; display: grid; gap: 4px; padding: 8px 0; cursor: pointer; text-align: center;
  border: 1px solid var(--field-border); border-radius: var(--r); background: var(--field);
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.ph-date span:first-child { font: 420 9px/1 var(--sans); color: var(--muted); }
.ph-date span:last-child { font: 600 12.5px/1 var(--mono); color: var(--ink); }
.ph-date:hover { border-color: var(--field-border-hover); }
.ph-date.is-on { background: var(--accent); border-color: var(--accent); }
.ph-date.is-on span { color: var(--accent-fg); }
.ph-slots { display: flex; gap: 6px; margin-top: 10px; }
.ph-slot {
  flex: 1; text-align: center; padding: 8px 0; border-radius: var(--r);
  border: 1px solid var(--field-border); background: var(--field);
  font: 510 11.5px/1 var(--mono); color: var(--ink2);
}
.ph-slot.is-on { border-color: var(--gold); color: var(--ink); }
.ph-book {
  display: block; margin-top: 14px; padding: 13px; text-align: center; border-radius: var(--r);
  background: var(--accent); color: var(--accent-fg); font: 550 13px/1 var(--sans);
}

.ph-profile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 18px; }
.ph-profile-mrn { margin-top: 6px; font: 500 10.5px/1 var(--mono); color: var(--muted); }
.ph-rows { display: flex; flex-direction: column; gap: 6px; }
.ph-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card2); font: 510 12.5px/1 var(--sans); color: var(--ink);
}
.ph-row svg { color: var(--faint); }

.ph-tabs {
  flex: none; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--card);
}
.ph-tab {
  display: grid; justify-items: center; gap: 4px; padding: 4px 0;
  border: 0; background: transparent; color: var(--faint); cursor: pointer;
  transition: color .14s ease;
}
.ph-tab span { font: 500 9px/1 var(--sans); }
.ph-tab:hover { color: var(--ink2); }
.ph-tab.is-active { color: var(--ink); }
.ph-tab.is-active svg { color: var(--gold); }

.cap-built { font-weight: 550; color: var(--ok); }

@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; }
  .stage { align-items: flex-start; }
  .stage-note { text-align: left; }
}
@media (max-width: 380px) { .phone-frame { width: 100%; } }

/* Questions — long-form answers, each written to stand alone. */
.qa { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(24px, 3.4vw, 44px); margin-top: clamp(28px, 4vw, 44px); }
.qa > * { min-width: 0; }
.qa-item { padding-top: 20px; border-top: 1px solid var(--line); }
.qa-q { margin-bottom: 10px; font: 550 16.5px/1.4 var(--sans); letter-spacing: -.012em; color: var(--ink); text-wrap: pretty; }
.qa-a { font: 420 14.5px/1.7 var(--sans); color: var(--ink2); text-wrap: pretty; }
.qa-more {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
  font: 510 12.5px/1 var(--sans); color: var(--link);
}
.qa-more:hover { color: var(--link-hover); }

/* Partners */
.partners {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  gap: clamp(14px, 2vw, 20px); margin-top: clamp(28px, 4vw, 44px);
}
.partner {
  display: grid; gap: 4px; padding: 20px 22px 18px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card);
  box-shadow: var(--sh); color: var(--ink);
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.partner:hover { color: var(--ink); border-color: var(--field-border-hover); box-shadow: var(--sh-lg); }
.partner-mark {
  width: 22px; height: 22px; margin-bottom: 12px; border-radius: 9999px;
  border: 3px solid var(--gold);
}
.partner-name { font: 550 17px/1.3 var(--sans); letter-spacing: -.012em; }
/* A partner's own colours are theirs to keep, so on the dark theme the logo
   gets a paper plate rather than a filter that would repaint their brand. */
.partner-logo {
  width: 100%; max-width: 210px; height: auto; margin-bottom: 14px;
  padding: 8px 10px; border-radius: var(--r-sm); background: var(--logo-plate);
}
.partner-place { font: 500 10.5px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.partner-link {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
  font: 510 12.5px/1 var(--sans); color: var(--link);
}
.partner:hover .partner-link { color: var(--link-hover); }

/* The rail is fixed in the left gutter. Centred pages (About) already have
   one; the homepage is full-bleed, so it borrows the space from main. */
@media (min-width: 1400px) {
  body.has-rail main { padding-left: 132px; }
}

/* ============================================================================
   About
   ========================================================================== */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.two > * { min-width: 0; }
.hero-two { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero-two > * { min-width: 0; }
.panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.panels > * { min-width: 0; }

.h-lead { font: 550 clamp(34px, 4.4vw, 58px)/1.08 var(--sans); letter-spacing: -.028em; color: var(--ink); text-wrap: pretty; }
.h-sec { margin-bottom: 36px; font: 550 clamp(28px, 3.6vw, 46px)/1.12 var(--sans); letter-spacing: -.026em; color: var(--ink); text-wrap: pretty; }
.h-sec .soft-line-2 { color: var(--muted); }
.h-3 { font: 550 17px/1.4 var(--sans); letter-spacing: -.012em; color: var(--ink); }
.p-lead { font: 420 17px/1.68 var(--sans); color: var(--ink2); text-wrap: pretty; }
.p-lead + .p-lead { margin-top: 20px; }
.p-strong { font: 510 17px/1.65 var(--sans); color: var(--ink); text-wrap: pretty; }
.p-note { font: 420 13px/1.6 var(--sans); color: var(--muted); }
.measure { max-width: 520px; }

/* Section rail (scroll-spy), the design's fixed left index */
.rail { position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; }
.rail a { display: flex; align-items: center; gap: 10px; height: 26px; }
.rail-dot-cell { display: inline-flex; width: 11px; justify-content: center; }
.rail-dot { width: 5px; height: 5px; border-radius: 9999px; background: transparent; border: 1.5px solid var(--faint); transition: all .18s ease; }
.rail a.is-current .rail-dot { width: 8px; height: 8px; background: var(--gold); border-color: var(--gold); }
.rail-label {
  font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); opacity: .55; white-space: nowrap; transition: opacity .18s ease, color .18s ease;
}
.rail a:hover .rail-label { opacity: 1; }
.rail a.is-current .rail-label { color: var(--ink); opacity: 1; }
@media (max-width: 1400px) { .rail { display: none; } }

/* Observed-journey list in the About hero */
.obs { position: relative; }
.obs-rail { position: absolute; left: 4px; width: 1px; background: var(--line); }
.obs-fill { position: absolute; left: 4px; width: 1px; background: var(--muted); transition: height 1.7s cubic-bezier(.33, 0, .2, 1); }
.obs-marker {
  position: absolute; left: -1.5px; width: 12px; height: 12px; border-radius: 9999px;
  background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent);
  transition: top 1.7s cubic-bezier(.33, 0, .2, 1);
}
.obs-row { position: relative; display: grid; grid-template-columns: 22px 58px minmax(0, 1fr) auto; align-items: baseline; padding: 11px 0; }
.obs-node-cell { display: inline-flex; }
.obs-node { position: relative; width: 9px; height: 9px; margin-top: 5px; border-radius: 9999px; background: var(--card); border: 1.5px solid var(--faint); }
.obs-node::after { content: ''; position: absolute; inset: 1px; border-radius: 9999px; background: var(--muted); opacity: 0; transition: opacity .9s ease; }
.obs-row.is-done .obs-node::after { opacity: 1; }
.obs-time { font: 500 11.5px/1.4 var(--mono); color: var(--ink2); opacity: .45; transition: opacity .9s ease; }
.obs-label { font: 510 14.5px/1.4 var(--sans); color: var(--ink); opacity: .45; transition: opacity .9s ease; }
.obs-row.is-done .obs-time, .obs-row.is-done .obs-label { opacity: 1; }
.obs-token { font: 600 10px/1.4 var(--mono); letter-spacing: .08em; color: var(--warn); opacity: 0; transition: opacity .9s ease; }
.obs-row.is-here .obs-token { opacity: 1; }
.obs-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Numbered lists (followed / principles) */
.numbered { display: flex; flex-direction: column; }
.num-row { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: clamp(14px, 2vw, 26px); padding: 22px 0; border-top: 1px solid var(--line); }
.num-row:last-child { border-bottom: 1px solid var(--line); }
.num { font: 500 11.5px/1.6 var(--mono); letter-spacing: .06em; color: var(--muted); }
.num-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: baseline; }
.num-body p { font: 420 14.5px/1.66 var(--sans); color: var(--ink2); }
.pull { margin-top: 26px; padding: 20px 22px; border-left: 2px solid var(--gold); background: var(--card2); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.pull p { font: 510 18px/1.5 var(--sans); letter-spacing: -.014em; color: var(--ink); }

/* Who-sees-what ledger */
.ledger { display: flex; flex-direction: column; }
.ledger-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ledger-who { font: 600 10.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ledger-what { font: 420 14.5px/1.6 var(--sans); color: var(--ink); }

.journey-figure { margin: clamp(30px, 4vw, 52px) 0; }
.journey-figure svg { width: 100%; height: auto; }
.wide { display: block; }
.narrow { display: none; }
.ring-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ring-item {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
  font: 510 12.5px/1 var(--sans); color: var(--ink2);
}
.ring-item .dot { background: var(--gold); }

/* The two desks */
.desk { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.desk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.desk-title { font: 550 13.5px/1.3 var(--sans); color: var(--ink); }
.desk-sub { margin-top: 5px; font: 500 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.desk-tag { flex: none; font: 500 9.5px/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.desk-cols, .desk-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) 104px; align-items: center; gap: 10px; }
.desk-cols { padding: 9px 16px; font: 600 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.desk-row { padding: 11px 16px; border-bottom: 1px solid var(--div); }
.desk-row.is-focus { background: var(--soft); box-shadow: inset 3px 0 0 var(--ink); }
.desk-token { font: 500 12px/1 var(--mono); color: var(--ink2); }
.desk-row.is-focus .desk-token { color: var(--ink); font-weight: 600; }
.desk-person { display: flex; align-items: center; gap: 9px; min-width: 0; }
.desk-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 9999px; background: var(--tint); color: var(--ink); font: 600 9.5px/1 var(--mono); }
.desk-name { font: 510 13px/1.2 var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-state { display: inline-flex; align-items: center; gap: 6px; font: 420 11.5px/1 var(--sans); color: var(--ink2); white-space: nowrap; }
.desk-card { margin: 14px 16px; padding: 14px; border: 1px solid var(--soft-line); border-radius: var(--r); background: var(--soft); }
.desk-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.desk-card-name { font: 550 14px/1.2 var(--sans); color: var(--ink); }
.desk-card-ids { font: 500 10.5px/1 var(--mono); color: var(--muted); }
.desk-card-note { font: 420 12px/1.5 var(--sans); color: var(--ink2); margin-bottom: 12px; }
.desk-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.desk-mini { padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--div); }
.desk-mini span:first-child { font: 420 12.5px/1 var(--sans); color: var(--ink2); }

/* Chain / technology */
.chain { display: flex; flex-direction: column; }
.chain-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.chain-label { display: inline-flex; align-items: center; gap: 9px; font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chain-label .dot { background: var(--gold); }
.chain-instance { font: 420 14px/1.6 var(--sans); color: var(--ink); }
.visible-when { display: flex; flex-direction: column; gap: 8px; margin: 22px 0; padding-left: 16px; border-left: 1px solid var(--line); }
.visible-when span { font: 420 14.5px/1.6 var(--sans); color: var(--ink2); }

/* Cards grid (perspective / guides) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(14px, 2vw, 22px); }
.card {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); box-shadow: var(--sh);
}
.card h3 { margin-bottom: 8px; }
.card p { font: 420 14px/1.62 var(--sans); color: var(--ink2); }
.card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.card-head .dot { background: var(--gold); }

.statement { font: 550 clamp(22px, 2.6vw, 32px)/1.32 var(--sans); letter-spacing: -.02em; color: var(--ink); text-wrap: pretty; }
.statement + .statement { margin-top: 14px; }
.close-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }

@media (max-width: 900px) { .hero-two, .two, .num-body { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .wide { display: none; } .narrow { display: block; } .panels { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .num-row { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .ledger-row, .chain-row { grid-template-columns: 1fr; gap: 4px; }
  .obs-row { grid-template-columns: 22px 52px minmax(0, 1fr); }
  .obs-token { display: none; }
  .desk-cols, .desk-row { grid-template-columns: 46px minmax(0, 1fr) 92px; }
}

/* ============================================================================
   Registry pages — hero, breadcrumbs, link cards
   ========================================================================== */
/* Registry pages set their own measure: a 46px heading across the full 1180px
   container is too wide to read. Scoped to these pages so the bespoke ones
   (home, about) keep the rhythm they were designed with. */
.reg-page .h-sec { max-width: 24ch; }
.reg-page .sec > .wrap > .p-lead { max-width: 68ch; }
.page-hero { padding-top: clamp(28px, 3.4vw, 44px); }
.page-hero-split > .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 5vw, 72px); align-items: start;
}
.page-hero-split .crumbs { grid-column: 1 / -1; }
.hero-visual-note { margin-top: 14px; font: 420 12px/1.55 var(--sans); color: var(--muted); }
.hero-figure { margin: 4px 0 0; }
/* The support-access line marches slowly, so it reads as access that is opened
   and closed rather than a permanent connection. */
.dg-access { animation: dgAccess 3s linear infinite; }
@keyframes dgAccess { to { stroke-dashoffset: -16; } }
@media (prefers-reduced-motion: reduce) { .dg-access { animation: none; } }

/* Compact variant of the flow, for a hero column. */
.flow-compact { margin-top: 4px; }
.flow-compact .flow-step { grid-template-columns: 26px 52px minmax(0, 1fr); padding: 9px 0; }
.flow-compact .flow-node { width: 9px; height: 9px; margin-top: 4px; }
.flow-compact .flow-rail, .flow-compact .flow-fill { left: 4px; }
.flow-compact .flow-marker { left: -2px; width: 11px; height: 11px; }
.flow-compact .flow-title { font: 510 13.5px/1.3 var(--sans); }
.flow-time { font: 500 11px/1.5 var(--mono); color: var(--muted); }
.flow-where { font: 420 11px/1.4 var(--sans); color: var(--muted); }

/* A diagram needs more room than a timeline does. */
.page-hero-wide > .wrap { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }

@media (max-width: 900px) {
  .page-hero-split > .wrap,
  .page-hero-wide > .wrap { grid-template-columns: 1fr; }
}
.page-h1 { margin-bottom: 20px; max-width: 20ch; }
.page-hero .p-lead + .p-lead { margin-top: 16px; }
.page-hero-ctas { margin-top: clamp(24px, 3vw, 34px); }

.crumbs { margin-bottom: 22px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.crumbs li { display: flex; align-items: center; gap: 7px; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.crumbs li:not(:last-child)::after { content: '/'; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* A card that is itself the link. */
.card-link { display: grid; align-content: start; color: var(--ink); transition: border-color .14s ease, box-shadow .14s ease; }
.card-link:hover { color: var(--ink); border-color: var(--field-border-hover); box-shadow: var(--sh-lg); }
.card-go { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font: 510 12.5px/1 var(--sans); color: var(--link); }
.card-link:hover .card-go { color: var(--link-hover); }

/* A worked visit trace. Reads as system output rather than marketing timeline:
   mono times on a rail, each event's consequences indented beneath it, and the
   one blocked state called out — that state is the whole point of the page. */
.trace {
  margin-top: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); overflow: hidden;
}
.trace-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--card2);
}
.trace-id { font: 600 11px/1 var(--mono); letter-spacing: .08em; color: var(--ink); }
.trace-meta { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.trace-steps { padding: 8px 20px 18px; }
.trace-step {
  position: relative; display: grid; grid-template-columns: 52px 18px minmax(0, 1fr);
  align-items: start; padding: 11px 0;
}
/* The rail is drawn by the steps themselves, so it never mismeasures. */
.trace-step::before {
  content: ''; position: absolute; left: 57px; top: 0; bottom: 0; width: 1px; background: var(--line);
}
.trace-step:first-child::before { top: 18px; }
.trace-step:last-child::before { bottom: auto; height: 18px; }
.trace-time { font: 500 11.5px/1.9 var(--mono); color: var(--muted); }
.trace-node {
  position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 7px; margin-left: 1px;
  border-radius: 9999px; background: var(--ink2); border: 2px solid var(--card);
  box-shadow: 0 0 0 1.5px var(--ink2);
}
.trace-step.is-active .trace-node { background: var(--gold); box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 5px color-mix(in srgb, var(--gold) 20%, transparent); }
.trace-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-left: 4px; }
.trace-label { font: 550 14.5px/1.4 var(--sans); color: var(--ink); }
.trace-detail { font: 420 12.5px/1.5 var(--sans); color: var(--muted); }

.trace-works { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.trace-work {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 9px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card2);
  font: 600 10.5px/1.4 var(--mono); letter-spacing: .06em; color: var(--ink);
}
.trace-work span { font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }
.trace-work-complete span { color: var(--ok); }
.trace-work-waiting { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.trace-work-waiting span { color: var(--warn); }
.trace-work-waiting::after {
  content: ''; width: 5px; height: 5px; border-radius: 9999px; background: var(--gold);
  animation: auraPulse 2s ease-in-out infinite;
}

.trace-blocked {
  margin-top: 6px; padding: 9px 12px; border-radius: var(--r-sm);
  border-left: 2px solid var(--warn); background: var(--card2);
  font: 420 12.5px/1.55 var(--sans); color: var(--ink2);
}
.trace-creates-list { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.trace-creates {
  position: relative; padding-left: 16px;
  font: 500 11.5px/1.5 var(--mono); color: var(--muted);
}
.trace-creates::before { content: '\21B3'; position: absolute; left: 0; color: var(--faint); }

@media (max-width: 560px) {
  .trace-steps { padding: 8px 14px 16px; }
  .trace-step { grid-template-columns: 44px 16px minmax(0, 1fr); }
  .trace-step::before { left: 49px; }
}

/* Animated step sequence — the spine, the travelling marker, steps lighting up
   as it passes. Shares its behaviour with the About page's observed journey
   (src/flow.js); only the class names differ. */
.flow { position: relative; margin-top: clamp(26px, 3.4vw, 40px); }
.flow-rail { position: absolute; left: 5px; width: 1px; background: var(--line); }
.flow-fill { position: absolute; left: 5px; width: 1px; background: var(--ink2); transition: height 1.5s cubic-bezier(.33, 0, .2, 1); }
.flow-marker {
  position: absolute; left: -1px; width: 13px; height: 13px; border-radius: 9999px;
  background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent);
  transition: top 1.5s cubic-bezier(.33, 0, .2, 1);
}
.flow-steps { display: flex; flex-direction: column; }
.flow-step {
  position: relative; display: grid; grid-template-columns: 34px 44px minmax(0, 1fr);
  align-items: baseline; padding: 15px 0;
  opacity: .42; transition: opacity .8s ease;
}
.flow-step.is-done { opacity: 1; }
.flow-node-cell { display: inline-flex; }
.flow-node {
  position: relative; width: 11px; height: 11px; margin-top: 5px;
  border-radius: 9999px; background: var(--card); border: 1.5px solid var(--faint);
}
.flow-node::after {
  content: ''; position: absolute; inset: 1.5px; border-radius: 9999px;
  background: var(--ink2); opacity: 0; transition: opacity .8s ease;
}
.flow-step.is-done .flow-node::after { opacity: 1; }
.flow-num { font: 500 11.5px/1.6 var(--mono); letter-spacing: .06em; color: var(--muted); }
.flow-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.flow-title { font: 550 16px/1.4 var(--sans); letter-spacing: -.012em; color: var(--ink); }
.flow-text { font: 420 14.5px/1.66 var(--sans); color: var(--ink2); max-width: 62ch; text-wrap: pretty; }

@media (max-width: 560px) {
  .flow-step { grid-template-columns: 26px minmax(0, 1fr); row-gap: 2px; }
  .flow-num { grid-column: 2; font-size: 10.5px; }
  .flow-body { grid-column: 2; }
  .flow-rail, .flow-fill { left: 4px; }
  .flow-marker { left: -2px; }
}

/* ============================================================================
   Legal pages — privacy policy and friends
   ========================================================================== */
.legal { padding-top: clamp(36px, 4vw, 56px); }
.legal-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(30px, 5vw, 64px); align-items: start; }
.legal-grid > * { min-width: 0; }
/* The aside is the scroller, not the <nav> inside it. Chrome renders <details>
   content inside a ::details-content pseudo-element, so flex sizing does not
   reach a child of <details> — constraining the nav there left it at its full
   height, clipped, with no way to reach the last sections. */
.legal-toc {
  position: sticky; top: 84px; max-height: calc(100vh - 120px);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--field-border-hover) transparent;
  padding-right: 4px;
}
.legal-toc::-webkit-scrollbar { width: 6px; }
.legal-toc::-webkit-scrollbar-thumb { background: var(--field-border-hover); border-radius: 3px; }
.legal-toc::-webkit-scrollbar-track { background: transparent; }
.toc-details > summary { display: none; }
.legal-toc nav { display: flex; flex-direction: column; gap: 1px; }
.legal-toc a {
  padding: 5px 10px; border-left: 2px solid var(--line); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font: 420 12px/1.4 var(--sans); color: var(--muted);
  transition: color .14s ease, border-color .14s ease, background .14s ease;
}
.legal-toc a:hover { color: var(--ink); background: var(--soft); }
.legal-toc a.is-current { color: var(--ink); border-left-color: var(--gold); font-weight: 550; }

/* Long-form prose. Measure is capped so the policy stays readable. */
.prose { max-width: 68ch; }
.prose h1 {
  font: 550 clamp(30px, 3.6vw, 44px)/1.12 var(--sans); letter-spacing: -.026em;
  color: var(--ink); text-wrap: pretty;
}
.prose h1 + p { margin-top: 14px; font: 500 12px/2 var(--mono); color: var(--muted); }
.prose h1 + p strong { font-weight: 500; color: var(--ink2); }
.prose h2 {
  margin: 48px 0 14px; padding-top: 6px;
  font: 550 21px/1.3 var(--sans); letter-spacing: -.018em; color: var(--ink);
  scroll-margin-top: 84px; text-wrap: pretty;
}
.prose h3 {
  margin: 30px 0 10px; font: 550 15px/1.4 var(--sans); color: var(--ink);
  scroll-margin-top: 84px;
}
.prose h4 { margin: 22px 0 8px; font: 550 13.5px/1.4 var(--sans); color: var(--ink2); }
.prose p { margin: 0 0 14px; font: 420 15px/1.72 var(--sans); color: var(--ink2); text-wrap: pretty; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { margin: 0 0 16px; display: flex; flex-direction: column; gap: 7px; }
.prose li {
  position: relative; padding-left: 20px;
  font: 420 15px/1.65 var(--sans); color: var(--ink2);
}
.prose ul > li::before {
  content: ''; position: absolute; left: 4px; top: 11px;
  width: 5px; height: 5px; border-radius: 9999px; background: var(--faint);
}
.prose ol { counter-reset: item; }
.prose ol > li { counter-increment: item; }
.prose ol > li::before {
  content: counter(item) '.'; position: absolute; left: 0; top: 0;
  font: 500 12px/1.9 var(--mono); color: var(--muted);
}
.prose hr { height: 0; margin: 36px 0 0; border: 0; border-top: 1px solid var(--line); }
.prose hr + h2 { margin-top: 40px; }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc {
    position: static; max-height: none; overflow: visible;
    padding-right: 0; padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .toc-details > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r);
    background: var(--card2); cursor: pointer; list-style: none;
  }
  .toc-details > summary::-webkit-details-marker { display: none; }
  .toc-count { font: 420 11.5px/1 var(--sans); color: var(--muted); }
  .toc-details[open] > summary { border-radius: var(--r) var(--r) 0 0; border-bottom-color: transparent; }
  .legal-toc nav {
    flex-direction: row; flex-wrap: wrap; gap: 6px;
    padding: 12px 13px; border: 1px solid var(--line); border-top: 0;
    border-radius: 0 0 var(--r) var(--r); background: var(--card2);
  }
  .legal-toc a {
    border-left: 0; border: 1px solid var(--line); border-radius: var(--r);
    padding: 5px 9px; font-size: 11.5px;
  }
  .legal-toc a.is-current { border-color: var(--gold); }
}

/* ============================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(30px, 4.4vw, 64px); align-items: start; }
.contact-grid > * { min-width: 0; }
.agenda { padding-top: 26px; border-top: 1px solid var(--line); max-width: 430px; }
.agenda-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; align-items: baseline; }
.agenda-row + .agenda-row { margin-top: 13px; }
.agenda-row span:first-child { font: 500 11px/1.5 var(--mono); color: var(--muted); }
.agenda-row span:last-child { font: 510 14.5px/1.5 var(--sans); color: var(--ink); }

.form-card { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--card); box-shadow: var(--sh); overflow: hidden; }
.form-inner { padding: clamp(22px, 2.6vw, 32px); }
.form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.form-head h2 { font: 550 19px/1.2 var(--sans); letter-spacing: -.016em; color: var(--ink); }
.form-head span { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.f2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.f2 > * { min-width: 0; }
.chip-group { margin-bottom: 20px; }
.chip-label { font: 500 11px/1 var(--sans); letter-spacing: .04em; color: var(--ink2); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border: 1px solid var(--field-border); border-radius: var(--r); background: var(--field);
  color: var(--ink2); font: 510 12.5px/1 var(--sans); cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { border-color: var(--field-border-hover); color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.form-error { margin-bottom: 14px; font: 550 12.5px/1.5 var(--sans); color: var(--danger); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.form-actions .aside { font: 420 12.5px/1.5 var(--sans); color: var(--ink2); max-width: 300px; }

.sent-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px;
  border-radius: var(--r); background: var(--soft); border: 1px solid var(--soft-line); margin-bottom: 22px;
}
.sent-badge .dot { background: var(--ok); }
.sent-badge span:last-child { font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.sent-title { margin-bottom: 16px; font: 550 clamp(20px, 2.2vw, 26px)/1.28 var(--sans); letter-spacing: -.02em; color: var(--ink); text-wrap: pretty; }
.sent-body { margin-bottom: 24px; font: 420 15px/1.65 var(--sans); color: var(--ink2); }
.sent-body strong { font-weight: 600; color: var(--ink); }
.summary { padding: 16px 18px; border-radius: var(--r-lg); background: var(--card2); border: 1px solid var(--line); margin-bottom: 24px; }
.summary-label { font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.summary-row { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--div); }
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { font: 600 10.5px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.summary-row dd { margin: 0; font: 510 13.5px/1.5 var(--sans); color: var(--ink); }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.three > * { min-width: 0; }
.col-label { font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.org-name { margin-bottom: 6px; font: 550 17px/1.35 var(--sans); letter-spacing: -.012em; color: var(--ink); }
.org-prop { margin-bottom: 16px; font: 510 14px/1.5 var(--sans); color: var(--ink2); }
.org-addr { font: 420 14.5px/1.7 var(--sans); color: var(--ink2); }
.direct { display: flex; flex-direction: column; gap: 16px; }
.direct-label { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.direct a { font: 550 16px/1.3 var(--sans); color: var(--link); }
.direct a.tel { font-family: var(--mono); font-weight: 500; }
.next-steps { display: flex; flex-direction: column; gap: 12px; }
.next-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.next-step span:first-child { font: 500 11px/1.5 var(--mono); color: var(--muted); }
.next-step span:last-child { font: 420 14.5px/1.6 var(--sans); color: var(--ink2); }
.scope-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font: 420 12.5px/1.6 var(--sans); color: var(--ink2); }

@media (max-width: 1020px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .three { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .f2 { grid-template-columns: 1fr; } }
