@font-face { font-family: "Inter"; src: url("fonts/Inter-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f5f5f7; --card: #ffffff; --card-2: #e8e8ed; --inset: #f5f5f7; --line: #e8e8ed; --line-2: #d2d2d7;
  --ink: #1d1d1f; --text: #424245; --soft: #6e6e73; --dim: #6e6e73; --accent: #e2531f; --accent-rgb: 226, 83, 31; --link: #c2410c; --ember: #e2531f; --saffron: #b9770e; --rose: #d63a5a; --plum: #7a4fd6;
  --pill: #1d1d1f; --pill-ink: #ffffff; --pill-hover: #000000; --nav: rgba(250, 250, 252, 0.8); --nav-line: rgba(0, 0, 0, 0.08);
  --foot: #f5f5f7; --hair: rgba(0, 0, 0, 0.08); --plan-top: #ffffff; --plan-bottom: #fafafc;
  --shot-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 24px 50px -24px rgba(0, 0, 0, 0.35); --glow: rgba(226, 83, 31, 0.3);

  --radius: 28px;
  --col: 980px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}
/* Dark: chosen with the switch in the top bar, and remembered. The site opens light. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --card: #1d1d1f;
  --card-2: #2c2c2e;
  --inset: #111113;
  --line: #2c2c2e;
  --line-2: #424245;
  --ink: #f5f5f7;
  --text: #d2d2d7;
  --soft: #a1a1a6;
  --dim: #86868b;
  --accent: #ff6b3d;
  --accent-rgb: 255, 107, 61;
  --link: #ff8a63;
  --ember: #ff6b3d;
  --saffron: #f2a93b;
  --rose: #ff5c7a;
  --plum: #b388ff;
  --pill: #f5f5f7;
  --pill-ink: #000000;
  --pill-hover: #ffffff;
  --nav: rgba(22, 22, 23, 0.8);
  --nav-line: rgba(255, 255, 255, 0.08);
  --foot: #161617;
  --hair: rgba(255, 255, 255, 0.1);
  --plan-top: #1d1d1f;
  --plan-bottom: #0b0b0c;
  --shot-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 50px -24px rgba(0, 0, 0, 0.8);
  --glow: rgba(255, 255, 255, 0.55);

}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  /* The system face on a Mac; Inter everywhere else. */
  font: 400 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1, h2, h3, h4, .amount, .brand { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; }
button { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
::selection { background: rgba(var(--accent-rgb), 0.3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--col), calc(100% - 44px)); margin: 0 auto; }
.wrap.narrow { width: min(720px, calc(100% - 44px)); }
.center { text-align: center; }
.nb { white-space: nowrap; }

/* ---------- buttons ---------- */
.pill { display: inline-block; font-size: 17px; font-weight: 500; color: var(--pill-ink); background: var(--pill); padding: 11px 22px; border-radius: 999px; white-space: nowrap; transition: background 0.2s, transform 0.2s var(--ease); }
.pill:hover { background: var(--pill-hover); transform: scale(1.03); }
.pill.small { font-size: 12px; padding: 5px 12px; }

/* ---------- the bar across the top ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--nav-line); }
.nav-in { width: min(var(--col), calc(100% - 44px)); margin: 0 auto; height: 52px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 600; margin-right: auto; }
.brand img { border-radius: 6px; }
.nav nav { display: flex; gap: 24px; font-size: 12px; }
.nav nav a { opacity: 0.8; transition: opacity 0.2s; }
.nav nav a:hover { opacity: 1; }

/* ---------- the hero, which is the instrument ---------- */
.stage { position: relative; padding: 40px 0 30px; isolation: isolate; overflow: hidden; text-align: center; }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.stage-inner { width: min(var(--col), calc(100% - 44px)); margin: 0 auto; }
h1 { margin: 0; font-weight: 600; font-size: clamp(36px, 4.7vw, 56px); line-height: 1.07; letter-spacing: -0.02em; text-wrap: balance; }
h1 em { display: inline-block; transition: text-shadow 0.5s, transform 0.5s var(--ease); }
h1 em.hit { text-shadow: 0 0 34px var(--glow); transform: translateY(-2px); transition-duration: 0.06s; }

.lede { margin: 12px auto 0; max-width: 620px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.38; font-weight: 600; letter-spacing: -0.012em; text-wrap: pretty; }
.invite { margin: 22px auto 0; font-size: 17px; color: var(--dim); text-align: center; }
.invite strong { color: var(--ink); font-weight: 600; }

/* --mac-w is set by site.js to the widest Mac whose trackpad still fits on screen. */
.mac { width: min(var(--mac-w, 1080px), calc(100% - 44px)); margin: 16px auto 0; text-align: left; }
.lane-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; min-height: 34px; }
.seg { display: inline-flex; padding: 2px; background: var(--card); border-radius: 999px; }
.seg button { font-size: 13px; font-weight: 500; color: var(--soft); background: none; border: 0; padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: color 0.2s, background 0.2s; }
.seg button[aria-selected="true"] { color: var(--pill-ink); background: var(--pill); }
.score { margin: 0; font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; }
.score b { color: var(--ink); font-weight: 600; }
.ghost { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--ink); background: var(--card); border: 0; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.ghost:hover { background: var(--card-2); }
.lane {
  position: relative; height: clamp(100px, 13vh, 122px); border-radius: 22px 22px 0 0; overflow: hidden; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
  background: #1d1d1f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); transition: box-shadow 0.3s, height 0.3s var(--ease);
}
/* In free play the screen only names the notes, so it can be a slim strip. */
.free .lane { height: 64px; }
.lane:hover, .lane:focus-visible { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.lane canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pads { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); }
.pads[hidden] { display: none; }
.pad { display: flex; flex-direction: row; justify-content: center; align-items: baseline; padding-top: 20px; gap: 7px; border-right: 1px solid rgba(255, 255, 255, 0.07); font-weight: 600; font-size: 17px; color: #a1a1a6; transition: background 0.25s, color 0.1s; }
.pad:last-child { border-right: 0; }
.pad small { font-weight: 500; font-size: 12px; color: #86868b; }
.pad:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.pad.on { color: #000; background: linear-gradient(180deg, rgba(245, 245, 247, 0.3), #f5f5f7); transition-duration: 0.03s; }
.pad.on small { color: #3a3a3c; }
.lane-foot { margin: 8px auto 0; font-size: 14px; color: var(--dim); text-align: center; }
.status { margin: 18px 0 0; display: flex; justify-content: center; align-items: center; gap: 9px; font-size: 14px; color: var(--dim); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.playing .status .dot { background: var(--accent); animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6); } 70% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }

/* ---------- sections ---------- */
.section { padding: clamp(84px, 11vw, 150px) 0 0; }
h2 { margin: 0 0 clamp(28px, 4vw, 48px); font-weight: 600; font-size: clamp(32px, 5vw, 56px); line-height: 1.07; letter-spacing: -0.015em; text-wrap: balance; }
h3 { margin: 0 0 22px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -0.012em; width: fit-content; }
h4 { margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.17; }
/* Feature cards: a small coloured name, then the sentence. Solid colours, no gradient lettering. */
.label, .card .label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--tone, var(--ink)); }
.label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.a-ember { --tone: var(--ember); } .a-saffron { --tone: var(--saffron); } .a-rose { --tone: var(--rose); } .a-plum { --tone: var(--plum); } .a-ink { --tone: var(--soft); }
.card h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.14; margin-bottom: 16px; max-width: 460px; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--card); border-radius: var(--radius); padding: 40px; overflow: hidden; display: flex; flex-direction: column; }
.card p { margin: 0 0 14px; color: var(--dim); max-width: 400px; }
/* Screenshots sit whole inside their card, with their own clean corners. */
.card > img, .shot img { width: 100%; border-radius: 12px; box-shadow: var(--shot-shadow); }
.card > img { margin-top: auto; }
.card > p:last-of-type { margin-bottom: 30px; }
.chiprow { display: flex; gap: 10px; margin-bottom: 20px; }
.chip { width: 40px; height: 40px; border-radius: 10px; background: var(--card-2); position: relative; box-shadow: inset 0 0 0 1px var(--hair); }
.chip::after { content: ""; position: absolute; inset: 11px; border-radius: 4px; }
.c-beat::after { background: radial-gradient(circle, #ff9f0a 0 3px, transparent 3.5px) 0 0 / 9px 9px; }
.c-chords::after { background: repeating-linear-gradient(90deg, #6aa6ff 0 3px, transparent 3px 6px); }
.c-melody::after { inset: 18px 9px; border-radius: 3px; background: #ff7ad1; box-shadow: 0 -7px 0 -1px rgba(255, 122, 209, 0.5), 0 7px 0 -1px rgba(255, 122, 209, 0.5); }
.c-bass::after { inset: 15px 10px; border-radius: 6px; background: #bf7cff; }

.card.wide { padding: 40px; }
.ai-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-bottom: 36px; }
.ai-text p:last-child { margin-bottom: 0; }
.shot { margin: 0; }
.shot figcaption { margin-top: 14px; font-size: 14px; color: var(--dim); text-align: center; }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; color: var(--dim); }
.facts b { display: block; color: var(--ink); font-weight: 600; }
.card.wide + .card.wide { margin-top: 20px; }
.composer { margin: 0; }
.bubble { margin: 0 0 12px auto; width: fit-content; max-width: 94%; min-height: 42px; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--card-2); color: var(--ink); font-size: 15px; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.16em; background: var(--ink); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.result { padding: 16px; border-radius: 16px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--hair); opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.6s var(--ease); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.card-top strong { font-size: 17px; color: var(--ink); }
.card-top span { font-size: 12px; color: var(--dim); }
.result dl { margin: 0; display: grid; gap: 7px; font-size: 14px; }
.row { display: grid; grid-template-columns: 62px 1fr; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s var(--ease); }
.row dt { font-weight: 600; } .row dd { margin: 0; color: var(--text); }
.row.beat dt { color: #ff9f0a; } .row.chords dt { color: #6aa6ff; } .row.melody dt { color: #ff7ad1; } .row.bass dt { color: #bf7cff; } .row.shape dt { color: var(--dim); }
.card .card-note { margin: 12px 0 0; font-size: 12px; color: var(--dim); max-width: none; opacity: 0; transition: opacity 0.6s 0.9s; }
.composer.made .result, .composer.made .row, .composer.made .card-note { opacity: 1; transform: none; }
.composer.made .row:nth-child(1) { transition-delay: 0.15s; } .composer.made .row:nth-child(2) { transition-delay: 0.3s; } .composer.made .row:nth-child(3) { transition-delay: 0.45s; }
.composer.made .row:nth-child(4) { transition-delay: 0.6s; } .composer.made .row:nth-child(5) { transition-delay: 0.75s; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.card.small { padding: 28px; }
.card.small p, .card.small p:last-of-type { margin: 0; max-width: none; }

/* ---------- price ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--plan-top), var(--plan-bottom)); box-shadow: inset 0 0 0 1px var(--hair); }
.plan-name { margin: 0 0 14px; font-size: 17px; font-weight: 600; }
.amount { margin: 0 0 14px; font-size: 28px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.15; }
.amount s { font-size: 19px; font-weight: 400; color: var(--dim); margin-left: 6px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--dim); font-weight: 600; line-height: 1.3; }
.plan .fine { margin: 16px 0 0; font-size: 12px; color: var(--dim); }
.plans + .center { margin: 44px 0 0; }

/* ---------- how it works ---------- */
.card.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; padding: 44px 40px; }
.steps .num { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; font-size: 17px; font-weight: 600; border: 2px solid var(--ink); border-radius: 50%; }
.steps p { margin: 0; }

/* ---------- questions ---------- */
details { border-bottom: 1px solid var(--line-2); }
summary { list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 13px; height: 13px; margin-top: -11px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform 0.3s var(--ease), margin 0.3s; }
details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
details p { margin: 0 0 28px; max-width: 700px; color: var(--soft); }

/* ---------- footer ---------- */
.foot { margin-top: clamp(84px, 11vw, 150px); padding: 22px 0 28px; background: var(--foot); border-top: 1px solid var(--nav-line); font-size: 12px; color: var(--dim); }
.foot p { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 30px; align-items: center; }
.foot nav { display: flex; gap: 22px; color: var(--text); }
.foot nav a:hover { text-decoration: underline; }

/* ---------- privacy and support ---------- */
.page { padding: 70px 0 20px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); }
.page .dated { margin: 14px 0 40px; color: var(--dim); font-size: 14px; }
.page h2 { font-size: 24px; letter-spacing: -0.01em; line-height: 1.2; margin: 44px 0 10px; }
.page p, .page li { color: var(--text); }
.page ul { padding-left: 20px; display: grid; gap: 6px; }
.page a { color: var(--link); }
.page a:hover { text-decoration: underline; }
.page .lead { font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.38; text-wrap: pretty; }
.page .box { margin: 26px 0; padding: 24px 28px; border-radius: 20px; background: var(--card); }
.page .box p { margin: 0; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .cards, .ai-top, .duo, .plans, .card.steps { grid-template-columns: 1fr; }
  .card, .card.wide { padding: 28px 24px; }
  .ai-top { gap: 24px; margin-bottom: 26px; }
  .card.steps { gap: 30px; padding: 32px 28px; }
  .lede { margin-top: 26px; }
  .stage { padding-top: 54px; }
}
@media (max-width: 560px) {
  .lane-head { flex-wrap: wrap; }
  .pad small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status .dot, .k.play { animation: none; }
  .result, .row, .card .card-note { opacity: 1; transform: none; transition: none; }
}


/* ---------- the Mac under the screen: its lit keys and its trackpad both play. Its glow is blue, like a Mac's own highlight; the rest of the site uses ember. ---------- */
/* Sized from the Mac's own width, so nothing squashes at any screen size. Keys are a little wider than
   tall, and the trackpad is over half the keyboard's width and 1.6 times as wide as it is tall. */
.deck { container-type: inline-size; position: relative; overflow: hidden; padding: 0 5.2% 0; border-radius: 0 0 34px 34px; background: linear-gradient(180deg, #d8d9de 0%, #cdced3 55%, #bfc0c6 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 50px 90px -40px rgba(0, 0, 0, 0.95); }
.kb { --key: calc((100cqw - 94px) / 14.6 * 0.78); margin-top: calc(var(--key) * -0.55); padding: 8px; display: grid; gap: 6px; background: #0b0b0c; border-radius: 0 0 12px 12px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55); }
.kb .r { display: flex; gap: 6px; }
.k { flex: 1 1 0; min-width: 0; height: var(--key); display: grid; place-items: center; border-radius: 7px; font-size: 14px; font-weight: 500; color: #d8d8dd; background: linear-gradient(180deg, #252528, #17171a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 1px 0 rgba(0, 0, 0, 0.8); user-select: none; -webkit-user-select: none; }
.k.m { place-items: end start; padding: 0 0 7px 8px; font-size: 10px; font-weight: 400; color: #b7b7bd; }
.k.m.r { place-items: end end; padding: 0 8px 6px 0; }
.k.a { font-size: 9px; }
.k.play { color: #fff; font-weight: 600; cursor: pointer; pointer-events: auto; background: linear-gradient(180deg, #2d3340, #1b1f29); box-shadow: inset 0 0 0 1.5px rgba(41, 151, 255, 0.85), 0 0 16px -2px rgba(41, 151, 255, 0.55); animation: lit 3.2s var(--ease) infinite; transition: transform 0.06s, background 0.08s, color 0.08s; }
.k.play:nth-child(3) { animation-delay: 0.09s; } .k.play:nth-child(4) { animation-delay: 0.18s; } .k.play:nth-child(5) { animation-delay: 0.27s; } .k.play:nth-child(6) { animation-delay: 0.36s; }
.k.play:nth-child(7) { animation-delay: 0.45s; } .k.play:nth-child(8) { animation-delay: 0.54s; } .k.play:nth-child(9) { animation-delay: 0.63s; }
@keyframes lit { 0%, 16%, 100% { box-shadow: inset 0 0 0 1.5px rgba(41, 151, 255, 0.85), 0 0 16px -2px rgba(41, 151, 255, 0.55); } 7% { box-shadow: inset 0 0 0 1.5px #9fd0ff, 0 0 22px 2px rgba(41, 151, 255, 0.95); } }
.playing .k.play { animation: none; }
.k.play.down { transform: translateY(2px); background: #f5f5f7; color: #000; }

/* A MacBook trackpad is about 1.6 times as wide as it is tall. */
.trackpad { position: relative; width: 56%; aspect-ratio: 1.6; margin: 2.2cqw auto 2.4cqw; border-radius: 14px; overflow: hidden; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; pointer-events: auto;
  background: linear-gradient(180deg, #e9e9ed, #d9dade); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 1px 0 rgba(255, 255, 255, 0.7); transition: box-shadow 0.25s; }
.trackpad:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 0 0 4px rgba(41, 151, 255, 0.22); }
.zones { position: absolute; inset: 8px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; opacity: 0; transition: opacity 0.35s; }
.free .zones { opacity: 1; }
.zone { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; border-radius: 8px; font-size: 12px; font-weight: 600; color: rgba(0, 0, 0, 0.5); background: linear-gradient(180deg, transparent, var(--tint)); transition: filter 0.12s, background 0.12s; }
.zone.on { background: var(--tint); filter: saturate(1.9) brightness(0.96); color: rgba(0, 0, 0, 0.8); }
/* Placed high, so it shows even when the bottom of the trackpad is below the fold. */
.tp-hint { position: absolute; left: 0; right: 0; top: 30%; transform: translateY(-50%); text-align: center; font-size: 14px; font-weight: 500; color: rgba(0, 0, 0, 0.42); pointer-events: none; transition: opacity 0.3s; }
.free .tp-hint { top: 22%; }
.playing .tp-hint { opacity: 0; }
.touch { position: absolute; left: 50%; top: 60%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(0.55);
  background: radial-gradient(circle, rgba(20, 20, 24, 0.62) 0%, rgba(20, 20, 24, 0.32) 42%, rgba(20, 20, 24, 0) 70%); transition: opacity 0.35s, transform 0.35s var(--ease); }
.touch.on { opacity: 1; transform: scale(1); transition-duration: 0.05s; }
.touch::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(41, 151, 255, 0.7); opacity: 0; transform: scale(0.5); }
.touch.on::after { animation: ring 0.5s ease-out; }
@keyframes ring { 0% { opacity: 0.9; transform: scale(0.5); } 100% { opacity: 0; transform: scale(1.5); } }

@media (max-width: 860px) {
  .kb { display: none; }
  .deck { padding: 0 18px; border-radius: 0 0 26px 26px; }
  .trackpad { width: min(100%, 340px); margin: 18px auto; }
}
/* Shorter screens: less above the Mac, so it can stay wide with its whole trackpad in view. */
@media (min-width: 861px) and (max-height: 900px) {
  .stage { padding-top: 22px; }
  h1 { font-size: clamp(34px, 4vw, 48px); }
  .lede { margin-top: 6px; font-size: 16px; }
  .mac { margin-top: 12px; }
  .lane-head { margin-bottom: 8px; min-height: 30px; }
  .lane { height: 104px; }
  .k { font-size: 12px; } .k.m { font-size: 8px; padding: 0 0 5px 6px; }
}
@media (min-width: 861px) and (max-height: 800px) { .lede { display: none; } .stage { padding-top: 16px; } .lane { height: 96px; } }

/* ---------- the light/dark switch ---------- */
.theme { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); opacity: 0.8; cursor: pointer; transition: opacity 0.2s, background 0.2s; }
.theme:hover { opacity: 1; background: var(--card-2); }
.theme svg { width: 17px; height: 17px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; } :root[data-theme="dark"] .theme .moon { display: none; }
/* The waves behind the headline are drawn light-on-dark; in the light theme they are inverted to dark-on-light. */
.waves { filter: invert(1) hue-rotate(180deg); opacity: 0.55; }
:root[data-theme="dark"] .waves { filter: none; opacity: 1; }

/* ---------- the invitation from free play to play-along: a blinking dot before its name ---------- */
.seg button { position: relative; }
#tab-along { display: inline-flex; align-items: center; gap: 7px; }
.ping { position: relative; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 1.6s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.2); opacity: 0; } }
.tried-along .ping, .seg button[aria-selected="true"] .ping { display: none; }
.score[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .ping::after { animation: none; } }
