/* SolarToolsOnline - Main Stylesheet */

/* ── Skip-to-Content Link (Accessibility) ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -999;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  width: auto;
  height: auto;
  overflow: visible;
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* ── Global Focus-Visible Styles (Keyboard Navigation) ── */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
.nav-links a:focus-visible,
.nav-logo:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn-primary:focus-visible,
.btn-link:focus-visible,
.btn-calc:focus-visible,
.btn-reset:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(22,163,74,0.2);
}
.nav-hamburger:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Self-hosted Inter font (Latin subset, variable weight 100-900) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #f7f9f7;
  --color-primary: #16a34a;
  --color-primary-light: #4ade80;
  --color-primary-bg: #dcfce7;
  --color-primary-text: #15803d;
  --color-heading: #111;
  --color-body: #555;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-card-bg: #fff;
  --color-stats-bg: #111;
  --color-nav-bg: #fff;
  --color-footer-bg: #111;
  --color-input-border: #d1d5db;
  --color-label: #374151;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overscroll-behavior-x: none;
}

*, *::before, *::after { box-sizing: border-box; }
img, svg { max-width: 100%; display: block; }
/* Reset max-width for layout containers */
.tools-grid, .two-col, .hero-inner, .stats-bar-inner, .quicknav-inner, .page-section-inner, .tools-inner, .footer-row, .calc-container, .form-grid { max-width: none; }

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  overflow-anchor: none;
  touch-action: pan-y;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ─── NAV ─────────────────────────────────────────────────────────────── */
.nav {
  background: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-heading);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.nav-logo span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-body);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}

.nav-cta:hover {
  background: #15803d !important;
  transform: translateY(-1px);
}

/* ─── HERO ────────────────────────────────────────────────────────────── */
.hero-section {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-bg);
  color: var(--color-primary-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-h1 {
  font-size: 52px;
  font-weight: 900;
  color: var(--color-heading);
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-h1 .accent {
  color: var(--color-primary);
}

.hero-desc {
  font-size: 17px;
  color: var(--color-body);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
}

/* Search Bar */
.hero-search {
  background: #fff;
  border: 1.5px solid var(--color-input-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  margin-bottom: 32px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hero-search:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(22,163,74,0.12);
}

.hero-search-icon {
  flex-shrink: 0;
  color: var(--color-muted);
  display: flex;
  align-items: center;
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--color-heading);
  background: transparent;
}

.hero-search input::placeholder {
  color: var(--color-muted);
}

.hero-search-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.hero-search-btn:hover {
  background: #15803d;
}

/* Action Row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.btn-link {
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  background: none;
  border: none;
  font-family: var(--font-main);
}

.btn-link:hover {
  opacity: 0.8;
}

/* Hero Visual */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-card {
  background: var(--color-card-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.hero-card.featured {
  grid-column: span 2;
  background: var(--color-primary);
  border-color: transparent;
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-card-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.hero-card-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.hero-card.featured .hero-card-label {
  color: rgba(255,255,255,0.7);
}

.hero-card:not(.featured) .hero-card-label {
  color: var(--color-muted);
}

.hero-card-value {
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-card.featured .hero-card-value {
  font-size: 36px;
  color: #fff;
}

.hero-card:not(.featured) .hero-card-value {
  font-size: 28px;
  color: var(--color-heading);
}

.hero-card-sub {
  font-size: 14px;
  line-height: 1.4;
}

.hero-card.featured .hero-card-sub {
  color: rgba(255,255,255,0.75);
}

.hero-card:not(.featured) .hero-card-sub {
  color: var(--color-muted);
  font-size: 12px;
}

/* ─── STATS BAR ───────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--color-stats-bg);
  padding: 42px 48px;
}

.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.stat-item { display: flex; align-items: center; gap: 12px; }
.stat-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; }
.stat-text { display: flex; flex-direction: column; }
.stat-number { font-size: 26px; font-weight: 900; color: #4ade80; letter-spacing: -1px; line-height: 1; }
.stat-label { font-size: 12px; color: #9ca3af; margin-top: 1px; }

/* ─── TOOLS SECTION ───────────────────────────────────────────────────── */
.tools-section {
  padding: 64px 48px;
}

.tools-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--color-heading);
  letter-spacing: -1px;
  margin-bottom: 40px;
}

.no-results-msg {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--color-muted);
  font-size: 15px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tool-card {
  background: var(--color-card-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 14px 18px 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
/* disable hover-stick on touch devices */
@media (hover: none) {
  .tool-card:hover { transform: none !important; box-shadow: none !important; border-color: var(--color-border) !important; }
  .tool-card:active { background: #f0fdf4; border-color: var(--color-primary); }
}

.tool-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(22,163,74,0.12);
  transform: translateY(-2px);
}

.tool-card:focus { outline: none; }
.tool-card:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(22,163,74,0.15);
  transform: none;
}

.tool-icon {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.tool-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 5px;
  line-height: 1.35;
}

.tool-desc {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.5;
  flex: 1;
}

.tool-tag {
  display: inline-block;
  background: var(--color-primary-bg);
  color: var(--color-primary-text);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 10px;
  align-self: flex-start;
}

/* ─── FOOTER ──────────────────────────────────────────────────────────── */
.footer { background: #111; color: #fff; padding: 16px 48px; }
.footer-row { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-logo-link { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-logo-text { font-size: 15px; font-weight: 900; color: #fff; }
.footer-logo-text .green { color: #4ade80; }
.footer-center { display: flex; align-items: center; gap: 24px; }
.footer-center a { font-size: 13px; color: #9ca3af; text-decoration: none; }
.footer-center a:hover { color: #fff; }
.footer-disclaimer { font-size: 12px; color: #4b5563; }
.footer-copy { font-size: 12px; color: #4b5563; }

/* ─── CALCULATOR TWO-COLUMN LAYOUT ───────────────────────────────────── */
.calc-page-body {
  background: var(--color-bg);
}

.calc-main { background: var(--color-bg); padding: 48px 0; }
.calc-container { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.breadcrumb { display: inline-block; font-size: 14px; color: var(--color-primary); font-weight: 500; margin-bottom: 20px; }
.breadcrumb:hover { text-decoration: underline; }
.calc-title { font-size: 36px; font-weight: 900; color: var(--color-heading); letter-spacing: -1px; margin-bottom: 10px; }
.calc-intro { font-size: 16px; color: var(--color-body); line-height: 1.65; margin-bottom: 32px; max-width: 700px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-bottom: 32px; }
.calc-inputs { background: #fff; border: 1.5px solid var(--color-border); border-radius: 16px; padding: 28px; box-sizing: border-box; display: flex; flex-direction: column; min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-bottom: 0; flex: 1; align-content: start; align-items: end; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field input, .field select { width: 100%; border: 1.5px solid var(--color-input-border); border-radius: 8px; padding: 10px 14px; font-size: 15px; font-family: var(--font-main); color: var(--color-heading); background: #fff; outline: none; transition: border-color 0.15s; }
.field select { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.field input:focus, .field select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(22,163,74,0.08); }
.action-row { display: flex; gap: 10px; padding-top: 20px; margin-top: auto; }
.btn-calc { flex: 1; background: var(--color-primary); color: #fff; font-size: 15px; font-weight: 700; padding: 13px; border-radius: 10px; border: none; cursor: pointer; font-family: var(--font-main); transition: background 0.15s, transform 0.1s; }
.btn-calc:hover { background: #15803d; }
.btn-calc:active { background: #14532d; }
.btn-reset { background: #f3f4f6; color: #374151; font-size: 14px; font-weight: 600; padding: 13px 18px; border-radius: 10px; border: none; cursor: pointer; font-family: var(--font-main); }
.calc-results { background: #fff; border: 1.5px solid var(--color-border); border-radius: 16px; padding: 28px; box-sizing: border-box; min-width: 0; overflow: hidden; }
.calc-results h3 { font-size: 14px; font-weight: 700; color: var(--color-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.big-number { font-size: 48px; font-weight: 900; color: #16a34a; letter-spacing: -2px; line-height: 1; margin-bottom: 6px; }
.primary-label { font-size: 13px; color: var(--color-muted); margin-bottom: 20px; }
.result-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--color-border); padding-top: 16px; }
.result-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 15px; gap: 10px; }
.result-row span { color: var(--color-body); flex: 1; min-width: 0; line-height: 1.35; word-break: break-word; }
.result-row strong { color: var(--color-heading); font-weight: 700; flex-shrink: 0; text-align: right; white-space: nowrap; }
.result-row.primary-row strong { color: var(--color-heading); font-size: 14px; }
.about-card { background: #fff; border: 1.5px solid var(--color-border); border-radius: 16px; padding: 28px; }
.about-card h2 { font-size: 20px; font-weight: 800; color: var(--color-heading); margin-bottom: 12px; }
.about-card p { font-size: 15px; color: var(--color-body); line-height: 1.7; margin-bottom: 10px; }
.about-card a { color: #16a34a; text-decoration: underline; }
.about-card a:hover { color: #15803d; }
.about-card .disclaimer { color: var(--color-muted); font-size: 15px; font-style: italic; }
.about-expertise { font-size: 13px; color: var(--color-muted); border-top: 1px solid var(--color-border); margin-top: 12px !important; padding-top: 12px; }

/* ─── FAQ ACCORDION (calculator pages) ──────────────────────────────────── */
.faq-card { background: #fff; border: 1.5px solid var(--color-border); border-radius: 16px; padding: 28px; margin-top: 20px; }
.faq-card h2 { font-size: 20px; font-weight: 800; color: var(--color-heading); margin-bottom: 12px; }
/* strip inner faq-list border — the faq-card is already the cell */
.faq-card .faq-list { border: none; border-radius: 0; overflow: visible; margin-top: 4px; }
/* unified hover: highlight entire item (question + answer) together */
.faq-card .faq-question { background: #fff; transition: background 0.15s; }
.faq-card .faq-answer p { background: #fff; transition: background 0.15s; }
.faq-card .faq-item:hover .faq-question,
.faq-card .faq-item:hover .faq-answer p { background: #f9fafb; }

/* ─── FOOTER LAST UPDATED ────────────────────────────────────────────────── */
.footer-copy-block { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.footer-copy-block .footer-copy,
.footer-copy-block .footer-updated { font-size: 12px; color: #4b5563; display: block; line-height: 1.5; }

/* ─── LEGAL PAGES ─────────────────────────────────────────────────────── */
.legal-main {
  padding: 48px 24px 80px;
}

.legal-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-card-bg);
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.legal-card h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--color-heading);
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.legal-card .legal-date {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 32px;
  display: block;
}

.legal-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-heading);
  margin: 28px 0 10px;
}

.legal-card p {
  font-size: 15px;
  color: var(--color-body);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-card ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-card ul li {
  font-size: 15px;
  color: var(--color-body);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* ─── LANDING PAGE STYLES ─────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #052e16 0%, #14532d 60%, #166534 100%);
  padding: 80px 48px;
  text-align: center;
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.page-section {
  padding: 64px 48px;
}

.page-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-section h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--color-heading);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.page-section .section-intro {
  font-size: 16px;
  color: var(--color-body);
  margin-bottom: 40px;
  max-width: 600px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.calc-card-link {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.calc-card-link:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(22,163,74,0.12);
  transform: translateY(-2px);
}

.calc-card-link .card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-primary-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-card-link .card-text h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 4px;
}

.calc-card-link .card-text p {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.5;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
}

.info-card .info-num {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.info-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 14px;
  color: var(--color-body);
  line-height: 1.6;
}

.page-section.alt-bg {
  background: #fff;
}

/* Financing cards */
.financing-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.fin-card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 28px;
}

.fin-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(22,163,74,0.12);
}

.fin-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.fin-card .fin-tag {
  display: inline-block;
  background: var(--color-primary-bg);
  color: var(--color-primary-text);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.fin-card .fin-tag.orange { background: #fff7ed; color: #c2410c; }
.fin-card .fin-tag.blue { background: #eff6ff; color: #1d4ed8; }

.fin-card ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.fin-card ul li {
  font-size: 14px;
  color: var(--color-body);
  line-height: 1.6;
  padding: 4px 0;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  gap: 8px;
}

.fin-card ul li::before {
  content: '';
  flex-shrink: 0;
}

.fin-card .pros-list li::before { content: '+'; color: var(--color-primary); font-weight: 700; }
.fin-card .cons-list { margin-top: 12px; }
.fin-card .cons-list li::before { content: '−'; color: #ef4444; font-weight: 700; }

/* Learn page */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.concept-card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
}

.concept-card .concept-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.concept-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.concept-card p {
  font-size: 14px;
  color: var(--color-body);
  line-height: 1.65;
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item input[type="checkbox"] {
  display: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-heading);
  background: #fff;
  user-select: none;
  transition: background 0.15s;
}

.faq-question:hover {
  background: #f9fafb;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--color-muted);
  flex-shrink: 0;
}

.faq-item input:checked ~ .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item input:checked ~ .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--color-body);
  line-height: 1.7;
  background: #f9fafb;
}

/* Resources */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.resource-card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.resource-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(22,163,74,0.1);
}

.resource-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.resource-card p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ─── UTILITY / INLINE-STYLE REPLACEMENTS ───────────────────────────────── */
.qs-section-h2 { margin-top: 8px; }
.section-divider { border-top: 2px solid #e5e7eb; }
.page-section-tinted { background: #f7f9f7; border-bottom: 1px solid #e5e7eb; }
.find-solar-body { display: flex; flex-direction: column; min-height: 100vh; }
.zip-hero { padding: 56px 48px; }
.find-solar-results { padding: 40px 16px; max-width: 1000px; margin: 0 auto; flex: 1; }
.flex-spacer { flex: 1; }
#noResultsMsg { display: none; }

/* Find installers */
.zip-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
}

.zip-form input {
  flex: 1;
  border: 1.5px solid var(--color-input-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-main);
  outline: none;
}

.zip-form input:focus {
  border-color: var(--color-primary);
}

.zip-form button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
}

.zip-note {
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 0;
}

.installer-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.installer-card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  align-items: start;
}

.installer-rank {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.installer-info h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: 4px;
}

.installer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.installer-rating {
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
}

.installer-badge {
  display: inline-block;
  background: var(--color-primary-bg);
  color: var(--color-primary-text);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.installer-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.installer-pros h4, .installer-cons h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.installer-pros h4 { color: var(--color-primary); }
.installer-cons h4 { color: #ef4444; }

.installer-pros ul, .installer-cons ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.installer-pros ul li, .installer-cons ul li {
  font-size: 13px;
  color: var(--color-body);
  padding: 2px 0;
  display: flex;
  gap: 6px;
}

.installer-pros ul li::before { content: '+'; color: var(--color-primary); font-weight: 700; }
.installer-cons ul li::before { content: '−'; color: #ef4444; font-weight: 700; }

.installer-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.btn-quote {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}

.btn-quote:hover { background: #15803d; }

.disclaimer-note {
  background: #f9fafb;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
  margin-top: 24px;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .concept-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .financing-options { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* ── OVERFLOW FIX (position:sticky-safe — no clip/relative on html) ── */
  html { overscroll-behavior-x: none !important; }
  body { overflow-x: hidden !important; overscroll-behavior-x: none !important; max-width: 100% !important; touch-action: pan-y !important; }
  * { max-width: 100% !important; box-sizing: border-box !important; min-width: 0 !important; }
  /* ── Ticker: MUST be exempt — needs to overflow to scroll ── */
  .ticker-bar { overflow: hidden !important; max-width: 100vw !important; }
  .ticker-track { max-width: none !important; min-width: unset !important; }
  .ticker-item { max-width: none !important; white-space: nowrap !important; flex-shrink: 0 !important; }
  .tools-grid, .two-col, .hero-inner, .stats-bar-inner, .quicknav-inner, .page-section-inner, .tools-inner, .footer-row, .calc-container, .form-grid { max-width: 100% !important; overflow-x: hidden !important; width: 100% !important; }
  .hero-section, .stats-bar, .quicknav-bar, .tools-section, .footer, main, section { max-width: 100% !important; overflow-x: hidden !important; }
  .calc-inputs, .calc-results { min-width: 0 !important; overflow: hidden !important; }
  .field input, .field select { width: 100% !important; min-width: 0 !important; }
  .two-col > * { min-width: 0 !important; }

  /* ── NAV & HAMBURGER ── */
  .nav { position: sticky; top: 0; z-index: 100; overflow: visible; max-width: 100vw; }
  .nav-inner {
    padding: 0 16px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
  }
  .nav-links {
    display: none !important;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column !important;
    padding: 8px 0 12px;
    gap: 0;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    box-sizing: border-box;
  }
  .nav-links.nav-open { display: flex !important; }
  .nav-links li { border-bottom: 1px solid #f3f4f6; }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block !important; padding: 13px 20px; font-size: 15px; }
  .nav-cta { background: none !important; color: var(--color-primary) !important; border-radius: 0 !important; }
  .nav-hamburger { display: flex !important; flex-shrink: 0; margin-left: auto; }
  .nav-is-open .nav-hamburger { margin-left: 0; flex-shrink: 0; }

  /* ── HERO ── */
  .hero-section { overflow: hidden; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) !important; padding: 28px 16px 20px !important; gap: 16px; width: 100%; }
  .hero-left { min-width: 0; width: 100%; overflow: hidden; }
  .hero-h1 { font-size: 24px; word-break: break-word; overflow-wrap: anywhere; }
  .hero-desc { font-size: 14px; }
  .hero-search { width: 100%; box-sizing: border-box; }
  .hero-card:not(.featured) { display: none; }
  .hero-visual { grid-template-columns: minmax(0,1fr) !important; }
  .hero-card.featured { grid-column: span 1; }
  .btn-link { display: none; }
  .quicknav-bar { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-primary { width: 100%; text-align: center; }

  /* ── STATS BAR: 2 most important facts side by side ── */
  .stats-bar { display: block !important; padding: 32px 12px; }
  .stats-bar-inner { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; justify-content: center !important; gap: 16px !important; }
  .stat-item { max-width: none; flex: 1; justify-content: center; }
  .stat-item:nth-child(n+3) { display: none; }
  .stat-number { font-size: 18px; }
  .stat-label { font-size: 10px; }

  /* ── TOOLS GRID: 2 per row, no description ── */
  .tools-section { padding: 24px 12px; }
  .tools-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .tool-desc { display: none; }
  .tool-card { padding: 12px; }
  .tool-name { font-size: 12px; overflow-wrap: break-word; word-break: break-word; white-space: normal; }
  .section-title { font-size: 22px; margin-bottom: 16px; }

  /* ── FOOTER ── */
  .footer { padding: 16px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-center { flex-wrap: wrap; gap: 14px; }
  .footer-copy-block { flex-direction: row; align-items: center; gap: 8px; }

  /* ── CALCULATOR PAGES: side by side panels at 768px ── */
  .calc-container { padding: 0 14px; }
  .calc-main { padding: 16px 0; }
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 10px; }
  .calc-inputs { padding: 14px; height: auto; min-height: unset; }
  .calc-results { padding: 14px; height: auto; min-height: unset; }
  .calc-title { font-size: 20px; letter-spacing: -0.5px; margin-bottom: 6px; }
  .calc-intro { font-size: 13px; margin-bottom: 12px; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .field label { font-size: 12px; margin-bottom: 3px; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
  .field input, .field select { padding: 8px 10px; font-size: 16px; } /* 16px prevents iOS zoom-on-focus */
  .big-number { font-size: 28px; }
  .primary-label { font-size: 12px; margin-bottom: 10px; }
  .calc-results h3 { font-size: 12px; margin-bottom: 8px; }
  .result-row { font-size: 12px; padding: 5px 0; gap: 6px; }
  .btn-calc, .btn-reset { font-size: 13px; padding: 10px; }
  .about-detail { display: none; }
  .about-card { padding: 14px; }
  .about-card h2 { font-size: 15px; }
  .about-card p, .about-card .disclaimer { font-size: 13px; }

  /* ── OTHER PAGES ── */
  .page-hero { padding: 32px 16px; }
  .page-hero h1 { font-size: 26px; word-break: break-word; }
  .page-section { padding: 24px 16px; }
  .three-col { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr !important; gap: 8px; }
  .installer-card { grid-template-columns: 1fr; }
  .installer-pros-cons { grid-template-columns: 1fr; }
  .legal-card { padding: 18px 14px; }
  .breadcrumb { font-size: 12px; }
  .zip-hero { padding: 36px 16px !important; }
  .zip-hero h1 { font-size: 24px !important; word-break: break-word; }

  .calc-grid { grid-template-columns: 1fr; }
  .concept-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* ── Keep calculator panels side-by-side; stack form fields inside each panel ── */
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 8px; }
  .form-grid { grid-template-columns: 1fr 1fr !important; gap: 6px; }
  .field label { font-size: 12px !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
  .field input, .field select { padding: 7px 8px !important; font-size: 16px !important; } /* 16px prevents iOS zoom-on-focus */
  .calc-inputs { padding: 10px !important; }
  .calc-results { padding: 10px !important; }
  .big-number { font-size: 22px !important; }
  .result-row { font-size: 12px !important; gap: 6px !important; }
  .btn-calc { font-size: 12px !important; padding: 9px !important; }

  /* ── Grids ── */
  .tools-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .calc-grid { grid-template-columns: 1fr; }
  .concept-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }

  /* ── Page sections ── */
  .page-hero { padding: 24px 16px !important; }
  .page-hero h1 { font-size: 22px !important; }
  .page-section { padding: 20px 16px !important; }
  .section-title { font-size: 20px !important; }

  /* ── Estimator / comp rows ── */
  .est-row { flex-wrap: wrap; gap: 10px; }
  .comp-result-grid { grid-template-columns: 1fr !important; }
}

.formula-line { display: none; }

/* ─── RESULT FLASH ANIMATION ─────────────────────────────────────────────── */
@keyframes resultFlash {
  0%   { color: #15803d; }
  50%  { color: #15803d; }
  100% { color: inherit; }
}
.result-flash {
  animation: resultFlash 0.55s ease-out forwards;
}

/* ─── QUICKNAV SECTION ────────────────────────────────────────────────────── */
.quicknav-bar {
  background: #f7f9f7;
  border-bottom: 1px solid var(--color-border);
  padding: 0;
}

.quicknav-inner {
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.qnav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 44px 28px;
  text-decoration: none;
  border: none;
  border-right: 1px solid var(--color-border);
  border-radius: 0;
  background: #f7f9f7;
  transition: background 0.15s, box-shadow 0.15s;
}

.qnav-item:last-child { border-right: none; }

.qnav-item:hover { background: #edf5ee; box-shadow: inset 0 -3px 0 var(--color-primary); }

.qnav-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-primary-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qnav-text { flex: 1; min-width: 0; }

.qnav-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 2px;
  white-space: nowrap;
}

.qnav-desc {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.4;
}

.qnav-arrow {
  font-size: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
}

.qnav-item:hover .qnav-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ─── HAMBURGER MENU ──────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── NAV ICON: hidden on desktop, shown in mobile open state ── */
.nav-icon { display: none; }

/* ── NAV OPEN: icons appear to the left of hamburger, logo stays visible ── */
@media (max-width: 768px) {
  .nav-links.nav-open {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    width: auto !important;
    flex: none !important;
    margin-left: auto !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    top: unset !important;
    left: unset !important;
    right: unset !important;
  }
  .nav-links.nav-open li { border-bottom: none !important; }
  .nav-links.nav-open a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 8px !important;
    font-size: 0 !important;
    white-space: nowrap !important;
  }
  .nav-links.nav-open .nav-icon {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
  }
  .nav-links.nav-open .nav-text { display: none !important; }
  .nav-links.nav-open .nav-cta {
    background: none !important;
    color: var(--color-primary) !important;
    border-radius: 0 !important;
    padding: 6px 8px !important;
  }
  /* Hamburger → X animation */
  .nav-is-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-is-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-is-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

.about-detail { /* hidden on mobile via media query */ }

/* Savings 3-step grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.step-num {
  font-size: 32px;
  font-weight: 900;
  color: #16a34a;
  margin-bottom: 8px;
}
.step-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}
.step-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}


/* ── Inline style extractions ── */
.page-section--shaded { background: #f7f9f7; border-bottom: 1px solid #e5e7eb; }
.page-section-h2 { font-size: 28px; font-weight: 900; color: #111; margin-bottom: 8px; }
.page-section-intro { color: #555; margin-bottom: 32px; }
.calc-notice { background: #fef3c7; border: 1px solid #f59e0b; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; line-height: 1.5; }

/* ── Advanced Options collapsible ── */
.advanced-toggle-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  padding: 8px 0 2px;
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
}
.advanced-toggle {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.advanced-toggle:hover { color: #6b7280; }
.adv-arrow {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #9ca3af;
  border-bottom: 1.5px solid #9ca3af;
  transform: rotate(-45deg) translate(-1px, 1px);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  vertical-align: 1px;
}
.advanced-toggle[data-open="true"] .adv-arrow {
  transform: rotate(45deg) translate(-1px, -2px);
}
/* advanced-field items start hidden — JS controls display */

/* ── Mobile: field label font-size ── */
@media (max-width: 600px) {
  .field label { font-size: 11px; }
  .field input, .field select { font-size: 13px; padding: 7px 8px; }
  .advanced-toggle { font-size: 11px; padding: 4px 9px; }
}


/* ── Ticker / Marquee ─────────────────────────────────────── */
.ticker-bar {
  background: #0a1a0e;
  border-bottom: 2px solid rgba(74,222,128,0.18);
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 100vw;
}
.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  flex-shrink: 0;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.82);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  height: 40px;
  flex-shrink: 0;
  white-space: nowrap;
}
.ticker-item::before {
  content: '●';
  color: #4ade80;
  font-size: 6px;
  flex-shrink: 0;
}
.ticker-item strong { color: #4ade80; font-weight: 900; }
.ticker-item.ticker-quiz { color: rgba(255,255,255,0.75); }
.ticker-item.ticker-quiz a { color: #86efac; font-weight: 900; text-decoration: underline; text-underline-offset: 2px; }
.ticker-item.ticker-savings { color: #ffffff; }
.ticker-item.ticker-savings strong { color: #4ade80; font-weight: 900; }
/* Tablet */
@media (max-width: 900px) {
  .ticker-item { font-size: 10.5px; padding: 0 22px; letter-spacing: 0.06em; }
}
/* Mobile large */
@media (max-width: 600px) {
  .ticker-bar { height: 34px; }
  .ticker-item { font-size: 9.5px; padding: 0 16px; height: 34px; letter-spacing: 0.05em; gap: 8px; }
  .ticker-item::before { font-size: 5px; }
}
/* Mobile small */
@media (max-width: 400px) {
  .ticker-bar { height: 32px; }
  .ticker-item { font-size: 9px; padding: 0 12px; height: 32px; gap: 6px; }
}

/* ── Quiz CTA bar (savings / financing / find pages) ─────── */
.quiz-cta-bar {
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
  padding: 13px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.quiz-cta-bar-text { color: #15803d; font-size: 14px; font-weight: 500; }
.quiz-cta-bar-btn {
  background: #16a34a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.quiz-cta-bar-btn:hover { background: #15803d; }

/* ── Comparison Table (learn.html) ───────────────────────── */
.comp-input-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.comp-input-row label { font-size: 15px; font-weight: 600; color: #111; white-space: nowrap; }
.comp-input-row input[type="range"] { flex: 1; min-width: 180px; max-width: 300px; accent-color: #16a34a; }
.comp-table-wrap { overflow-x: auto; margin-bottom: 14px; }
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 380px;
}
.comp-table th {
  padding: 13px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #e5e7eb;
}
.comp-table th:first-child { text-align: left; }
.comp-table th.comp-col-no { color: #dc2626; background: #fff5f5; }
.comp-table th.comp-col-yes { color: #15803d; background: #f0fdf4; }
.comp-table td { padding: 11px 20px; border-bottom: 1px solid #f3f4f6; color: #374151; }
.comp-table td:first-child { font-weight: 500; color: #111; }
.comp-table td:not(:first-child) { text-align: center; }
.comp-green { color: #15803d; font-weight: 600; }
.comp-red { color: #dc2626; }
.comp-table .comp-grand-row td { border-top: 2px solid #e5e7eb; font-weight: 700; padding-top: 14px; background: #fafafa; }
.comp-table .comp-save-row { background: #f0fdf4; }
.comp-table .comp-save-row td { padding: 14px 20px; font-weight: 700; }
.comp-save-val { color: #15803d; font-size: 18px; font-weight: 800; text-align: center; }
.comp-notes { font-size: 12px; color: #9ca3af; line-height: 1.5; margin-bottom: 20px; margin-top: 6px; }
.comp-cta { text-align: center; margin-top: 4px; }

/* ── Quiz page ───────────────────────────────────────────── */
.quiz-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-bottom: 1px solid #bbf7d0;
  padding: 52px 24px 44px;
  text-align: center;
}
.quiz-hero h1 {
  font-size: clamp(24px,4vw,38px);
  font-weight: 900;
  color: #111;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.quiz-hero p { font-size: 16px; color: #555; max-width: 460px; margin: 0 auto; line-height: 1.65; }
.quiz-body {
  min-height: calc(100vh - 64px - 260px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px 64px;
  background: #f7f9f7;
}
.quiz-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 40px 44px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
}
.quiz-progress { display: flex; gap: 8px; margin-bottom: 32px; }
.quiz-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5e7eb; }
.quiz-dot.active { background: #16a34a; }
.quiz-dot.done { background: #4ade80; }
.quiz-q { font-size: clamp(17px,2.5vw,22px); font-weight: 800; color: #111; margin-bottom: 8px; letter-spacing: -0.4px; }
.quiz-sub { font-size: 14px; color: #6b7280; margin-bottom: 28px; line-height: 1.5; }
.quiz-options { display: grid; gap: 12px; }
.quiz-opts-3 { grid-template-columns: repeat(3, 1fr); }
.quiz-opts-2 { grid-template-columns: repeat(2, 1fr); }
.quiz-opts-1 { grid-template-columns: 1fr; }
.quiz-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 16px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  text-align: left;
  font-family: var(--font-main);
}
.quiz-opt:hover { border-color: #16a34a; background: #f0fdf4; box-shadow: 0 0 0 3px rgba(22,163,74,0.08); }
.quiz-opt-icon { font-size: 22px; margin-bottom: 6px; }
.quiz-opt-label { font-size: 14px; font-weight: 700; color: #111; line-height: 1.3; }
.quiz-opt-sub { font-size: 12px; color: #6b7280; line-height: 1.4; }
.quiz-back { background: none; border: none; color: #6b7280; font-size: 13px; cursor: pointer; padding: 0; margin-bottom: 20px; font-family: var(--font-main); }
.quiz-back:hover { color: #111; }
.quiz-result-card { text-align: center; }
.quiz-result-icon { font-size: 54px; margin-bottom: 16px; line-height: 1; }
.quiz-result-badge { display: inline-block; background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; margin-bottom: 14px; }
.quiz-result-title { font-size: 22px; font-weight: 800; color: #111; margin-bottom: 12px; letter-spacing: -0.5px; }
.quiz-result-desc { font-size: 15px; color: #555; line-height: 1.65; margin-bottom: 28px; max-width: 420px; margin-left: auto; margin-right: auto; }
.quiz-result-btn {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 38px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  margin-bottom: 6px;
}
.quiz-result-btn:hover { background: #15803d; transform: translateY(-1px); }
.quiz-result-alt { display: block; font-size: 13px; color: #9ca3af; margin-top: 14px; text-decoration: underline; text-underline-offset: 2px; }
.quiz-result-alt:hover { color: #555; }
@media (max-width: 600px) {
  .quiz-opts-3, .quiz-opts-2 { grid-template-columns: 1fr; }
  .quiz-card { padding: 24px 20px; }
  .quiz-cta-bar { padding: 11px 20px; }
}

/* ── Interactive Estimate Strip (replaces quicknav) ──────────────────────── */
.estimate-strip {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.estimate-strip-inner {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 0;
}
.estimate-input-col {
  padding: 28px 32px;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.estimate-input-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.estimate-bill-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 28px;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -1px;
}
.estimate-bill-row span { font-size: 20px; color: var(--color-muted); font-weight: 500; }
.estimate-bill-row input {
  width: 80px;
  border: none;
  outline: none;
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  background: transparent;
  font-family: var(--font-main);
  letter-spacing: -1px;
  -moz-appearance: textfield;
}
.estimate-bill-row input::-webkit-inner-spin-button,
.estimate-bill-row input::-webkit-outer-spin-button { -webkit-appearance: none; }
.estimate-cta-link {
  font-size: 12px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.estimate-cta-link:hover { text-decoration: underline; }
.estimate-metric {
  padding: 28px 24px;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background 0.15s;
}
.estimate-metric:last-child { border-right: none; }
.estimate-metric:hover { background: #f9fafb; }
.estimate-metric-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.5px;
  line-height: 1;
  transition: color 0.2s;
}
.estimate-metric-val.highlight { color: var(--color-primary); }
.estimate-metric-key {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 500;
}

/* ── Hero card interactive bill input ─────────────────────────────────────── */
.hero-est-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  width: fit-content;
}
.hero-est-row label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  white-space: nowrap;
}
.hero-est-row span { font-size: 14px; color: rgba(255,255,255,0.8); }
.hero-est-row input {
  width: 48px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-main);
  -moz-appearance: textfield;
  text-align: right;
}
.hero-est-row input::-webkit-inner-spin-button,
.hero-est-row input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Page interactive widget (savings / financing pages) ─────────────────── */
.est-widget {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 32px;
  margin-top: 4px;
}
.est-controls {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.est-control { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 180px; }
.est-control label { font-size: 13px; font-weight: 600; color: var(--color-heading); }
.est-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1.5px solid var(--color-input-border);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fafafa;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-heading);
}
.est-input-wrap:focus-within { border-color: var(--color-primary); background: #fff; }
.est-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-main);
  min-width: 60px;
  -moz-appearance: textfield;
}
.est-input-wrap input::-webkit-inner-spin-button,
.est-input-wrap input::-webkit-outer-spin-button { -webkit-appearance: none; }
.est-input-wrap select {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  font-family: var(--font-main);
  color: var(--color-heading);
  cursor: pointer;
}
.est-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.est-result-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 18px 20px;
}
.est-result-card.neutral { background: #f9fafb; border-color: var(--color-border); }
.est-result-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary-text);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.est-result-card.neutral .est-result-val { color: var(--color-heading); }
.est-result-key { font-size: 12px; color: var(--color-muted); font-weight: 500; }
.est-disclaimer { font-size: 12px; color: #9ca3af; line-height: 1.5; }
.est-disclaimer a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }

/* Financing comparison table */
.fin-comp-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 24px; }
.fin-comp-table th {
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-heading);
}
.fin-comp-table th:first-child { text-align: left; }
.fin-comp-table td { padding: 11px 16px; border-bottom: 1px solid #f3f4f6; color: var(--color-body); }
.fin-comp-table td:first-child { font-weight: 500; color: var(--color-heading); }
.fin-comp-table td:not(:first-child) { text-align: center; }
.fin-col-best { color: var(--color-primary-text); font-weight: 700; }
.fin-col-mid { color: var(--color-heading); }
.fin-col-low { color: var(--color-muted); }
.fin-comp-table .fin-total-row td { border-top: 2px solid var(--color-border); font-weight: 700; background: #f9fafb; }

/* Quiz step number badge */
.quiz-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.quiz-step-num.done {
  background: #dcfce7;
  color: var(--color-primary-text);
}
.quiz-visual-header {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.quiz-visual-header svg { flex-shrink: 0; opacity: 0.7; }
.quiz-visual-header-text { font-size: 13px; color: var(--color-primary-text); font-weight: 600; }

@media (max-width: 900px) {
  .estimate-strip-inner { grid-template-columns: 1fr 1fr; }
  .estimate-input-col { grid-column: 1 / -1; border-right: none; border-bottom: 1px solid var(--color-border); }
  .estimate-metric:nth-child(even) { border-right: none; }
}
@media (max-width: 600px) {
  .estimate-strip-inner { grid-template-columns: 1fr 1fr; }
  .estimate-metric { padding: 16px; }
  .estimate-bill-row input, .estimate-bill-row { font-size: 22px; }
  .estimate-metric-val { font-size: 18px; }
  .est-controls { flex-direction: column; }
}
