/* HeatCool Hub v0.2.0 — site styles */
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #0E2233; --night-2: #16324A; --ink: #13202E; --ink-2: #44566A; --muted: #6B7D90;
  --paper: #F5F8FA; --white: #FFFFFF; --mist: #E2EAF0; --mist-2: #CFDAE3;
  --ember: #E8552B; --ember-2: #F28A3C; --glacier: #1FA7C9; --glacier-2: #7FD6EA; --leaf: #23925C; --leaf-bg: #E3F4EA;
  --r-s: 8px; --r-m: 14px; --r-l: 24px;
  --wrap: 1200px; --pad: clamp(16px, 4vw, 32px);
  --f: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(14, 34, 51, .06), 0 8px 24px -12px rgba(14, 34, 51, .18);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); font-variation-settings: "opsz" 14; font-weight: 420; -webkit-font-smoothing: antialiased; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 720; line-height: 1.1; letter-spacing: -0.02em; font-variation-settings: "opsz" 96; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--glacier); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
.meta { color: var(--muted); font-size: .92rem; }
.link { color: var(--ink); text-decoration-color: var(--glacier); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 560; }
.link:hover { text-decoration-color: var(--ember); }

/* buttons & form controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--ember); color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: #D2461F; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .92rem; }
.btn-light { background: var(--white); color: var(--night); }
.btn-light:hover { background: var(--mist); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--mist-2); }
.btn-ghost:hover { background: var(--mist); }
.btn-cool { background: var(--glacier); }
.btn-cool:hover { background: #178CAA; }
.btn-block { width: 100%; }
.btn-danger { background: transparent; color: #B4321A; box-shadow: inset 0 0 0 1.5px #F2C5B8; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--mist-2); border-radius: var(--r-s); padding: 10px 12px; min-height: 46px; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--glacier); box-shadow: 0 0 0 3px rgba(31, 167, 201, .2); }
.fld { display: grid; gap: 6px; margin-bottom: 14px; }
.fld > span { font-weight: 600; font-size: .92rem; }
.fld small { color: var(--muted); font-size: .85rem; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--ember); }
.form-msg { min-height: 1.4em; margin: 10px 0 0; font-weight: 550; }
.form-msg.err { color: #B4321A; }
.form-msg.ok { color: var(--leaf); }

/* header */
.top { position: sticky; top: 0; z-index: 1100; background: rgba(245, 248, 250, .9); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--mist); }
.is-home .top { background: rgba(14, 34, 51, .86); border-color: rgba(255,255,255,.08); color: #fff; }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 760; font-size: 1.15rem; letter-spacing: -.02em; }
.mark { width: 32px; height: 32px; }
.mk-cool { fill: var(--glacier); } .mk-heat { fill: var(--ember); } .mk-house { fill: #fff; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 540; padding: 8px 12px; border-radius: 999px; font-size: .96rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(31, 167, 201, .14); }
.top-cta { display: none; }
.is-home .top-cta { background: #fff; color: var(--night); }
.menu { margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.menu nav { position: absolute; right: 0; top: 52px; background: var(--white); color: var(--ink); border-radius: var(--r-m); box-shadow: var(--shadow); padding: 8px; display: grid; min-width: 220px; }
.menu nav a { padding: 12px 14px; text-decoration: none; font-weight: 560; border-radius: 10px; }
.menu nav a:hover { background: var(--paper); }
@media (min-width: 960px) { .nav { display: flex; } .top-cta { display: inline-flex; } .menu { display: none; } }

/* hero */
.hero { background: radial-gradient(1200px 600px at 85% 40%, #1B3F5C 0%, var(--night) 60%); color: #fff; overflow: hidden; }
.hero-in { display: grid; gap: 24px; padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(28px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 760; max-width: 15ch; }
.hero .lead { color: #C7D6E3; }
.hero-note { color: #9FB4C7; font-size: .92rem; margin-top: 12px; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1fr 1.08fr; } }
.pc-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.pc-row { display: flex; gap: 8px; flex-wrap: wrap; max-width: 520px; }
.pc-row input { flex: 1 1 180px; text-transform: uppercase; min-height: 52px; font-size: 1.05rem; }
.pc-row input::placeholder, .finder-bar input::placeholder { text-transform: none; }
.pc-row .btn { min-height: 52px; flex: 0 0 auto; }
.hero .pc-row input { border-color: transparent; }

.hero-3d { position: relative; aspect-ratio: 1 / .86; border-radius: var(--r-l); touch-action: pan-y; isolation: isolate; }
.hero-3d::before, .hero-3d::after { content: ""; position: absolute; inset: -6%; z-index: -1; border-radius: 50%; transition: opacity 1.1s; }
.hero-3d::before { background: radial-gradient(closest-side, rgba(31,167,201,.26), transparent 72%); }
.hero-3d::after { background: radial-gradient(closest-side at 40% 40%, rgba(255,176,90,.34), rgba(232,85,43,.12) 55%, transparent 74%); opacity: 0; }
.hero-3d[data-season="summer"]::after { opacity: 1; }
.hero-3d[data-season="summer"]::before { opacity: .3; }
.hero-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; opacity: 0; transition: opacity .6s; }
.hero-3d.is-live canvas { opacity: 1; }
.hero-3d.is-live .hero-poster { opacity: 0; }
.hero-poster { position: absolute; inset: 6% 4% 10%; width: 92%; height: 84%; object-fit: contain; transition: opacity .6s; pointer-events: none; }
.h3-ui { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.h3-read { display: flex; gap: 6px; }
.h3-read span { background: rgba(14, 34, 51, .66); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 6px 12px; display: grid; line-height: 1.15; min-width: 76px; }
.h3-read small { color: #9FB4C7; font-size: .74rem; }
.h3-read b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
[data-season="winter"] [data-t-in] { color: var(--ember-2); }
[data-season="summer"] [data-t-in] { color: var(--glacier-2); }
.h3-cap { position: absolute; left: 12px; right: 12px; bottom: 10px; margin: 0; font-size: .9rem; color: #C7D6E3; background: rgba(14, 34, 51, .62); border-radius: 12px; padding: 8px 12px; }

/* segmented control */
.seg { display: inline-flex; background: var(--mist); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { font: inherit; font-weight: 600; font-size: .92rem; border: 0; background: transparent; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; cursor: pointer; min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg-dark { background: rgba(255,255,255,.1); }
.seg-dark button { color: #C7D6E3; }
.seg-dark button[aria-pressed="true"] { background: #fff; color: var(--night); }

/* bands */
.band { padding: clamp(48px, 8vw, 96px) 0; }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: .8fr 1.2fr; gap: 56px; } }
.two { display: grid; gap: 48px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* refrigerant cycle */
.cycle { margin: 0; background: var(--white); border-radius: var(--r-l); padding: clamp(14px, 2.4vw, 24px); box-shadow: var(--shadow); }
.cycle-svg { width: 100%; height: auto; margin-top: 12px; }
.cy-room { fill: #FFF4EE; stroke: #F6D6C8; }
.cy-out { fill: #EEF8FB; stroke: #CFEAF2; }
.cycle[data-mode="heat"] .cy-room { fill: #FFF1EA; }
.cycle[data-mode="heat"] .cy-out { fill: #EAF2F8; }
.cy-zone { font: 650 17px var(--f); fill: var(--ink); }
.cy-temp { font: 760 26px var(--f); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.cy-pipe { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke .6s; }
.cy-hot { stroke: var(--ember); } .cy-warm { stroke: #F3A47A; } .cy-cold { stroke: var(--glacier); } .cy-cool { stroke: #8ACFE2; }
.cy-coil rect { fill: var(--white); stroke: var(--mist-2); stroke-width: 2; }
.cy-coil path { stroke: var(--mist-2); stroke-width: 4; stroke-linecap: round; }
.cy-comp rect { fill: var(--night); }
.cy-rotor { fill: none; stroke: #fff; stroke-width: 4; stroke-dasharray: 18 8; transform-origin: 40px 32px; transform-box: view-box; }
.cy-valve path { fill: var(--night); }
.cy-heat path { stroke-width: 4; stroke-linecap: round; fill: none; stroke-dasharray: 10 10; }
.cycle[data-mode="cool"] .cy-heat-in path { stroke: #F3A47A; animation: dash-r 1.2s linear infinite; }
.cycle[data-mode="cool"] .cy-heat-out path { stroke: var(--ember); animation: dash-r 1.2s linear infinite; }
.cycle[data-mode="heat"] .cy-heat-in path { stroke: var(--ember); animation: dash-l 1.2s linear infinite; }
.cycle[data-mode="heat"] .cy-heat-out path { stroke: var(--glacier); animation: dash-l 1.2s linear infinite; }
@keyframes dash-r { to { stroke-dashoffset: -20; } }
@keyframes dash-l { to { stroke-dashoffset: 20; } }
.cy-dot { fill: #fff; stroke: var(--night); stroke-width: 2; }
.cy-lbl { font: 650 15px var(--f); fill: var(--ink); }
.cy-n { font-weight: 800; fill: var(--ember); }
.cycle-steps { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
@media (min-width: 700px) { .cycle-steps { grid-template-columns: 1fr 1fr; } }
.cycle-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.cycle-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--mist-2); display: grid; place-content: center; font-weight: 760; color: var(--ember); font-size: .9rem; }
.cycle-steps b { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .cy-heat path { animation: none !important; } }

/* grants scale */
.grants-strip { background: var(--white); padding: clamp(48px, 7vw, 88px) 0; border-block: 1px solid var(--mist); }
.scale { display: grid; gap: 4px; margin: 24px 0 18px; }
@media (min-width: 800px) { .scale { grid-template-columns: 1fr 1fr 1fr; } }
.scale-step { padding: 22px 22px 20px; color: #fff; display: grid; gap: 4px; align-content: start; min-height: 150px; }
.scale-step b { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 780; letter-spacing: -.03em; line-height: 1; }
.scale-step span { font-size: .98rem; max-width: 30ch; }
.s1 { background: linear-gradient(135deg, #1A93B3, var(--glacier)); border-radius: var(--r-m) var(--r-m) 4px 4px; }
.s2 { background: linear-gradient(135deg, #E9A23B, var(--ember-2)); border-radius: 4px; }
.s3 { background: linear-gradient(135deg, var(--ember), #C83E19); border-radius: 4px 4px var(--r-m) var(--r-m); }
@media (min-width: 800px) { .s1 { border-radius: var(--r-m) 4px 4px var(--r-m); } .s3 { border-radius: 4px var(--r-m) var(--r-m) 4px; } }
.grants-foot { color: var(--ink-2); max-width: 70ch; }

/* map */
.band-map { background: var(--night); color: #fff; }
.band-map p { color: #C7D6E3; max-width: 62ch; }
.map-wrap { position: relative; margin-top: 20px; }
.map { height: 420px; border-radius: var(--r-l); overflow: hidden; background: #DCE6EE; }
.map-tall { height: 520px; }
.map-empty { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 500; background: rgba(14,34,51,.86); color: #fff !important; padding: 12px 16px; border-radius: 12px; margin: 0; }
.map-empty .link { color: #fff; }
.leaflet-container { font-family: var(--f); }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--night); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.pin.ok { background: var(--leaf); }
.leaflet-popup-content { font-size: .95rem; line-height: 1.4; }
.leaflet-popup-content a { font-weight: 650; }

/* steps & lists */
.steps { padding: 0; margin: 0 0 24px; list-style: none; counter-reset: st; display: grid; gap: 16px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 40px 1fr; gap: 14px; color: var(--ink-2); }
.steps li::before { content: counter(st); width: 36px; height: 36px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-content: center; font-weight: 760; }
.steps b { color: var(--ink); }
.guide-list { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--mist); }
.guide-list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--mist); text-decoration: none; font-weight: 560; }
.guide-list a:hover span { text-decoration: underline; text-decoration-color: var(--glacier); text-underline-offset: 3px; }
.guide-list small { color: var(--muted); white-space: nowrap; }

.pro-band { background: linear-gradient(110deg, var(--night) 0%, #123A55 100%); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.pro-in { display: grid; gap: 20px; align-items: center; }
.pro-in p { color: #C7D6E3; max-width: 60ch; margin: 0; }
@media (min-width: 900px) { .pro-in { grid-template-columns: 1fr auto; } }

/* page heads, prose */
.page-head { padding: clamp(32px, 6vw, 64px) 0 clamp(20px, 3vw, 32px); }
.page-head-tight { padding-bottom: 8px; }
.crumb { display: inline-block; color: var(--muted); text-decoration: none; font-weight: 560; margin-bottom: 10px; font-size: .95rem; }
.crumb:hover { color: var(--ink); }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose p, .prose li { max-width: 68ch; }
.article .cycle { margin-bottom: 32px; }
.callout { margin: 40px 0; background: var(--night); color: #fff; border-radius: var(--r-l); padding: clamp(22px, 4vw, 36px); }
.callout h2 { margin-top: 0; }
.callout p { color: #C7D6E3; }
.more { margin-bottom: 64px; }
.src { font-size: .9rem; color: var(--muted); margin-top: 24px; }
.faq { border-bottom: 1px solid var(--mist); padding: 14px 0; }
.faq summary { font-weight: 650; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; font-size: .98rem; }
.table caption { text-align: left; font-weight: 650; padding: 0 0 10px; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--mist); vertical-align: top; }
.table thead th { background: var(--paper); font-size: .88rem; color: var(--ink-2); }
.table td:nth-child(2) { font-weight: 760; white-space: nowrap; }
.guides-grid { display: grid; gap: 0; margin-bottom: 72px; border-top: 1px solid var(--mist); }
.guide-row { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--mist); text-decoration: none; }
.guide-row h2 { font-size: 1.35rem; margin: 4px 0 0; }
.guide-row p { margin: 0; color: var(--ink-2); max-width: 70ch; }
.guide-row small { color: var(--muted); }
.guide-row:hover h2 { text-decoration: underline; text-decoration-color: var(--glacier); text-underline-offset: 4px; }
.notice { background: var(--white); border-left: 4px solid var(--ember); padding: 14px 16px; border-radius: 8px; }

/* chips & badges */
.chips, .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-2); justify-self: start; width: fit-content; }
.chip-a2a { background: #E1F3F8; color: #116E86; } .chip-ashp, .chip-gshp { background: #FDE9E1; color: #A63A16; } .chip-solar { background: #FDF2D8; color: #8A5A00; } .chip-battery { background: #E7ECF8; color: #33508F; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; }
.badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.badge-ok { background: var(--leaf-bg); color: #17663F; }
.badge-pending { background: var(--paper); color: var(--muted); border: 1px dashed var(--mist-2); }
.grant-ready { margin: 0; font-weight: 650; color: #17663F; font-size: .92rem; }

/* installers */
.inst { background: var(--white); border-radius: var(--r-m); padding: 16px; display: grid; gap: 10px; box-shadow: var(--shadow); align-content: start; }
.inst-link { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.inst-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: var(--paper); }
.inst-logo-x { display: grid; place-content: center; font-weight: 780; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--glacier), var(--ember)); }
.inst-main { display: grid; }
.inst-name { font-weight: 720; font-size: 1.08rem; line-height: 1.25; }
.inst-link:hover .inst-name { text-decoration: underline; text-decoration-color: var(--glacier); }
.inst-town, .inst-meta { color: var(--muted); font-size: .9rem; margin: 0; }
.inst-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: 40px; }
.finder-bar { display: grid; gap: 12px; align-items: end; background: var(--white); padding: 16px; border-radius: var(--r-m); box-shadow: var(--shadow); margin-bottom: 16px; }
.finder-bar .fld { margin: 0; }
@media (min-width: 800px) { .finder-bar { grid-template-columns: 1.2fr 1fr auto auto; } }
.finder-body { display: grid; gap: 16px; margin-bottom: 64px; }
@media (min-width: 1000px) { .finder-body { grid-template-columns: 1.1fr 1fr; align-items: start; } .finder-body .map { position: sticky; top: 84px; height: calc(100vh - 110px); max-height: 760px; } }
.finder-list { display: grid; gap: 12px; }
.prof-head { background: var(--white); border-bottom: 1px solid var(--mist); }
.prof-in { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.prof-logo { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; }
.prof-in h1 { margin-bottom: 4px; }
.prof-in .badges { margin: 12px 0 8px; }
.prof-body { display: grid; gap: 40px; padding-top: 32px; padding-bottom: 72px; }
@media (min-width: 1000px) { .prof-body { grid-template-columns: 1fr 380px; align-items: start; } .contact-card { position: sticky; top: 88px; } }
.contact-card { background: var(--white); border-radius: var(--r-l); padding: 22px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.35rem; }
.acc-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.acc { display: grid; padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--mist); }
.acc span { color: var(--muted); font-size: .92rem; }
.acc-verified { border-color: #BFE3CD; background: var(--leaf-bg); }
.proj-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.proj { margin: 0; background: var(--white); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow); }
.proj img, .proj-ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: linear-gradient(135deg, var(--mist), var(--paper)); }
.proj figcaption { padding: 10px 12px; display: grid; gap: 2px; font-size: .92rem; }
.proj figcaption span { color: var(--muted); }

.hero-pro { padding: clamp(48px, 8vw, 96px) 0; }
.hero-pro h1 { max-width: 20ch; }

/* footer */
.foot { background: var(--night); color: #C7D6E3; padding: 48px 0 24px; margin-top: 0; }
.foot-in { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .foot-in { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot .brand { color: #fff; }
.foot h2 { font-size: .95rem; color: #fff; margin-bottom: 10px; letter-spacing: 0; }
.foot a:not(.brand) { display: block; text-decoration: none; padding: 4px 0; }
.foot a:hover { color: #fff; }
.foot-brand p { margin-top: 12px; max-width: 40ch; font-size: .95rem; }
.foot-legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #8DA3B8; }

/* plan wizard */
.plan { padding-bottom: 72px; }
.wiz { background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 32px); max-width: 820px; }
.wiz-prog { display: flex; gap: 4px; margin-bottom: 22px; }
.wiz-prog i { flex: 1; height: 6px; border-radius: 3px; background: var(--mist); }
.wiz-prog i.on { background: linear-gradient(90deg, var(--glacier), var(--ember)); }
.wiz h2 { font-size: 1.5rem; }
.wiz-sub { color: var(--muted); margin-top: -6px; }
.opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 10px 0 22px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; min-height: 0; }
.opt span { display: grid; gap: 2px; padding: 14px; border: 1.5px solid var(--mist-2); border-radius: 12px; font-weight: 620; min-height: 64px; align-content: center; transition: border-color .15s, background .15s; }
.opt small { font-weight: 450; color: var(--muted); font-size: .84rem; }
.opt input:checked + span { border-color: var(--ember); background: #FFF5F0; box-shadow: inset 0 0 0 1px var(--ember); }
.opt input:focus-visible + span { outline: 3px solid var(--glacier); outline-offset: 2px; }
.q { margin-bottom: 6px; font-weight: 680; font-size: 1.05rem; }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--paper); border-radius: 999px; padding: 4px; margin: 6px 0 22px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); font: inherit; font-size: 1.4rem; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.stepper output { min-width: 48px; text-align: center; font-weight: 760; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.res-head { display: grid; gap: 14px; margin-bottom: 20px; }
.res-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.res-facts span { background: var(--white); border: 1px solid var(--mist); padding: 6px 12px; border-radius: 999px; font-size: .92rem; }
.res-facts b { font-variant-numeric: tabular-nums; }
.flag { background: #FFF8E6; border: 1px solid #F3DFA8; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; font-size: .96rem; }
.opt-card { background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 26px); display: grid; gap: 12px; margin-bottom: 16px; border-top: 6px solid var(--mist); }
.opt-card.t-a2a { border-top-color: var(--glacier); } .opt-card.t-ashp, .opt-card.t-gshp { border-top-color: var(--ember); } .opt-card.t-solar { border-top-color: #E9A23B; } .opt-card.t-battery { border-top-color: #6B83C7; }
.opt-card h3 { font-size: 1.35rem; margin: 0; }
.oc-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.oc-row div { background: var(--paper); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.oc-row small { color: var(--muted); font-size: .82rem; font-weight: 550; }
.oc-row b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.oc-grant b { color: #17663F; }
.oc-note { color: var(--ink-2); font-size: .94rem; margin: 0; }
.fit { height: 6px; border-radius: 3px; background: var(--mist); overflow: hidden; }
.fit i { display: block; height: 100%; background: linear-gradient(90deg, var(--glacier), var(--ember)); }
.assume { font-size: .85rem; color: var(--muted); }
.pick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin: 16px 0; }
.pick .inst { position: relative; }
.pick-box { display: flex; align-items: center; gap: 8px; font-weight: 650; padding-top: 8px; border-top: 1px solid var(--mist); cursor: pointer; }
.pick-box input { width: 20px; height: 20px; min-height: 0; accent-color: var(--ember); }
.enq-form { background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 26px); max-width: 640px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 24px; }
.share input { max-width: 420px; font-size: .9rem; }

/* app (pro/admin) */
.is-app .foot { display: none; }
.app { padding-top: 28px; padding-bottom: 72px; }
.panel { background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; }
.panel h2 { font-size: 1.3rem; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 18px; border-bottom: 1px solid var(--mist); }
.tabs button { font: inherit; font-weight: 600; background: none; border: 0; padding: 12px 14px; border-bottom: 3px solid transparent; cursor: pointer; color: var(--ink-2); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ember); }
.tabs .count { background: var(--ember); color: #fff; font-size: .75rem; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.grid2 { display: grid; gap: 0 18px; }
@media (min-width: 800px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.status-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.pill { font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--mist); }
.pill-listed, .pill-verified { background: var(--leaf-bg); color: #17663F; }
.pill-pending, .pill-new { background: #FFF1D6; color: #8A5A00; }
.pill-rejected, .pill-suspended, .pill-lost { background: #FDE3DB; color: #A63A16; }
.rows { display: grid; gap: 10px; }
.row { border: 1px solid var(--mist); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.row-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.techs-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.techs-pick label { display: flex; gap: 6px; align-items: center; border: 1.5px solid var(--mist-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 560; font-size: .94rem; }
.techs-pick input { width: 18px; height: 18px; min-height: 0; accent-color: var(--ember); }
.login { max-width: 460px; margin: 6vh auto; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--night); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 100; box-shadow: var(--shadow); font-weight: 560; }
.hidden { display: none !important; }

/* hero 3D on phones: caption below the scene, never over it */
@media (max-width: 640px) {
  .hero-3d { aspect-ratio: auto; height: min(118vw, 480px); }
  .hero-3d canvas { inset: 0 0 72px 0; height: calc(100% - 72px); }
  .hero-poster { inset: 8% 4% 80px; height: calc(92% - 80px); }
  .h3-cap { left: 0; right: 0; bottom: 0; min-height: 64px; display: flex; align-items: center; }
  .h3-ui { left: 6px; right: 6px; top: 6px; }
  .h3-read span { padding: 4px 10px; min-width: 64px; }
  .h3-read b { font-size: 1rem; }
  .seg button { padding: 7px 12px; }
}
.login h1, .app h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
input[type="range"] { accent-color: var(--ember); padding: 0; min-height: 32px; border: 0; background: none; }
@media (max-width: 640px) {
  .cy-lbl { font-size: 23px; } .cy-zone { font-size: 25px; } .cy-temp { font-size: 34px; }
}
.demo-tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; background: #EDE9FE; color: #5B21B6; border: 1px dashed #A78BFA; vertical-align: 2px; }
.inst-demo { box-shadow: none; border: 1.5px dashed var(--mist-2); }
.demo-note { background: #F5F3FF; border: 1px dashed #A78BFA; border-radius: 12px; padding: 10px 12px; font-size: .95rem; max-width: 60ch; }
.pin.demo { background: #fff; border: 3px dashed #7C3AED; }
.btn-on-dark { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn-on-dark:hover { background: rgba(255,255,255,.1); }
.row-actions .btn { margin: 0; }
.hero-pro .row-actions { margin-top: 8px; }
.sep { border: 0; border-top: 1px solid var(--mist); margin: 22px 0 14px; }
.row .fld select { max-width: 260px; }

/* ===== v0.2.0 ===== */
/* map: near-square so the whole of England fits */
.band-map .map { height: auto; aspect-ratio: 1 / 1; max-height: min(86vh, 900px); width: 100%; }
@media (min-width: 900px) { .band-map .map { aspect-ratio: 4 / 3.4; } }

/* stars & ratings */
.stars { display: inline-flex; gap: 1px; vertical-align: -3px; color: #F5A623; }
.st { width: 18px; height: 18px; stroke: #E3961B; stroke-width: 1; }
.stars-lg .st { width: 26px; height: 26px; }
.st-full { fill: #F5A623; } .st-empty { fill: #E6ECF2; stroke: #CBD5DF; } .st-half { fill: url(#sh); }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }
.rating b { font-variant-numeric: tabular-nums; }
.rating small { color: var(--muted); }
.rating-none { color: var(--muted); font-size: .88rem; }

/* certificate icons */
.badge .ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge-ok.badge-mcs { background: #FFF4D6; color: #8A5A00; }
.badge-ok.badge-fgas { background: #E1F3F8; color: #116E86; }
.badge-ok.badge-trustmark { background: #E3F4EA; color: #17663F; }
.badge-ok.badge-recc, .badge-ok.badge-hies { background: #ECEBFB; color: #3F3A9E; }
.badge-ok.badge-niceic, .badge-ok.badge-napit { background: #FFF0E0; color: #9A4A00; }
.badge-ok.badge-gassafe { background: #FDE9E1; color: #A63A16; }
.badge-ok.badge-insurance { background: #EEF2F6; color: #44566A; }
.acc { grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; }
.acc span:not(.acc-ic) { grid-column: 2; }
.acc-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: grid; place-content: center; }
.acc-ic .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.acc-ic.badge-mcs { background: #FFF4D6; color: #8A5A00; } .acc-ic.badge-fgas { background: #E1F3F8; color: #116E86; } .acc-ic.badge-trustmark { background: #E3F4EA; color: #17663F; }
.acc-ic.badge-recc, .acc-ic.badge-hies { background: #ECEBFB; color: #3F3A9E; } .acc-ic.badge-niceic, .acc-ic.badge-napit { background: #FFF0E0; color: #9A4A00; } .acc-ic.badge-gassafe { background: #FDE9E1; color: #A63A16; } .acc-ic.badge-insurance { background: #EEF2F6; color: #44566A; }

/* survey offer */
.survey-line { margin: 0; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.survey-line.free { color: #17663F; }
.survey-offer { background: var(--paper); border-radius: 12px; padding: 10px 12px; font-size: .95rem; }
.survey-offer.free { background: var(--leaf-bg); }
.seg-wide { display: flex; width: 100%; margin-bottom: 14px; }
.seg-wide label { flex: 1; position: relative; }
.seg-wide input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; min-height: 0; }
.seg-wide span { display: block; text-align: center; padding: 9px 10px; border-radius: 999px; font-weight: 620; font-size: .94rem; color: var(--ink-2); }
.seg-wide input:checked + span { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg-wide input:focus-visible + span { outline: 3px solid var(--glacier); }
.pref { border: 0; padding: 0; margin: 0 0 8px; }
.pref legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.pick-box.sent { color: #17663F; font-weight: 650; }

/* dialog */
dialog.modal { border: 0; border-radius: var(--r-l); padding: clamp(16px, 3vw, 26px); width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 80px -20px rgba(14,34,51,.5); color: var(--ink); }
dialog.modal::backdrop { background: rgba(14,34,51,.55); }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.modal-head h2 { font-size: 1.35rem; margin: 0; }

/* EPC */
.epc-note { background: #EEF8FB; border: 1px solid #CFEAF2; border-radius: 12px; padding: 10px 12px; font-size: .95rem; }
.epc-chip { display: inline-block; font-weight: 800; font-size: .85rem; padding: 2px 8px; border-radius: 6px; color: #fff; white-space: nowrap; }
.b-A { background: #008054; } .b-B { background: #19b459; } .b-C { background: #8dce46; color: #13202E; } .b-D { background: #ffd500; color: #13202E; } .b-E { background: #fcaa65; color: #13202E; } .b-F { background: #ef8023; } .b-G { background: #e9153b; }
.epc { background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow); padding: clamp(16px, 3vw, 26px); margin-bottom: 22px; }
.epc-head h2 { margin-bottom: 4px; }
.epc-ladder { display: grid; gap: 5px; margin-top: 14px; }
.epc-row { display: grid; grid-template-columns: minmax(130px, 32%) 1fr; gap: 10px; align-items: center; min-height: 38px; }
.epc-bar { display: flex; justify-content: space-between; align-items: center; height: 36px; padding: 0 12px; border-radius: 4px 18px 18px 4px; color: #fff; font-weight: 800; }
.epc-bar small { font-weight: 600; font-size: .78rem; opacity: .9; }
.epc-row:nth-child(1) .epc-bar { width: 46%; } .epc-row:nth-child(2) .epc-bar { width: 55%; } .epc-row:nth-child(3) .epc-bar { width: 64%; } .epc-row:nth-child(4) .epc-bar { width: 73%; } .epc-row:nth-child(5) .epc-bar { width: 82%; } .epc-row:nth-child(6) .epc-bar { width: 91%; } .epc-row:nth-child(7) .epc-bar { width: 100%; }
.epc-marks { display: flex; flex-wrap: wrap; gap: 6px; }
.epc-mark { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; background: var(--paper); border: 1px solid var(--mist); border-radius: 999px; padding: 3px 10px 3px 4px; }
.epc-mark b { background: var(--white); border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.epc-mark.now { background: var(--night); color: #fff; border-color: var(--night); } .epc-mark.now b { color: var(--night); }
.epc-mark.all { border-color: #19b459; background: #E3F4EA; }
.epc-mark.k-ashp, .epc-mark.k-gshp { border-color: #F6C3B0; } .epc-mark.k-a2a { border-color: #A9DCEA; } .epc-mark.k-solar { border-color: #F2D48C; }
.res-h { margin-top: 10px; }
.addr-list { display: grid; gap: 8px; max-height: 420px; overflow: auto; margin: 10px 0 18px; padding-right: 4px; }
.opt.addr span { min-height: 0; }

/* installer CRM */
.fld-inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.fld-inline select, .fld-inline input { min-height: 38px; padding: 6px 10px; width: auto; }
.grow { flex: 1 1 220px; }
.num { text-align: right; font-variant-numeric: tabular-nums; max-width: 110px; }
.two-col { display: grid; gap: 18px; }
@media (min-width: 1100px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.prod { grid-template-columns: 52px 1fr auto; align-items: center; display: grid; column-gap: 12px; padding: 10px 12px; }
.prod .row-actions { flex-wrap: nowrap; }
@media (max-width: 560px) { .prod { grid-template-columns: 44px 1fr; } .prod .row-actions { grid-column: 1 / -1; justify-content: flex-end; } }
.prod b { display: block; line-height: 1.3; }
.prod .meta { font-size: .85rem; }
.p-photo { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--paper); }
.p-ph { display: block; background: linear-gradient(135deg, var(--mist), var(--paper)); }
.p-ph.cat-indoor, .p-ph.cat-outdoor { background: linear-gradient(135deg, #CDEDF5, #EEF8FB); } .p-ph.cat-heatpump, .p-ph.cat-gshp, .p-ph.cat-cylinder { background: linear-gradient(135deg, #FBD5C6, #FFF4EE); } .p-ph.cat-solar, .p-ph.cat-inverter, .p-ph.cat-battery { background: linear-gradient(135deg, #F8E3AE, #FDF6E2); }
.add-prod { margin-top: 14px; }
.add-prod summary { list-style: none; cursor: pointer; display: inline-flex; }
.add-prod summary::-webkit-details-marker { display: none; }
.add-prod form { margin-top: 14px; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
.qlines input, .qlines select { min-height: 38px; padding: 6px 8px; }
.qlines td { padding: 6px 6px; vertical-align: middle; }
.qlines td:first-child { min-width: 220px; }
.q-totals { display: grid; grid-template-columns: max-content max-content; justify-content: end; gap: 4px 24px; font-variant-numeric: tabular-nums; margin: 12px 0; }
.q-totals dd { margin: 0; text-align: right; }
.q-totals .tot { font-weight: 800; font-size: 1.15rem; }
.raw { white-space: pre-wrap; word-break: break-all; background: var(--paper); padding: 12px; border-radius: 10px; font-size: .8rem; max-height: 520px; overflow: auto; }

/* reviews */
.reviews { list-style: none; padding: 0; display: grid; gap: 12px; }
.review { background: var(--white); border: 1px solid var(--mist); border-radius: 14px; padding: 14px 16px; }
.review p { margin: 8px 0 0; }
.review .reply { background: var(--paper); border-radius: 10px; padding: 8px 12px; font-size: .95rem; }
.star-pick { border: 0; padding: 0; display: flex; gap: 6px; margin: 0 0 16px; }
.star-pick legend { font-weight: 650; margin-bottom: 8px; }
.star-pick label { position: relative; cursor: pointer; }
.star-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; min-height: 0; cursor: pointer; }
.star-pick svg { width: 44px; height: 44px; fill: #E6ECF2; stroke: #CBD5DF; transition: fill .1s; }
.star-pick label.on svg { fill: #F5A623; stroke: #E3961B; }
.star-pick input:focus-visible + span svg { outline: 3px solid var(--glacier); border-radius: 6px; }

/* customer quote */
.quote-doc h1 { font-size: 1.6rem; margin: 6px 0 2px; }
.qd-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-bottom: 2px solid var(--night); padding-bottom: 14px; margin-bottom: 16px; }
.qd-num { display: grid; gap: 2px; text-align: right; justify-items: end; font-size: .95rem; }
.qtable td:nth-child(n+2), .qtable th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.qtable tfoot th { text-align: right; font-weight: 600; }
.qtable .qt-total th, .qtable .qt-total td { font-size: 1.15rem; font-weight: 800; border-top: 2px solid var(--night); }
.qd-notes { white-space: pre-line; }
.qd-actions { margin: 18px 0; }
@media print {
  .top, .foot, .no-print, .skip { display: none !important; }
  body { background: #fff; }
  .panel { box-shadow: none; padding: 0; }
  .app { padding: 0; }
}

.leaflet-container { z-index: 1; }
.prod .num { max-width: 92px; }
