/* How Much Does It Cost USA, Ranking First design.
   Clean white default, one accent only: emerald green.
   Big prices, big type, visible motion that never hides content.
   Base state of every element is fully visible without JavaScript.
   JavaScript only ADDS animation classes; nothing starts hidden.
   No em dashes in content. */

:root[data-theme="light"] {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-soft: #F2F7F4;
  --surface-green: #0B7A5F;
  --surface-green-2: #095E4A;
  --ink: #10201B;
  --muted: #5A6B64;
  --border: #DCE7E1;
  --green: #0B7A5F;
  --green-dark: #095E4A;
  --gold: #0B7A5F;
  --gold-dark: #095E4A;
  --teal: #0B7A5F;
  --accent: #0B7A5F;
  --accent-dark: #095E4A;
  --accent-bright: #0E9C7A;
  --accent-tint: #E3F2EC;
  --accent-soft: #F2F7F4;
  --danger: #B3261E;
  --shadow: 0 2px 10px rgba(16, 32, 27, 0.07);
  --shadow-lift: 0 10px 28px rgba(16, 32, 27, 0.14);
  --radius: 16px;
  --hero-bg: #FFFFFF;
  --hero-ink: #10201B;
  --hero-muted: #5A6B64;
  --hero-border: #DCE7E1;
  --hero-kicker: #0B7A5F;
  --post-answer-bg: #E3F2EC;
  --post-answer-border: #DCE7E1;
  --post-answer-note: #5A6B64;
  --post-table-head: #0B7A5F;
  --post-zebra: #F2F7F4;
  --post-total-bg: #E3F2EC;
  --post-check-bg: #E3F2EC;
  --post-x-bg: #FDECEA;
  --post-faq-open: #F2F7F4;
}

:root[data-theme="dark"] {
  --bg: #0E1B16;
  --surface: #152620;
  --surface-soft: #1D322A;
  --surface-green: #0B7A5F;
  --surface-green-2: #0E9C7A;
  --ink: #EDF5F0;
  --muted: #A9BDB3;
  --border: #2C463B;
  --green: #3DD598;
  --green-dark: #7CE8BE;
  --gold: #3DD598;
  --gold-dark: #7CE8BE;
  --teal: #3DD598;
  --accent: #3DD598;
  --accent-dark: #7CE8BE;
  --accent-bright: #3DD598;
  --accent-tint: #123528;
  --accent-soft: #1D322A;
  --danger: #FF9A90;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 10px 28px rgba(0, 0, 0, 0.55);
  --radius: 16px;
  --hero-bg: #0E1B16;
  --hero-ink: #EDF5F0;
  --hero-muted: #A9BDB3;
  --hero-border: #2C463B;
  --hero-kicker: #3DD598;
  --post-answer-bg: #123528;
  --post-answer-border: #2C463B;
  --post-answer-note: #A9BDB3;
  --post-table-head: #0B7A5F;
  --post-zebra: #1A2E26;
  --post-total-bg: #123528;
  --post-check-bg: #123528;
  --post-x-bg: #3A1F1C;
  --post-faq-open: #1A2E26;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #FFFFFF; color: #10201B; padding: 8px 12px; white-space: nowrap;
}
.skip-link:focus { left: 8px; top: 8px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(38px, 5.5vw, 60px); letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.6em; }
h3 { font-size: 21px; margin-top: 1.4em; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img, svg { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap > p, .wrap > ul, .wrap > ol, .wrap > h2, .wrap > h3 { max-width: 860px; }
main { min-height: 60vh; }
section { padding: 36px 0; }
section.wrap > h1 {
  padding-bottom: 16px;
  border-bottom: 3px solid var(--accent);
  margin-bottom: 20px;
}
/* Homepage section headings get a short accent rule underneath. */
section.wrap > h2::after {
  content: ""; display: block; width: 56px; height: 4px;
  background: var(--accent); border-radius: 4px; margin-top: 12px;
}

/* Motion: everything is fully visible by default. JavaScript adds .rise
   only when an element scrolls into view, and the keyframe starts at
   near-visible (opacity 0.85, 10px down) so there is never a blank flash.
   Counters and price bars are also set by JavaScript only; the HTML
   already holds the final numbers and widths. */
@keyframes rise-in {
  from { opacity: 0.85; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise-in 0.5s ease both; }
@keyframes pop-in {
  from { transform: scale(0.96); }
  to { transform: scale(1); }
}
.hero-card.rise { animation: rise-in 0.5s ease both, pop-in 0.5s ease both; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(16, 32, 27, 0.03);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  padding-top: 10px; padding-bottom: 10px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: #FFFFFF;
  font-family: "Public Sans", sans-serif; font-size: 26px; font-weight: 800;
  flex: none;
}
.logo-text {
  font-family: "Public Sans", sans-serif; font-weight: 800;
  font-size: 19px; line-height: 1.1; color: var(--ink); white-space: nowrap;
}
.logo-tag {
  display: block; font-family: "Public Sans", sans-serif; font-weight: 700;
  font-size: 10px; letter-spacing: 0.14em; color: var(--muted);
}
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 10px 12px; border-radius: 999px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.site-nav a:hover { background: var(--accent-tint); color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface-soft);
  color: var(--ink); cursor: pointer; flex: none;
}
.nav-toggle {
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-soft);
  color: var(--ink); cursor: pointer; flex: none;
}
.nav-toggle .bar {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.theme-toggle:hover { background: var(--border); }
.theme-toggle .theme-icon { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-gold { background: var(--accent); color: #FFFFFF; }
.btn-gold:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent-tint); }
.head-cta { min-height: 42px; padding: 9px 15px; font-size: 15px; white-space: nowrap; flex: none; }

/* Hero: big answer first, animated counter card on the right. */
.hero {
  background:
    radial-gradient(720px 260px at 85% -40px, var(--accent-tint), transparent 70%),
    radial-gradient(560px 220px at -5% 0, var(--accent-tint), transparent 65%),
    var(--hero-bg);
  color: var(--hero-ink);
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--hero-border);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: center; }
.hero h1 { color: var(--hero-ink); margin-bottom: 0.4em; }
.hero h1 .accent { color: var(--accent); }
.hero h1 .accent-u {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 6px;
  text-underline-offset: 8px;
  text-decoration-color: var(--accent);
}
.hero .kicker { color: var(--hero-kicker); }
.hero p.lede { color: var(--hero-muted); font-size: 19px; max-width: 640px; }
.hero-answer { font-size: 19px; color: var(--hero-ink); max-width: 640px; }
.hero-answer a { font-weight: 700; }
.hero .btn-gold { margin-right: 10px; }
.updated-line { font-size: 14px; color: var(--muted); margin-top: 6px; }
.hero-updated {
  display: inline-block; background: var(--accent-tint); color: var(--accent-dark);
  font-weight: 800; font-size: 13px; letter-spacing: 0.04em;
  border-radius: 999px; padding: 6px 14px; margin: 0 0 14px;
}
.search-notice { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin: 16px 0; }
.search-notice p { margin: 0 0 8px; }
.search-notice ul { margin: 8px 0 0; padding-left: 20px; }
.search-notice a { font-weight: 700; }
.ticker {
  background: var(--accent); color: #FFFFFF; overflow: hidden;
  font-weight: 800; font-size: 14px; white-space: nowrap; padding: 10px 0;
}
.ticker-track { display: inline-flex; white-space: nowrap; animation: ticker-scroll 28s linear infinite; will-change: transform; width: max-content; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker span { display: inline-block; padding: 0 18px; }

/* Hero counter card: the big animated price. The HTML holds $1,240, so
   the final price is visible even with JavaScript off. */
.hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 6px solid var(--accent);
  border-radius: 20px; box-shadow: var(--shadow-lift); padding: 28px 28px 24px;
}
.hero-card-label { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.hero-card-title { font-family: "Public Sans", sans-serif; font-size: 22px; font-weight: 800; color: var(--hero-ink); margin-bottom: 4px; }
.hero-card-price { font-family: "Public Sans", sans-serif; font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.hero-counter {
  display: block; font-size: clamp(56px, 6vw, 72px); line-height: 1;
  font-weight: 800; letter-spacing: -0.03em; color: var(--accent);
  margin: 2px 0 4px; font-variant-numeric: tabular-nums;
}
.hero-card-range { font-weight: 800; font-size: 16px; color: var(--hero-muted); margin: 8px 0 12px; }
.hero-card-range-bar { height: 10px; background: var(--surface-soft); border-radius: 999px; overflow: hidden; margin: 10px 0 4px; }
.hero-card-range-bar span { display: block; height: 100%; width: 50%; background: var(--accent); border-radius: 999px; }
.hero-card-note { font-size: 14px; color: var(--hero-muted); margin-bottom: 0; }
.hero-card-note a { font-weight: 700; }

/* Trust row under the hero. */
.trust-row {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 28px;
}
.trust-row li { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--hero-muted); }
.trust-row li::before { content: "\2713"; color: var(--accent); font-weight: 800; }

/* Search */
.search-box { display: flex; gap: 10px; margin: 20px 0 8px; max-width: 640px; }
.search-box input {
  flex: 1; min-height: 52px; padding: 12px 16px; border-radius: 999px;
  border: 2px solid var(--border); background: var(--surface); color: var(--ink);
  font-size: 16px;
}
.search-box input:focus { outline: 3px solid var(--accent-tint); border-color: var(--accent); }
:root[data-theme="dark"] .search-box input::placeholder { color: #B7C8BE; opacity: 1; }
:root[data-theme="dark"] .search-box input::-webkit-input-placeholder { color: #B7C8BE; opacity: 1; }
.search-results { list-style: none; margin: 8px 0 0; padding: 0; max-width: 640px; }
.search-results li a {
  display: block; background: var(--surface); color: var(--ink); text-decoration: none;
  padding: 12px 16px; border-radius: 12px; margin-bottom: 6px; font-weight: 700;
  border: 1px solid var(--border);
}
.search-results li a:hover { background: var(--accent-tint); }

/* Cards and grids */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex; flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--accent); }
/* Card icon band: short and rich, big icon on the left, category tag and
   price range on the right, so the band carries real content. */
.card-art {
  flex: none;
  margin: -24px -24px 18px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--accent-tint) 0%, var(--surface-soft) 100%);
  border-bottom: 2px solid var(--accent);
  border-radius: 16px 16px 0 0;
  color: var(--accent);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-art svg { width: 44px; height: 44px; display: block; flex: none; }
.card-art-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.card-art-price { font-weight: 800; font-size: 17px; color: var(--ink); white-space: nowrap; }
.card-icon {
  width: 52px; height: 52px; border-radius: 16px; flex: none;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 14px;
}
.card-icon svg { width: 26px; height: 26px; display: block; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-cat {
  display: inline-block; background: var(--accent-tint); color: var(--accent-dark);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
}
/* Price bar: inline width in the HTML is the final state. JavaScript
   animates from 0 to that width on scroll; without JavaScript the bar
   simply shows at its final width. */
.price-bar { height: 12px; background: var(--border); border-radius: 999px; overflow: hidden; margin: 14px 0 6px; }
.price-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-bright), var(--accent)); border-radius: 999px; transition: width 0.6s ease; }
.price-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 700; }
.card a { text-decoration: none; }
.card a:hover { text-decoration: underline; }
.card .card-cta, .card a.card-cta {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; font-weight: 800;
  color: var(--accent); text-decoration: none; margin-top: auto; padding: 9px 16px;
  border: 1px solid var(--accent); border-radius: 999px; font-size: 15px;
}
.card .card-cta:hover, .card a.card-cta:hover { color: #FFFFFF; text-decoration: none; background: var(--accent); border-color: var(--accent); }
.bucket-links { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bucket-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-soft);
}
.bucket-links a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.bucket-links a span { color: var(--accent); font-weight: 800; }
.bucket-links a:hover span { transform: translateX(3px); }
.card h3 { margin-top: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card .meta { color: var(--muted); font-size: 14px; font-weight: 600; }
.card .price { font-family: "Public Sans", sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); white-space: nowrap; }
.tag {
  display: inline-block; background: var(--surface-soft); color: var(--muted);
  border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700;
}
.tag-gold { background: var(--accent-tint); color: var(--accent-dark); }
.bucket { border-top: 4px solid var(--accent); }
.bucket h3 { font-size: 22px; }
.card-wide { grid-column: 1 / -1; }

/* How it works strip on the homepage. */
.how-it-works { padding-top: 8px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.how-steps li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.how-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #FFFFFF; font-size: 20px; font-weight: 800;
  margin-bottom: 12px;
}
.how-steps h3 { margin: 0 0 6px; font-size: 20px; }
.how-steps p { margin: 0; font-size: 15px; color: var(--muted); }

/* Calculator */
.calc {
  background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); margin: 24px 0;
}
.calc-field { margin-bottom: 16px; }
.calc-field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); font-size: 15px; }
.calc-field select, .calc-field input[type="number"], .calc-field input[type="range"] {
  width: 100%; min-height: 48px; padding: 10px 12px; font-size: 16px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--ink);
}
.calc-field input[type="range"] { padding: 0; }
.calc-field .hint { color: var(--muted); font-size: 14px; margin-top: 4px; }
.calc-field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; border-width: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B7A5F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  padding-right: 44px;
}
.calc-field select:focus, .calc-field input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 122, 95, 0.15);
}
.calc-field input[type="range"] { accent-color: var(--accent); height: 28px; }
.receipt {
  background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--accent);
  border-radius: 12px; padding: 18px; margin-top: 20px;
}
.receipt h3 { margin-top: 0; }
.receipt .receipt-total {
  font-family: "Public Sans", sans-serif; font-size: 44px; font-weight: 800;
  letter-spacing: -0.02em; color: var(--accent); line-height: 1.1;
}
.receipt .receipt-range { font-size: 15px; color: var(--muted); font-weight: 600; }
.receipt table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.receipt td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.receipt td:last-child { text-align: right; font-weight: 600; }
.receipt-bar { margin-top: 14px; }
.live-note {
  display: inline-block; background: var(--accent-tint); color: var(--accent-dark); font-weight: 800;
  border-radius: 999px; padding: 6px 14px; font-size: 14px;
}

/* Price bands, with a visual Low / Typical / High track above them. */
.bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0 20px; position: relative; }
.bands::before {
  content: ""; grid-column: 1 / -1; height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--surface-soft) 0 30%, var(--accent) 30% 70%, var(--surface-soft) 70% 100%);
  margin-bottom: -4px;
}
.band {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
  text-align: center; background: var(--surface); position: relative;
}
.band-typical { border: 2px solid var(--accent); background: var(--accent-tint); }
.band .band-label { font-weight: 800; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.band .band-price { font-family: "Public Sans", sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); margin: 6px 0; }
.band-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #FFFFFF;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap; margin: 0;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0; }
.table-hint { display: none; }
table.cost-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--surface); }
.cost-table th, .cost-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.cost-table th { background: var(--surface-green); color: #FFFFFF; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.cost-table td:last-child, .cost-table th:last-child,
.cost-table td:nth-child(3), .cost-table th:nth-child(3),
.cost-table td:nth-child(4), .cost-table th:nth-child(4) { text-align: right; font-weight: 600; }
.cost-table tbody tr:hover td { background: var(--surface-soft); }
.cost-table tr.total td { font-weight: 800; border-top: 2px solid var(--accent); }
.cost-table caption { text-align: left; font-weight: 700; padding-bottom: 8px; }

/* Answer box, steps, lists */
.answer {
  background: var(--accent-tint); border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0; padding: 18px 20px; margin: 20px 0;
}
.answer p { margin: 0; font-size: 18px; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; padding: 12px 0 12px 48px; position: relative; border-bottom: 1px solid var(--border); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 12px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent);
  color: #FFFFFF; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 6px 0 6px 30px; position: relative; }
.checklist li::before { content: "\2713"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }
.checklist-x li::before { content: "\2715"; color: var(--danger); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col > div {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; background: var(--surface);
}
.two-col > div h3 { margin-top: 0; }
.note { color: var(--muted); font-size: 14px; }
.kicker { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; }
.crumb { color: var(--muted); font-size: 14px; }
.post-date { color: var(--muted); font-size: 14px; font-weight: 600; }
.page-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); margin: 0 0 4px; }
.page-byline strong { color: var(--ink); }
.page-byline .byline-dot { color: var(--accent); font-weight: 800; }

/* FAQ */
details.faq {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px;
  margin-bottom: 10px; background: var(--surface);
}
details.faq summary {
  font-weight: 800; cursor: pointer; min-height: 48px;
  display: flex; align-items: center; list-style: none; gap: 12px;
}
details.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-left: auto;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
details.faq[open] summary::after { transform: rotate(225deg); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq p { margin: 10px 0 4px; }

/* Footer, minimal and short as it is. */
.site-footer { background: var(--surface); color: var(--muted); margin-top: 40px; padding: 32px 0 20px; border-top: 3px solid var(--accent); }
.site-footer a { color: var(--ink); text-decoration: none; display: block; padding: 10px 0; font-weight: 500; min-height: 44px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .logo-text { color: var(--ink); white-space: nowrap; }
.site-footer .logo { flex-wrap: nowrap; }
.site-footer .logo-tag { color: var(--muted); }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 260px; font-weight: 500; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; }
.footer-col h2 { color: var(--ink); font-size: 15px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.08em; font-family: "Public Sans", sans-serif; }
.footer-note { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 14px; font-size: 14px; color: var(--muted); }
.footer-note p { margin-bottom: 4px; }

/* Forms */
.contact-form label { display: block; font-weight: 700; margin: 14px 0 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; min-height: 48px; padding: 10px 12px; font-size: 16px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink);
}
.contact-form textarea { min-height: 140px; }

/* References as normal blog external links. Related keeps cards. */
.chip-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
}
.chip-list a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.refs { margin: 16px 0 0; }
.refs p { margin: 0 0 10px; font-size: 15px; }
.refs a { color: var(--accent); font-weight: 700; text-decoration: none; }
.refs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.refs .ref-note { color: var(--muted); font-size: 14px; }
.related-grid { margin-top: 16px; }
.related-card { padding: 20px; }
.related-card h3 { font-size: 19px; }

/* Guide pages, scoped under .post. */
.post .post-head { margin-bottom: 4px; }
.post .crumb { margin: 26px 0 0; }
.post .crumb a { text-decoration: none; font-weight: 700; }
.post .crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post .post-date {
  display: inline-block; background: var(--surface-soft);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; margin: 18px 0 0; font-size: 13px; letter-spacing: 0.02em;
}
.post h1 {
  letter-spacing: -0.025em; margin: 14px 0 8px; padding-bottom: 20px;
  border-bottom: none; position: relative;
}
.post .post-hero {
  background: transparent; border: none; box-shadow: none;
  padding: 0 0 24px; margin: 18px 0 8px;
  border-bottom: 3px solid var(--accent);
}
.post .post-hero .crumb { margin: 0 0 18px; }
.post .post-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 28px; align-items: center;
}
.post .post-kicker {
  color: var(--accent); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 13px; margin: 0 0 10px;
}
.post .post-hero h1 { border-bottom: none; padding-bottom: 0; margin: 0 0 18px; }
.post .post-byline { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.post .post-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--accent); color: #FFFFFF;
  font-family: "Public Sans", sans-serif; font-size: 24px; font-weight: 800;
}
.post .post-byline-text { display: flex; flex-direction: column; gap: 2px; }
.post .post-author { font-weight: 800; font-size: 15px; color: var(--ink); }
.post .post-byline .post-date {
  background: transparent; border: none; padding: 0; margin: 0;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.post h2 {
  font-size: clamp(26px, 3.4vw, 33px); letter-spacing: -0.02em;
  margin: 56px 0 18px; padding-top: 32px;
  border-top: 1px solid var(--border); position: relative;
}
.post h2::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 56px; height: 3px; background: var(--accent); border-radius: 3px;
}
.post h3 { font-size: 21px; letter-spacing: -0.01em; margin: 36px 0 12px; }
.post p { line-height: 1.75; margin-bottom: 18px; }
.post li { line-height: 1.7; }
.post ul, .post ol { margin-bottom: 18px; }
.post ul:not(.checklist):not(.steps):not(.chip-list) li::marker,
.post ol:not(.steps) li::marker { color: var(--accent); font-weight: 700; }
.post a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post p a, .post li a { font-weight: 600; }

/* Reading progress bar under the sticky header, guide pages only */
.post .reading-progress {
  position: sticky; top: 64px; z-index: 40;
  height: 8px; margin: 0 -8px 4px;
  background: var(--accent-tint); border-radius: 999px; overflow: hidden;
}
.post .reading-progress span {
  display: block; height: 100%; width: 0;
  background: var(--accent);
  border-radius: 999px;
}

/* Direct answer box */
.post .answer {
  background: var(--post-answer-bg);
  border: 1px solid var(--post-answer-border);
  border-left: 4px solid var(--accent);
  border-radius: 16px; padding: 24px 26px 22px;
  margin: 28px 0 8px; box-shadow: var(--shadow); max-width: 860px;
}
.post .answer p:first-child { font-size: 19px; line-height: 1.6; margin: 0; }
.post .answer p:first-child strong {
  display: block; font-size: 12.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.post .answer a { font-weight: 700; }
.post .answer p.note {
  margin: 16px 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--post-answer-border);
  font-size: 15px; line-height: 1.6; color: var(--post-answer-note);
  background: transparent; border-radius: 0;
}
.post > p.note {
  background: var(--surface-soft); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: 12px;
  padding: 14px 18px; font-size: 15px; line-height: 1.65;
  color: var(--ink); margin: 20px 0; max-width: 860px;
}
.post > p.note a { font-weight: 700; }
.post .tip {
  background: var(--surface-soft); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: 12px;
  padding: 14px 18px; font-size: 15px; line-height: 1.65; margin: 20px 0;
}
.post .warning {
  background: var(--post-x-bg); border: 1px solid var(--border);
  border-left: 4px solid var(--danger); border-radius: 12px;
  padding: 14px 18px; font-size: 15px; line-height: 1.65; margin: 20px 0;
}

/* Guide tables */
.post .table-wrap {
  max-width: 860px; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); background: var(--surface);
  margin: 24px 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.post .table-wrap::-webkit-scrollbar { height: 8px; }
.post .table-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.post table.cost-table {
  min-width: 560px; margin: 0;
  border-collapse: separate; border-spacing: 0; background: transparent;
}
.post .cost-table caption {
  caption-side: top; text-align: left; font-size: 14px; font-weight: 600;
  color: var(--muted); padding: 16px 18px 10px;
}
.post .cost-table th {
  background: var(--post-table-head); color: #FFFFFF;
  padding: 14px 16px; font-size: 13px; letter-spacing: 0.06em; border-bottom: none;
}
.post .cost-table th:first-child { border-top-left-radius: 15px; }
.post .cost-table th:last-child { border-top-right-radius: 15px; }
.post .cost-table td { padding: 13px 16px; font-size: 16px; }
.post .cost-table tbody tr:nth-child(even) td { background: var(--post-zebra); }
.post .cost-table tbody tr:last-child td { border-bottom: none; }
.post .cost-table tbody tr:hover td { background: var(--surface-soft); }
.post .cost-table tr.total td {
  background: var(--post-total-bg); border-top: 2px solid var(--accent);
  font-weight: 800; color: var(--ink); font-size: 16px; padding: 15px 16px;
}
.post .cost-table td.best-for { font-weight: 600; }
.post .cost-table.prose-last td:last-child,
.post .cost-table.prose-last th:last-child { text-align: left; }
.post .cost-table.prose-4 td:nth-child(n+4),
.post .cost-table.prose-4 th:nth-child(n+4) { text-align: left; }

/* Checklists and steps on guide pages */
.post .checklist li { padding: 11px 0 11px 38px; border-bottom: 1px solid var(--border); }
.post .checklist li:last-child { border-bottom: none; }
.post .checklist li::before {
  left: 0; top: 11px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--post-check-bg); color: var(--accent); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.post .checklist-x li::before { background: var(--post-x-bg); color: var(--danger); }
.post .checklist li strong { color: var(--ink); }
.post .steps li { padding: 18px 0 18px 58px; }
.post .steps li:last-child { border-bottom: none; }
.post .steps li::before {
  top: 16px; width: 38px; height: 38px; font-size: 16px;
  box-shadow: 0 2px 8px rgba(16, 32, 27, 0.18);
}
.post .steps li strong { color: var(--ink); }
.post .two-col { gap: 18px; margin: 24px 0; max-width: 860px; }
.post .two-col > div { padding: 24px; box-shadow: var(--shadow); }
.post .two-col h3 { margin-top: 0; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.post .two-col .checklist { margin-bottom: 0; }

/* FAQ on guide pages */
.post details.faq {
  border-radius: 16px; padding: 4px 20px; margin-bottom: 12px;
  box-shadow: var(--shadow); max-width: 860px;
}
.post details.faq[open] { border-color: var(--accent); background: var(--post-faq-open); }
.post details.faq summary { font-size: 17px; line-height: 1.45; padding: 14px 0; }
.post details.faq summary::after { width: 11px; height: 11px; border-right-width: 2.5px; border-bottom-width: 2.5px; }
.post details.faq p {
  margin: 0 0 18px; padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 16px; line-height: 1.7; color: var(--ink);
}

/* References and related cards on guide pages */
.post .refs {
  border-top: 1px solid var(--border); padding-top: 18px;
  margin-top: 8px; max-width: 860px;
}
.post .refs p { font-size: 15px; color: var(--muted); line-height: 1.7; }
.post .refs a { font-weight: 700; }
.post .related-grid { margin-top: 20px; }
.post .related-card { padding: 24px; }
.post .related-card h3 { font-size: 20px; margin: 14px 0 8px; }
.post .related-card .price { font-size: 23px; white-space: nowrap; }
.post .related-card .card-cta { margin-top: auto; }
.post .chip-list { margin: 20px 0 8px; }
.post .chip-list a { padding: 12px 18px; box-shadow: var(--shadow); }

/* Share row */
.post .share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; }
.post .share-row-bottom { margin: 36px 0 8px; padding-top: 24px; border-top: 1px solid var(--border); }
.post .share-label { font-weight: 800; font-size: 14px; color: var(--muted); margin-right: 2px; }
.post .share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--ink); font-weight: 700; font-size: 14px; font-family: inherit;
  text-decoration: none; cursor: pointer;
}
.post .share-btn svg { width: 15px; height: 15px; flex: none; display: block; }
.post .share-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.post button.share-btn { line-height: 1.2; }

/* Layout: sticky TOC rail on desktop, full-width contents card on mobile */
.post .post-layout {
  display: grid; grid-template-columns: 232px minmax(0, 1fr);
  gap: 40px; align-items: start; margin-top: 24px;
}
.post .post-toc {
  display: none; position: sticky; top: 120px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow); padding: 20px;
}
.post .post-toc.is-ready { display: block; }
.post .post-toc-title {
  font-family: "Public Sans", sans-serif; font-weight: 800;
  font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 10px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.post .post-toc-list { list-style: none; margin: 0; padding: 0; }
.post .post-toc-list li { margin: 0; }
.post .post-toc-list a {
  display: block; padding: 8px 10px; border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0; color: var(--muted);
  font-size: 14.5px; font-weight: 600; line-height: 1.4; text-decoration: none;
}
.post .post-toc-list a:hover { color: var(--accent); text-decoration: none; }
.post .post-toc-list a.is-active {
  color: var(--accent); font-weight: 800;
  border-left-color: var(--accent); background: var(--surface-soft);
}
.post .post-body { min-width: 0; }
.post .post-body > p, .post .post-body > ul, .post .post-body > ol { font-size: 18px; line-height: 1.7; }
.post .post-body > p { margin-bottom: 20px; max-width: 720px; }
.post .post-body > ul, .post .post-body > ol { max-width: 720px; }
.post .post-body > h2, .post .post-body > h3 { max-width: 720px; scroll-margin-top: 120px; }
.post .post-body .answer, .post .post-body .key-takeaways,
.post .post-body .pull-quote, .post .post-body details.faq,
.post .post-body .refs { max-width: 720px; }
.post .post-body details.faq p { font-size: 18px; line-height: 1.7; }
.post .post-body .table-wrap, .post .post-body .two-col { max-width: 860px; }

/* Key facts box: built from facts already stated on the same page. */
.post .key-takeaways {
  background: var(--accent-tint); border: 1px solid var(--border); border-top: 4px solid var(--accent);
  border-radius: 16px; padding: 22px 26px; margin: 20px 0 8px;
  box-shadow: var(--shadow); max-width: 720px;
}
.post .key-takeaways-title {
  font-family: "Public Sans", sans-serif; font-weight: 800;
  font-size: 17px; letter-spacing: 0.02em; color: var(--ink);
  margin: 0 0 10px;
}
.post .key-takeaways ul { margin: 0; padding-left: 20px; }
.post .key-takeaways li { font-size: 17px; line-height: 1.65; margin-bottom: 8px; }
.post .key-takeaways li:last-child { margin-bottom: 0; }
.post .key-takeaways li::marker { color: var(--accent-dark); font-weight: 800; }

/* Pull-quote callout */
.post .pull-quote {
  background: var(--accent-tint); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 16px; padding: 22px 26px; margin: 28px 0;
  box-shadow: var(--shadow); max-width: 720px;
}
.post .pull-quote-label {
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-dark); margin: 0 0 8px;
}
.post .pull-quote p:last-child {
  font-size: 22px; line-height: 1.55; font-style: italic;
  color: var(--ink); margin: 0;
}
.post .pull-quote p:last-child::before {
  content: "\201C"; font-family: Georgia, "Times New Roman", serif;
  font-size: 48px; line-height: 0; color: var(--accent);
  margin-right: 4px; vertical-align: -0.35em; font-style: normal;
}
.post .pull-quote p:last-child::after {
  content: "\201D"; font-family: Georgia, "Times New Roman", serif;
  font-size: 48px; line-height: 0; color: var(--accent);
  margin-left: 4px; vertical-align: -0.35em; font-style: normal;
}

/* Mid-guide calculator banner, inserted by JS after the first table */
.post .calc-banner {
  background: var(--surface-green); color: #FFFFFF;
  border-radius: var(--radius); padding: 24px 28px; margin: 28px 0;
  box-shadow: var(--shadow); max-width: 860px;
}
.post .calc-banner-label {
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: #D2F2E6; margin: 0 0 8px;
}
.post .calc-banner-title {
  font-family: "Public Sans", sans-serif; font-weight: 800;
  font-size: 24px; line-height: 1.3; color: #FFFFFF; margin: 0 0 16px;
}
.post .calc-banner-note {
  font-size: 15px; line-height: 1.6; color: #D2F2E6; margin: 0 0 16px;
}
.post .calc-banner .btn { margin: 0; background: #FFFFFF; color: var(--accent-dark); }
.post .calc-banner .btn:hover { background: #E3F2EC; }

/* Responsive */
html, body { overflow-x: hidden; overflow-x: clip; }
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.nav-open .site-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(16, 32, 27, 0.12);
    padding: 8px 18px 12px; margin-left: 0;
  }
  .site-header.nav-open .site-nav a {
    padding: 12px 10px; min-height: 44px; border-radius: 12px; font-size: 16px;
  }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .post .post-layout { grid-template-columns: 1fr; gap: 20px; }
  .post .post-toc { position: static; }
  .post .post-toc.is-ready { display: block; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .logo-text { font-size: 15.5px; }
  .logo-tag { font-size: 9px; }
  .head-cta { font-size: 13.5px; padding: 9px 15px; }
  .grid, .grid-2, .bands, .two-col { grid-template-columns: 1fr; }
  .bands::before { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .search-box { flex-direction: column; }
  .search-box .btn { width: 100%; }
  .calc { padding: 20px; }
  .header-inner { gap: 10px; }
  .logo { gap: 8px; min-width: 0; }
  .logo-mark { width: 36px; height: 36px; font-size: 22px; border-radius: 10px; }
  .theme-toggle { width: 44px; height: 44px; min-height: 44px; }
  .theme-toggle .theme-icon { width: 20px; height: 20px; }
  .ticker { font-size: 13px; padding: 7px 0; }
  .ticker span { padding: 0 14px; }
  .table-hint {
    display: block; text-align: right; font-size: 13px; font-weight: 700;
    color: var(--muted); margin: 14px 0 -10px;
  }
  .post h1 { font-size: clamp(28px, 7vw, 34px); padding-bottom: 16px; }
  .post h2 { font-size: 25px; margin: 44px 0 14px; padding-top: 24px; }
  .post h3 { font-size: 19px; margin: 28px 0 10px; }
  .post .answer { padding: 20px 18px; margin: 24px 0 8px; border-radius: 14px; }
  .post .answer p:first-child { font-size: 18px; }
  .post > p.note { padding: 13px 15px; font-size: 15px; }
  .post table.cost-table { min-width: 540px; }
  .post .cost-table th, .post .cost-table td { padding: 12px 14px; font-size: 15px; }
  .post .table-hint {
    display: block; text-align: center; font-size: 13px; font-weight: 700;
    color: var(--muted); background: var(--surface-soft);
    border: 1px solid var(--border); border-radius: 999px;
    padding: 7px 14px; margin: 18px 0 -6px;
  }
  .post details.faq { padding: 2px 16px; }
  .post details.faq summary { font-size: 16px; }
  .post .steps li { padding-left: 52px; }
  .post .steps li::before { width: 34px; height: 34px; }
  .post .two-col > div { padding: 20px; }
  .post .related-card { padding: 20px; }
  .post .post-hero { padding: 0 0 20px; margin-top: 14px; }
  .post .reading-progress { top: 64px; }
  .post .post-body > p, .post .post-body > ul, .post .post-body > ol { font-size: 18px; line-height: 1.7; }
  .post .key-takeaways { padding: 20px 18px; }
  .post .key-takeaways li { font-size: 16.5px; }
  .post .pull-quote { padding: 20px 18px; }
  .post .pull-quote p:last-child { font-size: 20px; }
  .post .calc-banner { padding: 22px 20px; }
  .post .calc-banner-title { font-size: 22px; }
}
@media (max-width: 480px) {
  .head-cta { display: none; }
  .header-actions { gap: 8px; }
  .hero-card-price { font-size: 20px; }
  .hero-counter { font-size: 52px; white-space: nowrap; }
  .receipt .receipt-total { font-size: 38px; }
  .how-steps { grid-template-columns: 1fr; }
  .post h1 { font-size: 28px; }
  .post .answer p:first-child { font-size: 17px; }
  .post .checklist li { padding-left: 36px; }
}
@media (max-width: 380px) {
  .head-cta { font-size: 13px; padding: 9px 12px; }
  .logo-text { font-size: 14px; }
}
@media (max-width: 360px) {
  .logo-mark { width: 32px; height: 32px; font-size: 19px; }
  .logo-text { font-size: 13px; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .post .answer { padding: 18px 16px; }
  .post .cost-table th, .post .cost-table td { padding: 11px 12px; }
}

/* Dark mode polish. */
:root[data-theme="dark"] .post .answer { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45); }
:root[data-theme="dark"] .post .cost-table th { background: var(--post-table-head); color: #FFFFFF; }
:root[data-theme="dark"] .post .steps li::before { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
:root[data-theme="dark"] .post .table-wrap { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); }
:root[data-theme="dark"] .post .answer { padding: 30px 32px 28px; }
:root[data-theme="dark"] .post .key-takeaways { padding: 28px 30px; }
:root[data-theme="dark"] .post .pull-quote { padding: 28px 30px; }
:root[data-theme="dark"] .post .calc-banner { padding: 30px 32px; background: #123528; border: 1px solid #2C463B; }
:root[data-theme="dark"] .post .calc-banner-note { color: #A9BDB3; }
:root[data-theme="dark"] .post .post-toc { padding: 24px; }
:root[data-theme="dark"] .post .cost-table td { padding: 16px 18px; }
:root[data-theme="dark"] .post .cost-table th { padding: 16px 18px; }
:root[data-theme="dark"] .post details.faq { padding: 6px 24px; }
:root[data-theme="dark"] .post h2 { margin-top: 68px; }
:root[data-theme="dark"] .post .post-byline .post-date { color: #A9BDB3; }
:root[data-theme="dark"] .post .answer p.note { color: #A9BDB3; }
:root[data-theme="dark"] .post .refs p { color: #A9BDB3; }
:root[data-theme="dark"] .post .share-btn { background: #1D322A; border-color: #2C463B; }
:root[data-theme="dark"] .post .share-btn:hover { border-color: var(--accent); }
:root[data-theme="dark"] .calc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233DD598' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
:root[data-theme="dark"] .hero {
  background:
    radial-gradient(720px 260px at 85% -40px, #123528, transparent 70%),
    radial-gradient(560px 220px at -5% 0, #123528, transparent 65%),
    var(--hero-bg);
}
:root[data-theme="dark"] .calc-field select:focus, :root[data-theme="dark"] .calc-field input:focus {
  box-shadow: 0 0 0 3px rgba(61, 213, 152, 0.25);
}

/* Reduced motion: no ticker scroll, no rise, no smooth scroll. Counters
   and bars show their final values immediately (handled in main.js). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .rise { animation: none; }
  .price-bar span { transition: none; }
  * { transition: none; }
}
