:root { interpolate-size: allow-keywords; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--lk-paper);
  color: var(--lk-ink);
  font: 400 17px/1.5 var(--lk-font-sans);
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

h1, h2, h3 { font-family: var(--lk-font-serif); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }
a { color: var(--lk-accent); }

.eyebrow { font-size: 12px; line-height: 1.3; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lk-ink-muted); margin-bottom: 16px; }
.lede { font-size: 19px; color: var(--lk-ink-muted); max-width: 34rem; margin-top: 24px; }

.wordmark { font-family: var(--lk-font-serif); font-weight: 600; font-size: 22px; color: var(--lk-ink); text-decoration: none; }
.wordmark span { color: var(--lk-accent); }
.wordmark.small { font-size: 17px; }

/* Header: sticks to the top with a frosted background */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--lk-paper) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--lk-ink); text-decoration: none; font-weight: 600; font-size: 15px; display: none; }
.nav-link:hover { color: var(--lk-accent); }
@media (min-width: 720px) { .nav-link { display: inline; } }

/* App Store badge (Apple's artwork; keep its proportions and clear space) */
.store-badge { display: inline-block; line-height: 0; border-radius: 8px; transition: transform 160ms cubic-bezier(.3, 1.5, .5, 1); }
.store-badge img { height: 54px; width: auto; display: block; }
.store-badge.small img { height: 40px; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: scale(0.97); }
.store-badge:focus-visible { outline: 2px solid var(--lk-accent); outline-offset: 4px; }

/* Hero */
.hero { display: grid; gap: 48px; padding-top: 24px; padding-bottom: 64px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.05fr 0.95fr; gap: 64px; padding-top: 48px; padding-bottom: 96px; } }
.hero-copy > * { animation: rise 520ms cubic-bezier(.2, .9, .3, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: 60ms; }
.hero-copy > *:nth-child(3) { animation-delay: 120ms; }
.hero-copy > *:nth-child(4) { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cta-note { font-size: 15px; color: var(--lk-ink-muted); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: flex-start; padding: 8px 0 40px; }
.hero-visual::before { content: ""; position: absolute; inset: 2% 0 0; background: radial-gradient(closest-side, var(--lk-accent-wash), transparent); z-index: -1; }
.hero-visual .phone { width: min(42%, 220px); }
.hero-visual .phone.back { transform: translateY(36px) rotate(-4deg); margin-right: -24px; }
.hero-visual .phone.front { transform: translateY(-8px) rotate(3deg); z-index: 1; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
@media (min-width: 960px) { .hero-visual .phone { width: min(46%, 250px); } }

/* Phone frame around a screenshot */
.phone { margin: 0; min-height: 0; border-radius: 14% / 6.5%; border: 6px solid #15132B; background: #15132B; overflow: hidden; box-shadow: var(--lk-shadow), 0 24px 60px rgb(21 19 43 / 18%); aspect-ratio: 660 / 1434; position: relative; }
/* Absolute so the image never sets the frame height: the aspect-ratio does. */
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }

/* How it works: three cards, each with a phone peeking up from the bottom */
.steps { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--lk-line); }
.steps ol { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.steps li { display: grid; gap: 10px; align-content: start; padding: 28px 28px 0; background: var(--lk-paper-raised); border: 1px solid var(--lk-line); border-radius: 28px; overflow: hidden; box-shadow: var(--lk-shadow); }
.steps p { color: var(--lk-ink-muted); }
.peek { height: 300px; margin-top: 16px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.peek .phone { width: 210px; flex: none; box-shadow: none; transition: transform 500ms cubic-bezier(.2, .8, .2, 1); }
.peek.wide { height: auto; margin-bottom: 4px; -webkit-mask-image: none; mask-image: none; }
.peek.wide .phone { box-shadow: var(--lk-shadow); }
.peek .phone.land { width: min(100%, 340px); aspect-ratio: 1434 / 660; border-radius: 6% / 12%; }
.peek.tall { height: 400px; margin: 0; justify-self: center; width: min(100%, 260px); }
.peek.tall .phone { width: 240px; }
.steps li:hover .peek .phone { transform: translateY(-8px); }
.num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--lk-accent-wash); color: var(--lk-accent); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Feature rows */
.feature { display: grid; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.feature-copy p { color: var(--lk-ink-muted); margin-top: 12px; max-width: 34rem; }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 300px; gap: 80px; }
  .feature.reverse { grid-template-columns: 300px 1fr; }
  .feature.reverse .feature-copy { order: 2; }
}

button, .button {
  font: 600 17px/1 var(--lk-font-sans); cursor: pointer; text-decoration: none; text-align: center;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--lk-radius-pill);
  background: var(--lk-accent); color: var(--lk-accent-ink);
  transition: transform 140ms cubic-bezier(.3, 1.5, .5, 1), filter 140ms ease-out;
}
.button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.button:active { transform: scale(0.96) translateY(1px); }
.button:focus-visible { outline: 2px solid var(--lk-accent); outline-offset: 3px; }

/* FAQ: a short list, with a smooth open and close (falls back to instant where ::details-content isn't supported) */
.faq { padding-top: 64px; padding-bottom: 64px; max-width: 48rem; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--lk-line); }
.faq details:last-child { border-bottom: 1px solid var(--lk-line); }
.faq summary {
  font-weight: 600; font-size: 18px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0;
  transition: color 160ms ease-out;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--lk-accent); }
.faq summary:focus-visible { outline: 2px solid var(--lk-accent); outline-offset: 2px; border-radius: 4px; }
.faq summary::after {
  content: "+"; flex: none; color: var(--lk-ink-muted); font-weight: 400; font-size: 28px; line-height: 1;
  transition: transform 380ms cubic-bezier(.3, 1.5, .5, 1), color 160ms ease-out;
}
.faq details[open] summary::after { transform: rotate(135deg); color: var(--lk-accent); }
.faq details::details-content {
  block-size: 0; overflow: clip; opacity: 0;
  transition: block-size 360ms cubic-bezier(.2, .8, .2, 1), opacity 260ms ease-out, content-visibility 360ms allow-discrete;
}
.faq details[open]::details-content { block-size: auto; opacity: 1; }
.faq details p { padding-bottom: 20px; color: var(--lk-ink-muted); max-width: 36rem; }

/* Final */
.final { text-align: center; padding-top: 64px; padding-bottom: 96px; display: grid; gap: 28px; justify-items: center; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--lk-line); font-size: 14px; color: var(--lk-ink-muted); }
.foot a { color: var(--lk-ink-muted); }

/* Prose pages */
.prose { max-width: 40rem; padding-top: 32px; padding-bottom: 96px; }
.prose h1 { font-size: 40px; margin-bottom: 24px; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 20px 0 4px; }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.prose li strong { color: var(--lk-ink); font-weight: 600; }
.prose p, .prose li { color: var(--lk-ink-muted); margin-bottom: 12px; }

/* Scroll reveal: progressive enhancement, ignored where scroll-driven animations aren't supported */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

/* Content pages: songs, blog, audience pages (generated by scripts/build-site.mjs) */
.crumbs { padding-top: 8px; padding-bottom: 0; font-size: 14px; color: var(--lk-ink-muted); }
.crumbs a { color: var(--lk-ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--lk-accent); text-decoration: underline; }
.prose .lede { max-width: none; }
.prose h2 { font-family: var(--lk-font-serif); }
.prose ol { padding-left: 22px; margin: 0 0 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 32px 0 8px; padding: 0; }
.facts div { background: var(--lk-paper-raised, var(--lk-paper)); border: 1px solid var(--lk-line); border-radius: 14px; padding: 12px 14px; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lk-ink-muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.callout { margin: 40px 0 0; padding: 24px; border: 1px solid var(--lk-line); border-radius: 20px; background: var(--lk-paper-raised, var(--lk-paper)); }
.callout h2 { margin: 0 0 8px; font-size: 22px; }
.callout p { margin-bottom: 16px; }
.related { padding-bottom: 64px; max-width: 48rem; }
.related h2 { margin-bottom: 8px; }
.related .small { font-size: 14px; color: var(--lk-ink-muted); margin: 16px 0 8px; }
.cards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cards.stack { grid-template-columns: 1fr; }
.cards li { margin: 0; }
.cards a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--lk-line); border-radius: 14px; text-decoration: none; color: var(--lk-ink); background: var(--lk-paper-raised, var(--lk-paper)); }
.cards a:hover { border-color: var(--lk-accent); }
.cards a:focus-visible { outline: 2px solid var(--lk-accent); outline-offset: 2px; }
.cards strong { display: block; font-weight: 600; }
.cards span { display: block; margin-top: 2px; font-size: 14px; color: var(--lk-ink-muted); }
.foot { flex-wrap: wrap; gap: 8px 20px; }
