/* MS Cyber · mscyber.org
   Brand: design/brand/README.md. Dark only. No inline styles anywhere (the CSP forbids them). */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Martian Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/martian-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Martian Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/martian-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens (design/brand/tokens.json) ---------- */
:root {
  --carbon: #0b0e1c;
  --ultra: #4a5af0;
  --mint: #3ee0b0;
  --marigold: #ffb23e;
  --surface: var(--carbon);
  --surface-raised: #131830;
  --surface-high: #1c2242;
  --line: #2a3158;
  --line-strong: #6670a8;
  --text: #eef0f8;
  --text-muted: #a3a9cb;
  --primary: var(--ultra);
  --primary-strong: #3a49d6;
  --on-primary: #ffffff;
  --link: #8f9bff;
  --accent: var(--mint);
  --on-accent: #0b0e1c;
  --status-verified: var(--mint);
  --status-watch: var(--marigold);
  --status-exposed: #ff7a70;
  --focus: var(--marigold);
  --rule-on-ultra: rgba(255, 255, 255, 0.35);

  --font-display: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, sans-serif;
  --font-text: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-sm: 4px; --radius-md: 10px; --radius-tile: 16px;
  --perf-hole: 5px; --perf-pitch: 11px; --notch: 18px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: max(16px, 4vw);
  --section-y: clamp(64px, 8vw, 112px);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--surface); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--surface); color: var(--text);
  font-family: var(--font-text); font-size: 17px; line-height: 27px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
main [id], section[id] { scroll-margin-top: 84px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--marigold); color: var(--carbon); font-weight: 600;
  padding: 10px 16px; border-radius: var(--radius-md); text-decoration: none;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--raised { background: var(--surface-raised); }
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: flex-start; }
.split--center { align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 64px; align-items: flex-end; margin-bottom: 40px; }
.section-head > :first-child { flex: 1 1 480px; min-width: 0; }
.section-head > p { flex: 1 1 320px; min-width: 0; }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 16px; font-family: var(--font-mono); font-weight: 500;
  font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--mint);
}
.eyebrow--muted { color: var(--text-muted); }
.eyebrow--plain { color: inherit; }
.display {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 6.4vw, 84px); line-height: .96; letter-spacing: -.03em; text-wrap: balance;
}
.h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 4vw, 52px); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance;
}
.h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.15; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; max-width: 34em; margin-top: 24px; }
.body-lg { font-size: 18px; line-height: 1.55; max-width: 34em; margin-top: 24px; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; line-height: 21px; }
.mono { font-family: var(--font-mono); font-weight: 500; }
.src { margin-top: 6px; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--text-muted); }
.mark { background: var(--mint); color: var(--on-accent); padding: 0 .12em; border-radius: var(--radius-sm); }
.section-intro { font-size: 16px; line-height: 1.55; color: var(--text-muted); margin: 0; }
.h2 + .lead, .h2 + .body-lg { margin-top: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-6);
  font-family: var(--font-text); font-size: 15px; font-weight: 600; line-height: 1;
  border-radius: var(--radius-md); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.btn--secondary { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn--secondary:hover { background: var(--surface-high); }
.btn--dark { background: var(--carbon); border-color: var(--carbon); color: var(--text); }
.btn--dark:hover { background: var(--surface-raised); border-color: var(--surface-raised); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Signal ---------- */
.signal {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}
.signal::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: currentColor; flex: none; }
.signal--verified { color: var(--status-verified); }
.signal--watch { color: var(--status-watch); }
.signal--exposed { color: var(--status-exposed); }
.signal--watch::before { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Perforation (the tear line from the mark) ---------- */
.perf {
  --perf-ground: var(--surface); --perf-fill: transparent;
  position: relative; height: var(--notch); overflow: hidden; background: var(--perf-fill);
}
.perf::before {
  content: ""; position: absolute; left: var(--notch); right: var(--notch); top: 50%;
  height: var(--perf-hole); margin-top: calc(var(--perf-hole) / -2);
  background-image: radial-gradient(circle at center, var(--perf-ground) 0 calc(var(--perf-hole) / 2), transparent calc(var(--perf-hole) / 2 + .5px));
  background-size: var(--perf-pitch) var(--perf-hole); background-repeat: repeat-x; background-position: center;
}
.perf i { position: absolute; top: 0; width: var(--notch); height: var(--notch); border-radius: 50%; background: var(--perf-ground); }
.perf i:first-child { left: calc(var(--notch) / -2); }
.perf i:last-child { right: calc(var(--notch) / -2); }
.perf--band { --perf-ground: var(--surface); --perf-fill: var(--surface-high); border-radius: 2px; }

/* ---------- Receipt (the signature object) ---------- */
.panel-ultra { background: var(--ultra); color: var(--on-primary); border-radius: var(--radius-tile); }
.receipt { width: 340px; max-width: 100%; color: var(--text); font-family: var(--font-mono); }
.receipt--sm { width: 300px; }
.receipt--md { width: 360px; }
.receipt--lg { width: 380px; }
.r-sheet {
  background: var(--surface-raised); border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: var(--space-6) var(--space-6) var(--space-4); display: grid; gap: var(--space-2);
}
.r-stub {
  background: var(--surface-high); border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: var(--space-3) var(--space-6) var(--space-6); display: grid; gap: var(--space-2);
}
.receipt .perf { --perf-ground: var(--ultra); --perf-fill: var(--surface-high); }
.r-line { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); font-size: 12px; line-height: 18px; }
.r-head { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.r-head, .r-meta { flex-wrap: wrap; row-gap: 0; }
.r-no, .r-meta span { white-space: nowrap; }
.r-no, .r-meta { color: var(--text-muted); }
.r-example span {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 1px 6px; border-radius: 2px;
  background: var(--accent); color: var(--on-accent);
}
.r-rule { height: 0; border-top: 1px solid var(--line); margin: var(--space-1) 0; }
.r-row { align-items: start; }
.r-label { flex: none; width: 82px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); padding-top: 1px; }
.r-value { flex: 1; min-width: 0; text-align: right; font-weight: 500; }
.r-status .signal { margin-left: auto; }
.r-verified { justify-content: flex-start; font-family: var(--font-text); font-size: 13px; color: var(--text-muted); padding-top: var(--space-1); }

/* Hero signature moment: print line by line, then the stub tears along the perforation. */
.receipt--feed .r-line { animation: feed 260ms var(--ease) both; }
.receipt--feed .r-sheet .r-line:nth-child(1) { animation-delay: 80ms; }
.receipt--feed .r-sheet .r-line:nth-child(2) { animation-delay: 150ms; }
.receipt--feed .r-sheet .r-line:nth-child(3) { animation-delay: 220ms; }
.receipt--feed .r-sheet .r-line:nth-child(4) { animation-delay: 290ms; }
.receipt--feed .r-sheet .r-line:nth-child(5) { animation-delay: 360ms; }
.receipt--feed .r-sheet .r-line:nth-child(6) { animation-delay: 430ms; }
.receipt--feed .r-sheet .r-line:nth-child(7) { animation-delay: 500ms; }
.receipt--feed .r-sheet .r-line:nth-child(8) { animation-delay: 570ms; }
.receipt--feed .r-sheet .r-line:nth-child(9) { animation-delay: 640ms; }
.receipt--feed .r-sheet .r-line:nth-child(10) { animation-delay: 710ms; }
.receipt--feed .r-stub .r-line:nth-child(1) { animation-delay: 820ms; }
.receipt--feed .r-stub .r-line:nth-child(2) { animation-delay: 890ms; }
.receipt--feed .r-stub .r-line:nth-child(3) { animation-delay: 960ms; }
.receipt--feed .r-tear { animation: tear 420ms var(--ease) 1.45s both; transform-origin: 0 0; }
@keyframes feed { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes tear { from { transform: none; } to { transform: translate(6px, 12px) rotate(2.5deg); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 15px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav a:not(.btn):hover { color: var(--link); }
.menu-btn {
  display: none; margin-left: auto; min-height: 44px; padding: 0 16px; border-radius: var(--radius-md);
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font: 600 15px/1 var(--font-text); cursor: pointer; align-items: center;
}
@media (max-width: 879px) { .nav { gap: 20px; } }
@media (max-width: 759px) {
  .js .menu-btn { display: inline-flex; }
  .js .nav { display: none; }
  .js .site-header.is-open .nav {
    display: flex; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 4px 0 12px;
  }
  .js .site-header.is-open .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .js .site-header.is-open .nav .btn { margin-top: 16px; align-self: flex-start; }
  html:not(.js) .nav { flex-wrap: wrap; gap: 8px 20px; margin-left: 0; flex-basis: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px); }
.hero .split { align-items: center; }
.hero-note { margin-top: 20px; }
.hero-stage { position: relative; min-height: 560px; overflow: hidden; display: flex; justify-content: flex-end; align-items: flex-start; padding: 48px clamp(16px, 4vw, 40px) 64px; }
.hero-back { position: absolute; left: 6%; top: 120px; transform: rotate(-5deg); opacity: .95; }
.hero-front { position: relative; transform: rotate(2deg); min-width: 0; max-width: 100%; background: var(--ultra); border-radius: var(--radius-md); }
@media (max-width: 759px) { .hero-back { display: none; } .hero-stage { justify-content: center; min-height: 0; } }

/* ---------- Proof strip ---------- */
.proof { border-block: 1px solid var(--line); }
.proof .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; padding-block: 22px; }
.proof .eyebrow { margin: 0; color: var(--text-muted); }
.proof-list { display: flex; flex-wrap: wrap; gap: 12px 32px; font-family: var(--font-mono); font-weight: 500; font-size: 14px; line-height: 20px; }

/* ---------- Problem stats ---------- */
.stats { display: flex; flex-direction: column; }
.stat { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 24px; border-top: 1px solid var(--line); }
.stat:last-child { border-bottom: 1px solid var(--line); }
.stat-num { flex: 0 0 200px; font-family: var(--font-display); font-weight: 800; font-size: 52px; line-height: .95; letter-spacing: -.03em; }
.stat-body { flex: 1 1 220px; min-width: 0; }
.stat-body > p:first-child { font-weight: 600; font-size: 16px; line-height: 1.45; }

/* ---------- Pills, tabs ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pill {
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-md);
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font: 600 15px/1 var(--font-text); cursor: pointer;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.pill:hover { background: var(--surface-high); }
.pill[aria-selected="true"] { background: var(--ultra); border-color: var(--ultra); color: var(--on-primary); }

/* ---------- Product tour ---------- */
.tour-stage { padding: clamp(24px, 4vw, 56px); min-height: 520px; display: flex; flex-direction: column; justify-content: center; }
.tour-panel { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; }
.tour-panel--center { align-items: center; }
.tour-panel > .receipt-slot { flex: 0 1 380px; min-width: 0; }
.tour-panel > .tour-copy { flex: 1 1 320px; min-width: 0; }
.tour-copy .h3 { font-size: 26px; }
.tour-copy p + p { margin-top: 12px; font-size: 16px; line-height: 1.55; }
.notes { flex: 1 1 360px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 32px; }
.notes li { padding: 16px 0; border-top: 1px solid var(--rule-on-ultra); }
.notes h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.2; margin-bottom: 4px; }
.notes p { font-size: 14px; line-height: 1.5; }
.dark-card { background: var(--surface-raised); color: var(--text); border-radius: var(--radius-tile); padding: clamp(16px, 3vw, 32px); }
.dark-card-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.scroll-x { overflow-x: auto; }
.timeline { width: 100%; min-width: 560px; border-collapse: collapse; }
.timeline th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding: 14px 0; border-bottom: 1px solid var(--line); }
.timeline td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.timeline td:first-child, .timeline td:nth-child(2) { font-family: var(--font-mono); font-size: 13px; line-height: 20px; white-space: nowrap; }
.timeline td:first-child { color: var(--text-muted); }
.timeline td:nth-child(3) { font-weight: 600; font-size: 15px; }
.timeline td:last-child, .timeline th:last-child { text-align: right; padding-right: 0; }
.mail { flex: 1 1 420px; min-width: 0; }
.mail-grid { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px 16px; font-size: 15px; line-height: 1.4; margin-top: 16px; }
.mail-grid dt { font-family: var(--font-mono); font-weight: 500; font-size: 11px; line-height: 20px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.mail-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: 13px; color: var(--text-muted); }

/* ---------- Who asks ---------- */
.ask-pills { margin-top: 32px; margin-bottom: 32px; }
.ask { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.ask-copy { flex: 1 1 420px; min-width: 0; }
.ask-q { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.01em; }
.ask-a { margin-top: 20px; font-size: 17px; line-height: 1.55; color: var(--text-muted); }
.ask-stage { flex: 0 1 380px; min-width: 0; padding: 32px; display: flex; justify-content: center; }

/* ---------- Services bento ---------- */
.head-gap { margin-bottom: 40px; }
.bento { display: flex; flex-wrap: wrap; gap: 16px; }
.bento-main { flex: 2 1 520px; min-width: 0; min-height: 420px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.bento-main .h3 { font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.02em; max-width: 14em; }
.bento-main > p:not(.eyebrow) { font-size: 17px; line-height: 1.55; max-width: 34em; }
.bento-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tile { flex: 1 1 auto; background: var(--surface-high); border-radius: var(--radius-tile); padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.tile p:not(.eyebrow) { font-size: 15px; line-height: 1.55; }
.tile .hold { margin-top: auto; font-size: 14px; line-height: 21px; color: var(--text); }
.chips { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-mono); font-weight: 500; font-size: 13px; line-height: 20px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--text); }
.hold-line { font-size: 14px; line-height: 21px; }

/* ---------- AI agents ---------- */
.agent-stats { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.agent-stats > div { flex: 1 1 200px; min-width: 0; }
.agent-num { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.03em; margin-bottom: 8px; }
.agent-num--mint { color: var(--mint); }
.agent-stage { padding: clamp(24px, 4vw, 48px); display: flex; justify-content: center; }

/* ---------- How it works ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 16px; }
.step { flex: 1 1 230px; min-width: 0; background: var(--surface-high); border-radius: var(--radius-tile); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.step-n { font-family: var(--font-mono); font-weight: 500; font-size: 13px; line-height: 20px; color: var(--mint); }
.step h3 { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.15; }
.step p { font-size: 15px; line-height: 1.55; }
.step .hold { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.step .hold span { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 11px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; }
.step--prove { background: var(--ultra); color: var(--on-primary); }
.step--prove .step-n { color: var(--on-primary); }
.step--prove .hold { border-top-color: var(--rule-on-ultra); }
@media (max-width: 759px) { .step { min-height: 0; } .step h3 { margin-top: 8px; } }

/* ---------- Self-check ---------- */
.check { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "intro qs" "result qs"; gap: 0 clamp(32px, 5vw, 72px); align-items: start; }
.check-intro { grid-area: intro; }
.check-qs { grid-area: qs; }
.check-result { grid-area: result; position: sticky; top: 96px; margin-top: 28px; background: var(--surface-raised); border-radius: var(--radius-tile); padding: 24px; }
.check-score { margin-top: 10px; font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1.05; letter-spacing: -.02em; }
.check-score span { color: var(--mint); white-space: nowrap; }
.check-note { margin: 10px 0 20px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.q { margin: 0; padding: 20px 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.q legend { padding: 0; float: left; width: 100%; margin-bottom: 12px; font-weight: 600; font-size: 17px; line-height: 1.4; }
.opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-md);
  border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; font-size: 14px; line-height: 1.2;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.opt input:hover + span { background: var(--surface-high); }
.opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.opt input:checked + span { background: var(--surface-high); border-color: var(--marigold); }
.opt input[value="evidence"]:checked + span { background: var(--mint); border-color: var(--mint); color: var(--on-accent); }
.opt input[value="no"]:checked + span { border-color: var(--text); }
@media (max-width: 899px) {
  .check { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "qs" "result"; }
  .check-intro { margin-bottom: 24px; }
  .check-result { position: static; margin-top: 8px; }
  .check-score { font-size: 32px; }
}

/* ---------- Ways to start ---------- */
.plans { display: flex; flex-wrap: wrap; gap: 16px; }
.plan { flex: 1 1 220px; min-width: 0; background: var(--surface-high); border-radius: var(--radius-tile); padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; min-height: 360px; }
.plan .eyebrow { min-height: 32px; margin: 0; }
.plan h3 { margin-top: 64px; }
.plan p:not(.eyebrow) { font-size: 15px; line-height: 1.55; color: var(--text-muted); margin-bottom: 16px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan p + .btn { margin-top: auto; }
.plan--first { flex: 1.3 1 260px; background: var(--mint); color: var(--on-accent); }
.plan--first .eyebrow, .plan--first p:not(.eyebrow) { color: var(--on-accent); }
.plan--first h3 { font-weight: 800; font-size: 28px; line-height: 1.1; }
@media (max-width: 759px) { .plan { min-height: 0; } .plan .eyebrow { min-height: 0; } .plan h3 { margin-top: 20px; } }

/* ---------- Accountability ---------- */
.acc-left { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.acc-figure { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.acc-figure figcaption { font-size: 15px; line-height: 1.5; text-align: center; max-width: 24em; }
.promises { flex: 1.2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0 40px; }
.promises li { padding: 24px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.promises .n { font-family: var(--font-mono); font-weight: 500; font-size: 13px; line-height: 20px; color: var(--mint); }
.promises h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.2; }
.promises p { font-size: 15px; line-height: 1.55; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; font-weight: 600; font-size: 18px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-mono); font-weight: 500; font-size: 18px; color: var(--link); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--text-muted); max-width: 42em; }
.faq-head { flex: 1 1 320px; min-width: 0; }

/* ---------- Contact / final CTA ---------- */
.cta { padding-block: var(--section-y) clamp(48px, 6vw, 80px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; padding-top: clamp(40px, 6vw, 72px); }
.cta-row > div:first-child { flex: 1 1 480px; min-width: 0; }
.cta-row p { margin-top: 20px; font-size: 19px; line-height: 1.55; max-width: 32em; }
.cta-row .btn-row { margin-top: 0; }
.contacts { font-style: normal; display: flex; flex-wrap: wrap; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.contact {
  flex: 1 1 240px; min-width: 0; min-height: 44px; background: var(--surface-raised); border-radius: var(--radius-tile);
  padding: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none;
  transition: background-color 200ms var(--ease);
}
.contact:hover { background: var(--surface-high); text-decoration: none; }
.contact--email { flex: 1 1 100%; }
.contact-label { font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.contact--email .contact-label { color: var(--mint); }
.contact-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.contact--email .contact-value { overflow-wrap: anywhere; }
.contact:not(.contact--email) .contact-value { white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer-brand { flex: 1 1 280px; min-width: 0; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand p { margin-top: 16px; max-width: 26em; }
.footer-nav { flex: 1 1 360px; min-width: 0; display: flex; flex-wrap: wrap; gap: 0 32px; font-size: 15px; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--link); }
.footer-legal { flex-basis: 100%; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: 13px; line-height: 20px; color: var(--text-muted); }
.footer-nav a, .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Simple pages (privacy, terms, 404) ---------- */
.page { padding-block: clamp(48px, 7vw, 96px); }
.prose { max-width: 720px; }
.prose h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: -.03em; }
.prose .updated { margin-top: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.prose h2 { margin-top: 48px; font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.2; }
.prose p:not(.eyebrow), .prose ul, .prose ol { margin-top: 16px; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: 8px; }
.not-found { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.not-found .perf--band { margin-bottom: 48px; max-width: 520px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 320ms var(--ease), transform 320ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion: everything still, every state reachable ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
