/* Device simulator, playback controls and status colour key. */
  :root {
    --room: #faf8f3;
    --panel: #fffefa;
    --raised: #ecece3;
    --line: #d7d5cb;
    --text: #0b0f14;          /* Sahai Dark */
    --muted: #55606c;
    --faint: #8a94a0;
    --accent: #a85028;        /* copper, deepened for light backgrounds (same as the light-page videos) */
    --accent-ink: #ffffff;
    --amber: #d9771f;
    --spot: #ffffff;
    --stage-edge: #e7e6db;
    --font-ui: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --r: 14px;
  }
  html { background: var(--room); }
  [hidden] { display: none !important; }
  body {
    background: var(--room); color: var(--text); font-family: var(--font-ui); font-size: 16px; line-height: 1.5;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-block: 28px 48px;
  }
  .wrap { max-width: 1180px; margin: 0 auto; display: grid; gap: 28px; }
  header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
  .brand { display: flex; align-items: center; gap: 12px; }
  .brand .btn { padding: 4px 12px; font-size: 13px; }
  .brand b { font-size: 15px; letter-spacing: .22em; font-weight: 600; color: var(--accent); }
  h1 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
  header p { margin: 0; color: var(--muted); max-width: 52ch; }

  .main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: start; }
  @media (max-width: 900px) { .main { grid-template-columns: minmax(0, 1fr); } }

  /* stage */
  .stage-card { display: grid; gap: 14px; min-width: 0; }
  .stage {
    position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 100%; border-radius: 22px; overflow: hidden;
    background: radial-gradient(60% 58% at 50% 48%, var(--spot) 0%, var(--stage-edge) 78%);
    border: 1px solid var(--line); touch-action: manipulation; user-select: none; -webkit-user-select: none;
  }
  .stage img, .stage canvas.glow { position: absolute; pointer-events: none; }
  .stage img { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 18px 26px rgba(0,0,0,.55)); }
  .hot {
    position: absolute; width: 13%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
    border: 0; background: transparent; cursor: pointer; padding: 0; touch-action: none;
  }
  .hot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .ring {
    position: absolute; inset: 22%; border-radius: 50%; border: 2px solid var(--text); opacity: 0; transition: opacity .25s;
  }
  .hot.hint .ring { opacity: .35; }
  .hot.show .ring { opacity: .9; }
  .hot.down .ring { animation: pulse .5s ease-in-out infinite alternate; background: color-mix(in srgb, var(--text) 35%, transparent); }
  .hot .tag {
    position: absolute; top: 96%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 600;
    background: var(--text); color: var(--room); padding: 4px 11px; border-radius: 999px; opacity: 0; transition: opacity .25s;
  }
  .hot.show .tag { opacity: 1; }
  @keyframes pulse { from { transform: scale(.92); } to { transform: scale(1.08); } }
  .skipchip {
    position: absolute; left: 50%; top: 5%; transform: translateX(-50%); background: var(--text); color: var(--room);
    font-weight: 600; padding: 6px 16px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .25s;
    white-space: nowrap;
  }
  .skipchip.on { opacity: 1; }

  .finish { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .finish .label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-right: 4px; }
  .finish .name { color: var(--muted); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
  .finish .sw2 { display: inline-flex; }
  .finish .sw2 i { width: 14px; height: 14px; border-radius: 50%; display: block; border: 1px solid var(--line); margin-left: -4px; }
  .finish .sw2 i:first-child { margin-left: 0; }
  .finish .hint { color: var(--faint); font-size: 13px; }
  .chip {
    display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--muted); border: 1px solid var(--line);
    border-radius: 999px; padding: 6px 12px 6px 8px; font: 600 13px var(--font-ui); cursor: pointer;
  }
  .chip[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
  .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .chip .sw2 { display: inline-flex; }
  .chip .sw2 i { width: 14px; height: 14px; border-radius: 50%; display: block; border: 1px solid var(--line); margin-left: -4px; }
  .chip .sw2 i:first-child { margin-left: 0; }
  .now { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 4px 4px 0; }
  .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 14px var(--dotglow, transparent); }
  .now h2 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.2; }
  .now p { grid-column: 2; margin: 0; color: var(--muted); min-height: 3em; }
  .now .tech { grid-column: 2; font-family: var(--font-mono); font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

  /* console */
  .console { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; display: grid; }
  .tabs { display: flex; border-bottom: 1px solid var(--line); }
  .tabs button {
    flex: 1; background: none; border: 0; color: var(--muted); font: 600 15px var(--font-ui); padding: 14px 10px;
    cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  }
  .tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
  .tabs button:focus-visible, .btn:focus-visible, .sc:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .pane { padding: 18px; display: grid; gap: 16px; min-width: 0; }

  .head { display: grid; gap: 2px; }
  .kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
  .head h3 { margin: 0; font-size: 22px; font-weight: 600; }
  .head p { margin: 0; color: var(--muted); }

  .strip-box { display: grid; gap: 6px; }
  .strip-wrap { position: relative; height: 46px; cursor: pointer; }
  .strip-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .playhead { position: absolute; top: 2px; bottom: 6px; width: 2px; background: var(--text); left: 0; pointer-events: none; border-radius: 2px; }
  .strip-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; font-family: var(--font-mono); }

  .transport { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .btn {
    background: var(--raised); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
    font: 600 14px var(--font-ui); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; touch-action: none;
  }
  .btn:hover { border-color: var(--faint); }
  .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .btn.down { background: var(--text); color: var(--room); }
  .check { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin-left: auto; }
  .check input { accent-color: var(--accent); width: 16px; height: 16px; }

  .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 360px; overflow: auto; padding-right: 2px; }
  @media (max-width: 420px) { .list { grid-template-columns: minmax(0, 1fr); } }
  .sc {
    text-align: left; background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--text);
    padding: 9px 11px; cursor: pointer; display: grid; gap: 1px; font-family: var(--font-ui); min-width: 0;
  }
  .sc small { color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sc span { font-weight: 600; font-size: 14px; }
  .sc[aria-current="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

  /* try it */
  .modechip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .modechip strong { font-size: 18px; }
  .pips { display: inline-flex; gap: 4px; }
  .pips i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); display: block; }
  .controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .controls .btn { justify-content: center; padding: 12px 10px; border-radius: 12px; }
  .controls .wide { grid-column: 1 / -1; }
  .how { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
  .how b { color: var(--text); font-weight: 600; }
  kbd { font-family: var(--font-mono); font-size: 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--text); }
  .modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; font-size: 13px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
  .modes li { display: flex; gap: 8px; align-items: center; }
  .modes li.cur { color: var(--text); font-weight: 600; }

  /* key */
  .key h2 { font-size: 20px; margin: 0 0 12px; font-weight: 600; }
  .swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
  .sw { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; background: var(--panel);
        border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
  .sw .lamp { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: 0 0 16px var(--c); }
  .sw strong { font-size: 15px; }
  .sw span { color: var(--muted); font-size: 13px; }
  .lamp.breath { animation: breath 4.64s ease-in-out infinite; }
  .lamp.fast { animation: breath 2.32s ease-in-out infinite; }
  .lamp.shimmer { animation: shimmer 3.1s ease-in-out infinite; }
  /* Mode changed: amber blinks (here two, as for Mode 2), then a calm pause. Soft edges, no strobe. */
  .lamp.blink { animation: blink 3s ease-in-out infinite; }
  /* Going to sleep: the warm glow fades out, one short gold blink, then dark for a moment. */
  .lamp.sleep { animation: sleep 4.2s ease-in-out infinite; }
  .lamp.tick { animation: tick 2.4s ease-out infinite; }
  @keyframes breath { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
  @keyframes shimmer { 0%, 100% { opacity: .6; } 30% { opacity: 1; } 60% { opacity: .75; } }
  @keyframes blink { 0%, 100% { opacity: .12; } 3%, 11% { opacity: 1; } 15%, 18% { opacity: .12; } 22%, 30% { opacity: 1; } 35% { opacity: .12; } }
  @keyframes sleep { 0% { opacity: 1; } 38% { opacity: .1; } 50% { opacity: .1; } 53%, 58% { opacity: 1; } 63%, 100% { opacity: .1; } }
  @keyframes tick { 0%, 6% { opacity: 1; } 12%, 100% { opacity: .1; } }
  footer { color: var(--faint); font-size: 13px; display: grid; gap: 6px; }
  footer p { margin: 0; max-width: 90ch; }
  @media (prefers-reduced-motion: reduce) {
    .lamp, .hot.down .ring { animation: none !important; }
  }

/* Shared art direction with the Sahai product page. */
:root {
  --room:#fafbf9;--panel:#fff;--raised:#f0f4f6;--line:#d7e0e5;--text:#17212a;
  --muted:#505e68;--faint:#566777;--accent:#315b7b;--accent-ink:#fff;
  --stage-edge:#d9e6f0;--spot:#f4f8fa;--r:19px;
  --font-ui:"Helvetica Neue",Helvetica,Arial,sans-serif;
  --display:"Iowan Old Style",Baskerville,"Palatino Linotype","Book Antiqua",Georgia,serif;
  --font-mono:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
}
*,*::before,*::after {box-sizing:border-box}
body {margin:0;padding:0}
:focus-visible {outline:3px solid #1b76ae;outline-offset:3px}
a {color:inherit}
.guide-skip {position:fixed;z-index:3;top:-5rem;left:12px;padding:8px 12px;background:var(--panel);color:var(--text)}
.guide-skip:focus {top:8px}
.wrap,.guide-bar-inner {width:min(calc(100% - clamp(40px,10vw,160px)),1200px);margin-inline:auto}
.guide-bar {border-bottom:1px solid var(--line);background:var(--panel)}
.guide-bar-inner {min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.guide-logo {display:inline-flex;align-items:center}
.guide-logo img {width:76px;height:auto}
.logo-dark {display:none}
.guide-home {display:inline-flex;align-items:center;gap:8px;align-self:flex-start;color:var(--text);font-weight:500;text-decoration:none;font-size:.9rem}
.guide-bar .guide-home {align-self:center;padding:12px 0}
.guide-home:hover {text-decoration:underline;text-underline-offset:4px}
.wrap {gap:clamp(24px,3vw,42px);padding-bottom:42px}
.guide-intro {display:block;padding-top:clamp(38px,5.2vw,80px)}
.guide-intro h1,.key h2 {font-family:var(--display);font-weight:400;letter-spacing:-.058em;font-size:clamp(48px,5.8vw,85px);line-height:1.05}
.guide-intro em {font-weight:400}
.guide-intro p {max-width:56ch;margin:12px 0 0;font-size:clamp(1rem,1.5vw,1.19rem);line-height:1.55}
.stage {border-color:transparent}
.stage img {filter:drop-shadow(4px 12px 12px rgb(24 50 70 / .18))}
.finish {padding:0 3px}
.finish .label,.kicker {letter-spacing:.095em;font-weight:550}
.now {margin-top:8px}
.now h2 {font-size:clamp(22px,2.3vw,32px);font-weight:500;letter-spacing:-.045em}
.now p {min-height:2.9em;line-height:1.5}
.dot {width:14px;height:14px}
.tabs button {padding:16px 12px;font-weight:500}
.pane {padding:clamp(16px,2vw,26px);gap:18px}
.head h3 {font:400 clamp(26px,2.8vw,39px)/1.05 var(--display);letter-spacing:-.045em}
.head p {margin:4px 0 0;font-size:.94rem}
.sc {padding:8px 12px}
.sc span {font-weight:500;line-height:1.35}
.sw strong {font-weight:550}
.key {border-top:1px solid var(--line);padding-top:clamp(32px,5vw,72px)}
.key h2 {font-size:clamp(35px,3.7vw,54px);margin-bottom:24px}
.key .swatches {gap:0;border-top:1px solid var(--line);grid-template-columns:repeat(3,minmax(0,1fr))}
.key .sw {border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:17px 11px 17px 0}
.key .lamp {width:18px;height:18px;border:1px solid rgba(40,53,72,.25);box-shadow:inset 0 0 4px #ffffff44}
footer {border-top:1px solid var(--line);padding-top:20px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px 36px;flex-wrap:wrap}
footer p {max-width:70ch}
.mobile-scenarios {display:none}
@media(min-width:901px) {
  .main {gap:clamp(24px,4vw,60px)}
  .stage-card {position:sticky;top:20px}
}
@media(max-width:900px) {
  .main {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
  .stage-card {position:sticky;top:16px}
  .key .swatches {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px) {
  .main {grid-template-columns:1fr}
  .stage-card {position:static;gap:10px}
  .stage {width:min(100%,380px);margin-inline:auto}
  .now {margin-top:2px}
  .now p {min-height:0}
  .mobile-scenarios {display:grid;gap:6px;color:var(--muted);font-size:.85rem}
  .mobile-scenarios select {width:100%;font:500 16px var(--font-ui);color:var(--text);background:var(--raised);border:1px solid var(--line);border-radius:8px;padding:10px}
  .list {display:none}
  .key .swatches {grid-template-columns:1fr 1fr;column-gap:13px}
  .key .sw {gap:2px 7px;padding-block:12px}
  .key .sw strong {font-size:14px}
}
@media(max-width:390px) {
  .key .swatches {grid-template-columns:1fr}
  .check {margin-left:0}
}
