/* Beam site, "on-air" dark. Tokens first; components use only these. See design-brief.md. */
:root {
  color-scheme: dark;
  --bg: oklch(0.155 0.008 265);
  --bg-raised: oklch(0.19 0.01 265);
  --surface: oklch(0.22 0.012 265);
  --line: oklch(0.3 0.012 265);
  --text: oklch(0.965 0.004 95);
  --text-2: oklch(0.86 0.008 265);
  --muted: oklch(0.72 0.012 265);
  --key: oklch(0.83 0.2 150);          /* the only accent: Buy buttons, live dots, the Windows highlight */
  --key-deep: oklch(0.76 0.2 150);
  --on-key: oklch(0.2 0.04 150);

  --font-display: "Bricolage Grotesque", "Segoe UI Variable Display", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  --t-label: 0.8125rem;   /* 13 */
  --t-body: 1.0625rem;    /* 17 */
  --t-h2: clamp(2rem, 4vw, 2.75rem);
  --t-h1: clamp(3rem, 6.6vw, 5.75rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px; --s-8: 32px;
  --s-12: 48px; --s-16: 64px; --s-18: 72px; --s-28: 112px;
  --section: var(--s-28);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.35, 0.45, 1);
}
@media (max-width: 720px) { :root { --section: var(--s-18); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 300 var(--t-body)/1.6 var(--font-body);
  background:
    radial-gradient(1100px 620px at 78% -8%, oklch(0.36 0.09 268 / 0.5), transparent 70%),
    radial-gradient(700px 500px at 0% 20%, oklch(0.32 0.07 200 / 0.25), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}
body::after { /* film grain so the dark never looks flat */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--key); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--s-6); }
.mono { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }
strong, b { font-weight: 600; }
[hidden] { display: none !important; }

/* ---------- header / footer ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: oklch(0.155 0.008 265 / 0.72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color 200ms; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: 64px; }
.wordmark { display: flex; align-items: center; gap: var(--s-2); font: 800 1.25rem/1 var(--font-display); text-decoration: none; letter-spacing: -0.02em; }
.wordmark > svg { width: 20px; height: 20px; }
.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav a:not(.btn) { text-decoration: none; font-size: 0.9375rem; color: var(--text-2); }
.nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .for-win { padding: 4px 8px; font-size: 10px; margin-left: 4px; } .wordmark { font-size: 1.125rem; } }

.site-foot { border-top: 1px solid var(--line); margin-top: var(--section); padding-block: var(--s-12); color: var(--muted); font-size: 0.9375rem; }
.site-foot .wrap { display: grid; gap: var(--s-6); grid-template-columns: 1fr auto; align-items: start; }
.site-foot nav { display: flex; gap: var(--s-6); flex-wrap: wrap; }
.site-foot .fine { grid-column: 1 / -1; font-size: var(--t-label); }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr; } .site-foot { padding-bottom: 120px; } }

/* Windows everywhere: iPhone mirroring is built into macOS, so the whole pitch is "for Windows". */
.win { width: 1em; height: 1em; flex: none; }
.for-win { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; margin-left: var(--s-2); padding: 5px 10px; border-radius: 999px; background: oklch(1 0 0 / 0.08); border: 1px solid oklch(1 0 0 / 0.12); color: var(--text-2); font: 400 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.for-win .win { width: 11px; height: 11px; color: var(--key); }
.platform { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid oklch(1 0 0 / 0.16); background: oklch(1 0 0 / 0.04); font: 400 var(--t-label)/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.platform .win { width: 15px; height: 15px; color: var(--key); }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: var(--s-3); padding: 16px 26px; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; border: 1px solid oklch(1 0 0 / 0.18); color: var(--text); background: transparent;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease), box-shadow 220ms var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 160ms var(--ease); }
.btn:hover > svg:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-buy { background: var(--key); color: var(--on-key); border-color: transparent; box-shadow: 0 10px 30px -10px oklch(0.83 0.2 150 / 0.55), inset 0 1px 0 oklch(1 0 0 / 0.35); }
.btn-buy:hover { background: var(--key-deep); box-shadow: 0 0 0 6px oklch(0.83 0.2 150 / 0.16), 0 16px 40px -10px oklch(0.83 0.2 150 / 0.65), inset 0 1px 0 oklch(1 0 0 / 0.35); }
.btn-buy::after { /* a slow sheen, once every few seconds */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, oklch(1 0 0 / 0.45) 50%, transparent 70%);
}
@media (prefers-reduced-motion: no-preference) { .btn-buy::after { animation: sheen 5s 1.6s infinite; } }
@keyframes sheen { 0% { transform: translateX(-120%); } 22%, 100% { transform: translateX(120%); } }
.btn-ghost:hover { background: oklch(1 0 0 / 0.06); }
.btn-sm { padding: 10px 16px; font-size: 0.875rem; gap: var(--s-2); }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { padding: 20px 30px; font-size: 1.0625rem; }
.btn[aria-disabled="true"] { cursor: not-allowed; }
.site-note { position: fixed; z-index: 90; left: 50%; bottom: 24px; translate: -50% 20px; padding: 12px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 0.9375rem; box-shadow: 0 20px 40px -10px oklch(0 0 0 / 0.7); opacity: 0; pointer-events: none; transition: opacity 200ms, translate 300ms var(--spring); }
.site-note.show { opacity: 1; translate: -50% 0; }
.btn .win { width: 17px; height: 17px; }
.btn-price { padding-left: var(--s-3); border-left: 1px solid oklch(0.2 0.04 150 / 0.3); font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding-top: var(--s-16); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-12); align-items: end; }
h1 { font: 800 var(--t-h1)/0.94 var(--font-display); letter-spacing: -0.04em; margin: var(--s-6) 0 0; }
.hl { position: relative; white-space: nowrap; color: var(--key); }
.hl::after { /* marker stroke drawn in on load */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.09em; border-radius: 99px; background: var(--key);
  transform-origin: left; transform: scaleX(1); opacity: 0.9;
}
@media (prefers-reduced-motion: no-preference) { .hl::after { transform: scaleX(0); animation: draw 700ms 700ms var(--ease) forwards; } }
@keyframes draw { to { transform: scaleX(1); } }
.lede { font-size: 1.1875rem; color: var(--text-2); max-width: 40ch; margin: 0 0 var(--s-8); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); list-style: none; padding: 0; margin: var(--s-6) 0 0; color: var(--muted); font-size: 0.9375rem; }
.trust li { display: inline-flex; align-items: center; gap: var(--s-2); }
.trust svg { width: 16px; height: 16px; color: var(--key); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); } .hero { padding-top: var(--s-12); } }

/* ---------- hero demo (the signature) ---------- */
.demo { position: relative; margin-top: var(--s-12); }
.demo-glow { /* bias lighting behind the monitor; tints with the chosen background */
  position: absolute; inset: 10% 8% -4%; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, var(--glow, #4690c8), transparent);
  filter: blur(70px); opacity: 0.32; transition: background 700ms;
}
.monitor {
  position: relative; z-index: 1; padding: 10px; border-radius: 22px;
  background: linear-gradient(180deg, oklch(0.28 0.012 265), oklch(0.2 0.01 265));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.12), inset 0 0 0 1px oklch(1 0 0 / 0.05), 0 60px 120px -40px oklch(0 0 0 / 0.9);
}
.scene-box { position: relative; overflow: hidden; border-radius: 13px; background: #0b0d12; touch-action: pan-y; }
.scene { position: absolute; left: 0; top: 0; transform-origin: 0 0; color: #E8E9EC; font: 400 13px/1.3 "Segoe UI Variable Text", "Segoe UI", var(--font-body); user-select: none; -webkit-user-select: none; }
.scene button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.scene svg { display: block; }

.wallpaper {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(55% 75% at 16% 26%, oklch(0.52 0.16 262 / 0.95), transparent 62%),
    radial-gradient(50% 70% at 88% 78%, oklch(0.56 0.2 330 / 0.75), transparent 62%),
    radial-gradient(38% 50% at 64% 12%, oklch(0.8 0.13 70 / 0.42), transparent 60%),
    linear-gradient(160deg, oklch(0.26 0.06 265), oklch(0.17 0.05 292));
}
.wallpaper::after {
  content: ""; position: absolute; inset: -30%;
  background: conic-gradient(from 0deg at 50% 50%, transparent, oklch(1 0 0 / 0.06), transparent 30%, oklch(0.8 0.15 200 / 0.08), transparent 60%);
}
@media (prefers-reduced-motion: no-preference) { .wallpaper::after { animation: drift 38s linear infinite; } }
@keyframes drift { to { transform: rotate(1turn); } }

/* the Beam window, drawn with the app's own colors (src/Ui.cs Theme) */
.appwin { position: absolute; z-index: 10; display: flex; flex-direction: column; border-radius: 10px; background: #0E0F12; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 30px 60px -12px rgb(0 0 0 / 0.65); }
.aw-title { height: 40px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; background: #15171B; border-radius: 10px 10px 0 0; }
.aw-brand { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; }
.aw-brand svg { width: 15px; height: 15px; color: #4C9BFF; }
.aw-pill { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 11px; border-radius: 12px; background: #23262C; font-size: 12px; white-space: nowrap; }
.aw-pill i { width: 8px; height: 8px; border-radius: 50%; background: #4C9BFF; }
.aw-pill.live i { background: #2ECC71; box-shadow: 0 0 0 0 rgb(46 204 113 / 0.6); }
@media (prefers-reduced-motion: no-preference) { .aw-pill.live i { animation: live 2s infinite; } }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgb(46 204 113 / 0); } 100% { box-shadow: 0 0 0 0 rgb(46 204 113 / 0); } }
.aw-spacer { flex: 1; }
.aw-btn { width: 34px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: #E8E9EC; }
.aw-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
button.aw-btn:hover, .aw-back:hover { background: #23262C; }
.aw-btn.on { color: #4C9BFF; }
.aw-pop { position: relative; }
.aw-pop.nudge::after { content: ""; position: absolute; inset: 2px; border-radius: 8px; box-shadow: 0 0 0 2px #4C9BFF; }
@media (prefers-reduced-motion: no-preference) { .aw-pop.nudge::after { animation: nudge 1.4s infinite; } }
@keyframes nudge { 0% { box-shadow: 0 0 0 0 rgb(76 155 255 / 0.9); } 100% { box-shadow: 0 0 0 10px rgb(76 155 255 / 0); } }
.aw-stage { position: relative; flex: 1; overflow: hidden; background: var(--stage, #4690c8); }
.aw-wipe { position: absolute; inset: 0; clip-path: circle(0 at 100% 100%); }
.aw-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: #0E0F12; color: #8A8F98; font-size: 14px; opacity: 0; visibility: hidden; transition: opacity 300ms, visibility 300ms; }
.aw-placeholder p { margin: 0; }
[data-state="popped"] .aw-placeholder { opacity: 1; visibility: visible; transition-delay: 200ms; }
.aw-back { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 6px; background: #23262C; color: #E8E9EC; font-size: 13px; }
.aw-back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aw-bottom { height: 44px; flex: none; display: flex; align-items: center; gap: 2px; padding: 0 8px; background: #15171B; border-radius: 0 0 10px 10px; }
.aw-zoom { width: 44px; text-align: center; font-size: 12px; color: #8A8F98; }
.aw-sep { width: 1px; height: 18px; background: #24272D; margin: 0 6px; }
.aw-swatch { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; }
.aw-swatch i { width: 14px; height: 14px; border-radius: 50%; background: var(--stage, #4690c8); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.55); }
.aw-swatch:hover { background: #23262C; }

.aw-picker { position: absolute; z-index: 50; translate: -100% -100%; /* left/top = swatch corner, set by demo.js; lives above the phone */ width: 216px; padding: 14px; border-radius: 12px; background: #15171B; border: 1px solid #24272D; box-shadow: 0 24px 50px -10px rgb(0 0 0 / 0.7); transform-origin: 90% 100%; }
@media (prefers-reduced-motion: no-preference) { .aw-picker:not([hidden]) { animation: pop-in 220ms var(--spring); } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.9) translateY(6px); } }
.aw-pk-label { color: #8A8F98; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 10px; }
.aw-hue { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; margin: 0 0 14px; border-radius: 6px; cursor: pointer;
  background: linear-gradient(90deg, hsl(0 85% 55%), hsl(60 85% 55%), hsl(120 85% 45%), hsl(180 85% 45%), hsl(240 85% 60%), hsl(300 85% 55%), hsl(360 85% 55%)); }
.aw-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: transparent; border: 3px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 0.5); }
.aw-hue::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: transparent; border: 3px solid #fff; }
.aw-dots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.aw-dots button { aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.25); transition: transform 150ms var(--spring); }
.aw-dots button:hover { transform: scale(1.15); }

/* the phone: one element that flies between "inside the window" and "floating, framed" */
.device {
  position: absolute; z-index: 20;
  transition: left 640ms var(--spring), top 640ms var(--spring), width 640ms var(--spring), height 640ms var(--spring),
              transform 560ms cubic-bezier(0.55, 0, 0.2, 1), filter 300ms, scale 200ms var(--ease);
}
.device.instant { transition: filter 300ms, scale 200ms var(--ease); }
.device.quick { transition-duration: 110ms, 110ms, 110ms, 110ms, 560ms, 300ms, 200ms; transition-timing-function: var(--ease); }
.device.popped { filter: drop-shadow(0 26px 26px rgb(0 0 0 / 0.5)); cursor: grab; touch-action: none; }
.device.lifted { filter: drop-shadow(0 44px 40px rgb(0 0 0 / 0.55)); scale: 1.025; cursor: grabbing; }
.dev-screen { position: absolute; left: 5.22%; top: 2.48%; width: 89.56%; height: 95.11%; border-radius: 13.6% / 6.25%; overflow: hidden; background: #000; container-type: size; }
.dev-content { position: absolute; left: 50%; top: 50%; width: 100cqw; height: 100cqh; transform: translate(-50%, -50%); transition: opacity 150ms, clip-path 900ms cubic-bezier(0.7, 0, 0.2, 1); }
.device.land .dev-content { width: 100cqh; height: 100cqw; transform: translate(-50%, -50%) rotate(90deg); }
.device:not(.connected) .dev-content { clip-path: inset(0 0 100% 0); }
.device.connected .dev-content { clip-path: inset(0 0 0 0); }
.dev-content.hide { opacity: 0; }
.dev-content canvas { display: block; width: 100%; height: 100%; }
.dev-screen::before { /* "waiting" rings until the phone connects */
  content: ""; position: absolute; left: 50%; top: 50%; width: 30cqmin; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.55); opacity: 0.8; transition: opacity 300ms;
}
@media (prefers-reduced-motion: no-preference) { .dev-screen::before { animation: ring 1.6s infinite; } }
@keyframes ring { from { scale: 0.4; opacity: 0.9; } to { scale: 1.6; opacity: 0; } }
.device.connected .dev-screen::before { opacity: 0; animation: none; }
.dev-frame { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 240ms; pointer-events: none; }
.device.popped .dev-frame { opacity: 1; transition-delay: 90ms; }
.glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 400ms;
  background: linear-gradient(115deg, transparent 40%, rgb(255 255 255 / 0.14) 50%, transparent 60%); background-size: 280% 280%; background-position: var(--gx, 30%) 50%; }
.device.popped .glare { opacity: 1; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash 520ms ease-out; }
@keyframes flash { from { opacity: 0.95; } to { opacity: 0; } }

.dev-hint { position: absolute; z-index: 35; translate: -50% -100%; display: flex; align-items: center; gap: 9px; padding: 8px 14px 8px 11px; border-radius: 999px;
  background: rgb(12 13 16 / 0.86); color: #fff; font-size: 13px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 220ms;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 10px 24px rgb(0 0 0 / 0.45); backdrop-filter: blur(8px); }
.dev-hint[data-pos="left"] { translate: -100% -50%; }
.dev-hint[data-pos="right"] { translate: 0 -50%; }
.dev-hint[data-pos="inside"] { translate: -50% 0; }
.dev-hint.show { opacity: 1; }
.dev-hint b { font-weight: 600; }
.dev-hint i { width: 3px; height: 3px; border-radius: 50%; background: rgb(255 255 255 / 0.5); display: inline-block; margin: 0 4px; vertical-align: middle; }
.hint-ico { display: grid; place-items: center; width: 18px; height: 22px; color: #7cc3ff; }
.hint-ico svg { width: 14px; height: 20px; }
.hint-ico .ico-pinch { display: none; width: 22px; height: 14px; }
.dev-hint.touch .ico-mouse { display: none; }
.dev-hint.touch .ico-pinch { display: block; }
.dev-hint.sizing { font: 600 12.5px/1 var(--font-mono); letter-spacing: 0.04em; }
@media (prefers-reduced-motion: no-preference) {
  .dev-hint.show { animation: bob 1.6s ease-in-out infinite; }
  .dev-hint[data-pos="left"].show { animation-name: bob-left; }
  .dev-hint[data-pos="right"].show { animation-name: bob-right; }
  .dev-hint[data-pos="inside"].show { animation: none; }
  .dev-hint.sizing { animation: none; }
  .hint-ico .wheel { animation: wheel 1.2s ease-in-out infinite; }
  .hint-ico .f1 { animation: pinch-l 1.4s ease-in-out infinite; }
  .hint-ico .f2 { animation: pinch-r 1.4s ease-in-out infinite; }
}
@keyframes bob { 50% { translate: -50% calc(-100% - 4px); } }
@keyframes bob-left { 50% { translate: calc(-100% + 4px) -50%; } }
@keyframes bob-right { 50% { translate: -4px -50%; } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(5px); opacity: 0; } 61% { transform: translateY(-2px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes pinch-l { 50% { transform: translateX(-4px); } }
@keyframes pinch-r { 50% { transform: translateX(4px); } }
.toast { position: absolute; z-index: 45; right: 12px; bottom: 60px; width: 290px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 14px; border-radius: 10px;
  background: rgb(30 32 38 / 0.96); border: 1px solid rgb(255 255 255 / 0.08); box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.6);
  transform: translateX(330px); transition: transform 420ms var(--spring); }
.toast.show { transform: none; }
.toast .t-ico { width: 34px; height: 34px; border-radius: 8px; background: #23262C; display: grid; place-items: center; color: #4C9BFF; }
.toast .t-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.toast b { display: block; font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.toast span { color: #9aa0aa; font-size: 12px; }

.taskbar { position: absolute; z-index: 30; left: 0; right: 0; bottom: 0; height: 48px; display: flex; align-items: center; justify-content: center; gap: 4px;
  background: rgb(26 28 34 / 0.8); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); border-top: 1px solid rgb(255 255 255 / 0.07); }
.tb-ico { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; }
.tb-ico .win { width: 18px; height: 18px; color: #7cc3ff; }
.tb-app { width: 22px; height: 22px; border-radius: 5px; }
.tb-beam { width: 24px; height: 24px; border-radius: 6px; background: #1E2026; display: grid; place-items: center; color: #4C9BFF; }
.tb-beam svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.tb-ico.active { background: rgb(255 255 255 / 0.07); }
.tb-ico.active::after { content: ""; position: absolute; bottom: 2px; left: 50%; translate: -50% 0; width: 14px; height: 3px; border-radius: 2px; background: #4C9BFF; }
.tb-search { display: flex; align-items: center; gap: 8px; width: 170px; height: 32px; padding: 0 12px; margin: 0 4px; border-radius: 16px; background: rgb(255 255 255 / 0.07); color: #9aa0aa; font-size: 12.5px; }
.tb-search svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.tb-clock { position: absolute; right: 14px; top: 0; bottom: 0; display: grid; align-content: center; justify-items: end; font-size: 11.5px; line-height: 1.35; color: #E8E9EC; }
.scene.tall .tb-search, .scene.tall .tb-clock span:last-child { display: none; }

.ghost { position: absolute; z-index: 60; width: 22px; height: 30px; margin: -2px 0 0 -3px; pointer-events: none; opacity: 0; transition: opacity 300ms, scale 120ms; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.5)); }
.ghost.show { opacity: 1; }
.ghost.press { scale: 0.86; }
.ripple { position: absolute; z-index: 59; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.9); pointer-events: none; animation: ripple 520ms ease-out forwards; }
@keyframes ripple { from { scale: 0.3; opacity: 1; } to { scale: 1.4; opacity: 0; } }

/* "this is interactive" header: badge + one-line invitation + the controls, right above the monitor */
.demo-head { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-6); margin-bottom: var(--s-4); }
.demo-intro { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.demo-badge { display: inline-flex; align-items: center; gap: var(--s-2); padding: 8px 13px; border-radius: 999px; background: oklch(0.83 0.2 150 / 0.12); border: 1px solid oklch(0.83 0.2 150 / 0.4); color: var(--key); font: 600 12px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.demo-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--key); box-shadow: 0 0 0 0 oklch(0.83 0.2 150 / 0.7); }
@media (prefers-reduced-motion: no-preference) { .demo-badge i { animation: beacon 1.8s infinite; } }
@keyframes beacon { 70% { box-shadow: 0 0 0 8px oklch(0.83 0.2 150 / 0); } 100% { box-shadow: 0 0 0 0 oklch(0.83 0.2 150 / 0); } }
.demo-tip { color: var(--text-2); font-size: 0.9375rem; }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
@media (prefers-reduced-motion: no-preference) {
  .demo-controls.invite .chip { animation: invite 1.1s var(--ease) 2; animation-delay: calc(var(--i, 0) * 110ms); }
}
@keyframes invite { 0% { box-shadow: 0 0 0 0 oklch(0.83 0.2 150 / 0.55); border-color: var(--key); color: var(--text); } 100% { box-shadow: 0 0 0 10px oklch(0.83 0.2 150 / 0); } }

/* coach mark inside the scene, pointing at the Beam window's pop-out button */
.coach { position: absolute; z-index: 55; translate: -100% 0; padding: 9px 14px; border-radius: 10px; background: #fff; color: #111; font: 600 13px/1.2 "Segoe UI", var(--font-body); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 250ms; box-shadow: 0 12px 30px rgb(0 0 0 / 0.45); }
.coach::before { content: ""; position: absolute; top: -6px; right: 14px; width: 12px; height: 12px; background: #fff; rotate: 45deg; border-radius: 2px; }
.coach.show { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .coach.show { animation: coach-bob 1.4s ease-in-out infinite; } }
@keyframes coach-bob { 50% { transform: translateY(4px); } }
.chip { display: inline-flex; align-items: center; gap: var(--s-2); height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: oklch(1 0 0 / 0.03); color: var(--text-2); font: 400 0.9375rem/1 var(--font-body); cursor: pointer; transition: background-color 150ms, border-color 150ms, color 150ms, transform 150ms var(--spring); }
.chip:hover { background: oklch(1 0 0 / 0.07); border-color: oklch(1 0 0 / 0.25); color: var(--text); }
.chip:active { transform: scale(0.96); }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--stage-chip, #4690c8); box-shadow: 0 0 0 1px oklch(1 0 0 / 0.4); }
.chip[aria-pressed="true"] { border-color: var(--key); color: var(--text); }

/* ---------- sections ---------- */
section { padding-top: var(--section); }
.kicker { color: var(--muted); margin: 0 0 var(--s-3); }
h2 { font: 800 var(--t-h2)/1.02 var(--font-display); letter-spacing: -0.03em; margin: 0 0 var(--s-6); max-width: 20ch; }
h3 { font: 600 1.1875rem/1.3 var(--font-body); margin: 0 0 var(--s-2); }
p { margin: 0 0 var(--s-4); max-width: 62ch; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin: var(--s-8) 0 0; padding: 0; }
.steps li { list-style: none; padding: var(--s-6); border-radius: var(--radius); background: var(--bg-raised); border: 1px solid var(--line); }
.steps .mono { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: var(--s-4); background: oklch(0.83 0.2 150 / 0.12); color: var(--key); }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.needs { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin-top: var(--s-6); color: var(--muted); }
.needs span { display: inline-flex; align-items: center; gap: var(--s-2); }
.needs svg { width: 15px; height: 15px; color: var(--key); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: var(--s-8); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg); padding: var(--s-8); }
.feature .f-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; margin-bottom: var(--s-4); background: var(--surface); color: var(--key); }
.feature .f-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } .feature { padding: var(--s-6); } }

.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding-block: var(--s-4); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.25rem/1 var(--font-mono); color: var(--muted); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: var(--s-3) 0 0; }

.closer { position: relative; overflow: hidden; margin-top: var(--section); border-radius: 24px; padding: var(--s-16) var(--s-12); display: grid; grid-template-columns: 1fr auto; gap: var(--s-8); align-items: center;
  background: radial-gradient(600px 300px at 90% 120%, oklch(0.83 0.2 150 / 0.28), transparent 70%), linear-gradient(135deg, var(--surface), var(--bg-raised)); border: 1px solid var(--line); }
.closer h2 { margin: 0; }
.closer p { color: var(--muted); margin: var(--s-3) 0 0; }
@media (max-width: 760px) { .closer { grid-template-columns: 1fr; padding: var(--s-12) var(--s-6); } }

/* sticky buy bar on phones, after the hero */
.buybar { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: none; }
@media (max-width: 720px) {
  .buybar { display: block; transform: translateY(140%); transition: transform 380ms var(--spring); }
  .buybar.show { transform: none; }
  .buybar .btn { width: 100%; justify-content: center; box-shadow: 0 12px 40px -6px oklch(0 0 0 / 0.7), 0 10px 30px -10px oklch(0.83 0.2 150 / 0.55); }
}

/* ---------- pricing ---------- */
.price-wrap { display: grid; grid-template-columns: 1fr 440px; grid-template-areas: "intro plan" "after plan"; column-gap: var(--s-16); row-gap: var(--s-8); align-items: start; padding-top: var(--s-16); }
.price-wrap .intro { grid-area: intro; } .price-wrap .plan { grid-area: plan; } .price-wrap .after { grid-area: after; }
.price-wrap .steps { grid-template-columns: 1fr; }
@media (max-width: 900px) { .price-wrap { grid-template-columns: 1fr; grid-template-areas: "intro" "plan" "after"; row-gap: var(--s-12); } }
.plan { position: relative; border: 1px solid var(--line); border-radius: 24px; padding: var(--s-8); background: linear-gradient(180deg, var(--surface), var(--bg-raised)); box-shadow: 0 40px 90px -40px oklch(0 0 0 / 0.9), inset 0 1px 0 oklch(1 0 0 / 0.08); }
.plan::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--key), transparent); }
.plan .amount { font: 800 5.5rem/1 var(--font-display); letter-spacing: -0.05em; margin: var(--s-3) 0 var(--s-1); }
.plan .per { color: var(--muted); margin-bottom: var(--s-6); }
.checks { list-style: none; padding: 0; margin: 0 0 var(--s-8); display: grid; gap: var(--s-3); }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); color: var(--text-2); }
.checks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--key); }
.plan .btn { width: 100%; justify-content: center; }
.plan .small { font-size: 0.875rem; color: var(--muted); margin: var(--s-4) 0 0; text-align: center; }

.intro h1, .doc h1, .thanks h1 { margin-bottom: var(--s-6); }

/* ---------- legal ---------- */
.doc { padding-top: var(--s-16); max-width: 760px; }
.doc h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.doc h2 { font-size: 1.5rem; margin: var(--s-12) 0 var(--s-3); max-width: none; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: var(--s-6); }
.doc li { margin-bottom: var(--s-2); max-width: 62ch; }
.draft { border: 1px dashed var(--muted); border-radius: var(--radius-sm); padding: var(--s-4); margin: var(--s-6) 0 var(--s-8); background: var(--bg-raised); font-size: 0.9375rem; color: var(--text-2); }

/* ---------- thanks ---------- */
.thanks { padding-top: var(--s-16); max-width: 760px; }
.keybox { display: flex; gap: var(--s-2); margin: var(--s-4) 0 var(--s-8); }
.keybox code { flex: 1; min-width: 0; font: 400 0.875rem/1.5 var(--font-mono); background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s-3) var(--s-4); overflow-wrap: anywhere; }
.status { padding: var(--s-4); border-radius: var(--radius-sm); background: var(--bg-raised); border: 1px solid var(--line); color: var(--text-2); }

/* ---------- entrance (one orchestrated moment) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease) forwards; animation-delay: var(--d, 0ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
