:root {
  --ink: #2b2621;
  --muted: #6f665c;
  --page: #faf6f0;
  --white: #fff;
  --amber: #f3a054;
  --amber-lip: #a1623c;
  --amber-deep: #c97a38;
  --terracotta: #cb5e3c;
  --stage: #f7dfce;
  --sun: #fbe4cb;
  --line: #e8dccd;
  --green: #2e9450;
  --rose: #9c4b37;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, canvas { display: block; max-width: 100%; }
.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.1; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; color: var(--terracotta); }
h3 { font-size: 21px; }
p { margin: 0; text-wrap: pretty; }
.tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 18px; }
.lead { font-size: 17px; color: var(--muted); max-width: 30em; }
h1 + .lead { margin-top: 22px; }

/* chunky key button, same recipe as the app's lesson keys */
.key {
  --lip: 5px;
  appearance: none; border: 0; cursor: pointer;
  font: 700 14px/1 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--amber); padding: 16px 26px; border-radius: 999px;
  box-shadow: 0 var(--lip) 0 var(--amber-lip);
  transition: transform 0.12s cubic-bezier(.3,1.5,.6,1), box-shadow 0.12s;
  text-decoration: none; display: inline-block; white-space: nowrap;
}
.key:hover { filter: brightness(1.04); }
.key:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--amber-lip); }
.key-sm { padding: 12px 20px; font-size: 13px; --lip: 4px; }
.key[disabled] { background: #737b81; box-shadow: 0 var(--lip) 0 #696f73; cursor: default; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgb(250 246 240 / 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top-cta { opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.top.show-cta .top-cta { opacity: 1; pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark { font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.wordmark b { color: var(--terracotta); font-weight: 800; }

/* form */
.join { margin-top: 22px; max-width: 460px; }
.join-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.join input[type=email] {
  flex: 1 1 220px; min-width: 0; font: 600 16px var(--font-body); color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: 999px; padding: 13px 20px;
  box-shadow: 0 4px 0 var(--line);
}
.join input[type=email]::placeholder { color: #a99e91; }
.join input[type=email]:focus { outline: none; border-color: var(--amber); box-shadow: 0 4px 0 var(--amber); }
.join.invalid input[type=email] { border-color: #e0a99c; box-shadow: 0 4px 0 #e0a99c; }
.fine { margin-top: 12px; font-size: 13px; color: var(--muted); }
.status { min-height: 1.5em; margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--rose); }
.plat { border: 0; margin: 18px 0 0; padding: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plat legend { float: left; margin-right: 10px; padding: 0; font-weight: 700; color: var(--muted); }
.plat label { cursor: pointer; }
.plat input { position: absolute; opacity: 0; }
.plat span { display: inline-block; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); font-weight: 700; font-size: 15px; }
.plat input:checked + span { border-color: var(--amber); background: #fff3e9; color: var(--amber-lip); }
.plat input:focus-visible + span { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.done { display: flex; align-items: center; gap: 18px; background: #e6f1e9; border: 2px solid #8fc0a2; border-radius: 24px; padding: 14px 24px 14px 14px; max-width: 520px; }
.done img { width: 84px; height: auto; flex: none; }
.done h3 { color: #33684a; font-size: 24px; }
.done p { color: #33684a; font-size: 16px; margin-top: 4px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items: center; padding-block: 24px 40px; min-height: 0; }
.hero-art, .coach-card { position: relative; aspect-ratio: 3 / 4; width: min(100%, 440px); justify-self: center; }
.slab {
  position: absolute; inset: 6% 6% 4% 6%; border-radius: 44px; background: #fff3e9; border: 6px solid var(--stage);
  box-shadow: -14px 16px 0 var(--amber); transform: rotate(5deg);
}
.slab-sm { inset: 8% 8% 6% 8%; transform: rotate(-4deg); box-shadow: 14px 16px 0 var(--amber); }
.rv { width: 100%; height: 100%; }
.rv-coach { position: absolute; inset: 0; }
.hero-art .rv-coach { transform: translateY(2%); }

/* feature rows */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 28px; }
.row.flip .row-art { order: 2; }
.row-copy { max-width: 30em; }
.row-copy h2 { margin-bottom: 18px; }
.row-copy p { color: var(--muted); font-size: 16px; }
.row-copy .aside { margin-top: 14px; font-size: 13px; font-family: var(--font-mono); color: var(--amber-deep); }

.stairs, .strings { position: relative; aspect-ratio: 7 / 5; width: 100%; }
.stairs-labels { list-style: none; margin: 0; padding: 0; }
.stairs-labels li {
  position: absolute; bottom: 0; left: var(--x); transform: translateX(-50%); text-align: center;
  font: 800 clamp(13px, 1.9vw, 19px) var(--font-head); color: var(--amber-lip); line-height: 1.05;
}
.stairs-labels i { display: block; font: 500 clamp(11px, 1.4vw, 14px) var(--font-mono); font-style: normal; color: var(--amber-deep); }
.stairs { padding-bottom: 38px; }
.stairs canvas { position: absolute; inset: 0 0 38px 0; width: 100%; height: calc(100% - 38px); }
.string-labels { list-style: none; margin: 0; padding: 0; }
.string-labels li { position: absolute; left: 8.1%; top: var(--y); transform: translate(-50%, -50%); font: 800 14px var(--font-head); color: #fff; opacity: 0.92; }

.coach-card .beat {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); z-index: 2;
  font: 800 17px var(--font-head); color: var(--amber-lip); background: #fff; border: 2px solid var(--stage);
  box-shadow: 0 4px 0 var(--stage); padding: 8px 22px; border-radius: 999px; white-space: nowrap;
}

/* wins */
.wins { background: var(--sun); padding: 56px 0; text-align: center; margin-top: 24px; }
.wins .wins-lead { margin: 12px auto 32px; color: var(--muted); font-size: 16px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border-radius: 32px; border: 2px solid var(--line); box-shadow: 0 8px 0 var(--line); padding: 20px 24px 32px; }
.card h3 { margin: 4px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }
.icon-btn { appearance: none; border: 0; background: none; padding: 0; margin: 0 auto; width: min(100%, 220px); cursor: pointer; border-radius: 24px; }

/* final */
.final { position: relative; overflow: hidden; background: #2b2621; color: var(--page); padding: 80px 0 88px; text-align: center; isolation: isolate; }
.final h2 { color: var(--page); font-size: clamp(28px, 3.6vw, 42px); }
.final .lead { color: #d9cfc3; margin: 16px auto 0; }
.final-in { position: relative; z-index: 2; }
.final .join { margin-inline: auto; text-align: left; }
.final .join-row { justify-content: center; }
.final .status { color: #ffc3b3; text-align: center; }
.final .plat { justify-content: center; }
.final .plat legend { color: #d9cfc3; float: none; width: 100%; text-align: center; margin: 0 0 4px; }
.final .plat span { background: #3a342d; border-color: #4a423a; color: var(--page); }
.final .plat input:checked + span { background: #5a3a22; border-color: var(--amber); color: #ffd9b3; }
.final .done { margin-inline: auto; text-align: left; }
.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fl { position: absolute; appearance: none; border: 0; background: none; padding: 0; pointer-events: auto; animation: bob 6s ease-in-out infinite; }
.f1 { width: 150px; left: 6%; top: 14%; }
.f2 { width: 120px; right: 9%; top: 10%; animation-delay: -2s; }
.f3 { width: 130px; right: 5%; bottom: 8%; animation-delay: -4s; transform: rotate(8deg); }
.f4 { width: 90px; left: 20%; bottom: 8%; animation-delay: -1s; }
.f5 { width: 100px; right: 24%; bottom: 6%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

.foot { background: #1f1b16; color: #a99e91; padding: 36px 0; font-size: 15px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand-foot { color: var(--page); }
.brand-foot .wordmark { font-size: 22px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; padding-block: 24px 40px; min-height: 0; }
  .hero-art { order: -1; width: min(70%, 300px); }
  .hero-copy { text-align: center; }
  .hero-copy .lead, .join { margin-inline: auto; }
  .join-row { justify-content: center; }
  .row { grid-template-columns: 1fr; gap: 28px; padding-block: 44px; text-align: center; }
  .row.flip .row-art { order: 0; }
  .row-copy { margin-inline: auto; }
  .row-art { max-width: 460px; margin-inline: auto; width: 100%; }
  .cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .f1 { width: 90px; left: 3%; top: 4%; } .f2 { width: 80px; right: 4%; top: 3%; } .f3 { width: 80px; right: 3%; bottom: 3%; }
  .f4 { width: 60px; left: 6%; bottom: 3%; } .f5 { display: none; }
  .final { padding: 110px 0 100px; }
  .foot-row { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fl { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .key { transition: none; }
}

.poster { position: absolute; left: 0; top: 2%; width: 100%; height: 98%; object-fit: contain; object-position: top center; }
.rv-coach { opacity: 0; transition: opacity .25s; }
.rv-coach.ready { opacity: 1; }
.chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.chips li { font: 800 15px var(--font-head); color: var(--amber-lip); background: #fff3e9; border: 2px solid var(--stage); box-shadow: 0 3px 0 var(--stage); padding: 7px 16px; border-radius: 999px; }
@media (max-width: 860px) { .chips { justify-content: center; } }

/* scenes: the coach stands next to the animation, doing the thing */
.scene { position: relative; aspect-ratio: 7 / 5; width: 100%; }
.scene .stairs, .scene .strings { position: absolute; aspect-ratio: auto; }
.scene-stairs .stairs { right: 0; bottom: 0; width: 64%; height: 76%; padding-bottom: 30px; }
.scene-stairs .rv-coach-side { left: 0; bottom: 0; }
.scene-strings .strings { left: 0; top: 12%; width: 62%; height: 72%; }
.scene-strings .rv-coach-side { right: 0; bottom: 0; }
.rv-coach-side { position: absolute; width: 40%; aspect-ratio: 3 / 4; height: auto; opacity: 0; transition: opacity .25s; }
.rv-coach-side.ready { opacity: 1; }
.scene-stairs .stairs canvas { inset: 0 0 30px 0; height: calc(100% - 30px); }
.scene-stairs .stairs-labels li { font-size: clamp(11px, 1.4vw, 15px); }
.scene-stairs .stairs-labels i { font-size: clamp(9px, 1.1vw, 12px); }
.string-labels li { font-size: 12px; }

/* no side coach now: the animations fill their space */
.scene-stairs .stairs { width: 100%; height: 100%; }
.scene-strings .strings { left: 0; top: 0; width: 100%; height: 100%; }
.scene-stairs .stairs-labels li { font-size: clamp(11px, 1.7vw, 17px); }
.scene-stairs .stairs-labels i { font-size: clamp(9px, 1.2vw, 13px); }
.string-labels li { font-size: 14px; }

.lanes { position: relative; aspect-ratio: 7 / 5; width: 100%; }
.lane-tag { position: absolute; left: 3%; top: var(--y); font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lane-tag-amber { color: var(--amber-lip); }
.chord-labels { list-style: none; margin: 0; padding: 0; }
.chord-labels li { position: absolute; top: 17.3%; left: var(--x); transform: translate(-50%, -50%); font: 800 clamp(15px, 2.2vw, 22px) var(--font-head); color: var(--amber-lip); }

.pick { text-align: center; padding-block: 36px 48px; }
.pick-lead { margin: 10px auto 28px; color: var(--muted); max-width: 30em; }
.coaches { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 880px; }
.coach-opt { background: #fff; border: 2px solid var(--line); border-radius: 26px; box-shadow: 0 6px 0 var(--line); padding: 14px 12px 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.coach-opt b { font: 800 15px var(--font-head); }
.coach-opt span { font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--amber-deep); }
.coach-opt.on { border-color: var(--amber); box-shadow: 0 6px 0 var(--amber-deep); background: #fff7ef; }
.coach-face { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; }
.coach-face canvas, .coach-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.rv-coach-card { opacity: 0; transition: opacity .25s; }
.rv-coach-card.ready { opacity: 1; }
.coach-opt.soon .coach-face img { filter: brightness(0) opacity(.1); }
.coach-opt.soon i { position: absolute; inset: 0; display: grid; place-items: center; font: 800 44px var(--font-head); color: #d7cbbd; font-style: normal; }

/* smaller reward icons */
.cards { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.icon-btn { width: min(100%, 140px); }
.card { padding: 16px 16px 26px; }
.f1 { width: 110px; } .f2 { width: 88px; } .f3 { width: 96px; } .f4 { width: 70px; } .f5 { width: 74px; }
@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, 1fr); max-width: 460px; }
  .coaches { grid-template-columns: repeat(2, 1fr); max-width: 380px; }
  .f1 { width: 70px; } .f2 { width: 62px; } .f3 { width: 62px; } .f4 { width: 50px; }
}
