/* =========================================================
   Watt's My Rebate — Shared styles
   Brand: independent, smart, WA-rooted, slightly witty
   ========================================================= */

:root {
  /* Palette */
  --ink: #0E2433;          /* deep navy text + dark surfaces */
  --ink-2: #1A3548;        /* slightly lighter navy */
  --muted: #5A6B7B;        /* secondary text */
  --line: #E6E1D5;         /* subtle borders on warm bg */
  --line-2: #D9D2C2;
  --bg: #FAF7EF;           /* warm cream background */
  --surface: #FFFFFF;
  --surface-tint: #F4EFE2;

  --watt: #FFD23F;         /* electric solar yellow — brand */
  --watt-deep: #F5B400;
  --action: #FF6B35;       /* CTA coral */
  --action-deep: #E5511C;
  --mint: #2EC4B6;         /* positive / savings */
  --mint-deep: #1FA89B;

  /* Type */
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radius + shadow */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(14, 36, 51, .06), 0 1px 1px rgba(14, 36, 51, .04);
  --shadow: 0 8px 24px -8px rgba(14, 36, 51, .12), 0 4px 8px -4px rgba(14, 36, 51, .06);
  --shadow-lg: 0 24px 60px -20px rgba(14, 36, 51, .22), 0 8px 20px -8px rgba(14, 36, 51, .10);

  /* Layout */
  --maxw: 1180px;
  --pad: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--action-deep); }

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 .5em;
  font-weight: 800;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p  { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }

/* Containers */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.tight { padding: clamp(36px, 5vw, 64px) 0; }

/* Eyebrow / tag */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--watt);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow.dim { background: var(--surface-tint); color: var(--ink-2); border: 1px solid var(--line); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--action);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(255, 107, 53, .55);
}
.btn-primary:hover { background: var(--action-deep); color: #fff; }
.btn-secondary {
  background: var(--ink);
  color: #fff;
}
.btn-secondary:hover { background: var(--ink-2); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--surface); }
.btn-watt {
  background: var(--watt);
  color: var(--ink);
}
.btn-watt:hover { background: var(--watt-deep); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.arrow::after { content: "→"; transform: translateX(0); transition: transform .15s ease; }
.btn:hover .arrow::after, .btn.arrow:hover::after { transform: translateX(3px); }

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 239, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: -0.01em;
  font-size: 1.15rem;
  color: var(--ink);
}
.logo .spark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--watt);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900;
  color: var(--ink);
  box-shadow: 0 4px 10px -4px rgba(245, 180, 0, .6);
}
.nav ul {
  list-style: none; display: flex; gap: 26px; padding: 0; margin: 0;
  align-items: center;
}
.nav ul a {
  font-family: var(--font-display);
  font-weight: 600; font-size: .96rem; color: var(--ink-2);
}
.nav ul a:hover { color: var(--action-deep); }
.nav .nav-cta { margin-left: 6px; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav ul { display: none; }
  .nav ul.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--pad) 22px;
    gap: 14px;
    align-items: flex-start;
  }
  .nav-toggle {
    display: inline-flex;
    background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
    padding: 8px 14px; font-family: var(--font-display); font-weight: 700; cursor: pointer;
  }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 70vw; height: 70vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(closest-side, var(--watt) 0%, transparent 70%);
  opacity: .45;
  z-index: 0;
  pointer-events: none;
  animation: hero-pulse 8s ease-in-out infinite;
}
@keyframes hero-pulse {
  0%, 100% { opacity: .42; transform: scale(1); }
  50% { opacity: .55; transform: scale(1.04); }
}

/* Floating energy sparkles in hero */
.hero-sparkles {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-sparkles .spark {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--watt);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 12px 2px var(--watt);
  animation: spark-float 6s ease-in-out infinite;
}
.hero-sparkles .spark.s1 { top: 18%; right: 22%; animation-delay: 0s; }
.hero-sparkles .spark.s2 { top: 38%; right: 14%; animation-delay: 1.2s; width: 6px; height: 6px; }
.hero-sparkles .spark.s3 { top: 58%; right: 28%; animation-delay: 2.4s; width: 5px; height: 5px; }
.hero-sparkles .spark.s4 { top: 28%; right: 38%; animation-delay: 3.6s; width: 7px; height: 7px; }
.hero-sparkles .spark.s5 { top: 48%; right: 8%;  animation-delay: 4.8s; width: 6px; height: 6px; }
@keyframes spark-float {
  0% { opacity: 0; transform: translateY(0) scale(.6); }
  20% { opacity: .9; transform: translateY(-8px) scale(1); }
  80% { opacity: .9; transform: translateY(-22px) scale(1); }
  100% { opacity: 0; transform: translateY(-32px) scale(.6); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero-sparkles .spark { animation: none; opacity: 0.6; }
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-top: 14px; }
.hero h1 .accent { background: linear-gradient(180deg, transparent 60%, var(--watt) 60%); padding: 0 .12em; }
.hero .lead { font-size: 1.2rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); margin-top: 22px; font-size: .92rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .dot { width: 6px; height: 6px; background: var(--mint); border-radius: 50%; display: inline-block; }

/* Mini calc card in hero */
.mini-calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.mini-calc h3 { margin-bottom: 4px; }
.mini-calc .hint { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.field input, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--ink); background: #fff;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.estimate {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
}
.estimate .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--watt);
}
.estimate .label { font-size: .85rem; color: rgba(255,255,255,.7); }

/* ============== CARDS / GRIDS ============== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-tint);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.card .icon.watt { background: var(--watt); }
.card .icon.mint { background: #D6F4F0; color: var(--mint-deep); }
.card .icon.coral { background: #FFE0D2; color: var(--action-deep); }

/* Step list */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; background: var(--surface); border-radius: var(--r-lg); padding: 26px; border: 1px solid var(--line); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--watt-deep);
  display: block; margin-bottom: 10px;
}

/* Section header */
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head .lead { margin-top: 12px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ============== INSTALLER CARDS ============== */
.installer-row {
  display: grid; grid-template-columns: 1.8fr .8fr .8fr .8fr 1fr 1.2fr; gap: 12px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.installer-row.head {
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  background: var(--surface-tint);
  border-bottom: 2px solid var(--line-2);
  border-radius: var(--r) var(--r) 0 0;
}
.installer-row .name { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.installer-row .sub { color: var(--muted); font-size: .9rem; display: block; margin-top: 2px; }
.installer-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stars { color: var(--watt-deep); letter-spacing: 1px; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: #E7F9F5;
  color: var(--mint-deep);
  border: 1px solid #B7E8DF;
}
.badge.no { background: #FFE9E2; color: var(--action-deep); border-color: #FFC9B7; }
.badge.featured { background: var(--watt); color: var(--ink); border-color: var(--watt-deep); }

@media (max-width: 860px) {
  .installer-row { grid-template-columns: 1fr 1fr; }
  .installer-row.head { display: none; }
  .installer-row > div { font-size: .92rem; }
  .installer-row .full { grid-column: 1 / -1; }
}

/* ============== BIG NUMBERS / STATS ============== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 22px;
  border: 1px solid var(--line);
}
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.02em; }
.stat .l { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ============== CTA BAND ============== */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 60px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--watt), transparent 75%);
  opacity: .35;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.78); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; }
@media (max-width: 760px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
}

/* ============== FAQ ============== */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--ink); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: -2px;
  font-size: 1.4rem; color: var(--muted); font-weight: 400;
  transition: transform .15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* ============== FOOTER ============== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 60px 0 32px;
  margin-top: 80px;
}
.footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: var(--watt); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .fine { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ============== ARTICLE / PROSE ============== */
.prose {
  max-width: 740px;
  margin: 0 auto;
}
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul li, .prose ol li { margin-bottom: .4em; }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 22px;
  background: var(--surface);
  border-left: 4px solid var(--watt);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--ink-2);
}
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 22px;
  margin-bottom: 30px;
}
.toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.toc ol { padding-left: 18px; margin: 0; }
.toc a { color: var(--ink-2); }

/* ============== FORM (multi-step) ============== */
.form-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}
.progress { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.progress .pill { flex: 1; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress .pill.active { background: var(--watt); }
.progress .pill.done { background: var(--mint); }
.progress .label { font-family: var(--font-display); font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.step-pane { display: none; }
.step-pane.active { display: block; }
.step-pane h2 { font-size: 1.7rem; }
.step-pane .sublabel { color: var(--muted); margin-bottom: 22px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
@media (max-width: 520px) { .choice-grid { grid-template-columns: 1fr; } }
.choice {
  display: block;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 18px;
  cursor: pointer;
  background: var(--bg);
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.choice:hover { border-color: var(--ink-2); }
.choice input { display: none; }
.choice input:checked ~ .choice-body { color: var(--ink); }
.choice.selected { border-color: var(--ink); background: #fff; box-shadow: 0 6px 14px -10px rgba(14, 36, 51, .35); }
.choice .title { font-family: var(--font-display); font-weight: 700; }
.choice .sub { color: var(--muted); font-size: .9rem; margin-top: 4px; }

.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.step-actions .back { background: transparent; border: 0; color: var(--muted); font-family: var(--font-display); font-weight: 600; cursor: pointer; padding: 10px 4px; }
.step-actions .back:hover { color: var(--ink); }
.step-actions .back:disabled { opacity: .35; cursor: not-allowed; }

.success {
  text-align: center;
  padding: 18px 0;
}
.success .tick {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--mint);
  color: #fff;
  font-size: 2rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ============== CALCULATOR (full) ============== */
.calc-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px;
  align-items: flex-start;
}
@media (max-width: 940px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.result-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 32px);
  position: sticky; top: 90px;
}
.result-card h3 { color: #fff; }
.result-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255,255,255,.18);
}
.result-row:last-of-type { border-bottom: 0; }
.result-row .v { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.result-row .label { color: rgba(255,255,255,.7); font-size: .95rem; }
.result-row.big .v { font-size: 2.2rem; color: var(--watt); }
.result-row.big .label { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }

.slider-row { margin-bottom: 18px; }
.slider-row .top { display: flex; justify-content: space-between; align-items: baseline; }
.slider-row label { font-family: var(--font-display); font-weight: 600; color: var(--ink-2); }
.slider-row .value { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.slider-row input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--watt) 0%, var(--watt) var(--p, 30%), var(--line) var(--p, 30%), var(--line) 100%);
  outline: none;
  margin-top: 10px;
}
.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--watt);
  cursor: pointer;
  transition: transform .1s ease;
}
.slider-row input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.slider-row input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--watt);
}

.toggle-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.toggle-group label {
  display: block; text-align: center;
  padding: 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 600; cursor: pointer; background: var(--bg);
}
.toggle-group input { display: none; }
.toggle-group label.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.network-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface-tint); font-size: .85rem; font-family: var(--font-display); font-weight: 700; color: var(--ink-2); margin-top: 6px; }

/* small helpers */
.flex { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }

.notice {
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-left: 4px solid var(--watt);
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: .92rem;
  color: var(--ink-2);
}
.notice strong { color: var(--ink); }

/* fade in */
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fade-up .4s ease both; }

/* ============== MOBILE STICKY CTA ============== */
.mobile-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 60;
  display: none;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 12px 10px 18px;
  box-shadow: 0 16px 30px -10px rgba(14, 36, 51, .45);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: fade-up .4s ease both;
  animation-delay: .8s;
}
.mobile-cta a {
  background: var(--watt);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .95rem;
  white-space: nowrap;
}
.mobile-cta .label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
}
.mobile-cta .close {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.6);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}
.mobile-cta .close:hover { color: #fff; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; }
}
.mobile-cta.hidden { display: none !important; }

/* ============== COOKIE BANNER ============== */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 70;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  animation: fade-up .35s ease both;
  animation-delay: 1.2s;
}
.cookie-banner .text {
  flex: 1;
  font-size: .92rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.cookie-banner .text a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--watt-deep);
  text-underline-offset: 3px;
}
.cookie-banner .actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  padding: 9px 16px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-banner .accept {
  background: var(--ink);
  color: #fff;
}
.cookie-banner .accept:hover { background: var(--ink-2); }
.cookie-banner .decline {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-2);
}
.cookie-banner .decline:hover { background: var(--bg); color: var(--ink); }
.cookie-banner.hidden { display: none !important; }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-banner .actions { justify-content: flex-end; }
}
/* Push mobile sticky CTA up so they don't overlap on small screens */
.cookie-banner.shown ~ .mobile-cta { bottom: 130px; }

/* ============== TESTIMONIALS ============== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 880px) { .testimonials { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
}
.testimonial::before {
  content: "❝";
  position: absolute; top: 10px; right: 18px;
  font-size: 3.2rem; line-height: 1;
  color: var(--watt);
  opacity: .85;
  font-family: Georgia, serif;
}
.testimonial .quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.testimonial .who {
  display: flex; align-items: center; gap: 12px;
}
.testimonial .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--watt);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.testimonial .meta {
  display: flex; flex-direction: column;
}
.testimonial .name { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.testimonial .place { color: var(--muted); font-size: .88rem; }
.testimonial .stars { color: var(--watt-deep); letter-spacing: 1.5px; font-size: .95rem; margin-bottom: 8px; display: block; }

/* Trust strip used above testimonials */
.trust-strip {
  display: flex; gap: 36px; flex-wrap: wrap; justify-content: center;
  padding: 14px 0;
  font-family: var(--font-display);
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip .dot { width: 6px; height: 6px; background: var(--mint); border-radius: 50%; }

/* ============== BREADCRUMBS ============== */
.crumbs {
  font-family: var(--font-display);
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--line-2); }
.crumbs .current { color: var(--ink); }

/* ============== PRINT ============== */
@media print {
  /* Hide chrome */
  .nav, .footer, .mobile-cta, .cookie-banner, .nav-toggle,
  .hero-sparkles, .hero-cta, .hero-meta, .hero::before,
  #calc-compare, [data-action], .calc-card,
  .installer-controls, .postcode-matcher,
  .crumbs, .step-actions { display: none !important; }

  body { background: white; color: black; }
  .hero { padding: 16px 0 8px; }
  .section { padding: 12px 0; }
  .container { max-width: 100%; padding: 0 12px; }

  /* Result card styled for print */
  .result-card {
    background: white !important;
    color: black !important;
    border: 2px solid black !important;
    box-shadow: none !important;
    position: static !important;
    page-break-inside: avoid;
  }
  .result-card h3 { color: black !important; }
  .result-card .label { color: #444 !important; }
  .result-card .v { color: black !important; }
  .result-row.big .v { color: black !important; }
  .result-row { border-color: #ddd !important; }
  .estimate, .estimate .num { background: white !important; color: black !important; border: 1px solid black; }

  /* Print URL after each link */
  a[href^="http"]::after, a[href^="/"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
  /* Page break helpers */
  h1, h2, h3 { page-break-after: avoid; }
  .calc-grid > * { page-break-inside: avoid; }
  /* Print header */
  body::before {
    content: "Watt's My Rebate — Battery Rebate Estimate · wattsmyrebate.com.au";
    display: block;
    padding: 6px 0;
    border-bottom: 1px solid black;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 12pt;
  }
}

/* Print button — only visible on calculator page */
.print-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-2);
  font-family: var(--font-display); font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
}
.print-cta:hover { background: var(--surface); color: var(--ink); }
@media print { .print-cta { display: none !important; } }

/* ============== NEWSLETTER SIGNUP ============== */
.newsletter {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: white;
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: ""; position: absolute; right: -100px; bottom: -100px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--watt), transparent 70%);
  opacity: .25;
}
.newsletter h2, .newsletter h3 { color: white; }
.newsletter p { color: rgba(255,255,255,.8); }
.newsletter form { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.newsletter input[type="email"] {
  flex: 1; min-width: 200px;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.08);
  color: white;
}
.newsletter input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.newsletter input[type="email"]:focus { outline: none; border-color: var(--watt); background: rgba(255,255,255,.12); }
.newsletter .perks { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: rgba(255,255,255,.75); }
.newsletter .perks li::before { content: "✓"; margin-right: 8px; color: var(--watt); font-weight: bold; }
@media (max-width: 760px) {
  .newsletter { grid-template-columns: 1fr; }
}
