/* narmar.ai site styles. Tokens follow the build spec in
   outputs/website-brand-and-flow-research-2026-11-19.md (section 3). */

/* ---------- Fonts (self-hosted, Latin-1 subsets, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/IBMPlexSerif-SemiBold-Latin1.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-Medium-Latin1.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --sunken: #EEECE6;
  --text: #14191F;
  --muted: #3A424C;
  --subtle: #444C56;
  --border: #D9D6CE;
  --border-strong: #7A828C;
  --accent: #0E6E43;
  --accent-hover: #0A5434;
  --on-accent: #FFFFFF;
  --accent-soft: #E2F0E7;
  --accent-strong: #0A5434;
  --link: #0A5434;
  --link-hover: #07432A;
  --status: #1F9D5C;
  --warn-bg: #FBF0DA;
  --warn-text: #664100;
  --error: #961E17;
  --panel-dim: #B8C0C8;

  /* Illustration-only tones (never used for text) */
  --metal-hi: #3A444F;
  --metal-lo: #161B21;
  --metal-edge: #56616D;
  --metal-slot: #0B0E12;
  --paper-line: #C9C5BB;
  --flow: #9AA1A9;
  --shadow: rgba(20, 25, 31, 0.10);

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1120px;
  --measure: 68ch;
  --gutter: 16px;
  --section-y: 64px;
  --radius: 14px;
  --radius-sm: 8px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; --section-y: 96px; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E1216;
    --surface: #161C22;
    --sunken: #1D252D;
    --text: #F2F4EF;
    --muted: #C2CAD1;
    --subtle: #AAB3BC;
    --border: #2B353F;
    --border-strong: #6B757F;
    --accent: #4FD48E;
    --accent-hover: #7BE3AA;
    --on-accent: #0E1216;
    --accent-soft: #10291C;
    --accent-strong: #7BE3AA;
    --link: #4FD48E;
    --link-hover: #7BE3AA;
    --status: #3CCB7F;
    --warn-bg: #2A2111;
    --warn-text: #F2BE5C;
    --error: #FF9E96;
    --metal-hi: #36414C;
    --metal-lo: #1A2027;
    --metal-edge: #5B6773;
    --metal-slot: #0A0D10;
    --paper-line: #3A444F;
    --flow: #5B6773;
    --shadow: rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1216;
  --surface: #161C22;
  --sunken: #1D252D;
  --text: #F2F4EF;
  --muted: #C2CAD1;
  --subtle: #AAB3BC;
  --border: #2B353F;
  --border-strong: #6B757F;
  --accent: #4FD48E;
  --accent-hover: #7BE3AA;
  --on-accent: #0E1216;
  --accent-soft: #10291C;
  --accent-strong: #7BE3AA;
  --link: #4FD48E;
  --link-hover: #7BE3AA;
  --status: #3CCB7F;
  --warn-bg: #2A2111;
  --warn-text: #F2BE5C;
  --error: #FF9E96;
  --metal-hi: #36414C;
  --metal-lo: #1A2027;
  --metal-edge: #5B6773;
  --metal-slot: #0A0D10;
  --paper-line: #3A444F;
  --flow: #5B6773;
  --shadow: rgba(0, 0, 0, 0.35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 720px) { body { font-size: 18px; } }

img, svg, video, canvas { display: block; max-width: 100%; }
svg { overflow: visible; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: 0.25em 0; }
strong { font-weight: 600; }

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.875rem, 1.45rem + 1.6vw, 2.5rem); line-height: 1.15; }
h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.3125rem, 1.2rem + 0.4vw, 1.5rem);
  line-height: 1.3;
  margin: 0 0 0.4em;
}
h4 { font-size: 1.125rem; font-weight: 600; margin: 0 0 0.3em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  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 {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Labels and chips */
.eyebrow, .label, .chip {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.45;
}
.eyebrow { color: var(--muted); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status); flex: none; }
.label { color: var(--muted); }
.chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.chip--today { background: var(--accent-soft); color: var(--accent-strong); }
.chip--dev, .chip--untested, .chip--research { background: var(--warn-bg); color: var(--warn-text); }
.chip--neutral { background: var(--sunken); color: var(--muted); border: 1px solid var(--border); }

/* Reading progress (CSS scroll timeline only) */
.progress {
  position: fixed; left: 0; top: 0; right: 0;
  height: 3px; z-index: 60;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  display: none;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { display: block; animation: progress-grow linear both; animation-timeline: scroll(root); }
  }
}
@keyframes progress-grow { to { transform: scaleX(1); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 18px; line-height: 1.15;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--text); color: var(--text); }
.btn--small { min-height: 44px; padding: 10px 16px; font-size: 16px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: translateY(1px); }
}

.text-btn {
  background: none; border: 1px solid var(--border-strong); color: var(--muted);
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 999px; padding: 6px 14px; min-height: 36px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.text-btn:hover { color: var(--text); border-color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand svg { width: 28px; height: 28px; flex: none; }
.wordmark { font-weight: 600; font-size: 21px; letter-spacing: -0.02em; line-height: 1; }
.wordmark .tld { font-family: var(--font-mono); font-weight: 500; color: var(--muted); letter-spacing: 0; }

.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links a {
  display: inline-block; padding: 10px 10px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: 16px; font-weight: 600;
}
.nav-links a:hover { color: var(--text); background: var(--sunken); }
.header-cta { display: none; }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted); border: 1px solid var(--border-strong); cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text); }
.theme-toggle svg { width: 20px; height: 20px; }
.menu-toggle {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text); border: 1px solid var(--border-strong); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--bg); }
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 8px 0 16px; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 18px; color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-menu li:last-child a { border-bottom: 0; }
.mobile-menu .btn { margin-top: 12px; width: 100%; }

@media (min-width: 1040px) {
  .nav-links { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu, .mobile-menu.is-open { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section--sunken { background: var(--sunken); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head .lead { color: var(--muted); }
.lead { font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.3125rem); line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 16px; line-height: 1.55; }
.note { font-size: 16px; line-height: 1.55; color: var(--muted); margin-top: 20px; }

/* Scroll reveals: CSS scroll-driven, motion only */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 48px 0 var(--section-y); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) {
  .hero { padding-top: 72px; }
}
/* Two columns only where the hero diagram stays at least 550px wide (labels 12px or more);
   below that it sits under the text, capped so it doesn't grow taller than the screen. */
@media (min-width: 1240px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; }
}
@media (max-width: 1239.98px) {
  .hero .figure { max-width: 760px; }
}
.hero h1 { max-width: 16ch; }
.hero-sub {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem); line-height: 1.25;
  letter-spacing: -0.005em; color: var(--text);
  margin: -0.1em 0 0.8em; max-width: 26ch; text-wrap: balance;
}
.own-data strong { color: var(--text); }
.hero .lead { color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.status-line {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); margin: 0; padding: 0; list-style: none;
}
.status-line li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.status-line li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }

/* Hide-then-reveal for the H1 line split (only when motion is allowed and JS ran) */
.motion-ok .hero h1.split-pending { visibility: hidden; animation: unhide 0s linear 1.4s forwards; }
@keyframes unhide { to { visibility: visible; } }

/* Figures */
.figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 1px 0 var(--shadow), 0 24px 48px -28px var(--shadow);
  overflow: hidden;
  position: relative;
}
.figure-media { aspect-ratio: 4 / 3; width: 100%; position: relative; }
.figure-media svg { width: 100%; height: 100%; }
.figure figcaption {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-top: 1px solid var(--border);
  font-size: 16px; line-height: 1.5; color: var(--muted);
}
.figure figcaption .text-btn { flex: none; }

/* Illustration classes (SVG) */
.ill-bg { fill: var(--surface); }
.ill-grid { fill: var(--border); }
.ill-zone { fill: var(--bg); stroke: var(--border-strong); stroke-width: 1.25; }
.ill-zone--soft { fill: var(--sunken); stroke: var(--border-strong); stroke-width: 1.25; stroke-dasharray: 5 5; }
.ill-zone--far { fill: var(--sunken); stroke: var(--border); stroke-width: 1.25; }
.ill-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; fill: var(--muted); text-transform: uppercase; }
.ill-label--strong { fill: var(--text); }
.ill-label--accent { fill: var(--accent-strong); }
.ill-label--warn { fill: var(--warn-text); }
.ill-text { font-family: var(--font-sans); font-size: 14px; fill: var(--text); font-weight: 600; }
.ill-text--muted { font-family: var(--font-sans); font-size: 13px; fill: var(--muted); font-weight: 400; }
.ill-paper { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1; }
.ill-paper-line { fill: var(--paper-line); }
.ill-paper-head { fill: var(--muted); }
.ill-flow { fill: none; stroke: var(--flow); stroke-width: 1.5; stroke-linecap: round; }
.ill-flow--dash { stroke-dasharray: 2 6; }
.ill-flow--accent { stroke: var(--accent); }
.ill-flow--far { stroke: var(--border-strong); stroke-dasharray: 4 6; }
.ill-metal { stroke: var(--metal-edge); stroke-width: 1; }
.ill-slot { fill: var(--metal-slot); }
.ill-vent { fill: none; stroke: var(--metal-slot); stroke-width: 2; stroke-linecap: round; }
.ill-led { fill: var(--status); }
.ill-led-ring { fill: none; stroke: var(--status); stroke-width: 1.5; opacity: 0; }
.ill-chip-bg { fill: var(--accent-soft); }
.ill-chip-tx { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; fill: var(--accent-strong); }
.ill-warn-bg { fill: var(--warn-bg); }
.ill-warn-tx { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; fill: var(--warn-text); }
.ill-person { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1; }
.ill-avatar { fill: var(--sunken); stroke: var(--border-strong); stroke-width: 1; }
.ill-avatar-head { fill: var(--muted); }
.ill-layer { fill: var(--surface); stroke: var(--accent); stroke-width: 1.25; }
.ill-layer-tx { font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; fill: var(--accent-strong); }
.ill-packet { fill: var(--surface); stroke: var(--text); stroke-width: 1; }
.ill-packet-line { fill: var(--muted); }
.ill-answer { fill: var(--accent); }
.ill-answer-tx { font-family: var(--font-mono); font-size: 10px; fill: var(--on-accent); letter-spacing: .04em; }
.ill-fan { fill: none; stroke: var(--metal-edge); stroke-width: 1.25; }
.ill-fan-hub { fill: var(--metal-edge); }
.ill-mem { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.ill-mem--free { fill: var(--sunken); stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.ill-model { fill: var(--accent); }
.ill-cloud-rack { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1; }
.ill-cloud-slot { fill: var(--border); }
.ill-shadow { filter: drop-shadow(0 10px 14px var(--shadow)); }


/* Motion-only bits stay hidden without motion; their static paths remain */
.motion-only { opacity: 0; }
.no-motion .motion-only { display: none; }

/* ---------- Problem ---------- */
.two-col { display: grid; gap: 20px; margin: 8px 0 48px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; gap: 24px; } }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.panel h3 { font-size: 1.25rem; }
.panel ul { margin: 0; color: var(--muted); }

.compare { display: grid; gap: 20px; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; gap: 24px; } }
.compare .figure-media { aspect-ratio: 400 / 270; }
.compare-title { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; flex-wrap: wrap; }
.compare-head { padding: 18px 18px 0; }
.compare-head p { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 6px 0 0; }
.compare-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.compare-foot p { margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- How it works (sticky story) ---------- */
.how-grid { display: grid; gap: 32px; }
@media (min-width: 980px) {
  .how-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .how-visual { position: sticky; top: 104px; }
}
.how-visual .figure-media { aspect-ratio: 1 / 1; }
.stack-layer { transition: opacity .35s ease; }
.how-js .stack-layer { opacity: .35; }
.how-js .stack-layer.is-active { opacity: 1; }
.how-step {
  border-left: 2px solid var(--border);
  padding: 4px 0 4px 22px; margin-bottom: 40px;
  transition: border-color .3s ease;
}
.how-step.is-active { border-left-color: var(--accent); }
.how-step .label { display: block; margin-bottom: 6px; }
@media (min-width: 980px) {
  .how-step { min-height: clamp(220px, 34vh, 380px); margin-bottom: 0; padding-top: 8px; }
  .how-step:last-child { min-height: 0; }
}
.steps { counter-reset: step; list-style: none; padding: 0; margin: 12px 0 0; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 0 0 18px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px;
  border: 1px solid var(--border-strong); color: var(--text); background: var(--surface);
}

/* ---------- Cards / bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento > .card { grid-column: span 2; }
  .bento > .card--wide { grid-column: span 3; }
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.section--sunken .card, .section--sunken .panel { background: var(--surface); }
.card h3 { font-size: 1.3125rem; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.card .chip { align-self: flex-start; }
.card-icon { width: 36px; height: 36px; color: var(--text); }
.card-icon svg { width: 100%; height: 100%; }

/* ---------- Options (three tiers) ---------- */
.options { display: grid; gap: 20px; }
@media (min-width: 980px) { .options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.option {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
}
.option--research { border-style: dashed; border-color: var(--border-strong); }
.option-media { aspect-ratio: 4 / 3; background: var(--bg); border-bottom: 1px solid var(--border); position: relative; }
.option-media svg { width: 100%; height: 100%; }
.option-body { padding: 22px 22px 8px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.option-body h3 { margin: 0; }
.option-body p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.option-body ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 17px; line-height: 1.6; }
.option-common {
  margin: 14px 22px 22px; padding: 14px 16px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-strong);
  display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5;
}
.option-common svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.option-actions { padding: 0 22px 22px; }
.common-layer {
  margin-top: 28px; padding: 24px; border-radius: 18px;
  border: 1px solid var(--accent); background: var(--surface);
  display: grid; gap: 16px;
}
@media (min-width: 860px) { .common-layer { grid-template-columns: 220px 1fr; align-items: start; gap: 28px; } }
.common-layer h3 { margin: 0; }
.common-layer ul { margin: 0; color: var(--muted); max-width: var(--measure); }

/* ---------- Industries ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px; margin: 0; min-width: 0;
}
.tile h3 { font-size: 1.1875rem; margin: 0; }
.tile p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.tile a { font-weight: 600; font-size: 16px; margin-top: auto; }
.tile--featured { border-color: var(--border-strong); }

/* ---------- Special sections (law, medical) ---------- */
.special-grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .special-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; margin: 0; align-items: start; }
.feature-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.feature-list strong { display: block; }
.feature-list span { color: var(--muted); font-size: 17px; line-height: 1.6; }

.pipeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.pipeline li {
  position: relative; margin: 0; padding: 14px 16px 14px 52px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.pipeline li + li { margin-top: 14px; }
.pipeline li + li::before {
  content: ""; position: absolute; left: 26px; top: -15px; width: 1px; height: 14px; background: var(--border-strong);
}
.pipeline .pip-n {
  position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; background: var(--sunken); color: var(--text); border: 1px solid var(--border-strong);
}
.pipeline .pip-n--person { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent); }
.pipeline strong { display: block; font-size: 17px; }
.pipeline span { font-size: 16px; line-height: 1.55; color: var(--muted); }
.pipeline-cap { font-size: 16px; color: var(--muted); margin: 14px 0 0; }



/* ---------- Security: checks and ledger ---------- */
.bullets-check { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 12px; max-width: min(760px, var(--measure)); }
.bullets-check li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; margin: 0; }
.bullets-check svg { width: 20px; height: 20px; color: var(--accent); margin-top: 4px; }
.ledger { display: grid; gap: 20px; }
@media (min-width: 860px) { .ledger { grid-template-columns: 1fr 1fr 0.9fr; gap: 24px; align-items: start; } }
.ledger-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.ledger-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.ledger-col ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 17px; line-height: 1.6; }

/* ---------- Assessment ---------- */
.price-wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .price-wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: start; } }
.price-card {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; padding: 28px;
}
.price { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); line-height: 1; margin: 6px 0 6px; }
.price-card dl { margin: 20px 0 0; display: grid; gap: 12px; }
.price-card dt { font-family: var(--font-mono); font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.price-card dd { margin: 2px 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-weight: 600; font-size: 1.1875rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 0 22px; color: var(--muted); line-height: 1.65; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- About ---------- */

/* ---------- Form ---------- */
.request-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .request-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; } }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
@media (min-width: 720px) { .form-card { padding: 32px; } }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 17px; }
.field .opt { font-weight: 400; color: var(--muted); font-size: 16px; }
.field .req { color: var(--muted); font-weight: 400; font-size: 16px; }
.field .help { font-size: 16px; line-height: 1.5; color: var(--muted); margin: 0; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 18px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .err { color: var(--error); font-size: 16px; margin: 0; min-height: 0; }
.field .err:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.checks { display: grid; gap: 8px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 17px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--accent); }
.check .chip { margin-left: 6px; vertical-align: 1px; font-size: 14px; padding: 2px 7px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.consent { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 14px 0 0; max-width: none; }
.form-status { margin: 0 0 20px; padding: 14px 16px; border-radius: 10px; font-size: 17px; }
.form-status:empty { display: none; }
.form-status--warn { background: var(--warn-bg); color: var(--warn-text); }
.form-status--error { background: var(--warn-bg); color: var(--error); border: 1px solid var(--error); }
.form-status--info { background: var(--sunken); color: var(--text); }
.form-status a { color: inherit; font-weight: 600; }
.aside-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.aside-list li { margin: 0; padding-left: 18px; position: relative; color: var(--muted); }
.aside-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--status); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.footer-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; gap: 40px; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.site-footer p { max-width: 70ch; }

/* ---------- Simple pages ---------- */
.page-hero { padding: 56px 0 24px; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); max-width: 22ch; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { color: var(--text); }
.callout { background: var(--warn-bg); color: var(--warn-text); border-radius: 12px; padding: 16px 18px; margin: 0 0 28px; }
.callout p { margin: 0; max-width: none; }

/* ---------- Reduced motion: final states, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .motion-only { display: none !important; }
  .pause-btn { display: none !important; }
  .how-js .stack-layer { opacity: 1; }
}

/* Print */
@media print {
  .site-header, .progress, .pause-btn, #guide-root { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Small SVG helpers ---------- */
.logo-dot { fill: var(--status); }
.stop-hi { stop-color: var(--metal-hi); }
.stop-lo { stop-color: var(--metal-lo); }
.ill-on-panel { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; fill: #3CCB7F; }
.ill-on-panel-dim { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em; fill: var(--panel-dim, #B8C0C8); }
.ill-on-metal { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; fill: #EEF0EB; }
.ill-highlight { fill: #FFFFFF; opacity: .07; }
.ill-mem-used { fill: var(--border); stroke: var(--border-strong); stroke-width: 1; }
.ill-track { fill: #2B353F; }
.anim-controls { display: flex; justify-content: flex-end; margin: -12px 0 16px; }
/* Room for descenders inside SplitText's line masks */
.hero h1 .h1-line { padding-bottom: 0.12em; margin-bottom: -0.12em; }
@media (min-width: 860px) { .ledger--two { grid-template-columns: 1fr 1fr; } }

/* Diagram sizing. Each diagram has a wide drawing (.ill-d) and a compact one (.ill-m).
   The compact one shows on phones (hero) or when its own box is narrow (the others),
   so every label renders at 12px or more. Only one is ever displayed, so screen
   readers meet one title per diagram. */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.compare .figure, .how-visual .figure, .option { container: ill / inline-size; }
.ill-m { display: none; }
.figure-media svg.ill-m, .option-media svg.ill-m { width: 100%; height: auto; }
.hero .ill-d text { font-size: 14.5px; }
.hero .ill-d .ill-text { font-size: 15px; }
.compare .ill-d text { font-size: 12.5px; }
.how-visual .ill-d text { font-size: 14px; }
.option .ill-d text { font-size: 14px; }
.ill-layer-tx--tight { letter-spacing: .02em; }
.ill-m text { font-size: 14.5px; }
.ill-m .ill-text { font-size: 15px; }
.ill-m .ill-chip-tx, .ill-m .ill-warn-tx { font-size: 14px; }
.option .ill-m text { font-size: 15px; }
@media (max-width: 640px) {
  .hero .figure-media { aspect-ratio: auto; }
  .hero .ill-d { display: none; }
  .hero .ill-m { display: block; max-width: 420px; margin: 0 auto; }
}
@container ill (max-width: 383px) {
  .compare .figure-media { aspect-ratio: auto; }
  .compare .ill-d { display: none; }
  .compare .ill-m { display: block; }
}
@container ill (max-width: 411px) {
  .how-visual .figure-media { aspect-ratio: auto; }
  .how-visual .ill-d { display: none; }
  .how-visual .ill-m { display: block; }
}
@container ill (max-width: 342px) {
  .option-media { aspect-ratio: auto; }
  .option .ill-d { display: none; }
  .option .ill-m { display: block; }
}
