/* ── TOKENS ─────────────────────────────────────────── */
:root {
  /* Dark palette */
  --navy:     #0F172A;
  --navy-2:   #1E293B;
  --navy-3:   #334155;
  --slate:    #64748B;
  --slate-2:  #94A3B8;
  --slate-3:  #CBD5E1;

  /* Accent colours */
  --coral:         #FF6B35;
  --coral-dark:    #E55A26;
  --coral-light:   #FF8F60;
  --coral-bg:      #FFF4F0;
  --coral-border:  #FECFBA;
  --yellow:        #FFD166;
  --yellow-bg:     #FFFBEB;
  --yellow-border: #FDE68A;

  /* Neutrals */
  --white:  #FFFFFF;
  --bg:     #F8FAFC;
  --bg-2:   #F1F5F9;
  --border: #E2E8F0;
  --text:   #0F172A;
  --text-2: #334155;
  --text-3: #64748B;
  --text-4: #94A3B8;

  --shadow-sm: 0 1px 4px rgba(15,23,42,.07);
  --shadow-md: 0 4px 16px rgba(15,23,42,.10);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.16);

  --r:    12px;
  --r-sm: 8px;
  --r-lg: 20px;

  --display: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body:    system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ────────────────────────────────────────────── */
nav {
  background: var(--navy);
  padding: 0 2rem;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.logo {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: -0.01em;
}

.logo-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--slate-2);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color .15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links a.active { color: var(--coral); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 54px;
    left: 0; right: 0;
    background: var(--navy-2);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    z-index: 199;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 0.85rem 1.5rem;
  }
}

/* ── HERO ───────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 3.5rem 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,53,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,53,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,107,53,.12);
  border: 1px solid rgba(255,107,53,.25);
  color: var(--coral-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  max-width: 640px;
  margin: 0 auto 1rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--coral);
}

.hero h1 .highlight {
  color: var(--yellow);
}

.hero-sub {
  color: var(--slate-2);
  font-size: 1rem;
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── PAGE HERO (inner pages) ────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,53,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,53,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.page-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.6rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-sub {
  color: var(--slate-2);
  font-size: 0.95rem;
  max-width: 560px;
  line-height: 1.7;
  margin-top: 0.5rem;
}

/* ── CALCULATOR CARD ────────────────────────────────── */
.calc-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--r) var(--r) 0 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeUp .4s ease both;
  text-align: left;
}

/* ── INPUTS (dark section inside card) ──────────────── */
.inputs-dark {
  background: var(--navy-2);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.inputs-row {
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.inputs-row:last-child { border-bottom: none; }

.inputs-row-2col { grid-template-columns: 1fr 1fr; }
.inputs-row-4col { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 700px) {
  .inputs-row { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; }
  .inputs-row-2col { grid-template-columns: 1fr; }
  .inputs-row-4col { grid-template-columns: 1fr 1fr; }
}

.input-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin-bottom: 0.6rem;
}

/* Big value display */
.value-display {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.value-display.medium { font-size: 1.4rem; }

/* Number input (for age) */
.num-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.num-input {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-sm);
  color: var(--white);
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 800;
  width: 90px;
  padding: 0.25rem 0.5rem;
  text-align: center;
  -moz-appearance: textfield;
  letter-spacing: -0.02em;
}

.num-input::-webkit-inner-spin-button,
.num-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.num-input:focus { outline: 2px solid var(--coral); outline-offset: 1px; }

/* Quick-select age buttons */
.quick-ages {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.quick-ages button {
  padding: 0.4rem 0.75rem;
  border: 1.5px solid rgba(255,255,255,.18);
  background: transparent;
  border-radius: var(--r-sm);
  color: var(--slate-2);
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}

.quick-ages button.active {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
}

.quick-ages button:not(.active):hover {
  border-color: var(--coral);
  color: var(--white);
}

/* Range sliders */
.slider-wrap { position: relative; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.15);
  outline: none;
  cursor: pointer;
}

input[type="range"].slider-light { background: var(--bg-2); }

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  border: 3px solid var(--coral);
  transition: transform .1s;
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  border: 3px solid var(--coral);
}

.slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
  pointer-events: none;
  transition: width .05s;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.68rem;
  color: var(--slate);
}

/* Toggle switch */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }

.toggle-track {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy-3);
  border-radius: 999px;
  transition: .2s;
  border: 1px solid rgba(255,255,255,.15);
}

.toggle-track::before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--white);
  border-radius: 50%;
  transition: .2s;
}

.toggle-switch input:checked + .toggle-track { background: var(--coral); border-color: var(--coral); }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(20px); }

.toggle-hint {
  font-size: 0.78rem;
  color: var(--slate-2);
}

/* Segmented controls */
.seg {
  display: flex;
  background: rgba(255,255,255,.07);
  border-radius: var(--r-sm);
  padding: 3px;
  gap: 2px;
}

.seg.seg-light { background: var(--bg-2); }

.seg button {
  flex: 1;
  padding: 0.4rem 0.5rem;
  border: none;
  background: transparent;
  border-radius: 5px;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.seg button.active {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 1px 4px rgba(229,90,38,.4);
}

.seg button:not(.active):hover { color: var(--white); background: rgba(255,255,255,.1); }
.seg.seg-light button:not(.active):hover { color: var(--text); background: rgba(0,0,0,.06); }
.seg.seg-light button.active { background: var(--coral); color: var(--white); }

/* Advanced options row */
.advanced-row {
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.advanced-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 160px;
}

@media (max-width: 640px) {
  .advanced-row { padding: 1rem 1.25rem; gap: 1.25rem; }
}

/* Help tooltip */
.help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--slate-2);
  font-size: 0.6rem;
  font-weight: 700;
  cursor: help;
  vertical-align: middle;
  margin-left: 0.25rem;
}

/* ── RESULTS SECTION ────────────────────────────────── */
.results-section {
  background: var(--white);
}

/* FIRE headline */
.fire-headline {
  padding: 1.75rem 2rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.fire-number-block { flex: 1; min-width: 200px; }

.fire-number-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.3rem;
}

.fire-number-value {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}

.fire-number-sub {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 0.25rem;
}

.fire-eta-block {
  text-align: right;
}

.fire-eta-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.3rem;
}

.fire-eta-value {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
  letter-spacing: -0.02em;
}

.fire-eta-sub {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 0.25rem;
}

/* Progress bar */
.progress-section {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.progress-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}

.progress-pct {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--coral);
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--yellow));
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
  min-width: 2px;
}

/* Summary box */
.summary-box {
  margin: 1.25rem 2rem;
  padding: 1rem 1.25rem;
  background: var(--coral-bg);
  border: 1px solid var(--coral-border);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  color: var(--navy-2);
  line-height: 1.6;
}

.summary-box strong { color: var(--navy); }

/* ── CHART ──────────────────────────────────────────── */
.chart-section {
  padding: 1.5rem 2rem 1.75rem;
  border-top: 1px solid var(--border);
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chart-title {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.chart-sub {
  font-size: 0.75rem;
  color: var(--text-4);
  margin-top: 0.2rem;
}

.chart-wrap {
  position: relative;
  height: 280px;
}

.chart-disclaimer {
  font-size: 0.7rem;
  color: var(--text-4);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* ── SENSITIVITY SLIDER ─────────────────────────────── */
.sensitivity-section {
  padding: 1.25rem 2rem 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.sensitivity-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.75rem;
}

.sensitivity-label span {
  color: var(--coral);
  font-weight: 700;
}

.sensitivity-result {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-3);
  min-height: 1.2em;
}

.sensitivity-result strong { color: var(--coral); }

/* ── SECONDARY CALCULATORS SECTION ──────────────────── */
.calc-section {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.calc-section-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.calc-section-title {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.calc-section-sub {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 0.2rem;
}

.calc-section-body {
  padding: 1.5rem 1.75rem;
}

.calc-output-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .calc-output-row { grid-template-columns: 1fr 1fr; }
}

.calc-output-stat { text-align: center; }

.calc-output-value {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: -0.02em;
}

.calc-output-label {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 0.2rem;
}

/* Savings Rate Table */
.srate-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-top: 1.5rem;
}

.srate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 320px;
}

.srate-table th {
  padding: 0.6rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-4);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.srate-table td {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--bg-2);
  color: var(--text-2);
}

.srate-table tr:last-child td { border-bottom: none; }
.srate-table tr.highlight td { background: var(--coral-bg); font-weight: 600; color: var(--text); }
.srate-table td.fire-years { color: var(--coral); font-weight: 700; }

/* ── MAIN CONTENT AREA ──────────────────────────────── */
.main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

@media (max-width: 640px) {
  .main { padding: 2rem 1.25rem; }
}

/* Section header */
.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 0.88rem;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}

/* ── RETIRE-AT QUICK LINKS ──────────────────────────── */
.retire-at-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 3rem;
}

@media (max-width: 560px) { .retire-at-grid { grid-template-columns: 1fr 1fr; } }

.retire-at-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text);
  transition: all .15s;
  text-align: center;
  gap: 0.2rem;
}

.retire-at-card:hover {
  border-color: var(--coral);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.retire-at-age {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: -0.03em;
  line-height: 1;
}

.retire-at-label {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
}

/* ── GUIDE CARDS ────────────────────────────────────── */
.guides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) { .guides-grid { grid-template-columns: 1fr; } }

.guide-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: all .15s;
  display: block;
}

.guide-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--coral-border);
}

.guide-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.5rem;
}

.guide-title {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.guide-desc {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* ── WHAT IS FIRE SECTION ───────────────────────────── */
.fire-explainer {
  background: var(--navy);
  padding: 3rem 2rem;
  color: var(--white);
}

.fire-explainer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.fire-explainer h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.fire-explainer p {
  font-size: 0.95rem;
  color: var(--slate-2);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 1rem;
}

.fire-explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 560px) {
  .fire-explainer-grid { grid-template-columns: 1fr; }
}

.fire-explainer-stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  padding: 1.25rem;
}

.fire-explainer-stat-value {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: -0.03em;
  line-height: 1;
}

.fire-explainer-stat-label {
  font-size: 0.82rem;
  color: var(--slate-2);
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* ── AFFILIATES ──────────────────────────────────────── */
.affiliates-section {
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.affiliates-header {
  margin-bottom: 1rem;
}

.affiliates-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.35rem;
}

.affiliates-note {
  font-size: 0.75rem;
  color: var(--text-4);
  line-height: 1.5;
}

.affiliates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.affiliate-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text);
  transition: all .15s;
}

.affiliate-card:hover {
  border-color: var(--coral);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.affiliate-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.affiliate-product {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.affiliate-desc {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0.75rem;
}

.affiliate-badge {
  font-size: 0.68rem;
  color: var(--slate);
  margin-bottom: 0.6rem;
}

.affiliate-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--coral);
  transition: color .15s;
}

.affiliate-card:hover .affiliate-cta { color: var(--coral-dark); }

/* ── PROSE (articles) ───────────────────────────────── */
.prose {
  max-width: 700px;
}

.prose-meta {
  font-size: 0.78rem;
  color: var(--text-4);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.prose h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 2.25rem 0 0.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.75rem 0 0.5rem;
  letter-spacing: -0.01em;
}

.prose p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 1.1rem;
}

.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}

.prose li {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}

.prose strong { color: var(--text); font-weight: 700; }

.prose a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover { color: var(--coral-dark); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.prose th {
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-4);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.prose td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--bg-2);
  color: var(--text-2);
}

.prose tr:last-child td { border-bottom: none; }

.prose blockquote {
  border-left: 3px solid var(--coral);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--coral-bg);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
  color: var(--navy-3);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 2.5rem 2rem;
  margin-top: 0;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--slate);
  line-height: 1.65;
  max-width: 440px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--slate);
  text-decoration: none;
  transition: color .15s;
}

.footer-links a:hover { color: var(--white); }

/* ── UTILITY ─────────────────────────────────────────── */
.text-coral { color: var(--coral); }
.text-yellow { color: var(--yellow); }
.font-display { font-family: var(--display); font-weight: 800; }

/* ── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 2.5rem 1.25rem 0; }
  .hero h1 { font-size: 2rem; }
  .fire-headline { padding: 1.25rem 1.25rem; }
  .progress-section { padding: 1rem 1.25rem; }
  .summary-box { margin: 1rem 1.25rem; }
  .chart-section { padding: 1.25rem; }
  .sensitivity-section { padding: 1rem 1.25rem 1.5rem; }
  .affiliates-section { padding: 1.25rem; }
  .fire-number-value { font-size: 2rem; }
  .fire-explainer { padding: 2rem 1.25rem; }
  footer { padding: 2rem 1.25rem; }
}
