/* Tax-Calculators.us: NerdWallet green system (site/DESIGN.md) + Stripe hero
   language (gradient mesh, floating product cards, tabular money type).
   Deep spruce green primary, mint ladder, hairlines instead of elevation.
   Nearly square corners, restrained shadow only on floating surfaces.
   System fonts only. No images, no emoji, no libraries. */
:root {
  --primary: #008254;
  --primary-deep: #006642;
  --forest: #00482f;
  --lime-hero: #9ae600;
  --lime-panel: #e8fdac;
  --canvas: #ffffff;
  --canvas-soft: #f7f7f7;
  --mint-50: #effcf8;
  --mint-100: #e3faf2;
  --mint-200: #b7ecda;
  --hairline: #ebebec;
  --hairline-strong: #d8d9da;
  --ink: #000000;
  --body: #3d4045;
  --muted: #64666a;
  --faint: #b1b3b5;
  --link: #005fb9;
  --error: #de2828;
  --shadow-1: rgba(0, 55, 112, .08) 0 1px 3px;
  --shadow-2: rgba(0, 55, 112, .08) 0 8px 24px, rgba(0, 55, 112, .04) 0 2px 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  line-height: 1.5;
  font-size: 16px;
  font-weight: 300;
  background: var(--canvas);
  overflow-x: clip;
}
a { color: var(--link); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; }
h1 { font-size: 40px; line-height: 1.2; margin: 0 0 12px; letter-spacing: 0; }
h2 { font-size: 28px; line-height: 1.25; margin: 40px 0 10px; }
h3 { font-size: 20px; line-height: 1.3; margin: 24px 0 8px; }
p { margin: 0 0 14px; }
main p a, main li a { text-decoration: underline; }
.results dd, td.num, .stat b, .float-card b, .donut-hole { font-variant-numeric: tabular-nums; }

/* --- Header: sticky white bar, green wordmark, mega-menu nav --- */
header.site { position: sticky; top: 0; z-index: 50; background: var(--canvas); border-bottom: 1px solid var(--hairline); }
header.site .wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 20px; min-height: 60px;
}
header.site .brand { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; flex: none; }
header.site .brand span { color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-item { position: relative; }
.nav-top {
  background: transparent; border: 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink);
  padding: 10px 12px; border-radius: 8px; display: flex; align-items: center; gap: 6px;
}
.nav-top:hover { color: var(--primary); background: var(--mint-50); }
.nav-top .chev {
  width: 8px; height: 8px; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .18s ease;
}
.nav-item.open .nav-top .chev, .nav-item:focus-within .nav-top .chev { transform: rotate(225deg) translateY(-1px); }
.nav-link {
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700;
  padding: 10px 12px; border-radius: 8px;
}
.nav-link:hover { color: var(--primary); background: var(--mint-50); text-decoration: none; }
.nav-search {
  color: #fff; background: var(--primary); text-decoration: none;
  font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 2px; margin-left: 8px;
}
.nav-search:hover { background: var(--primary-deep); text-decoration: none; }
.mega {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%); width: min(680px, 92vw);
  background: var(--canvas); border: 1px solid var(--hairline-strong); border-radius: 8px;
  box-shadow: var(--shadow-2); padding: 20px; z-index: 60;
  grid-template-columns: 190px minmax(0, 1fr); gap: 20px;
}
.nav-item:hover .mega, .nav-item:focus-within .mega, .nav-item.open .mega { display: grid; }
.mega-head strong { display: block; font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.mega-head p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.mega-head a { font-size: 14px; font-weight: 700; color: var(--primary); text-decoration: none; }
.mega-head a:hover { text-decoration: underline; }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.mega-list li { padding: 6px 0; border-top: 1px solid var(--hairline); }
.mega-list li:nth-child(-n+2) { border-top: 0; }
.mega-list a { display: block; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
.mega-list a:hover { color: var(--primary); }
.mega-list span {
  display: block; font-size: 13px; color: var(--muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.menu-btn {
  display: none; background: transparent; border: 1px solid var(--hairline-strong);
  border-radius: 8px; width: 44px; height: 44px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin-left: auto;
}
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .18s ease, opacity .18s ease; }
header.site.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.site.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
header.site.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Layout --- */
main { max-width: 760px; margin: 0 auto; padding: 28px 20px 60px; }
main.wide { max-width: 960px; }
.lede { font-size: 18px; line-height: 1.5; }
.small { font-size: 14px; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 56px 0 4px; }
.eyebrow + h2 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main.wide > section { margin-top: 64px; }
main.wide > section:first-of-type { margin-top: 0; }

/* --- Tool hero band (calculator pages): green gradient + mesh, breadcrumb, big H1 --- */
.tool-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-deep) 60%, var(--forest) 100%);
  margin: -28px calc(50% - 50vw) 0; padding: 44px 20px 40px;
}
.tool-hero::before, .tool-hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.tool-hero::before { width: 420px; height: 420px; background: rgba(183, 236, 218, .45); top: -180px; right: 6%; }
.tool-hero::after { width: 360px; height: 360px; background: rgba(154, 230, 0, .28); bottom: -220px; left: 12%; }
.tool-hero .wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.crumbs { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lime-panel); margin-bottom: 16px; }
.crumbs a { color: var(--lime-panel); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden="true"] { margin: 0 8px; color: rgba(255, 255, 255, .6); }
.crumbs span[aria-current] { color: rgba(255, 255, 255, .85); }
.tool-hero h1 { color: #fff; font-size: 52px; line-height: 1.1; letter-spacing: -.01em; }
.tool-hero .lede { color: var(--mint-100); font-size: 19px; }
.tool-hero-meta { color: var(--lime-panel); font-size: 13px; font-weight: 700; margin: 18px 0 0; }
.tool-hero-meta a { color: var(--lime-panel); }
.tool-body { padding-top: 28px; }

/* --- Hero: deep green gradient + mesh, two-column copy/tool, floating result cards --- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-deep) 60%, var(--forest) 100%);
  padding: 56px 20px 52px;
  margin: -28px calc(50% - 50vw) 36px;
}
.hero-mesh { position: absolute; inset: 0; pointer-events: none; }
.hero-mesh i { position: absolute; border-radius: 50%; filter: blur(70px); }
.hero-mesh i:nth-child(1) { width: 460px; height: 460px; background: rgba(183, 236, 218, .5); top: -190px; left: 8%; }
.hero-mesh i:nth-child(2) { width: 380px; height: 380px; background: rgba(154, 230, 0, .3); top: 24%; right: -4%; }
.hero-mesh i:nth-child(3) { width: 520px; height: 520px; background: rgba(0, 130, 84, .55); bottom: -260px; left: 38%; }
.hero-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.hero h1 { color: #fff; font-size: 52px; line-height: 1.08; letter-spacing: -.01em; }
.hero h1 .lime { color: var(--lime-hero); }
.hero .lede { color: var(--mint-100); font-size: 19px; }
.hero-trust { color: var(--lime-panel); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin: 16px 0 0; }
.hero-tool { position: relative; }
.hero .calc { margin: 0; }
.hero-calc { background: #fff; border: 1px solid var(--hairline-strong); border-radius: 8px; box-shadow: var(--shadow-2); }
.float-card {
  position: absolute; z-index: 3; width: 208px; display: block;
  background: #fff; border: 1px solid var(--hairline-strong); border-radius: 8px;
  box-shadow: var(--shadow-2); padding: 12px 14px; text-decoration: none;
  animation: floaty 7s ease-in-out infinite alternate;
}
.float-card:hover { border-color: var(--primary); text-decoration: none; }
.float-card span { display: block; }
.float-card .fc-label { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.float-card b { font-size: 22px; font-weight: 700; color: var(--primary); margin: 2px 0; }
.float-card .fc-sub { font-size: 13px; color: var(--muted); line-height: 1.35; }
.fc-1 { top: -20px; right: -6px; animation-delay: 0s; }
.fc-2 { top: 38%; left: -30px; animation-delay: 1.2s; }
.fc-3 { bottom: -22px; right: 14px; animation-delay: 2.4s; }
@keyframes floaty { from { transform: translateY(-4px); } to { transform: translateY(6px); } }

/* --- Stats --- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 8px; }
.stat { text-align: center; padding: 18px 8px; border: 1px solid var(--hairline-strong); border-top: 4px solid var(--primary); border-radius: 8px; background: var(--canvas); }
.stat b { display: block; font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--primary); }
.stat span { font-size: 14px; color: var(--muted); }

/* --- Answer / note callouts --- */
.answer {
  background: var(--mint-100);
  border-left: 4px solid var(--primary);
  padding: 14px 16px; margin: 18px 0 24px; border-radius: 0 8px 8px 0;
}
.answer p:last-child { margin-bottom: 0; }
.note {
  background: var(--mint-50); border: 1px solid var(--hairline-strong);
  border-radius: 8px; padding: 12px 14px; font-size: 15px; margin: 16px 0;
}

/* --- Calculators: pro tool panel. Two columns once the result shows. --- */
.calc {
  border: 1px solid var(--hairline-strong); border-radius: 8px;
  padding: 20px; margin: 20px 0; background: #fff;
}
.calc label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 4px; color: var(--ink); }
.calc label:first-child { margin-top: 0; }
.calc input[type="number"], .calc select {
  width: 100%; padding: 12px; font-size: 16px;
  border: 1px solid var(--hairline-strong); border-radius: 6px; background: #fff; color: var(--ink);
}
.calc input[type="number"]:focus, .calc select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px rgba(0, 130, 84, .15); }
.calc .hint { font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc button {
  margin-top: 18px; background: var(--primary); color: #fff; border: 0;
  padding: 16px 24px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  border-radius: 2px; cursor: pointer;
  box-shadow: rgba(100,102,106,.05) 0 4px 16px, rgba(100,102,104,.05) 0 16px 40px;
}
.calc button:hover { background: var(--primary-deep); }
/* Grouped inputs: a labelled block for related fields (enrichment pass). */
.calc fieldset.group { border: 1px solid var(--hairline-strong); border-radius: 8px; padding: 16px; margin: 16px 0; }
.calc fieldset.group legend { font-weight: 700; font-size: 14px; color: var(--ink); padding: 0 8px; }
/* Advanced options: collapsible section inside the tool. */
details.advanced { border: 1px solid var(--hairline-strong); border-radius: 8px; margin: 16px 0; }
details.advanced summary {
  padding: 14px 16px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.advanced summary::-webkit-details-marker { display: none; }
details.advanced summary::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg); transition: transform .2s ease;
}
details.advanced[open] summary::after { transform: rotate(45deg); }
details.advanced .adv-body { padding: 0 16px 16px; }
/* Side-by-side comparison panels. */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.results { margin-top: 20px; border-top: 1px solid var(--hairline); padding-top: 14px; display: none; }
.results.show { display: block; }
.results dl { margin: 0; }
.results .line { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--hairline); position: relative; }
.results .line:last-child { border-bottom: 0; }
.results .line dt { color: var(--muted); }
.results .line dd { margin: 0; font-weight: 600; text-align: right; color: var(--ink); }
.results .big { font-size: 28px; font-weight: 700; color: var(--primary); }
.results .big.zero { color: var(--primary-deep); }
/* Pro result panel: dark forest card, big lime number, breakdown bars. */
.tool-body .calc:has(.results.show) { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.tool-body .calc:has(.results.show) .results.show {
  margin: 0; border: 0; padding: 20px; border-radius: 8px;
  background: var(--forest); color: #fff;
  position: sticky; top: 76px;
  box-shadow: rgba(0, 55, 112, .08) 0 8px 24px, rgba(0, 55, 112, .04) 0 2px 6px;
}
.tool-body .calc:has(.results.show) .results.show::before {
  content: "Your result"; display: block; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--lime-panel); margin-bottom: 12px;
}
.tool-body .results .line { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.tool-body .results .line dt { color: rgba(255, 255, 255, .78); }
.tool-body .results .line dd { color: #fff; }
.tool-body .results .big { color: var(--lime-hero); font-size: 34px; }
.tool-body .results .small { color: rgba(255, 255, 255, .75); }
.tool-body .results .small a { color: var(--lime-panel); }
.tool-body .results .line.has-bar { padding-bottom: 14px; }
.tool-body .results .line.has-bar::after {
  content: ""; position: absolute; left: 0; bottom: 5px; height: 3px;
  width: var(--w, 0%); background: var(--lime-hero); border-radius: 2px;
}
/* Donut component (rendered by __toolDonut with verified segments only). */
.donut-wrap { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.donut { width: 120px; height: 120px; flex: none; border-radius: 50%; position: relative; }
.donut-hole {
  position: absolute; inset: 22px; background: var(--forest); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px; text-align: center; line-height: 1.2;
}
.donut-legend { list-style: none; margin: 0; padding: 0; font-size: 13px; color: rgba(255, 255, 255, .85); }
.donut-legend li { margin: 4px 0; }
.donut-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; }

/* --- Tables --- */
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { background: var(--canvas-soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
td.num, th.num { text-align: right; }

/* --- Cards (product-card: white, hairline-strong border, 8px, no shadow) --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 20px 0; }
.card { border: 1px solid var(--hairline-strong); border-radius: 8px; padding: 18px; background: #fff; }
.card:hover { border-color: var(--primary); }
.card h3 { margin-top: 0; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--primary); }
.card p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); }
.tag-popular { background: var(--lime-panel); color: var(--primary); padding: 2px 8px; border-radius: 10px; }

/* --- Finder --- */
#finder { scroll-margin-top: 76px; }
.finder-search { margin: 16px 0 12px; }
.finder-search input {
  width: 100%; padding: 14px 16px; font-size: 16px; color: var(--ink);
  border: 1px solid var(--hairline-strong); border-radius: 2px; background: #fff;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.chips-label { font-size: 14px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.chip {
  background: var(--canvas); color: var(--primary); border: 1px solid var(--hairline-strong);
  border-radius: 8px; padding: 8px 16px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.chip:hover { border-color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.finder-count { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.finder-note {
  background: var(--mint-100); border-left: 4px solid var(--primary);
  padding: 12px 14px; border-radius: 0 8px 8px 0; font-size: 15px; margin: 12px 0 0;
}
.finder-empty { background: var(--canvas-soft); border-radius: 8px; padding: 24px; text-align: center; margin: 20px 0; }
.finder-empty p { margin-bottom: 8px; }

/* --- Cluster grid --- */
.cluster-card h3 { margin-top: 0; }
.cluster-count { font-size: 24px; font-weight: 700; color: var(--primary); margin: 0 0 8px; }
.cluster-examples { list-style: none; margin: 12px 0; padding: 0; }
.cluster-examples li { padding: 6px 0; border-top: 1px solid var(--hairline); font-size: 14px; }
.cluster-examples a { color: var(--primary); text-decoration: none; }
.cluster-examples a:hover { text-decoration: underline; }
.cluster-more {
  background: transparent; color: var(--primary); border: 1px solid var(--hairline-strong);
  border-radius: 8px; padding: 8px 16px; font-size: 14px; font-weight: 700; cursor: pointer; margin-top: 8px;
}
.cluster-more:hover { border-color: var(--primary); background: var(--mint-50); }

/* --- Situation cards --- */
.situation-card { font: inherit; text-align: left; cursor: pointer; width: 100%; }
.situation-card h3 { margin-top: 0; }

/* --- How it works --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.step { text-align: center; padding: 8px 12px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 9999px; background: var(--primary);
  color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; }
.step p { font-size: 14px; color: var(--muted); margin-bottom: 0; }

/* --- Trust strip (lime expert-tip panel) --- */
.trust { background: var(--lime-panel); border-radius: 8px; padding: 24px; margin: 40px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item strong { display: block; font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.trust-item p { font-size: 14px; color: var(--body); margin-bottom: 0; }

/* --- FAQ accordion --- */
.acc { background: var(--canvas); border: 1px solid var(--hairline-strong); border-radius: 8px; margin-bottom: 8px; }
.acc summary {
  padding: 16px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg); transition: transform .2s ease;
}
.acc[open ] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 16px 16px; }
.acc-body p { font-size: 15px; margin-bottom: 0; }
.acc[open ] .acc-body { animation: accIn .25s ease; }
@keyframes accIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* --- Directory --- */
.directory { background: var(--mint-50); border-radius: 16px; padding: 32px; margin: 40px 0 0; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-top: 20px; }
.dir-col h3 { font-size: 16px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline-strong); }
.dir-col ul { list-style: none; margin: 0; padding: 0; }
.dir-col li { font-size: 14px; margin: 6px 0; }
.dir-col a { color: var(--primary); text-decoration: none; }
.dir-col a:hover { text-decoration: underline; }
.dir-guide { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* --- Big footer: deep forest, link columns per cluster, legal row --- */
footer.site { background: var(--forest); color: rgba(255, 255, 255, .82); }
footer.site .wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr; gap: 28px; padding-top: 48px; padding-bottom: 32px; }
.foot-brand .brand { font-size: 22px; font-weight: 700; color: #fff; text-decoration: none; }
.foot-brand .brand span { color: var(--lime-hero); }
.foot-brand p { font-size: 14px; color: rgba(255, 255, 255, .78); margin-top: 12px; }
.foot-col h3 { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--lime-panel); margin: 0 0 10px; }
.foot-col h3:not(:first-child) { margin-top: 24px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 6px 0; }
.foot-col a { font-size: 14px; color: rgba(255, 255, 255, .82); text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-col p.small { color: rgba(255, 255, 255, .72); }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 24px; padding-bottom: 32px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.foot-legal p { margin-bottom: 8px; }

/* --- Old FAQ definition lists (calculator pages) --- */
.faq dt { font-weight: 700; margin: 16px 0 4px; color: var(--ink); }
.faq dd { margin: 0 0 10px; }
ul.tight li, ol.tight li { margin-bottom: 6px; }

/* --- Focus states --- */
.calc button:focus-visible, .calc input:focus-visible, .calc select:focus-visible,
.chip:focus-visible, .cluster-more:focus-visible, .finder-search input:focus-visible,
.nav-top:focus-visible, .nav-link:focus-visible, .nav-search:focus-visible,
.menu-btn:focus-visible, .float-card:focus-visible, .mega-list a:focus-visible,
.foot-col a:focus-visible, .foot-brand .brand:focus-visible,
details.advanced summary:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
.hero .float-card:focus-visible, footer.site a:focus-visible { outline-color: var(--lime-hero); }

/* --- Reveal on scroll + reduced motion --- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .acc[open ] .acc-body { animation: none; }
  .float-card { animation: none; }
  .card, .card:hover { transition: none; }
}

/* --- Responsive --- */
@media (max-width: 1280px) {
  .float-card { display: none; }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 44px; }
  .tool-hero h1 { font-size: 44px; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .menu-btn { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--canvas); border-bottom: 1px solid var(--hairline-strong);
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 60px); overflow-y: auto; padding: 8px 20px 20px;
  }
  header.site.menu-open .main-nav { display: flex; }
  .nav-item { border-top: 1px solid var(--hairline); }
  .nav-top { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 15px; }
  .nav-link { padding: 14px 4px; font-size: 15px; }
  .nav-search { margin: 12px 0 0; text-align: center; }
  .mega {
    position: static; transform: none; width: auto; box-shadow: none;
    border: 0; border-top: 1px solid var(--hairline); border-radius: 0;
    padding: 12px 4px 16px; grid-template-columns: 1fr;
  }
  .nav-item:hover .mega, .nav-item:focus-within .mega { display: none; }
  .nav-item.open .mega { display: grid; }
  .mega-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  h1 { font-size: 30px; }
  .lede { font-size: 18px; }
  .hero { padding: 36px 20px 32px; }
  .hero h1 { font-size: 32px; }
  .tool-hero { padding: 32px 20px 28px; }
  .tool-hero h1 { font-size: 32px; }
  .tool-hero .lede { font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
  .tool-body .calc:has(.results.show) { display: block; }
  .tool-body .calc:has(.results.show) .results.show { position: static; margin-top: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .calc .row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .directory { padding: 20px; }
  .foot-grid { grid-template-columns: 1fr; }
}
