/* ==========================================================================
   HEIMDALL — outcome-first landing page
   Red Asgard · redasgard.com/heimdall

   Brand tokens extracted read-only from the live https://redasgard.com/
   marketing site (2026-11-06), via computed styles in headless Chromium and
   its public theme CSS variable declarations:
     --ra-primary:       #dc2626   --ra-primary-light: #ef4444
     --ra-primary-dark:  #991b1b   --ra-bg:            #0f172a
     --ra-surface:       #1e293b   --ra-accent:        #667eea
   No site code or assets were copied; the tokens define a standalone system.

   Isolation constraints: zero external requests, zero cookies, no third-party
   fonts or trackers, no request to any application host.

   Accessibility: every text pair below is measured with the WCAG 2.1 relative
   luminance formula; the lowest text pair used is --muted on --surface-2 at
   6.32:1 (normal text needs 4.5:1, large text 3:1). Form controls carry a
   --field-line border at 3.59:1 against the page and 3.33:1 against the field
   fill, so a control's boundary is identifiable without relying on colour alone
   (WCAG 1.4.11). Focus rings are 6.97:1 against the page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette — brand-anchored, dark scheme */
  --ra-primary: #dc2626;        /* brand red (fills / buttons)           */
  --ra-primary-light: #ef4444;  /* hover red                             */
  --ra-primary-dark: #991b1b;   /* pressed red                           */
  --ra-accent: #667eea;         /* brand secondary accent (sparing use)  */

  --bg: #0b0e17;                /* page canvas — near-black ember base   */
  --bg-raise: #10131f;          /* alternating section band              */
  --surface: #151a28;           /* cards / panels                        */
  --surface-2: #1a2032;         /* nested chips                          */
  --field: #0f172a;             /* form control fill                     */
  --line: #2a3248;              /* 1px borders                           */
  --line-strong: #3a4560;       /* emphasised borders                    */
  --field-line: #5a6a92;        /* control boundary (3.59:1 on --bg)     */

  --text: #cbd5e1;              /* body text              (12.98:1)      */
  --text-soft: #b7c3d6;         /* secondary body         (10.82:1)      */
  --text-strong: #f1f5f9;       /* emphasis               (17.60:1)      */
  --heading: #ffffff;           /* headings               (19.28:1)      */
  --muted: #94a3b8;             /* captions               (7.52:1)       */
  --red-text: #f87171;          /* red-toned labels       (6.97:1)       */
  --red-text-soft: #fca5a5;     /* links / emphasis       (10.16:1)      */

  /* Type */
  --font-sans: "Inter", "Inter var", system-ui, -apple-system,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
               "Liberation Mono", "Courier New", monospace;

  /* Layout */
  --wrap: 1120px;
  --gutter: 24px;
  --radius: 12px;
  --radius-sm: 8px;

  --leading-tight: 1.08;
  --tracking-tight: -0.02em;
  --tracking-mono: 0.12em;

  --section-pad: 96px;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Keep anchor targets clear of the sticky header (mobile header is 58px) */
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

h1 { font-size: clamp(2.05rem, 4.6vw, 3rem); text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); text-wrap: balance; }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1.05rem; line-height: 1.35; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--red-text-soft);
  text-decoration: underline;
  text-decoration-color: rgba(252, 165, 165, 0.55);
  text-underline-offset: 3px;
}
a:hover { color: #ffffff; text-decoration-color: #ffffff; }

strong { color: var(--text-strong); font-weight: 600; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.88em;
  letter-spacing: 0.02em;
}

img { max-width: 100%; display: block; }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.45em; }
li:last-child { margin-bottom: 0; }

::selection { background: rgba(220, 38, 38, 0.35); color: #fff; }

/* Visible focus for every interactive element */
:focus-visible {
  outline: 3px solid var(--red-text);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Elements on red fills need a light ring instead */
.btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}
main:focus { outline: none; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-pad) 0; }
.section--raise {
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head p { color: var(--muted); }
.section-foot {
  max-width: 780px;
  margin-top: 36px;
  font-size: 0.93rem;
  color: var(--muted);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ra-primary);
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* Eyebrow label (mono, uppercase — mirrors Red Asgard's all-caps micro-labels) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--red-text);
  border: 1px solid rgba(220, 38, 38, 0.45);
  background: rgba(220, 38, 38, 0.08);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ra-primary-light);
  flex: none;
}

.subhead {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--red-text);
  margin: 0 0 16px;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
  white-space: nowrap;
}
.brand:hover { color: var(--heading); }
.brand .brand-mark {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--red-text);
}
.brand .brand-divider { color: var(--muted); }
.brand .brand-product {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-strong);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a.nav-link:hover { color: #fff; }
.site-nav .nav-cta {
  font-size: 0.9rem;
  padding: 11px 18px;
  min-height: 40px;
}
/* Responsive CTA label (same link, same accessible name; the compact label
   shows only on narrow headers where the full label would wrap) */
.cta-short { display: none; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn--primary {
  background: var(--ra-primary);
  color: #ffffff;
}
/* All red states keep >= 4.5:1 with white text (4.83 / 6.47 / 8.31) */
.btn--primary:hover { background: #b91c1c; color: #ffffff; }
.btn--primary:active { background: var(--ra-primary-dark); }

.btn--ghost {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--field-line);
}
.btn--ghost:hover { border-color: #7d8db5; color: #ffffff; background: var(--surface); }

.btn--sm { font-size: 0.9rem; padding: 9px 18px; }

.btn .arrow { font-weight: 400; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  /* faint ember bloom, echoing the live site's radial red glow */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 380px at 50% -10%, rgba(220, 38, 38, 0.22), transparent 70%),
    radial-gradient(900px 520px at 85% 110%, rgba(102, 126, 234, 0.10), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; gap: 44px; align-items: start; }
.hero-copy { min-width: 0; }
.hero-visual { margin: 0; min-width: 0; }
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hero-visual figcaption {
  margin-top: 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  font-family: var(--font-mono);
}
@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; }
  .hero-lede { max-width: 56ch; }
}

.hero h1 {
  max-width: 26ch;
  margin-bottom: 20px;
}
.hero h1 .hero-em { color: var(--red-text-soft); }

.hero-lede {
  max-width: 56ch;
  font-size: 1.06rem;
  color: var(--text);
  margin-bottom: 26px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-cta-note {
  max-width: 52ch;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 4px;
}

/* Proof strip — the three mechanisms the outcome rests on, each with the
   qualifier it must travel with. */
.proof-strip {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.proof-strip li { margin: 0; min-width: 0; }
.proof-strip-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: 8px;
}
.proof-strip p { font-size: 0.95rem; }
.qualifier-inline {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-boundary {
  margin-top: 32px;
  padding: 16px 20px;
  max-width: 900px;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ra-primary);
  border-radius: var(--radius-sm);
}
.hero-boundary strong { color: var(--red-text-soft); }

/* --------------------------------------------------------------------------
   7. Problem
   -------------------------------------------------------------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.problem-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.problem-card p { font-size: 0.95rem; color: var(--text); }

/* --------------------------------------------------------------------------
   8. Proof scenario — the case timeline
   -------------------------------------------------------------------------- */
.rail {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 860px;
  border-left: 2px solid var(--line-strong);
}
.rail-step {
  position: relative;
  margin: 0 0 28px;
  padding: 0 0 0 34px;
}
.rail-step:last-child { margin-bottom: 0; }
.rail-step::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ra-primary-light);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}
.rail-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: 6px;
}
.rail-step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.rail-step p { font-size: 0.97rem; }
.rail-boundary {
  margin-top: 8px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.refusal {
  max-width: 860px;
  margin-top: 32px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ra-primary-light);
  border-radius: var(--radius-sm);
}
.refusal-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: 8px;
}
.refusal p { font-size: 0.97rem; }
.refusal code {
  color: var(--red-text-soft);
  background: rgba(220, 38, 38, 0.10);
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: 4px;
  padding: 1px 6px;
}

.scenario-note {
  max-width: 860px;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. Product behaviour cards
   -------------------------------------------------------------------------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.proof-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  min-width: 0;
}
.proof-card .proof-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: 10px;
}
.proof-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.proof-card p { font-size: 0.93rem; color: var(--text); }
.proof-card p.b {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. Offer
   -------------------------------------------------------------------------- */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 44px;
}
.workflow-card {
  border-top: 2px solid var(--line-strong);
  padding: 18px 0 0;
  min-width: 0;
}
.workflow-card h4 { margin-bottom: 8px; }
.workflow-card p { font-size: 0.93rem; }
.workflow-k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.steps {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  min-width: 0;
}
.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.14);
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: var(--red-text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: 0.93rem; color: var(--text); }

/* Commercial fact strip */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 32px;
}
.fact {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: var(--bg-raise);
  min-width: 0;
}
.fact .fact-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.fact .fact-v {
  display: block;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 0.98rem;
}

.offer-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  max-width: 980px;
}
.offer-notes p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.offer-notes strong { color: var(--text); }

/* --------------------------------------------------------------------------
   11. Boundaries
   -------------------------------------------------------------------------- */
.qualifier {
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ra-primary);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  margin-bottom: 36px;
}
.qualifier h3 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: 10px;
}
.qualifier p { font-size: 0.97rem; color: var(--text); }

.nonclaims {
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 22ch) minmax(0, 1fr);
  gap: 0;
  max-width: 980px;
  border-top: 1px solid var(--line);
}
.nonclaims dt {
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--text-strong);
  font-size: 0.97rem;
}
.nonclaims dd {
  margin: 0;
  padding: 16px 0;
  max-width: 68ch;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--muted);
}

.disclaimer-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  max-width: 980px;
}
.disclaimer-box + .disclaimer-box { margin-top: 16px; }
.disclaimer-box h3 { font-size: 1rem; margin-bottom: 10px; }
.disclaimer-box p { font-size: 0.93rem; color: var(--text); }

/* --------------------------------------------------------------------------
   12. FAQ (details/summary — works without JS)
   -------------------------------------------------------------------------- */
.faq { max-width: 860px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-strong);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: inherit;
}
.faq-item summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--red-text);
  font-size: 1.15rem;
  flex: none;
}
.faq-item[open] summary::before { content: "−"; }
.faq-item summary:hover { color: #fff; }
.faq-item .faq-body {
  padding: 0 22px 22px 22px;
  font-size: 0.95rem;
  color: var(--text);
}
.faq-item .faq-body p { margin-bottom: 0.8em; }
.faq-caveat {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.faq-caveat strong {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--red-text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. Contact / closing
   -------------------------------------------------------------------------- */
.inquiry { max-width: 760px; }
.contact-grid { display: grid; gap: 32px; }
.contact-head { margin-bottom: 0; }
.contact-head .small {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}
@media (min-width: 980px) {
  .contact-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 56px; align-items: start; }
  .inquiry { max-width: none; }
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 16px 0 6px;
}
.inquiry input, .inquiry select, .inquiry textarea {
  width: 100%;
  background: var(--field);
  color: var(--text-strong);
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font: inherit;
}
.inquiry input:focus-visible,
.inquiry select:focus-visible,
.inquiry textarea:focus-visible {
  outline: 3px solid var(--red-text);
  outline-offset: 1px;
  border-color: var(--field-line);
}
.inquiry .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.inquiry .consent input {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--ra-primary);
}
.inquiry textarea { resize: vertical; }
.inquiry button { margin-top: 20px; }
.field-help {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.inquiry .small {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-raise);
  padding: 56px 0 40px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-product p { color: var(--muted); max-width: 40ch; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .proof-grid, .workflow-grid, .steps, .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof-strip { grid-template-columns: 1fr; gap: 20px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-notes { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .proof-grid, .workflow-grid, .steps, .problem-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 80px 0 68px; }
  .nonclaims { grid-template-columns: 1fr; }
  .nonclaims dt { padding-bottom: 0; border-bottom: 0; }
  .nonclaims dd { padding-top: 6px; }
}

/* Below this the page-anchor links fold; the header keeps brand + CTA */
@media (max-width: 900px) {
  .site-nav { gap: 14px; }
  .site-nav .nav-link { display: none; }
}

@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --section-pad: 64px; --gutter: 18px; }
  body { font-size: 16px; }
  .site-header .wrap { min-height: 58px; }
  .hero { padding: 56px 0 56px; }
  .hero h1 { max-width: none; }
  .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-ctas .btn { width: 100%; }
  .qualifier, .hero-boundary, .refusal { padding: 18px 18px; }
  .rail-step { padding-left: 26px; }
  /* Header brand collapses to the product name so the full CTA label fits */
  .brand .brand-mark, .brand .brand-divider { display: none; }
}

/* Very narrow phones: compact header CTA label (visible label = accessible
   name at every breakpoint, so WCAG 2.5.3 Label-in-Name always holds) */
@media (max-width: 400px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* --------------------------------------------------------------------------
   16. Motion preferences — no autoplaying or decorative motion exists;
       this neutralises smooth scrolling and transitions when requested.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .skip-link, .hero::before { display: none; }
  body { background: #fff; color: #111; }
  h1, h2, h3, h4 { color: #111; }
  .btn { border: 1px solid #111; color: #111 !important; background: none !important; }
  a { color: #111; }
}
