@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ink: #062146;
  --text: #2E3B50;
  --muted: #55627A;
  --sun: #FA6706;
  --sun-hover: #FF7A1F;
  --on-sun: #062146;
  --bg: #F3F5F9;
  --bg-alt: #E6EBF2;
  --surface: #FAFBFD;
  --line: #D3DAE6;
  --field-line: #75839A;
  --chip-bg: #DCE3EE;
  --scrim: 92%;
  --ok: #1F6F43;
  --err: #B3261E;
  --footer-bg: #031428;
  --footer-text: #EAF0F8;
  --footer-muted: #A9BAD0;
  --footer-chip: #0B2748;
  --footer-chip-line: #8FA3BE;
  --band: #062146;
  --on-band: #EAF0F8;
  --band-muted: #AFC0D6;
  --band-line: rgb(234 240 248 / 0.22);
  --band-chip: #123259;
  --band-ok: #7FDDA6;
  --band-err: #FFB4AD;

  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 150ms;
  --dur-hover: 150ms;
  --dur-expand-open: 250ms;
  --dur-expand-close: 190ms;

  --gutter: 16px;
  --section-pad: 64px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --h1: clamp(40px, 11vw, 48px);
  --h2: 26px;
  --lead: 18px;
  --body: 16px;
  --header-h: 68px;
  --r-ctl: 10px;
  --r-card: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EAF0F8;
    --text: #C3CEDD;
    --muted: #93A3BA;
    --bg: #050F20;
    --bg-alt: #08172E;
    --surface: #0B1F3A;
    --line: #1A3254;
    --field-line: #4F6A8F;
    --chip-bg: #12294A;
    --footer-bg: #030A16;
    --band: #0B1F3A;
    --band-chip: #14305A;
    --scrim: 94%;
    --sun-hover: #FF8A3D;
    --ok: #5FCB8E;
    --err: #FF8F86;
  }
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 960px) {
  :root { --gutter: 32px; --section-pad: 96px; --h1: clamp(56px, 5.6vw, 72px); --h2: 34px; --lead: 20px; --body: 17px; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; accent-color: var(--ink); caret-color: var(--ink);
  scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: 96px;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--sun) 20%, transparent);
}
::selection { background: color-mix(in srgb, var(--sun) 45%, var(--bg)); color: var(--ink); }
a, button, summary, label, input, select { touch-action: manipulation; }
body { overflow-wrap: break-word; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 var(--body)/1.6 var(--font);
}
h1, h2, h3 { color: var(--ink); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: var(--h1); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: var(--h2); line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.site-footer :focus-visible { outline-color: var(--footer-text); }

.wrap { max-width: 1140px; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.tbc {
  display: inline-block; font-style: normal; font-size: 0.8em; line-height: 1.4; padding: 1px 8px; vertical-align: 0.05em;
  border: 1px dashed var(--muted); border-radius: 6px; background: var(--chip-bg); color: var(--text); font-weight: 500;
}

.tbc[hidden] { display: none; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 30;
  background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: var(--r-ctl); font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* Card language: small, wide-tracked uppercase labels (source text stays in sentence case). */
.kicker { font-size: 13px; line-height: 1.4; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.rule { display: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.logo { text-decoration: none; margin-right: auto; display: inline-flex; align-items: center; min-height: 48px; }
.logo img { height: 36px; width: auto; }
.header-phone { display: none; font-weight: 700; color: var(--ink); white-space: nowrap; text-decoration: none; }
.nav-desktop { display: none; }
.nav-desktop a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; text-decoration: none; font-weight: 700; }

.menu summary {
  list-style: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--field-line); border-radius: var(--r-ctl); font-weight: 700; color: var(--ink); cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--bg);
  border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; display: grid;
}
.menu nav a { display: flex; align-items: center; min-height: 48px; font-weight: 700; text-decoration: none; }
@media (min-width: 960px) {
  .header-row { gap: 24px; }
  .menu { display: none; }
  .nav-desktop { display: flex; gap: 8px; }
  .logo img { height: 40px; }
}
@media (min-width: 1100px) { .header-phone { display: inline; } }

/* Hover (pointer devices): nav/logo/menu gain an underline or fill, underlined links thicken; tokens only. */
@media (hover: hover) and (pointer: fine) {
  .nav-desktop a:hover, .menu nav a:hover, .logo:hover { text-decoration: underline; }
  .menu summary { transition: background-color var(--dur-hover) var(--ease-out); }
  .menu summary:hover { background: var(--bg-alt); }
  /* ink links */
  .text-link:hover, .consent a:hover, .site-footer a:hover, .prose a:hover, .ask a:hover, .contact a:hover, .nojs a:hover, .header-phone:hover { text-decoration-thickness: 3px; }
}

/* Buttons */
.btn {
  display: inline-grid; place-items: center; min-height: 48px; padding: 0 24px;
  background: var(--sun); color: var(--on-sun); border: 0; border-radius: var(--r-ctl);
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.btn:active { transform: scale(0.96); }
.btn[aria-disabled="true"] { cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .btn:not([aria-disabled="true"]):hover { background: var(--sun-hover); }
}
.text-link { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: underline; font-weight: 700; }

/* Header CTA: the only sun-filled primary above the fold; the sticky bottom bar covers phones. */
.btn-header { display: none; }
@media (min-width: 640px) { .btn-header { display: inline-grid; } }

/* Hero: below 640px the photo is the hero with text on it; 640 to 959 a band above the text; from 960px a split, text left on the page
   colour and the photo on the right fading into it, so no copy ever sits on the picture. */
.hero { position: relative; overflow: hidden; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% center; background: var(--bg-alt); }
.hero-inner { padding-block: 32px 40px; }
@media (max-width: 639px) {
  .hero { --hero-h: clamp(440px, 72svh, 600px); }
  .hero-media { position: absolute; inset: 0 0 auto; height: var(--hero-h); overflow: hidden; }
  .hero-media picture { display: block; height: 100%; }
  .hero-media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 10% center; }
  .hero-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, rgb(3 10 22 / 0) 30%, rgb(3 10 22 / 0.8) 64%, rgb(3 10 22 / 0.92) 100%);
  }
  .hero-inner { position: relative; padding-block: 0 40px; }
  .hero-head { min-height: var(--hero-h); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 24px; }
  .hero-head .kicker { color: #C5D2E4; margin-bottom: 12px; }
  .hero-head h1 { color: #F2F5FA; font-size: 40px; }
  .hero-head .lead { color: #D9E2EE; margin-top: 12px; font-size: 17px; }
  .hero .bill-label { margin-top: 24px; }
}
.hero-head .kicker { margin-bottom: 16px; }
.lead { font-size: var(--lead); line-height: 1.5; margin-top: 16px; }
.bill-label { margin-top: 32px; font-weight: 700; color: var(--ink); }
.bill-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bill-picker a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 18px; text-align: center;
  background: var(--surface); color: var(--ink); border: 1px solid var(--field-line); border-radius: 999px; /* pill: bill chips only */
  font-weight: 700; text-decoration: none; line-height: 1.2;
  transition: background-color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.bill-picker a:active { transform: scale(0.96); }
.bill-more { margin-top: 8px; }
@media (hover: hover) and (pointer: fine) {
  .bill-picker a:hover { background: var(--bg-alt); border-color: var(--ink); }
}
@media (max-width: 639px) { .bill-picker a { flex: 1 1 calc(50% - 4px); padding-inline: 10px; font-size: 15px; } }
.media { margin: 0; }
.media img { width: 100%; border-radius: var(--r-card); object-fit: cover; background: var(--bg-alt); }
@media (min-width: 960px) {
  .hero { min-height: min(88svh, 760px); display: grid; align-items: center; }
  .hero-media { position: absolute; inset: 0 0 0 auto; width: 54%; }
  .hero-media picture { display: block; height: 100%; }
  .hero-media img {
    height: 100%; aspect-ratio: auto; object-position: left center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%); mask-image: linear-gradient(to right, transparent 0, #000 16%);
  }
  .hero-inner { position: relative; width: 100%; padding-block: 64px; }
  .hero-copy { position: relative; max-width: 480px; }
  .hero-copy h1 { font-size: clamp(44px, 4.2vw, 56px); }
  .hero .lead { max-width: 480px; }
  /* The card's thin orange divider, running the height of the copy. */
  .rule { display: block; position: absolute; left: -20px; top: 4px; bottom: 4px; width: 2px; background: var(--sun); }
}

/* Proof band: four figures the client's flyer supports, on the navy band colour (orange only for the figures). */
.proof { background: var(--band); padding-block: 40px 28px; }
.proof-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.proof-list li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 4px; padding: 20px 16px; min-width: 0; border-bottom: 1px solid var(--band-line); }
.proof-list li:nth-child(odd) { padding-left: 0; }
.proof-list li:nth-child(even) { padding-right: 0; border-left: 2px solid var(--sun); }
.proof-list li:nth-child(n+3) { border-bottom: 0; }
.proof-fig { display: block; align-self: end; font-size: clamp(30px, 8.6vw, 34px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--sun); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.proof-fig abbr { text-decoration: none; }
.proof-lab { display: block; margin-top: 4px; font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--sun); }
.proof-sup { display: block; font-size: 14px; line-height: 1.5; color: var(--band-muted); }
.proof-facts { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--band-line); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 0; font-size: 14px; font-weight: 700; color: var(--on-band); }
.proof-facts span + span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 14px; border-radius: 50%; background: var(--sun); vertical-align: middle; }
@media (max-width: 639px) { .proof-facts { flex-direction: column; } .proof-facts span + span::before { display: none; } }
@media (min-width: 960px) {
  .proof { padding-block: 56px 32px; }
  .proof-list { grid-template-columns: repeat(4, 1fr); }
  .proof-list li { padding: 8px 28px; border-bottom: 0; }
  .proof-list li:nth-child(odd) { padding-left: 28px; }
  .proof-list li:nth-child(even) { padding-right: 28px; }
  .proof-list li:first-child { padding-left: 0; }
  .proof-list li:last-child { padding-right: 0; }
  .proof-list li + li { border-left: 2px solid var(--sun); }
  .proof-fig { font-size: 44px; }
}
.ic { width: 22px; height: 22px; flex: none; color: var(--ink); }

/* Sections */
.section { padding-block: var(--section-pad); scroll-margin-top: calc(var(--header-h) + 16px); }
.alt { background: var(--bg-alt); }
/* Dark bands (How it works, Get a free quote): full-bleed, straight edges, the ST monogram as a faint watermark (as on the
   navy card). .on-band re-scopes the tokens, so every rule that uses --ink/--text/--muted/--chip-bg gets band colours; the form
   card sits outside .on-band and keeps the normal tokens. */
.band { position: relative; isolation: isolate; background: var(--band); overflow: hidden; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.08;
  background: url("/images/mark-watermark.png") right -96px center / 520px auto no-repeat;
}
@media (max-width: 639px) { .band::before { background-size: 340px auto; background-position: right -110px top 24px; } }
.on-band {
  --ink: var(--on-band); --text: var(--on-band); --muted: var(--band-muted); --line: var(--band-line);
  --field-line: var(--band-line); --chip-bg: var(--band-chip); --ok: var(--band-ok); --err: var(--band-err);
  color: var(--text);
}
.on-band :focus-visible { outline-color: var(--sun); }
.on-band ::selection { background: var(--on-band); color: var(--band); }
#top { scroll-margin-top: var(--header-h); }
.field { scroll-margin-top: calc(var(--header-h) + 16px); scroll-margin-bottom: 96px; }
.section h2 { margin-bottom: 32px; }
.split { display: grid; gap: 32px; }
.split h2 { margin-bottom: 24px; }
.split h2 + .lead { margin-top: -8px; }
.points > * + * { border-top: 1px solid var(--line); }

/* Our services: one featured solar block, then four editorial blocks on a ledger rule (not cards). Items are a definition list. */
.offer-lead { margin: 8px 0 0; font-size: 1.125rem; color: var(--muted); }
.svc-feature { margin-top: 40px; display: grid; gap: 28px; }
.svc-feature .media img { aspect-ratio: 4 / 3; }
.svc-desc { margin: 12px 0 0; max-width: 62ch; }
.svc-items { margin: 20px 0 28px; display: grid; }
.svc-items > div { padding: 14px 0; border-top: 1px solid var(--line); }
.svc-items > div:last-child { border-bottom: 1px solid var(--line); }
.svc-items dt { font-weight: 700; color: var(--ink); }
.svc-items dd { margin: 2px 0 0; max-width: 62ch; }
.svc-grid { margin-top: 64px; display: grid; gap: 56px; }
.svc { display: flex; flex-direction: column; align-items: flex-start; border-top: 2px solid var(--ink); padding-top: 24px; }
.svc.svc-feature { display: grid; border-top: 0; padding-top: 0; }
.svc-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.svc-top .kicker { color: var(--muted); }
.svc-top .kicker::after { content: ""; display: block; width: 36px; height: 4px; margin-top: 10px; background: var(--sun); }
.svc-ic { width: 32px; height: 32px; color: var(--ink); }
.svc > h3 { margin-top: 16px; }
.svc .btn-line { margin-top: auto; }
.svc-body .kicker::after { content: ""; display: block; width: 36px; height: 4px; margin-top: 10px; background: var(--sun); }
.svc-body > h3 { margin-top: 16px; }
.btn-line { background: transparent; color: var(--ink); border: 2px solid var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .btn-line:not([aria-disabled="true"]):hover { background: var(--ink); color: var(--bg); } }
.svc-more { width: 100%; margin: 20px 0 24px; }
.svc-more > summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; }
.svc-more > summary::-webkit-details-marker { display: none; }
.svc-more > summary::after { content: "+"; font-size: 1.5rem; line-height: 1; }
.svc-more[open] > summary::after { content: "\2212"; }
.svc-grid .svc-items { margin-top: 4px; margin-bottom: 0; }
.svc-grid .svc > .svc-desc { flex: none; }
@media (min-width: 960px) {
  .svc.svc-feature { grid-template-columns: 5fr 7fr; gap: 56px; align-items: stretch; }
  .svc-feature .media { position: relative; min-height: 420px; }
  .svc-feature .media img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .svc-feature .svc-items { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .svc-feature .svc-items > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 64px 64px; align-items: stretch; }
}
/* From 960px the included items always show: the details content is forced visible and the toggle is hidden.
   Where ::details-content is not supported the toggle stays, so nothing is ever hidden without a way to open it. */
@supports selector(::details-content) {
  @media (min-width: 960px) {
    .svc-more::details-content { content-visibility: visible; display: block; }
    .svc-more > summary { display: none; }
  }
}

/* Day and night: a street scene (inline SVG) driven by three radios (:has), no JS. Colours are scene tokens.
   Day is the default; Night and Brownout both mean "dark" (:has(#tod-day:not(:checked))). Orange is only ever energy. */
.dn {
  --sc-line: #062146; --sc-wire: #062146;
  --sky-d0: #9DBFE6; --sky-d1: #E4EEF9; --sky-n0: #040C1E; --sky-n1: #17315A;
  --hill1: #B3C8E1; --hill2: #9CB5D4; --far: #8FA9CB; --ground: #C6D4E6; --pave: #DCE4EF; --road: #A9B9CE; --kerb: #062146; --dash: #E4EBF4;
  --wall: #FFFFFF; --wall-side: #D6DFEC; --roof: #5C7190; --wall-n: #ECF0F7; --side-n: #CFD9E8; --roof-n: #8799B3;
  --panel: #0F2E5C; --panel-cell: #5F8FCC; --sheen: #FFFFFF; --sheen-o: 0.16;
  --glass: #A9C7E6; --door: #1D4A86; --door-n: #6C86AA; --meter: #E6EBF2; --bat: #0F2E5C; --inv: #E1E8F2; --cell-off: #5E7FAE;
  --cloud: #F7FAFD; --wood: #8B7A63; --moon: #E8EEF6; --tree: #7C97B6; --trunk: #5A6E8C; --bush: #7C97B6; --shade: #062146;
  --lit: #FFC25A; --glow-o: 0.55;
  --flow: #FA6706; --case: #062146; --brk-bg: #FFFFFF; --brk: #062146;
  --lab-bg: #FFFFFF; --lab-ink: #062146; --lab-line: #062146;
  --dur-sky: 300ms;
}
@media (prefers-color-scheme: dark) {
  .dn {
    /* Day in the dark scheme: a mid daylight blue, not the page's night navy and not a glaring white panel. */
    --sc-line: #0E2A52; --sc-wire: #0E2A52; --sky-d0: #4F86C6; --sky-d1: #A5C8EC;
    --hill1: #7CA0CC; --hill2: #6A91C0; --far: #5C84B6; --ground: #7F9EC4; --pave: #A9BFDB; --road: #6C86A8; --kerb: #0E2A52; --dash: #C5D4E8;
    --wall: #EDF2F9; --wall-side: #C2D0E4; --roof: #4E6688; --wall-n: #D3DDEC; --side-n: #AEBED6; --roof-n: #7D91B0;
    --tree: #6C92BC; --trunk: #4F6C92; --bush: #5B84B2; --cloud: #F4F7FB; --wood: #8B7A63; --shade: #062146;
    --lab-bg: #0A1B34; --lab-ink: #EAF0F8; --lab-line: #8FA8C8; --brk-bg: #0A1B34; --brk: #E8EEF6;
  }
}
/* Night and Brownout (shared dark palette; light and dark schemes agree). */
.dn:has(#tod-day:not(:checked)) {
  --sc-line: #7F9AC0; --sc-wire: #A9BDD6; --hill1: #14294D; --hill2: #0F2142; --far: #0B1A36; --ground: #0F2342; --pave: #17305A; --road: #0A1830; --kerb: #6F8DB8; --dash: #2B4670;
  --wall: #34588C; --wall-side: #24426E; --roof: #46689A; --wall-n: #1E3A66; --side-n: #162F54; --roof-n: #2A4570;
  --panel: #0A2447; --panel-cell: #5F8FCC; --sheen-o: 0.07; --glass: #0A1830; --door: #5A8AC4; --door-n: #2E4C78; --meter: #C9D6E6; --bat: #0A2447; --inv: #B8C8DC;
  --cell-off: #5E7FAE; --case: #030B1C; --wood: #6B5D4A; --tree: #1B3560; --trunk: #34507C; --bush: #1B3560; --shade: #000;
  --brk-bg: #0A1B34; --brk: #FFFFFF;
  --lab-bg: #0A1B34; --lab-ink: #EAF0F8; --lab-line: #8FA8C8;
}
.dn:has(#tod-brownout:checked) { --wall-n: #172F55; --side-n: #11264A; --roof-n: #22395F; --door-n: #22395F; }
.dn-split { align-items: center; }
@media (min-width: 960px) { .dn-split { grid-template-columns: 3fr 2fr; gap: 56px; } }
.dn h2 { margin-bottom: 32px; }
.scene { display: block; width: 100%; height: auto; border-radius: var(--r-card); }
@media (max-width: 639px) {
  .scene { aspect-ratio: 13 / 10; }
  .scene .world { transform: translateX(-136px); }
  .scene .lab-grid { display: none; }
}
.scene .o { stroke: var(--sc-line); stroke-width: 2; stroke-linejoin: round; }
.scene .d { stroke: var(--sc-line); stroke-width: 1.5; stroke-linecap: round; fill: none; }
.scene .eave, .scene .ridge { stroke: var(--sc-line); stroke-width: 4; fill: none; stroke-linecap: round; }
.scene .ridge { stroke-width: 3; }
.scene .s-rib { stroke: var(--sc-line); stroke-width: 1; opacity: 0.4; fill: none; }
.gs-d0 { stop-color: var(--sky-d0); } .gs-d1 { stop-color: var(--sky-d1); }
.gs-n0 { stop-color: var(--sky-n0); } .gs-n1 { stop-color: var(--sky-n1); }
.gl0 { stop-color: var(--lit); stop-opacity: 0.7; } .gl1 { stop-color: var(--lit); stop-opacity: 0; }
.s-sky-day { fill: url(#g-sky-d); }
.night-sky { fill: url(#g-sky-n); }
.s-hill1 { fill: var(--hill1); } .s-hill2 { fill: var(--hill2); } .s-far { fill: var(--far); }
.s-ground { fill: var(--ground); } .s-pave { fill: var(--pave); } .s-road { fill: var(--road); }
.s-kerb { stroke: var(--kerb); opacity: 0.5; }
.s-dash { stroke: var(--dash); stroke-width: 4; stroke-dasharray: 28 22; fill: none; }
.s-sun { fill: var(--sun); stroke: var(--case); stroke-width: 3; }
.s-ray { stroke: var(--sun); stroke-width: 4; stroke-linecap: round; fill: none; }
.s-cloud { fill: var(--cloud); }
.s-moon, .s-star { fill: var(--moon); }
.s-wood { fill: var(--wood); }
.s-trunk { stroke: var(--trunk); stroke-width: 6; stroke-linecap: round; fill: none; }
.s-frond path { stroke: var(--tree); stroke-width: 5; stroke-linecap: round; fill: none; }
.s-nut { fill: var(--trunk); }
.s-bush { fill: var(--bush); }
.s-fence { opacity: 0.75; }
.s-wall { fill: var(--wall); } .s-side { fill: var(--wall-side); } .s-roof { fill: var(--roof); }
.s-wall-n { fill: var(--wall-n); } .s-side-n { fill: var(--side-n); } .s-roof-n { fill: var(--roof-n); }
.s-shade { fill: var(--shade); opacity: 0.12; }
.s-door { fill: var(--door); } .s-door-n { fill: var(--door-n); }
.s-knob { fill: var(--sun); }
.s-win { fill: var(--glass); }
.lit { fill: var(--lit); opacity: 0; }
.s-sill { fill: var(--wall); }
.s-meter { fill: var(--meter); } .s-dial { fill: var(--wall); }
.s-inv { fill: var(--inv); }
.s-led { fill: var(--sun); }
.s-panels { fill: var(--panel); stroke-width: 1.5; }
.s-cells { stroke: var(--panel-cell); stroke-width: 1; fill: none; }
.s-sheen { fill: var(--sheen); opacity: var(--sheen-o); }
.s-bat, .s-bat-cap { fill: var(--bat); }
.cell { fill: var(--sun); }
.wire-c { fill: none; stroke: var(--sc-line); stroke-width: 2; stroke-linecap: round; }
.s-wire-h, .s-ins { fill: var(--sc-wire); }
.s-arm { stroke: var(--sc-wire); }
.s-lamp { fill: var(--sc-wire); }
.wire { fill: none; stroke: var(--sc-wire); stroke-width: 2; stroke-linecap: round; opacity: 0.85; }
.wire-stub { opacity: 0; }
.brk { opacity: 0; }
.brk-bg { fill: var(--brk-bg); stroke: var(--brk); stroke-width: 3; }
.brk-x { stroke: var(--brk); stroke-width: 3.5; stroke-linecap: round; fill: none; }
.glow-h, .spill-h { opacity: 0; }
.glow-h { fill: url(#g-glow); } .spill-h { fill: url(#g-spill); }
.lamp-on { opacity: 0; fill: var(--lit); }
.lamp-cone { fill: url(#g-spill); } .lamp-halo { fill: url(#g-glow); }
.fcase { fill: none; stroke: var(--case); stroke-width: 11; stroke-linecap: round; opacity: 0; }
.flow { fill: none; stroke: var(--flow); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 14 12; opacity: 0; }
.fhead { fill: var(--flow); stroke: var(--case); stroke-width: 4; paint-order: stroke; stroke-linejoin: round; opacity: 0; }
.fhead.f-all, .flow.f-all, .fcase.f-all { opacity: 1; }
.hn-ring { fill: var(--case); stroke: var(--flow); stroke-width: 3; }
.hn-glyph { fill: var(--flow); stroke: var(--flow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lab-bg { fill: var(--lab-bg); stroke: var(--lab-line); stroke-width: 1.5; }
.lab-ln { stroke: var(--lab-line); stroke-width: 1.5; stroke-linecap: round; fill: none; }
.lab-t { fill: var(--lab-ink); font-size: 24px; font-weight: 700; font-family: inherit; }
.wflow { fill: none; stroke: var(--flow); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 8 12; opacity: 0; }
.flow.f-day, .fhead.f-day, .fcase.f-day { opacity: 1; }
.lab-grid .lab-bg { transition: stroke var(--dur-sky) var(--ease-in-out); }
.night-sky, .night-only { opacity: 0; }
/* Night and Brownout */
.dn:has(#tod-day:not(:checked)) :is(.flow, .fhead, .fcase).f-day { opacity: 0; }
.dn:has(#tod-day:not(:checked)) :is(.flow, .fhead, .fcase).f-dark,
.dn:has(#tod-day:not(:checked)) .night-sky, .dn:has(#tod-day:not(:checked)) .night-only,
.dn:has(#tod-day:not(:checked)) .glow-h, .dn:has(#tod-day:not(:checked)) .spill-h { opacity: 1; }
.dn:has(#tod-day:not(:checked)) .day-only { opacity: 0; }
.dn:has(#tod-night:checked) .lit, .dn:has(#tod-night:checked) .lamp-on, .dn:has(#tod-night:checked) .wflow { opacity: 1; }
.dn:has(#tod-brownout:checked) .lit-h { opacity: 1; }
/* Grid switch on (Day or Night): the grid tops up the home, drawn pole to meter to home, solar or battery flows keep going. */
.dn:has(#tod-day:checked):has(#grid-day:checked) :is(.flow, .fhead, .fcase).f-gw,
.dn:has(#tod-night:checked):has(#grid-night:checked) :is(.flow, .fhead, .fcase).f-gw { opacity: 1; }
.dn:has(#tod-day:checked):has(#grid-day:checked) .lab-grid .lab-bg,
.dn:has(#tod-night:checked):has(#grid-night:checked) .lab-grid .lab-bg { stroke: var(--flow); stroke-width: 3; }
/* Battery charge: Day full, Night 3 of 4, Brownout 2 of 4. */
.dn:has(#tod-night:checked) .cell.c4, .dn:has(#tod-brownout:checked) .cell.c4,
.dn:has(#tod-brownout:checked) .cell.c3 { fill: var(--cell-off); }
/* Brownout: the service wire is cut at the home and dimmed, with a clear break mark. */
.dn:has(#tod-brownout:checked) .wire { opacity: 0.3; }
.dn:has(#tod-brownout:checked) .wire-ok { opacity: 0; }
.dn:has(#tod-brownout:checked) .wire-stub { opacity: 0.55; }
.dn:has(#tod-brownout:checked) .brk { opacity: 1; }
.dn:has(#tod-brownout:checked) .pole { opacity: 0.6; }
.scene :is(.day-only, .night-sky, .night-only, .lit, .lamp-on, .glow-h, .spill-h, .flow, .fhead, .fcase, .wflow, .wire, .brk, .pole) { transition: opacity var(--dur-sky) var(--ease-in-out); }
.scene :is(.s-wall, .s-side, .s-roof, .s-wall-n, .s-side-n, .s-roof-n, .s-door, .s-door-n, .s-win, .s-sill, .s-ground, .s-pave, .s-road, .s-hill1, .s-hill2, .s-far, .s-tree, .s-bush, .s-panels, .cell, .s-bat, .s-inv, .s-meter, .s-dial, .s-wood, .s-trunk) { transition: fill var(--dur-sky) var(--ease-in-out), stroke var(--dur-sky) var(--ease-in-out); }
.scene :is(.o, .d, .eave, .ridge, .wire-c, .s-wire-h, .s-ins, .s-lamp, .s-arm, .wire) { transition: stroke var(--dur-sky) var(--ease-in-out), fill var(--dur-sky) var(--ease-in-out), opacity var(--dur-sky) var(--ease-in-out); }
@keyframes flow { to { stroke-dashoffset: -26; } }
@keyframes wflow { to { stroke-dashoffset: -20; } }
@media (prefers-reduced-motion: no-preference) {
  .flow.f-day, .flow.f-all { animation: flow 1s linear infinite; }
  .dn:has(#tod-day:not(:checked)) .flow.f-day { animation: none; }
  .dn:has(#tod-day:not(:checked)) .flow.f-dark { animation: flow 1s linear infinite; }
  .dn:has(#tod-night:checked) .wflow { animation: wflow 1.2s linear infinite; }
  .dn:has(#tod-day:checked):has(#grid-day:checked) .flow.f-gw,
  .dn:has(#tod-night:checked):has(#grid-night:checked) .flow.f-gw { animation: flow 1s linear infinite; }
}

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; max-width: 360px; background: var(--surface); border: 1px solid var(--field-line); border-radius: var(--r-ctl); }
.seg-opt { position: relative; display: grid; }
.seg-opt input { position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.seg-opt label { display: grid; place-items: center; min-height: 48px; min-width: 44px; border-radius: 6px; font-weight: 700; color: var(--ink); cursor: pointer; transition: background-color var(--dur-hover) var(--ease-out); }
.seg-opt input:checked + label { background: var(--ink); color: var(--bg); }
.seg-opt input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .seg-opt input:not(:checked) + label:hover { background: var(--bg-alt); } }
.tod { border: 0; padding: 0; margin: 0; min-width: 0; }
.tod-copy { margin-top: 24px; }
.tod-copy p { margin-top: 8px; }
.pw { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.pw-h { font-size: 0.875rem; line-height: 1.4; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); margin: 0 0 4px; }
.pw-list { list-style: none; margin: 0; padding: 0; }
.pw-row { position: relative; display: grid; grid-template-columns: 24px auto 1fr auto; align-items: center; column-gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line); color: var(--ink); }
.pw-ic { width: 24px; height: 24px; }
.pw-name { font-weight: 700; }
.pw-state { text-align: right; }
.pw-row.is-off { color: var(--muted); }
/* Locked rows (set by the situation): a status dot and a padlock, no switch. */
.pw-lk { display: inline-flex; align-items: center; gap: 8px; width: 40px; justify-content: flex-end; color: var(--muted); }
.pw-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); box-sizing: border-box; }
.pw-row.is-on .pw-dot { background: var(--sun); border-color: var(--sun); }
.pw-pad { width: 16px; height: 16px; }
/* The Grid row is the one real control: a native checkbox laid over the row, drawn as a switch. */
.pw-sw { position: relative; width: 40px; height: 22px; border-radius: 11px; border: 2px solid var(--ink); box-sizing: border-box; background: var(--surface); transition: background-color var(--dur-hover) var(--ease-out); }
.pw-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); transition: left var(--dur-hover) var(--ease-out); }
.pw-chk { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pw-row:has(.pw-chk:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.pw-row:has(.pw-chk:checked) .pw-sw { background: var(--sun); border-color: var(--sun); }
.pw-row:has(.pw-chk:checked) .pw-sw::after { left: 21px; background: var(--on-sun); }
.st-on { display: none; }
.pw-row:has(.pw-chk:checked) .st-on { display: inline; }
.pw-row:has(.pw-chk:checked) .st-off { display: none; }
.pw-help { margin: 12px 0 0; font-size: 0.875rem; color: var(--muted); }
.dn-note { margin-top: 20px; font-size: 0.875rem; color: var(--muted); }
.tod-night, .tod-brownout { display: none; }
.dn:has(#tod-night:checked) .tod-day, .dn:has(#tod-brownout:checked) .tod-day { display: none; }
.dn:has(#tod-night:checked) .tod-night, .dn:has(#tod-brownout:checked) .tod-brownout { display: block; }
/* No :has() support: the control could not drive anything, so hide it and show both states (scene stays Day). */
@supports not selector(:has(*)) {
  .tod { display: none; }
  .tod-night, .tod-brownout { display: block; }
  .pw-help, .pw-sw, .pw-chk { display: none; }
}

/* Packages: what every package includes (framed product panel), then three choice cards led by monthly output, then a value strip. */
.kit { display: grid; gap: 20px; margin-top: 8px; }
.kit-h { margin: 0; }
.kit-fig { margin: 0; }
.kit-panel { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 24px; }
.kit-panel img { display: block; width: 100%; height: auto; }
.kit-fig figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.kit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kit-list li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.kit-list li:last-child { border-bottom: 0; }
.kit-list .pk-ic { width: 32px; height: 32px; color: var(--ink); }
.kit-list h4 { margin: 0 0 4px; font-size: 1.125rem; line-height: 1.3; color: var(--ink); }
.kit-list p { margin: 0; }
.kit-svc { margin: 0; font-weight: 700; color: var(--ink); padding-left: 14px; border-left: 4px solid var(--sun); }
@media (min-width: 960px) {
  .kit { grid-template-columns: 7fr 5fr; column-gap: 56px; align-items: center; }
  .kit-h { grid-column: 1 / -1; }
  .kit-fig { grid-row: 2 / 4; }
  .kit-svc { grid-column: 2; }
  .kit-panel { padding: 32px 40px; }
}
.pk-ic { width: 20px; height: 20px; flex: none; }
.pkg-help { margin: 56px 0 16px; font-weight: 700; color: var(--ink); }
.pkg-specs { margin-bottom: 12px; }
.pkg-run { margin: 0 24px 24px; font-size: 14px; line-height: 1.5; color: var(--text); }
.pkgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.pkg { display: grid; align-content: start; gap: 16px; padding: 28px 24px; background: var(--surface); border: 1px solid var(--field-line); border-radius: var(--r-card); }
.pkg-title { margin: 0; font-size: 13px; line-height: 1.4; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pkg-out { margin: 0; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pkg-up { display: block; margin-bottom: 4px; }
.pkg-big { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; }
.pkg-up, .pkg-unit { font-size: 1rem; font-weight: 700; color: var(--muted); }
.pkg-bar { position: relative; height: 28px; border-radius: 6px; background: var(--bg-alt); overflow: hidden; }
.pkg-fill { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 17px); opacity: 0.9; }
.pkg-fill.w-62 { width: 59%; } .pkg-fill.w-86 { width: 82%; } .pkg-fill.w-105 { width: 100%; }
.pkg-bar-l { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 1px 6px; border-radius: 4px; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--ink); }
.pkg-specs { margin: 0; }
.pkg-specs > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pkg-specs dt { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--text); }
.pkg-specs dt .pk-ic { color: var(--ink); }
.pkg-specs dd { margin: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.pkg-buy { margin-top: 4px; }
.pkg-price { margin: 0; display: block; font-size: clamp(36px, 10vw, 44px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pkg-buy .text-link { margin-top: 8px; }
/* Package cards take the client's flyer colouring: navy header, orange size bar, orange price band. */
.pkg { padding: 0; overflow: hidden; gap: 0; }
.pkg > * { margin-inline: 24px; }
.pkg-title { margin: 0; padding: 16px 24px; background: var(--band); color: var(--on-band); font-size: 14px; border-bottom: 3px solid var(--sun); }
.pkg-out { margin-top: 24px; }
.pkg-bar { margin-top: 16px; }
.pkg-fill { background: repeating-linear-gradient(90deg, var(--sun) 0 14px, transparent 14px 17px); opacity: 1; }
.pkg-fill.w-62 { width: calc((100% - 72px) * 0.59); } .pkg-fill.w-86 { width: calc((100% - 72px) * 0.82); } .pkg-fill.w-105 { width: calc(100% - 72px); }
.pkg-bar-l { background: transparent; }
.pkg-specs { margin-top: 12px; margin-bottom: 24px; }
.pkg-specs > div:last-child { border-bottom: 0; }
.pkg-specs dt .pk-ic { color: var(--sun); }
.pkg-buy { margin: auto 0 0; padding: 22px 24px 24px; background: var(--sun); align-self: end; }
.pkg-price, .pkg-buy .text-link { color: var(--on-sun); }
.pkg-buy .text-link:focus-visible { outline-color: var(--on-sun); }
@media (min-width: 960px) {
  .pkgs { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .pkg { grid-template-rows: auto auto auto auto 1fr auto; }
}
.vals { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 20px; border-top: 2px solid var(--ink); padding-top: 24px; }
.vals h3 { margin: 0 0 6px; font-size: 1.125rem; line-height: 1.3; }
.vals p { margin: 0; }
@media (min-width: 960px) { .vals { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.pkg-note { margin-top: 20px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 70ch; }
.pkg-note + .pkg-note { margin-top: 6px; }

.also { margin-top: 56px; display: grid; gap: 12px; }
.also-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 70ch; }
.also-list strong { color: var(--ink); }
.also-note { font-size: 14px; color: var(--muted); }
@media (min-width: 960px) { .also { grid-template-columns: 240px 1fr; column-gap: 48px; align-items: start; } .also h3 { grid-row: 1 / 3; } .also-note { grid-column: 2; } }

/* Our installations: one large tile, five of different sizes. Photos are crops of 4:3 originals; panels stay in frame. */
.work-lead { margin: -16px 0 32px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery li { margin: 0; overflow: hidden; border-radius: var(--r-card); background: var(--bg-alt); }
.gallery picture { display: block; height: 100%; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; }
.gallery .g1, .gallery .g6 { grid-column: 1 / -1; }
.gallery .g1 img { aspect-ratio: 4 / 3; }
.gallery .g6 img { aspect-ratio: 16 / 9; object-position: 50% 45%; }
@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(12, 1fr); grid-template-rows: 250px 250px 330px; gap: 16px; }
  .gallery img { aspect-ratio: auto; }
  .gallery .g1 { grid-column: 1 / 8; grid-row: 1 / 3; }
  .gallery .g2 { grid-column: 8 / 13; grid-row: 1; }
  .gallery .g3 { grid-column: 8 / 13; grid-row: 2; }
  .gallery .g4 { grid-column: 1 / 6; grid-row: 3; }
  .gallery .g5 { grid-column: 6 / 9; grid-row: 3; }
  .gallery .g6 { grid-column: 9 / 13; grid-row: 3; }
  .gallery .g6 img { object-position: 50% 50%; }
}

/* Why solar: mirrored split, rows not cards */
.points { list-style: none; margin: 0; padding: 0; }
.point { padding-block: 20px; }
.point:first-child { padding-top: 0; }
.point h3 + p { margin-top: 6px; }
.why-split .media img { aspect-ratio: 4 / 5; max-height: 520px; }
@media (min-width: 960px) {
  .why-split { grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
  .why-split .media img { max-height: none; }
}

/* Steps: timeline with large numerals */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.steps li { position: relative; padding-left: 72px; }
.steps li::before { content: ""; position: absolute; left: 23px; top: 56px; bottom: -32px; width: 2px; background: var(--field-line); }
.steps li:last-child::before { display: none; }
.num {
  position: absolute; left: 0; top: -4px; width: 48px; text-align: center; font-size: 40px; line-height: 1.2;
  font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums;
}
.steps h3 + p { margin-top: 4px; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps li { padding: 88px 0 0; }
  .steps li::before { left: 0; right: -32px; top: 64px; bottom: auto; width: auto; height: 2px; }
  .steps li::after { content: ""; position: absolute; left: 0; top: 58px; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); }
  .steps li:last-child::after { display: block; }
  .num { left: 0; top: 0; width: auto; text-align: left; font-size: 52px; }
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.ask { color: var(--text); }
@media (min-width: 960px) { .faq-split { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } .faq-split > :first-child { position: sticky; top: calc(var(--header-h) + 24px); } }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 12px 0; font-weight: 700; color: var(--ink); cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+" / ""; font-size: 24px; line-height: 1; flex: none; }
.faq[open] summary::after { content: "\2212" / ""; }
.faq-panel { display: grid; grid-template-rows: 1fr; }
.faq-inner { overflow: hidden; min-height: 0; padding-bottom: 16px; }
@media (hover: hover) and (pointer: fine) {
  .faq summary { transition: background-color var(--dur-hover) var(--ease-out); }
  .faq summary:hover { background: var(--bg-alt); }
}
/* JS-driven expander: 0fr -> 1fr; without JS the native open/close is instant. */
.js .faq-panel { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--dur-expand-close) var(--ease-in-out), opacity var(--dur-expand-close) var(--ease-in); }
.js .faq.is-open .faq-panel { grid-template-rows: 1fr; opacity: 1; transition-duration: var(--dur-expand-open); transition-timing-function: var(--ease-in-out), var(--ease-out); }

/* Form fail-safe: site.js adds .form-ready as the last step of form init. Until then (no JS, or a script failed
   to load) the call-or-message notice shows and the form is hidden. */
html:not(.form-ready) #quote-form { display: none; }
.form-ready .nojs { display: none; }
.nojs { font-weight: 700; color: var(--ink); }
.quote-card { background: var(--surface); border-radius: var(--r-card); padding: 24px; }
/* Dark scheme: --surface equals the band, so a band hairline keeps the card's edge visible. */
@media (prefers-color-scheme: dark) { .quote-card { box-shadow: 0 0 0 1px var(--band-line); } }
.next-h { font-size: 18px; margin-top: 32px; }
.next { margin: 12px 0 0; padding-left: 24px; display: grid; gap: 6px; }
.contact { margin-top: 32px; }
/* Phones: the card bleeds to the screen edge so Turnstile's fixed 300px widget fits. */
@media (max-width: 639px) { .quote-card { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; padding: 24px var(--gutter); } }
@media (min-width: 640px) { .quote-card { padding: 32px; } }
@media (min-width: 960px) { .quote-split { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }

/* Form */
.field { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.field > label, legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 8px; padding: 0; }
input[type="text"], input[type="tel"], select {
  width: 100%; min-height: 48px; padding: 0 12px; font: 500 16px/1.2 var(--font); color: var(--ink);
  background-color: var(--bg); border: 1px solid var(--field-line); border-radius: var(--r-ctl);
}
input[type="text"]:focus, input[type="tel"]:focus, select:focus { outline: none; border: 2px solid var(--ink); padding: 0 11px; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err); }
.hint { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.error { color: var(--err); font-size: 14px; line-height: 1.5; font-weight: 700; margin-top: 8px; display: flex; gap: 8px; align-items: flex-start; }
.error[hidden] { display: none; }
.error::before {
  content: "!" / ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--err); color: var(--bg);
  display: grid; place-items: center; font-size: 14px; line-height: 1;
}
.radios { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.radio { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 500; color: var(--text); cursor: pointer; }
.radio input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { height: 72px; margin-bottom: 16px; }
.consent { font-size: 14px; line-height: 1.5; color: var(--text); margin-bottom: 16px; }
.consent a { display: inline-block; }

.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
#quote-form .btn { min-width: 220px; }
#quote-form .btn > * { grid-area: 1 / 1; }
.btn .spinner, .btn .btn-check { visibility: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.spinner { width: 20px; height: 20px; border: 3px solid var(--on-sun); border-right-color: transparent; border-radius: 50%; }
.is-loading .spinner { animation: spin 0.8s linear infinite; }
.btn-check { font-size: 20px; }
.btn.is-loading .btn-label, .btn.is-done .btn-label { opacity: 0; } /* not visibility: the label keeps the button's name */
.btn.is-loading .spinner, .btn.is-done .btn-check { visibility: visible; }
.status { font-weight: 700; color: var(--ink); flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.status:empty { flex: 0 0 0; margin-left: -16px; } /* stays rendered for screen readers; cancels the row gap */
.status.is-error { color: var(--err); }
.status.is-ok { color: var(--ok); }
.is-sent .form-body { display: none; }
.is-sent .status { font-size: var(--lead); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-block: 48px; border-top: 1px solid rgb(234 240 248 / 0.14); }
.site-footer a { color: var(--footer-text); display: inline-flex; min-height: 44px; align-items: center; }
.site-footer p + p { margin-top: 8px; }
.site-footer .footer-logo { min-height: 0; margin-bottom: 20px; }
.footer-logo img { height: 48px; width: auto; }
.footer-legal { color: var(--footer-muted); max-width: 36ch; }
.footer-grid { display: grid; gap: 32px; }
/* The card's closing line: Solar | Electrical | Technical services, orange separators. */
.trio { list-style: none; display: flex; flex-wrap: wrap; row-gap: 8px; margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid rgb(234 240 248 / 0.14); color: var(--footer-muted); }
.trio li + li::before { content: ""; display: inline-block; width: 2px; height: 14px; margin: 0 18px; background: var(--sun); vertical-align: -2px; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.2fr 1.2fr 1fr; } }
@media (max-width: 959px) { .site-footer { padding-bottom: 104px; } }

/* Mobile quote bar: hidden until site.js adds .is-shown (bill picker scrolled away, form not in view). */
.quote-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 12px max(var(--gutter), env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  transform: translateY(100%); opacity: 0; visibility: hidden;
  /* Hidden: visibility flips only after the exit finishes. */
  transition: transform var(--dur-expand-close) var(--ease-in), opacity var(--dur-expand-close) var(--ease-in), visibility 0s linear var(--dur-expand-close);
}
.quote-bar .btn { width: 100%; }
.quote-bar.is-shown {
  transform: none; opacity: 1; visibility: visible;
  /* Shown: appears at once (no visibility delay). */
  transition: transform var(--dur-expand-open) var(--ease-out), opacity var(--dur-expand-open) var(--ease-out), visibility 0s;
}
/* Only below 640px, where the header CTA is not shown: never two sun-filled primaries on screen. */
@media (min-width: 640px) { .quote-bar { display: none; } }

/* Privacy page */
.prose { padding-block: 64px; max-width: 760px; }
.prose h1 + p { margin-top: 16px; }
.prose h2 { margin-top: 32px; font-size: 22px; }
.prose h2 + p, .prose h2 + ul { margin-top: 8px; }
.prose ul { padding-left: 20px; margin: 0; }

/* Motion: the hero image settling in is the only authored moment; hero text renders immediately (LCP, no-JS). */
@keyframes hero-img { from { opacity: 0.001; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-img 900ms var(--ease-out) both; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .is-loading .spinner { animation: spin 0.8s linear infinite !important; }
}

@media (max-width: 420px) { .menu summary { padding: 0 12px; } }

/* CCTV packages: the solar card language (navy band, orange underline, orange price band) with CCTV-native content: the camera
   count as the figure and a row of eight channel glyphs in place of the size bar. */
.cv-pkgs { margin-top: 40px; }
.chan { margin-top: 16px; }
.chan-row { display: flex; gap: 6px; flex-wrap: nowrap; }
.cam { width: 100%; max-width: 30px; height: auto; aspect-ratio: 1; flex: 1 1 0; min-width: 0; color: var(--field-line); opacity: 0.55; }
.cam.on { color: var(--sun); opacity: 1; }
.chan-l { margin: 8px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); }
.cv-pkgs .pkg-specs dd { text-align: right; }
.cv-more { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 32px 28px; border: 2px dashed var(--field-line); border-radius: var(--r-card); }
.cv-more > .pk-ic { width: 40px; height: 40px; color: var(--ink); }
.cv-more h3 { margin: 4px 0 0; }
.cv-more p { margin: 0; max-width: 34ch; }
.cv-more .btn { margin-top: 8px; }
.svc-pk { margin-top: 8px; }

/* Larger home or commercial site: a quiet dashed panel under the home packages, text left and button right from 960px. */
.pk-more { margin-top: 32px; display: grid; gap: 20px; align-items: center; padding: 28px; border: 2px dashed var(--field-line); border-radius: var(--r-card); }
.pk-more h3 { margin: 0; }
.pk-more p { margin: 8px 0 0; max-width: 62ch; }
.pk-more .btn { justify-self: start; }
@media (min-width: 960px) { .pk-more { grid-template-columns: 1fr auto; gap: 40px; padding: 32px 36px; } .pk-more .btn { justify-self: end; } }
#packages .offer-lead { margin-bottom: 32px; }

/* CCTV price band without a price: a modest navy line on the orange band, then the same link as the solar cards. */
.pkg-quote { margin: 0; font-size: 1.25rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; color: var(--on-sun); }

/* Equipment brands and Warranty: quiet ledger blocks. A kicker label left, plain text right, hairline rules, no cards. */
.ledger { margin-top: 56px; display: grid; gap: 12px; }
.ledger + .ledger { margin-top: 40px; }
.ledger-h { margin: 0; }
.ledger-rows { margin: 0; border-top: 2px solid var(--ink); }
.ledger-rows > div { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ledger-rows dt { align-self: start; padding-top: 3px; }
.ledger-rows dd { margin: 0; color: var(--text); max-width: 62ch; }
.brand-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 20px; font-weight: 700; color: var(--ink); }
.ledger-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (min-width: 640px) {
  .ledger-rows > div { grid-template-columns: 180px 1fr; gap: 24px; }
  .brand-list { gap: 2px 0; }
  .brand-list li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 14px; border-radius: 50%; background: var(--sun); vertical-align: middle; }
}
@media (min-width: 960px) {
  .ledger { grid-template-columns: 240px 1fr; column-gap: 48px; align-items: start; }
  .ledger-h { grid-row: 1 / 3; }
  .ledger-note { grid-column: 2; }
}
