/*
 * DeckPad website styles.
 * Dark, full-bleed, neon-key look that matches the phone app's Glow keys.
 * Sections run edge to edge; text sits in .wrap (max 1280 px) or .narrow (max 760 px).
 * Motion only runs under (prefers-reduced-motion: no-preference); hidden-until-revealed states only apply
 * when JavaScript is on (html.js), so every page reads fine without it.
 */

/* ---------- Tokens ---------- */
:root {
  --bg: #07080d;
  --bg-2: #0c0d15;
  --bg-3: #11131d;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eceef5;
  --text-2: #c4c8d6;
  --muted: #9ba1b5;
  --key: #1a1b24;

  --green: #81c995;
  --blue: #8ab4f8;
  --cyan: #78d9ec;
  --violet: #c58af9;
  --pink: #ff8bcb;
  --red: #f28b82;
  --orange: #fcad70;
  --yellow: #fdd663;
  --obs: #b4a7ff;

  --grad: linear-gradient(100deg, #8ab4f8 0%, #c58af9 45%, #ff8bcb 100%);
  --grad-warm: linear-gradient(100deg, #fdd663, #fcad70 40%, #ff8bcb);

  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-text: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1280px;
  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* film grain over everything (very light) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  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, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #b9d1ff; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; font-weight: 700; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
ul, ol { padding-left: 1.3em; }
li { margin: .3em 0; }
strong { color: #fff; font-weight: 600; }
code, kbd, .path { font-family: var(--font-mono); font-size: .88em; }
code, .path { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .08em .4em; color: #e3e6f2; overflow-wrap: anywhere; }
kbd {
  display: inline-block;
  min-width: 1.8em;
  padding: .1em .5em;
  border-radius: 7px;
  background: linear-gradient(#262838, #1a1b24);
  border: 1px solid var(--line-2);
  box-shadow: 0 2px 0 #0a0b10, 0 0 12px -4px rgba(197, 138, 249, .6);
  color: #fff;
  text-align: center;
  line-height: 1.5;
}
::selection { background: rgba(197, 138, 249, .4); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }

/* page entry + cross-page transitions (browsers that support them) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  main { animation: page-in .7s var(--ease) both; }
  @keyframes page-in { from { opacity: 0; transform: translateY(14px); } }
}

/* ---------- Text helpers ---------- */
.accent, .script {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.accent-warm { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font: 600 .78rem/1 var(--font-text);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before, .kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.lead { font-size: clamp(1.08rem, 1rem + .45vw, 1.35rem); line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.display { font-size: clamp(2rem, 1.1rem + 3.4vw, 4.4rem); line-height: 1.04; }
.h3 { font-size: 1.2rem; font-family: var(--font-text); letter-spacing: -.01em; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .86rem; font-weight: 500; color: var(--text-2);
  text-decoration: none;
}
.chip b { font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--grad); color: #0b0c12; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
a.chip:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.btn {
  --bc: var(--blue);
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: 600 1rem/1.2 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, border-color .25s;
  will-change: transform;
  isolation: isolate;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn span { display: flex; flex-direction: column; align-items: flex-start; }
.btn small { font-size: .72rem; font-weight: 500; opacity: .75; letter-spacing: .02em; }
.btn:hover { color: #fff; border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .1); }
.btn-primary {
  background: linear-gradient(100deg, #8ab4f8, #c58af9 55%, #ff8bcb);
  color: #0a0b12;
  border-color: transparent;
  box-shadow: 0 10px 40px -10px rgba(197, 138, 249, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-primary:hover { color: #0a0b12; background: linear-gradient(100deg, #a6c6ff, #d2a3ff 55%, #ffa6d6); box-shadow: 0 14px 50px -8px rgba(197, 138, 249, .85), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-secondary { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-big { min-height: 62px; padding: 12px 28px 12px 22px; font-size: 1.06rem; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; gap: 8px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: #fff; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover { color: #fff; }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
}
/* the glass lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed full-screen menu */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(9, 10, 16, .72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  opacity: 0; transition: opacity .35s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-solid::before { opacity: 0; }
.header-inner { height: 100%; width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 1.12rem/1 var(--font-display); letter-spacing: -.02em; flex: none; position: relative; z-index: 2; }
.brand:hover { color: #fff; }
.brand .logo { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(129, 201, 149, .45)); }
.site-nav { margin-left: auto; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav li { margin: 0; position: relative; }
.site-nav a { display: block; padding: 9px 13px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-nav a[aria-current="page"], .site-nav .is-current > a { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav .nav-dl { display: none; }
.site-nav .sub { list-style: none; margin: 0; padding: 8px; }
.site-nav .sub a { font-size: .92rem; }
.header-cta { margin-left: 8px; flex: none; }
.nav-toggle { display: none; }

@media (min-width: 1000px) {
  .site-nav .has-sub > .sub {
    position: absolute; top: calc(100% + 10px); left: 50%;
    min-width: 230px;
    transform: translate(-50%, 8px);
    opacity: 0; visibility: hidden;
    background: rgba(16, 17, 26, .92);
    border: 1px solid var(--line-2);
    border-radius: 16px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .site-nav .has-sub > .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .site-nav .has-sub:hover > .sub, .site-nav .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .site-nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }
  .site-nav .sub a { border-radius: 10px; white-space: nowrap; }
  .site-nav .sub .sub-note { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
}

@media (max-width: 999px) {
  .header-cta { margin-left: auto; }
  /* Without JavaScript the menu simply wraps under the logo; nothing is ever hidden. */
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding: 10px 0; }
  html:not(.js) .site-nav { order: 3; width: 100%; margin: 0; }
  html:not(.js) .site-nav > ul { flex-wrap: wrap; }
  html:not(.js) .site-nav .sub { display: none; }
  html:not(.js) .header-cta { display: none; }

  .js .nav-toggle {
    display: inline-grid; place-items: center;
    width: 46px; height: 46px; margin-left: 4px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .06);
    color: #fff; cursor: pointer;
    position: relative; z-index: 2;
  }
  .js .header-cta { margin-left: auto; }
  .nav-toggle .bars { position: relative; width: 18px; height: 12px; }
  .nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars i {
    content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .4s var(--ease), opacity .2s, top .4s var(--ease);
  }
  .nav-toggle .bars::before { top: 0; }
  .nav-toggle .bars i { top: 5px; }
  .nav-toggle .bars::after { top: 10px; }
  .nav-toggle[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { top: 5px; transform: rotate(-45deg); }
  .nav-toggle[aria-expanded="true"] .bars i { opacity: 0; }

  .js .site-nav {
    position: fixed; inset: 0; z-index: 1;
    margin: 0;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background:
      radial-gradient(60% 50% at 85% 10%, rgba(197, 138, 249, .28), transparent 70%),
      radial-gradient(60% 50% at 10% 90%, rgba(120, 217, 236, .2), transparent 70%),
      #07080d;
    overflow-y: auto;
    visibility: hidden;
    clip-path: circle(0 at calc(100% - var(--gutter) - 23px) calc(var(--header-h) / 2));
    transition: clip-path .6s var(--ease), visibility 0s linear .6s;
  }
  .js .site-nav.open { visibility: visible; clip-path: circle(150% at calc(100% - var(--gutter) - 23px) calc(var(--header-h) / 2)); transition: clip-path .7s var(--ease), visibility 0s; }
  .js .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .js .site-nav > ul > li > a { font: 600 clamp(1.6rem, 7vw, 2.4rem)/1.1 var(--font-display); letter-spacing: -.03em; color: #fff; padding: 18px 0; border-radius: 0; background: none; }
  .js .site-nav > ul > li > a[aria-current="page"] { background: none; color: var(--cyan); }
  .js .site-nav .sub { padding: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
  .js .site-nav .sub a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .92rem; color: var(--text-2); }
  .js .site-nav .sub .sub-note { display: none; }
  .js .site-nav .nav-dl { display: block; border-bottom: 0; padding-top: 24px; }
  .js .site-nav .nav-dl a { display: inline-flex; font: 600 1rem/1.2 var(--font-text); padding: 16px 26px; border-radius: 999px; background: var(--grad); color: #0a0b12; }
  .js .site-nav > ul > li { opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .5s var(--ease); }
  .js .site-nav.open > ul > li { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * .05s); }
}
@media (max-width: 420px) { .header-cta { display: none !important; } .js .nav-toggle { margin-left: auto; } }
body.menu-open { overflow: hidden; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 250; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: var(--grad); box-shadow: 0 0 12px rgba(197, 138, 249, .8); pointer-events: none; }

/* ---------- Backgrounds ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora::before, .aurora::after, .aurora i {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
}
.aurora::before { width: 60vmax; height: 60vmax; left: -15vmax; top: -30vmax; background: radial-gradient(circle, rgba(138, 180, 248, .55), transparent 65%); }
.aurora::after { width: 55vmax; height: 55vmax; right: -20vmax; top: -10vmax; background: radial-gradient(circle, rgba(197, 138, 249, .5), transparent 65%); }
.aurora i { width: 45vmax; height: 45vmax; left: 30%; bottom: -30vmax; background: radial-gradient(circle, rgba(255, 139, 203, .32), transparent 65%); }
.aurora i:nth-child(2) { left: auto; right: 10%; bottom: auto; top: 40%; width: 30vmax; height: 30vmax; background: radial-gradient(circle, rgba(120, 217, 236, .3), transparent 65%); }
@media (prefers-reduced-motion: no-preference) {
  .aurora::before { animation: drift-a 22s ease-in-out infinite alternate; }
  .aurora::after { animation: drift-b 26s ease-in-out infinite alternate; }
  .aurora i { animation: drift-c 30s ease-in-out infinite alternate; }
  @keyframes drift-a { to { transform: translate(18vmax, 10vmax) scale(1.15); } }
  @keyframes drift-b { to { transform: translate(-14vmax, 14vmax) scale(.9); } }
  @keyframes drift-c { to { transform: translate(-16vmax, -8vmax) scale(1.2); } }
}
.grid-floor {
  position: absolute; inset: auto 0 0 0; height: 55%;
  background-image: linear-gradient(rgba(138, 180, 248, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 180, 248, .14) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  pointer-events: none;
}
.is-paused *, .is-paused *::before, .is-paused *::after, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 170px); isolation: isolate; }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.section-head { max-width: 860px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* ---------- Reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.from-left { transform: translateX(-50px); }
  .js .reveal.from-right { transform: translateX(50px); }
  .js .reveal.zoom { transform: scale(.92); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
  .js [data-split] .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + 80ms); }
  .js [data-split].is-in .w > span { transform: none; }
  .js [data-split] .accent .w > span, .js [data-split] .script .w > span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .js [data-split] .accent-warm .w > span { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
}

/* ---------- Neon key (shared) ---------- */
.key {
  --c: var(--blue);
  position: relative;
  display: grid; place-items: center; align-content: center; gap: 4%;
  aspect-ratio: 1;
  border-radius: 20%;
  background: radial-gradient(120% 120% at 50% 0%, #22232f 0%, var(--key) 60%);
  border: 1.5px solid color-mix(in srgb, var(--c) 80%, transparent);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .4),
    0 0 22px -4px color-mix(in srgb, var(--c) 70%, transparent),
    inset 0 0 18px -8px var(--c);
  color: var(--c);
  container-type: inline-size;
  transition: transform .25s var(--ease-spring), box-shadow .3s, border-color .3s, background .3s;
}
.key svg { width: 50%; height: 50%; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 80%, transparent)); }
.key .kl { font: 600 11cqw/1.1 var(--font-text); color: #fff; text-align: center; max-width: 92%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.key.off { border-color: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); color: #6c7084; background: #15161e; }
.key.off svg { filter: none; }
.key.empty { border-color: rgba(255, 255, 255, .05); background: #14151c; box-shadow: none; color: #3d404f; }
.key.is-pressed {
  transform: scale(.88);
  background: radial-gradient(120% 120% at 50% 30%, color-mix(in srgb, var(--c) 35%, #1a1b24) 0%, var(--key) 75%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 0 40px 2px color-mix(in srgb, var(--c) 80%, transparent), inset 0 0 26px -4px var(--c);
}

/* phone + monitor shells drawn in CSS */
.phone-shell {
  position: relative;
  padding: 2.2% 2.6%;
  border-radius: clamp(18px, 3.2vw, 40px);
  background: linear-gradient(145deg, #2a2c38, #0d0e14 40%, #1b1c26);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    inset 0 0 0 2px #050508,
    0 40px 80px -30px rgba(0, 0, 0, .9),
    0 0 120px -40px rgba(197, 138, 249, .5);
}
.phone-shell::before { content: ""; position: absolute; left: 1%; top: 50%; width: .7%; aspect-ratio: 1; border-radius: 50%; background: #20222c; transform: translateY(-50%); }
.phone-screen { position: relative; overflow: hidden; border-radius: clamp(10px, 2.2vw, 26px); background: #0e0f15; }
.phone-screen img { width: 100%; }
.device { margin: 0; }
.device figcaption { margin-top: 14px; font-size: .92rem; color: var(--muted); }
.device figcaption strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 2px; }

.monitor-shell { position: relative; padding: 1.2%; border-radius: 14px; background: linear-gradient(#22242f, #101118); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .9); }
.monitor-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 8px; background: #0b0c12; }
.monitor-shell::after { content: ""; position: absolute; left: 50%; bottom: -9%; width: 18%; height: 9%; transform: translateX(-50%); background: linear-gradient(#1c1d27, #0f1016); clip-path: polygon(30% 0, 70% 0, 85% 100%, 15% 100%); }

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  padding: clamp(24px, 4vw, 48px) 0 clamp(70px, 9vw, 110px);
  overflow: clip;
  isolation: isolate;
}
.hero .aurora { z-index: -2; }
.hero .grid-floor { z-index: -1; opacity: .7; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 40px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.3rem, .9rem + 4.3vw, 5.6rem); line-height: .98; letter-spacing: -.045em; margin-bottom: .35em; }
.hero .lead { margin-bottom: 0; }
.ticker-line { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-weight: 600; color: #fff; font-size: clamp(1rem, .9rem + .5vw, 1.25rem); min-height: 1.6em; }
.ticker-line .rot { position: relative; display: inline-grid; }
.ticker-line .rot > span { grid-area: 1 / 1; white-space: nowrap; }
.ticker-line .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); flex: none; }
.js .ticker-line .rot > span { opacity: 0; transform: translateY(60%); filter: blur(6px); transition: opacity .5s, transform .6s var(--ease), filter .5s; }
.js .ticker-line .rot > span.on { opacity: 1; transform: none; filter: none; }
.js .ticker-line .rot > span.out { opacity: 0; transform: translateY(-60%); filter: blur(6px); }
html:not(.js) .ticker-line .rot > span:not(:first-child) { display: none; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.hero-meta li { display: flex; align-items: center; gap: 8px; margin: 0; }
.hero-meta svg { width: 18px; height: 18px; color: var(--green); }

.hero-visual { position: relative; width: 100%; aspect-ratio: 4 / 3.1; }
.hero-visual canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-visual.is-3d canvas { opacity: 1; }
.hero-fallback { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1400px; transition: opacity .8s, transform .8s var(--ease); }
.hero-visual.is-3d .hero-fallback { opacity: 0; transform: scale(.96); pointer-events: none; }
.hero-fallback .fb-monitor { position: absolute; width: 70%; right: 0; top: 4%; transform: rotateY(-14deg) rotateX(4deg); opacity: .9; }
.hero-fallback .fb-monitor .monitor-screen { background: radial-gradient(120% 100% at 80% 0%, #3a2a5c, #10111a 60%); }
.fb-scene { position: absolute; inset: 0; display: grid; place-items: center; font: 700 clamp(.8rem, 2.4vw, 1.6rem)/1 var(--font-display); color: #fff; letter-spacing: -.02em; }
.fb-scene::after { content: "LIVE"; position: absolute; top: 8%; left: 5%; font: 700 .6rem/1 var(--font-text); letter-spacing: .1em; background: #e5484d; padding: 4px 6px; border-radius: 4px; }
.hero-fallback .phone-shell { position: relative; width: 86%; margin-top: 18%; margin-right: 12%; transform: rotateY(18deg) rotateX(10deg) rotateZ(-3deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero-fallback .phone-shell { animation: float 7s ease-in-out infinite; }
  @keyframes float { 50% { transform: rotateY(12deg) rotateX(6deg) rotateZ(-2deg) translateY(-10px); } }
}
.hero-pause {
  position: absolute; right: var(--gutter); bottom: -6px; z-index: 3;
  display: none; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10, 11, 18, .6); backdrop-filter: blur(10px);
  color: var(--text-2); font: 500 .8rem/1 var(--font-text); cursor: pointer;
}
.hero-pause:hover { color: #fff; }
.hero-visual.is-3d .hero-pause { display: inline-flex; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.scroll-cue i { width: 22px; height: 36px; border: 1.5px solid var(--line-2); border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; }
@media (prefers-reduced-motion: no-preference) { .scroll-cue i::after { animation: cue 1.8s ease-in-out infinite; } @keyframes cue { 60% { transform: translateY(10px); opacity: 0; } 61% { transform: none; opacity: 0; } } }
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .hero-visual { aspect-ratio: auto; height: min(78vh, 760px); min-height: 480px; width: auto; margin-right: calc((min(100vw - 2 * var(--gutter), var(--maxw)) - 100vw) / 2); }
}
@media (max-width: 959px) { .scroll-cue { display: none; } .hero-visual { width: auto; margin-inline: calc(-1 * var(--gutter)); } }

/* ---------- Marquee ---------- */
.marquee-wrap { position: relative; padding-block: 26px; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(138, 180, 248, .05), rgba(197, 138, 249, .05), rgba(255, 139, 203, .05)); overflow: hidden; }
.marquee { display: flex; width: max-content; gap: 14px; padding-block: 7px; }
.marquee ul { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.marquee li { margin: 0; flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 16px; background: var(--key); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 18px -6px color-mix(in srgb, var(--c) 70%, transparent); font-weight: 600; white-space: nowrap; color: #fff; font-size: .98rem; }
.marquee li svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
@media (prefers-reduced-motion: no-preference) {
  .js .marquee { animation: marquee var(--dur, 50s) linear infinite; }
  .js .marquee.rev { animation-direction: reverse; }
  .marquee-wrap:hover .marquee, .marquee-wrap:focus-within .marquee { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
}
@media (prefers-reduced-motion: reduce) { .marquee { flex-wrap: wrap; width: auto; justify-content: center; padding-inline: var(--gutter); } .marquee ul[aria-hidden] { display: none; } .marquee ul { flex-wrap: wrap; justify-content: center; } }
html:not(.js) .marquee { flex-wrap: wrap; width: auto; justify-content: center; padding-inline: var(--gutter); }
html:not(.js) .marquee ul[aria-hidden] { display: none; }
html:not(.js) .marquee ul { flex-wrap: wrap; justify-content: center; }
.marquee-wrap::before, .marquee-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none; }
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.motion-toggle { position: absolute; right: 10px; bottom: 6px; z-index: 3; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 11, 18, .85); color: var(--muted); font: 500 .74rem/1.2 var(--font-text); cursor: pointer; display: none; }
.js .motion-toggle { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .js .marquee-wrap .motion-toggle { display: none; } }
.motion-toggle:hover { color: #fff; }

/* ---------- Home: scroll story (deck assembles) ---------- */
.story { position: relative; }
.story-sticky { position: relative; }
.story-grid { display: grid; gap: 32px; align-items: center; }
.story-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.story-steps li { counter-increment: st; margin: 0 0 22px; padding-left: 64px; position: relative; }
.story-steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 2px; font: 700 1rem/1 var(--font-display); color: var(--muted); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line-2); transition: color .4s, border-color .4s, box-shadow .4s, background .4s; }
.story-steps h3 { font: 700 clamp(1.25rem, 1rem + 1.2vw, 2rem)/1.15 var(--font-display); letter-spacing: -.03em; margin-bottom: .3em; }
.story-steps p { color: var(--text-2); margin: 0; }
.story-steps li.is-active::before { color: #0a0b12; background: var(--grad); border-color: transparent; box-shadow: 0 0 24px rgba(197, 138, 249, .6); }
.story-stage { position: relative; perspective: 1600px; }
.story-rig { position: relative; transform-style: preserve-3d; transform: rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)); }
.story-phone { position: relative; z-index: 2; }
.story-phone .phone-screen { padding: 4%; background: radial-gradient(120% 120% at 50% 0%, #15161f, #0b0c11); }
.deck { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3.2%; transform-style: preserve-3d; }
.story .deck .key {
  --a: 1;
  opacity: var(--a);
  transform: translate3d(0, calc((1 - var(--a)) * -40px), calc((1 - var(--a)) * 420px)) rotateX(calc((1 - var(--a)) * 70deg));
}
.story .deck .key.is-pressed { transform: scale(.86); }
.js .story .deck .key { transition: box-shadow .4s, border-color .4s, background .4s, color .4s, transform .25s var(--ease-spring); }
.story-monitor { width: 86%; margin-left: auto; position: relative; z-index: 1; transform: translateZ(-80px); }
.story-phone { width: 70%; margin-top: -27%; }
.story .mon-osd { bottom: auto; top: 10%; left: auto; right: 5%; transform: none; width: 40%; }
.story .mon-music { place-items: start end; padding: 7% 5%; }
.story .np { width: 56%; }
.story .mon-window { left: auto !important; right: 6%; }
.deck-stack { display: grid; }
.deck-stack > .deck { grid-area: 1 / 1; }
.mon-window, .mon-osd { opacity: 0; transition: opacity .4s; }
.js .story.is-pinned, .js .hgallery.is-pinned { padding-block: 0; }
.mon-view { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease), transform .6s var(--ease); transform: scale(1.04); }
.mon-view.on { opacity: 1; transform: none; }
.mon-desktop { background: radial-gradient(90% 120% at 20% 100%, #2b2350, transparent 60%), radial-gradient(80% 100% at 90% 0%, #18304a, transparent 60%), #0d0e16; }
.mon-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 9%; background: rgba(20, 21, 30, .85); display: flex; align-items: center; justify-content: center; gap: 2%; }
.mon-taskbar i { width: 4%; aspect-ratio: 1; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.mon-window { position: absolute; border-radius: 6px; background: #1d1f2b; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); }
.mon-window::before { content: ""; display: block; height: 12%; background: #2a2c3b; }
.mon-window b { position: absolute; left: 6%; top: 1.5%; font: 600 clamp(5px, .8vw, 10px)/1.3 var(--font-text); color: #cfd3e3; }
.mon-osd { position: absolute; left: 50%; bottom: 16%; width: 34%; height: 10%; transform: translateX(-50%); border-radius: 999px; background: rgba(20, 21, 30, .9); border: 1px solid rgba(255, 255, 255, .12); display: flex; align-items: center; gap: 5%; padding: 0 5%; }
.mon-osd svg { width: 12%; color: #fff; }
.mon-osd span { flex: 1; height: 16%; border-radius: 999px; background: rgba(255, 255, 255, .15); position: relative; overflow: hidden; }
.mon-osd span::after { content: ""; position: absolute; inset: 0; width: var(--vol, 40%); background: var(--blue); border-radius: inherit; transition: width .5s var(--ease); }
.mon-scene { display: grid; place-items: center; color: #fff; font: 700 clamp(10px, 2.4vw, 30px)/1 var(--font-display); letter-spacing: -.03em; }
.mon-scene .badge, .scene-badge { position: absolute; top: 7%; left: 4%; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 5px; background: #e5484d; color: #fff; font: 700 clamp(6px, .75vw, 11px)/1 var(--font-text); letter-spacing: .1em; }
.mon-scene .badge::before, .scene-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.mon-music { display: grid; place-items: center; background: radial-gradient(90% 90% at 50% 50%, #3b1f3a, #0d0e16 70%); }
[data-r="np"] { opacity: .45; transition: opacity .4s; }
[data-r="np"].on { opacity: 1; }
.np { display: flex; align-items: center; gap: 6%; width: 64%; padding: 4%; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.np .art { width: 26%; aspect-ratio: 1; border-radius: 8px; background: var(--grad-warm); flex: none; }
.np .bars { display: flex; align-items: flex-end; gap: 6%; height: 40%; flex: 1; }
.np .bars i { flex: 1; height: 30%; background: var(--pink); border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .np.on .bars i, .mon-view.on .np .bars i { animation: eq .9s ease-in-out infinite alternate; }
  .np .bars i:nth-child(2) { animation-delay: -.3s !important; }
  .np .bars i:nth-child(3) { animation-delay: -.6s !important; }
  .np .bars i:nth-child(4) { animation-delay: -.15s !important; }
  .np .bars i:nth-child(5) { animation-delay: -.45s !important; }
  @keyframes eq { to { height: 100%; } }
}
html:not(.js) .mon-view[data-view="scene"] { opacity: 1; transform: none; }
@media (min-width: 960px) {
  .js .story.is-pinned { height: 420vh; }
  .js .story.is-pinned .story-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: grid; align-items: center; overflow: hidden; }
  .story-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6vw; }
  .js .story.is-pinned .story-steps li { opacity: .35; transition: opacity .4s; }
  .js .story.is-pinned .story-steps li.is-active { opacity: 1; }
}
@media (max-width: 959px) {
  .js .story.is-pinned { height: 400vh; }
  .js .story.is-pinned .story-sticky { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: grid; align-content: center; overflow: hidden; }
  .js .story.is-pinned .story-grid { gap: 18px; }
  .js .story.is-pinned .story-stage { order: -1; }
  .js .story.is-pinned .story-steps { display: grid; }
  .js .story.is-pinned .story-steps li { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s var(--ease); margin: 0; }
  .js .story.is-pinned .story-steps li.is-active { opacity: 1; transform: none; }
  .js .story.is-pinned .section-head { display: none; }
}

/* ---------- Counters ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stat { padding: clamp(28px, 5vw, 56px) clamp(14px, 3vw, 40px); border-right: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stat .num { display: block; font: 800 clamp(2.6rem, 1.4rem + 5vw, 6rem)/1 var(--font-display); letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat .lbl { display: block; margin-top: 10px; color: var(--text-2); font-size: .98rem; max-width: 24ch; }
@media (min-width: 860px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 0; }
}

/* ---------- Bento feature cards ---------- */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  min-height: 260px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: border-color .3s, transform .5s var(--ease);
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c, #8ab4f8) 16%, transparent), transparent 45%); opacity: 0; transition: opacity .4s; }
.tile:hover { border-color: color-mix(in srgb, var(--c, #8ab4f8) 45%, transparent); }
.tile:hover::before { opacity: 1; }
.tile h3 { font: 700 clamp(1.2rem, 1rem + .8vw, 1.6rem)/1.15 var(--font-display); letter-spacing: -.03em; margin-bottom: .4em; }
.tile p { color: var(--text-2); margin: 0; max-width: 46ch; }
.tile .art { flex: 1; display: grid; place-items: center; min-height: 120px; margin-bottom: 18px; }
.tile .tag { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0b0c12; background: var(--grad); }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(300px, auto); }
  .bento .t-2 { grid-column: span 2; }
  .bento .t-3 { grid-column: span 3; }
  .bento .t-4 { grid-column: span 4; }
}
/* tile art */
.art-keys { display: flex; gap: 14px; }
.art-keys .key { width: clamp(62px, 8vw, 92px); }
.keycaps { display: flex; align-items: center; gap: 10px; font-size: clamp(1rem, 1.6vw, 1.4rem); }
.keycaps kbd { padding: .35em .7em; border-radius: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .keycaps kbd { animation: keypress 3s var(--ease) infinite; }
  .keycaps kbd:nth-of-type(2) { animation-delay: .12s; }
  .keycaps kbd:nth-of-type(3) { animation-delay: .24s; }
  @keyframes keypress { 0%, 60%, 100% { transform: none; box-shadow: 0 3px 0 #0a0b10, 0 0 12px -4px rgba(197, 138, 249, .6); } 70% { transform: translateY(3px); box-shadow: 0 0 0 #0a0b10, 0 0 26px rgba(197, 138, 249, .9); } }
}
.vol-art { width: min(260px, 90%); display: grid; gap: 14px; }
.vol-bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.vol-bar i { display: block; height: 100%; width: 65%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--orange)); box-shadow: 0 0 16px var(--red); }
.eq { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.eq i { width: 10px; height: 40%; border-radius: 3px; background: linear-gradient(var(--red), var(--pink)); }
@media (prefers-reduced-motion: no-preference) {
  .vol-bar i { animation: vol 4s var(--ease) infinite; }
  @keyframes vol { 0%, 100% { width: 35%; } 50% { width: 85%; } }
  .eq i { animation: eq 1s ease-in-out infinite alternate; }
  .eq i:nth-child(2n) { animation-duration: .7s; }
  .eq i:nth-child(3n) { animation-duration: 1.3s; }
}
.grid-morph { display: grid; gap: 5px; width: min(220px, 80%); aspect-ratio: 2 / 1; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(4, 1fr); }
.grid-morph i { border-radius: 5px; background: var(--key); border: 1px solid color-mix(in srgb, var(--cyan) 60%, transparent); box-shadow: 0 0 10px -3px var(--cyan); }
.grid-label { margin-top: 10px; font: 700 .9rem/1 var(--font-display); color: var(--cyan); text-align: center; }
.glow-swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 260px; }
.glow-swatches i { width: 34px; height: 34px; border-radius: 50%; background: var(--key); border: 2px solid var(--c); box-shadow: 0 0 16px -2px var(--c), inset 0 0 10px -4px var(--c); }
@media (prefers-reduced-motion: no-preference) {
  .glow-swatches i { animation: breathe 3s ease-in-out infinite; animation-delay: calc(var(--i) * .2s); }
  @keyframes breathe { 50% { box-shadow: 0 0 30px 2px var(--c), inset 0 0 14px -2px var(--c); } }
}

/* ---------- Reel (video-like sequences) ---------- */
.reel { position: relative; border-radius: clamp(16px, 2.4vw, 28px); overflow: hidden; background: #08090e; border: 1px solid var(--line-2); box-shadow: 0 60px 120px -50px rgba(197, 138, 249, .45); }
.reel-stage { position: relative; aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .reel-stage { aspect-ratio: 4 / 3.6; } }
.reel-bars { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 6px; z-index: 5; }
.reel-bars button { flex: 1; height: 26px; padding: 11px 0; border: 0; background: none; cursor: pointer; }
.reel-bars button span { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.reel-bars button span i { display: block; height: 100%; width: 0; background: #fff; }
.reel-bars button.done span i { width: 100%; }
.reel-ui { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reel-caption { font: 700 clamp(.95rem, .8rem + .8vw, 1.5rem)/1.2 var(--font-display); letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .8); }
.reel-caption small { display: block; font: 500 .8rem/1.4 var(--font-text); color: var(--text-2); letter-spacing: 0; }
.reel-play { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10, 11, 18, .7); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); }
.reel-play svg { width: 18px; height: 18px; }
.clip { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }
.clip.on { opacity: 1; visibility: visible; transition: opacity .6s; }
html:not(.js) .clip:first-of-type { opacity: 1; visibility: visible; }
.clip-bg { position: absolute; inset: 0; }
.clip .mini-mon { position: absolute; left: 6%; right: 30%; top: 14%; bottom: 20%; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); background: #0c0d14; }
.clip .mini-phone { position: absolute; right: 4%; bottom: 14%; width: 34%; padding: 1.4%; border-radius: 14px; background: linear-gradient(145deg, #2a2c38, #0d0e14); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 50px rgba(0, 0, 0, .7); transform: rotate(-4deg); }
.clip .mini-phone .deck { grid-template-columns: repeat(3, 1fr); gap: 5%; padding: 5%; border-radius: 9px; background: #0e0f15; }
.clip .mini-phone .key .kl { font-size: 13cqw; }
.scr { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; color: #fff; font: 700 clamp(12px, 2.6vw, 34px)/1.1 var(--font-display); letter-spacing: -.03em; text-align: center; }
.scr-start { background: radial-gradient(80% 90% at 30% 20%, #3c2b6b, #11121b 70%); }
.scr-start small, .scr-end small { display: block; font: 500 clamp(8px, 1vw, 14px)/1.4 var(--font-text); color: var(--text-2); letter-spacing: 0; margin-top: .5em; }
.scr-game { background: linear-gradient(180deg, #4b88c9 0%, #9fd0f2 55%, #2f7d4f 55%, #1e5a37 100%); overflow: hidden; }
.scr-game::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: 30%; height: 22%; background: repeating-linear-gradient(90deg, #2c6e45 0 40px, #357f52 40px 80px); clip-path: polygon(0 100%, 8% 30%, 18% 70%, 30% 10%, 44% 60%, 58% 20%, 72% 70%, 86% 25%, 100% 60%, 100% 100%); }
.scr-game::after { content: ""; position: absolute; right: 4%; bottom: 6%; width: 18%; aspect-ratio: 4 / 3; border-radius: 8px; background: radial-gradient(circle at 50% 38%, #f3c7a8 0 18%, transparent 19%), radial-gradient(ellipse at 50% 100%, #6c5ce7 0 45%, transparent 46%), #2b2d42; border: 2px solid #fff; }
.scr-game .player { position: absolute; left: 20%; bottom: 44%; width: 4%; aspect-ratio: 1 / 1.6; border-radius: 4px; background: var(--yellow); box-shadow: 0 0 0 2px #0002; }
.scr-brb { background: radial-gradient(80% 90% at 70% 30%, #1b4a5a, #0e1018 70%); }
.scr-end { background: radial-gradient(80% 90% at 50% 100%, #5a2a44, #10111a 70%); }
.scene-swap { position: absolute; inset: 0; }
.scene-swap > .scr { opacity: 0; transition: opacity .45s; }
.scene-swap > .scr.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .on .scr-game .player, .scr-game.on .player { animation: run 3s linear infinite; }
  @keyframes run { 0% { transform: translateX(0) translateY(0); } 25% { transform: translateX(150%) translateY(-60%); } 50% { transform: translateX(300%) translateY(0); } 75% { transform: translateX(450%) translateY(-60%); } 100% { transform: translateX(600%) translateY(0); } }
}
/* reel: finger tap */
.tap { position: absolute; width: 9%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 0 20px rgba(255, 255, 255, .6); opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.6); z-index: 4; }
.tap.go { animation: tap .6s var(--ease) both; }
@keyframes tap { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } 40% { opacity: 1; transform: translate(-50%, -50%) scale(.8); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); } }
.rec-pill { left: auto; right: 4%; background: #fcad70; color: #0b0c12; }
.rec-pill::before { background: #e5484d; }
.demo-toast { display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(120, 217, 236, .14); border: 1px solid rgba(120, 217, 236, .4); color: #fff; font-size: .85rem; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.demo-toast.on { opacity: 1; transform: none; }
.demo-toast:empty { padding: 0; border: 0; }
.live-pill { position: absolute; top: 6%; left: 4%; z-index: 3; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ease-spring); }
.live-pill.on { opacity: 1; transform: none; }
.app-win { position: absolute; border-radius: 8px; background: #1d1f2b; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 40px rgba(0, 0, 0, .6); overflow: hidden; opacity: 0; transform: scale(.7) translateY(20px); transition: opacity .35s, transform .5s var(--ease-spring); }
.app-win.on { opacity: 1; transform: none; }
.app-win header { height: 18%; min-height: 14px; background: #2a2c3b; display: flex; align-items: center; padding: 0 6%; font: 600 clamp(7px, .9vw, 12px)/1 var(--font-text); color: #dfe2ee; }
.app-win .body { position: absolute; inset: 18% 0 0; padding: 6%; display: grid; gap: 8%; align-content: start; }
.app-win .body i { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.app-win .body i:nth-child(2) { width: 70%; }
.app-win .body i:nth-child(3) { width: 85%; }
.vol-osd { position: absolute; left: 50%; bottom: 12%; width: 46%; transform: translateX(-50%) translateY(20px); opacity: 0; transition: opacity .3s, transform .4s var(--ease); display: flex; align-items: center; gap: 4%; padding: 2.4% 4%; border-radius: 999px; background: rgba(15, 16, 24, .92); border: 1px solid rgba(255, 255, 255, .14); }
.vol-osd.on { opacity: 1; transform: translateX(-50%); }
.vol-osd svg { width: 9%; color: #fff; flex: none; }
.vol-osd span { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.vol-osd span i { display: block; height: 100%; width: var(--vol, 30%); background: var(--blue); transition: width .6s var(--ease); }

/* ---------- Gallery (horizontal) ---------- */
.hgallery { position: relative; }
.hg-track { display: flex; gap: clamp(16px, 3vw, 40px); padding: 10px var(--gutter) 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hg-track .device { flex: none; width: min(86vw, 900px); scroll-snap-align: center; }
.js .hgallery.is-pinned .hg-track .device { width: min(58vw, 760px); }
.js .hgallery.is-pinned .hg-track { overflow: visible; scroll-snap-type: none; will-change: transform; transform: translate3d(calc(var(--hx, 0) * -1px), 0, 0); }
.js .hgallery.is-pinned .hg-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hg-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(20px, 3vw, 40px); }
.hg-head .section-head { margin-bottom: 0; }

/* ---------- Connection (USB / Bluetooth) ---------- */
.conn { display: grid; gap: 20px; }
@media (min-width: 900px) { .conn { grid-template-columns: 1fr 1fr; } }
.conn-card { position: relative; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); overflow: hidden; }
.conn-card h3 { font: 700 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1.1 var(--font-display); letter-spacing: -.03em; }
.conn-card .speed { font: 800 clamp(1.8rem, 1.2rem + 2vw, 3rem)/1 var(--font-display); letter-spacing: -.04em; margin: 8px 0 14px; }
.conn-line { width: 100%; height: 90px; margin: 10px 0 18px; }
.conn-line .flow { stroke-dasharray: 6 12; }
@media (prefers-reduced-motion: no-preference) { .conn-line .flow { animation: flow 1.2s linear infinite; } .conn-line .flow.slow { animation-duration: 2.4s; } @keyframes flow { to { stroke-dashoffset: -36; } } }
.conn-card ul { list-style: none; padding: 0; margin: 0; }
.conn-card li { padding-left: 26px; position: relative; color: var(--text-2); }
.conn-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* ---------- Big kinetic statement ---------- */
.statement { font: 800 clamp(2.1rem, 1rem + 5.4vw, 6.4rem)/1.02 var(--font-display); letter-spacing: -.05em; margin: 0; }
.statement .sw { transition: color .3s, opacity .3s; }
.js .statement[data-fill] .sw { opacity: .16; }
.js .statement[data-fill] .sw.lit { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .statement[data-fill] .sw { opacity: 1; } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: s; position: relative; }
@media (min-width: 900px) { .steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps > li { counter-increment: s; margin: 0; position: relative; padding: 76px clamp(22px, 3vw, 32px) 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); }
.steps > li::before { content: counter(s); position: absolute; top: 24px; left: clamp(22px, 3vw, 32px); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 700 1rem/1 var(--font-display); color: #0a0b12; background: var(--grad); box-shadow: 0 0 24px rgba(197, 138, 249, .5); }
.steps h3 { font: 700 1.3rem/1.2 var(--font-display); letter-spacing: -.02em; }
.steps p { color: var(--text-2); }
.steps p:last-child { margin-bottom: 0; }

/* ---------- Final CTA (sunset skyline) ---------- */
.cta-final { position: relative; overflow: hidden; padding: clamp(100px, 14vw, 200px) 0 0; text-align: center; isolation: isolate; background: linear-gradient(180deg, var(--bg) 0%, #1a1233 45%, #5b2d5e 75%, #c0567a 92%, #f59e6b 100%); }
.cta-final .sun { position: absolute; left: 50%; bottom: 0; width: min(80vw, 820px); aspect-ratio: 1; transform: translate(-50%, 42%); border-radius: 50%; background: linear-gradient(#ffd27a, #ff8bcb 60%, transparent 75%); filter: blur(2px); opacity: .55; z-index: -1; mask-image: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px); -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px); }
.cta-final h2 { font-size: clamp(2.3rem, 1rem + 6vw, 7rem); line-height: .98; letter-spacing: -.05em; }
.cta-final .lead { margin-inline: auto; color: #f1e6f5; }
.cta-final .btn-row { justify-content: center; }
.cta-final .skyline { width: 100%; height: clamp(90px, 14vw, 200px); margin-top: clamp(50px, 8vw, 100px); }
.cta-final .skyline.far { position: absolute; bottom: 0; left: 0; opacity: .7; height: clamp(110px, 17vw, 240px); }
.cta-final .skyline:not(.far) { position: relative; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 9vw, 130px) 0 clamp(56px, 8vw, 110px); border-bottom: 1px solid var(--line); }
.page-hero .aurora { z-index: -2; opacity: .85; }
.page-hero h1 { font-size: clamp(2.2rem, 1rem + 4.6vw, 5.4rem); line-height: 1; letter-spacing: -.045em; max-width: 16ch; margin-bottom: .35em; }
.page-hero .lead { margin-bottom: 0; max-width: 54ch; }
.page-hero .btn-row { margin-bottom: 0; }
.legal-meta { color: var(--muted); margin: 0; }
.page-hero.calm { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); }
.page-hero.calm .aurora { opacity: .45; }
.page-hero.calm h1 { font-size: clamp(2rem, 1rem + 3.4vw, 4rem); }
.float-keys { position: absolute; z-index: -1; right: max(-40px, calc((100vw - var(--maxw)) / 2 - 80px)); top: 50%; width: min(46vw, 560px); transform: translateY(-50%) perspective(1200px) rotateY(-24deg) rotateX(12deg); display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; opacity: .42; pointer-events: none; }
.float-keys .key { border-radius: 22%; }
@media (prefers-reduced-motion: no-preference) {
  .float-keys .key { animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
  @keyframes bob { 50% { transform: translateZ(40px) translateY(-8px); } }
}
@media (max-width: 760px) { .float-keys { width: 80vw; right: -36vw; opacity: .22; } }

/* ---------- Docs layout ---------- */
.doc-layout { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 80px) clamp(70px, 9vw, 130px); }
@media (min-width: 1000px) { .doc-layout { grid-template-columns: 250px minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); } .doc-layout.doc-single { grid-template-columns: minmax(0, 1fr); max-width: 860px; } }
.toc { align-self: start; font-size: .94rem; }
.toc h2 { font: 600 .74rem/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; }
.toc ul ul, .toc ol ul { padding-left: 14px; margin: 2px 0 6px; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 12px; border-left: 2px solid var(--line); color: var(--text-2); text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.toc a:hover { color: #fff; border-left-color: var(--line-2); }
.toc a.is-active { color: #fff; border-left-color: var(--violet); background: linear-gradient(90deg, rgba(197, 138, 249, .12), transparent); }
@media (min-width: 1000px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; } }
@media (max-width: 999px) { .toc { padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); } }

.prose { min-width: 0; max-width: 820px; }
.prose > section { padding-top: 8px; margin-bottom: clamp(48px, 6vw, 72px); }
.prose > section:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.12; margin: 0 0 .6em; }
.prose h3 { margin: 1.6em 0 .6em; font-size: 1.22rem; }
.prose p, .prose li { color: var(--text-2); }
.prose li strong, .prose p strong { color: #fff; }
.prose ul > li::marker { color: var(--violet); }
.prose .lead { color: var(--text-2); }

/* numbered how-to steps */
.howto { list-style: none; padding: 0; margin: 1.2em 0 1.6em; counter-reset: h; }
.howto > li { counter-increment: h; position: relative; margin: 0; padding: 4px 0 22px 58px; }
.howto > li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--key); border: 1.5px solid color-mix(in srgb, var(--violet) 80%, transparent); box-shadow: 0 0 18px -4px var(--violet), inset 0 0 12px -6px var(--violet); color: var(--violet); font: 700 .95rem/1 var(--font-display); }
.howto > li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 1px; background: linear-gradient(var(--line-2), transparent); }
.howto > li:last-child::after { display: none; }
.howto > li > ul { margin-top: .4em; }
.howto .step-title { display: block; color: #fff; font-weight: 600; font-size: 1.08rem; margin-bottom: 4px; }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 13px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); filter: drop-shadow(0 0 4px var(--green)); }

.note, .warning, .tip {
  position: relative;
  margin: 1.6em 0;
  padding: 20px 22px 20px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgba(138, 180, 248, .1), rgba(138, 180, 248, .03));
  border: 1px solid rgba(138, 180, 248, .3);
}
.note::before, .warning::before, .tip::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.note > strong, .warning > strong, .tip > strong { display: block; color: #fff; margin-bottom: 4px; }
.note p:last-child, .warning p:last-child, .tip p:last-child { margin-bottom: 0; }
.warning { background: linear-gradient(120deg, rgba(252, 173, 112, .12), rgba(252, 173, 112, .03)); border-color: rgba(252, 173, 112, .35); }
.warning::before { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.tip { background: linear-gradient(120deg, rgba(129, 201, 149, .12), rgba(129, 201, 149, .03)); border-color: rgba(129, 201, 149, .35); }
.tip::before { background: var(--green); box-shadow: 0 0 12px var(--green); }

.table-scroll { overflow-x: auto; margin: 1.2em 0 1.6em; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
thead th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .03); font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { color: #fff; font-weight: 600; }
td { color: var(--text-2); }
.table-scroll table { min-width: 560px; }

/* cards (inner pages) */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { position: relative; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); transition: border-color .3s, transform .5s var(--ease); isolation: isolate; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(197, 138, 249, .14), transparent 45%); opacity: 0; transition: opacity .4s; }
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-2); }
.card h3 { margin: 0 0 .4em; color: #fff; }
.card p { color: var(--text-2); margin: 0 0 .6em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; display: grid; place-items: center; color: var(--c, var(--blue)); background: var(--key); border: 1.5px solid color-mix(in srgb, currentColor 70%, transparent); box-shadow: 0 0 18px -4px currentColor, inset 0 0 12px -6px currentColor; }
.card .icon svg { width: 24px; height: 24px; filter: drop-shadow(0 0 4px currentColor); }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; transform: translateY(-4px); }
.card-link::after { content: "→"; position: absolute; right: 22px; top: 22px; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.card-link:hover::after { transform: translateX(4px); color: #fff; }
.req-list { list-style: none; padding: 0; margin: 0; }
.req-list li { display: flex; gap: 10px; align-items: flex-start; }
.req-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--green); }

.download-box { position: relative; margin-top: -40px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(120deg, rgba(138, 180, 248, .14), rgba(197, 138, 249, .12) 50%, rgba(255, 139, 203, .1)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 40px 80px -40px rgba(197, 138, 249, .6); }
.download-box h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem); margin-bottom: .2em; }
.download-box p { margin: 0; }

.grid-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 640px) { .grid-sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid-size { padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); text-align: center; color: #fff; }
.mini-grid { display: grid; gap: 4px; margin: 0 auto 12px; max-width: 140px; }
.mini-grid i { aspect-ratio: 1; border-radius: 4px; background: var(--key); border: 1px solid color-mix(in srgb, var(--cyan) 60%, transparent); box-shadow: 0 0 8px -3px var(--cyan); }

/* FAQ */
.faq-group { margin-bottom: clamp(40px, 5vw, 64px); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(197, 138, 249, .4); background: linear-gradient(160deg, rgba(197, 138, 249, .08), rgba(255, 255, 255, .02)); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; position: relative; font-weight: 600; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 20px 18px; }
.faq .answer > :last-child { margin-bottom: 0; }

.not-found { padding-block: 40px 120px; }

/* ---------- Streaming tutorial components ---------- */
.sub-tabs { position: sticky; top: var(--header-h); z-index: 50; border-bottom: 1px solid var(--line); background: rgba(9, 10, 16, .8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.sub-tabs ul { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sub-tabs li { margin: 0; flex: none; }
.sub-tabs a { display: block; padding: 14px 16px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .95rem; border-bottom: 2px solid transparent; }
.sub-tabs a:hover { color: #fff; }
.sub-tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--violet); }

.choose { display: grid; gap: 18px; }
@media (min-width: 860px) { .choose { grid-template-columns: 1fr 1fr; } }
.choose-card { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); text-decoration: none; color: inherit; overflow: hidden; isolation: isolate; transition: border-color .3s, transform .5s var(--ease); }
.choose-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px circle at var(--mx, 80%) var(--my, 0%), color-mix(in srgb, var(--c) 20%, transparent), transparent 50%); }
.choose-card:hover { color: inherit; border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.choose-card h3 { font: 700 clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem)/1.05 var(--font-display); letter-spacing: -.03em; margin: 18px 0 .4em; color: #fff; }
.choose-card p, .choose-card li { color: var(--text-2); }
.choose-card .badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid color-mix(in srgb, var(--c, #8ab4f8) 50%, transparent); color: var(--c, #8ab4f8); background: color-mix(in srgb, var(--c, #8ab4f8) 10%, transparent); }
.choose-card .go { margin-top: auto; padding-top: 18px; }

/* the interactive four-scene demo */
.scene-demo .stage { display: grid; gap: clamp(20px, 3vw, 40px); align-items: center; }
@media (min-width: 960px) { .scene-demo .stage { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.scene-demo .phone-shell { max-width: 620px; }
.scene-demo .phone-screen { padding: 4%; }
.scene-demo .deck { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.scene-demo .deck .key { cursor: pointer; border-style: solid; font: inherit; padding: 0; }
.scene-demo .deck .key:hover { transform: translateY(-2px); }
.scene-demo .deck .key.is-pressed { transform: scale(.88); }
.scene-demo .deck .key[aria-pressed="true"] { background: radial-gradient(120% 120% at 50% 20%, color-mix(in srgb, var(--c) 30%, #1a1b24), var(--key) 75%); }
.scene-demo .monitor-shell { margin-bottom: 8%; }
.scene-demo .now { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; color: var(--text-2); font-size: .95rem; }
.scene-demo .now b { color: #fff; }
.scene-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.scene-list li { margin: 0; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); transition: border-color .3s, background .3s; }
.scene-list li b { color: #fff; display: block; }
.scene-list li .key { width: 44px; flex: none; }
.scene-list li.is-active { border-color: rgba(197, 138, 249, .5); background: linear-gradient(120deg, rgba(197, 138, 249, .14), rgba(255, 255, 255, .02)); }
@media (min-width: 960px) {
  .js .scene-demo.is-pinned { height: 400vh; }
  .js .scene-demo.is-pinned .sd-sticky { position: sticky; top: calc(var(--header-h) + 49px); height: calc(100vh - var(--header-h) - 49px); display: grid; align-content: center; overflow: hidden; }
  .js .scene-demo.is-pinned .scene-list { grid-template-columns: repeat(4, 1fr); }
}

/* annotated mock UIs */
.mock { position: relative; margin: 1.4em 0 1.8em; border-radius: 14px; border: 1px solid var(--line-2); background: #14151d; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); overflow: hidden; font: 400 .9rem/1.45 var(--font-text); color: #d7dae6; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #1d1f2a; border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--text-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3d4d; }
.mock-bar span { margin-left: 6px; font-weight: 600; color: #fff; }
.mock-body { padding: 18px; display: grid; gap: 12px; }
.mock-menu { display: flex; gap: 18px; padding: 8px 14px; background: #191a24; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--text-2); overflow-x: auto; }
.mock-menu .open { color: #fff; position: relative; }
.mock-drop { position: relative; margin: -4px 0 0 80px; width: max-content; max-width: calc(100% - 90px); padding: 6px; border-radius: 10px; background: #20222e; border: 1px solid var(--line-2); box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
.mock-drop div { padding: 7px 12px; border-radius: 6px; color: var(--text-2); font-size: .86rem; }
.mock-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mock-check { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.mock-check.on { background: var(--blue); border-color: var(--blue); }
.mock-check.on::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #0b0c12; border-bottom: 2px solid #0b0c12; transform: rotate(-45deg) translate(1px, -1px); }
.mock-field { display: inline-flex; align-items: center; min-width: 120px; padding: 7px 10px; border-radius: 7px; border: 1px solid var(--line-2); background: #0f1017; color: #fff; font-family: var(--font-mono); font-size: .84rem; }
.mock-btn { display: inline-flex; padding: 7px 14px; border-radius: 7px; border: 1px solid var(--line-2); background: #262838; color: #fff; font-size: .84rem; }
.mock-btn.primary { background: var(--blue); color: #0b0c12; border-color: transparent; font-weight: 600; }
.mock-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mock-list div { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.mock-list div:last-child { border-bottom: 0; }
.mock-list .sel { background: rgba(138, 180, 248, .16); color: #fff; }
.mock-tools { display: flex; gap: 6px; padding: 6px; border-top: 1px solid var(--line); background: #191a24; }
.mock-tools span { width: 26px; height: 22px; border-radius: 5px; display: grid; place-items: center; background: #262838; color: #fff; font-size: .9rem; }
.hl { position: relative; border-radius: 8px; box-shadow: 0 0 0 2px var(--pink), 0 0 24px rgba(255, 139, 203, .6) !important; }
.callout { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--pink); color: #0b0c12; font: 700 .76rem/1.2 var(--font-text); }
.callout b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #0b0c12; color: var(--pink); font-size: .74rem; }
.num-badge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--pink); color: #0b0c12; font: 700 .74rem/1 var(--font-text); vertical-align: 1px; margin-right: 4px; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-chip { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); font-size: .84rem; color: var(--text-2); }
.mock-chip.on { background: rgba(197, 138, 249, .22); border-color: var(--violet); color: #fff; }
.mock-editor { display: grid; gap: 0; }
@media (min-width: 720px) { .mock-editor { grid-template-columns: 150px minmax(0, 1fr) 190px; } }
.mock-editor > div { padding: 16px; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .mock-editor > div { border-bottom: 0; border-right: 1px solid var(--line); } .mock-editor > div:last-child { border-right: 0; } }
.mock-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: block; }
.mock-editor .key { width: 96px; }
.mock-cat { font-size: .78rem; color: var(--muted); margin: 10px 0 4px; }
.mock-act { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: .86rem; }
.mock-act i { width: 22px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--c) 25%, #1a1b24); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); flex: none; }
.mock-act.sel { background: rgba(138, 180, 248, .14); color: #fff; }
.mock-hint { font-size: .78rem; color: var(--muted); }
.mock-preview { font: 600 1.05rem/1.2 var(--font-text); color: #fff; }

.shot { margin: 1.4em 0 1.8em; }
.shot .phone-shell { border-radius: 26px; }
.shot figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); }

.msg { font-family: var(--font-text); font-weight: 600; color: var(--red); }
.trouble { display: grid; gap: 12px; margin: 1.2em 0; }
.trouble article { padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.trouble h3 { margin: 0 0 8px; font-size: 1rem; font-family: var(--font-text); color: var(--red); line-height: 1.45; }
.trouble h3::before { content: "Phone says: "; color: var(--muted); font-weight: 500; }
.trouble p { margin: 0; }
.trouble p + p { margin-top: .6em; }

/* ---------- Footer ---------- */
.page-index .site-footer { border-top: 0; }
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: #06070b; padding-top: clamp(56px, 7vw, 90px); }
.footer-inner { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand p { color: var(--muted); max-width: 34ch; margin-top: 14px; }
.site-footer nav h2 { font: 600 .74rem/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav li { margin: 0; }
.site-footer nav a { display: inline-block; padding: 5px 0; color: var(--text-2); text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.footer-legal { margin-top: 48px; padding: 22px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-legal p { margin: 0 0 6px; }
.footer-word { font: 800 clamp(3rem, 13vw, 14rem)/.8 var(--font-display); letter-spacing: -.06em; text-align: center; margin: 30px 0 -0.12em; color: transparent; background: linear-gradient(180deg, rgba(197, 138, 249, .22), rgba(138, 180, 248, .04) 85%); -webkit-background-clip: text; background-clip: text; user-select: none; white-space: nowrap; }

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #000; }
  body::after, .site-header, .site-footer, .aurora, .float-keys, .toc, .sub-tabs, .scroll-progress { display: none !important; }
  .prose p, .prose li, td { color: #000; }
  .page-hero { padding: 0; border: 0; }
  .accent, .script { color: #000; background: none; }
}

/* grid sizes cycling (home tile) */
.grid-cycle { position: relative; width: min(230px, 80%); aspect-ratio: 2 / 1.25; }
.grid-cycle > div { position: absolute; inset: 0; display: grid; align-content: center; }
.grid-cycle .mini-grid { width: 100%; max-width: none; margin: 0; }
.grid-cycle .grid-label { margin-top: 10px; }
.grid-cycle > div:not(:last-child) { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .grid-cycle > div { opacity: 0; animation: cyc 10s infinite; }
  .js .grid-cycle > div:nth-child(2) { animation-delay: 2.5s; }
  .js .grid-cycle > div:nth-child(3) { animation-delay: 5s; }
  .js .grid-cycle > div:nth-child(4) { animation-delay: 7.5s; }
  @keyframes cyc { 0% { opacity: 0; transform: scale(.94); } 4%, 23% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; transform: scale(1.04); } }
}
@media (min-width: 960px) and (max-height: 820px) { .js .scene-demo.is-pinned .section-head .lead { display: none; } .js .story.is-pinned .story-steps p { font-size: .95rem; } }
.code-block { margin: 1em 0 1.4em; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #0d0e15; overflow-x: auto; font: 400 .9rem/1.6 var(--font-mono); color: #e3e6f2; white-space: pre; }
.code-block .c { color: var(--muted); }
.key-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1em 0 1.4em; }
.key-row .key { width: 84px; }
.figure-pair { display: grid; gap: 16px; }
.story .display { font-size: clamp(2rem, 1rem + 2.6vw, 3.6rem); }
.story .section-head { margin-bottom: clamp(20px, 3vw, 36px); }
.story-steps li { margin-bottom: 16px; }
.story-steps h3 { font-size: clamp(1.1rem, .9rem + .8vw, 1.55rem); }

@media (min-width: 960px) {
  .js .scene-demo.is-pinned .section-head { margin-bottom: 20px; }
  .js .scene-demo.is-pinned .section-head .lead { display: none; }
  .js .scene-demo.is-pinned .display { font-size: clamp(1.8rem, 1rem + 2vw, 3rem); }
  .js .scene-demo.is-pinned .scene-list { margin-top: 18px; }
  .js .scene-demo.is-pinned .scene-list li { padding: 10px 12px; align-items: center; }
  .js .scene-demo.is-pinned .scene-list li div { font-size: .88rem; line-height: 1.35; }
  .js .scene-demo.is-pinned .monitor-shell { max-width: min(100%, calc((100vh - 360px) * 1.7)); margin-inline: auto; }
}
html:has(.sub-tabs) { scroll-padding-top: calc(var(--header-h) + 72px); }
@media (min-width: 1000px) { .sub-tabs ~ .doc-layout .toc { top: calc(var(--header-h) + 76px); max-height: calc(100vh - var(--header-h) - 100px); } }

/* ---------- Developers page ---------- */
.dev-hero { padding-bottom: clamp(48px, 7vw, 100px); }
.dev-hero-inner { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .dev-hero-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.dev-hero h1 { max-width: 14ch; font-size: clamp(2.2rem, 1rem + 3.6vw, 4.6rem); }
.dev-hero-visual { position: relative; perspective: 1400px; isolation: isolate; }
.dev-glow { position: absolute; inset: 6% 8% 18%; z-index: -1; border-radius: 50%; background: conic-gradient(from 0deg, #78d9ec, #c58af9, #ff8bcb, #fdd663, #78d9ec); filter: blur(70px); opacity: .32; }
.dev-hero .phone-shell { transform: rotateX(10deg) rotateY(-12deg) rotateZ(1deg); transition: transform .6s var(--ease); }
.dev-hero .phone-screen { padding: 2.6% 3.6% 4%; background: radial-gradient(120% 120% at 50% 0%, #15161f, #0b0c11); }
.dev-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2.6%; color: var(--text-2); font: 600 clamp(9px, 1.1vw, 13px)/1 var(--font-text); }
.dev-dots { display: flex; gap: 5px; }
.dev-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.dev-dots i.on { background: #fff; }
.dev-menu { font-size: 1.3em; line-height: .6; }
.dev-hero .deck { gap: 3%; }
.dev-hero .deck .key.is-pressed { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .dev-glow { animation: devspin 22s linear infinite; }
  @keyframes devspin { to { transform: rotate(1turn); } }
  .js .dev-hero .deck .key { animation: devglow 4.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.32s); }
  @keyframes devglow { 50% { box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 0 34px 0 color-mix(in srgb, var(--c) 85%, transparent), inset 0 0 24px -6px var(--c); } }
}
.dd-readout { --c: #78d9ec; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 26px 0 0; min-height: 4.4em; text-align: center; }
.dd-key { font: 700 1.05rem/1.2 var(--font-display); color: #fff; letter-spacing: -.02em; }
.dd-sc { padding: 4px 10px; border-radius: 8px; background: var(--key); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); color: var(--c); font: 600 .85rem/1.2 var(--font-mono); box-shadow: 0 0 16px -6px var(--c); }
.dd-what { flex-basis: 100%; color: var(--text-2); font-size: .92rem; }
.dd-note { margin: 6px auto 0; max-width: 46ch; text-align: center; color: var(--muted); font-size: .82rem; }
.dd-pause { position: absolute; right: 0; top: -48px; z-index: 3; display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 11, 18, .6); backdrop-filter: blur(10px); color: var(--text-2); font: 500 .8rem/1 var(--font-text); cursor: pointer; }
.dd-pause:hover { color: #fff; }
.dd-pause[hidden] { display: none; }

/* plain (no glow) keys: the style a new Developer page starts with */
.plain-keys .key, .key.plain { border-color: rgba(255, 255, 255, .1); background: #1a1b24; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); color: #dfe2ee; }
.plain-keys .key svg, .key.plain svg { filter: none; }

/* developer reel pieces */
.win-code header { background: #22304a; }
.code-lines i { height: 6px !important; }
.code-lines i:nth-child(1) { width: 52%; background: rgba(197, 138, 249, .55); }
.code-lines i:nth-child(2) { width: 78%; background: rgba(138, 180, 248, .45); margin-left: 10%; }
.code-lines i:nth-child(3) { width: 64%; background: rgba(253, 214, 99, .45); margin-left: 10%; }
.code-lines i:nth-child(4) { width: 40%; background: rgba(129, 201, 149, .5); margin-left: 20%; }
.code-lines i:nth-child(5) { width: 30%; background: rgba(255, 255, 255, .15); }
.win-term .body { background: #0a0b10; }
.term-lines i { height: 6px !important; background: rgba(129, 201, 149, .5); }
.term-lines i:nth-child(2) { width: 60%; background: rgba(255, 255, 255, .2); }
.term-lines i:nth-child(3) { width: 20%; background: #81c995; }
@media (prefers-reduced-motion: no-preference) { .term-lines i:nth-child(3) { animation: blink 1s steps(1) infinite; } @keyframes blink { 50% { opacity: 0; } } }
.app-win.snap { transition: opacity .35s, transform .5s var(--ease-spring); }
.task-view { position: absolute; inset: 0 0 9%; z-index: 30; display: flex; align-items: center; justify-content: center; gap: 4%; background: rgba(8, 9, 14, .72); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.task-view.on { opacity: 1; }
.task-view span { width: 26%; aspect-ratio: 16 / 10; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .2); background: linear-gradient(#2a2c3b 0 18%, #1d1f2b 18%); transform: scale(.8); transition: transform .45s var(--ease-spring); }
.task-view.on span { transform: none; }
.task-view span:nth-child(2) { outline: 2px solid var(--blue); outline-offset: 2px; }
.desk-swap > .scr { display: block; transition: opacity .45s, transform .6s var(--ease); }
.desk-swap > .scr:not(.on) { transform: translateX(-10%); }
.desk-swap > .scr.d2:not(.on) { transform: translateX(10%); }
.desk-name { position: absolute; bottom: 13%; left: 50%; z-index: 5; transform: translateX(-50%); padding: 3px 9px; border-radius: 999px; background: rgba(15, 16, 24, .85); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font: 600 clamp(7px, .9vw, 12px)/1.2 var(--font-text); white-space: nowrap; }

/* tutorial */
.dev-tutorial { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .dev-tutorial { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .dev-mock { position: sticky; top: calc(var(--header-h) + 32px); } }
.dev-mock { width: 100%; max-width: 340px; margin-inline: auto; }
.phone-shell.portrait { padding: 4% 3.4%; border-radius: clamp(28px, 5vw, 46px); }
.phone-shell.portrait::before { left: 50%; top: 1.7%; width: 3.5%; transform: translateX(-50%); }
.dev-mock .phone-screen { position: relative; aspect-ratio: 9 / 18.5; padding: 10% 7%; border-radius: clamp(20px, 4vw, 36px); }
.dm-deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6%; opacity: .45; filter: blur(1px); }
.dm-sheet { position: absolute; left: 5%; right: 5%; top: 50%; transform: translateY(-46%); display: grid; gap: 8px; padding: 18px 14px 14px; border-radius: 24px; background: #1f2130; border: 1px solid var(--line-2); box-shadow: 0 30px 60px rgba(0, 0, 0, .7); }
.dm-title { margin: 0 0 4px 6px; color: #fff; font: 600 1.12rem/1.2 var(--font-text); }
.dm-choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 14px; }
.dm-choice.sel { background: rgba(120, 217, 236, .12); box-shadow: inset 0 0 0 1px rgba(120, 217, 236, .5), 0 0 24px -8px #78d9ec; }
.dm-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.dm-ic svg { width: 22px; height: 22px; }
.dm-txt { font-size: .78rem; line-height: 1.35; color: var(--text-2); }
.dm-txt b { display: block; color: #fff; font-size: .95rem; }
.dm-choice .callout { position: absolute; right: -8px; top: -14px; }
.dm-note { margin: 2px 6px 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.dm-cancel { justify-self: end; margin: 0 6px 0 0; color: var(--blue); font-weight: 600; font-size: .88rem; }

/* key table + deck sizes */
.dev-rows { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.table-scroll .dev-table { min-width: 860px; }
.dev-table td.num { width: 1%; color: var(--muted); font-variant-numeric: tabular-nums; }
.dev-table th[scope="row"] { white-space: nowrap; }
.tkey { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; vertical-align: middle; border-radius: 9px; background: var(--key); border: 1.5px solid color-mix(in srgb, var(--c) 75%, transparent); color: var(--c); }
.tkey svg { width: 17px; height: 17px; }
.pill-sm { margin-left: 8px; padding: 2px 8px; font-size: .7rem; vertical-align: middle; }
.small-print { max-width: 80ch; color: var(--muted); font-size: .86rem; }
.dev-sizes { margin-top: clamp(28px, 4vw, 44px); }
.dev-sizes figure { margin: 0; }
.dev-sizes .mini-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); max-width: min(100%, calc(var(--cols) * 42px)); gap: 4px; }
.dev-sizes .key { border-radius: 22%; border-width: 1px; }
.dev-sizes .key svg { width: 58%; height: 58%; }
.dev-sizes figcaption { font-size: .85rem; color: var(--text-2); }
.dev-sizes figcaption strong { display: block; color: #fff; font: 700 1.1rem/1.3 var(--font-display); }

/* home: Stream / Build cards */
.sb-keys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 380px; margin: 22px 0 6px; }
.sb-keys .key .kl { font-size: 13cqw; }
.clip .mini-phone { z-index: 50; }
.clip .tap { z-index: 60; }
@media (min-width: 1000px) and (max-width: 1159px) { .site-nav > ul > li > a { padding-inline: 9px; font-size: .9rem; } }
html:not(.js) .clip.on .app-win { opacity: 1; transform: none; }

/* developers: key whose app isn't installed yet */
.pending { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: clamp(36px, 5vw, 64px); padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); border: 1px solid color-mix(in srgb, #fdd663 35%, transparent); background: linear-gradient(160deg, rgba(253, 214, 99, .08), rgba(255, 255, 255, .015)); }
@media (min-width: 900px) { .pending { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.pending h3 { font: 700 clamp(1.3rem, 1rem + 1vw, 1.9rem)/1.15 var(--font-display); letter-spacing: -.03em; color: #fff; }
.pending-copy p, .pending-copy li { color: var(--text-2); }
.pending-copy p:last-child { margin-bottom: 0; }
.pending-mock { display: grid; justify-items: center; gap: 18px; }
.pend-key { position: relative; width: 104px; }
.pend-badge { position: absolute; top: 6%; right: 6%; width: 24%; aspect-ratio: 1; border-radius: 50%; background: #fdd663; color: #0b0c12; display: grid; place-items: center; box-shadow: 0 0 12px rgba(253, 214, 99, .6); }
.pend-badge svg { width: 68%; height: 68%; filter: none; }
.pend-card { width: 100%; max-width: 380px; padding: 16px; border-radius: 16px; background: rgba(253, 214, 99, .1); border: 1px solid rgba(253, 214, 99, .25); }
.pend-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: #fff; font-weight: 600; }
.pend-title svg { width: 20px; height: 20px; color: #fdd663; flex: none; }
.pend-text { margin: 0 0 12px; color: var(--text-2); font-size: .82rem; line-height: 1.45; }
.pend-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pend-btns .mock-btn.primary { background: #fdd663; }
.pend-link { color: var(--blue); font-weight: 600; font-size: .84rem; padding: 7px 4px; }
