/* =====================================================================
   Array · design tokens
   Solar and battery installers. Light is "Midday"; dark is "After sunset".
   --panel is the one accent (buttons, links, chosen options, solar cells, the lit words).
   --sun is a warm amber, for fills only (the charge under the lit words, generation, the battery level, totals); text on it is ink. --sun-ink is its text colour.
   --ok marks savings and steps done; --alert marks invalid fields and anything over a limit.
   ===================================================================== */
:root {
  color-scheme: light;
  --paper: #f5f7f6;
  --card: #ffffff;
  --well: #e9eeec;
  --line: #d3dbd8;
  --ink: #0e1a22;
  --ink-2: #2e3c45;
  --muted: #55636c;
  --panel: #1747a6;
  --panel-2: #10367f;
  --on-panel: #ffffff;
  --panel-soft: #e1e9f8;
  --sun: #ffb020;
  --sun-soft: #fff1d6;
  --sun-ink: #7a4b00;
  --ok: #1b6e3c;
  --alert: #b3261e;
  --focus: #1747a6;
  --shadow-card: 0 1px 2px rgba(14, 26, 34, 0.06), 0 18px 36px -26px rgba(14, 26, 34, 0.42);
  --shadow-lift: 0 30px 60px -30px rgba(14, 26, 34, 0.5);

  --display: "Saira", system-ui, sans-serif;
  --body: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "B612 Mono", ui-monospace, Menlo, monospace;

  --fs-h1: clamp(44px, 6vw, 94px);
  --fs-h2: clamp(33px, 4vw, 58px);
  --fs-h3: 22px;
  --fs-lead: clamp(17.5px, 1.35vw, 20.5px);
  --fs-body: 16.5px;
  --fs-small: 15px;
  --fs-label: 12px;

  --wrap: 1200px;
  --gutter: max(20px, 4vw);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 40px; --s-7: 64px; --s-8: 104px;

  --r-s: 6px;
  --r-m: 12px;
  --r-l: 18px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --d-fast: 150ms;
  --d: 300ms;
  --d-slow: 900ms;
}

/* ---------- After sunset ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0b1119;
    --card: #131b26;
    --well: #0f1620;
    --line: #263241;
    --ink: #eef3f6;
    --ink-2: #cdd6dd;
    --muted: #9aa7b2;
    --panel: #8fb4ff;
    --panel-2: #b5ceff;
    --on-panel: #071a3d;
    --panel-soft: #15233a;
    --sun: #ffb020;
    --sun-soft: #2c210c;
    --sun-ink: #ffc04d;
    --ok: #84d6a2;
    --alert: #ff9a90;
    --focus: #8fb4ff;
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 34px -20px rgba(0, 0, 0, 0.85);
    --shadow-lift: 0 30px 60px -26px rgba(0, 0, 0, 0.9);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b1119;
  --card: #131b26;
  --well: #0f1620;
  --line: #263241;
  --ink: #eef3f6;
  --ink-2: #cdd6dd;
  --muted: #9aa7b2;
  --panel: #8fb4ff;
  --panel-2: #b5ceff;
  --on-panel: #071a3d;
  --panel-soft: #15233a;
  --sun: #ffb020;
  --sun-soft: #2c210c;
  --sun-ink: #ffc04d;
  --ok: #84d6a2;
  --alert: #ff9a90;
  --focus: #8fb4ff;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 34px -20px rgba(0, 0, 0, 0.85);
  --shadow-lift: 0 30px 60px -26px rgba(0, 0, 0, 0.9);
}
