/* SolaStat website — Apple-style layout with the SolaStat app palette.
   Dark "stage" sections alternate with light "paper" sections; big type,
   generous spacing, rounded tiles. Colours match the app's energy flow. */

:root {
  --solar: #f59e0b;
  --solar-hi: #fde047;
  --solar-deep: #f97316;
  --grid: #818cf8;
  --battery: #34d399;
  --home: #60a5fa;
  --danger: #f87171;

  --stage: #000;
  --stage-2: #0b1120;
  --stage-card: #111827;
  --stage-line: #1f2937;
  --paper: #f5f5f7;
  --white: #fff;

  --ink: #1d1d1f;
  --ink-muted: #6e6e73;
  --light: #f5f5f7;
  --light-muted: #a1a1aa;

  --radius: 28px;
  --radius-sm: 16px;
  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sun-grad: linear-gradient(100deg, var(--solar-hi) 0%, var(--solar) 45%, var(--solar-deep) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.i18n-pending body { opacity: 0; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: opacity .25s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ── Sections ───────────────────────────────────────────── */
section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.sec-stage { background: var(--stage); color: var(--light); }
.sec-stage-2 { background: var(--stage-2); color: var(--light); }
.sec-paper { background: var(--paper); }
.sec-white { background: var(--white); }

.eyebrow {
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--solar);
}
.eyebrow.battery { color: var(--battery); }
.eyebrow.grid { color: var(--grid); }
.eyebrow.home { color: var(--home); }

.display {
  font-size: clamp(44px, 7.4vw, 96px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.headline {
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.title { font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; }
.lead {
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink-muted);
  max-width: 760px;
  margin-top: 18px;
}
.sec-stage .lead, .sec-stage-2 .lead { color: var(--light-muted); }
.center .lead { margin-left: auto; margin-right: auto; }
.grad { background: var(--sun-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-battery { background: linear-gradient(100deg, #6ee7b7, var(--battery), #10b981); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--ink-muted); }
.sec-stage .muted, .sec-stage-2 .muted { color: var(--light-muted); }
.small { font-size: 14px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 980px;
  padding: 12px 24px;
  font-size: 17px; font-weight: 500;
  border: 0; cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-primary { background: var(--sun-grad); color: #1d1d1f; }
.btn-ghost { background: transparent; color: var(--solar); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.link-more { color: var(--solar); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.link-more::after { content: "›"; font-size: 1.2em; line-height: 1; transition: transform .15s; }
.link-more:hover::after { transform: translateX(3px); }
.sec-paper .link-more, .sec-white .link-more { color: #c2410c; }
.sec-paper .btn-ghost, .sec-white .btn-ghost { color: #c2410c; }
.cta-row { display: flex; gap: 14px 24px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.center .cta-row { justify-content: center; }

/* ── Navigation ─────────────────────────────────────────── */
#site-header { position: sticky; top: 0; z-index: 100; }
.nav {
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #e5e7eb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.nav-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; color: #fff; }
.nav-logo img { border-radius: 7px; }
.wordmark { letter-spacing: -0.02em; font-weight: 800; }
.wordmark b { font-weight: inherit; background: var(--sun-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 26px; margin: 0 auto; font-size: 13px; }
.nav-links a { opacity: .82; transition: opacity .15s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active { color: var(--solar-hi); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-picker { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; position: relative; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  background: transparent; color: inherit; border: 0;
  font: inherit; cursor: pointer; padding: 2px 2px;
  max-width: 120px;
}
.lang-select option { color: #111; }
.nav .lang-select { color: #e5e7eb; }
.nav-toggle { display: none; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 7px; right: 7px; height: 1.5px; background: #e5e7eb; transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 12px; }
.nav-toggle span:last-child { top: 19px; }
.nav-open .nav-toggle span:first-child { top: 16px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 16px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav .lang-picker { display: none; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 8px var(--gutter) 24px;
    font-size: 22px; font-weight: 600;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-actions { margin-left: auto; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 8vw, 100px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 80%;
  background: radial-gradient(closest-side, rgba(245, 158, 11, 0.22), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero .display { max-width: 980px; margin: 0 auto; }
.hero-price { margin-top: 14px; color: var(--light-muted); font-size: 17px; }

/* ── Energy flow ────────────────────────────────────────── */
.flow-stage { margin: clamp(40px, 6vw, 70px) auto 0; max-width: 560px; }
#flow-svg { width: 100%; height: auto; overflow: visible; }
.flow-line { stroke-width: 3; stroke-dasharray: 6 6; opacity: .18; transition: opacity .4s; fill: none; }
.flow-line.on { opacity: .9; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.flow-node { transition: filter .5s; }
.flow-node.active { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { filter: drop-shadow(0 0 0 transparent); } 50% { filter: drop-shadow(0 0 10px var(--glow)); } }
.flow-val { font: 700 14px var(--font); fill: #f8fafc; }
.flow-lbl { font: 600 8.5px var(--font); letter-spacing: .08em; fill: #94a3b8; text-transform: uppercase; }
.flow-dir { font: 600 8px var(--font); fill: #cbd5e1; }
.flow-caption {
  text-align: center; min-height: 1.5em; margin-top: 18px;
  font-size: 17px; color: var(--light-muted);
  opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s;
}
.flow-caption.show { opacity: 1; transform: none; }
.flow-dots { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.flow-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #3f3f46; cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.flow-dots button.on { background: var(--solar); transform: scale(1.25); }

/* ── Bento tiles ────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 56px; }
.tile {
  grid-column: span 2;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 32px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 250px;
  position: relative; overflow: hidden;
}
.sec-stage .tile, .sec-stage-2 .tile { background: var(--stage-card); color: var(--light); }
.sec-white .tile { background: var(--paper); }
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; }
.tile h3 { font-size: 24px; font-weight: 700; }
.tile p { color: var(--ink-muted); font-size: 16px; }
.sec-stage .tile p, .sec-stage-2 .tile p { color: var(--light-muted); }
.tile .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--solar); background: rgba(245, 158, 11, 0.12);
}
.tile .ico svg, .tile .ico img { width: 24px; height: 24px; }
.ico.battery { color: #059669; background: rgba(52, 211, 153, 0.15); }
.ico.grid { color: #6366f1; background: rgba(129, 140, 248, 0.15); }
.ico.home { color: #2563eb; background: rgba(96, 165, 250, 0.15); }
.sec-stage .ico.battery, .sec-stage-2 .ico.battery { color: var(--battery); }
.sec-stage .ico.grid, .sec-stage-2 .ico.grid { color: var(--grid); }
.sec-stage .ico.home, .sec-stage-2 .ico.home { color: var(--home); }
.tile .big { font-size: clamp(40px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide { grid-column: span 2; }
  .tile.full { grid-column: span 2; }
  .tile.half-m { grid-column: span 1; }
}
@media (max-width: 560px) {
  .tile.half-m { grid-column: span 2; }
  .tile { padding: 28px 24px; min-height: 0; }
}

/* ── Split feature rows ─────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.points { display: grid; gap: 18px; margin-top: 28px; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point .ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--solar); background: rgba(245,158,11,.12); }
.point .ico svg, .point .ico img { width: 20px; height: 20px; }
.point h4 { font-size: 18px; margin-bottom: 2px; }
.point p { color: var(--ink-muted); font-size: 15px; }
.sec-stage .point p, .sec-stage-2 .point p { color: var(--light-muted); }

/* ── Media slots (images) ───────────────────────────────── */
.media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper);
  position: relative;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.contain img { object-fit: contain; }
.notif-demo {
  position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 48px 8% 26px;
  background: radial-gradient(120% 90% at 85% 0%, rgba(245,158,11,.45), transparent 60%),
              radial-gradient(90% 80% at 0% 100%, rgba(129,140,248,.45), transparent 60%), #0b1120;
  text-align: left; font-family: var(--font);
}
.notif-demo .nd-clock { position: absolute; top: 16px; margin: 0; left: 0; right: 0; text-align: center; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.75); }
.nd-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 18px;
  background: rgba(248,250,252,.82); color: #0b1120; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.6);
}
.nd-card img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.nd-card > div { flex: 1; min-width: 0; }
.notif-demo .nd-card p { margin: 0; }
.notif-demo .nd-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #64748b; }
.notif-demo .nd-head b { color: #334155; font-weight: 600; }
.notif-demo .nd-title { font-size: 14px; font-weight: 700; color: #0b1120; margin-top: 1px !important; }
.notif-demo .nd-body { font-size: 13px; line-height: 1.35; color: #1e293b; }
.nd-old { opacity: .55; transform: scale(.96); }
/* The new notification drops in once the tile scrolls into view. */
.reveal:not(.in) .nd-card:not(.nd-old) { opacity: 0; }
.reveal.in .nd-card:not(.nd-old) { animation: ndIn .6s cubic-bezier(.2,.8,.2,1) .7s both; }
@keyframes ndIn { from { opacity: 0; transform: translateY(-24px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .notif-demo { aspect-ratio: auto; padding: 46px 14px 22px; } }
@media (prefers-reduced-motion: reduce) { .notif-demo .nd-card { animation: none !important; } }
.sec-stage .media, .sec-stage-2 .media { background: var(--stage-card); }
.media.placeholder {
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(245,158,11,.18), transparent 60%),
    radial-gradient(90% 90% at 90% 90%, rgba(129,140,248,.16), transparent 60%),
    linear-gradient(180deg, #eef0f4, #e3e6ec);
  border: 1.5px dashed rgba(0,0,0,.12);
}
.sec-stage .media.placeholder, .sec-stage-2 .media.placeholder {
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(245,158,11,.22), transparent 60%),
    radial-gradient(90% 90% at 90% 90%, rgba(129,140,248,.2), transparent 60%),
    linear-gradient(180deg, #111827, #0b1120);
  border-color: rgba(255,255,255,.12);
}
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px; }
.ph-icon { width: 44px; height: 44px; color: var(--solar); opacity: .8; }
.ph-file { font-weight: 600; font-size: 15px; }
.ph-path { font-size: 12px; color: var(--ink-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.sec-stage .ph-path, .sec-stage-2 .ph-path { color: var(--light-muted); }

/* ── Steps ──────────────────────────────────────────────── */
.devices { max-width: 820px; margin: 48px auto 0; }
.devices .media { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(11,17,32,.35); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 32px; }
.sec-stage .step, .sec-stage-2 .step { background: var(--stage-card); }
.sec-white .step { background: var(--paper); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sun-grad); color: #1d1d1f; font-weight: 700;
  margin-bottom: 18px;
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--ink-muted); font-size: 16px; }
.sec-stage .step p, .sec-stage-2 .step p { color: var(--light-muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ── Smart Spot price chart ─────────────────────────────── */
.price-chart { margin-top: 44px; }
.bars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 5px; align-items: end; height: 240px; }
.bar { height: 100%; display: flex; align-items: flex-end; }
.bar span {
  display: block; width: 100%; height: 0; border-radius: 6px 6px 3px 3px;
  background: #3f3f46;
  transition: height .9s cubic-bezier(.2,.8,.2,1) var(--d);
}
.sec-paper .bar span, .sec-white .bar span { background: #d4d4d8; }
.reveal.in .bar span, .price-chart.in .bar span { height: var(--h); }
.bar.charge span { background: linear-gradient(180deg, #6ee7b7, var(--battery)); }
.bar.inject span { background: var(--sun-grad); }
.bar-axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--light-muted); }
.sec-paper .bar-axis, .sec-white .bar-axis { color: var(--ink-muted); }
.chart-legend { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin-top: 22px; font-size: 15px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.chart-legend .l-charge i { background: var(--battery); }
.chart-legend .l-inject i { background: var(--solar); }
.chart-legend .l-other i { background: #71717a; }
@media (max-width: 560px) { .bars { gap: 2px; height: 180px; } }

/* ── Calculator ─────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 48px; }
.calc-inputs, .calc-result { border-radius: var(--radius); padding: 34px; background: var(--stage-card); }
.sec-paper .calc-inputs, .sec-paper .calc-result { background: var(--white); }
.calc-field + .calc-field { margin-top: 26px; }
.calc-field label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 10px; }
.calc-field output { color: var(--solar); font-variant-numeric: tabular-nums; }
.sec-paper .calc-field output { color: #c2410c; }
input[type=range] { width: 100%; accent-color: var(--solar); }
.calc-result { display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
.calc-result .big { font-size: clamp(48px, 6vw, 72px); font-weight: 700; letter-spacing: -0.03em; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

/* ── Pricing ────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; align-items: stretch; }
.plan {
  background: var(--white); border-radius: var(--radius); padding: 36px 30px;
  display: flex; flex-direction: column; gap: 14px; position: relative;
}
.sec-white .plan { background: var(--paper); }
.sec-stage .plan, .sec-stage-2 .plan { background: var(--stage-card); }
.plan.featured { box-shadow: 0 0 0 2px var(--solar), 0 30px 60px -30px rgba(245,158,11,.45); }
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--sun-grad); color: #1d1d1f; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 980px; white-space: nowrap;
}
.plan h3 { font-size: 24px; }
.plan .price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--ink-muted); letter-spacing: 0; }
.sec-stage .plan .price small, .sec-stage-2 .plan .price small { color: var(--light-muted); }
.plan ul { display: grid; gap: 10px; margin: 6px 0 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: rgba(52,211,153,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat; }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ── Tables ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin-top: 44px; border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
table.spec { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
table.spec th, table.spec td { text-align: left; padding: 16px 18px; border-bottom: 1px solid #e5e5ea; vertical-align: top; }
table.spec th { font-weight: 600; color: var(--ink-muted); font-size: 14px; }
table.spec td:first-child { font-weight: 600; width: 32%; }
.sec-stage table.spec th, .sec-stage table.spec td, .sec-stage-2 table.spec th, .sec-stage-2 table.spec td { border-color: var(--stage-line); }
.sec-stage table.spec th, .sec-stage-2 table.spec th { color: var(--light-muted); }
.yes { color: #059669; font-weight: 600; }
.soon { color: #b45309; font-weight: 600; }
.sec-stage .yes, .sec-stage-2 .yes { color: var(--battery); }
.sec-stage .soon, .sec-stage-2 .soon { color: var(--solar); }

/* ── Brand chips ────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 980px;
  background: var(--white); font-weight: 600; font-size: 17px;
}
.sec-stage .chip, .sec-stage-2 .chip { background: var(--stage-card); }
.chip img { height: 20px; width: auto; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid #d2d2d7; padding: 22px 0; }
.faq summary { cursor: pointer; font-size: 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--ink-muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-muted); font-size: 17px; }

/* ── Callout / notes ────────────────────────────────────── */
.note { margin-top: 28px; font-size: 14px; color: var(--ink-muted); }
.sec-stage .note, .sec-stage-2 .note { color: var(--light-muted); }
.callout { border-radius: var(--radius); padding: clamp(36px, 5vw, 64px); background: var(--stage-card); color: var(--light); text-align: center; }

/* ── Footer ─────────────────────────────────────────────── */
#site-footer { background: var(--paper); color: var(--ink-muted); font-size: 13px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 48px var(--gutter) 28px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; border-bottom: 1px solid #d2d2d7; }
.footer-brand .nav-logo { color: var(--ink); }
.footer-brand p { margin-top: 12px; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 13px; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.footer-cols li + li { margin-top: 8px; }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter) 36px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ── Reveal on scroll ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .flow-line.on, .flow-node.active { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Interactive setup wizard demo (same look as the app's /wizard) ── */
/* Smartphone frame: the wizard is used on a phone, joined to the Hub's Wi-Fi */
.wz-window {
  width: 100%; max-width: 420px; height: 820px; margin: 48px auto 0;
  padding: 11px; border-radius: 56px;
  background: linear-gradient(145deg, #2a2d34, #0c0d10);
  box-shadow: 0 0 0 1.5px #3a3d45, 0 50px 90px -35px rgba(129, 140, 248, .45), inset 0 0 2px rgba(255,255,255,.15);
  display: flex; flex-direction: column; position: relative; text-align: left;
}
.wz-window::after { content: ""; position: absolute; bottom: 20px; left: 50%; width: 120px; height: 5px; margin-left: -60px; border-radius: 3px; background: rgba(241,245,249,.55); pointer-events: none; }
.wz-bar { position: relative; display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 4px 26px 0 34px; background: #0f172a; border-radius: 46px 46px 0 0; color: #f1f5f9; flex: none; }
.wz-time { font-size: 15px; font-weight: 600; }
.wz-island { position: absolute; top: 11px; left: 50%; width: 112px; height: 32px; margin-left: -56px; border-radius: 20px; background: #000; }
.wz-icons { display: flex; align-items: center; gap: 5px; }
.wz-icons svg { fill: currentColor; }
.wz-url { background: #0f172a; padding: 2px 14px 8px; flex: none; }
.wz-url span { display: block; text-align: center; font-size: 12px; color: #94a3b8; background: #1e293b; border-radius: 12px; padding: 7px 10px; }
.wz { --bd: #334155; --card: #1e293b; --muted: #94a3b8; --blue: #1d4ed8; --ok: #34d399; padding: 14px 16px 40px; color: #f1f5f9; font-size: 15px; background: #0f172a; border-radius: 0 0 46px 46px; flex: 1; overflow-y: auto; scrollbar-width: none; }
.wz::-webkit-scrollbar { display: none; }
.wz-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.wz-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; }
.wz-brand img { border-radius: 9px; }
.wz-board { font-size: 11px; font-weight: 700; color: #0f172a; background: var(--sun-grad); border-radius: 6px; padding: 2px 6px; margin-left: 2px; }
.wz-note { font-size: 10px; text-align: right; max-width: 130px; color: var(--muted); border: 1px solid var(--bd); border-radius: 99px; padding: 3px 10px; }
.wz-progress { display: flex; align-items: flex-start; margin-bottom: 16px; }
.wz-dot { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 56px; }
.wz-dot span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--card); border: 1px solid var(--bd); color: var(--muted); transition: all .25s; }
.wz-dot label { font-size: 11px; color: var(--muted); }
.wz-dot.active span { background: var(--blue); border-color: var(--blue); color: #fff; }
.wz-dot.active label { color: #f1f5f9; font-weight: 600; }
.wz-dot.done span { background: rgba(52,211,153,.15); border-color: var(--ok); color: var(--ok); }
.wz-line { flex: 1; height: 1px; background: var(--bd); margin: 15px 2px 0; transition: background .25s; }
.wz-line.done { background: var(--ok); }
.wz-card { background: var(--card); border: 1px solid var(--bd); border-radius: 14px; padding: 16px; }
.wz-step { display: none; padding: 0; animation: wzIn .3s ease; }
.wz-step.active { display: block; }
@keyframes wzIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.wz-step h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -0.01em; }
.wz-hint { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }
.wz-label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; }
.wz-input { width: 100%; background: #0b1220; border: 1px solid var(--bd); border-radius: 8px; color: #f1f5f9; padding: 10px 12px; font: inherit; font-size: 14px; }
.wz-choices { display: grid; gap: 8px; }
.wz-choices.two { grid-template-columns: 1fr 1fr; }
.wz-choice { display: flex; align-items: center; gap: 10px; border: 1px solid var(--bd); border-radius: 11px; padding: 10px 12px; cursor: pointer; font-size: 14px; font-weight: 600; transition: border-color .15s, background .15s; }
.wz-choice:hover { border-color: var(--muted); }
.wz-choice input { accent-color: var(--blue); }
.wz-choice.selected { border-color: var(--blue); background: rgba(29,78,216,.14); }
.wz-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 20px; }
.wz-actions > div { display: flex; gap: 8px; }
.wz-btn { border: 1px solid var(--bd); background: transparent; color: #f1f5f9; border-radius: 9px; padding: 9px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: filter .15s, opacity .15s; }
.wz-btn.primary { background: var(--blue); border-color: var(--blue); }
.wz-btn.ghost { border-color: transparent; color: var(--muted); }
.wz-btn:hover:not(:disabled) { filter: brightness(1.15); }
.wz-btn:disabled { opacity: .45; cursor: default; }
.wz-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #0b1220; border: 1px solid var(--bd); font-size: 14px; margin-bottom: 14px; transition: all .3s; }
.wz-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bd); border-top-color: #818cf8; animation: wzSpin .8s linear infinite; flex: none; }
@keyframes wzSpin { to { transform: rotate(360deg); } }
.wz-status.ok { border-color: var(--ok); color: var(--ok); }
.wz-status.ok .wz-spin { animation: none; border-color: var(--ok); background: var(--ok); }
.wz-values { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wz-values > div { background: #0b1220; border: 1px solid var(--bd); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.wz-values small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wz-values b { font-size: 18px; font-variant-numeric: tabular-nums; }
.wz-values > div:nth-child(1) b { color: #f59e0b; } .wz-values > div:nth-child(2) b { color: #60a5fa; }
.wz-values > div:nth-child(3) b { color: #34d399; } .wz-values > div:nth-child(4) b { color: #818cf8; }
.wz-values b.pop { animation: wzPop .35s ease; }
@keyframes wzPop { 0% { transform: scale(.85); opacity: 0; } 100% { transform: none; opacity: 1; } }
.wz-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; margin-bottom: 6px; }
.wz-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.wz-toggle i { width: 38px; height: 22px; border-radius: 22px; background: var(--bd); position: relative; transition: background .2s; flex: none; }
.wz-toggle i::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.wz-toggle input:checked + i { background: var(--ok); }
.wz-toggle input:checked + i::before { transform: translateX(16px); }
.wz-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.wz-done { text-align: center; padding: 36px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wz-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #0f172a; background: linear-gradient(180deg, #6ee7b7, #34d399); margin-bottom: 10px; animation: wzPop .45s ease; }
.wz-check svg { width: 32px; height: 32px; }
@media (max-width: 460px) { .wz-window { height: 740px; border-radius: 48px; } }
.wz-grid.four { grid-template-columns: 1fr 1fr; gap: 0 10px; margin-top: 4px; }
/* After Finish the demo shows the dashboard, like the app's redirect to "/" */
.wz.on-dash .wz-progress, .wz.on-dash .wz-note { display: none; }
.wz.on-dash .wz-card { background: transparent; border: 0; padding: 0; }
.wz-dash-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #94a3b8; }
.wz-dash-status b { color: #f1f5f9; font-weight: 600; }
.wz-ok { color: #34d399; font-weight: 700; }
.wz-live { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.wz-flow { width: 100%; max-width: 380px; display: block; margin: 8px auto 0; overflow: visible; }
.wz-dash-foot { display: flex; justify-content: center; margin-top: 8px; }

/* ── Interactive dashboard demo (same look as the app's dashboard) ── */
.db-window { max-width: 980px; margin: 56px auto 0; border-radius: 16px; overflow: hidden; background: #0f172a; border: 1px solid #1f2937; box-shadow: 0 50px 100px -40px rgba(96,165,250,.35); text-align: left; }
.db-chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #111827; border-bottom: 1px solid #1f2937; }
.db-chrome > i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.db-chrome > i:nth-child(1) { background: #f87171; } .db-chrome > i:nth-child(2) { background: #fbbf24; } .db-chrome > i:nth-child(3) { background: #34d399; }
.db-url { flex: 1; max-width: 360px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #94a3b8; background: #1e293b; border-radius: 8px; padding: 5px 10px; }
.db-sim { font-size: 11px; color: #94a3b8; border: 1px solid #334155; border-radius: 99px; padding: 2px 10px; white-space: nowrap; }
.db { --bd: #334155; --card: #1e293b; --muted: #94a3b8; padding: 12px; color: #f1f5f9; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; background: #0f172a; }
.db-flow-card, .db-card { position: relative; background: var(--card); border: 1px solid var(--bd); border-radius: 14px; margin-bottom: 12px; }
.db-flow-card { padding: 16px 8px 12px; }
.db-card { padding: 13px; }
.db-status { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); z-index: 2; }
.db-ok { color: #34d399; font-weight: 700; }
.db-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; flex: none; display: inline-block; }
.db-dot.warn { background: #fb923c; }
.db-menu { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--bd); border-radius: 10px; background: linear-gradient(180deg,#1f2d44,#16253a); color: #f1f5f9; }
.db-flow { width: 100%; max-width: 480px; display: block; margin: 0 auto; }
.db-line { fill: none; stroke-width: 3; stroke-dasharray: 7 5; opacity: .18; transition: opacity .4s; }
.db-line.fwd { opacity: 1; animation: dbFwd 1.2s linear infinite; }
.db-line.rev { opacity: 1; animation: dbRev 1.2s linear infinite; }
@keyframes dbFwd { to { stroke-dashoffset: -120; } }
@keyframes dbRev { to { stroke-dashoffset: 120; } }
.db-node.active { animation: pulse 2.4s ease-in-out infinite; }
.db-an-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.db-tabs { display: flex; gap: 5px; }
.db-tab { background: none; border: 1px solid var(--bd); color: var(--muted); border-radius: 7px; padding: 4px 14px; font: inherit; font-size: 12px; cursor: pointer; }
.db-tab:hover { color: #f1f5f9; border-color: var(--muted); }
.db-tab.active { background: var(--bd); color: #f1f5f9; font-weight: 600; }
.db-datenav { display: flex; align-items: center; background: #0f172a; border: 1px solid var(--bd); border-radius: 8px; overflow: hidden; }
.db-datenav button { background: none; border: 0; color: var(--muted); padding: 4px 10px; font-size: 16px; cursor: pointer; }
.db-datenav button:hover:not(:disabled) { color: #f1f5f9; background: var(--bd); }
.db-datenav button:disabled { color: var(--bd); cursor: default; }
.db-sep { width: 1px; align-self: stretch; background: var(--bd); }
#db-date { font-size: 12px; padding: 0 10px; min-width: 88px; text-align: center; font-variant-numeric: tabular-nums; }
#db-canvas { width: 100%; height: 220px; display: block; background: #0b1220; border: 1px solid var(--bd); border-radius: 9px; cursor: crosshair; }
.db-legend { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.db-series { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--bd); border-radius: 99px; padding: 3px 11px 3px 8px; font: inherit; font-size: 11px; color: var(--muted); cursor: pointer; opacity: .4; }
.db-series::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sc); }
.db-series[data-key="solar"] { --sc: #f59e0b; } .db-series[data-key="load"] { --sc: #60a5fa; }
.db-series[data-key="grid"] { --sc: #818cf8; } .db-series[data-key="batt"] { --sc: #34d399; }
.db-series.active { opacity: 1; color: var(--sc); border-color: var(--sc); }
.db-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 11px; }
.db-stat { background: var(--card); border: 1px solid var(--bd); border-radius: 12px; padding: 11px 13px; }
.db-stat-l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-stat b { font-size: 20px; }
.db-stat small { font-size: 11.5px; color: var(--muted); margin-left: 3px; }
.db-hist-status { color: var(--muted); font-size: 11.5px; margin-top: 8px; }
.db-logs-title { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; }
#db-logs li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--bd); font-size: 13px; }
#db-logs li:last-child { border-bottom: 0; }
.db-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.db-pager button { background: none; border: 1px solid var(--bd); border-radius: 7px; color: #f1f5f9; font: inherit; font-size: 11.5px; padding: 5px 11px; opacity: .4; }
.db-foot { display: flex; justify-content: space-between; padding: 12px 6px 2px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--bd); margin-top: 18px; }
@media (max-width: 640px) {
  .db-stats { grid-template-columns: repeat(2, 1fr); }
  .db-sim { display: none; }
  .db-status { position: static; margin-bottom: 6px; }
}

/* ── GitHub pill & nav icon ─────────────────────────────── */
.gh-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 13px; border-radius: 980px;
  font-size: 15px; font-weight: 600;
  background: #1d1d1f; color: #fff;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,.45);
  transition: transform .15s ease, background .15s ease;
}
.gh-pill:hover { transform: translateY(-1px); background: #000; }
.gh-pill .gh-sep { width: 1px; height: 16px; background: rgba(255,255,255,.25); }
.gh-pill span[data-i18n] { font-weight: 500; color: #d4d4d8; }
.gh-stars { color: var(--solar-hi); font-weight: 600; }
.sec-stage .gh-pill, .sec-stage-2 .gh-pill { background: #f5f5f7; color: #1d1d1f; }
.sec-stage .gh-pill:hover, .sec-stage-2 .gh-pill:hover { background: #fff; }
.sec-stage .gh-pill .gh-sep, .sec-stage-2 .gh-pill .gh-sep { background: rgba(0,0,0,.2); }
.sec-stage .gh-pill span[data-i18n], .sec-stage-2 .gh-pill span[data-i18n] { color: #52525b; }
.sec-stage .gh-stars, .sec-stage-2 .gh-stars { color: #c2410c; }
.nav-gh { display: inline-flex; color: #e5e7eb; opacity: .8; transition: opacity .15s; }
.nav-gh:hover { opacity: 1; }
@media (max-width: 900px) { .nav-gh { display: none; } }
.plan li.plan-all { font-weight: 600; }

/* ── Hardware line-up (Hub first, then Pi 4) ───────────────── */
.lineup { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: 56px; align-items: stretch; text-align: center; }
.lineup-card { position: relative; background: var(--stage-card); border-radius: var(--radius); padding: 30px 28px 34px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lineup-card.featured { box-shadow: 0 0 0 2px var(--solar), 0 40px 80px -40px rgba(245,158,11,.55); }
.lineup-card .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--sun-grad); color: #1d1d1f; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 980px; white-space: nowrap; }
.lineup-card .media { width: 100%; margin-bottom: 10px; }
.lineup-card h2 { font-size: clamp(26px, 3vw, 34px); }
.lineup-card.featured h2 { font-size: clamp(30px, 3.6vw, 40px); }
.lineup-tag { color: var(--light-muted); font-size: 17px; }
.lineup-price { font-size: 22px; font-weight: 700; margin-top: 4px; }
.lineup-card .cta-row { margin-top: 14px; justify-content: center; }
@media (max-width: 900px) { .lineup { grid-template-columns: 1fr; } }
.cmp td:not(:first-child) { text-align: center; }
.cmp th:not(:first-child) { text-align: center; color: var(--light); font-size: 16px; }
.cmp td:first-child { width: 22%; }
.lineup-list { display: grid; gap: 8px; margin: 6px 0 4px; font-size: 15px; text-align: left; }
.lineup-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--light); }
.lineup-list li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: rgba(52,211,153,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat; }
.lineup-list li.plan-all { font-weight: 600; }
.lineup-list li.plan-all a { color: var(--solar-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(253,224,71,.4); }
.lineup-list li.plan-all a:hover { text-decoration-color: var(--solar-hi); }
.plugin-note { max-width: 720px; margin: 20px auto 0; font-size: 15px; line-height: 1.6; color: var(--light-muted); text-align: center; }
.plugin-tag { display: inline-block; margin-right: 8px; vertical-align: 1px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--battery); border: 1px solid rgba(52,211,153,.5); border-radius: 99px; padding: 2px 10px; }

/* ── Dashboard demo inside the phone frame (home page) ───── */
.live-split { grid-template-columns: 1fr 1.05fr; }
.db-phone { margin-top: 0; }
.db-phone .wz-url em { font-style: normal; color: #64748b; }
.db-phone .db { flex: 1; overflow-y: auto; scrollbar-width: none; border-radius: 0 0 46px 46px; padding: 8px 10px 40px; font-size: 13px; }
.db-phone .db::-webkit-scrollbar { display: none; }
.db-phone .db-status { position: static; margin: 0 0 4px 4px; }
.db-phone .db-menu { top: 8px; right: 8px; width: 30px; height: 30px; }
.db-phone .db-flow-card { padding: 10px 4px 8px; }
.db-phone .db-card { padding: 11px; }
.db-phone .db-an-head { gap: 6px; }
.db-phone .db-tab { padding: 4px 10px; }
.db-phone #db-date { min-width: 74px; padding: 0 6px; }
.db-phone #db-canvas { height: 170px; }
.db-phone .db-stats { grid-template-columns: repeat(2, 1fr); gap: 7px; }
.db-phone .db-stat { padding: 9px 10px; }
.db-phone .db-stat b { font-size: 17px; }
.db-phone #db-logs li { font-size: 12px; align-items: flex-start; }
.db-phone #db-logs .db-dot { margin-top: 5px; }
.db-phone .db-foot { flex-direction: column; gap: 4px; align-items: center; }
@media (max-width: 900px) { .live-split { grid-template-columns: 1fr; } }
/* Phone / desktop toggle for the dashboard demo */
.view-toggle { display: inline-flex; gap: 4px; margin-top: 26px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.view-toggle button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--light-muted); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.view-toggle button:hover { color: var(--light); }
.view-toggle button.active { background: var(--light); color: #0b1120; }
.wz-window .db-chrome { display: none; }
.db-window .wz-bar, .db-window .wz-url { display: none; }
.live-split.desktop-view { grid-template-columns: 1fr; }
.live-split.desktop-view > :first-child { text-align: center; }
.live-split.desktop-view > :first-child .lead { margin-left: auto; margin-right: auto; }
.db-device .monitor-stand { display: none; }
.db-device.is-monitor { width: 100%; max-width: 1000px; margin: 8px auto 0; animation: wzIn .35s ease; }
/* Desktop monitor: black bezel with a thicker chin, 16:10 landscape screen, stand below. */
.db-monitor {
  max-width: none; width: 100%; margin: 0; aspect-ratio: 16 / 10;
  display: flex; flex-direction: column;
  border: 14px solid #07080b; border-bottom-width: 30px; border-radius: 22px;
  box-shadow: 0 0 0 2px #2b303b, inset 0 0 0 1px #1f2937, 0 60px 120px -50px rgba(96,165,250,.4);
}
.db-monitor .db { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.db-monitor .db::-webkit-scrollbar { width: 6px; }
.db-monitor .db::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
.db-device.is-monitor .monitor-stand { display: flex; flex-direction: column; align-items: center; }
.monitor-stand i { display: block; width: 16%; height: 64px; margin-top: -1px; background: linear-gradient(180deg, #1c2029, #2b303b); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.monitor-stand b { display: block; width: 34%; height: 12px; border-radius: 6px 6px 10px 10px; background: linear-gradient(180deg, #353b48, #1c2029); box-shadow: 0 18px 30px -12px rgba(0,0,0,.8); }
@media (max-width: 700px) {
  .db-monitor { aspect-ratio: 4 / 3; border-width: 8px; border-bottom-width: 18px; border-radius: 14px; }
  .monitor-stand i { height: 36px; }
}

/* ── Smart Spot settings demo (replica of the plugin page, in a phone) ───── */
.ssd-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ssd-points li { position: relative; padding-left: 28px; color: var(--ink-muted); font-size: 16px; }
.ssd-points li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--battery) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.6-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.sec-stage .ssd-points li, .sec-stage-2 .ssd-points li { color: var(--light-muted); }
.ssd-phone { margin-top: 0; }
.ssd-phone .wz-url em { font-style: normal; color: #64748b; }
.ssd {
  --bd: #334155; --card: #1e293b; --muted: #94a3b8;
  flex: 1; overflow-y: auto; scrollbar-width: none; border-radius: 0 0 46px 46px;
  padding: 8px 10px 40px; background: #0f172a; color: #f1f5f9; font-size: 13px;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.ssd::-webkit-scrollbar { display: none; }
.ssd p, .ssd dl, .ssd dd, .ssd h3 { margin: 0; }
.ssd-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; background: var(--card); border: 1px solid var(--bd); border-radius: 12px; margin-bottom: 9px; }
.ssd-head h3 { font-size: 15px; font-weight: 700; }
.ssd-back { font-size: 11px; color: var(--muted); border: 1px solid var(--bd); border-radius: 6px; padding: 3px 9px; }
.ssd-card { background: var(--card); border: 1px solid var(--bd); border-radius: 12px; padding: 12px; margin-bottom: 9px; }
#ssd-status { border-color: rgba(52,211,153,.6); box-shadow: 0 0 0 1px rgba(52,211,153,.2); }
.ssd-ct { font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px !important; }
.ssd-state { display: flex; align-items: center; gap: 8px; margin-bottom: 9px !important; }
.ssd-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 6px #34d399; }
.ssd-lines { display: grid; gap: 2px; }
.ssd-lines dt { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 5px; }
.ssd-lines dd { font-size: 12.5px; }
.ssd-wins { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px !important; }
.ssd-w { font-size: 11.5px; border-radius: 6px; padding: 2px 7px; }
.ssd-w b { font-weight: 600; }
.ssd-w.charge { background: rgba(52,211,153,.15); color: #6ee7b7; }
.ssd-w.inject { background: rgba(245,158,11,.15); color: #fbbf24; }
.ssd-chart { margin-top: 10px; }
.ssd-bars { display: flex; align-items: flex-end; gap: 2px; height: 64px; }
.ssd-col { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.ssd-col i { display: block; background: var(--bd); border-radius: 2px 2px 0 0; }
.ssd-col.charge i { background: #34d399; }
.ssd-col.inject i { background: #f59e0b; }
.ssd-axis { display: flex; gap: 2px; font-size: 8px; color: var(--muted); margin-top: 3px; }
.ssd-axis span { flex: 1; text-align: center; }
.ssd-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ssd button { font-family: inherit; font-size: 11.5px; border-radius: 7px; padding: 6px 11px; cursor: pointer; }
.ssd-sec { background: none; border: 1px solid var(--bd); color: var(--muted); }
.ssd-save { background: #1d4ed8; border: 0; color: #fff; font-weight: 600; margin-top: 12px; padding: 7px 18px !important; }
.ssd-save:hover { background: #2563eb; }
.ssd-msg { min-height: 1.2em; margin-top: 6px !important; font-size: 11.5px; color: #34d399; }
.ssd-f { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.ssd input[type=number], .ssd input[type=text], .ssd select {
  width: 100%; background: #0b1220; border: 1px solid var(--bd); border-radius: 7px; color: #f1f5f9;
  font: inherit; font-size: 12.5px; padding: 6px 9px;
}
.ssd input:focus, .ssd select:focus { outline: none; border-color: #818cf8; }
.ssd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.ssd-st { font-size: 10.5px; font-weight: 600; color: #818cf8; text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 8px !important; display: flex; align-items: center; gap: 7px; }
.ssd-st.charge { color: #34d399; }
.ssd-st.inject { color: #f59e0b; }
.ssd-tg { display: flex; align-items: center; gap: 9px; margin: 12px 0 2px; font-size: 12px; cursor: pointer; }
.ssd-tg input { position: absolute; opacity: 0; width: 0; height: 0; }
.ssd-tg i { position: relative; width: 34px; height: 19px; flex: none; border-radius: 19px; background: var(--bd); transition: background .2s; }
.ssd-tg i::before { content: ""; position: absolute; left: 3px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ssd-tg input:checked + i { background: #34d399; }
.ssd-tg.inject input:checked + i { background: #f59e0b; }
.ssd-tg.charge { margin: 0 0 10px; }
.ssd-tg input:checked + i::before { transform: translateX(15px); }
.ssd-tg.inject { margin: 0 0 10px; }
.ssd-hint { grid-column: 1 / -1; font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.ssd-adv { margin-top: 14px !important; font-size: 11.5px; color: var(--muted); }
.ssd-adv::before { content: "▸ "; }
.ssd-sched { display: none; }
.ssd.is-sched .ssd-sched { display: grid; margin-top: 8px; }
.ssd.is-sched .ssd-auto { display: none; }
.ssd.is-off #ssd-config { display: none; }
.ssd.is-off #ssd-status { border-color: var(--bd); box-shadow: none; }
.ssd.is-off .ssd-dot { background: var(--bd); box-shadow: none; }
