/* ============================================================================
   Sight — GetSight.App design-system stylesheet (adopted 2026-07-24)
   ----------------------------------------------------------------------------
   Single stylesheet for every public static surface. Token VALUES are copied
   verbatim from design/getsight-ds/tokens/*.css (the canonical source). Fonts
   are self-hosted (no CDN, zero external requests). Marketing is the light
   `.theme-light` scope; dark sections opt in with `.on-dark`.

   Discipline (design/getsight-ds/_adherence): every color/space value below the
   token block references a `var()` token — no raw hex outside :root/.theme-light/
   .on-dark, and only the three brand fonts (Schibsted Grotesk, Hanken Grotesk,
   JetBrains Mono).
   ========================================================================== */

/* ---------------------------------------------------------------- @font-face */
/* Self-hosted latin woff2 subsets (SIL Open Font License). No third-party request.
   Schibsted Grotesk ships one variable file spanning 700-800; Hanken one variable
   file spanning 400-800; JetBrains Mono one static 500. */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('fonts/schibsted-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/hanken-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-500-latin.woff2') format('woff2');
}

/* ============================================================================
   COLOR TOKENS  (from tokens/colors.css)
   ========================================================================== */
:root {
  /* Ink: cool near-black neutral ramp */
  --ink-950: #06080B;
  --ink-900: #0A0D12;
  --ink-850: #0F131A;
  --ink-800: #141922;
  --ink-750: #1A202B;
  --ink-700: #222A37;
  --ink-600: #2E3745;
  --ink-500: #3D4756;
  --ink-400: #55606F;
  --ink-300: #7C8898;
  --ink-200: #A6B0BD;
  --ink-100: #CDD4DD;
  --ink-50:  #E9ECF1;
  --ink-25:  #F4F6F9;
  --white:   #FFFFFF;
  --black:   #000000;

  /* Signal: Sight brand green */
  --signal-50:  #E7FBF2;
  --signal-100: #C4F5DF;
  --signal-200: #93ECC5;
  --signal-300: #57E0A6;
  --signal-400: #2ACE8B;
  --signal-500: #12B87A;
  --signal-600: #0C9A65;
  --signal-700: #0B7C52;
  --signal-800: #0C6143;
  --signal-900: #0A4531;

  /* Semantic hues */
  --live-500:   #FF4D5E;
  --live-400:   #FF6B7A;
  --alert-500:  #F5484A;
  --alert-400:  #FF6668;
  --warn-500:   #F5A524;
  --warn-400:   #FFB94D;
  --info-500:   #4C8DFF;
  --info-400:   #71A6FF;

  /* Alpha utilities (on dark) */
  --white-a04: rgba(255,255,255,0.04);
  --white-a06: rgba(255,255,255,0.06);
  --white-a08: rgba(255,255,255,0.08);
  --white-a12: rgba(255,255,255,0.12);
  --white-a16: rgba(255,255,255,0.16);
  --signal-glow: rgba(87,224,166,0.16);

  /* Semantic aliases — DARK (product default) */
  --bg:            var(--ink-900);
  --bg-elevated:   var(--ink-850);
  --surface:       var(--ink-800);
  --surface-2:     var(--ink-750);
  --surface-hover: var(--ink-700);
  --scrim:         rgba(6,8,11,0.72);

  --border:        var(--white-a08);
  --border-strong: var(--white-a16);
  --border-focus:  var(--signal-400);

  --text:          var(--ink-25);
  --text-muted:    var(--ink-200);
  --text-subtle:   var(--ink-300);
  --text-inverse:  var(--ink-950);
  --text-onaccent: var(--ink-950);

  --accent:        var(--signal-500);
  --accent-hover:  var(--signal-400);
  --accent-press:  var(--signal-600);
  --accent-quiet:  var(--signal-glow);
  --accent-text:   var(--signal-300);

  --success:       var(--signal-400);
  --danger:        var(--alert-500);
  --warning:       var(--warn-500);
  --info:          var(--info-500);
  --live:          var(--live-500);

  /* Button fills tuned for AA on their own theme (Ruling 8) */
  --btn-primary-bg:    var(--signal-500);
  --btn-primary-hover: var(--signal-400);
  --btn-primary-fg:    var(--ink-950);

  color-scheme: dark;
}

/* Semantic aliases — LIGHT (marketing) */
.theme-light {
  --bg:            var(--ink-25);
  --bg-elevated:   var(--white);
  --surface:       var(--white);
  --surface-2:     var(--ink-25);
  --surface-hover: var(--ink-50);
  --scrim:         rgba(10,13,18,0.48);

  --border:        rgba(10,13,18,0.10);
  --border-strong: rgba(10,13,18,0.18);
  --border-focus:  var(--signal-500);

  --text:          var(--ink-950);
  --text-muted:    var(--ink-500);
  --text-subtle:   var(--ink-400);
  --text-inverse:  var(--ink-25);
  --text-onaccent: var(--white);

  --accent:        var(--signal-600);
  /* Hover text must stay AA on light grounds: signal-500 is 2.6:1 there. */
  --accent-hover:  var(--signal-700);
  --accent-press:  var(--signal-700);
  --accent-quiet:  var(--signal-50);
  --accent-text:   var(--signal-700);

  --success:       var(--signal-600);
  --danger:        var(--alert-500);
  --warning:       #C97D0A;
  --info:          var(--info-500);
  --live:          var(--live-500);

  /* Deeper green fill so white button text clears AA (≥4.5:1) on light */
  --btn-primary-bg:    var(--signal-700);
  --btn-primary-hover: var(--signal-800);
  --btn-primary-fg:    var(--white);

  color-scheme: light;
}

/* Dark re-scope helper: restores the dark semantic aliases for a subtree that
   lives inside a light page (privacy strip, story, timeline card, CTA). */
.on-dark {
  --bg:            var(--ink-900);
  --bg-elevated:   var(--ink-850);
  --surface:       var(--ink-800);
  --surface-2:     var(--ink-750);
  --surface-hover: var(--ink-700);
  --scrim:         rgba(6,8,11,0.72);

  --border:        var(--white-a08);
  --border-strong: var(--white-a16);
  --border-focus:  var(--signal-400);

  --text:          var(--ink-25);
  --text-muted:    var(--ink-200);
  --text-subtle:   var(--ink-300);
  --text-inverse:  var(--ink-950);
  --text-onaccent: var(--ink-950);

  --accent:        var(--signal-500);
  --accent-hover:  var(--signal-400);
  --accent-press:  var(--signal-600);
  --accent-quiet:  var(--signal-glow);
  --accent-text:   var(--signal-300);

  --btn-primary-bg:    var(--signal-500);
  --btn-primary-hover: var(--signal-400);
  --btn-primary-fg:    var(--ink-950);

  /* dark shadows within the light page */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.30);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.40);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.50);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.60);

  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}

/* ============================================================================
   TYPOGRAPHY TOKENS  (from tokens/typography.css)
   ========================================================================== */
:root {
  --font-display: "Schibsted Grotesk", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans:    "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-extra:    800;
  --fw-black:    900;

  --text-2xs:  0.6875rem;
  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-md:   1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  3.75rem;
  --text-6xl:  4.75rem;

  --lh-tight:   1.05;
  --lh-snug:    1.18;
  --lh-heading: 1.25;
  --lh-body:    1.55;
  --lh-relaxed: 1.7;

  --ls-tighter: -0.03em;
  --ls-tight:   -0.02em;
  --ls-normal:  0em;
  --ls-wide:    0.02em;
  --ls-caps:    0.08em;

  --text-display: var(--fw-bold) var(--text-6xl)/var(--lh-tight) var(--font-display);
  --text-h1:      var(--fw-bold) var(--text-4xl)/var(--lh-snug) var(--font-display);
  --text-h2:      var(--fw-semibold) var(--text-2xl)/var(--lh-heading) var(--font-display);
  --text-h3:      var(--fw-semibold) var(--text-xl)/var(--lh-heading) var(--font-sans);
  --text-body:    var(--fw-regular) var(--text-base)/var(--lh-body) var(--font-sans);
  --text-label:   var(--fw-medium) var(--text-sm)/1.3 var(--font-sans);
  --text-caption: var(--fw-regular) var(--text-xs)/1.4 var(--font-sans);
  --text-mono:    var(--fw-medium) var(--text-xs)/1.3 var(--font-mono);
}

/* ============================================================================
   SPACING TOKENS  (from tokens/spacing.css)
   ========================================================================== */
:root {
  --space-0:  0;
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --container:      1200px;
  --container-text: 720px;
  --gutter:         var(--space-6);
  --gutter-mobile:  var(--space-4);

  --app-width:      390px;
  --safe-top:       54px;
  --safe-bottom:    34px;
  --tabbar-height:  64px;

  --control-sm: 32px;
  --control-md: 40px;
  --control-lg: 48px;
}

/* ============================================================================
   RADII TOKENS  (from tokens/radii.css)
   ========================================================================== */
:root {
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-3xl:  36px;
  --radius-full: 999px;
}

/* ============================================================================
   SHADOW / GLOW TOKENS  (from tokens/shadows.css)
   ========================================================================== */
:root {
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.30);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.40);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.50);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.60);

  --ring-hairline: inset 0 0 0 1px var(--border);
  --ring-strong:   inset 0 0 0 1px var(--border-strong);

  --focus-ring:  0 0 0 3px var(--accent-quiet);
  --glow-signal: 0 0 0 1px rgba(87,224,166,0.35), 0 8px 30px rgba(18,184,122,0.28);
  --glow-live:   0 0 12px rgba(255,77,94,0.55);
}
.theme-light {
  --shadow-xs: 0 1px 2px rgba(15,23,32,0.06);
  --shadow-sm: 0 2px 8px rgba(15,23,32,0.08);
  --shadow-md: 0 10px 30px rgba(15,23,32,0.10);
  --shadow-lg: 0 24px 60px rgba(15,23,32,0.14);
  --shadow-xl: 0 40px 90px rgba(15,23,32,0.16);
  --focus-ring: 0 0 0 3px rgba(18,184,122,0.20);
}

/* ============================================================================
   MOTION TOKENS  (from tokens/motion.css)
   ========================================================================== */
:root {
  --dur-instant: 80ms;
  --dur-fast:    140ms;
  --dur-base:    220ms;
  --dur-slow:    360ms;
  --dur-slower:  600ms;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:       cubic-bezier(0.4, 0, 1, 1);
  --ease-settle:   cubic-bezier(0.34, 1.4, 0.5, 1);

  --transition-colors: color var(--dur-fast) var(--ease-standard),
                        background-color var(--dur-fast) var(--ease-standard),
                        border-color var(--dur-fast) var(--ease-standard),
                        box-shadow var(--dur-fast) var(--ease-standard);
}

/* ============================================================================
   BASE + KEYFRAMES  (adapted from tokens/base.css)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.sight {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--text-body);
  letter-spacing: var(--ls-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.sight h1, .sight h2, .sight h3, .sight h4 { margin: 0; color: var(--text); }
.sight p { margin: 0; }
.sight ul { margin: 0; padding: 0; list-style: none; }
.sight a { color: var(--accent-text); text-decoration: none; }
.sight a:hover { color: var(--accent-hover); }
.sight img { max-width: 100%; display: block; }
::selection { background: var(--accent-quiet); color: var(--text); }

@keyframes sight-spin { to { transform: rotate(360deg); } }
@keyframes sight-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes sight-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sight-pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ============================================================================
   LAYOUT
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-8);
}
.wrap-text { max-width: var(--container-text); }
main { display: block; }
section { padding: var(--space-20) 0; }
.band-white { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-eyebrow {
  font: var(--text-mono);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  font-size: 0.6875rem;
  color: var(--accent-text);
  margin: 0 0 var(--space-3);
}
.section-head { max-width: 40em; margin-bottom: var(--space-10); }
h1, h2, h3 { margin: 0; }
.h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: var(--ls-tighter);
  color: var(--text);
}
.h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: var(--ls-tight);
  color: var(--text);
}
.h3 {
  font: var(--text-h3);
  color: var(--text);
}
.lede {
  font-size: var(--text-lg);
  line-height: var(--lh-body);
  color: var(--text-muted);
  max-width: 34em;
}

/* ============================================================================
   ICONS — inline Lucide-style outline, stroke 1.75, currentColor
   ========================================================================== */
.ico {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 22px; height: 22px; }
svg[hidden] { display: none; }

/* ============================================================================
   NAV / HEADER
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 -1px 0 var(--border);
}
.nav .wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
a.wordmark {
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: 1.5rem;
  letter-spacing: var(--ls-tighter);
  color: var(--text);
}
a.wordmark:hover { color: var(--text); }
.wordmark .dot { color: var(--accent); }
.nav-links { display: flex; gap: var(--space-6); align-items: center; }
.nav-links a { font: var(--text-label); color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: var(--space-3); align-items: center; }
.head-tag {
  font: var(--text-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  white-space: nowrap;
}

/* ============================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--control-md);
  padding: 0 var(--space-4);
  font: var(--text-base);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--transition-colors), transform var(--dur-fast) var(--ease-standard);
}
.btn:active { transform: scale(0.98); }
.btn-sm { height: var(--control-sm); padding: 0 var(--space-3); font: var(--text-sm); border-radius: var(--radius-sm); }
.btn-lg { height: var(--control-lg); padding: 0 var(--space-6); font: var(--text-md); }

/* Compound selectors (.btn.btn-*) so button colors win over the base `.sight a` link color */
.btn.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: var(--glow-signal);
}
.btn.btn-primary:hover { background: var(--btn-primary-hover); color: var(--btn-primary-fg); }

.btn.btn-secondary {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--ring-hairline);
}
.btn.btn-secondary:hover { background: var(--surface-hover); color: var(--text); }

.btn.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }

/* On the green CTA panel */
.btn.btn-onbrand {
  background: var(--white);
  color: var(--signal-900);
  box-shadow: none;
}
.btn.btn-onbrand:hover { background: var(--ink-50); color: var(--signal-900); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font: var(--text-label);
  font-weight: var(--fw-semibold);
  color: var(--accent-text);
}
.link-arrow:hover { color: var(--accent-hover); gap: var(--space-3); }
.link-arrow .ico { transition: transform var(--dur-fast) var(--ease-standard); }

/* ============================================================================
   BADGE / PILL / TAG (translated from components)
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: var(--accent-quiet);
  color: var(--accent-text);
  font: var(--text-caption);
  font-weight: var(--fw-semibold);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px 0 9px;
  border-radius: var(--radius-full);
  background: var(--white-a08);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  white-space: nowrap;
}
.status-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.is-armed { color: var(--accent-text); }

/* ============================================================================
   SIGNUP FORM
   ========================================================================== */
.signup { display: flex; gap: var(--space-3); flex-wrap: wrap; max-width: 460px; }
.signup input[type='email'] {
  flex: 1 1 220px;
  min-width: 0;
  font: var(--text-body);
  padding: 0 var(--space-4);
  height: var(--control-lg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
}
.signup input[type='email']::placeholder { color: var(--text-subtle); }
.signup input[type='email']:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--focus-ring);
}
.signup button {
  font: var(--text-md);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  height: var(--control-lg);
  padding: 0 var(--space-6);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  cursor: pointer;
  box-shadow: var(--glow-signal);
  transition: var(--transition-colors);
}
.signup button:hover { background: var(--btn-primary-hover); }
.signup button:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.signup button:disabled { opacity: 0.4; cursor: not-allowed; }
.form-note { flex-basis: 100%; font: var(--text-caption); color: var(--text-subtle); margin: 0; }
.signup .success,
.support-form .success {
  flex-basis: 100%;
  background: var(--accent-quiet);
  color: var(--accent-text);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--ring-hairline);
  margin: 0;
}

/* The other half of removing staging mode: a failed submit has to LOOK failed.
   Same weight as .success so neither reads as the quieter, more ignorable one. */
.signup .form-error,
.support-form .form-error {
  flex-basis: 100%;
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--ring-hairline);
  margin: 0;
}

/* ============================================================================
   SUPPORT FORM — the ASC Support URL surface (support.html)
   ========================================================================== */
.support-form { display: flex; flex-direction: column; gap: var(--space-3); max-width: 560px; }
.support-form label {
  font: var(--text-md);
  font-weight: var(--fw-semibold);
  color: var(--text);
}
.support-form input[type='email'],
.support-form textarea {
  width: 100%;
  box-sizing: border-box;
  font: var(--text-body);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
}
.support-form input[type='email'] { height: var(--control-lg); padding-block: 0; }
.support-form textarea { min-height: 9rem; resize: vertical; }
.support-form input[type='email']::placeholder,
.support-form textarea::placeholder { color: var(--text-subtle); }
.support-form input[type='email']:focus,
.support-form textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--focus-ring);
}
.support-form button {
  align-self: flex-start;
  font: var(--text-md);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  height: var(--control-lg);
  padding: 0 var(--space-6);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  cursor: pointer;
  box-shadow: var(--glow-signal);
  transition: var(--transition-colors);
}
.support-form button:hover { background: var(--btn-primary-hover); }
.support-form button:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.support-form button:disabled { opacity: 0.4; cursor: not-allowed; }
.support-form input:disabled,
.support-form textarea:disabled { opacity: 0.6; }

/* CTA panel form: white field + inverse button on green */
.cta-final .signup input[type='email'] {
  background: var(--white);
  border-color: transparent;
  color: var(--ink-950);
}
.cta-final .signup button { background: var(--white); color: var(--signal-900); box-shadow: none; }
.cta-final .signup button:hover { background: var(--ink-50); }
.cta-final .form-note { color: rgba(255,255,255,0.82); }

/* ============================================================================
   HERO
   ========================================================================== */
.hero { padding: var(--space-16) 0 var(--space-20); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-12);
  align-items: center;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin-top: var(--space-8); }
.hero-cta .signup { margin: 0; }
.hero .h1 { margin-top: var(--space-5); }
.hero .lede { margin-top: var(--space-5); }
.hero-trust {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-6);
  font: var(--text-caption);
  color: var(--text-subtle);
}
.hero-trust .ico { color: var(--accent-text); }
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-glow {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18,184,122,0.16), transparent 70%);
  pointer-events: none;
}

/* Phone mock — dark, footage-free (Ruling 1): moment notes + signal summary */
.phone {
  position: relative;
  width: 300px;
  max-width: 100%;
  background: var(--ink-900);
  border-radius: var(--radius-2xl);
  padding: 14px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--white-a06);
}
.phone-screen { border-radius: var(--radius-lg); }
.phone-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px 12px;
}
.phone-title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-md); color: var(--ink-25); }
.phone-day { font: var(--text-mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--ink-300); }
.phone-moment {
  display: flex; gap: 12px; align-items: baseline;
  padding: 10px 6px;
  border-top: 1px solid var(--white-a06);
}
.phone-moment:first-of-type { border-top: 0; }
.phone-moment .t {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.02em;
  color: var(--ink-300);
  flex: 0 0 4.4em;
}
.phone-moment .n { font-size: 0.8125rem; line-height: 1.4; color: var(--ink-50); }
.phone-moment .n em { font-style: normal; color: var(--ink-300); }
.phone-summary {
  margin-top: 12px;
  background: var(--signal-glow);
  border-radius: var(--radius-md);
  padding: 13px;
  box-shadow: inset 0 0 0 1px rgba(87,224,166,0.22);
}
.phone-summary .sum-eyebrow {
  display: flex; align-items: center; gap: 7px;
  color: var(--signal-300);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  margin-bottom: 6px;
}
.phone-summary .sum-body { font-size: 0.8125rem; line-height: 1.5; color: var(--ink-50); }

/* Plain mock foot line (wedge mocks) */
.phone-foot {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  line-height: 1.4;
}
.phone-foot.tone-ok { background: var(--signal-glow); color: var(--signal-300); box-shadow: inset 0 0 0 1px rgba(87,224,166,0.22); }
.phone-foot.tone-amber { background: rgba(245,165,36,0.15); color: var(--warn-400); box-shadow: inset 0 0 0 1px rgba(245,165,36,0.28); }
.phone-foot.tone-neutral { background: var(--white-a06); color: var(--ink-200); }
.phone-subhead { padding: 14px 6px 4px; }
.phone-subhead .phone-title { font-size: var(--text-base); }

/* ============================================================================
   CAMERA TILE (kit "camera tile") — footage image + StatusPill + mono label.
   Used by the HeroMock (front door) and each wedge phone mock. The scrim keeps
   the white label AA over the brightest reasonable footage (see sampled floor).
   ========================================================================== */
.cam {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0c1416;
}
.cam-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 30%, transparent 38%, rgba(0,0,0,0.55)),
    linear-gradient(0deg, rgba(0,0,0,0.62) 0%, transparent 42%);
}
.cam-pill { position: absolute; top: 10px; left: 10px; }
.cam-label {
  position: absolute; left: 12px; bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}
/* live pill sitting over imagery — dark backing so the green stays legible */
.status-pill.on-cam {
  height: 24px; padding: 0 10px 0 8px;
  background: rgba(6,8,11,0.55);
  color: var(--signal-300);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}
.status-pill.on-cam .dot { animation: sight-pulse 2s var(--ease-standard) infinite; }

/* ============================================================================
   STORYSCROLL (Ruling 3, founder rev 07-24) — full-bleed scene photography.
   Default (no-JS / reduced-motion): scenes stacked, each photo visible with an
   overlaid moment card. JS adds .is-scroll → sticky, crossfading full-bleed
   images with a subtle scale drift. Overlay copy stays claim-safe (our verbatim
   5 scene texts — never the kit's face-recognition example lines).
   ========================================================================== */
.story { padding: 0; }
.story-track { position: relative; }
.story-stage { position: relative; padding: var(--space-20) 0; }

/* chrome: eyebrow + section title + progress dots */
.story-chrome { position: relative; z-index: 3; }
.story-topline { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.story-eyebrow {
  font: var(--text-mono); font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--text-subtle); margin: 0;
}
.story-title { max-width: 16em; margin-top: var(--space-4); }
.story-dots { display: none; gap: 8px; }
.story-dots span {
  width: 7px; height: 7px; border-radius: 4px;
  background: var(--white-a16);
  transition: all var(--dur-base) var(--ease-standard);
}
.story-dots span.on { width: 22px; background: var(--signal-400); }

/* scenes: full photo + scrim + moment card */
.story-scenes {
  display: grid; gap: var(--space-6);
  max-width: var(--container); margin: var(--space-10) auto 0;
  padding: 0 var(--space-8);
}
.scene { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.scene-pic { display: block; }
.scene-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #0c1416; }
.scene-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,8,11,0.86) 0%, rgba(6,8,11,0.40) 44%, rgba(6,8,11,0.06) 72%),
    linear-gradient(0deg, rgba(6,8,11,0.80) 0%, rgba(6,8,11,0.30) 32%, transparent 55%);
}
.scene-inner { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.scene-inner .wrap { padding-bottom: var(--space-6); }
.scene-card {
  max-width: 30em;
  background: rgba(15,19,26,0.72);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: inset 0 0 0 1px var(--white-a16);
}
.scene-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.scene-ico {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white-a08);
}
.scene-ico.tone-signal { color: var(--signal-300); }
.scene-ico.tone-info { color: var(--info-400); }
.scene-ico.tone-neutral { color: var(--ink-200); }
.scene-stamp {
  font-family: var(--font-mono); font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: rgba(255,255,255,0.75);
}
.scene h3 { font: var(--text-h3); color: #fff; margin-bottom: 4px; }
.scene p { font: var(--text-body); color: rgba(255,255,255,0.82); line-height: 1.5; margin: 0; }

/* Scroll mode (JS + motion OK): sticky full-bleed crossfade + scale drift */
.story.is-scroll .story-track { height: 500vh; }
.story.is-scroll .story-stage {
  position: sticky; top: 0;
  height: 100vh; padding: 0;
  overflow: hidden;
}
.story.is-scroll .story-chrome { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.story.is-scroll .story-chrome .wrap { padding-top: var(--space-10); }
.story.is-scroll .story-eyebrow { color: rgba(255,255,255,0.72); }
.story.is-scroll .story-title { margin-top: var(--space-5); color: #fff; }
.story.is-scroll .story-dots { display: inline-flex; }
.story.is-scroll .story-scenes {
  position: absolute; inset: 0; z-index: 1;
  display: block; max-width: none; margin: 0; padding: 0;
}
.story.is-scroll .scene {
  position: absolute; inset: 0;
  border-radius: 0; box-shadow: none;
  opacity: 0; transition: opacity var(--dur-slow) var(--ease-standard);
  pointer-events: none;
}
.story.is-scroll .scene.is-active { opacity: 1; }
.story.is-scroll .scene-pic { position: absolute; inset: 0; }
.story.is-scroll .scene-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; aspect-ratio: auto;
  transform: scale(1.04); transform-origin: center;
  transition: transform 0.9s linear;
}
.story.is-scroll .scene-inner { z-index: 2; }
.story.is-scroll .scene-inner .wrap { padding-bottom: var(--space-16); }

/* ============================================================================
   FEATURES GRID
   ========================================================================== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--ring-hairline);
  padding: var(--space-6);
}
.card-ico {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--accent-quiet);
  color: var(--accent-text);
  margin-bottom: var(--space-4);
}
.card h3 { font: var(--text-h3); color: var(--text); margin-bottom: var(--space-2); }
.card p { font: var(--text-body); color: var(--text-muted); line-height: 1.5; }

/* ============================================================================
   SHOWCASE — text-only timeline (Ruling 1) + stat cards
   ========================================================================== */
.showcase .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-12);
  align-items: center;
}
.stat-row { display: flex; gap: var(--space-5); margin-top: var(--space-8); flex-wrap: wrap; }
.stat-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: var(--space-5);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--ring-hairline);
  min-width: 140px;
}
.stat-label {
  font: var(--text-mono); font-size: 0.625rem;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--text-subtle);
}
.stat-value { display: flex; align-items: baseline; gap: 5px; }
.stat-value b {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 2.15rem;
  letter-spacing: var(--ls-tight);
  color: var(--text);
  line-height: 1;
}
.stat-value span { font: var(--text-label); color: var(--text-muted); }
.stat-delta { display: inline-flex; align-items: center; gap: 5px; font: var(--text-caption); color: var(--accent-text); }

/* dark timeline mini-panel */
.timeline-panel {
  background: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.timeline-day {
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  font-size: 0.625rem; color: var(--ink-300);
  padding: 8px 10px;
}
.event-row {
  display: flex; align-items: center; gap: 13px;
  padding: 10px;
  border-radius: var(--radius-md);
}
.event-chip {
  width: 44px; height: 44px; flex: none;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
}
.event-chip.type-person  { background: var(--signal-glow); color: var(--signal-300); }
.event-chip.type-package  { background: rgba(76,141,255,0.16); color: var(--info-400); }
.event-chip.type-vehicle  { background: rgba(76,141,255,0.16); color: var(--info-400); }
.event-chip.type-motion   { background: rgba(245,165,36,0.16); color: var(--warn-500); }
.event-body { flex: 1; min-width: 0; }
.event-title {
  font: var(--text-body); font-weight: var(--fw-medium); color: var(--ink-25);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.event-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.event-cam {
  font-family: var(--font-mono); font-size: 0.625rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-300);
}
.event-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-400); }
.event-time { font: var(--text-caption); color: var(--ink-300); }
.event-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--signal-400); flex: none; }
.event-chev { color: var(--ink-400); display: flex; }

/* ============================================================================
   WEDGE CARDS ("four ways in")
   ========================================================================== */
.wedge-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-5); }
.wedge-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--ring-hairline);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}
.wedge-card .eyebrow {
  font: var(--text-mono); font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--accent-text);
  margin-bottom: var(--space-3);
}
.wedge-card h3 { font: var(--text-h3); color: var(--text); margin-bottom: var(--space-3); line-height: 1.2; }
.wedge-card ul { margin-bottom: var(--space-5); }
.wedge-card li {
  font: var(--text-body);
  color: var(--text-muted);
  padding: 5px 0 5px var(--space-5);
  position: relative;
}
.wedge-card li::before { content: '—'; position: absolute; left: 0; color: var(--accent-text); }
.wedge-card .link-arrow { margin-top: auto; }

/* ============================================================================
   HOW IT WORKS — numbered steps
   ========================================================================== */
.steps { counter-reset: step; }
.step-card { position: relative; padding-top: var(--space-8); }
.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: calc(-1 * var(--space-4));
  left: var(--space-5);
  width: 34px; height: 34px;
  border-radius: 50%;
  /* --btn-primary-bg (signal-700 in light) keeps white numerals AA (5.2:1);
     bare --accent is signal-600 there and fails at this size (3.6:1). */
  background: var(--btn-primary-bg);
  color: var(--text-onaccent);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  display: grid; place-items: center;
}

/* ============================================================================
   PRIVACY STRIP (dark section)
   ========================================================================== */
.privacy-strip { background: var(--ink-950); }

/* ============================================================================
   PRICING
   ========================================================================== */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-5); margin-bottom: var(--space-5); }
.tier {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--ring-hairline);
  padding: var(--space-6);
}
.tier.featured { box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow-md); }
.tier h3 { font: var(--text-h3); color: var(--text); margin-bottom: 2px; }
.tier .price { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-2xl); color: var(--text); margin: 0 0 var(--space-4); letter-spacing: var(--ls-tight); }
.tier .price span { font-size: var(--text-md); font-weight: var(--fw-regular); color: var(--text-subtle); }
.tier li {
  font: var(--text-body);
  color: var(--text-muted);
  padding: 4px 0 4px var(--space-6);
  position: relative;
}
.tier li::before {
  content: '';
  position: absolute; left: 0; top: 0.7em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg);
}
.pledge {
  border-left: 3px solid var(--warning);
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4) var(--space-5);
  font: var(--text-body);
  color: var(--text);
  max-width: 46em;
}
.pledge strong { font-weight: var(--fw-semibold); }

/* ============================================================================
   CTA (green panel)
   ========================================================================== */
.cta-final { padding: var(--space-20) 0; }
.cta-panel {
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-12);
  background: linear-gradient(135deg, var(--signal-800), var(--signal-900));
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-panel h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: var(--ls-tight);
  color: var(--white);
  margin: 0;
}
.cta-panel p { font-size: var(--text-lg); color: rgba(255,255,255,0.88); margin: var(--space-4) auto 0; max-width: 40em; }
.cta-panel .signup { margin: var(--space-8) auto 0; justify-content: center; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-foot { border-top: 1px solid var(--border); padding: var(--space-10) 0; }
.site-foot .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap;
}
.foot-disclaimer { font: var(--text-caption); color: var(--text-subtle); max-width: 34em; }
.foot-nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.foot-nav a { font: var(--text-caption); color: var(--text-muted); }
.foot-nav a:hover { color: var(--text); }

/* ============================================================================
   PRIVACY POLICY PAGE
   ========================================================================== */
.policy { max-width: var(--container-text); margin: 0 auto; padding: var(--space-2) var(--space-6) var(--space-24); }
.policy h1 {
  font-family: var(--font-display); font-weight: var(--fw-extra);
  font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--text);
  letter-spacing: var(--ls-tight); margin-bottom: var(--space-3);
}
.policy .lead { font-size: var(--text-lg); color: var(--text-muted); margin-bottom: var(--space-8); max-width: 40em; }
.policy h2 {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--text-xl); color: var(--text);
  /* 68px = the sticky .nav's height (.nav .wrap): an anchored heading must land
     below it, not under it, or a questionnaire link opens on a hidden title. */
  margin: var(--space-10) 0 var(--space-3); scroll-margin-top: calc(68px + var(--space-5));
}
.policy h3 { font: var(--text-h3); color: var(--text); margin: var(--space-5) 0 var(--space-2); }
.policy p { color: var(--text); margin-bottom: var(--space-4); line-height: var(--lh-body); }
.policy ul { margin: 0 0 var(--space-4) 0; padding-left: var(--space-6); list-style: disc; }
.policy li { margin-bottom: 9px; color: var(--text); line-height: var(--lh-body); }
.policy li strong, .policy p strong { font-weight: var(--fw-semibold); color: var(--text); }
.policy a { color: var(--accent-text); }
.policy a:hover { color: var(--accent-hover); }

/* The limits of the promise (privacy.html#limits): a calm, neutral box. It is
   the caveats section, not a warning, so it carries no alert colour. */
.limits {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--ring-hairline);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-3) 0 var(--space-4);
}
.limits p:last-child { margin-bottom: 0; }
.updated-line { font: var(--text-caption); color: var(--text-subtle); margin-bottom: var(--space-6); }

.tl-dr {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--ring-hairline);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-5) 0 var(--space-2);
}
.tl-dr h2 { margin-top: 0; }
.tl-dr ul { margin-bottom: 0; }

.toc { font: var(--text-body); color: var(--text-muted); margin: var(--space-6) 0 var(--space-2); }
.toc a { color: var(--accent-text); }
.toc a:hover { color: var(--accent-hover); }

.keeps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin: var(--space-3) 0 var(--space-4); }
.keeps .box { border-radius: var(--radius-lg); padding: var(--space-5); background: var(--surface); box-shadow: var(--ring-hairline); }
.keeps .box.no { background: var(--accent-quiet); box-shadow: inset 0 0 0 1px rgba(18,184,122,0.24); }
.keeps .box h3 { margin-top: 0; }
.keeps .box ul { margin-bottom: 0; }

.contact-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--ring-hairline);
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-3);
}
.contact-card p { margin-bottom: var(--space-2); }
.contact-card p:last-child { margin-bottom: 0; }
.muted-soft { color: var(--text-subtle); }

/* ============================================================================
   APP-ACCESS (QR) PAGE
   ========================================================================== */
.access { max-width: 640px; margin: 0 auto; padding: 0 var(--space-6); }
.access-head { padding: var(--space-6) 0; }
.access-hero { padding: var(--space-6) 0 var(--space-2); text-align: center; }
.access-hero h1 {
  font-family: var(--font-display); font-weight: var(--fw-extra);
  font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--text);
  line-height: 1.12; letter-spacing: var(--ls-tight);
}
.access-hero .sub { font-size: var(--text-lg); color: var(--text-muted); max-width: 30em; margin: var(--space-4) auto 0; }

.qr-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), var(--ring-hairline);
  padding: var(--space-8);
  margin: var(--space-8) 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.qr-frame {
  width: 232px; height: 232px; padding: 14px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--ring-hairline);
}
.qr-frame svg { display: block; width: 100%; height: 100%; }
a.qr-url {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--text-lg); color: var(--text);
  margin-top: var(--space-5);
}
a.qr-url:hover { color: var(--accent-text); }
.qr-hint { font: var(--text-caption); color: var(--text-subtle); margin-top: var(--space-2); }

.steps-list { list-style: none; counter-reset: s; margin: var(--space-2) 0 0; padding: 0; }
.steps-list li {
  counter-increment: s; position: relative;
  padding: var(--space-4) 0 var(--space-4) 46px;
  border-top: 1px solid var(--border);
  font: var(--text-md); color: var(--text);
}
.steps-list li:first-child { border-top: 0; }
.steps-list li::before {
  content: counter(s);
  position: absolute; left: 0; top: var(--space-3);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-quiet); color: var(--accent-text);
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--text-sm); display: grid; place-items: center;
}
.steps-list li strong { font-weight: var(--fw-semibold); color: var(--text); }
.steps-list li span { color: var(--text-muted); }

.access-note {
  border-left: 3px solid var(--warning);
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4) var(--space-5); margin: var(--space-8) 0 var(--space-2);
  font: var(--text-body); color: var(--text);
}
.access-note strong { font-weight: var(--fw-semibold); }
.access-foot { text-align: center; padding: var(--space-10) 0 var(--space-12); }
.access-foot p { font: var(--text-caption); color: var(--text-subtle); }

/* ============================================================================
   HUB (internal preview index)
   ========================================================================== */
.hub { max-width: 640px; margin: 8vh auto; padding: 0 var(--space-6); }
.hub h1 { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: var(--text-3xl); letter-spacing: var(--ls-tight); color: var(--text); margin-bottom: var(--space-3); }
.hub > p { color: var(--text-muted); margin-bottom: var(--space-4); }
.hub .group-label {
  font: var(--text-mono); font-size: 0.6875rem; letter-spacing: var(--ls-caps);
  text-transform: uppercase; color: var(--text-subtle);
  margin: var(--space-6) 0 var(--space-2);
}
.hub a.hub-link {
  display: block; padding: var(--space-4) var(--space-5); margin: var(--space-3) 0;
  border-radius: var(--radius-md);
  box-shadow: var(--ring-hairline);
  background: var(--surface);
  color: var(--text); font-weight: var(--fw-semibold);
}
.hub a.hub-link:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--text); }
.hub a.hub-link .muted { font-weight: var(--fw-regular); color: var(--text-subtle); }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .wrap { padding: 0 var(--space-5); }
  .hero .wrap { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero-visual { order: -1; }
  .showcase .wrap { grid-template-columns: 1fr; gap: var(--space-8); }
  .grid-3, .tiers { grid-template-columns: 1fr; }
  .wedge-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: var(--space-16) 0; }
}
@media (max-width: 700px) {
  /* Decorative nav pill yields to the CTA button on small screens */
  .nav .head-tag { display: none; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .keeps { grid-template-columns: 1fr; }
  .cta-panel { padding: var(--space-10) var(--space-5); }
  .signup { flex-direction: column; }
  .signup input[type='email'], .signup button { width: 100%; }
  .site-foot .wrap { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion: no scroll-driven story, no idle animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Defensive: JS never adds .is-scroll under reduce, but if the preference
     flips at runtime, collapse the scroll rig back to the stacked layout with
     every photo still shown. */
  .story.is-scroll .story-track { height: auto; }
  .story.is-scroll .story-stage { position: static; height: auto; padding: var(--space-20) 0; overflow: visible; }
  .story.is-scroll .story-chrome { position: static; }
  .story.is-scroll .story-chrome .wrap { padding-top: 0; }
  .story.is-scroll .story-eyebrow { color: var(--text-subtle); }
  .story.is-scroll .story-title { color: var(--text); }
  .story.is-scroll .story-scenes { position: static; display: grid; gap: var(--space-6); max-width: var(--container); margin: var(--space-10) auto 0; padding: 0 var(--space-8); }
  .story.is-scroll .scene { position: relative; inset: auto; opacity: 1; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
  .story.is-scroll .scene-pic, .story.is-scroll .scene-img { position: static; }
  .story.is-scroll .scene-img { width: 100%; height: auto; aspect-ratio: 16 / 9; transform: none; }
  .story.is-scroll .scene-inner .wrap { padding-bottom: var(--space-6); }
  .story.is-scroll .story-dots { display: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* architecture page: full-width figure and table */
.flowfig svg { width: 100%; }
.sys { width: 100%; }
