/* Melodissimo landing page.
   Palette comes straight from the app's asset catalog (Colors/*.colorset).
   Rules: one accent (yellow) for actions; actions are pills, cards 28, devices 26, small chips 14. 8px rhythm. */

:root {
  --sky: #90c9eb;        /* softBlue */
  --sky-2: #b9def3;
  --sky-deep: #6396c6;   /* navy */
  --green: #04624d;      /* darkGreen: brand surface + text */
  --green-2: #3a9a6a;
  --mint: #65baa7;       /* softGreen */
  --yellow: #f8d87d;     /* the one accent */
  --yellow-2: #f3c94f;
  --vanilla: #fff6e2;
  --red: #dc6472;
  --ink: #0e3a30;
  --ink-2: #3f6158;
  --white: #ffffff;
  --bezel: #17322c;

  --r-card: 28px;
  --r-device: 26px;
  --r-chip: 14px;
  --shadow-1: 0 2px 0 rgba(4, 98, 77, .08), 0 12px 32px -12px rgba(14, 58, 48, .28);
  --shadow-2: 0 30px 60px -24px rgba(14, 58, 48, .45);
  --ease: cubic-bezier(.23, 1, .32, 1);

  --bg: var(--vanilla);
  --surface: var(--white);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --eyebrow: var(--green);
  color-scheme: light;
}

/* The app is a bright daytime world; in dark mode we keep the sky but deepen the paper surfaces. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f2a24;
    --surface: #163a32;
    --text: #f3f7f2;
    --text-2: #bcd3cb;
    --eyebrow: #8fd6bf;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f2a24; --surface: #163a32; --text: #f3f7f2; --text-2: #bcd3cb; --eyebrow: #8fd6bf; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Baloo 2", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.01em; font-weight: 800; }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: 26px; }
p { margin: 0; }
a { color: inherit; }
.keys { white-space: nowrap; }
kbd {
  font: 700 14px/1 "Baloo 2", system-ui; padding: 3px 7px 2px; border-radius: 6px;
  background: var(--surface); border: 1px solid rgba(14, 58, 48, .18); box-shadow: 0 2px 0 rgba(14, 58, 48, .18);
}

/* Language switching: one DOM, two languages. */
html[lang="en"] [data-l="id"], html[lang="id"] [data-l="en"] { display: none !important; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--green); padding: 8px 16px; border-radius: 999px; z-index: 100; font-weight: 700; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 0; font: 700 18px/1 "Baloo 2", system-ui; text-decoration: none; cursor: pointer;
  transition: transform .14s var(--ease), background-color .14s var(--ease), box-shadow .14s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 16px; }
.btn-yellow { background: var(--yellow); color: var(--green); box-shadow: 0 4px 0 var(--yellow-2); }
.btn-yellow:hover { background: #fbe08f; }
.btn-ghost { background: rgba(255, 255, 255, .55); color: var(--green); box-shadow: inset 0 0 0 2px rgba(4, 98, 77, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .8); }
.btn-ghost-dark { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px currentColor; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.store-badge {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px;
  border-radius: 999px; background: var(--green); color: #fff; text-decoration: none;
  box-shadow: 0 4px 0 #023a2e; transition: transform .14s var(--ease);
}
.store-badge:active { transform: scale(.97); }
.store-badge svg { width: 28px; height: 28px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1; }
.store-badge small { font-size: 12px; font-weight: 600; opacity: .85; letter-spacing: .02em; }
.store-badge b { font-size: 22px; font-weight: 700; margin-top: 2px; }
.store-badge-lg { min-height: 64px; padding: 0 28px 0 22px; }
.store-badge-android { background: #3ddc84; color: #073042; box-shadow: 0 4px 0 #1f8a52; }
.download-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.nav.scrolled { background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgba(14, 58, 48, .08); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--green); text-decoration: none; }
.brand img { border-radius: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.nav-links { position: relative; display: flex; gap: 4px; margin-left: auto; }
.nav-links a { position: relative; z-index: 1; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--green); }
.nav-links a:hover { background: rgba(255, 255, 255, .5); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav:not(.scrolled) .brand, .nav:not(.scrolled) .nav-links a { color: #fff; }
.nav:not(.scrolled) .nav-links a:hover { background: rgba(255, 255, 255, .12); }
.nav:not(.scrolled) .lang { background: rgba(255, 255, 255, .14); }
.nav:not(.scrolled) .lang-opt { color: #fff; }
html[lang="en"] .nav:not(.scrolled) .lang-opt[data-v="en"], html[lang="id"] .nav:not(.scrolled) .lang-opt[data-v="id"] { background: #fff; color: #2d2440; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 0; background: rgba(4, 98, 77, .1); cursor: pointer; font: 700 13px/1 "Baloo 2", system-ui; }
.lang-opt { padding: 7px 10px 5px; border-radius: 999px; color: var(--green); }
html[lang="en"] .lang-opt[data-v="en"], html[lang="id"] .lang-opt[data-v="id"] { background: var(--green); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav.scrolled .brand, :root:not([data-theme="light"]) .nav.scrolled .nav-links a, :root:not([data-theme="light"]) .nav.scrolled .lang-opt { color: #fff; } }

/* ---------- eyebrow / headings ---------- */
.eyebrow { display: inline-block; font-weight: 700; font-size: 18px; color: var(--eyebrow); margin-bottom: 10px; }
.eyebrow-light { color: var(--yellow); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .sub, .sub { margin-top: 18px; font-size: 20px; color: var(--text-2); }
.section-head.light h2, .section-head.light .sub { color: #fff; }
.section-head.light .sub { opacity: .9; }

/* ---------- stage (hero): the page opens on a playable Song Stage ----------
   Colors are the app's concert backdrop (stage_bg_concert.svg): night purple, curtain red, bulb gold. */
.stage {
  --night: #2d2440; --night-2: #4b3a78; --curtain: #c23b4e; --curtain-2: #a52f40; --bulb: #ffd34d;
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  padding: calc(84px + env(safe-area-inset-top)) 0 40px;
  /* the backdrop starts under the nav, so the valance and its bulbs frame the stage instead of the links */
  background: var(--curtain-2) url("/img/art/stage_bg_concert.svg") center calc(64px + env(safe-area-inset-top)) / cover no-repeat;
  display: flex; align-items: center;
}
.stage::after { /* the stage floor the pianika rests on */
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 64px;
  background: linear-gradient(#5a2a1f, #3a1a14); box-shadow: 0 -4px 0 #7a3a2a;
}
.stage-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 72px; align-items: center; }

.logo {
  font-size: clamp(52px, 6vw, 88px); line-height: .9; color: var(--bulb); letter-spacing: -0.02em;
  text-shadow: 0 3px 0 #e8a92a, 0 6px 0 var(--curtain), 0 9px 0 var(--curtain-2), 0 18px 28px rgba(20, 10, 40, .55);
  transform: rotate(-3deg); transform-origin: left bottom;
}
.stage-lead { margin-top: 32px; font-size: 20px; max-width: 36ch; color: #ece6ff; }
.stage-lead b { color: var(--bulb); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn-onstage { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.btn-onstage:hover { background: rgba(255, 255, 255, .18); }
.stage .store-badge { background: #fff; color: var(--night); box-shadow: 0 4px 0 #b9b0d6; }

/* the rig: HUD, lanes and keys share one column so every lane sits exactly over its key */
.rig { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.hud {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-weight: 700; font-size: 16px;
  font-variant-numeric: tabular-nums; color: #fff;
}
.hud-song { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 6px; border-radius: 999px; background: rgba(0, 0, 0, .28); }
.hud-mode { padding: 4px 12px; border-radius: 999px; background: var(--curtain); }
.hud-mode.live { background: #3a9a6a; }
.hud-score { margin-left: auto; }
.hud-score b { display: inline-block; min-width: 6ch; text-align: right; font-size: 22px; color: var(--bulb); }
.hud-k { opacity: .8; }

.lanes {
  --n: 9; position: relative; height: clamp(260px, 46vh, 420px); border-radius: 18px 18px 0 0; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--n) - 1px), rgba(255, 255, 255, .1) calc(100% / var(--n) - 1px) calc(100% / var(--n))),
    linear-gradient(rgba(20, 12, 40, 0), rgba(20, 12, 40, .55));
  -webkit-mask-image: linear-gradient(transparent, #000 18%); mask-image: linear-gradient(transparent, #000 18%);
}
.hitline { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--bulb); box-shadow: 0 0 18px var(--bulb); opacity: .85; }
.note {
  position: absolute; bottom: 0; left: 0; width: calc(100% / var(--n)); padding: 0 3px; will-change: transform; display: none;
}
.note > b {
  display: flex; align-items: flex-end; justify-content: center; height: 100%; padding-bottom: 6px; border-radius: 10px;
  background: var(--bulb); color: var(--night); font-size: 18px; font-weight: 800; line-height: 1;
  box-shadow: inset 0 -4px 0 #e8a92a, 0 0 0 2px rgba(255, 255, 255, .35);
}
.note.hit > b { background: #fff; box-shadow: 0 0 22px #fff; }
.note.missed > b { background: #6f6690; color: #d9d3f0; box-shadow: none; }
.burst { position: absolute; bottom: -24px; width: calc(100% / var(--n)); height: 48px; pointer-events: none; }
.burst::before { content: ""; position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; border: 4px solid var(--bulb); animation: burst .42s var(--ease) forwards; }
@keyframes burst { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.judge, .combo, .count { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; font-weight: 800; }
.judge { bottom: 22%; font-size: 34px; color: #fff; text-shadow: 0 3px 0 var(--curtain); opacity: 0; }
.judge.show { animation: judge .6s var(--ease); }
.judge.miss { color: #c9c2e6; text-shadow: none; }
@keyframes judge { 0% { opacity: 0; transform: scale(.7) translateY(10px); } 18% { opacity: 1; transform: scale(1.12); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translateY(-14px); } }
.combo { top: 22%; font-size: 20px; color: var(--bulb); opacity: .9; font-variant-numeric: tabular-nums; }
.combo b { display: block; font-size: 56px; line-height: 1; }
.count { top: 30%; font-size: 120px; line-height: 1; color: var(--bulb); text-shadow: 0 6px 0 var(--curtain); }
.count.tick { animation: tick .5s var(--ease); }
@keyframes tick { from { transform: scale(1.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.stage-keys {
  position: relative; display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; height: 150px; padding: 0 0 14px;
  border-radius: 0 0 22px 22px; background: var(--curtain); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .2), 0 10px 0 -2px #7a2230;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.skey {
  position: relative; border: 0; border-radius: 0 0 10px 10px; background: #fff; cursor: pointer; padding: 0 0 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px;
  font: 800 22px/1 "Baloo 2", system-ui; color: var(--night);
  box-shadow: inset 0 -6px 0 #e3e0ee; transition: background-color .08s, box-shadow .08s, transform .08s;
  -webkit-tap-highlight-color: transparent;
}
.skey kbd { font-size: 12px; padding: 2px 5px 1px; opacity: .55; box-shadow: none; }
.skey.down { background: var(--bulb); box-shadow: inset 0 -2px 0 #e8a92a; transform: translateY(2px); }
.skey.auto { background: #fff3c4; }
.na { position: relative; display: inline-block; }
.na i { position: absolute; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; }
.na i.up { top: -6px; } .na i.lo { bottom: -6px; }

.rig-fals { position: absolute; width: 112px; right: -132px; top: 30%; z-index: 2; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .35)); transition: transform .2s var(--ease); animation: wobble 2.6s ease-in-out infinite alternate; }
.rig-fals.laugh { animation: laugh .45s var(--ease); }
.rig-fals.hurt { animation: hurt .35s var(--ease); }
@keyframes wobble { from { transform: rotate(-6deg); } to { transform: rotate(6deg) translateY(6px); } }
@keyframes laugh { 30% { transform: translateY(-16px) rotate(-10deg) scale(1.08); } }
@keyframes hurt { 25% { transform: translateX(10px) rotate(14deg); } 60% { transform: translateX(-6px) rotate(-8deg); } }
.rig-alpanica { position: absolute; width: 120px; left: -96px; bottom: 40px; z-index: 2; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .35)); pointer-events: none; }
.rig-alpanica.sing { animation: sing .3s var(--ease); }
@keyframes sing { 50% { transform: translateY(-10px) scale(1.04); } }

.prompt { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 22px; text-align: center; }
.prompt-hint { color: #d9d3f0; font-weight: 600; font-size: 16px; }
.prompt-hint kbd { color: var(--ink); }
.hint-touch { display: none; }
@media (hover: none) { .hint-keys { display: none !important; } .hint-touch { display: inline; } .skey kbd { display: none; } }
.rig.playing .prompt, .rig.done .prompt { visibility: hidden; }

.result {
  position: absolute; z-index: 3; left: 50%; top: 44%; width: min(420px, 100%); transform: translate(-50%, -50%);
  padding: 26px 24px 24px; border-radius: 28px; background: #fff; color: var(--night); text-align: center;
  box-shadow: 0 0 0 6px var(--bulb), 0 30px 60px -10px rgba(0, 0, 0, .6); animation: rise .5s var(--ease);
}
.result[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, -40%) scale(.9); } }
.stars { display: flex; justify-content: center; gap: 6px; margin-top: -58px; margin-bottom: 8px; }
.stars i { width: 64px; height: 62px; background: #ddd8ec; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars i:nth-child(2) { transform: translateY(-14px) scale(1.18); }
.stars i.on { background: var(--bulb); animation: star .5s var(--ease) both; }
.stars i.on:nth-child(2) { animation-delay: .18s; } .stars i.on:nth-child(3) { animation-delay: .36s; }
@keyframes star { from { opacity: 0; scale: 2; } }
.result-title { font-size: 26px; font-weight: 800; line-height: 1.15; }
.result-acc { margin-top: 4px; font-weight: 600; color: #5d557a; }
.result-acc b { font-size: 22px; color: var(--night); }
.result-counts { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 14px; font-weight: 600; color: #5d557a; }
.result-counts b { display: block; font-size: 22px; color: var(--night); font-variant-numeric: tabular-nums; }
.result-actions { display: grid; gap: 10px; }
.result-actions .btn { justify-content: center; }
.result .btn-onstage { background: transparent; color: var(--night); box-shadow: inset 0 0 0 2px #ddd8ec; }

.sky-notes { position: absolute; inset: 0; pointer-events: none; }
.sky-notes span {
  position: absolute; color: rgba(255, 255, 255, .55); font-size: 28px; line-height: 1; font-family: system-ui, sans-serif;
  animation: drift 14s linear infinite;
}
@keyframes drift { 0% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-18px) rotate(8deg); } 100% { transform: translateY(0) rotate(-8deg); } }

/* ---------- the trek: scroll progress as the Nusantara Tour, Sabang to Merauke ---------- */
.trek {
  position: fixed; z-index: 40; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); width: min(560px, 100% - 32px);
  transform: translate(-50%, 140%); display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--green) 92%, transparent); color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(14, 58, 48, .5); transition: transform .4s var(--ease), visibility .4s; pointer-events: none; visibility: hidden;
}
.trek.on { transform: translate(-50%, 0); visibility: visible; }
.trek-cta {
  pointer-events: auto; flex: none; margin: -2px -10px -2px 4px; padding: 7px 14px 5px; border-radius: 999px;
  background: var(--yellow); color: var(--green); text-decoration: none; font-size: 14px; font-weight: 800; white-space: nowrap;
}
.btn-store { background: var(--green); color: #fff; box-shadow: 0 4px 0 #023a2e; }
.trek-line { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); display: flex; justify-content: space-between; align-items: center; }
.trek-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--yellow); }
.trek-line > i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2c7a64; box-shadow: 0 0 0 2px var(--green); }
.trek-line > i.past { background: var(--yellow); }
.trek-walker { position: absolute; bottom: -2px; left: 0; width: 44px; height: 44px; margin-left: -22px; }
.trek-walker.flip { transform: scaleX(-1); }

.hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; }

/* ---------- devices ---------- */
.device {
  position: relative;
  margin: 0; padding: 12px; border-radius: var(--r-device); background: var(--bezel);
  box-shadow: var(--shadow-2), inset 0 0 0 2px #2c4a43;
}
.device img { border-radius: 14px; width: 100%; height: auto; }

/* ---------- story ---------- */
.story { background: var(--green); color: #fff; padding: 72px 0 96px; position: relative; }
.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.story h2 { font-size: clamp(28px, 3.6vw, 44px); }
.story p { margin-top: 18px; font-size: 20px; opacity: .9; max-width: 56ch; }
.story-art { position: relative; aspect-ratio: 1; max-width: 360px; margin-inline: auto; }
.story-boss { width: 100%; animation: wobble 3s ease-in-out infinite alternate; }
.scramble { position: absolute; font-weight: 800; font-size: 34px; color: var(--yellow); opacity: .9; animation: jitter 1.6s steps(2) infinite; }
.s1 { left: 0; top: 18%; } .s2 { right: 2%; top: 8%; animation-delay: .3s; } .s3 { right: -4%; bottom: 26%; animation-delay: .7s; } .s4 { left: 6%; bottom: 10%; animation-delay: 1s; }
@keyframes jitter { 0% { transform: rotate(-12deg) translate(0, 0); } 50% { transform: rotate(10deg) translate(3px, -4px); } 100% { transform: rotate(-12deg) translate(0, 0); } }

/* ---------- modes ---------- */
.modes { padding: 120px 0 80px; }
.mode {
  position: relative;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center;
  padding: 48px; border-radius: var(--r-card); margin-bottom: 32px; color: var(--ink);
}
.mode.reverse { grid-template-columns: 1.1fr .9fr; }
.mode.reverse .mode-copy { order: 2; }
.mode-song { background: var(--yellow); }
.mode-battle { background: #f2b2b9; }
.mode-echo { background: var(--sky-2); }
.mode-mic { background: #cfe9df; }
.mode-icon { width: 64px; height: 64px; margin-bottom: 16px; }
.mic-badge { display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; }
.mic-badge svg { width: 30px; height: 30px; }
.mode h3 { font-size: clamp(30px, 3.2vw, 40px); color: var(--green); }
.mode p { margin-top: 14px; font-size: 19px; color: #24483f; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 600; color: var(--green); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.link-arrow { display: inline-block; margin-top: 20px; font-weight: 700; color: var(--green); font-size: 19px; }
.mode .device { transform: rotate(1.2deg); transition: transform .5s var(--ease); }
.mode.reverse .device { transform: rotate(-1.2deg); }
.mode:hover .device { transform: rotate(0) translateY(-4px); }

/* ---------- try (echo) ---------- */
.try { padding: 80px 0 120px; }
.echo-card {
  max-width: 980px; margin-inline: auto; padding: 28px; border-radius: var(--r-card);
  background: var(--sky); box-shadow: var(--shadow-2); position: relative; overflow: hidden;
}
.echo-top { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-bottom: 24px; }
.echo-alpanica { width: 110px; height: auto; transition: transform .2s var(--ease); }
.echo-alpanica.sing { animation: sing .32s var(--ease); }
@keyframes sing { 50% { transform: translateY(-10px) scale(1.04); } }
.echo-bubble {
  position: relative; background: #fff; color: var(--ink); border-radius: 22px; padding: 16px 22px; min-height: 92px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.echo-bubble::before { content: ""; position: absolute; left: -10px; top: 50%; margin-top: -10px; border: 10px solid transparent; border-left: 0; border-right-color: #fff; }
.echo-msg { font-size: 19px; font-weight: 600; }
.echo-dots { display: flex; gap: 8px; min-height: 18px; }
.echo-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--green); transition: background-color .15s var(--ease), transform .15s var(--ease); }
.echo-dots i.on { background: var(--green); transform: scale(1.1); }
.echo-dots i.bad { background: var(--red); border-color: var(--red); }
.echo-stats { display: grid; gap: 6px; justify-items: end; color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.hearts { display: flex; gap: 6px; }
.hearts i { width: 24px; height: 22px; background: var(--red); clip-path: path("M12 21 C 5 15 1 11.5 1 7 A 5.5 5.5 0 0 1 12 4.5 A 5.5 5.5 0 0 1 23 7 C 23 11.5 19 15 12 21 Z"); transition: opacity .2s; }
.hearts i.lost { opacity: .22; }

.pianika {
  position: relative; display: flex; height: 230px; padding: 14px 14px 18px; border-radius: 22px;
  background: #7a2a26; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18), 0 10px 0 -4px #5a1e1b;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.key {
  position: relative; flex: 1; margin: 0 2px; border: 0; border-radius: 0 0 10px 10px; background: #fff; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px;
  font: 800 20px/1 "Baloo 2", system-ui; color: var(--green);
  box-shadow: inset 0 -6px 0 #e3e8e6; transition: background-color .08s, box-shadow .08s, transform .08s;
  -webkit-tap-highlight-color: transparent;
}
.key.black {
  position: absolute; top: 14px; width: 6.2%; height: 58%; margin: 0; z-index: 2; background: #1b1b1b; color: #fff;
  border-radius: 0 0 8px 8px; box-shadow: inset 0 -5px 0 #000; font-size: 13px; padding-bottom: 8px; white-space: nowrap;
}
.key.down { background: var(--yellow); box-shadow: inset 0 -2px 0 var(--yellow-2); transform: translateY(2px); }
.key.black.down { background: #4a4a4a; }
.key.hint { background: #fff3c4; }
.key.good { background: #9fe0b9; }
.key.bad { background: #f6b3bb; }
.key .na { position: relative; display: inline-block; }
.key .na .dot { position: absolute; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; }
.key .na .dot.up { top: -5px; }
.key .na .dot.down { bottom: -4px; }
.pianika.no-labels .key .lbl { visibility: hidden; }
.echo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.echo-controls .btn-ghost-dark { color: var(--green); }
.toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-weight: 600; color: var(--green); cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--green); }
.key.extra { display: flex; }

/* ---------- tour ---------- */
.tour { position: relative; padding: 120px 0; background: linear-gradient(180deg, #3fa2d8, #2f86bd); color: #fff; overflow: hidden; }
.waves { position: absolute; inset: 0 -120px 0 0; opacity: .25; animation: waves 9s linear infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M10 30 q10 -8 20 0 t20 0' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tour .wrap { position: relative; }
.islands { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 14px; counter-reset: isl; }
.islands li {
  counter-increment: isl; position: relative; transition: transform .3s var(--ease), background-color .3s var(--ease); padding: 10px 10px 16px; border-radius: 22px; background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); display: flex; flex-direction: column; gap: 4px; text-align: center;
}
.islands li::before {
  content: counter(isl); position: absolute; top: -12px; left: 50%; margin-left: -16px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--yellow); color: var(--green); font-weight: 800; display: grid; place-items: center; z-index: 1;
}
.islands img { width: 100%; border-radius: 14px; aspect-ratio: 5 / 3; object-fit: cover; }
.islands b { margin-top: 8px; font-size: 18px; line-height: 1.15; }
.islands span { font-size: 14px; opacity: .85; font-weight: 600; }
.tour-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.tour-shots .device:first-child { transform: rotate(-1.5deg); }
.tour-shots .device:last-child { transform: rotate(1.5deg) translateY(24px); }
.finale { display: flex; align-items: center; gap: 16px; max-width: 720px; margin: 72px auto 0; font-size: 19px; padding: 18px 24px; border-radius: 22px; background: rgba(255, 255, 255, .14); }
.finale img { flex: none; }

/* ---------- rewards ---------- */
.rewards { padding: 120px 0; overflow: hidden; }
.rewards-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.outfits { display: flex; gap: 16px; margin-top: 32px; }
.outfits figure { margin: 0; flex: 1; padding: 12px 8px 14px; border-radius: 22px; background: var(--sky-2); box-shadow: var(--shadow-1); text-align: center; transition: transform .18s var(--ease); }
.outfits figure:hover { transform: translateY(-4px) rotate(-2deg); }
.outfits figcaption { font-weight: 700; color: var(--text); }
.rewards-shots { position: relative; min-height: 460px; }
.rewards-shots .device { position: absolute; width: 78%; }
.tilt-l { left: 0; top: 0; transform: rotate(-3deg); z-index: 1; }
.tilt-r { right: 0; bottom: 0; transform: rotate(3deg); }

/* ---------- teachers ---------- */
.teachers { padding: 120px 0; background: var(--surface); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: var(--r-card); background: var(--bg); }
.fnum { display: inline-grid; place-items: center; min-width: 56px; height: 56px; padding: 0 12px; border-radius: var(--r-chip); background: var(--green); color: var(--yellow); font-size: 24px; font-weight: 800; margin-bottom: 18px; }
.feature h3 { font-size: 22px; }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 17px; }

/* ---------- faq ---------- */
.faq { padding: 120px 0; }
.faq-wrap { max-width: 820px; }
.faq h2 { margin-bottom: 32px; }
details { border-radius: 22px; background: var(--surface); margin-bottom: 12px; box-shadow: var(--shadow-1); }
summary { list-style: none; cursor: pointer; padding: 20px 60px 18px 24px; font-weight: 700; font-size: 20px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 28px; color: var(--green); transition: transform .2s var(--ease); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 24px 22px; color: var(--text-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) summary::after { color: var(--yellow); } }

/* ---------- download ---------- */
.download { position: relative; overflow: hidden; text-align: center; padding: 120px 0 200px; background: linear-gradient(180deg, var(--sky-2), var(--sky)); color: var(--ink); }
.download-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.download-icon { position: relative; width: 132px; height: 132px; border-radius: 30px; box-shadow: var(--shadow-2); animation: bob 3.4s ease-in-out infinite; }
.download h2 { color: var(--green); font-size: clamp(36px, 5vw, 64px); }
.download .sub { color: #1d4a40; max-width: 40ch; margin-bottom: 32px; }

/* ---------- footer ---------- */
.footer { background: var(--green); color: #fff; padding: 56px 0 calc(88px + env(safe-area-inset-bottom)); } /* room for the fixed .trek bar */
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px 40px; }
.footer-about p { margin: 12px 0 0; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-col h3 { margin: 4px 0 4px; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.footer-col a { color: #fff; text-decoration: none; opacity: .88; }
.footer-col a:hover, .footer-col a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 14px; opacity: .7; }
.footer-bottom p { margin: 0; }
.brand-light { color: #fff; }
.fine { font-size: 14px; opacity: .7; }
.fine a { color: inherit; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- motion layer ----------
   One orchestrated opening (curtain up, logo drops in), then reactions to scroll and touch.
   Transform and opacity only; reduced motion turns all of it off. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* curtain up */
.curtains { position: absolute; inset: 0; z-index: 5; display: flex; pointer-events: none; }
.curtains i {
  flex: 1; position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, 0) 70%, rgba(40, 6, 14, .45)),
    repeating-linear-gradient(90deg, #86202f 0, #b8364a 16px, #d24d5e 28px, #b8364a 40px, #86202f 56px);
  animation: curtain-l 1.15s cubic-bezier(.76, 0, .24, 1) .25s forwards;
}
.curtains i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: repeating-linear-gradient(90deg, #ffd34d 0 6px, #e8a92a 6px 10px); }
.curtains .curtain-r { animation-name: curtain-r; }
@keyframes curtain-l { 60% { transform: translateX(-70%) skewX(3deg); } to { transform: translateX(-101%); visibility: hidden; } }
@keyframes curtain-r { 60% { transform: translateX(70%) skewX(-3deg); } to { transform: translateX(101%); visibility: hidden; } }

/* logo letters: drop in after the curtain, hop on hover, wave on a combo */
.logo .ch { display: inline-block; animation: drop .8s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(.95s + var(--i) * 55ms); transition: transform .25s var(--ease); }
.logo .ch.landed { animation: none; }
.logo .ch.landed:hover { transform: translateY(-14px) rotate(-8deg); }
.logo.beat .ch.landed { animation: wave .7s ease both; animation-delay: calc(var(--i) * 35ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-140%) rotate(-14deg) scale(.6); } }
@keyframes wave { 40% { transform: translateY(-18px) scale(1.08); } }

/* sweeping spotlights and a light that follows the pointer */
.beams { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.beams i {
  position: absolute; top: -8%; left: var(--l); width: 260px; height: 125%; margin-left: -130px; transform-origin: 50% 0;
  background: linear-gradient(rgba(255, 236, 190, .2), rgba(255, 236, 190, 0) 80%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  animation: sweep 7s ease-in-out infinite alternate;
}
.beams i:nth-child(1) { --l: 18%; }
.beams i:nth-child(2) { --l: 52%; animation-duration: 9s; animation-delay: -3s; }
.beams i:nth-child(3) { --l: 84%; animation-delay: -5s; }
@keyframes sweep { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
.spot {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(380px circle at var(--x, 70%) var(--y, 40%), rgba(255, 222, 140, .16), transparent 65%);
}
.stage:hover .spot { opacity: 1; }

/* notes that fly off a hit or a key */
.spark {
  position: absolute; z-index: 4; pointer-events: none; font: 800 24px/1 system-ui, sans-serif; color: var(--bulb, #ffd34d);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .2); margin-left: -8px; animation: spark .95s cubic-bezier(.2, .7, .3, 1) backwards;
}
@keyframes spark { from { opacity: 1; transform: translate(0, 0) scale(.6); } to { opacity: 0; transform: translate(var(--dx), -150px) rotate(var(--r)) scale(1.2); } }
.pianika .spark { color: var(--green); }
.rig.shake { animation: shake .35s var(--ease); }
@keyframes shake { 20% { transform: translate(-5px, 2px) rotate(-.6deg); } 50% { transform: translate(5px, -2px) rotate(.6deg); } 80% { transform: translate(-2px, 1px); } }

/* magnetic calls to action */
.btn.magnetic, .store-badge.magnetic { transition: translate .3s var(--ease), transform .14s var(--ease), background-color .14s var(--ease); }
.store-badge::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  animation: shimmer 4s ease-in-out 2.4s infinite;
}
@keyframes shimmer { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* sliding pill under the current section's nav link */
.nav-pill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 999px; opacity: 0; pointer-events: none;
  background: color-mix(in srgb, var(--mint) 32%, transparent);
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s var(--ease);
}
.nav-pill.on { opacity: 1; }
.nav:not(.scrolled) .nav-pill { background: rgba(255, 255, 255, .16); }

/* ticker: two bands crossing between the stage and the story */
.bands { position: relative; height: 150px; overflow: hidden; background: var(--green); }
.band { position: absolute; left: -5%; width: 110%; top: 50%; padding: 12px 0 8px; overflow: hidden; white-space: nowrap; }
.band-a { z-index: 2; background: var(--yellow); color: var(--green); transform: translateY(-50%) rotate(-3deg); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); }
.band-b { background: #2d2440; color: #fff; transform: translateY(-50%) rotate(2.4deg); }
.band-track { display: inline-flex; align-items: center; gap: 26px; font-size: 30px; font-weight: 800; line-height: 1; animation: marquee 40s linear infinite; }
.band-b .band-track { animation-direction: reverse; animation-duration: 52s; font-size: 24px; }
.band-track i { font-style: normal; color: var(--curtain, #c23b4e); }
.band-a .band-track i { color: #c23b4e; }
.band-b .band-track i { color: #ffd34d; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* scroll reveals use the individual transform properties, so they never fight an element's own transform */
.js [data-reveal] {
  --dl: calc(var(--d, 0) * 70ms);
  opacity: 0; translate: 0 32px;
  transition: opacity .8s var(--ease), translate .8s var(--ease), scale .8s var(--ease), rotate .8s var(--ease), transform .5s var(--ease);
  transition-delay: var(--dl), var(--dl), var(--dl), var(--dl), 0s;
}
.js [data-reveal="pop"] { translate: 0 24px; scale: .88; rotate: -2deg; }
.js [data-reveal="left"] { translate: -64px 0; rotate: -4deg; }
.js [data-reveal="right"] { translate: 64px 0; rotate: 4deg; }
.js [data-reveal].in { opacity: 1; translate: none; scale: none; rotate: none; }

/* 3D tilt with a moving sheen on screenshots */
.tilt { transition: transform .5s var(--ease); }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .28), transparent 55%);
}
.tilt:hover::after { opacity: 1; }

/* modes stack on top of each other as you scroll (desktop) */
.mode::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #0e3a30; opacity: calc(var(--p, 0) * .25); pointer-events: none; }
@media (min-width: 1021px) and (min-height: 760px) {
  .mode-stack .mode { position: sticky; top: calc(92px + var(--k) * 18px); transform-origin: 50% 0; box-shadow: 0 -16px 40px -24px rgba(14, 58, 48, .45); }
}

/* small living details */
.outfits figure img { animation: bob 3.2s ease-in-out infinite; }
.outfits figure:nth-child(2) img { animation-delay: -.8s; }
.outfits figure:nth-child(3) img { animation-delay: -1.6s; }
.outfits figure:nth-child(4) img { animation-delay: -2.4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes waves { to { transform: translateX(-120px); } }
.islands li:hover { transform: translateY(-6px) rotate(-1.5deg); background: rgba(255, 255, 255, .22); }
.feature.glow { position: relative; overflow: hidden; }
.feature.glow > * { position: relative; }
.feature.glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--yellow) 45%, transparent), transparent 60%);
}
.feature.glow:hover::before { opacity: 1; }
.download-icon-wrap { position: relative; isolation: isolate; margin-bottom: 32px; }
.download-icon-wrap::before {
  content: ""; position: absolute; z-index: -1; inset: -18px; border-radius: 50%; filter: blur(18px); opacity: .85;
  background: conic-gradient(var(--yellow), var(--mint), var(--sky-deep), var(--red), var(--yellow));
  animation: spin 7s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- contact ---------- */
.contact { padding: 40px 0 120px; }
.contact-grid {
  position: relative; overflow: hidden; display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start;
  padding: 56px; border-radius: 36px; color: #fff;
  background: radial-gradient(640px circle at 0% 100%, rgba(101, 186, 167, .4), transparent 60%), radial-gradient(420px circle at 100% 0%, rgba(248, 216, 125, .18), transparent 60%), var(--green);
}
.contact h2 { font-size: clamp(30px, 3.8vw, 46px); }
.contact .sub { color: rgba(255, 255, 255, .86); }
.contact .sub a { color: var(--yellow); font-weight: 700; }
.contact-alpanica { width: 210px; margin-top: 28px; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .25)); }
.contact-form { position: relative; display: grid; gap: 18px; padding: 28px; border-radius: 28px; background: var(--surface); color: var(--text); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.topics { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 15px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; z-index: 1; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 8px 14px 6px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.2;
  background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--mint) 40%, transparent);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.chip:hover span { transform: translateY(-2px); }
.chip input:checked ~ span { background: var(--green); color: #fff; box-shadow: 0 4px 0 #023a2e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip input:checked ~ span { background: var(--yellow); color: var(--green); box-shadow: 0 4px 0 var(--yellow-2); } }
.chip input:focus-visible ~ span { outline: 3px solid var(--sky-deep); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-k { font-weight: 700; font-size: 15px; }
.field input, .field textarea {
  width: 100%; padding: 12px 16px; border-radius: 16px; border: 2px solid color-mix(in srgb, var(--mint) 40%, transparent);
  background: var(--bg); color: var(--text); font: 600 17px/1.4 "Baloo 2", system-ui, sans-serif; resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 35%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-2); opacity: .6; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-foot .btn[disabled] { opacity: .7; }
.form-status { font-weight: 700; }
.form-status.ok { color: var(--eyebrow); }
.form-status.err { color: var(--red); }
.form-status a { color: inherit; }
.btn.sent svg { animation: fly .9s var(--ease); }
@keyframes fly { 50% { transform: translate(22px, -18px) rotate(-20deg); opacity: 0; } 51% { transform: translate(-18px, 10px); opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .mode, .mode.reverse { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .mode.reverse .mode-copy { order: 0; }
  .islands { grid-template-columns: repeat(4, 1fr); }
  .story-grid, .rewards-grid { grid-template-columns: 1fr; }
  .stage { display: block; padding-top: calc(80px + env(safe-area-inset-top)); }
  .stage-grid { grid-template-columns: 1fr; gap: 20px; justify-items: center; }
  .stage-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .logo { transform: rotate(-2deg); transform-origin: center; }
  .stage-lead { margin-top: 20px; }
  .rig { width: min(640px, 100%); }
  .rig-alpanica { display: none; }
  .rig-fals { width: 84px; right: 6px; top: 50px; }
  .stage .cta-row { justify-content: center; }
  .features { grid-template-columns: 1fr 1fr; }
  .story-art { max-width: 240px; }
  .story-grid { gap: 8px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
  .contact-alpanica { position: absolute; right: 16px; top: 16px; width: 96px; margin: 0; opacity: .9; }
  .contact-copy { padding-right: 100px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .stage-lead { font-size: 16px; margin-top: 14px; }
  .stage .cta-row { margin-top: 18px; }
  .cta-more { display: none; }
  .stage-keys { height: 120px; gap: 3px; }
  .skey { font-size: 18px; padding-bottom: 10px; }
  .note > b { font-size: 15px; }
  .rig-fals { width: 68px; right: 4px; top: 44px; }
  .lanes { height: clamp(190px, 30svh, 300px); }
  .logo { font-size: 50px; }
  .hud { font-size: 14px; gap: 8px; }
  .hud-song img { display: none; }
  .hud-score b { font-size: 18px; }
  .trek-end { display: none; }
  .section-head { margin-bottom: 36px; }
  .section-head .sub, .sub { font-size: 18px; }
  .modes, .rewards, .teachers, .faq, .tour { padding: 80px 0; }
  .mode, .mode.reverse { padding: 24px 20px; }
  .mode p { font-size: 17px; }
  .islands { grid-template-columns: 1fr 1fr; }
  .tour-shots { grid-template-columns: 1fr; gap: 20px; }
  .tour-shots .device:last-child { transform: rotate(1.5deg); }
  .features { grid-template-columns: 1fr; }
  .rewards-shots { min-height: 0; }
  .rewards-shots .device { position: relative; width: 86%; }
  .tilt-r { margin: -28% 0 0 auto; }
  .outfits { gap: 10px; }
  .echo-card { padding: 16px; }
  .echo-top { grid-template-columns: auto 1fr; gap: 12px; }
  .echo-stats { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; justify-items: start; }
  .echo-alpanica { width: 72px; }
  .echo-msg { font-size: 17px; }
  .pianika { height: 190px; padding: 10px 8px 14px; }
  .key { margin: 0 1px; font-size: 17px; }
  .key.extra { display: none; }
  .key.black { width: 8.5%; }
  .toggle { margin-left: 0; }
  .finale { flex-direction: column; text-align: center; }
  .brand span { font-size: 20px; }
  .btn-sm { padding: 0 14px; }
  .key.black { font-size: 11px; }
  .bands { height: 110px; }
  .band-track { font-size: 21px; gap: 18px; }
  .band-b .band-track { font-size: 18px; }
  .contact { padding: 16px 0 80px; }
  .contact-grid { padding: 28px 16px 16px; border-radius: 28px; }
  .contact-copy { padding-right: 0; }
  .contact-alpanica { display: none; }
  .contact-form { padding: 20px 16px; }
  .field-row { grid-template-columns: 1fr; }
  .beams i:nth-child(1) { display: none; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .curtains { display: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- get the app: platform chooser ---------- */
.getapp {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 32px 24px 24px; border: 0; border-radius: 32px; text-align: center;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-2);
}
.getapp::backdrop { background: rgba(4, 30, 24, .55); backdrop-filter: blur(4px); }
.getapp[open] { animation: getapp-in .28s var(--ease); }
@keyframes getapp-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.getapp-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: transparent; color: var(--text-2); cursor: pointer;
}
.getapp-close:hover { background: rgba(127, 127, 127, .14); }
.getapp-close svg { width: 22px; height: 22px; }
.getapp-icon { display: block; width: 72px; height: 72px; margin: 0 auto; border-radius: 18px; }
.getapp h2 { margin: 12px 0 0; font-size: 28px; line-height: 1.15; color: var(--eyebrow); }
.getapp-sub { margin: 4px 0 20px; color: var(--text-2); }
.getapp-options { display: grid; gap: 12px; }
.getapp-opt {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 18px;
  border-radius: 22px; text-align: left; text-decoration: none; transition: transform .14s var(--ease);
}
.getapp-opt:active { transform: scale(.98); }
.getapp-opt svg { flex: none; width: 32px; height: 32px; }
.getapp-txt { display: flex; flex-direction: column; line-height: 1.15; }
.getapp-txt b { font-size: 21px; }
.getapp-txt small { font-size: 14px; font-weight: 600; opacity: .85; }
.getapp-ios { background: var(--green); color: #fff; box-shadow: 0 4px 0 #023a2e; }
.getapp-android { background: #3ddc84; color: #073042; box-shadow: 0 4px 0 #1f8a52; }
.getapp-rec {
  display: none; margin-left: auto; padding: 4px 10px; border-radius: 999px;
  background: var(--yellow); color: var(--green); font: 700 12px/1.2 "Baloo 2", system-ui; font-style: normal; white-space: nowrap;
}
.getapp-opt.is-device .getapp-rec { display: inline-block; }

/* ---------- promo: Google Play launch ---------- */
.promo { position: relative; }
.promo:focus { outline: none; }
.promo-tag {
  position: absolute; top: 20px; left: 20px; padding: 4px 12px; border-radius: 999px;
  background: var(--yellow); color: var(--green); font: 800 13px/1.2 "Baloo 2", system-ui; letter-spacing: .04em; text-transform: uppercase;
}
.promo .getapp-opt { justify-content: center; }
.promo-later {
  margin-top: 14px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text-2); font: 700 15px/1 "Baloo 2", system-ui; cursor: pointer;
}
.promo-later:hover { background: rgba(127, 127, 127, .14); }
