/* 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(--green); 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 {
  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; }

/* ---------- 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 { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { 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; }
.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: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 14px; }
.eyebrow-light { color: var(--yellow); }
.hero .eyebrow { color: var(--green); }
.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; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background: linear-gradient(180deg, #7fb4e6 0%, var(--sky) 55%, var(--sky-2) 100%);
  padding: calc(120px + env(safe-area-inset-top)) 0 150px;
}
.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); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); color: var(--green); }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em { background: linear-gradient(transparent 50%, var(--yellow) 50%, var(--yellow) 78%, transparent 78%); padding: 0 .06em; margin: 0 -.06em; }
.hero h1 > span { position: relative; z-index: 0; display: block; }
.lead { margin-top: 22px; font-size: 21px; max-width: 34ch; color: #1d4a40; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-facts li { display: flex; flex-direction: column; line-height: 1.15; color: #1d4a40; font-weight: 600; font-size: 15px; }
.hero-facts b { font-size: 34px; color: var(--green); font-variant-numeric: tabular-nums; }

.hero-stage { position: relative; aspect-ratio: 4 / 3.3; }
.hero-device { position: absolute; inset: 6% 0 auto 6%; transform: rotate(2deg); }
.hero-alpanica { position: absolute; width: 38%; left: -10%; bottom: -6%; filter: drop-shadow(0 18px 18px rgba(14, 58, 48, .25)); animation: bob 3.2s var(--ease) infinite alternate; }
.hero-fals { position: absolute; width: 26%; right: -6%; top: -8%; transform: rotate(10deg); filter: drop-shadow(0 12px 14px rgba(14, 58, 48, .25)); animation: wobble 2.6s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-12px); } }
@keyframes wobble { from { transform: rotate(6deg) translateY(0); } to { transform: rotate(14deg) translateY(8px); } }
.judge-pop {
  position: absolute; left: 44%; top: 54%; padding: 6px 16px 4px; border-radius: 999px; background: var(--yellow); color: var(--green);
  font-weight: 800; font-size: 22px; box-shadow: var(--shadow-1); transform: rotate(-6deg);
  animation: pop 2.4s var(--ease) infinite;
}
@keyframes pop { 0%, 55% { opacity: 0; transform: rotate(-6deg) scale(.9) translateY(8px); } 65% { opacity: 1; transform: rotate(-6deg) scale(1.06); } 85% { opacity: 1; transform: rotate(-6deg) scale(1); } 100% { opacity: 0; transform: rotate(-6deg) translateY(-14px); } }

/* falling-note highway behind the device: the app's signature motif */
.highway { position: absolute; inset: -14% 6% 70% 14%; pointer-events: none; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.tile {
  position: absolute; top: -60px; width: 34px; border-radius: 9px; background: var(--yellow); color: var(--green);
  display: grid; place-items: end center; padding-bottom: 4px; font-weight: 800; font-size: 15px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); opacity: .9;
  animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(var(--dist, 700px)); opacity: 0; } }

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

/* ---------- devices ---------- */
.device {
  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 {
  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; opacity: .25; 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(6, 1fr); gap: 14px; counter-reset: isl; }
.islands li {
  counter-increment: isl; position: relative; 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(--surface); 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 { width: 132px; height: 132px; border-radius: 30px; box-shadow: var(--shadow-2); margin-bottom: 28px; }
.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: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 8px; justify-items: center; text-align: center; }
.brand-light { color: #fff; }
.fine { font-size: 14px; opacity: .7; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .hero-grid, .story-grid, .rewards-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 640px; width: 100%; margin: 24px auto 0; }
  .mode, .mode.reverse { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .mode.reverse .mode-copy { order: 0; }
  .islands { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .features { grid-template-columns: 1fr 1fr; }
  .story-art { max-width: 240px; }
  .story-grid { gap: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding-bottom: 110px; }
  .lead { font-size: 19px; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-facts li { font-size: 14px; }
  .hero-facts b { font-size: 28px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn, .cta-row .store-badge { justify-content: center; }
  .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; }
  .hero-alpanica { left: -2%; width: 34%; bottom: -10%; }
  .hero-fals { right: -2%; width: 22%; }
  .key.black { font-size: 11px; }
}
@media (max-width: 420px) {
  .nav-actions .btn-sm { display: none; }
}

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