:root {
  --bg: #0b1026;
  --bg-2: #161b45;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #eef0ff;
  --muted: #a9afd6;
  --accent: #ffd27a;
  --accent-ink: #2a1f05;
  --lilac: #a8b1ff;
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(168, 177, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 210, 122, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  line-height: 1.55;
}
/* Starfield */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 32%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 84%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 54% 92%, #fff 50%, transparent 51%);
}

a { color: var(--lilac); }
img, svg { display: block; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand-mark { width: 36px; height: 36px; border-radius: 9px; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--surface-strong); transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; }
.btn small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.1; }
.btn span { line-height: 1.15; text-align: left; }

/* ---------- Landing page ---------- */
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; position: relative; }
.site-header { padding: 22px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header nav a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 15px; }
.site-header nav a:hover { color: var(--text); }

.hero { padding: 56px 0 72px; }
.hero .container { display: grid; gap: 48px; grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin: 0 0 30px; max-width: 34ch; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* App screenshot, bounded by both width and height so it never dominates the viewport. */
.shot {
  display: block;
  justify-self: center;
  width: auto;
  height: auto;
  max-width: min(280px, 60vw);
  max-height: min(500px, 64vh);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
@media (max-width: 820px) {
  .shot { max-width: min(210px, 55vw); max-height: min(376px, 52vh); border-radius: 18px; }
}

.section { padding: 64px 0; }
.section h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; margin: 0 0 12px; }
.section .sub { color: var(--muted); margin: 0 0 36px; max-width: 56ch; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 210, 122, 0.12); color: var(--accent); margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; padding: 22px 24px; border-left: 2px solid var(--lilac); background: linear-gradient(90deg, rgba(168, 177, 255, 0.08), transparent); border-radius: 0 var(--radius) var(--radius) 0; }
.steps li::before { content: "0" counter(step); display: block; font-size: 13px; font-weight: 700; color: var(--lilac); letter-spacing: 0.08em; margin-bottom: 6px; }
.steps strong { display: block; font-size: 17px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

.cta { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 48px 24px; }
.cta .store-buttons { justify-content: center; }
.cta p { color: var(--muted); margin: 0 0 26px; }

.site-footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { padding-top: 24px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .store-buttons { justify-content: center; }
  .site-header nav { display: none; }
}

/* ---------- Share / player page ---------- */
body.share { display: flex; }
.share-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
  position: relative;
}
.share-wrap .brand { align-self: center; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px 22px 24px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--lilac); font-weight: 650; text-align: center; }
.player-title { font-size: 22px; line-height: 1.25; margin: 8px 0 22px; text-align: center; letter-spacing: -0.01em; overflow-wrap: anywhere; }

.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 56px; margin-bottom: 22px; }
.wave i { display: block; width: 4px; border-radius: 4px; background: var(--lilac); opacity: 0.35; height: 30%; transition: opacity 0.3s; }
.wave i:nth-child(3n) { height: 70%; } .wave i:nth-child(4n) { height: 45%; } .wave i:nth-child(5n) { height: 90%; }
.wave i:nth-child(7n) { height: 55%; } .wave i:nth-child(11n) { height: 20%; }
.is-playing .wave i { opacity: 0.85; animation: bounce 1.1s ease-in-out infinite; }
.is-playing .wave i:nth-child(2n) { animation-delay: -0.3s; } .is-playing .wave i:nth-child(3n) { animation-delay: -0.6s; }
@keyframes bounce { 50% { transform: scaleY(0.45); } }

.controls { display: flex; align-items: center; gap: 16px; }
.play {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 30px rgba(255, 210, 122, 0.3);
  transition: transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.play:active { transform: scale(0.95); }
.play:disabled { opacity: 0.5; cursor: default; }
.play svg { width: 28px; height: 28px; grid-area: 1 / 1; }
.play .i-pause, .is-playing .play .i-play { display: none; }
.is-playing .play .i-pause { display: block; }
.play .spinner { display: none; grid-area: 1 / 1; width: 64px; height: 64px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--accent-ink); opacity: 0.4; animation: spin 0.8s linear infinite; }
.is-loading .play .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.track { flex: 1; min-width: 0; }
.track input[type="range"] {
  width: 100%; margin: 0; height: 28px; background: transparent;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  --pct: 0%;
}
.track input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) var(--pct), rgba(255, 255, 255, 0.15) var(--pct));
}
.track input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.15); }
.track input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
.track input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: #fff; border: 0; }
.track input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; }
.track input[type="range"]:disabled { cursor: default; opacity: 0.6; }
.times { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }

.notice { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 210, 122, 0.1); color: var(--accent); font-size: 14px; text-align: center; }
.notice a { color: inherit; font-weight: 600; }
.meta { margin: 20px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
noscript audio { width: 100%; margin-top: 16px; }

.gone { text-align: center; padding: 40px 24px; }
.card-logo { display: block; width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 20px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.card-logo.is-faded { opacity: 0.55; filter: grayscale(0.6); }
.gone h1 { font-size: 22px; margin: 0 0 8px; }
.gone p { margin: 0; color: var(--muted); }

.share-foot { text-align: center; margin: 0; font-size: 14px; }
.share-foot a { color: var(--muted); text-decoration: none; }
.share-foot a:hover { color: var(--text); }
/* The flex gap is 28px; pull the badges up so they sit with the link above. */
.share-stores { justify-content: center; margin-top: -14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
