/* =========================================================
   Maine Home Energy Review — premium rebuild
   Fonts: Fraunces (display) + Manrope (body)
   ========================================================= */

:root {
  /* Warm-white base — Alpine Roofing & Contracting · LIGHT THEME */
  --bg: #f7f5f1;
  --bg-2: #efece6;
  --ink: #1b2336;          /* primary text — dark navy ink */
  --ink-soft: #41506b;
  --muted: #76829a;
  --line: rgba(226, 118, 30, 0.26);

  /* Alpine orange primary accent + Alpine navy */
  --navy: #1b2a4b;         /* Alpine navy — links/structure */
  --navy-deep: #13203b;    /* deep navy — used for "dark panel" gradients */
  --solar: #e2761e;        /* Alpine orange */
  --solar-deep: #c25e12;   /* deeper orange */
  --green: #1b2a4b;        /* "locked/positive" → Alpine navy */
  --danger: #e2761e;       /* "rising utility" → Alpine orange */

  --surface: #ffffff;      /* card surface (white) */
  --surface-2: #faf8f4;    /* raised surface (warm white) */

  --shadow-sm: 0 6px 18px rgba(27, 42, 75, 0.10);
  --shadow: 0 18px 44px rgba(27, 42, 75, 0.13);
  --shadow-lg: 0 30px 70px rgba(27, 42, 75, 0.16);

  --radius: 26px;
  --radius-sm: 16px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  background:
    radial-gradient(1100px 540px at 88% -8%, rgba(226, 118, 30, 0.10), transparent 60%),
    radial-gradient(900px 520px at -6% 4%, rgba(27, 42, 75, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a { color: var(--navy); }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Subtle grain for texture */
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Floating sun orb behind the hero */
.sun-orb {
  position: fixed;
  top: -180px; right: -160px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 158, 77, 0.4), rgba(226, 118, 30, 0.08) 55%, transparent 72%);
  filter: blur(8px);
  z-index: 0; pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 30px) scale(1.06); }
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 245, 241, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(226, 118, 30, 0.12);
}
.site-header-inner {
  min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand-wrap { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark {
  height: 50px; border-radius: 14px; overflow: hidden; flex: 0 0 auto;
  display: inline-flex; align-items: center; padding: 6px 13px;
  background: linear-gradient(145deg, #1f3052, var(--navy-deep));
  box-shadow: 0 8px 20px rgba(27, 42, 75, 0.30);
  border: 1px solid rgba(27, 42, 75, 0.25);
}
.brand-mark img { height: 100%; width: auto; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.64rem;
  font-weight: 800; color: var(--solar-deep);
}
.brand-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(1.02rem, 1.7vw, 1.4rem);
  letter-spacing: -0.01em; line-height: 1.1; color: var(--ink);
}
.header-actions { flex: 0 0 auto; }
.header-dropdown {
  appearance: none;
  width: 188px; height: 46px;
  padding: 0 36px 0 15px;
  border-radius: 14px;
  border: 1px solid rgba(226, 118, 30, 0.2);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e2761e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--ink); font: inherit; font-weight: 700; font-size: 0.92rem;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.header-dropdown:focus-visible { outline: 2px solid var(--solar); outline-offset: 2px; }
.header-progress {
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--solar), var(--solar-deep));
  transition: width 0.1s linear;
}

/* ---------------- Pages ---------------- */
main { position: relative; z-index: 2; }
.page { padding: 30px 0 56px; }
.page[hidden] { display: none; }
.page-stack { display: grid; gap: 28px; }
.narrow-stack { gap: 24px; }

/* Card base */
.hero-card, .section-card, .info-card, .image-card, .calculator-card,
.results-card, .split-card, .hero-aside, .promo-box, .final-cta,
.danger-card, .trust-map-card, .divergence-card {
  background: var(--surface);
  border: 1px solid rgba(236, 240, 245, 0.07);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sun-orb { animation: none; }
}

/* ---------------- Typography ---------------- */
.eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 0.16em; font-weight: 800;
  font-size: 0.72rem; color: var(--solar-deep);
}
.eyebrow.small { font-size: 0.68rem; }
.hero-copy h1, .page-intro h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.65rem);
  line-height: 1.04; letter-spacing: -0.02em;
  margin: 12px 0 16px; color: var(--ink);
}
.ink-accent {
  position: relative; white-space: nowrap; color: var(--solar-deep);
}
.ink-accent::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.34em;
  background: linear-gradient(90deg, rgba(226, 118, 30,0.32), rgba(226, 118, 30,0.18));
  border-radius: 4px; z-index: -1;
}
h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.info-card h2, .split-copy h2, .calculator-card h2, .results-card h2,
.conversion-section h2, .shift-section h2, .calculator-preview h2,
.final-cta h2, .divergence-card h2, .trust-section > h2, .promo-box h2,
.emotional-close h2, .cmp-story-card h2 {
  font-size: clamp(1.4rem, 2.5vw, 2.15rem); line-height: 1.14; margin: 8px 0 12px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; margin: 8px 0 8px; }
p { margin: 0 0 12px; }
.hero-copy p, .page-intro p, .info-card p, .split-copy p, .muted,
figcaption, .takeaway, .conversion-section p, .shift-section p,
.calculator-preview p, .final-cta p, .divergence-card p, .promo-box p,
.emotional-close p, .trust-section > p, .trust-map-copy p {
  font-size: clamp(1rem, 1.05vw, 1.07rem); line-height: 1.68; color: var(--ink-soft);
}
.muted { color: var(--muted); }

/* ---------------- Buttons ---------------- */
.btn-primary, .btn-secondary, .text-link-button {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 800;
  text-decoration: none; letter-spacing: 0.01em;
}
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 13px 24px; border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--solar) 0%, var(--solar-deep) 100%);
  box-shadow: 0 14px 30px rgba(196, 111, 12, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(196, 111, 12, 0.4); filter: brightness(1.04); }
.btn-secondary {
  color: var(--navy); background: var(--surface-2);
  border: 1px solid rgba(16, 58, 107, 0.22);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--navy); }
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }
.text-link-button {
  margin-top: 12px; padding: 0; background: transparent; color: var(--navy);
  position: relative;
}
.text-link-button::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--solar); transition: width 0.25s ease; }
.text-link-button:hover::after { width: 100%; }

/* ---------------- Hero ---------------- */
.hero-card {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.82fr);
  gap: 30px; padding: clamp(26px, 3vw, 44px);
  position: relative; overflow: hidden;
}
.conversion-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(27, 42, 75,0.07), transparent 50%);
}
.hero-card > * { position: relative; }
.hero-subtext { max-width: 60ch; }
.trust-bar { margin-top: 18px; font-size: 0.86rem; color: var(--muted); font-weight: 600; border-left: 3px solid rgba(226, 118, 30,0.5); padding-left: 12px; }

.hero-aside {
  align-self: start;
  background: linear-gradient(160deg, #243a63, #13203b);
  color: #fff; border: 1px solid rgba(226, 118, 30,0.14); padding: 26px;
  box-shadow: var(--shadow-lg);
}
.aside-label { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.68rem; font-weight: 800; color: #f08a2e; margin-bottom: 14px; }
.rate-summary-grid { display: grid; gap: 11px; }
.mini-stat {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
}
.mini-stat span { font-size: 0.86rem; font-weight: 600; color: rgba(255,255,255,0.82); display: flex; flex-direction: column; gap: 2px; }
.mini-stat span em { font-style: normal; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; }
.mini-stat.climbing span em { color: #ff9d7a; }
.mini-stat.locked span em { color: #aecbe2; }
.mini-stat strong { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.01em; }
.mini-stat.climbing strong { color: #ffb37e; }
.mini-stat.locked {
  background: linear-gradient(135deg, rgba(27, 42, 75,0.3), rgba(27, 42, 75,0.14));
  border-color: rgba(27, 42, 75,0.4);
}
.mini-stat.locked strong { color: #c5dcef; }
.hero-aside .muted { color: rgba(255,255,255,0.72); margin-top: 14px; font-size: 0.9rem; }

/* ---------------- Validation banner (for switchers) ---------------- */
.validation-banner {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 24px; border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(27, 42, 75,0.16), rgba(226, 118, 30,0.12)),
    #ffffff;
  border: 1px solid rgba(27, 42, 75,0.3);
  box-shadow: var(--shadow-sm);
}
.vb-icon {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.7rem;
  background: linear-gradient(135deg, #ffd07a, var(--solar)); color: #fff;
  box-shadow: 0 10px 24px rgba(226, 118, 30,0.4);
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 10px 24px rgba(226, 118, 30,0.35); }
  50% { box-shadow: 0 10px 34px rgba(226, 118, 30,0.6); }
}
.vb-copy { display: grid; gap: 3px; }
.vb-copy strong { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--ink); }
.vb-copy span { font-size: 0.97rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------------- Divergence chart ---------------- */
.divergence-card { padding: clamp(24px, 2.8vw, 40px); }
.chart-wrap {
  position: relative; margin-top: 22px; border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #1b2a4b, #13203b);
  border: 1px solid var(--line); padding: 18px 18px 10px;
  overflow: hidden;
}
.chart-wrap svg { width: 100%; height: clamp(220px, 34vw, 340px); display: block; }
.chart-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 6px; padding: 0 4px 4px; }
.lg { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 700; color: var(--ink-soft); }
.lg i { width: 20px; height: 4px; border-radius: 4px; display: inline-block; }
.lg-utility i { background: var(--danger); }
.lg-solar i { background: var(--green); }
.chart-gap-label {
  position: absolute; top: 24px; right: 22px;
  background: rgba(182,68,42,0.1); color: var(--danger);
  font-weight: 800; font-size: 0.82rem; padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(182,68,42,0.25); opacity: 0; transition: opacity 0.6s ease 1s;
}
.chart-gap-label.show { opacity: 1; }
.chart-note { font-size: 0.82rem !important; color: var(--muted) !important; margin-top: 14px; font-style: italic; }

/* SVG path draw animation */
.line-path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.line-utility { stroke: var(--danger); }
.line-solar { stroke: var(--green); }
.area-fill { opacity: 0; transition: opacity 1s ease 0.8s; }
.chart-wrap.drawn .area-fill { opacity: 1; }

/* ---------------- Sections ---------------- */
.section-card, .conversion-section, .shift-section, .calculator-preview,
.divergence-card, .problem-section { padding: clamp(24px, 2.8vw, 40px); }
.problem-section { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.problem-section strong { color: var(--danger); }

.split-card {
  display: grid; grid-template-columns: 1fr 0.95fr; gap: 28px;
  padding: clamp(22px, 2.6vw, 36px); align-items: center;
}
.split-copy { min-width: 0; }
.reverse-on-mobile { /* handled in mq */ }

.shift-section {
  background: linear-gradient(160deg, #243a63, #13203b);
  color: #fff; border: 1px solid rgba(226, 118, 30,0.14);
}
.shift-section .eyebrow { color: #f08a2e; }
.shift-section h2 { color: #fff; }
.shift-section p { color: rgba(255,255,255,0.86); }
.shift-section strong { color: #fff; }

/* content grids */
.content-grid { display: grid; gap: 24px; }
.content-grid.three { grid-template-columns: repeat(3, minmax(240px, 1fr)); }
.content-grid.two { grid-template-columns: repeat(2, minmax(300px, 1fr)); }
.info-card { padding: clamp(22px, 2.4vw, 30px); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.info-card.soft { background: var(--surface-2); }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.icon-card .card-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(226, 118, 30,0.16), rgba(27, 42, 75,0.1));
  color: var(--solar-deep);
}

/* option cards */
.conversion-options .option-card { position: relative; padding-top: 30px; }
.opt-tag {
  position: absolute; top: 16px; left: clamp(22px, 2.4vw, 30px);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.opt-tag.stay { background: rgba(182,68,42,0.12); color: var(--danger); }
.opt-tag.plan { background: rgba(27, 42, 75,0.1); color: var(--navy); }
.opt-tag.smart { background: var(--solar); color: #fff; }
.featured-option {
  background: linear-gradient(170deg, #ffffff, var(--surface-2));
  border-color: rgba(226, 118, 30,0.4);
  box-shadow: 0 22px 46px rgba(226, 118, 30,0.16);
  transform: translateY(-6px);
}
.featured-option:hover { transform: translateY(-10px); }
.calculator-preview { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }

/* ---------------- Images ---------------- */
.image-card { overflow: hidden; background: #faf8f4; }
.image-card img { width: 100%; height: auto; background: #fff; object-fit: contain; }
.image-card figcaption { padding: 15px 18px 18px; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.image-card figcaption strong { color: var(--ink); }
.headline-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.proof-shot { box-shadow: var(--shadow); }
.proof-shot img { transition: transform 0.4s ease; }
.proof-shot:hover img { transform: scale(1.02); }
.evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.conversion-proof { align-items: start; }

/* ---------------- Calculators ---------------- */
.calculator-shell { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 24px; align-items: stretch; }
.calculator-card, .results-card { padding: clamp(22px, 2.6vw, 32px); }
.results-card { background: linear-gradient(160deg, #243a63, #13203b); color: #fff; border: 1px solid rgba(226, 118, 30,0.14); }
.results-card .eyebrow { color: #f08a2e; }
.results-card h2 { color: #fff; }
.field + .field { margin-top: 20px; }
.field label { display: block; margin-bottom: 12px; font-weight: 800; font-size: 1rem; color: var(--ink); }
.field input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--solar), rgba(226, 118, 30,0.2));
  outline: none;
}
.field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 4px solid var(--solar-deep); cursor: pointer;
  box-shadow: 0 4px 12px rgba(196,111,12,0.4); transition: transform 0.15s ease;
}
.field input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.field input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: #fff;
  border: 4px solid var(--solar-deep); cursor: pointer; box-shadow: 0 4px 12px rgba(196,111,12,0.4);
}
.field-value {
  margin-top: 12px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem); color: var(--navy);
}
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.results-grid > div {
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-sm); padding: 15px 16px;
  background: rgba(255,255,255,0.06);
}
.results-grid span { display: block; font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.74); }
.results-grid strong {
  display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.05; color: #fff;
}
.results-grid .highlight-result {
  background: linear-gradient(135deg, rgba(27, 42, 75,0.34), rgba(27, 42, 75,0.18));
  border-color: rgba(27, 42, 75,0.45);
}
.results-grid .highlight-result strong { color: #c5dcef; }
.takeaway {
  margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92) !important; font-size: 0.96rem !important; line-height: 1.6;
}
.takeaway strong { color: #f08a2e; }

/* ---------------- Promo + Final CTA ---------------- */
.promo-box {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 26px; align-items: center;
  padding: clamp(24px, 2.8vw, 38px);
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border-color: rgba(226, 118, 30,0.18);
}
.final-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 26px;
  padding: clamp(26px, 3vw, 42px); border: 0;
  background: linear-gradient(135deg, var(--solar) 0%, var(--solar-deep) 100%);
  color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; top: -50%; right: -10%; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 70%); pointer-events: none;
}
.final-cta > * { position: relative; }
.final-cta .eyebrow { color: rgba(255,255,255,0.9); }
.final-cta h2, .final-cta p { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.9); margin-bottom: 0; max-width: 58ch; }
.final-cta .btn-primary {
  flex: 0 0 auto; background: #fff; color: var(--solar-deep);
  box-shadow: 0 16px 30px rgba(27, 42, 75, 0.14);
}
.final-cta .btn-primary:hover { background: #fff; filter: none; }

/* ---------------- CMP page ---------------- */
.cmp-hero {
  background: linear-gradient(160deg, #243a63, #13203b);
  color: #fff; border: 1px solid rgba(226, 118, 30,0.14);
}
.cmp-hero .eyebrow { color: #f08a2e; }
.cmp-hero h1 { color: #fff; }
.cmp-hero p { color: rgba(255,255,255,0.86); }
.warning-strip {
  margin-top: 18px; padding: 15px 18px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); color: #fff;
}
.warning-strip strong { color: #f08a2e; }
.danger-card {
  padding: clamp(20px, 2.4vw, 28px);
  background: linear-gradient(170deg, #ffffff, var(--surface-2));
  border-color: rgba(182,68,42,0.18);
}
.danger-card span {
  display: inline-flex; padding: 5px 11px; border-radius: 999px;
  background: rgba(182,68,42,0.1); color: var(--danger); font-weight: 800; font-size: 0.78rem;
}
.danger-card h2 { margin: 12px 0 8px; }
.danger-card p { margin: 0; }
.emotional-close { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.close-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.close-grid div { padding: 18px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.close-grid strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); margin-bottom: 6px; }
.close-grid span { display: block; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------------- Links grid ---------------- */
.links-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.links-grid a {
  display: block; padding: 15px 18px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line);
  text-decoration: none; font-weight: 700; color: var(--navy);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.links-grid a:hover { transform: translateY(-2px); border-color: var(--navy); }

/* ---------------- Trust ---------------- */
.trust-section { overflow: hidden; }
.trust-section > h2 { max-width: 760px; }
.trust-section > p { max-width: 820px; }
.rating-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0 8px; }
.rating-chip {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.stars { color: var(--solar); font-size: 1.05rem; letter-spacing: 2px; }
.bbb-badge, .local-badge {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: 1.05rem;
}
.bbb-badge { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); }
.local-badge { background: linear-gradient(135deg, #1b2a4b, #4f7795); }
.rating-meta { display: flex; flex-direction: column; line-height: 1.2; }
.rating-meta strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.rating-meta span { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.trust-proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; margin-top: 26px; }
.trust-proof-card img { border-radius: var(--radius) var(--radius) 0 0; }
.trust-map-card {
  display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(380px, 1.2fr);
  gap: 26px; align-items: stretch; margin-top: 28px; padding: clamp(20px, 2.4vw, 30px);
  background: linear-gradient(135deg, rgba(27, 42, 75,0.07), rgba(27, 42, 75,0.08));
}
.trust-map-copy { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.trust-map-copy h3 { font-family: var(--font-display); margin: 0; font-size: clamp(1.4rem, 2vw, 1.95rem); letter-spacing: -0.02em; }
.map-frame-wrap {
  min-height: 460px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); background: #faf8f4; box-shadow: var(--shadow-sm);
}
.map-frame-wrap iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

/* ---------------- Form embed ---------------- */
.embed-shell {
  padding: clamp(8px, 1.4vw, 14px);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-color: rgba(27, 42, 75,0.14); overflow: hidden;
}
.embed-shell iframe {
  display: block; width: 100%; min-height: 1040px; border: 0;
  border-radius: var(--radius-sm); background: #faf8f4;
}

/* ---------------- Legal + footer ---------------- */
.legal-intro h1 { max-width: 920px; }
.legal-disclaimer-card { line-height: 1.72; }
.legal-disclaimer-card p { color: var(--ink-soft); }
.legal-disclaimer-card p + p { margin-top: 14px; }
.site-footer {
  position: relative; z-index: 2;
  padding: 30px 0 40px; border-top: 1px solid rgba(226, 118, 30,0.12);
  background: rgba(20,22,25,0.7);
}
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 0.9rem; }
.footer-link {
  appearance: none; border: 0; background: transparent; color: var(--navy);
  font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.footer-link:hover { color: var(--solar-deep); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .hero-card, .split-card, .calculator-shell, .content-grid.two, .content-grid.three,
  .conversion-proof, .trust-map-card, .evidence-grid, .headline-stack, .trust-proof-grid,
  .promo-box, .conversion-options { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: repeat(2, 1fr); }
  .close-grid { grid-template-columns: 1fr; }
  .featured-option { transform: none; }
  .map-frame-wrap, .map-frame-wrap iframe { min-height: 420px; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .container { width: min(100% - 28px, 1180px); }
  .page { padding: 22px 0 40px; }
  .page-stack { gap: 22px; }
  .final-cta { flex-direction: column; align-items: flex-start; }
  .final-cta .btn-primary { width: 100%; }
  .evidence-grid { grid-template-columns: 1fr; }
  .validation-banner { flex-direction: row; align-items: flex-start; padding: 18px; }
  .reverse-on-mobile { display: flex; flex-direction: column-reverse; }
  .rating-chip { flex: 1 1 100%; }
  .embed-shell iframe { min-height: 1180px; }
  .cta-group .btn-primary, .cta-group .btn-secondary { flex: 1 1 100%; }
  .chart-gap-label { position: static; display: inline-block; margin: 10px 4px 0; opacity: 1; }
}
@media (max-width: 420px) {
  .brand-title { font-size: 0.96rem; }
  .brand-kicker { font-size: 0.56rem; letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-text { max-width: 42vw; }
  .brand-mark { height: 42px; padding: 5px 10px; }
  .header-dropdown { width: 122px; }
}

/* ---------- Native lead/review form ---------- */
.lead-form { display: block; }
.lf-field { margin-bottom: 18px; }
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .lf-row { grid-template-columns: 1fr; } }
.lf-field label { display: block; margin-bottom: 8px; font-weight: 800; font-size: 0.95rem; color: var(--ink); }
.lf-field input,
.lf-field select,
.lf-field textarea {
  width: 100%; box-sizing: border-box; padding: 13px 15px;
  background: rgba(255,255,255,0.04); color: var(--ink);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 12px;
  font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.lf-field textarea { resize: vertical; min-height: 96px; }
.lf-field input::placeholder,
.lf-field textarea::placeholder { color: var(--ink-soft); opacity: .6; }
.lf-field input:focus,
.lf-field select:focus,
.lf-field textarea:focus {
  outline: none; border-color: var(--orange, #e2761e);
  box-shadow: 0 0 0 3px rgba(226, 118, 30,.18);
}
.lf-field select { appearance: none; cursor: pointer; }
.lf-submit { width: 100%; margin-top: 8px; }
.lf-fine { margin-top: 14px; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; }
.lf-success { text-align: center; padding: 20px 0; }
.lf-success h2 { margin-bottom: 10px; }
