/* =====================================================
   HeatPumpCalcs.co.uk — Premium UK Stylesheet
   Sophisticated mesh background, CSS hero art, glow effects
   ===================================================== */

/* === DESIGN TOKENS === FOREST & GOLD palette (Premium Eco) */
:root {
  /* Forest green family (was teal) — deep, trustworthy, eco */
  --teal-950: #051A11;
  --teal-900: #0D3B2E;
  --teal-700: #14573D;
  --teal-600: #1F6F4A;
  --teal-500: #3E8E5E;
  --teal-300: #8DBFA0;
  --teal-100: #DDEEE4;
  --teal-50: #EEF6EF;

  /* Amber/gold family (was orange) — warm, premium, energy */
  --orange-800: #6B4106;
  --orange-700: #B47410;
  --orange-500: #F59E0B;
  --orange-400: #FBBF24;
  --orange-300: #FCD34D;
  --orange-100: #FEF3C7;
  --orange-50: #FFFBEB;

  --gold-500: #D4A256;
  --gold-100: #FAF1DE;

  /* Backgrounds — warm cream with sage tint */
  --cream: #F4F0E6;
  --cream-warm: #F8F4ED;
  --paper: #FFFFFF;

  /* Text — slightly warm slate */
  --slate-950: #0B1A14;
  --slate-900: #1A2F26;
  --slate-700: #3D4F46;
  --slate-500: #5F7066;
  --slate-300: #9AA8A0;
  --slate-200: #C8D2CA;
  --border: #DBD4C2;
  --border-soft: #EEE9D9;

  --success: #14573D;

  /* Layered shadows for depth — tinted to forest */
  --shadow-xs: 0 1px 2px rgba(13, 59, 46, 0.05);
  --shadow-sm: 0 2px 4px rgba(13, 59, 46, 0.07), 0 1px 2px rgba(13, 59, 46, 0.04);
  --shadow-md: 0 8px 16px rgba(13, 59, 46, 0.09), 0 2px 4px rgba(13, 59, 46, 0.05);
  --shadow-lg: 0 20px 40px rgba(13, 59, 46, 0.12), 0 8px 16px rgba(13, 59, 46, 0.06);
  --shadow-xl: 0 32px 60px rgba(13, 59, 46, 0.16), 0 12px 24px rgba(13, 59, 46, 0.07);
  --shadow-glow-teal: 0 0 40px rgba(13, 59, 46, 0.18), 0 20px 40px rgba(13, 59, 46, 0.14);
  --shadow-glow-orange: 0 0 30px rgba(245, 158, 11, 0.22), 0 12px 24px rgba(245, 158, 11, 0.12);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;

  --font-head: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;

  --grad-teal: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-600) 100%);
  --grad-orange: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-700) 100%);
  --grad-warmth: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-700) 50%, var(--teal-700) 100%);
  --grad-text-warm: linear-gradient(135deg, var(--teal-900) 0%, var(--orange-700) 100%);
  --grad-text-teal: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-500) 100%);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--slate-900);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;

  /* PREMIUM AURORA BACKGROUND — Forest & Gold (eco premium) */
  background-color: #F4F0E5;
  background-image:
    /* Top-left deep forest aurora */
    radial-gradient(ellipse 900px 700px at -5% -10%, rgba(13, 59, 46, 0.30), transparent 55%),
    /* Top-right warm amber light leak */
    radial-gradient(ellipse 800px 600px at 105% 5%, rgba(245, 158, 11, 0.24), transparent 55%),
    /* Mid-right gold bloom */
    radial-gradient(ellipse 500px 450px at 95% 45%, rgba(212, 162, 86, 0.25), transparent 60%),
    /* Mid-left sage bloom */
    radial-gradient(ellipse 600px 500px at -5% 50%, rgba(62, 142, 94, 0.18), transparent 60%),
    /* Bottom-left deep pine pool */
    radial-gradient(ellipse 700px 600px at -10% 95%, rgba(5, 26, 17, 0.22), transparent 60%),
    /* Bottom-right amber warmth */
    radial-gradient(ellipse 700px 500px at 110% 105%, rgba(245, 158, 11, 0.20), transparent 55%),
    /* Centre subtle warmth */
    radial-gradient(ellipse 800px 500px at 50% 50%, rgba(252, 211, 77, 0.08), transparent 70%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Layer 1: Premium dot pattern with radial fade (modern SaaS look) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(13, 59, 46, 0.13) 1.2px, transparent 1.6px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, black 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, black 0%, transparent 78%);
  opacity: 0.85;
}

/* Layer 2: Grain texture (multiply blend for richer depth, prevents flat look) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.051 0 0 0 0 0.231 0 0 0 0 0.180 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 1; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--slate-950);
  font-feature-settings: 'ss01', 'cv11';
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); 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(--teal-700); text-decoration: none; font-weight: 600; transition: color 0.15s; }
a:hover { color: var(--orange-700); text-decoration: underline; text-underline-offset: 3px; }

.grad-text {
  background: var(--grad-text-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* === HEADER === */
header {
  background: rgba(253, 250, 245, 0.85);
  border-bottom: 1px solid rgba(230, 223, 211, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--teal-950);
  text-decoration: none;
  letter-spacing: -0.025em;
}
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--grad-warmth);
  border-radius: 10px;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  position: relative;
  overflow: hidden;
}
.logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent 50%);
}
.logo svg { width: 20px; height: 20px; fill: white; position: relative; z-index: 1; }
.nav-links {
  display: flex; gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--slate-700);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--teal-700);
  text-decoration: none;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0; right: 0;
  height: 2px;
  background: var(--grad-warmth);
  border-radius: 2px;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--teal-950);
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
}

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

/* === HERO (CALCULATOR PAGES) === */
.hero {
  padding: 1.5rem 0 2rem;
  text-align: center;
}
.hero h1 {
  margin: 0 auto 1rem;
  max-width: 840px;
}
.hero-subtitle {
  font-size: 1.18rem;
  color: var(--slate-700);
  max-width: 720px;
  margin: 0 auto 1.75rem;
  line-height: 1.55;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: 14px;
  color: var(--slate-500);
}
.trust-item {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.875rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(230, 223, 211, 0.6);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.trust-item svg { width: 14px; height: 14px; color: var(--teal-500); }

.author-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
  padding: 0.45rem 0.9rem 0.45rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--teal-900);
  font-size: 13px;
  border: 1px solid rgba(13, 59, 46, 0.12);
  box-shadow: var(--shadow-xs);
}
.author-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--grad-warmth);
  display: grid; place-items: center;
  font-weight: 700; color: white;
  font-size: 11px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* === HERO CSS ILLUSTRATION (replaces broken photos) === */
.hero-art {
  margin: 2rem auto;
  max-width: 1100px;
  height: 380px;
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%, rgba(245, 158, 11, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 80% at 30% 30%, rgba(13, 59, 46, 0.20), transparent 70%),
    linear-gradient(160deg, var(--teal-900) 0%, var(--teal-700) 50%, #14586b 100%);
  box-shadow: var(--shadow-xl);
  display: grid;
  place-items: center;
}
.hero-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.10) 0%, transparent 50%);
  pointer-events: none;
}
.hero-art::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.hero-art-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 700px;
}
.hero-art-icon {
  width: 96px; height: 96px;
  margin: 0 auto 1.25rem;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.20);
  border-radius: 28px;
  display: grid; place-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 12px 32px rgba(0,0,0,0.20);
  position: relative;
  overflow: hidden;
}
.hero-art-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%);
}
.hero-art-icon svg {
  width: 48px; height: 48px;
  color: white;
  position: relative;
  z-index: 1;
}
.hero-art-headline {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: white;
}
.hero-art-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin: 0 auto;
}

/* Animated decorative rings */
.hero-art-rings {
  position: absolute;
  top: 50%; left: 50%;
  width: 200px; height: 200px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-art-rings span {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 50%;
  animation: ringPulse 4s ease-out infinite;
}
.hero-art-rings span:nth-child(2) { animation-delay: 1.3s; }
.hero-art-rings span:nth-child(3) { animation-delay: 2.6s; }
@keyframes ringPulse {
  0%   { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Floating dots in hero */
.hero-art-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-art-dots span {
  position: absolute;
  width: 6px; height: 6px;
  background: rgba(245, 158, 11, 0.5);
  border-radius: 50%;
  filter: blur(0.5px);
  animation: floatDot 6s ease-in-out infinite;
}
.hero-art-dots span:nth-child(1) { top: 25%; left: 12%; animation-delay: 0s; }
.hero-art-dots span:nth-child(2) { top: 65%; left: 18%; background: rgba(255,255,255,0.5); animation-delay: 1s; }
.hero-art-dots span:nth-child(3) { top: 35%; right: 15%; animation-delay: 2s; }
.hero-art-dots span:nth-child(4) { top: 75%; right: 22%; background: rgba(245, 158, 11, 0.4); animation-delay: 3s; }
.hero-art-dots span:nth-child(5) { top: 20%; right: 35%; background: rgba(255,255,255,0.3); animation-delay: 4s; }
@keyframes floatDot {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-20px) scale(1.4); opacity: 1; }
}

/* === DIRECT ANSWER === */
.direct-answer {
  background: linear-gradient(135deg, rgba(221, 234, 239, 0.85), rgba(238, 245, 247, 0.65));
  border: 1px solid rgba(13, 59, 46, 0.12);
  border-left: 4px solid var(--teal-700);
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-md);
  margin: 2rem auto;
  max-width: 900px;
  font-size: 1.05rem;
  color: var(--slate-900);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.direct-answer strong { color: var(--teal-900); }

/* === CALCULATOR GRID === */
.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 1100px;
}
@media (max-width: 920px) { .calc-grid { grid-template-columns: 1fr; } }

/* === CALCULATOR CARD === */
.calc-card {
  background: var(--paper);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(230, 223, 211, 0.6);
  position: relative;
  overflow: hidden;
}
.calc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-warmth);
  opacity: 0;
  transition: opacity 0.3s;
}
.calc-card:hover::before { opacity: 1; }

.calc-card h2 {
  margin-top: 0;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.625rem;
}
.calc-card h2 svg {
  width: 24px; height: 24px; color: var(--orange-500);
}
.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}
.field-hint {
  font-size: 13px;
  color: var(--slate-500);
  margin-top: 0.4rem;
  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.75rem; }
input[type="number"], select {
  width: 100%;
  padding: 0.85rem 0.9rem;
  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(--teal-500);
  box-shadow: 0 0 0 4px rgba(62, 142, 94, 0.12);
}
select { cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23586676' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.25rem; }

.slider-row { display: flex; align-items: center; gap: 0.875rem; }
.slider-row input[type="range"] { flex: 1; }
.slider-row .slider-value {
  min-width: 80px;
  text-align: right;
  font-weight: 700;
  color: var(--teal-700);
  font-family: var(--font-head);
  font-size: 1rem;
}
input[type="range"] {
  -webkit-appearance: none;
  height: 6px;
  background: linear-gradient(90deg, var(--teal-100), var(--border));
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-warmth);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-warmth);
  cursor: pointer;
  border: 3px solid white;
}

/* === RADIO GROUP / SEGMENTED === */
.segmented {
  display: flex;
  gap: 0.375rem;
  background: var(--border-soft);
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.segmented label {
  flex: 1;
  margin: 0;
  cursor: pointer;
  text-align: center;
  padding: 0.55rem 0.5rem;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-500);
  transition: all 0.2s;
}
.segmented input[type="radio"] { display: none; }
.segmented input[type="radio"]:checked + span,
.segmented label.active {
  background: white;
  color: var(--teal-900);
  box-shadow: var(--shadow-sm);
}

/* === RESULTS PANEL — GLOWING === */
.results {
  background:
    radial-gradient(ellipse at top right, rgba(245, 158, 11, 0.18), transparent 50%),
    linear-gradient(160deg, var(--teal-950) 0%, var(--teal-700) 50%, #14586b 100%);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  color: white;
  box-shadow: var(--shadow-glow-teal);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.results::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.30), transparent 65%);
  pointer-events: none;
  animation: pulseGlow 5s ease-in-out infinite;
}
.results::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(62, 142, 94, 0.35), transparent 65%);
  pointer-events: none;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.results > * { position: relative; z-index: 2; }

.results-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange-400);
  margin-bottom: 0.6rem;
}
.big-number {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #f4d4b5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 4px 20px rgba(255, 200, 150, 0.3);
}
.big-unit {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.75rem;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.stat-grid.two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .stat-grid, .stat-grid.two-col { grid-template-columns: 1fr; } }
.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  transition: transform 0.2s, background 0.2s;
}
.stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.stat-value {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
}
.grant-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--grad-orange);
  color: white;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

/* === CITY/STATE STRIP === */
.chip-strip {
  background: var(--paper);
  border: 1px solid rgba(230, 223, 211, 0.6);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem auto;
  max-width: 1100px;
  box-shadow: var(--shadow-sm);
}
.chip-strip h3 { margin-bottom: 1rem; font-size: 1.05rem; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.chip {
  background: var(--teal-100);
  color: var(--teal-900);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid rgba(13, 59, 46, 0.08);
}
.chip:hover {
  background: var(--teal-700);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.chip.accent { background: var(--orange-100); color: var(--orange-700); border-color: rgba(245, 158, 11, 0.15); }
.chip.accent:hover { background: var(--orange-500); color: white; }

/* === HOW IT WORKS === */
.how-it-works { margin: 3.5rem auto; max-width: 1100px; }
.how-it-works h2 { text-align: center; }
.how-it-works > p { text-align: center; max-width: 720px; margin: 0 auto 1.5rem; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.step {
  background: var(--paper);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(230, 223, 211, 0.6);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-xs);
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.step-num {
  display: inline-flex;
  width: 36px; height: 36px;
  background: var(--grad-warmth);
  color: white;
  border-radius: 12px;
  align-items: center; justify-content: center;
  font-weight: 800;
  font-family: var(--font-head);
  margin-bottom: 0.9rem;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.step h4 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}
.step p { font-size: 14px; margin: 0; color: var(--slate-500); }

/* === CONTENT PROSE === */
.prose {
  max-width: 760px;
  margin: 2.5rem auto;
}
.prose p { margin-bottom: 1.3rem; line-height: 1.7; }
.prose ul, .prose ol { margin: 1rem 0 1.3rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; color: var(--slate-700); }
.prose strong { color: var(--slate-900); font-weight: 700; }
.prose h2 { font-size: 1.65rem; text-align: left; }
.prose h3 { font-size: 1.3rem; margin-top: 2rem; }

/* === COMPARE TABLE === */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  border: 1px solid rgba(230, 223, 211, 0.5);
}
.compare-table th, .compare-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.compare-table th {
  background: linear-gradient(180deg, var(--teal-100), var(--teal-50));
  color: var(--teal-900);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--cream-warm); }

/* === FAQ === */
.faq { margin: 3.5rem auto; max-width: 900px; }
.faq h2 { text-align: center; margin-bottom: 1.5rem; }
.faq-item {
  background: var(--paper);
  border: 1px solid rgba(230, 223, 211, 0.6);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}
.faq-item:hover { border-color: rgba(13, 59, 46, 0.2); }
.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 59, 46, 0.2);
}
.faq-item summary {
  padding: 1.3rem 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-950);
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--orange-500);
  font-weight: 400;
  transition: transform 0.25s;
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--orange-50);
  border-radius: 50%;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--orange-100);
}
.faq-item .faq-body {
  padding: 0 1.5rem 1.4rem;
  color: var(--slate-700);
  line-height: 1.7;
}

/* === RELATED === */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.75rem auto;
  max-width: 1100px;
}
.related-card {
  background: var(--paper);
  border: 1px solid rgba(230, 223, 211, 0.6);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  display: block;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.related-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-warmth);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.related-card:hover {
  border-color: var(--teal-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.related-card:hover::before { transform: scaleX(1); }
.related-card h4 {
  font-family: var(--font-head);
  margin-bottom: 0.5rem;
  color: var(--teal-900);
}
.related-card p { font-size: 14px; color: var(--slate-500); margin: 0; }

/* === AUTHOR === */
.author-card {
  background: var(--paper);
  border: 1px solid rgba(230, 223, 211, 0.6);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  margin: 2.5rem auto;
  max-width: 900px;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.author-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08), transparent 70%);
  pointer-events: none;
}
@media (max-width: 480px) { .author-card { flex-direction: column; } }
.author-photo {
  width: 84px; height: 84px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-warmth);
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.85rem;
  color: white;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
  position: relative;
  z-index: 1;
}
.author-info { position: relative; z-index: 1; }
.author-info h4 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.author-title {
  font-size: 12px;
  color: var(--teal-700);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}
.author-bio { font-size: 14px; color: var(--slate-500); margin: 0; line-height: 1.65; }

/* === DEPRECATED: keep for backward compat === */
figure { margin: 2rem auto; max-width: 1100px; }
.hero-image, .inline-image { display: none; }
figcaption { display: none; }

/* === DISCLAIMER === */
.disclaimer {
  font-size: 12px;
  color: var(--slate-500);
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--border-soft);
  border-radius: var(--radius-sm);
  line-height: 1.55;
  border: 1px solid rgba(230, 223, 211, 0.4);
}

/* === ADSENSE PLACEHOLDER === */
.adsense-slot {
  background: linear-gradient(135deg, var(--border-soft), rgba(241, 236, 226, 0.5));
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2.5rem auto;
  max-width: 1100px;
  font-size: 12px;
  color: var(--slate-300);
  font-family: var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* === AFFILIATE CTA === */
.affiliate-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--grad-orange);
  color: white;
  padding: 0.95rem 1.65rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
  text-decoration: none;
  margin: 1rem 0;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}
.affiliate-cta:hover {
  background: var(--grad-orange);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

/* === FOOTER === */
footer {
  background: linear-gradient(180deg, var(--teal-900) 0%, var(--teal-950) 100%);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5rem;
  padding: 3.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227,100,20,0.3), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h5 {
  font-family: var(--font-head);
  color: white;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.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-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);
}

/* === HOMEPAGE === */
.hero-home {
  padding: 3.5rem 0 1.5rem;
  text-align: center;
  position: relative;
}
.hero-home h1 {
  margin: 0 auto 1.25rem;
  max-width: 820px;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.05;
}
.hero-home .hero-subtitle {
  margin: 0 auto 2.25rem;
  font-size: 1.2rem;
  max-width: 660px;
}
.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.btn-primary {
  background: var(--grad-warmth);
  color: white;
  padding: 1rem 1.85rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 50%);
  pointer-events: none;
}
.btn-primary:hover {
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-secondary {
  background: rgba(255,255,255,0.7);
  color: var(--teal-700);
  padding: 1rem 1.85rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid rgba(13, 59, 46, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: var(--teal-500);
  color: var(--teal-900);
  text-decoration: none;
  background: white;
  transform: translateY(-2px);
}

.calc-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem auto;
  max-width: 1100px;
}
.calc-tile {
  background: var(--paper);
  border: 1px solid rgba(230, 223, 211, 0.6);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.75rem 1.65rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.calc-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-warmth);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.calc-tile::after {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.calc-tile:hover {
  text-decoration: none;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 59, 46, 0.25);
}
.calc-tile:hover::before { transform: scaleX(1); }
.calc-tile:hover::after { opacity: 1; }
.calc-tile-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(13, 59, 46, 0.08);
  position: relative;
  z-index: 1;
}
.calc-tile-icon svg {
  width: 26px; height: 26px;
  color: var(--teal-700);
}
.calc-tile h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--teal-900);
  position: relative;
  z-index: 1;
}
.calc-tile p {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
.calc-tile-tag {
  display: inline-block;
  background: var(--orange-100);
  color: var(--orange-700);
  font-size: 11px;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-top: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}
.calc-tile-tag.teal { background: var(--teal-100); color: var(--teal-900); }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-700);
  margin-bottom: 0.5rem;
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--orange-50);
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  margin: 2.5rem auto;
  max-width: 1100px;
}
.feature {
  text-align: left;
}
.feature-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(13, 59, 46, 0.08);
}
.feature-icon svg { width: 24px; height: 24px; color: var(--teal-700); }
.feature h4 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  margin-bottom: 0.3rem;
}
.feature p { font-size: 14px; color: var(--slate-500); margin: 0; line-height: 1.6; }

/* === HOMEPAGE HERO ART (animated CSS illustration) === */
.home-hero-art {
  margin: 2.5rem auto 1rem;
  max-width: 1100px;
  height: 440px;
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 30% 100%, rgba(245, 158, 11, 0.20), transparent 60%),
    radial-gradient(ellipse 70% 80% at 70% 0%, rgba(13, 59, 46, 0.35), transparent 70%),
    linear-gradient(135deg, var(--teal-950) 0%, var(--teal-700) 60%, #186273 100%);
  box-shadow: var(--shadow-xl);
}
.home-hero-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

/* Stylized house + heat pump SVG scene */
.home-hero-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.home-hero-scene svg {
  width: 90%;
  max-width: 720px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

/* Floating energy badges */
.home-hero-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.home-hero-badge {
  position: absolute;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex; align-items: center; gap: 0.5rem;
  animation: floatBadge 4s ease-in-out infinite;
}
.home-hero-badge svg { width: 16px; height: 16px; }
.home-hero-badge.b1 { top: 12%; left: 6%; }
.home-hero-badge.b2 { top: 18%; right: 8%; animation-delay: 1s; }
.home-hero-badge.b3 { bottom: 18%; left: 10%; animation-delay: 2s; }
.home-hero-badge.b4 { bottom: 14%; right: 6%; animation-delay: 3s; }
.home-hero-badge.accent { background: rgba(245, 158, 11, 0.85); border-color: rgba(245, 158, 11, 1); box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4); }
.home-hero-badge .pulse-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 12px #4ade80;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (max-width: 720px) {
  .home-hero-art { height: 360px; }
  .home-hero-badge.b1, .home-hero-badge.b3 { left: 4%; font-size: 12px; padding: 0.45rem 0.7rem; }
  .home-hero-badge.b2, .home-hero-badge.b4 { right: 4%; font-size: 12px; padding: 0.45rem 0.7rem; }
}

/* === LEGAL/SIMPLE PAGE === */
.legal-content {
  max-width: 760px;
  margin: 1.5rem auto;
  background: var(--paper);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(230, 223, 211, 0.6);
  box-shadow: var(--shadow-sm);
}
.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  text-align: left;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul, .legal-content ol { margin: 0.75rem 0 1rem 1.5rem; }
.legal-content li { margin-bottom: 0.5rem; }

/* === CONTACT FORM === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
}
.contact-form textarea { min-height: 140px; resize: vertical; font-family: var(--font-body); }
.contact-form button {
  background: var(--grad-warmth);
  color: white;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}
.contact-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

/* === MICRO ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.big-number, .stat-card, .hero-home, .calc-card { animation: fadeUp 0.5s ease-out both; }
.calc-card { animation-delay: 0.05s; }
.results { animation-delay: 0.1s; animation: fadeUp 0.5s ease-out 0.1s both; }
