/* ================================================================
   DecayGuard — "the ledger, not the map"
   Design system per release/decay/06-website-design.md §1.
   Amber is identity; green/red/blue are outcome semantics ONLY.
   ================================================================ */

:root {
  --bg-0:  #05070c;   /* page — same ink family as DebrisGuard */
  --bg-1:  #0a0e18;   /* panels */
  --bg-2:  #101624;   /* cards, table headers */
  --line:  #1d2536;   /* hairlines */
  --text:  #e8ecf4;
  --muted: #8b94a8;
  --accent:      #e8a33d;             /* amber — identity colour */
  --accent-soft: rgba(232,163,61,.14);
  --confirm:     #3ddc97;             /* ledger hit / confirmed */
  --miss:        #e05d5d;             /* expired / miss */
  --open:        #6ea8ff;             /* open predictions */
  --grad-accent: linear-gradient(135deg, #e8a33d, #f2c94c);

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --r-card: 14px;
  --r-ctl: 10px;
  --surface: linear-gradient(180deg, #0c1220 0%, #090d16 100%);
  --line-soft: rgba(255,255,255,.06);
  --accent-line: rgba(232,163,61,.30);
  --accent-ring: 0 0 0 1px rgba(232,163,61,.35), 0 24px 70px rgba(0,0,0,.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg-0);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #f2c94c; }
img { max-width: 100%; display: block; }

/* Every number, date, hash and NORAD id is monospace + tabular. */
.mono, .num, td.num, .dg-table td.num, .hash, .stat-value, .badge-day {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ── Nav / top bar ─────────────────────────────────────────────── */
.dg-nav {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(5,7,12,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 18px; font-weight: 750; letter-spacing: -.01em;
  color: var(--text); white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand svg { width: 26px; height: 26px; flex: 0 0 auto; }
.brand .beta {
  font-size: 10px; font-weight: 600; letter-spacing: .08em;
  color: var(--accent); border: 1px solid var(--accent);
  border-radius: 3px; padding: 1px 5px; margin-left: 2px;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 24px; margin: 0 auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { padding: 8px 14px; font-size: 13.5px; }
figure { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--r-ctl);
  font-family: inherit; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--grad-accent); color: #1a1104; }
.btn-primary:hover { filter: brightness(1.07); color: #1a1104; }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-lg { padding: 13px 26px; font-size: 15px; }

/* ── Badges / banner ───────────────────────────────────────────── */
.badge-day {
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 3px 9px; white-space: nowrap;
}
.badge-day b { color: var(--text); font-weight: 500; }
.banner-stale {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent);
  color: var(--text);
  padding: 8px 24px; font-size: 13px; text-align: center;
}
.banner-stale .mono { color: var(--accent); }

/* ── stat ──────────────────────────────────────────────────────── */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-1); overflow: hidden;
}
.stat {
  padding: 22px 24px 18px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat-value {
  font-size: 34px; font-weight: 600; color: var(--text);
  line-height: 1.05; letter-spacing: -.02em;
}
.stat-value .unit { font-size: 16px; color: var(--muted); font-weight: 400; }
.stat-caption { margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.stat-caption .mono { font-size: 11.5px; }
.stat-foot {
  margin-top: 12px; font-size: 12.5px; color: var(--muted);
}

/* ── chips ─────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); background: transparent;
  padding: 2px 9px; white-space: nowrap;
}
.chip-evidence { border-color: #2a3450; color: #aab4cc; }
.chip-confirmed { border-color: var(--confirm); color: var(--confirm); }
.chip-hit       { border-color: var(--confirm); color: var(--confirm); }
.chip-open      { border-color: var(--open);    color: var(--open); }
.chip-miss,
.chip-expired   { border-color: var(--miss);    color: var(--miss); }
.chip-void      { border-color: var(--line);    color: var(--muted); }

/* ── dg-table ──────────────────────────────────────────────────── */
.dg-table-wrap {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-1); overflow: auto;
  max-height: 72vh;
}
table.dg-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 13.5px;
}
.dg-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg-2);
  color: var(--muted); font-weight: 600; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .06em;
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap; user-select: none;
}
.dg-table thead th.sortable { cursor: pointer; }
.dg-table thead th.sortable:hover { color: var(--text); }
.dg-table thead th .arr { font-family: var(--mono); color: var(--accent); }
.dg-table tbody td {
  padding: 8px 14px; border-bottom: 1px solid var(--line);
  vertical-align: middle; white-space: nowrap;
}
.dg-table tbody tr:last-child td { border-bottom: none; }
.dg-table tbody tr { transition: background .1s; }
.dg-table tbody tr:hover { background: rgba(232,163,61,.045); }
.dg-table tbody tr.rowlink { cursor: pointer; }
.dg-table td.num, .dg-table th.num { text-align: right; }
.dg-table .objname { color: var(--muted); font-size: 12.5px; }
.dg-table .objname.named { color: var(--text); }

/* casualty tier: coloured left border, not shouting badges */
tr.tier-HIGH   td:first-child { box-shadow: inset 3px 0 0 var(--miss); }
tr.tier-MEDIUM td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
tr.tier-LOW    td:first-child { box-shadow: inset 3px 0 0 var(--muted); }

.table-note {
  padding: 10px 14px; font-size: 12.5px; color: var(--muted);
  border-top: 1px solid var(--line);
}
.show-all-btn {
  display: block; width: 100%;
  background: var(--bg-2); color: var(--accent);
  border: none; border-top: 1px solid var(--line);
  padding: 10px; font: 600 13px var(--sans); cursor: pointer;
}
.show-all-btn:hover { background: #141b2c; }

/* ── filter bar ────────────────────────────────────────────────── */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 0 0 14px;
}
.filter-bar label { font-size: 12.5px; color: var(--muted); }
.filter-bar select, .filter-bar input {
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 7px;
  padding: 6px 10px; font: 13px var(--sans);
}
.filter-bar input.num { font-family: var(--mono); width: 90px; }
.filter-bar select:focus, .filter-bar input:focus {
  outline: none; border-color: var(--accent);
}
.filter-count { font-size: 12.5px; color: var(--muted); margin-left: auto; }

/* ── hash ──────────────────────────────────────────────────────── */
.hash {
  font-size: 12px; color: var(--muted);
  cursor: pointer; border-bottom: 1px dotted var(--line);
  white-space: nowrap;
}
.hash:hover { color: var(--accent); border-bottom-color: var(--accent); }
.hash.copied { color: var(--confirm); border-bottom-color: var(--confirm); }
.chain-glyph { color: var(--accent); font-size: 12px; margin-right: 4px; }

/* ── drawer (P1) ───────────────────────────────────────────────── */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(2,3,6,.6);
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 121;
  width: 420px; max-width: 94vw;
  background: var(--bg-1); border-left: 1px solid var(--line);
  transform: translateX(102%); transition: transform .2s ease-out;
  overflow-y: auto; padding: 22px 24px 40px;
}
.drawer-open .drawer { transform: translateX(0); }
.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
.drawer h3 { font-size: 19px; margin-bottom: 2px; }
.drawer .drawer-sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.drawer-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: 1px solid var(--line); border-radius: 7px;
  color: var(--muted); font-size: 13px; padding: 4px 10px; cursor: pointer;
}
.drawer-close:hover { color: var(--text); border-color: var(--accent); }
.drawer-section { margin-top: 20px; }
.drawer-section h4 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin-bottom: 9px; font-weight: 600;
}
.kv { display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.drawer .spark-box {
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-2); padding: 12px;
}
.ledger-inline {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; background: var(--bg-2);
  padding: 12px 14px; font-size: 13px;
}
.ledger-inline .mono { font-size: 12px; }

/* ── landing (v2, 2026-10-02: DebrisGuard rhythm, amber) ─────────
   One system: eyebrow pill → headline with one accent phrase → sub →
   content in gradient-surface cards (14px). Images always sit on top
   of their card at a fixed 16:9, never below text at varying heights. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--confirm);
  box-shadow: 0 0 0 3px rgba(61,220,151,.18);
}
.eyebrow.neutral { background: rgba(255,255,255,.04); color: var(--muted); border-color: var(--line); }

.hero {
  display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr);
  gap: 56px; align-items: center;
  padding: 84px 0 64px;
}
.hero h1 {
  font-size: clamp(36px, 4.6vw, 54px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.06;
}
.hero h1 .accent {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero .sub { margin-top: 20px; font-size: 17.5px; line-height: 1.6; color: var(--muted); max-width: 50ch; }
.hero .cta-row { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof {
  margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px;
  padding-top: 22px; border-top: 1px solid var(--line-soft);
}
.hero-proof .hp-val { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.hero-proof .hp-val .unit { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.hero-proof .hp-lbl { margin-top: 7px; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); line-height: 1.45; }
.hero-media {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-1);
  box-shadow: var(--accent-ring);
}
.hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hero-media .media-cap {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(5,7,12,.78); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.hero-media .media-cap .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--confirm); }
.hero-media .media-cap b { color: var(--text); font-weight: 500; font-family: var(--mono); letter-spacing: 0; text-transform: none; font-size: 11.5px; }

.section { padding: 64px 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(27px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.section-head h2 .accent { color: var(--accent); }
.section-sub { color: var(--muted); font-size: 16px; line-height: 1.6; margin-top: 12px; max-width: 64ch; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* proof panel — framed stat strip */
.proof-panel {
  border: 1px solid var(--accent-line); border-radius: var(--r-card);
  background: var(--surface); padding: 26px 26px 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.proof-panel .proof-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 20px; }
.proof-panel .proof-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.proof-panel .proof-head h2 .accent { color: var(--accent); }
.proof-panel .proof-head .eyebrow { margin-bottom: 0; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
  padding: 18px 20px 16px; border: 1px solid var(--line);
  border-radius: 12px; background: rgba(255,255,255,.02);
}
.stat-value { font-size: 32px; font-weight: 600; color: var(--text); line-height: 1.05; letter-spacing: -.02em; }
.stat-value .unit { font-size: 15px; color: var(--muted); font-weight: 400; }
.stat-label { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.stat-caption { margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.stat-caption .mono { font-size: 11.5px; }
.stat-foot { margin-top: 16px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.stat-foot a { font-weight: 600; }

/* ledger teaser */
.ledger-card { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.ledger-card .dg-table-wrap { border: none; border-radius: 0; background: transparent; }
.ledger-card .ledger-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted);
}
.ledger-card .ledger-foot a { font-weight: 600; }

/* method cards — image on top, fixed ratio */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: 0 16px 44px rgba(0,0,0,.5); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); margin: 0; border-radius: 0; }
.card .card-body { padding: 22px 24px 26px; }
.card .step { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--accent); margin-bottom: 10px; }
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.card h3 .kicker { color: var(--accent); }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* storm feature panel */
.feature-panel {
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  gap: 0; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); overflow: hidden;
}
.feature-panel img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; border-right: 1px solid var(--line); }
.feature-panel .feature-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.feature-panel .feature-body > * { align-self: flex-start; }
.feature-panel h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.feature-panel h2 .accent { color: var(--accent); }
.feature-panel p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 14px 0 24px; }
.feature-kv { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin-bottom: 26px; width: 100%; }
.feature-kv .hp-val { font-family: var(--mono); font-size: 22px; font-weight: 600; }
.feature-kv .hp-lbl { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* pricing */
.price-card {
  max-width: 480px; margin: 0 auto;
  border: 1px solid var(--accent-line); border-radius: var(--r-card);
  background: var(--surface); padding: 32px 34px;
  box-shadow: var(--accent-ring);
}
.price-card .tier-name { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.price-card .price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 42px; font-weight: 600; letter-spacing: -.02em; margin: 10px 0 20px; }
.price-card .price .per { font-size: 15px; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; }
.price-card li { padding: 9px 0 9px 26px; font-size: 14.5px; color: var(--text); border-top: 1px solid var(--line-soft); position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.price-card .btn { width: 100%; margin-top: 22px; }
.price-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 20px; }

/* faq */
.faq { max-width: 780px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 6px 26px; }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 4px 0; }
.faq details:last-child { border-bottom: none; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; padding: 15px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; color: var(--accent); font-family: var(--mono); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); font-size: 14.5px; line-height: 1.6; padding: 0 0 18px; max-width: 68ch; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 40px; color: var(--muted); font-size: 13.5px; }
footer .foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px 40px; }
footer .foot-col h4 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
footer .foot-col a { display: block; color: var(--muted); padding: 3px 0; }
footer a:hover { color: var(--text); }
footer .foot-brand { color: var(--text); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; }
footer .foot-brand .accent { color: var(--accent); }
footer .foot-brand svg { width: 20px; height: 20px; }
footer .foot-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12.5px; }

/* ── app shell ─────────────────────────────────────────────────── */
.tab-strip { display: flex; gap: 2px; overflow-x: auto; }
.tab-strip a {
  padding: 9px 15px; font-size: 13.5px; font-weight: 550;
  color: var(--muted); border-radius: 8px 8px 0 0;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab-strip a:hover { color: var(--text); }
.tab-strip a.active {
  color: var(--text); border-bottom-color: var(--accent);
  background: rgba(232,163,61,.06);
}
.tab-strip a .lock { font-size: 11px; color: var(--muted); }
.panel { display: none; padding: 26px 0 60px; }
.panel.active { display: block; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-bottom: 16px; }
.panel-head h2 { font-size: 21px; }
.panel-head .panel-sub { color: var(--muted); font-size: 13.5px; }

.split-2 { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 20px; align-items: start; }

/* ── paywall ───────────────────────────────────────────────────── */
.gate-host { position: relative; min-height: 480px; }
.gate-blur { filter: blur(7px); pointer-events: none; user-select: none; }
.skeleton-rows td .sk {
  display: block; height: 11px; border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-2), #17203400 40%, var(--bg-2));
  background-color: var(--bg-2);
}
.paywall {
  position: absolute; inset: 0; z-index: 10;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 56px;
}
.paywall-card {
  width: 400px; max-width: 92%;
  border: 1px solid var(--accent); border-radius: 12px;
  background: var(--bg-1); padding: 26px 28px;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.paywall-card h3 { font-size: 18px; margin-bottom: 4px; }
.paywall-card .price {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 26px; font-weight: 600; color: var(--accent); margin: 6px 0 14px;
}
.paywall-card ul { list-style: none; margin-bottom: 18px; }
.paywall-card li {
  font-size: 13.5px; color: var(--muted); padding: 5px 0 5px 20px; position: relative;
}
.paywall-card li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); }
.paywall-card .alt-link { display: block; text-align: center; margin-top: 14px; font-size: 13.5px; }

/* ── P2 receipts strip ─────────────────────────────────────────── */
.receipts-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 12px; background: var(--bg-1);
  padding: 12px 18px; margin-bottom: 16px; font-size: 13.5px;
}
.receipts-strip .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.match-ok { color: var(--confirm); font-size: 13px; font-weight: 600; }
.match-bad {
  color: #fff; background: var(--miss); border-radius: 6px;
  padding: 3px 10px; font-size: 13px; font-weight: 700;
}

/* ── P3 storm ──────────────────────────────────────────────────── */
.scenario-box {
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1);
  padding: 18px 22px; margin-bottom: 18px;
}
.scenario-box .sc-label {
  font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--accent);
}
.scenario-box input[type=range] { width: 100%; max-width: 420px; accent-color: var(--accent); margin: 10px 0 4px; }
.detent-labels { display: flex; justify-content: space-between; max-width: 420px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.compression-bar {
  display: inline-block; vertical-align: middle;
  height: 8px; border-radius: 3px;
  background: var(--grad-accent); min-width: 2px;
}
.bar-track {
  display: inline-block; vertical-align: middle;
  width: 90px; height: 8px; border-radius: 3px;
  background: var(--bg-2); border: 1px solid var(--line);
  margin-right: 8px;
}
.flips-list { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); }
.flips-list .flip-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.flips-list .flip-row:last-child { border-bottom: none; }
.flips-empty { padding: 22px 18px; color: var(--muted); font-size: 13.5px; }
.caption { color: var(--muted); font-size: 12.5px; margin-top: 10px; }

/* ── P4 heat grid ──────────────────────────────────────────────── */
.heat-wrap {
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1);
  padding: 16px; overflow: auto; max-height: 62vh;
}
.heat-grid { display: grid; gap: 2px; font-family: var(--mono); font-size: 10px; }
.heat-cell {
  height: 15px; border-radius: 2px; cursor: pointer;
  background: var(--bg-2); position: relative;
}
.heat-cell:hover { outline: 1px solid var(--accent); }
.heat-cell.sel { outline: 2px solid var(--accent); }
.heat-lab { color: var(--muted); white-space: nowrap; display: flex; align-items: center; height: 15px; }
.heat-lab.col { justify-content: center; height: auto; padding-bottom: 4px; }
.bin-detail {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 12px; background: var(--bg-1);
  padding: 14px 18px; font-size: 13.5px; margin-top: 14px;
}
.trend-up { color: var(--accent); }
.trend-dn { color: var(--muted); }

/* ── methods prose ─────────────────────────────────────────────── */
.prose { max-width: 760px; }
.prose h1 { font-size: 32px; margin: 40px 0 10px; }
.prose h2 { font-size: 21px; margin: 42px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.prose p, .prose li { color: #c3cad8; font-size: 15px; margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 12px; }
.prose code {
  font-family: var(--mono); font-size: 13px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 5px;
}
.prose pre {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; overflow-x: auto; margin: 14px 0 18px;
}
.prose pre code { background: none; border: none; padding: 0; font-size: 12.5px; line-height: 1.7; }
.prose .callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; background: var(--bg-1);
  padding: 14px 18px; margin: 16px 0;
}

/* ── responsive ────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .feature-panel { grid-template-columns: 1fr; }
  .feature-panel img { border-right: none; border-bottom: 1px solid var(--line); min-height: 240px; }
  footer .foot-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .hero-proof { grid-template-columns: repeat(2, 1fr); }
  .split-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dg-nav { flex-wrap: wrap; padding: 10px 14px; }
  .nav-links { gap: 14px; }
  .container { padding: 0 16px; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-value { font-size: 28px; }
  .drawer { width: 100vw; max-width: 100vw; }
}
@media (max-width: 400px) {
  body { font-size: 14px; }
  .hero h1 { font-size: 30px; }
  .btn-lg { padding: 10px 16px; }
}
