/*
Theme Name: Chassis
Theme URI: https://mw4-hacks.com/
Author: MW4 Hacks
Description: Custom theme for mw4-hacks.com.
Version: 0.1.0
License: Proprietary
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: chassis
*/

/* --------------------------------------------------------------
   Self-hosted webfonts — latin subset, woff2 only, font-display swap.
   Same-origin: no third-party fetch, no privacy leak, CSP stays tight.
   -------------------------------------------------------------- */
@font-face {
  font-family: 'Rubik';
  src: url('assets/fonts/rubik-800-latin.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('assets/fonts/barlow-semi-condensed-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('assets/fonts/barlow-semi-condensed-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------
   Fallback @font-face — metric-matched so the swap-in from fallback
   to real font doesn't cause CLS on H1s.
   -------------------------------------------------------------- */
@font-face {
  font-family: 'Rubik Fallback';
  src: local('Arial Black'), local('Impact');
  font-weight: 800;
  size-adjust: 96%;
  ascent-override: 100%;
  descent-override: 24%;
  line-gap-override: 0%;
}
/* Barlow Fallback metrics — tuned to match the loaded Barlow Semi Condensed line-box
   so the swap is geometrically neutral. Prevents CLS on cold-cache first paint. */
@font-face {
  font-family: 'Barlow Fallback';
  src: local('Arial Narrow'), local('Arial'), local('Helvetica');
  font-weight: 500;
  size-adjust: 92%;
  ascent-override: 95%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Barlow Fallback';
  src: local('Arial Narrow Bold'), local('Arial Bold'), local('Helvetica Bold');
  font-weight: 700;
  size-adjust: 92%;
  ascent-override: 95%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  --deck: #24272C;
  --deck-2: #1B1E22;
  --deck-3: #33373E;
  --panel: #E8E1D0;
  --panel-2: #F5EFDE;
  --ink: #14161A;
  --ash: #4E5158;
  --wisp: rgba(232,225,208,.86);       /* WCAG AA on --deck at <18px (was .65) */
  --wisp-2: rgba(232,225,208,.62);     /* WCAG AA on --deck at <18px (was .38) — reserve for less-critical text */
  --signal: #7FE84A;              /* bright signal green — for dark surfaces */
  --signal-cream: #186B0D;        /* AA-safe dark signal green — for cream surfaces (4.85:1 on --panel) */
  --signal-hot: #96F464;          /* hotter hover accent — 12% brighter than --signal */
  --signal-glow: rgba(127,232,74,.32);
  --signal-dim: rgba(127,232,74,.14);
  --warn: #F2C94C;
  --alert: #E85A3C;
  --alert-ink: #F5B5A6;           /* text on --alert-tinted backgrounds (AA on the .alert.err bg) */
  --strut: rgba(232,225,208,.14);
  --strut-strong: rgba(232,225,208,.28);
  --strut-ink: rgba(20,22,26,.14);

  --heavy: 'Rubik', 'Rubik Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body:  'Barlow Semi Condensed', 'Barlow Fallback', system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deck);
  color: var(--panel);
  font-family: var(--body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--signal); color: var(--deck-2); }

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --------------------------------------------------------------
   Utility — visually hidden text (a11y + SEO keyword surface
   without visible reflow; use for wordmarks where the visual
   form doesn't tokenise as the target keyword).
   -------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------
   Accessibility — focus, skip, reduced motion
   -------------------------------------------------------------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--signal);
  color: var(--deck-2);
  padding: 12px 18px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  z-index: 100;
  transition: top .2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 8px;
  text-decoration: none;
  outline: 2px solid var(--deck-2);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.rig-in { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .rig-in { padding: 0 20px; } }

/* --------------------------------------------------------------
   Contrast context tokens
   Cream .bay swaps --signal to AA-safe dark green.
   Dark islands inside cream restore the bright signal.
   -------------------------------------------------------------- */
.bay:not(.deck-bg) {
  --signal: var(--signal-cream);
  --signal-glow: rgba(24,107,13,.28);
  --signal-dim: rgba(24,107,13,.10);
}
.bay:not(.deck-bg) .picked,
.bay:not(.deck-bg) .module-mark,
.bay:not(.deck-bg) .tier-flag,
.bay:not(.deck-bg) .btn.armed,
.bay:not(.deck-bg) .cur button.on {
  --signal: #7FE84A;
  --signal-glow: rgba(127,232,74,.32);
  --signal-dim: rgba(127,232,74,.14);
}

/* --------------------------------------------------------------
   Type
   -------------------------------------------------------------- */
h1, h2, h3, h4, .heavy {
  font-family: var(--heavy);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .95;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(46px, 8.4vw, 104px); }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); line-height: 1; }

.slash { color: var(--signal); }

.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--signal);
}

.mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--wisp-2);
}

/* --------------------------------------------------------------
   Status pill (chip pattern)
   -------------------------------------------------------------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--signal);
  padding: 6px 14px 6px 12px;
  background: var(--signal-dim);
  border: 1px solid rgba(127,232,74,.34);
  border-radius: 2px;
}
.status-pill::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal-glow);
  animation: signal-blink 2.4s ease-in-out infinite;
}
@keyframes signal-blink {
  0%, 60%, 100% { opacity: 1; }
  70% { opacity: .35; }
  80% { opacity: 1; }
}

/* --------------------------------------------------------------
   Buttons
   -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease,
              box-shadow .15s ease, border-color .15s ease, color .15s ease;
}
.btn.armed {
  background: var(--signal);
  color: var(--deck-2);
  box-shadow: 0 0 30px rgba(127,232,74,.22);
}
.btn.armed:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 40px rgba(127,232,74,.35);
  text-decoration: none;
}
.btn.wire {
  background: transparent;
  color: var(--panel);
  border-color: var(--strut-strong);
}
.btn.wire:hover {
  border-color: var(--panel);
  background: rgba(232,225,208,.04);
  text-decoration: none;
}
.btn .arrow { transition: transform .2s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* on cream backgrounds, wire button flips */
.bay .btn.wire {
  color: var(--ink);
  border-color: var(--strut-ink);
}
.bay .btn.wire:hover {
  border-color: var(--ink);
  background: rgba(20,22,26,.04);
}

/* on image-backed sections (hero + CTA card), the transparent wire button
   loses its border against the photo — reinforce with a solid brighter border
   + semi-transparent dark backdrop + blur so it reads on any image */
.hero-bg .btn.wire,
.cta-bg  .btn.wire {
  color: var(--panel);
  border-color: rgba(232, 225, 208, 0.55);
  background: rgba(20, 22, 26, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-bg .btn.wire:hover,
.cta-bg  .btn.wire:hover {
  background: rgba(20, 22, 26, 0.78);
  border-color: var(--signal);
  color: var(--signal);
}

/* --------------------------------------------------------------
   Header
   -------------------------------------------------------------- */
.chassis-top {
  border-bottom: 1px solid var(--strut);
  background: rgba(20,22,26,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.chassis-top .rig-in {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.chassis-brand {
  display: inline-flex; align-items: baseline;
  font-family: var(--heavy);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--panel);
  text-transform: uppercase;
  text-decoration: none;
}
.chassis-brand:hover { text-decoration: none; color: var(--panel); }
.chassis-brand .slash { color: var(--signal); margin: 0 2px; }
.chassis-nav {
  display: flex; gap: 28px; align-items: center;
}
.chassis-nav a {
  color: var(--panel);
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
}
.chassis-nav a:not(.btn):not(.icon-btn):hover { color: var(--signal); text-decoration: none; }
.chassis-nav .btn { padding: 10px 18px; font-size: 12px; }
.chassis-nav .icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  color: var(--panel);
  border: 1px solid var(--strut-strong);
  border-radius: 3px;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.chassis-nav .icon-btn:hover {
  color: var(--signal);
  border-color: var(--signal);
  background: rgba(127,232,74,.04);
  text-decoration: none;
}
.chassis-nav .icon-btn svg { width: 20px; height: 15px; display: block; }
@media (max-width: 720px) {
  .chassis-nav { gap: 12px; }
  .chassis-nav .drop-mobile { display: none; }
}

/* --------------------------------------------------------------
   Hero (control-panel stage)
   -------------------------------------------------------------- */
.stage-console {
  padding: 92px 0 116px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 20%, rgba(127,232,74,.09), transparent 42%),
    linear-gradient(180deg, var(--deck) 0%, var(--deck-2) 100%);
}
.stage-console::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 8px;
  background: repeating-linear-gradient(-45deg,
    var(--warn) 0 14px, var(--deck-2) 14px 28px);
}
.stage-console h1 { margin: 22px 0 22px; }
.stage-console .lead {
  max-width: 620px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--wisp);
  margin: 0 0 32px;
}
.stage-console .lead b { color: var(--panel); font-weight: 700; }
.stage-console .actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.stage-console .gauge-cluster {
  list-style: none;
  padding: 22px 0 0;
  margin: 0;
  display: grid; grid-template-columns: repeat(4, max-content); gap: 44px;
  border-top: 1px dashed var(--strut-strong);
}
.stage-console .gauge-cluster li {
  display: flex; flex-direction: column; gap: 4px;
}
.stage-console .gauge-cluster b {
  font-family: var(--body);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wisp-2);
}
.stage-console .gauge-cluster span {
  font-family: var(--heavy);
  font-weight: 800;
  font-size: 22px;
  color: var(--panel);
}
.stage-console .gauge-cluster li:first-child span,
.stage-console .gauge-cluster li:nth-child(4) span {
  color: var(--signal);
}
@media (max-width: 720px) {
  .stage-console { padding: 60px 0 84px; }
  .stage-console .gauge-cluster {
    grid-template-columns: repeat(2, 1fr); gap: 22px;
  }
}

/* --------------------------------------------------------------
   Bay (section on cream, default)
   -------------------------------------------------------------- */
.bay {
  padding: 92px 0;
  background: var(--panel);
  color: var(--ink);
  position: relative;
}
.bay.deck-bg { background: var(--deck); color: var(--panel); }
.bay-head { max-width: 720px; margin: 0 0 44px; }
.bay-head h1, .bay-head h2 { margin-top: 14px; }
.bay-head h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: .95; text-wrap: balance; }
.bay-head p {
  margin-top: 18px;
  color: var(--ash);
  font-size: 17px;
  line-height: 1.55;
  max-width: 560px;
}
.bay.deck-bg .bay-head p { color: var(--wisp); }

/* --------------------------------------------------------------
   Footer
   -------------------------------------------------------------- */
.chassis-foot {
  background: var(--deck-2);
  color: var(--wisp);
  padding: 60px 0 32px;
  border-top: 1px solid var(--strut);
}
.chassis-foot .foot-top {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 44px;
  padding-bottom: 40px; border-bottom: 1px solid var(--strut);
}
@media (max-width: 960px) {
  .chassis-foot .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .chassis-foot .foot-top { grid-template-columns: 1fr; }
}
.chassis-foot .discord-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px;
  padding: 10px 16px;
  color: var(--panel);
  background: rgba(127,232,74,.06);
  border: 1px solid var(--strut-strong);
  border-radius: 3px;
  font-family: var(--body); font-weight: 700;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.chassis-foot .discord-cta:hover {
  color: var(--signal);
  border-color: var(--signal);
  background: rgba(127,232,74,.12);
  text-decoration: none;
}
.chassis-foot .discord-cta svg { width: 20px; height: 15px; }
.dc-inline {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--signal);
  text-decoration: none;
}
.dc-inline:hover { text-decoration: underline; }
.dc-inline svg { width: 15px; height: 12px; }
.confirm p.confirm-tip {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px dashed var(--strut-strong);
  color: var(--wisp);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
}
.chassis-foot h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--panel);
  margin: 0 0 18px;
}
.chassis-foot ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.chassis-foot ul a {
  color: var(--wisp);
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}
.chassis-foot ul a:hover { color: var(--signal); text-decoration: none; }
.chassis-foot .brand-blurb .status-pill { margin-bottom: 18px; }
.chassis-foot .brand-blurb p {
  color: var(--wisp);
  font-size: 14px;
  line-height: 1.55;
  max-width: 380px;
  margin: 0;
}
.chassis-foot .foot-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--wisp-2);
}
@media (max-width: 720px) {
  .chassis-foot .foot-bot { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* --------------------------------------------------------------
   Hero / bay / CTA background-image system
   Each modifier class sets --*-src for the desktop image;
   an @media query at the bottom swaps in the mobile crop.
   -------------------------------------------------------------- */
.stage-console.hero-bg {
  background:
    linear-gradient(90deg, rgba(20,22,26,.86) 0%, rgba(20,22,26,.55) 45%, rgba(20,22,26,.20) 100%),
    linear-gradient(180deg, transparent 55%, rgba(20,22,26,.80) 100%),
    var(--hero-src, none) no-repeat center / cover,
    var(--deck-2);
}
.bay.deck-bg.bay-bg {
  background:
    linear-gradient(180deg, rgba(20,22,26,.82) 0%, rgba(27,30,34,.90) 100%),
    var(--bay-src, none) no-repeat center / cover,
    var(--deck);
}
.cta-card.cta-bg {
  background:
    linear-gradient(180deg, rgba(20,22,26,.72) 0%, rgba(20,22,26,.90) 100%),
    var(--cta-src, none) no-repeat center / cover,
    var(--deck-3);
}
/* image assignments — desktop */
.bg-operator  { --hero-src: url('/wp-content/themes/chassis/assets/heroes/operator.webp'); }
.bg-esp       { --hero-src: url('/wp-content/themes/chassis/assets/heroes/esp.webp'); }
.bg-breach    { --bay-src:  url('/wp-content/themes/chassis/assets/heroes/breach.webp'); }
.bg-loadout   { --bay-src:  url('/wp-content/themes/chassis/assets/heroes/loadout.webp'); }
.bg-rooftop   { --cta-src:  url('/wp-content/themes/chassis/assets/heroes/rooftop.webp'); }
.bg-aimbot    { --cta-src:  url('/wp-content/themes/chassis/assets/heroes/aimbot.webp'); }
/* image assignments — mobile (smaller crops) */
@media (max-width: 768px) {
  .bg-operator  { --hero-src: url('/wp-content/themes/chassis/assets/heroes/operator-mobile.webp'); }
  .bg-esp       { --hero-src: url('/wp-content/themes/chassis/assets/heroes/esp-mobile.webp'); }
  .bg-breach    { --bay-src:  url('/wp-content/themes/chassis/assets/heroes/breach-mobile.webp'); }
  .bg-loadout   { --bay-src:  url('/wp-content/themes/chassis/assets/heroes/loadout-mobile.webp'); }
  .bg-rooftop   { --cta-src:  url('/wp-content/themes/chassis/assets/heroes/rooftop-mobile.webp'); }
  .bg-aimbot    { --cta-src:  url('/wp-content/themes/chassis/assets/heroes/aimbot-mobile.webp'); }
}

/* --------------------------------------------------------------
   Hero 2-col grid + control-panel SVG
   -------------------------------------------------------------- */
.stage-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 960px) {
  .stage-grid { grid-template-columns: 1fr; gap: 40px; }
  .stage-console-art { order: -1; max-width: 360px; }
}
.stage-console-art { position: relative; }
.hero-console {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
}

/* --------------------------------------------------------------
   Module grid (Hack spec)
   -------------------------------------------------------------- */
.module-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .module-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .module-grid { grid-template-columns: 1fr; } }
.module {
  background: var(--panel-2);
  border: 1px solid var(--strut-ink);
  border-radius: 6px;
  padding: 28px 26px 30px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.module:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(20,22,26,.08);
}
.module-mark {
  width: 44px; height: 44px;
  border-radius: 4px;
  background: var(--deck);
  color: var(--signal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.module-mark svg { width: 24px; height: 24px; }
.module h3 { color: var(--ink); }
.module .mod-lead {
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.module ul {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 7px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  color: var(--ash);
  line-height: 1.4;
}
.module ul li {
  position: relative; padding-left: 14px;
}
.module ul li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 2px; background: var(--signal);
}

/* --------------------------------------------------------------
   Step chain (How it boots)
   -------------------------------------------------------------- */
.step-chain {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  position: relative;
}
@media (max-width: 900px) { .step-chain { grid-template-columns: 1fr; gap: 22px; } }
.step {
  padding: 28px 26px;
  border: 1px solid var(--strut);
  border-radius: 4px;
  background: rgba(232,225,208,.02);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.step-n {
  font-family: var(--heavy);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--signal);
  letter-spacing: -.03em;
}
.step h3 { color: var(--panel); }
.step p {
  color: var(--wisp);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------
   Currency picker
   -------------------------------------------------------------- */
.cur {
  display: inline-flex; gap: 0;
  border: 1px solid var(--strut-ink);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 28px;
}
.cur button {
  background: transparent;
  color: var(--ash);
  border: none;
  padding: 9px 16px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  cursor: pointer;
  border-right: 1px solid var(--strut-ink);
  transition: background .15s ease, color .15s ease;
}
.cur button:last-child { border-right: none; }
.cur button:hover { color: var(--ink); }
.cur button.on {
  background: var(--deck);
  color: var(--signal);
}

/* --------------------------------------------------------------
   Pricing tiers
   -------------------------------------------------------------- */
.tier-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) { .tier-row { grid-template-columns: 1fr; gap: 16px; } }
.tier {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--strut-ink);
  border-radius: 6px;
  padding: 32px 26px 28px;
  display: flex; flex-direction: column;
}
.tier.picked {
  background: var(--deck);
  color: var(--panel);
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--signal);
  transform: translateY(-6px);
}
@media (max-width: 900px) { .tier.picked { transform: none; } }
.tier-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--signal);
  color: var(--deck-2);
  font-family: var(--body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
}
.tier-dur {
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 6px;
}
.tier.picked .tier-dur { color: var(--wisp); }
.tier-amt {
  font-family: var(--heavy);
  font-weight: 800;
  font-size: 42px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -.03em;
  display: flex; align-items: baseline;
}
.tier.picked .tier-amt { color: var(--panel); }
.tier-amt .cursym {
  font-style: normal;
  font-size: 22px;
  color: var(--signal);
  margin-right: 4px;
  font-weight: 700;
}
.tier ul {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ash);
  flex: 1;
}
.tier.picked ul { color: var(--wisp); }
.tier ul li {
  position: relative; padding-left: 16px;
}
.tier ul li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 8px; height: 2px; background: var(--signal);
}
.pricing-note {
  margin-top: 28px;
  color: var(--ash);
  text-align: center;
}

/* --------------------------------------------------------------
   Stat band
   -------------------------------------------------------------- */
.stat-bay { padding: 72px 0; }
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
@media (max-width: 900px) { .stat-band { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .stat-band { grid-template-columns: 1fr; } }
.stat {
  padding-left: 20px;
  border-left: 2px solid var(--signal);
}
.stat-n {
  font-family: var(--heavy);
  font-weight: 800;
  font-size: 52px;
  line-height: 1;
  color: var(--panel);
  letter-spacing: -.03em;
  margin-bottom: 10px;
}
.stat-n span {
  font-size: 24px;
  color: var(--signal);
  margin-left: 2px;
}
.stat-l {
  font-family: var(--body);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--wisp);
  line-height: 1.5;
  max-width: 220px;
}

/* --------------------------------------------------------------
   FAQ
   -------------------------------------------------------------- */
.faq-list {
  display: flex; flex-direction: column; gap: 6px;
  max-width: 820px;
}
.faq-item {
  border-top: 1px solid var(--strut-ink);
  padding: 20px 0;
}
.faq-item:last-of-type { border-bottom: 1px solid var(--strut-ink); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--heavy);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: -.005em;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--heavy);
  color: var(--signal);
  font-size: 24px;
  line-height: 1;
  transition: transform .18s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin: 14px 0 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ash);
  max-width: 68ch;
}
.faq-item p a { color: var(--signal); }

/* --------------------------------------------------------------
   Closing CTA card
   -------------------------------------------------------------- */
.cta-bay { padding: 72px 0 92px; }
.cta-card {
  padding: 56px 48px;
  border: 1px solid var(--strut-strong);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 24%, rgba(127,232,74,.10), transparent 46%),
    var(--deck-3);
  text-align: center;
  position: relative;
}
.cta-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(-45deg,
    var(--warn) 0 10px, var(--deck-2) 10px 20px);
  border-top-left-radius: 8px; border-top-right-radius: 8px;
}
.cta-card .status-pill { margin-bottom: 22px; }
.cta-card h2 { margin: 0 0 18px; }
.cta-card p {
  color: var(--wisp);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.cta-card .actions { justify-content: center; }

/* --------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------- */
.crumbs {
  background: var(--deck-2);
  padding: 14px 0;
  border-bottom: 1px solid var(--strut);
}
.crumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; flex-wrap: wrap;
  font-family: var(--body);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wisp-2);
}
.crumbs a { color: var(--wisp); text-decoration: none; }
.crumbs a:hover { color: var(--signal); text-decoration: none; }
.crumbs li[aria-current="page"] { color: var(--signal); }
.crumbs li + li::before {
  content: '/';
  color: var(--wisp-2);
  margin: 0 10px;
  font-family: var(--heavy);
  font-weight: 800;
}

/* --------------------------------------------------------------
   Hero variant — /hack/ product page (smaller H1 than home wordmark)
   -------------------------------------------------------------- */
.stage-hack h1 {
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1;
  margin: 22px 0 22px;
  max-width: 900px;
}

/* --------------------------------------------------------------
   Trust ribbon (row of chips under hero actions)
   -------------------------------------------------------------- */
.trust-ribbon {
  list-style: none; padding: 24px 0 0; margin: 0;
  border-top: 1px dashed var(--strut-strong);
  display: flex; flex-wrap: wrap; gap: 12px 22px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wisp);
}
.trust-ribbon li {
  display: flex; align-items: center; gap: 8px;
}
.trust-ribbon li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal-glow);
}

/* --------------------------------------------------------------
   4-col module grid variant
   -------------------------------------------------------------- */
.module-grid.four { grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .module-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .module-grid.four { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------
   Step chain on cream (for /hack/ where "how it boots" is cream)
   -------------------------------------------------------------- */
.step-chain-cream .step {
  background: var(--panel-2);
  border-color: var(--strut-ink);
}
.step-chain-cream .step h3 { color: var(--ink); }
.step-chain-cream .step p { color: var(--ash); }

/* --------------------------------------------------------------
   FAQ on dark (for /hack/ where FAQ is on deck-bg)
   -------------------------------------------------------------- */
.faq-dark .faq-item { border-top-color: var(--strut); }
.faq-dark .faq-item:last-of-type { border-bottom-color: var(--strut); }
.faq-dark .faq-item summary { color: var(--panel); }
.faq-dark .faq-item p { color: var(--wisp); }
.faq-dark .faq-item summary::after { color: var(--signal); }

/* --------------------------------------------------------------
   Pillars — home differentiators (visually distinct from .module)
   -------------------------------------------------------------- */
.pillars-bay { padding: 88px 0; }
.pillar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px;
  padding-top: 28px;
  margin-top: 8px;
  border-top: 1px dashed var(--strut-ink);
}
.pillar { display: flex; flex-direction: column; gap: 12px; }
.pillar-stat {
  font-family: var(--heavy);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: var(--signal);
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.pillar-stat span {
  font-size: 26px;
  color: var(--ash);
  margin-left: 2px;
  font-weight: 800;
}
.pillar h3 { color: var(--ink); font-size: 20px; margin: 0; }
.pillar p {
  color: var(--ash);
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 340px;
}
@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* --------------------------------------------------------------
   Comparison table (buyer checklist on home)
   -------------------------------------------------------------- */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%; min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--panel-2);
  border: 1px solid var(--strut-ink);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--body);
  font-size: 14.5px;
  color: var(--ink);
}
.compare-table thead th {
  padding: 14px 16px;
  background: var(--deck);
  color: var(--panel);
  text-align: left;
  font-family: var(--body); font-weight: 700;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid var(--strut);
}
.compare-table thead th.col-ours {
  background: var(--signal);
  color: var(--deck-2);
  position: relative;
}
.compare-table tbody th,
.compare-table tbody td {
  padding: 16px;
  border-top: 1px solid var(--strut-ink);
  vertical-align: middle;
  text-align: left;
}
.compare-table tbody th {
  font-family: var(--body); font-weight: 700;
  color: var(--ink);
  width: 30%;
}
.compare-table tbody th .tsub {
  display: block;
  font-family: var(--mono); font-weight: 400;
  font-size: 11px; letter-spacing: .04em;
  color: var(--ash);
  text-transform: none;
  margin-top: 3px;
}
.compare-table td.col-ours {
  background: rgba(24,107,13,.06);
  font-weight: 700;
  border-left: 2px solid var(--signal);
  border-right: 2px solid var(--signal);
}
.compare-table tbody tr:last-child td.col-ours {
  border-bottom: 2px solid var(--signal);
}
.compare-table .mk {
  display: inline-block;
  width: 18px; height: 18px;
  text-align: center; line-height: 18px;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: -1px;
  font-size: 13px;
}
.compare-table .mk.tick { color: var(--signal); }
.compare-table .mk.warn { color: #B8871A; }
.compare-table .mk.x    { color: var(--alert); }
.compare-note {
  margin-top: 20px; color: var(--ash); text-align: center;
}

/* Operator matrix — /manual/ (4-col, dark bay, all links green) */
.operator-matrix tbody th { width: 24%; }
.operator-matrix tbody td { font-family: var(--body); font-size: 14px; line-height: 1.4; }
.operator-matrix tbody td a {
  color: var(--signal-cream);
  border-bottom: 1px dashed var(--signal-cream);
  text-decoration: none;
}
.operator-matrix tbody td a:hover { border-bottom-style: solid; text-decoration: none; }

/* Lookup list — Q/A quick-reference on /manual/ */
.lookup-list {
  max-width: 900px;
  border-top: 1px solid var(--strut);
}
.lookup-row {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 24px; padding: 14px 4px;
  border-bottom: 1px solid var(--strut);
  align-items: baseline;
}
.lookup-q {
  color: var(--panel);
  font-family: var(--body); font-weight: 500;
  font-size: 14.5px; line-height: 1.5;
}
.lookup-a {
  color: var(--wisp);
  font-family: var(--body); font-weight: 500;
  font-size: 13.5px;
}
.lookup-a a {
  color: var(--signal);
  text-decoration: none;
}
.lookup-a a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .lookup-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
}

/* Matrix-table modifier — 3 columns instead of 4 (Requirement / Status / Notes) */
.matrix-table thead th:nth-child(3),
.matrix-table tbody td:nth-child(3) {
  min-width: 260px;
  color: var(--ash);
  font-family: var(--body); font-weight: 500;
  font-size: 13.5px; line-height: 1.5;
}
.matrix-table tbody th { width: 26%; }
.matrix-table td.col-ours { width: 24%; }

/* Undetected definition (numbered list on cream bay) */
.undetected-def { max-width: 820px; margin: 0 auto; }
.undetected-list {
  list-style: none; padding: 0; margin: 0;
  counter-reset: udl;
  display: flex; flex-direction: column; gap: 20px;
}
.undetected-list li {
  counter-increment: udl;
  padding: 22px 26px 22px 68px;
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--strut-ink);
  border-left: 4px solid var(--signal-cream);
  border-radius: 0 4px 4px 0;
  color: var(--ink);
  font-family: var(--body); font-weight: 500;
  font-size: 15.5px; line-height: 1.6;
}
.undetected-list li::before {
  content: counter(udl, decimal-leading-zero);
  position: absolute; left: 22px; top: 22px;
  font-family: var(--heavy); font-weight: 800;
  font-size: 22px;
  color: var(--signal-cream);
  letter-spacing: -.02em;
  line-height: 1;
}
.undetected-list li b {
  color: var(--ink); font-weight: 700;
  display: inline;
  margin-right: 4px;
}
.undetected-list li strong { color: var(--ink); font-weight: 700; }
.undetected-list li code {
  background: rgba(232,90,60,.10);
  border: 1px solid rgba(232,90,60,.24);
  color: var(--alert);
  padding: 1px 6px; border-radius: 2px;
  font-family: var(--mono); font-size: 12.5px;
}

/* Red flags callout (below the compare table) */
.red-flags {
  max-width: 780px;
  margin: 44px 0 0;
  padding: 22px 26px;
  background: rgba(232,90,60,.06);
  border: 1px solid rgba(232,90,60,.24);
  border-radius: 4px;
}
.red-flags .eyebrow {
  color: var(--alert);
  margin-bottom: 14px;
}
.red-flags ul {
  list-style: none; padding: 0; margin: 0;
  color: var(--ink);
  font-family: var(--body); font-weight: 500;
  font-size: 14.5px; line-height: 1.6;
}
.red-flags li {
  padding-left: 22px; position: relative;
  margin-bottom: 8px;
}
.red-flags li:last-child { margin-bottom: 0; }
.red-flags li::before {
  content: '\2717';  /* ✗ */
  position: absolute; left: 0;
  color: var(--alert); font-weight: 700;
}

/* --------------------------------------------------------------
   Pricing-glance cards (home, dark bay)
   Distinct from /hack/ full pricing block — no currency picker,
   just 3 cards with price + inclusion list + inline "Boot" CTA.
   -------------------------------------------------------------- */
.price-glance {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) { .price-glance { grid-template-columns: 1fr; gap: 16px; } }
.price-card {
  display: flex; flex-direction: column;
  padding: 26px 24px 22px;
  background: rgba(232,225,208,.03);
  border: 1px solid var(--strut);
  border-radius: 4px;
  text-decoration: none;
  color: var(--panel);
  position: relative;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.price-card:hover {
  border-color: var(--signal);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  text-decoration: none;
}
.price-card .pg-dur {
  font-family: var(--body); font-weight: 700;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--wisp);
}
.price-card .pg-amt {
  font-family: var(--heavy); font-weight: 800;
  font-size: 42px; line-height: 1;
  color: var(--panel);
  letter-spacing: -.02em;
  margin: 8px 0 18px;
  display: flex; align-items: baseline;
}
.price-card .pg-amt i {
  font-style: normal; font-size: 22px; color: var(--signal); margin-right: 4px; font-weight: 700;
}
.price-card .pg-inc {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--body); font-weight: 500;
  font-size: 14px;
  color: var(--wisp);
  flex: 1;
}
.price-card .pg-inc li {
  position: relative; padding-left: 16px;
}
.price-card .pg-inc li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 8px; height: 2px; background: var(--signal);
}
.price-card .pg-cta {
  margin-top: auto;
  padding: 12px 16px;
  background: var(--signal);
  color: var(--deck-2);
  font-family: var(--body); font-weight: 700;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  text-align: center;
  border-radius: 2px;
  transition: background .15s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.price-card:hover .pg-cta { background: var(--signal-hot); }
.price-card.best {
  border-color: var(--signal);
  box-shadow: 0 0 24px rgba(127,232,74,.14);
}
.price-card .pg-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--signal); color: var(--deck-2);
  padding: 4px 12px;
  font-family: var(--body); font-weight: 700;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
}

/* --------------------------------------------------------------
   Boot journey timeline (4-step, dark bay)
   -------------------------------------------------------------- */
.boot-timeline {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 900px) { .boot-timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .boot-timeline { grid-template-columns: 1fr; } }
.boot-step {
  background: rgba(232,225,208,.03);
  border: 1px solid var(--strut);
  border-radius: 4px;
  padding: 22px 20px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.boot-step .boot-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--signal);
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
}
.boot-step h3 {
  color: var(--panel);
  margin-top: 2px;
}
.boot-step p {
  color: var(--wisp);
  font-family: var(--body); font-weight: 500;
  font-size: 14px; line-height: 1.5;
  margin: 0;
}
.boot-step code {
  background: rgba(127,232,74,.10);
  border: 1px solid rgba(127,232,74,.28);
  color: var(--signal);
  padding: 1px 6px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12px;
}

/* --------------------------------------------------------------
   Ricochet callout (compact aside, cream bay)
   -------------------------------------------------------------- */
.ricochet-callout {
  max-width: 820px;
  padding: 32px 34px;
  background: var(--panel-2);
  border-left: 4px solid var(--signal-cream);
  border-radius: 0 4px 4px 0;
}
.ricochet-callout .eyebrow { margin-bottom: 12px; }
.ricochet-callout h2 {
  font-family: var(--heavy); font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1;
  color: var(--ink); margin: 0 0 16px; letter-spacing: -.01em;
}
.ricochet-callout p {
  color: var(--ash);
  font-family: var(--body); font-weight: 500;
  font-size: 16px; line-height: 1.6;
  margin: 0 0 22px;
  max-width: 62ch;
}
.ricochet-callout p strong { color: var(--ink); }
.ricochet-callout .callout-links {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.ricochet-callout .callout-links .btn.wire {
  padding: 10px 16px;
  font-size: 12px;
}

/* --------------------------------------------------------------
   Menu loop (animated overlay capture on /hack/)
   -------------------------------------------------------------- */
.menu-loop {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
.menu-loop img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--strut-strong);
  background: #000;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
}
.menu-cap {
  margin: 18px 0 0;
  color: var(--wisp-2);
  font-size: 12px;
  letter-spacing: .04em;
}

/* --------------------------------------------------------------
   Page body (legal pages, generic)
   -------------------------------------------------------------- */
.page-body {
  max-width: 720px;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.65;
}
.page-body h2, .page-body h3, .page-body h4 { margin-top: 32px; margin-bottom: 12px; color: var(--ink); }
.page-body p { margin: 0 0 16px; }
.page-body a { color: var(--signal); border-bottom: 1px dashed var(--signal); text-decoration: none; }
.page-body ul, .page-body ol { margin: 0 0 18px 22px; }
.page-body li { margin-bottom: 8px; }

/* --------------------------------------------------------------
   Guide manual hub (/manual/)
   -------------------------------------------------------------- */
.guide-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 8px;
}
@media (max-width: 960px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px 24px;
  background: var(--panel-2);
  border: 1px solid var(--strut-ink);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.guide-card:hover {
  border-color: var(--signal);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(20,22,26,.10);
  text-decoration: none;
}
.gc-eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 4px;
}
.guide-card h3 {
  font-family: var(--heavy);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.guide-card p {
  color: var(--ash);
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------
   Patch log (/live-fire/)
   -------------------------------------------------------------- */
.patch-log {
  max-width: 780px;
  border-top: 1px solid var(--strut-ink);
}
.patch-row {
  display: grid; grid-template-columns: 140px 96px 1fr;
  gap: 20px; padding: 14px 4px;
  border-bottom: 1px solid var(--strut-ink);
  align-items: center;
}
.patch-date {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--ash);
  font-variant-numeric: tabular-nums;
}
.patch-status {
  display: inline-block;
  font-family: var(--body); font-weight: 700;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 2px;
  text-align: center;
}
.patch-status.ok {
  color: var(--signal);
  background: var(--signal-dim);
  border: 1px solid rgba(24,107,13,.32);
}
.patch-note {
  color: var(--ink);
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .patch-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .patch-status { justify-self: start; }
}

/* --------------------------------------------------------------
   Auth pages (signup / login / forgot / reset)
   -------------------------------------------------------------- */
.auth {
  min-height: calc(100vh - 100px);
  padding: 60px 0;
  display: flex; align-items: center;
  background: var(--deck);
}
.auth .rack {
  max-width: 1080px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 460px; gap: 60px; align-items: center;
}
@media (max-width: 900px) {
  .auth .rack { grid-template-columns: 1fr; gap: 40px; padding: 0 20px; }
}
.auth-side .eyebrow { margin-bottom: 18px; }
.auth-side h1 {
  font-family: var(--heavy); font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 5vw, 60px); line-height: 1;
  color: var(--panel); margin: 0 0 20px; letter-spacing: -.02em;
}
.auth-side h1 .slash { color: var(--signal); }
.auth-side p {
  color: var(--wisp); font-size: 16px; line-height: 1.55;
  max-width: 46ch; margin: 0 0 22px;
}
.auth-side .switch {
  color: var(--wisp-2); font-family: var(--body); font-size: 14px; font-weight: 500;
}
.auth-side .switch a { color: var(--signal); text-decoration: none; }
.auth-side .switch a:hover { text-decoration: none; opacity: .85; }

.auth-card {
  background: var(--deck-3); border: 1px solid var(--strut);
  border-radius: 6px; padding: 34px 32px; position: relative;
  isolation: isolate;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--signal); box-shadow: 0 0 12px var(--signal-glow);
  border-top-left-radius: 6px; border-top-right-radius: 6px;
}
.auth-card h2 {
  font-family: var(--heavy); font-weight: 800; text-transform: uppercase;
  font-size: 22px; line-height: 1; color: var(--panel);
  margin: 0 0 6px; letter-spacing: -.01em;
}
.auth-card p.sub {
  color: var(--wisp); font-size: 13.5px; margin: 0 0 22px;
}
.auth-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.auth-card .foot {
  margin-top: 18px; font-family: var(--body); font-weight: 500;
  font-size: 12px; color: var(--wisp-2); line-height: 1.5;
}
.auth-card .foot a { color: var(--signal); text-decoration: none; }

.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--body); font-weight: 700;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--wisp); margin-bottom: 6px;
}
.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  width: 100%; box-sizing: border-box;
  background: var(--deck-2); border: 1px solid var(--strut);
  color: var(--panel); font-family: var(--body); font-weight: 500;
  font-size: 15px; padding: 12px 14px; border-radius: 3px;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus-visible {
  outline: 2px solid var(--signal); outline-offset: 2px;
  border-color: var(--signal);
}
.field .meter {
  height: 4px; background: var(--strut); border-radius: 2px; margin-top: 8px;
  overflow: hidden;
}
.field .meter .bar { height: 100%; width: 0; background: var(--alert); transition: width .2s ease, background .2s ease; }
.field .meter[data-s="1"] .bar { width: 25%; background: var(--alert); }
.field .meter[data-s="2"] .bar { width: 50%; background: var(--warn); }
.field .meter[data-s="3"] .bar { width: 75%; background: var(--signal); }
.field .meter[data-s="4"] .bar { width: 100%; background: var(--signal); box-shadow: 0 0 8px var(--signal-glow); }
.field .hint {
  font-family: var(--mono); font-size: 11px; color: var(--wisp-2);
  margin-top: 6px; line-height: 1.4;
}
.field .hint a { color: var(--signal); text-decoration: none; }
.field .hint.bad { color: var(--alert); }
.field .hint.bad a { color: var(--alert); text-decoration: underline; }
.field .hint.ok { color: var(--signal); }

.alert { display: none; padding: 10px 14px; border-radius: 3px; margin-bottom: 14px; font-size: 13.5px; line-height: 1.5; }
.alert.err { background: rgba(232,90,60,.10); border: 1px solid rgba(232,90,60,.32); color: var(--alert-ink); }
.alert.ok  { background: var(--signal-dim); border: 1px solid rgba(127,232,74,.32); color: var(--signal); }
.alert.ok b { color: var(--panel); }

/* --------------------------------------------------------------
   Account page (/account/)
   -------------------------------------------------------------- */
.acc {
  min-height: calc(100vh - 100px);
  padding: 60px 0;
  background: var(--deck);
}
.acc .rack { max-width: 900px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .acc .rack { padding: 0 20px; } }

.acc-head { margin-bottom: 36px; }
.acc-head .eyebrow { margin-bottom: 12px; }
.acc-head h1 {
  font-family: var(--heavy); font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 5vw, 54px); line-height: 1; color: var(--panel);
  margin: 0 0 10px; letter-spacing: -.02em;
}
.acc-head h1 .wave { color: var(--signal); font-weight: 800; }
.acc-head .sub {
  color: var(--wisp); font-family: var(--body); font-size: 15px; margin: 0;
}
.acc-head .sub b { color: var(--panel); font-weight: 700; }
.acc-head .sub a { color: var(--signal); text-decoration: none; margin-left: 6px; }
.acc-head .sub form { margin: 0 0 0 6px; padding: 0; display: inline; }
.acc-head .sub .linklike {
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--signal); font-family: var(--body); font-weight: 500; font-size: 15px;
  cursor: pointer;
}
.acc-head .sub .linklike:hover { text-decoration: underline; }

.acc-checkout,
.acc-picker {
  background: var(--deck-3); border: 1px solid var(--strut); border-radius: 6px;
  padding: 32px; position: relative; isolation: isolate;
}
.acc-checkout::before,
.acc-picker::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--signal); box-shadow: 0 0 12px var(--signal-glow);
  border-top-left-radius: 6px; border-top-right-radius: 6px;
}
.acc-plan-card {
  display: flex; flex-direction: column; gap: 22px; align-items: flex-start;
}
.acc-plan-head { display: flex; flex-direction: column; gap: 6px; }
.acc-plan-head h2 {
  font-family: var(--heavy); font-weight: 800; text-transform: uppercase;
  font-size: 32px; color: var(--panel); margin: 4px 0 0; letter-spacing: -.01em;
}
.acc-plan-price {
  font-family: var(--heavy); font-weight: 800; font-size: 44px;
  color: var(--signal); letter-spacing: -.03em;
}
.acc-buy { padding: 16px 28px; font-size: 14px; }
.acc-buy.is-disabled { opacity: .4; pointer-events: none; }
.acc-note {
  color: var(--wisp-2); font-family: var(--mono); font-size: 11px; margin: 0;
}
.acc-change {
  background: transparent; border: none; padding: 0;
  color: var(--wisp); font-family: var(--body); font-weight: 700; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  margin-top: 8px;
}
.acc-change:hover { color: var(--signal); }

.acc-picker .pane-head h2 {
  font-family: var(--heavy); font-weight: 800; text-transform: uppercase;
  font-size: 26px; color: var(--panel); margin: 10px 0 6px; letter-spacing: -.01em;
}
.acc-picker .cur button {
  background: transparent; color: var(--wisp); border: 1px solid var(--strut);
  padding: 9px 16px; font-family: var(--body); font-weight: 700;
  font-size: 12px; letter-spacing: .1em; cursor: pointer;
  border-right: none;
}
.acc-picker .cur button:first-child { border-top-left-radius: 3px; border-bottom-left-radius: 3px; }
.acc-picker .cur button:last-child  { border-right: 1px solid var(--strut); border-top-right-radius: 3px; border-bottom-right-radius: 3px; }
.acc-picker .cur button:hover { color: var(--panel); }
.acc-picker .cur button.on { background: var(--deck-2); color: var(--signal); border-color: var(--signal); }

.acc-picker .tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 720px) { .acc-picker .tiers { grid-template-columns: 1fr; } }
.acc-picker .tier {
  background: var(--deck-2); border: 1px solid var(--strut);
  padding: 24px 20px 22px; border-radius: 4px; text-align: center;
  position: relative;
}
.acc-picker .tier .dur {
  font-family: var(--body); font-weight: 700; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--wisp);
}
.acc-picker .tier .amt {
  font-family: var(--heavy); font-weight: 800; font-size: 34px;
  color: var(--panel); margin: 8px 0 14px;
  display: flex; align-items: baseline; justify-content: center;
  letter-spacing: -.02em;
}
.acc-picker .tier .amt .cursym {
  font-size: 18px; color: var(--signal); margin-right: 3px; font-style: normal; font-weight: 700;
}
.acc-picker .tier ul {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--wisp);
}
.acc-picker .tier .go {
  background: var(--signal); color: var(--deck-2);
  border: none; padding: 12px 16px; width: 100%;
  font-family: var(--body); font-weight: 700; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 2px; cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
.acc-picker .tier .go:hover { background: var(--signal-hot); box-shadow: 0 0 12px var(--signal-glow); }
.acc-picker .tier.best {
  border-color: var(--signal);
  box-shadow: 0 0 24px rgba(127,232,74,.16);
}
.acc-picker .tier .flag {
  display: inline-block; margin-bottom: 8px;
  padding: 3px 10px; background: var(--signal); color: var(--deck-2);
  font-family: var(--body); font-weight: 700; font-size: 10px;
  letter-spacing: .16em; border-radius: 2px; text-transform: uppercase;
}

.acc-help {
  margin-top: 28px; text-align: center; color: var(--wisp);
  font-family: var(--body); font-size: 14px;
}
.acc-help a { color: var(--signal); text-decoration: none; }

/* --------------------------------------------------------------
   Tablet breakpoint — 3-col grids get a 2-col intermediate stop
   so 600-960px viewports don't collapse straight to single-column
   -------------------------------------------------------------- */
@media (max-width: 1080px) and (min-width: 601px) {
  .tier-row,
  .step-chain,
  .pillar-grid,
  .acc-picker .tiers { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------
   Simple confirmation pages (/verified/, /verify-failed/)
   -------------------------------------------------------------- */
.confirm {
  min-height: calc(100vh - 100px);
  padding: 100px 0; display: flex; align-items: center;
  background: var(--deck);
}
.confirm .rack {
  max-width: 640px; margin: 0 auto; padding: 0 32px; text-align: center;
}
.confirm .eyebrow { margin-bottom: 18px; }
.confirm h1 {
  font-family: var(--heavy); font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 5vw, 60px); line-height: 1;
  color: var(--panel); margin: 0 0 20px; letter-spacing: -.02em;
}
.confirm h1 .slash { color: var(--signal); }
.confirm p {
  color: var(--wisp); font-size: 17px; line-height: 1.55; margin: 0 0 24px;
}
.confirm .actions { justify-content: center; }

/* ==============================================================
   MOBILE POLISH PASS
   Applies P0/P1/P2/P3 fixes surfaced by the mobile audit.
   Sits at the end of the file so it always wins the cascade.
   ============================================================== */

/* --- M02 Guard against any element blowing the viewport open on narrow screens */
html, body { overflow-x: clip; }
h1, h2, h3, p, li { overflow-wrap: anywhere; }

/* --- M01 Hamburger drawer (mobile). Desktop nav swaps in at >=760. */

/* Mobile compact right-hand: Get access pill + hamburger */
.chassis-nav-mobile { display: flex; align-items: center; gap: 10px; }
.chassis-nav-desktop { display: none; }
.chassis-nav-mobile .btn.armed {
  min-height: 44px; padding: 10px 14px; font-size: 12.5px;
  letter-spacing: .14em;
}
.chassis-nav-mobile .btn.armed.btn-sm { padding: 8px 14px; }

/* Hamburger button */
.hamburger {
  width: 44px; height: 44px; border: 1px solid var(--strut);
  background: var(--deck-2); border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: border-color .15s, background .15s;
}
.hamburger:hover, .hamburger:focus-visible { border-color: var(--signal); background: var(--deck-3); }
.hamburger:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.hamburger-bars { display: inline-flex; flex-direction: column; gap: 5px; width: 20px; }
.hamburger-bars span {
  display: block; height: 2px; width: 100%;
  background: var(--panel); border-radius: 1px;
}

/* Desktop breakpoint — hide hamburger, show real nav */
@media (min-width: 760px) {
  .chassis-nav-mobile { display: none; }
  .chassis-nav-desktop { display: flex; align-items: center; gap: 20px; }
}
@media (max-width: 759px) {
  .chassis-top .rig-in { padding-inline: clamp(14px, 4vw, 20px); }
}

/* --- Drawer scrim + panel */
.drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 998;
  opacity: 0; transition: opacity .2s ease-out;
}
.drawer-scrim.is-open { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(88vw, 340px);
  background: var(--deck-2);
  border-left: 1px solid var(--strut);
  z-index: 999;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .22s ease-out;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.drawer.is-open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--strut);
}
.drawer-brand {
  font-family: var(--heavy); font-weight: 800;
  font-size: 18px; letter-spacing: -.02em;
  color: var(--panel); text-transform: uppercase;
}
.drawer-brand .slash { color: var(--signal); }
.drawer-close {
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--strut); border-radius: 4px;
  color: var(--panel); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}
.drawer-close svg { width: 22px; height: 22px; }
.drawer-close:hover { border-color: var(--signal); color: var(--signal); }

.drawer-nav {
  display: flex; flex-direction: column;
  padding: 8px 0;
}
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  color: var(--panel);
  font-family: var(--body); font-weight: 700;
  font-size: 15.5px; letter-spacing: .04em;
  text-decoration: none;
  border-bottom: 1px solid var(--strut);
  min-height: 52px;
}
.drawer-nav a:hover, .drawer-nav a:focus-visible {
  background: var(--deck-3); color: var(--signal); outline: none;
}
.drawer-nav .arrow { color: var(--signal); font-size: 18px; opacity: .6; }

.drawer-cta {
  padding: 24px 20px 20px;
  display: flex; flex-direction: column; gap: 14px;
  border-top: 1px solid var(--strut);
}
.drawer-armed {
  width: 100%; justify-content: center;
  min-height: 52px; padding: 14px 20px;
  font-size: 14px; letter-spacing: .14em;
}
.drawer-discord {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--strut);
  border-radius: 4px;
  color: var(--panel); text-decoration: none;
  font-family: var(--body); font-weight: 600; font-size: 13.5px;
  min-height: 44px;
}
.drawer-discord svg { width: 22px; height: 22px; color: var(--signal); }
.drawer-discord:hover { border-color: var(--signal); color: var(--signal); }

.drawer-legal {
  list-style: none; margin: 0; padding: 16px 20px 24px;
  display: flex; flex-wrap: wrap; gap: 14px 20px;
  border-top: 1px solid var(--strut);
}
.drawer-legal a {
  color: var(--wisp); text-decoration: none;
  font-family: var(--body); font-size: 12.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  min-height: 28px; display: inline-flex; align-items: center;
}
.drawer-legal a:hover { color: var(--signal); }

/* --- M06 Hero H1 narrow-viewport clamp — includes /hack/ and 404 hero */
@media (max-width: 480px) {
  h1, .stage-console h1 { font-size: clamp(36px, 10.4vw, 46px); line-height: .94; }
  .hack-hero h1 { font-size: clamp(34px, 9.6vw, 44px); }
}

/* --- M03 Universal mobile table pattern — horizontal scroll with fade affordance */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  position: relative;
  background:
    /* left fade */
    linear-gradient(90deg, var(--deck-2) 0, transparent 24px) 0 0 / 100% 100% no-repeat,
    /* right fade */
    linear-gradient(-90deg, var(--deck-2) 0, transparent 24px) 100% 0 / 100% 100% no-repeat;
}
.table-scroll table { min-width: 640px; }

/* Existing compare-wrap already does overflow:auto — add scroll shadow so users see the swipe */
.compare-wrap {
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.compare-wrap::before,
.compare-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 24px; pointer-events: none;
  opacity: 0; transition: opacity .2s; z-index: 2;
}
.compare-wrap::before { left: 0;  background: linear-gradient(90deg, var(--deck-2), transparent); }
.compare-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--deck-2), transparent); }
@media (max-width: 640px) {
  .compare-wrap::before,
  .compare-wrap::after { opacity: 1; }
  .compare-wrap {
    /* Show one swipe hint on load — thin animated line at the bottom */
    background: linear-gradient(90deg, var(--strut) 30%, var(--signal) 30% 40%, var(--strut) 40%) bottom / 100% 2px no-repeat;
  }
}

/* Any raw <table> inside .page-body (WP-rendered guide content, legal pages) auto-scrolls too */
.page-body { overflow-x: hidden; }
.page-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border-collapse: collapse;
  font-family: var(--body);
  margin: 20px 0;
}
.page-body table thead th {
  background: rgba(0,0,0,.15);
  color: var(--wisp);
  font-weight: 700; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--strut);
}
.page-body table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--strut);
  font-size: 14.5px; color: var(--ink);
}
.page-body table tbody tr:last-child td { border-bottom: 0; }

/* --- M04 Currency chip cluster — real gap, per-chip border, 44px min-height */
.cur { display: inline-flex; gap: 6px; padding: 0; border: 0; background: transparent; }
.cur button {
  min-height: 44px; min-width: 56px;
  padding: 10px 16px;
  border: 1px solid var(--strut);
  background: var(--deck-2);
  color: var(--wisp);
  font-family: var(--body); font-weight: 700;
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all .15s;
}
.cur button:hover { border-color: var(--signal); color: var(--panel); }
.cur button.on {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--deck-2);
}

/* --- M05 Boot N-day CTA sizing — bump the highest-intent buttons to 48px */
.tier .go,
.tier .btn.armed,
.tier .btn.wire,
.acc-picker .tier .go {
  min-height: 48px;
  padding: 14px 16px;
  font-size: 13px;
  margin-top: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* --- M07 Inline tap-target hardening */
.chassis-foot ul a,
.chassis-foot a[rel="noopener noreferrer nofollow"] {
  display: inline-flex; align-items: center; min-height: 34px; padding: 4px 0;
}
.lookup-row .lookup-a a {
  display: inline-flex; align-items: center; min-height: 32px;
}
.matrix-table td a,
.operator-matrix td a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 2px 4px; margin: -2px -4px;
}
.acc-change { padding: 10px 14px; min-height: 40px; }

/* --- M08 Mobile type-scale bumps on dense secondary text */
@media (max-width: 640px) {
  .lookup-a { font-size: 14px; }
  .lookup-a a { color: var(--signal); }
  .eyebrow { font-size: 12.5px; letter-spacing: .16em; }
  .bay { padding: 56px 0; }
  .rig-in { padding-inline: clamp(16px, 5vw, 24px); }
}
p, li { text-wrap: pretty; }

/* --- M03b Stacked-card layout for wide comparison/matrix tables at <=640px.
   Each <tr> becomes a card; each <td> gets a column label injected via CSS ::before.
   No horizontal scroll, no data-attr HTML edits needed. */
@media (max-width: 640px) {
  /* Kill the wrap scroll — we stack instead */
  .compare-wrap {
    overflow: visible;
    background: none;
  }
  .compare-wrap::before,
  .compare-wrap::after { display: none; }

  /* Universal stack primitive */
  .compare-table,
  .operator-matrix,
  .matrix-table {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
  }
  .compare-table thead,
  .operator-matrix thead,
  .matrix-table thead { display: none; }

  .compare-table tbody,
  .operator-matrix tbody,
  .matrix-table tbody { display: block; }

  .compare-table tbody tr,
  .operator-matrix tbody tr,
  .matrix-table tbody tr {
    display: block;
    background: var(--panel-2);
    border: 1px solid var(--strut-ink);
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 14px;
  }
  /* Row-title cell (was <th scope="row">) */
  .compare-table tbody th,
  .operator-matrix tbody th,
  .matrix-table tbody th {
    display: block;
    padding: 0 0 10px;
    margin: 0 0 10px;
    border-bottom: 1px solid var(--strut-ink);
    font-family: var(--body); font-weight: 700;
    font-size: 14.5px;
    color: var(--ink);
    text-transform: none;
    letter-spacing: 0;
    background: none;
    text-align: left;
  }
  .compare-table tbody th .tsub {
    display: block; margin-top: 2px;
    font-size: 12px; color: var(--wisp-2); font-weight: 500;
  }

  /* Data cells: grid label | value */
  .compare-table tbody td,
  .operator-matrix tbody td,
  .matrix-table tbody td {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: baseline;
    gap: 10px;
    padding: 7px 0;
    border: 0;
    background: none;
    font-size: 13.5px;
    color: var(--ink);
  }
  .compare-table tbody td::before,
  .operator-matrix tbody td::before,
  .matrix-table tbody td::before {
    content: attr(data-col);
    font-family: var(--body); font-weight: 700;
    font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--wisp-2);
  }

  /* Per-table column labels via nth-child fallback (when data-col missing).
     Ensures existing HTML works without needing to touch every td. */
  .compare-table tbody td:nth-child(2):not([data-col])::before { content: 'MW4 Hacks'; color: var(--signal); }
  .compare-table tbody td:nth-child(3):not([data-col])::before { content: 'Typical loader'; }
  .compare-table tbody td:nth-child(4):not([data-col])::before { content: 'Free / stealer'; }

  .operator-matrix tbody td:nth-child(2):not([data-col])::before { content: 'Read first'; color: var(--signal); }
  .operator-matrix tbody td:nth-child(3):not([data-col])::before { content: 'Then'; }
  .operator-matrix tbody td:nth-child(4):not([data-col])::before { content: 'Optional'; }

  .matrix-table tbody td:nth-child(2):not([data-col])::before { content: 'Status'; color: var(--signal); }
  .matrix-table tbody td:nth-child(3):not([data-col])::before { content: 'Notes'; }

  /* Highlight own column ("MW4 Hacks" for compare, first td for others) */
  .compare-table tbody td.col-ours { color: var(--ink); font-weight: 600; }
  .compare-table tbody td.col-ours .mk { color: var(--signal); }

  /* Kill the row's inherited last-child border-radius pins that assumed table cells */
  .compare-table tbody tr:last-child td.col-ours { border: 0; }
}

/* --- M09 Home hero stat-band breathing on narrow screens */
@media (max-width: 520px) {
  .stat-band { gap: 20px; padding-top: 12px; }
}

/* --- Breadcrumb mobile polish */
@media (max-width: 640px) {
  .crumbs { padding: 12px 0; }
  .crumbs ol { font-size: 11px; letter-spacing: .12em; }
  .crumbs li + li::before { margin: 0 6px; }
}

/* Prevent the account-header sign-out inline form from breaking to a new line awkwardly */
.acc-head .sub { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 4px; column-gap: 8px; }
.acc-head .sub form { margin: 0; }

/* ==============================================================
   CLS FIX PASS + REMAINING P0/P1 CONTRAST FIXES (post-PSI audit)
   ============================================================== */

/* --- CLS belt: hero .actions row stacks on mobile so a font-swap can't un-wrap it. */
@media (max-width: 640px) {
  .stage-console .actions,
  .cta-card .actions,
  .hero-bg .actions {
    flex-wrap: wrap;
    gap: 12px;
  }
  .stage-console .actions .btn,
  .cta-card .actions .btn,
  .hero-bg .actions .btn {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }
  /* Header mobile cluster reserves its width so Barlow swap doesn't tighten it */
  .chassis-nav-mobile { min-width: 228px; }
}

/* --- A11Y-01 P0: /live-fire/ compat-matrix Notes column + compare-note contrast fix
   Old .mono muted was rgb(78,81,88) on dark = 1.88:1. Bump to a legible wisp-2 shade. */
.matrix-table td:not(.col-ours),
.matrix-table td:not(.col-ours) .mono,
.compare-note.mono {
  color: rgba(232, 225, 208, 0.72) !important;
}
.compare-note.mono { color: rgba(232, 225, 208, 0.75) !important; }

/* --- A11Y-02 P0: home .tsub spans on cream bay = 1.08:1 invisible.
   Scope tsub color by parent surface. */
.compare-table tbody th .tsub,
.tsub {
  color: rgba(36, 39, 44, 0.72);
}
.deck-bg .tsub,
.stage-console .tsub {
  color: rgba(232, 225, 208, 0.65);
}

/* --- A11Y-03 P1: Red-flags eyebrow #rf-title on cream card was 2.55:1. Darken. */
.red-flags .eyebrow,
#rf-title {
  color: #B02C14 !important;
}

/* --- A11Y-05 P2: /live-fire/ UNDETECTED chip 4.46:1 (marginal). Darken text. */
.patch-status.ok {
  color: #145C0A !important;
  background: rgba(127, 232, 74, 0.18);
}


