/* The landing page (index.html, es/index.html) and the 404 page. One stylesheet, nothing from other sites.
   One look, the app's dark one (app/src/style.css): near-black ground, brass accent, light paper for music.
   Motion lives in site.js and only runs when <html> has the class "anim" (set when the device allows motion);
   without it every section is laid out still, with nothing hidden. */
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(barlow-condensed-800.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #121514; --bg-2: #171b1a; --surface: #1b1f1e; --raised: #232827; --fg: #e7ebe9; --muted: #9aa49f;
  --line: #2e3532; --edge: #6c7571;
  --brass: #d9a441; --brass-hi: #f0c46a; --on-brass: #1b1403; --brass-soft: rgb(217 164 65 / .12);
  --paper: #f4f2ec; --ink: #1b1f1e; --ink-muted: #5d6562; --ink-brass: #8a5f0c; --brass-glow: 0 4px 12px -6px rgb(217 164 65 / .25); --brass-glow-hover: 0 7px 15px -10px rgb(217 164 65 / .42); --ink-ok: #2a7448; --ink-early: #b35c08; --ink-late: #7446b3; --ink-miss: #b23a32;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --display: "Barlow Condensed", "Arial Narrow", var(--sans);
  --wrap: 1280px; --top: 64px;
  /* One set of corners: controls, cards and pictures. Device frames in the changing screen keep their own. */
  --r-ctl: 12px; --r-card: 20px; --r-pic: 14px;
  --gut-l: max(20px, env(safe-area-inset-left, 0px)); --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--sans); overflow-x: clip; }
/* A TV's browser (1800 wide or more) is read from the sofa: everything a little larger. */
@media (min-width: 1800px) { body { font-size: 21px; } :root { --wrap: 1560px; } }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--brass); color: var(--on-brass); padding: 10px 14px; border-radius: 8px; z-index: 30; font-weight: 700; }
.skip:focus { top: 12px; }

h1, h2, .brand { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(46px, 6vw, 96px); line-height: .92; }
h2 { font-size: clamp(36px, 4.8vw, 68px); line-height: .96; margin-bottom: 18px; }
h3 { font-size: 1.12em; margin: 0 0 6px; line-height: 1.3; }
p { margin: 0 0 12px; }
.eyebrow { font: 800 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: .16em; color: var(--brass); margin: 0 0 14px; }
.lead { font-size: 1.16em; color: var(--muted); max-width: 33em; }
.lead b, .muted b { color: var(--fg); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .88em; }

/* Headings settle in word by word (site.js wraps the words). */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.anim .settle .w > span { transform: translateY(105%); transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.anim .settle.in .w > span { transform: none; }
/* The headline at the top does it by itself as the page opens, so it never waits on anything. */
.anim h1.settle .w > span { transform: none; transition: none; animation: word .9s var(--ease) backwards; animation-delay: calc(var(--i) * 55ms + 80ms); }
@keyframes word { from { transform: translateY(105%); } }
/* Blocks rise into place once, when they come on screen. */
.anim .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.anim .rv.in { opacity: 1; transform: none; }

/* ---- Top bar ---- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgb(18 21 20 / .78); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid rgb(46 53 50 / .7); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: var(--top); }
.brand { font-size: 30px; line-height: 1; color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.mark { width: 28px; height: 28px; flex: none; }
.links { display: flex; gap: 4px; margin: 0 auto; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: 9px 12px; border-radius: var(--r-ctl); transition: color .2s, background .2s; }
.links a:hover { color: var(--fg); background: rgb(255 255 255 / .05); }
@media (max-width: 1040px) { .links { display: none; } .nav { margin-left: auto; } }
.nav { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; border: 1.5px solid var(--edge); border-radius: var(--r-ctl); overflow: hidden; font-size: 14px; font-weight: 700; min-height: 40px; }
.lang a, .lang span { padding: 0 11px; min-width: 40px; display: grid; place-items: center; text-decoration: none; color: var(--fg); }
.lang [aria-current] { background: var(--brass); color: var(--on-brass); }
/* The page's own moving line: how far down the page you are. */
.top-line { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brass); transform-origin: 0 50%; transform: scaleX(var(--page, 0)); box-shadow: 0 0 10px rgb(217 164 65 / .7); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border-radius: 11px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--edge); color: var(--fg); background: rgb(255 255 255 / .03); line-height: 1.2; text-align: center; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s, background .2s; }
.btn:hover { border-color: var(--brass); text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%); border-color: var(--brass); color: var(--on-brass); box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, var(--brass-glow); }
.btn.primary:hover { box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, var(--brass-glow-hover); }
.btn.big { min-height: 54px; padding: 13px 22px; font-size: 1.05em; }
.nav .btn { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.nav .short { display: none; }
@media (max-width: 640px) {
  .top .wrap { gap: 8px; }
  .brand { font-size: 26px; }
  .nav { gap: 6px; }
  .nav .btn { padding: 8px 10px; font-size: 14px; }
  .nav .long { display: none; }
  .nav .short { display: inline; }
}
@media (max-width: 380px) { .nav .dl { display: none; } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font-size: .92em; color: var(--muted); }
.facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); margin-right: 8px; vertical-align: .14em; }

/* ---- Hero: the words, and the app playing one groove and fill ---- */
.hero { position: relative; padding: clamp(24px, 3.4vw, 52px) 0 clamp(56px, 9vw, 120px); }
.hero-bg { position: absolute; inset: -80px 0 0; overflow: hidden; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 520px at 78% 22%, rgb(217 164 65 / .16), transparent 70%), radial-gradient(700px 500px at 8% 90%, rgb(63 196 179 / .05), transparent 70%); }
/* Five lines across the whole page, like a staff seen from very close. */
.hero-bg::after { content: ""; position: absolute; left: 0; right: 0; top: 34%; height: 225px; background: repeating-linear-gradient(180deg, rgb(231 235 233 / .07) 0 1px, transparent 1px 56px); -webkit-mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); transform: translateY(calc(var(--hp, 0) * 140px)); }
/* The headline runs across the top; under it the words on the left and the live card on the right. */
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); grid-template-areas: "head head" "copy live"; gap: clamp(24px, 3.2vw, 44px) clamp(28px, 4.5vw, 64px); align-items: center; }
.hero-head { grid-area: head; }
.hero-head h1 { font-size: clamp(44px, 6.6vw, 104px); }
.hero-copy { grid-area: copy; display: grid; gap: 22px; justify-items: start; }
.live-wrap { grid-area: live; }
.anim .hero-head, .anim .hero-copy { transform: translateY(calc(var(--hp, 0) * -46px)); opacity: calc(1 - var(--hp, 0) * 1.1); }
.anim .hero-head .eyebrow, .anim .hero-copy > * { animation: rise .9s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 110ms + 250ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 1020px) { .hero-grid { grid-template-columns: 1fr; grid-template-areas: "head" "copy" "live"; } }

/* The live card: a piece of the app. Title, the sheet of music, a practice pad with two sticks. */
.live-wrap { perspective: 1400px; }
.live { position: relative; border-radius: 24px; padding: clamp(14px, 2vw, 22px); background: linear-gradient(180deg, #1f2423, #161a19); border: 1px solid var(--line); box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 50px 110px -40px #000, 0 30px 90px -50px rgb(217 164 65 / .45); transform: translateY(calc(var(--hp, 0) * 46px)) rotateX(calc(var(--ry, 0) * 1deg)) rotateY(calc(var(--rx, 0) * 1deg)); transition: transform .3s ease-out; }
.anim .live { animation: settle 1.2s var(--ease) backwards .15s; }
@keyframes settle { from { opacity: 0; transform: translateY(40px) rotateX(14deg) scale(.96); } }
.live-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.live-title { border-left: 4px solid #b08cf0; padding-left: 10px; margin-right: auto; min-width: 0; }
.live-title small { display: block; font: 600 11.5px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.live-title b { display: block; font: 800 clamp(22px, 2.5vw, 30px)/1 var(--display); text-transform: uppercase; }
.live-meta { display: flex; align-items: center; gap: 12px; flex: none; }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #3b4340; }
.dots i.on { background: var(--brass); box-shadow: 0 0 12px var(--brass); }
.bpm { font-size: 13px; color: var(--muted); white-space: nowrap; }
.bpm b { font: 800 26px/1 var(--display); color: var(--fg); margin-right: 3px; }
.sheet { position: relative; background: var(--paper); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 #fff inset, 0 14px 30px -18px #000; transition: box-shadow .6s; }
.sheet.crash { box-shadow: 0 0 0 3px var(--brass), 0 0 70px rgb(217 164 65 / .6); transition: none; }
.pan { width: max(100%, 640px); padding: 4px 6px 0; transition: transform .6s var(--ease); will-change: transform; }
.playing .pan { transition: none; }
.staff { display: block; width: 100%; height: auto; overflow: visible; }
.staff .count { font: 500 16px var(--mono); fill: var(--ink-muted); text-anchor: middle; stroke: none; }
.staff .count.on { font-size: 18px; font-weight: 700; fill: var(--ink); }
.staff .count.now { fill: var(--ink-brass); }
.staff .mark-sym path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.mark-sym.tone-ok { color: var(--ink-ok); } .mark-sym.tone-early { color: var(--ink-early); }
.mark-sym.tone-late { color: var(--ink-late); } .mark-sym.tone-miss { color: var(--ink-miss); }
.staff .playhead { stroke: var(--ink-brass); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 3px rgb(138 95 12 / .6)); opacity: 0; transition: opacity .3s; }
.playing .staff .playhead { opacity: 1; }
.staff .pulse { fill: none; stroke: var(--ink-ok); stroke-width: 2; opacity: 0; }
.countin { position: absolute; inset: 0; display: grid; place-items: center; font: 800 76px/1 var(--display); color: var(--ink); background: rgb(244 242 236 / .72); font-variant-numeric: tabular-nums; }
.anim .countin.pop { animation: beat .3s ease-out; }
@keyframes beat { from { transform: scale(1.25); } }
/* Under the sheet: the pad and sticks, with the play button beside them (below them on a narrow screen). */
.live-low { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 190px); align-items: end; gap: 0 10px; margin-top: 2px; }
.scene { display: block; width: min(100%, 560px); height: auto; margin: 0 auto -6px; overflow: visible; grid-column: 1; grid-row: 1; }
.live-foot { display: grid; gap: 10px; justify-items: start; grid-column: 2; grid-row: 1; padding-bottom: 6px; }
@media (max-width: 700px) { .live-low { grid-template-columns: 1fr; } .live-foot { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 6px 0 0; } }
.live-ctl { display: flex; align-items: center; gap: 8px; }
.mute { width: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.mute .x { display: none; }
.mute.off .w { display: none; }
.mute.off .x { display: inline; }
.play { font: 700 15px/1 var(--sans); border: 0; border-radius: 10px; padding: 12px 16px; min-height: 44px; background: var(--brass); color: var(--on-brass); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.play::before { content: ""; border: 6px solid transparent; border-left: 10px solid currentColor; border-right-width: 0; }
.play[aria-pressed="true"]::before { box-sizing: border-box; width: 11px; height: 13px; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.play:disabled { background: var(--raised); color: var(--muted); cursor: default; }
.live-tip { font-size: 14px; color: var(--muted); }
.live-tip.ok { color: #5fbf86; font-weight: 700; }
/* On a computer the pointer over the hero is a drumstick that strikes where you click (site.js draws it). */
.stick body, .stick body * { cursor: none !important; }
.stickcur { position: fixed; left: 0; top: 0; width: 96px; height: 96px; overflow: visible; pointer-events: none; z-index: 40; opacity: 0; transition: opacity .15s; filter: drop-shadow(0 5px 4px rgb(0 0 0 / .45)); }
.stickcur.show { opacity: 1; }
.stickcur > g { transform-origin: 102px 102px; transform: rotate(9deg); transition: transform .26s cubic-bezier(.3, 1.7, .5, 1); }
.stickcur.down > g { transform: rotate(-1.5deg); transition: transform .045s ease-in; }
.tap { position: fixed; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; border: 2px solid var(--brass-hi); pointer-events: none; z-index: 39; animation: tap .42s ease-out forwards; }
.tap.flash { border: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; background: radial-gradient(circle, rgb(255 243 207 / .95) 0 18%, rgb(217 164 65 / .7) 42%, transparent 70%); animation-duration: .2s; }
@keyframes tap { from { transform: scale(.12); opacity: .95; } to { transform: scale(1); opacity: 0; } }

/* ---- Sections ---- */
section { position: relative; padding: clamp(64px, 10vw, 140px) 0; scroll-margin-top: calc(var(--top) + 8px); }
.intro { max-width: 46em; margin-bottom: clamp(28px, 4vw, 52px); }
.intro p:not(.eyebrow) { color: var(--muted); font-size: 1.08em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.top-align { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.glow-l::before, .glow-r::before { content: ""; position: absolute; top: 10%; width: 60vw; height: 60vw; max-width: 860px; max-height: 860px; background: radial-gradient(closest-side, rgb(217 164 65 / .09), transparent); pointer-events: none; }
.glow-l::before { left: -22vw; } .glow-r::before { right: -22vw; }

/* Three ways to play: no boxes, three columns with a hairline between them. */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ways li { padding: 28px clamp(16px, 2.4vw, 34px) 8px; border-left: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.ways li:first-child { border-left: 0; padding-left: 0; }
.ways .tag, .step .tag { font: 800 15px/1 var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--brass); }
.ways h3 { font: 800 clamp(24px, 2.4vw, 32px)/1 var(--display); text-transform: uppercase; margin: 0; }
.ways p { color: var(--muted); margin: 0; }
.ill { height: 104px; display: flex; align-items: center; margin-bottom: 6px; }
.ill svg { height: 96px; width: auto; overflow: visible; }
.keys { display: flex; gap: 6px; align-items: flex-end; }
.keys kbd { cursor: pointer; user-select: none; font: 700 13px/1 var(--sans); min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border-radius: 9px; background: var(--raised); border: 1px solid var(--edge); border-bottom-width: 4px; color: var(--fg); transition: transform .08s, border-bottom-width .08s, background .08s, color .08s; }
.keys kbd.wide { min-width: 108px; }
.keys kbd.hit { transform: translateY(3px); border-bottom-width: 1px; background: var(--brass); color: var(--on-brass); }
.kit { position: relative; width: 190px; height: 96px; }
.kit i { cursor: pointer; transition: transform .1s; position: absolute; border-radius: 50%; border: 2px solid #59625f; background: var(--surface); }
/* Cymbals in the same quiet bronze as the app's kit picture; a hit still flashes bright brass. */
.kit i.cym { background: color-mix(in srgb, var(--brass) 24%, var(--surface)); border-color: color-mix(in srgb, var(--brass) 75%, #6c7571); }
.kit i.hit { background: var(--brass-hi); border-color: var(--brass-hi); transform: scale(.92); }
.ill svg[data-pad] { cursor: pointer; transition: transform .1s; }
.ill svg.hit { transform: translateY(2px) scale(.98); }
/* The practice pad's sticks (drawn like the pointer stick) and the sticking shown while it plays a paradiddle (site.js). */
.pstick { filter: drop-shadow(0 3px 2px rgb(0 0 0 / .45)); }
.psticking { font: 500 9px ui-monospace, Consolas, monospace; fill: var(--muted); letter-spacing: .12em; }
.psticking .on { fill: var(--brass); font-weight: 700; }
.ways.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) and (min-width: 861px) {
  .ways.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways.four li:nth-child(3) { border-left: 0; padding-left: 0; }
  .ways.four li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .ways.four { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; }
  .ways li { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 20px; }
  .ways li:first-child { border-top: 0; }
}

/* ---- One screen that changes: phone, iPad, computer, TV ---- */
.stage-sec { padding-bottom: 0; }
.pin { position: relative; }
.stage, .rail { display: none; }
.step { padding: 26px 0; display: grid; gap: 14px; }
.step .card { max-width: 30em; display: grid; gap: 10px; }
.step h3 { font: 800 clamp(28px, 3.2vw, 44px)/.98 var(--display); text-transform: uppercase; margin: 0; }
.step p { color: var(--muted); margin: 0; }
.shot { margin: 0; background: #0b0d0c; padding: 8px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px #000; }
.shot img { border-radius: 9px; width: 100%; }
.shot.phone { border-radius: 34px; padding: 9px; max-width: 250px; }
.shot.phone img { border-radius: 26px; }
.step .shot { max-width: 620px; }
.step .shot.phone { max-width: 230px; }
@media (min-width: 900px) { .step { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 40px; padding: 34px 0; } .anim .step { grid-template-columns: 1fr; } }
.anim .stage { display: block; position: sticky; top: var(--top); height: calc(100vh - var(--top)); height: calc(100dvh - var(--top)); overflow: hidden; }
.anim .steps { position: relative; }
.anim .step { min-height: calc(86vh - var(--top)); min-height: calc(86dvh - var(--top)); align-content: center; padding: 0; }
.anim .step .shot { display: none; }
.anim .step .card { width: 36%; opacity: .78; transform: translateY(14px) scale(.97); transform-origin: 0 50%; transition: opacity .5s, transform .6s var(--ease); }
.anim .step.on .card { opacity: 1; transform: none; }
.stage-glow { position: absolute; inset: 0; background: radial-gradient(42% 52% at var(--gx, 72%) 50%, rgb(217 164 65 / .17), transparent 70%); }
.dev-wrap { position: absolute; inset: 0; perspective: 1600px; }
.dev { position: absolute; left: var(--dx, 71%); top: var(--dy, 50%); width: var(--w, 300px); transform: translate(-50%, -50%) translateY(calc((1 - var(--in, 1)) * 90px)) rotateX(calc((1 - var(--in, 1)) * 22deg)) scale(calc(.9 + var(--in, 1) * .1)); will-change: transform, width; }
.dev-screen { position: relative; height: var(--h, 600px); background: #0b0d0c; border-radius: var(--r, 36px); box-shadow: 0 0 0 1px #343b38, 0 1px 0 1px rgb(255 255 255 / .08) inset, 0 60px 120px -50px #000, 0 30px 100px -40px rgb(217 164 65 / .3); }
.dev-screen img { position: absolute; inset: var(--pad, 9px); width: calc(100% - var(--pad, 9px) * 2); height: calc(100% - var(--pad, 9px) * 2); max-width: none; object-fit: cover; object-position: top center; border-radius: calc(var(--r, 36px) - var(--pad, 9px)); opacity: 0; }
.dev-screen::after { content: ""; position: absolute; inset: var(--pad, 9px); border-radius: calc(var(--r, 36px) - var(--pad, 9px)); background: linear-gradient(115deg, rgb(255 255 255 / .09), transparent 32%); pointer-events: none; }
.dev-base { position: absolute; left: -8%; right: -8%; bottom: -13px; height: 13px; border-radius: 2px 2px 14px 14px; background: linear-gradient(#59625f, #2b302e); opacity: 0; }
.dev-stand { width: 26%; height: 30px; margin: 0 auto; background: linear-gradient(#3a413e, #1d2120); clip-path: polygon(40% 0, 60% 0, 74% 100%, 26% 100%); opacity: 0; }
.anim .rail { display: flex; position: absolute; left: var(--gut-l); bottom: 26px; gap: 4px 20px; margin: 0; padding: 12px 0 0; list-style: none; font: 800 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--edge); }
.anim .rail::before, .anim .rail::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--line); }
.anim .rail::after { background: var(--brass); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); box-shadow: 0 0 10px rgb(217 164 65 / .6); }
.rail li.on { color: var(--fg); }
@media (min-width: 1021px) { .anim .rail { left: max(var(--gut-l), calc((100vw - var(--wrap)) / 2 + 20px)); } }
@media (max-width: 899px) {
  .anim .step { min-height: calc(100vh - var(--top)); min-height: calc(100dvh - var(--top)); align-content: end; padding-bottom: 92px; }
  .anim .step .card { width: auto; max-width: none; background: rgb(18 21 20 / .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
  .anim .rail { bottom: 20px; gap: 4px 14px; font-size: 13px; }
}

/* ---- Reading: which line is which drum ---- */
.legend { position: relative; background: var(--paper); border-radius: 14px; padding: 10px 10px 56px; box-shadow: 0 30px 70px -40px #000; }
.legend svg { display: block; width: 100%; height: auto; overflow: visible; }
.legend [data-pad] { cursor: pointer; }
.legend .vf-notehead path { transition: fill .4s; }
.legend .hit .vf-notehead path { fill: var(--ink-brass); transition: none; }
.legend-keys { position: absolute; left: 10px; right: 10px; bottom: 12px; height: 36px; }
.legend-keys button { position: absolute; top: 0; transform: translateX(-50%); font: 700 12.5px/1 var(--sans); color: var(--ink); background: #fff; border: 1px solid #c2c8c4; border-radius: 999px; padding: 8px 9px; cursor: pointer; white-space: nowrap; }
.legend-keys button:hover, .legend-keys button.hit { background: var(--ink-brass); border-color: var(--ink-brass); color: #fff; }
.legend-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
@media (max-width: 560px) { .legend { padding-bottom: 86px; } .legend-keys { height: 66px; } .legend-keys button { font-size: 12px; padding: 7px 8px; } .legend-keys button:nth-child(even) { top: 34px; } }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); }
.ticks li b { color: var(--fg); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 11px; height: 6px; border-left: 2.5px solid var(--brass); border-bottom: 2.5px solid var(--brass); transform: rotate(-45deg); }

/* ---- The journey: eight milestones on one line, the style choice, the paths ---- */
.miles { list-style: none; counter-reset: mile; margin: 0 0 clamp(36px, 5vw, 64px); padding: 0; position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0 10px; }
.miles::before, .miles::after { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--line); }
.miles::after { background: var(--brass); transform-origin: 0 50%; transform: scaleX(var(--v, 1)); box-shadow: 0 0 12px rgb(217 164 65 / .7); }
.miles li { counter-increment: mile; position: relative; z-index: 1; padding-top: 54px; font: 800 clamp(17px, 1.5vw, 22px)/1.05 var(--display); text-transform: uppercase; color: var(--muted); transition: color .3s; text-wrap: balance; }
.miles li::before { content: counter(mile); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 20px/1 var(--display); background: var(--bg); border: 2px solid var(--line); color: var(--muted); transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.miles li.on { color: var(--fg); }
.miles li.on::before { background: var(--brass); border-color: var(--brass); color: var(--on-brass); transform: scale(1.08); }
@media (max-width: 860px) {
  .miles { grid-template-columns: 1fr; gap: 14px; }
  .miles::before, .miles::after { left: 19px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: 50% 0; }
  .miles::after { transform: scaleY(var(--v, 1)); }
  .miles li { padding: 9px 0 9px 58px; font-size: 22px; }
}
.pick { border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 34px); background: linear-gradient(180deg, var(--surface), var(--bg-2)); display: grid; gap: 18px; }
.pick-head h3 { font: 800 clamp(26px, 3vw, 40px)/1 var(--display); text-transform: uppercase; margin: 0 0 8px; }
.pick-head p, .pick-note { color: var(--muted); margin: 0; }
.pick-note { font-size: .9em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: 700 15px/1 var(--sans); color: var(--fg); background: none; border: 1.5px solid var(--edge); border-radius: 999px; padding: 11px 16px; min-height: 44px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.chips button:hover { border-color: var(--brass); }
.chips button[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
.pick .paths { margin: 0; }
.pick .paths li { transition: opacity .3s, border-color .3s, box-shadow .3s; }
.pick .paths li.dim { opacity: .28; }
.pick .paths li.on { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 18px -6px var(--c); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: clamp(26px, 4vw, 44px); }
.engine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin: 26px 0 0; }
.engine > div { border-top: 1px solid var(--line); padding-top: 14px; }
.engine dt { font: 800 24px/1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.engine dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .engine { grid-template-columns: 1fr; } }

/* ---- Lessons: three screens in layers ---- */
.paths { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.paths li { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 13px 6px 10px; font-size: .9em; font-weight: 600; }
.paths li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.note { border-left: 3px solid var(--brass); background: linear-gradient(90deg, var(--brass-soft), transparent); padding: 16px 20px; margin-top: 26px; border-radius: 0 12px 12px 0; }
.note p { color: var(--muted); }
.note p:last-child { margin: 0; }
.layers { position: relative; display: grid; gap: 18px; }
.layers figcaption, .shot figcaption { font-size: .86em; color: var(--muted); margin: 10px 4px 2px; }
@media (min-width: 901px) {
  .layers { display: block; padding: 0 0 22% 0; }
  .layers .l2 { position: absolute; right: -4%; bottom: 2%; width: 62%; }
  .layers .l3 { position: absolute; left: -5%; bottom: -3%; width: 27%; }
  .layers .l1 { width: 92%; }
  .layers figcaption { display: none; }
  .anim .layers .shot { transform: translateY(calc((var(--v, .5) - .5) * var(--sp, 0) * 1px)); }
}

/* ---- Songs and privacy, sync ---- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.duo > div { border-top: 1px solid var(--line); padding-top: 26px; }
.duo h2 { font-size: clamp(30px, 3.6vw, 48px); }
#mac-songs { padding: clamp(36px, 5vw, 72px) 0; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

/* ---- Get Onbeat ---- */
.get { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.get > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 4px; }
.get > div.main { border-color: var(--brass); background: linear-gradient(160deg, #2c2412, var(--bg-2) 62%); }
.get h3 { font: 800 30px/1 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.get .btn { margin-top: auto; align-self: flex-start; }
.get ol { padding-left: 1.2em; margin: 0 0 16px; font-size: .95em; color: var(--muted); }
.get ol li { margin-bottom: 6px; }
.get ol b { color: var(--fg); }
@media (max-width: 960px) { .get { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq > * { max-width: 50em; margin-inline: auto; width: 100%; }
.faq > h2 { text-align: center; }
/* The questions in small groups, so they read as sections rather than one long list. */
.faq-group { margin-top: 34px; }
.faq-h { font: 800 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: .16em; color: var(--brass); margin: 0 0 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; font-size: 1.05em; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5em; color: var(--brass); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }

/* ---- The end, the footer ---- */
.end { text-align: center; overflow: hidden; }
.end::before { content: ""; position: absolute; left: 50%; bottom: -40%; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(217 164 65 / .2), transparent); pointer-events: none; }
.end h2 { font-size: clamp(48px, 8vw, 120px); }
.end .cta { justify-content: center; margin-top: 26px; position: relative; }
footer { border-top: 1px solid var(--line); background: #0d100f; padding: clamp(40px, 6vw, 72px) 0 36px; color: var(--muted); font-size: .95em; }
.foot { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px clamp(20px, 4vw, 56px); }
.foot-brand { display: grid; gap: 10px; align-content: start; }
.foot-brand p { margin: 0; max-width: 24em; }
.foot nav { display: grid; gap: 4px; align-content: start; }
.foot-h { font: 800 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--fg); margin: 6px 0 8px; }
.foot nav a { color: var(--muted); text-decoration: none; padding: 5px 0; }
.foot nav a:hover { color: var(--brass); }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-legal p { margin: 0; max-width: 60em; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* The 404 page */
.lost { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 40px 20px; gap: 16px; }
.lost .cta { justify-content: center; }

/* ---- One set of corners (the tokens are at the top) ---- */
.btn, .play, .chips button, .skip, .keys kbd, .legend-keys button, .paths li { border-radius: var(--r-ctl); }
.live, .pick, .get > div, .anim .step .card { border-radius: var(--r-card); }
.sheet, .legend, .shot, .note { border-radius: var(--r-pic); }
.shot img { border-radius: calc(var(--r-pic) - 6px); }
.shot.phone { border-radius: 32px; } .shot.phone img { border-radius: 24px; }
.note { border-left: 0; box-shadow: inset 3px 0 0 var(--brass); }

/* ---- Buttons with some depth: a lit top edge, a shaded bottom edge, a tight shadow and a soft one; they press in ---- */
.btn, .chips button, .lang { border: 1px solid #3a423f; background: linear-gradient(180deg, #2a302e, #1c201f); box-shadow: inset 0 1px 0 rgb(255 255 255 / .09), inset 0 -1px 0 rgb(0 0 0 / .4), 0 1px 2px rgb(0 0 0 / .5), 0 8px 18px -10px rgb(0 0 0 / .7); }
.btn:hover, .chips button:hover { border-color: #6c7571; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), inset 0 -1px 0 rgb(0 0 0 / .4), 0 2px 3px rgb(0 0 0 / .5), 0 12px 22px -10px rgb(0 0 0 / .8); }
.btn:active, .chips button:active, .play:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgb(0 0 0 / .45); }
.btn.primary, .play, .chips button[aria-pressed="true"], .lang [aria-current] { color: var(--on-brass); text-shadow: 0 1px 0 rgb(255 255 255 / .3); background: linear-gradient(180deg, #f3cd7a, #d9a441 48%, #c08a2a); }
.btn.primary, .play, .chips button[aria-pressed="true"] { border: 1px solid #8e6418; box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), inset 0 -2px 0 rgb(0 0 0 / .18), 0 1px 2px rgb(0 0 0 / .5), var(--brass-glow); }
.btn.primary:hover { border-color: #8e6418; box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), inset 0 -2px 0 rgb(0 0 0 / .18), 0 2px 3px rgb(0 0 0 / .5), var(--brass-glow-hover); }
.btn.primary:active, .play:active { box-shadow: inset 0 2px 5px rgb(0 0 0 / .35); }
.play:disabled { background: linear-gradient(180deg, #2a302e, #1c201f); border-color: #3a423f; color: var(--muted); text-shadow: none; box-shadow: inset 0 2px 4px rgb(0 0 0 / .4); }
.lang [aria-current] { box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 0 -2px 0 rgb(0 0 0 / .18); }

/* ---- Get Onbeat: what each version has ---- */
.compare { margin-top: clamp(26px, 4vw, 44px); overflow-x: auto; }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95em; }
.compare th, .compare td { text-align: left; padding: 13px 16px; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; font: 800 20px/1 var(--display); text-transform: uppercase; color: var(--fg); }
.compare tbody th { font-weight: 600; color: var(--fg); }
.compare td { color: var(--muted); }
.compare .yes { color: var(--fg); }
.compare .yes::before { content: ""; display: inline-block; width: 11px; height: 6px; border-left: 2.5px solid var(--brass); border-bottom: 2.5px solid var(--brass); transform: rotate(-45deg) translateY(-3px); margin-right: 9px; }
.compare td:nth-child(2), .compare th:nth-child(2) { background: rgb(217 164 65 / .06); }
