/* =====================================================================
   Array · the style
   Solar and battery installers: Saira for headlines, Heebo for reading,
   B612 Mono for kilowatts, kilowatt-hours, dollars and dates, on bright
   paper with deep ink, one solar-cell blue and a warm sun amber for fills.
   Signature pieces: the solar estimate (.sizer: system size, panels,
   generation, STCs and an honest range for savings and payback), the
   battery planner (.battery: usable size, the Cheaper Home Batteries
   discount by tier, and what it covers at night), the day curve (.daycurve:
   a sunny day's generation against your use, with and without a battery),
   and the install tracker (.install: each step, who does it, and what
   you'll get).
   Motion: html.calm stills everything (footer switch, remembered as
   "site-motion"; default from prefers-reduced-motion).
   ===================================================================== */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; font-synthesis: style; }
html:focus-within { scroll-behavior: smooth; }
html.calm:focus-within { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--sun); color: #0e1a22; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--r-s); background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; transition: top var(--d) var(--ease); }
.skip:focus { top: 12px; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.92em; }
:not(pre) > code { padding: 0.1em 0.35em; border-radius: 5px; background: var(--well); }

/* ---------- type ---------- */
.h1, .h2, .h3 { font-family: var(--display); font-weight: 700; color: var(--ink); text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.02em; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.015em; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }
/* the lit phrase: solar-cell blue, over a strip of cells that charge up in amber from left to right, like a battery filling */
.h1 { letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: break-word; }
.h2 { line-height: 1.04; letter-spacing: -0.015em; }
.h1 em, .h2 em { font-style: normal; color: var(--panel); }
.h1 em { --gap: var(--cell-gap, var(--paper)); padding-bottom: 0.04em; background: repeating-linear-gradient(90deg, transparent 0 0.34em, var(--gap) 0.34em 0.4em) 0 1.02em / 100% 0.12em no-repeat, linear-gradient(var(--sun), var(--sun)) 0 1.02em / 100% 0.12em no-repeat, linear-gradient(color-mix(in srgb, var(--panel) 30%, var(--paper)), color-mix(in srgb, var(--panel) 30%, var(--paper))) 0 1.02em / 100% 0.12em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html:not(.calm) .h1 em { animation: ar-charge 1600ms 0.3s steps(12, end) both; }
@keyframes ar-charge { from { background-size: 100% 0.12em, 0% 0.12em, 100% 0.12em; } }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--fs-label)/1.2 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tag::before { content: ""; width: 14px; height: 10px; margin-right: 4px; border-radius: 2px; background: linear-gradient(90deg, transparent 6px, var(--paper) 6px 8px, transparent 8px), linear-gradient(transparent 4px, var(--paper) 4px 6px, transparent 6px), var(--panel); box-shadow: 3px -3px 0 -1px var(--sun); }
.tag b { font-weight: 700; color: var(--panel); }
.num { font-variant-numeric: tabular-nums; }
.prose p + p { margin-top: 1em; }
.prose a, .link { color: var(--panel); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 600; }
.prose a:hover, .link:hover { color: var(--panel-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border-radius: var(--r-s); border: 1.5px solid transparent; font: 600 15.5px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--d-fast) var(--ease), background var(--d-fast), border-color var(--d-fast), color var(--d-fast); }
.btn svg { width: 17px; height: 17px; flex: none; transition: transform var(--d) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-panel { background: var(--panel); color: var(--on-panel); }
.btn-panel:hover { background: var(--panel-2); }
.btn-line { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); background: var(--card); color: var(--ink); }
.btn-line:hover { border-color: var(--panel); color: var(--panel); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- top line ---------- */
.topline { background: var(--ink); color: var(--paper); }
.topline .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; padding-block: 7px; text-align: center; font: 500 14px/1.4 var(--body); }
.topline b { padding: 2px 9px; border-radius: 3px; background: var(--sun); color: #0e1a22; font: 700 11px/1.3 var(--mono); letter-spacing: 0.04em; }
.topline a { font-weight: 600; color: var(--paper); text-underline-offset: 3px; }
@media (max-width: 560px) { .topline b { display: none; } }

/* ---------- header and phone menu ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { position: relative; display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
/* the mark: a four-cell solar panel, tilted, with the sun rising behind its top corner; the sun lifts on hover */
.brand-mark { position: relative; flex: none; width: 26px; height: 22px; margin-top: 2px; }
.brand-mark::before { content: ""; position: absolute; right: -2px; top: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--sun); transition: transform var(--d) var(--snap); }
.brand-mark::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 17px; border-radius: 3px; background: linear-gradient(90deg, transparent 10px, var(--paper) 10px 12px, transparent 12px), linear-gradient(transparent 7.5px, var(--paper) 7.5px 9.5px, transparent 9.5px), var(--panel); transform: skewX(-8deg); }
html:not(.calm) .brand:hover .brand-mark::before { transform: translateY(-3px); }
.brand-word { font: 700 24px/1 var(--display); letter-spacing: -0.01em; letter-spacing: -0.015em; }
.brand-sub { display: block; font: 500 11.5px/1.2 var(--mono); color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { position: relative; padding: 9px 12px; border-radius: var(--r-s); text-decoration: none; font: 500 15px/1 var(--body); color: var(--ink-2); transition: color var(--d-fast), background var(--d-fast); }
.nav-links a:hover { color: var(--ink); background: var(--well); }
.nav-links a[aria-current="page"] { color: var(--panel); background: var(--panel-soft); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--card); cursor: pointer; place-items: center; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform var(--d) var(--ease), background var(--d-fast); }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
.site-menu { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 14px var(--gutter) 24px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift); animation: ar-open var(--d) var(--ease) both; }
.site-menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 700 30px/1 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.site-menu a::after { content: attr(data-no); font: 500 12px/1 var(--mono); color: var(--muted); }
.site-menu a[aria-current="page"] { color: var(--panel); }
.site-menu .btn { display: flex; justify-content: center; margin-top: 18px; border-bottom: 0; font: 600 15.5px/1 var(--body); color: var(--on-panel); }
.site-menu .btn::after { display: none; }
@keyframes ar-open { from { opacity: 0; transform: translateY(-8px); } }
html.calm .site-menu { animation: none; }
@media (max-width: 1100px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (max-width: 640px) { .nav .nav-cta { display: none; } }
@media (min-width: 1101px) { .site-menu { display: none !important; } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(60px, 8.5vw, 110px); }
.section.alt { background: var(--well); }
.section-head { display: grid; gap: 14px; justify-items: start; max-width: 780px; margin-bottom: clamp(28px, 4vw, 52px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.grid-2.lean { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.grid-2.lean > .section-head { position: sticky; top: 100px; }
.grid-2.side { grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .grid-2.lean, .grid-2.side { grid-template-columns: minmax(0, 1fr); } .grid-2.lean > .section-head { position: static; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(30px, 5vw, 68px) clamp(54px, 8vw, 100px); overflow: clip; }
/* a solar array behind the hero, in perspective, catching a low sun that slowly rises behind it */
.hero::before { content: ""; position: absolute; z-index: -1; left: -6%; bottom: 0; width: min(54vw, 720px); height: 260px; background: linear-gradient(90deg, transparent 0 calc(100% - 4px), var(--paper) 0) 0 0 / 12.5% 100%, linear-gradient(transparent 0 calc(100% - 4px), var(--paper) 0) 0 0 / 100% 25%, linear-gradient(160deg, color-mix(in srgb, var(--panel) 50%, var(--paper)), color-mix(in srgb, var(--panel) 22%, var(--paper)) 70%); transform: perspective(700px) rotateX(58deg) rotateZ(6deg); transform-origin: 50% 100%; -webkit-mask: linear-gradient(transparent, #000 40%); mask: linear-gradient(transparent, #000 40%); opacity: 0.85; }
.hero::after { content: ""; position: absolute; z-index: -2; left: 18%; bottom: 8%; width: min(26vw, 340px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--sun) 46%, transparent) 0 28%, color-mix(in srgb, var(--sun) 14%, transparent) 46%, transparent 70%); pointer-events: none; }
html:not(.calm) .hero::after { animation: ar-rise 9s ease-in-out infinite alternate; }
@keyframes ar-rise { from { transform: translateY(40px); opacity: 0.75; } }
@media (max-width: 900px) { .hero::before, .hero::after { display: none; } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 14.5px/1.4 var(--body); color: var(--ink-2); }
.hero-facts li { display: flex; gap: 8px; align-items: baseline; }
.hero-facts li b { font: 700 19px/1 var(--mono); color: var(--ink); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }




.hero { isolation: isolate; }
.hero-copy .h1, .page-head .h1 { padding-bottom: 0.02em; }
:root[data-theme="dark"] { --sun-mark: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sun-mark: var(--sun); } }
@media (max-width: 900px) { .hero::before, .hero::after { display: none; } }
/* ---------- shared card frame ---------- */
/* B612 Mono gives the decimal point a full cell ("6. 6"), so decimal readouts use Saira with tabular figures. */
.sizer, .battery, .daycurve, .install { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); min-width: 0; }
.sizer.hero-card { box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); }
.sizer h3, .battery h3, .daycurve h3, .install h3 { font: 700 25px/1.1 var(--display); letter-spacing: -0.01em; }
.ar-fine { font-size: 13px; color: var(--muted); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kw-badge { padding: 4px 10px; border-radius: 999px; background: var(--sun); color: #0e1a22; font: 700 15px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.rise { animation: ar-up 450ms var(--ease); }
@keyframes ar-up { from { transform: translateY(6px); opacity: 0.4; } }
html.calm .rise { animation: none; }
.or-lines { display: grid; gap: 4px; font: 400 14px/1.45 var(--mono); color: var(--ink-2); }
.or-lines li { display: flex; justify-content: space-between; gap: 12px; }
.or-lines li span:last-child { white-space: nowrap; }

/* ---------- the solar estimate (signature) ---------- */
.sz-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 14px; align-items: end; }
@media (max-width: 560px) { .sz-row { grid-template-columns: minmax(0, 1fr); } }
.sz-row .field > span:first-child, .sizer .field > span { font-weight: 600; font-size: 15px; }
.money-in { display: flex; align-items: center; gap: 8px; }
.money-in b { font: 700 18px/1 var(--mono); color: var(--muted); }
.sizer select, .sizer input[type="number"] { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--ink) 22%, var(--line)); border-radius: var(--r-s); background: var(--card); color: var(--ink); }
.sizer .seg { flex-wrap: wrap; }
.sizer .seg button { padding: 9px 12px; font-size: 14px; }
.sz-kw { display: grid; gap: 4px; }
.sz-kw label { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 15px; }
.sz-kw output { font: 700 16px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--panel); }
.cells { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; padding: 8px; border-radius: var(--r-s); background: var(--well); transform: perspective(500px) rotateX(18deg); transform-origin: 50% 100%; }
.cells i { aspect-ratio: 1 / 1.5; border-radius: 2px; background: color-mix(in srgb, var(--panel) 14%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--panel) 18%, transparent); transition: background var(--d) var(--ease); }
.cells i.on { background: linear-gradient(160deg, color-mix(in srgb, var(--panel) 70%, #fff) 0 18%, var(--panel) 19%); }
html:not(.calm) .cells i.on { transition-delay: calc(var(--i) * 18ms); }
.sz-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.sz-out > div { display: grid; gap: 3px; padding: 11px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.sz-out > div:nth-child(odd) { border-right: 1px solid var(--line); }
.sz-out dt { font: 400 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.sz-out dd { margin: 0; font: 700 17px/1.25 var(--display); overflow-wrap: anywhere; }
.sz-out .big { grid-column: 1 / -1; border-right: 0 !important; background: var(--panel-soft); }
.sz-out .big dd { font-size: 34px; line-height: 1; color: var(--panel); }
.sz-out .sun { grid-column: 1 / -1; border-right: 0 !important; background: var(--sun-soft); }
.sz-out .sun dt { color: var(--sun-ink); }
.sz-out > div:last-child { border-bottom: 0; }
.sz-note { font-size: 15px; color: var(--ink-2); }
.sz-note b { color: var(--ink); }
.sz-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: var(--r-s); background: var(--panel-soft); }
.sz-total span { font-weight: 600; }
.sz-total b { font: 700 30px/1 var(--display); color: var(--panel); }

/* ---------- the battery planner (signature) ---------- */
.bt-viz { display: flex; align-items: center; justify-content: center; padding: 6px 0; }
.bt-cell { position: relative; width: min(100%, 300px); height: 86px; border-radius: 14px; border: 3px solid var(--ink); padding: 6px; display: grid; place-items: center; }
.bt-fill { position: absolute; left: 6px; top: 6px; bottom: 6px; width: calc((100% - 12px) * var(--lv, 30%) / 100%); border-radius: 8px; background: linear-gradient(90deg, var(--sun), color-mix(in srgb, var(--sun) 70%, #fff)); transition: width var(--d) var(--ease); }
.bt-pct { position: relative; font: 700 28px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); text-shadow: 0 0 6px var(--card); }
.bt-cap { width: 10px; height: 32px; margin-left: 3px; border-radius: 0 4px 4px 0; background: var(--ink); }
.tiers { display: grid; grid-template-columns: 14fr 14fr 22fr; gap: 3px; height: 14px; }
.tiers span { position: relative; border-radius: 3px; overflow: hidden; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.tiers i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; transition: width var(--d) var(--ease); }
.tiers .t1 i { background: var(--panel); } .tiers .t2 i { background: color-mix(in srgb, var(--panel) 60%, var(--card)); } .tiers .t3 i { background: color-mix(in srgb, var(--panel) 25%, var(--card)); }
.tier-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--ink-2); }
.tier-key span { display: inline-flex; align-items: center; gap: 6px; }
.tier-key i { width: 12px; height: 12px; border-radius: 3px; }
.k1 { background: var(--panel); } .k2 { background: color-mix(in srgb, var(--panel) 60%, var(--card)); } .k3 { background: color-mix(in srgb, var(--panel) 25%, var(--card)); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- the day curve (signature) ---------- */
.dc-ctl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 18px; align-items: end; }
.dc-ctl .seg { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 560px) { .dc-ctl { grid-template-columns: minmax(0, 1fr); } }
.dc-bars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; height: 190px; padding: 10px 8px 22px; border-radius: var(--r-m); background: linear-gradient(transparent calc(100% - 22px), var(--line) calc(100% - 22px) calc(100% - 21px), transparent 0), var(--well); }
.dc-bars li { position: relative; height: 100%; display: flex; flex-direction: column-reverse; }
.dc-bars li i { display: block; width: 100%; transition: height var(--d) var(--ease); }
.dc-bars .g { height: var(--g); background: var(--sun); border-radius: 0; }
.dc-bars .b { height: var(--b); background: var(--panel); }
.dc-bars li::before { content: ""; position: absolute; left: 0; right: 0; bottom: var(--g); height: var(--x); background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--sun) 60%, transparent) 0 3px, transparent 3px 6px); border-top: 2px solid var(--sun); transition: height var(--d) var(--ease), bottom var(--d) var(--ease); }
.dc-bars .u { position: absolute; left: -1px; right: -1px; bottom: var(--u); height: 3px; border-radius: 2px; background: var(--ink); transition: bottom var(--d) var(--ease); }
.dc-bars span { position: absolute; left: 50%; bottom: -20px; translate: -50% 0; font: 400 11px/1 var(--mono); color: var(--muted); }
.dc-key { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--ink-2); }
.dc-key span { display: inline-flex; align-items: center; gap: 6px; }
.dc-key i { width: 14px; height: 10px; border-radius: 2px; }
.k-g { background: var(--sun); } .k-x { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--sun) 60%, transparent) 0 3px, transparent 3px 6px); box-shadow: inset 0 2px 0 var(--sun); } .k-b { background: var(--panel); } .k-u { height: 3px !important; background: var(--ink); }
.dc-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-block: 1px solid var(--line); }
.dc-out > div { display: grid; gap: 3px; padding: 10px 12px 10px 0; min-width: 0; }
.dc-out > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.dc-out dt { font: 400 12px/1.3 var(--mono); text-transform: uppercase; color: var(--muted); }
.dc-out dd { margin: 0; font: 700 16px/1.25 var(--display); overflow-wrap: anywhere; }
@media (max-width: 700px) { .dc-out { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dc-out > div:nth-child(3) { padding-left: 0; border-left: 0; } .dc-out > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- the install tracker (signature) ---------- */
.in-date { max-width: 260px; }
.in-date input { min-height: 46px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--ink) 22%, var(--line)); border-radius: var(--r-s); background: var(--card); }
.st-list { position: relative; display: grid; gap: 0; }
.st-list::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.st { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding: 12px 0; }
.st-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.st.done .st-dot { background: var(--panel); box-shadow: none; }
.st.done .st-dot::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid var(--on-panel); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.st.now .st-dot { background: var(--sun); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sun) 28%, transparent); }
html:not(.calm) .st.now .st-dot { animation: ar-pulse 1.8s ease-in-out infinite; }
@keyframes ar-pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--sun) 10%, transparent); } }
.st-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.st-head b { font: 700 18px/1.2 var(--display); }
.st-date { font: 400 13.5px/1.3 var(--mono); color: var(--panel); }
.st-who { font: 400 12.5px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.st-detail { font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.st.done .st-head b { color: var(--muted); }

/* ---------- pairs and supporting pieces ---------- */
.plan-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 900px) { .plan-pair { grid-template-columns: minmax(0, 1fr); } }
.card { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); min-width: 0; }
.card .k { font: 400 13.5px/1.2 var(--mono); color: var(--panel); }
.card h3 { font: 700 23px/1.15 var(--display); }
.card p { color: var(--ink-2); font-size: 15.5px; }
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.facts > div { display: grid; gap: 6px; align-content: start; padding: 20px 18px 20px 0; min-width: 0; overflow-wrap: break-word; }
.facts > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts .k { font: 400 13.5px/1.2 var(--mono); color: var(--panel); }
.facts b { font: 700 22px/1.15 var(--display); }
.facts p { font-size: 15.5px; color: var(--ink-2); }
.facts.stack { grid-template-columns: minmax(0, 1fr); }
.facts.stack > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .facts:not(.stack) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 16px 18px; border-radius: var(--r-m); background: var(--panel-soft); font-size: 15.5px; color: var(--ink-2); overflow-wrap: break-word; }
.notice svg { width: 20px; height: 20px; color: var(--panel); margin-top: 2px; }
.notice b { color: var(--ink); }
.side-box { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow-wrap: break-word; }
.side-box h3 { font: 400 13.5px/1.2 var(--mono); color: var(--muted); }
.side-box ul { display: grid; gap: 8px; font-size: 15px; }
.sidebar { display: grid; gap: 16px; align-content: start; }
.checks { display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 5px; top: 4px; width: 6px; height: 12px; border: solid var(--panel); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.hero-grid { align-items: start; }
@media (min-width: 1001px) { .hero-copy { position: sticky; top: 112px; } }

/* ---------- closing: a dark card with the sun setting behind a panel ---------- */
.close { padding-block: clamp(56px, 8vw, 96px); }
.close-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 28px; align-items: end; padding: clamp(28px, 5vw, 60px); border-radius: var(--r-l); background: var(--close-bg, #0b1626); color: #eef3f6; overflow: hidden; isolation: isolate; }
.close-card::before { content: ""; position: absolute; z-index: -2; right: 12%; top: 22%; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, var(--close-em, #ffb020) 0 46%, color-mix(in srgb, var(--close-em, #ffb020) 25%, transparent) 47% 62%, transparent 63%); }
.close-card::after { content: ""; position: absolute; z-index: -1; right: calc(12% - 50px); top: calc(22% + 96px); width: 250px; height: 90px; border-radius: 6px; background: linear-gradient(90deg, transparent 0 calc(100% - 2px), var(--close-bg, #0b1626) 0) 0 0 / 12.5% 100%, linear-gradient(transparent 0 calc(100% - 2px), var(--close-bg, #0b1626) 0) 0 0 / 100% 33.4%, linear-gradient(170deg, #4f7fe0, #1f4fb8); transform: perspective(500px) rotateX(32deg); }
html:not(.calm) .close-card::before { animation: ar-set 1600ms 0.3s var(--ease) both; }
@keyframes ar-set { from { transform: translateY(-40px); } }
.close-card .h2 { color: #fff; }
.close-card .h2 em { color: var(--close-em, #ffb020); }
.close-card p { color: #cdd6dd; max-width: 52ch; margin-top: 14px; }
.close-card .tag { color: #9fb0bf; }
.close-card .tag b { color: var(--close-em, #ffb020); }
.close-card .btn-panel { background: var(--close-em, #ffb020); color: #0e1a22; }
.close-card .btn-panel:hover { filter: brightness(1.06); }
.close-card :focus-visible { outline-color: #fff; }
@media (min-width: 861px) { .close-card { padding-right: calc(12% + 200px); } }
@media (max-width: 860px) { .close-card { grid-template-columns: minmax(0, 1fr); } .close-card::before, .close-card::after { display: none; } }
/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 18px 22px; font: 700 21px/1.2 var(--display); border-radius: var(--r-m); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); background: linear-gradient(var(--panel), var(--panel)) center / 10px 1.6px no-repeat, linear-gradient(var(--panel), var(--panel)) center / 1.6px 10px no-repeat; transition: transform var(--d) var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); max-width: 72ch; }

/* ---------- footer ---------- */
.foot { padding-block: 56px 30px; border-top: 1px solid var(--line); background: var(--well); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { font: 500 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { display: grid; gap: 9px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--panel); }
.licence { margin-top: 28px; padding: 14px 16px; border-radius: var(--r-s); background: var(--card); box-shadow: 0 0 0 1px var(--line); font: 400 12px/1.7 var(--mono); color: var(--muted); }
.licence b { color: var(--ink); font-weight: 500; }
.foot-base { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.foot-switches { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- switch ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); cursor: pointer; font: 500 14.5px/1 var(--body); color: var(--ink-2); }
.switch .sw { position: relative; flex: none; width: 38px; height: 22px; border-radius: var(--r-pill); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); transition: background var(--d-fast); }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform var(--d) var(--ease); }
.switch[aria-checked="true"] .sw { background: var(--panel); box-shadow: none; }
.switch[aria-checked="true"] .sw::after { transform: translateX(16px); background: #fff; }

/* =====================================================================
   Multi-page kit
   ===================================================================== */
.page-head { position: relative; padding-block: clamp(30px, 4.5vw, 64px) clamp(34px, 4.5vw, 60px); border-bottom: 1px solid var(--line); overflow: clip; }

.page-head .wrap { position: relative; }
.page-head .h1 { font-size: clamp(38px, 5vw, 68px); margin-top: 16px; }
.page-head .lead { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--panel); }
.crumbs span[aria-hidden] { opacity: 0.6; }

.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field > span, .field-set > legend { font: 600 15.5px/1.25 var(--body); color: var(--ink); }
.field small, .field-set > legend small { color: var(--muted); font: 400 14px/1.35 var(--body); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 15px; border-radius: var(--r-s); border: 1px solid color-mix(in srgb, var(--ink) 25%, var(--line)); background: var(--card); color: var(--ink); transition: box-shadow var(--d-fast), border-color var(--d-fast); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--alert); box-shadow: 0 0 0 3px color-mix(in srgb, var(--alert) 20%, transparent); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-size: 6px 6px; background-position: right 22px center, right 16px center; background-repeat: no-repeat; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
fieldset.field-set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
fieldset.field-set > legend { padding: 0; margin-bottom: 10px; }
fieldset.field-set > .seg { justify-self: start; }
.form-card { display: grid; gap: 22px; padding: clamp(22px, 3.5vw, 38px); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
.form-done { padding: 16px 18px; border-radius: var(--r-m); background: var(--panel-soft); color: var(--ink); font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--panel); }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: grid; gap: 3px; height: 100%; padding: 15px 17px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--card); transition: border-color var(--d-fast), background var(--d-fast), box-shadow var(--d-fast); }
.choice > span b { font: 700 20px/1.1 var(--display); }
.choice > span small { color: var(--muted); font-size: 14.5px; }
.choice:hover > span { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.choice input:checked + span { border-color: var(--panel); box-shadow: 0 0 0 1px var(--panel); background: color-mix(in srgb, var(--panel-soft) 45%, var(--card)); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); }
.seg button, .seg label { position: relative; padding: 9px 15px; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; font: 500 14.5px/1 var(--body); color: var(--ink-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button:hover, .seg label:hover { background: var(--well); }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--ink); color: var(--paper); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

input.range { --p: 50%; appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--panel) 0 var(--p), var(--line) var(--p) 100%); cursor: pointer; }
input.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 2px solid var(--panel); box-shadow: var(--shadow-card); }
input.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--panel); }

.table { overflow-x: auto; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table caption { caption-side: bottom; text-align: left; padding: 12px 18px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child > * { border-bottom: 0; }
.table thead th { font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--well); border-bottom: 1px solid var(--line); }
.table tbody th { font: 700 19.5px/1.25 var(--display); }
.table td { color: var(--ink-2); }
.table .r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 680px) {
  .table.stack table, .table.stack tbody, .table.stack tr, .table.stack td, .table.stack th { display: block; }
  .table.stack table { display: flex; flex-direction: column; }
  .table.stack caption { display: block; order: 1; }
  .table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table.stack td, .table.stack th { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; border: 0; padding: 4px 0; text-align: left !important; }
  .table.stack th[scope="row"] { display: block; }
  .table.stack td::before { content: attr(data-label); font: 500 10.5px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
}

.field input.range { min-height: 0; height: 6px; padding: 0; border: 0; margin: 14px 0 8px; box-shadow: none; background: linear-gradient(90deg, var(--panel) 0 var(--p), var(--line) var(--p) 100%); }


/* ---------- reveal on scroll ---------- */
.js [data-enter] { opacity: 0; transform: translateY(14px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
.js [data-enter].entered { opacity: 1; transform: none; }
html.calm [data-enter] { opacity: 1 !important; transform: none !important; transition: none !important; }
.form-card, .form-card > *, .form-card .fields > * { min-width: 0; }
.field input, .field textarea, .field select { min-width: 0; max-width: 100%; }
.page-head { isolation: isolate; }
/* the sun's path across the page head: a dotted arc, with the sun travelling to midday */
.page-head::before { content: ""; position: absolute; z-index: -1; right: 6%; top: 20%; width: 260px; height: 130px; border-radius: 130px 130px 0 0; border: 3px dotted color-mix(in srgb, var(--ink) 22%, transparent); border-bottom: 0; pointer-events: none; }
.page-head::after { content: ""; position: absolute; right: calc(6% + 112px); top: calc(20% - 16px); width: 36px; height: 36px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 10px color-mix(in srgb, var(--sun) 22%, transparent); }
html:not(.calm) .page-head::after { animation: ar-arc 1400ms 0.3s cubic-bezier(0.3, 0.7, 0.3, 1) both; }
@keyframes ar-arc { from { transform: translate(120px, 120px); } 50% { transform: translate(84px, 40px); } }
@media (max-width: 760px) { .page-head::after, .page-head::before { display: none; } }

@media print { .nav, .foot-switches, .menu-btn, .site-menu, .close { display: none !important; } body { background: #fff; } }
