/* ============================================================
   lodeposit.com.au — Design system
   ============================================================ */

:root {
  --navy: #0B1437;
  --navy-2: #1A2238;
  --cream: #FAF6F0;
  --cream-2: #F3ECDF;
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #6B6B6B;
  --line: #E5DED0;
  --line-2: #D6CCBA;

  --gold: #E8A87C;
  --gold-2: #C38D5F;
  --sage: #5F7A61;
  --plum: #7B6CD9;
  --terra: #E76F51;
  --teal: #2A9D8F;

  --grad-warm: linear-gradient(135deg, #FFD7A8 0%, #E8A87C 50%, #C38D5F 100%);
  --grad-night: linear-gradient(135deg, #0B1437 0%, #1A2238 50%, #2A3556 100%);
  --grad-sage: linear-gradient(135deg, #5F7A61 0%, #8AA68C 100%);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(11,20,55,.05), 0 4px 12px rgba(11,20,55,.05);
  --shadow-2: 0 6px 24px rgba(11,20,55,.08), 0 16px 48px rgba(11,20,55,.06);
  --shadow-3: 0 20px 60px rgba(11,20,55,.18);

  --serif: "Fraunces", "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="dark"] {
  --navy: #FAF6F0;
  --navy-2: #E5DED0;
  --cream: #0B1437;
  --cream-2: #0F1A45;
  --paper: #131C4A;
  --ink: #FAF6F0;
  --muted: #B5B5C0;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.16);
}

/* Dark-mode-safe brand colors */
[data-theme="dark"] .prop-card--main,
[data-theme="dark"] .calc-card,
[data-theme="dark"] .scheme--featured,
[data-theme="dark"] .calc,
[data-theme="dark"] .cta__inner,
[data-theme="dark"] .foot {
  --navy: #0B1437;
  --ink: #FAF6F0;
  --paper: #FAF6F0;
}
[data-theme="dark"] .prop-card--main { background: #FAF6F0; color: #0B1437; border-color: rgba(0,0,0,.06); }
[data-theme="dark"] .prop-card--main .prop-card__price,
[data-theme="dark"] .prop-card--main .prop-card__title { color: #0B1437; }
[data-theme="dark"] .prop-card--main .prop-card__loc,
[data-theme="dark"] .prop-card--main .prop-card__dep { color: #6B6B6B; }
[data-theme="dark"] .scheme--featured { background: #0B1437; color: #FAF6F0; }
[data-theme="dark"] .scheme--featured .scheme__desc,
[data-theme="dark"] .scheme--featured .scheme__stat-val { color: #FAF6F0; }
[data-theme="dark"] .scheme--featured .scheme__desc strong { color: #FAF6F0; }
[data-theme="dark"] .scheme--featured .scheme__stats { border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .scheme--featured .scheme__tag { color: var(--gold); }
[data-theme="dark"] .calc-card { background: #0B1437; color: #FAF6F0; }
[data-theme="dark"] .cta__copy .eyebrow--gold { background: var(--gold); color: var(--navy); }
[data-theme="dark"] .cta__inner { background: #0B1437; }
[data-theme="dark"] .cta__inner h2 { color: #FAF6F0; }
[data-theme="dark"] .foot { background: #050B22; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--navy); }

/* ---------- announcement bar ---------- */
.anno {
  background: var(--navy);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.01em;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.anno__track {
  display: flex;
  gap: 56px;
  padding: 10px 0;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.anno__item { display: inline-flex; align-items: center; gap: 8px; }
.anno__item strong { color: var(--gold); font-weight: 600; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--green { background: #6BCB77; box-shadow: 0 0 8px #6BCB7780; }
.dot--amber { background: var(--gold); box-shadow: 0 0 8px #E8A87C80; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--navy);   /* navy flips to cream in dark mode — always contrasty */
  font-feature-settings: "ss01";
}
.nav__wordmark em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-2);
}
.nav__tld { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 2px; }

.nav__menu {
  display: flex;
  gap: 28px;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 500;
}
.nav__menu a {
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
  transition: color .2s;
}
.nav__menu a:hover { color: var(--gold-2); }
.nav__menu a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold-2);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav__menu a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; width: 36px; height: 36px; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; }

/* theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  position: relative;
  transition: border-color .2s, transform .15s;
}
.theme-toggle:hover { border-color: var(--gold-2); transform: scale(1.05); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  position: relative;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 4px 12px rgba(11,20,55,.18);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 24px rgba(11,20,55,.28); }
[data-theme="dark"] .btn--primary { background: var(--gold); color: var(--navy); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { background: var(--cream-2); border-color: var(--ink); }
.btn--lg { padding: 16px 28px; font-size: 15.5px; }
.btn--lg svg { width: 18px; height: 18px; }
.btn--block { width: 100%; justify-content: center; padding: 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--gold-2); font-weight: 600; font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, gap .2s;
}
.link-arrow:hover { border-color: var(--gold-2); gap: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 64px 28px 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.orb--gold {
  width: 460px; height: 460px;
  background: radial-gradient(circle, #E8A87C 0%, transparent 70%);
  top: -120px; right: -80px;
}
.orb--navy {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #1A2238 0%, transparent 70%);
  bottom: -180px; left: -120px;
  animation-delay: -6s;
}
.orb--sage {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #5F7A61 0%, transparent 70%);
  top: 40%; left: 50%;
  animation-delay: -12s;
  opacity: 0.35;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-1);
}
.pill .pulse {
  width: 8px; height: 8px;
  background: #6BCB77;
  border-radius: 50%;
  box-shadow: 0 0 0 0 #6BCB77;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(107,203,119,.6); }
  70% { box-shadow: 0 0 0 12px rgba(107,203,119,0); }
  100% { box-shadow: 0 0 0 0 rgba(107,203,119,0); }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 24px 0 20px;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-2);
}
.ink-mark {
  position: relative;
  display: inline-block;
}
.ink-mark::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; bottom: 6px;
  height: 14px;
  background: var(--gold);
  opacity: 0.4;
  z-index: -1;
  border-radius: 4px;
  transform: skewX(-6deg);
}
.hero__sub {
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 32px;
}
.hero__sub strong { color: var(--ink); font-weight: 600; }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 540px;
}
.stat__num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  font-feature-settings: "tnum";
}
.stat__lbl {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* hero visual: card stack */
.hero__visual { position: relative; height: 760px; }
.card-stack {
  position: relative;
  width: 100%;
  height: 100%;
}
.prop-card--main, .calc-card, .tag-card {
  position: absolute;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: rise 1.2s cubic-bezier(.2,.7,.2,1) backwards;
}
.prop-card--main {
  top: 30px; left: 0; right: 60px;
  animation-delay: .1s;
}
.prop-card__media { position: relative; }
.prop-card__media svg { width: 100%; aspect-ratio: 5/3; display: block; }
.badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--navy);
  color: var(--cream);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: var(--r-pill);
}
.badge--gold { background: var(--gold); color: var(--navy); }
.badge--sage { background: var(--sage); }
.badge--navy { background: var(--navy); }
.prop-card__body { padding: 16px 18px 18px; }
.prop-card__loc { font-size: 12px; color: var(--muted); font-weight: 500; }
.prop-card__title { font-weight: 600; font-size: 15px; margin: 2px 0 12px; }
.prop-card__row { display: flex; justify-content: space-between; align-items: baseline; }
.prop-card__price { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.prop-card__dep { font-size: 12px; color: var(--muted); }
.prop-card__dep strong { color: var(--gold-2); }

.calc-card {
  top: 480px; right: 0; left: 0;
  padding: 18px;
  background: var(--navy);
  color: var(--cream);
  border-color: transparent;
  animation-delay: .3s;
}
.calc-card__head {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 70%, transparent);
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.calc-card__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.calc-card__row:first-of-type { border-top: 0; }
.calc-card__row strong { font-family: var(--mono); font-size: 14px; }
.calc-card__row .hl { color: var(--gold); }
.calc-card__bar {
  position: relative;
  height: 6px; border-radius: 99px;
  background: rgba(255,255,255,.1);
  margin: 14px 0 6px;
}
.calc-card__bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 11%;
  background: var(--grad-warm);
  border-radius: 99px;
}
.calc-card__bar-marker {
  position: absolute; top: -3px;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(232,168,124,.25);
}
.calc-card__weeks { font-size: 11px; color: color-mix(in srgb, var(--cream) 70%, transparent); }

.tag-card {
  top: 0; right: 0;
  width: 220px;
  padding: 20px;
  background: var(--grad-warm);
  color: var(--navy);
  border: 0;
  animation-delay: .5s;
  transform: rotate(4deg);
}
.tag-card__title { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.tag-card__desc { font-size: 12px; opacity: 0.8; margin: 6px 0 12px; }
.tag-card__price {
  font-family: var(--mono);
  font-size: 13px; font-weight: 600;
  background: var(--navy); color: var(--gold);
  padding: 4px 10px; border-radius: var(--r-pill);
  display: inline-block;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(40px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- trust bar ---------- */
.trustbar {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 80px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.trustbar__lbl {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.trustbar__logos { display: flex; gap: 32px; flex-wrap: wrap; }
.logo-pill {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--muted);
  opacity: 0.65;
  transition: opacity .2s, color .2s;
}
.logo-pill:hover { opacity: 1; color: var(--ink); }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--navy);
  color: var(--cream);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-top: 80px;
}
.ticker__track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
}
.ticker__track span { white-space: nowrap; }
.ticker__track span:nth-child(odd) { color: var(--gold); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { position: relative; }
.section__head {
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 0 28px;
  text-align: left;
}
.section__head--row {
  display: flex; align-items: end; justify-content: space-between;
  text-align: left; gap: 32px; flex-wrap: wrap;
}
.section__head--row {
  display: flex; align-items: end; justify-content: space-between;
  text-align: left; gap: 32px; flex-wrap: wrap;
}
.section__head--row > div { max-width: 640px; }

.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
  margin-bottom: 18px;
  padding: 6px 14px;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  border-radius: var(--r-pill);
}
.eyebrow--gold { color: var(--navy); background: var(--gold); }

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.section__title em { font-style: italic; color: var(--gold-2); font-weight: 300; }
.section__lede {
  font-size: 17px;
  color: #1A1F2E;
  max-width: 720px;
  margin: 0;
  line-height: 1.6;
  text-align: left;
  font-weight: 400;
}
.section__head--row .section__lede { margin: 0; }

.section__filters { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  max-width: 1280px;
  margin: 0 auto 32px;
  padding: 0 28px;
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
}
.chip {
  padding: 9px 18px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
[data-theme="dark"] .chip.is-active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ============================================================
   SCHEMES
   ============================================================ */
.schemes {
  padding: 110px 0 80px;
  background: var(--cream);
}
.schemes__grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.scheme {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  display: flex; flex-direction: column;
}
.scheme:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-2);
}
.scheme--featured {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
  background-image: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--gold) 28%, transparent) 0%, transparent 50%);
}
.scheme--highlight {
  background: linear-gradient(180deg, var(--paper) 0%, color-mix(in srgb, var(--gold) 14%, var(--paper)) 100%);
  border-color: var(--gold);
}
.scheme__head { display: flex; gap: 14px; align-items: start; margin-bottom: 16px; }
.scheme__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 18%, var(--paper));
  color: var(--c);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.scheme__icon svg { width: 22px; height: 22px; }
.scheme--featured .scheme__icon {
  background: rgba(255,255,255,.08);
  color: var(--gold);
}
.scheme__tag {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c, var(--muted));
  font-weight: 600;
  margin-bottom: 4px;
}
.scheme--featured .scheme__tag { color: var(--gold); }
.scheme__title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.1;
}
.scheme__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  margin: 0 0 24px;
}
.scheme--featured .scheme__desc { color: color-mix(in srgb, var(--cream) 88%, transparent); }
.scheme__desc strong { color: var(--ink); font-weight: 600; }
.scheme--featured .scheme__desc strong { color: var(--cream); }

.scheme__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 18px;
  margin-top: auto;
}
.scheme--featured .scheme__stats { border-color: rgba(255,255,255,.1); }
.scheme__stat-lbl {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.scheme__stat-val {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.05;
}
.scheme--featured .scheme__stat-lbl { color: color-mix(in srgb, var(--cream) 60%, transparent); }
.scheme--featured .scheme__stat-val { color: var(--cream); }

.scheme .link-arrow { font-size: 13px; }
.scheme--featured .link-arrow { color: var(--gold); }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc {
  padding: 110px 0;
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.calc::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--gold) 30%, transparent) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--sage) 25%, transparent) 0%, transparent 50%);
  pointer-events: none;
}
.calc__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}
.calc__copy .eyebrow { background: var(--gold); color: var(--navy); }
.calc__copy .section__title { color: var(--cream); }
.calc__copy .section__title em { color: var(--gold); }
.calc__copy .section__lede { color: color-mix(in srgb, var(--cream) 80%, transparent); }
.checklist { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.checklist li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15.5px;
  color: var(--cream);
}
.checklist svg {
  width: 20px; height: 20px;
  background: var(--gold); color: var(--navy);
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
}

.calc__widget { position: relative; }
.calc__panel {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: 0 40px 100px rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.06);
}
.calc__field { margin-bottom: 22px; }
.calc__field label {
  display: block;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.calc__row { display: flex; gap: 18px; align-items: center; }
.calc__row input[type="range"] {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  outline: none;
}
.calc__row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  background: var(--gold);
  border: 3px solid var(--navy);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(232,168,124,.4);
  transition: transform .15s;
}
.calc__row input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc__row input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--gold);
  border: 3px solid var(--navy);
  border-radius: 50%;
  cursor: pointer;
}
.calc__row output {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  min-width: 120px;
  text-align: right;
  color: var(--ink);
}

.seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--cream-2);
  border-radius: var(--r-pill);
}
.seg__btn {
  padding: 8px 4px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  transition: all .2s;
}
.seg__btn.is-active {
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 15px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%231A1A1A' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.calc__result {
  margin-top: 28px;
  padding: 22px;
  background: var(--cream-2);
  border-radius: var(--r-md);
}
.calc__result-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
}
.calc__result-row strong {
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
}
.calc__result-row .hl { color: var(--gold-2); font-size: 17px; }
.calc__result-row--big {
  margin-top: 8px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.calc__result-row--big strong { font-size: 20px; color: var(--sage); }
.calc__result-row--big:last-child strong { color: var(--plum); }

.qualifies {
  margin-top: 22px;
}
.qualifies__lbl {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  margin-bottom: 10px;
}
.qualifies__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.qual-tag {
  font-size: 12px; font-weight: 600;
  padding: 5px 10px;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--r-pill);
}
.qual-tag.qual-tag--gold { background: var(--gold); color: var(--navy); }
.qual-tag.qual-tag--sage { background: var(--sage); }

/* ============================================================
   STATES
   ============================================================ */
.states {
  padding: 110px 0 80px;
}
.states__grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.state-card {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
  position: relative;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.state-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.state-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--accent); }
.state-card:hover::before { transform: scaleX(1); }
.state-card__flag {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 16px 22px 4px;
  color: var(--accent);
}
.state-card__body { padding: 4px 22px 22px; }
.state-card__body h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.state-card__median {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}
.state-card__median span {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.state-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.state-card li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.state-card li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.state-card li strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   PROPERTIES
   ============================================================ */
.props {
  padding: 110px 0 80px;
  background: var(--cream-2);
}
.props__grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.prop {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.prop:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.prop__media {
  position: relative;
  aspect-ratio: 5/3;
  background: var(--cream-2);
  overflow: hidden;
}
.prop__media svg { width: 100%; height: 100%; transition: transform .6s; }
.prop:hover .prop__media svg { transform: scale(1.05); }
.prop__badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.prop__save {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: var(--paper);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: color .2s, transform .2s;
}
.prop__save:hover { color: var(--terra); transform: scale(1.1); }
.prop__save svg { width: 16px; height: 16px; }
.prop__body { padding: 18px 20px 22px; }
.prop__loc {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  margin-bottom: 6px;
}
.prop__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.prop__meta {
  display: flex; gap: 12px;
  font-size: 12px; color: var(--muted);
  margin-bottom: 16px;
}
.prop__meta span { display: inline-flex; align-items: center; }
.prop__meta span + span::before { content: "·"; margin-right: 12px; color: var(--line-2); }
.prop__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.prop__price {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.prop__dep { font-size: 12px; color: var(--muted); }
.prop__dep strong { color: var(--gold-2); font-weight: 600; }

.props__more {
  text-align: center;
  margin-top: 48px;
  padding: 0 28px;
}

/* ============================================================
   HOW
   ============================================================ */
.how {
  padding: 110px 0;
}
.how__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.how__step {
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
  transition: transform .25s, border-color .25s;
}
.how__step:hover { transform: translateY(-3px); border-color: var(--gold-2); }
.how__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  font-weight: 300;
  color: var(--gold-2);
  margin-bottom: 16px;
  line-height: 1;
}
.how__step h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.how__step p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   COMPARE
   ============================================================ */
.compare {
  padding: 110px 28px;
  background: var(--cream-2);
}
.compare__table {
  max-width: 980px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.compare__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
}
.compare__row:first-child { border-top: 0; }
.compare__row > div {
  padding: 18px 24px;
  font-size: 15px;
  border-left: 1px solid var(--line);
}
.compare__row > div:first-child { border-left: 0; font-weight: 500; color: var(--ink); }
.compare__row > div:nth-child(2) { color: var(--muted); }
.compare__row > div.is-featured {
  background: color-mix(in srgb, var(--gold) 12%, var(--paper));
  color: var(--ink);
  font-weight: 600;
}
.compare__row--head > div {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  background: var(--cream-2);
  padding: 22px 24px;
}
.compare__row--head > div.is-featured {
  background: var(--navy) !important;
  color: var(--gold) !important;
  text-align: center;
}

/* ============================================================
   GUIDES
   ============================================================ */
.guides { padding: 110px 0; }

/* Research feature block (home page) */
.research-feature { padding: 60px 28px 40px; background: linear-gradient(180deg, transparent 0%, rgba(232, 168, 124, 0.04) 100%); }
.research-feature__grid { display: grid; grid-template-columns: 1fr; max-width: 1240px; margin: 32px auto 0; }
.research-card { display: block; background: linear-gradient(135deg, #0B1437 0%, #1A2238 100%); color: #FFF; padding: 40px; border-radius: 16px; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.research-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(11, 20, 55, 0.18); }
.research-card__tag { display: inline-block; padding: 5px 12px; background: rgba(232, 168, 124, 0.18); color: #E8A87C; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.research-card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; color: #FFF; margin: 0 0 16px; letter-spacing: -0.015em; }
.research-card__desc { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.85); margin: 0 0 20px; max-width: 760px; }
.research-card__meta { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.research-card__cta { display: inline-block; color: #E8A87C; font-weight: 600; font-size: 15px; }
.research-card__cta::after { content: ''; }
@media (min-width: 720px) {
  .research-card { padding: 56px 64px; }
}
.guides__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: minmax(0, auto);
  gap: 20px;
  align-items: stretch;
}
.guide {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.guide:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.guide--lead { grid-row: span 3; }
/* Cap every card's media so wide-column cards never dwarf the narrow ones */
.guide__media { aspect-ratio: 16/9; overflow: hidden; flex: none; max-height: 200px; }
/* Lead media absorbs the leftover height across its three rows, within bounds */
.guide--lead .guide__media {
  aspect-ratio: auto;
  flex: 1 1 auto;
  min-height: 200px;
  max-height: 460px;
}
.guide__media svg { width: 100%; height: 100%; object-fit: cover; }
.guide__body { padding: 22px; }
.guide--lead .guide__body { padding: 32px; }
.guide__meta {
  display: flex; gap: 8px; align-items: center;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  margin-bottom: 10px;
}
.guide__body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.guide--lead .guide__body h3 { font-size: 32px; }
.guide__body p {
  font-size: 14px; line-height: 1.55;
  color: var(--muted);
  margin: 0 0 12px;
}
.guide--lead .guide__body p { font-size: 15px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi { padding: 110px 28px; background: var(--cream-2); }
.testi__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testi__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  margin: 0;
}
.testi__stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; margin-bottom: 18px; }
.testi__card blockquote {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 400;
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}
.testi__card figcaption { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
}
.testi__name { font-weight: 600; font-size: 14.5px; }
.testi__role { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 110px 28px; max-width: 980px; margin: 0 auto; }
.faq__list { display: grid; gap: 12px; }
.faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  transition: border-color .2s;
}
.faq__item[open] { border-color: var(--gold-2); }
.faq__item summary {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--gold-2);
  transition: transform .25s;
  line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__body { padding-top: 14px; }
.faq__body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.faq__body strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: 0 28px 110px; }
.cta__inner {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  position: relative;
  box-shadow: var(--shadow-3);
}
.cta__copy { padding: 64px 56px; }
.cta__copy h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.cta__copy p { color: color-mix(in srgb, var(--cream) 80%, transparent); font-size: 16px; line-height: 1.6; max-width: 480px; margin: 0 0 32px; }
.cta__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta__form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 70%, transparent);
  font-weight: 600;
}
.cta__form input, .cta__form select {
  padding: 12px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--cream);
  border-radius: var(--r-md);
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23FAF6F0' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.cta__form input::placeholder { color: color-mix(in srgb, var(--cream) 50%, transparent); }
.cta__form input:focus, .cta__form select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.cta__form .btn--primary {
  grid-column: span 2; justify-content: center;
  background: var(--gold); color: var(--navy);
}
.cta__form small { grid-column: span 2; color: color-mix(in srgb, var(--cream) 60%, transparent); font-size: 12.5px; }
.cta__art { position: relative; background: var(--navy); }
.cta__art svg { width: 100%; height: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--navy-2);
  color: color-mix(in srgb, var(--cream) 80%, transparent);
  padding: 80px 28px 30px;
}
.foot__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.foot__brand p { font-size: 14px; line-height: 1.6; margin: 18px 0 24px; max-width: 360px; }
.foot__socials { display: flex; gap: 12px; }
.foot__socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all .2s;
}
.foot__socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.foot__socials svg { width: 16px; height: 16px; }
.foot__col h4 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  margin: 6px 0 18px;
}
.foot__col a {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: color-mix(in srgb, var(--cream) 70%, transparent);
  transition: color .15s;
}
.foot__col a:hover { color: var(--gold); }
.foot__base {
  max-width: 1280px;
  margin: 24px auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px;
  color: color-mix(in srgb, var(--cream) 50%, transparent);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav__menu { display: none; }
  .nav__burger { display: flex; }
  .nav__actions .btn--ghost { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { height: 480px; max-width: 480px; }
  .schemes__grid, .states__grid, .props__grid, .testi__grid, .guides__grid { grid-template-columns: repeat(2, 1fr); }
  .guides__grid { grid-template-columns: 1fr 1fr; }
  .guide--lead { grid-row: auto; grid-column: span 2; }
  .how__grid { grid-template-columns: repeat(2, 1fr); }
  .compare__row { grid-template-columns: 1fr 1fr 1fr; font-size: 14px; }
  .compare__row > div { padding: 14px 16px; font-size: 14px; }
  .cta__inner { grid-template-columns: 1fr; }
  .cta__art { display: none; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .calc__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  .anno__track { gap: 36px; font-size: 12px; }
  .nav__inner { padding: 12px 18px; gap: 12px; }
  .nav__actions { gap: 6px; }
  .nav__actions .btn--primary { padding: 8px 12px; font-size: 13px; }
  .nav__actions .btn--primary svg { display: none; }
  .hero { padding: 40px 18px 60px; }
  .hero__title { font-size: 48px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .stat__num { font-size: 32px; }
  .hero__visual { height: 580px; }
  .prop-card--main { right: 20px; }
  .calc-card { left: 0; right: 20px; top: 340px; }
  .tag-card { width: 180px; }
  .ticker__track { font-size: 22px; }
  .schemes__grid, .states__grid, .props__grid, .testi__grid, .guides__grid, .how__grid {
    grid-template-columns: 1fr;
  }
  .guide--lead { grid-column: auto; }
  .scheme, .prop, .state-card { padding: 20px; }
  .section__head { margin-bottom: 32px; }
  .section__title { font-size: 36px; }
  section { padding: 60px 0 !important; }
  .compare__row { grid-template-columns: 1fr 1fr; font-size: 13px; }
  .compare__row > div:first-child { grid-column: span 2; background: var(--cream-2); }
  .compare__row--head > div.is-featured { font-size: 16px; }
  .cta__copy { padding: 40px 28px; }
  .cta__form { grid-template-columns: 1fr; }
  .cta__form .btn--primary { grid-column: auto; }
  .foot__inner { grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 40px; }
  .foot__brand { grid-column: span 2; }
  .foot__base { flex-direction: column; }
  .calc__panel { padding: 24px; }
  .seg { grid-template-columns: 1fr 1fr; }
}

/* Hide platform badge */
#minimax-floating-ball { display: none !important; }

/* ============================================================
   2026 REDESIGN — 3D hero + glassmorphism + animations
   ============================================================ */

/* ---- Hero with WebGL gradient background ---- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 110px 28px 60px;
}
.hero__bg-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  display: block;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg .grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
  padding: 0 28px;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 100px; min-height: auto; }
}

/* ---- Hero title with line spans (for GSAP stagger) ---- */
.hero__title {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 20px 0 24px;
  color: var(--navy);
  position: relative;
}
.hero__title .hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.hero__title .ink-mark { color: var(--navy); }
.hero__title em {
  font-style: italic;
  color: var(--terra);
  position: relative;
  display: inline-block;
  background: linear-gradient(120deg, var(--gold-2) 0%, var(--terra) 50%, var(--gold-2) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to { background-position: 200% 0; }
}

.hero__sub {
  font-size: 18px;
  line-height: 1.55;
  color: #1A1F2E;
  max-width: 520px;
  margin: 0 0 28px;
  font-weight: 400;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__stats { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(11, 20, 55, 0.08); }
.stat { min-width: 0; }
.stat__num { font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1; color: var(--navy); letter-spacing: -0.02em; }
.stat__lbl { font-size: 12px; color: #4A5260; margin-top: 6px; line-height: 1.4; max-width: 180px; }

/* ---- Hero calculator panel (the new focal point) ---- */
.hero__calc {
  position: relative;
}
.hero__calc-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 30px 26px;
  box-shadow: 0 30px 80px -30px rgba(11, 20, 55, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  position: relative;
}
.hero__calc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero__calc-head .dot {
  width: 8px; height: 8px;
  background: var(--forest);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(95, 122, 97, 0.6);
  animation: pulse 2s infinite;
}
.hero__calc-state {
  margin-left: auto;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 28px 5px 12px;
  border-radius: 100px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1L5 5L9 1' stroke='%231A2238' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  text-transform: uppercase;
}
.hero__calc-state:focus { outline: none; border-color: var(--navy); }

.hero__calc-field { margin-bottom: 18px; }
.hero__calc-field label {
  display: block;
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 10px;
}
.hero__calc-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero__calc-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--line);
  border-radius: 100px;
  outline: none;
  margin: 0;
}
.hero__calc-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  background: var(--navy);
  border: 3px solid var(--paper);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--navy), 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.1s;
}
.hero__calc-row input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.hero__calc-row input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--navy);
  border: 3px solid var(--paper);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--navy), 0 2px 6px rgba(0,0,0,0.2);
}
.hero__calc-val {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  min-width: 110px;
  text-align: right;
  letter-spacing: -0.01em;
}

.hero__calc-result {
  margin: 22px 0 24px;
  padding: 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 10%, var(--paper)) 0%, var(--paper) 100%);
  border-radius: 16px;
  border: 1px solid var(--line);
}
.hero__calc-r1, .hero__calc-r2, .hero__calc-r3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
}
.hero__calc-r1 { padding-top: 0; }
.hero__calc-r-label { font-size: 13px; color: var(--muted); }
.hero__calc-r-val {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.hero__calc-bar {
  height: 6px;
  background: var(--line);
  border-radius: 100px;
  margin: 10px 0;
  overflow: hidden;
}
.hero__calc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-2), var(--terra));
  border-radius: 100px;
  transition: width 0.25s ease;
}
.hero__calc-r2 .hero__calc-r-val { color: var(--terra); }
.hero__calc-r3 .hero__calc-r-val { font-size: 16px; color: var(--navy); }
.hero__calc-cta { width: 100%; justify-content: center; }

/* ---- Buttons — modernised with subtle 3D feel ---- *//* ---- Buttons — modernised with subtle 3D feel ---- */
.btn--primary {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  transition: all 0.18s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 4px 0 0 rgba(11, 20, 55, 0.85), 0 8px 20px -4px rgba(11, 20, 55, 0.35);
}
.btn--primary:hover {
  background: var(--terra);
  box-shadow: 0 6px 0 0 rgba(11, 20, 55, 0.85), 0 12px 28px -4px rgba(232, 168, 124, 0.55);
  transform: translateY(-1px);
}
.btn--primary:active {
  box-shadow: 0 2px 0 0 rgba(11, 20, 55, 0.85), 0 4px 10px -2px rgba(11, 20, 55, 0.35);
  transform: translateY(2px);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(11, 20, 55, 0.12);
  transition: all 0.18s cubic-bezier(.2,.7,.2,1);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.85); border-color: var(--navy); }

/* ---- Glassmorphism nav ---- */
.nav {
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--cream) 95%, transparent);
  box-shadow: 0 4px 20px -8px rgba(0,0,0,0.12);
}

/* Dark mode: the nav must follow the flipped tokens, never a hardcoded cream */
[data-theme="dark"] .nav {
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  border-bottom-color: var(--line);
}
[data-theme="dark"] .nav.is-scrolled {
  background: color-mix(in srgb, var(--cream) 97%, transparent);
}

/* ---- Modernized pill ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(11, 20, 55, 0.08);
  border-radius: 100px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
}
.pill .pulse {
  width: 8px; height: 8px;
  background: var(--forest);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(95, 122, 97, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(95, 122, 97, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(95, 122, 97, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 122, 97, 0); }
}

/* ---- Calculator panel — modernized ---- */
.calc__panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: 0 30px 80px -30px rgba(11, 20, 55, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

/* ---- Section heads — more editorial ---- */
.section__head { margin-bottom: 56px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-left: 36px;
  text-align: left;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 28px; height: 1px;
  background: var(--terra);
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--navy);
  max-width: 720px;
}
.section__title em {
  font-style: italic;
  color: var(--terra);
}
.section__lede {
  font-size: 17px;
  color: #1A1F2E;
  max-width: 720px;
  margin: 0;
  line-height: 1.6;
  text-align: left;
  font-weight: 400;
}

/* ---- Cards — glassmorphism + hover lift ---- */
.scheme:not(.scheme--featured):not(.scheme--highlight), 
.state-card, 
.prop, 
.guide {
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.scheme:hover, .state-card:hover, .prop:hover, .guide:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -20px rgba(11, 20, 55, 0.2);
}

/* ---- Smooth scroll base ---- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---- Ticker modernized ---- */
.ticker {
  background: var(--navy);
  color: var(--cream);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(232, 168, 124, 0.15);
  border-bottom: 1px solid rgba(232, 168, 124, 0.15);
}
.ticker__track span {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-2);
}

/* ---- Trustbar ---- */
.trustbar {
  background: rgba(255, 251, 240, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(11, 20, 55, 0.04);
  padding: 24px 28px;
}
.trustbar__lbl { color: var(--muted); }
.logo-pill {
  background: rgba(11, 20, 55, 0.04);
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 100px;
  transition: all 0.2s;
}
.logo-pill:hover { background: var(--navy); color: var(--cream); }

/* ---- Footer ---- */
.foot {
  background: var(--navy);
  color: var(--cream);
  padding: 80px 28px 24px;
}
.foot__col h4 { color: var(--gold-2); }
.foot__col a { color: rgba(252, 251, 247, 0.7); }
.foot__col a:hover { color: var(--cream); }
.foot__brand p { color: rgba(252, 251, 247, 0.6); }
.foot__base { color: rgba(252, 251, 247, 0.5); border-top-color: rgba(252, 251, 247, 0.1); }
.foot__wordmark { color: var(--cream); }

/* ---- Anno bar ---- */
.anno {
  background: #0B1437;
  color: #FAF6F0;
}
.anno__item { color: #FAF6F0; }
.anno__item .dot--green { background: var(--gold-2); }
.anno__item strong { color: var(--gold-2); }

/* ---- Reduce 3D on small screens (perf) ---- */
@media (max-width: 768px) {
  .hero__visual { height: auto; }
  .hero__title { font-size: clamp(40px, 10vw, 72px); }
}
@media (prefers-reduced-motion: reduce) {
  /* Reset scheme / state card / guide animations */
section .scheme__head,
section .scheme__desc,
section .scheme__stats,
section .scheme__title,
section .scheme__icon,
section .scheme__tag,
section .scheme__stat-lbl,
section .scheme__stat-val,
section .state-card__head,
section .state-card__title,
section .state-card__stat,
section .state-card__desc,
section .how-step__num,
section .how-step__title,
section .how-step__desc,
section .prop__title,
section .prop__price,
section .guide__title,
section .guide__desc,
section .testi__quote,
section .testi__name,
section .testi__role {
  opacity: 1 !important;
  transform: none !important;
}
}

/* ============================================================
   UNIFIED DESIGN SYSTEM
   Canonical classes for all page heroes, headers, footers, and
   body content. Use these everywhere instead of inline styles.
   Last revised: 5 October 2026
   ============================================================ */

.pillar-page { background: var(--cream); min-height: 100vh; }

.legal-hero {
  padding: 56px 28px 40px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.legal-hero__inner { max-width: 900px; margin: 0 auto; }
.legal-hero__eyebrow {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(232, 168, 124, 0.18);
  color: #B25E2F;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--sans);
}
.legal-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--navy);
}
.legal-hero__lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 760px;
  margin: 0 0 24px;
}
.legal-hero__meta {
  display: flex;
  gap: 16px 22px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-family: var(--sans);
}
.legal-hero__meta strong { color: var(--navy); }

.pillar-body { max-width: 900px; margin: 0 auto; padding: 48px 28px 96px; }
.pillar-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.015em;
  margin: 56px 0 16px;
  color: var(--navy);
}
.pillar-body h2:first-of-type { margin-top: 16px; }
.pillar-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
  color: var(--navy);
}
.pillar-body p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 20px;
  color: var(--ink);
}
.pillar-body ul, .pillar-body ol {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 24px;
  padding-left: 24px;
  color: var(--ink);
}
.pillar-body li { margin-bottom: 8px; }
.pillar-body a {
  color: #B25E2F;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pillar-body .cite {
  font-size: 13px;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 12px;
  margin: 16px 0 24px;
}

.pillar-toc {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin: 32px 0;
}
.pillar-toc h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 16px;
}
.pillar-toc ol {
  margin: 0;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.9;
}
.pillar-toc a { color: var(--navy); text-decoration: none; font-weight: 500; }
.pillar-toc a:hover { color: #B25E2F; text-decoration: underline; }

.gradient-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #FFF;
  border-radius: var(--r-lg);
  padding: 32px 28px;
  margin: 32px 0;
}
.gradient-card h3 {
  color: #FFF;
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 22px;
}
.gradient-card p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
}
.gradient-card .stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.gradient-card .stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 16px;
  border-radius: 10px;
}
.gradient-card .stat__num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  display: block;
  line-height: 1.1;
}
.gradient-card .stat__lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
  display: block;
  line-height: 1.4;
}

.callout-warn {
  background: rgba(232, 168, 124, 0.08);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}
.callout-warn h4 {
  font-family: var(--serif);
  margin: 0 0 8px;
  font-size: 16px;
  color: #B25E2F;
}
.callout-info {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.callout-info strong { color: var(--navy); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.data-table thead th {
  text-align: left;
  padding: 12px 14px;
  background: rgba(232, 168, 124, 0.10);
  border-bottom: 2px solid var(--line);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(232, 168, 124, 0.04); }
.data-table .cell-strong { font-weight: 600; color: var(--navy); }
.data-table .cell-num { font-family: var(--mono); color: #B25E2F; font-weight: 700; }
.data-table .pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
}
.data-table .pill--new { background: #D4F4DD; color: #1F6B33; }
.data-table .pill--gone { background: #F8D7DA; color: #842029; }
.data-table .pill--warn { background: #FFF3CD; color: #856404; }

.eeat-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: rgba(11, 20, 55, 0.03);
  border-radius: var(--r-md);
  margin: 40px 0 0;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}
.eeat-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
}
.eeat-card__name { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.eeat-card__role { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.eeat-card__desc { font-size: 13px; line-height: 1.5; color: var(--ink); margin: 0; }

.disclaimer {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 40px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.disclaimer strong { color: var(--navy); }

.legal-foot {
  /* NOT var(--navy): that token flips to cream in dark mode, which would
     put a cream footer under near-white text. Footers stay navy in both themes. */
  background: #0B1437;
  color: rgba(252, 251, 247, 0.85);
  padding: 56px 28px 32px;
  margin-top: 64px;
}
.legal-foot__inner { max-width: 1100px; margin: 0 auto; }
.legal-foot__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.legal-foot__brand strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: #FAF6F0;
}
.legal-foot__brand strong em { font-style: italic; color: var(--gold); }
.legal-foot__meta { font-size: 13px; color: rgba(252, 251, 247, 0.55); margin-top: 2px; }
.legal-foot__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 760px) { .legal-foot__cols { grid-template-columns: repeat(2, 1fr); } }
.legal-foot__cols h6 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 0 0 12px;
}
.legal-foot__cols a {
  display: block;
  color: rgba(252, 251, 247, 0.65);
  font-size: 14px;
  text-decoration: none;
  padding: 4px 0;
}
.legal-foot__cols a:hover { color: #FAF6F0; }
.legal-foot__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(252, 251, 247, 0.5);
  text-align: left;
}

.pillar-figure {
  margin: 32px 0;
  background: rgba(232, 168, 124, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
}
.pillar-figure img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); }
.pillar-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  padding: 0 4px;
  text-align: center;
  font-style: italic;
  font-family: var(--sans);
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
  letter-spacing: -0.005em;
}
.btn--primary { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn--primary:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 20, 55, 0.18);
}
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--navy); background: var(--cream-2); }
.btn--accent { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--accent:hover { background: #D97757; border-color: #D97757; }

.post-hero {
  padding: 56px 28px 40px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.post-hero__inner { max-width: 800px; margin: 0 auto; }
.post-hero__cat {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--sans);
  color: #FFFFFF;
  background: var(--cat-color, var(--navy));
}
.post-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--navy);
}
.post-hero__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-family: var(--sans);
}
.post-hero__meta strong { color: var(--navy); }

.post-body { max-width: 720px; margin: 0 auto; padding: 56px 28px 80px; }
.post-body p { font-size: 17px; line-height: 1.7; margin: 0 0 24px; color: var(--ink); }
.post-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 34px);
  letter-spacing: -0.015em;
  margin: 48px 0 16px;
  color: var(--navy);
}
.post-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
  color: var(--navy);
}
.post-body ul, .post-body ol {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 24px;
  padding-left: 24px;
  color: var(--ink);
}
.post-body li { margin-bottom: 8px; }
.post-body strong { font-weight: 600; }
.post-body a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.post-body .cite {
  font-size: 13px;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 12px;
  margin: 16px 0 24px;
}
.post-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.post-body th {
  text-align: left;
  padding: 12px 10px;
  background: var(--cream-2);
  border-bottom: 2px solid var(--line);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-body td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.post-body .lede {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
}

@media (max-width: 760px) {
  .legal-hero { padding: 40px 20px 24px; }
  .pillar-body { padding: 32px 20px 64px; }
  .post-hero { padding: 40px 20px 28px; }
  .post-body { padding: 32px 20px 64px; }
}

/* ============================================================
   SAVINGS TRACKER (specific styling)
   ============================================================ */
.tracker-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 28px 96px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 880px) {
  .tracker-wrap { grid-template-columns: 1fr; padding: 32px 20px 64px; }
}
.tracker-form {
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: sticky;
  top: 16px;
}
.tracker-form h3 {
  font-family: var(--serif);
  margin: 0 0 16px;
  font-size: 20px;
  color: var(--navy);
}
.tracker-form .field { margin-bottom: 16px; }
.tracker-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tracker-form input,
.tracker-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #FFF;
  color: var(--navy);
}
.tracker-form input:focus,
.tracker-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 168, 124, 0.2);
}
.tracker-form .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.tracker-result {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.progress-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #FFF;
  border-radius: var(--r-lg);
  padding: 32px 28px;
}
.progress-card h3 {
  color: #FFF;
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 22px;
}
.progress-card .big-num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin: 16px 0 8px;
  display: block;
}
.progress-card .big-label {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 24px;
}
.progress-bar-wrap {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  height: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.15);
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #F4C794);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.stat-card {
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.stat-card__lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
}
.stat-card__num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  display: block;
}
.stat-card__sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.timeline-card,
.schemes-card {
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 28px;
}
.timeline-card h4,
.schemes-card h4 {
  font-family: var(--serif);
  margin: 0 0 16px;
}
.timeline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-row:last-child { border-bottom: none; }
.timeline-row__month {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  min-width: 60px;
}
.timeline-row__bar {
  flex: 1;
  height: 24px;
  background: rgba(232, 168, 124, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.timeline-row__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--gold), #F4C794);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.timeline-row__amt {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  min-width: 100px;
  text-align: right;
  color: var(--navy);
}

.scheme-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.scheme-row:last-child { border-bottom: none; }
.scheme-row__name { font-weight: 600; color: var(--navy); }
.scheme-row__desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.scheme-row__val {
  font-family: var(--mono);
  font-weight: 700;
  color: #B25E2F;
}

/* ============================================================
   INDEX.HTML SPECIFIC — apply canonical theme
   ============================================================ */
.research-feature { padding: 60px 28px 40px; }
.research-feature__grid { display: grid; grid-template-columns: 1fr; max-width: 1240px; margin: 32px auto 0; }
.research-card {
  display: block;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #FFF;
  padding: 40px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.research-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(11, 20, 55, 0.18);
}
.research-card__tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(232, 168, 124, 0.18);
  color: var(--gold);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.research-card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  color: #FFF;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}
.research-card__desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0 0 20px;
  max-width: 760px;
}
.research-card__meta {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.research-card__cta {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  font-size: 15px;
}
@media (min-width: 720px) {
  .research-card { padding: 56px 64px; }
  .research-feature { padding: 60px 28px; }
}

/* ============================================================
   QUICK-CARD → canonical gradient-card (grants/journey/research)
   ============================================================ */
.quick-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #FFF;
  border-radius: var(--r-lg);
  padding: 32px 28px;
  margin: 32px 0;
}
.quick-card h3 {
  color: #FFF;
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 22px;
}
.quick-card p {
  color: rgba(255,255,255,0.85);
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
}
.quick-card .stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 20px 0 0;
}
.quick-card .stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 16px;
  border-radius: 10px;
}
.quick-card .stat__num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--gold);
  display: block;
}
.quick-card .stat__lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ============================================================
   BIG-STATS / PRINCIPLES (research, about)
   ============================================================ */
.bigstats,
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.bigstat,
.principle {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #FFF;
  padding: 24px;
  border-radius: 12px;
}
.bigstat__num,
.principle__num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--gold);
  display: block;
  line-height: 1.1;
}
.bigstat__lbl,
.principle__title {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  line-height: 1.5;
  font-weight: 600;
}
.principle__desc {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  line-height: 1.5;
}
.bigstat__lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  line-height: 1.5;
}

/* ============================================================
   METHOD BOX (research, about)
   ============================================================ */
.method {
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  margin: 32px 0;
}
.method h3 { margin-top: 0; }
.method p:last-child { margin-bottom: 0; }
.method ul {
  font-size: 15px;
  line-height: 1.7;
  margin: 12px 0;
  padding-left: 22px;
}

/* ============================================================
   STAGE CARDS (journey)
   ============================================================ */
.stage {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 24px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.stage__num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}
.stage__body { flex: 1; }
.stage__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 8px;
}
.stage__duration {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}
.stage__body p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.stage__checklist {
  background: rgba(232, 168, 124, 0.06);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}
.stage__checklist h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #B25E2F;
  margin: 0 0 8px;
}
.stage__checklist ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 760px) {
  .stage { flex-direction: column; gap: 12px; }
}

/* ============================================================
   BLOG ARTICLE — specific patterns
   ============================================================ */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.post-nav a { color: #B25E2F; font-weight: 600; font-size: 14px; }

.cost-table { background: rgba(232, 168, 124, 0.06); border-radius: 12px; padding: 4px; margin: 32px 0; }
.cost-table table { margin: 0; }
.cost-table th { background: rgba(232, 168, 124, 0.15); }

.myth-callout {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #FFF;
  padding: 32px 28px;
  border-radius: 16px;
  margin: 32px 0;
}
.myth-callout h3 { color: #E8A87C; margin: 0 0 16px; font-family: var(--serif); }
.myth-callout p { color: rgba(255,255,255,0.9); margin: 0 0 12px; font-size: 16px; line-height: 1.6; }
.myth-callout .big-num {
  font-family: var(--serif);
  font-size: 56px;
  color: #E8A87C;
  font-weight: 600;
  line-height: 1;
  display: block;
  margin: 12px 0;
}

.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}
.vs-card {
  padding: 24px;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.vs-card--new { border-left: 4px solid #2E7D5B; }
.vs-card--est { border-left: 4px solid #B25E2F; }
.vs-card h3 { font-family: var(--serif); margin-top: 0; }
.vs-card ul { font-size: 15px; line-height: 1.7; padding-left: 20px; margin: 0; }
.vs-card li { margin-bottom: 6px; }
@media (max-width: 760px) { .vs-grid { grid-template-columns: 1fr; } }

.mistake-card {
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 24px 0;
  border-left: 4px solid #D9534F;
}
.mistake-card h3 { margin-top: 0; color: #B23B3B; font-family: var(--serif); }
.mistake-card p:last-child { margin-bottom: 0; }
.cost-pill {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(217, 83, 79, 0.12);
  color: #B23B3B;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}


/* ============================================================
   BLOG INDEX — post cards (rendered by blog.js)
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.post {
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.post--lead {
  grid-column: span 2;
}
@media (max-width: 760px) { .post--lead { grid-column: span 1; } }
.post__media {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: var(--cream-2);
}
.post__media svg {
  width: 100%;
  height: 100%;
  display: block;
}
.post__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFF;
  background: var(--navy);
}
.post__cat--explain { background: #6A4C93; }
.post__cat--data { background: #2A6F8E; }
.post__cat--story { background: #B25E2F; }
.post__cat--guide { background: #2E7D5B; }
.post__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post__meta {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.post__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 10px;
}
.post__title a { color: inherit; text-decoration: none; }
.post__title a:hover { color: #B25E2F; }
.post__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 16px;
}
.post__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.post__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}
.post__author-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.post__author-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 13px;
}
.post__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #B25E2F;
  text-decoration: none;
}
.post__link:hover { text-decoration: underline; }

/* Blog page hero + filter */
.blog-hero {
  padding: 56px 28px 36px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.blog-hero__inner { max-width: 800px; margin: 0 auto; }
.blog-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--navy);
}
.blog-hero p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.blog-cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1240px;
  margin: 32px auto 0;
  padding: 0 28px;
}
.blog-cat {
  padding: 8px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: #FFF;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s ease;
}
.blog-cat:hover { border-color: var(--navy); }
.blog-cat.is-active {
  background: var(--navy);
  color: #FFF;
  border-color: var(--navy);
}
.blog-section {
  padding: 40px 28px 96px;
}

/* ============================================================
   ELIGIBILITY CHECK
   ============================================================ */
.elig-hero {
  padding: 56px 28px 40px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.elig-hero__inner { max-width: 760px; margin: 0 auto; }
.elig-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--navy);
}
.elig-hero p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.elig-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 28px 96px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.chip {
  padding: 12px 20px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  background: #FFF;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  user-select: none;
  min-width: 80px;
  text-align: center;
}
.chip:hover {
  border-color: var(--gold-2);
  background: rgba(232, 168, 124, 0.05);
}
.chip.is-checked {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
  transform: scale(1.02);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field input[type="number"],
.field input[type="text"],
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 16px;
  font-family: inherit;
  background: #FFF;
  color: var(--navy);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(232, 168, 124, 0.18);
}
.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.range-val {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: #B25E2F;
  white-space: nowrap;
}
.range-row input[type="range"] {
  width: 100%;
  accent-color: var(--gold-2);
}
.progress {
  height: 8px;
  background: var(--cream-2);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: 8px;
}
.progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #F4C794);
  border-radius: var(--r-pill);
  transition: width 0.3s ease;
}
.step-card {
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-1);
}
.step-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 6px;
  color: var(--navy);
}
.step-card p { color: var(--ink); font-size: 16px; line-height: 1.7; margin: 0 0 20px; }
.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  margin-bottom: 10px;
  background: #FFF;
  transition: all 0.15s ease;
}
.opt:hover { border-color: var(--gold-2); background: rgba(232, 168, 124, 0.04); }
.opt.is-checked { border-color: var(--navy); background: rgba(11, 20, 55, 0.04); }
.save-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.summary-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #FFF;
  border-radius: var(--r-lg);
  padding: 32px 28px;
  margin-bottom: 24px;
}
.summary-card h2 { color: #FFF; margin: 0 0 16px; font-family: var(--serif); }
.result-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #FFF;
  border-radius: var(--r-lg);
  padding: 32px 28px;
  margin-bottom: 24px;
  text-align: center;
}
.result-hero h2 { color: #FFF; margin: 0 0 12px; font-family: var(--serif); font-size: 30px; }
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.summary-stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 16px;
}
.summary-stat__num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  display: block;
  line-height: 1.1;
}
.summary-stat__lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
  display: block;
}
.elig-error {
  background: #F8D7DA;
  border: 1px solid #F5C2C7;
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: #842029;
  margin-bottom: 16px;
}

/* Eligibility hero refinements */
.elig-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--navy);
}
.elig-hero__title em { font-style: italic; color: #B25E2F; }
.elig-hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.elig-hero__stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 620px;
  margin: 0 auto;
}
.elig-hero__stat {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.elig-hero__stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 2px;
}
.elig-hero__pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-2);
  margin-right: 6px;
  animation: elig-pulse 2s ease-in-out infinite;
}
@keyframes elig-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Progress steps */
.progress {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  height: auto;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.progress__step {
  flex: 1;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.progress__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid transparent;
}
.progress__step.is-active { color: var(--navy); font-weight: 600; }
.progress__step.is-active .progress__num {
  background: var(--navy);
  color: var(--cream);
}
.progress__step.is-done .progress__num {
  background: var(--sage, #5F7A61);
  color: #FFF;
}

/* Footer wordmark on dark background — override dark ink colour */
.foot .nav__wordmark,
.legal-foot .nav__wordmark,
.dark-foot .nav__wordmark {
  color: var(--cream);
}
.foot .nav__wordmark em,
.legal-foot .nav__wordmark em,
.dark-foot .nav__wordmark em {
  color: var(--gold);
}
.foot .nav__tld,
.legal-foot .nav__tld,
.dark-foot .nav__tld {
  color: rgba(250, 246, 240, 0.55);
}

/* Wide card — fills the last row across both narrow columns (desktop only) */
.guide--wide { grid-column: span 2; flex-direction: row; }
.guide--wide .guide__media {
  aspect-ratio: auto;
  flex: 0 0 300px;
  max-height: none;
  height: auto;
}
.guide--wide .guide__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
}
.guide--wide .guide__media svg { object-fit: cover; }

@media (max-width: 900px) {
  .guide--wide { grid-column: auto; flex-direction: column; }
  .guide--wide .guide__media { flex: none; aspect-ratio: 16/9; max-height: 200px; width: 100%; }
}

/* ============================================================
   RESPONSIVE HARDENING — prevent all horizontal overflow
   ============================================================ */

/* 1. Global overflow guard */
html, body {
  max-width: 100%;
  overflow-x: clip;
}
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* 2. Nothing may exceed its container */
img, svg, video, canvas, iframe, table { max-width: 100%; }

/* 3. Wide data tables get their own horizontal scroller on phones */
@media (max-width: 760px) {
  .mega-table,
  .data-table,
  .post-body table,
  .cmp {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
  }
  .mega-table thead,
  .mega-table tbody,
  .data-table thead,
  .data-table tbody { display: table; width: max-content; min-width: 100%; }
  .mega-table th, .mega-table td,
  .data-table th, .data-table td {
    white-space: normal;
    min-width: 120px;
    font-size: 12.5px;
    padding: 10px 12px;
  }
  .mega-table th:first-child,
  .mega-table td:first-child { min-width: 90px; }
}

/* 4. Long unbroken strings (URLs, IDs) must wrap */
p, li, td, th, dd, dt, figcaption {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 5. Nav must never exceed the viewport */
.nav__inner { max-width: 100%; }
@media (max-width: 760px) {
  .nav__actions .btn--primary {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav__actions { flex-shrink: 0; min-width: 0; }
}

/* 6. fieldset defaults force min-content width on phones — the
      single most common cause of horizontal scroll in forms */
@media (max-width: 760px) {
  fieldset, legend { min-width: 0 !important; max-width: 100%; }
  .filters, .filter, .filter--fh { min-width: 0; max-width: 100%; }
  .filter__chips, .fh-bands { flex-wrap: wrap; }
  .chip-sm, .fh-band, .seg-sm { max-width: 100%; }
}

/* 7. Long form controls must shrink */
input, select, textarea {
  max-width: 100%;
  box-sizing: border-box;
}

/* 8. Grid children must be allowed to shrink (default min-width:auto
      is what makes grids blow out) */
.states__grid > *, .schemes__grid > *, .props__grid > *,
.how__grid > *, .testi__grid > *, .principles > *, .bigstats > *,
.tracker-wrap > *, .elig-wrap > *, .pillar-body > *, .post-body > * {
  min-width: 0;
}

/* ============================================================
   MOBILE NAVIGATION — rebuilt properly
   Prior version truncated the CTA and used inline JS styles.
   ============================================================ */

/* Drawer state driven purely by CSS classes, not inline styles */
.nav { position: relative; }

.nav__menu.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px;
  background: var(--cream);
  background: var(--cream) ;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(11, 20, 55, .28);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav__menu.is-open a {
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.nav__menu.is-open a:hover,
.nav__menu.is-open a:focus-visible {
  background: rgba(232, 168, 124, .14);
}

/* Scrim behind the open drawer */
.nav__scrim {
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 55, .55);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.nav__scrim.is-open { opacity: 1; pointer-events: auto; }

body.nav-locked { overflow: hidden; }

/* Burger animation */
.nav__burger { cursor: pointer; border: none; background: none; padding: 0; }
.nav__burger span { transition: transform .28s ease, opacity .2s ease; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---- Small phone treatment ---- */
@media (max-width: 560px) {
  .nav__inner {
    padding: 10px 14px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .nav__brand { gap: 8px; min-width: 0; flex-shrink: 1; }
  .nav__brand svg { width: 28px; height: 28px; flex-shrink: 0; }
  .nav__wordmark { font-size: 17px; white-space: nowrap; }
  .nav__tld { display: none; }          /* drop ".com.au" on phones */
  .nav__actions { gap: 4px; flex-shrink: 0; }
  .theme-toggle { width: 34px; height: 34px; }
  .nav__burger { width: 34px; height: 34px; }
  /* CTA becomes an arrow-only pill. Some pages use a text-only CTA
     with no <svg>, so we render the arrow with ::after instead. */
  .nav__actions .btn--primary {
    padding: 0;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;                        /* hide the label */
    max-width: 36px;
    overflow: hidden;
    text-indent: -9999px;
  }
  .nav__actions .btn--primary svg { display: none !important; }
  .nav__actions .btn--primary::after {
    content: '\2192';                    /* → */
    font-size: 16px;
    line-height: 1;
    text-indent: 0;
    color: var(--cream);
    font-family: var(--sans);
  }
}

@media (max-width: 380px) {
  .nav__wordmark { font-size: 16px; }
  .nav__actions { gap: 2px; }
}

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  .nav__menu, .nav__scrim, .nav__burger span { transition: none !important; }
}

/* Fix: the mobile hide-rule must not beat the open state.
   Same specificity, so we must come later AND be more specific. */
@media (max-width: 1024px) {
  .nav__menu.is-open {
    display: flex;
  }
}

/* ============================================================
   MOBILE DENSITY — reduce dead space, tighten type scale
   ============================================================ */
@media (max-width: 760px) {
  /* Section rhythm: was 110px top padding, far too much on a phone */
  .guides, .how, .faq, .testi, .cta, .schemes, .states, .props { padding-top: 64px; padding-bottom: 64px; }
  .section__head { margin-bottom: 32px; }

  /* Hero */
  .hero { padding: 32px 18px 48px; }
  .hero__title { font-size: clamp(34px, 9.5vw, 44px); line-height: 1.06; }
  .hero__lede { font-size: 16px; line-height: 1.55; }

  /* Pillar heroes (grants / journey / tracker / about / research) */
  .legal-hero { padding: 32px 20px 28px; }
  .legal-hero__title { font-size: clamp(28px, 8vw, 38px); margin-bottom: 14px; }
  .legal-hero__lede { font-size: 16px; line-height: 1.55; margin-bottom: 18px; }
  .legal-hero__meta { font-size: 13px; gap: 8px 14px; }

  /* Pillar body: tighter leading blocks, smaller type */
  .pillar-body { padding: 32px 20px 64px; }
  .pillar-body p { font-size: 16px; line-height: 1.65; margin-bottom: 16px; }
  .pillar-body h2 { font-size: 26px; margin: 40px 0 12px; }
  .pillar-body h3 { font-size: 20px; margin: 28px 0 10px; }
  .pillar-body ul, .pillar-body ol { font-size: 16px; line-height: 1.6; margin-bottom: 18px; }

  /* Article bodies */
  .post-hero { padding: 32px 20px 24px; }
  .post-hero__title { font-size: clamp(26px, 7.5vw, 34px); }
  .post-body { padding: 32px 20px 56px; }
  .post-body p { font-size: 16px; line-height: 1.65; margin-bottom: 18px; }
  .post-body h2 { font-size: 24px; margin: 38px 0 12px; }
  .post-body h3 { font-size: 19px; margin: 28px 0 10px; }
  .post-body .lede { font-size: 18px; padding: 18px 0; }
  .post-body ul, .post-body ol { font-size: 16px; margin-bottom: 18px; }

  /* TOC + eeat cards */
  .pillar-toc { padding: 18px 20px; margin: 24px 0; }
  .pillar-toc ol { font-size: 14px; line-height: 1.8; }
  .eeat-card { padding: 16px 18px; }
  .eeat-card__avatar { width: 40px; height: 40px; font-size: 17px; }
  .disclaimer { padding: 16px 18px; font-size: 12.5px; }

  /* Figures / infographics shouldn't dominate a phone screen */
  .pillar-figure { padding: 10px; margin: 24px 0; }
  .pillar-figure figcaption { font-size: 12px; margin-top: 10px; }

  /* Gradient cards */
  .gradient-card, .quick-card { padding: 22px 20px; margin: 24px 0; }
  .gradient-card .stat-row, .quick-card .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gradient-card .stat__num, .quick-card .stat__num { font-size: 22px; }

  /* Eligibility hero */
  .elig-hero { padding: 32px 20px 26px; }
  .elig-hero__title { font-size: clamp(26px, 7.5vw, 36px); }
  .elig-hero__sub { font-size: 16px; margin-bottom: 20px; }
  .elig-hero__stats { gap: 18px; padding-top: 18px; }
  .elig-hero__stat-num { font-size: 24px; }

  /* Blog hero + filter cats */
  .blog-hero { padding: 32px 20px 24px; }
  .blog-hero h1 { font-size: clamp(26px, 7.5vw, 34px); }
  .blog-hero p { font-size: 16px; }
  .blog-cats { padding: 0 20px; margin-top: 22px; }

  /* Listing note */
  .listing-note__body { padding: 16px 16px 18px; font-size: 13.5px; }

  /* Cards */
  .post { border-radius: var(--r-md); }
  .post__body { padding: 18px; }
  .post__title { font-size: 18px; }
  .post__excerpt { font-size: 14px; }
  .guide__media { max-height: 168px; }
  .guide--lead .guide__media { max-height: 220px; min-height: 168px; }
  .guide__body { padding: 18px; }
  .guide--lead .guide__body { padding: 20px; }
  .guide--lead .guide__body h3 { font-size: 24px; }

  /* Tracker form */
  .tracker-form { padding: 20px; position: static; }
  .progress-card { padding: 22px 20px; }
  .progress-card .big-num { font-size: 42px; }
  .stat-card { padding: 16px; }
  .stat-card__num { font-size: 23px; }
  .timeline-card, .schemes-card { padding: 18px; }

  /* Footer */
  .legal-foot { padding: 40px 20px 24px; margin-top: 48px; }
  .foot { padding: 48px 20px 24px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot__base { margin-top: 32px; flex-direction: column; gap: 8px; }
}


/* ============================================================
   TAP TARGETS — WCAG 2.5.8 minimum 24x24 CSS px
   Inline text links inside prose stay small, but any link that
   looks and behaves like a control gets a real hit area.
   ============================================================ */
@media (pointer: coarse) {
  .link-arrow,
  .post__link,
  .ann-disclaimer a,
  .legal-toc a,
  .pc__link,
  .filter__legend-val,
  .nav__menu a,
  .foot__col a,
  .legal-foot__cols a,
  .stage__checklist a,
  .post-nav a {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
  }
  /* Stacked nav / footer links get comfortable spacing */
  .nav__menu.is-open a { min-height: 46px; }
  .foot__col a,
  .legal-foot__cols a { padding-top: 6px; padding-bottom: 6px; }
}


/* ============================================================
   DARK-MODE CONTRAST REPAIRS
   These elements used tokens that flip in dark mode, leaving
   light-on-light text. Pin them to explicit readable values.
   ============================================================ */
[data-theme="dark"] .legal-foot,
[data-theme="dark"] .foot { background: #050B24; }

[data-theme="dark"] .legal-foot__cols a { color: rgba(252, 251, 247, 0.72); }
[data-theme="dark"] .legal-foot__cols h6 { color: var(--gold); }
[data-theme="dark"] .legal-foot__bottom { color: rgba(252, 251, 247, 0.58); }
[data-theme="dark"] .legal-foot__meta { color: rgba(252, 251, 247, 0.62); }

[data-theme="dark"] .pillar-body p,
[data-theme="dark"] .post-body p,
[data-theme="dark"] .legal-hero__lede { color: #E8E4DC; }

[data-theme="dark"] .stage__title { color: var(--cream); }
[data-theme="dark"] .stat-card__num,
[data-theme="dark"] .scheme-row__val,
[data-theme="dark"] .timeline-row__amt,
[data-theme="dark"] .bigstat__lbl { color: var(--cream); }
[data-theme="dark"] .scheme-row__val { color: var(--gold); }

/* Cards that used a white base need a dark base */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .timeline-card,
[data-theme="dark"] .schemes-card,
[data-theme="dark"] .step-card,
[data-theme="dark"] .tracker-form,
[data-theme="dark"] .listing-note,
[data-theme="dark"] .pillar-toc,
[data-theme="dark"] .method,
[data-theme="dark"] .principles,
[data-theme="dark"] .bigstats,
[data-theme="dark"] .guide,
[data-theme="dark"] .post,
[data-theme="dark"] .data-table,
[data-theme="dark"] .callout-info { background: #131C4A; }
[data-theme="dark"] .stat-card__lbl,
[data-theme="dark"] .step-card h2 { color: var(--muted); }


/* Higher-specificity dark-mode pins (needed where .pillar-body p and
   .stat-card__num are declared with the same specificity later in the file) */
[data-theme="dark"] .pillar-body p,
[data-theme="dark"] .pillar-body li,
[data-theme="dark"] .post-body p,
[data-theme="dark"] .stage__body p,
[data-theme="dark"] .stage__checklist { color: #E6E2DA; }

[data-theme="dark"] .stat-card__num,
[data-theme="dark"] .scheme-row__name,
[data-theme="dark"] .timeline-card h4,
[data-theme="dark"] .schemes-card h4,
[data-theme="dark"] .tracker-form h3 { color: #F2EFE9; }

[data-theme="dark"] .stat-card__sub,
[data-theme="dark"] .stat-card__lbl,
[data-theme="dark"] .scheme-row__desc,
[data-theme="dark"] .tracker-form label,
[data-theme="dark"] .tracker-form .hint { color: #A9B0C4; }

[data-theme="dark"] .stat-card,
[data-theme="dark"] .timeline-card,
[data-theme="dark"] .schemes-card,
[data-theme="dark"] .tracker-form {
  background: #131C4A;
  border-color: rgba(255,255,255,.14);
}

/* Last-word dark pins for stage + tracker internals (source-order safety) */
[data-theme="dark"] .stage__body > p { color: #E6E2DA; }
[data-theme="dark"] .stage__duration { color: #A9B0C4; }
[data-theme="dark"] .stage__checklist h4 { color: var(--gold); }
[data-theme="dark"] .stage__checklist li,
[data-theme="dark"] .stage__checklist { color: #D8D4CC; }
[data-theme="dark"] .track-item,
[data-theme="dark"] .pillar-figure figcaption { color: #C9C5BD; }

/* Stage cards sit on a white card surface — dark mode needs the card dark,
   not just the text */
[data-theme="dark"] .stage {
  background: #131C4A;
  border-color: rgba(255,255,255,.14);
}

[data-theme="dark"] .stage__title { color: #F2EFE9; }

/* ============================================================
   SCHEME UPDATES / CHANGELOG PAGE
   ============================================================ */
.change-log {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 32px 0 48px;
}
.change {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 24px;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px;
}
.change--major { border-left: 4px solid var(--gold); }
.change__date { text-align: center; padding-top: 4px; }
.change__day {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.change__mon {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.change__tags { margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(11,20,55,.07);
  color: var(--navy);
}
.tag--major { background: rgba(232,168,124,.24); color: #A2601F; }
.tag--good { background: #D4F4DD; color: #1F6B33; }
.tag--gone { background: #F8D7DA; color: #842029; }
.change__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.change__text { font-size: 16px; line-height: 1.65; margin: 0 0 12px; color: var(--ink); }
.change__impact {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 12px;
  padding: 12px 16px;
  background: rgba(232,168,124,.09);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
}
.change__src { font-size: 13px; color: var(--muted); margin: 0; }
.change__src a { color: #B25E2F; }

.watch-list { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 48px; }
.watch {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 20px;
  padding: 16px 20px;
  background: var(--navy);
  border-radius: var(--r-md);
}
.watch__when {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}
.watch__what { font-size: 15px; line-height: 1.55; color: rgba(252,251,247,.86); }
.watch__what strong { color: #FAF6F0; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 28px 0 40px;
}
.link-card {
  display: block;
  padding: 20px 22px;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color .18s, transform .18s;
}
.link-card:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.link-card h3 { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--navy); margin: 0 0 6px; }
.link-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

/* Dark mode */
[data-theme="dark"] .change,
[data-theme="dark"] .link-card { background: #131C4A; border-color: rgba(255,255,255,.14); }
[data-theme="dark"] .change__day,
[data-theme="dark"] .link-card h3 { color: var(--cream); }
[data-theme="dark"] .change__title { color: var(--cream); }
[data-theme="dark"] .tag { background: rgba(255,255,255,.12); color: var(--cream); }

/* Mobile */
@media (max-width: 700px) {
  .change { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .change__date { text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .change__day { font-size: 30px; }
  .change__mon { margin-top: 0; }
  .watch { grid-template-columns: 1fr; gap: 6px; }
  .change__title { font-size: 20px; }
  .change__text { font-size: 15px; }
  .change__impact { font-size: 14px; }
}

/* ============================================================
   BUYING JOURNEY GUIDES
   Shared components: phase rails, risk tables, checklists,
   warning boxes, cost breakdown bars.
   ============================================================ */

/* ---- Journey phase rail ---- */
.journey-rail {
  display: flex;
  gap: 0;
  margin: 32px 0 40px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #FFF;
}
.journey-rail__step {
  flex: 1;
  padding: 16px 14px;
  border-right: 1px solid var(--line);
  position: relative;
  min-width: 0;
}
.journey-rail__step:last-child { border-right: none; }
.journey-rail__n {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-2);
  margin-bottom: 5px;
  letter-spacing: .06em;
}
.journey-rail__t {
  display: block;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.journey-rail__step.is-here {
  background: var(--navy);
}
.journey-rail__step.is-here .journey-rail__n { color: var(--gold); }
.journey-rail__step.is-here .journey-rail__t { color: var(--cream); }

/* ---- Risk / severity tables ---- */
.risk-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.risk-table thead th {
  background: rgba(232,168,124,.10);
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 2px solid var(--line);
}
.risk-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
}
.risk-table tbody tr:last-child td { border-bottom: none; }
.sev {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sev--critical { background: #F8D7DA; color: #842029; }
.sev--high { background: #FFE8CC; color: #8A4B08; }
.sev--medium { background: #FFF3CD; color: #856404; }
.sev--low { background: #D4F4DD; color: #1F6B33; }

/* ---- Actionable checklist ---- */
.action-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  counter-reset: act;
}
.action-list li {
  counter-increment: act;
  position: relative;
  padding: 16px 18px 16px 56px;
  margin-bottom: 10px;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.action-list li::before {
  content: counter(act);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
}
.action-list strong { color: var(--navy); }

/* ---- Warning / critical callouts ---- */
.alert {
  padding: 22px 26px;
  border-radius: var(--r-md);
  margin: 28px 0;
  border-left: 4px solid;
}
.alert--danger { background: rgba(217,83,79,.09); border-color: #D9534F; }
.alert--warn   { background: rgba(232,168,124,.12); border-color: var(--gold); }
.alert--info   { background: rgba(45,125,191,.08); border-color: #2D7DBF; }
.alert h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--navy);
}
.alert--danger h4 { color: #842029; }
.alert p { font-size: 15px; line-height: 1.65; margin: 0 0 10px; color: var(--ink); }
.alert p:last-child { margin-bottom: 0; }

/* ---- Cost breakdown bars ---- */
.cost-bars { margin: 28px 0; }
.cost-bar {
  display: grid;
  grid-template-columns: minmax(150px, 1.3fr) 3fr auto;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cost-bar:last-child { border-bottom: none; }
.cost-bar__label { color: var(--ink); font-weight: 500; }
.cost-bar__track {
  height: 10px;
  background: var(--cream-2);
  border-radius: 999px;
  overflow: hidden;
}
.cost-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #F4C794);
}
.cost-bar__amt {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  font-size: 13px;
}

/* ---- Definition grid ---- */
.def-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.def {
  padding: 18px 20px;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.def__k {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 7px;
}
.def__v {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 5px;
}
.def__n { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ---- Timeline (vertical) ---- */
.v-timeline { margin: 28px 0; position: relative; padding-left: 34px; }
.v-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.v-tl {
  position: relative;
  margin-bottom: 26px;
}
.v-tl::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--navy);
}
.v-tl__when {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-2);
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.v-tl__what {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.25;
}
.v-tl__detail { font-size: 15px; line-height: 1.65; color: var(--ink); margin: 0 0 8px; }
.v-tl__detail:last-child { margin-bottom: 0; }

/* ---- Comparison cards ---- */
.vs-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.vs-side {
  padding: 22px 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #FFF;
}
.vs-side h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 12px;
  color: var(--navy);
}
.vs-side ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.65; color: var(--ink); }
.vs-side li { margin-bottom: 7px; }
.vs--good { border-left: 4px solid #2E7D5B; }
.vs--bad  { border-left: 4px solid #D9534F; }
.vs--mid  { border-left: 4px solid var(--gold); }

/* ---- Stat strip ---- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 28px 0;
}
.stat-strip__cell {
  background: #FFF;
  padding: 18px 16px;
  text-align: center;
}
.stat-strip__n {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
}
.stat-strip__l {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.35;
}

/* ---- Dark mode ---- */
[data-theme="dark"] .journey-rail,
[data-theme="dark"] .risk-table,
[data-theme="dark"] .action-list li,
[data-theme="dark"] .def,
[data-theme="dark"] .vs-side,
[data-theme="dark"] .stat-strip__cell { background: #131C4A; border-color: rgba(255,255,255,.14); }
[data-theme="dark"] .journey-rail__t,
[data-theme="dark"] .action-list strong,
[data-theme="dark"] .cost-bar__label,
[data-theme="dark"] .risk-table td,
[data-theme="dark"] .vs-side h3,
[data-theme="dark"] .vs-side li,
[data-theme="dark"] .def__v,
[data-theme="dark"] .cost-bar__amt,
[data-theme="dark"] .stat-strip__n,
[data-theme="dark"] .v-tl__what,
[data-theme="dark"] .alert h4,
[data-theme="dark"] .alert p { color: var(--cream); }
[data-theme="dark"] .alert--danger h4 { color: #FF9B9B; }
[data-theme="dark"] .alert p { color: #DCD8D0; }
[data-theme="dark"] .journey-rail__step.is-here { background: rgba(255,255,255,.06); }
[data-theme="dark"] .alert--danger { background: rgba(217,83,79,.18); }
[data-theme="dark"] .alert--warn { background: rgba(232,168,124,.14); }
[data-theme="dark"] .alert--info { background: rgba(45,125,191,.14); }
[data-theme="dark"] .risk-table thead th { background: rgba(255,255,255,.06); }
[data-theme="dark"] .cost-bar__track { background: rgba(255,255,255,.10); }
[data-theme="dark"] .v-timeline::before { background: rgba(255,255,255,.16); }

/* ---- Mobile ---- */
@media (max-width: 760px) {
  .journey-rail { flex-direction: column; }
  .journey-rail__step { border-right: none; border-bottom: 1px solid var(--line); }
  .journey-rail__step:last-child { border-bottom: none; }
  .action-list li { padding: 14px 14px 14px 50px; font-size: 14px; }
  .action-list li::before { left: 14px; top: 13px; }
  .cost-bar { grid-template-columns: 1fr auto; gap: 8px; }
  .cost-bar__track { grid-column: 1 / -1; order: 3; }
  .vs-compare { grid-template-columns: 1fr; }
  .risk-table { font-size: 13px; }
  .risk-table td, .risk-table thead th { padding: 10px 11px; }
  .def-grid { grid-template-columns: 1fr; }
  .v-tl__what { font-size: 17px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .risk-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .risk-table thead, .risk-table tbody { display: table; width: 100%; }
  .risk-table td { min-width: 110px; }
}
.post__cat--journey { background: #2E7D5B; }

/* ============================================================
   JOURNEY HUB — stage cards linking the buying-journey guides
   ============================================================ */
.journey-hub { margin: 56px 0 40px; }
.journey-hub h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 34px);
  color: var(--navy);
  margin: 0 0 10px;
}
.journey-hub__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 24px;
}
.journey-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 16px;
}
.journey-card {
  display: block;
  padding: 22px 24px;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.journey-card:hover {
  border-color: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}
.journey-card__stage {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #B25E2F;
  margin-bottom: 8px;
}
.journey-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 8px;
}
.journey-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

[data-theme="dark"] .journey-card { background: #131C4A; border-color: rgba(255,255,255,.14); }
[data-theme="dark"] .journey-card h3 { color: var(--cream); }
[data-theme="dark"] .journey-hub h2 { color: var(--cream); }
[data-theme="dark"] .journey-card p { color: var(--muted); }

@media (max-width: 760px) {
  .journey-hub { margin: 40px 0 32px; }
  .journey-hub__grid { grid-template-columns: 1fr; gap: 12px; }
  .journey-card { padding: 18px 20px; }
  .journey-card h3 { font-size: 17px; }
}

/* ============================================================
   LEAD MAGNET PAGE — /cheat-sheet.html
   ============================================================ */
.cs-page { background: var(--cream); min-height: 70vh; }
.cs-hero {
  padding: 52px 28px 40px;
  background:
    radial-gradient(1100px 380px at 78% -12%, rgba(232,168,124,.20), transparent 62%),
    var(--cream);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cs-hero__inner { max-width: 720px; margin: 0 auto; }
.cs-hero .legal-hero__eyebrow { margin-bottom: 14px; }
.cs-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  color: var(--navy);
}
.cs-hero__lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 auto 24px;
  max-width: 620px;
}
.cs-hero__proof {
  display: flex;
  justify-content: center;
  gap: 12px 26px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.cs-hero__proof strong { color: var(--navy); font-weight: 700; }

.cs-body { max-width: 980px; margin: 0 auto; padding: 44px 28px 96px; }

.cs-preview { display: grid; grid-template-columns: 260px 1fr; gap: 32px; margin-bottom: 44px; }
.cs-preview__frame { position: relative; }
.cs-preview__page {
  position: relative;
  z-index: 3;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(11,20,55,.14);
  padding: 18px 18px 22px;
  aspect-ratio: 1 / 1.414;
  overflow: hidden;
}
.cs-preview__stack {
  position: absolute;
  inset: 0;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 2;
}
.cs-preview__stack--2 { transform: rotate(1.6deg) translate(6px, 6px); }
.cs-preview__stack--3 { transform: rotate(-1.4deg) translate(11px, 11px); }
.cs-preview__band {
  height: 46px;
  background: var(--navy);
  margin: -18px -18px 14px;
  border-radius: 10px 10px 0 0;
}
.cs-preview__kicker {
  font-size: 7px;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--gold-2);
  margin-bottom: 6px;
}
.cs-preview__h {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.cs-preview__rule { height: 3px; width: 34px; background: var(--gold); margin-bottom: 10px; }
.cs-preview__line { height: 6px; background: var(--cream-2); border-radius: 3px; margin-bottom: 6px; }
.cs-preview__line.w80 { width: 80%; }
.cs-preview__line.w60 { width: 60%; }
.cs-preview__box {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.cs-preview__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  font-size: 8px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.cs-preview__row:last-child { border-bottom: none; }
.cs-preview__row b { color: var(--navy); font-family: var(--mono); }
.cs-preview__row.hi { background: #D4F4DD; }
.cs-preview__row.hi b { color: #1F6B33; }

.cs-includes { list-style: none; padding: 0; margin: 0; }
.cs-includes li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.cs-includes li:last-child { border-bottom: none; }
.cs-includes li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 19px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.cs-includes strong { color: var(--navy); }

.cs-gate__box {
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--shadow-1);
  max-width: 620px;
  margin: 0 auto;
}
.cs-gate__box h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--navy);
}
.cs-gate__note { font-size: 14px; color: var(--muted); margin: 0 0 22px; line-height: 1.55; }

.cs-form__row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.cs-field { margin-bottom: 14px; }
.cs-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}
.cs-field label span { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.cs-field input, .cs-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-family: inherit;
  background: #FFF;
  color: var(--navy);
}
.cs-field input:focus, .cs-field select:focus {
  outline: none;
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(232,168,124,.18);
}
.cs-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 16px;
  cursor: pointer;
}
.cs-check input { margin-top: 3px; flex-shrink: 0; accent-color: var(--navy); width: 16px; height: 16px; }
.cs-form__error {
  background: #F8D7DA;
  border: 1px solid #F0B6BB;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  color: #842029;
  margin-bottom: 14px;
}
.cs-form__submit { width: 100%; justify-content: center; padding: 15px 22px; font-size: 16px; border: none; cursor: pointer; }
.cs-form__alt { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.cs-form__alt a { color: #B25E2F; font-weight: 600; }

.cs-trust {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.cs-thanks { text-align: center; padding: 12px 0; }
.cs-thanks__icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #D4F4DD;
  color: #1F6B33;
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.cs-thanks h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 25px;
  margin: 0 0 8px;
  color: var(--navy);
}
.cs-thanks p { font-size: 15px; color: var(--ink); margin: 0 0 10px; }
.cs-thanks__direct a { color: #B25E2F; font-weight: 600; }

.cs-why { margin-top: 56px; }
.cs-why h2, .cs-next h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 30px);
  color: var(--navy);
  margin: 0 0 20px;
}
.cs-why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cs-why__item { padding: 22px 24px; background: #FFF; border: 1px solid var(--line); border-radius: var(--r-md); }
.cs-why__item h3 { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--navy); margin: 0 0 8px; }
.cs-why__item p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.cs-next { margin-top: 56px; }

[data-theme="dark"] .cs-gate__box,
[data-theme="dark"] .cs-why__item,
[data-theme="dark"] .cs-preview__page,
[data-theme="dark"] .cs-preview__stack { background: #131C4A; border-color: rgba(255,255,255,.14); }
[data-theme="dark"] .cs-preview__line { background: rgba(255,255,255,.12); }
[data-theme="dark"] .cs-hero__title,
[data-theme="dark"] .cs-gate__box h2,
[data-theme="dark"] .cs-why h2,
[data-theme="dark"] .cs-next h2,
[data-theme="dark"] .cs-why__item h3,
[data-theme="dark"] .cs-includes strong { color: var(--cream); }
[data-theme="dark"] .cs-field input,
[data-theme="dark"] .cs-field select { background: #0E1638; color: var(--cream); border-color: rgba(255,255,255,.18); }
[data-theme="dark"] .cs-includes li,
[data-theme="dark"] .cs-check { color: #DCD8D0; }
[data-theme="dark"] .cs-form__error { background: rgba(217,83,79,.18); border-color: rgba(217,83,79,.4); color: #FF9B9B; }

@media (max-width: 760px) {
  .cs-hero { padding: 36px 20px 28px; }
  .cs-body { padding: 32px 20px 64px; }
  .cs-preview { grid-template-columns: 1fr; gap: 24px; }
  .cs-preview__frame { max-width: 240px; margin: 0 auto; }
  .cs-gate__box { padding: 24px 20px; }
  .cs-form__row { grid-template-columns: 1fr; gap: 0; }
  .cs-trust { font-size: 11px; }
}

/* ============================================================
   SUBURBAN GAP INDEX — /gap-index.html
   ============================================================ */
.gi-page { background: var(--cream); min-height: 70vh; }
.gi-hero {
  padding: 52px 28px 40px;
  background:
    radial-gradient(900px 340px at 82% -14%, rgba(232,168,124,.20), transparent 60%),
    var(--cream);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.gi-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 14px 0 16px;
  color: var(--navy);
}
.gi-hero__lede {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 660px;
  margin: 0 auto;
}
.gi-body { max-width: 940px; margin: 0 auto; padding: 44px 28px 96px; }

.gi-findings { display: flex; flex-direction: column; gap: 18px; margin-bottom: 48px; }
.gi-finding {
  position: relative;
  padding: 28px 30px 28px 76px;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.gi-finding--major { border-left: 4px solid var(--gold); background: rgba(255,255,255,.72); }
.gi-finding__n {
  position: absolute;
  left: 26px;
  top: 26px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-2);
}
.gi-finding h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.22;
  color: var(--navy);
  margin: 0 0 10px;
}
.gi-finding p { font-size: 16px; line-height: 1.7; color: var(--ink); margin: 0 0 10px; }
.gi-finding p:last-child { margin-bottom: 0; }
.gi-finding__caveat {
  font-size: 14.5px !important;
  color: var(--muted) !important;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.gi-h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(25px, 2.8vw, 33px);
  color: var(--navy);
  margin: 48px 0 10px;
}
.gi-note { font-size: 14px; color: var(--muted); margin: 0 0 18px; line-height: 1.6; }

.gi-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 10px; }
.gi-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  min-width: 640px;
  font-size: 14px;
}
.gi-table thead th {
  background: rgba(232,168,124,.10);
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 2px solid var(--line);
  vertical-align: bottom;
}
.gi-units { display: block; font-size: 10px; letter-spacing: 0; text-transform: none; color: var(--muted); opacity: .8; font-weight: 400; }
.gi-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.gi-table tbody tr:last-child td { border-bottom: none; }
.gi-name { font-weight: 600; color: var(--navy); white-space: nowrap; }
.gi-st { font-size: 10.5px; color: var(--muted); margin-left: 7px; font-weight: 500; letter-spacing: .04em; }
.gi-num { font-family: var(--mono); font-size: 13px; color: var(--ink); white-space: nowrap; }
.gi-gap { color: #B25E2F; font-weight: 700; }
.gi-pct {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: #B25E2F;
  white-space: nowrap;
}

.gi-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 26px;
  background: var(--navy);
  border-radius: var(--r-md);
  margin: 24px 0 12px;
}
.gi-cta h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; color: #FFF; margin: 0 0 6px; }
.gi-cta p { font-size: 14px; color: rgba(255,255,255,.78); margin: 0; line-height: 1.55; max-width: 520px; }
.gi-cta .btn--primary { background: var(--gold); color: var(--navy); border-color: var(--gold); white-space: nowrap; }
.gi-cta .btn--primary:hover { background: #F4C794; border-color: #F4C794; }

[data-theme="dark"] .gi-finding,
[data-theme="dark"] .gi-table { background: #131C4A; border-color: rgba(255,255,255,.14); }
[data-theme="dark"] .gi-finding--major { background: rgba(232,168,124,.10); }
[data-theme="dark"] .gi-hero__title,
[data-theme="dark"] .gi-h2,
[data-theme="dark"] .gi-finding h2,
[data-theme="dark"] .gi-name { color: var(--cream); }
[data-theme="dark"] .gi-finding p { color: #DCD8D0; }
[data-theme="dark"] .gi-table td { border-color: rgba(255,255,255,.09); }
[data-theme="dark"] .gi-num { color: #DCD8D0; }
[data-theme="dark"] .gi-gap,
[data-theme="dark"] .gi-pct { color: var(--gold); }
[data-theme="dark"] .gi-cta { background: rgba(255,255,255,.05); }

@media (max-width: 760px) {
  .gi-hero { padding: 36px 20px 28px; }
  .gi-body { padding: 32px 20px 64px; }
  .gi-finding { padding: 22px 20px 22px 22px; }
  .gi-finding__n { position: static; display: block; margin-bottom: 8px; }
  .gi-finding h2 { font-size: 20px; }
  .gi-finding p { font-size: 15px; }
  .gi-cta { flex-direction: column; align-items: flex-start; }
  .gi-cta .btn--primary { width: 100%; text-align: center; }
}

.cs-check a { color: #B25E2F; text-decoration: underline; text-underline-offset: 2px; }
.cs-check strong { color: var(--navy); }
.cs-thanks__sub { font-size: 13.5px !important; color: var(--muted) !important; }
[data-theme="dark"] .cs-check strong { color: var(--cream); }

/* Updates page subscribe block */
.updates-subscribe {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 32px;
  margin: 40px 0;
}
.updates-subscribe__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}
.updates-subscribe__copy h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: #FFF;
  margin: 0 0 10px;
}
.updates-subscribe__copy p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.8);
  margin: 0;
}
.updates-subscribe__form .cs-field label { color: rgba(255,255,255,.75); }
.updates-subscribe__form .cs-field input {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: #FFF;
}
.updates-subscribe__form .cs-field input::placeholder { color: rgba(255,255,255,.4); }
.updates-subscribe__form .cs-check { color: rgba(255,255,255,.88); }
.updates-subscribe__form .cs-check input { accent-color: var(--gold); }
.updates-subscribe__ok {
  background: rgba(93, 175, 117, .2);
  border: 1px solid rgba(93, 175, 117, .4);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: #C8F0D4;
  margin-bottom: 14px;
}
.updates-subscribe__form .cs-form__alt { color: rgba(255,255,255,.6); }
.updates-subscribe__form .cs-form__alt a { color: var(--gold); }

@media (max-width: 760px) {
  .updates-subscribe { padding: 22px 18px; }
  .updates-subscribe__inner { grid-template-columns: 1fr; gap: 20px; }
  .updates-subscribe__copy h2 { font-size: 20px; }
}

.updates-subscribe__ok { margin-top: 14px; }
