/* Simmer website. Plain CSS, no build step. */

@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --plum: #2a1636;
  --wine: #7a2938;
  --ember: #ee6b33;
  --amber: #ff9a3c;
  --gold: #ffd35c;
  --steam: #fff6ec;
  --green: #3fbf6a;

  --bg: #f6f0f5;
  --bg-2: #efe5ee;
  --surface: #ffffff;
  --surface-2: #f8f2f7;
  --line: rgba(42, 22, 54, .13);
  --line-strong: rgba(42, 22, 54, .24);
  --ink: #2a1636;
  --ink-2: #5d4867;
  --ink-3: #7d6a86;
  --accent: #b23f14;          /* ember, dark enough for text on light */
  --accent-fill: #ee6b33;
  --on-accent: #2a1636;
  --hero-glow: rgba(238, 107, 51, .30);
  --jar-stroke: #2a1636;
  --jar-glass: rgba(42, 22, 54, .05);
  --burner: #4a3554;
  --knob-skirt: #e9dfe8;
  --knob-cap: #f1e8f0;
  --knob-hi: #ffffff;
  --knob-ridge: rgba(42, 22, 54, .16);
  --shadow: 0 1px 2px rgba(42, 22, 54, .06), 0 12px 32px -12px rgba(42, 22, 54, .22);
  --term-bg: #241430;
  --ghost: rgba(42, 22, 54, .38);

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1029; --bg-2: #231433; --surface: #2b1a3c; --surface-2: #322046;
    --line: rgba(255, 240, 230, .12); --line-strong: rgba(255, 240, 230, .24);
    --ink: #fbf1e7; --ink-2: #d2c0d6; --ink-3: #a993b0;
    --accent: #ff9a5a; --accent-fill: #ee6b33; --on-accent: #1c1029;
    --hero-glow: rgba(238, 107, 51, .42);
    --jar-stroke: #fff6ec; --jar-glass: rgba(255, 255, 255, .07); --burner: #120a1a;
    --knob-skirt: #3a2650; --knob-cap: #3f2a55; --knob-hi: #7a5a96; --knob-ridge: rgba(255, 240, 230, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -16px rgba(0, 0, 0, .6);
    --term-bg: #120a1a; --ghost: rgba(255, 240, 230, .36);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1029; --bg-2: #231433; --surface: #2b1a3c; --surface-2: #322046;
  --line: rgba(255, 240, 230, .12); --line-strong: rgba(255, 240, 230, .24);
  --ink: #fbf1e7; --ink-2: #d2c0d6; --ink-3: #a993b0;
  --accent: #ff9a5a; --accent-fill: #ee6b33; --on-accent: #1c1029;
  --hero-glow: rgba(238, 107, 51, .42);
  --jar-stroke: #fff6ec; --jar-glass: rgba(255, 255, 255, .07); --burner: #120a1a;
  --knob-skirt: #3a2650; --knob-cap: #3f2a55; --knob-hi: #7a5a96; --knob-ridge: rgba(255, 240, 230, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -16px rgba(0, 0, 0, .6);
  --term-bg: #120a1a; --ghost: rgba(255, 240, 230, .36);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code { font-family: var(--f-mono); font-size: .88em; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
:root:not([data-theme="dark"]) :focus-visible { outline-color: #8a3cc2; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--r-s); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 0;
  background: linear-gradient(180deg, #ffa24a, #ee6b33);
  color: #2a1020; font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 8px 22px -8px rgba(238, 107, 51, .7);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 12px 26px -8px rgba(238, 107, 51, .8); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .9375rem; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--line); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.when-dark { display: none !important; }
:root[data-theme="dark"] .when-dark { display: block !important; }
:root[data-theme="dark"] .when-light { display: none !important; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 650 1.25rem/1 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 36; }
.brand img { width: 36px; height: 36px; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .9688rem; }
.nav-links a:hover { color: var(--ink); background: var(--line); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
@media (max-width: 720px) {
  .nav nav { display: none; }
  .nav-actions { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: auto -10% -30% -10%; height: 90%; z-index: -1;
  background: radial-gradient(60% 55% at 72% 70%, var(--hero-glow), transparent 70%);
  opacity: calc(.45 + var(--heat, .75) * .7);
  transition: opacity .3s;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-title {
  font-family: var(--f-display);
  font-weight: 640;
  font-size: clamp(3rem, 6.3vw, 5.75rem);
  line-height: .96;
  letter-spacing: -.025em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  text-wrap: balance;
  max-width: 10.5ch;
}
.hero-title.hazy { filter: url(#haze); }
.hero-promise {
  margin-top: 18px; font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em;
  background: linear-gradient(90deg, #ff8c2e, #ffc94a 55%, #ff6a3d); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { margin-top: 16px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 36em; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-fine { margin-top: 18px; font-size: .9063rem; color: var(--ink-3); }

.stove { position: relative; display: grid; gap: 8px; justify-items: center; }
.pot-wrap { position: relative; width: min(100%, 380px); }
.pot { width: 100%; height: auto; overflow: visible; }
.jar-body { fill: var(--jar-glass); }
.jar-stroke { fill: none; stroke: var(--jar-stroke); stroke-width: 9; }
.jar-cap { fill: var(--jar-stroke); }
.limit-tick { stroke: var(--steam); stroke-width: 4; stroke-linecap: round; opacity: .9; }
:root:not([data-theme="dark"]) .limit-tick { stroke: #fff; }
.steam path { stroke: var(--jar-stroke); }
.grate { fill: none; stroke: var(--burner); stroke-width: 6; stroke-linecap: round; opacity: .9; }
.burner-ring { fill: var(--burner); }
#flames path { fill: url(#g-flame); transform-box: fill-box; transform-origin: 50% 100%; }

.dial-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(12px, 3vw, 28px); width: min(100%, 560px); }
.knob-wrap { width: clamp(168px, 22vw, 224px); }
.knob { width: 100%; height: auto; cursor: grab; touch-action: none; overflow: visible; border-radius: 50%; }
.knob:active { cursor: grabbing; }
.knob:focus-visible { outline-offset: 0; }
.knob-skirt { fill: var(--knob-skirt); filter: drop-shadow(0 6px 10px rgba(20, 5, 20, .28)); }
.knob-ridges { fill: none; stroke: var(--knob-ridge); stroke-width: 14; stroke-dasharray: 2 4.5; }
.knob-cap { fill: url(#knob-grad); stroke: var(--line); }
.knob-pointer { fill: var(--accent-fill); }
.knob-arc { fill: none; stroke: url(#g-fill); stroke: var(--amber); stroke-width: 6; stroke-linecap: round; }
.scale-tick { stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; }
.scale-tick.major { stroke: var(--ink-2); stroke-width: 2.5; }
.scale-floor { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; opacity: .95; }
:root:not([data-theme="dark"]) .scale-floor { stroke: #d99a00; }
.scale-label { fill: var(--ink-2); font: 600 13px var(--f-body); text-anchor: middle; dominant-baseline: middle; cursor: pointer; }

.readout-value { font: 650 clamp(3rem, 6vw, 4.4rem)/1 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.readout-value .pct { font-size: .5em; margin-left: 2px; color: var(--ink-2); }
.readout-name { margin-top: 6px; font: 600 1.25rem/1.25 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 24; color: var(--accent); }
.readout-note { margin-top: 6px; font-size: .9375rem; color: var(--ink-2); max-width: 30ch; min-height: 3.1em; }
.presets { display: flex; gap: 6px; margin-top: 14px; }
.presets button {
  min-height: 34px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--line); color: var(--ink); font-weight: 650; font-size: .875rem; font-variant-numeric: tabular-nums;
}
.presets button:hover { background: var(--line-strong); }
.presets button[aria-pressed="true"] { background: var(--accent-fill); color: #2a1020; }
.stove-hint { font-size: .875rem; color: var(--ink-3); text-align: center; max-width: 44ch; margin-top: 8px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: 12ch; }
  .pot-wrap { width: min(78vw, 320px); }
}
@media (max-width: 460px) {
  .dial-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .readout-note { margin-inline: auto; min-height: 0; }
  .presets { justify-content: center; }
  .knob-wrap { width: 200px; }
}

/* ---------- Why ---------- */
.why { padding: clamp(48px, 7vw, 96px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.why-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.why-title { font: 600 clamp(1.9rem, 3.8vw, 3rem)/1.08 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 96; letter-spacing: -.015em; text-wrap: balance; }
.why p { color: var(--ink-2); font-size: 1.125rem; max-width: 38em; padding-top: 6px; }
@media (max-width: 820px) { .why-in { grid-template-columns: 1fr; } }

/* screenshots */
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 12px; filter: drop-shadow(0 18px 30px rgba(30, 8, 30, .22)); }
.shot figcaption { margin-top: 12px; font-size: .875rem; color: var(--ink-3); }
.shot-panel img { max-width: 330px; margin: 0 auto; }
.shot-wide img { max-width: 1180px; margin: 0 auto; }
.shot-widgets { margin-bottom: clamp(36px, 5vw, 56px); }
.shot-widgets img { border-radius: 22px; }

/* tabs */
.tabs { margin-top: clamp(36px, 5vw, 56px); }
.tablist { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tablist [role="tab"] {
  min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink-2); font-weight: 600; font-size: .9375rem; cursor: pointer;
}
.tablist [role="tab"]:hover { color: var(--ink); border-color: var(--ink-3); }
.tablist [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Shared demo text ---------- */
.sim-title { font: 620 clamp(1.4rem, 2.4vw, 1.75rem)/1.15 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 48; }
.sim-lede { color: var(--ink-2); font-size: 1rem; }
.sim-note { margin-top: 16px; font-size: .8125rem; color: var(--ink-3); }
.ctl-help { margin-top: 4px; color: var(--ink-3); font-size: .8438rem; line-height: 1.45; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-axis { fill: var(--ink-3); font: 500 11.5px var(--f-body); font-variant-numeric: tabular-nums; }

/* range input */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent-fill) var(--p, 50%), var(--line-strong) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line-strong); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent-fill); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .06); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
input[type="range"]:focus-visible { outline-offset: 2px; }

/* ---------- Power flow ---------- */
.flow { margin-bottom: 0; }
.flow-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .875rem; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
:root[data-theme="dark"] .seg button[aria-checked="true"] { background: var(--surface-2); }
.seg-wrap { background: transparent; border: 0; padding: 0; gap: 8px; }
.seg-wrap button { box-shadow: inset 0 0 0 1px var(--line-strong); }
.seg-wrap button[aria-checked="true"] { box-shadow: none; background: var(--ink) !important; color: var(--bg); }
.seg-wrap button:active { background: var(--line); }
.flow-diagram { display: grid; grid-template-columns: auto minmax(30px, 1fr) auto minmax(30px, 1fr) auto; align-items: center; gap: 8px; margin: 32px auto 8px; max-width: 980px; }
.node { display: grid; justify-items: center; gap: 2px; width: clamp(84px, 16vw, 132px); padding: 16px 8px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); transition: opacity .3s; }
.node svg { width: 30px; height: 30px; color: var(--ink); margin-bottom: 4px; }
.node .watts { font: 650 clamp(1.05rem, 2.4vw, 1.4rem)/1.2 var(--f-body); font-variant-numeric: tabular-nums; }
.node span { font-size: .8125rem; color: var(--ink-3); }
.node.dim { opacity: .38; }
.wire { width: 100%; height: 20px; overflow: visible; }
.wire path { fill: none; stroke: var(--line-strong); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wire.live path { stroke: var(--accent-fill); stroke-dasharray: 2 14; animation: flow var(--dur, 1s) linear infinite; }
.wire.live.green path { stroke: var(--green); }
.wire.reverse path { animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.flow-caption { text-align: center; color: var(--ink-2); margin-top: 14px; font-size: .9688rem; min-height: 3em; max-width: 560px; margin-inline: auto; }
@media (max-width: 600px) {
  .flow-top .seg { background: transparent; border: 0; padding: 0; gap: 8px; }
  .flow-top .seg button { box-shadow: inset 0 0 0 1px var(--line-strong); }
  .flow-top .seg button[aria-checked="true"] { box-shadow: none; background: var(--ink) !important; color: var(--bg); }
}
@media (max-width: 520px) { .flow-diagram { gap: 2px; } .node { padding: 12px 4px; } .seg button { padding: 0 12px; font-size: .8438rem; } }

/* ---------- LED ---------- */
.led { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.led-stage {
  position: relative; height: 260px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #2b1a3c, #120a1a);
}
.led-cable { position: absolute; left: -10%; right: 50%; top: 50%; height: 16px; margin-top: -8px; border-radius: 8px; background: linear-gradient(180deg, #e9e3ea, #bfb6c3); }
.led-head {
  position: absolute; left: 44%; top: 50%; width: 120px; height: 40px; margin-top: -20px;
  border-radius: 12px; background: linear-gradient(180deg, #d8d2dc, #a59bab);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 20px rgba(0, 0, 0, .4);
}
.led-dot {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #40343f; transition: background .15s, box-shadow .15s;
}
.led-dot.green { background: #6cff8e; box-shadow: 0 0 6px 2px rgba(108, 255, 142, .9), 0 0 36px 12px rgba(80, 255, 120, .35); }
.led-dot.orange { background: #ffb347; box-shadow: 0 0 6px 2px rgba(255, 170, 60, .95), 0 0 36px 12px rgba(255, 140, 40, .38); }
.led-dot.system { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.led-dot.blink-slow { animation: blink 1.6s steps(1) infinite; }
.led-dot.blink-fast { animation: blink .5s steps(1) infinite; }
@keyframes blink { 50% { background: #40343f; box-shadow: none; } }
.led-controls { display: grid; gap: 18px; }
.led-status { font: 600 1.125rem/1.35 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 24; min-height: 2.7em; }
.led fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.led legend { font-weight: 650; font-size: .875rem; color: var(--ink-3); margin-bottom: 8px; padding: 0; }
.led .seg { display: inline-flex; }
.led-custom { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; font-size: .9375rem; }
.led-custom select { font: inherit; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
@media (max-width: 820px) { .led { grid-template-columns: 1fr; } .led-stage { height: 180px; } }

/* ---------- Terminal ---------- */
.split-term { margin-top: 0; }
.term { border-radius: 16px; overflow: hidden; background: var(--term-bg); color: #f3e6ee; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .06); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: rgba(255, 255, 255, .05); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.term-bar em { margin-left: 8px; font: 500 12px var(--f-mono); font-style: normal; color: rgba(255, 255, 255, .5); }
.term-body { margin: 0; padding: 18px 18px 22px; font: 400 13px/1.7 var(--f-mono); white-space: pre; overflow-x: auto; min-height: 340px; }
.term-body .prompt { color: var(--amber); }
.term-body .cmd { color: #fff; font-weight: 600; }
.term-body .out { color: #cdb9c9; }
.term-body .caret { display: inline-block; width: .6em; height: 1.15em; vertical-align: -.2em; background: var(--amber); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (max-width: 520px) { .term-body { font-size: 11.5px; padding: 14px; } }

/* ---------- Install ---------- */
.install { padding: clamp(64px, 9vw, 120px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.section-title { font: 640 clamp(2.4rem, 5.4vw, 4.2rem)/1 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; letter-spacing: -.02em; }
.install-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; margin-top: 36px; }
.install-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(20px, 3vw, 30px); display: grid; gap: 14px; align-content: start; justify-items: start; }
.install-card h3 { font: 620 1.6rem/1.1 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 48; }
.install-card p { color: var(--ink-2); }
.code { position: relative; width: 100%; display: flex; align-items: stretch; border-radius: 12px; background: var(--term-bg); color: #f3e6ee; overflow: hidden; }
.code pre { flex: 1; min-width: 0; margin: 0; padding: 16px; font: 400 13.5px/1.6 var(--f-mono); white-space: pre-wrap; word-break: break-word; }
.copy { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 16px; border: 0; border-left: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); color: #f3e6ee; font-weight: 600; font-size: .875rem; cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, .1); }
.copy svg { width: 18px; height: 18px; }
.copy .i-done { display: none; color: var(--green); }
.copy.done .i-done { display: block; }
.copy.done .i-copy { display: none; }
.sub-title { margin-top: clamp(48px, 6vw, 72px); font: 620 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72; }
.steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  font: 650 1.25rem/1 var(--f-display); font-variation-settings: "SOFT" 100;
  background: linear-gradient(160deg, var(--gold), var(--accent-fill)); color: #2a1020;
}
.steps h4 { font: 700 1.0625rem/1.3 var(--f-body); }
.steps p { margin-top: 6px; color: var(--ink-2); font-size: .9688rem; }
.req { margin-top: 36px; color: var(--ink-2); }
@media (max-width: 860px) { .install-grid, .steps { grid-template-columns: 1fr; } .steps li { padding: 0 0 0 58px; } }
@media (max-width: 460px) { .code { flex-direction: column; } .copy { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); justify-content: center; min-height: 44px; } }

/* ---------- FAQ ---------- */
.faq { padding: clamp(64px, 9vw, 120px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 24px clamp(24px, 5vw, 72px); align-items: start; }
.faq-list { display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 650; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; }
.faq-more { grid-column: 2; color: var(--ink-2); }
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; } .faq-more { grid-column: 1; } }

/* ---------- Open source ---------- */
.oss { padding: clamp(64px, 9vw, 112px) 0; background: radial-gradient(70% 120% at 50% 120%, rgba(238, 107, 51, .55), transparent 70%), linear-gradient(160deg, #2a1636, #5a1f37 60%, #7a2938); color: #fff6ec; }
.oss-in { text-align: center; display: grid; justify-items: center; gap: 18px; }
.oss-icon { width: 48px; height: 48px; color: var(--gold); }
.oss p { max-width: 40em; color: #ecdbe4; font-size: 1.125rem; }
.oss-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.oss-links a { display: block; padding: 10px 18px; border-radius: 999px; color: #fff6ec; text-decoration: none; font-weight: 600; box-shadow: inset 0 0 0 1.5px rgba(255, 246, 236, .35); }
.oss-links a:hover { background: rgba(255, 246, 236, .12); }
.oss :focus-visible { outline-color: var(--gold); }

/* ---------- Footer ---------- */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-3); }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 48px; }
.foot-legal { grid-column: 2; grid-row: 1 / span 2; }
.foot-extra { grid-column: 1; grid-row: 2; display: grid; gap: 10px; align-content: start; justify-items: start; }
.foot-brand { display: flex; gap: 12px; align-items: center; color: var(--ink-2); line-height: 1.4; }
.foot-brand img { width: 44px; height: 44px; }
.foot-brand strong { font: 650 1.125rem var(--f-display); font-variation-settings: "SOFT" 100; color: var(--ink); }
.foot-legal { display: grid; gap: 10px; max-width: 72ch; }
.foot .risk { color: var(--ink-2); }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr; } .foot-legal, .foot-extra { grid-column: 1; grid-row: auto; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .wire.live path { stroke-dasharray: none; }
  .led-dot.blink-slow, .led-dot.blink-fast { animation: none; }
  .term-body .caret { animation: none; }
}



/* =========================================================
   Interactive extras
   ========================================================= */

/* ---------- Time-of-day tint (set by app.js as --tod) ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(80% 60% at 88% -8%, var(--tod, transparent), transparent 70%),
    radial-gradient(60% 50% at -5% 108%, var(--tod, transparent), transparent 70%);
}
:root[data-theme="dark"] body::before { opacity: .85; }
.tod-cap { font-size: .8125rem; color: var(--ink-3); }

/* ---------- Your real battery ---------- */
.real-batt {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; max-width: 36em;
  padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line); font-size: .9375rem; line-height: 1.45; color: var(--ink-2);
}
.rb-dot { flex: none; width: 9px; height: 9px; margin-top: .45em; border-radius: 50%; background: var(--ink-3); }
.real-batt.on-ac .rb-dot { background: var(--accent-fill); box-shadow: 0 0 0 0 rgba(238, 107, 51, .5); animation: rb-pulse 2.2s ease-out infinite; }
@keyframes rb-pulse { 70% { box-shadow: 0 0 0 8px rgba(238, 107, 51, 0); } 100% { box-shadow: 0 0 0 0 rgba(238, 107, 51, 0); } }

/* ---------- Hero: plug, socket, foam, face, disco ---------- */
.plug-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cable { fill: none; stroke: #d9d1dc; stroke-width: 6.5; stroke-linecap: round; filter: drop-shadow(0 2px 2px rgba(30, 8, 30, .25)); }
:root[data-theme="dark"] .cable { stroke: #cfc6d4; }
.plug { pointer-events: auto; cursor: grab; touch-action: none; outline: none; }
.plug-layer.dragging .plug { cursor: grabbing; }
.plug-head { fill: #e6e0e9; stroke: #9d93a3; stroke-width: 1; }
.plug-relief { fill: #c9c0ce; }
.plug-face { fill: #3a2a40; opacity: .55; }
.plug-ring { fill: none; stroke: transparent; stroke-width: 2.5; }
.plug:focus-visible .plug-ring { stroke: #8a3cc2; stroke-dasharray: 4 3; }
:root[data-theme="dark"] .plug:focus-visible .plug-ring { stroke: var(--gold); }
.plug-led { fill: #5d505f; transition: fill .2s; }
.plug-glow { fill: transparent; opacity: 0; transition: opacity .25s, fill .25s; }
.plug-layer[data-led="orange"] .plug-led, .plug-layer[data-led="blink"] .plug-led { fill: #ffb347; }
.plug-layer[data-led="orange"] .plug-glow, .plug-layer[data-led="blink"] .plug-glow { fill: rgba(255, 160, 50, .55); opacity: 1; }
.plug-layer[data-led="green"] .plug-led { fill: #6cff8e; }
.plug-layer[data-led="green"] .plug-glow { fill: rgba(80, 255, 120, .5); opacity: 1; }
.plug-layer[data-led="blink"] .plug-led, .plug-layer[data-led="blink"] .plug-glow { animation: blink 1.6s steps(1) infinite; }
.jar-socket { fill: var(--burner); stroke: var(--jar-stroke); stroke-width: 1.5; transition: fill .2s; }
.jar-socket.near { fill: var(--accent-fill); }
.spark { fill: none; stroke: var(--gold); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.spark.go { animation: spark .5s cubic-bezier(.2, .8, .3, 1); }
@keyframes spark { from { opacity: 1; transform: scale(.25); } to { opacity: 0; transform: scale(2.4); } }
.pot.jolt { animation: jolt .32s ease-out; }
@keyframes jolt { 30% { transform: translateX(-2.5px) rotate(-.6deg); } 65% { transform: translateX(1px); } }
.foam circle, .foam rect { fill: #fff3dc; stroke: #ffb056; stroke-width: 1.5; }
.face { fill: #2a1636; }
.face path { fill: none; stroke: #2a1636; stroke-width: 3.5; stroke-linecap: round; }
.disco-string { stroke: var(--ink-3); stroke-width: 1.5; }
.disco-facets { fill: none; stroke: rgba(80, 60, 95, .45); stroke-width: 1; }
.hero.disco::before { animation: disco-hue 1.4s linear infinite; }
@keyframes disco-hue { to { filter: hue-rotate(360deg); } }
.stove-fx { min-height: 1.45em; font-size: .9375rem; font-weight: 600; text-align: center; color: var(--ink-2); max-width: 46ch; }
.stove-fx.is-charge { color: var(--accent); }
.stove-fx.is-limit { color: #1f8a4c; }
:root[data-theme="dark"] .stove-fx.is-limit { color: #6fe39a; }
.stove-fx.is-warn { color: #c0292f; }
:root[data-theme="dark"] .stove-fx.is-warn { color: #ff8a8d; }
.stove-fx.is-warn::before { content: "⚠ "; }
.stove-fx + .stove-hint { margin-top: 0; }

/* ---------- Easter eggs ---------- */
.brand.spin img { animation: spin .9s cubic-bezier(.4, 1.6, .5, 1); }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(1turn); } }
.egg-toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 90; width: min(440px, calc(100vw - 32px));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start;
  padding: 16px 14px 16px 16px; border-radius: 20px;
  background: linear-gradient(160deg, #3a1f4a, #2a1636 55%, #4a1c33); color: #fff6ec;
  box-shadow: 0 0 0 1px rgba(255, 211, 92, .35), 0 24px 48px -16px rgba(20, 5, 20, .6);
  opacity: 0; transform: translate(-50%, 24px) scale(.96); pointer-events: none;
  transition: opacity .3s, transform .45s cubic-bezier(.2, 1.4, .4, 1);
}
.egg-toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.egg-badge { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(160deg, var(--gold), var(--accent-fill)); }
.egg-badge svg { width: 30px; height: 30px; }
.egg-toast.show .egg-badge svg { animation: egg-wobble .9s ease-in-out .15s; }
@keyframes egg-wobble { 25% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-5deg); } }
.egg-shell { fill: #fff6ec; stroke: #2a1636; stroke-width: 1.4; }
.egg-spot { fill: #ee6b33; }
.egg-kicker { font-size: .8125rem; font-weight: 700; color: var(--gold); }
.egg-name { margin-top: 2px; font: 650 1.25rem/1.2 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 36; }
.egg-name span { font: 600 .875rem var(--f-body); color: #d2c0d6; }
.egg-desc { margin-top: 4px; font-size: .875rem; line-height: 1.45; color: #e6d6e2; }
.egg-close { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #d2c0d6; cursor: pointer; }
.egg-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.egg-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (min-width: 721px) {
  .egg-toast { left: auto; right: 24px; bottom: 24px; transform: translateY(24px) scale(.96); }
  .egg-toast.show { transform: none; }
}
.egg-burst { position: fixed; z-index: 91; width: 0; height: 0; pointer-events: none; }
.egg-burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; animation: egg-fly var(--d, 1s) cubic-bezier(.15, .7, .35, 1) forwards; }
.egg-burst i.bit:nth-child(3n) { width: 6px; height: 11px; border-radius: 2px; }
.egg-burst i.pasta { width: 26px; height: 4px; left: -13px; border-radius: 4px; }
.egg-burst i.puff { width: 22px; height: 22px; left: -11px; top: -11px; background: radial-gradient(circle, rgba(255, 246, 236, .95), rgba(255, 246, 236, 0) 70%); }
@keyframes egg-fly {
  0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; }
  65% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--r)); opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 46px)) scale(.85) rotate(var(--r)); opacity: 0; }
}
.egg-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--line); color: var(--ink-2); font-size: .8125rem; font-weight: 600; }
.egg-chip svg { width: 18px; height: 18px; }
.egg-names { font-weight: 500; color: var(--ink-3); }

/* ---------- Ten years in ten seconds ---------- */
.race {
  margin-top: clamp(36px, 5vw, 56px); padding: clamp(18px, 3vw, 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow);
}
.race-top { display: grid; gap: 6px; max-width: 720px; }
.race-body { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr) minmax(0, .7fr); gap: clamp(12px, 3vw, 36px); align-items: center; margin-top: 22px; }
.racer { margin: 0; display: grid; justify-items: center; gap: 8px; text-align: center; }
.race-jar { width: min(100%, 150px); height: auto; overflow: visible; }
.rj-glass { fill: var(--jar-glass); }
.rj-stroke { fill: none; stroke: var(--jar-stroke); stroke-width: 6; }
.rj-lid { fill: var(--jar-stroke); }
.rj-hot { fill: #e3412a; }
.rj-calm { fill: #ffb547; }
.rj-lost { fill: url(#rj-hatch); }
.rj-hatch-bg { fill: var(--surface); }
.rj-hatch-line { stroke: var(--ink-3); stroke-width: 2.2; opacity: .55; }
.rj-cap-line { stroke: var(--jar-stroke); stroke-width: 2; stroke-dasharray: 4 3; }
.rj-fire path { fill: url(#g-flame); transform-box: fill-box; transform-origin: 50% 100%; animation: rj-flick 1.1s ease-in-out infinite alternate; }
.rj-fire path:nth-child(2) { animation-delay: -.4s; }
.rj-fire-big path { animation-duration: .6s; }
@keyframes rj-flick { to { transform: scale(.88, 1.12); } }
.racer-name { display: block; font-weight: 700; font-size: .9688rem; }
.racer-health { display: block; color: var(--ink-2); font-size: .9375rem; }
.racer-health b { font: 650 2rem/1.1 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72; color: var(--ink); font-variant-numeric: tabular-nums; }
.racer-full .racer-health b { color: #c0292f; }
:root[data-theme="dark"] .racer-full .racer-health b { color: #ff8a8d; }
.racer-simmer .racer-health b { color: var(--accent); }
.race-chart { min-width: 0; }
#race-svg { width: 100%; height: auto; overflow: visible; }
.rc-bg { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
.rc-full { fill: none; stroke: #e5484d; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rc-sim { fill: none; stroke: url(#rc-grad); stroke: #ff9a3c; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.rd-full { fill: #e5484d; stroke: var(--surface); stroke-width: 2.5; }
.rd-sim { fill: #ff9a3c; stroke: var(--surface); stroke-width: 2.5; }
.rc-head { stroke: var(--ink); stroke-width: 1; opacity: .25; }
.race-gap { margin-top: 8px; text-align: center; font-weight: 600; color: var(--ink-2); min-height: 1.5em; }
.race-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-top: 18px; }
.race-play {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: .9375rem;
}
.race-play svg { width: 18px; height: 18px; fill: currentColor; }
.race-play .ic-pause, .race.playing .race-play .ic-play { display: none; }
.race.playing .race-play .ic-pause { display: block; }
.race-out { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 5.5em; text-align: right; color: var(--accent); }
@media (max-width: 760px) {
  .race-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .race-chart { grid-column: 1 / -1; grid-row: 2; }
  .race-body { align-items: start; }
}
@media (max-width: 420px) { .race-controls { grid-template-columns: auto minmax(0, 1fr); } .race-out { grid-column: 1 / -1; text-align: left; } }

/* ---------- Tour (compact scroll story) ---------- */
.tour { padding: clamp(56px, 7vw, 104px) 0 0; }
.tour-head { max-width: 760px; }
.tour-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 88px); }
.tour-steps { list-style: none; margin: 0; padding: 4vh 0 14vh; }
.tour-step { min-height: 42vh; display: flex; align-items: center; }
.tour-text { position: relative; padding-left: 24px; opacity: .3; transition: opacity .5s ease; }
.tour-text::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--line-strong); transition: background .4s; }
.tour-step.is-active .tour-text { opacity: 1; }
.tour-step.is-active .tour-text::before { background: linear-gradient(180deg, var(--gold), var(--accent-fill)); }
.tour-kicker { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--accent); }
.tour-icon { width: 32px; height: 32px; padding: 7px; border-radius: 10px; color: #2a1020; background: linear-gradient(160deg, var(--gold), var(--accent-fill)); }
.tour-text h3 { margin-top: 12px; font: 640 clamp(1.5rem, 2.6vw, 2.15rem)/1.1 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96; letter-spacing: -.015em; text-wrap: balance; max-width: 18ch; }
.tour-link { display: inline-block; margin-top: 12px; font-weight: 650; font-size: .9375rem; }
.tour-inline { display: none; }
.tour-stage { position: sticky; top: 84px; height: calc(100vh - 110px); display: grid; align-content: center; justify-items: center; gap: 18px; }
.tour-frame { position: relative; width: min(100%, calc((100vh - 220px) * 1.1)); aspect-ratio: 1800 / 1640; border-radius: 18px; }
.tour-frame::before { content: ""; position: absolute; inset: 12% 6% -4%; border-radius: 50%; background: radial-gradient(closest-side, var(--hero-glow), transparent); filter: blur(10px); }
.tour-shot { position: absolute; inset: 0; margin: 0; display: grid; align-content: center; opacity: 0; transform: translateY(48px) scale(.94); transition: opacity .55s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.tour-shot.is-past { transform: translateY(-40px) scale(.97); }
.tour-shot.is-active { opacity: 1; transform: none; }
.tour-shot img { width: 100%; height: auto; border-radius: 12px; filter: drop-shadow(0 18px 30px rgba(30, 8, 30, .22)); }
.tour-shot figcaption, .tour-inline figcaption { margin-top: 10px; text-align: center; font-size: .875rem; color: var(--ink-3); }
.tour-rail { display: flex; gap: 6px; }
.tour-rail span { width: 28px; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background .4s; }
.tour-rail span.on { background: var(--accent-fill); }
/* Narrow screens: a swipe carousel, one card per part */
@media (max-width: 900px) {
  .tour-grid { display: block; }
  .tour-stage { display: none; }
  .tour-steps {
    display: flex; gap: 14px; margin: 22px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 18px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); overscroll-behavior-x: contain; scrollbar-width: thin;
  }
  .tour-step { flex: 0 0 min(84%, 420px); min-height: 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 14px; scroll-snap-align: start;
    padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
  .tour-step.rv { animation: none; opacity: 1; translate: none; }
  .tour-text { opacity: 1; padding-left: 0; }
  .tour-text::before { display: none; }
  .tour-text h3 { font-size: 1.35rem; }
  .tour-inline { display: block; margin: 0; }
  .tour-inline img { border-radius: 10px; filter: none; }
  .tour-inline figcaption { display: none; }
}

/* ---------- Every feature: bento grid ---------- */
.kit { padding: clamp(48px, 6vw, 88px) 0 0; }
.kit-head p { margin-top: 10px; color: var(--ink-2); font-size: 1.0625rem; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.g-charging { --gc: #ee6b33; --gi: #b23f14; grid-row: span 2; }
.g-smart { --gc: #f0a81e; --gi: #8a5a00; }
.g-insights { --gc: #d4487a; --gi: #9c2a52; grid-row: span 2; }
.g-tools { --gc: #9a5fd4; --gi: #6b35a3; }
.g-device { --gc: #35b072; --gi: #1d7a4e; }
.g-everywhere { --gc: #4a8ae0; --gi: #2a62ab; grid-column: span 2; }
:root[data-theme="dark"] .g-charging { --gi: #ff9a5a; }
:root[data-theme="dark"] .g-smart { --gi: #ffc94a; }
:root[data-theme="dark"] .g-insights { --gi: #ff8fb1; }
:root[data-theme="dark"] .g-tools { --gi: #cfa8f5; }
:root[data-theme="dark"] .g-device { --gi: #74e3a8; }
:root[data-theme="dark"] .g-everywhere { --gi: #9cc4f7; }
.bento-g { scroll-margin-top: 90px; padding: 16px 16px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: inset 0 3px 0 -1px var(--gc); }
.bento-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.bento-top h3 { display: flex; align-items: center; gap: 10px; font: 640 1.25rem/1.1 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 36; }
.bento-top h3 svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; color: #2a1020; background: var(--gc); }
.bento-more { flex: none; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); font: 600 .8125rem var(--f-body); cursor: pointer; }
.bento-more:hover { color: var(--ink); border-color: var(--ink-3); }
.bento-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.g-everywhere .bento-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.bento-list li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; column-gap: 10px; padding: 5px 6px; border-radius: 10px; font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.bento-list li:hover { background: color-mix(in srgb, var(--gc) 9%, transparent); }
.bento-list svg, .glyph, .try-tabs svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bento-list li svg { width: 28px; height: 28px; padding: 5px; border-radius: 8px; color: var(--gi); background: color-mix(in srgb, var(--gc) 15%, transparent); }
.bl-tip {
  position: absolute; z-index: 6; left: 44px; bottom: calc(100% - 4px); width: max-content; max-width: min(260px, 70vw);
  padding: 7px 11px; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: .8125rem; font-weight: 500; line-height: 1.35;
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .18s, transform .18s; box-shadow: 0 8px 20px -8px rgba(20, 5, 20, .5);
}
.bento-list li:hover .bl-tip { opacity: 1; transform: none; }
.bento-g.open .bl-tip { position: static; grid-column: 2; width: auto; max-width: none; padding: 0 0 4px; background: none; color: var(--ink-3); box-shadow: none; opacity: 1; transform: none; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-charging, .g-insights { grid-row: auto; }
  .g-everywhere { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .g-everywhere .bento-list { grid-template-columns: 1fr; }
  .bento-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
  .bento-list li { font-size: .875rem; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; padding: 4px 2px; }
  .bento-list li svg { width: 26px; height: 26px; }
  .g-everywhere .bento-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-g.open .bento-list { grid-template-columns: 1fr; }
  .bl-tip { display: none; }
  .bento-g.open .bl-tip { display: block; }
}

/* ---------- Try it: three demos in one box ---------- */
.try { padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); }
.try-box { margin-top: 24px; padding: clamp(14px, 2.4vw, 26px); border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.try-tabs { margin-bottom: 18px; }
.try-tabs [role="tab"] { display: inline-flex; align-items: center; gap: 8px; }
.try-tabs svg { width: 17px; height: 17px; }
.try-lede { color: var(--ink-2); font-size: .9688rem; }
.try .flow-diagram { margin: 22px auto 4px; }
.try .led-stage { height: 210px; }
.try .led-controls { gap: 14px; }
.try .term-body { min-height: 250px; max-height: 360px; }
@media (max-width: 520px) { .try-tabs [role="tab"] { padding: 0 12px; font-size: .875rem; } .try-tabs svg { display: none; } }

/* ---------- Typeable terminal ---------- */
.term { position: relative; cursor: text; }
.term-bar .term-try { margin-left: auto; font: 600 11px var(--f-body); font-style: normal; color: rgba(255, 255, 255, .55); padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); }
.term.live .term-try { display: none; }
.term-body { max-height: 460px; overflow-y: auto; padding-bottom: 6px; }
.term-body .err { color: #ff9ea6; }
.term-body .note { color: var(--gold); }
.term-form { display: flex; align-items: center; gap: .6em; padding: 0 18px 18px; font: 400 13px/1.7 var(--f-mono); }
.term-form .prompt { color: var(--amber); }
.term-field { position: relative; flex: 1; min-width: 0; }
.term-input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font: 600 13px/1.7 var(--f-mono); caret-color: transparent; }
.term-input::placeholder { color: rgba(243, 230, 238, .38); font-weight: 400; }
.term-caret { position: absolute; left: 0; top: .2em; width: 1ch; height: 1.25em; font: 600 13px var(--f-mono); background: var(--amber); opacity: .85; pointer-events: none; transform: translateX(calc(var(--col, 0) * 1ch - var(--sl, 0px))); visibility: hidden; }
.term-input:focus + .term-caret { visibility: visible; animation: caret 1s steps(1) infinite; }
.term:has(.term-input:focus) { box-shadow: var(--shadow), 0 0 0 2px rgba(255, 154, 60, .45); }
@media (max-width: 520px) { .term-form, .term-input, .term-caret { font-size: 11.5px; } .term-form { padding: 0 14px 14px; } }

/* ---------- Spotlight + tilt ---------- */
.spot { position: relative; isolation: isolate; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.spot.spot-on { transition: transform .12s linear; will-change: transform; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 154, 60, .2), transparent 65%);
}
.spot.spot-on::before { opacity: 1; }
.shot picture.spot { border-radius: 12px; }
.shot picture.spot::before { z-index: 1; mix-blend-mode: soft-light; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 60%); }
.tour-frame.spot::before { z-index: -1; opacity: 1; }

/* ---------- Laptop (the jar morphs into it) ---------- */
:root { --lap-edge: #cfc7d4; --lap-deck: #e7e2eb; --lap-edge2: #c3bac9; --lap-hinge: #8f8596; }
:root[data-theme="dark"] { --lap-edge: #7b6e84; --lap-deck: #4e4358; --lap-edge2: #3a3043; --lap-hinge: #241c2b; }
.lap-lid { fill: #1b1220; stroke: var(--lap-edge); stroke-width: 3; }
.lap-display { fill: url(#g-disp); }
.lap-menubar { fill: rgba(255, 255, 255, .1); }
.lap-menus { stroke: rgba(255, 255, 255, .42); stroke-width: 2.4; stroke-linecap: round; }
.lap-menu-text { fill: #fff6ec; font: 600 7.2px var(--f-body); font-variant-numeric: tabular-nums; }
.lap-label { fill: rgba(255, 246, 236, .6); font: 600 9px var(--f-body); }
.lap-pct { fill: #fff6ec; font: 650 40px var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lap-state { fill: rgba(255, 246, 236, .78); font: 600 9.5px var(--f-body); }
.lap.charging .lap-state, .lap.charging .lap-menu-text { fill: #ffb347; }
.lap-hinge { fill: var(--lap-hinge); }
.lap-top { fill: var(--lap-deck); }
.lap-edge { fill: var(--lap-edge2); }
.lap-notch { fill: rgba(20, 5, 20, .2); }
.lap-port { fill: #2a1a30; }
.lap-shadow { fill: rgba(30, 8, 30, .2); }
.jar-stroke, .jar-cap { transition: stroke .3s, fill .3s; }
.is-laptop .jar-stroke { stroke: #fff6ec; }
.is-laptop .jar-cap { fill: #fff6ec; }
.plug-layer { z-index: 2; }
.pot-toggle {
  position: absolute; z-index: 1; left: 26%; top: 23%; width: 48%; height: 61%;
  padding: 0; border: 0; border-radius: 30px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pot-toggle:focus-visible { outline-offset: 4px; }
.is-laptop .pot-toggle { left: 3%; top: 27%; width: 94%; height: 47%; border-radius: 14px; }
.pot-back {
  position: absolute; left: 50%; top: -40px; transform: translateX(-50%); white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 .8125rem var(--f-body);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.is-laptop .pot-back { opacity: 1; pointer-events: auto; transition-delay: .5s; }
.hint {
  position: absolute; z-index: 3; margin: 0; padding: 7px 13px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: var(--ink); color: var(--bg); font: 600 .8125rem var(--f-body); box-shadow: 0 10px 24px -10px rgba(20, 5, 20, .5);
  opacity: 0; translate: 0 6px; transition: opacity .35s, translate .35s;
}
.hint.show { opacity: 1; translate: none; }
.hint::after { content: ""; position: absolute; width: 10px; height: 10px; background: inherit; rotate: 45deg; }
.hint-plug { right: 0; top: 92%; }
.hint-plug::after { top: -4px; right: 30px; }
.hint-jar { left: 50%; top: 13%; transform: translateX(-50%); }
.hint-jar::after { bottom: -4px; left: calc(50% - 5px); }

/* ---------- Egg hints: nav button, popover, footer chip ---------- */
.egg-btn { width: auto; min-width: 40px; padding: 0 10px; display: flex; gap: 5px; border-radius: 999px; }
.egg-btn svg { width: 18px; height: 18px; }
.egg-count { font: 700 .75rem var(--f-body); font-variant-numeric: tabular-nums; }
.egg-btn.has-found { color: var(--accent); }
.egg-pop {
  position: fixed; z-index: 60; top: 74px; right: 16px; width: min(340px, calc(100vw - 32px));
  padding: 14px 14px 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.egg-pop.from-foot { top: auto; bottom: 16px; left: 16px; right: auto; }
.egg-pop-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.egg-pop-title { font: 650 1.0625rem/1.2 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 36; }
.egg-pop-close { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.egg-pop-close:hover { background: var(--line); }
.egg-pop-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.egg-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.egg-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: .875rem; line-height: 1.4; }
.egg-list b { display: block; font-weight: 700; color: var(--ink-3); }
.egg-list .got b { color: var(--accent); }
.egg-list i { font-style: normal; color: var(--ink-2); }
.egg-mark { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px dashed var(--line-strong); }
.got .egg-mark { border: 0; background: linear-gradient(160deg, var(--gold), var(--accent-fill)) center / cover; position: relative; }
.got .egg-mark::after { content: ""; position: absolute; left: 7.5px; top: 4px; width: 5px; height: 10px; border: solid #2a1020; border-width: 0 2.2px 2.2px 0; rotate: 45deg; }
button.egg-chip { border: 0; cursor: pointer; font-family: inherit; }
button.egg-chip:hover { background: var(--line-strong); }
.brand:hover img { animation: wiggle .55s ease-in-out; }
@keyframes wiggle { 25% { transform: rotate(-9deg); } 50% { transform: rotate(7deg); } 75% { transform: rotate(-3deg); } }

/* ---------- Scroll reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { animation: rv-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  .rv-par { animation: rv-par linear both; animation-timeline: view(); animation-range: cover; }
  .no-sda .rv { animation: none; opacity: 0; translate: 0 22px; transition: opacity .7s ease, translate .8s cubic-bezier(.2, .8, .2, 1); }
  .no-sda .rv.in { opacity: 1; translate: none; }
  .no-sda .rv-par { animation: none; }
}
@keyframes rv-rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: none; } }
@keyframes rv-par { from { translate: 0 14px; } to { translate: 0 -14px; } }

@media (prefers-reduced-motion: reduce) {
  .real-batt.on-ac .rb-dot, .rj-fire path, .plug-layer[data-led="blink"] .plug-led, .plug-layer[data-led="blink"] .plug-glow, .hero.disco::before { animation: none; }
  .tour-shot, .tour-text { transition: none; }
  .egg-toast { transition: opacity .2s; transform: translate(-50%, 0); }
  @media (min-width: 721px) { .egg-toast, .egg-toast.show { transform: none; } }
}
