/* FaceLatch — a dark, colourful page built around one moment: the notch clicks open. */

@font-face {
  font-family: "TikTok Sans";
  src: url(fonts/tiktok-sans-latin.woff2) format("woff2");
  font-weight: 300 900;
  font-stretch: 75% 150%;
  font-display: swap;
}

:root {
  --ink: #09070f;
  --ink-2: #13101c;
  --ink-3: #1d1928;
  --paper: #f6f3ff;
  --mute: rgba(246, 243, 255, 0.68);
  --faint: rgba(246, 243, 255, 0.14);
  --violet: #7b5cff;
  --pink: #ff4fa3;
  --coral: #ff7448;
  --lime: #d4ff4e;
  --sky: #4cc6ff;
  --green: #34c759;
  --dark-text: #14091a;
  --spring: cubic-bezier(0.34, 1.45, 0.5, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --inout: cubic-bezier(0.7, 0, 0.2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "TikTok Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-stretch: 112%; font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; text-wrap: balance; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; font-stretch: 105%; }
p { text-wrap: pretty; }
::selection { background: var(--lime); color: var(--dark-text); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 99px; }
.skip:focus { left: 12px; }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 99px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--out), background-color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 40px -8px rgba(212, 255, 78, 0.55); }
.btn:active { transform: scale(0.96); transition-duration: 0.12s; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 99px;
  background: rgba(16, 13, 24, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s var(--out), opacity 0.4s;
}
.nav.is-hidden { transform: translate(-50%, -140%); opacity: 0; }
.nav:focus-within { transform: translateX(-50%); opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; font-stretch: 110%; letter-spacing: -0.02em; }
.brand-pill { display: grid; place-items: center; width: 38px; height: 22px; border-radius: 0 0 9px 9px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }
.brand-pill svg { width: 13px; height: 13px; }
.brand-pill rect { fill: var(--green); }
.brand-pill path { fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--mute); padding: 8px 14px; border-radius: 99px; transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: var(--paper); background: rgba(255, 255, 255, 0.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: 132px var(--gutter) 72px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  overflow: clip;
}
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; will-change: transform; }
.aurora i:nth-child(1) { width: 70vw; height: 70vw; left: -18vw; top: -22vw; background: radial-gradient(closest-side, rgba(123, 92, 255, 0.55), transparent); animation: drift-a 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 60vw; height: 60vw; right: -16vw; top: -8vw; background: radial-gradient(closest-side, rgba(255, 79, 163, 0.42), transparent); animation: drift-b 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 80vw; height: 50vw; left: 10vw; top: 36vw; background: radial-gradient(closest-side, rgba(255, 116, 72, 0.32), transparent); animation: drift-c 30s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(14vw, 8vw) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vw, 12vw) scale(0.9); } }
@keyframes drift-c { to { transform: translate(-10vw, -10vw) scale(1.1); } }

.hero-title { font-size: clamp(54px, 8.6vw, 136px); display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.26em; }
.mask { display: block; overflow: hidden; padding: 0.04em 0.02em 0.1em; margin-bottom: -0.06em; }
.mask > span { display: block; }
.glow-word {
  background: linear-gradient(100deg, var(--lime) 0%, #5dff9a 40%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-say { max-width: 660px; margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); color: var(--mute); }

.stage-wrap { width: min(1000px, 100%); margin-top: 44px; perspective: 1800px; }
.hero-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; margin-top: 30px; }
.btn-look { min-width: 252px; min-height: 60px; padding: 0 30px 0 22px; font-size: 18px; background: linear-gradient(100deg, var(--lime), #7dff8f); color: var(--dark-text); box-shadow: 0 0 0 0 rgba(212, 255, 78, 0.5); }
.js .btn-look[data-ready] { animation: nudge 2.4s ease-out infinite; }
@keyframes nudge { 0% { box-shadow: 0 0 0 0 rgba(212, 255, 78, 0.55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(212, 255, 78, 0); } }
.look-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.watch { display: inline-flex; align-items: center; gap: 8px; min-width: 104px; justify-content: center; height: 44px; padding: 0 16px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); font-variant-numeric: tabular-nums; font-weight: 700; }
.watch-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transition: background-color 0.2s, box-shadow 0.2s; }
.is-running .watch-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.hint { width: 100%; font-size: 14px; color: var(--mute); }
.no-js-hide { display: none; }
html:not(.js) .btn-look, html:not(.js) .watch, html:not(.js) .hint { display: none; }

/* ---------- The MacBook ---------- */
.mac { position: relative; transform-style: preserve-3d; transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform 0.6s var(--out); }
.lid {
  position: relative; padding: 1.4%; border-radius: 2.6% / 4%;
  background: linear-gradient(180deg, #2a2733, #121017);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 50px 120px -30px rgba(123, 92, 255, 0.55), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.lid::before { content: ""; position: absolute; inset: 0.55%; border-radius: 2.2% / 3.4%; background: #000; }
.screen {
  position: relative; container-type: size; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 1.4% / 2.2%; background: #000; --u: 1cqw;
  cursor: pointer;
}
.base { position: relative; width: 112%; left: -6%; height: 1.9vw; max-height: 22px; margin-top: -2px; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(180deg, #48434f, #1d1a22 70%); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.9); }
.base::before { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 40%; transform: translateX(-50%); border-radius: 0 0 12px 12px; background: #1b1820; }

/* Desktop behind the lock screen: a bright wallpaper, menu bar, windows and dock. */
.desk { position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(60% 80% at 15% 20%, #ff5fa8 0%, transparent 60%),
    radial-gradient(55% 75% at 85% 15%, #6b5cff 0%, transparent 60%),
    radial-gradient(60% 80% at 75% 95%, #46d9ff 0%, transparent 60%),
    radial-gradient(50% 70% at 20% 95%, #d4ff4e 0%, transparent 60%),
    #ff8a50;
  transform: scale(1.06); transition: transform 0.9s var(--out);
}
.desk-bar { position: absolute; inset: 0 0 auto 0; height: calc(2.9 * var(--u)); display: flex; align-items: center; gap: calc(1.6 * var(--u)); padding: 0 calc(1.6 * var(--u)); background: rgba(255, 255, 255, 0.22); color: #12091a; font-size: calc(1.05 * var(--u)); }
.desk-bar b { font-weight: 800; }
.desk-apple { font-size: calc(1.3 * var(--u)); }
.desk-time { margin-left: auto; font-weight: 700; }
.desk-win { position: absolute; border-radius: calc(1 * var(--u)); background: rgba(255, 255, 255, 0.78); box-shadow: 0 calc(1.2 * var(--u)) calc(3 * var(--u)) rgba(30, 0, 60, 0.3); padding: calc(0.9 * var(--u)); display: flex; gap: calc(0.5 * var(--u)); align-items: flex-start; }
.desk-win i { width: calc(0.9 * var(--u)); height: calc(0.9 * var(--u)); border-radius: 50%; background: #ff5f57; }
.desk-win i:nth-child(2) { background: #febc2e; }
.desk-win i:nth-child(3) { background: #28c840; }
.desk-win-a::after, .desk-win-b::after { content: ""; position: absolute; left: 8%; right: 30%; top: 22%; bottom: 18%; background: repeating-linear-gradient(180deg, rgba(40, 20, 70, 0.16) 0 calc(0.9 * var(--u)), transparent calc(0.9 * var(--u)) calc(2.2 * var(--u))); border-radius: 4px; }
.desk-win-b::after { right: 12%; background: repeating-linear-gradient(180deg, rgba(212, 255, 78, 0.5) 0 calc(0.5 * var(--u)), transparent calc(0.5 * var(--u)) calc(1.6 * var(--u)), rgba(255, 255, 255, 0.25) calc(1.6 * var(--u)) calc(2.1 * var(--u)), transparent calc(2.1 * var(--u)) calc(3.2 * var(--u))); }
.desk-win-a { left: 9%; top: 15%; width: 44%; height: 52%; transform: translateY(8%); opacity: 0; transition: transform 0.8s var(--out) 0.15s, opacity 0.5s 0.15s; }
.desk-win-b { left: 47%; top: 30%; width: 40%; height: 44%; background: rgba(20, 14, 30, 0.82); transform: translateY(10%); opacity: 0; transition: transform 0.8s var(--out) 0.25s, opacity 0.5s 0.25s; }
.desk-dock { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); display: flex; gap: calc(0.7 * var(--u)); padding: calc(0.6 * var(--u)); border-radius: calc(1.6 * var(--u)); background: rgba(255, 255, 255, 0.3); }
.desk-dock i { width: calc(4 * var(--u)); height: calc(4 * var(--u)); border-radius: calc(1 * var(--u)); background: linear-gradient(150deg, #fff 0%, var(--c, #7b5cff) 45%); transform: translateY(60%); opacity: 0; transition: transform 0.6s var(--spring), opacity 0.4s; }
.desk-dock i:nth-child(1) { --c: #2f8bff; transition-delay: 0.3s; }
.desk-dock i:nth-child(2) { --c: #ff4fa3; transition-delay: 0.34s; }
.desk-dock i:nth-child(3) { --c: #34c759; transition-delay: 0.38s; }
.desk-dock i:nth-child(4) { --c: #ffb020; transition-delay: 0.42s; }
.desk-dock i:nth-child(5) { --c: #7b5cff; transition-delay: 0.46s; }
.desk-dock i:nth-child(6) { --c: #ff6a3d; transition-delay: 0.5s; }
.desk-dock i:nth-child(7) { --c: #46d9ff; transition-delay: 0.54s; }

/* Lock screen */
.lockscreen { position: absolute; inset: 0; transition: transform 0.85s var(--inout), opacity 0.85s var(--inout); }
.ls-wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lockscreen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 0, 30, 0.25), transparent 40%, rgba(10, 0, 20, 0.35)); }
.ls-clock { position: absolute; z-index: 1; left: 0; right: 0; top: 10%; text-align: center; color: rgba(255, 255, 255, 0.92); }
.ls-date { font-size: calc(1.7 * var(--u)); font-weight: 600; }
.ls-time { font-size: calc(11.5 * var(--u)); font-weight: 700; font-stretch: 100%; letter-spacing: -0.02em; line-height: 1; }
.ls-user { position: absolute; z-index: 1; left: 0; right: 0; bottom: 7%; display: flex; flex-direction: column; align-items: center; gap: calc(0.8 * var(--u)); color: #fff; }
.ls-avatar { width: calc(5.4 * var(--u)); height: calc(5.4 * var(--u)); border-radius: 50%; box-shadow: 0 0 0 calc(0.2 * var(--u)) rgba(255, 255, 255, 0.4); }
.ls-name { font-size: calc(1.45 * var(--u)); font-weight: 700; }
.ls-pw { position: relative; display: grid; place-items: center; width: calc(14 * var(--u)); height: calc(2.6 * var(--u)); border-radius: 99px; background: rgba(255, 255, 255, 0.24); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: calc(1.05 * var(--u)); color: rgba(255, 255, 255, 0.75); }
.ls-pw > * { grid-area: 1 / 1; }
.ls-dots { display: flex; gap: calc(0.45 * var(--u)); }
.ls-dots i, .macro-pw i { width: calc(0.65 * var(--u)); height: calc(0.65 * var(--u)); border-radius: 50%; background: #fff; transform: scale(0); transition: transform 0.18s var(--spring); }

/* ---------- The island (shared by the hero and the slowed-down scene) ---------- */
.island {
  --w: calc(10 * var(--u)); --h: calc(2.9 * var(--u)); --r: calc(1.1 * var(--u));
  position: absolute; z-index: 5; top: 0; left: 50%;
  width: var(--w); height: var(--h); transform: translateX(-50%);
  background: #000; border-radius: 0 0 var(--r) var(--r);
  transition: width 0.55s var(--spring), height 0.55s var(--spring), border-radius 0.55s var(--out);
}
.island::before, .island::after { content: ""; position: absolute; top: 0; width: calc(0.9 * var(--u)); height: calc(0.9 * var(--u)); }
.island::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent calc(0.9 * var(--u) - 0.5px), #000 calc(0.9 * var(--u))); }
.island::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent calc(0.9 * var(--u) - 0.5px), #000 calc(0.9 * var(--u))); }
.cam { position: absolute; left: 50%; top: calc(1.45 * var(--u)); width: calc(0.75 * var(--u)); height: calc(0.75 * var(--u)); margin: calc(-0.375 * var(--u)) 0 0 calc(-0.375 * var(--u)); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3550, #0a0c14 70%); }
.cam::after { content: ""; position: absolute; left: calc(1.3 * var(--u)); top: 50%; width: calc(0.35 * var(--u)); height: calc(0.35 * var(--u)); margin-top: calc(-0.175 * var(--u)); border-radius: 50%; background: var(--green); box-shadow: 0 0 calc(0.6 * var(--u)) var(--green); opacity: 0; transition: opacity 0.2s; }
.wing-lock { position: absolute; right: calc(2.3 * var(--u)); top: calc(0.62 * var(--u)); width: calc(1.65 * var(--u)); height: calc(1.65 * var(--u)); color: #fff; opacity: 0; transform: scale(0.6); transition: opacity 0.25s, transform 0.4s var(--spring); }
.wing-lock rect, .g-open rect { fill: currentColor; }
.wing-lock path, .g-open path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.glyph { position: absolute; left: 50%; top: calc(3.55 * var(--u)); width: calc(5.6 * var(--u)); height: calc(5.6 * var(--u)); margin-left: calc(-2.8 * var(--u)); opacity: 0; transform: scale(0.5); transition: opacity 0.25s, transform 0.45s var(--spring); }
.ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0.12) 200deg, #fff 345deg, rgba(255, 255, 255, 0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 0.22 * var(--u)), #000 calc(100% - 0.2 * var(--u)));
  mask: radial-gradient(farthest-side, transparent calc(100% - 0.22 * var(--u)), #000 calc(100% - 0.2 * var(--u)));
  animation: spin 0.9s linear infinite; transition: opacity 0.25s;
}
@keyframes spin { to { transform: rotate(360deg); } }
.g-face, .g-open { position: absolute; inset: 21%; width: 58%; height: 58%; transition: opacity 0.2s, transform 0.45s var(--spring); }
.g-face { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: breathe 1.1s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(0.9); opacity: 0.75; } }
.g-open { color: var(--green); opacity: 0; transform: scale(0.4) rotate(-12deg); filter: drop-shadow(0 0 calc(0.8 * var(--u)) rgba(52, 199, 89, 0.7)); }

[data-state="plain"] .island, [data-state="done"] .island { --w: calc(10 * var(--u)); }
[data-state="locked"] .island { --w: calc(18.5 * var(--u)); }
[data-state="locked"] .wing-lock { opacity: 1; transform: none; transition-delay: 0.15s; }
[data-state="looking"] .island, [data-state="open"] .island, [data-state="in"] .island {
  --w: calc(25 * var(--u)); --h: calc(10.6 * var(--u)); --r: calc(3.4 * var(--u));
}
[data-state="looking"] .cam::after, [data-state="open"] .cam::after { opacity: 1; }
[data-state="looking"] .glyph, [data-state="open"] .glyph, [data-state="in"] .glyph { opacity: 1; transform: none; transition-delay: 0.12s; }
[data-state="open"] .ring, [data-state="in"] .ring { opacity: 0; }
[data-state="open"] .g-face, [data-state="in"] .g-face { opacity: 0; transform: scale(0.6); animation: none; }
[data-state="open"] .g-open, [data-state="in"] .g-open { opacity: 1; transform: none; animation: pop 0.5s var(--spring); }
@keyframes pop { 0% { transform: scale(0.4) rotate(-12deg); } 60% { transform: scale(1.18) rotate(4deg); } 100% { transform: none; } }

/* Hero sequence */
[data-state="open"] .ls-pw-text, [data-state="in"] .ls-pw-text, [data-state="done"] .ls-pw-text { opacity: 0; }
[data-state="open"] .ls-dots i, [data-state="in"] .ls-dots i, [data-state="done"] .ls-dots i { transform: scale(1); }
.ls-dots i:nth-child(1) { transition-delay: 0.02s; } .ls-dots i:nth-child(2) { transition-delay: 0.04s; } .ls-dots i:nth-child(3) { transition-delay: 0.06s; } .ls-dots i:nth-child(4) { transition-delay: 0.08s; } .ls-dots i:nth-child(5) { transition-delay: 0.1s; }
.ls-dots i:nth-child(6) { transition-delay: 0.12s; } .ls-dots i:nth-child(7) { transition-delay: 0.14s; } .ls-dots i:nth-child(8) { transition-delay: 0.16s; } .ls-dots i:nth-child(9) { transition-delay: 0.18s; } .ls-dots i:nth-child(10) { transition-delay: 0.2s; }
[data-state="in"] .lockscreen, [data-state="done"] .lockscreen { transform: translateY(-104%); }
[data-state="in"] .desk, [data-state="done"] .desk { transform: none; }
[data-state="in"] .desk-win, [data-state="done"] .desk-win, [data-state="in"] .desk-dock i, [data-state="done"] .desk-dock i { opacity: 1; transform: none; }
.ls-pw-text { transition: opacity 0.15s; }

/* ---------- Scene: the unlock, slowed down ---------- */
.beat { position: relative; }
.js:not(.reduce) .beat { height: 420vh; }
.scene-stage {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 48px;
  padding: 120px max(var(--gutter), calc((100% - var(--max)) / 2)) 80px;
  min-height: 100vh;
}
.js:not(.reduce) .scene-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding-top: 96px; padding-bottom: 48px; }
.beat-field { position: absolute; inset: 0; z-index: -1; background: #170d3a; transition: background-color 0.8s var(--out); }
.beat-field::before { content: ""; position: absolute; inset: -60%; background:
  radial-gradient(40% 45% at 70% 40%, var(--beat-a, rgba(123, 92, 255, 0.7)), transparent 70%),
  radial-gradient(35% 40% at 20% 80%, var(--beat-b, rgba(255, 79, 163, 0.35)), transparent 70%);
  transform: rotate(calc(var(--p, 0) * 40deg)); transition: background 0.8s;
}
.beat[data-step="1"] .beat-field { background-color: #071a46; }
.beat[data-step="1"] { --beat-a: rgba(76, 198, 255, 0.6); --beat-b: rgba(123, 92, 255, 0.45); }
.beat[data-step="2"] .beat-field { background-color: #3a0a2c; }
.beat[data-step="2"] { --beat-a: rgba(255, 79, 163, 0.6); --beat-b: rgba(255, 116, 72, 0.45); }
.beat[data-step="3"] .beat-field { background-color: #062a17; }
.beat[data-step="3"] { --beat-a: rgba(52, 199, 89, 0.65); --beat-b: rgba(212, 255, 78, 0.4); }

.beat-kicker { font-size: clamp(26px, 2.5vw, 38px); white-space: nowrap; }
.beat-clock { margin: 10px 0 18px; font-size: clamp(80px, 10vw, 156px); font-weight: 800; font-stretch: 120%; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #fff, var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.beat-clock { display: flex; align-items: baseline; overflow: clip; overflow-clip-margin: 0px; }
.beat-copy .beat-clock span { line-height: 0.9; }
.beat-clock small { font-size: 0.36em; margin-left: 0.08em; letter-spacing: 0; }
.beat-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 470px; font-size: 15px; }
.beat-steps li { color: var(--mute); padding-left: 18px; border-left: 3px solid rgba(255, 255, 255, 0.16); transition: color 0.4s, border-color 0.4s, opacity 0.4s; }
.beat-steps strong { display: block; color: var(--paper); font-size: 18px; font-stretch: 105%; }
.js:not(.reduce) .beat-steps li { opacity: 0.38; }
.js:not(.reduce) .beat[data-step="0"] li[data-i="0"], .js:not(.reduce) .beat[data-step="1"] li[data-i="1"],
.js:not(.reduce) .beat[data-step="2"] li[data-i="2"], .js:not(.reduce) .beat[data-step="3"] li[data-i="3"] { opacity: 1; color: var(--paper); border-color: var(--lime); }

.beat-view { display: grid; place-items: center end; }
.macro {
  position: relative; container-type: inline-size; width: min(100%, 680px); aspect-ratio: 5 / 4; --u: 2.7cqw;
  border-radius: 28px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 10px #0c0a10, 0 0 0 11px rgba(255, 255, 255, 0.14), 0 40px 100px -20px rgba(0, 0, 0, 0.7);
  transform: scale(calc(0.92 + var(--p, 0) * 0.1));
}
.macro-wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0.55; transform: scale(1.3); transition: opacity 0.8s, filter 0.8s; }
.beat[data-step="3"] .macro-wall { opacity: 0.85; }
.chip { position: absolute; z-index: 6; padding: 0.5em 1em; border-radius: 99px; font-size: clamp(13px, 3.1cqw, 18px); font-weight: 700; white-space: nowrap; background: rgba(255, 255, 255, 0.92); color: var(--dark-text); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(14px) scale(0.9); transition: opacity 0.35s, transform 0.5s var(--spring); }
.chip-a { left: 6%; top: 40%; }
.chip-b { right: 6%; top: 44%; background: var(--lime); }
.chip-c { left: 10%; top: 60%; background: var(--pink); color: #fff; }
.chip-d { left: 50%; top: 60%; translate: -50% 0; background: var(--green); color: #052310; }
.macro-pw { opacity: 0; transition: opacity 0.3s; position: absolute; left: 50%; top: 74%; translate: -50% 0; display: flex; gap: calc(0.55 * var(--u)); padding: calc(0.9 * var(--u)) calc(1.6 * var(--u)); border-radius: 99px; background: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.macro-pw i { width: calc(0.9 * var(--u)); height: calc(0.9 * var(--u)); }
.beat[data-step="1"] .chip-a, .beat[data-step="2"] .chip-b, .beat[data-step="2"] .chip-c, .beat[data-step="3"] .chip-d { opacity: 1; transform: none; }
.beat[data-step="2"] .chip-c { transition-delay: 0.12s; }
.beat[data-step="3"] .macro-pw { opacity: 1; }
.beat[data-step="3"] .macro-pw i { transform: scale(1); }
.macro-pw i:nth-child(n) { transition-delay: calc(var(--n, 0) * 30ms); }
.macro-pw i:nth-child(2) { --n: 1; } .macro-pw i:nth-child(3) { --n: 2; } .macro-pw i:nth-child(4) { --n: 3; } .macro-pw i:nth-child(5) { --n: 4; }
.macro-pw i:nth-child(6) { --n: 5; } .macro-pw i:nth-child(7) { --n: 6; } .macro-pw i:nth-child(8) { --n: 7; } .macro-pw i:nth-child(9) { --n: 8; } .macro-pw i:nth-child(10) { --n: 9; }

/* ---------- Setup toy ---------- */
.setup {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 56px;
  padding: 140px max(var(--gutter), calc((100% - var(--max)) / 2));
}
.setup::before { content: ""; position: absolute; z-index: -1; right: -10%; top: 10%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgba(123, 92, 255, 0.28), transparent); }
.setup h2 { font-size: clamp(48px, 6.4vw, 96px); }
.setup-copy > p:not(.eyebrow) { margin-top: 22px; color: var(--mute); font-size: 19px; max-width: 470px; }
.setup-copy .setup-try { color: var(--paper); font-weight: 700; }
.only-coarse { display: none; }
@media (pointer: coarse) { .only-coarse { display: inline; } .only-fine { display: none; } }
.toy { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.toy-ring { position: relative; container-type: inline-size; width: min(540px, 100%); aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: crosshair; }
.ticks i {
  --hue: calc(var(--i) * 15deg + 250deg);
  position: absolute; left: 50%; top: 50%; width: 2.3cqw; height: 9.5cqw; margin: -4.75cqw 0 0 -1.15cqw; border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(calc(var(--i) * 15deg)) translateY(-41cqw);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.45s var(--spring);
}
.ticks i.on { background: oklch(0.8 0.2 var(--hue)); box-shadow: 0 0 2.4cqw oklch(0.75 0.22 var(--hue) / 0.75); transform: rotate(calc(var(--i) * 15deg)) translateY(-43cqw) scaleY(1.14); }
.toy-ring.done .ticks i { background: var(--green); box-shadow: 0 0 2.4cqw rgba(52, 199, 89, 0.7); }
.toy-face { position: absolute; inset: 22%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, #2b2540, #0f0c18 75%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); display: grid; place-items: center; }
.toy-head { width: 86%; height: 86%; }
.h-skull { fill: #e9e3ff; opacity: 0.08; }
.h-features { transform: translate(var(--fx, 0px), var(--fy, 0px)); transition: transform 0.25s var(--out); fill: none; stroke: #f6f3ff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.h-eye { fill: #f6f3ff; stroke: none; }
.toy-done { position: absolute; width: 46%; height: 46%; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.5s var(--out) 0.15s; }
.toy-ring.done .toy-head { opacity: 0; transform: scale(0.8); }
.toy-head { transition: opacity 0.3s, transform 0.4s var(--out); }
.toy-ring.done .toy-done { stroke-dashoffset: 0; }
.toy-meta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.toy-count { font-size: 18px; color: var(--mute); font-variant-numeric: tabular-nums; }
.toy-count b { font-size: 32px; color: var(--paper); font-stretch: 115%; }
.toy-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
html:not(.js) .toy-meta, html:not(.js) .setup-try { display: none; }

/* ---------- Inside: the bento ---------- */
.inside { padding: 40px max(var(--gutter), calc((100% - var(--max)) / 2)) 40px; }
.inside-head { margin-bottom: 40px; }
.inside h2 { font-size: clamp(44px, 6vw, 88px); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; overflow: hidden; border-radius: 30px; padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 360px; transition: transform 0.5s var(--spring); }
.card:hover { transform: translateY(-4px) rotate(-0.4deg); }
.card h3 { margin-top: auto; }
.card > p { font-size: 16px; opacity: 0.85; max-width: 46ch; }
.card a { font-weight: 700; }
.c-spoof { grid-column: span 3; background: linear-gradient(150deg, #ff9a52, #ff4f8b); color: var(--dark-text); }
.c-levels { grid-column: span 3; background: linear-gradient(150deg, #8d6bff, #5232ff); }
.c-private { grid-column: span 3; background: linear-gradient(160deg, #1c4cff, #0b1d6b); }
.c-wake { grid-column: span 3; background: linear-gradient(150deg, #e4ff6a, #79f58b); color: var(--dark-text); }
.c-fallback { grid-column: span 6; min-height: 0; flex-direction: row; align-items: center; gap: 32px; background: var(--ink-3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.c-fallback h3 { margin-top: 0; }
.c-fallback > p { margin-left: auto; }
.btn-card { align-self: flex-start; margin-top: 8px; background: var(--dark-text); color: #fff; }
.btn-card:hover { box-shadow: 0 10px 30px -10px rgba(20, 9, 26, 0.7); }

/* spoof */
.spoof-ui { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.spoof-frame { position: relative; width: 150px; aspect-ratio: 1; border-radius: 24px; background: rgba(20, 9, 26, 0.88); display: grid; place-items: center; overflow: hidden; flex: none; }
.spoof-frame svg { width: 100%; height: 100%; }
.spoof-live, .spoof-photo { grid-area: 1 / 1; width: 78%; transition: opacity 0.35s, transform 0.5s var(--spring); }
.spoof-live circle { fill: rgba(255, 255, 255, 0.08); }
.spoof-live ellipse { fill: #fff; animation: blink 3.2s infinite; transform-origin: 50% 55%; transform-box: fill-box; }
.spoof-frame path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
.spoof-photo { background: #f3eee4; border-radius: 6px; padding: 8px 8px 22px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(60%) rotate(14deg); }
.spoof-photo circle { fill: #c9b9a6; }
.spoof-photo ellipse { fill: #3c2d22; }
.spoof-photo path { stroke: #3c2d22 !important; }
.spoof-corner { position: absolute; inset: 12px; border-radius: 16px; border: 2px dashed rgba(52, 199, 89, 0.9); transition: border-color 0.3s; animation: pulse-frame 1.6s ease-in-out infinite; }
@keyframes pulse-frame { 50% { transform: scale(0.96); } }
.spoof-verdict { font-weight: 800; font-size: 20px; font-stretch: 108%; line-height: 1.2; }
.spoof-verdict span { display: inline-flex; align-items: center; gap: 8px; }
.spoof-verdict span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.25); }
.v-photo { display: none !important; }
.v-photo::before { background: #e5162f !important; box-shadow: 0 0 0 4px rgba(229, 22, 47, 0.25) !important; }
[data-spoof="photo"] .spoof-live { opacity: 0.15; transform: scale(0.9); }
[data-spoof="photo"] .spoof-photo { opacity: 1; transform: rotate(-6deg); }
[data-spoof="photo"] .spoof-corner { border-color: #e5162f; }
[data-spoof="photo"] .v-live { display: none !important; }
[data-spoof="photo"] .v-photo { display: inline-flex !important; animation: shake 0.45s; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* levels */
.levels-ui { display: inline-flex; align-self: flex-start; padding: 5px; border-radius: 99px; background: rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.levels-ui button { font: inherit; font-weight: 700; font-size: 15px; color: rgba(255, 255, 255, 0.78); background: none; border: 0; border-radius: 99px; padding: 9px 16px; cursor: pointer; transition: background-color 0.25s, color 0.25s, transform 0.3s var(--spring); }
.levels-ui button:hover { color: #fff; }
.levels-ui button:active { transform: scale(0.94); }
.levels-ui button[aria-checked="true"] { background: #fff; color: #3a1fd1; }
.levels-anim { position: relative; flex: 1; min-height: 150px; display: grid; place-items: center; }
.la-face { width: 150px; height: 150px; transition: transform 0.6s var(--out); }
.la-face circle { fill: rgba(255, 255, 255, 0.12); stroke: #fff; stroke-width: 2.5; }
.la-face ellipse { fill: #fff; }
.la-face path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.la-eyes { transform-origin: 50% 55%; transform-box: fill-box; }
.la-arrow { position: absolute; width: 48px; height: 48px; left: calc(50% + 86px); fill: none; stroke: var(--lime); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.3s; }
[data-level="standard"] .la-face { animation: scan-glow 2s ease-in-out infinite; }
@keyframes scan-glow { 50% { transform: scale(1.05); } }
[data-level="strong"] .la-eyes { animation: blink2 1.6s infinite; }
[data-level="strong"] .la-face { animation: nod 3.2s ease-in-out infinite; }
@keyframes blink2 { 0%, 70%, 100% { transform: scaleY(1); } 80% { transform: scaleY(0.08); } }
@keyframes nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
[data-level="strict"] .la-face { animation: turn 2.4s var(--inout) infinite; }
[data-level="strict"] .la-arrow { opacity: 1; animation: arrow 2.4s var(--inout) infinite; }
@keyframes turn { 0%, 15% { transform: none; } 45%, 70% { transform: translateX(16px) rotateY(35deg); } 100% { transform: none; } }
@keyframes arrow { 0%, 15% { transform: translateX(-8px); opacity: 0.2; } 45%, 70% { transform: translateX(6px); opacity: 1; } 100% { transform: translateX(-8px); opacity: 0.2; } }

/* private: 128 numbers */
.numbers { display: grid; grid-template-columns: repeat(16, 1fr); gap: 5px; margin-bottom: 18px; }
.numbers i { aspect-ratio: 1; border-radius: 3px; background: #9fd0ff; opacity: 0.2; animation: twinkle 3s ease-in-out infinite; animation-delay: calc(mod(var(--i) * 37, 29) * -0.11s); }
@keyframes twinkle { 50% { opacity: 0.95; background: #fff; } }

/* wake */
.keys { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 18px; }
.key { display: grid; place-items: center; min-width: 52px; height: 52px; padding: 0 12px; border-radius: 12px; background: #fff; color: var(--dark-text); font-weight: 700; box-shadow: 0 5px 0 rgba(20, 9, 26, 0.35); animation: press 3s infinite; }
.key:nth-child(2) { animation-delay: 0.4s; } .key:nth-child(3) { animation-delay: 0.8s; } .k-space { min-width: 96px; animation-delay: 1.2s; }
.k-esc { font-size: 14px; }
@keyframes press { 0%, 14%, 100% { transform: none; box-shadow: 0 5px 0 rgba(20, 9, 26, 0.35); } 6% { transform: translateY(4px); box-shadow: 0 1px 0 rgba(20, 9, 26, 0.35); } }
.mouse { position: relative; width: 40px; height: 62px; border-radius: 20px; background: #fff; box-shadow: 0 5px 0 rgba(20, 9, 26, 0.35); animation: glide 3s var(--inout) infinite; }
.mouse i { position: absolute; left: 50%; top: 10px; width: 3px; height: 12px; margin-left: -1.5px; border-radius: 3px; background: rgba(20, 9, 26, 0.4); }
@keyframes glide { 0%, 40%, 100% { transform: none; } 60% { transform: translateX(14px) rotate(6deg); } 80% { transform: translateX(-6px); } }


/* fallback */
.fallback-ui { display: flex; align-items: center; gap: 16px; flex: none; }
.fb-notch { display: grid; place-items: center; width: 92px; height: 32px; border-radius: 0 0 14px 14px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); animation: look-again 2.6s ease-in-out infinite; }
.fb-notch svg { width: 16px; height: 16px; color: #fff; }
.fb-notch rect { fill: currentColor; } .fb-notch path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
@keyframes look-again { 50% { width: 120px; } }
.fb-pw { padding: 9px 22px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); color: var(--mute); font-size: 14px; white-space: nowrap; }

/* ---------- Price ---------- */
.price { padding: 60px max(var(--gutter), calc((100% - var(--max)) / 2)) 110px; }
.price-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 40px; align-items: end;
  padding: clamp(28px, 5vw, 64px); border-radius: 40px; color: var(--dark-text);
  background:
    radial-gradient(60% 90% at 90% 10%, #8cffb0 0%, transparent 60%),
    radial-gradient(70% 90% at 10% 100%, #4cc6ff 0%, transparent 60%),
    linear-gradient(130deg, #d4ff4e, #34c759);
}
.price-card .eyebrow { color: var(--dark-text); }
.price-n { font-size: clamp(110px, 17vw, 240px); font-stretch: 125%; letter-spacing: -0.06em; line-height: 0.82; }
.price-n span { font-size: 0.22em; letter-spacing: -0.01em; margin-left: 0.15em; font-stretch: 110%; }
.price-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 8px; font-size: 18px; font-weight: 600; }
.price-list li { display: flex; gap: 10px; align-items: baseline; }
.price-list li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--dark-text); transform: translateY(-1px); }
.price-right { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.btn-buy { min-height: 68px; font-size: 21px; background: var(--dark-text); color: #fff; }
.btn-buy:hover { box-shadow: 0 16px 40px -12px rgba(20, 9, 26, 0.8); }
.price-link { text-align: center; font-weight: 700; text-underline-offset: 4px; }
.price-note { text-align: center; font-size: 15px; }
.price-note a { font-weight: 700; }
.honest { margin: 22px auto 0; max-width: 760px; text-align: center; color: var(--mute); font-size: 15px; }
.honest a { color: var(--paper); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { padding: 40px max(var(--gutter), calc((100% - 880px) / 2)) 120px; }
.faq h2 { font-size: clamp(44px, 6vw, 88px); margin-bottom: 36px; }
.qs { display: grid; gap: 10px; }
.q { border-radius: 22px; background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); transition: background-color 0.3s; interpolate-size: allow-keywords; }
.q[open] { background: var(--ink-3); }
.q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; font-size: 20px; font-weight: 700; font-stretch: 105%; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat, rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--spring), background-color 0.3s, color 0.3s; }
.q[open] summary::after { background-color: var(--lime); color: var(--dark-text); transform: rotate(135deg); }
.q:not([open]) summary:hover::after { transform: scale(1.12); }
.q .a { padding: 0 24px 24px; color: var(--mute); max-width: 72ch; }
.q .a a { color: var(--paper); font-weight: 600; }
.q::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--out), content-visibility 0.45s allow-discrete; }
.q[open]::details-content { block-size: auto; }

/* ---------- Footer ---------- */
.foot { padding: 40px var(--gutter) 36px; overflow: hidden; }
.foot-word { font-size: clamp(48px, 14.2vw, 250px); font-weight: 900; font-stretch: 115%; letter-spacing: -0.06em; line-height: 0.8; text-align: center; white-space: nowrap;
  background: linear-gradient(100deg, var(--violet), var(--pink) 35%, var(--coral) 60%, var(--lime));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-row { max-width: var(--max); margin: 40px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; font-size: 15px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-row a { color: var(--mute); text-decoration: none; }
.foot-row a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { color: var(--mute); }

/* ---------- Entrances (only once the script has run) ---------- */
.js .mask > span { transform: translateY(110%); transition: transform 1s var(--out); }
.js .mask:nth-child(2) > span { transition-delay: 0.12s; }
.js.is-loaded .mask > span { transform: none; }
.js .hero-say, .js .hero-controls { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--out) 0.3s, transform 0.8s var(--out) 0.3s; }
.js .hero-controls { transition-delay: 0.4s; }
.js.is-loaded .hero-say, .js.is-loaded .hero-controls { opacity: 1; transform: none; }
.js .stage-wrap { opacity: 0; transform: translateY(60px) rotateX(18deg); transition: opacity 1s var(--out) 0.45s, transform 1.4s var(--out) 0.45s; transform-origin: 50% 100%; }
.js.is-loaded .stage-wrap { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(40px) scale(0.98); transition: opacity 0.8s var(--out) var(--d, 0ms), transform 0.9s var(--out) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover { transform: translateY(-4px) rotate(-0.4deg); transition: transform 0.5s var(--spring); }

/* ---------- Medium ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .scene-stage { grid-template-columns: 1fr; gap: 24px; align-content: center; }
  .js:not(.reduce) .scene-stage { padding-top: 84px; padding-bottom: 24px; }
  .beat-view { order: -1; place-items: center; }
  .macro { width: min(100%, 560px); aspect-ratio: 16 / 10; }
  .beat-clock { font-size: clamp(64px, 12vw, 120px); margin: 6px 0 12px; }
  .js:not(.reduce) .beat-steps li { display: none; }
  .js:not(.reduce) .beat[data-step="0"] li[data-i="0"], .js:not(.reduce) .beat[data-step="1"] li[data-i="1"],
  .js:not(.reduce) .beat[data-step="2"] li[data-i="2"], .js:not(.reduce) .beat[data-step="3"] li[data-i="3"] { display: block; animation: step-in 0.5s var(--out); }
  .beat-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .beat-clock { justify-content: center; }
  .beat-steps { text-align: left; }
  .setup { grid-template-columns: 1fr; gap: 40px; padding-top: 110px; padding-bottom: 110px; }
  .setup-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .c-spoof, .c-levels { grid-column: span 6; }
  .price-card { grid-template-columns: 1fr; }
}
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { top: 10px; padding: 6px 6px 6px 14px; }
  .hero { padding-top: 104px; padding-bottom: 56px; }
  .hero-title { flex-direction: column; align-items: center; }
  .hero-say { margin-top: 16px; }
  /* The phone shows a close crop of the lid: the notch, the clock and the user, big. */
  .stage-wrap { width: calc(100% + 2 * var(--gutter)); margin: 36px calc(-1 * var(--gutter)) 0; overflow: hidden; aspect-ratio: 4 / 4.4; perspective: none;
    -webkit-mask: linear-gradient(180deg, #000 82%, transparent); mask: linear-gradient(180deg, #000 82%, transparent); }
  .mac { width: 182%; left: -41%; }
  .lid { border-radius: 2% / 3.2%; }
  .base { display: none; }
  .hero-controls { margin-top: 24px; }
  .hint { font-size: 13px; }
  .btn-look { width: 100%; }
  .hero-controls { flex-wrap: wrap; }
  .hint { width: auto; flex: 1 1 0; text-align: left; }
  .key { min-width: 44px; height: 44px; }
  .k-space { min-width: 84px; }
  .mouse { width: 34px; height: 52px; }
  .scene-stage { gap: 16px; }
  .macro { aspect-ratio: 1 / 0.86; border-radius: 22px; --u: 2.9cqw; }
  .beat-kicker { font-size: 26px; }
  .beat-steps strong { font-size: 18px; }
  .beat-steps li { font-size: 15px; }
  .chip-a { left: 4%; } .chip-b { right: 4%; } .chip-c { left: 4%; }
  .setup h2 { font-size: 52px; }
  .card { padding: 22px; min-height: 0; border-radius: 26px; }
  .c-private, .c-wake { grid-column: span 6; }
  .c-fallback { flex-direction: column; align-items: flex-start; gap: 14px; }
  .c-fallback > p { margin-left: 0; }
  .spoof-frame { width: 116px; }
  .spoof-verdict { font-size: 17px; }
  .price-card { border-radius: 30px; gap: 28px; }
  .price-list { font-size: 16px; }
  .q summary { font-size: 18px; padding: 18px 18px; }
  .q .a { padding: 0 18px 20px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion: a still page with the same content ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .aurora i { animation: none !important; }
  .ring { animation: none !important; }
}
