/* ===================================================================
   GreenCalcs.com — Global Stylesheet
   Palette: Forest Green #2D5F3F + Warm Gold #D4A256 + Cream #FAF9F6
   Fonts: Sora (headings) + Source Sans 3 (body)
   =================================================================== */

/* === DESIGN TOKENS === */
:root {
  --green-900: #1A3A28;
  --green-800: #224B33;
  --green-700: #2D5F3F;
  --green-500: #4A8C63;
  --green-300: #8FBFA1;
  --green-100: #E8F0EA;
  --green-50:  #F2F7F3;
  --gold-600: #B8851E;
  --gold-500: #D4A256;
  --gold-300: #E6C68F;
  --gold-100: #FAF1DE;
  --cream: #FAF9F6;
  --card: #FFFFFF;
  --slate-900: #1F2A36;
  --slate-700: #3D4856;
  --slate-500: #5A6675;
  --slate-400: #7B8694;
  --slate-300: #98A0AB;
  --border: #E5E1D8;
  --border-soft: #F0EDE6;
  --shadow-sm: 0 1px 3px rgba(31, 42, 54, 0.05), 0 1px 2px rgba(31, 42, 54, 0.03);
  --shadow-md: 0 4px 16px rgba(31, 42, 54, 0.06), 0 2px 4px rgba(31, 42, 54, 0.04);
  --shadow-lg: 0 12px 32px rgba(45, 95, 63, 0.08), 0 4px 8px rgba(31, 42, 54, 0.04);
  --shadow-xl: 0 24px 56px rgba(26, 58, 40, 0.14), 0 8px 16px rgba(31, 42, 54, 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-head: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --maxw: 1200px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--slate-900);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--slate-900);
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-top: 3rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--slate-700); }
a { color: var(--green-700); text-decoration: none; font-weight: 600; }
a:hover { color: var(--green-900); text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 820px; }
main { display: block; }

/* === SKIP LINK (a11y) === */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--green-700);
  color: #fff; padding: 0.5rem 1rem; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* === HEADER === */
header {
  background: rgba(250, 249, 246, 0.85);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--green-900);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo:hover { text-decoration: none; color: var(--green-900); }
.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 50%, var(--gold-500) 130%);
  border-radius: 9px;
  display: grid; place-items: center;
  box-shadow: 0 3px 8px rgba(45,95,63,0.25);
}
.logo-icon svg { width: 20px; height: 20px; fill: white; }
.nav-links {
  display: flex; gap: 1.85rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--slate-700);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--green-700); text-decoration: none; }
.nav-links a.active { color: var(--green-700); font-weight: 600; }
.nav-cta {
  background: var(--green-700);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-900); }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 8px;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; fill: var(--slate-700); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem 1rem;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--border-soft); width: 100%; }
  .nav-cta { display: inline-block; margin-top: 0.5rem; }
}

/* === BREADCRUMB === */
.breadcrumb {
  padding: 1rem 0 0.5rem;
  font-size: 14px;
  color: var(--slate-500);
}
.breadcrumb a { color: var(--slate-500); font-weight: 400; }
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb span { margin: 0 0.5rem; color: var(--slate-300); }

/* === HERO (interior pages) === */
.hero { padding: 1rem 0 2rem; }
.hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 0.75rem;
}
.hero h1 { margin-bottom: 0.75rem; max-width: 820px; }
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--slate-500);
  max-width: 720px;
  margin-bottom: 1.5rem;
}
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.25rem; font-size: 14px; color: var(--slate-500);
}
.trust-item { display: flex; align-items: center; gap: 0.5rem; }
.trust-item svg { width: 16px; height: 16px; color: var(--green-500); }
.author-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--green-100);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-weight: 600; color: var(--green-900); font-size: 13px;
}
.author-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  display: grid; place-items: center;
  font-weight: 700; color: white; font-size: 11px;
}

/* === HOMEPAGE BIG HERO === */
.home-hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212,162,86,0.12), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(74,140,99,0.12), transparent 55%),
    var(--cream);
  overflow: hidden;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 3rem;
}
@media (max-width: 920px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0 1.5rem; }
}
.home-hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 1.1rem;
}
.home-hero h1 .accent {
  background: linear-gradient(120deg, var(--green-700), var(--gold-500));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-hero p.lead {
  font-size: 1.2rem; color: var(--slate-500); max-width: 540px; margin-bottom: 1.75rem;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-bottom: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  transition: all 0.16s; cursor: pointer; border: none;
}
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 18px rgba(45,95,63,0.25); }
.btn-primary:hover { background: var(--green-900); color: #fff; text-decoration: none; transform: translateY(-2px); }
.btn-secondary { background: #fff; color: var(--green-800); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--green-500); color: var(--green-900); text-decoration: none; transform: translateY(-2px); }
.btn-gold { background: var(--gold-500); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-600); color: #fff; text-decoration: none; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat .n { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--green-800); }
.hero-stat .l { font-size: 13px; color: var(--slate-500); }

/* === CSS HERO ILLUSTRATION (house + sun + panels) === */
.hero-art {
  position: relative; width: 100%; aspect-ratio: 1/1; max-width: 460px; margin: 0 auto;
}
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 40px rgba(26,58,40,0.18)); }
@keyframes sunpulse { 0%,100% { opacity: 0.9; } 50% { opacity: 1; transform: scale(1.04); } }
.hero-art .sun { transform-origin: center; animation: sunpulse 5s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hero-art .cloud { animation: floaty 7s ease-in-out infinite; }

/* === ILLUSTRATION HERO (heat pump pages — no photo dependency) === */
.illus-hero {
  margin: 1.5rem 0 2rem; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg);
  background: radial-gradient(900px 420px at 82% -25%, rgba(212,162,86,0.20), transparent 60%),
              linear-gradient(135deg, var(--green-100), #eef5f0);
  border: 1px solid var(--border-soft);
}
.illus-hero .illus-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 1.5rem; padding: 1.75rem 2rem; }
@media (max-width: 700px) { .illus-hero .illus-inner { grid-template-columns: 1fr; text-align: center; } }
.illus-hero .illus-copy h2 { font-size: 1.3rem; margin: 0 0 0.5rem; color: var(--green-900); }
.illus-hero .illus-copy p { font-size: 14px; color: var(--slate-600, var(--slate-500)); margin: 0; }
.illus-hero svg { width: 100%; max-width: 320px; height: auto; margin: 0 auto; display: block; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.hp-fan { transform-origin: center; animation: spin 3.2s linear infinite; }

/* === BLOG === */
.blog-dek { font-size: 1.25rem; color: var(--slate-500); max-width: 760px; margin: 0.5rem 0 1.25rem; line-height: 1.55; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; font-size: 14px; color: var(--slate-500); margin-bottom: 0.5rem; }
.byline .author-avatar { width: 28px; height: 28px; font-size: 12px; }
.byline .by-name { font-weight: 600; color: var(--slate-700); }
.byline .dot { color: var(--slate-300); }
.byline .reviewed { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--green-700); font-weight: 600; }
.byline .reviewed svg { width: 15px; height: 15px; }
.toc {
  background: var(--card); border: 1px solid var(--border-soft); border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin: 2rem 0; max-width: 760px;
}
.toc h2 { font-size: 0.85rem !important; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-500); margin: 0 0 0.75rem !important; }
.toc ol { margin: 0 0 0 1.1rem; padding: 0; }
.toc li { margin-bottom: 0.4rem; font-size: 15px; }
.toc a { color: var(--green-700); font-weight: 500; }
.blog-body { max-width: 760px; }
.blog-body h2 { scroll-margin-top: 90px; }
.blog-body h2 + p, .blog-body h3 + p { margin-top: 0; }
.blog-body p { margin-bottom: 1.2rem; }
.blog-body ul, .blog-body ol { margin: 1rem 0 1.25rem 1.5rem; }
.blog-body li { margin-bottom: 0.5rem; color: var(--slate-700); }
.blog-body h3 { margin-top: 1.75rem; }
.blog-body strong { color: var(--slate-900); }
.sources-box { background: var(--green-50); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin: 2rem 0; max-width: 760px; }
.sources-box h2 { font-size: 1.1rem !important; margin: 0 0 0.75rem !important; }
.sources-box ol { margin: 0 0 0 1.2rem; }
.sources-box li { font-size: 14px; margin-bottom: 0.4rem; color: var(--slate-600, var(--slate-500)); }
.key-takeaway { background: var(--gold-100); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin: 1.5rem 0; max-width: 760px; }
.key-takeaway strong { color: var(--green-900); }

/* === SECTION HEADERS === */
.section { padding: 3.5rem 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.section-head .eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px;
  font-weight: 700; color: var(--gold-600); margin-bottom: 0.5rem; display: block;
}
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--slate-500); font-size: 1.08rem; }

/* === CARD GRID (hubs / homepage tools) === */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  text-decoration: none; color: inherit; display: block;
  transition: all 0.16s; position: relative; overflow: hidden;
}
.tool-card::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--gold-500));
  transform: scaleX(0); transform-origin: left; transition: transform 0.22s;
}
.tool-card:hover { border-color: var(--green-300); transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.tool-card:hover::after { transform: scaleX(1); }
.tool-ico {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--green-100);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.tool-ico svg { width: 24px; height: 24px; fill: var(--green-700); }
.tool-card h3 { font-size: 1.12rem; color: var(--green-900); margin-bottom: 0.4rem; }
.tool-card p { font-size: 14px; color: var(--slate-500); margin: 0; }
.tool-card .badge {
  display: inline-block; margin-top: 0.85rem; font-size: 12px; font-weight: 700;
  color: var(--gold-600); letter-spacing: 0.03em;
}

/* === DIRECT ANSWER (AI Overview bait) === */
.direct-answer {
  background: linear-gradient(135deg, var(--green-100), #f5fbf7);
  border-left: 4px solid var(--green-700);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0 2rem;
  font-size: 1.05rem;
  color: var(--slate-900);
}
.direct-answer strong { color: var(--green-900); }
.direct-answer .da-label {
  display: block; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px;
  font-weight: 700; color: var(--green-700); margin-bottom: 0.35rem;
}

/* === CALCULATOR === */
.calc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
@media (max-width: 920px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-card {
  background: var(--card); border-radius: var(--radius-xl); padding: 2rem;
  box-shadow: var(--shadow-md); border: 1px solid var(--border-soft);
}
.calc-card h2 { margin-top: 0; font-size: 1.35rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.calc-card h2 svg { width: 22px; height: 22px; color: var(--gold-500); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--slate-700); margin-bottom: 0.5rem; }
.field-hint { font-size: 13px; color: var(--slate-500); margin-top: 0.25rem; font-weight: 400; }
.input-wrap { position: relative; }
.input-wrap .prefix, .input-wrap .suffix {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--slate-500); font-weight: 600; font-size: 15px; pointer-events: none;
}
.input-wrap .prefix { left: 0.875rem; }
.input-wrap .suffix { right: 0.875rem; }
.input-wrap.has-prefix input { padding-left: 1.75rem; }
.input-wrap.has-suffix input { padding-right: 2.5rem; }
input[type="number"], input[type="text"], select {
  width: 100%; padding: 0.75rem 0.875rem;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: white; color: var(--slate-900);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(74, 140, 99, 0.12); }
.slider-row { display: flex; align-items: center; gap: 0.75rem; }
.slider-row input[type="range"] { flex: 1; }
.slider-row .slider-value { min-width: 64px; text-align: right; font-weight: 700; color: var(--green-700); }
input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 6px;
  background: var(--border); border-radius: 3px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-700); cursor: pointer; border: 3px solid white;
  box-shadow: 0 2px 6px rgba(45, 95, 63, 0.3);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--green-700);
  cursor: pointer; border: 3px solid white;
}

/* === RESULTS PANEL === */
.results {
  background: linear-gradient(160deg, var(--green-900), var(--green-700) 60%, #305f3f);
  border-radius: var(--radius-xl); padding: 2rem; color: white;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.results::before {
  content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(212, 162, 86, 0.18), transparent 70%); pointer-events: none;
}
.results-label {
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; font-weight: 700;
  color: var(--gold-500); margin-bottom: 0.5rem;
}
.payback-number {
  font-family: var(--font-head); font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 800;
  line-height: 1; margin-bottom: 0.25rem; letter-spacing: -0.04em;
}
.payback-unit { font-size: 1.25rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 1.5rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; margin-top: 1.5rem; }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-md); padding: 1rem;
}
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.65); margin-bottom: 0.25rem; font-weight: 600; }
.stat-value { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: white; }

/* === STATE STRIP / CHIPS === */
.state-strip {
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 1.5rem; margin: 2.5rem 0;
}
.state-strip h3 { margin-bottom: 1rem; font-size: 1.05rem; }
.state-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.state-chip {
  background: var(--green-100); color: var(--green-900); padding: 0.4rem 0.875rem;
  border-radius: 999px; font-size: 13px; font-weight: 600; transition: all 0.15s;
}
.state-chip:hover { background: var(--green-700); color: white; text-decoration: none; transform: translateY(-1px); }

/* === HOW IT WORKS / STEPS === */
.how-it-works { margin: 3rem 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.step { background: var(--card); padding: 1.5rem; border-radius: var(--radius-md); border: 1px solid var(--border-soft); position: relative; }
.step-num {
  display: inline-flex; width: 32px; height: 32px; background: var(--green-700); color: white;
  border-radius: 50%; align-items: center; justify-content: center; font-weight: 700;
  font-family: var(--font-head); margin-bottom: 0.75rem; font-size: 14px;
}
.step h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 0.5rem; }
.step p { font-size: 14px; margin: 0; color: var(--slate-500); }

/* === PROSE === */
.prose { max-width: 760px; margin: 2rem 0; }
.prose h2 + p { margin-top: 0; }
.prose p { margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin: 1rem 0 1.25rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; color: var(--slate-700); }
.prose strong { color: var(--slate-900); font-weight: 700; }
.prose blockquote {
  border-left: 4px solid var(--gold-500); background: var(--gold-100);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0; color: var(--slate-700); font-style: italic;
}

/* === DATA TABLE === */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius-md); border: 1px solid var(--border-soft); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); min-width: 480px; }
table.data caption { text-align: left; font-size: 13px; color: var(--slate-500); padding: 0.5rem 0.25rem; caption-side: bottom; }
table.data th, table.data td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border-soft); }
table.data thead th { background: var(--green-100); color: var(--green-900); font-family: var(--font-head); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--green-50); }
table.data td.num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--green-800); }

/* === FAQ === */
.faq { margin: 3rem 0; }
.faq-item {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  margin-bottom: 0.75rem; overflow: hidden; transition: box-shadow 0.15s;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 1.25rem 1.5rem; cursor: pointer; font-family: var(--font-head); font-weight: 600;
  font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center;
  list-style: none; color: var(--slate-900); gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--gold-500); font-weight: 400; transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.5rem 1.25rem; color: var(--slate-700); line-height: 1.7; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* === GLOSSARY === */
.glossary-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.glossary-nav a {
  display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 0.4rem;
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--green-800);
  text-decoration: none; transition: all 0.15s;
}
.glossary-nav a:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); text-decoration: none; }
.glossary-group { margin: 2.25rem 0; }
.glossary-group > h2 {
  font-family: var(--font-head); color: var(--gold-600, #a07d2f); font-size: 1.5rem;
  border-bottom: 2px solid var(--border-soft); padding-bottom: 0.4rem; margin-bottom: 1.25rem;
}
.glossary-list { margin: 0; }
.glossary-list dt {
  font-family: var(--font-head); font-weight: 700; color: var(--green-900);
  font-size: 1.08rem; margin-top: 1.25rem;
}
.glossary-list dt:first-child { margin-top: 0; }
.glossary-list dd {
  margin: 0.3rem 0 0; padding-left: 1rem; border-left: 2px solid var(--green-100, #e3eee7);
  color: var(--slate-700); line-height: 1.7;
}
.glossary-list dd a { color: var(--green-700); }

/* === SITEMAP === */
.sitemap-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
@media (max-width: 560px) { .sitemap-list { columns: 1; } }
.sitemap-list li { margin: 0 0 0.5rem; break-inside: avoid; }
.sitemap-list li a { color: var(--green-800); text-decoration: none; }
.sitemap-list li a:hover { color: var(--gold-600, #a07d2f); text-decoration: underline; }

/* === RELATED === */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.related-card {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 1.5rem; text-decoration: none; color: inherit; transition: all 0.15s; display: block;
}
.related-card:hover { border-color: var(--green-500); transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.related-card h4 { font-family: var(--font-head); margin-bottom: 0.5rem; color: var(--green-900); }
.related-card p { font-size: 14px; color: var(--slate-500); margin: 0; }

/* === AUTHOR CARD === */
.author-card {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 1.75rem; margin: 2.5rem 0; display: flex; gap: 1.25rem; align-items: flex-start;
}
@media (max-width: 480px) { .author-card { flex-direction: column; } }
.author-photo {
  width: 80px; height: 80px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), #a07d2f);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700;
  font-size: 1.75rem; color: white;
}
.author-info h4 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 0.25rem; }
.author-title { font-size: 13px; color: var(--green-700); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.author-bio { font-size: 14px; color: var(--slate-500); margin: 0; }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  border-radius: var(--radius-xl); padding: 2.5rem; text-align: center; color: #fff;
  margin: 3rem 0; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -60px; right: -40px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(212,162,86,0.22), transparent 70%);
}
.cta-banner h2 { color: #fff; margin-top: 0; }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 1.5rem; }

/* === AD SLOT === */
.ad-slot {
  margin: 2.5rem auto; max-width: 728px; min-height: 90px;
  border: 1px dashed var(--border); border-radius: var(--radius-md);
  display: grid; place-items: center; color: var(--slate-300); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em; background: #fcfbf8;
}

/* === FIGURES (Images) === */
figure { margin: 2rem 0; }
.hero-image { margin: 1.5rem 0 2rem; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--border-soft); }
.hero-image img { width: 100%; height: auto; aspect-ratio: 7/3; object-fit: cover; display: block; }
.inline-image { margin: 2.5rem 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-soft); }
.inline-image img { width: 100%; height: auto; aspect-ratio: 2/1; object-fit: cover; display: block; }
figcaption { background: var(--card); padding: 0.875rem 1.25rem; font-size: 13px; color: var(--slate-500); line-height: 1.6; border-top: 1px solid var(--border-soft); }
.hero-image figcaption { border-top: none; }
figcaption span { display: block; margin-top: 0.25rem; font-size: 11px; color: var(--slate-300); font-style: italic; }

/* === DISCLAIMER === */
.disclaimer {
  font-size: 12px; color: var(--slate-500); margin-top: 1rem; padding: 0.75rem;
  background: var(--border-soft); border-radius: var(--radius-sm); line-height: 1.5;
}

/* === KEY FACTS BOX (state pages) === */
.facts-box {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 1.5rem; margin: 1.5rem 0;
}
.facts-box h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--green-900); }
.facts-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; }
@media (max-width: 560px) { .facts-list { grid-template-columns: 1fr; } }
.facts-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.facts-list .k { color: var(--slate-500); }
.facts-list .v { font-weight: 700; color: var(--green-800); text-align: right; }

/* === PILL / TAG === */
.pill { display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-green { background: var(--green-100); color: var(--green-800); }
.pill-gold { background: var(--gold-100); color: var(--gold-600); }

/* === FOOTER === */
footer { background: var(--green-900); color: rgba(255, 255, 255, 0.7); margin-top: 5rem; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 { font-family: var(--font-head); color: white; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255, 255, 255, 0.65); font-size: 14px; font-weight: 400; transition: color 0.15s; }
.footer-col a:hover { color: white; text-decoration: none; }
.footer-tagline { font-size: 14px; line-height: 1.7; margin-bottom: 1rem; }
.footer-logo { color: white !important; margin-bottom: 1rem; }
.footer-bottom {
  padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: rgba(255, 255, 255, 0.5);
}

/* === MICRO ANIMATIONS === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.payback-number, .stat-card { animation: fadeUp 0.4s ease-out; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* === PRINT === */
@media print {
  header, footer, .ad-slot, .cta-banner, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .results { background: #f0f0f0 !important; color: #000 !important; -webkit-print-color-adjust: exact; }
  a { color: #000; text-decoration: underline; }
}
