:root {
  --ink: #1d2a36;
  --muted: #5b6b7a;
  --paper: #eef2f5;
  --card: #ffffff;
  --line: #d5dee6;
  --track: #e2e8ed;
  --blue: #1d5fa8;
  --blue-dark: #174c86;
  --on-blue: #ffffff;
  --sun: #e09a00;
  --sun-band: rgba(224, 154, 0, 0.22);
  --ok: #1f7a4f;
  --ok-soft: #e1f2e8;
  --bad: #b8322a;
  --bad-soft: #fbe6e3;
  --warn: #8f5d00;
  --warn-soft: #fdf0d3;
  --off: #59636e;
  --off-soft: #e6eaee;
  --night: #9aa7b3;
  --radius: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e3eaf0; --muted: #9aaab8; --paper: #0f1720; --card: #17212c; --line: #2a3744; --track: #253240;
    --blue: #5a9fe4; --blue-dark: #78b2ec; --on-blue: #0b1520; --sun: #f0b22a; --sun-band: rgba(240, 178, 42, 0.2);
    --ok: #4cc38a; --ok-soft: #173327; --bad: #f0786e; --bad-soft: #3a1d1b; --warn: #e9b44c; --warn-soft: #3a2d12;
    --off: #a3afbb; --off-soft: #24303c; --night: #4d5b69; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e3eaf0; --muted: #9aaab8; --paper: #0f1720; --card: #17212c; --line: #2a3744; --track: #253240;
  --blue: #5a9fe4; --blue-dark: #78b2ec; --on-blue: #0b1520; --sun: #f0b22a; --sun-band: rgba(240, 178, 42, 0.2);
  --ok: #4cc38a; --ok-soft: #173327; --bad: #f0786e; --bad-soft: #3a1d1b; --warn: #e9b44c; --warn-soft: #3a2d12;
  --off: #a3afbb; --off-soft: #24303c; --night: #4d5b69; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.5 "Barlow", "Segoe UI", Helvetica, Arial, sans-serif;
}
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 22px; padding-bottom: 48px; min-height: 70vh; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.num, .lane-read, .stat b { font-family: "Barlow Semi Condensed", "Barlow", sans-serif; font-variant-numeric: tabular-nums; }

/* Header */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 12px; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.mark-sun { width: 16px; height: 16px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--sun); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 7px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a[aria-current="page"] { background: var(--paper); box-shadow: inset 0 -2px 0 var(--blue); }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav .nav-cta { background: var(--blue); color: var(--on-blue); }
.nav .nav-cta:hover { background: var(--blue-dark); color: var(--on-blue); }
.nav-toggle { display: none; }
@media (max-width: 640px) {
  .nav-toggle { display: inline-block; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font: inherit; color: var(--ink); }
  .nav { display: none; width: 100%; padding-bottom: 10px; }
  .nav.open { display: flex; flex-direction: column; }
}

.foot { border-top: 1px solid var(--line); background: var(--card); font-size: 0.9rem; }
.foot-row { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; color: var(--muted); }

/* Buttons and forms */
.btn {
  display: inline-block; border: 0; border-radius: 6px; padding: 10px 16px; background: var(--blue); color: var(--on-blue);
  font: 600 1rem/1.2 "Barlow", sans-serif; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); color: var(--on-blue); }
.btn-quiet { background: transparent; color: var(--blue); border: 1.5px solid var(--line); }
.btn-quiet:hover { background: var(--card); color: var(--blue-dark); border-color: var(--blue); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-small { padding: 6px 10px; font-size: 0.9rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
form.stack { display: grid; gap: 14px; max-width: 460px; }
.field { display: grid; gap: 5px; }
.field > span { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--sun-band); }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { margin-top: 5px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0; display: grid; gap: 12px; }
legend { font-weight: 700; padding: 0 6px; }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flash { padding: 11px 14px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 500; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-bad { background: var(--bad-soft); color: var(--bad); }
.flash-info { background: var(--off-soft); color: var(--ink); }

/* Panels */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }

/* System block and the string lanes */
.sys { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 12px; margin-bottom: 16px; }
.sys-bad { border-left: 4px solid var(--bad); }
.sys-warn { border-left: 4px solid var(--warn); }
.sys-off { border-left: 4px solid var(--off); }
.sys-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sys-head h2, .sys-head h3 { margin: 0; }
.sys-head a { color: var(--ink); text-decoration: none; }
.sys-head a:hover { text-decoration: underline; }
.sys-meta { color: var(--muted); font-size: 0.9rem; margin: 4px 0 10px; }
.sep { margin: 0 7px; color: var(--line); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-off { background: var(--off-soft); color: var(--off); }
.pill-info { background: var(--off-soft); color: var(--ink); }

.lanes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lane { display: grid; grid-template-columns: 48px 1fr minmax(92px, auto); grid-template-areas: "tag track read" ". note note"; align-items: center; column-gap: 12px; padding: 6px 0; }
.lane-tag {
  grid-area: tag; justify-self: start; font: 700 0.9rem/1 "Barlow Semi Condensed", sans-serif; padding: 4px 6px 3px;
  border: 1.5px solid var(--ink); border-radius: 4px; background: var(--card);
}
.lane-track { grid-area: track; position: relative; height: 14px; background: var(--track); border-radius: 7px; overflow: hidden; }
.lane-band { position: absolute; top: 0; bottom: 0; background: var(--sun-band); border-left: 1.5px solid var(--sun); border-right: 1.5px solid var(--sun); }
.lane-fill { position: absolute; left: 0; top: 3px; bottom: 3px; border-radius: 0 5px 5px 0; background: var(--sun); }
.lane-read { grid-area: read; text-align: right; white-space: nowrap; font-size: 1.05rem; }
.lane-read span { color: var(--muted); margin-left: 8px; font-size: 0.95rem; }
.lane-note { grid-area: note; font-size: 0.85rem; color: var(--muted); margin-top: -2px; }
.lane-down .lane-tag { border-color: var(--bad); color: var(--bad); }
.lane-down .lane-fill { background: var(--bad); }
.lane-down .lane-note { color: var(--bad); font-weight: 600; }
.lane-low .lane-tag { border-color: var(--warn); color: var(--warn); }
.lane-low .lane-fill { background: var(--warn); }
.lane-low .lane-note { color: var(--warn); font-weight: 600; }
.lane-night .lane-fill, .lane-learning .lane-fill { background: var(--night); }
.lane-unused { opacity: 0.6; }
.lane-unused .lane-tag { border-style: dashed; }
.lane-unused .lane-fill { background: var(--night); }

.power { margin: 8px 0 6px; font-size: 0.95rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; }
.power b { color: var(--ink); }
.bat { display: inline-flex; align-items: center; gap: 6px; }
.bat-cell { position: relative; width: 30px; height: 14px; border: 1.5px solid var(--ink); border-radius: 3px; display: inline-block; }
.bat-cell::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 5px; background: var(--ink); border-radius: 0 1px 1px 0; }
.bat-cell span { position: absolute; left: 1px; top: 1px; bottom: 1px; max-width: calc(100% - 2px); background: var(--ok); border-radius: 1px; }
.grid-off { color: var(--bad); font-weight: 600; }
.sev { font-size: 0.8rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.sev-critical { background: var(--bad-soft); color: var(--bad); }
.sev-warning { background: var(--warn-soft); color: var(--warn); }
.sev-info { background: var(--off-soft); color: var(--ink); }
.todo { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.todo li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 6px; }
.todo-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }

/* Alerts */
.alerts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.alert { border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius); padding: 12px 14px 4px; background: var(--card); }
.alert-bad { border-left-color: var(--bad); }
.alert-good { border-left-color: var(--ok); }
.alert-note { border-left-color: var(--sun); }
.alert-fixed { border-left-color: var(--line); }
.alert-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.alert p { margin-bottom: 8px; }
.tag { font-size: 0.8rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-bad { background: var(--bad-soft); color: var(--bad); }

/* Tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-weight: 600; color: var(--muted); font-size: 0.85rem; }
.tbl tr:last-child td { border-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat b { display: block; font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.9rem; }
.stat-bad b { color: var(--bad); }

/* Chart */
.chart { margin: 8px 0 4px; }
.chart svg { width: 100%; height: 160px; display: block; background: var(--paper); border-radius: 6px; }
.ch-grid { stroke: var(--line); }
.ch-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ch-0 { stroke: var(--sun); color: var(--sun); }
.ch-1 { stroke: var(--blue); color: var(--blue); }
.ch-2 { stroke: var(--ok); color: var(--ok); }
.ch-3 { stroke: var(--bad); color: var(--bad); }
.chart figcaption { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.85rem; margin-top: 6px; }
.ch-key { font-weight: 600; }
.ch-key::before { content: ""; display: inline-block; width: 14px; height: 3px; background: currentColor; margin-right: 6px; vertical-align: middle; }

/* Landing */
.hero { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; padding: 18px 0 28px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.05fr 0.95fr; padding-top: 34px; } }
.hero h1 { font-size: 2.45rem; max-width: 15ch; }
@media (min-width: 860px) { .hero h1 { font-size: 3rem; } }
.hero .lede { font-size: 1.15rem; max-width: 34em; color: var(--ink); }
.demo .sys { box-shadow: 0 1px 0 var(--line); }
.demo-alert { margin: 8px 0 4px; padding: 10px 12px; border-radius: 6px; background: var(--bad-soft); color: var(--bad); font-size: 0.95rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: var(--on-blue); font-weight: 700; margin-bottom: 8px; }
.section { margin: 36px 0; }
.watch { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.watch div { border-top: 3px solid var(--sun); padding-top: 10px; }
.prices { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 640px; }
.price { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; }
.price-best { border-color: var(--blue); }
.price .amt { font: 700 2.2rem/1 "Barlow Semi Condensed", sans-serif; margin: 6px 0 4px; }
.price .per { color: var(--muted); }
.faq dt { font-weight: 700; margin-top: 14px; }
.faq dd { margin: 4px 0 0; max-width: 46em; }
.auth { max-width: 460px; margin: 10px auto; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.netcheck { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.netcheck p { margin: 0 0 8px; }
.ok-text { color: var(--ok); font-weight: 600; }
.bad-text { color: var(--bad); font-weight: 600; }
.note-line { margin: 4px 0 8px; padding: 8px 10px; border-radius: var(--radius); background: var(--warn-soft); color: var(--ink); }
.netcheck select { width: auto; max-width: 100%; }

/* ---------- landing: live power-flow hero ---------- */
.hero-live h1 { font-family: "Barlow Semi Condensed", "Barlow", "Segoe UI", Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -0.015em; max-width: 13ch; }
@media (min-width: 860px) { .hero-live h1 { font-size: 3.4rem; } }
.btn-big { padding: 13px 20px; font-size: 1.05rem; }
.flow { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; box-shadow: 0 18px 40px -24px rgba(29, 95, 168, 0.45); }
.flow-head { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--muted); }
.flow-head b { color: var(--ink); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.flow-svg { display: block; width: 100%; height: auto; margin: 6px 0 4px; }
.wire { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 7 9; animation: wire-run 1.1s linear infinite; }
.wire-sun { stroke: var(--sun); }
.wire-bat { stroke: var(--ok); }
.wire-load { stroke: var(--blue); }
.wire-grid { stroke: var(--bad); stroke-dasharray: 3 7; opacity: 0.55; animation: none; }
.xmark path { stroke: var(--bad); stroke-width: 3; stroke-linecap: round; }
@keyframes wire-run { to { stroke-dashoffset: -32; } }
.sun-core { fill: var(--sun); }
.sun-rays { stroke: var(--sun); stroke-width: 2.4; stroke-linecap: round; }
.bat-case { fill: none; stroke: var(--ok); stroke-width: 2.4; }
.bat-nub, .bat-fill { fill: var(--ok); }
.inv { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.inv-screen { fill: var(--blue); opacity: 0.85; }
.inv-led { fill: var(--ok); }
.house { fill: var(--paper); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.pylon { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-label { font: 600 12px "Barlow", "Segoe UI", Helvetica, Arial, sans-serif; fill: var(--ink); }
.t-bad { fill: var(--bad); }
.sms { margin: 8px 0 0; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--paper); border: 1px solid var(--line); font-size: 0.95rem; animation: sms-in 0.45s ease-out 0.9s both; }
.sms b { display: block; font-size: 0.82rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
@keyframes sms-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .wire, .sms { animation: none; } }
.works-with { margin: -8px 0 26px; color: var(--muted); }
.works-with b { color: var(--ink); font-weight: 600; }
.watch-parts div { border-top-width: 4px; }
.watch-parts .part-fault { border-top-color: var(--bad); }
.watch-parts .part-bat { border-top-color: var(--ok); }
.watch-parts .part-grid { border-top-color: var(--blue); }
.watch-parts .part-off { border-top-color: var(--off); }
.watch-parts .part-sun { border-top-color: var(--sun); }
.watch-parts .part-svc { border-top-color: var(--ink); }
.band { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 20px 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--sun); }
.band > div { flex: 1 1 320px; max-width: 60ch; }
.band p { margin: 0; }
.band-big { font: 700 2rem/1.1 "Barlow Semi Condensed", "Barlow", "Segoe UI", sans-serif; margin-bottom: 6px !important; }

/* ---------- home page: bold and colourful ---------- */
body.home { overflow-x: hidden; --night: #0b1f33; --night-2: #12304d; --sunny: #ffc21a; --volt: #34d17e; --sky: #45a6ff; --hot: #ff5d4f; --violet: #9b7bff; }
.home .main { padding-top: 0; }
.home .top { background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.home .mark, .home .nav a, .home .nav-toggle { color: #fff; }
.home .nav-toggle { border-color: rgba(255, 255, 255, 0.25); }
.home .nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.home .nav .nav-cta { background: var(--sunny); color: var(--night); font-weight: 700; }
.home .nav .nav-cta:hover { background: #ffd34f; color: var(--night); }
.home .mark-sun { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--sunny); background: var(--sunny); }
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }
.home h1, .home h2 { font-family: "Barlow Semi Condensed", "Barlow", "Segoe UI", Helvetica, Arial, sans-serif; font-weight: 800; letter-spacing: -0.015em; }
.home h2 { font-size: 2.1rem; line-height: 1.05; }
.btn-sun { background: var(--sunny); color: var(--night); font-weight: 700; }
.btn-sun:hover { background: #ffd34f; color: var(--night); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: #fff; }
.btn-night { background: var(--night); color: #fff; font-weight: 700; }
.btn-night:hover { background: var(--night-2); color: #fff; }

.h-hero { background: radial-gradient(900px 420px at 85% -10%, rgba(255, 194, 26, 0.22), transparent 60%), radial-gradient(700px 400px at -10% 110%, rgba(69, 166, 255, 0.18), transparent 60%), var(--night); color: #dbe7f3; padding-top: 34px; padding-bottom: 46px; }
.h-hero-grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .h-hero-grid { grid-template-columns: 1.08fr 0.92fr; } }
.h-hero h1 { color: #fff; font-size: 2.7rem; line-height: 1.02; margin: 14px 0 16px; max-width: 14ch; }
@media (min-width: 900px) { .h-hero h1 { font-size: 3.9rem; } }
.hl { background: var(--sunny); color: var(--night); padding: 0 0.16em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.h-lede { font-size: 1.14rem; max-width: 36em; color: #c9d8e8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; background: rgba(255, 255, 255, 0.08); color: #fff; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.chip-sun::before { background: var(--sunny); }
.chip-volt::before { background: var(--volt); }
.chip-sky::before { background: var(--sky); }
.h-stats { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; }
.h-stats li { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 10px 12px; }
.h-stats b { display: block; font: 800 1.6rem/1.1 "Barlow Semi Condensed", "Barlow", sans-serif; color: var(--sunny); }
.h-stats li:nth-child(2) b { color: var(--volt); }
.h-stats li:nth-child(3) b { color: var(--sky); }
.h-stats span { font-size: 0.86rem; color: #b6c7d9; }

.flow-dark { background: var(--night-2); border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7); }
.flow-dark .flow-head { color: #9fb4c9; }
.flow-dark .flow-head b { color: #fff; }
.flow-dark .t-label { fill: #e3edf7; }
.flow-dark .t-bad { fill: var(--hot); }
.flow-dark .wire-sun { stroke: var(--sunny); }
.flow-dark .wire-bat { stroke: var(--volt); }
.flow-dark .wire-load { stroke: var(--sky); }
.flow-dark .wire-grid, .flow-dark .xmark path { stroke: var(--hot); }
.flow-dark .sun-core { fill: var(--sunny); }
.flow-dark .sun-rays { stroke: var(--sunny); }
.flow-dark .bat-case { stroke: var(--volt); }
.flow-dark .bat-nub, .flow-dark .bat-fill { fill: var(--volt); }
.flow-dark .inv, .flow-dark .house { fill: var(--night); stroke: #cfe0f2; }
.flow-dark .inv-screen { fill: var(--sky); }
.flow-dark .inv-led { fill: var(--volt); }
.flow-dark .pylon { stroke: #8fa6bd; }
.flow-dark .sms { background: #fff; color: #14212e; border: 0; }
.flow-dark .sms b { color: #5b6b7a; }

.h-stripe { position: relative; background: var(--sunny); color: #14212e; padding-top: 22px; padding-bottom: 22px; }
.h-stripe::before, .h-stripe::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: repeating-linear-gradient(-45deg, #14212e 0 12px, var(--sunny) 12px 24px); }
.h-stripe::before { top: 0; }
.h-stripe::after { bottom: 0; }
.h-stripe-in { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.h-stripe p { margin: 0; font-size: 1.15rem; max-width: 46em; }
.h-stripe b { font: 800 1.35rem "Barlow Semi Condensed", "Barlow", sans-serif; margin-right: 6px; }

.h-sec { margin: 56px 0; }
.h-sub { margin: -4px 0 20px; color: var(--muted); font-size: 1.08rem; }
.h-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.h-card { --c: var(--blue); --t: var(--paper); position: relative; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 14px; padding: 18px 18px 46px; }
.h-card .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--t); stroke: var(--c); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.h-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.h-card p { margin: 0; color: var(--muted); }
.h-card .via { position: absolute; left: 18px; bottom: 14px; font-size: 0.82rem; font-weight: 700; color: var(--c); background: var(--t); padding: 3px 10px; border-radius: 999px; }
.c-red { --c: #d93a2f; --t: #fde8e6; }
.c-green { --c: #1f8a56; --t: #e0f5ea; }
.c-blue { --c: #1d6fd1; --t: #e3effd; }
.c-grey { --c: #5f6f80; --t: #eaeef2; }
.c-sun { --c: #c98a00; --t: #fff3d1; }
.c-violet { --c: #6d4fe0; --t: #eee9ff; }

.h-dark { background: var(--night); color: #c9d8e8; padding-top: 52px; padding-bottom: 56px; }
.h-dark h2 { color: #fff; }
.h-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.h-steps li { background: var(--night-2); border-radius: 14px; padding: 20px; border: 1px solid rgba(255, 255, 255, 0.08); }
.h-steps .n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--sunny); color: var(--night); font: 800 1.4rem "Barlow Semi Condensed", "Barlow", sans-serif; margin-bottom: 12px; }
.h-steps li:nth-child(2) .n { background: var(--volt); }
.h-steps li:nth-child(3) .n { background: var(--sky); }
.h-steps h3 { color: #fff; font-size: 1.2rem; }
.h-steps p { margin: 0; }

.h-note { margin: 12px 0 0; color: #b6c7d9; }
.h-note b { color: var(--sunny); }
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; margin-top: 26px; }
@media (min-width: 800px) { .plans { grid-template-columns: minmax(300px, 0.85fr) 1.4fr; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 26px 22px 22px; }
.plan h3 { font-size: 1.25rem; margin: 0; }
.plan-amt { font: 800 3.3rem/1 "Barlow Semi Condensed", "Barlow", sans-serif; margin: 10px 0 4px; }
.plan-amt small { font-size: 1.05rem; font-weight: 700; color: var(--muted); margin-left: 3px; }
.plan-per { color: var(--muted); margin: 0 0 18px; }
.plan .btn { margin-top: auto; text-align: center; }
.plan-best { background: var(--night); color: #c9d8e8; border-color: var(--sunny); box-shadow: 0 26px 60px -32px rgba(11, 31, 51, 0.9); }
.plan-best h3 { color: #fff; }
.plan-best .plan-amt { color: var(--sunny); }
.plan-best .plan-amt small, .plan-best .plan-per { color: #b6c7d9; }
.plan-save { color: var(--volt); font-weight: 700; }
.plan-tag { position: absolute; top: -13px; left: 20px; margin: 0; background: var(--sunny); color: var(--night); font-weight: 800; font-size: 0.85rem; padding: 3px 12px; border-radius: 999px; }
.plan-points { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.plan-points li { padding-left: 22px; position: relative; }
.plan-points li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--volt); }
.plan-incl { background: linear-gradient(135deg, #e0f5ea, #e3effd); border-radius: 18px; padding: 22px; }
.plan-incl h3 { font-size: 1.15rem; margin: 0; }
.plan-incl .ticks { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 18px; margin-bottom: 0; }
.pays { display: flex; gap: 14px; align-items: flex-start; margin: 16px 0 10px; background: #fff3d1; border-left: 5px solid var(--sunny); border-radius: 14px; padding: 16px 18px; color: #3a2c00; }
.pays .ic { flex: 0 0 auto; width: 34px; height: 34px; stroke: #c98a00; fill: none; stroke-width: 2; stroke-linecap: round; }
.pays p { margin: 0; max-width: 62em; }
.ticks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ticks li { padding-left: 28px; position: relative; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #1f8a56; }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.h-inst { background: linear-gradient(120deg, #1d5fa8, #2a7fd4 55%, #34a3c9); color: #eaf3fc; padding-top: 48px; padding-bottom: 50px; }
.h-inst h2 { color: #fff; }
.h-inst-in { display: grid; gap: 22px; align-items: center; }
@media (min-width: 820px) { .h-inst-in { grid-template-columns: 1.5fr 1fr; } }
.h-inst p { max-width: 44em; }
.h-inst-cta { background: rgba(11, 31, 51, 0.35); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 16px; padding: 22px; text-align: center; }
.h-inst-cta .amt { font: 800 2.3rem/1 "Barlow Semi Condensed", "Barlow", sans-serif; color: #fff; margin: 0 0 4px; }
.h-inst-cta p { margin: 0 0 14px; }

.h-faq .faq dt { border-left: 4px solid var(--sun); padding-left: 10px; }
.h-faq .faq dt:nth-of-type(2) { border-left-color: #1f8a56; }
.h-faq .faq dt:nth-of-type(3) { border-left-color: #1d6fd1; }
.h-faq .faq dt:nth-of-type(4) { border-left-color: #d93a2f; }
.h-faq .faq dt:nth-of-type(5) { border-left-color: #6d4fe0; }
.h-faq .faq dt:nth-of-type(6) { border-left-color: #5f6f80; }
.unit-line { margin-top: 10px; align-items: center; }
.h-faq .faq dd { padding-left: 14px; }

.home .foot { background: var(--night); color: #9fb4c9; border-top: 0; }
.home .foot a { color: var(--sunny); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .c-red { --c: #ff7a6e; --t: #3a1d1b; }
  :root:not([data-theme="light"]) .c-green { --c: #4cc38a; --t: #173327; }
  :root:not([data-theme="light"]) .c-blue { --c: #6aaeff; --t: #182c45; }
  :root:not([data-theme="light"]) .c-grey { --c: #a3afbb; --t: #24303c; }
  :root:not([data-theme="light"]) .c-sun { --c: #f0b22a; --t: #3a2d12; }
  :root:not([data-theme="light"]) .c-violet { --c: #b39dff; --t: #2a2347; }
  :root:not([data-theme="light"]) .ticks li::before { background: #2f9d68; }
  :root:not([data-theme="light"]) .plan-incl { background: linear-gradient(135deg, #173327, #182c45); }
  :root:not([data-theme="light"]) .pays { background: #3a2d12; color: #f5e3b3; }
  :root:not([data-theme="light"]) .plan .btn-night { background: #e3edf7; color: #0b1f33; }
}
:root[data-theme="dark"] .plan-incl { background: linear-gradient(135deg, #173327, #182c45); }
:root[data-theme="dark"] .pays { background: #3a2d12; color: #f5e3b3; }
:root[data-theme="dark"] .plan .btn-night { background: #e3edf7; color: #0b1f33; }
@media (max-width: 520px) { .h-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .h-stats b { font-size: 1.3rem; } .h-stats span { font-size: 0.78rem; } .home h2 { font-size: 1.8rem; } }
.h-stats span { display: block; line-height: 1.3; margin-top: 2px; }
.h-stripe p { flex: 1 1 380px; }
