/* ==========================================================================
   v2 canvas — DARK override (loaded after canvas.css by index-dark.html)
   No grey mist. Graphite surfaces from the DLS (#0f0f0f / #161616 / #202020);
   the "lit" feel comes from soft cold light, fog and rim light, not from grey.
   Neon budget unchanged: vivid colour only on live values and the one CTA.
   ========================================================================== */

:root {
  /* light, not paint: cold white at low alpha, one faint teal haze (06) */
  --light-key: rgb(214 226 234 / .16);   /* soft cold key light */
  --light-fill: rgb(214 226 234 / .05);  /* fill / fog */
  --light-rim: rgb(255 255 255 / .16);   /* rim on device edges */
  --haze-teal: rgb(4 170 114 / .10);     /* first-install glow, kept dim */
  --graphite-0: #0b0c0d;
  --graphite-1: #121314;
}

/* ---------- page: one faint cold light from the top ---------- */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -120px 0 auto 30%; height: 640px;
  background: radial-gradient(50% 50% at 60% 30%, var(--light-fill), transparent 70%);
}

/* ---------- the stage: a dark room with a key light and fog ---------- */
.stage {
  background:
    radial-gradient(55% 70% at 74% 0%, var(--light-key) 0%, transparent 65%),
    radial-gradient(38% 52% at 52% 50%, rgb(214 226 234 / .07) 0%, transparent 72%),   /* pool behind the devices */
    radial-gradient(45% 40% at 50% 92%, rgb(214 226 234 / .07) 0%, transparent 70%),   /* floor bounce */
    radial-gradient(50% 60% at 8% 100%, var(--haze-teal) 0%, transparent 70%),           /* 06 glow, dim */
    linear-gradient(180deg, var(--graphite-1) 0%, var(--graphite-0) 100%);
  box-shadow: 0 0 0 1px var(--line-default), inset 0 1px 0 rgb(255 255 255 / .05);
}
/* grain lifts instead of darkens */
.stage::before, .mist::before { mix-blend-mode: screen; opacity: .05; filter: invert(1); }
/* fog drifts as light */
.stage::after, .mist::after {
  background:
    radial-gradient(35% 30% at 30% 40%, rgb(214 226 234 / .06), transparent 70%),
    radial-gradient(30% 25% at 70% 65%, rgb(214 226 234 / .045), transparent 70%);
  filter: blur(28px);
}
.stage__label { color: var(--ink-tertiary); }
.stage__pause { background: rgb(255 255 255 / .06); color: var(--ink-primary); box-shadow: inset 0 0 0 1px var(--line-default); }
.stage__pause:hover { background: rgb(255 255 255 / .1); }
.note {
  background: rgb(22 22 22 / .82);
  box-shadow: inset 0 0 0 1px var(--line-default), 0 18px 40px -16px rgb(0 0 0 / .7);
}

/* devices: rim light from the key, deeper contact shadow */
.phone {
  background: linear-gradient(145deg, #3a3b3d, #0a0a0a 38%, #18191a 80%, #2a2b2d);
  box-shadow:
    inset 0 0 0 1px var(--light-rim),
    inset 1px 1px 0 rgb(255 255 255 / .1),
    0 0 0 1px #050505,
    0 40px 70px -14px rgb(0 0 0 / .85),
    0 80px 120px -40px rgb(0 0 0 / .7);
}
.watch {
  box-shadow:
    inset 0 0 0 2px rgb(255 255 255 / .35),
    inset 0 -6px 12px rgb(0 0 0 / .3),
    0 0 40px -6px rgb(214 226 234 / .12),
    0 30px 60px -12px rgb(0 0 0 / .85);
}
.watch::before {
  background: linear-gradient(180deg, transparent, #1f2022 18%, #2a2b2d 50%, #1f2022 82%, transparent);
  box-shadow: inset 1px 0 0 rgb(255 255 255 / .07), inset -1px 0 0 rgb(255 255 255 / .04);
}

/* ---------- ex-mist tiles: graphite with a soft light, not grey ---------- */
.mist {
  background:
    radial-gradient(80% 70% at 85% 0%, rgb(214 226 234 / .09) 0%, transparent 60%),
    linear-gradient(170deg, var(--surface-card-elevated) 0%, var(--surface-card) 55%, var(--graphite-1) 100%);
  color: var(--ink-primary);
  border-color: var(--line-default);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .05);
}
.mist .tile__text { color: var(--ink-secondary); }
.mist .fy-eyebrow { color: var(--ink-tertiary); }
.mist .spark path:first-child { stroke: var(--line-strong); }
.mist .spark path.l { stroke: var(--ink-primary) !important; }  /* beats the inline mist-ink */

/* AI door: the chat window floats in the light */
.door.mist .chatwin {
  background: var(--surface-canvas);
  box-shadow: 0 0 60px -10px rgb(214 226 234 / .1), 0 30px 60px -20px rgb(0 0 0 / .8);
}

/* ---------- final CTA: the "first install" glow, dim ---------- */
.final { isolation: isolate; }
.final::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0;
  background:
    radial-gradient(38% 42% at 74% 42%, var(--light-key) 0%, transparent 72%),
    radial-gradient(55% 70% at 40% 55%, var(--haze-teal) 0%, transparent 70%);
}

@media (prefers-reduced-motion: reduce) {
  .stage::after, .mist::after { animation: none; }
}
