/* get.skitify.app — black canvas, hairline borders, one accent that follows
   the record. Colours are registered so they glide between songs. */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-var.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-var.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #f0c879;
}
@property --accent-ink {
  syntax: '<color>';
  inherits: true;
  initial-value: #1c1206;
}
@property --tint {
  syntax: '<color>';
  inherits: true;
  initial-value: #2a2418;
}
@property --tint-2 {
  syntax: '<color>';
  inherits: true;
  initial-value: #1a1a1c;
}

:root {
  --bg: #000000;
  --line: #26272a;
  --line-2: #34353a;
  --white: #ffffff;
  --text: #f2f0ec;
  --body: #c9c7c2;
  --muted: #9a9893;
  --dim: #5f5e62;
  --glass: rgb(22 21 24 / 0.62);
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r-sm: 6px;
  --r-md: 16px;
  --r-lg: 24px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
  transition:
    --accent 1.4s ease,
    --accent-ink 1.4s ease,
    --tint 1.6s ease,
    --tint-2 1.6s ease;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
dl,
dd,
ol {
  margin: 0;
}
ol {
  padding: 0;
  list-style: none;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg .fill {
  fill: currentColor;
  stroke: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.mono {
  font-family: var(--mono);
  font-feature-settings: 'zero' 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg);
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Brand ---------- */
.brand {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
}
.brand em {
  font-style: normal;
  color: var(--accent);
}
.brand-sm {
  font-size: 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    border-color 0.15s ease-out,
    background 0.15s ease-out,
    color 0.15s ease-out;
}
.btn:hover {
  border-color: rgb(255 255 255 / 0.55);
}
.btn-lg {
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
}
/* The one filled button is white, not the accent: colour belongs to the music. */
.btn-solid {
  background: var(--white);
  border-color: var(--white);
  color: #000;
}
.btn-solid:hover {
  background: #e6e4df;
  border-color: #e6e4df;
}

/* ---------- Nav ---------- */
/* The header sits at the top and scrolls away with the page; the scroll
   player at the bottom handles getting around. */
.nav {
  position: relative;
  z-index: 40;
  min-height: 64px;
}
/* At the bottom, once the scroll player has stepped aside, the header drops
   back in from the top. The bar and its backdrop go fixed; .nav keeps its
   height so nothing on the page moves. */
.nav::before {
  content: '';
  display: none;
}
.nav.pinned::before {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgb(0 0 0 / 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.nav.pinned .nav-in {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.nav.pinned::before,
.nav.pinned .nav-in {
  animation: nav-drop 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.nav.pinned.leaving::before,
.nav.pinned.leaving .nav-in {
  animation: nav-lift 0.3s ease both;
}
@keyframes nav-drop {
  from { transform: translateY(-100%); }
}
@keyframes nav-lift {
  to { transform: translateY(-100%); }
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-right: auto;
  font-size: 14px;
  color: var(--body);
}
.nav-links a {
  transition: color 0.15s ease-out;
}
.nav-links a:hover {
  color: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 10vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--white);
}
.display i {
  font-style: italic;
}
.lede {
  margin-top: 28px;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
.lede b {
  font-weight: 500;
  color: var(--text);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* The record: a black disc on a tilted plane, turning slowly. The label is
   DOM so it can take the live accent colour. */
.record-stage {
  position: relative;
  aspect-ratio: 1.3;
  width: min(100%, 580px);
  justify-self: end;
  perspective: 1400px;
}
.record-tilt {
  position: absolute;
  left: 4%;
  top: 50%;
  width: 92%;
  aspect-ratio: 1;
  transform: translateY(-50%) rotateX(54deg) rotateZ(-24deg);
  transform-style: preserve-3d;
}
.record {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: spin 14s linear infinite;
  box-shadow:
    0 0 0 1px #1d1e21,
    0 60px 90px -30px rgb(0 0 0 / 0.9);
}
.record-grooves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.record-label {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background:
    radial-gradient(circle, #000 0 5%, transparent 5.5%),
    radial-gradient(circle, transparent 0 62%, rgb(0 0 0 / 0.18) 62.5% 63.5%, transparent 64%),
    var(--accent);
  display: grid;
  place-items: start center;
  overflow: hidden;
}
.record-label-text {
  margin-top: 22%;
  font: 500 clamp(6px, 1.5vw, 10px) / 1 var(--mono);
  white-space: nowrap;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  opacity: 0.8;
}
/* Light stays put while the disc turns, like a lamp over a turntable. */
.record-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(
    from 20deg,
    transparent 0deg,
    rgb(255 255 255 / 0.07) 30deg,
    transparent 70deg,
    transparent 180deg,
    rgb(255 255 255 / 0.05) 215deg,
    transparent 255deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0 33%, #000 34%);
  mask: radial-gradient(circle, transparent 0 33%, #000 34%);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(72px, 10vw, 128px) 0 0;
}
.head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.head-left {
  margin: 0;
  text-align: left;
}
h2 {
  font-size: clamp(40px, 5.6vw, 60px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: var(--white);
}
h2 i {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.12em;
  letter-spacing: -0.015em;
}
.sub {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}
.head .sub {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.head-left .sub {
  margin-left: 0;
}
.demo-note {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--dim);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

/* ---------- Covers (made-up album art, all CSS) ---------- */
.cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}
.cover::before,
.cover::after {
  content: '';
  position: absolute;
  inset: 0;
}
.cover .cover-word {
  position: absolute;
  left: 8%;
  top: 8%;
  font: 500 clamp(6px, 4.2cqw, 13px) / 1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.78);
}
.cover {
  container-type: inline-size;
}
/* Slow Weather: a low sun over a horizon */
.art-0 {
  background: linear-gradient(180deg, #2b1107 0%, #6b2a10 38%, #c2602a 66%, #f0a24e 100%);
}
.art-0::before {
  background: radial-gradient(circle at 50% 64%, #ffe1a8 0 17%, rgb(255 213 150 / 0.35) 17.5% 24%, transparent 24.5%);
}
.art-0::after {
  top: 66%;
  background: repeating-linear-gradient(180deg, #1c0a04 0 3.5%, transparent 3.5% 8%);
  opacity: 0.85;
}
/* Glass Hours: a wall of lit windows */
.art-1 {
  background: #0d0822;
}
.art-1::before {
  inset: 12% 12% 22%;
  background:
    linear-gradient(90deg, transparent 0 21%, #0d0822 21% 26%, transparent 26% 47%, #0d0822 47% 52%, transparent 52% 73%, #0d0822 73% 78%, transparent 78%),
    linear-gradient(180deg, transparent 0 21%, #0d0822 21% 27%, transparent 27% 48%, #0d0822 48% 54%, transparent 54% 75%, #0d0822 75% 81%, transparent 81%),
    linear-gradient(135deg, #b9a2ff, #6d3fd6 45%, #d14fb4);
  filter: drop-shadow(0 0 12px rgb(185 162 255 / 0.45));
}
/* one window left dark */
.art-1::after {
  inset: auto auto auto auto;
  left: calc(12% + 76% * 0.52);
  top: calc(12% + 66% * 0.27);
  width: calc(76% * 0.21);
  height: calc(66% * 0.21);
  background: #0d0822;
}
/* Tidewater: waves and a moon */
.art-2 {
  background: linear-gradient(180deg, #06201f, #0d4b48 55%, #1b7a72);
}
.art-2::before {
  background: radial-gradient(circle at 72% 26%, #e9fff8 0 8%, rgb(233 255 248 / 0.2) 8.5% 13%, transparent 13.5%);
}
.art-2::after {
  top: 48%;
  background:
    radial-gradient(ellipse 14% 5% at 50% 0, transparent 70%, rgb(150 240 222 / 0.55) 72% 86%, transparent 88%) 0 0 / 22% 13% repeat;
}

/* Paper Moons: two pale moons */
.art-3 {
  background: linear-gradient(160deg, #f4c9c4, #d98c9a 60%, #a8577a);
}
.art-3::before {
  background:
    radial-gradient(circle at 38% 46%, #fff4ec 0 22%, transparent 22.5%),
    radial-gradient(circle at 60% 54%, rgb(255 244 236 / 0.45) 0 22%, transparent 22.5%);
}
/* Concrete Garden: a fine grid and one diagonal */
.art-4 {
  background:
    linear-gradient(135deg, transparent 49.4%, #b7d39b 49.6% 50.4%, transparent 50.6%),
    repeating-linear-gradient(0deg, rgb(183 211 155 / 0.16) 0 1px, transparent 1px 12.5%),
    repeating-linear-gradient(90deg, rgb(183 211 155 / 0.16) 0 1px, transparent 1px 12.5%),
    #12241a;
}
/* Heatwave FM: hot bands */
.art-5 {
  background: linear-gradient(180deg, #ffd34d 0 22%, #ff9a3c 22% 44%, #f0533a 44% 66%, #b3204a 66% 88%, #5c1240 88%);
}
.art-5::before {
  background: radial-gradient(circle at 50% 100%, rgb(255 236 170 / 0.5), transparent 55%);
}
.cover.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.cover.mosaic::before,
.cover.mosaic::after {
  display: none;
}
.cover.mosaic > .cover {
  border-radius: 0;
}

/* ---------- Library demo (the home screen) ---------- */
.app.app-lib {
  height: auto;
}
.lib {
  padding: 6px clamp(18px, 3.4cqw, 36px) 32px;
}
.lib-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.lib-tab {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  transition: background 0.25s ease, color 0.25s ease;
}
.lib-tab:hover {
  color: var(--text);
}
.lib-tab[aria-selected='true'] {
  background: var(--text);
  color: #000;
}
.lib-body.swap {
  animation: swap-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.lib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.lib-head h4 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lib-head h4 span {
  color: var(--muted);
  font-weight: 500;
}
.lib-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid #28282c;
  font-weight: 600;
  font-size: 13px;
  transition: border-color 0.15s ease-out;
}
.lib-play:hover {
  border-color: var(--muted);
}
.lib-play svg,
.card-play svg {
  width: 14px;
  height: 14px;
}
.lib-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}
.lib-grid:last-child {
  margin-bottom: 0;
}
.lcard {
  display: block;
  min-width: 0;
  padding: 10px;
  margin: -10px;
  border-radius: 10px;
  text-align: left;
  transition: background 0.2s ease;
}
@media (hover: hover) {
  .lcard:hover {
    background: rgb(255 255 255 / 0.06);
  }
}
/* Block, not inline: Safari places absolute children of an inline span
   against its line box, which threw the play button off the card. */
.lcard-art {
  position: relative;
  display: block;
}
.lcard-art > .cover {
  border-radius: 8px;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.35);
}
.lcard.round .cover {
  border-radius: 50%;
}
.cover .cover-word {
  pointer-events: none;
}
.lcard .cover-word,
.track-row .cover-word,
.mosaic .cover-word {
  display: none;
}
.card-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.4);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lcard:focus-visible .card-play,
.lcard.playing .card-play {
  opacity: 1;
  transform: none;
}
.lcard-t {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (hover: hover) {
  .lcard:hover .card-play {
    opacity: 1;
    transform: none;
  }
}
.lcard.playing .lcard-t {
  color: var(--accent);
}
.lcard-s {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lcard.round .lcard-t,
.lcard.round .lcard-s {
  text-align: center;
}
.songs {
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.track-row {
  display: grid;
  grid-template-columns: 28px 40px minmax(0, 1.4fr) minmax(0, 1fr) 24px 40px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px;
  border-radius: 6px;
  text-align: left;
  transition: background 0.2s ease;
}
button.track-row:hover {
  background: rgb(255 255 255 / 0.06);
}
div.track-row {
  cursor: default;
}
.track-row .n {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.track-row .cover {
  width: 40px;
  border-radius: 5px;
}
.tr-main {
  display: grid;
  min-width: 0;
}
.tr-main b {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-row.playing .tr-main b {
  color: var(--accent);
}
.tr-main span,
.tr-album {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tr-heart {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.tr-heart path {
  fill: currentColor;
}
.tr-dur {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.eq {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 12px;
}
.eq i {
  width: 3px;
  height: 100%;
  border-radius: 1px;
  background: var(--accent);
  transform-origin: bottom;
  animation: eq 1.1s ease-in-out infinite;
}
.eq i:nth-child(2) {
  animation-delay: -0.35s;
}
.eq i:nth-child(3) {
  animation-delay: -0.7s;
}
@keyframes eq {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
@container (max-width: 900px) {
  .lib-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@container (max-width: 560px) {
  .lib-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .lib-grid .lcard:nth-child(n + 5) {
    display: none;
  }
  .track-row {
    grid-template-columns: 22px 40px minmax(0, 1fr) 36px;
    gap: 10px;
  }
  .tr-album,
  .tr-heart {
    display: none;
  }
}

/* ---------- Demo app window ---------- */
.app {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: inline-size;
  height: clamp(560px, 56vw, 720px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #000;
}
.app-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 70% at 82% -10%, color-mix(in srgb, var(--tint) 70%, transparent), transparent 72%),
    radial-gradient(60% 65% at 10% -5%, color-mix(in srgb, var(--tint-2) 48%, transparent), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--tint) 26%, transparent), transparent 80%);
}
.app-glow::before,
.app-glow::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 80%;
  border-radius: 50%;
  will-change: transform;
}
.app-glow::before {
  top: -40%;
  right: -10%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) 45%, transparent), transparent);
  animation: glow-a 32s ease-in-out infinite alternate;
}
.app-glow::after {
  top: -30%;
  left: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tint-2) 32%, transparent), transparent);
  animation: glow-b 40s ease-in-out infinite alternate;
}
@keyframes glow-a {
  50% { transform: translate(-25%, 18%) scale(1.15); }
  100% { transform: translate(-40%, 4%) scale(0.95); }
}
@keyframes glow-b {
  50% { transform: translate(30%, 14%) scale(0.92); }
  100% { transform: translate(45%, 2%) scale(1.1); }
}
.app-top {
  display: grid;
  grid-template-columns: 1fr minmax(0, 380px) 1fr;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 24px;
}
.app-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
}
.app-search svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.app-avatar {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  color: var(--body);
}
.app-avatar svg {
  width: 18px;
  height: 18px;
}
.app-now {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr) minmax(250px, 280px);
  gap: clamp(24px, 4cqw, 48px);
  height: calc(100% - 64px - 112px);
  padding: 8px clamp(24px, 5cqw, 64px) 0;
}
.np-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-width: 0;
}
.np-left.swap {
  animation: swap-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes swap-in {
  from { opacity: 0; transform: translateY(10px); }
}
.cover-lg {
  width: min(100%, 300px);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.5);
}
.np-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4cqw, 42px);
  line-height: 1.05;
  color: var(--white);
}
.np-artist {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}
.np-album {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 6px 0 4px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 800 11px/1 var(--ui);
  font-variant-numeric: tabular-nums;
  vertical-align: 2px;
  margin-left: 6px;
}
.chip svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}
.chip[hidden] {
  display: none;
}
.chip-big {
  height: 26px;
  padding: 0 8px 0 6px;
  margin-left: 10px;
  border-radius: 6px;
  font-size: 14px;
  vertical-align: 7px;
}
.chip-big svg {
  width: 16px;
  height: 16px;
}

/* Lyrics: lines fade and flatten by distance from the centre, like a dial. */
.lyrics {
  position: relative;
  min-height: 0;
  overflow: hidden;
  --lyric-base: clamp(19px, 2.2cqw, 26px);
  font-size: var(--lyric-base);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  transition: opacity 0.35s ease;
}
.lyrics.out {
  opacity: 0;
}
.lyrics-pad {
  height: 50%;
}
/* Grow by scale, never by font-size: each line is laid out once at the base
   size in a column narrow enough for the grown line, so nothing re-wraps.
   Room for the bigger line comes from margins (--lift) that glide. */
@property --grow {
  syntax: '<number>';
  inherits: false;
  initial-value: 1;
}
@property --lift {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}
.lyric {
  --lyric-grow: 1.3;
  display: block;
  width: calc(100% / var(--lyric-grow));
  padding: 0.3em 0;
  text-align: left;
  font-size: var(--lyric-base);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: var(--o, 0.35);
  transform: scale(var(--grow)) scaleY(var(--squash, 1));
  transform-origin: left center;
  margin-block: var(--lift);
  transition:
    --grow 0.6s cubic-bezier(0.45, 0, 0.2, 1),
    --lift 0.6s cubic-bezier(0.45, 0, 0.2, 1);
  will-change: opacity, transform;
}
.lyric.current {
  --grow: var(--lyric-grow);
  --lift: calc(var(--h, 1.5em) * (var(--lyric-grow) - 1) / 2);
}
.lyric.gap {
  --grow: 0.85;
  --lift: 0px;
}
.lyric:hover {
  opacity: max(var(--o, 0.35), 0.8);
}

/* Right rail: Up next and About the artist, like the app's Now playing. */
.rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 0 0 8px;
  -webkit-mask-image: linear-gradient(180deg, #000 94%, transparent);
  mask-image: linear-gradient(180deg, #000 94%, transparent);
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.045);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.rail-card.swap {
  animation: swap-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.rail-head h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail-head h3 .rail-from {
  margin-left: 6px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.rail-link {
  font-size: 12px;
  color: var(--muted);
  transition: color 0.15s;
}
.rail-link:hover {
  color: var(--accent);
}
/* Collapsed: the first four songs; open: all of them, and About folds away. */
.rail:not(.expanded) .q .q-row:nth-child(n + 5) {
  display: none;
}
.rail .about {
  max-height: 420px;
  transition:
    max-height 0.5s cubic-bezier(0.45, 0, 0.2, 1),
    opacity 0.35s ease,
    padding 0.5s cubic-bezier(0.45, 0, 0.2, 1);
}
.rail.expanded .about {
  max-height: 0;
  padding-block: 0;
  opacity: 0;
  overflow: hidden;
}
.rail-from {
  font-size: 12px;
  color: var(--dim);
}
.q {
  position: relative;
}
.q-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 6px;
  margin: 0 -6px;
  border-radius: 10px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition:
    transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.15s,
    box-shadow 0.2s,
    opacity 0.25s;
}
.q-row:hover {
  background: rgb(255 255 255 / 0.06);
}
.q-row.dragging {
  z-index: 2;
  cursor: grabbing;
  transition: background 0.15s, box-shadow 0.2s;
  background: #1c1c1f;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.5), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.q-row.leaving {
  opacity: 0;
  transform: translateX(12px);
}
.q.sorting .q-row:not(.dragging):hover {
  background: none;
}
.q-grip {
  position: absolute;
  left: -14px;
  color: var(--dim);
  opacity: 0;
  transition: opacity 0.15s;
}
.q-grip svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}
.q-row:hover .q-grip,
.q-row.dragging .q-grip {
  opacity: 1;
}
.q-row .cover {
  width: 40px;
  flex: none;
  border-radius: 6px;
}
.q-row .cover .cover-word {
  display: none;
}
.q-text {
  flex: 1;
  min-width: 0;
  display: grid;
}
.q-text b {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-text span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-x {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}
.q-x svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}
.q-row:hover .q-x,
.q-x:focus-visible {
  opacity: 1;
}
.q-x:hover {
  color: var(--white);
  background: rgb(255 255 255 / 0.08);
}
.q-empty {
  padding: 6px 0;
  font-size: 13px;
  color: var(--muted);
}
.about-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2;
  border-radius: 10px;
}
.about-photo .cover-word {
  display: none;
}
.about-photo > .about-name {
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.6);
}
.about-photo:hover .about-name {
  text-decoration: underline;
}
.about-bio {
  font-size: 13px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--text) 80%, var(--muted));
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.about-chips span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  font-size: 12px;
}

/* Floating player island */
.island {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(880px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 10px 24px 10px 10px;
  border-radius: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    0 20px 60px rgb(0 0 0 / 0.55),
    inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.isl-now {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.cover-sm {
  width: 52px;
  flex: none;
  border-radius: 12px;
}
.cover-sm .cover-word {
  display: none;
}
.isl-meta {
  display: grid;
  min-width: 0;
}
.isl-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.isl-artist {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.isl-center {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: clamp(240px, 40cqw, 420px);
}
.isl-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ctl {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--body);
  transition: color 0.15s ease-out, transform 0.15s ease-out;
}
.ctl:hover {
  color: var(--white);
}
.ctl:active {
  transform: scale(0.92);
}
.ctl svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}
.ctl-play {
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: var(--accent-ink);
}
.ctl-play:hover {
  color: var(--accent-ink);
}
.ctl-play .i-pause {
  display: none;
}
[data-playing] .ctl-play .i-play {
  display: none;
}
[data-playing] .ctl-play .i-pause {
  display: block;
}
.isl-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.isl-progress .t {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 30px;
}
.isl-progress .t:last-child {
  text-align: right;
}
.wave {
  flex: 1;
  min-width: 0;
  height: 30px;
  cursor: pointer;
  touch-action: none;
}
.isl-right {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
.isl-device {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
}
.isl-device svg {
  width: 15px;
  height: 15px;
}

@container (max-width: 1040px) {
  .app-now {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
  .rail {
    display: none;
  }
}
/* Narrow demo window: the phone layout. */
@container (max-width: 760px) {
  .app-top {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }
  .app-search {
    display: none;
  }
  .app-now {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    padding: 4px 20px 0;
    height: calc(100% - 64px - 150px);
  }
  .np-left {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .cover-lg {
    width: 96px;
    flex: none;
    border-radius: 8px;
  }
  .np-title {
    font-size: 28px;
  }
  .island {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    width: calc(100% - 24px);
    bottom: 12px;
    padding: 10px 14px;
  }
  .isl-now,
  .isl-right {
    display: none;
  }
  .isl-center {
    width: 100%;
  }
}

/* ---------- Details: bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.2s ease-out;
}
.tile:hover {
  border-color: var(--line-2);
}
.tile h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--white);
}
.tile p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.tile-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.tile-queue {
  grid-column: 1 / span 3;
  grid-row: span 2;
}
.tile-tint,
.tile-privacy {
  grid-column: span 3;
}
.tile-sm {
  grid-column: span 2;
  gap: 0;
}
.tile-sm .tile-icon {
  margin-bottom: 24px;
}
.tile-sm h3 {
  font-size: 16px;
}

/* Queue tile: the same live Up next as the demo player */
.qbox {
  margin: auto 0;
  padding: 16px 20px 10px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.035);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.qbox-label {
  display: flex;
  justify-content: space-between;
  margin: 4px 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.qbox-label .rail-from {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.qbox .q-grip {
  opacity: 0.7;
}
.qbox .q-x {
  opacity: 0.55;
}
.qbox-now {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  margin: 0 -6px 10px;
  padding: 0 10px 0 6px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.qbox-now .cover {
  width: 40px;
  flex: none;
  border-radius: 6px;
}
.qbox-now .q-text b {
  color: var(--accent);
}

/* Colour tile */
.tint-window {
  position: relative;
  overflow: hidden;
  height: 150px;
  border-radius: 12px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.tint-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(40% 45% at 30% 35%, color-mix(in srgb, var(--tint) 85%, transparent), transparent 70%),
    radial-gradient(40% 45% at 72% 60%, color-mix(in srgb, var(--tint-2) 70%, transparent), transparent 70%);
  animation: tint-drift 18s ease-in-out infinite alternate;
}
@keyframes tint-drift {
  50% { transform: translate(8%, -6%) scale(1.1); }
  100% { transform: translate(-6%, 5%) scale(0.95); }
}
.tint-now {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 13px;
  color: var(--body);
}
.tint-now b {
  color: var(--white);
  font-weight: 600;
}
.tint-swatches {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 6px;
}
.tint-swatches i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
}
.s-accent { background: var(--accent); }
.s-tint { background: var(--tint); }
.s-tint2 { background: var(--tint-2); }
.tint-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.tint-pick {
  width: 44px;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.tint-pick:hover {
  transform: translateY(-2px);
}
.tint-pick[aria-pressed='true'] {
  box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--accent);
}
.tint-pick .cover-word {
  display: none;
}

/* Privacy tile */
.checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
}
.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 5px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Strip ---------- */
.strip {
  margin-top: clamp(72px, 10vw, 128px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip-in {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.strip-in > div {
  padding: 36px 24px;
  border-left: 1px solid var(--line);
}
.strip-in > div:first-child {
  border-left: 0;
  padding-left: 0;
}
.strip b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  color: var(--white);
}
.strip span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Setup ---------- */
.split-setup {
  align-items: center;
}
.steps {
  display: grid;
  gap: 6px;
  margin: 32px 0 0 -14px;
}
.step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  text-align: left;
  transition: border-color 0.3s ease, background 0.5s ease;
}
.step:hover {
  border-color: var(--line);
}
.step[aria-pressed='true'] {
  border-color: var(--line);
  background: color-mix(in srgb, var(--tint) 14%, transparent);
}
.step-n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.step[aria-pressed='true'] .step-n {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}
.step-h {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
}
.step-p {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* The app's own setup card, on the app's warm login backdrop. */
.setup-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.setup-stage-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 55% at 20% 8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(60% 55% at 92% 95%, color-mix(in srgb, var(--tint) 30%, transparent), transparent 70%);
}
.scard {
  grid-area: 1 / 1;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border-radius: var(--r-md);
  border: 1px solid #28282c;
  background: rgb(20 20 22 / 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14px;
  line-height: 1.45;
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s;
}
/* Every screen stays in the same grid cell, so the frame keeps the height of
   the tallest one and screens cross-fade instead of jumping. */
.scard[hidden] {
  display: flex;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s 0.3s;
}
.scard b {
  font-weight: 600;
  color: var(--text);
}
.s-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}
.s-back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: -8px;
  color: var(--muted);
}
.s-back svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}
.s-progress {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.s-progress span {
  height: 4px;
  border-radius: 2px;
  background: #28282c;
}
.s-progress span.on {
  background: var(--accent);
}
.s-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.s-title h3,
.s-done h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
}
.s-title p {
  margin-top: 8px;
  color: var(--muted);
}
.s-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #28282c;
  background: #141416;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.1s, border-color 0.15s, background 0.5s, color 0.5s;
}
.s-btn:hover:not(:disabled) {
  border-color: var(--muted);
}
.s-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.s-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}
.s-primary {
  min-height: 52px;
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
}
.s-primary:disabled {
  cursor: default;
  background: #1c1c1f;
  color: var(--muted);
}
.s-box {
  display: flex;
  flex-direction: column;
  border: 1px solid #28282c;
  border-radius: 14px;
  background: #0b0b0c;
}
.s-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px 9px 14px;
  border-bottom: 1px solid #1c1c1f;
}
.s-row:last-child {
  border-bottom: 0;
}
.s-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.s-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.scard code {
  font-family: var(--mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.scard code.hl {
  color: var(--accent);
}
.s-copy {
  flex: none;
  min-width: 64px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #28282c;
  background: #141416;
  font-weight: 600;
  font-size: 13px;
  transition: color 0.2s, border-color 0.2s;
}
.s-copy:hover {
  border-color: var(--muted);
}
.s-copy.done {
  color: var(--accent);
}
.s-apis {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
}
.s-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.s-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #1c1c1f;
  font-size: 13px;
}
.s-chip svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  color: var(--accent);
}
.s-steps {
  display: grid;
  gap: 10px;
}
.s-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.s-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1c1c1f;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.s-mock {
  gap: 10px;
  padding: 14px;
}
.s-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #28282c;
  opacity: 0.6;
}
.s-field b {
  font-size: 12px;
}
.s-field code {
  color: var(--muted);
}
.s-field.on {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.s-field.on code {
  color: var(--text);
}
.s-note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, #ef6b5b 10%, #0b0b0c);
  border: 1px solid color-mix(in srgb, #ef6b5b 28%, transparent);
  font-size: 13px;
  color: var(--body);
}
.s-note svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: #ef6b5b;
}
.s-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.s-input-box {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--accent);
  background: #0b0b0c;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
  overflow: hidden;
}
.s-caret {
  width: 1.5px;
  height: 18px;
  margin-left: 1px;
  background: var(--accent);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% { opacity: 0; }
}
.s-fine {
  font-size: 12px;
  color: var(--muted);
}
.s-done {
  align-self: center;
  align-items: center;
  text-align: center;
  padding: 44px 30px 30px;
}
.s-done p {
  color: var(--muted);
  max-width: 18em;
}
.s-done .s-btn {
  align-self: stretch;
  margin-top: 8px;
}
.s-done-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  animation: pop 0.5s cubic-bezier(0.3, 0.7, 0.3, 1.3) both;
}
.s-done-mark svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.4;
}
@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
}

/* ---------- FAQ ---------- */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 80px);
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.3s ease;
}
.faq details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}
.faq details p {
  padding: 0 0 24px;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.faq details[open] p {
  animation: fade 0.4s ease both;
}
@keyframes fade {
  from { opacity: 0; transform: translateY(-4px); }
}

/* ---------- Closing + footer ---------- */
.closing {
  /* A little less below than above: at the bottom of the page the returning
     header clears the FAQs heading instead of touching it. */
  padding: clamp(96px, 14vw, 176px) 0 clamp(84px, 13.5vw, 164px);
  text-align: center;
}
.display-sm {
  margin: 0;
  font-size: clamp(56px, 9vw, 104px);
}
.display .by {
  color: var(--accent);
  transition: opacity 0.2s ease;
}
.display .by:hover {
  opacity: 0.8;
}
.closing .sub {
  margin-top: 16px;
}
.cta-center {
  justify-content: center;
}
/* Footer: an equaliser in the record's colour, breathing along the bottom. */
.foot {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.foot-in {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 64px;
}
.foot .brand {
  font-size: 44px;
}
.foot-r {
  max-width: 420px;
  text-align: right;
}
.foot-r p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  text-shadow: 0 1px 10px #000;
}
.foot-r p + p {
  margin-top: 6px;
}
.foot-r .foot-by {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}
.foot-r a {
  color: var(--body);
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.25);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.foot-by a {
  color: var(--text);
  text-decoration: none;
}
.foot-r a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}
/* The bars fill the whole footer, behind the text; they fade out towards the
   top so the credits stay readable over them. */
.foot-eq {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
}
/* Bars keep one width; a wider window just gets more of them. */
.foot-eq i {
  flex: none;
  width: 12px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(0deg, color-mix(in srgb, var(--accent) 62%, transparent), transparent 85%);
  transform-origin: bottom;
  animation: foot-eq 1.6s ease-in-out infinite alternate;
}
@media (max-width: 640px) {
  .foot-eq i {
    width: 5px;
  }
}
@keyframes foot-eq {
  from { transform: scaleY(0.25); }
  to { transform: scaleY(1); }
}

/* ---------- Scroll player: the page as a song, progress = scroll ---------- */
.spp {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 30;
  width: min(460px, calc(100% - 32px));
  translate: -50% 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Hidden by opacity, not visibility, so a keyboard user can still Tab to it. */
.spp.shown {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.spp-island {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 18px;
  background: rgb(22 21 24 / 0.82);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    0 16px 44px rgb(0 0 0 / 0.55),
    inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.spp-now {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 2px;
  border-radius: 12px;
  text-align: left;
  transition: background 0.15s;
}
.spp-now:hover {
  background: rgb(255 255 255 / 0.05);
}
.spp-now .cover {
  width: 42px;
  flex: none;
  border-radius: 10px;
}
.spp-now .cover .cover-word {
  display: none;
}
.spp-text {
  display: grid;
  min-width: 0;
}
.spp-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spp-title.swap {
  animation: spp-swap 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes spp-swap {
  from { opacity: 0; transform: translateY(6px); filter: blur(3px); }
}
.spp-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spp-ctl {
  display: flex;
  gap: 2px;
}
.spp-ctl button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--body);
  transition: color 0.15s, background 0.15s;
}
.spp-ctl button:hover {
  color: var(--white);
  background: rgb(255 255 255 / 0.07);
}
.spp-ctl svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}
.spp-prog {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 2px 4px;
}
.spp-prog .t {
  min-width: 28px;
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.spp-prog .t:last-child {
  text-align: right;
}
.spp-prog .wave {
  height: 24px;
}
/* Section menu: rises out of the player. */
.spp-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 18px;
  background: rgb(22 21 24 / 0.9);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow:
    0 16px 44px rgb(0 0 0 / 0.55),
    inset 0 0 0 1px rgb(255 255 255 / 0.08);
  opacity: 0;
  filter: blur(4px);
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom center;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    filter 0.22s ease,
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.spp.open .spp-menu {
  opacity: 1;
  filter: none;
  transform: none;
  pointer-events: auto;
}
.spp-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  text-align: left;
  font-size: 14px;
  color: var(--muted);
}
.spp-menu button:hover {
  background: rgb(255 255 255 / 0.07);
  color: var(--text);
}
.spp-menu .n {
  width: 16px;
  font-size: 12px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.spp-menu [aria-current] {
  color: var(--text);
}
.spp-menu [aria-current] .n {
  color: var(--accent);
}
section[tabindex='-1']:focus:not(:focus-visible) {
  outline: none;
}
@media print {
  .spp {
    display: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-in,
  .split,
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .record-stage {
    justify-self: center;
    width: min(100%, 460px);
    margin: -24px 0 -8px;
    order: -1;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile-queue {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .tile-tint,
  .tile-privacy,
  .tile-sm {
    grid-column: span 1;
  }
  .strip-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .strip-in > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .strip-in > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .foot-in {
    flex-direction: column;
    gap: 18px;
  }
  .foot-r {
    text-align: left;
  }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .nav-in {
    justify-content: space-between;
  }
  .hero {
    padding-top: 32px;
  }
  .lede {
    font-size: 17px;
  }
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile {
    padding: 22px;
  }
  .strip-in > div {
    padding: 26px 14px;
  }
  .strip b {
    font-size: 36px;
  }
  .app {
    height: 600px;
    border-radius: var(--r-md);
  }
  .setup-stage {
    padding: 14px;
    border-radius: var(--r-md);
  }
  .scard {
    padding: 22px;
  }
  .s-title h3 {
    font-size: 30px;
  }
  .cta .btn-lg {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spp,
  .spp-menu {
    transition: none;
  }
  .spp-title.swap,
  .foot-eq i,
  .nav.pinned::before,
  .nav.pinned .nav-in {
    animation: none;
  }
  .eq i {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .record,
  .tint-glow,
  .app-glow::before,
  .app-glow::after {
    animation: none;
  }
}
