/* vume qualifier v2: one question per page, scroll-snapped, quiet motion.
   Same world as the green proposal: paper / ink, accent #168F5B, tint #9EDDBD, hairline frame with registration
   marks, margin dot grids, square markers, mono eyebrows. Type follows sent.dm's real stack (see FONTS.md):
   headings Archivo Expanded Light (the proposal's face), Inter for text, Geist Mono for labels.
   Motion is transform/opacity only; prefers-reduced-motion gets a calm static version. */

/* ---------- fonts (all served locally from /fonts/) ---------- */
@font-face { font-family: "Archivo Expanded"; src: url("/fonts/ArchivoExpanded-Light.woff2") format("woff2");
             font-weight: 100 900; font-style: normal; font-display: swap; }    /* the proposal's heading face (template/README.md) */
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Regular.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }

:root {
  --paper: #FDFCFC; --ink: #130F0C; --green: #168F5B; --tint: #9EDDBD;
  --hair: #F0EFEF; --hair2: #DEDCDC; --muted: #6B6560; --ink2: #2A2522; --field: #8F8781; --reg: #B9B3AE;
  --card: #FFFFFF; --on-ink: #FFFFFF;
  --font-heading: "Archivo Expanded", "Archivo", "Inter", system-ui, sans-serif;   /* matches the interactive proposal */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;           /* sent.dm: --font-sans: Inter */
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;        /* sent.dm: --font-mono-face: Geist Mono */
  --frame: 1120px; --top: 64px;
  --band: 270px; --band-low: 110px;          /* room kept clear for the dot mark; mark.js sets the real values */
  --ease: cubic-bezier(.2, .7, .15, 1);
  --spring: cubic-bezier(.3, 1.45, .45, 1);
  color-scheme: light;
}
/* dark theme: follows the system until the header switch sets data-theme (theme.js, shared with the proposal) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E0B09; --card: #0D0C0B; --ink: #F4F1EE; --ink2: #D9D3CD; --muted: #A39C96; --field: #6E6761; --reg: #4A433E;
    --hair: #221D1A; --hair2: #2F2925; --on-ink: #130F0C; color-scheme: dark; }
}
:root[data-theme="dark"] {
    --paper: #0E0B09; --card: #0D0C0B; --ink: #F4F1EE; --ink2: #D9D3CD; --muted: #A39C96; --field: #6E6761; --reg: #4A433E;
    --hair: #221D1A; --hair2: #2F2925; --on-ink: #130F0C; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--paper); scroll-snap-type: y mandatory; -webkit-text-size-adjust: 100%; }
@media (pointer: coarse) { html { scroll-snap-type: y proximity; } }   /* touch: never fight the on-screen keyboard */
html.is-done { scroll-snap-type: none; }
body { font-family: var(--font-sans); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.5;
       -webkit-font-smoothing: antialiased; font-feature-settings: "cv11" 1; overflow-x: hidden; }
[hidden] { display: none !important; }
b { font-weight: 600; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- the living dot mark (canvas, drawn by mark.js) + fixed frame ---------- */
.mark { position: fixed; left: 0; bottom: 0; z-index: 0; pointer-events: none; display: block; }
.frame { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.frame .fl, .frame .fr { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--hair2); }
.frame .fl { left: calc(50% - var(--frame) / 2); }
.frame .fr { right: calc(50% - var(--frame) / 2); }
.frame::before, .frame::after { content: ""; position: absolute; top: 0; bottom: 0; width: calc(50% - var(--frame) / 2);
  background-image: radial-gradient(circle, var(--hair2) .9px, transparent 1.1px); background-size: 12px 12px; }
.frame::before { left: 0; background-position: right 6px top 6px; }
.frame::after { right: 0; background-position: left 6px top 6px; }
/* below the desktop frame: a reduced glimpse of it. Hairlines sit in a narrow gutter (inside the safe area, outside
   the page padding) and the dot field shows only as a fading strip near the top: quiet, never under a tap target. */
@media (max-width: 1180px) {
  :root { --gl: max(14px, env(safe-area-inset-left)); --gr: max(14px, env(safe-area-inset-right)); }
  .frame .fl { left: var(--gl); }
  .frame .fr { right: var(--gr); }
  .frame .fl, .frame .fr { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 96%); mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 96%); }
  .frame::before, .frame::after { background-image: radial-gradient(circle, var(--hair2) .8px, transparent 1px); background-size: 9px 9px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 16%, transparent 46%); mask-image: linear-gradient(to bottom, #000 0, #000 16%, transparent 46%); }
  .frame::before { width: var(--gl); background-position: right 3px top 4px; }
  .frame::after { width: var(--gr); background-position: left 3px top 4px; }
}
@media (max-width: 760px) { :root { --gl: max(9px, env(safe-area-inset-left)); --gr: max(9px, env(safe-area-inset-right)); } }

/* ---------- type ---------- */
.lab { font-family: var(--font-mono); font-size: 11px; line-height: 15px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.eyebrow { display: flex; align-items: center; font-family: var(--font-mono); font-size: 11.5px; line-height: 16px; letter-spacing: .08em;
           text-transform: uppercase; color: var(--ink); }
.eyebrow .sq { flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--green); margin-right: 10px; }
h1, .q { font-family: var(--font-heading); font-weight: 400; color: var(--ink); font-kerning: normal; }
h1 { font-size: clamp(42px, 5.9vw, 88px); line-height: 1; letter-spacing: -.035em; margin-top: 22px; }
.q { font-size: clamp(26px, 3.3vw, 44px); line-height: 1.12; letter-spacing: -.03em; margin-top: 18px; max-width: 17em; }
.q label { cursor: inherit; }
.lead { font-size: 17px; line-height: 27px; color: var(--ink2); max-width: 31em; }
.hint { font-size: 16px; line-height: 24px; color: var(--muted); margin-top: 14px; }
.page .q + .lead { margin-top: 18px; }
.back { display: none; padding: 8px 2px; color: var(--ink2); }
.back:hover { color: var(--ink); }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 20px; border-radius: 999px; font: 500 15px/1 var(--font-sans);
        white-space: nowrap; transition: background-color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease); }
.pill.solid { background: var(--ink); color: var(--on-ink); }
.pill.solid:hover { background: var(--ink2); }
.pill.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--hair2); box-shadow: 0 0 0 3px rgba(19, 15, 12, .025); }
.pill.ghost:hover { border-color: var(--field); }
.pill:active { transform: translateY(1px); }
.pill:focus-visible, .arw:focus-visible, .brand:focus-visible, .rail button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--green); }
.pill.big { height: 54px; padding: 0 26px; font-size: 16px; }
.kbd { font-style: normal; font-family: var(--font-mono); font-size: 13px; color: var(--tint); transition: transform .3s var(--ease); }
.pill:hover .kbd { transform: translateX(2px); }
.pill[disabled] { opacity: .55; cursor: progress; }

/* ---------- header: green square wordmark, counter, progress hairline ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; height: var(--top); z-index: 4; display: flex; align-items: center; justify-content: space-between;
       padding: 0 max(20px, calc(50% - var(--frame) / 2 + 32px)); background: var(--paper); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair2); }
.brand { display: inline-flex; align-items: center; height: 36px; padding: 0 2px; border-radius: 6px; }
.brand svg { display: block; overflow: visible; }
.brand rect { fill: var(--green); transform-box: fill-box; transform-origin: 50% 50%; }
.brand.boot rect { animation: cell-in .7s var(--spring) both; }
.brand.wave rect { animation: cell-wave .7s var(--ease) both; }
@keyframes cell-in { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes cell-wave { 0% { transform: none; } 35% { transform: translateY(-1.6px); opacity: .55; } 100% { transform: none; opacity: 1; } }
.top-r { display: flex; align-items: center; gap: 22px; }
/* theme switch (header, far right): the same control as the proposal */
.theme { position: relative; width: 52px; height: 30px; flex: none; border-radius: 999px; border: 1px solid var(--hair2); background: var(--card); padding: 0; pointer-events: auto; }
.theme .knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); display: grid; place-items: center;
               transition: transform .35s var(--ease), background-color .3s var(--ease); }
.theme svg { width: 13px; height: 13px; color: var(--on-ink); }
.theme .moon { display: none; }
.theme[aria-checked="true"] .knob { transform: translateX(22px); }
.theme[aria-checked="true"] .sun { display: none; } .theme[aria-checked="true"] .moon { display: block; }
.theme:hover { border-color: var(--field); }
.theme:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.count { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink);
         font-variant-numeric: tabular-nums; transition: opacity .4s var(--ease); }
.count .cur { display: inline-block; min-width: 2ch; }
.count .cur.tick { animation: tick .45s var(--ease); }
.count .sl, .count .tot { color: var(--muted); }
@keyframes tick { from { transform: translateY(55%); opacity: 0; } to { transform: none; opacity: 1; } }
.at-hero .count, .is-done .count, .at-gate .count { opacity: 0; }
.bar { position: absolute; left: max(0px, calc(50% - var(--frame) / 2)); right: max(0px, calc(50% - var(--frame) / 2)); bottom: 0; height: 1px; z-index: 1; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
.reg { position: absolute; bottom: -6px; width: 13px; height: 13px; z-index: 2; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--reg); }
.reg::before { left: 6px; top: 0; width: 1px; height: 13px; }
.reg::after { top: 6px; left: 0; height: 1px; width: 13px; }
.reg.l { left: calc(50% - var(--frame) / 2 - 6px); }
.reg.r { right: calc(50% - var(--frame) / 2 - 6px); }
@media (max-width: 1180px) {                           /* the registration crosses follow the reduced frame's hairlines */
  .reg { width: 9px; height: 9px; bottom: -4px; }
  .reg::before { left: 4px; height: 9px; } .reg::after { top: 4px; width: 9px; }
  .reg.l { left: calc(var(--gl) - 4px); } .reg.r { right: calc(var(--gr) - 4px); }
}

/* ---------- rail (desktop) + quiet arrows ---------- */
.rail { position: fixed; z-index: 3; left: calc(50% - var(--frame) / 2 + 26px); top: 50%; transform: translateY(-50%); display: grid; gap: 9px;
        transition: opacity .4s var(--ease); }
.rail button { position: relative; width: 9px; height: 9px; border-radius: 2.5px; border: 1px solid var(--reg); background: transparent; padding: 0;
               transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .45s var(--spring); }
.rail button::after { content: ""; position: absolute; inset: -6px; }          /* comfortable hit area */
.rail button.done { background: var(--ink); border-color: var(--ink); }
.rail button.now { background: var(--green); border-color: var(--green); transform: scale(1.45); }
.rail button:disabled { opacity: .45; cursor: default; }
.at-hero .rail, .is-done .rail { opacity: 0; pointer-events: none; }
@media (max-width: 1180px) { .rail { display: none; } }
.arrows { position: fixed; z-index: 4; right: max(16px, calc(50% - var(--frame) / 2 + 24px)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; gap: 6px;
          transition: opacity .4s var(--ease), transform .4s var(--ease); }
.arw { width: 40px; height: 40px; border-radius: 999px; background: var(--card); border: 1px solid var(--hair2); font-family: var(--font-mono); font-size: 14px;
       color: var(--ink); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.arw:hover { border-color: var(--field); }
.arw:active { transform: scale(.94); }
.arw:disabled { opacity: .35; cursor: default; }
.at-hero .arrows, .is-done .arrows { opacity: 0; transform: translateY(8px); pointer-events: none; }

/* ---------- pages ---------- */
.page { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; scroll-snap-align: start; display: grid; align-content: center;
        padding: calc(var(--top) + 36px) 24px calc(var(--band-low) + 28px); }
.page.hero, #s-consent, .page.gate, .page.done { padding-bottom: calc(var(--band) + 20px); }
.inner { width: min(100%, 760px); margin: 0 auto; }
.js .inner { will-change: transform, opacity; }

/* reveal on enter: small rise + fade, staggered by data-r order (form.js sets --i; .shown is toggled per visit) */
.js [data-r] { opacity: 0; transform: translate3d(0, 18px, 0); }
.js .page.shown [data-r] { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform 1s var(--ease);
                           transition-delay: calc(var(--i, 0) * 70ms + 20ms); }

/* hero: sent.dm-style split, headline left, copy + action right */
.hero .inner { width: min(100%, calc(var(--frame) - 64px)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: 32px 56px; align-items: end; }
.h-right { padding-bottom: 10px; }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 28px; }
/* hero Begin: a larger pill with a green arrow chip that slides on hover */
.pill.start { position: relative; height: 64px; gap: 22px; padding: 0 8px 0 30px; font-size: 17px; letter-spacing: -.005em;
              box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 10px 24px -12px rgba(19, 15, 12, .55); overflow: hidden; }
.pill.start .start-t { position: relative; z-index: 1; }
.pill.start .start-go { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
                        background: var(--green); color: #fff; transition: transform .45s var(--ease), background-color .3s var(--ease); }
.pill.start .start-go svg { transition: transform .45s var(--ease); }
.pill.start:hover { background: var(--ink); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 16px 30px -14px rgba(19, 15, 12, .6); }
.pill.start:hover .start-go { transform: scale(1.06); }
.pill.start:hover .start-go svg { transform: translateX(2px); }
.pill.start:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 4px 10px -6px rgba(19, 15, 12, .5); }
.pill.start:focus-visible { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--green); }
.hint-k .key { display: inline-block; margin-left: 4px; padding: 3px 7px 2px; border: 1px solid var(--hair2); border-bottom-width: 2px; border-radius: 6px;
               background: var(--card); font: inherit; color: var(--ink); letter-spacing: .04em; }
.meta { margin-top: 18px; max-width: 34em; }
.cue { position: absolute; left: max(24px, calc(50% - var(--frame) / 2 + 32px)); bottom: calc(var(--band) - 4px); display: flex; align-items: center; gap: 10px; }
.cue i { position: relative; width: 1px; height: 26px; background: var(--hair2); overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: -2px; top: 0; width: 5px; height: 5px; border-radius: 1.5px; background: var(--green); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-6px); opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }

/* ---------- fields: one large answer line, focus grows a green rule from the left ---------- */
.fields.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.fields.addr { display: grid; grid-template-columns: 1fr 1fr 110px 140px; gap: 0 24px; }
.fields.addr .street { grid-column: 1 / -1; }
.fields.addr .city { grid-column: 1 / 3; }
.fields, .field, .choices { margin-top: 34px; }
.fields .field { margin-top: 0; margin-bottom: 26px; }
.field.short { max-width: 260px; }
.field > .lab { display: block; margin-bottom: 6px; color: var(--ink2); }
.in { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--field); transition: border-color .25s var(--ease); }
.in input, .in select { flex: 1; min-width: 0; width: 100%; height: 62px; border: 0; border-radius: 0; background: transparent; outline: none; padding: 0 2px;
  font: 400 clamp(22px, 2.3vw, 30px)/1.2 var(--font-sans); letter-spacing: -.012em; color: var(--ink); caret-color: var(--green); appearance: none; -webkit-appearance: none; }
.in select { cursor: pointer; padding-right: 26px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
             background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.in input::placeholder { color: var(--field); }
.in:hover { border-bottom-color: var(--ink2); }
.in .line { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: 0 50%;
            transition: transform .6s var(--ease); pointer-events: none; }
.in:focus-within .line { transform: scaleX(1); }
.money .pre { font-family: var(--font-heading); font-size: clamp(26px, 2.5vw, 34px); line-height: 1; color: var(--ink); margin-right: 8px; }
.money .post { white-space: nowrap; margin-left: 10px; }
.money { max-width: 420px; }
.opt { display: inline-block; margin-left: 8px; padding: 0 5px; border: 1px solid var(--hair2); border-radius: 4px; font-size: 9.5px; letter-spacing: .08em;
       text-transform: uppercase; color: var(--muted); vertical-align: 1px; }

/* bill -> estimated annual usage (v3c): a compact panel under the bill. One usage band, drawn in-house as inline SVG:
   the estimate (ink marker, green fill) against EIA's average home use (hairline ticks). Paper / ink / green only. */
.use-panel { max-width: 560px; margin-top: 30px; padding: 16px 20px 16px; background: var(--card); border: 1px solid var(--hair2); border-radius: 14px;
             animation: rise .4s var(--ease); }
.use-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.use-head .lab { color: var(--ink2); }
.use-head .opt { margin-left: 0; }
.use-fig { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.use-num { font-family: var(--font-heading); font-weight: 400; font-size: clamp(28px, 2.7vw, 36px); line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
.use-unit { text-transform: none; letter-spacing: .02em; }      /* kWh keeps its case */
.use-panel[data-basis="none"] .use-head .opt { display: none; }   /* no estimate shown: no "Estimate" tag either */
.use-band { display: block; max-width: 100%; margin-top: 12px; overflow: visible; }
.use-band .trk { fill: var(--hair); stroke: var(--hair2); stroke-width: 1; }
.use-band .fil { fill: var(--green); }
.use-band .mkr { fill: var(--ink); stroke: var(--card); stroke-width: 2; }
.use-band .tk { stroke: var(--ink2); stroke-width: 1; shape-rendering: crispEdges; }
.use-band .t1 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em; fill: var(--muted); }
.use-band .t2 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; fill: var(--ink); }
.use-band .te { fill: var(--ink); }
.use-src { margin-top: 10px; font-size: 14px; line-height: 20px; color: var(--ink2); }
.use-note { margin-top: 6px; text-transform: none; letter-spacing: .02em; }

/* phone: a locked +1 country code inside the field, divided from the number by a hairline */
.field.phone { max-width: 470px; }
.phone .cc { flex: none; padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--hair2); line-height: 30px;
             font: 400 clamp(22px, 2.3vw, 30px)/1.2 var(--font-sans); letter-spacing: -.012em; color: var(--muted); user-select: none; -webkit-user-select: none; }

/* address autocomplete: a quiet sheet under the street field (keyboard: up/down, Enter, Esc) */
.field.street { position: relative; z-index: 5; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 6; list-style: none; padding: 6px; background: var(--card); border: 1px solid var(--hair2);
           border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(19, 15, 12, .16), 0 0 0 3px rgba(19, 15, 12, .02); max-height: 330px; overflow-y: auto;
           overscroll-behavior: contain; animation: rise .28s var(--ease); }
.ac-list li { position: relative; display: grid; gap: 2px; padding: 11px 14px 11px 32px; border-radius: 9px; cursor: pointer; }
.ac-list li::before { content: ""; position: absolute; left: 13px; top: 18px; width: 7px; height: 7px; border-radius: 2px; border: 1px solid var(--reg);
                      transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.ac-list li .a1 { font: 500 16px/22px var(--font-sans); color: var(--ink); }
.ac-list li .a2 { font-family: var(--font-mono); font-size: 11.5px; line-height: 16px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--hair); }
.ac-list li[aria-selected="true"]::before { background: var(--green); border-color: var(--green); }

/* ---------- cards: utility + home battery choices (same marker language as the chips) ---------- */
.cards { display: grid; gap: 12px; margin-top: 30px; }
.ucards { grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); }
.ecards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: block; }
.card input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.card .cd { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; min-height: 124px; padding: 20px 22px 18px;
  background: var(--card); border: 1px solid var(--hair2); border-radius: 14px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease); }
.card .mk { position: absolute; top: 18px; right: 18px; width: 9px; height: 9px; border-radius: 2.5px; border: 1px solid var(--reg);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .55s var(--spring); }
.card:hover .cd { border-color: var(--field); }
.card input:active + .cd { transform: scale(.99); }
.card input:checked + .cd { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.card input:checked + .cd .mk { background: var(--green); border-color: var(--green); transform: rotate(90deg) scale(1.15); }
.card input:focus-visible + .cd { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--green); }
.card input:checked:focus-visible + .cd { box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 3px var(--paper), 0 0 0 5px var(--green); }
.cards.bad .card .cd { border-color: var(--ink); }
.card .logo { display: block; height: 38px; width: auto; max-width: 168px; object-fit: contain; object-position: left center; margin-top: 2px; }
.card .tname { font-family: var(--font-heading); font-weight: 400; font-size: 22px; line-height: 1.1; letter-spacing: -.025em; color: var(--ink); max-width: calc(100% - 22px); }
.card .kind { margin-top: auto; padding-top: 6px; }
.card .sub { font-size: 14px; line-height: 19px; color: var(--ink2); }
.ucard.other .tname { color: var(--ink2); }
.card .tag, .card .match { display: inline-flex; align-items: center; gap: 7px; font: normal 400 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-ink); background: var(--ink); border-radius: 999px; padding: 6px 10px 6px 8px; }
.card .tag::before, .card .match::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: var(--green); }
.ucard.suggest .cd { border-color: var(--ink2); }
/* utility cards: the same layout as the home-battery cards. A fixed 38px brand slot (the utility's own mark, or a
   typeset name sized to fit), the card label, the kind on the bottom line; the ZIP match is a tab on the top edge.
   Rows are 1fr, so every card in the grid has the same height. */
.ucards { grid-auto-rows: 1fr; margin-top: 38px; }
.ucard .cd { display: grid; grid-template-rows: 38px auto auto 1fr auto; align-content: stretch; gap: 0; min-height: 0; padding: 22px 44px 18px 22px; }
.ucard .bm { display: flex; align-items: center; height: 38px; min-width: 0; }
.ucard .logo { height: 34px; max-width: 100%; margin: 0; }
.ucard .tname { line-height: 1; max-width: none; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ucard .tname.t-m { font-size: 16px; }
.ucard .tname.t-s { font-size: 13.5px; line-height: 1.15; }
.ucard .sub { margin-top: 10px; min-height: 19px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ucard .kind { grid-row: 5; margin: 12px 0 0; padding: 0; }
/* the utility's average residential price (EIA), right under its name: the same small print, in sentence case.
   The kind line stays on the bottom edge, so a rate that wraps never moves it. */
.ucard .rate .nw { white-space: nowrap; }
.ucard .rate { grid-row: 3; min-height: 15px; margin: 4px 0 0; text-transform: none; letter-spacing: .02em; color: var(--ink2); }
.ucard .match { position: absolute; top: 0; left: 18px; transform: translateY(-50%); margin: 0; }
.hint .hint-mark { display: inline-block; height: 22px; width: auto; margin: -3px 10px 0 0; vertical-align: middle; }
.ucards[aria-busy="true"] .ucard.other { opacity: .55; }
/* home battery: one layout for all three cards. A fixed-height brand row (logo plate or typeset name, centred in the
   same 38px slot), then the product line on the same baseline across the row; "Recommended" sits as a tab on the
   top edge, so it adds no height. Rows are 1fr, so the cards stay equal even when a long brand is picked. */
.ecards { grid-auto-rows: 1fr; margin-top: 38px; }
.ecard .cd { display: grid; grid-template-rows: 38px auto; align-content: start; gap: 12px; min-height: 0; padding: 22px 44px 22px 22px; }
.ecard .bm { display: flex; align-items: center; height: 38px; min-width: 0; }
.ecard .tname { line-height: 1; max-width: none; }
.ecard .plate { display: inline-flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 9px; background: #130F0C; box-shadow: inset 0 0 0 1px var(--hair2); }   /* white logo: the plate stays near-black in both themes */
.ecard .plate img { display: block; height: 16px; width: auto; }
.ecard .pname { font: 500 17px/22px var(--font-sans); color: var(--ink); min-width: 0; }
.ecard .tag { position: absolute; top: 0; left: 18px; transform: translateY(-50%); margin: 0; }
.ecard .picked { color: var(--muted); font-weight: 400; }
.ecard.has-pick .picked { color: var(--ink); font-weight: 500; }

/* ---------- the brand wheel: an iOS-style picker (drag, wheel, arrow keys; Enter confirms) ---------- */
.wheel-wrap { display: grid; grid-template-columns: minmax(0, 340px) auto; align-items: center; gap: 18px 26px; margin-top: 18px; animation: rise .4s var(--ease); }
.wheel { --row: 44px; position: relative; height: calc(var(--row) * 5); overflow: hidden; background: var(--card); border: 1px solid var(--hair2); border-radius: 14px;
  perspective: 520px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; outline: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%, #000 74%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 26%, #000 74%, transparent 100%); }
.wheel:active { cursor: grabbing; }
.wheel:focus-visible { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--green); }
.wheel-band { position: absolute; left: 8px; right: 8px; top: 50%; height: var(--row); margin-top: calc(var(--row) / -2); border-radius: 9px; background: var(--hair);
              pointer-events: none; z-index: 0; }
.wheel-band::before { content: ""; position: absolute; left: 14px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 2px; background: var(--green); }
.wheel-items { position: absolute; left: 0; right: 0; top: 50%; margin-top: calc(var(--row) / -2); list-style: none; z-index: 1; will-change: transform; }
.wheel-items li { height: var(--row); display: flex; align-items: center; justify-content: center; font: 400 18px/1 var(--font-sans); color: var(--ink2);
  backface-visibility: hidden; transform-origin: 50% 50% -60px; }
.wheel-items li[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.wheel-act { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- credit page: questions grouped on one page (a third .qgroup drops straight in) ---------- */
.qgroups { display: grid; gap: 30px; margin-top: 30px; }
.qgroup .choices { margin-top: 14px; }
.subq { display: flex; align-items: center; gap: 12px; font: 500 19px/26px var(--font-sans); letter-spacing: -.005em; color: var(--ink); }
#credit-band-group:not([hidden]) { animation: rise .4s var(--ease); }
.subq .qi { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--hair2); border-radius: 6px;
            font: 400 11px/1 var(--font-mono); color: var(--muted); }
.bad .in, .in.bad { border-bottom-color: var(--ink); }
.bad .in .line { transform: scaleX(1); background: var(--ink); }

/* ---------- choices: chips fill with ink from the left; the square marker turns green ---------- */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 11px; height: 54px; padding: 0 24px 0 20px;
  border: 1px solid var(--hair2); border-radius: 999px; background: var(--card); font: 500 16px/1 var(--font-sans); color: var(--ink); white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease); }
.choice span::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; border: 1px solid var(--reg);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .55s var(--spring); }
.choice span::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease); }
.choice:hover span { border-color: var(--field); }
.choice input:active + span { transform: scale(.985); }
.choice input:checked + span { color: var(--on-ink); border-color: var(--ink); }
.choice input:checked + span::after { transform: scaleX(1); }
.choice input:checked + span::before { background: var(--green); border-color: var(--green); transform: rotate(90deg) scale(1.15); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--green); }
.choices.bad .choice span { border-color: var(--ink); }

/* ---------- step nav + errors (calm: ink only, a CHECK tag, no shaking) ---------- */
.q-nav { display: flex; align-items: center; gap: 18px; margin-top: 38px; flex-wrap: wrap; }
.err { display: none; font-family: var(--font-mono); font-size: 12px; line-height: 17px; color: var(--ink); margin-top: 10px; }
.err:not(:empty) { display: flex; gap: 8px; align-items: baseline; animation: err-in .35s var(--ease); }
.err:not(:empty)::before { content: "CHECK"; flex: none; font-size: 9.5px; letter-spacing: .08em; background: var(--ink); color: var(--on-ink); border-radius: 4px; padding: 1px 5px; }
.form-err:not(:empty)::before { content: "ERROR"; }
@keyframes err-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- consent ---------- */
.consent { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 16px; margin-top: 30px; padding: 22px 24px; background: var(--card);
           border: 1px solid var(--hair2); border-radius: 14px; cursor: pointer; transition: border-color .25s var(--ease); }
.consent:hover { border-color: var(--field); }
.consent input { position: absolute; left: 24px; top: 23px; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.consent .box { position: relative; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--card);
                transition: background-color .25s var(--ease); }
.consent .box::after { content: ""; position: absolute; left: 6px; top: 6px; width: 7px; height: 7px; border-radius: 2px; background: var(--green);
                       transform: scale(0) rotate(-90deg); transition: transform .5s var(--spring); }
.consent input:checked + .box { background: var(--ink); }
.consent input:checked + .box::after { transform: none; }
.consent input:focus-visible + .box { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--green); }
.consent .ctext { font-size: 14.5px; line-height: 22px; color: var(--ink2); }
.consent.bad { border-color: var(--ink); border-width: 1.5px; }
.cmeta { margin-top: 12px; letter-spacing: .02em; text-transform: none; }
.submit-row { margin-top: 26px; }
.fine { max-width: 330px; text-transform: none; letter-spacing: .02em; }

/* ---------- received ---------- */
.refbox { display: inline-flex; flex-direction: column; gap: 6px; margin-top: 30px; padding: 16px 20px; background: var(--card); border: 1px solid var(--hair2); border-radius: 12px; }
.refbox .ref { font-family: var(--font-mono); font-size: 26px; letter-spacing: .04em; color: var(--ink); }
.status { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
          text-transform: uppercase; color: var(--ink2); }
.pulse { width: 8px; height: 8px; border-radius: 2px; background: var(--green); animation: blink 1.4s ease-in-out infinite; }
.status.ready .pulse { animation: none; }
@keyframes blink { 50% { opacity: .25; } }
.path { margin-top: 12px; font-family: var(--font-mono); font-size: 12.5px; line-height: 19px; color: var(--ink2); word-break: break-all; }
.path a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }

/* ---------- touch / small screens ---------- */
@media (pointer: coarse) { .hint-k { display: none; } }
@media (max-width: 760px) {
  :root { --top: 56px; }
  .page { padding-left: 20px; padding-right: 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .fields.two, .fields.addr { grid-template-columns: 1fr 1fr; }
  .fields.two .field { grid-column: 1 / -1; }
  .fields.addr .city { grid-column: 1 / -1; }
  .choices { flex-direction: column; align-items: stretch; }
  .choice span { width: 100%; }
  .hide-sm { display: none; }
  .arrows { display: none; }
  .back { display: inline-block; margin-left: auto; }
  .cue { display: none; }
  .consent { padding: 18px 18px; gap: 14px; }
  .consent input { left: 18px; top: 19px; }
  .ucards, .ecards { grid-template-columns: 1fr; gap: 10px; }
  .card .cd { min-height: 0; padding: 15px 44px 15px 16px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
  .card .mk { top: 50%; margin-top: -4.5px; right: 18px; }
  .card .logo { height: 30px; max-width: 132px; margin: 0; }
  .card .tname { font-size: 19px; }
  .card .kind { margin: 0; padding: 0; flex-basis: 100%; }
  .ucards { margin-top: 34px; grid-auto-rows: 1fr; }
  .ucard .cd { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; align-items: start; align-content: stretch;
               gap: 2px 12px; min-height: 68px; padding: 18px 44px 18px 16px; }
  .ucard .bm { grid-column: 1; grid-row: 1 / -1; height: 32px; align-self: center; }
  .ucard .logo { height: 28px; max-width: 112px; }
  .ucard .tname { font-size: 18px; }
  .ucard .tname.t-m { font-size: 14px; }
  .ucard .tname.t-s { font-size: 12px; }
  .ucard .sub { grid-column: 2; grid-row: 1; margin: 0; min-height: 17px; font-size: 13px; line-height: 17px; }
  .ucard .rate { grid-column: 2; grid-row: 2; margin: 2px 0 0; flex-basis: auto; }
  .ucard .kind { grid-column: 2; grid-row: 4; margin: 4px 0 0; align-self: end; flex-basis: auto; }
  .use-panel { padding: 14px 16px; }
  .ucard .match { left: 14px; }
  .hint .hint-mark { height: 20px; }
  .ecards { margin-top: 34px; }
  .ecard .cd { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: none; align-items: center; align-content: center; gap: 0 12px;
               min-height: 68px; padding: 18px 44px 18px 16px; }
  .ecard .bm { height: 32px; }
  .ecard .plate { height: 32px; padding: 0 10px; }
  .ecard .plate img { height: 15px; }
  .ecard .tname { font-size: 23px; }
  .ecard .pname { font-size: 16px; line-height: 21px; }
  .ecard .tag { left: 14px; }
  .wheel-wrap { grid-template-columns: 1fr; }
  .wheel { --row: 42px; }
  .qgroups { gap: 26px; margin-top: 24px; }
  .subq { font-size: 17px; line-height: 24px; }
  .field.phone { max-width: none; }
  .ac-list { max-height: 268px; }
  .ac-list li { padding-top: 10px; padding-bottom: 10px; }
}

/* ---------- reduced motion: everything visible, nothing travels ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-r] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .choice span, .choice span::before, .choice span::after, .in .line, .consent .box::after, .rail button, .count, .arrows, .pill, .kbd, .start-go, .start-go svg,
  .card .cd, .card .mk, .ac-list li::before { transition: none !important; }
  .brand rect, .count .cur.tick, .err:not(:empty), .reveal, .cue i::after, .pulse, .ac-list, .wheel-wrap, #credit-band-group, .use-panel { animation: none !important; }
  .js .inner { will-change: auto; }
}
