/* =========================================================================
   SBOMFlow — coming-soon landing page
   Monochrome, editorial-technical. Pure black/white/slate per brand board.
   Self-hosted Geist + Geist Mono (OFL). No external requests, no tracking.
   ========================================================================= */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --bg: #fbfbfa;
  --bg-2: #f4f4f1;
  --ink: #0a0b0d;
  --ink-soft: #16181c;
  --slate: #54575d;
  --slate-2: #82858b;
  --slate-3: #a8abb1;
  --line: rgba(11, 12, 14, 0.10);
  --line-2: rgba(11, 12, 14, 0.16);
  --line-3: rgba(11, 12, 14, 0.30);
  --chip: rgba(11, 12, 14, 0.035);
  --chip-2: rgba(11, 12, 14, 0.06);
  --shadow-sm: 0 1px 2px rgba(11, 12, 14, 0.05);
  --shadow: 0 28px 70px -34px rgba(11, 12, 14, 0.30), 0 6px 18px -12px rgba(11, 12, 14, 0.14);

  --maxw: 1180px;
  --pad: clamp(1.2rem, 5vw, 2.75rem);
  --gap: clamp(2.75rem, 6vw, 5.5rem);
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Semantic status tokens — themed, so every state reads correctly in both modes. */
  --ok: #0d5c33;
  --ok-bg: #e0f2e7;
  --warn: #7a4a08;
  --warn-bg: #fdf0d4;
  --danger: #8e1c1c;
  --danger-bg: #fbe3e3;

  /* Inverted command block. Explicit so it never inherits a flipped --ink. */
  --term-bg: #0a0b0d;
  --term-fg: #e7e7e3;
}

/* ---------------------------------------------------------------------------
   Dark theme. The palette below is the one already authored for `.panel-dark`,
   promoted to the document root. `prefers-color-scheme` drives the default;
   an explicit `data-theme` on <html> always wins so the toggle is authoritative.
   --------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101216;
    --bg: #0a0b0d;
    --bg-2: #121419;
    --ink: #f6f6f4;
    --ink-soft: #e7e7e3;
    --slate: #abaeb4;
    --slate-2: #82858b;
    --slate-3: #5d6066;
    --line: rgba(255, 255, 255, 0.12);
    --line-2: rgba(255, 255, 255, 0.18);
    --line-3: rgba(255, 255, 255, 0.30);
    --chip: rgba(255, 255, 255, 0.05);
    --chip-2: rgba(255, 255, 255, 0.09);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.6);
    --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
    --ok: #4ade80;
    --ok-bg: rgba(74, 222, 128, 0.12);
    --warn: #fbbf24;
    --warn-bg: rgba(251, 191, 36, 0.12);
    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, 0.12);
    --term-bg: #1a1d23;
    --term-fg: #e7e7e3;
  }
}

:root[data-theme="dark"] {
  --paper: #101216;
  --bg: #0a0b0d;
  --bg-2: #121419;
  --ink: #f6f6f4;
  --ink-soft: #e7e7e3;
  --slate: #abaeb4;
  --slate-2: #82858b;
  --slate-3: #5d6066;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.18);
  --line-3: rgba(255, 255, 255, 0.30);
  --chip: rgba(255, 255, 255, 0.05);
  --chip-2: rgba(255, 255, 255, 0.09);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  --ok: #4ade80;
  --ok-bg: rgba(74, 222, 128, 0.12);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --term-bg: #1a1d23;
  --term-fg: #e7e7e3;
}

/* On a dark page the inverted panel would vanish into the background, so it
   becomes an *elevated* surface instead of a second inversion. Same rhythm,
   correct contrast. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .panel-dark { background: var(--paper); }
}
:root[data-theme="dark"] .panel-dark { background: var(--paper); }

/* Inverted surfaces re-declare tokens so every component works on dark too. */
.panel-dark {
  --paper: #101216;
  --bg: #0a0b0d;
  --bg-2: #121419;
  --ink: #f6f6f4;
  --ink-soft: #e7e7e3;
  --slate: #abaeb4;
  --slate-2: #82858b;
  --slate-3: #5d6066;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.18);
  --line-3: rgba(255, 255, 255, 0.30);
  --chip: rgba(255, 255, 255, 0.05);
  --chip-2: rgba(255, 255, 255, 0.09);
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  background: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: clamp(1rem, 0.97rem + 0.18vw, 1.075rem);
  line-height: 1.62;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

::selection { background: var(--ink); color: var(--bg); }

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -64px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font: 600 0.85rem/1 var(--sans);
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(4rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
}
.section--flush { border-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--line-3);
}
.eyebrow--plain::before { display: none; }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.05rem);
  margin-top: 1.1rem;
}
.section-head p {
  margin-top: 1.25rem;
  color: var(--slate);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  max-width: 40rem;
}

.lead { color: var(--slate); }

/* Quiet inline "nav" links — section anchors, never CTAs. */
.jump {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid var(--line-2);
  transition: gap 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.jump .arr { transition: transform 0.3s var(--ease); }
.jump:hover { border-color: var(--ink); }
.jump:hover .arr { transform: translateY(2px); }
.jump--muted { color: var(--slate); border-color: var(--line); }
.jump--muted:hover { color: var(--ink); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.brand img { height: 22px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}
.site-nav a {
  font-size: 0.92rem;
  color: var(--slate);
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--ink); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  white-space: nowrap;
}
.tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

/* "More" dropdown (groups the secondary sections) */
.nav-more { position: relative; display: inline-flex; }
.nav-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: var(--slate);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.nav-more__btn:hover,
.nav-more__btn[aria-expanded="true"] { color: var(--ink); }
.nav-more__chev { font-size: 0.7em; transition: transform 0.2s var(--ease); }
.nav-more__btn[aria-expanded="true"] .nav-more__chev { transform: rotate(180deg); }
.nav-more__menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  min-width: 11rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.4rem;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 14px 40px -16px rgba(11, 12, 14, 0.30);
}
.nav-more__menu[hidden] { display: none; }
.nav-more__menu a {
  font-size: 0.9rem;
  color: var(--slate);
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-more__menu a:hover,
.nav-more__menu a:focus-visible { background: var(--bg-2); color: var(--ink); }

/* Contact call-to-action in the nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--line-3);
  border-radius: 100px;
  color: var(--ink) !important;
  font-weight: 500;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-cta:hover { background: var(--bg-2); border-color: var(--ink); }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-size: 1rem;
  color: var(--slate);
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s var(--ease);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { color: var(--ink); }
.mobile-menu .nav-cta {
  justify-content: center;
  margin-top: 0.6rem;
  border-bottom: 1px solid var(--line-3);
}

@media (max-width: 880px) {
  .site-nav,
  .site-header .tag { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 881px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
  border-top: 0;
}
.hero__watermark {
  position: absolute;
  right: -7vw;
  top: -6vw;
  width: min(56vw, 640px);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.75rem; }
}

.hero h1 {
  font-size: clamp(2.55rem, 1.4rem + 4.7vw, 4.55rem);
  margin-top: 1.4rem;
  letter-spacing: -0.038em;
}
.hero__lede {
  margin-top: 1.6rem;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.32rem);
  color: var(--slate);
  max-width: 34rem;
  line-height: 1.55;
}
.hero__meta {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--slate-2);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.7rem; }
.hero__meta span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-3);
}
.hero__actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
}

/* Spec / transcript panel */
.spec {
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.spec__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--chip);
}
.spec__dots { display: inline-flex; gap: 0.4rem; }
.spec__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
}
.spec__file {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--slate-2);
  letter-spacing: 0.02em;
}
.spec__tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-2);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 0.2rem 0.55rem;
}
.spec__body {
  margin: 0;
  padding: 1.1rem 1.2rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.795rem;
  line-height: 1.95;
  color: var(--ink-soft);
  overflow-x: auto;
}
.spec__body .cmd { color: var(--ink); font-weight: 600; }
.spec__body .ok { color: var(--ink); font-weight: 600; }
.spec__body .c { color: var(--slate-2); }
.spec__caption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--slate-2);
  letter-spacing: 0.01em;
}
.review-pill {
  margin-left: auto;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 0.18rem 0.6rem;
  white-space: nowrap;
  color: var(--ink-soft);
}

/* ---------- Standards band ---------- */
.standards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.9rem;
  padding-block: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line);
}
.standards__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin-right: 0.4rem;
}
.standards__item {
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: var(--slate);
}

/* ---------- Generic card grids ---------- */
.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}
.cell {
  background: var(--bg);
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
}
.cell__idx {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--slate-2);
  letter-spacing: 0.08em;
}
.cell h3 {
  font-size: 1.18rem;
  margin-top: 0.9rem;
  letter-spacing: -0.02em;
}
.cell p {
  margin-top: 0.7rem;
  color: var(--slate);
  font-size: 0.98rem;
}

/* Problem — scattered sources */
.scatter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.5rem;
}
.scatter span {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--slate);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 0.5rem 0.95rem;
  background: var(--paper);
}
.problem__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .problem__split { grid-template-columns: 1fr; } }
.contrast {
  border-left: 2px solid var(--ink);
  padding: 0.3rem 0 0.3rem 1.4rem;
}
.contrast p + p { margin-top: 1rem; }
.contrast strong { color: var(--ink); font-weight: 600; }

/* What it is — pillars */
.pillars { margin-top: 2.6rem; }
.pillar { padding: clamp(1.7rem, 2.6vw, 2.3rem); }
.pillar h3 { font-size: 1.22rem; }
.pillar__k {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.pillar p { margin-top: 0.8rem; color: var(--slate); font-size: 0.98rem; }

/* ---------- Today: capabilities ---------- */
.cap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 940px) { .cap { grid-template-columns: 1fr; gap: 2.5rem; } }
.cap__aside { position: sticky; top: 96px; }
@media (max-width: 940px) { .cap__aside { position: static; } }
.cap__note {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: var(--slate);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 1rem 1.1rem;
  background: var(--paper);
}
.cap__note strong { color: var(--ink); font-weight: 600; }

.capgroup { border-top: 1px solid var(--line); padding-top: 1.7rem; }
.capgroup:first-child { border-top: 0; padding-top: 0; }
.capgroup + .capgroup { margin-top: 1.9rem; }
.capgroup__h {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.capgroup__h .n {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--slate-2);
}
.capgroup__h h3 { font-size: 1.16rem; letter-spacing: -0.02em; }
.caplist { display: grid; gap: 0.85rem; margin: 0; padding: 0; }
.caplist li {
  list-style: none;
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.7rem;
  font-size: 0.97rem;
  color: var(--slate);
}
.caplist li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.62em;
  background: var(--ink);
  transform: rotate(45deg);
}
.caplist li b { color: var(--ink); font-weight: 600; }
.caplist code, .mono-inline {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--ink-soft);
  background: var(--chip-2);
  padding: 0.06em 0.4em;
  border-radius: 5px;
}

/* ---------- Audience ---------- */
.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (max-width: 880px) { .aud { grid-template-columns: 1fr; } }
.aud__cell { background: var(--bg); padding: clamp(1.5rem, 2.3vw, 2rem); }
.aud__cell h3 { font-size: 1.1rem; margin-top: 0.5rem; }
.aud__cell .role {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.aud__cell p { margin-top: 0.65rem; color: var(--slate); font-size: 0.95rem; }
.icp {
  margin-top: 1.8rem;
  font-size: 0.95rem;
  color: var(--slate);
}
.icp strong { color: var(--ink); font-weight: 600; }

/* ---------- Workflow ---------- */
.flow { display: grid; gap: 0; }
.flow__step {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: clamp(1rem, 3vw, 2.4rem);
  padding: clamp(1.5rem, 3vw, 2.2rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.flow__step:first-child { border-top: 0; }
.flow__n {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--slate-2);
  padding-top: 0.2rem;
}
.flow__step h3 { font-size: 1.3rem; letter-spacing: -0.025em; }
.flow__step p { margin-top: 0.7rem; color: var(--slate); max-width: 46rem; }
.flow__step .meta {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--slate-2);
  letter-spacing: 0.01em;
}

/* Planned lifecycle step — visually distinct from shipped steps (no overclaim).
   Matches the roadmap's existing "Planned" language: dashed rule + muted pill. */
.flow__step--planned { border-top-style: dashed; }
.flow__step--planned h3 { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.flow__tag {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-2);
  border: 1px dashed var(--line-2);
  border-radius: 100px;
  padding: 0.24em 0.66em;
  white-space: nowrap;
  vertical-align: 0.14em;
}

/* ---------- Alpha (dark) ---------- */
.alpha__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 880px) { .alpha__grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.alpha__mark {
  display: inline-flex;
  width: 56px; height: 56px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  margin-bottom: 1.6rem;
}
.alpha__mark img { width: 100%; height: 100%; }
.alpha h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem); margin-top: 1rem; }
.alpha__lede { margin-top: 1.3rem; color: var(--slate); font-size: 1.12rem; max-width: 32rem; }
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
@media (max-width: 520px) { .specs { grid-template-columns: 1fr; } }
.specs__item { background: var(--bg); padding: 1.4rem 1.4rem 1.5rem; }
.specs__item .v {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.specs__item .l {
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.specs__item--wide { grid-column: 1 / -1; }

/* ---------- Roadmap ---------- */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 2.4rem; }
@media (max-width: 880px) { .phases { grid-template-columns: 1fr; } }
.phase { background: var(--bg); padding: clamp(1.5rem, 2.4vw, 2rem); }
.phase__badge {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--slate-2);
}
.phase__badge .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.phase--next .phase__badge .pip { background: transparent; border: 1px solid var(--line-3); }
.phase--later .phase__badge .pip { background: transparent; border: 1px dashed var(--line-3); }
.phase h3 { font-size: 1.12rem; margin-top: 0.9rem; }
.phase p { margin-top: 0.6rem; color: var(--slate); font-size: 0.95rem; }
.phase ul { margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.phase li {
  list-style: none;
  font-size: 0.9rem;
  color: var(--slate);
  padding-left: 1.1rem;
  position: relative;
}
.phase li::before { content: "—"; position: absolute; left: 0; color: var(--slate-3); }
.roadmap__note {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--slate-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  padding: 0.9rem 1.1rem;
  letter-spacing: 0.01em;
}
.roadmap__note b { color: var(--ink); font-weight: 600; }

/* ---------- Roadmap: in-engineering capability program ---------- */
.wave-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: clamp(2.6rem, 4vw, 3.4rem) 0 1.5rem;
}
.wave-head h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.42rem); letter-spacing: -0.025em; }
.wave-head__tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-2);
  border: 1px dashed var(--line-2);
  border-radius: 100px;
  padding: 0.28rem 0.72rem;
  white-space: nowrap;
}
.wave-cell h3 { font-size: 1.06rem; margin-top: 0; letter-spacing: -0.02em; }
.wave-cell ul { margin: 1.05rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.wave-cell li {
  list-style: none;
  font-size: 0.9rem;
  color: var(--slate);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.wave-cell li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0.02em;
  color: var(--slate-3);
  font-family: var(--mono);
  font-weight: 600;
}
.wave-cell li b { color: var(--ink-soft); font-weight: 600; }

/* ---------- Trust: TestBuz adversarial laboratory ---------- */
.lab { margin-top: clamp(2.6rem, 4.5vw, 3.6rem); }
.lab__lede { max-width: 70ch; color: var(--slate); margin-bottom: 1.4rem; }
.lab__lede strong { color: var(--ink-soft); font-weight: 600; }
.lab-roster {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.4rem;
  margin: 0 0 1.7rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-2);
}
.lab-roster__label {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin-bottom: 0.2rem;
}
.lab-roster__item { font-family: var(--mono); font-size: 0.8rem; color: var(--slate); }
.lab-roster__item b { color: var(--ink-soft); font-weight: 600; }
.lab-cell h3 { font-size: 1.02rem; margin-top: 0.55rem; letter-spacing: -0.02em; }
.lab-cell p { margin-top: 0.55rem; color: var(--slate); font-size: 0.9rem; line-height: 1.6; }
.lab__frame {
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.79rem;
  color: var(--slate-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  padding: 0.95rem 1.15rem;
  letter-spacing: 0.005em;
  line-height: 1.55;
}
.lab__frame b { color: var(--ink); font-weight: 600; }

/* ---------- Principles ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
@media (max-width: 980px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.principle { background: var(--bg); padding: 1.6rem 1.5rem 1.8rem; }
.principle .no {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--slate-2);
}
.principle h3 { font-size: 1.04rem; margin-top: 0.8rem; letter-spacing: -0.02em; }
.principle p { margin-top: 0.5rem; color: var(--slate); font-size: 0.9rem; }

/* ---------- Artifacts ledger ---------- */
.ledger {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper);
}
.ledger__row {
  display: grid;
  grid-template-columns: 16.5rem 1fr;
  gap: 1.5rem;
  padding: 1rem 1.3rem;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.ledger__row:first-child { border-top: 0; }
.ledger__row:hover { background: var(--chip); }
.ledger__file {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  word-break: break-word;
}
.ledger__file .opt {
  display: inline-block;
  margin-left: 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-2);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 0.08rem 0.45rem;
  vertical-align: 0.12em;
}
.ledger__desc { color: var(--slate); font-size: 0.94rem; }
@media (max-width: 720px) {
  .ledger__row { grid-template-columns: 1fr; gap: 0.4rem; }
}
.ledger__foot {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--slate-2);
  margin-top: 1.4rem;
  letter-spacing: 0.01em;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0.2rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .pm {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  position: relative;
}
.faq__item summary .pm::before,
.faq__item summary .pm::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq__item summary .pm::before { inset: 0 45%; width: 10%; }
.faq__item summary .pm::after { inset: 45% 0; height: 10%; }
.faq__item[open] summary .pm::before { transform: scaleY(0); opacity: 0; }
.faq__answer {
  color: var(--slate);
  max-width: 52rem;
  padding: 0 0.2rem;
  font-size: 1.02rem;
}
.faq__answer > div { padding-bottom: 1.6rem; }
.faq__answer p + p { margin-top: 0.9rem; }
.faq__answer strong { color: var(--ink); font-weight: 600; }
.faq__item:not([open]) .faq__answer { display: none; }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.footer__top {
  display: grid;
  grid-template-columns: 1.25fr 2fr;
  gap: 2.5rem 3rem;
  align-items: start;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr; gap: 2.4rem; } }
.footer__brand { display: inline-flex; align-items: center; gap: 0.8rem; }
.footer__chip { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); }
.footer__chip img { width: 100%; height: 100%; }
.footer__word { font-size: 1.32rem; letter-spacing: -0.03em; }
.footer__word b { font-weight: 700; }
.footer__word span { font-weight: 400; color: var(--ink-soft); }
.footer__tagline { margin-top: 1.3rem; color: var(--slate); max-width: 30rem; font-size: 0.98rem; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
}
@media (max-width: 620px) { .footer__cols { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.2rem; } }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.footer__coltitle {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin-bottom: 0.15rem;
}
.footer__col a { color: var(--slate); font-size: 0.92rem; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.8rem;
}
.footer__legal { color: var(--slate-2); font-size: 0.85rem; max-width: 46rem; line-height: 1.6; }
.footer__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-2);
  white-space: nowrap;
}

/* Stagger + sizing utilities — keep inline styles out of HTML for a strict CSP. */
.cap__title { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem); margin-top: 1rem; }
.d40 { --d: 40ms; }
.d60 { --d: 60ms; }
.d80 { --d: 80ms; }
.d120 { --d: 120ms; }
.d160 { --d: 160ms; }
.d180 { --d: 180ms; }
.d200 { --d: 200ms; }
.d240 { --d: 240ms; }

/* ---------- Reveal motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .jump .arr, .btn, .btn .arr, .social-link, .faq__item summary .pm::before, .faq__item summary .pm::after { transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 100px;
  padding: 0.72rem 1.4rem;
  cursor: pointer;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { opacity: 0.86; }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); opacity: 1; }

.hero__actions { align-items: center; }

/* ---------- Social links ---------- */
.social-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 0.62rem 1.1rem;
  transition: border-color 0.2s var(--ease);
}
.social-link:hover { border-color: var(--ink); }
.social-link svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.footer__social { margin-top: 1.6rem; }

/* ---------- Contact / CTA ---------- */
.contact__panel {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: clamp(2.2rem, 5vw, 4rem) clamp(1.4rem, 5vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow);
}
.contact__panel .eyebrow { justify-content: center; }
.contact__panel h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin-top: 1rem; }
.contact__lede { margin: 1.2rem auto 0; max-width: 40rem; color: var(--slate); }
.contact__actions { margin-top: 2rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8rem; }
.contact__note {
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-2);
}

/* ---------- Centered section head ---------- */
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* Hero transcript: review accent line */
.spec__body .rev { color: var(--slate-2); font-weight: 600; }

/* ---------- Why now: CRA timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr; } }
.tl {
  background: var(--bg);
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  display: grid;
  gap: 0.55rem;
  position: relative;
}
.tl--mark { background: var(--bg-2); }
.tl--mark::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--ink);
}
.tl__date {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  font-weight: 600;
}
.tl__h { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.tl__d { color: var(--slate); font-size: 0.95rem; line-height: 1.5; }
.whynow__note {
  margin-top: 1.8rem;
  color: var(--slate);
  font-size: 1.02rem;
  max-width: 50rem;
}
.whynow__note strong { color: var(--ink); font-weight: 600; }
.src {
  display: inline-block;
  margin-left: 0.35rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--slate-2);
  border-bottom: 1px solid var(--line-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.src:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- By the numbers (dark band) ---------- */
.numbers .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
@media (max-width: 820px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .metrics { grid-template-columns: 1fr; } }
.metric { background: var(--bg); padding: clamp(1.6rem, 2.6vw, 2.3rem); }
.metric__v {
  font-size: clamp(2.4rem, 1.5rem + 3vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
}
.metric__s { font-size: 0.5em; color: var(--slate-2); margin-left: 0.04em; vertical-align: 0.28em; }
.metric__l { margin-top: 0.9rem; color: var(--slate); font-size: 0.92rem; line-height: 1.5; }
.numbers__note { margin-top: 1.8rem; max-width: 46rem; color: var(--slate); font-size: 0.98rem; }

/* ---------- Use cases ---------- */
.usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
@media (max-width: 920px) { .usecases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .usecases { grid-template-columns: 1fr; } }
.usecase {
  background: var(--bg);
  padding: clamp(1.7rem, 2.6vw, 2.2rem);
  display: flex;
  flex-direction: column;
  transition: background 0.3s var(--ease);
}
.usecase:hover { background: var(--paper); }
.usecase__k { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--slate-2); }
.usecase h3 { font-size: 1.18rem; margin-top: 0.9rem; letter-spacing: -0.02em; }
.usecase > p { margin-top: 0.7rem; color: var(--slate); font-size: 0.96rem; }
.usecase__out {
  margin-top: auto;
  padding-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.usecase__out span {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin-bottom: 0.35rem;
}

/* =========================================================================
   Legal pages (/privacy, /terms) — readable line length, sticky TOC,
   print-friendly. Reuses the site tokens; no new colors.
   ========================================================================= */
.legal { padding: clamp(2.4rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); background: var(--bg); }
.legal__grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 70ch);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.legal__aside {
  position: sticky;
  top: 90px;
  font-size: 0.86rem;
}
.legal__aside-title {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin: 0 0 0.7rem;
}
.legal__toc { display: flex; flex-direction: column; gap: 0.15rem; }
.legal__toc a {
  color: var(--slate);
  text-decoration: none;
  padding: 0.22rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.7rem;
  margin-left: -0.7rem;
}
.legal__toc a:hover, .legal__toc a:focus-visible { color: var(--ink); border-left-color: var(--line-3); }
.legal__body h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); letter-spacing: -0.03em; margin: 0.4rem 0 0.6rem; }
.legal__dates { color: var(--slate-2); font-size: 0.9rem; margin: 0 0 1.6rem; }
.legal__body h2 {
  font-size: 1.22rem;
  letter-spacing: -0.015em;
  margin: 2.4rem 0 0.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.legal__body p, .legal__body li { color: var(--slate); line-height: 1.72; font-size: 0.99rem; }
.legal__body li { margin: 0.35rem 0; }
.legal__body strong { color: var(--ink-soft); }
.legal__body a { color: var(--ink-soft); text-underline-offset: 2px; }
.legal__body code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--chip-2);
  border-radius: var(--r-xs);
  padding: 0.08em 0.35em;
}
.legal__draft {
  background: var(--chip);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--ink);
  border-radius: var(--r-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: 1.6rem;
}
.legal__tablewrap { overflow-x: auto; margin: 1rem 0 1.4rem; }
.legal__body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
.legal__body th, .legal__body td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.9rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
}
.legal__body th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.footer__legalnav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer__legalnav a { color: var(--slate); text-decoration: none; font-size: 0.88rem; }
.footer__legalnav a:hover { color: var(--ink); }
@media (max-width: 880px) {
  .legal__grid { grid-template-columns: minmax(0, 1fr); }
  .legal__aside { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 1.4rem; }
}
@media print {
  .site-header, .legal__aside, .site-footer, .skip-link { display: none; }
  .legal { padding: 0; background: #fff; }
  .legal__grid { display: block; }
  .legal__body p, .legal__body li { color: #000; }
  .legal__draft { border: 2px solid #000; }
}

/* =========================================================================
   Interactive product walkthrough (#walkthrough) — real sample output,
   tabbed views, no fake editable controls. Motion is purposeful (view
   transitions only) and fully disabled under prefers-reduced-motion.
   ========================================================================= */
.wt {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.wt-banner {
  margin: 0;
  padding: 0.65rem 1.2rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--slate);
}
.wt-banner code { font-size: inherit; }
.wt-static { padding: 1.4rem 1.5rem; }
.wt-static p { color: var(--slate); font-size: 0.97rem; line-height: 1.7; max-width: 72ch; }
.wt-static p + p { margin-top: 0.8rem; }
.wt-static strong, .wt-static code { color: var(--ink-soft); }
.wt-shell { display: block; }
.wt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.7rem 1rem 0;
  border-bottom: 1px solid var(--line);
}
.wt-tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--slate);
  cursor: pointer;
}
.wt-tab:hover { color: var(--ink); }
.wt-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: var(--r-xs); }
.wt-tab[aria-selected="true"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}
.wt-panel { padding: 1.3rem 1.5rem 1.6rem; }
@media (prefers-reduced-motion: no-preference) {
  .wt-panel:not([hidden]) { animation: wt-panel-in 0.28s var(--ease); }
  @keyframes wt-panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
}
.wt-kv {
  display: grid;
  grid-template-columns: minmax(120px, max-content) 1fr;
  gap: 0.3rem 1.4rem;
  margin: 0 0 1rem;
  font-size: 0.93rem;
}
.wt-kv dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-2);
  padding-top: 0.18rem;
}
.wt-kv dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.wt-strip { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0.9rem 0; }
.wt-stat {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.9rem;
  min-width: 108px;
  background: var(--bg);
}
.wt-stat strong { display: block; font-size: 1.35rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wt-stat span { font-size: 0.76rem; color: var(--slate); }
.wt-stat--warn { background: var(--warn-bg); border-color: var(--warn); }
.wt-badge {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--slate);
  padding: 0.1rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
}
.wt-badge--ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.wt-badge--warn { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.wt-badge--danger { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.wt-badge--neutral { background: var(--bg-2); color: var(--slate); }
.wt-note { color: var(--slate); font-size: 0.9rem; line-height: 1.65; margin: 0.6rem 0; max-width: 76ch; }
.wt-docslink { margin: 0.9rem 0 0; font-size: 0.92rem; }
.wt-docslink a { color: var(--ink-soft); }
.wt-findings { display: grid; grid-template-columns: minmax(230px, 300px) 1fr; gap: 1.2rem; margin-top: 0.8rem; }
.wt-findinglist { display: flex; flex-direction: column; gap: 0.5rem; }
.wt-findingbtn {
  appearance: none;
  font: inherit;
  color: var(--ink);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.8rem;
  cursor: pointer;
}
.wt-findingbtn:hover { border-color: var(--line-3); }
.wt-findingbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wt-findingbtn[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); }
.wt-findingbtn code { font-family: var(--mono); font-size: 0.78rem; }
.wt-findingcomp { color: var(--slate-2); font-size: 0.8rem; width: 100%; }
.wt-detail {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1rem 1.1rem;
  background: var(--paper);
  min-height: 220px;
}
.wt-detailhead { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.wt-detailhead code { font-family: var(--mono); font-size: 0.85rem; font-weight: 600; }
.wt-cmdwrap { margin: 0.9rem 0 0; }
.wt-cmd {
  margin: 0;
  padding: 0.7rem 0.9rem;
  background: var(--term-bg);
  color: var(--term-fg);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 0.78rem;
  overflow-x: auto;
  white-space: pre;
}
.wt-table { width: 100%; border-collapse: collapse; margin: 0.9rem 0 0.4rem; font-size: 0.88rem; }
.wt-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-2);
  padding: 0.45rem 0.9rem 0.45rem 0;
  border-bottom: 1px solid var(--line-2);
}
.wt-table td {
  padding: 0.55rem 0.9rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
  vertical-align: top;
}
.wt-table code { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); }
.wt-queue { list-style: none; margin: 0.8rem 0; padding: 0; }
.wt-queue li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.wt-queue code { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); }
.wt-gates { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0.9rem 0; }
.wt-gatecard {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1rem 1.1rem;
  background: var(--bg);
}
.wt-gatecard--blocked { border-color: var(--danger); background: var(--danger-bg); }
.wt-gatecard h4 { margin: 0.55rem 0 0.4rem; font-size: 0.98rem; letter-spacing: -0.01em; }
.wt-gatecard p { margin: 0.25rem 0; color: var(--slate); font-size: 0.9rem; line-height: 1.55; }
.wt-exit { font-family: var(--mono); font-size: 0.78rem !important; color: var(--slate-2) !important; }
.boundaries { margin-top: 2.2rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.boundaries__title { color: var(--ink-soft); font-weight: 600; font-size: 0.98rem; margin: 0 0 0.7rem; }
.boundaries__list {
  columns: 2;
  column-gap: 3rem;
  margin: 0;
  padding-left: 1.1rem;
}
.boundaries__list li { color: var(--slate); font-size: 0.94rem; line-height: 1.6; margin-bottom: 0.45rem; break-inside: avoid; }
@media (max-width: 820px) {
  .wt-findings { grid-template-columns: 1fr; }
  .wt-gates { grid-template-columns: 1fr; }
  .boundaries__list { columns: 1; }
}

/* Hero terminal: the deterministic audit sequence plays once when revealed.
   Each ✓ line fades in in order; static (all visible) under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .spec.is-visible .spec__body .ok,
  .spec.is-visible .spec__body .rev {
    opacity: 0;
    animation: spec-line-in 0.3s var(--ease) forwards;
  }
  .spec.is-visible .spec__body .ok:nth-of-type(1) { animation-delay: 0.30s; }
  .spec.is-visible .spec__body .ok:nth-of-type(2) { animation-delay: 0.55s; }
  .spec.is-visible .spec__body .ok:nth-of-type(3) { animation-delay: 0.80s; }
  .spec.is-visible .spec__body .ok:nth-of-type(4) { animation-delay: 1.05s; }
  .spec.is-visible .spec__body .ok:nth-of-type(5) { animation-delay: 1.30s; }
  .spec.is-visible .spec__body .ok:nth-of-type(6) { animation-delay: 1.55s; }
  .spec.is-visible .spec__body .ok:nth-of-type(7) { animation-delay: 1.80s; }
  .spec.is-visible .spec__body .rev { animation-delay: 2.1s; }
  @keyframes spec-line-in { to { opacity: 1; } }
}


/* ---- Theme toggle: same-origin, no dependencies, keyboard accessible ---- */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--slate);
  cursor: pointer;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.theme-toggle:active { transform: scale(0.96); }
.theme-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition: none; }
  .theme-toggle:active { transform: none; }
}


/* ---------------------------------------------------------------------------
   Brand art in dark mode. The lockup and watermark are monochrome dark ink
   (verified: zero coloured pixels), so an exact inversion renders them light
   without touching hue. The footer chip already ships a light-on-dark variant.
   --------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img { filter: invert(1); }
  :root:not([data-theme="light"]) .hero__watermark { filter: invert(1); opacity: 0.05; }
}
:root[data-theme="dark"] .brand img { filter: invert(1); }
:root[data-theme="dark"] .hero__watermark { filter: invert(1); opacity: 0.05; }

/* ------------------------------------------------------------------ */
/* Adversarial test scorecard (TASK-WC-SCORECARD-PUBLIC-FIX-01).        */
/* Uses the existing tokens only. The page is generated, so these rules */
/* must not depend on hand-authored markup that a regeneration removes. */
/* ------------------------------------------------------------------ */
.scorecard-page { padding: clamp(2.4rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); background: var(--bg); }
.scorecard-page h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); letter-spacing: -0.03em; margin: 0.4rem 0 0.8rem; }
.scorecard-page h2 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin: 2.2rem 0 0.6rem; }
.scorecard-page p { max-width: 68ch; }

/* The boundary sentence is the most important text on the page. */
.scorecard-page .boundary {
  border-left: 3px solid var(--line-3);
  padding: 0.85rem 1.1rem;
  background: var(--bg-2);
  border-radius: 6px;
  max-width: 68ch;
}
.scorecard-page .boundary-note { color: var(--ink-soft); font-size: 0.95rem; margin-top: 2.4rem; }

.scorecard-page .facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.2rem; margin: 0.6rem 0 0; }
.scorecard-page .facts dt { color: var(--ink-soft); }
.scorecard-page .facts dd { margin: 0; }
/* A revision hash must wrap rather than push the page sideways on mobile. */
.scorecard-page .facts dd code { overflow-wrap: anywhere; word-break: break-word; }

/* The table scrolls INSIDE its own wrapper; the page never scrolls sideways. */
.scorecard-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0.6rem 0 0; }
.scorecard-page table.scorecard { border-collapse: collapse; width: 100%; min-width: 30rem; }
.scorecard-page table.scorecard caption { text-align: left; color: var(--ink-soft); padding-bottom: 0.5rem; }
.scorecard-page table.scorecard th,
.scorecard-page table.scorecard td { border-bottom: 1px solid var(--line); padding: 0.5rem 0.75rem; text-align: left; }
.scorecard-page table.scorecard th { color: var(--ink-soft); font-weight: 600; }
.scorecard-page table.scorecard .num { text-align: right; font-variant-numeric: tabular-nums; }
.scorecard-page table.scorecard tfoot th { border-top: 2px solid var(--line-2); border-bottom: none; }
