/* Drumroll website. The app's own style: white ground, heavy serif titles,
   grey tiles, glass for what floats, vermilion Play, orange for a note being hit. */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-opsz.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ground: #ffffff;
  --tile: #f4f4f4;
  --ink: #1a1a1a;
  --ink2: #6e6e6e;
  --faint: #a3a3a3;
  --hair: #e9e9e9;
  --play: #e5431a;
  --hit: #d96c12;
  --stage: #17181a;
  --serif: "Fraunces", ui-serif, "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --page: 1120px;
  --edge: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: "opsz" 40;
  letter-spacing: -0.022em;
  line-height: 1.04;
  text-wrap: balance;
}
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: calc(var(--page) + 2 * var(--edge)); margin: 0 auto; padding: 0 var(--edge); }

/* Top bar: glass, because it floats */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.top .wrap { display: flex; align-items: center; height: 60px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.brand img { width: 30px; height: 30px; }
.brand span { font-family: var(--serif); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; font-variation-settings: "opsz" 30; }
.top a.link { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink2); }
.top a.link:hover { color: var(--ink); }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
  font: 600 17px/1 var(--sans);
  height: 54px; padding: 0 26px; border-radius: 27px;
  transition: transform 0.15s ease;
}
.pill:active { transform: scale(0.97); }
.pill.small { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 18px; }

/* Hero */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); min-height: calc(100vh - 61px); min-height: calc(100svh - 61px); display: flex; align-items: center; }
.hero > .wrap { flex: 1; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(46px, 5.2vw, 70px); font-variation-settings: "opsz" 72; letter-spacing: -0.03em; line-height: 0.98; }
.hero .lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; color: var(--ink2); margin-top: 22px; max-width: 30em; }
.hero .cta { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero .cta small { font-size: 14px; color: var(--ink2); }

/* The playable score */
.demo { position: relative; margin-top: 96px; }
.demo-card {
  position: relative;
  background: #fff; border-radius: 30px; padding: 18px 16px 14px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04), 0 28px 60px -18px rgba(0, 0, 0, 0.22);
}
.demo-head { display: flex; align-items: center; gap: 12px; padding: 0 6px 10px; }
.demo-head .name { font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; font-variation-settings: "opsz" 30; margin-right: auto; }
.ring { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 9px; border-radius: 17px; background: var(--tile); font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; transition: opacity 0.4s ease; }
.ring svg { width: 18px; height: 18px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2.6; }
.ring .track { stroke: #d9d9d9; }
.ring .arc { stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset 0.3s ease; }
.ring.done { opacity: 0; }

.wave { display: flex; align-items: center; gap: 2px; height: 30px; margin: 0 6px 12px; position: relative; }
.wave i { flex: 1; min-width: 1px; border-radius: 1px; background: #d6d6d6; transition: background-color 0.2s ease; }
.wave i.on { background: var(--ink); }
.wave .pos { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--hit); left: 0; opacity: 0; }
.playing .wave .pos { opacity: 1; }

.line { background: var(--tile); border-radius: 18px; padding: 4px 6px 2px; margin-top: 8px; }
.line svg { width: 100%; height: auto; overflow: visible; }
.line .staff { stroke: #1a1a1a; stroke-width: 1; }
.line .barline { stroke: #1a1a1a; stroke-width: 1.3; }
.line .n { transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.3); transform-box: fill-box; transform-origin: center; }
.line .bar.unwritten .n { opacity: 0; transform: translateY(5px); }
.line .head { fill: #1a1a1a; }
.line .x, .line .stem { stroke: #1a1a1a; stroke-linecap: round; }
.line .beam { fill: #1a1a1a; }
.line .hitnow .head, .line .hitnow.beam { fill: var(--hit); }
.line .hitnow .x, .line .hitnow .stem { stroke: var(--hit); }
.line .count { font: 600 9px var(--sans); fill: #1a1a1a; text-anchor: middle; }
.line .count.and { fill: var(--faint); font-weight: 500; }
.line .count.now { fill: var(--hit); }
.line .barno { font: 500 8px var(--sans); fill: var(--faint); }
.line .timesig { font-family: var(--serif); font-weight: 900; font-size: 21.5px; fill: #1a1a1a; text-anchor: middle; }
.line .nowline { stroke: var(--hit); stroke-width: 2; stroke-linecap: round; opacity: 0; }
.line .nowdot { fill: var(--hit); opacity: 0; }
.playing .line.active .nowline, .playing .line.active .nowdot { opacity: 1; }

.transport {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 8px 8px 10px;
  background: rgba(244, 244, 244, 0.9); border-radius: 34px;
}
.transport button { font: inherit; color: inherit; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 66px; height: 52px; padding: 0 12px; border-radius: 26px; background: transparent; transition: background-color 0.15s ease, transform 0.12s ease; }
.tbtn:active { transform: scale(0.95); }
.tbtn b { font: 700 17px/1 var(--sans); font-variant-numeric: tabular-nums; }
.tbtn span { font: 500 10.5px/1 var(--sans); color: var(--ink2); }
.tbtn svg { width: 22px; height: 22px; }
.tbtn[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.transport .hint { margin-left: auto; font-size: 14px; color: var(--ink2); padding-right: 6px; transition: opacity 0.3s ease; }
.playing .transport .hint, .played .transport .hint { opacity: 0; }
.playbtn { width: 56px; height: 56px; border-radius: 50%; background: var(--play); display: grid; place-items: center; flex: none; box-shadow: 0 6px 14px -4px rgba(229, 67, 26, 0.55); transition: transform 0.12s ease; }
.playbtn:active { transform: scale(0.93); }
.playbtn svg { width: 24px; height: 24px; fill: #fff; }
.playbtn .pause { display: none; }
.playing .playbtn .pause { display: block; }
.playing .playbtn .play { display: none; }
.ready .playbtn { animation: nudge 0.9s ease 1; }
@keyframes nudge { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.12); } 60% { transform: scale(0.98); } }

.mascot { position: absolute; right: -31px; top: -178px; width: 250px; height: 250px; pointer-events: none; }
.mascot img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.18s ease; transform-origin: 50% 71%; }
.mascot img.on { opacity: 1; }
.mascot.pop img.on { animation: pose 0.34s cubic-bezier(0.3, 1.5, 0.5, 1) 1; }
@keyframes pose { 0% { transform: scale(0.86, 1.1); } 100% { transform: scale(1); } }
.playing .mascot img.on, .bop .mascot img.on { animation: bop var(--beat, 0.625s) cubic-bezier(0.3, 0, 0.3, 1) infinite; }
@keyframes bop { 0% { transform: scale(1.04, 0.95); } 30% { transform: scale(0.98, 1.03) translateY(-2px); } 100% { transform: scale(1.04, 0.95); } }

/* ---- The scroll story ------------------------------------------------------
   Panels stick to the top of the screen; the next one slides up over the last.
   The empty .hold after a chapter is the scrolling that moves it (story.js). */
.story { overflow-x: clip; }
.panel { position: sticky; top: 0; background: var(--ground); }
.panel.rest, .panel.flow { position: relative; }
.panel.ch, .panel.rest { border-radius: 32px 32px 0 0; box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05), 0 -26px 60px -30px rgba(0, 0, 0, 0.3); }
.panel > .wrap { transform-origin: 50% 30%; transform: scale(calc(1 - var(--cover, 0) * 0.045)); opacity: calc(1 - var(--cover, 0) * 0.6); }
.hold { height: calc(var(--len, 2) * 100vh); pointer-events: none; }

.cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: none; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink2); text-decoration: none; opacity: calc(1 - var(--cover, 0) * 5); }
.js .cue { display: inline-flex; }
.cue svg { width: 14px; height: 14px; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }

/* Chapter marks in the top bar */
.chapters { position: absolute; left: 50%; top: 0; height: 100%; transform: translateX(-50%); display: none; align-items: center; gap: 6px; }
.js .chapters { display: flex; }
.chapters a { display: block; padding: 14px 0; }
.chapters i { display: block; width: 44px; height: 3px; border-radius: 2px; background: rgba(0, 0, 0, 0.12); position: relative; overflow: hidden; }
.chapters i::after { content: ""; position: absolute; inset: 0; background: var(--ink); border-radius: 2px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.top { transition: background-color 0.25s ease, color 0.25s ease; }
.top .wrap { position: relative; }
.top.on-dark { background: rgba(23, 24, 26, 0.72); border-bottom-color: rgba(255, 255, 255, 0.08); color: #fff; }
.top.on-dark .brand img { filter: invert(1) hue-rotate(180deg); }
.top.on-dark a.link { color: rgba(255, 255, 255, 0.66); }
.top.on-dark .pill { background: #fff; color: var(--ink); }
.top.on-dark .chapters i { background: rgba(255, 255, 255, 0.2); }
.top.on-dark .chapters i::after { background: #fff; }

.ch { min-height: 100vh; min-height: 100svh; display: flex; background: var(--tile); }
.ch > .wrap { flex: 1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: 76px; padding-bottom: 32px; }
.ch h2 { font-size: clamp(32px, 3.9vw, 54px); font-variation-settings: "opsz" 60; letter-spacing: -0.026em; line-height: 1; }
.ch.dark { background: var(--stage); color: #fff; }
.ch.dark .mascot img { filter: invert(1) hue-rotate(180deg); }
.stage { position: relative; margin-top: 96px; }
.stage-card { color: var(--ink); }

.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.steps li { position: relative; padding-left: 42px; color: #9a9a9a; transition: color 0.25s ease; }
.steps li::before { content: attr(data-n); position: absolute; left: 0; top: 0; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--sans); background: #e3e3e3; color: #8a8a8a; transition: background-color 0.25s ease, color 0.25s ease; }
.steps b { display: block; font: 600 19px/1.4 var(--sans); }
.steps span { display: block; font-size: 15px; line-height: 1.4; }
.steps li.done { color: #8a8a8a; }
.steps li.on { color: var(--ink2); }
.steps li.on b { color: var(--ink); }
.steps li.on::before { background: var(--ink); color: #fff; }

.beats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; font: 500 19px/1.35 var(--sans); max-width: 21em; }
.beats li { color: #a0a0a0; transition: color 0.25s ease; }
.beats li.on { color: var(--ink); }
.dark .beats li { color: rgba(255, 255, 255, 0.36); }
.dark .beats li.on { color: #fff; }

/* 1. The song comes apart and is written */
.song-head { display: flex; align-items: center; gap: 12px; padding: 0 6px 12px; }
.sleeve { width: 38px; height: 38px; border-radius: 9px; flex: none; background: linear-gradient(145deg, #4b4c52, #232427 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 2px 5px rgba(0, 0, 0, 0.18); }
.song-head .name { font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; font-variation-settings: "opsz" 30; margin-right: auto; }
.status { font: 600 14px/1 var(--sans); color: var(--ink2); background: var(--tile); height: 34px; padding: 0 13px; border-radius: 17px; display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color 0.25s ease, color 0.25s ease; }
.ready .status { background: var(--play); color: #fff; }
.line.plain { background: none; padding: 0; margin: 0; border-radius: 0; }
.line.byslot .n { opacity: 0; transform: translateY(-16px); }
.line.byslot .n.w { opacity: 1; transform: none; }
.strips rect { fill: #d6d6d6; transition: fill 0.2s ease; }
.strips .mix rect.on { fill: var(--ink); }
.strips .band rect { fill: #bdbdbd; }
.strips .drum rect { fill: var(--ink); }
.strips .drum rect.hot { fill: var(--hit); transition: none; }
.strips text { font: 600 9.5px var(--sans); fill: var(--ink2); }
.strips .band, .strips .drum { opacity: 0; }
.scan { opacity: 0; transition: opacity 0.2s ease; }
.scan.on { opacity: 1; }
.scan line { stroke: var(--hit); stroke-width: 1.6; stroke-linecap: round; }
.scan circle { fill: var(--hit); }

/* 2. Slow it down and loop */
.ch-practice .stage-card { box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7); }
.ch-practice .line { transition: opacity 0.3s ease, background-color 0.3s ease; }
.ch-practice .line:first-child { margin-top: 0; }
.line.dim { opacity: 0.32; }
.line.looped { background: #fbeadb; }
span.tbtn, span.playbtn { cursor: default; }
.ch-practice .transport .playbtn { margin-left: auto; }
.ch-practice .transport .playbtn svg { display: block; }
.tbtn.lit { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.tbtn.lit svg { color: var(--hit); }
.tbtn.pop { animation: chip 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) 1; }
@keyframes chip { 0% { transform: scale(0.84); } 100% { transform: scale(1); } }

/* 3. The mix */
.mix { padding: 20px 20px 18px; }
.mix h3 { text-align: center; font-size: 22px; }
.stems { position: relative; display: grid; gap: 6px; margin-top: 14px; }
.stem { display: flex; align-items: center; gap: 10px; height: 30px; }
.stem > span { flex: 0 0 78px; font: 600 12px/1 var(--sans); color: var(--ink2); }
.stem .bars { flex: 1; height: 100%; display: flex; align-items: center; gap: 2px; position: relative; }
.stem .bars::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #dedede; }
.stem .bars i { flex: 1; min-width: 1px; min-height: 1px; border-radius: 1px; background: var(--ink); position: relative; transform: scaleY(var(--lvl, 1)); }
.stem.band .bars i { background: #9c9c9c; }
.stem.drums { --lvl: var(--drums, 1); }
.stem.click { --lvl: var(--click, 0); }
.stem.drums > span { opacity: calc(0.4 + var(--drums, 1) * 0.6); }
.stem.click > span { opacity: calc(0.4 + var(--click, 0) * 0.6); }
.stems .head { position: absolute; left: 88px; right: 0; top: -3px; bottom: -3px; }
.stems .head i { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--hit); animation: sweep 5s linear infinite paused; }
.mix.live .stems .head i { animation-play-state: running; }
@keyframes sweep { to { left: 100%; } }
.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--tile); border-radius: 14px; padding: 3px; margin-top: 16px; font: 600 13px/1 var(--sans); text-align: center; }
.seg span { position: relative; padding: 10px 0; color: var(--ink2); transition: color 0.2s ease; }
.seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 11px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); transition: transform 0.32s cubic-bezier(0.3, 1.2, 0.4, 1); }
.mix[data-seg="1"] .seg .thumb { transform: translateX(100%); }
.mix[data-seg="0"] .seg span:nth-of-type(1), .mix[data-seg="1"] .seg span:nth-of-type(2) { color: var(--ink); }
.faders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.fader { display: grid; justify-items: center; gap: 9px; font: 600 12px/1 var(--sans); color: var(--ink2); text-align: center; --lvl: 0; }
.fader .track { position: relative; width: 100%; max-width: 78px; height: 150px; border-radius: 16px; background: var(--tile); }
.fader .track::before { content: ""; position: absolute; left: 36%; right: 36%; top: 15px; bottom: 15px; background: repeating-linear-gradient(to bottom, #cfcfcf 0 1.5px, transparent 1.5px 12px); }
.fader .knob { position: absolute; left: 17%; right: 17%; height: 7px; border-radius: 3.5px; background: var(--ink); bottom: calc(11px + var(--lvl) * (100% - 29px)); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.fader.band { --lvl: 0.86; }
.fader.drums { --lvl: calc(var(--drums, 1) * 0.86); }
.fader.click { --lvl: calc(var(--click, 0) * 0.6); }

/* No pinning: reduced motion, or a screen too short to hold a chapter */
.still .panel { position: relative; }
.still .hold, .still .cue, .still .chapters { display: none; }
.still .ch { min-height: 0; }
.still .ch > .wrap { padding-top: 56px; padding-bottom: 64px; }

/* Tiles */
.tiles { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 110px); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; overflow: hidden; background: var(--tile); border-radius: 34px; min-height: 560px; display: flex; }
.tile.w7 { grid-column: span 7; }
.tile.w5 { grid-column: span 5; }
.tile .words { padding: 40px 40px 0; position: relative; z-index: 1; }
.tile h2 { font-size: clamp(28px, 3vw, 38px); }
.tile p { color: var(--ink2); margin-top: 12px; max-width: 24em; }
.tile.side { align-items: stretch; }
.tile.side .words { flex: 1 1 0; padding: 44px 0 44px 44px; align-self: center; }
.tile.side .shot { flex: 0 0 auto; margin: 44px 44px -150px 28px; align-self: flex-start; }
.tile.down { flex-direction: column; }
.tile.down .shot { margin: 34px auto -190px; }
.tile.up { flex-direction: column-reverse; }
.tile.up .words { padding: 0 40px 40px; }
.tile.up .shot { margin: -230px auto 30px; }
.tile.dark { background: linear-gradient(180deg, #242528, var(--stage)); color: #fff; }
.tile.dark p { color: rgba(255, 255, 255, 0.62); }

.tile .shot { translate: 0 calc(var(--par, 0) * 34px); }
.shot { width: 284px; border-radius: 48px; padding: 9px; background: #1a1a1a; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px #3a3a3c; }
.shot img { border-radius: 39px; width: 100%; height: auto; aspect-ratio: 1320 / 2868; background: #fff; }
.tile.dark .shot { background: #000; box-shadow: 0 30px 60px -24px #000, inset 0 0 0 1.5px #4a4b50; }

.stack { grid-column: span 5; display: grid; gap: 20px; }
.tile.text { min-height: 0; flex-direction: column; justify-content: flex-end; padding: 40px; }
.tile.text .formats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: auto; padding-bottom: 28px; }
.tile.text .formats span { background: #fff; border-radius: 12px; padding: 9px 13px; font: 600 14px/1 var(--sans); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.tile.text p { margin-top: 10px; }

/* Free and Unlimited */
.plans { padding: 0 0 clamp(56px, 8vw, 110px); }
.plans h2.big, .faq h2.big, .tiles h2.big { font-size: clamp(34px, 4.4vw, 56px); font-variation-settings: "opsz" 60; margin-bottom: 28px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { border-radius: 34px; padding: 40px; background: var(--tile); }
.plan h3 { font-size: 30px; }
.plan .sub { color: var(--ink2); margin-top: 8px; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 13px; }
.plan li { padding-left: 30px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.36em; width: 15px; height: 8px; border-left: 2.4px solid currentColor; border-bottom: 2.4px solid currentColor; transform: rotate(-45deg); border-radius: 1px; }
.plan.unlimited {
  color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(100deg, #6b3dfb, #b62efb 30%, #f2408c 58%, #fd7b29 82%, #feda03);
}
.plan.unlimited > * { max-width: 68%; position: relative; }
.plan.unlimited .sub { color: rgba(255, 255, 255, 0.88); }
.plan.unlimited .price { margin-top: 28px; font-size: 15px; color: rgba(255, 255, 255, 0.9); }
.plan.unlimited .trial { position: absolute; right: 28px; bottom: 28px; max-width: none; background: var(--ink); color: #fff; border-radius: 22px; height: 44px; padding: 0 20px; display: inline-flex; align-items: center; font: 600 15px/1 var(--sans); text-decoration: none; }

/* Questions */
.faq { padding: 0 0 clamp(56px, 8vw, 110px); }
.faq .wrap { max-width: calc(820px + 2 * var(--edge)); }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-of-type { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 22px 0; font: 600 19px/1.3 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; margin-left: auto; flex: none; width: 11px; height: 11px; border-right: 2.2px solid var(--ink2); border-bottom: 2.2px solid var(--ink2); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { color: var(--ink2); padding: 0 40px 24px 0; max-width: 40em; }

/* Last call */
.last { padding: 0 0 clamp(64px, 9vw, 120px); text-align: center; }
.last img { width: 320px; height: 320px; margin: -50px auto -84px; transform-origin: 50% 71%; animation: bop 0.625s cubic-bezier(0.3, 0, 0.3, 1) infinite; }
.last h2 { transform: scale(calc(0.84 + var(--in, 1) * 0.16)); transform-origin: 50% 100%; font-size: clamp(44px, 6.6vw, 88px); font-variation-settings: "opsz" 72; letter-spacing: -0.03em; }
.last p { color: var(--ink2); font-size: 19px; margin: 16px auto 28px; max-width: 26em; }

footer { border-top: 1px solid var(--hair); padding: 28px 0 40px; font-size: 14px; color: var(--ink2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
footer .who { margin-right: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Reading pages: privacy and support */
.read { padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 100px); }
.read .wrap { max-width: calc(700px + 2 * var(--edge)); }
.read h1 { font-size: clamp(40px, 5.6vw, 64px); font-variation-settings: "opsz" 60; letter-spacing: -0.028em; }
.read .sub { color: var(--ink2); margin-top: 12px; }
.read h2 { font-size: 24px; margin: 44px 0 10px; letter-spacing: -0.015em; line-height: 1.15; }
.read p { margin-top: 12px; line-height: 1.6; }
.read ul { padding-left: 1.2em; margin: 12px 0 0; line-height: 1.6; }
.read li + li { margin-top: 6px; }
.read .box { background: var(--tile); border-radius: 24px; padding: 26px 28px; margin-top: 28px; }
.read .box h2 { margin-top: 0; }
.read a { text-underline-offset: 3px; }
.read .todo { background: #fff3c4; border-radius: 4px; padding: 0 4px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { align-items: flex-start; }
  .demo { margin-top: 110px; }
  .chapters { display: none !important; }
  .ch > .wrap { grid-template-columns: 1fr; align-content: center; gap: 0; padding-top: 72px; padding-bottom: 20px; }
  .ch .words { max-width: 560px; }
  .stage { max-width: 560px; margin-top: 78px; }
  .ch .mascot { width: 170px; height: 170px; top: -121px; right: -18px; }
  .steps { margin-top: 14px; min-height: 4.7em; display: block; }
  .beats { margin-top: 14px; min-height: 2.8em; display: block; }
  .steps li, .beats li { display: none; }
  .steps li.on, .beats li.on { display: block; }
  .still .steps li, .still .beats li { display: block; margin-bottom: 10px; }
  .steps b { font-size: 17px; }
  .beats { font-size: 17px; }
  .tile.w7, .tile.w5, .stack { grid-column: 1 / -1; }
  .tile { min-height: 0; }
  .tile.side { flex-direction: column; }
  .tile.side .words { padding: 36px 30px 0; align-self: stretch; flex: none; }
  .tile.side .shot, .tile.down .shot { margin: 30px auto -200px; align-self: center; }
  .tile .words { padding: 36px 30px 0; }
  .tile.up .words { padding: 0 30px 34px; }
  .tile.text { padding: 34px 30px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan { padding: 34px 30px; }
  .plan.unlimited > * { max-width: 100%; }
  .plan.unlimited .trial { position: static; margin-top: 26px; }
  .plan.unlimited { background: linear-gradient(150deg, #6b3dfb, #b62efb 34%, #f2408c 62%, #fd7b29 86%, #feda03); }
}
@media (max-width: 520px) {
  footer .who { flex-basis: 100%; }
  body { font-size: 16px; }
  .top a.link { display: none; }
  .demo-card { padding: 16px 10px 10px; border-radius: 26px; }
  .mascot { width: 200px; height: 200px; top: -142px; right: -26px; }
  .ch .mascot { width: 140px; height: 140px; top: -100px; right: -14px; }
  .stage { margin-top: 80px; }
  .ch h2 { font-size: 30px; }
  .mix { padding: 16px 14px 14px; }
  .fader .track { height: 104px; }
  .stem { height: 24px; }
  .stem > span { flex-basis: 68px; font-size: 11px; }
  .stems .head { left: 78px; }
  .fader { font-size: 11px; }
  .song-head .name { font-size: 19px; }
  .status { font-size: 12.5px; height: 30px; padding: 0 11px; }
  .tbtn { min-width: 56px; padding: 0 8px; }
  .transport .hint { display: none; }
  .playbtn { margin-left: auto; }
  .shot { width: 250px; border-radius: 43px; padding: 8px; }
  .shot img { border-radius: 35px; }
  .faq summary { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* Until the app is on the App Store: the buttons are labels, not links. */
.soon { cursor: default; user-select: none; }
.pill.soon:active { transform: none; }
