/* ============================================================================
   Rein — the site sheet. "The control room at the horizon."
   One stylesheet for every page under reinconsole.com: the home page, the
   get-started runbook, the question pages and the legal pages. Same
   self-hosted faces as the console (Archivo + IBM Plex Mono), same accent,
   pushed to landing scale: a perspective floor grid under each hero, an
   aurora line on the horizon, glass instrument panels, and authority
   packets that move along the wires while money never does.
   Zero dependencies, static. main.js keeps the behaviour (reveal, copy,
   live ledger, feed loop) and only relies on the ids/classes kept here.
   The home page's components come first; the SUBPAGES block carries the
   runbook, question and legal page components.
   ========================================================================== */

:root {
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --bg: #04060a;
  --bg-1: #080b11;
  --bg-2: #0c1018;
  --bg-3: #111724;
  --glass: rgba(10, 14, 22, 0.72);
  --line: rgba(150, 170, 200, 0.1);
  --line-strong: rgba(150, 170, 200, 0.2);

  --ink: #eef2f8;
  --ink-dim: #97a3b7;
  --ink-faint: #5a667c;

  --accent: #5b8cff;
  --accent-2: #5ee3ff;
  --accent-soft: rgba(91, 140, 255, 0.14);
  --accent-line: rgba(91, 140, 255, 0.45);
  --accent-glow: rgba(91, 140, 255, 0.55);

  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.12);
  --warn: #f5c451;
  --bad: #ff6b81;
  --alarm: #ff4d4d;
  --alarm-soft: rgba(255, 77, 77, 0.12);
  --warn-soft: rgba(245, 196, 81, 0.12);
  --bad-soft: rgba(255, 107, 129, 0.12);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  --container: 1200px;
  --gutter: 24px;
  --measure: 820px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
::selection {
  background: rgba(94, 227, 255, 0.25);
}
em {
  font-style: normal;
}

/* ── Atmosphere ───────────────────────────────────────────────────────────── */
/* Three fixed layers: sky (two cold light sources), a fine dot lattice that
   reads as a measurement field rather than graph paper, and film grain.
   The horizon floor is placed per-section (see .hero-floor). */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(91, 140, 255, 0.2), transparent 62%),
    radial-gradient(700px 480px at 6% 112%, rgba(94, 227, 255, 0.08), transparent 58%),
    linear-gradient(180deg, #050810 0%, var(--bg) 40%, var(--bg) 100%);
}
.sky::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(170, 190, 220, 0.16) 0.6px, transparent 0.9px);
  background-size: 28px 28px;
  mask-image: radial-gradient(70% 70% at 50% 30%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, black 20%, transparent 100%);
}
.sky::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
.nav,
.footer {
  position: relative;
  z-index: 1;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
  padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2));
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 11, 17, 0.9), rgba(5, 7, 11, 0.78));
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(91, 140, 255, 0.55));
}
.brand-mark.sm {
  width: 20px;
  height: 20px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.24em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent-2);
  transition: right 0.2s ease;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:hover::after {
  right: 0;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.12s ease, filter 0.12s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #6d9bff, #3f6fe0);
  color: #fff;
  box-shadow:
    0 12px 30px -12px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow:
    0 16px 36px -12px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  background: rgba(8, 11, 17, 0.6);
  color: var(--ink-dim);
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.btn-arrow {
  font-family: var(--font-mono);
  font-weight: 400;
}
.nav-cta {
  height: 36px;
  padding: 0 16px;
  font-size: 11px;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero-wrap {
  position: relative;
  overflow: clip;
}
/* The floor: a lattice tilted toward a horizon, scrolling toward the viewer.
   Pure CSS: two repeating gradients on a plane under perspective, masked so it
   fades before the content. The horizon line sits where the plane vanishes. */
.hero-floor {
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 200vw;
  height: 44vh;
  min-height: 340px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  perspective: 700px;
  perspective-origin: 50% 0%;
}
.hero-floor::before {
  content: '';
  position: absolute;
  inset: 0;
  transform-origin: 50% 0%;
  transform: rotateX(62deg);
  background-image:
    linear-gradient(rgba(94, 227, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 140, 255, 0.28) 1px, transparent 1px);
  background-size: 100% 64px, 64px 100%;
  /* Masked in plane space: the far rows fade out just under the horizon line. */
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 100%);
  animation: floor-scroll 9s linear infinite;
}
.hero-floor::after {
  /* Horizon: a sharp line with its bloom, lit on the panel's side only so
     it never cuts behind the headline. */
  content: '';
  position: absolute;
  left: 0;
  right: 10%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, transparent 42%, var(--accent-2) 58%, #fff 72%, var(--accent) 86%, transparent 100%);
  box-shadow:
    0 0 24px 4px rgba(94, 227, 255, 0.35),
    0 0 120px 30px rgba(91, 140, 255, 0.2);
  opacity: 0.9;
}
@keyframes floor-scroll {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 64px, 0 0;
  }
}
.hero-haze {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg) 92%);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 104px var(--gutter) 190px;
  min-height: calc(100vh - 64px);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(6px);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.dot.live {
  background: var(--ok);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 4.7vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
  text-wrap: balance;
}
h1 .grad {
  background: linear-gradient(92deg, #bcd0ff 0%, var(--accent-2) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-dim);
  margin-bottom: 34px;
  text-wrap: pretty;
}
.hero-sub em {
  color: var(--ink);
  border-bottom: 1px solid var(--accent-line);
}

/* Install command */
.install {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  margin-bottom: 22px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.install-cmd {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
  white-space: nowrap;
}
.install-prompt {
  color: var(--accent-2);
  margin-right: 6px;
  user-select: none;
}
.copy-btn {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--ink-dim);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.15s ease;
}
.copy-btn:hover {
  color: var(--ink);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.copy-btn.copied {
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.5);
  background: var(--ok-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions.center {
  justify-content: center;
}
.hero-fine {
  margin-top: 22px;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.hero-fine code {
  color: var(--ink-dim);
}
.inline-link {
  color: var(--accent-2);
  border-bottom: 1px solid rgba(94, 227, 255, 0.4);
  transition: filter 0.15s ease;
}
.inline-link:hover {
  filter: brightness(1.2);
}

/* ── Hero stage: the live feed as a console slab ─────────────────────────── */
.hero-stage {
  position: relative;
}
.hero-stage::before {
  content: '';
  position: absolute;
  inset: -60px -80px;
  background: radial-gradient(55% 55% at 50% 45%, rgba(91, 140, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(14, 19, 29, 0.92), rgba(6, 9, 14, 0.96));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(94, 227, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
/* Corner brackets: an instrument, not a card. */
.panel::before,
.panel::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent-2);
  border-style: solid;
  opacity: 0.7;
  pointer-events: none;
}
.panel::before {
  top: 8px;
  left: 8px;
  border-width: 1px 0 0 1px;
}
.panel::after {
  bottom: 8px;
  right: 8px;
  border-width: 0 1px 1px 0;
}
.feed-panel {
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.feed-panel:hover {
  transform: perspective(1600px) rotateY(0deg) rotateX(0deg);
}
.feed-panel.flash {
  animation: alarm-flash 1.1s ease-out;
}
@keyframes alarm-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.6), var(--shadow);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(255, 77, 77, 0), var(--shadow);
  }
}
/* A scan line sweeps the panel: the one hint that it is a live instrument. */
.panel-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(94, 227, 255, 0.7), transparent);
  box-shadow: 0 0 12px rgba(94, 227, 255, 0.5);
  animation: scan 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes scan {
  0%,
  12% {
    top: -2px;
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  48% {
    top: 100%;
    opacity: 1;
  }
  50%,
  100% {
    top: 100%;
    opacity: 0;
  }
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.panel-tick {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}
.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.panel-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}
.panel-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px dashed var(--line);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.panel-foot .chain {
  margin-left: auto;
  display: inline-flex;
  gap: 3px;
}
.panel-foot .chain i {
  width: 10px;
  height: 4px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.35;
  animation: chain 2.4s linear infinite;
}
.panel-foot .chain i:nth-child(2) {
  animation-delay: 0.3s;
}
.panel-foot .chain i:nth-child(3) {
  animation-delay: 0.6s;
}
.panel-foot .chain i:nth-child(4) {
  animation-delay: 0.9s;
}
.panel-foot .chain i:nth-child(5) {
  animation-delay: 1.2s;
}
@keyframes chain {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 8px var(--accent);
  }
}

/* Feed rows */
.feed {
  list-style: none;
  height: 316px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.feed-row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 16px;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.feed-row.enter {
  animation: row-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.feed-row[data-kind='allow'] {
  border-left-color: var(--ok);
}
.feed-row[data-kind='deny'],
.feed-row[data-kind='refused'],
.feed-row[data-kind='frozen'] {
  border-left-color: var(--bad);
}
.feed-row[data-kind='settled'] {
  border-left-color: var(--accent);
}
.feed-row[data-kind='shadow'] {
  border-left-color: var(--alarm);
  background: var(--alarm-soft);
}
.feed-time {
  font-size: 10.5px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.feed-main {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed-verb {
  font-weight: 600;
  letter-spacing: 0.06em;
}
.feed-verb.allow {
  color: var(--ok);
}
.feed-verb.deny,
.feed-verb.refused,
.feed-verb.frozen {
  color: var(--bad);
}
.feed-verb.settled {
  color: var(--accent);
}
.feed-verb.shadow {
  color: var(--alarm);
}
.feed-amt {
  color: var(--ink);
  font-weight: 600;
}
.feed-arrow {
  color: var(--ink-faint);
}
.feed-host {
  color: var(--ink-dim);
}
.feed-right {
  text-align: right;
  font-size: 10px;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ── Instrument rail (under the hero) ─────────────────────────────────────── */
.rail {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 14, 0.7);
  backdrop-filter: blur(8px);
}
.rail-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.rail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 18px 16px 0;
  border-right: 1px solid var(--line);
}
.rail-item + .rail-item {
  padding-left: 18px;
}
.rail-item:last-child {
  border-right: none;
}
.rail-k {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.rail-v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.rail-v .dot {
  display: inline-block;
  margin-right: 8px;
  vertical-align: 1px;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px var(--gutter);
}
.section + .section::before {
  /* hairline between sections, fading at both ends */
  content: '';
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.eyebrow .idx {
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.eyebrow .tick {
  width: 28px;
  height: 1px;
  background: var(--accent-line);
}
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.section-lede {
  max-width: 60ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-dim);
  margin-bottom: 52px;
  text-wrap: pretty;
}
.section-close {
  margin-top: 44px;
  font-size: 13px;
  color: var(--ink-dim);
}
.section-close::before {
  content: '// ';
  color: var(--ink-faint);
}

/* ── Incidents ────────────────────────────────────────────────────────────── */
.incidents {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}
.incident {
  position: relative;
  border: 1px solid rgba(255, 77, 77, 0.28);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 77, 77, 0.1), rgba(255, 77, 77, 0.03));
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.incident::before {
  /* alarm rail with a slow sweep */
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--alarm), transparent);
  background-size: 100% 200%;
  animation: alarm-sweep 3.2s linear infinite;
}
@keyframes alarm-sweep {
  from {
    background-position: 0 -100%;
  }
  to {
    background-position: 0 100%;
  }
}
.incident-top {
  display: flex;
  align-items: center;
  gap: 9px;
}
.incident-glyph {
  color: var(--alarm);
  font-size: 12px;
}
.incident-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--alarm);
  letter-spacing: 0.12em;
  font-size: 11px;
}
.incident-time {
  margin-left: auto;
  font-size: 10px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.incident p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-dim);
}
.incident b {
  color: var(--ink);
}

/* ── Pillars ──────────────────────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(12, 16, 24, 0.9), rgba(5, 8, 12, 0.95));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 24px 22px 22px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar::after {
  /* ghost numeral */
  content: attr(data-num);
  position: absolute;
  right: 12px;
  top: -18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 120px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(150, 170, 200, 0.12);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.25s ease;
}
.pillar:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow), 0 0 40px -16px var(--accent-glow);
}
.pillar:hover::after {
  -webkit-text-stroke-color: rgba(94, 227, 255, 0.3);
}
.pillar-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.pillar-num {
  font-size: 10px;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.pillar-head h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.2em;
}
.pillar-side {
  margin-left: auto;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pillar-lede {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-dim);
  min-height: 3.3em;
}
.pillar-lede b {
  color: var(--ink);
}
.pillar-lede code {
  color: var(--accent-2);
  font-size: 12px;
}
.code {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(3, 5, 8, 0.8);
  padding: 13px 14px;
  overflow-x: auto;
  font-size: 11px;
  line-height: 1.65;
}
.code code {
  font-family: var(--font-mono);
  white-space: pre;
}
.code::-webkit-scrollbar {
  height: 8px;
}
.code::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.tk-kw {
  color: var(--accent);
}
.tk-str {
  color: var(--ok);
}
.tk-fn {
  color: var(--ink);
  font-weight: 500;
}
.tk-cm {
  color: var(--ink-faint);
}
.tk-num {
  color: var(--warn);
}
.pillar-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pillar-chips li {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}
.pillar-link {
  margin-top: auto;
  display: inline-block;
  padding-block: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  transition: filter 0.15s ease;
}
.pillar-link:hover {
  filter: brightness(1.25);
}

/* ── Proof grid ───────────────────────────────────────────────────────────── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 44px;
}
.proof {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg);
  padding: 24px 24px 22px;
  transition: background 0.2s ease;
}
.proof::after {
  content: '→';
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 12px;
  color: var(--ink-faint);
  transition: color 0.15s ease, transform 0.2s ease;
}
.proof:hover {
  background: var(--bg-2);
}
.proof:hover::after {
  color: var(--accent-2);
  transform: translate(3px, -3px);
}
.proof:hover .proof-sub {
  color: var(--accent-2);
}
.proof-label {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.proof-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.proof-value.mono {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0;
  padding: 8px 0 9px;
  color: var(--ink-dim);
}
.proof-value.is-ok {
  color: var(--ok);
}
.proof-value.is-bad {
  color: var(--bad);
}
.proof-denominator {
  font-size: 18px;
  color: var(--ink-faint);
  font-weight: 600;
  letter-spacing: 0;
}
.proof-sub {
  font-size: 10.5px;
  color: var(--ink-dim);
  transition: color 0.15s ease;
}

/* ── Trust ────────────────────────────────────────────────────────────────── */
.trust-provenance {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(12, 16, 24, 0.7), rgba(5, 8, 12, 0.7));
  margin-top: 16px;
}
.trust-provenance p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 56ch;
  text-wrap: pretty;
}
.trust-provenance code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
}
.trust-pkgs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.trust-pkgs a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-dim);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.trust-pkgs a:hover {
  color: var(--accent-2);
  border-color: rgba(94, 227, 255, 0.5);
}
.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.quote {
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-2);
  background: rgba(12, 16, 24, 0.6);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.quote blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}
.quote figcaption {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* ── Architecture: authority moves, money doesn't ─────────────────────────── */
.arch {
  display: flex;
  align-items: stretch;
  margin-top: 52px;
}
.arch-node {
  flex: 0 0 auto;
  width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(8, 11, 17, 0.8);
  padding: 18px 16px;
  text-align: center;
}
.arch-node.is-rein {
  position: relative;
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(91, 140, 255, 0.12), rgba(8, 11, 17, 0.9));
  box-shadow: 0 0 36px -10px var(--accent-glow);
}
.arch-node.is-rein::before {
  content: 'REIN';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  background: var(--bg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: var(--accent-2);
}
.arch-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
}
.arch-desc {
  font-size: 10px;
  color: var(--ink-faint);
  line-height: 1.5;
}
.arch-wire {
  flex: 1 1 0;
  position: relative;
  min-width: 48px;
  align-self: center;
  height: 2px;
  background: var(--line-strong);
}
.arch-wire::before {
  /* the packet: authority travelling down the wire */
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 36%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  box-shadow: 0 0 10px rgba(94, 227, 255, 0.6);
  animation: packet 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.arch-wire:nth-of-type(2)::before {
  animation-delay: 0.7s;
}
.arch-wire:nth-of-type(3)::before {
  animation-delay: 1.4s;
}
@keyframes packet {
  from {
    left: -36%;
  }
  to {
    left: 100%;
  }
}
.arch-wire::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid var(--accent-line);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.arch-wire span {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.arch-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.arch-fact {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  background: rgba(8, 11, 17, 0.6);
}
.arch-fact::before {
  content: '✓ ';
  color: var(--ok);
}

/* ── Outro ────────────────────────────────────────────────────────────────── */
.outro-wrap {
  position: relative;
  overflow: clip;
}
.outro-wrap .hero-floor {
  transform: translateX(-50%) scaleY(-1);
  bottom: auto;
  top: -2px;
  height: 52vh;
  min-height: 320px;
  opacity: 0.7;
}
.outro-wrap .hero-floor::after {
  /* Centred under the closing call to action. */
  left: 15%;
  right: 15%;
  background: linear-gradient(90deg, transparent, var(--accent-2) 30%, #fff 50%, var(--accent) 70%, transparent);
}
.outro {
  text-align: center;
  padding-top: 150px;
  padding-bottom: 140px;
}
.outro h2 {
  font-size: clamp(38px, 5.6vw, 72px);
  margin-bottom: 36px;
}
.install-lg {
  margin: 0 auto 30px;
}
.outro-fine {
  margin-top: 40px;
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.9;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gutter) 36px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-faint);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  row-gap: 6px;
  margin-left: auto;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--ink-dim);
}
.footer-links a {
  display: inline-block;
  padding-block: 4px;
}
.footer-links a:hover {
  color: var(--ink);
}

/* ══════════════════════════════════════════════════════════════════════════
   SUBPAGES — the runbook (get-started), the question pages and the legal
   pages share everything above and add the components below. Same tokens,
   same instruments: panels with corner brackets, the floor grid under each
   hero, eyebrows with an index, code cards that read as consoles.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Runbook hero: the instrument is the runbook itself ───────────────────── */
.runbook {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.runbook-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 16px;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  transition: background 0.15s ease;
}
.runbook-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.runbook-row:hover .runbook-title {
  color: var(--accent-2);
}
.runbook-row[data-track='prep'] {
  border-left-color: var(--ink-faint);
}
.runbook-row[data-track='guard'] {
  border-left-color: var(--ok);
}
.runbook-row[data-track='gate'] {
  border-left-color: var(--accent);
}
.runbook-row[data-track='live'] {
  border-left-color: var(--warn);
}
.runbook-num {
  font-size: 10.5px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.runbook-title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  transition: color 0.15s ease;
}
.runbook-tag {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.runbook-row[data-track='live'] .runbook-tag {
  color: var(--warn);
}
.hero-sub b {
  color: var(--ink);
}

/* ── Page hero (questions, legal): the answer sits on the floor ───────────── */
.page-wrap {
  position: relative;
  overflow: clip;
}
.page-hero {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 84px var(--gutter) 0;
}
.page-hero h1 {
  font-size: clamp(32px, 4.4vw, 56px);
  margin-bottom: 0;
}
.qa-crumbs {
  margin-bottom: 24px;
}
.qa-crumbs a {
  display: inline-block;
  padding-block: 4px;
  color: var(--ink-dim);
  transition: color 0.15s ease;
}
.qa-crumbs a:hover {
  color: var(--accent-2);
}
.qa-crumbs .sep {
  color: var(--ink-faint);
}
/* The stage: horizon at its top edge, the lattice flowing down behind the
   panel toward the reader, haze fading it out before the article starts. */
.page-stage {
  position: relative;
  padding: 44px 0 72px;
}
.page-stage .hero-floor {
  top: 0;
  bottom: auto;
  height: 100%;
  min-height: 0;
  opacity: 0.85;
}
.page-stage .hero-floor::after {
  left: 12%;
  right: 12%;
  background: linear-gradient(90deg, transparent, var(--accent-2) 30%, #fff 50%, var(--accent) 70%, transparent);
}
.page-stage .hero-haze {
  height: 55%;
}
.answer-panel {
  position: relative;
  z-index: 1;
}
.answer-panel .panel-title {
  color: var(--accent-2);
}
.answer-body {
  padding: 20px 22px 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  text-wrap: pretty;
}
.answer-body b {
  color: #fff;
}
.answer-body code,
.inline-code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--accent-2);
  background: rgba(94, 227, 255, 0.08);
  border: 1px solid rgba(94, 227, 255, 0.14);
  border-radius: 4px;
  padding: 1px 5px;
}
.answer-panel.is-draft .panel-tick {
  background: var(--warn);
  box-shadow: 0 0 10px var(--warn);
}
.answer-panel.is-draft .panel-title {
  color: var(--warn);
}

/* ── Article body ─────────────────────────────────────────────────────────── */
.qa {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) 110px;
}
.qa h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 58px 0 16px;
  scroll-margin-top: 84px;
}
.qa h2::before {
  content: '';
  flex: 0 0 18px;
  height: 1px;
  background: var(--accent-line);
}
.qa p,
.qa li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-dim);
  text-wrap: pretty;
}
.qa p + p,
.qa p + .code-card,
.qa .code-card + p,
.qa .code-card + .code-card,
.qa ul + p,
.qa p + ul {
  margin-top: 14px;
}
.qa ul {
  padding-left: 18px;
}
.qa li + li {
  margin-top: 7px;
}
.qa li::marker {
  color: var(--accent-2);
}
.qa p b,
.qa li b {
  color: var(--ink);
}
.qa .code-card {
  margin-top: 16px;
}
.qa-next {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
}
.qa-next a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
  padding: 20px 40px 20px 20px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  transition: background 0.2s ease;
}
.qa-next a::after {
  content: '→';
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 12px;
  color: var(--ink-faint);
  transition: color 0.15s ease, transform 0.2s ease;
}
.qa-next a:hover {
  background: var(--bg-2);
}
.qa-next a:hover::after {
  color: var(--accent-2);
  transform: translate(3px, -3px);
}
.qa-next a span {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.15s ease;
}
.qa-next a:hover span {
  color: var(--accent-2);
}

/* ── Runbook steps: tiles on a wire ───────────────────────────────────────── */
.steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 44px;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  scroll-margin-top: 84px;
}
.step::before {
  /* the wire from this step's tile to the next */
  content: '';
  position: absolute;
  left: 21.5px;
  top: 48px;
  bottom: -36px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-line), var(--line) 70%);
}
.step:last-child::before {
  display: none;
}
.step-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(91, 140, 255, 0.18), rgba(8, 11, 17, 0.9));
  box-shadow: 0 0 26px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--accent-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.step-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}
.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.step-body > p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 72ch;
  text-wrap: pretty;
}
.step-body p b {
  color: var(--ink);
}

/* ── Code cards: a console with a header bar ──────────────────────────────── */
.code-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.92), rgba(3, 5, 8, 0.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.code-card .code {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 14px 16px;
  font-size: 11.5px;
}
.section > .code-card {
  margin-top: 40px;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 8px 8px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.code-head::before {
  content: '';
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  opacity: 0.8;
}
.code-head:has(.ok-dot)::before {
  display: none;
}
.code-head .copy-btn {
  margin-left: auto;
  height: 24px;
  padding: 0 10px;
}
.ok-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}
.code-card .code.output {
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.05), transparent);
  color: var(--ink-dim);
}
.out-ok {
  color: var(--ok);
  font-weight: 600;
}
.out-bad {
  color: var(--bad);
  font-weight: 600;
}

/* ── Runbook extras ───────────────────────────────────────────────────────── */
.guide-whys,
.guide-paths {
  margin-top: 44px;
}
.pillar.path-card {
  color: inherit;
}
.pillar.path-card .pillar-link {
  margin-top: auto;
}
.is-isnt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.fact-col {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(12, 16, 24, 0.9), rgba(5, 8, 12, 0.95));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.fact-col::after {
  /* ghost word, as the pillars carry a ghost numeral */
  content: attr(data-glyph);
  position: absolute;
  right: 14px;
  top: -16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 96px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(150, 170, 200, 0.12);
  pointer-events: none;
}
.fact-col-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.22em;
}
.fact-col-title.is {
  color: var(--ok);
}
.fact-col-title.isnt {
  color: var(--warn);
}
.fact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fact-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
  text-wrap: pretty;
}
.fact-list li b {
  color: var(--ink);
}
.fact-list.is li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ok);
}
.fact-list.isnt li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--warn);
}
.callout {
  margin-top: 40px;
  border: 1px solid rgba(245, 196, 81, 0.3);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  padding: 14px 18px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 76ch;
}
.callout b {
  color: var(--warn);
}
.demo-panel {
  margin-top: 40px;
}
.demo-panel .feed {
  height: auto;
  overflow: visible;
}
.demo-panel .feed-row:last-child {
  border-bottom: none;
}

/* ── Reveal on scroll (enhancement only; no JS leaves everything visible) ── */
.reveal {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal:not(.in) {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.d1 {
  transition-delay: 0.08s;
}
.reveal.d2 {
  transition-delay: 0.16s;
}
.reveal.d3 {
  transition-delay: 0.24s;
}
.reveal.d4 {
  transition-delay: 0.32s;
}
.reveal.d5 {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal:not(.in) {
    opacity: 1;
    transform: none;
  }
  .reveal,
  .feed-panel {
    transition: none;
    transform: none;
  }
  .hero-floor::before,
  .panel-scan,
  .panel-foot .chain i,
  .incident::before,
  .arch-wire::before,
  .feed-row.enter,
  .dot.live {
    animation: none;
  }
  .panel-scan {
    display: none;
  }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-top: 80px;
    padding-bottom: 120px;
    min-height: 0;
  }
  .feed-panel {
    transform: none;
  }
  .rail-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rail-item:nth-child(3) {
    border-right: none;
  }
  .rail-item:nth-child(4) {
    padding-left: 0;
    border-top: 1px solid var(--line);
  }
  .rail-item:nth-child(5) {
    border-top: 1px solid var(--line);
  }
  .pillars,
  .incidents {
    grid-template-columns: minmax(0, 1fr);
  }
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .arch {
    flex-direction: column;
    align-items: stretch;
    max-width: 420px;
  }
  .arch-node {
    width: 100%;
  }
  .arch-wire {
    flex: 0 0 auto;
    width: 2px;
    height: 48px;
    min-width: 0;
    align-self: center;
  }
  .arch-wire::before {
    top: -36%;
    left: -1px;
    width: 4px;
    height: 36%;
    background: linear-gradient(180deg, transparent, var(--accent-2), transparent);
    animation-name: packet-v;
  }
  @keyframes packet-v {
    from {
      top: -36%;
    }
    to {
      top: 100%;
    }
  }
  .arch-wire::after {
    right: auto;
    top: auto;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    border-top: 6px solid var(--accent-line);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: none;
  }
  .arch-wire span {
    left: 14px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }
  .wide-only {
    display: none;
  }
  .nav {
    height: 58px;
  }
  .nav-links {
    display: none;
  }
  .nav-cta {
    margin-left: auto;
  }
  .hero {
    padding-top: 56px;
    padding-bottom: 96px;
  }
  h1 {
    font-size: clamp(36px, 11vw, 48px);
  }
  .hero-floor {
    height: 46vh;
    min-height: 300px;
  }
  .rail-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rail-item {
    padding-right: 12px;
  }
  .rail-item + .rail-item {
    padding-left: 12px;
  }
  .rail-item:nth-child(2n) {
    border-right: none;
  }
  .rail-item:nth-child(3) {
    padding-left: 0;
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }
  .rail-item:nth-child(4) {
    padding-left: 12px;
  }
  .rail-item:nth-child(5) {
    grid-column: 1 / -1;
    padding-left: 0;
    border-right: none;
  }
  .section {
    padding: 84px var(--gutter);
  }
  .proof-grid,
  .trust-provenance,
  .quotes {
    grid-template-columns: minmax(0, 1fr);
  }
  .install {
    max-width: 100%;
  }
  .install-cmd {
    font-size: 12px;
    overflow-x: auto;
  }
  .feed-right {
    display: none;
  }
  .feed-row {
    grid-template-columns: 60px 1fr;
  }
  .pillar::after {
    font-size: 96px;
  }
  .outro {
    padding-top: 110px;
    padding-bottom: 100px;
  }
}

/* ── Subpage responsive ───────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .page-hero {
    padding-top: 56px;
  }
  .page-stage {
    padding: 32px 0 56px;
  }
  .answer-body {
    padding: 16px 16px 18px;
    font-size: 14px;
  }
  .qa {
    padding-bottom: 84px;
  }
  .qa-next,
  .is-isnt {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    gap: 30px;
  }
  .step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
  }
  .step::before {
    left: 17.5px;
    top: 40px;
    bottom: -30px;
  }
  .step-num {
    width: 36px;
    height: 36px;
    font-size: 11.5px;
    border-radius: 8px;
  }
  .runbook-row {
    grid-template-columns: 34px 1fr;
  }
  .runbook-tag {
    display: none;
  }
  .fact-col::after {
    font-size: 80px;
  }
}
