/* CostToClose — "Meta" design system. Bright, friendly, optimistic. System fonts only, zero dependencies. */
:root {
  --bg: #ffffff;
  --bg-soft: #f0f2f5;
  --bg-tint: #f5f7ff;
  --card: #ffffff;
  --ink: #1c1e21;
  --ink-2: #606770;
  --ink-3: #bcc0c4;
  --line: #e4e6eb;
  --accent: #0064e0;
  --accent-deep: #0050b3;
  --accent-bright: #4d9fff;
  --accent-soft: #e7f0fe;
  --accent-tint: #f0f6ff;
  --violet: #7b2ff7;
  --grad: linear-gradient(100deg, #0064e0, #7b2ff7);
  --grad-soft: linear-gradient(120deg, rgba(0, 100, 224, 0.10), rgba(123, 47, 247, 0.10));
  --good: #0a7d4d;
  --warn: #b45309;
  --bad: #c0392b;
  --r-xl: 1.75rem;
  --r-lg: 1.25rem;
  --r-md: 0.875rem;
  --r-sm: 0.5rem;
  --shadow: 0 1px 2px rgba(28, 30, 33, 0.06), 0 16px 48px -16px rgba(0, 100, 224, 0.18);
  --shadow-sm: 0 1px 2px rgba(28, 30, 33, 0.08), 0 6px 20px -8px rgba(28, 30, 33, 0.12);
  --maxw: 90rem;
  --prosew: 44rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Aliases for dashboard components authored against the previous theme */
  --forest: var(--accent);
  --mint-bg: var(--accent-soft);
  --wash-2: var(--bg-soft);
  --ink-softer: var(--ink-2);
  --ink-faint: var(--ink-3);
  --line-soft: var(--line);
  --paper: var(--card);
  --font-sans: var(--font);
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--accent); color: #fff; padding: 0.75rem 1.25rem; border-radius: 999px;
  transition: top 0.2s ease; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--ink); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 1.75rem; height: 1.75rem; }
.site-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.site-nav a {
  color: var(--ink); font-size: 0.9375rem; font-weight: 500;
  padding: 0.5rem 0.875rem; border-radius: 999px; white-space: nowrap;
}
.site-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-cta {
  background: var(--accent) !important; color: #fff !important; font-weight: 600 !important;
  padding: 0.625rem 1.375rem !important;
  box-shadow: 0 4px 14px -4px rgba(0, 100, 224, 0.5);
}
.nav-cta:hover { background: var(--accent-deep) !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 0.625rem; cursor: pointer; }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; stroke: var(--ink); }
@media (max-width: 56rem) {
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav {
    display: none; position: absolute; top: 4.25rem; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 255, 255, 0.98); padding: 0.75rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 0.875rem 0.5rem; border-radius: var(--r-sm); }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(42rem 26rem at 88% 8%, rgba(0, 100, 224, 0.14), transparent 60%),
    radial-gradient(36rem 24rem at 8% 90%, rgba(123, 47, 247, 0.10), transparent 60%),
    radial-gradient(30rem 20rem at 55% 110%, rgba(0, 180, 216, 0.08), transparent 60%),
    #ffffff;
  color: var(--ink);
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6.5rem);
  position: relative; overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0, 100, 224, 0.25); border-radius: 999px;
  padding: 0.4375rem 1rem; margin-bottom: 1.75rem;
  background: var(--accent-soft);
}
.hero h1 {
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  margin: 0 0 1.5rem; max-width: 16ch; text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #0064e0, #7b2ff7 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(1.125rem, 2.4vw, 1.375rem); color: var(--ink-2); max-width: 38rem; margin: 0 0 2.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.875rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; font-size: 1rem; border-radius: 999px; cursor: pointer;
  padding: 0.9375rem 2.125rem; border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px -8px rgba(0, 100, 224, 0.55); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 32px -8px rgba(0, 100, 224, 0.65); }
.btn-ghost { background: var(--accent-soft); color: var(--accent); }
.btn-ghost:hover { background: #dbe9fd; color: var(--accent-deep); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--ink); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3.5rem; }
.hero-stat b {
  display: block; font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.02em; font-weight: 800;
  background: linear-gradient(100deg, #0064e0, #7b2ff7); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat span { color: var(--ink-2); font-size: 0.9375rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(38rem 22rem at 90% 0%, rgba(0, 100, 224, 0.10), transparent 60%),
    radial-gradient(30rem 20rem at 5% 100%, rgba(123, 47, 247, 0.08), transparent 60%),
    #ffffff;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem); letter-spacing: -0.025em; font-weight: 800;
  line-height: 1.06; margin: 0 0 1.25rem; max-width: 20ch; text-wrap: balance;
}
.page-hero .lede { font-size: 1.25rem; color: var(--ink-2); max-width: 42rem; margin: 0; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 0.875rem; color: var(--ink-2); margin: 0 0 1.5rem; }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.crumbs .sep { margin: 0 0.5rem; color: var(--ink-3); }

/* ---------- Sections & cards ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.875rem; }
.section-title { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.03em; font-weight: 800; line-height: 1.08; margin: 0 0 1rem; text-wrap: balance; }
.section-sub { color: var(--ink-2); font-size: 1.125rem; margin: 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; }
.card {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 1.75rem; box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 2px 4px rgba(28, 30, 33, 0.06), 0 20px 48px -16px rgba(0, 100, 224, 0.22); }
.card-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.card-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.card-desc { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; }
.card-cta { margin-top: auto; padding-top: 0.75rem; font-weight: 700; font-size: 0.9375rem; color: var(--accent); }
.card-cta::after { content: " →"; }

/* ---------- Calculator ---------- */
.calc-shell { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 6rem); background: var(--bg-soft); }
.calc-app {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.75rem);
  scroll-margin-top: 6rem;
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 52rem) { .calc-grid { grid-template-columns: 1fr; } }
.calc-inputs h2, .calc-results h2 {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 1.25rem;
}
.field { margin-bottom: 1.125rem; }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.375rem; }
.field input[type="text"], .field input:not([type]), .field input[type="number"], .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid #ccd0d5; border-radius: var(--r-md); padding: 0.75rem 1rem;
  background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 100, 224, 0.15);
}
.field .hint { font-size: 0.8125rem; color: var(--ink-2); margin-top: 0.375rem; }
.field input[type="range"] { width: 100%; accent-color: var(--accent); }
.calc-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.calc-actions .btn { padding: 0.875rem 1.875rem; }
.btn-ghost.calc-reset { background: var(--bg-soft); color: var(--ink); border-color: var(--line); padding: 0.75rem 1.5rem; font-size: 0.9375rem; font-weight: 600; }
.btn-ghost.calc-reset:hover { background: var(--line); color: var(--ink); }
.calc-error { background: #fdeceb; border: 1px solid #f5c6c2; color: var(--bad); border-radius: var(--r-md); padding: 0.875rem 1.125rem; margin-bottom: 1rem; font-size: 0.9375rem; }

.calc-results {
  background:
    radial-gradient(24rem 14rem at 100% 0%, rgba(0, 100, 224, 0.12), transparent 60%),
    radial-gradient(20rem 14rem at 0% 100%, rgba(123, 47, 247, 0.10), transparent 60%),
    #ffffff;
  border: 1px solid rgba(0, 100, 224, 0.18);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 3.5vw, 2.25rem); color: var(--ink);
  position: sticky; top: 6rem; box-shadow: var(--shadow-sm);
}
@media (max-width: 52rem) { .calc-results { position: static; } }
.result-label { font-size: 0.875rem; color: var(--ink-2); font-weight: 600; margin: 0 0 0.25rem; }
.result-value {
  font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.05; margin: 0 0 1.25rem;
  background: linear-gradient(100deg, #0064e0, #7b2ff7); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.breakdown { width: 100%; border-collapse: collapse; margin: 0; border-top: 1px solid var(--line); }
.breakdown th, .breakdown td { padding: 0.6875rem 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; vertical-align: top; }
.breakdown th { text-align: left; font-weight: 700; padding-right: 1rem; }
.breakdown tr td:last-child { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.line-note { font-size: 0.8125rem; color: var(--ink-2); margin-top: 0.25rem; }
.calc-notes-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); margin: 1.75rem 0 0.75rem; }
.calc-notes { margin: 0; padding-left: 1.25rem; font-size: 0.875rem; color: var(--ink-2); }
.calc-notes li { margin: 0 0 0.5rem; }
.calc-notes li::marker { color: var(--accent); }

/* ---------- Article prose ---------- */
.article-layout { padding: 0 0 clamp(3.5rem, 7vw, 6rem); }
.prose { max-width: var(--prosew); }
.prose > :first-child { margin-top: 0; }
.prose .lede { font-size: 1.375rem; line-height: 1.55; color: var(--ink); font-weight: 400; letter-spacing: -0.01em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.375rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); letter-spacing: -0.02em; font-weight: 800; line-height: 1.2; margin: 3rem 0 1.125rem; }
.prose h3 { font-size: 1.25rem; letter-spacing: -0.015em; font-weight: 700; margin: 2.25rem 0 0.875rem; }
.prose h4 { font-size: 1.0625rem; margin: 1.75rem 0 0.625rem; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 2rem; font-size: 0.9375rem; display: block; overflow-x: auto; }
.prose thead th, .prose table tr:first-child th { text-align: left; font-weight: 700; padding: 0.75rem 1rem; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.prose tbody td, .prose tbody th { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:hover td { background: var(--bg-soft); }
.prose blockquote {
  margin: 0 0 1.75rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--accent);
  background: var(--accent-tint); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 0 0 2rem; }
.prose figcaption { font-size: 0.875rem; color: var(--ink-2); margin-top: 0.625rem; }
.byline {
  margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.9375rem; color: var(--ink-2);
}
[data-sources] { margin-top: 2.5rem; }
[data-sources] h2 { font-size: 1.125rem; margin-bottom: 0.75rem; }
[data-sources] ul { font-size: 0.875rem; color: var(--ink-2); }
[data-disclaimer] { font-size: 0.875rem; color: var(--ink-2); }

/* ---------- FAQ ---------- */
[data-faq] { margin: 3rem 0; }
[data-faq] h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); letter-spacing: -0.02em; font-weight: 800; margin: 0 0 1.25rem; }
[data-faq] details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  margin-bottom: 0.75rem; overflow: hidden; transition: box-shadow 0.2s ease;
}
[data-faq] details[open] { box-shadow: var(--shadow-sm); }
[data-faq] summary {
  cursor: pointer; font-weight: 600; font-size: 1.0625rem; padding: 1.125rem 1.375rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
[data-faq] summary::-webkit-details-marker { display: none; }
[data-faq] summary::after {
  content: "+"; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
[data-faq] details[open] summary::after { transform: rotate(45deg); }
[data-faq] details > div { padding: 0 1.375rem 1.375rem; color: var(--ink); }
[data-faq] details > div p:last-child { margin-bottom: 0; }

/* ---------- Related ---------- */
.related { margin-top: 4rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }

/* ---------- Trust band ---------- */
.trust-band { background: var(--grad-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; }
.trust-item b { display: block; font-size: 0.9375rem; margin-bottom: 0.375rem; letter-spacing: -0.01em; }
.trust-item p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }

/* ---------- CTA band (light, on-theme) ---------- */
.cta-band {
  background:
    radial-gradient(48rem 28rem at 85% 10%, rgba(0, 100, 224, 0.14), transparent 60%),
    radial-gradient(40rem 26rem at 8% 95%, rgba(123, 47, 247, 0.10), transparent 60%),
    linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-band .section-kicker { color: var(--accent); }
.cta-band h2 {
  color: var(--ink); font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  letter-spacing: -0.035em; font-weight: 800; line-height: 1.06;
  max-width: 20ch; margin: 0 auto 1.25rem; text-wrap: balance;
}
.cta-band h2 .grad {
  background: linear-gradient(100deg, #0064e0, #7b2ff7 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-band .lede-dark {
  color: var(--ink-2);
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  max-width: 40rem; margin: 0 auto 2.5rem; line-height: 1.6;
}
.statement-cta { display: flex; flex-wrap: wrap; gap: 0.875rem; justify-content: center; }

/* ---------- Chip selector (province, options) ---------- */
.chip-group { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.chip { position: relative; display: inline-block; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 0.6875rem 1.25rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 600; font-size: 0.9375rem; cursor: pointer; white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.chip span:hover { border-color: var(--accent-bright); transform: translateY(-1px); }
.chip input:checked + span {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(0, 100, 224, 0.55);
}
.chip input:focus-visible + span { outline: 3px solid var(--accent-bright); outline-offset: 2px; }

/* ---------- Dashboard pills (same chip language) ---------- */
.pill-row { display: flex; flex-wrap: wrap; }
.pill {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  cursor: pointer; font-weight: 600; color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.pill:hover { border-color: var(--accent-bright); }
.pill[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(0, 100, 224, 0.55);
}
.pill[aria-pressed="true"] .pill-name { color: #fff; }
.choice-row {
  display: inline-flex; align-items: center; gap: 0.625rem;
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  cursor: pointer; font-weight: 600; color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice-row:hover { border-color: var(--accent-bright); }
.choice-row[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.choice-dot {
  width: 1.125rem; height: 1.125rem; border-radius: 50%; flex: none;
  border: 2px solid var(--ink-3); background: #fff; transition: all 0.15s ease;
}
.choice-row[aria-pressed="true"] .choice-dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #fff; }

/* ---------- Sliders ---------- */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 0.5rem; border-radius: 999px; cursor: pointer;
  background: linear-gradient(to right, var(--accent) 0%, var(--violet) var(--fill, 50%), var(--line) var(--fill, 50%), var(--line) 100%);
  outline-offset: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
  box-shadow: 0 2px 10px rgba(0, 100, 224, 0.4);
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 1.125rem; height: 1.125rem; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
  box-shadow: 0 2px 10px rgba(0, 100, 224, 0.4);
}
input[type="range"]::-moz-range-track {
  height: 0.5rem; border-radius: 999px; background: var(--line);
}
input[type="range"]::-moz-range-progress {
  height: 0.5rem; border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--violet));
}

/* ---------- Number / money inputs ---------- */
.input-wrap { position: relative; display: block; }
.input-wrap .adorn {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-weight: 700; color: var(--ink-2); font-size: 1.0625rem; pointer-events: none;
}
.input-wrap .adorn.pre { left: 1.125rem; }
.input-wrap .adorn.post { right: 1.125rem; }
.input-wrap input { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.0625rem; }
.input-wrap .adorn.pre + input { padding-left: 2.375rem; }
.input-wrap.has-post input { padding-right: 2.375rem; }
/* Down-payment style fields that can be entered as either a percent or a
   dollar amount: the active input takes the row, the %/$ toggle sits beside it. */
.dual-unit { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.dual-unit .input-wrap { flex: 1 1 12rem; min-width: 0; }
.dual-unit .unit-switch { flex: 0 0 auto; gap: 0.375rem; }
.dual-unit .unit-switch .chip span { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
.dual-unit .input-wrap[hidden] { display: none; }
/* Hide native number spinners for a cleaner, app-like feel */
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- Toggle switches ---------- */
.field input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  width: 3.25rem; height: 1.875rem; border-radius: 999px; flex: none;
  background: var(--line); cursor: pointer; position: relative;
  transition: background 0.2s ease; margin: 0.25rem 0;
}
.field input[type="checkbox"]::after {
  content: ""; position: absolute; top: 0.1875rem; left: 0.1875rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.field input[type="checkbox"]:checked { background: var(--accent); }
.field input[type="checkbox"]:checked::after { transform: translateX(1.375rem); }
.field input[type="checkbox"]:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }

/* ---------- Dashboard field polish ---------- */
.dash-scenario .field-value-box {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid #ccd0d5; border-radius: var(--r-md); background: #fff;
  padding: 0.625rem 1rem; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dash-scenario .field-value-box:focus-within {
  border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 100, 224, 0.15);
}
.dash-scenario .field-value-box .prefix,
.dash-scenario .field-value-box .suffix { font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.dash-scenario .field-value-box input {
  border: 0; outline: 0; font: inherit; font-weight: 600; width: 100%;
  font-variant-numeric: tabular-nums; background: transparent; padding: 0;
}
.dash-scenario .field-label { font-weight: 600; font-size: 0.9375rem; display: block; margin-bottom: 0.375rem; }
.dash-scenario input[type="range"] { margin-top: 0.875rem; }
.dash-mini-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.375rem 0; font-size: 0.875rem; border-bottom: 1px solid var(--line);
}
.dash-mini-row:last-child { border-bottom: 0; }

/* ---------- Dashboard components carried over from the previous single-page
   app's stylesheet (app.css) but never ported here during the redesign ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; }
.dash-remove {
  background: transparent; border: 0; color: var(--ink-2); font-size: 0.75rem; font-weight: 600;
  cursor: pointer; padding: 0.25rem 0.5rem; border-radius: var(--r-sm);
}
.dash-remove:hover { background: var(--bg-soft); color: var(--bad); }
.card-dark { border-radius: var(--r-xl); background: var(--ink); color: #fff; padding: 26px; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-sm { padding: 0.5625rem 0.9375rem; font-size: 0.75rem; }
.choice-list { display: grid; gap: 0.5625rem; }
.choice-label { flex: 1; min-width: 0; }
.choice-label .main { display: block; }
.choice-label .why { display: block; font-size: 0.71875rem; font-weight: 500; color: var(--ink-2); margin-top: 0.125rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); color: var(--ink-2); padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; margin-top: 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
@media (max-width: 52rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { color: var(--ink); font-weight: 700; font-size: 1.25rem; display: inline-flex; align-items: center; gap: 0.625rem; margin-bottom: 1rem; }
.footer-brand:hover { text-decoration: none; }
.footer-brand img { width: 2rem; height: 2rem; }
.footer-tag { font-size: 0.9375rem; max-width: 22rem; }
.footer-col-heading { color: var(--ink); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.625rem; }
.footer-col a { color: var(--ink-2); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--accent); }
.footer-base { border-top: 1px solid var(--line); padding-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; font-size: 0.8125rem; color: var(--ink-2); }
.footer-base a { color: var(--ink-2); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300;
  background: rgba(255, 255, 255, 0.96); color: var(--ink);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 1.25rem 1.5rem;
  display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap;
  max-width: 56rem; margin: 0 auto;
  animation: rise 0.35s ease;
}
@keyframes rise { from { transform: translateY(1rem); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-banner p { margin: 0; font-size: 0.875rem; flex: 1 1 20rem; }
.cookie-banner a { color: var(--accent); }
.cookie-banner .btn { padding: 0.625rem 1.5rem; font-size: 0.9375rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Misc ---------- */
.group-anchor { scroll-margin-top: 6rem; }
.group-title { font-size: clamp(1.5rem, 3.4vw, 2.125rem); letter-spacing: -0.02em; font-weight: 800; margin: 3.5rem 0 0.5rem; }
.group-sub { color: var(--ink-2); margin: 0 0 1.75rem; max-width: 44rem; }
.disclaimer-note { font-size: 0.8125rem; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.25rem; margin-top: 3rem; }
.verify-flag { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: var(--r-sm); padding: 0.125rem 0.5rem; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.featured-img { border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
