/* Aurora Music website.
 * The page behaves like the app's Now Playing screen: the headline is sung as
 * synced lyrics, and the background takes its colour from the artwork in
 * whichever screenshot is on screen, crossfading as you scroll. */

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Tints sampled from the artwork in each screenshot. */
  --midnights: #3a2527;
  --showgirl: #2f3826;
  --x-green: #173f1f;
  --night: #221d2b;
  --tint: var(--midnights);

  --text: #f7f1ee;
  --muted: rgba(247, 241, 238, 0.68);
  --faint: rgba(247, 241, 238, 0.38);
  --line: rgba(247, 241, 238, 0.14);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.12);

  --display: 'Schibsted Grotesk', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale: a perfect fourth from 16px. */
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3.157rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.2vw, 4.21rem);

  --gutter: clamp(16px, 4vw, 56px);
  --shot-radius: 14px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--tint);
  color: var(--text);
  font: 400 var(--step-0) / 1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  transition: background-color 900ms ease;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
code {
  font: 500 0.9em / 1 ui-monospace, 'SF Mono', Menlo, monospace;
  background: var(--glass-strong);
  padding: 0.15em 0.4em;
  border-radius: 5px;
}
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  background: var(--text);
  color: #1a1214;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ── Buttons: the app's white pill, and a quiet text link ─────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
}
.btn-play {
  background: #fff;
  color: #1a1214;
  padding: 15px 26px 15px 22px;
  font-size: 1.0625rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.btn-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
}
.btn-play:active {
  transform: scale(0.98);
}
.btn-small {
  padding: 10px 18px;
  font-size: 0.9375rem;
}
.os-icon:empty {
  display: none;
}
.os-icon {
  display: inline-flex;
}
.btn-quiet {
  color: var(--muted);
  font-weight: 550;
  text-underline-offset: 4px;
}
.btn-quiet:hover {
  color: var(--text);
}

/* ── Navigation: a frosted bar, like the app's top chrome ─────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--tint) 62%, transparent);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: background-color 900ms ease;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a,
.nav-github {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 550;
  padding: 7px 12px;
  border-radius: 999px;
}
.nav-links a:hover,
.nav-github:hover {
  color: var(--text);
  background: var(--glass);
}
.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
}
.stars {
  font-weight: 650;
  color: var(--text);
}

/* ── Artwork glow: each section's screenshot, blurred into the background ─ */
[style*='--glow'] {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
[style*='--glow']::before {
  content: '';
  position: absolute;
  inset: 8% -10%;
  z-index: -1;
  background: var(--glow) center / cover no-repeat;
  filter: blur(110px) saturate(1.5);
  opacity: 0.55;
  pointer-events: none;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  min-height: calc(100svh - 58px);
  padding: clamp(40px, 7vh, 88px) 0 clamp(48px, 8vh, 96px) var(--gutter);
}
.hero-copy {
  max-width: 36rem;
  container-type: inline-size;
}

/* The sung headline: five lines, one lit at a time, the rest dimmed and softened. */
.sung {
  --line-h: 1.08em;
  height: calc(var(--line-h) * 3);
  overflow: hidden;
  font: 800 min(var(--step-4), 10cqi) / 1 var(--display);
  letter-spacing: -0.035em;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.sung-track {
  transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.sung p {
  height: var(--line-h);
  white-space: nowrap;
  color: var(--faint);
  filter: blur(1.5px);
  transition: color 500ms, filter 500ms;
}
.sung p.is-past {
  filter: none;
}
.sung p.is-active {
  filter: none;
  color: rgba(247, 241, 238, 0.4);
}
.sung .w {
  background: linear-gradient(90deg, var(--text) calc(var(--p, 0) * 100%), rgba(247, 241, 238, 0.4) calc(var(--p, 0) * 100%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sung p:not(.is-active) .w {
  background: none;
  color: inherit;
}

.lede {
  margin-top: 28px;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--muted);
  max-width: 30rem;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 32px;
}
.fine {
  margin-top: 18px;
  font-size: var(--step--1);
  color: var(--faint);
}
.hero-shot {
  margin: 0;
  justify-self: stretch;
}
.hero-shot img {
  width: 100%;
  border-radius: var(--shot-radius) 0 0 var(--shot-radius);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line);
}

/* ── Stories: one feature, one real screenshot ────────────────────────── */
.story {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(72px, 12vh, 140px) var(--gutter);
}
.story-flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
}
.story-flip .story-copy {
  order: 2;
}
.story-copy {
  max-width: 28rem;
}
.story h2 {
  font-size: var(--step-3);
}
.story-copy p {
  margin-top: 18px;
  font-size: 1.0625rem;
  color: var(--muted);
}
.story-shot {
  margin: 0;
}
.story-shot img {
  width: 100%;
  border-radius: var(--shot-radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--line);
  transition: opacity 220ms ease;
}

/* The Original / हिन्दी switch mirrors the app's Translate pill. */
.toggle {
  display: inline-flex;
  margin-top: 28px;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  background: var(--glass-strong);
}
.toggle button {
  font: 600 0.9375rem / 1 var(--body);
  color: var(--muted);
  background: none;
  border: 0;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.toggle button[aria-pressed='true'] {
  background: #fff;
  color: #1a1214;
}

/* ── Tour: a sideways shelf of screens ────────────────────────────────── */
.tour {
  padding: clamp(72px, 12vh, 140px) 0 clamp(40px, 6vh, 72px);
}
.tour-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
}
.tour h2,
.features h2,
.install h2,
.faq h2 {
  font-size: var(--step-3);
}
.tour-arrows {
  display: flex;
  gap: 8px;
}
.tour-arrows button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--glass-strong);
  color: var(--text);
  cursor: pointer;
}
.tour-arrows button:hover {
  background: rgba(255, 255, 255, 0.2);
}
.shelf {
  list-style: none;
  margin: 28px 0 0;
  padding: 0 var(--gutter) 20px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 560px);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar {
  display: none;
}
.shelf li {
  scroll-snap-align: start;
}
.shelf img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line);
}
.shelf b {
  display: block;
  margin-top: 14px;
  font: 700 var(--step-1) / 1.2 var(--display);
  letter-spacing: -0.015em;
}
.shelf span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ── The rest, as a list ──────────────────────────────────────────────── */
.features {
  padding: clamp(56px, 9vh, 110px) var(--gutter);
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 5vw, 72px);
  margin: 36px 0 0;
  max-width: 1100px;
}
.feature-list div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.feature-list dt {
  font: 700 var(--step-1) / 1.25 var(--display);
  letter-spacing: -0.015em;
}
.feature-list dd {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 34rem;
}

/* ── Install ──────────────────────────────────────────────────────────── */
.install {
  padding: clamp(72px, 12vh, 140px) var(--gutter);
}
.install-sub {
  margin-top: 12px;
  color: var(--muted);
}
.os-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  margin-top: 28px;
  border-radius: 999px;
  background: var(--glass-strong);
}
.os-tabs button {
  font: 600 0.9375rem / 1 var(--body);
  color: var(--muted);
  background: none;
  border: 0;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
}
.os-tabs button[aria-selected='true'] {
  background: #fff;
  color: #1a1214;
}
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  margin: 36px 0 0;
  padding: 0;
  max-width: 1100px;
}
.steps[hidden] {
  display: none;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: block;
  font: 800 var(--step-3) / 1 var(--display);
  color: var(--faint);
  margin-bottom: 14px;
}
.steps h3 {
  font-size: var(--step-1);
  letter-spacing: -0.015em;
}
.steps p {
  margin-top: 8px;
  color: var(--muted);
}
.steps .btn {
  margin-top: 18px;
}

.releases {
  margin-top: clamp(56px, 9vh, 96px);
  max-width: 1100px;
}
.releases-title {
  font-size: var(--step-2);
}
.releases-sub {
  margin-top: 6px;
  color: var(--muted);
}
.release-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.release {
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
}
.release header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.release header b {
  color: var(--text);
  font-weight: 700;
}
.release .tag {
  background: #fff;
  color: #1a1214;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.release time {
  margin-left: auto;
}
.release h3 {
  margin-top: 8px;
  font-size: var(--step-1);
  letter-spacing: -0.015em;
}
.release ul {
  margin: 10px 0 0;
  padding-left: 1.1em;
  color: var(--muted);
}
.release-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.release-assets a {
  text-decoration: none;
  font-size: 0.8125rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--glass-strong);
  color: var(--muted);
}
.release-assets a:hover {
  color: var(--text);
}
.all-files {
  margin-top: 18px;
}
.all-files a {
  color: var(--muted);
  text-underline-offset: 4px;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq {
  padding: clamp(56px, 9vh, 110px) var(--gutter);
}
.faq h2 {
  margin-bottom: 20px;
}
.faq details {
  max-width: 760px;
  border-top: 1px solid var(--line);
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  position: relative;
  font: 700 var(--step-1) / 1.3 var(--display);
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  font: 400 1.75rem / 1 var(--body);
  color: var(--muted);
  transition: transform 200ms ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 0 22px;
  color: var(--muted);
  max-width: 40rem;
}

/* ── Closing ──────────────────────────────────────────────────────────── */
.closing {
  display: grid;
  justify-items: start;
  gap: 32px;
  padding: clamp(96px, 16vh, 180px) var(--gutter);
}
.closing-line {
  font: 800 clamp(3.2rem, 1.6rem + 7vw, 7.5rem) / 0.95 var(--display);
  letter-spacing: -0.045em;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  padding: 36px var(--gutter) 44px;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--faint);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  color: var(--text);
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer nav a {
  color: var(--muted);
  text-decoration: none;
}
.footer nav a:hover {
  color: var(--text);
}
.legal {
  margin-top: 24px;
  max-width: 62rem;
  line-height: 1.55;
}

/* ── Narrow screens ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-github {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-right: var(--gutter);
  }
  .hero-shot img {
    border-radius: var(--shot-radius);
  }
  .story,
  .story-flip {
    grid-template-columns: 1fr;
  }
  .story-flip .story-copy {
    order: 0;
  }
  .feature-list,
  .steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .sung {
    font-size: clamp(1.75rem, 8.4vw, 2.4rem);
  }
  .brand span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body,
  .nav,
  .sung-track,
  .sung p,
  .btn-play {
    transition: none;
  }
}
