:root {
  --bg: #050505;
  --ink: #f4f3ef;
  --soft: rgb(244 243 239 / 0.64); /* body copy: passes AA on --bg */
  --line: rgb(244 243 239 / 0.12);
  --display: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* the system's: real Helvetica on Apple devices, Arial elsewhere */
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --pixel: 'Silkscreen', ui-monospace, monospace;
  --mac: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif; /* the app draws lyrics in SF */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.55 var(--sans); overflow-x: hidden; }
a { color: inherit; }
img { display: block; }

/* Film grain, so the black reads as night rather than as an empty page. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 10; height: 64px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(rgb(5 5 5 / 0.85), rgb(5 5 5 / 0));
}
.brand { display: flex; align-items: center; gap: 10px; font: 600 17px/1 var(--sans); text-decoration: none; letter-spacing: -0.01em; }
.top-cta { font: 500 14px/1 var(--sans); text-decoration: none; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; transition: border-color 0.2s; }
.top-cta:hover { border-color: rgb(244 243 239 / 0.4); }
.top-right { display: flex; align-items: center; gap: 10px; }

/* ---------- sound: the demo plays silent until one of these is tapped ---------- */
.listen {
  margin: 26px auto 0; display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.18); cursor: pointer;
  font: 500 14px/1 var(--sans); color: var(--ink); white-space: nowrap;
  background: rgb(10 10 12 / 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.45), 0 0 24px rgb(255 255 255 / 0.06); transition: border-color 0.2s, background 0.2s;
}
[data-play][hidden] { display: none; }
.listen:hover { border-color: rgb(255 255 255 / 0.4); }
.listen small { font-size: 12px; color: var(--soft); }
.listen small:empty { display: none; }
.listen .on, .listen[aria-pressed="true"] .off { display: none; }
.listen[aria-pressed="true"] .on { display: inline; }
/* Three bars: still while silent, bouncing while the song plays. */
.bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i, .mini i { width: 2px; height: 5px; border-radius: 1px; background: currentColor; }
.bars i:nth-child(2), .mini i:nth-child(2) { height: 9px; }
.sounding .bars i, .sounding .mini i { animation: bounce 0.9s ease-in-out infinite alternate; }
.sounding .bars i:nth-child(2), .sounding .mini i:nth-child(2) { animation-delay: -0.3s; }
.sounding .bars i:nth-child(3), .sounding .mini i:nth-child(3) { animation-delay: -0.6s; }
@keyframes bounce { from { height: 3px; } to { height: 12px; } }
.mini {
  display: none; align-items: flex-end; justify-content: center; gap: 2px; width: 36px; height: 36px; padding: 0 0 12px;
  border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer;
}
.sounding .mini { display: flex; }
.mini:hover { border-color: rgb(244 243 239 / 0.4); }

/* ---------- type ---------- */
h1, h2 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 96px); line-height: 0.98; margin: 0 auto; }
@media (max-width: 760px) { h1 br { display: none; } }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; }
em { font-style: normal; color: rgb(244 243 239 / 0.55); } /* set back, the way apple.com does a second line */
.tag { font: 500 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--soft); margin: 0 0 20px; }
.sub, .lede { color: var(--soft); max-width: 34em; margin: 24px auto 0; font-size: clamp(17px, 1.5vw, 19px); }
kbd { font: 500 0.9em var(--mac); padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); white-space: nowrap; }

/* Headings that get "sung" in: the app's word focus, done with CSS transitions. */
.js [data-sing] .w {
  display: inline-block; opacity: 0; filter: blur(6px); transform: scale(0.96);
  transition: opacity 0.5s, filter 0.6s, transform 0.6s, text-shadow 1.4s;
  transition-delay: calc(var(--i) * 110ms);
}
.js [data-sing].sung .w { opacity: 1; filter: blur(0); transform: none; text-shadow: 0 0 28px rgb(255 255 255 / 0.28); }

/* ---------- hero ---------- */
section { position: relative; padding: 140px 24px; text-align: center; }
.hero { padding-top: clamp(124px, 20vh, 190px); padding-bottom: 60px; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -120px; width: min(1100px, 140vw); height: 760px; translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.075), transparent);
}
.hero .lede { margin-top: 30px; }

.get { margin: 36px auto 0; }
.get { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.get .fine { flex-basis: 100%; }
.cta { display: inline-block; margin: 0; padding: 13px 22px; border-radius: 999px; border: 1px solid rgb(244 243 239 / 0.3); background: none; color: var(--ink); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: border-color 0.2s, opacity 0.2s; }
.cta:hover { border-color: rgb(244 243 239 / 0.6); }
.cta.primary { background: var(--ink); color: #0b0b0b; border-color: var(--ink); box-shadow: 0 0 32px rgb(255 255 255 / 0.12); }
.cta:disabled { opacity: 0.4; cursor: default; }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--soft); }

.works { margin: 28px auto 0; font-size: 13px; letter-spacing: 0.02em; color: var(--soft); }

/* ---------- the Mac ---------- */
.frame {
  position: relative; width: min(1120px, 100%); margin: 40px auto 0; aspect-ratio: 1280 / 800; overflow: hidden;
  border-radius: 20px; border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 0 0 8px rgb(255 255 255 / 0.025), 0 60px 160px -50px rgb(255 255 255 / 0.16);
}
.desk {
  position: absolute; left: 0; top: 0; width: 1280px; height: 800px; transform-origin: 0 0;
  background:
    radial-gradient(38% 46% at 82% 8%, rgb(120 132 160 / 0.32), transparent 70%),
    radial-gradient(50% 60% at 12% 110%, rgb(92 70 58 / 0.4), transparent 70%),
    linear-gradient(170deg, #14161c, #08080b 60%);
}
.menubar {
  position: absolute; inset: 0 0 auto; height: 24px; padding: 0 14px; display: flex; align-items: center; gap: 18px;
  font: 400 13px/1 var(--mac); color: rgb(255 255 255 / 0.92); background: rgb(0 0 0 / 0.28); backdrop-filter: blur(20px);
}
.menubar .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.menubar .right img { filter: invert(1); }
.menubar .right i { width: 14px; height: 10px; border-radius: 3px; border: 1.5px solid rgb(255 255 255 / 0.8); }
.window {
  position: absolute; left: 96px; top: 70px; width: 820px; height: 640px; border-radius: 12px; overflow: hidden;
  background: #101114; border: 1px solid rgb(255 255 255 / 0.08); box-shadow: 0 30px 80px rgb(0 0 0 / 0.55);
}
.chrome { height: 38px; display: flex; gap: 8px; align-items: center; padding: 0 14px; border-bottom: 1px solid rgb(255 255 255 / 0.05); }
.chrome i { width: 12px; height: 12px; border-radius: 50%; background: #2c2d31; }
.code { padding: 26px 34px; display: grid; gap: 15px; }
.code i { display: block; height: 9px; width: var(--w); margin-left: calc(var(--x, 0) * 28px); border-radius: 5px; background: rgb(255 255 255 / 0.1); }
.code i:nth-child(3n) { background: rgb(255 255 255 / 0.16); }
.code i:nth-child(4n + 1) { background: rgb(255 255 255 / 0.07); }

/* The overlay itself: same box, font and shadow as the app's panel. */
.lyrics {
  position: absolute; width: 440px; height: 280px; overflow: hidden;
  font: 500 16px/22px var(--mac); color: #fff; text-align: center;
  filter: drop-shadow(0 1px 3px rgb(0 0 0 / 0.4));
  mask-image: linear-gradient(transparent, #000 15%);
}
.desk .lyrics { right: 12px; top: 30px; }
.lyrics .l { position: absolute; left: 0; right: 0; top: 50%; margin-top: -11px; white-space: nowrap; will-change: transform; }
.lyrics .l span { display: inline-block; }

/* ---------- verses ---------- */
.verses {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; max-width: 1120px; margin: 0 auto;
  text-align: left; padding-top: 120px;
}
.verses h2 { font-size: clamp(28px, 2.6vw, 36px); }
.verses p:last-child { color: var(--soft); margin: 16px 0 0; }

/* ---------- studio ---------- */
.stage {
  position: relative; max-width: 760px; height: 340px; margin: 48px auto 0; overflow: hidden; border-radius: 20px;
  border: 1px solid rgb(255 255 255 / 0.08); background: radial-gradient(120% 90% at 50% 0%, #121318, #060607);
}
.stage .lyrics { left: 50%; top: 50%; translate: -50% -50%; }
.cover {
  position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; translate: -50% -50%; border-radius: 14px;
  background:
    radial-gradient(circle at 28% 30%, #ffb36b 0 18%, transparent 46%),
    radial-gradient(circle at 74% 68%, #6d5cff 0 14%, transparent 50%),
    radial-gradient(circle at 70% 22%, #ff4f8b 0 10%, transparent 40%),
    linear-gradient(135deg, #2b1030, #0d1a3a);
  transition: opacity 0.6s;
}
.cover::before { content: ""; position: absolute; inset: -8%; background: inherit; border-radius: inherit; filter: blur(28px); opacity: 0.85; z-index: -1; }
.cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgb(0 0 0 / 0.45); }
[data-art="off"] .cover { opacity: 0; }

.controls { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; margin-top: 28px; }
.seg { display: flex; align-items: center; gap: 6px; }
.seg span { font-size: 13px; color: var(--soft); margin-right: 6px; }
.seg button {
  font: 500 14px/1 var(--sans); color: var(--ink); cursor: pointer; padding: 9px 14px; border-radius: 999px;
  background: none; border: 1px solid var(--line); display: flex; align-items: center; gap: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.seg button[style]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(90deg, var(--a), var(--b)); box-shadow: 0 0 8px var(--b); }
.seg button:hover { border-color: rgb(244 243 239 / 0.4); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #0b0b0b; border-color: var(--ink); }

/* ---------- bridge ---------- */
.bridge canvas { width: 192px; height: 156px; image-rendering: pixelated; filter: drop-shadow(0 0 14px rgb(255 255 255 / 0.3)); margin: 0 auto; display: block; }
.pixel { font: 400 13px/1.8 var(--pixel); margin: 22px 0 56px; letter-spacing: 0.02em; }
.pixel span { color: var(--soft); }

/* ---------- finale: the last line rides a curve as you scroll ---------- */
.finale { height: 340vh; padding: 0; }
.finale .pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.finale svg { position: absolute; left: 50%; top: 43%; width: max(100vw, 820px); translate: -50% -50%; overflow: visible; }
.finale path { fill: none; }
.finale text {
  font: 500 84px/1 var(--display); text-transform: uppercase; letter-spacing: 0; fill: var(--ink);
  filter: drop-shadow(0 0 22px rgb(255 255 255 / 0.22));
}
.finale-get { position: absolute; inset: auto 0 clamp(28px, 7vh, 80px); }
.finale image { filter: drop-shadow(0 0 40px rgb(255 255 255 / 0.12)); }
.finale-get .get { margin-top: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

footer {
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; padding: 28px 24px 40px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--soft);
}

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  section { padding: 96px 20px; }
  .hero { padding-bottom: 32px; }
  .top-cta { display: none; }
  .listen { padding: 10px 15px; font-size: 13px; }
  .listen small { display: none; }
  .verses { grid-template-columns: 1fr; gap: 48px; padding-top: 72px; }
  .frame { border-radius: 14px; margin-top: 48px; }
  .stage { height: 300px; }
  .stage .lyrics { scale: 0.78; } /* the overlay is 440pt wide, like the app; the stage isn't */
  .field button { padding: 13px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .finale { height: 100vh; height: 100svh; }
  .js [data-sing] .w { transition: none; opacity: 1; filter: none; transform: none; }
  .sounding .bars i, .sounding .mini i { animation: none; }
}

/* Policy pages (privacy, terms, refunds) */
.policy { max-width: 38em; margin: 0 auto; padding: 132px 24px 96px; text-align: left; }
.policy h1 { font-size: clamp(44px, 6vw, 72px); margin: 0; }
.policy h2 { font-size: clamp(26px, 2.6vw, 32px); margin: 48px 0 0; }
.policy p, .policy li { color: var(--soft); }
.policy strong { color: var(--ink); font-weight: 500; }
.policy ul { padding-left: 1.2em; }
.policy li { margin: 8px 0; }
.policy .get { justify-content: flex-start; margin-top: 28px; }
.policy .key { white-space: pre-wrap; word-break: break-all; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font: 13px/1.5 ui-monospace, monospace; color: var(--ink); }
