/* landing.css - BirdBeat landing page, Memphis edition.
   One deliberate dark look, like the app: an instrument at night, lit by 80s Memphis shapes.
   Colours are the app's signal colours (css/07-semantics.css): magenta = set/selected,
   red = recording, green = running, plus the eight pad colours. */

@font-face { font-family: 'Bungee'; src: url('fonts/bungee-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('fonts/rubik-variable.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('fonts/space-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('fonts/space-mono-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
    color-scheme: dark;
    --ground: #14111a;
    --panel: #1f1a27;
    --panel-2: #2a2433;
    --line: #3b3447;
    --ink: #f2eef7;
    --muted: #a39cb0;
    --lcd: #050507;
    --on: #c9197d;
    --on-text: #e0479b;
    --rec: #e8322b;
    --run: #00ff9c;
    --c0: #f5c400; --c1: #1fb5ad; --c2: #6f7dff; --c3: #ff7a59;
    --c4: #b39ddb; --c5: #4fc3f7; --c6: #ffb38a; --c7: #c0ca33;
    --mono: 'Space Mono', 'Courier New', monospace;
    --display: 'Bungee', 'Arial Black', Impact, sans-serif;
    --body: 'Rubik', 'Helvetica Neue', Arial, sans-serif;
    --gutter: 16px;
    --top-h: 64px;
}

* { box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
    margin: 0;
    -webkit-text-size-adjust: 100%;
    background-color: var(--ground);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(242, 238, 247, .07) 1.2px, transparent 1.6px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg opacity='.13'%3E%3Cpath d='M20 40 q10 -14 20 0 t20 0 t20 0' fill='none' stroke='%23c9197d' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M230 70 l18 30 h-36z' fill='none' stroke='%23f5c400' stroke-width='4' stroke-linejoin='round'/%3E%3Ccircle cx='70' cy='250' r='10' fill='%231fb5ad'/%3E%3Crect x='240' y='230' width='34' height='10' rx='2' fill='%236f7dff' transform='rotate(-24 257 235)'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 22px 22px, 320px 320px;
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c0); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--c0); color: var(--ground); padding: 8px 14px; font-weight: 700; border-radius: 8px; }
.skip:focus { top: 12px; }

main > section { max-width: 1160px; margin: 0 auto; padding: 72px var(--gutter); }

/* ---------- Header ---------- */
.top {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 18px;
    min-height: var(--top-h);
    padding: env(safe-area-inset-top, 0px) max(var(--gutter), calc((100vw - 1160px) / 2 + var(--gutter))) 0;
    background: rgba(20, 17, 26, .86);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--ink);
}
.top::after {
    /* Zigzag under the header, the app's edge */
    content: ''; position: absolute; left: 0; right: 0; bottom: -11px; height: 8px;
    background: linear-gradient(135deg, var(--on) 33%, transparent 33%) 0 0 / 16px 8px, linear-gradient(225deg, var(--on) 33%, transparent 33%) 0 0 / 16px 8px;
    opacity: .9;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 20px; letter-spacing: .5px; }
.brand b { font-weight: 400; color: var(--c0); }
.brand-bird { width: 36px; height: 36px; image-rendering: pixelated; }
.top nav { display: flex; gap: 18px; margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.top nav a { text-decoration: none; color: var(--muted); padding: 6px 0; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .top nav { display: none; } .top .key-small { margin-left: auto; } }

/* ---------- Keys (buttons) ---------- */
.key {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 12px 22px;
    font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
    text-decoration: none; color: var(--ink); background: var(--panel);
    border: 3px solid var(--ink); border-radius: 14px;
    box-shadow: 5px 5px 0 var(--c1);
    transition: transform 90ms ease-out, box-shadow 90ms ease-out;
    cursor: pointer;
}
.key:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--c1); }
.key:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--c1); }
.key-on { background: var(--on); box-shadow: 5px 5px 0 var(--c0); }
.key-on:hover { box-shadow: 7px 7px 0 var(--c0); }
.key-on:active { box-shadow: 1px 1px 0 var(--c0); }
.key-small { min-height: 42px; padding: 8px 14px; font-size: 12px; box-shadow: 4px 4px 0 var(--c0); }
.key.is-taken { visibility: hidden; }

/* ---------- Type ---------- */
.eyebrow { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--on-text); }
h2 {
    margin: 0; font-family: var(--display); font-weight: 400;
    font-size: clamp(28px, 5vw, 46px); line-height: 1.08; letter-spacing: .5px;
    text-wrap: balance;
}
h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
.section-head { display: grid; gap: 4px; margin-bottom: 36px; max-width: 760px; }
.section-lead { margin-top: 14px; color: var(--muted); max-width: 62ch; }
.section-lead a, .privacy a { color: var(--c0); }
[data-perch] { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 48px; align-items: center; padding-top: 48px !important; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.15fr .85fr; padding-top: 72px !important; } }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.wordmark {
    margin: 0; font-family: var(--display); font-weight: 400;
    font-size: clamp(66px, 17vw, 158px); line-height: .9; letter-spacing: 1px;
    display: grid; user-select: none; -webkit-user-select: none;
}
.wm-row { display: flex; }
.wm-beat { padding-left: .55em; }
.pl {
    display: inline-block; cursor: pointer; touch-action: manipulation;
    color: var(--pc, var(--ink)); text-shadow: .045em .045em 0 var(--on);
    transform-origin: 50% 100%;
    -webkit-tap-highlight-color: transparent;
}
.wm-row .pl:nth-child(1) { --pc: var(--c0); }
.wm-row .pl:nth-child(2) { --pc: var(--c1); }
.wm-row .pl:nth-child(3) { --pc: var(--c2); }
.wm-row .pl:nth-child(4) { --pc: var(--c3); }
.wm-beat .pl:nth-child(1) { --pc: var(--c4); }
.wm-beat .pl:nth-child(2) { --pc: var(--c5); }
.wm-beat .pl:nth-child(3) { --pc: var(--c6); }
.wm-beat .pl:nth-child(4) { --pc: var(--c7); }
.pl.hit { animation: pl-hit .32s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pl-hit { 0% { transform: scale(1, 1); } 30% { transform: scale(1.18, .8) translateY(6%); } 60% { transform: scale(.92, 1.12) translateY(-10%); } 100% { transform: none; } }
.pl.idle-wave { animation: pl-wave 1.2s ease-in-out; }
@keyframes pl-wave { 0%, 100% { transform: none; } 40% { transform: translateY(-12%) rotate(-4deg); } }
.tagline { font-family: var(--display); font-size: clamp(20px, 3.4vw, 30px); line-height: 1.15; color: var(--ink); }
.tagline [data-perch] { color: var(--c0); }
.lead { color: var(--muted); max-width: 54ch; font-size: 17px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px 18px; margin-top: 6px; }
.hint-letters { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); }

/* ---------- Phone mock: the app playing itself (mock.js) ----------
   The screen is the app's phone layout (css/09-phone.css) at 390 x 844 CSS px, with the same class names and
   values, scaled into the frame (--k = frame width / 390). Keep it in step when the phone UI changes.
   Colours are the app's dark tokens (css/00-tokens.css), not the page's: neutral chrome, colourful content. */
.mock-wrap { margin: 0; display: grid; justify-items: center; gap: 14px; }
.mock-wrap figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 1px; text-align: center; }
.mock {
    --k: .754;
    --safe-top: 14px; --safe-bottom: 8px; /* room for the frame's round corners */
    --bg-main: #121212; --bg-card: #1c1c1e; --bg-card-hover: #2c2c2e;
    --fg-primary: #f2f2f7; --fg-secondary: #aeaeb2; --border-color: #38383a;
    --c-on: #c9197d; --c-on-text: #e0479b; --c-rec: #e8322b; --c-run: #00ff9c; --c-play: #22c55e;
    --pad-c0: #f5c400; --pad-c1: #1fb5ad; --pad-c2: #6f7dff; --pad-c3: #ff7a59;
    --pad-c4: #b39ddb; --pad-c5: #4fc3f7; --pad-c6: #ffb38a; --pad-c7: #c0ca33;
    position: relative; box-sizing: content-box;
    width: min(294px, calc(100% - 6px)); aspect-ratio: 390 / 844;
    background: var(--bg-main);
    border: 3px solid var(--ink); border-radius: 30px;
    box-shadow: 10px 10px 0 var(--on), 10px 10px 0 3px var(--ink);
    overflow: hidden;
    transform: rotate(2.5deg);
}
.mock-screen {
    position: absolute; left: 0; top: 0; width: 390px; height: 844px;
    transform: scale(var(--k)); transform-origin: 0 0;
    display: flex; flex-direction: column;
    background: var(--bg-main); color: var(--fg-primary);
    font-family: 'Space Mono', 'Courier New', monospace; font-size: 16px; line-height: normal;
    transition: opacity .3s;
    -webkit-user-select: none; user-select: none;
}
.mock-screen.fade { opacity: 0; }
.mock [hidden] { display: none !important; }

/* Header: LCD (bird, tempo, status line), REC, PLAY, UNDO */
.mock .m-head { display: flex; align-items: stretch; gap: 8px; padding: calc(10px + var(--safe-top)) 12px 8px; flex-shrink: 0; }
.mock .m-lcd {
    flex: 1; min-width: 0;
    display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; row-gap: 4px;
    padding: 6px 10px; background: #000; border: 2px solid var(--fg-primary); border-radius: 8px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .8); color: var(--c-run);
}
.mock .m-bird { grid-column: 1; grid-row: 1; width: 44px; height: 44px; image-rendering: pixelated; transform-origin: 50% 90%; }
.mock .m-bird.hop { animation: m-hop .22s ease-out; }
@keyframes m-hop { 40% { transform: translateY(-5px) scaleY(1.06); } }
.mock .m-bpm { grid-column: 3; grid-row: 1; display: flex; align-items: baseline; gap: 3px; }
.mock .m-bpm b { font: 900 26px/1 -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif; }
.mock .m-bpm small { font-size: 11px; letter-spacing: 2px; }
.mock .m-status {
    grid-column: 1 / -1; grid-row: 2; padding-top: 4px; border-top: 1px dashed rgba(0, 255, 156, .25);
    font-size: 10px; font-weight: 700; letter-spacing: 1px; line-height: 1.3; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock .m-hb {
    display: grid; place-items: center; width: 58px; border: 2px solid; border-radius: 10px;
    background: linear-gradient(#2a2a2e, #1c1c1e); font: 700 11px Arial, sans-serif; letter-spacing: 1px;
    transition: background .12s, color .12s, transform .09s, box-shadow .09s;
}
.mock .m-rec { color: var(--c-rec); border-color: var(--c-rec); box-shadow: 3px 3px 0 var(--c-rec); }
.mock .m-rec.on { background: var(--c-rec); color: #fff; }
.mock .m-play { color: var(--c-play); border-color: var(--c-play); box-shadow: 3px 3px 0 var(--c-play); }
.mock .m-play.on { background: var(--c-play); color: #000; }
.mock .m-undo { width: 44px; background: var(--bg-card); border-color: var(--c-on); color: var(--c-on); box-shadow: 3px 3px 0 #f5c400; }
.mock .m-undo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mock .m-hb.m-press { transform: translate(2px, 2px); box-shadow: 1px 1px 0 currentColor; }
.mock .m-zig {
    height: 8px; flex-shrink: 0; opacity: .9;
    background: linear-gradient(135deg, var(--c-on) 25%, transparent 25%) -4px 0 / 8px 8px, linear-gradient(225deg, #f5c400 25%, transparent 25%) -4px 0 / 8px 8px;
}

/* Views */
.mock .m-views { position: relative; flex: 1; min-height: 0; }
.mock .pv { position: absolute; inset: 0; display: none; flex-direction: column; gap: 10px; padding: 12px 12px 10px; overflow: hidden; }
.mock .pv.active { display: flex; }
.mock .pv.enter { animation: m-enter .28s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes m-enter { from { opacity: 0; transform: translateX(22px) rotate(1.5deg); } to { opacity: 1; transform: none; } }
.mock .p-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--fg-secondary); text-transform: uppercase; }
.mock .p-empty { font-size: 12px; color: var(--fg-secondary); }
.mock .p-link { display: grid; place-items: center; min-height: 44px; flex-shrink: 0; color: var(--c-on-text); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-decoration: underline; text-underline-offset: 4px; }
.mock .p-magic {
    display: grid; place-items: center; min-height: 52px; padding: 0 18px; flex-shrink: 0;
    border: 3px solid var(--fg-primary); border-radius: 14px; background: var(--c-on); color: #fff;
    font-size: 14px; font-weight: 700; letter-spacing: .5px; box-shadow: 4px 4px 0 #f5c400;
}
.mock .p-mini { display: grid; place-items: center; min-height: 40px; min-width: 44px; padding: 0 10px; border-radius: 8px; border: 2px solid var(--border-color); background: var(--bg-card); font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.mock .p-mini.danger { color: var(--c-rec); }
.mock .bb-pop { animation: m-pop .22s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes m-pop { 0% { transform: scale(.82, 1.12); } 60% { transform: scale(1.08, .92); } 100% { transform: none; } }
.mock .bb-land { animation: m-land .35s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes m-land { 0% { transform: translateY(-10px) scale(1.15); } 100% { transform: none; } }
.mock .bb-bump { animation: m-bump .16s ease-out; }
@keyframes m-bump { 0% { transform: scale(1.1); } 100% { transform: none; } }

/* REC: microphone pill, level bars, the big button, the growing trace, last recordings */
.mock .pr-stage { flex: 1 0 auto; display: grid; place-items: center; align-content: center; gap: 16px; }
.mock .pr-mic {
    display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px;
    border-radius: 999px; border: 2px solid var(--border-color); background: var(--bg-card);
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--fg-secondary);
}
.mock .pr-mic-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-color); }
.mock .pr-mic.opening { border-color: #f5c400; color: #f5c400; }
.mock .pr-mic.opening .pr-mic-dot { background: #f5c400; animation: m-blink .5s steps(2) infinite; }
.mock .pr-mic.recording { border-color: var(--c-rec); background: var(--c-rec); color: #fff; }
.mock .pr-mic.recording .pr-mic-dot { background: #fff; animation: m-blink 1s steps(2) infinite; }
.mock .pr-mic.processing { border-color: var(--fg-primary); color: var(--fg-primary); }
@keyframes m-blink { 50% { opacity: .2; } }
.mock .pr-time { font-variant-numeric: tabular-nums; }
.mock .pr-meter { display: flex; gap: 5px; align-items: flex-end; height: 64px; }
.mock .pr-meter i { width: 12px; height: 64px; border-radius: 3px; background: var(--bg-card-hover); transform-origin: bottom; transform: scaleY(var(--h, .08)); transition: transform .07s; }
.mock .pr-big {
    display: grid; place-items: center; width: 168px; height: 168px; box-sizing: border-box;
    border: 4px solid var(--fg-primary); border-radius: 50%; background: var(--bg-card); box-shadow: 6px 6px 0 var(--fg-primary);
}
.mock .pr-dot { width: 76px; height: 76px; border-radius: 50%; background: var(--c-rec); transition: transform .15s, border-radius .15s; }
.mock .pr-big.opening { border-color: #f5c400; box-shadow: 0 0 0 8px rgba(245, 196, 0, .25), 6px 6px 0 var(--fg-primary); }
.mock .pr-big.opening .pr-dot { transform: scale(.8); opacity: .7; }
.mock .pr-big.live { border-color: var(--c-rec); animation: m-breathe .5s ease-in-out infinite alternate; box-shadow: 0 0 0 calc(6px + var(--lv, 0) * 26px) rgba(232, 50, 43, .3), 6px 6px 0 var(--fg-primary); }
.mock .pr-big.live .pr-dot { transform: scale(calc(1 + var(--lv, 0) * .35)); border-radius: 30%; }
@keyframes m-breathe { to { transform: scale(1.04); } }
.mock .pr-under { display: grid; place-items: center; width: 100%; min-height: 56px; }
.mock .pr-under > * { grid-area: 1 / 1; }
.mock .pr-scope { width: 320px; height: 56px; opacity: 0; transition: opacity .2s; }
.mock .pr-hint { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--fg-secondary); text-align: center; transition: opacity .2s; }
.mock .pr-hint b { color: var(--c-on-text); }
.mock .pv.recording .pr-scope { opacity: 1; }
.mock .pv.recording .pr-hint { opacity: 0; }
.mock .pr-magic { min-width: 260px; }
.mock .pr-recent { display: grid; gap: 6px; }
.mock .pr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center; }
.mock .pr-name {
    display: flex; align-items: center; gap: 4px; min-width: 0; min-height: 44px; padding: 0 10px;
    border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card);
    font-size: 11px; letter-spacing: .5px; white-space: nowrap;
}
.mock .pr-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mock .pr-len { color: var(--fg-secondary); font-variant-numeric: tabular-nums; }

/* EDIT: the waveform with its slice markers, the tools, the slice pads */
.mock .pe-title { color: var(--fg-primary); }
.mock .pe-wave { position: relative; display: grid; gap: 10px; }
.mock .pe-canvas { display: block; width: 100%; height: 190px; box-sizing: border-box; border: 2px solid var(--fg-primary); border-radius: 10px; background: #1c1c1e; }
.mock .pe-marks { position: absolute; left: 2px; top: 2px; right: 2px; height: 186px; overflow: hidden; border-radius: 8px; }
.mock .pe-mark { position: absolute; top: 0; bottom: 0; transform-origin: 50% 100%; }
.mock .pe-mark::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--tc); box-shadow: 1px 0 0 rgba(0, 0, 0, .45); transform-origin: 50% 0; }
.mock .pe-mark::after { content: ''; position: absolute; left: 0; right: 2px; bottom: 0; height: 5px; border-radius: 0 3px 0 0; background: var(--tc); opacity: .85; transform-origin: 0 50%; }
.mock .pe-mark b { position: absolute; top: 4px; left: 4px; min-width: 18px; padding: 1px 4px; border-radius: 4px; background: var(--tc); color: #120f16; font-size: 9px; line-height: 1.35; text-align: center; box-shadow: 1px 1px 0 rgba(0, 0, 0, .5); transform-origin: 0 0; }
.mock .pe-mark.low b { top: auto; bottom: 10px; }
.mock .pe-mark.fresh::before { animation: m-grow .18s ease-out var(--d) backwards; }
.mock .pe-mark.fresh::after { animation: m-bar .32s ease-out var(--d) backwards; }
.mock .pe-mark.fresh b { animation: m-tag .34s cubic-bezier(.3, 1.7, .5, 1) var(--d) backwards; }
.mock .pe-mark.hit { animation: m-hit .7s ease-out; }
.mock .pe-mark.hit b { animation: m-tag .3s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes m-grow { from { transform: scaleY(0); } }
@keyframes m-bar { from { transform: scaleX(0); } }
@keyframes m-tag { from { transform: scale(0) rotate(-25deg); } }
@keyframes m-hit { from { background: color-mix(in srgb, var(--tc) 38%, transparent); } to { background: transparent; } }
.mock .pe-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 22%; opacity: 0; background: linear-gradient(90deg, transparent, rgba(201, 25, 125, .55), transparent); }
.mock .pe-wave.chopping .pe-scan { opacity: 1; animation: m-scan .65s linear infinite; }
@keyframes m-scan { from { transform: translateX(-100%); } to { transform: translateX(460%); } }
.mock .pe-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mock .pe-tool { display: grid; place-items: center; min-height: 44px; padding: 0 4px; border: 2px solid var(--border-color); border-radius: 10px; background: var(--bg-card); font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.mock .pe-tool.strong { border-color: var(--fg-primary); }
.mock .pe-tool.off { opacity: .35; }
.mock .pe-pads-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.mock .pe-clear { color: var(--c-rec); font-size: 10px; font-weight: 700; letter-spacing: .5px; text-decoration: underline; text-underline-offset: 3px; }
.mock .pe-pads { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.mock .pe-pad { display: grid; place-items: center; aspect-ratio: 1; box-sizing: border-box; border: 2px dashed var(--border-color); border-radius: 8px; background: var(--bg-card); color: var(--fg-secondary); font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.mock .pe-pad.full { border: 2px solid var(--fg-primary); background: var(--tc); color: #120f16; box-shadow: 3px 3px 0 var(--fg-primary); }
.mock .pe-pad.waiting { border: 2px dashed var(--tc); color: var(--tc); }
.mock .pe-pad.m-press { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--fg-primary); }

/* BEAT: modes and banks, every track as a small row, the selected track as 4 x 4 big steps */
.mock .pb-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-shrink: 0; }
.mock .pb-seg, .mock .pb-banks { display: flex; gap: 4px; }
.mock .p-chip { display: grid; place-items: center; min-height: 40px; padding: 0 12px; box-sizing: border-box; border: 2px solid var(--border-color); border-radius: 999px; background: var(--bg-card); color: var(--fg-primary); font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.mock .p-chip.on { background: var(--c-on); border-color: var(--c-on); color: #fff; }
.mock .p-chip.bank { width: 38px; padding: 0; }
.mock .p-chip.bank.empty { color: var(--fg-secondary); border-style: dashed; }
.mock .pb-overview { position: relative; display: grid; align-content: start; gap: 3px; flex: 0 0 auto; height: 186px; overflow: hidden; padding: 2px; margin: -2px; }
.mock .pb-row { display: grid; grid-template-columns: 58px 1fr; gap: 6px; align-items: center; min-height: 32px; border-radius: 4px; }
.mock .pb-row.sel { box-shadow: 0 0 0 2px var(--c-on); }
.mock .pb-row-tap { animation: m-row-tap .35s ease-out; }
@keyframes m-row-tap { from { background: color-mix(in srgb, var(--tc) 30%, transparent); } }
.mock .pb-name { position: relative; display: grid; gap: 2px; justify-items: start; min-height: 28px; padding: 2px 4px 2px 8px; align-content: center; color: var(--fg-secondary); font-size: 9px; font-weight: 700; letter-spacing: .5px; }
.mock .pb-name::after { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--tc); }
.mock .pb-row.sel .pb-name { color: var(--fg-primary); }
.mock .pb-level { width: 44px; height: 3px; border-radius: 2px; background: var(--border-color); overflow: hidden; }
.mock .pb-level::before { content: ''; display: block; width: 67%; height: 100%; background: var(--tc); }
.mock .pb-cells { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; height: 14px; }
.mock .pb-cell { border-radius: 2px; background: var(--bg-card-hover); }
.mock .pb-cell.q { background: var(--bg-card); }
.mock .pb-cell.on { background: var(--tc); }
.mock .pb-cell.now { outline: 1px solid var(--fg-primary); }
.mock .pb-more { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 30px; margin: -4px 0; flex-shrink: 0; color: var(--fg-secondary); font-size: 9px; font-weight: 700; letter-spacing: .5px; }
.mock .pb-more-bar { width: 40px; height: 5px; border-radius: 3px; background: var(--border-color); }
.mock .pb-head { display: flex; align-items: baseline; gap: 10px; min-height: 24px; flex-shrink: 0; }
.mock .pb-tname { font-size: 20px; font-weight: 700; letter-spacing: 1px; line-height: 1; color: var(--tc); }
.mock .pb-sub { font-size: 9px; letter-spacing: 1px; color: var(--fg-secondary); text-transform: uppercase; }
.mock .pb-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, minmax(44px, 72px)); align-content: start; gap: 8px; flex: 1 1 212px; min-height: 212px; }
.mock .pb-step {
    position: relative; display: grid; place-items: end start; padding: 6px 8px; overflow: hidden; box-sizing: border-box;
    border: 2px solid var(--border-color); border-radius: 12px; background: var(--bg-card); color: var(--fg-secondary);
    font-size: 12px; font-weight: 700; letter-spacing: .5px;
}
.mock .pb-step.beat { border-color: color-mix(in srgb, var(--fg-secondary) 45%, var(--border-color)); }
.mock .pb-step.on { background: var(--tc); border-color: var(--fg-primary); color: #120f16; box-shadow: 4px 4px 0 var(--fg-primary); }
.mock .pb-step.on::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .18); }
.mock .pb-step.now { outline: 3px solid var(--fg-primary); outline-offset: 2px; }
.mock .pb-step.m-press { transform: translate(2px, 2px) scale(.97); }
.mock .pb-num { position: relative; z-index: 1; }

/* Perch strip and navigation */
.mock .ps-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 12px 8px; flex-shrink: 0; }
.mock .ps-chip {
    display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; box-sizing: border-box;
    border: 2px solid var(--border-color); border-radius: 10px; background: var(--bg-card); color: var(--fg-secondary);
    font-size: 10px; font-weight: 700; letter-spacing: .5px;
}
.mock .ps-chip.sel { border-color: var(--c-on); color: var(--fg-primary); background: rgba(201, 25, 125, .18); }
.mock .ps-chip canvas { width: 22px; height: 22px; image-rendering: pixelated; }
.mock .phone-nav { display: grid; grid-template-columns: repeat(5, 1fr); flex-shrink: 0; border-top: 2px solid var(--border-color); background: var(--bg-card); padding: 6px 4px calc(8px + var(--safe-bottom)); }
.mock .phone-nav span { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 48px; color: var(--fg-secondary); font-size: 9px; font-weight: 700; letter-spacing: .5px; }
.mock .phone-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mock .phone-nav .on { color: var(--c-on-text); }
.mock .phone-nav .on svg { animation: m-wiggle .4s ease; }
@keyframes m-wiggle { 25% { transform: rotate(-12deg) scale(1.15); } 60% { transform: rotate(8deg); } }

/* The finger: a touch point as screen recordings show it; tap = press and a ring, hold = a pulsing ring */
.mock .m-touch {
    position: absolute; left: 0; top: 0; z-index: 30; width: 54px; height: 54px; margin: -27px 0 0 -27px;
    border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8);
    background: radial-gradient(circle, rgba(255, 255, 255, .6) 0 38%, rgba(255, 255, 255, .28) 66%, rgba(255, 255, 255, .12));
    box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
    translate: var(--x, 300px) var(--y, 900px); scale: 1; opacity: 0; pointer-events: none;
    transition: translate .42s cubic-bezier(.3, .7, .3, 1), scale .1s ease-out, opacity .25s;
}
.mock .m-touch.in { opacity: 1; }
.mock .m-touch.quick { transition-duration: .2s, .1s, .25s; }
.mock .m-touch.down { scale: .8; background: radial-gradient(circle, rgba(255, 255, 255, .8) 0 42%, rgba(255, 255, 255, .4) 70%, rgba(255, 255, 255, .15)); }
.mock .m-touch::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .7); opacity: 0; }
.mock .m-touch.tap::after { animation: m-ring .45s ease-out; }
.mock .m-touch.hold::after { animation: m-ring 1s ease-out infinite; }
@keyframes m-ring { from { opacity: .9; transform: scale(.7); } to { opacity: 0; transform: scale(1.9); } }

/* Flying slices and birds (js/ui/bursts.js flyTo, in the page's effects layer, at the mock's scale) */
.p-fly-slice { width: 20px; height: 20px; border-radius: 5px; border: 2px solid #f2eef7; }
.p-fly-bird { width: 26px; height: 26px; image-rendering: pixelated; }

/* ---------- How: the scroll sequencer ---------- */
.how-strip-wrap { position: sticky; top: calc(var(--top-h) + 14px); z-index: 20; display: grid; justify-items: center; margin-bottom: 40px; pointer-events: none; }
.how-strip {
    display: grid; grid-template-columns: repeat(16, 1fr); gap: 5px;
    width: min(100%, 760px); padding: 10px;
    background: var(--lcd); border: 3px solid var(--ink); border-radius: 12px;
    box-shadow: 6px 6px 0 var(--on);
}
.how-strip i { aspect-ratio: 1; min-width: 0; border-radius: 5px; border: 2px solid var(--line); background: var(--panel); transition: background .12s, border-color .12s; }
.how-strip i:nth-child(4n+1) { border-color: #57506a; }
.how-strip i.on { background: var(--pc); border-color: var(--ink); }
.how-strip i.pop { animation: step-pop .28s cubic-bezier(.3, 1.8, .5, 1); }
.how-strip i.now { outline: 3px solid var(--run); outline-offset: 1px; }
@keyframes step-pop { 0% { transform: scale(.5); } 100% { transform: none; } }
.sound-hint {
    margin-left: 6px; vertical-align: middle;
    font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    background: var(--panel); border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--muted); cursor: pointer;
}
.sound-hint:hover { color: var(--ink); border-color: var(--ink); }
body.sound-on .sound-hint { display: none; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
@media (min-width: 720px) { .how-steps { grid-template-columns: 1fr 1fr; } }
.how-step {
    position: relative; display: grid; gap: 12px; align-content: start;
    padding: 26px 24px 28px; min-height: 240px;
    background: var(--panel); border: 3px solid var(--ink); border-radius: 18px;
    box-shadow: 8px 8px 0 var(--c);
}
.how-step:nth-child(2n) { transform: rotate(.8deg); }
.how-step:nth-child(2n+1) { transform: rotate(-.6deg); }
.how-step p { color: var(--muted); }
.num { font-family: var(--mono); color: var(--c); margin-right: 6px; }
.step-key {
    justify-self: start; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 2px;
    padding: 5px 12px; border: 2px solid var(--c); color: var(--c); border-radius: 8px;
}
.step-key.key-rec { background: var(--rec); border-color: var(--ink); color: var(--ink); }

/* ---------- Demo cards ---------- */
.demo-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.demo-card {
    appearance: none; margin: 0; position: relative; overflow: hidden;
    display: grid; gap: 6px; justify-items: start; align-content: start;
    min-height: 210px; padding: 18px; text-align: left; cursor: pointer;
    border: 3px solid var(--card); border-radius: 16px;
    background: var(--panel); color: var(--ink); font-family: var(--mono);
    box-shadow: 6px 6px 0 var(--card);
    transition: transform 90ms ease-out, box-shadow 90ms ease-out;
}
.demo-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--card); }
.demo-card:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--card); }
.demo-card canvas { width: 52px; height: 52px; image-rendering: pixelated; transform-origin: 50% 90%; }
.demo-card canvas.hop { animation: hop-big .24s ease-out; }
@keyframes hop-big { 40% { transform: translateY(-9px) scaleY(1.08); } }
.demo-num { position: absolute; top: 14px; right: 16px; font-size: 11px; color: var(--muted); }
.demo-name { font-family: var(--display); font-size: 22px; color: var(--card); line-height: 1.1; }
.demo-style { font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.demo-hint { font-size: 11px; line-height: 1.5; color: var(--muted); letter-spacing: .5px; }
.demo-state { margin-top: auto; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--card); }
.demo-card.playing { background: color-mix(in srgb, var(--card) 22%, var(--panel)); border-color: var(--ink); }
.demo-card.loading .demo-state { animation: blink .6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.demo-eq { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 3px; align-items: flex-end; height: 26px; opacity: 0; }
.demo-card.playing .demo-eq { opacity: 1; }
.demo-eq i { width: 5px; height: 30%; background: var(--card); border-radius: 2px; transition: height .08s; }
.demo-soon { cursor: default; border-style: dashed; box-shadow: none; }
.demo-soon:hover, .demo-soon:active { transform: none; box-shadow: none; }
.demo-soon .demo-state { animation: blink 2.4s steps(2) infinite; }
.demo-note { margin-top: 18px; min-height: 1.6em; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .5px; }

/* ---------- Surprises ---------- */
.wow-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.wow-card { display: grid; gap: 12px; align-content: start; padding: 22px; background: var(--panel); border: 3px solid var(--ink); border-radius: 18px; }
.wow-card p { color: var(--muted); font-size: 15px; }
.wow-art {
    position: relative; height: 120px; border-radius: 12px; overflow: hidden;
    background: var(--lcd); border: 2px solid var(--line);
    display: grid; place-items: center;
    font-family: var(--mono); font-weight: 700; letter-spacing: 1.5px; font-size: 12px;
}
.wow-art .phone { width: 38px; height: 70px; border: 3px solid var(--ink); border-radius: 9px; background: var(--c); position: relative; }
.wow-art .phone::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 10px; height: 3px; margin-left: -5px; background: var(--ink); border-radius: 2px; }
.art-shake .phone { animation: shake 1.6s ease-in-out infinite; }
@keyframes shake { 0%, 45%, 100% { transform: none; } 50% { transform: translateX(-7px) rotate(-8deg); } 55% { transform: translateX(7px) rotate(8deg); } 60% { transform: translateX(-6px) rotate(-6deg); } 65% { transform: translateX(6px) rotate(6deg); } 70% { transform: none; } }
.art-shake::before, .art-shake::after { content: '♪'; position: absolute; font-size: 20px; color: var(--c0); opacity: 0; animation: note-up 1.6s ease-out infinite; }
.art-shake::before { left: 32%; animation-delay: .8s; } .art-shake::after { right: 32%; color: var(--on-text); animation-delay: .9s; }
@keyframes note-up { 0%, 49% { opacity: 0; transform: translateY(20px); } 55% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px); } }
.art-tilt .phone { animation: tilt 3s ease-in-out infinite; }
@keyframes tilt { 0%, 100% { transform: rotate(-24deg); } 50% { transform: rotate(24deg); } }
.art-tilt .sweep { position: absolute; left: 10%; right: 10%; bottom: 14px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c2), var(--c1), var(--c0)); }
.art-tilt .sweep::after { content: ''; position: absolute; top: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); left: 0; animation: sweep 3s ease-in-out infinite; }
@keyframes sweep { 0%, 100% { left: 0; } 50% { left: calc(100% - 16px); } }
.art-make { color: var(--ink); }
.art-make b { background: var(--on); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 14px; box-shadow: 4px 4px 0 var(--c0); animation: tap-btn 2.2s ease-in-out infinite; }
@keyframes tap-btn { 0%, 30%, 100% { transform: none; box-shadow: 4px 4px 0 var(--c0); } 35% { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--c0); } 45% { transform: none; } }
.art-make span { position: absolute; font-size: 22px; opacity: 0; animation: spark 2.2s ease-out infinite; }
.art-make span:nth-child(1) { left: 20%; top: 20%; color: var(--c0); }
.art-make span:nth-child(2) { right: 18%; top: 26%; color: var(--c1); animation-delay: .06s; }
.art-make span:nth-child(3) { left: 46%; bottom: 8%; color: var(--c3); animation-delay: .12s; }
@keyframes spark { 0%, 34% { opacity: 0; transform: scale(.2) rotate(0); } 42% { opacity: 1; transform: scale(1.3) rotate(40deg); } 70%, 100% { opacity: 0; transform: scale(.6) rotate(90deg); } }
.art-coach canvas { width: 56px; height: 56px; image-rendering: pixelated; margin-left: -60px; animation: hop 1s ease-in-out infinite; }
.art-coach .bubble { position: absolute; left: 52%; top: 22%; background: var(--ink); color: var(--ground); padding: 6px 10px; border-radius: 10px 10px 10px 2px; font-size: 11px; animation: bubble 3s ease-in-out infinite; }
@keyframes bubble { 0%, 10% { transform: scale(0); } 18%, 85% { transform: none; } 95%, 100% { transform: scale(0); } }
.art-undo { justify-content: center; }
.art-undo b, .art-undo u { position: absolute; bottom: 18px; }
.art-undo b { left: 12%; color: var(--ink); background: var(--panel-2); padding: 10px 12px; border-radius: 10px 0 0 10px; border: 2px solid var(--ink); animation: toast 3s ease-in-out infinite; }
.art-undo u { right: 12%; text-decoration: none; color: var(--c0); background: var(--panel-2); padding: 10px 12px; border-radius: 0 10px 10px 0; border: 2px solid var(--ink); border-left: 0; animation: toast 3s ease-in-out infinite; }
@keyframes toast { 0% { transform: translateY(90px); } 15%, 80% { transform: none; } 100% { transform: translateY(90px); } }
.art-mix { display: flex; gap: 14px; justify-content: center; align-items: center; }
.art-mix i { position: relative; width: 8px; height: 84px; background: var(--panel-2); border-radius: 4px; }
.art-mix i::after { content: ''; position: absolute; left: -9px; width: 26px; height: 12px; border-radius: 4px; border: 2px solid var(--ink); background: var(--c0); top: 30%; animation: fader 2.4s ease-in-out infinite alternate; }
.art-mix i:nth-child(2)::after { background: var(--c1); animation-delay: -.6s; } .art-mix i:nth-child(3)::after { background: var(--c2); animation-delay: -1.2s; }
.art-mix i:nth-child(4)::after { background: var(--c3); animation-delay: -1.8s; } .art-mix i:nth-child(5)::after { background: var(--on); animation-delay: -.3s; }
@keyframes fader { from { top: 8%; } to { top: 78%; } }

/* ---------- Privacy, browsers, FAQ ---------- */
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.privacy-list li { padding: 20px 22px; border: 2px solid var(--line); border-radius: 14px; background: rgba(31, 26, 39, .7); display: grid; gap: 6px; }
.privacy-list h3 { font-size: 16px; color: var(--run); }
.privacy-list h3::before { content: '✓ '; }
.privacy-list p { color: var(--muted); font-size: 15px; }
.table-wrap { overflow-x: auto; border: 3px solid var(--ink); border-radius: 14px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); background: var(--panel-2); }
th, td { padding: 12px 16px; }
td + td { color: var(--muted); }
tbody tr + tr td { border-top: 1px solid var(--line); }
.fine { margin-top: 14px; font-size: 13px; color: var(--muted); }
.faq { max-width: 860px !important; }
.faq-list { display: grid; gap: 12px; }
details { border: 2px solid var(--line); border-radius: 14px; background: var(--panel); padding: 0 20px; }
details[open] { border-color: var(--ink); box-shadow: 5px 5px 0 var(--on); }
summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--display); color: var(--c0); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 18px; color: var(--muted); }
details ul { margin: 0; padding: 0 0 18px 20px; display: grid; gap: 8px; color: var(--muted); }
details strong, details em { color: var(--ink); }
details a { color: var(--c0); }
.mail { color: var(--ink); user-select: all; }

/* ---------- Final ---------- */
.final { display: grid; justify-items: center; gap: 22px; text-align: center; padding-bottom: 96px !important; }
.final-bird { width: 96px; height: 96px; image-rendering: pixelated; animation: float 2.6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.final .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.foot {
    max-width: 1160px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center;
    padding: 28px var(--gutter) calc(92px + env(safe-area-inset-bottom, 0px));
    border-top: 3px solid var(--ink);
    font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; text-transform: uppercase; letter-spacing: 1.5px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- The page bird ---------- */
.pet {
    position: absolute; left: 0; top: 0; z-index: 40;
    width: 48px; height: 48px; padding: 0; margin: 0;
    background: none; border: 0; cursor: pointer;
    transform-origin: 50% 100%;
    -webkit-tap-highlight-color: transparent;
}
.pet canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; transform-origin: 50% 100%; }
.pet.flip canvas { transform: scaleX(-1); }
.pet.holding canvas { animation: hold-on .12s linear infinite; }
@keyframes hold-on { 0%, 100% { rotate: -14deg; } 50% { rotate: 10deg; } }
.pet.peck canvas { animation: peck .5s ease-in-out; }
@keyframes peck { 25%, 75% { rotate: 22deg; translate: 3px 2px; } 50% { rotate: 0deg; } }
@media (max-width: 600px) { .pet { width: 38px; height: 38px; } }
.pet.away { opacity: 0; pointer-events: none; }
.pet { touch-action: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.pet.charging canvas { animation: puff-jitter .09s linear infinite; }
@keyframes puff-jitter { 0%, 100% { translate: 0 0; } 25% { translate: -1px 0; } 75% { translate: 1px -1px; } }
.seed { position: absolute; width: 6px; height: 6px; background: #f5c400; box-shadow: 1px 1px 0 var(--ink); z-index: 41; pointer-events: none; }
#main.shake { animation: page-shake .25s linear; }
@keyframes page-shake { 20% { translate: -4px 2px; } 40% { translate: 4px -2px; } 60% { translate: -3px 0; } 80% { translate: 2px 1px; } }

/* ---------- Sound pill ---------- */
.sound-pill {
    position: fixed; right: var(--gutter); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px;
    font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    background: var(--panel); border: 3px solid var(--ink); border-radius: 999px; cursor: pointer;
    box-shadow: 4px 4px 0 var(--c1);
}
.sound-pill[aria-pressed="true"] { background: var(--on); box-shadow: 4px 4px 0 var(--c0); }
.sound-pill[aria-pressed="true"] .sp-icon { display: inline-block; animation: wiggle .5s ease-in-out infinite alternate; }
@keyframes wiggle { from { transform: rotate(-12deg); } to { transform: rotate(12deg) translateY(-2px); } }

/* ---------- Effects layer (bursts from js/ui/bursts.js, same as the app) ---------- */
.bb-fx-layer { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.bb-shape, .bb-float, .bb-fly { position: absolute; will-change: transform, opacity; }
.bb-float { font: 700 16px var(--mono); }
.zz { position: absolute; font-family: var(--display); color: var(--c5); font-size: 16px; pointer-events: none; z-index: 41; }
.carry { position: fixed; z-index: 80; margin: 0; pointer-events: none; }

/* ---------- Less motion: everything readable, nothing moving ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .mock { transform: none; }
    .mock .m-touch { display: none; }
    .how-step:nth-child(n) { transform: none; }
    .pet { display: none; }
}
