/* CybrGate site: shared base, marketing and pricing.
   Instrument Serif (display), Plus Jakarta Sans (body), JetBrains Mono (data and labels).
   All three are vendored under assets/fonts, so there is no third-party font request.
   No inline styles and no inline scripts anywhere: every page can ship a CSP without 'unsafe-inline'. */

:root {
  color-scheme: dark light;

  /* palette: the product's own, so the site and the extension popup are visibly one thing */
  --field: #10131a;
  --field-2: #161a23;
  --field-3: #1d222d;
  --paper: #f2efe9;
  --muted: #c9c4ba;
  --muted-dim: #9a948a;
  --ink: #ff5e3a;          /* brand orange: fills, rules, large display type */
  --ink-text: #ff7a52;     /* orange for small text on the dark field */
  --on-ink: #10131a;       /* text placed on an orange fill */
  --good: #7fa8a0;
  --warn: #e3c96a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --glow: rgba(255, 94, 58, 0.14);
  --glow-2: rgba(127, 168, 160, 0.09);
  --grid: rgba(255, 255, 255, 0.035);
  --focus: #f2efe9;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
}

@media (prefers-color-scheme: light) {
  :root {
    --field: #f7f5f1;
    --field-2: #ffffff;
    --field-3: #ece8e0;
    --paper: #16181d;
    --muted: #3f3f47;
    --muted-dim: #62616b;
    --ink: #e04a26;
    --ink-text: #a8280a;
    --good: #2f6a60;
    --warn: #7a5f00;
    --line: rgba(0, 0, 0, 0.12);
    --line-strong: rgba(0, 0, 0, 0.28);
    --glow: rgba(224, 74, 38, 0.1);
    --glow-2: rgba(47, 106, 96, 0.08);
    --grid: rgba(0, 0, 0, 0.045);
    --focus: #16181d;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--field);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* atmosphere: two glows, a fine engineering grid, and a whisper of grain */
  background-image:
    radial-gradient(900px 620px at 92% -6%, var(--glow), transparent 62%),
    radial-gradient(760px 520px at -4% 38%, var(--glow-2), transparent 64%),
    repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 56px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-attachment: fixed, fixed, scroll, scroll, scroll;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--ink-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p, li, dd { overflow-wrap: anywhere; }
strong { font-weight: 700; }
::selection { background: var(--ink); color: var(--on-ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 6px var(--ink);
}

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  background: var(--ink); color: var(--on-ink); font-weight: 700;
  padding: 12px 18px; border-radius: var(--r-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- owner-confirm markers: deliberately ugly so nobody ships them ---------- */
.oc {
  display: inline;
  font-family: var(--mono); font-size: 0.82em; font-weight: 500;
  color: #10131a; background: #e3c96a;
  padding: 1px 6px; border-radius: 4px; border: 1px dashed #10131a;
  white-space: normal; overflow-wrap: anywhere; line-height: 1.9;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in srgb, var(--field) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: var(--maxw); margin: 0 auto; padding: 8px var(--gutter);
  display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap;
  min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--serif); font-size: 1.85rem; line-height: 1; color: var(--paper);
  text-decoration: none; letter-spacing: -0.01em; margin-right: auto;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0 6px; }
.site-header nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--muted); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  border-radius: var(--r-sm); transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.site-header nav a:hover { color: var(--paper); background: var(--line); }
.site-header nav a[aria-current="page"] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font: 700 0.9688rem/1.2 var(--sans); letter-spacing: 0.005em;
  color: var(--on-ink); background: var(--ink);
  border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  box-shadow: 0 10px 30px -12px var(--ink);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px var(--ink); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--line); box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"] {
  cursor: not-allowed; transform: none; box-shadow: none;
  background: var(--field-3); color: var(--muted); border: 1px dashed var(--line-strong);
}
.btn-pending { cursor: default; flex-wrap: wrap; text-align: center; border-radius: var(--r-md); padding: 10px 20px; background: var(--field-3); color: var(--muted); border: 1px dashed var(--line-strong); box-shadow: none; }
.btn-pending:hover { transform: none; box-shadow: none; }

/* ---------- one orchestrated page-load reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
  .rv-fade { opacity: 0; animation: fade 1.4s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 200ms); }
  .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 500ms); }
}

/* stagger steps for the load reveal: classes, not inline styles, so a strict CSP holds */
.d0{--i:0} .d1{--i:1} .d2{--i:2} .d3{--i:3} .d4{--i:4} .d5{--i:5} .d6{--i:6} .d7{--i:7} .d8{--i:8} .d9{--i:9} .d10{--i:10} .d11{--i:11} .d12{--i:12} .d13{--i:13}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-text); margin: 0 0 18px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.015em; }
.display { font-size: clamp(2.75rem, 8.2vw, 7rem); line-height: 0.96; }
.display em, h2 em { font-style: italic; color: var(--ink); }
h2.title { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; }
h3.sub { font-size: 1.65rem; line-height: 1.15; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.dim { color: var(--muted-dim); }
.prose p { margin: 0 0 1.1em; color: var(--muted); max-width: 62ch; }
.prose p strong { color: var(--paper); }
.src {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--muted-dim); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; vertical-align: 2px; white-space: nowrap;
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 9vw, 120px) 0 clamp(64px, 9vw, 130px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 32px); align-items: start; }
.hero-copy { grid-column: 1 / span 8; }
.hero-copy .lede { margin-top: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; align-items: center; }
.fineprint { font-size: 0.875rem; color: var(--muted-dim); margin-top: 16px; max-width: 56ch; }
.hero-aside { grid-column: 9 / span 4; margin-top: 18px; }

.specimen {
  position: relative; border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: linear-gradient(165deg, color-mix(in srgb, var(--field-2) 92%, transparent), color-mix(in srgb, var(--field) 92%, transparent));
  padding: 22px 22px 20px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.specimen::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, var(--ink), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.55; pointer-events: none; }
.specimen header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dim); }
.score-line { display: flex; align-items: baseline; gap: 14px; margin: 14px 0 4px; }
.score { font-family: var(--serif); font-size: 5.2rem; line-height: 0.9; color: var(--ink); }
.score.low { color: var(--good); }
.band { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; color: var(--ink-text); }
.band.low { color: var(--good); }
.specimen h2, .specimen h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; letter-spacing: 0; line-height: 1.35; margin: 6px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { font-family: var(--mono); font-size: 0.75rem; padding: 2px 9px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--paper); }
.chips li.hot { border-color: var(--ink); color: var(--ink-text); }
.specimen .note { font-size: 0.8125rem; color: var(--muted-dim); margin: 14px 0 0; line-height: 1.5; }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.sec-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(16px, 2.4vw, 32px); }
.sec-label { grid-column: 1 / span 3; }
.sec-label .eyebrow { position: sticky; top: 92px; }
.sec-body { grid-column: 4 / span 9; }
.sec-body > h2 { max-width: 20ch; }
.sec-body > .prose { margin-top: 28px; }
.sec-body > h2 + .panel, .sec-body > h2 + .rules { margin-top: 32px; }

.ledger { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger .fact { color: var(--paper); font-size: 1.0625rem; }
.ledger .fact b { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; color: var(--ink); margin-right: 8px; letter-spacing: -0.01em; }

.versus { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(16px, 2.4vw, 32px); margin-top: 44px; align-items: start; }
.versus .specimen:nth-child(1) { grid-column: 1 / span 5; }
.versus .specimen:nth-child(2) { grid-column: 6 / span 7; margin-top: 56px; }
.formula { margin-top: 34px; padding: 18px 22px; border-left: 2px solid var(--ink); background: var(--field-2); border-radius: 0 var(--r-md) var(--r-md) 0; font-family: var(--mono); font-size: 0.9rem; color: var(--paper); overflow-x: auto; }
.formula small { display: block; margin-top: 6px; font-family: var(--sans); font-size: 0.8125rem; color: var(--muted-dim); }

.reasons { list-style: none; padding: 0; margin: 10px 0 0; }
.reasons li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.reasons li b { color: var(--paper); font-weight: 600; }
.reasons li span { font-family: var(--mono); color: var(--ink-text); }

.tiers { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; margin-top: 48px; align-items: stretch; }
.tier { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--field-2) 88%, transparent); position: relative; }
.tier.free { grid-column: 1 / span 5; border-radius: var(--r-lg) 0 0 var(--r-lg); border-right: 0; }
.tier.paid { grid-column: 6 / span 7; border-radius: 0 var(--r-lg) var(--r-lg) 0; margin-top: 36px; margin-bottom: -36px; background: linear-gradient(170deg, color-mix(in srgb, var(--ink) 11%, var(--field-2)), var(--field-2) 60%); border-color: color-mix(in srgb, var(--ink) 55%, transparent); }
.tier h3 { font-size: 2.1rem; line-height: 1; }
.tier .tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-text); margin: 0 0 14px; }
.tier .price { font-family: var(--serif); font-size: 1.5rem; color: var(--paper); margin: 8px 0 20px; }
.tier ul { list-style: none; margin: 0; padding: 0; }
.tier li { padding: 13px 0 13px 28px; border-top: 1px solid var(--line); position: relative; color: var(--muted); font-size: 0.98rem; }
.tier li b { color: var(--paper); font-weight: 600; }
.tier li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 2px; background: var(--ink); }
.tier .proof { margin-top: 18px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted-dim); line-height: 1.6; }
.after-tiers { margin-top: 84px; }

.pipeline { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r-lg); background: color-mix(in srgb, var(--field-2) 80%, transparent); padding: clamp(14px, 3vw, 32px); }
.pipeline svg { width: 100%; height: auto; }
.pipeline .box { fill: var(--field-3); stroke: var(--line-strong); stroke-width: 1; }
.pipeline .box.primary { stroke: var(--ink); stroke-width: 1.5; }
.pipeline .box.local { stroke: var(--good); stroke-dasharray: 5 4; }
.pipeline text { fill: var(--paper); font-family: var(--sans); font-size: 20px; font-weight: 600; }
.pipeline text.cap { fill: var(--muted-dim); font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.pipeline text.sm { fill: var(--muted); font-size: 15px; font-weight: 400; }
.pipe-steps { display: none; margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.95rem; gap: 10px; flex-direction: column; }
.pipe-steps b { color: var(--paper); }
.pipeline path.wire { fill: none; stroke: var(--muted-dim); stroke-width: 1.5; }
.pipeline path.wire.hot { stroke: var(--ink); }
.pipeline .arrow { fill: var(--muted-dim); }
.pipeline .arrow.hot { fill: var(--ink); }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: r; }
.rules li { counter-increment: r; padding: 16px 0 16px 46px; border-top: 1px solid var(--line); position: relative; color: var(--muted); font-size: 0.98rem; }
.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-text); }
.rules li b { color: var(--paper); }

.table-wrap { margin-top: 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: color-mix(in srgb, var(--field-2) 70%, transparent); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
caption { text-align: left; padding: 14px 18px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dim); caption-side: top; }
th { text-align: left; padding: 12px 18px; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dim); border-bottom: 1px solid var(--line-strong); }
td { padding: 14px 18px; vertical-align: top; color: var(--muted); border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child, th[scope="row"] { color: var(--paper); font-weight: 600; }
th[scope="row"] { text-align: left; font-family: var(--sans); font-size: inherit; letter-spacing: 0; text-transform: none; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th[scope="row"] { border-bottom: 0; }
td code, li code, p code { font-family: var(--mono); font-size: 0.86em; color: var(--paper); background: var(--field-3); padding: 1px 6px; border-radius: 4px; }
.yes { color: var(--good); font-weight: 600; }
.no { color: var(--muted-dim); }

.price-hero { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; }
.price-hero .num { font-family: var(--serif); font-size: clamp(4.5rem, 14vw, 10rem); line-height: 0.88; color: var(--paper); letter-spacing: -0.03em; }
.price-hero .num span { color: var(--ink); }
.price-hero .per { font-family: var(--mono); font-size: 0.9rem; color: var(--muted); letter-spacing: 0.04em; }

.floor-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px clamp(16px, 2.4vw, 32px); margin-top: 40px; }
.floor-grid > div { grid-column: span 4; border-top: 2px solid var(--ink); padding-top: 16px; }
.floor-grid > div:nth-child(2) { margin-top: 28px; }
.floor-grid > div:nth-child(3) { margin-top: 56px; }
.floor-grid .big { font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 3.4rem); line-height: 1; color: var(--paper); }
.floor-grid p { margin: 10px 0 0; font-size: 0.95rem; color: var(--muted); }

.panel { border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); background: color-mix(in srgb, var(--field-2) 86%, transparent); }
.panel + .panel { margin-top: 24px; }
.panel h3 { font-size: 1.8rem; margin-bottom: 8px; }
.panel.renewal { border-color: color-mix(in srgb, var(--ink) 60%, transparent); }
.terms-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.terms-list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 20px; }
.terms-list li b { color: var(--paper); font-family: var(--mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }

/* form controls */
.field { display: grid; gap: 8px; margin-top: 22px; max-width: 360px; }
.field label { font-weight: 600; }
.field input[type="number"] {
  min-height: 52px; padding: 0 16px; font: 500 1.25rem var(--mono); color: var(--paper);
  background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  width: 100%;
}
.field input[type="number"]:hover { border-color: var(--muted-dim); }
.field input[aria-invalid="true"] { border-color: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 30%, transparent); }
.hint { font-size: 0.875rem; color: var(--muted-dim); min-height: 1.4em; }
.hint.error { color: var(--warn); font-weight: 600; }
.estimate { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.estimate > div { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; background: var(--field); }
.estimate dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dim); }
.estimate dd { margin: 6px 0 0; font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--paper); }
.estimate dd.empty { color: var(--muted-dim); }

.consent { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 24px; padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--field); }
.consent input { width: 28px; height: 28px; accent-color: var(--ink); margin: 0; cursor: pointer; }
.consent label { cursor: pointer; color: var(--paper); font-size: 0.98rem; }
.status { margin-top: 14px; min-height: 1.5em; font-size: 0.9rem; color: var(--muted); }
.status.error { color: var(--warn); font-weight: 600; }

.callout { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--field-2); color: var(--muted); font-size: 0.95rem; }
.callout strong { color: var(--paper); }
.callout.warn { border-color: var(--warn); }

/* ---------- closing + footer ---------- */
.closing { padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.closing .display { max-width: 14ch; }
.closing .cta-row { margin-top: 40px; }

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 44px; background: color-mix(in srgb, var(--field) 90%, transparent); }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px clamp(16px, 2.4vw, 32px); }
.foot-brand { grid-column: 1 / span 5; }
.foot-brand .brand { margin-right: 0; }
.foot-brand p { color: var(--muted-dim); font-size: 0.875rem; max-width: 46ch; margin: 14px 0 0; }
.foot-col { grid-column: span 3; }
.foot-col h2 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dim); margin: 0 0 8px; font-weight: 500; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.foot-col a:hover { color: var(--paper); text-decoration: underline; }
.foot-legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-dim); font-size: 0.8125rem; display: grid; gap: 8px; }
.foot-legal p { margin: 0; max-width: 100ch; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-copy, .hero-aside { grid-column: 1 / -1; }
  .hero-aside { margin-top: 56px; max-width: 460px; }
  .sec-label, .sec-body { grid-column: 1 / -1; }
  .sec-label .eyebrow { position: static; }
  .versus .specimen:nth-child(1), .versus .specimen:nth-child(2) { grid-column: 1 / -1; margin-top: 0; }
  .tiers { display: block; }
  .tier.free, .tier.paid { border-radius: var(--r-lg); border-right: 1px solid var(--line-strong); margin: 0; }
  .tier.paid { margin-top: -1px; }
  .after-tiers { margin-top: 56px; }
  .floor-grid > div, .floor-grid > div:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .foot-brand, .foot-col { grid-column: 1 / -1; }
  .rules { grid-template-columns: 1fr; }
  .terms-list li { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pipeline svg { display: none; }
  .pipe-steps { display: flex; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .site-header .bar { gap: 4px 12px; }
  .site-header nav { order: 3; width: 100%; margin: 0 -12px; }
  .site-header .btn { display: none; }
  .estimate { grid-template-columns: 1fr; }
  .ledger li { grid-template-columns: 1fr; }
  .score { font-size: 4.2rem; }
  .cta-row .btn { width: 100%; }
}

@media (forced-colors: active) {
  .btn, .specimen, .tier, .panel { border: 1px solid CanvasText; }
  .oc { border: 1px solid CanvasText; }
}
@media print {
  body { background: #fff; color: #000; }
  .site-header, .skip-link, .btn { display: none; }
}
