/* Layout concept: a "daylight instrument" — cool sky ground, cobalt ink, one sun-amber
   signal color reserved for energy (production, savings, CTAs). Wide bands, each with
   its own inner gutter; tools sit on calm panels with mono readouts like a meter. */
:root {
  --bg: #f2f6fb;
  --bg-2: #e6eef8;
  --panel: #ffffff;
  --ink: #0d1b2e;
  --ink-2: #44546b;
  --ink-3: #6f7f96;
  --line: #d3deec;
  --cobalt: #1d4fd6;
  --cobalt-ink: #ffffff;
  --sun: #ffad14;
  --sun-deep: #c77700;
  --sun-ink: #1a1100;
  --good: #0e8a5a;
  --bad: #c2412d;
  --grid: rgba(13, 27, 46, 0.07);
  --night: #0b1a30;
  --night-2: #12284a;
  --on-night: #e9f0fb;
  --on-night-2: #9fb2cf;
  --shadow: 0 1px 2px rgba(13, 27, 46, .06), 0 12px 32px -12px rgba(13, 27, 46, .18);

  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 1.8rem + 4vw, 4.6rem);

  --r: 14px;
  --maxw: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07111f; --bg-2: #0c1a2e; --panel: #0f2038; --ink: #e8eef8; --ink-2: #b1c0d6;
    --ink-3: #8295b1; --line: #1f3657; --cobalt: #6f9bff; --cobalt-ink: #06101f;
    --sun: #ffb831; --sun-deep: #ffcf6e; --sun-ink: #1a1100; --good: #3ccf8e; --bad: #ff7a63;
    --grid: rgba(232, 238, 248, .08); --night: #040b16; --night-2: #0c1d36;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07111f; --bg-2: #0c1a2e; --panel: #0f2038; --ink: #e8eef8; --ink-2: #b1c0d6;
  --ink-3: #8295b1; --line: #1f3657; --cobalt: #6f9bff; --cobalt-ink: #06101f;
  --sun: #ffb831; --sun-deep: #ffcf6e; --sun-ink: #1a1100; --good: #3ccf8e; --bad: #ff7a63;
  --grid: rgba(232, 238, 248, .08); --night: #040b16; --night-2: #0c1d36;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--f-body); overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg, canvas { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--cobalt); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
.num, .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: calc(var(--maxw) + 64px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.band { padding-block: clamp(64px, 9vw, 120px); }
.band--alt { background: var(--bg-2); }
.band--night { background: var(--night); color: var(--on-night); }
.eyebrow {
  font: 600 var(--step--1)/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--sun-deep); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.band--night .eyebrow { color: var(--sun); }
.head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.head p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; max-width: 62ch; }
.band--night .head p { color: var(--on-night-2); }

/* Buttons */
.btn {
  --b: var(--cobalt); --t: var(--cobalt-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--b); color: var(--t); font: 650 1rem/1 var(--f-body); text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px var(--b); }
.btn--sun { --b: var(--sun); --t: var(--sun-ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-stuck { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 750 1.2rem/1 var(--f-display); letter-spacing: -.02em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand b { color: var(--sun-deep); font-weight: 750; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.top__cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.top__phone { display: none; font: 600 .95rem var(--f-mono); color: var(--ink); text-decoration: none; }
.theme-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.theme-btn svg { width: 18px; height: 18px; }
@media (min-width: 980px) { .nav { display: flex; } .top__cta { margin-left: 8px; } }
@media (min-width: 1180px) { .top__phone { display: inline; } }
@media (max-width: 520px) { .top .btn { padding: 0 16px; min-height: 42px; font-size: .92rem; } .top .btn .long { display: none; } }

/* Hero */
.hero { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, color-mix(in srgb, var(--sun) 28%, transparent), transparent 62%); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: 1.02fr 1fr; } }
.hero h1 { font-size: var(--step-4); font-weight: 750; letter-spacing: -.035em; line-height: .98; }
.hero h1 em { font-style: normal; color: var(--sun-deep); }
.hero .wrap > * { min-width: 0; }
.hero__lede { margin-top: 22px; font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; line-height: 1.5; }
.quick { margin-top: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 16px; max-width: 560px; }
.quick__row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .quick__row { grid-template-columns: 150px 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label:not(.drop):not(.consent-check), .label { font: 600 .78rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.input, select.input {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
  color: var(--ink); font: 500 1.05rem var(--f-body); padding: 0 14px;
}
.input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cobalt) 18%, transparent); }
.range-wrap { display: grid; gap: 8px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-top output { font: 600 1.25rem var(--f-mono); color: var(--ink); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--sun) var(--p, 50%), var(--line) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--sun); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--panel); border: 3px solid var(--sun-deep); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--panel); border: 3px solid var(--sun-deep); }
.quick__out { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.quick__out .big { font: 700 var(--step-2)/1 var(--f-mono); color: var(--good); }
.quick__out small { display: block; color: var(--ink-3); font-size: .85rem; margin-top: 4px; }
.trust { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .92rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--good); flex: none; }

/* Live sun stage */
.stage { position: relative; border-radius: 24px; overflow: hidden; background: var(--night); box-shadow: var(--shadow); aspect-ratio: 5 / 4.2; max-width: 100%; min-height: 360px; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage__hud { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .stage__hud { grid-template-columns: repeat(4, 1fr); } }
.hud { background: rgba(6, 14, 28, .62); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 10px 12px; color: #eef3fb; min-width: 0; }
.hud span { display: block; font: 600 .66rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #9fb2cf; }
.hud b { display: block; margin-top: 6px; font: 600 1.05rem/1 var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud b.sun { color: #ffc24d; }
.stage__top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(6, 14, 28, .6); border: 1px solid rgba(255,255,255,.14); color: #eef3fb; font: 600 .74rem var(--f-mono); letter-spacing: .06em; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: #3ccf8e; box-shadow: 0 0 0 4px rgba(60, 207, 142, .25); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(60, 207, 142, 0); } }
.stage__btn { pointer-events: auto; cursor: pointer; }

/* Proof strip */
.strip { border-block: 1px solid var(--line); background: var(--panel); }
.strip .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
@media (min-width: 860px) { .strip .wrap { grid-template-columns: repeat(4, 1fr); } }
.strip__item { padding: 24px 18px; border-left: 1px solid var(--line); min-width: 0; }
.strip__item:nth-child(odd) { border-left: 0; }
@media (min-width: 860px) { .strip__item:nth-child(odd) { border-left: 1px solid var(--line); } .strip__item:first-child { border-left: 0; } }
.strip__item b { display: block; font: 700 var(--step-2)/1 var(--f-mono); color: var(--ink); }
.strip__item span { display: block; margin-top: 8px; color: var(--ink-2); font-size: .92rem; line-height: 1.4; }

/* Calculator */
.calc { display: grid; gap: 24px; }
@media (min-width: 1040px) { .calc { grid-template-columns: 380px 1fr; align-items: start; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 2.4vw, 28px); min-width: 0; }
.panel--controls { display: grid; gap: 22px; }
@media (min-width: 1040px) { .panel--controls { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); } }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; color: var(--ink-2); font: 600 .9rem var(--f-body); padding: 9px 6px; border-radius: 9px; cursor: pointer; min-width: 0; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.hint { font-size: .85rem; color: var(--ink-3); line-height: 1.45; }
.results { display: grid; gap: 24px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--panel); padding: 20px; min-width: 0; }
.kpi span { display: block; font: 600 .72rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kpi b { display: block; margin-top: 10px; font: 700 clamp(1.35rem, 1.1rem + 1vw, 1.9rem)/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.kpi small { display: block; margin-top: 8px; color: var(--ink-2); font-size: .82rem; }
.kpi--hero { background: var(--night); color: var(--on-night); }
.kpi--hero span { color: var(--on-night-2); }
.kpi--hero b { color: var(--sun); }
.kpi--hero small { color: var(--on-night-2); }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 20px; margin-bottom: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .85rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 500 11px var(--f-mono); fill: var(--ink-3); }
.chart .gl { stroke: var(--grid); }
.chart-tip { font: 600 12px var(--f-mono); }
.two { display: grid; gap: 24px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } }
.env-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.env-row div { min-width: 0; }
.env-row b { display: block; font: 700 1.3rem var(--f-mono); color: var(--good); }
.env-row span { font-size: .82rem; color: var(--ink-2); }
.fine { font-size: .8rem; color: var(--ink-3); line-height: 1.5; max-width: 90ch; }

/* Waiting ticker */
.wait { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .wait { grid-template-columns: 1.1fr 1fr; } }
.wait__meter { background: var(--night-2); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 26px; }
.wait__meter span { font: 600 .74rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-2); }
.wait__meter b { display: block; margin-top: 10px; font: 700 clamp(2.2rem, 1.6rem + 3vw, 3.6rem)/1 var(--f-mono); color: var(--sun); font-variant-numeric: tabular-nums; }
.wait__meter p { margin-top: 12px; color: var(--on-night-2); }
.wait__list { display: grid; gap: 1px; background: rgba(255,255,255,.1); border-radius: 16px; overflow: hidden; margin-top: 18px; }
.wait__list div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--night-2); color: var(--on-night); }
.wait__list b { font: 600 1rem var(--f-mono); color: var(--sun); }

/* Roof designer */
.designer { display: grid; gap: 24px; }
@media (min-width: 1000px) { .designer { grid-template-columns: 1fr 340px; } }
.roofbox { background: linear-gradient(180deg, var(--night-2), var(--night)); border-radius: 20px; padding: clamp(14px, 3vw, 32px); position: relative; overflow: hidden; min-width: 0; }
.roof-compass { position: absolute; top: 14px; right: 16px; font: 600 .72rem var(--f-mono); color: var(--on-night-2); letter-spacing: .1em; }
.roof { --cols: 12; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 4px; padding: 14px; background: #3a4558; border-radius: 6px; clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); max-width: 820px; margin: 18px auto 0; }
.cell { aspect-ratio: 1 / 1.55; border: 0; border-radius: 3px; background: rgba(255,255,255,.07); cursor: pointer; padding: 0; position: relative; transition: background .15s, transform .15s; }
.cell:hover { background: rgba(255,255,255,.18); }
.cell.on { background: linear-gradient(160deg, #2b4f9e, #12234a 70%); box-shadow: inset 0 0 0 1px #6f8fd6; }
.cell.on::after { content: ""; position: absolute; inset: 3px; background: repeating-linear-gradient(90deg, transparent 0 22%, rgba(160,190,255,.25) 22% 24%), repeating-linear-gradient(0deg, transparent 0 15%, rgba(160,190,255,.2) 15% 16.5%); border-radius: 2px; }
.cell.blocked { background: #232b38; cursor: not-allowed; }
.cell.blocked::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: #11161f; }
.cell.shade { background: rgba(0,0,0,.25); }
.cell.on.shade { background: linear-gradient(160deg, #24407e, #0d1a38 70%); }
.roof-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 16px; color: var(--on-night-2); font-size: .82rem; }
.roof-legend i { display: inline-block; width: 12px; height: 16px; border-radius: 2px; margin-right: 6px; vertical-align: -3px; }
.meter { display: grid; gap: 6px; }
.bar { height: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sun), var(--good)); border-radius: 999px; transition: width .3s ease; }
.statlist { display: grid; gap: 0; }
.statlist div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.statlist div:last-child { border-bottom: 0; }
.statlist span { color: var(--ink-2); }
.statlist b { font: 600 1rem var(--f-mono); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { min-height: 42px; padding: 0 16px; font-size: .92rem; }

/* Battery */
.batt { display: grid; gap: 24px; }
@media (min-width: 1000px) { .batt { grid-template-columns: 1fr 320px; } }
.batt__status { display: grid; gap: 16px; }
.big-stat { font: 700 clamp(2.4rem, 2rem + 2vw, 3.4rem)/1 var(--f-mono); color: var(--good); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 600 .8rem var(--f-mono); }
.pill--good { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.pill--bad { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--panel); transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.toggle input:checked { background: var(--good); }
.toggle input:checked::after { transform: translateX(20px); }

/* Process */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; padding: 24px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); counter-increment: s; display: grid; gap: 10px; align-content: start; }
.step::before { content: counter(s, decimal-leading-zero); font: 600 .85rem var(--f-mono); color: var(--sun-deep); }
.step p { color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.step .when { font: 600 .78rem var(--f-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }

/* Compare */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font: 600 .78rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--bg); }
.cmp thead th.us { color: var(--sun-ink); background: var(--sun); }
.cmp td.us { background: color-mix(in srgb, var(--sun) 9%, transparent); font-weight: 600; }
.cmp td:first-child { font-weight: 600; color: var(--ink); width: 34%; }
.mark { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink-2); }
.mark svg { width: 18px; height: 18px; flex: none; }
.mark--y svg { color: var(--good); }
.mark--n svg { color: var(--bad); }
.mark--m svg { color: var(--ink-3); }

/* Equipment */
.gear { display: grid; gap: 16px; }
@media (min-width: 860px) { .gear { grid-template-columns: repeat(3, 1fr); } }
.gear article { padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 12px; align-content: start; }
.gear .spec { display: grid; gap: 0; margin-top: 6px; }
.gear .spec div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.gear .spec span { color: var(--ink-2); }
.gear .spec b { font: 600 .9rem var(--f-mono); text-align: right; }
.gear p { color: var(--ink-2); }
.gear-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--sun) 18%, transparent); color: var(--sun-deep); }
.gear-ico svg { width: 24px; height: 24px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 22px; font: 650 var(--step-0)/1.35 var(--f-body); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--f-mono); color: var(--sun-deep); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 22px 22px; color: var(--ink-2); display: grid; gap: 10px; max-width: 70ch; }

/* Quote form */
.quote { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 1000px) { .quote { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.quote__pitch ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.quote__pitch li { display: flex; gap: 12px; color: var(--on-night-2); }
.quote__pitch li svg { width: 22px; height: 22px; color: var(--sun); flex: none; margin-top: 2px; }
.quote__pitch li b { color: var(--on-night); }
.contact-line { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: var(--on-night-2); display: grid; gap: 6px; }
.contact-line b { font: 600 1.3rem var(--f-mono); color: var(--on-night); user-select: all; }
.form { background: var(--panel); color: var(--ink); border-radius: 24px; padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); display: grid; gap: 22px; min-width: 0; }
.progress { display: grid; gap: 10px; }
.progress__bar { height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.progress__bar i { display: block; height: 100%; background: var(--sun); width: 25%; transition: width .35s ease; }
.progress__lbl { display: flex; justify-content: space-between; font: 600 .76rem var(--f-mono); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.fstep { display: grid; gap: 18px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fstep legend { font: 700 var(--step-2)/1.1 var(--f-display); letter-spacing: -.02em; padding: 0; margin-bottom: 4px; }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; min-height: 56px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; transition: border-color .15s, background .15s; }
.choice input:checked + span { border-color: var(--cobalt); background: color-mix(in srgb, var(--cobalt) 10%, var(--panel)); }
.choice input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.form__nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.err { color: var(--bad); font-size: .9rem; min-height: 1.2em; }
.consent { font-size: .78rem; color: var(--ink-3); line-height: 1.5; }
.summary-card { background: var(--bg); border: 1px dashed var(--line); border-radius: 14px; padding: 14px 16px; font-size: .9rem; color: var(--ink-2); line-height: 1.6; }
.summary-card b { color: var(--ink); font-family: var(--f-mono); }
.done { text-align: left; display: grid; gap: 14px; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.done .tick svg { width: 28px; height: 28px; }

/* Footer */
.foot { background: var(--night); color: var(--on-night-2); padding-block: 56px 110px; font-size: .92rem; }
@media (min-width: 760px) { .foot { padding-block: 56px; } }
.foot .wrap { display: grid; gap: 32px; }
@media (min-width: 860px) { .foot .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h4 { margin: 0 0 12px; font: 600 .76rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-night); }
.foot a { color: var(--on-night-2); text-decoration: none; display: block; padding: 4px 0; }
.foot a:hover { color: var(--sun); }
.foot .brand { color: var(--on-night); }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; font-size: .8rem; line-height: 1.6; }

/* Mobile sticky CTA */
.mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; transform: translateY(110%); transition: transform .3s ease; }
.mcta.show { transform: none; }
.mcta .btn { flex: 1; }
.mcta__sav { font: 600 .8rem/1.2 var(--f-mono); color: var(--ink-2); }
.mcta__sav b { display: block; color: var(--good); font-size: 1.05rem; }
@media (min-width: 760px) { .mcta { display: none; } }

/* Reveal: visible at rest; motion only enhances */
.reveal { transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .7s; }
.js .reveal.pre { transform: translateY(18px); opacity: .001; }
@media (max-width: 600px) { #lineChart text, #battChart text { font-size: 19px; } .chart-tip { font-size: 19px; } }

/* Intake form additions */
.choices--tight { grid-template-columns: repeat(3, minmax(0, 1fr)); }
textarea.input { min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.drop { position: relative; display: grid; gap: 4px; padding: 18px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.is-over { border-color: var(--cobalt); background: color-mix(in srgb, var(--cobalt) 6%, var(--bg)); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop b { color: var(--ink); }
.drop span { font-size: .86rem; color: var(--ink-2); }
.drop .drop__list { color: var(--good); font: 600 .82rem var(--f-mono); overflow-wrap: anywhere; }
.drop:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }
.consent-check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.consent-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--cobalt); }
.recap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.recap div { background: var(--panel); padding: 12px 14px; min-width: 0; }
.recap span { display: block; font: 600 .7rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.recap b { display: block; margin-top: 4px; font-size: .95rem; overflow-wrap: anywhere; }
.next { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.next b { color: var(--ink); }

/* Sunrun plan cards */
.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: 1.15fr 1fr 1fr; align-items: stretch; } }
.plan { position: relative; display: grid; gap: 12px; align-content: start; grid-template-rows: auto auto auto 1fr auto; padding: 28px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.plan--main { border: 2px solid var(--sun); box-shadow: var(--shadow); }
.plan__tag { position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--sun); color: var(--sun-ink); font: 600 .74rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.plan__price { color: var(--ink-2); }
.plan__price b { font: 700 var(--step-2)/1.1 var(--f-display); color: var(--ink); margin-right: 4px; }
.plan > p:not(.plan__price) { color: var(--ink-2); }
.plan ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.plan li { position: relative; padding-left: 26px; color: var(--ink); font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--good) 18%, transparent); box-shadow: inset 0 0 0 5px var(--panel), inset 0 0 0 16px var(--good); }
.plan__btn { margin-top: 8px; width: 100%; }

/* Illinois incentives panel */
.il-box { display: grid; gap: 16px; }
.il-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (min-width: 700px) { .il-grid { grid-template-columns: repeat(3, 1fr); } }
.il-grid div { background: var(--panel); padding: 16px; min-width: 0; display: grid; gap: 6px; align-content: start; }
.il-grid b { font: 700 1.4rem var(--f-mono); color: var(--good); }
.il-grid small { color: var(--ink-2); font-size: .8rem; line-height: 1.4; }

/* ============================================================
   Clean minimal skin: full-bleed hero, centered headlines, lots of
   white, medium-weight type, solid blue primary + light grey secondary,
   4px buttons, transparent header that turns white on scroll.
   ============================================================ */
:root {
  --bg: #ffffff; --bg-2: #f4f4f4; --panel: #ffffff; --ink: #171a20; --ink-2: #393c41; --ink-3: #5c5e62;
  --line: #e2e3e3; --cobalt: #3e6ae1; --cobalt-ink: #ffffff; --sun: #f5a524; --sun-deep: #b86e00;
  --night: #171a20; --night-2: #222329; --on-night: #ffffff; --on-night-2: #c7c8ca;
  --shadow: 0 8px 30px rgba(23, 26, 32, .10);
  --f-display: "Hanken Grotesk", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Hanken Grotesk", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0f1013; --bg-2: #17181c; --panel: #17181c; --ink: #f4f4f4; --ink-2: #d0d1d2; --ink-3: #a2a3a5; --line: #2a2b30; --cobalt: #6d8ff0; --cobalt-ink: #0b0c0f; --night: #000000; --night-2: #17181c; }
}
:root[data-theme="dark"] { --bg: #0f1013; --bg-2: #17181c; --panel: #17181c; --ink: #f4f4f4; --ink-2: #d0d1d2; --ink-3: #a2a3a5; --line: #2a2b30; --cobalt: #6d8ff0; --cobalt-ink: #0b0c0f; --night: #000000; --night-2: #17181c; }

body { font-family: var(--f-body); }
h1, h2, h3 { font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }
.num, .mono { font-variant-numeric: tabular-nums; }
.eyebrow { color: var(--ink-3); letter-spacing: .08em; font-family: var(--f-body); font-weight: 600; }
.eyebrow::before { display: none; }
.band--night .eyebrow { color: var(--on-night-2); }
.head--center, #plans .head, #guarantee .head, #process .head, #compare .head, #faq .head { margin-inline: auto; text-align: center; justify-items: center; }
.head--center p, #plans .head p, #guarantee .head p, #process .head p, #compare .head p { margin-inline: auto; }

/* Buttons */
.btn { border-radius: 4px; font-weight: 600; min-height: 44px; transition: background .2s, box-shadow .2s; }
.btn:hover { transform: none; box-shadow: none; filter: brightness(.94); }
.btn--sun { --b: var(--cobalt); --t: var(--cobalt-ink); }
.btn--light, .btn--ghost { background: var(--bg-2); color: var(--ink); box-shadow: none; }
.btn--ghost:hover { box-shadow: none; }
.btn--lg { min-height: 48px; padding: 0 32px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn svg { display: none; }

/* Header: transparent over the hero, solid once scrolled */
.top { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; border-bottom: 0; transition: background .25s, box-shadow .25s; }
.top .brand, .top .nav a, .top .top__phone { color: #fff; }
.top .theme-btn { background: rgba(255,255,255,.15); border-color: transparent; color: #fff; }
.top.is-stuck { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.top.is-stuck .brand, .top.is-stuck .nav a, .top.is-stuck .top__phone { color: var(--ink); }
.top.is-stuck .theme-btn { background: var(--bg-2); color: var(--ink); }
.nav a { font-weight: 500; border-radius: 4px; }
.top .nav a:hover { background: rgba(255,255,255,.14); }
.top.is-stuck .nav a:hover { background: var(--bg-2); }
.top .btn--sun { min-height: 36px; padding: 0 18px; font-size: .9rem; }
@media (min-width: 980px) { .nav { margin-left: auto; margin-right: auto; } }
body::before { background: transparent; }

/* Full-bleed hero */
.hero--full { position: relative; min-height: min(92vh, 860px); display: grid; grid-template-rows: 1fr auto; padding: 0; overflow: hidden; background: var(--night); color: #fff; }
.hero--full::before { display: none; }
.hero--full #sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 60%, rgba(0,0,0,.45) 100%); pointer-events: none; }
.hero__center { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; padding-top: calc(110px + env(safe-area-inset-top, 0px)); gap: 14px; }
.hero__kicker { font-size: .9rem; font-weight: 600; letter-spacing: .04em; opacity: .9; }
.hero--full h1 { font-size: clamp(2.3rem, 1.6rem + 3.2vw, 3.6rem); font-weight: 500; line-height: 1.05; letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0,0,0,.25); max-width: 18ch; }
.hero--full h1 em { font-style: normal; color: inherit; }
.hero--full .hero__lede { color: rgba(255,255,255,.9); margin-top: 0; font-size: 1.05rem; max-width: 46ch; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.hero__ctas .btn { min-width: 220px; }
.hero__ctas .btn--light { background: rgba(244,244,244,.92); color: #171a20; }
.hero__hud { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding-block: 0 96px; font-size: .85rem; color: rgba(255,255,255,.85); }
.hud-line b { color: #ffd27a; font-weight: 600; }
.chip { background: rgba(0,0,0,.35); font-family: var(--f-body); }
@media (max-width: 640px) { .hero__ctas .btn { min-width: 0; width: 100%; } .hud-line { display: none; } }

/* Quick estimate bar overlapping the hero */
.quickbar { position: relative; z-index: 2; margin-top: -64px; }
.quickbar .quick { max-width: 1040px; margin: 0 auto; display: grid; gap: 18px; align-items: end; padding: 20px 22px; border-radius: 8px; border: 0; box-shadow: var(--shadow); background: var(--panel); }
@media (min-width: 860px) { .quickbar .quick { grid-template-columns: 140px 1.3fr 1fr auto; } }
.quick__result .big { font-weight: 600; font-size: 1.6rem; color: var(--ink); }
.quick__result small { color: var(--ink-3); font-size: .78rem; }
.input, select.input { border-radius: 4px; border-width: 1px; background: var(--bg-2); border-color: transparent; }
.input:focus { background: var(--panel); }

/* Strip */
.strip { background: var(--bg); border: 0; }
.strip .wrap { padding-block: 56px 8px; }
.strip__item { border: 0 !important; text-align: center; }
.strip__item b { font-weight: 500; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); }

/* Configurator panel */
.panel { border-radius: 8px; }
.panel--controls { gap: 20px; }
.seg { border-radius: 4px; border: 0; background: var(--bg-2); }
.seg button { border-radius: 4px; font-weight: 600; }
.seg button[aria-pressed="true"] { box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.seg--tabs button { padding: 11px 6px; }
.price { display: grid; justify-items: center; gap: 4px; padding: 8px 0 4px; text-align: center; }
.price b { font-size: 2.4rem; font-weight: 500; letter-spacing: -.01em; }
.price span { color: var(--ink-3); font-size: .88rem; }
.opts { grid-auto-flow: row; grid-auto-columns: auto; background: transparent; padding: 0; gap: 10px; }
.opts--row { grid-template-columns: repeat(3, 1fr); }
.opts button { display: grid; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); background: var(--panel); color: var(--ink); }
.opts--row button { text-align: center; padding: 12px 8px; }
.opts button b { font-size: 1rem; font-weight: 600; }
.opts button span { font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.opts button small { font-size: .78rem; color: var(--ink-3); font-weight: 500; }
.opts button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--cobalt); }
.kpis { border-radius: 8px; }
.kpi b { font-weight: 500; }
.kpi--hero b { color: #ffd27a; }

/* Plans, guarantee, process: soft tiles */
.plan, .gear article, .step, .faq details { border-radius: 8px; }
.plan--main { border: 2px solid var(--cobalt); }
.plan__tag { background: var(--cobalt); color: #fff; border-radius: 4px; }
.plan__price b { font-weight: 500; }
.gear-ico { background: var(--bg-2); color: var(--ink); border-radius: 8px; }
.step::before { color: var(--cobalt); }
.cmp thead th.us { background: var(--cobalt); color: #fff; }
.cmp td.us { background: color-mix(in srgb, var(--cobalt) 6%, transparent); }
.table-wrap { border-radius: 8px; }

/* Form */
.form { border-radius: 8px; }
.progress__bar i { background: var(--cobalt); }
.choice span { border-radius: 4px; border-width: 1px; background: var(--bg-2); border-color: transparent; }
.choice input:checked + span { border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); }
.extras { display: grid; gap: 14px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.extras h4 { margin: 0; font-size: 1.1rem; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.extras h4 span { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); background: var(--bg-2); padding: 3px 8px; border-radius: 4px; }
.mcta .btn { border-radius: 4px; }
.hero--full .hero__center { grid-template-columns: none; }
.hero--full .hero__hud { display: flex; grid-template-columns: none; }
.hero--full .hero__hud .chip { width: auto; }

/* ---------- Live-site contact + referral pieces ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ref-note { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--sun) 14%, transparent); font-size: .9rem; }
.contact-links { display: block; margin-top: 4px; font-size: .92rem; }
.contact-links a { color: inherit; }
.myref { display: grid; gap: 10px; margin: 18px 0 6px; padding: 16px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 14px; text-align: left; }
.myref span, .myref small { color: var(--ink-2); }
.myref .btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.myref .btn-row .btn { display: inline-flex; }
.foot .wrap > div { min-width: 0; }
@media (min-width: 860px) { .foot .wrap { grid-template-columns: 1.4fr repeat(3, 1fr); } .foot .areas { grid-column: span 2; } }
.foot .areas { display: flex; flex-wrap: wrap; column-gap: 18px; }
.foot .areas h4 { flex-basis: 100%; }
.nav a, .top__phone, .top .btn { white-space: nowrap; }
