/* ABOUTME: Styles for the CONTROL variant — a light, dense, data-forward compliance control room.
   ABOUTME: Crisp hairlines, mono numerals, status colors as data, subtle data-driven motion. */

:root {
  /* surfaces */
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #fbfbfa;
  --surface-sunk: #f2f2ef;
  /* ink */
  --ink: #14161b;
  --ink-2: #2c2f37;
  --grey: #585b64;       /* warm grey, AA on light: ~7:1 */
  --grey-soft: #6e7179;  /* meta text, AA on white (~4.9:1) */
  /* lines */
  --line: #e4e4df;
  --line-strong: #d3d3cc;
  /* brand */
  --orange: #ff6500;
  --orange-ink: #c44400;  /* orange usable as TEXT on light (AA) */
  /* status as DATA colors */
  --ok: #10b981;
  --ok-cell: #d3f3e6;
  --ok-ink: #06684a;      /* green text passes AA on ok-cell + white */
  --warn: #e5a000;
  --warn-cell: #fbeecb;
  --warn-ink: #8a6300;    /* amber text passes AA */
  --bad: #f31700;
  --bad-cell: #fcdbd7;
  --bad-ink: #c01200;     /* red text passes AA */
  --na: #ededea;
  --na-ink: #686b72;      /* "not in scope" symbol, AA on na cell */
  /* type */
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* metrics */
  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 14px;
  --maxw: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(20,22,27,.04), 0 4px 16px rgba(20,22,27,.05);
  --shadow-lg: 0 2px 4px rgba(20,22,27,.05), 0 12px 40px rgba(20,22,27,.08);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
strong { font-weight: 600; color: var(--ink); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font: 500 14px/1 var(--sans); transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

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

/* mono numerals everywhere they matter */
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 14px/1 var(--sans); letter-spacing: -0.01em;
  padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn--lg { padding: 13px 22px; font-size: 15px; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 1px 2px rgba(196,68,0,.25); }
.btn--primary:hover { background: #ff7a26; }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--grey-soft); }
.btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--line:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- chip (live indicator) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2);
}
.chip--sm { padding: 4px 8px; font-size: 11px; }
.chip__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(16,185,129,.5);
  animation: pulse 2.2s ease-out infinite;
}
.chip__dot--static { box-shadow: none; animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  70% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
@media (prefers-reduced-motion: reduce) { .chip__dot { animation: none; } }
.chip__label { line-height: 1; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,247,245,.82);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand__mark { color: var(--orange); display: inline-flex; }
.brand__name { font-weight: 700; letter-spacing: .06em; font-size: 16px; }
.topbar .chip--live { margin-right: auto; }

.nav { display: flex; align-items: center; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu > li > a:not(.btn) {
  display: inline-block; padding: 8px 12px; font-size: 14px; color: var(--grey);
  border-radius: var(--radius-sm); transition: color .15s ease, background .15s ease;
}
.nav__menu > li > a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
.nav__cta-group { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.nav__toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong);
  background: var(--surface); border-radius: var(--radius-sm); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__bars { position: relative; }
.nav__bars::before { position: absolute; top: -6px; left: 0; }
.nav__bars::after { position: absolute; top: 6px; left: 0; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(32px, 6vw, 64px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__texture {
  position: absolute; inset: 0; z-index: 0;
  background: url("img/grid-light.png") center -40px / cover no-repeat;
  opacity: .5; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 55%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 55%, transparent 90%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px/1 var(--mono); letter-spacing: .02em; color: var(--orange-ink);
  text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow__tick { width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero__deck { font-size: clamp(16px, 1.6vw, 19px); color: var(--grey); max-width: 38ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero__readout {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 32px 0 0;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.hero__readout-item { display: flex; flex-direction: column; gap: 4px; }
.hero__readout dt {
  font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--grey-soft);
}
.hero__readout dd { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.hero__readout .num { font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.num-was { font: 400 12px/1 var(--mono); color: var(--grey-soft); }

/* ---------- posture board ---------- */
.board {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(16px, 2vw, 22px);
  display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
.board__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.board__title { font-size: 16px; letter-spacing: -0.01em; }
.board__sub { font: 400 12px/1.3 var(--mono); color: var(--grey-soft); margin-top: 4px; }

.board__top { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }

/* gauge */
.gauge { margin: 0; position: relative; width: 116px; height: 116px; flex: none; display: grid; place-items: center; }
.gauge__svg { width: 116px; height: 116px; transform: rotate(-90deg); }
.gauge__track { fill: none; stroke: var(--surface-sunk); stroke-width: 10; }
.gauge__fill {
  fill: none; stroke: var(--orange); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 326.7;
  /* default (no JS): show final filled state */
  stroke-dashoffset: var(--arc-offset, 71.9);
  transition: stroke-dashoffset 1.6s cubic-bezier(.16,.84,.44,1);
}
/* JS arms it empty, then reveals to the final offset */
.gauge__fill.is-armed { stroke-dashoffset: 326.7; }
.gauge__fill.is-armed.is-shown { stroke-dashoffset: var(--arc-offset, 71.9); }
.gauge__cap { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.gauge__num { font-size: 24px; font-weight: 600; color: var(--ink); }
.gauge__label { font: 400 9.5px/1.1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--grey-soft); max-width: 64px; }

/* metric tiles */
.board__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-width: 0; }
.tile {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 11px; display: flex; flex-direction: column; gap: 5px; position: relative; overflow: hidden;
}
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.tile--ok::before { background: var(--ok); }
.tile--warn::before { background: var(--warn); }
.tile--bad::before { background: var(--bad); }
.tile__num { font-size: 22px; font-weight: 600; line-height: 1; color: var(--ink); }
.tile__label { font: 400 10.5px/1.25 var(--mono); letter-spacing: .02em; color: var(--grey); text-transform: uppercase; }

/* matrix */
.matrix { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.matrix__cap { font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--grey-soft); }
.matrix__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
.matrix__scroll:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.matrix__table { width: 100%; border-collapse: collapse; min-width: 460px; }
.matrix__table th, .matrix__table td { padding: 0; text-align: center; }
.matrix__table thead th {
  font: 500 11px/1 var(--mono); letter-spacing: .02em; color: var(--grey);
  padding: 8px 4px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}
.matrix__rowhead-col { text-align: left !important; }
.matrix__table tbody th {
  text-align: left; font: 500 12px/1.15 var(--sans); color: var(--ink);
  padding: 7px 10px 7px 11px; white-space: nowrap; background: var(--surface);
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
}
.matrix__table tbody th small { display: block; font: 400 10px/1.2 var(--mono); color: var(--grey-soft); }
.matrix__table tbody tr:last-child th,
.matrix__table tbody tr:last-child td { border-bottom: none; }
.cell {
  width: 100%; height: 38px; position: relative; border-bottom: 1px solid var(--surface);
  border-right: 1px solid var(--surface);
}
.cell__inner {
  position: absolute; inset: 3px; border-radius: 5px; display: grid; place-items: center;
  font: 600 10px/1 var(--mono); letter-spacing: .02em;
  transition: transform .4s cubic-bezier(.16,.84,.44,1), opacity .4s ease;
}
/* JS opt-in: hide for staggered entrance only when animation is armed */
.matrix__table.is-armed .cell__inner { transform: scale(.4); opacity: 0; }
.matrix__table.is-armed .cell.is-shown .cell__inner { transform: scale(1); opacity: 1; }
.cell--ok .cell__inner { background: var(--ok-cell); color: var(--ok-ink); }
.cell--warn .cell__inner { background: var(--warn-cell); color: var(--warn-ink); }
.cell--bad .cell__inner { background: var(--bad-cell); color: var(--bad-ink); }
.cell--na .cell__inner { background: var(--na); color: var(--na-ink); }
/* scanning sweep overlay */
.matrix__scroll { position: relative; }
.matrix__scroll.is-scanning::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,101,0,.16), transparent);
  animation: scan 1.5s ease-in-out 1 forwards;
}
@keyframes scan { from { left: -90px; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .matrix__scroll.is-scanning::after { display: none; }
  .cell__inner { transform: none; opacity: 1; }
  .gauge__fill { transition: none; }
}

/* legend */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 400 12px/1 var(--mono); color: var(--grey); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend__sw { width: 12px; height: 12px; border-radius: 3px; }
.legend__sw--ok { background: var(--ok-cell); border: 1px solid var(--ok); }
.legend__sw--warn { background: var(--warn-cell); border: 1px solid var(--warn); }
.legend__sw--bad { background: var(--bad-cell); border: 1px solid var(--bad); }
.legend__sw--na { background: var(--na); border: 1px solid var(--line-strong); }

/* ---------- generic section ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--surface); }
.section__head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.kicker {
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: 14px;
}
.kicker--invert { color: var(--orange); }
.section__head h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
.section__deck { font-size: clamp(15px, 1.5vw, 18px); color: var(--grey); }

/* ---------- pipeline ---------- */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stage {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
  position: relative;
}
.stage__bar { display: flex; align-items: center; justify-content: space-between; }
.stage__step { font: 600 13px/1 var(--mono); color: var(--ink); letter-spacing: .04em; }
.stage__state {
  font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--grey-soft); padding: 4px 7px; border-radius: 999px; background: var(--surface-sunk);
}
.stage--done .stage__state { color: var(--ok-ink); background: var(--ok-cell); }
.stage__state--run { color: var(--orange-ink); background: #ffe6d6; position: relative; }
.stage--run { border-color: #ffd2b3; box-shadow: 0 0 0 3px rgba(255,101,0,.07); }
.stage__title { font-size: 18px; margin-top: 2px; }
.stage__body { font-size: 14px; color: var(--grey); }
.stage__meta { font: 400 11px/1.3 var(--mono); color: var(--grey-soft); margin-top: auto; padding-top: 8px; }

/* ---------- framework index ---------- */
.fwk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fwk__group {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px;
}
.section--alt .fwk__group { background: var(--bg); }
.fwk__h { font: 500 12px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }
.fwk__list { display: flex; flex-direction: column; }
.fwk__list li {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 0;
  border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--ink);
}
.fwk__list li:first-child { border-top: none; }
.fwk__id {
  flex: none; min-width: 44px; font: 500 10.5px/1 var(--mono); letter-spacing: .03em;
  color: var(--grey-soft); text-transform: uppercase; padding-top: 2px;
}
.fwk__list-custom { color: var(--orange-ink); font-weight: 500; }

/* ---------- evidence ---------- */
.evidence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ecard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow);
  border-top: 3px solid var(--line-strong);
}
.section--alt .ecard { background: var(--bg); }
.ecard--ok { border-top-color: var(--ok); }
.ecard--warn { border-top-color: var(--warn); }
.ecard--bad { border-top-color: var(--bad); }
.ecard__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ecard__ctrl { font: 500 12px/1 var(--mono); letter-spacing: .02em; color: var(--grey); }
.verdict {
  font: 600 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px;
}
.verdict--ok { color: var(--ok-ink); background: var(--ok-cell); }
.verdict--warn { color: var(--warn-ink); background: var(--warn-cell); }
.verdict--bad { color: var(--bad-ink); background: var(--bad-cell); }
.ecard__req { font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.ecard__cite {
  margin: 0; padding: 12px 14px; background: var(--surface-2); border-left: 3px solid var(--line-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.section--alt .ecard__cite { background: var(--surface); }
.ecard__cite p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.ecard__cite cite { display: block; margin-top: 8px; font: 400 11px/1.3 var(--mono); font-style: normal; color: var(--grey-soft); }
.ecard__cite--missing { border-left-color: var(--bad); }
.ecard__cite--missing p { color: var(--bad-ink); }
.ecard__rec { font-size: 13px; color: var(--grey); line-height: 1.45; }
.ecard__rec-tag {
  display: inline-block; margin-right: 6px; font: 600 10px/1 var(--mono); letter-spacing: .05em;
  text-transform: uppercase; color: var(--orange-ink);
}
.evidence__note { margin-top: 16px; font: 400 13px/1.4 var(--mono); color: var(--grey); }

/* ---------- spec / comparison ---------- */
.spec__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
.section--alt .spec__scroll { background: var(--bg); }
.spec__scroll:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.spec { width: 100%; border-collapse: collapse; min-width: 640px; }
.spec th, .spec td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec thead th {
  font: 500 12px/1.2 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--grey);
  background: var(--surface-2); position: sticky; top: 0;
}
.section--alt .spec thead th { background: var(--surface); }
.spec tbody th { font-size: 13px; font-weight: 600; color: var(--ink); width: 22%; font-family: var(--sans); }
.spec td { font-size: 14px; color: var(--grey); }
.spec__kansa { background: rgba(255,101,0,.04); }
.spec thead .spec__kansa { color: var(--orange-ink); font-weight: 600; }
.spec td.spec__kansa { color: var(--ink); font-weight: 500; }
.spec tbody tr:last-child th, .spec tbody tr:last-child td { border-bottom: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.dot--ok { background: var(--ok); }

/* ---------- metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.metric::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--orange), #ffb37d); }
.metric__num { font-size: clamp(30px, 3.4vw, 40px); font-weight: 600; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.metric__label { font-size: 14px; font-weight: 500; color: var(--ink-2); margin-top: 4px; }
.metric__foot { font: 400 12px/1.3 var(--mono); color: var(--grey-soft); }
.metrics__foot { margin-top: 18px; font: 400 13px/1.4 var(--mono); color: var(--grey-soft); }

/* ---------- assurance ---------- */
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.assure__item {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.assure__state { font-size: 12px; line-height: 1; }
.assure__state--ok { color: var(--ok); }
.assure__h { font-size: 16px; }
.assure__b { font-size: 14px; color: var(--grey); line-height: 1.5; }
.assure__item--accent { background: var(--ink); border-color: var(--ink); }
.assure__item--accent .assure__h { color: #fff; }
.assure__item--accent .assure__b { color: #c8cad0; }
.assure__item--accent .assure__state { color: var(--orange); }

/* ---------- final cta ---------- */
.cta { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.cta__inner { text-align: center; max-width: 56ch; margin-inline: auto; }
.cta h2 { font-size: clamp(28px, 4.4vw, 48px); color: #fff; margin-bottom: 16px; }
.cta__deck { font-size: clamp(15px, 1.6vw, 18px); color: #c8cad0; margin-bottom: 28px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
.brand--footer .brand__name { font-size: 15px; }
.footer__tag { margin-top: 12px; font: 400 13px/1 var(--mono); color: var(--grey-soft); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__h { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--grey-soft); margin-bottom: 14px; }
.footer__col ul { display: flex; flex-direction: column; gap: 9px; }
.footer__col a { font-size: 14px; color: var(--grey); transition: color .15s ease; }
.footer__col a:hover { color: var(--ink); }
.footer__addr { font: 400 12.5px/1.5 var(--mono); color: var(--grey-soft); }
.footer__base { border-top: 1px solid var(--line); }
.footer__base-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; font: 400 12px/1 var(--mono); color: var(--grey-soft); flex-wrap: wrap; }
.footer__base-status { display: inline-flex; align-items: center; gap: 8px; }
.footer__base-status .chip__dot--static { background: var(--ok); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.16,.84,.44,1); }
.reveal.is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .board { order: 2; }
}

@media (max-width: 920px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .evidence { grid-template-columns: 1fr; }
  .fwk { grid-template-columns: 1fr; }
  .assure { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__toggle { display: inline-flex; order: 3; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: 10px var(--pad) 18px;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .28s ease, padding .28s ease, visibility 0s linear .28s;
  }
  .nav__menu.is-open { max-height: 460px; visibility: visible; transition: max-height .3s ease, padding .3s ease, visibility 0s; }
  .nav__menu > li > a:not(.btn) { padding: 11px 8px; font-size: 16px; }
  .nav__cta-group { flex-direction: column; align-items: stretch; gap: 8px; margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav__cta-group .btn { width: 100%; }
}

@media (max-width: 560px) {
  .board__top { grid-template-columns: 1fr; }
  .gauge { justify-self: center; }
  .board__tiles { grid-template-columns: repeat(3, 1fr); }
  .assure { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .hero__readout { gap: 14px 20px; }
}

@media (max-width: 380px) {
  .footer__cols { grid-template-columns: 1fr; }
  .board__tiles { grid-template-columns: 1fr; }
}
