/* Key Quest — playkeyquest.app
   Tokens mirror the app: KQPurpleGlowBackground, kqGold*, kqInk, KQCloudPanelBackground. */

:root {
  --kq-glow: #5a2daa;
  --kq-mid: #33186f;
  --kq-edge: #1a0c44;
  --kq-deep: #12072e;
  --kq-brand: #3f0072;
  --kq-ink: #2d0057;
  --kq-gold: #e89902;
  --kq-gold-bright: #fbca00;
  --kq-gold-dark: #b45309;
  --kq-gold-pale: #fff3c4;
  --kq-lav: #c9b6f2;
  --kq-lav-pale: #e9deff;
  --kq-green: #22c55e;
  --kq-green-bright: #4ade80;
  --kq-red: #ef4444;
  --kq-track: #2e1048;
  --kq-panel: #6e3fa3;
  --kq-hud: #5c3d8a;
  --kq-lip: #9a6200;

  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.78);
  --text-3: rgba(255, 255, 255, 0.6);
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --panel-border: rgba(255, 255, 255, 0.16);

  --font-round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Nunito", system-ui, "Segoe UI", sans-serif;

  --header-h: 68px;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--kq-edge);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--kq-gold-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffe680; }
:focus-visible { outline: 3px solid var(--kq-gold-bright); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3, h4 {
  font-family: var(--font-round);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--kq-gold-bright); color: var(--kq-ink); font-weight: 700;
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Background: app glow + cloud bank ---------- */

.glow-bg {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 90% 70% at 50% 30%, var(--kq-glow) 0%, var(--kq-mid) 48%, var(--kq-edge) 100%);
}
.glow-bg--low { background: radial-gradient(ellipse 90% 80% at 50% 60%, var(--kq-glow) 0%, var(--kq-mid) 50%, var(--kq-edge) 100%); }

.cloud-bank {
  position: absolute; inset: auto 0 0 0; height: 460px;
  pointer-events: none; z-index: -1; overflow: hidden;
}
.cloud-bank svg { position: absolute; left: -4%; bottom: 0; width: 108%; height: 100%; }
.cloud-layer--back { animation: cloud-drift 40s ease-in-out infinite alternate; }
.cloud-wisp { animation: wisp-drift 32s ease-in-out infinite alternate; }
.cloud-wisp:nth-child(even) { animation-direction: alternate-reverse; }
@keyframes cloud-drift { to { transform: translateX(2%); } }
@keyframes wisp-drift { to { transform: translateX(-3%); } }

.sparkles { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.sparkle {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--kq-gold-pale); box-shadow: 0 0 10px 2px rgba(251, 202, 0, 0.55);
  opacity: 0; animation: twinkle 5s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.6); } 50% { opacity: 0.9; transform: scale(1); } }

.float-note {
  position: absolute; font-family: var(--font-round); font-weight: 900;
  color: rgba(251, 202, 0, 0.18); pointer-events: none; z-index: -1;
  animation: float-up 14s linear infinite;
}
@keyframes float-up {
  0% { transform: translateY(40px) rotate(-8deg); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(-260px) rotate(10deg); opacity: 0; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(26, 12, 68, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--panel-border);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--kq-gold-bright); text-decoration: none;
  font-family: var(--font-round); font-weight: 900; font-size: 1.3rem; letter-spacing: 0.01em;
}
.brand:hover { color: var(--kq-gold-bright); }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.site-nav a:not(.btn):hover { color: #fff; background: var(--panel); }
.site-nav .btn { margin-left: 8px; }
@media (max-width: 820px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  --lift: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 24px; border-radius: 999px; border: 0;
  font-family: var(--font-round); font-weight: 800; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background 0.25s ease, color 0.2s;
  transform: translateY(var(--lift));
}
.btn:hover { --lift: -2px; }
.btn:active { --lift: 1px; }
/* KQPrimaryCTAButtonStyle: gold pill, heavy kqPurpleMid label, gold lip underneath. */
.btn-gold {
  color: var(--kq-brand); font-weight: 900;
  background: linear-gradient(180deg, var(--kq-gold-bright) 0%, var(--kq-gold) 100%);
  box-shadow: 0 4px 0 var(--kq-lip), 0 8px 18px rgba(251, 202, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-gold:hover { color: var(--kq-brand); box-shadow: 0 5px 0 var(--kq-lip), 0 12px 26px rgba(251, 202, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn-gold:active { --lift: 3px; box-shadow: 0 1px 0 var(--kq-lip), 0 4px 10px rgba(251, 202, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn-gold:disabled { cursor: default; --lift: 0; color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.15); }
/* KQSecondaryCTAButtonStyle: dark pill with a thin gold outline. */
.btn-glass {
  color: #fff; background: rgba(26, 12, 68, 0.6);
  box-shadow: inset 0 0 0 1px rgba(251, 202, 0, 0.65);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover { color: #fff; background: rgba(26, 12, 68, 0.8); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.92rem; }
.btn-sm.btn-gold { box-shadow: 0 3px 0 var(--kq-lip), inset 0 1px 0 rgba(255, 255, 255, 0.55); }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 22px 10px 18px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}
.store-badge:hover { color: #fff; transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 14px 34px rgba(0, 0, 0, 0.45); }
.store-badge svg { width: 26px; height: 30px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-badge small { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; }
.store-badge strong { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }

/* ---------- Layout ---------- */

.section { position: relative; padding: clamp(80px, 12vw, 140px) var(--gutter); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.1rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-family: var(--font-round); font-weight: 800; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--kq-gold-bright);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.gold { color: var(--kq-gold-bright); }

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */

.hero { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: 40px var(--gutter) 200px; margin-top: calc(-1 * var(--header-h)); padding-top: 106px; }
.hero-inner {
  max-width: var(--max); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.journey {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none;
}
.journey li {
  font-family: var(--font-round); font-weight: 800; font-size: 0.95rem;
  padding: 6px 14px; border-radius: 999px;
  color: var(--text-3); background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.5s ease, background 0.5s ease, border-color 0.5s ease, transform 0.5s var(--ease-spring), box-shadow 0.5s ease;
}
.journey li.is-on {
  color: var(--kq-ink); background: var(--kq-gold-bright); border-color: var(--kq-gold-bright);
  transform: translateY(-2px); box-shadow: 0 6px 22px rgba(251, 202, 0, 0.45);
}
.journey li.is-done { color: var(--kq-gold-bright); border-color: rgba(251, 202, 0, 0.4); }
.hero h1 { margin-bottom: 0.35em; }
.hero h1 .line { display: block; }
.hero-lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--text-2); max-width: 34em; }
.skill-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; max-width: 520px; }
.skill-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.skill-list .dot {
  flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(251, 202, 0, 0.14); color: var(--kq-gold-bright);
}
.skill-list .dot svg { width: 18px; height: 18px; }
.hero-promise { color: var(--kq-gold-bright); font-weight: 700; font-family: var(--font-round); font-size: 1.1rem; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: 0.92rem; color: var(--text-3); }

/* Phone mockup */
.phone-wrap { position: relative; justify-self: center; perspective: 1400px; }
.phone {
  position: relative; width: min(330px, 78vw); aspect-ratio: 9 / 19.5;
  border-radius: 52px; padding: 12px;
  background: linear-gradient(145deg, #2a1463, #12072e);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12), 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 120px rgba(90, 45, 170, 0.6);
  transform: rotateY(-10deg) rotateX(4deg);
  animation: phone-bob 7s ease-in-out infinite;
}
@keyframes phone-bob { 50% { transform: rotateY(-6deg) rotateX(2deg) translateY(-10px); } }
.phone-screen {
  position: relative; height: 100%; border-radius: 42px; overflow: hidden;
  background: radial-gradient(ellipse 110% 70% at 50% 28%, var(--kq-glow), var(--kq-mid) 50%, var(--kq-edge));
  display: flex; flex-direction: column; padding: 46px 16px 18px;
}
.phone-island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; }
.phone-hud { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-round); font-weight: 800; font-size: 0.8rem; }
.phone-hud .hud-brand { color: var(--kq-gold-bright); display: flex; align-items: center; gap: 6px; }
.phone-hud .hud-brand img { width: 20px; height: 20px; border-radius: 5px; }
.hud-xp { display: flex; align-items: center; gap: 4px; color: #fff; }
.hud-xp svg { width: 13px; height: 13px; color: var(--kq-gold-bright); }
.hud-xp b { min-width: 2ch; text-align: left; font-variant-numeric: tabular-nums; }
.phone-title { margin: 16px 0 2px; text-align: center; font-family: var(--font-round); font-weight: 900; font-size: 1.55rem; color: #fff; }
.phone-sub { text-align: center; font-size: 0.78rem; color: var(--text-2); margin-bottom: 14px; }
.staff-card { position: relative; background: #fff; border-radius: 16px; padding: 10px 8px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); }
.staff-card svg { width: 100%; height: auto; }
.staff-note { transition: fill 0.25s ease; }
.staff-note.is-hit { fill: var(--kq-green); }
.staff-note.is-now { fill: var(--kq-gold); }
.staff-note.is-miss { fill: var(--kq-red); }
.staff-note.half.is-miss { fill: #fff; stroke: var(--kq-red); }
.staff-cursor { transition: transform 0.35s var(--ease-out); }
.staff-note.half { fill: #fff; stroke: #1a0c44; stroke-width: 1.8; transition: stroke 0.25s ease; }
.staff-note.half.is-now { fill: #fff; stroke: var(--kq-gold); }
.staff-note.half.is-hit { fill: #fff; stroke: var(--kq-green); }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.45); opacity: 0; } }
/* Hero: Sing it. pitch match (MicListenView.pitchMatchCard + PitchMatchKeyboard). */
.pm .phone-sub { margin-bottom: 10px; }
.pm .staff-card { padding: 6px 6px 2px; }
.pm-live { transition: transform 0.12s linear, opacity 0.25s; }
.pm-card { margin-top: 12px; padding: 10px 10px 12px; border-radius: 18px; background: rgba(30, 12, 72, 0.7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.pm-keys { position: relative; height: 124px; padding: 0; border-radius: 10px; overflow: hidden; background: #2a1463; }
.pm-keys .pk-whites { gap: 0; }
.pm-keys .pk-white { margin: 0 1px; border-radius: 0 0 8px 8px; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.12); transition: background 0.09s linear; }
.pm-keys .pk-white small { font-size: 8.5px; }
.pm-keys .pk-white.is-target { background: var(--kq-gold-bright); }
.pm-keys .pk-white.is-target small { font-size: 12px; font-weight: 900; }
.pm-keys .pk-white.is-target small sub { font-size: 7px; vertical-align: -2px; }
.pm-keys .pk-white.is-lit:not(.is-target), .pm-keys .pk-black.is-lit { background: #ffe98f; }
.pm-keys .pk-black { top: 0; transition: background 0.09s linear; }
/* The gold line: a dark-outlined capsule with a cap, gliding with your pitch. */
.pm-line { position: absolute; top: 1px; width: 14px; height: calc(100% - 19px); margin-left: -7px; opacity: 0; transition: left 0.09s linear, opacity 0.2s; pointer-events: none; }
.pm-line.is-on { opacity: 1; }
.pm-line::before { content: ""; position: absolute; left: 4.5px; top: 5px; bottom: 0; width: 5px; border-radius: 3px; background: var(--kq-gold-bright); box-shadow: 0 0 0 1.5px rgba(26, 12, 68, 0.92); }
.pm-line::after { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 9px; border-radius: 5px; background: var(--kq-gold-bright); box-shadow: 0 0 0 1.5px rgba(26, 12, 68, 0.92); }
.pm-hold { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.pm-ring { width: 26px; height: 26px; flex: 0 0 26px; }
.pm-ring [data-pm-ring] { transition: stroke-dashoffset 0.1s linear; }
.pm-hold-label { font-size: 0.78rem; font-weight: 600; color: #fff; white-space: nowrap; }
@media (max-width: 420px) { .pm-hold-label { font-size: 0.72rem; } .pm-octave { font-size: 0.58rem; } .pm-footer .phone-skip { padding: 0 8px; font-size: 0.68rem; } .pm-footer .phone-cta { font-size: 0.7rem; } }
.pm-octave { margin-left: auto; font-size: 0.64rem; font-weight: 500; color: rgba(255, 255, 255, 0.65); white-space: nowrap; }
.pm-footer { margin-top: 10px; }
/* The Coach's first-sight intro for this question type (echoIntroHeadline / echoIntroStandardTip). */
.pm-coach { margin-top: auto; display: grid; gap: 2px; padding: 10px 12px; border-radius: 16px; text-align: left; background: rgba(30, 12, 72, 0.85); box-shadow: inset 0 0 0 1px rgba(251, 202, 0, 0.55); }
.pm-coach strong { font-family: var(--font-round); font-weight: 800; font-size: 0.8rem; color: #fff; }
.pm-coach span { font-size: 0.72rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.phone-tool.is-playing .w1 { animation: spk 0.6s ease-in-out infinite; }
.phone-tool.is-playing .w2 { animation: spk 0.6s ease-in-out 0.15s infinite; }
@keyframes spk { 50% { opacity: 0.25; } }
.pk-whites { display: flex; height: 100%; gap: 2px; }
.pk-white { position: relative; flex: 1 1 0; border-radius: 0 0 7px 7px; background: #fff; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; padding-bottom: 6px; box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.1); transition: background 0.25s ease; }
.pk-white small { font-family: var(--font-round); font-weight: 800; font-size: 9px; color: rgba(26, 0, 64, 0.85); }
.pk-white .pk-do { width: 11px; height: 11px; border-radius: 50%; background: var(--kq-gold-bright); box-shadow: inset 0 0 0 2px #b8900a; }
.pk-black { position: absolute; top: 3px; height: 58%; border-radius: 0 0 4px 4px; background: #1a0c3a; box-shadow: 0 3px 3px rgba(0, 0, 0, 0.35); }
.pk-white.is-lit { background: linear-gradient(180deg, #fff3c4, var(--kq-gold-bright)); transition: none; }
.pk-white.is-lit .pk-do { opacity: 0; }
.phone-footer { position: relative; display: flex; gap: 6px; margin-top: 14px; }
.phone-tool, .phone-skip, .phone-cta {
  display: flex; align-items: center; justify-content: center; gap: 5px; height: 40px; border-radius: 999px;
  font-family: var(--font-round); font-size: 0.74rem; white-space: nowrap;
  transition: transform 0.12s ease, background 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.3s;
}
/* QuestionGlassPillStyle (Replay tool, Can't sing now) · kqPrimaryCTA (Start). */
.phone-tool { flex: 0 0 40px; color: #fff; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.phone-tool svg { width: 17px; height: 17px; }
.phone-skip { flex: 0 0 auto; padding: 0 11px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.phone-skip svg { width: 14px; height: 14px; }
.phone-cta { flex: 1 1 auto; font-weight: 900; color: var(--kq-brand); background: linear-gradient(180deg, var(--kq-gold-bright), var(--kq-gold)); box-shadow: 0 3px 0 var(--kq-lip), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.phone-cta.is-off { color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.15); }
.phone-cta.is-pressed { transform: translateY(2px); box-shadow: 0 1px 0 var(--kq-lip), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.phone-skip.is-pressed { transform: scale(0.95); background: rgba(255, 255, 255, 0.24); }
.phone-finger { position: absolute; left: 0; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); opacity: 0; pointer-events: none; }
.phone-finger.is-tap { animation: finger 0.7s ease-out forwards; }
@keyframes finger { 0% { opacity: 0; transform: scale(1.5); } 35% { opacity: 1; transform: scale(0.85); } 100% { opacity: 0; transform: scale(1.8); } }
.phone-progress { height: 8px; border-radius: 8px; background: var(--kq-track); overflow: hidden; margin: 14px 0; }
.phone-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--kq-gold), var(--kq-gold-bright)); transition: width 0.4s var(--ease-out); }
.xp-pop {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, 0);
  font-family: var(--font-round); font-weight: 900; font-size: 1.4rem; color: var(--kq-gold-bright);
  text-shadow: 0 2px 14px rgba(251, 202, 0, 0.6); pointer-events: none;
  animation: xp-pop 1.1s var(--ease-out) forwards;
}
@keyframes xp-pop {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.6); }
  25% { opacity: 1; transform: translate(-50%, -6px) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -54px) scale(1); }
}
.phone-glyph { position: absolute; width: 150px; left: -128px; top: 30%; transform: rotate(-14deg); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5)); animation: glyph-float 6s ease-in-out infinite; z-index: 2; }
@keyframes glyph-float { 50% { transform: rotate(-9deg) translateY(-12px); } }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-bottom: 180px; }
  .hero-inner { grid-template-columns: 1fr; }
  .phone-wrap { margin-top: 24px; }
  .phone-glyph { display: none; }
}
@media (max-width: 420px) { .skill-list { grid-template-columns: 1fr; } }

/* ---------- Future self ---------- */

.future { background: linear-gradient(180deg, var(--kq-edge) 0%, #1e0c48 50%, var(--kq-edge) 100%); }
.future-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.future-card {
  position: relative; padding: 26px 24px 24px; overflow: hidden;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease, background 0.3s ease;
}
.future-card:hover { transform: translateY(-4px); border-color: rgba(251, 202, 0, 0.45); background: var(--panel-strong); }
.future-card .when { display: block; font-family: var(--font-round); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kq-lav); margin-bottom: 10px; }
.future-card p { font-family: var(--font-round); font-weight: 700; font-size: 1.2rem; line-height: 1.35; color: #fff; margin: 0; }
.future-card::after {
  content: ""; position: absolute; inset: auto -40px -60px auto; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 202, 0, 0.18), transparent 70%);
}
.mission-line {
  margin: clamp(48px, 7vw, 72px) auto 0; max-width: 820px; text-align: center;
  font-family: var(--font-round); font-weight: 900; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.2;
}
.mission-line .shine {
  background: linear-gradient(100deg, var(--kq-gold) 0%, var(--kq-gold-bright) 40%, #fff7d1 50%, var(--kq-gold-bright) 60%, var(--kq-gold) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s ease-in-out infinite;
}
@keyframes shine { 0% { background-position: 100% 0; } 60%, 100% { background-position: -50% 0; } }
@media (max-width: 900px) { .future-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .future-grid { grid-template-columns: 1fr; } }

/* ---------- Path (bird's eye) ---------- */

.path-section { overflow: hidden; }
.path-map { position: relative; max-width: 720px; margin: 0 auto; }
.path-map svg.path-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* Connector styling from the app's KeyPathConnector: dotted lavender track, lit path in
   violet with a soft halo, and white dashes flowing along the lit part. */
.path-line .track { fill: none; stroke: rgba(201, 182, 242, 0.4); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 11; }
.path-line .halo { fill: none; stroke: rgba(168, 101, 255, 0.35); stroke-width: 12; stroke-linecap: round; }
.path-line .core { fill: none; stroke: #c99bff; stroke-width: 5; stroke-linecap: round; }
.path-line .flow { fill: none; stroke: rgba(255, 255, 255, 0.8); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 14; animation: path-flow 1.2s linear infinite; }
.path-line .mask { fill: none; stroke: #fff; stroke-width: 16; stroke-linecap: round; }
@keyframes path-flow { to { stroke-dashoffset: -18; } }

.levels { list-style: none; margin: 0; padding: 0; position: relative; }
.level { --x: clamp(60px, calc(var(--lane) * 100%), calc(100% - 60px)); position: relative; height: 164px; }
.level-node {
  position: absolute; top: 50%; left: var(--x); width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; z-index: 1;
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.07);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.4s ease, background 0.4s ease;
}
.level-node img { width: 72%; transform: rotate(-32deg); filter: grayscale(1) brightness(1.35); opacity: 0.3; transition: filter 0.4s ease, opacity 0.4s ease; }
.badge { position: absolute; right: -4px; bottom: -4px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; transition: opacity 0.3s ease, transform 0.4s var(--ease-spring); }
.badge svg { width: 16px; height: 16px; }
.badge-lock { color: rgba(255, 255, 255, 0.8); background: #2a1760; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); }
.badge-check { color: #1a0040; background: #22c55e; box-shadow: 0 0 0 3px #16a34a; opacity: 0; transform: scale(0.4); }
.level.is-cleared .level-node, .level.is-current .level-node {
  background: radial-gradient(circle at 35% 30%, #5b2db0, #2f1570 55%, #1e0c4f 100%);
}
.level.is-cleared .level-node { box-shadow: inset 0 0 0 5px rgba(251, 202, 0, 0.85), 0 0 22px rgba(251, 202, 0, 0.3); }
.level.is-current .level-node {
  transform: scale(1.31);
  box-shadow: inset 0 0 0 5px var(--kq-gold-bright), 0 0 36px rgba(251, 202, 0, 0.55);
  animation: node-breathe 2.2s ease-in-out infinite;
}
@keyframes node-breathe { 50% { transform: scale(1.37); } }
.level.is-cleared .level-node img, .level.is-current .level-node img { filter: none; opacity: 1; }
.level.is-cleared .badge-lock, .level.is-current .badge-lock { opacity: 0; transform: scale(0.4); }
.level.is-cleared .badge-check { opacity: 1; transform: none; }
.rings, .rings::before, .rings::after { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.level.is-current .rings::before, .level.is-current .rings::after {
  content: ""; border: 3px solid rgba(251, 202, 0, 0.85); animation: node-ring 2.2s ease-out infinite;
}
.level.is-current .rings::after { animation-delay: 1.1s; }
@keyframes node-ring { 0% { transform: scale(1); opacity: 0.75; } 100% { transform: scale(1.65); opacity: 0; } }

.level-text { position: absolute; top: 50%; transform: translateY(-50%); }
.label-right .level-text { left: calc(var(--x) + 84px); right: 0; text-align: left; }
.label-left .level-text { left: 0; right: calc(100% - var(--x) + 84px); text-align: right; }
.level-text h3 { margin: 0 0 3px; font-size: 1.3rem; font-weight: 900; color: rgba(255, 255, 255, 0.5); transition: color 0.4s ease; }
.level-text p { margin: 0; font-family: var(--font-round); font-weight: 800; font-size: 0.98rem; color: rgba(255, 255, 255, 0.35); transition: color 0.4s ease; }
.level.is-cleared .level-text h3, .level.is-current .level-text h3 { color: #fff; }
.level.is-cleared .level-text p, .level.is-current .level-text p { color: var(--kq-gold-bright); }
.level-tag {
  display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-round); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--kq-ink); background: var(--kq-gold-bright);
}
@media (max-width: 480px) {
  .level { height: 150px; --x: clamp(52px, calc(var(--lane) * 100%), calc(100% - 52px)); }
  .level-node { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .label-right .level-text { left: calc(var(--x) + 62px); }
  .label-left .level-text { right: calc(100% - var(--x) + 62px); }
  .level-text h3 { font-size: 1.1rem; }
  .level-text p { font-size: 0.88rem; }
}

.ramp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(48px, 7vw, 80px); }
.ramp-step { padding: 20px; position: relative; }
.ramp-step b { display: block; font-family: var(--font-round); font-weight: 900; font-size: 1.05rem; margin-bottom: 4px; }
.ramp-step span { color: var(--text-2); font-size: 0.92rem; }
.ramp-step .lvl { display: inline-block; font-family: var(--font-round); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kq-gold-bright); margin-bottom: 8px; }
.ramp-bar { height: 6px; border-radius: 6px; background: var(--kq-track); margin-top: 14px; overflow: hidden; }
.ramp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--kq-gold), var(--kq-gold-bright)); border-radius: inherit; transition: width 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.ramp-step.is-in .ramp-bar i { width: var(--w, 100%); }
@media (max-width: 860px) { .ramp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ramp { grid-template-columns: 1fr; } }

/* ---------- Ear demo (constant wins) — mirrors the app's question screens ---------- */

.demo { background: linear-gradient(180deg, var(--kq-edge), #1e0c48 60%, var(--kq-edge)); }
.demo-card {
  position: relative; max-width: 560px; margin: 0 auto; padding: 0 0 clamp(22px, 4vw, 34px);
  border-radius: var(--radius-lg); text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 110% 70% at 50% 30%, var(--kq-glow) 0%, var(--kq-mid) 48%, var(--kq-edge) 100%);
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(251, 202, 0, 0.08);
}
/* QuestionHeaderBar: key + Key Quest · XP chip · level badge, on kqInk. */
.q-header {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--kq-ink); font-family: var(--font-round); font-weight: 800;
}
.q-brand { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.q-brand img { width: 30px; }
.q-chips { display: flex; align-items: center; gap: 10px; }
.xp-chip { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; transition: transform 0.3s var(--ease-spring); }
.xp-chip svg { width: 15px; height: 15px; color: var(--kq-gold-bright); transition: filter 0.3s; }
.xp-chip b { min-width: 2ch; text-align: left; }
.xp-chip.is-bump { transform: scale(1.3); }
.xp-chip.is-bump svg { filter: drop-shadow(0 0 6px rgba(251, 202, 0, 0.95)); }
.level-badge {
  padding: 4px 11px; border-radius: 999px; font-size: 0.85rem; color: var(--kq-brand);
  background: linear-gradient(180deg, var(--kq-gold-bright), var(--kq-gold));
}
/* OnboardingProgressTracker: one pill per question, gold when active. */
.q-tracker { list-style: none; display: flex; justify-content: center; gap: 6px; margin: 16px 16px 4px; padding: 0; flex-wrap: wrap; }
.q-tracker li {
  padding: 5px 12px; border-radius: 999px; font-family: var(--font-round); font-weight: 800; font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45); transition: background 0.35s ease, color 0.35s ease;
}
.q-tracker li.is-done { color: var(--kq-gold-bright); background: rgba(255, 255, 255, 0.12); }
.q-tracker li.is-done::before { content: "✓ "; }
.q-tracker li.is-active { color: var(--kq-brand); background: var(--kq-gold-bright); }
.demo-play-area { padding: 0 clamp(18px, 4vw, 34px); }
.q-pane { animation: q-in 0.45s var(--ease-out); }
@keyframes q-in { from { opacity: 0; transform: translateX(26px); } }
.q-title { font-size: 1.9rem; font-weight: 800; margin: 14px 0 4px; }
.q-prompt { color: var(--text-2); min-height: 3.1em; margin: 0 auto 14px; max-width: 30em; }
.play-orb {
  position: relative; width: 112px; height: 112px; margin: 4px auto 24px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--kq-brand);
  background: radial-gradient(circle at 35% 30%, #ffe680, var(--kq-gold-bright) 45%, var(--kq-gold));
  box-shadow: inset 0 -6px 0 rgba(154, 98, 0, 0.55), 0 0 0 10px rgba(251, 202, 0, 0.12), 0 0 50px rgba(251, 202, 0, 0.45);
  transition: transform 0.3s var(--ease-spring);
}
.play-orb:hover { transform: scale(1.05); }
.play-orb:active { transform: scale(0.96); }
.play-orb svg { width: 42px; height: 42px; }
.play-orb.is-playing::before, .play-orb.is-playing::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--kq-gold-bright);
  animation: ring 1.4s ease-out infinite;
}
.play-orb.is-playing::after { animation-delay: 0.7s; }
/* KQAnswerButtonStyle: purple glass tile, stripe along the top (gold · cyan · pink). */
.answer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answer {
  position: relative; min-height: 64px; padding: 6px 10px 0; border-radius: 16px; cursor: pointer;
  font-family: var(--font-round); font-weight: 900; font-size: 1.25rem; color: #fff;
  background: rgba(91, 33, 182, 0.55); border: 1.5px solid rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.1s ease-out, background 0.2s ease, border-color 0.2s ease, opacity 0.2s, box-shadow 0.3s;
}
.answer::before { content: ""; position: absolute; left: 10px; right: 10px; top: 6px; height: 4px; border-radius: 4px; background: var(--stripe, var(--kq-gold)); }
.answer:hover:not(:disabled) { background: rgba(91, 33, 182, 0.7); }
.answer:active:not(:disabled) { transform: scale(0.97); background: rgba(91, 33, 182, 0.75); border-color: rgba(255, 255, 255, 0.3); }
.answer:disabled { opacity: 0.5; cursor: default; }
.answer.is-right { opacity: 1; background: rgba(34, 197, 94, 0.85); border-color: #86efac; box-shadow: 0 0 30px rgba(34, 197, 94, 0.55); }
.answer.is-wrong { opacity: 1; background: rgba(239, 68, 68, 0.32); border-color: #f87171; animation: shake 0.4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.q-cta { width: 100%; }

/* Tap it. — rhythm strip + drum pad (RhythmTapView). */
.rhythm-card { border-radius: 16px; background: var(--kq-track); padding: 8px 10px; margin-bottom: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.rhythm-strip { width: 100%; height: auto; overflow: visible; }
.rhythm-strip .r-note { transition: fill 0.15s ease, stroke 0.15s ease; }
.rhythm-strip .r-head-open { fill: none; }
.rhythm-pad {
  position: relative; width: 156px; height: 156px; margin: 0 auto 10px; border-radius: 24px; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  background: var(--kq-panel);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.08s ease-out, box-shadow 0.15s;
}
.rhythm-pad:disabled { cursor: default; }
.rhythm-pad.is-live { box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25), inset 0 0 0 2px var(--kq-gold); }
.rhythm-pad.is-hit { transform: scale(0.94); }
.rhythm-ring { position: absolute; width: 112px; height: 112px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.12); }
.rhythm-pulse { position: absolute; width: 112px; height: 112px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.7); animation: beat-pulse 0.45s ease-out forwards; pointer-events: none; }
.rhythm-pulse.down { border: 3px solid var(--kq-gold); }
@keyframes beat-pulse { from { transform: scale(0.6); opacity: 0.85; } to { transform: scale(1.6); opacity: 0; } }
.rhythm-flash { position: absolute; inset: 0; border-radius: inherit; opacity: 0.55; animation: tap-flash 0.35s ease-out forwards; pointer-events: none; }
@keyframes tap-flash { to { opacity: 0; } }
.rhythm-count { position: absolute; font-family: var(--font-round); font-weight: 900; font-size: 3.4rem; line-height: 1; }
.rhythm-count.down { color: var(--kq-gold); }
.rhythm-count.pop { animation: count-pop 0.18s ease-out; }
@keyframes count-pop { from { transform: scale(1.15); opacity: 0.4; } }
.rhythm-label { position: absolute; bottom: 14px; font-family: var(--font-round); font-weight: 900; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.rhythm-label.now { color: var(--kq-gold-bright); }
.rhythm-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8rem; color: var(--text-3); margin: 0 0 16px; }
.rhythm-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.rhythm-legend .ok { background: var(--kq-green); }
.rhythm-legend .early { background: #06b6d4; }
.rhythm-legend .late { background: var(--kq-red); }
.rhythm-legend .miss { background: #9ca3af; }

/* Resolve it. — two audition tiles (ResolveItEndingView). */
.resolve-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.resolve-col { display: grid; gap: 10px; }
.resolve-col .q-cta { padding-inline: 10px; white-space: nowrap; font-size: clamp(0.88rem, 3.6vw, 1rem); }
.resolve-tile {
  min-height: 96px; border-radius: 16px; cursor: pointer; color: #fff;
  display: grid; place-items: center; align-content: center; gap: 6px;
  background: rgba(255, 255, 255, 0.12); border: 2px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-round); font-weight: 900; font-size: 1.4rem;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.resolve-tile:active:not(:disabled) { transform: scale(0.97); }
.resolve-tile svg { width: 34px; height: 34px; }
.resolve-tile .i-wave { display: none; color: var(--kq-gold-bright); }
.resolve-tile.is-hearing { background: rgba(255, 255, 255, 0.22); border-color: var(--kq-gold-bright); }
.resolve-tile.is-hearing .i-play { display: none; }
.resolve-tile.is-hearing .i-wave { display: block; }
.resolve-tile.is-right { background: rgba(74, 222, 128, 0.3); border-color: var(--kq-green-bright); }
.resolve-tile.is-wrong { background: rgba(248, 113, 113, 0.32); border-color: #f87171; }
.resolve-tile:disabled { cursor: default; }

/* Coach line (miss) / verdict (win). */
.coach-line {
  display: grid; gap: 4px; margin: 16px 0 0; padding: 12px 16px; border-radius: 16px; text-align: left;
  background: var(--kq-track); border: 1px solid rgba(201, 182, 242, 0.25); animation: rise 0.4s var(--ease-out);
}
.coach-line strong { font-family: var(--font-round); font-weight: 800; color: var(--kq-lav-pale); }
.coach-line span { color: var(--text-2); font-size: 0.95rem; }
.coach-line.good { border-color: rgba(74, 222, 128, 0.45); }
.coach-line.good strong { color: var(--kq-green-bright); }
.coach-line.bad strong { color: #f87171; }

/* "+N XP" flight: pop → rise → fly into the header chip (XPWinCelebration). */
.xp-flight {
  position: absolute; z-index: 5; left: 0; top: 0; pointer-events: none;
  padding: 6px 12px; border-radius: 999px; font-family: var(--font-round); font-weight: 900; font-size: 1rem; color: #1a0040;
  background: linear-gradient(180deg, var(--kq-gold-bright), var(--kq-gold));
  box-shadow: 0 0 18px rgba(251, 202, 0, 0.75); white-space: nowrap;
}
.xp-spark { position: absolute; z-index: 4; width: 6px; height: 6px; border-radius: 50%; background: var(--kq-gold-bright); pointer-events: none; animation: xp-spark 0.6s ease-out forwards; }
@keyframes xp-spark { to { transform: translate(var(--dx), var(--dy)) scale(0.4); opacity: 0; } }

.demo-finish { display: none; padding: 26px clamp(18px, 4vw, 34px) 0; }
.demo-card.is-done .demo-play-area, .demo-card.is-done .q-tracker { display: none; }
.demo-card.is-done .demo-finish { display: block; animation: rise 0.8s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.finish-key { width: 180px; margin: 0 auto; filter: drop-shadow(0 0 18px rgba(251, 202, 0, 0.5)); animation: finish-key 0.9s var(--ease-spring); }
@keyframes finish-key { from { transform: scale(0.4) rotate(-20deg); opacity: 0; } }
.demo-finish .finish-xp { font-family: var(--font-round); font-weight: 800; font-size: 1.6rem; color: var(--kq-gold-bright); margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.demo-finish h3 { font-size: clamp(1.5rem, 4vw, 1.9rem); margin: 6px 0 10px; }
.demo-finish p { color: var(--text-2); }
.demo-finish .btn { margin-top: 10px; }
.finish-again { margin-top: 14px; }
/* confettiLite: ten gold sparks falling from the centre. */
.demo-sparks, .levelup-sparks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.gold-spark { position: absolute; left: 50%; border-radius: 50%; animation: gold-spark 1.1s ease-out forwards; }
@keyframes gold-spark { from { transform: translate(var(--x), -40px); opacity: 0.95; } to { transform: translate(var(--x), var(--y)); opacity: 0; } }
.demo-caption { text-align: center; color: var(--text-3); font-size: 0.9rem; margin-top: 18px; }

/* ---------- Quest loop + key ---------- */

.steps.steps--row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: clamp(48px, 7vw, 80px); }
@media (max-width: 860px) { .steps.steps--row { grid-template-columns: 1fr; } }
/* Questions → boss battle → Level Up, side by side like the app's flow. */
.quest-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: start; justify-items: center; }
.quest-stage > .quest-arrow { margin-top: 336px; }
.quest-step { margin: 0; width: 100%; display: grid; justify-items: center; gap: 12px; }
.quest-step figcaption { font-family: var(--font-round); font-weight: 800; color: var(--text-2); font-size: 0.95rem; }
.quest-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--kq-brand); background: linear-gradient(180deg, var(--kq-gold-bright), var(--kq-gold)); box-shadow: 0 3px 0 var(--kq-lip); }
.quest-arrow svg { width: 24px; height: 24px; }
/* The Level 2 doorway waits for the battle's "Level up". */
.quest-step--levelup, .quest-arrow { transition: opacity 0.45s ease, transform 0.55s var(--ease-out); }
.quest-step--levelup.is-waiting, .quest-arrow.is-waiting { opacity: 0; visibility: hidden; transform: scale(0.96); }
@media (max-width: 900px) { .quest-stage { grid-template-columns: 1fr; } .quest-stage > .quest-arrow { margin-top: 0; } .quest-arrow { transform: rotate(90deg); } .quest-step--levelup.is-waiting, .quest-arrow.is-waiting { display: none; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 20px; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--font-round); font-weight: 900; font-size: 1.4rem; color: var(--kq-ink);
  background: linear-gradient(180deg, var(--kq-gold-bright), var(--kq-gold)); box-shadow: 0 4px 0 var(--kq-gold-dark);
}
.steps h3 { margin: 2px 0 4px; }
.steps p { margin: 0; color: var(--text-2); font-size: 0.97rem; }

/* Level Up — port of LevelUpView: the key flies in from behind you, lines up and pushes into
   the keyhole, turns, the doors swing out toward you and the light reveals what's new. */
.levelup {
  position: relative; max-width: 420px; width: 100%; margin: 0 auto; overflow: hidden; isolation: isolate;
  border-radius: 34px; cursor: pointer; padding: 34px 0 30px; min-height: 610px;
  background: radial-gradient(ellipse 120% 80% at 50% 32%, var(--kq-glow) 0%, var(--kq-mid) 48%, var(--kq-edge) 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--panel-border);
}
.levelup.is-complete { cursor: default; }
.levelup-clouds { height: 260px; }
.levelup-col { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.levelup-title, .levelup-msg { margin: 0; opacity: 0; will-change: transform, opacity; }
.levelup-title { font-family: var(--font-round); font-weight: 800; font-size: 1.9rem; line-height: 1.12; color: #fff; }
.levelup-msg { font-size: 1.2rem; color: rgba(255, 255, 255, 0.8); }
.doorway-fit { position: relative; width: min(330px, 86%); aspect-ratio: 300 / 330; z-index: 2; }
.doorway { position: absolute; left: 0; top: 0; width: 300px; height: 330px; transform-origin: 0 0; }
.doorway-svg { position: absolute; inset: 0; width: 300px; height: 330px; overflow: visible; }
.lu-key { position: absolute; transform-origin: 95% 17%; opacity: 0; will-change: transform, opacity; }
.lu-key-mask { position: absolute; left: 0; overflow: hidden; }
.lu-key-mask img { position: absolute; left: 0; max-width: none; transform-origin: 95% 17%; filter: drop-shadow(0 0 10px rgba(251, 202, 0, 0.8)); }
.unlock-row { display: flex; gap: 4px; width: 100%; padding: 0 22px; }
.unlock-chip { flex: 1 1 0; display: grid; justify-items: center; gap: 5px; opacity: 0; }
.unlock-chip small { font-size: 0.78rem; font-weight: 600; color: rgba(255, 255, 255, 0.75); line-height: 1.2; }
.chip-glyph { height: 22px; display: flex; align-items: center; gap: 5px; color: var(--kq-gold-bright); }
.chip-glyph svg { width: 20px; height: 20px; }
.chip-text { font-family: var(--font-round); font-weight: 800; font-size: 1.05rem; }
.lu-flyer { position: absolute; left: 0; top: 0; z-index: 4; display: grid; justify-items: center; gap: 5px; pointer-events: none; text-align: center; will-change: transform, opacity; }
.lu-flyer .chip-glyph, .lu-flyer small { transition: none; }
.levelup-flash { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, #fff3c4 0%, rgba(251, 202, 0, 0.7) 30%, rgba(251, 202, 0, 0) 75%); }
.levelup-skip { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); transition: opacity 0.3s; z-index: 5; }
.levelup.is-complete .levelup-skip, .levelup:not(.is-running) .levelup-skip { opacity: 0; }
.door-replay { display: block; margin: 16px auto 0; }
/* Level Up inside the same iPhone frame as the boss battle: full-screen, like LevelUpView. */
.lu-screen { padding: 0; }
.lu-screen .phone-island { z-index: 8; }
.lu-screen .levelup { max-width: none; height: 100%; min-height: 0; border-radius: 0; box-shadow: none; padding: 64px 0 18px; display: flex; flex-direction: column; }
.lu-screen .levelup-col { flex: 1 1 auto; justify-content: center; }
.lu-screen .doorway-fit { width: min(300px, 92%); }
.lu-screen .unlock-row { padding: 0 14px; }
.lu-screen .levelup-skip { bottom: 74px; }
.lu-continue {
  position: relative; z-index: 5; margin: 10px 18px 0; height: 46px; border-radius: 999px; display: grid; place-items: center;
  font-family: var(--font-round); font-weight: 900; font-size: 1rem; color: var(--kq-brand);
  background: linear-gradient(180deg, var(--kq-gold-bright), var(--kq-gold)); box-shadow: 0 4px 0 var(--kq-lip), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  opacity: 0; transition: opacity 0.3s ease;
}
.levelup.is-complete .lu-continue { opacity: 1; }

/* ---------- Boss battle phone (MiniBossSessionView, the Level 1 Mary demo in tap mode) ---------- */
.phone--flat { transform: none; animation: phone-float 7s ease-in-out infinite; }
@keyframes phone-float { 50% { transform: translateY(-8px); } }
.treble-clef { font-family: "Noto Music", "Apple Symbols", "Segoe UI Symbol", "Bravura", serif; }
.bb .phone-sub { margin-bottom: 10px; }
.bb .staff-card { padding: 6px 6px 2px; }
.bb-keys { position: relative; height: 84px; margin-top: 12px; padding: 3px; border-radius: 10px; background: #2a1463; box-shadow: 0 8px 10px rgba(10, 0, 40, 0.35); }
.pk-white.is-right { background: var(--kq-green); transition: none; }
.pk-white.is-wrong { background: var(--kq-red); transition: none; }
.pk-white.is-right small, .pk-white.is-wrong small { color: #fff; }
.pk-white.is-right .pk-do, .pk-white.is-wrong .pk-do { opacity: 0; }
.bb-degrees { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.bb-deg {
  position: relative; height: 40px; border-radius: 12px; display: grid; place-items: center; padding-top: 4px;
  font-family: var(--font-round); font-weight: 800; font-size: 0.95rem; color: #fff;
  background: rgba(91, 33, 182, 0.55); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
  transition: transform 0.1s ease-out, background 0.2s;
}
.bb-deg::before { content: ""; position: absolute; left: 8px; right: 8px; top: 4px; height: 3px; border-radius: 3px; background: var(--stripe); }
.bb-deg.is-pressed { transform: scale(0.95); background: rgba(91, 33, 182, 0.8); }
.bb-deg.is-right { background: rgba(34, 197, 94, 0.85); }
.bb-deg.is-wrong { background: rgba(239, 68, 68, 0.75); animation: shake 0.4s ease; }
.bb-degrees .phone-finger, .bb-row .phone-finger { top: 50%; }
/* The Coach card pinned to the bottom: words, tempo, the battle's toggles and a dimmed Playing…. */
.bb-card { margin-top: auto; padding: 10px 12px 12px; border-radius: 16px; background: rgba(30, 12, 72, 0.85); box-shadow: inset 0 0 0 1px rgba(251, 202, 0, 0.55); }
.bb-words { margin: 0 0 8px; font-size: 0.72rem; font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, 0.88); text-align: left; }
.bb-tempo { display: flex; justify-content: space-between; font-size: 0.66rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.bb-tempo b { color: var(--kq-gold-bright); font-variant-numeric: tabular-nums; }
.bb-slider { position: relative; height: 4px; margin: 7px 0 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
.bb-slider i { position: absolute; left: 0; top: 0; bottom: 0; width: 40%; border-radius: inherit; background: var(--kq-gold-bright); }
.bb-slider i::after { content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.bb-row { position: relative; display: flex; gap: 5px; align-items: center; }
.bb-tool { flex: 0 0 32px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: rgba(255, 255, 255, 0.95); background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.bb-tool.is-on { background: rgba(251, 202, 0, 0.16); box-shadow: inset 0 0 0 1px rgba(251, 202, 0, 0.75); }
.bb-tool svg { width: 16px; height: 16px; }
.bb-main { flex: 1 1 auto; height: 34px; border-radius: 999px; display: grid; place-items: center; font-family: var(--font-round); font-weight: 900; font-size: 0.78rem; color: var(--kq-brand); background: linear-gradient(180deg, var(--kq-gold-bright), var(--kq-gold)); box-shadow: 0 3px 0 var(--kq-lip), inset 0 1px 0 rgba(255, 255, 255, 0.55); transition: transform 0.12s ease, box-shadow 0.12s; }
.bb-main.is-off { color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.15); }
.bb-main.is-pressed { transform: translateY(2px); box-shadow: 0 1px 0 var(--kq-lip); }
.bb-result { display: none; }
.bb-result p { margin: 0; text-align: left; }
.bb-defeated { font-family: var(--font-round); font-weight: 900; font-size: 0.92rem; color: #fff; }
.bb-stats { font-size: 0.74rem; font-weight: 700; color: var(--kq-gold-bright); margin-bottom: 3px !important; }
.bb-head { font-size: 0.72rem; font-weight: 700; color: #fff; }
.bb-result .bb-words { margin-bottom: 4px; }
.bb-result .bb-dots-note { font-size: 0.64rem; color: rgba(255, 255, 255, 0.65); margin-bottom: 8px; }
.bb.is-result .bb-card { box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.75); }
.bb.is-result .bb-run { display: none; }
.bb.is-result .bb-result { display: block; animation: rise 0.4s var(--ease-out); }
.bb-dot { transition: opacity 0.3s; }

/* ---------- Coach (normalizing challenges) ---------- */

.coach-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.coach-grid > * { grid-column: span 2; }
.coach-grid > :nth-child(n+4) { grid-column: span 3; }
.coach-card { padding: 24px; }
.coach-card .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(201, 182, 242, 0.14); color: var(--kq-lav-pale);
}
.coach-card .icon svg { width: 26px; height: 26px; }
.coach-card p { color: var(--text-2); margin: 0; font-size: 0.97rem; }
.coach-quote { max-width: 780px; margin: clamp(40px, 6vw, 60px) auto 0; text-align: center; font-family: var(--font-round); font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--kq-lav-pale); }
@media (max-width: 980px) { .coach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .coach-grid > *, .coach-grid > :nth-child(n+4) { grid-column: auto; } .coach-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .coach-grid { grid-template-columns: 1fr; } }

/* ---------- Habits (feedback loops) ---------- */

.habit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.habit { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.habit p { color: var(--text-2); margin: 0; font-size: 0.97rem; }
.habit-visual { height: 120px; display: grid; place-items: center; }
.flame-wrap { display: flex; align-items: center; gap: 12px; }
.flame { width: 56px; height: 72px; animation: flicker 1.8s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flicker { 25% { transform: scale(1.04, 0.97) rotate(-2deg); } 50% { transform: scale(0.97, 1.05); } 75% { transform: scale(1.03, 0.98) rotate(2deg); } }
.streak-num { font-family: var(--font-round); font-weight: 900; font-size: 3rem; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.streak-num small { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 800; }
.ring { width: 112px; height: 112px; }
.ring .bg { stroke: var(--kq-track); }
.ring .fg { stroke: url(#ringGold); stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease-out); }
.ring text { font-family: var(--font-round); font-weight: 900; fill: #fff; }
.week { display: flex; gap: 8px; }
.week span { display: grid; gap: 6px; justify-items: center; font-size: 0.72rem; font-weight: 800; color: var(--text-3); }
.week i { width: 28px; height: 28px; border-radius: 50%; background: var(--kq-track); display: grid; place-items: center; transition: background 0.3s ease, box-shadow 0.3s ease; transition-delay: var(--d, 0s); }
.habit.is-in .week i.on { background: var(--kq-gold-bright); box-shadow: 0 0 14px rgba(251, 202, 0, 0.6); }
.habit.is-in .week i.freeze { background: #93c5fd; box-shadow: 0 0 14px rgba(147, 197, 253, 0.6); }
@media (max-width: 900px) { .habit-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

.share-band { margin-top: 18px; padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.share-band p { margin: 0; color: var(--text-2); }
.share-band b { color: #fff; font-family: var(--font-round); }
.soon { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; font-family: var(--font-round); color: var(--kq-lav-pale); background: rgba(201, 182, 242, 0.14); border: 1px solid rgba(201, 182, 242, 0.3); }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plans--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin: 0 auto; }
.start-steps { list-style: none; counter-reset: start; margin: 0 auto 48px; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.start-steps li { counter-increment: start; position: relative; padding: 18px 18px 18px 64px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); }
.start-steps li::before { content: counter(start); position: absolute; left: 16px; top: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-round); font-weight: 900; color: var(--kq-ink); background: var(--kq-gold-bright); }
.start-steps b { display: block; font-family: var(--font-round); font-weight: 800; margin-bottom: 2px; }
.start-steps span { color: var(--text-2); font-size: 0.93rem; }
@media (max-width: 900px) { .start-steps { grid-template-columns: 1fr; max-width: 480px; } }
.plan { position: relative; padding: 28px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.1rem; color: var(--kq-lav); letter-spacing: 0.08em; text-transform: uppercase; }
.plan .price { font-family: var(--font-round); font-weight: 900; font-size: 2.6rem; line-height: 1; margin: 6px 0 4px; }
.plan .price small { font-size: 1rem; font-weight: 700; color: var(--text-2); }
.plan .per { color: var(--text-2); margin-bottom: 16px; min-height: 1.5em; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--text-2); font-size: 0.97rem; }
.plan li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--kq-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.plan .btn { margin-top: auto; }
.plan-best { background: linear-gradient(180deg, rgba(251, 202, 0, 0.14), rgba(255, 255, 255, 0.06)); border-color: rgba(251, 202, 0, 0.55); box-shadow: 0 0 60px rgba(251, 202, 0, 0.15); }
.plan-flag { position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 999px; font-family: var(--font-round); font-weight: 900; font-size: 0.78rem; color: var(--kq-ink); background: var(--kq-gold-bright); }
.pricing-note { text-align: center; color: var(--text-3); font-size: 0.9rem; margin-top: 22px; }
@media (max-width: 900px) { .plans, .plans--two { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--font-round); font-weight: 800; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 3px solid var(--kq-gold-bright); border-bottom: 3px solid var(--kq-gold-bright);
  transform: rotate(45deg); transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--text-2); }

/* ---------- Final CTA ---------- */

.final { text-align: center; padding-bottom: 260px; }
.final .key-hero { width: min(300px, 70vw); margin: 0 auto 28px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45)); animation: glyph-float 6s ease-in-out infinite; }
.final h2 { font-size: clamp(2.4rem, 6vw, 4rem); }
.final .tagline { font-family: var(--font-round); font-weight: 900; font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--kq-gold-bright); margin-bottom: 8px; }
.final p { color: var(--text-2); max-width: 36em; margin-left: auto; margin-right: auto; }
.final .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { background: var(--kq-deep); border-top: 1px solid var(--panel-border); padding: 40px var(--gutter) 48px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 6px 0 0; color: var(--text-3); font-size: 0.92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--kq-gold-bright); }
.footer-meta { width: 100%; color: var(--text-3); font-size: 0.85rem; }

/* ---------- Document pages (privacy / terms / support) ---------- */

.doc-hero { padding: 72px var(--gutter) 150px; margin-top: calc(-1 * var(--header-h)); padding-top: 138px; text-align: center; }
.doc-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.doc-hero p { color: var(--text-2); }
.doc { max-width: 780px; margin: -90px auto 0; padding: 0 var(--gutter) 100px; position: relative; z-index: 1; }
.doc-body { padding: clamp(24px, 4vw, 44px); background: rgba(26, 12, 68, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.doc-body h2 { font-size: 1.35rem; margin-top: 1.8em; color: var(--kq-gold-bright); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 1.05rem; margin-top: 1.2em; }
.doc-body p, .doc-body li { color: var(--text-2); }
.doc-body ul { padding-left: 1.2em; }
.doc-body li { margin-bottom: 0.4em; }
.doc-body strong { color: #fff; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.95rem; }
.doc-body th, .doc-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--panel-border); vertical-align: top; color: var(--text-2); }
.doc-body th { color: #fff; font-family: var(--font-round); }
.table-scroll { overflow-x: auto; }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.support-grid .panel { padding: 22px; }
.support-grid h3 { margin-bottom: 6px; }
.support-grid p { margin: 0; }
@media (max-width: 600px) { .support-grid { grid-template-columns: 1fr; } }

/* ---------- Friend invite ---------- */

.invite { min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; padding: 100px var(--gutter) 220px; margin-top: calc(-1 * var(--header-h)); text-align: center; }
.invite-card { max-width: 520px; padding: clamp(28px, 5vw, 44px); border-radius: var(--radius-lg); background: rgba(26, 12, 68, 0.72); border: 1px solid var(--panel-border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.invite-card img.icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 20px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.invite-code {
  display: inline-block; margin: 6px 0 20px; padding: 10px 20px; border-radius: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; font-size: 1.5rem; letter-spacing: 0.18em;
  color: var(--kq-gold-bright); background: rgba(0, 0, 0, 0.3); border: 1px dashed rgba(251, 202, 0, 0.5);
}
.invite-card .hero-actions { justify-content: center; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .float-note, .sparkle { display: none; }
}

/* Kit sign-up in the final section */
.waitlist { max-width: 560px; margin: 36px auto 0; padding: 26px clamp(18px, 4vw, 30px); text-align: center; }
.waitlist-title { font-family: var(--font-round); font-weight: 900; font-size: clamp(1.4rem, 3.4vw, 1.8rem); color: var(--kq-gold-bright); margin: 0 0 4px; }
.final .waitlist-lede { margin: 0 auto 18px; color: var(--text-2); }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist-row input {
  flex: 1 1 240px; min-width: 0; min-height: 54px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid var(--panel-border); background: rgba(18, 7, 46, 0.55); color: #fff;
  font: 600 1rem var(--font-body);
}
.waitlist-row input::placeholder { color: var(--text-3); }
.waitlist-row input:focus { outline: none; border-color: var(--kq-gold-bright); box-shadow: 0 0 0 3px rgba(251, 202, 0, 0.25); }
.waitlist-row .btn { flex: 0 0 auto; }
.waitlist-check { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; color: var(--text-2); font-size: 0.95rem; cursor: pointer; }
.waitlist-check input { width: 20px; height: 20px; accent-color: var(--kq-gold-bright); }
.final .waitlist-msg { min-height: 1.5em; margin: 12px auto 0; color: var(--kq-gold-pale); font-weight: 700; }
.final .waitlist-fine { margin: 6px auto 0; font-size: 0.82rem; color: var(--text-3); }
.waitlist-fine a { color: var(--kq-lav); }
.waitlist.is-done .waitlist-row, .waitlist.is-done .waitlist-check { display: none; }
@media (max-width: 520px) { .waitlist-row .btn { flex-basis: 100%; } }
