/* ============================================================
   ACCELERATE — panel-style landing (Magier/LMS language)
   Warm paper ground · white floating panels · dark inset sections
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* -- ground & surfaces ------------------------------------ */
  --paper: #EEEDEA;          /* warm grey page ground */
  --surface: #F5F3F0;        /* sunken inner surface */
  --white: #FFFFFF;

  /* -- ink ---------------------------------------------------- */
  --ink: #1B1C1F;
  --ink-2: #57595F;
  --ink-3: #797B82;

  /* -- brand accent (controlled red) -------------------------- */
  --accent: #E5483E;
  --accent-dark: #C93A31;    /* buttons / text-on-light */
  --accent-050: #FCEEEC;
  --accent-100: #F8DCD9;

  /* -- semantic ------------------------------------------------ */
  --ok: #2E9E5B;
  --ok-ink: #207044;
  --ok-050: #E9F4EC;
  --hold: #B98A2E;
  --hold-050: #F7F0E4;

  /* -- dark sections ------------------------------------------- */
  --dk-ink: #191A1E;
  --dk-ink-2: #232428;
  --dk-ink-3: #2C2D32;
  --dk-text: #ECEAE6;
  --dk-muted: #A4A5AB;
  --dk-faint: #77787E;
  --dk-line: rgba(255, 255, 255, 0.10);

  /* -- lines & shadows ------------------------------------------ */
  --line: #E3E1DC;
  --line-2: #D4D2CC;
  --ring: inset 0 0 0 1px var(--line);
  --soft: inset 0 0 0 1px var(--line), 0 20px 50px -38px rgba(27, 28, 31, 0.28);
  --elev: 0 1px 2px rgba(27, 28, 31, 0.04), 0 24px 60px -38px rgba(27, 28, 31, 0.30);

  /* -- radii ------------------------------------------------------ */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-panel: 40px;

  /* -- type -------------------------------------------------------- */
  --font-sans: 'Geist', -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Geist', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-hero: clamp(40px, 4.8vw, 66px);
  --fs-section: clamp(30px, 3.6vw, 52px);
  --fs-sub: clamp(24px, 2.6vw, 34px);

  /* -- layout ------------------------------------------------------ */
  --gutter: 16px;
  --nav-h: 76px;
  --max-page: 1400px;

  /* -- motion ------------------------------------------------------ */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 280ms;
}

/* ============================================================
   BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

section { scroll-margin-top: 96px; }

/* split-grid children must never force tracks wider than the viewport */
.hero-grid > *, .dk-grid > *, .comp-grid > *, .audit-grid > *, .faq-grid > *,
.pilot-grid > *, .boundary-note > *, .boundary-grid > *, .opt-grid > *,
.arch-split > *, .card-grid > *, .pilot-stats > *, .arch-plane-grid > * {
  min-width: 0;
}

/* display headings */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
}
h1, .display-xl { font-weight: 800; letter-spacing: -0.035em; line-height: 1.0; }

.lead { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--ink-2); line-height: 1.6; }
.small { font-size: 14px; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); font-size: 0.92em; }

/* ============================================================
   PAGE SHELL — panels float on the paper ground
   ============================================================ */

.shell {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.panel {
  background: var(--white);
  border-radius: 40px;
}

.pad {
  padding: clamp(32px, 5vw, 72px) clamp(20px, 4.5vw, 64px);
}

/* dark inset section */
.dk {
  background: linear-gradient(155deg, var(--dk-ink) 0%, #2A2523 100%);
  border-radius: 40px;
  color: var(--dk-text);
  overflow: hidden;
}

/* ============================================================
   NAV — floating pill
   ============================================================ */

.nav-wrap {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
  margin-top: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
  width: 100%;
  max-width: 980px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: var(--ring), 0 10px 30px -14px rgba(27, 28, 31, 0.25);
  padding: 0 10px 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  flex: none;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--accent);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px 5px;
  border: 2.5px solid #fff;
  border-right: 0;
  border-radius: 3px 0 0 3px;
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--t-fast);
}
.nav-link:hover { color: var(--accent-dark); }

.nav-cta { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 999px;
  position: relative;
  background: var(--ink);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast), background var(--t-fast);
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-sheet {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 28, 31, 0.35);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease-out);
}
body.nav-open .nav-sheet { opacity: 1; pointer-events: auto; }

.nav-sheet-card {
  position: absolute;
  top: 12px; left: var(--gutter); right: var(--gutter);
  background: var(--white);
  border-radius: 28px;
  padding: 20px 24px 28px;
  box-shadow: var(--elev);
  transform: translateY(-8px);
  transition: transform var(--t-med) var(--ease-out);
}
body.nav-open .nav-sheet-card { transform: none; }

.nav-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.nav-close {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--paper);
  display: grid;
  place-items: center;
}
.nav-close svg { width: 16px; height: 16px; }

.nav-sheet-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.nav-sheet-link .mono { font-size: 12px; color: var(--ink-3); font-weight: 400; }

/* ============================================================
   BUTTONS — calm pills, no hover motion
   ============================================================ */

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }

.btn-accent { background: var(--accent-dark); color: #fff; }
.btn-accent:hover { background: var(--accent); }

.btn-outline { background: var(--white); color: var(--ink); box-shadow: var(--ring); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); }

.btn-ghost-dk { color: var(--dk-text); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.25); }
.btn-ghost-dk:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5); }

.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }

.btn .btn-arrow { transition: transform var(--t-fast) var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============================================================
   KICKERS · FRAMED WORDS · SQUIGGLES
   ============================================================ */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}
.kicker-plain { background: var(--white); color: var(--ink-2); box-shadow: var(--ring); }
.kicker-accent { background: var(--accent-050); color: var(--accent-dark); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 22%, transparent); }
.kicker-light { background: rgba(255,255,255,0.10); color: var(--dk-text); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
.kicker i { width: 7px; height: 7px; border-radius: 2px; background: currentColor; opacity: 0.8; flex: none; }

/* Figma-style selection frame around an accent word */
.framed { position: relative; color: var(--accent-dark); padding: 0 0.04em; z-index: 0; white-space: nowrap; }
.framed::before {
  content: "";
  position: absolute;
  inset: -0.06em -0.12em;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}
.framed::after {
  content: "";
  position: absolute;
  inset: -0.06em -0.12em;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, #fff 0 2.5px, var(--accent) 2.5px 4px, transparent 4.5px),
    radial-gradient(circle at 100% 0%, #fff 0 2.5px, var(--accent) 2.5px 4px, transparent 4.5px),
    radial-gradient(circle at 0% 100%, #fff 0 2.5px, var(--accent) 2.5px 4px, transparent 4.5px),
    radial-gradient(circle at 100% 100%, #fff 0 2.5px, var(--accent) 2.5px 4px, transparent 4.5px);
  z-index: -1;
}

/* hand-drawn swiggly underline */
.swiggle {
  position: absolute;
  left: 0; bottom: -0.22em;
  width: 100%; height: 0.35em;
  color: var(--accent);
  pointer-events: none;
}

/* big squiggle backdrop (FAQ / CTA) */
.squiggle-bg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   SECTION HEADER — heading left, copy right
   ============================================================ */

.sec-head {
  display: grid;
  gap: 18px;
}
@media (min-width: 980px) {
  .sec-head { grid-template-columns: 1.5fr 1fr; align-items: end; gap: 48px; }
}
.sec-head h2 { margin-top: 22px; font-size: var(--fs-section); line-height: 1.02; }
.sec-head .lead { max-width: 44ch; }

.sec-head-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.sec-head-center .kicker { margin-bottom: 4px; }

/* ============================================================
   HERO
   ============================================================ */

.hero { padding-top: 28px; }

.hero-panel { overflow: hidden; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.hero-badge-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero h1 { font-size: var(--fs-hero); line-height: 0.98; margin-top: 22px; }
.hero .lead { margin-top: 22px; max-width: 32em; }

.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-spec {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.hero-spec span { display: inline-flex; align-items: center; gap: 8px; }
.hero-spec svg { width: 15px; height: 15px; color: var(--accent-dark); flex: none; }

/* faint dotted backdrop on hero panel right side */
.hero-dots {
  position: absolute;
  right: -40px; top: -40px;
  width: 420px; height: 420px;
  background-image: radial-gradient(color-mix(in oklab, var(--accent) 14%, transparent) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 70%);
          mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 70%);
  pointer-events: none;
}

/* ============================================================
   RUN PANEL — hero product surface
   ============================================================ */

.run-panel {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--soft);
}

.run-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.run-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: baseline; gap: 10px; }
.run-title .mono { font-size: 12px; color: var(--ink-3); font-weight: 400; }

.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.state-pill i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.state-pill.ok { background: var(--ok-050); color: var(--ok-ink); }
.state-pill.ok i { background: var(--ok); }
.state-pill.accent { background: var(--accent-050); color: var(--accent-dark); }
.state-pill.accent i { background: var(--accent); }
.state-pill.hold { background: var(--hold-050); color: var(--hold); }
.state-pill.hold i { background: var(--hold); }

.run-prospect {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.run-avatar {
  width: 42px; height: 42px;
  border-radius: 14px;
  background: var(--accent-050);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  flex: none;
}
.run-prospect-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.run-prospect-meta { font-size: 13px; color: var(--ink-3); }

.run-steps { padding: 8px 22px 12px; }

.run-step {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  position: relative;
}
.run-step::before {
  content: "";
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 1.5px;
  background: var(--line);
}
.run-step:first-child::before { top: 50%; }
.run-step:last-child::before { bottom: 50%; }

.run-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--ring);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  align-self: center;
  color: var(--ok-ink);
}
.run-dot.done { background: var(--ok-050); box-shadow: none; }
.run-dot.active { color: var(--accent-dark); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 5px var(--accent-050); }
.run-dot svg { width: 12px; height: 12px; }
.run-dot.active::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.run-step-label { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.run-step-label small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  margin-top: 2px;
}
.run-step-state { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.run-step-state.ok { color: var(--ok-ink); font-weight: 500; }

.run-foot {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  font-size: 12.5px;
  color: var(--ink-3);
}

.run-audit-tag {
  position: absolute;
  bottom: -22px;
  right: -16px;
  width: max-content;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  box-shadow: var(--elev);
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.45;
  z-index: 2;
}
.run-audit-tag .mono { display: block; font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.run-audit-tag strong { font-weight: 600; }

/* ============================================================
   TRUST CARDS
   ============================================================ */

.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }

.f-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--soft);
  padding: 26px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.f-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line), 0 34px 70px -34px rgba(27,28,31,0.34); }

.f-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.f-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--accent-050);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  flex: none;
}
.f-icon svg { width: 20px; height: 20px; }
.f-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: var(--ring);
  white-space: nowrap;
}
.f-card h3 { margin-top: 20px; font-size: 20px; line-height: 1.2; }
.f-card p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* ============================================================
   SPEC ROWS — what the engine owns
   ============================================================ */

.spec-list { border-top: 1px solid var(--line-2); }
.spec-row {
  display: grid;
  grid-template-columns: 56px 240px 1fr;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.spec-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-dark);
}
.spec-name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.spec-desc { color: var(--ink-2); font-size: 14.5px; }

/* ============================================================
   LIFECYCLE (dark signature section)
   ============================================================ */

.dk-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(40px, 5vw, 72px);
  padding: clamp(40px, 5vw, 80px);
}

.dk-left { position: sticky; top: 96px; align-self: start; }
.dk-left h2 { font-size: clamp(34px, 3.8vw, 54px); line-height: 0.98; color: #fff; margin-top: 24px; }
.dk-left .lead { color: rgba(255,255,255,0.60); margin-top: 18px; max-width: 26em; }
.dk-left .btn { margin-top: 28px; }

.stage-rail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.stage {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: center;
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: background var(--t-fast);
}
.stage:first-child { border-top: 0; }
.stage:hover { background: rgba(255,255,255,0.04); }
.stage[aria-selected="true"] { background: rgba(255,255,255,0.07); }

.stage-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  color: rgba(255,255,255,0.28);
  transition: color var(--t-fast);
  letter-spacing: -0.02em;
}
.stage[aria-selected="true"] .stage-num { color: var(--accent); }

.stage-name { font-size: 17px; font-weight: 600; color: rgba(255,255,255,0.75); letter-spacing: -0.01em; }
.stage[aria-selected="true"] .stage-name { color: var(--dk-text); }

.stage-flag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.stage-flag.ok { background: var(--ok-050); color: var(--ok-ink); }
.stage-flag.hold { background: var(--hold-050); color: var(--hold); }
.stage-flag.accent { background: var(--accent-050); color: var(--accent-dark); }

.stage-panels { margin-top: 20px; min-width: 0; }

.stage-panel { display: none; }
.stage-panel.active { display: block; animation: panel-in var(--t-med) var(--ease-out); }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.panel-kicker {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
}
.panel-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--dk-text); margin-top: 6px; }
.panel-lede { margin-top: 8px; color: rgba(255,255,255,0.60); font-size: 15px; line-height: 1.6; max-width: 54em; }

/* records — dark variant inside lifecycle */
.record {
  margin-top: 20px;
  border-radius: var(--r-md);
  background: var(--dk-ink-2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  overflow: hidden;
}
.record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: var(--dk-ink-3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dk-text);
}
.record-head .mono { font-size: 11.5px; color: rgba(255,255,255,0.40); font-weight: 400; }

.record-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 14px;
}
.record-row:last-of-type { border-bottom: 0; }
.record-row dt { color: rgba(255,255,255,0.45); font-weight: 500; }
.record-row dd { color: var(--dk-text); }
.record-row dd .muted { display: block; font-size: 12.5px; margin-top: 1px; color: rgba(255,255,255,0.42); }
.record-note {
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* light-context record override (compliance panel) */
.record-light {
  background: var(--white);
  box-shadow: var(--soft);
}
.record-light .record-head { background: var(--surface); border-color: var(--line); color: var(--ink); }
.record-light .record-head .mono { color: var(--ink-3); }
.record-light .record-row { border-bottom-color: var(--line); }
.record-light .record-row dt { color: var(--ink-3); }
.record-light .record-row dd { color: var(--ink); }
.record-light .record-row dd .muted { color: var(--ink-3); }
.record-light .record-note { background: var(--surface); border-top-color: var(--line); color: var(--ink-3); }

/* code blocks */
.code-block {
  margin-top: 20px;
  background: var(--dk-ink);
  color: #D9D7D2;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
}
.code-block .c-key { color: #F0A9A3; }
.code-block .c-str { color: #A8D3B4; }
.code-block .c-com { color: #77787E; }
.code-light .code-block, .code-block.on-light { box-shadow: inset 0 0 0 1px var(--line); }

/* ============================================================
   BOUNDARY
   ============================================================ */

.boundary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.boundary-col {
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--soft);
  padding: 28px 30px 32px;
}
.boundary-col-col {
  background: var(--ink);
  color: var(--dk-text);
  box-shadow: none;
}
.boundary-col-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.boundary-col-label i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.boundary-col:first-child .boundary-col-label i { background: var(--accent); }
.boundary-col-col .boundary-col-label { color: var(--dk-text); }
.boundary-col-col .boundary-col-label i { background: var(--ok); }

.boundary-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  color: var(--ink-2);
  align-items: baseline;
}
.boundary-col-col .boundary-item { color: rgba(255,255,255,0.65); }
.boundary-item svg { width: 15px; height: 15px; transform: translateY(2px); color: var(--ink-3); }
.boundary-col-col .boundary-item svg { color: var(--accent); }

.boundary-note {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.guardrails { border-top: 1px solid var(--line-2); margin-top: 20px; }
.guardrail {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.guardrail b { font-weight: 600; }
.guardrail span { color: var(--ink-2); }

.legal-note { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }

/* ============================================================
   COMPLIANCE
   ============================================================ */

.comp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.comp-points { margin-top: 26px; display: grid; border-top: 1px solid var(--line-2); }
.comp-point {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.comp-point b { font-weight: 600; font-size: 15px; }
.comp-point span { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

.comp-rule {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-050);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.comp-rule b { color: var(--ink); font-weight: 600; }

.channel-decision {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.channel-name { font-weight: 600; font-size: 14.5px; padding-top: 2px; }
.channel-reasons { display: grid; gap: 6px; }
.channel-reason {
  display: flex;
  gap: 9px;
  align-items: baseline;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.channel-reason svg { width: 13px; height: 13px; flex: none; transform: translateY(1px); }
.channel-reason svg.ok { color: var(--ok); }
.channel-reason svg.hold { color: var(--hold); }

/* ============================================================
   CRM TABLE
   ============================================================ */

.crm-wrap { border-radius: var(--r-lg); background: var(--white); box-shadow: var(--soft); overflow: hidden; }
table.crm { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.crm th, table.crm td {
  text-align: left;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.crm thead th {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
}
table.crm tbody th { font-weight: 600; width: 190px; }
table.crm tbody td { color: var(--ink-2); }
table.crm tbody tr:last-child th, table.crm tbody tr:last-child td { border-bottom: 0; }
.crm-canonical { color: var(--ok-ink); font-weight: 500; }

.table-foot {
  display: flex; gap: 8px 24px; flex-wrap: wrap;
  padding: 13px 22px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}

.crm-legend {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.crm-legend span { display: inline-flex; align-items: center; gap: 8px; }
.crm-legend i { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ============================================================
   ARCHITECTURE
   ============================================================ */

.arch { max-width: 880px; margin: 0 auto; }

.arch-band {
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--soft);
  padding: 18px 20px;
}
.arch-label { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 10px; }

.arch-plane {
  background: linear-gradient(155deg, var(--dk-ink), #33241F);
  color: var(--dk-text);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  box-shadow: var(--elev);
}
.arch-plane-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.arch-plane-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.arch-plane-sub { font-size: 12.5px; color: rgba(255,255,255,0.45); }
.arch-plane-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  overflow: hidden;
}
.arch-cell { background: var(--dk-ink-2); padding: 13px 15px; }
.arch-cell b { display: block; font-size: 13.5px; font-weight: 600; color: var(--dk-text); }
.arch-cell span { font-size: 12px; color: rgba(255,255,255,0.45); }

.arch-out {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.arch-out:last-child { border-bottom: 0; padding-bottom: 2px; }
.arch-out b { font-weight: 600; flex: none; }
.arch-out span { color: var(--ink-3); font-size: 12.5px; margin-left: auto; text-align: right; }

.arch-connect {
  display: flex;
  justify-content: center;
  position: relative;
  height: 48px;
}
.arch-connect svg { height: 100%; color: var(--ink-3); }
.arch-connect-tag {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  box-shadow: var(--ring);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
}

.arch-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.arch-ai {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--line-2);
  padding: 15px 20px;
  font-size: 14px;
  color: var(--ink-2);
}
.arch-ai b { font-weight: 600; }
.arch-ai .mono { margin-left: auto; font-size: 12px; color: var(--ink-3); flex: none; white-space: nowrap; }

/* ============================================================
   AUDIT
   ============================================================ */

.audit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.audit-trail { border-radius: var(--r-lg); background: var(--white); box-shadow: var(--soft); overflow: hidden; }
.audit-row {
  display: grid;
  grid-template-columns: 96px 72px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.audit-row:last-child { border-bottom: 0; }
.audit-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.audit-actor {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 4px 0;
  border-radius: 999px;
}
.audit-actor.system { background: var(--surface); color: var(--ink-2); box-shadow: var(--ring); }
.audit-actor.policy { background: var(--accent-050); color: var(--accent-dark); }
.audit-actor.model { background: var(--ok-050); color: var(--ok-ink); }
.audit-event { color: var(--ink); }
.audit-event .muted { display: block; font-size: 12.5px; margin-top: 1px; }
.audit-ref { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }

.entities { margin-top: 24px; border-top: 1px solid var(--line-2); padding-top: 18px; }
.entities-label { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 12px; }
.entity-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.entity {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--white);
  box-shadow: var(--ring);
  border-radius: 8px;
  padding: 5px 10px;
}

/* ============================================================
   OPTIMIZATION
   ============================================================ */

.versions-wrap { border-radius: var(--r-lg); background: var(--white); box-shadow: var(--soft); overflow: hidden; }
table.versions { width: 100%; border-collapse: collapse; font-size: 14px; }
table.versions th, table.versions td {
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
table.versions thead th {
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  background: var(--surface); border-bottom: 1px solid var(--line-2);
}
table.versions tbody th { font-weight: 600; white-space: nowrap; }
table.versions tbody td { color: var(--ink-2); }
table.versions tbody tr:last-child th, table.versions tbody tr:last-child td { border-bottom: 0; }
.v-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-dark);
  background: var(--accent-050);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.opt-principles { display: grid; gap: 20px; margin-top: 32px; }
.opt-principle { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.opt-principle-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.9;
}
.opt-principle b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.opt-principle p { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.55; }

/* ============================================================
   PILOT — stat block panel
   ============================================================ */

.pilot-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(32px, 4vw, 56px);
}

.pilot-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}
.pilot-stat {
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--accent), #B32E26);
  color: #fff;
  padding: 22px 22px 24px;
  box-shadow: 0 18px 45px -22px rgba(201, 58, 49, 0.55);
}
.pilot-stat:nth-child(2), .pilot-stat:nth-child(3) {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--soft);
}
.pilot-stat-flag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: currentColor;
  opacity: 0.75;
  margin-bottom: 12px;
}
.pilot-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.pilot-stat-desc { font-size: 13px; margin-top: 8px; line-height: 1.5; opacity: 0.85; }

.pilot-facts { display: grid; }
.pilot-fact {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.pilot-fact:last-child { border-bottom: 0; }
.pilot-fact b { font-weight: 600; }
.pilot-fact span { color: var(--ink-2); }

.pilot-cta-row { margin-top: 30px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ============================================================
   FAQ
   ============================================================ */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--soft);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16.5px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-050);
  color: var(--accent-dark);
  transition: transform var(--t-med) var(--ease-out);
}
.faq-plus svg { width: 15px; height: 15px; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 56em; }

/* ============================================================
   FINAL CTA
   ============================================================ */

.cta-dk {
  text-align: center;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 64px);
  position: relative;
}
.cta-dk-inner { position: relative; z-index: 1; }
.cta-dk-inner h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.0; color: var(--dk-text); max-width: 18em; margin: 24px auto 0; }
.cta-dk-inner .lead { color: rgba(255,255,255,0.60); max-width: 34em; margin: 20px auto 0; }
.cta-dk-inner .btn-light { color: var(--ink); }
.cta-facts {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}
.cta-facts span { display: inline-flex; align-items: center; gap: 8px; }
.cta-facts svg { width: 15px; height: 15px; }

/* ============================================================
   FOOTER — giant wordmark panel
   ============================================================ */

.footer { padding-bottom: var(--gutter); }
.footer-panel {
  background: var(--accent);
  background: linear-gradient(165deg, var(--accent) 0%, #C13029 100%);
  border-radius: 40px;
  color: #fff;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px) 36px;
  overflow: hidden;
  position: relative;
}
.foot-word {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.85;
  font-size: clamp(64px, 13vw, 190px);
  text-align: center;
  user-select: none;
  margin-bottom: clamp(40px, 6vw, 80px);
  color: #fff;
}
.foot-word span { opacity: 0.55; }

.foot-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.foot-col h3 { font-size: 16px; color: #fff; margin-bottom: 14px; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; }
.foot-col p { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.75); max-width: 30em; }
.foot-col ul { display: grid; gap: 8px; }
.foot-col a, .foot-col li { font-size: 14px; color: rgba(255,255,255,0.75); transition: color var(--t-fast); }
.foot-col a:hover { color: #fff; }

.foot-base {
  border-top: 1px solid rgba(255,255,255,0.20);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.70);
}

/* ============================================================
   REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
  .hero-panel-grid, .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 20px; }
  .run-audit-tag { right: 8px; }
  .comp-grid, .audit-grid, .faq-grid { grid-template-columns: 1fr; }
  .pilot-grid { grid-template-columns: 1fr; }
  .boundary-note { grid-template-columns: 1fr; }
  .dk-grid { grid-template-columns: 1fr; }
  .dk-left { position: static; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

@media (min-width: 1081px) {
  .nav-toggle { display: none; }
}

@media (max-width: 900px) {
  .boundary-grid { grid-template-columns: 1fr; }
  .arch-split { grid-template-columns: 1fr; }
  .arch-plane-grid { grid-template-columns: repeat(2, 1fr); }
  .pilot-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 12px; }
  .panel { border-radius: 28px; }
  .dk { border-radius: 28px; }
  .pad { padding: 28px 20px; }
  .dk-grid { padding: 28px 20px; }
  .channel-decision { grid-template-columns: 1fr; gap: 10px; }
  .channel-decision .state-pill { justify-self: start; }
  table.versions thead { display: none; }
  table.versions tbody th, table.versions tbody td { display: block; width: 100%; border-bottom: 0; padding: 4px 18px; }
  table.versions tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.versions tbody td { padding-bottom: 6px; }
  table.versions tbody td:nth-child(2)::before { content: "Version"; display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
  table.versions tbody td:nth-child(3)::before { content: "Measured outcomes"; display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
  .card-grid { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 40px 1fr; }
  .spec-row .spec-desc { grid-column: 2; }
  .spec-num { font-size: 13px; font-family: var(--font-mono); color: var(--ink-3); font-weight: 400; }
  .guardrail { grid-template-columns: 1fr; gap: 2px; }
  .comp-point { grid-template-columns: 1fr; gap: 2px; }
  .record-row { grid-template-columns: 1fr; gap: 2px; }
  .audit-row { grid-template-columns: 1fr; gap: 3px; }
  .audit-time { order: -1; }
  .audit-ref { display: none; }
  .pilot-fact { grid-template-columns: 1fr; gap: 2px; }
  .arch-ai { flex-direction: column; align-items: flex-start; }
  .arch-ai .mono { margin-left: 0; white-space: normal; }
  .hero-actions .btn { flex: 1; }
  .run-audit-tag { position: static; margin: -10px 16px 0 auto; width: max-content; }
  .faq-item summary { font-size: 15.5px; }
  table.crm thead { display: none; }
  table.crm tbody th, table.crm tbody td { display: block; width: 100%; border-bottom: 0; padding: 4px 18px; }
  table.crm tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.crm tbody td { padding-bottom: 6px; }
  table.crm tbody td::before { content: attr(data-th); display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
  .foot-cols { grid-template-columns: 1fr; gap: 28px; }
  .pilot-stats { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}