/* ==========================================================================
   EraseCycle — site stylesheet
   One file, no build step. Tokens first, then base, layout, components, pages.
   See DESIGN.md for the palette (with contrast ratios), type and spacing scales.
   ========================================================================== */

/* ---------- Fonts (self-hosted Inter, SIL OFL 1.1 — see ../fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-matched fallback so the swap to Inter doesn't shift the layout */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light dark;

  --font-sans: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Neutrals */
  --bg: #ffffff;
  --bg-subtle: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --text: #0c0e13;
  --text-2: #4a505b;
  --text-3: #646b76;
  --border: #e3e6eb;
  --border-soft: #eceef2;
  --control: #8e95a1;          /* 3:1 boundary for inputs and toggles */
  --grid-line: rgb(12 14 19 / 0.05);

  /* The one accent */
  --accent: #3048d9;
  --accent-hover: #2338b8;
  --accent-soft: #eef0fd;
  --accent-line: #c9d0f7;
  --on-accent: #ffffff;

  /* Functional status colours (hash checker + readiness results only) */
  --ok: #0f7a3d;   --ok-soft: #e8f5ee;
  --warn: #9a5800; --warn-soft: #fff4e0;
  --bad: #b42318;  --bad-soft: #fdecea;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgb(12 14 19 / 0.05);
  --shadow-md: 0 1px 2px rgb(12 14 19 / 0.04), 0 8px 24px -8px rgb(12 14 19 / 0.12);
  --shadow-lg: 0 2px 4px rgb(12 14 19 / 0.04), 0 24px 56px -16px rgb(12 14 19 / 0.20);

  /* Shape */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Spacing scale (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Layout */
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 64px;
  --section-y: clamp(72px, 9vw, 120px);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c10;
    --bg-subtle: #0f1217;
    --surface: #12151b;
    --surface-2: #181c23;
    --text: #eceef2;
    --text-2: #a6adb8;
    --text-3: #8a919d;
    --border: #232832;
    --border-soft: #1b1f27;
    --control: #5c6370;
    --grid-line: rgb(255 255 255 / 0.045);

    --accent: #8c9eff;
    --accent-hover: #a8b6ff;
    --accent-soft: #161b33;
    --accent-line: #2c3566;
    --on-accent: #0a0c10;

    --ok: #5fd394;   --ok-soft: #12291d;
    --warn: #f2b54a; --warn-soft: #2d2312;
    --bad: #ff8a80;  --bad-soft: #331a18;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -8px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.4), 0 24px 56px -16px rgb(0 0 0 / 0.7);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
main { flex: 1 0 auto; }

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

code, kbd, samp, .mono { font-family: var(--font-mono); font-size: 0.875em; }
code {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  overflow-wrap: anywhere;
}

strong, b { font-weight: 600; }

::selection { background: var(--accent); color: var(--on-accent); }

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

.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;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--s-3); color: var(--bg); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: calc(760px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section-alt {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
}
.section-tight { padding-block: clamp(56px, 7vw, 88px); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-top: var(--s-3); }
.section-head .section-lead { margin-top: var(--s-4); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.display {
  font-size: clamp(2.375rem, 1.35rem + 3.7vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 650;
  text-wrap: balance;
}
h2, .h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 620;
  text-wrap: balance;
}
h3, .h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -0.012em;
  font-weight: 600;
}
.lead {
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.section-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.small { font-size: 0.875rem; line-height: 1.55; }
.tiny { font-size: 0.8125rem; line-height: 1.5; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 1rem; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.875rem; }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 2px rgb(12 14 19 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.12);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--bg-subtle); border-color: var(--control); color: var(--text); }

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

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

@media (pointer: coarse) {
  .btn-sm { min-height: 44px; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- Pills, tags, badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: var(--shadow-sm);
}
.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  min-height: 44px;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 28px; height: 28px; }
.brand-mark .bm-bg { fill: var(--accent); }
.brand-mark .bm-fg { fill: none; stroke: var(--on-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.nav-desktop { display: none; align-items: center; gap: var(--s-1); margin-left: auto; }
.nav-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-desktop a:hover { color: var(--text); background: var(--surface-2); }
.nav-desktop a[aria-current="page"] { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.header-cta { display: none; }

/* Mobile menu (details/summary: works without JavaScript) */
.nav-mobile { position: relative; }
.nav-mobile > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary svg { width: 18px; height: 18px; }
.nav-mobile .icon-close { display: none; }
.nav-mobile[open] .icon-close { display: block; }
.nav-mobile[open] .icon-open { display: none; }
.nav-mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  padding: var(--s-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.nav-mobile-panel a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.nav-mobile-panel a:not(.btn):hover { background: var(--surface-2); }
.nav-mobile-panel a[aria-current="page"]:not(.btn) { color: var(--accent); }
.nav-mobile-panel .btn { width: 100%; margin-top: var(--s-1); }
.nav-mobile-panel hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-2) 4px; }

@media (min-width: 560px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
  .header-actions { margin-left: var(--s-3); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 112px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 75% 35%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 70% at 75% 35%, #000 20%, transparent 72%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(48px, 6vw, 72px);
  align-items: center;
}
.hero-copy .display { margin-top: var(--s-5); }
.hero-copy .lead { margin-top: var(--s-5); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: var(--s-5);
  color: var(--text-3);
  font-size: 0.875rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent); }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}
@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .spec-head, .spec-body, .spec-card figcaption { padding-inline: 16px; }
  .spec-row { grid-template-columns: 6.25rem minmax(0, 1fr); gap: var(--s-2); }
}

/* Spec card: a real CalPrivacy example, hashed */
.spec-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.spec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.spec-title { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.spec-body { padding: 8px 20px 20px; }
.spec-rows { margin: 0; }
.spec-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: var(--s-3);
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.spec-row dt { color: var(--text-3); font-size: 0.8125rem; }
.spec-row dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.spec-row .raw { color: var(--text-2); }
.spec-row .to { color: var(--text-3); }
.spec-row .std { color: var(--text); font-weight: 600; }
.spec-op {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  color: var(--text-3);
  font-size: 0.8125rem;
}
.spec-op svg { width: 16px; height: 16px; color: var(--accent); }
.spec-hash {
  margin-top: var(--s-3);
  padding: 14px 16px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.spec-hash-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.spec-hash-value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}
.spec-card figcaption {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.55;
}
.spec-card figcaption a { display: inline-flex; margin-top: 6px; }

/* ---------- Why now: stats + timeline ---------- */
.stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.stat { padding: clamp(24px, 3vw, 36px); }
.stat + .stat { border-top: 1px solid var(--border); }
.stat .stat-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
}
.stat .stat-value {
  margin-top: var(--s-3);
  font-size: clamp(2.5rem, 1.9rem + 2.2vw, 3.5rem);
  line-height: 1;
  font-weight: 620;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat-value .unit { font-size: 0.45em; font-weight: 550; letter-spacing: -0.02em; color: var(--text-2); margin-left: 4px; }
.stat .stat-desc { margin-top: var(--s-3); color: var(--text-2); font-size: 0.9375rem; }
@media (min-width: 820px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat + .stat { border-top: 0; border-left: 1px solid var(--border); }
}

.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: clamp(40px, 5vw, 56px);
  position: relative;
}
.timeline li {
  position: relative;
  padding: 0 0 var(--s-5) 32px;
}
.timeline li::before {               /* the line */
  content: "";
  position: absolute;
  left: 5px; top: 14px; bottom: -2px;
  width: 1px;
  background: var(--border);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {                /* the dot */
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 2px solid var(--control);
}
.timeline li.is-key::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline time {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}
.timeline li.is-key time { color: var(--accent); }
.timeline p { margin-top: 2px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); }
  .timeline li { padding: 28px 0 0 0; }
  .timeline li::before { left: 0; right: calc(-1 * var(--s-5)); top: 5px; bottom: auto; width: auto; height: 1px; }
  .timeline li::after { top: 0; }
}

.note-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--s-3) var(--s-6);
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.note-row .note-text { flex: 1 1 420px; color: var(--text-2); font-size: 0.9375rem; }
.note-row .sources { flex: 0 1 360px; color: var(--text-3); font-size: 0.8125rem; }
.sources a { color: var(--text-2); }
.sources a:hover { color: var(--accent); }

/* ---------- Compare: what the state provides vs. what's left ---------- */
.compare { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
@media (min-width: 860px) { .compare { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-5); } }
.compare-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(24px, 3vw, 32px);
}
.compare-card.is-yours { border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.compare-card h3 { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.compare-card .compare-sub { margin-top: 6px; color: var(--text-3); font-size: 0.875rem; }
.icon-list { list-style: none; margin-top: var(--s-5); display: grid; gap: 14px; }
.icon-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; }
.icon-list svg { width: 20px; height: 20px; margin-top: 1px; color: var(--text-3); }
.compare-card.is-yours .icon-list li { color: var(--text); }
.compare-card.is-yours .icon-list svg { color: var(--accent); }

blockquote.state-quote {
  margin: var(--s-5) 0 0;
  padding: 2px 0 2px var(--s-4);
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
}
blockquote.state-quote cite { display: block; margin-top: 6px; font-style: normal; color: var(--text-3); font-size: 0.875rem; }

/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); }
@media (min-width: 1024px) {
  .how-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .how-intro { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}
.how-intro h2 { margin-top: var(--s-3); }
.how-intro .section-lead { margin-top: var(--s-4); }

.facts {
  margin: var(--s-6) 0 0;
  border-top: 1px solid var(--border);
}
.facts div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; color: var(--text); font-weight: 550; text-align: right; }

.steps { list-style: none; counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--s-4) clamp(16px, 2vw, 24px);
  padding-bottom: var(--s-6);
  counter-increment: step;
}
.step::before {                         /* connector */
  content: "";
  position: absolute;
  left: 19.5px; top: 44px; bottom: 6px;
  width: 1px;
  background: var(--border);
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step-body { padding-top: 8px; }
.step-body p { margin-top: 6px; color: var(--text-2); font-size: 0.9375rem; }
.step-body .step-spec { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.step-body .step-spec code { font-size: 0.75rem; color: var(--text-2); }

.step-loop {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: center;
  padding: var(--s-4) var(--s-5) var(--s-4) var(--s-4);
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}
.step-loop .loop-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.step-loop .loop-icon svg { width: 20px; height: 20px; }
.step-loop p { color: var(--text); font-size: 0.9375rem; }
.step-loop strong { color: var(--text); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature {
  padding: clamp(24px, 2.5vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.feature-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 { margin-top: var(--s-5); }
.feature p { margin-top: var(--s-2); color: var(--text-2); font-size: 0.9375rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .pricing-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pricing-copy h2 { margin-top: var(--s-3); }
.pricing-copy .section-lead { margin-top: var(--s-4); }
.keep-list { list-style: none; margin-top: var(--s-6); display: grid; gap: 0; border-top: 1px solid var(--border); }
.keep-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 0.9375rem; color: var(--text); }
.keep-list svg { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.keep-list span.subtle { display: block; font-size: 0.875rem; }

.price-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3.5vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
}
.price-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.price-head h3 { font-size: 1.125rem; }
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: var(--s-5);
}
.price-amount { font-size: clamp(3rem, 2.4rem + 2.4vw, 4rem); line-height: 1; font-weight: 650; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.price-period { color: var(--text-2); font-size: 1rem; }
.price-terms { margin-top: var(--s-2); color: var(--text-3); font-size: 0.875rem; }
.check-list { list-style: none; margin-top: var(--s-6); display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; font-size: 0.9375rem; line-height: 1.5; color: var(--text); }
.check-list svg { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.price-actions { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.price-actions .btn { width: 100%; }
.price-foot { margin-top: var(--s-4); color: var(--text-3); font-size: 0.8125rem; text-align: center; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .faq-intro { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}
.faq-intro h2 { margin-top: var(--s-3); }
.faq-intro > p:not(.eyebrow) { margin-top: var(--s-4); color: var(--text-2); }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 44px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--text);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--accent); }
.faq-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--dur) var(--ease); }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item[open] .faq-toggle { background: var(--surface-2); }
.faq-answer { padding: 0 48px 24px 0; color: var(--text-2); }
.faq-answer p + p { margin-top: var(--s-3); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 4px);
  background: radial-gradient(ellipse 70% 90% at 50% 0%, var(--accent-soft), transparent 70%), var(--surface);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 10%, transparent 70%);
}
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { max-width: 56ch; margin: var(--s-4) auto 0; color: var(--text-2); text-wrap: balance; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding-block: clamp(48px, 6vw, 72px) var(--s-6);
  color: var(--text-2);
  font-size: 0.9375rem;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } }
.footer-brand p { margin-top: var(--s-3); max-width: 34ch; color: var(--text-2); font-size: 0.9375rem; }
.footer-col h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-col ul { list-style: none; margin-top: var(--s-3); display: grid; gap: 2px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-2);
  text-decoration: none;
}
.footer-col a:hover { color: var(--text); }
.footer-legal {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  display: grid;
  gap: var(--s-2);
  color: var(--text-3);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.footer-legal strong { color: var(--text-2); font-weight: 600; }
.placeholder {
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--warn);
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 85% 0%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 90% at 85% 0%, #000 15%, transparent 70%);
}
.page-hero h1 {
  margin-top: var(--s-4);
  font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.033em;
  font-weight: 650;
  max-width: 20ch;
  text-wrap: balance;
}
.page-hero .lead { margin-top: var(--s-4); max-width: 64ch; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text-3); }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Callouts ---------- */
.callout {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-2);
}
.callout svg { width: 20px; height: 20px; margin-top: 1px; }
.callout strong { color: var(--text); }
.callout-accent { border-color: var(--accent-line); background: var(--accent-soft); }
.callout-accent svg { color: var(--accent); }
.callout-warn { border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: var(--warn-soft); }
.callout-warn svg { color: var(--warn); }

/* ---------- Cards & panels (tools) ---------- */
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  padding: 20px clamp(20px, 3vw, 28px);
  border-bottom: 1px solid var(--border);
}
.panel-head h2 { font-size: 1.125rem; letter-spacing: -0.015em; line-height: 1.35; }
.panel-head p { margin-top: 2px; color: var(--text-3); font-size: 0.875rem; }
.panel-body { padding: clamp(20px, 3vw, 28px); }
.panel-foot {
  padding: 16px clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ---------- Forms ---------- */
.field-group-title {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.field-group-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.field-group-title + .fields { margin-top: var(--s-4); }
.fields + .field-group-title { margin-top: var(--s-6); }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4) var(--s-5); }
@media (min-width: 640px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .fields-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.field label, .label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.4;
}
.field .hint { display: block; color: var(--text-3); font-weight: 400; font-size: 0.8125rem; }
.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--control);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder { color: var(--text-3); opacity: 1; }
.input:hover { border-color: var(--text-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.input.mono { font-family: var(--font-mono); font-size: 0.9375rem; }

.button-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 520px) { .button-row .btn { flex: 1 1 100%; } }

/* ---------- Tables (hash checker) ---------- */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th, .data-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg-subtle);
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:first-child { font-weight: 550; color: var(--text); white-space: nowrap; }
.data-table code { font-size: 0.8125rem; background: var(--surface-2); }
.data-table td.empty { color: var(--text-3); font-weight: 400; white-space: normal; padding: 28px 16px; text-align: center; }
.data-table .note { color: var(--text-3); font-size: 0.8125rem; margin-top: 6px; line-height: 1.45; }
.hash-cell { display: flex; align-items: flex-start; gap: 8px; }
.hash-cell code { flex: 1 1 auto; min-width: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.exact { background: var(--ok-soft); color: var(--ok); }
.badge.check { background: var(--warn-soft); color: var(--warn); }
.badge.invalid { background: var(--bad-soft); color: var(--bad); }
.pass { color: var(--ok); font-weight: 600; }
.fail { color: var(--bad); font-weight: 600; }

button.copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
button.copy:hover { background: var(--surface-2); color: var(--text); border-color: var(--control); }
button.copy.is-copied { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-soft); }
@media (pointer: coarse) { button.copy { min-height: 40px; padding: 0 12px; } }

.panel-head .tv-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.panel-head .tv-summary.pass { color: var(--ok); }
.panel-head .tv-summary.fail { color: var(--bad); }
.tv-summary svg { width: 22px; height: 22px; }

@media (min-width: 1100px) {
  .data-table .hash-cell code { white-space: nowrap; overflow-wrap: normal; }
}
[tabindex="-1"]:focus { outline: none; }

/* Responsive tables: stack rows into cards on narrow screens */
@media (max-width: 760px) {
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table td { display: block; width: 100%; }
  .stack-table tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .stack-table tbody tr:last-child { border-bottom: 0; }
  .stack-table td { padding: 6px 0; border: 0; white-space: normal; }
  .stack-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 500;
  }
  .stack-table td:first-child { font-size: 0.9375rem; }
  .stack-table td:first-child::before { display: none; }
}

/* ---------- Tool pages layout ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: start; } }

.rules-list { margin: 0; display: grid; gap: 0; }
.rules-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.rules-list > div:first-child { padding-top: 0; }
.rules-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 640px) { .rules-list > div { grid-template-columns: 9.5rem minmax(0, 1fr); } }
.rules-list dt { font-weight: 600; color: var(--text); font-size: 0.9375rem; }
.rules-list dd { margin: 0; color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; }

.side-stack { display: grid; gap: var(--s-5); }
.side-card { padding: clamp(20px, 3vw, 28px); }
.side-card h2 { font-size: 1.125rem; letter-spacing: -0.015em; }
.side-card p { margin-top: var(--s-3); color: var(--text-2); font-size: 0.9375rem; }
.side-card > .btn { margin-top: var(--s-5); }
.side-card .price-actions { margin-top: var(--s-5); }

/* ---------- Readiness check ---------- */
.rc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (min-width: 1024px) {
  .rc-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .rc-aside { position: sticky; top: calc(var(--header-h) + 32px); }
}
.rc-questions { display: grid; gap: var(--s-4); }
.q {
  margin: 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  min-width: 0;
}
.q.is-answered { border-color: var(--accent-line); }
.q.is-missing { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.q legend { padding: 0; float: left; width: 100%; }
.q legend + * { clear: both; }
.q-head { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s-4); }
.q-num {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-subtle);
}
.q.is-answered .q-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.q-text { font-size: 1.0625rem; font-weight: 550; line-height: 1.45; letter-spacing: -0.01em; color: var(--text); padding-top: 5px; }
.q-why { margin: 0 0 0 calc(36px + var(--s-4)); padding-top: var(--s-3); color: var(--text-2); font-size: 0.9375rem; }
.q-why strong { color: var(--text); font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0 0 calc(36px + var(--s-4)); }
@media (max-width: 520px) {
  .q-why, .choices { margin-left: 0; }
  .choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.choice { position: relative; }
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  min-width: 92px;
  padding: 0 16px;
  border: 1px solid var(--control);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 550;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  pointer-events: none;
}
.choice span svg { width: 16px; height: 16px; display: none; }
.choice input:hover + span { background: var(--surface-2); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:checked + span svg { display: block; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.check-choice { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.check-choice .choice span { min-width: 0; }

.rc-optional { padding: clamp(20px, 3vw, 28px); }
.rc-optional fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.rc-optional fieldset + fieldset { margin-top: var(--s-5); }
.rc-optional legend { padding: 0; font-weight: 600; font-size: 0.9375rem; color: var(--text); }

.progress-card { padding: clamp(20px, 3vw, 24px); }
.progress-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.progress-count { font-size: 1.75rem; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.progress-count small { font-size: 0.875rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.progress-bar {
  margin-top: var(--s-4);
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 260ms var(--ease);
}
.progress-dots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin-top: var(--s-4); }
.progress-dots a {
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-decoration: none;
}
.progress-dots a.is-answered { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.progress-card .btn { width: 100%; margin-top: var(--s-5); }
.progress-card .tiny { margin-top: var(--s-3); color: var(--text-3); }

.form-error {
  margin-top: var(--s-4);
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent);
  border-radius: var(--radius);
  background: var(--bad-soft);
  color: var(--bad);
  font-size: 0.875rem;
  font-weight: 500;
}
.form-error a { color: inherit; }

/* Results */
.results { scroll-margin-top: calc(var(--header-h) + 24px); }
.results:focus { outline: none; }
.score-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-items: center; }
@media (min-width: 720px) { .score-card { grid-template-columns: auto minmax(0, 1fr); gap: var(--s-6); } }
.score-ring {
  position: relative;
  width: 148px; height: 148px;
  display: grid;
  place-items: center;
}
.score-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .ring-track { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.score-ring .ring-value { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 600ms var(--ease); }
.score-ring.band-high .ring-value { stroke: var(--bad); }
.score-ring.band-mid .ring-value { stroke: var(--warn); }
.score-ring.band-good .ring-value { stroke: var(--ok); }
.score-num { text-align: center; line-height: 1; }
.score-num strong { display: block; font-size: 2.75rem; font-weight: 650; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.score-num span { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--text-3); }
.band-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
}
.band-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.band-label.band-high { background: var(--bad-soft); color: var(--bad); }
.band-label.band-mid { background: var(--warn-soft); color: var(--warn); }
.band-label.band-good { background: var(--ok-soft); color: var(--ok); }
.score-text h3 { margin-top: var(--s-3); font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.3; }
.score-text p { margin-top: var(--s-2); color: var(--text-2); }

.gap-list { list-style: none; display: grid; gap: 0; }
.gap-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--border);
}
.gap-item:first-child { padding-top: 0; }
.gap-item:last-child { border-bottom: 0; padding-bottom: 0; }
.gap-item .q-num { background: var(--surface); }
.gap-item h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 6px; }
.gap-item p { margin-top: 6px; color: var(--text-2); font-size: 0.9375rem; }
.answer-chip {
  display: inline-flex;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--surface-2);
}
.answer-chip.is-no { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.answer-chip.is-unsure { color: var(--warn); background: var(--warn-soft); border-color: transparent; }

.email-preview {
  margin-top: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}
.email-preview > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 600;
}
.email-preview pre {
  margin: 0;
  padding: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
  max-height: 360px;
  overflow: auto;
}

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.3; margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: var(--s-4); color: var(--text-2); }
.prose ul { padding-left: 1.25rem; display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--text-3); }
.prose strong { color: var(--text); }
.summary-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); margin-top: var(--s-5); }
@media (min-width: 640px) { .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.summary-grid .callout { color: var(--text); margin: 0; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(72px, 12vw, 160px); }
.notfound .status-line { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-3); }
.notfound .status-line strong { color: var(--accent); font-weight: 600; }
.notfound h1 { margin-top: var(--s-4); font-size: clamp(2.5rem, 1.6rem + 3.5vw, 4rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 650; }
.notfound .lead { margin-top: var(--s-4); max-width: 52ch; }
.notfound .hero-actions { margin-top: var(--s-6); }

/* ---------- Utilities ---------- */
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer .footer-grid, .skip-link, .no-print, .rc-aside, .hero::before, .page-hero::before { display: none !important; }
  body { background: #fff; color: #000; }
  .panel, .q, .spec-card, .price-card { box-shadow: none; }
}
