/* b/side's landing page, in the app's own colours and type (app/src/constants/theme.ts). */
:root {
  color-scheme: light dark;
  --background: #f5f5f8;
  --surface: #ffffff;
  --text: #16161d;
  --muted: #6a6a78;
  --line: #e3e3ea;
  --accent: #6d3ef0;
  --accent-text: #ffffff;
  --accent-soft: #eee8ff;
  --hover: #f1eef9;
  --shadow: rgb(20 16 40 / 0.08);
  --glass: rgb(255 255 255 / 0.72);
  --glow: rgb(109 62 240 / 0.3);
  --ambient: rgb(139 92 246 / 0.10);
  --ambient-2: rgb(59 130 246 / 0.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #07070b;
    --surface: #121219;
    --text: #f2f2f7;
    --muted: #9c9cab;
    --line: #24242f;
    --accent: #b18cff;
    --accent-text: #120a24;
    --accent-soft: #231a3a;
    --hover: #1a1a24;
    --shadow: rgb(0 0 0 / 0.5);
    --glass: rgb(18 18 26 / 0.68);
    --glow: rgb(160 110 255 / 0.45);
    --ambient: rgb(139 92 246 / 0.2);
    --ambient-2: rgb(236 72 153 / 0.09);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: radial-gradient(70% 50% at 0% 0%, var(--ambient), transparent) no-repeat, radial-gradient(60% 40% at 100% 30%, var(--ambient-2), transparent) no-repeat, var(--background); color: var(--text); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; padding: 8px 12px; background: var(--surface); border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* Header: the app's glass bar. */
.top { position: sticky; top: 0; z-index: 5; background: var(--glass); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { border-radius: 8px; }
.brand i { font-style: normal; color: var(--accent); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 14px; background: var(--accent); color: var(--accent-text); font-weight: 600; font-size: 16px; text-decoration: none; }
.button { box-shadow: 0 4px 22px var(--glow); }
.button:hover { filter: brightness(1.06); }
.button.small { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: 15px; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

h1, h2 { font-weight: 700; letter-spacing: -0.03em; }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.045em; max-width: 13em; margin-inline: auto; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; }

/* Hero: what the app's carousel view looks like, the one bold thing on the page. */
.hero { padding-block: 72px 56px; text-align: center; overflow-x: clip; }
.lead { color: var(--muted); font-size: 20px; max-width: 34em; margin: 22px auto 0; }
.actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* App Store and Google Play: shown, but not links, until the apps are published. */
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; font-weight: 600; font-size: 16px; line-height: 1.15; text-decoration: none; }
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.store[aria-disabled="true"] { cursor: default; }
a.store:hover { background: var(--hover); }
.free { margin-top: 16px; font-size: 15px; color: var(--muted); }
.carousel { margin-top: 56px; position: relative; }
.track { --size: clamp(220px, 34vw, 360px); display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: calc(50% - var(--size) / 2); scrollbar-width: none; padding-block: 8px 24px; }
.track::-webkit-scrollbar { display: none; }
.slide { margin: 0; flex: none; width: var(--size); scroll-snap-align: center; transition: transform .35s ease, opacity .35s ease; transform: scale(.88); opacity: .55; }
.slide.current { transform: none; opacity: 1; }
.slide .sleeve { width: 100%; aspect-ratio: 1; border-radius: 14px; box-shadow: 0 24px 48px -18px rgb(14 30 60 / .45), 0 2px 6px var(--shadow); }
.caption { margin-top: 6px; }
.caption-title { display: inline-block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.caption-title:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.sleeve-link { display: block; position: relative; border-radius: 14px; }
/* The real cover, over the drawn one, which shows if the image doesn't load. */
.sleeve-link img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.slide:not(.current) .sleeve-link { cursor: pointer; }
.caption-meta { color: var(--muted); margin-top: 2px; }
.caption .listen { width: min(320px, calc(100% - 48px)); margin: 18px auto 0; }
/* The live one under the carousel: a real link, and a menu of the other services. */
.listen.live { position: relative; }
.listen.live .listen-main { color: inherit; text-decoration: none; }
.listen.live .listen-main:hover, .listen.live .listen-more:hover { background: var(--hover); }
.listen.live .listen-more { color: var(--text); cursor: pointer; padding: 0; font: inherit; }
.listen.live .listen-more[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.listen.live .listen-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.services { position: absolute; z-index: 3; left: 0; right: 0; top: calc(100% + 8px); margin: 0; text-align: left; box-shadow: 0 18px 40px -12px var(--shadow); }
.services[hidden] { display: none; }
.services a { color: inherit; text-decoration: none; }
.services a:hover { background: var(--hover); }
.arrows { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.arrow:hover { background: var(--hover); }
.arrow svg, .listen-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* "Listen on": the long button for the default service and the round one for the rest, as in the app. */
.listen { display: flex; gap: 8px; }
.listen-main { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; }
.listen-more { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.listen-more.open { background: var(--accent-soft); color: var(--accent); }
.service { width: 22px; height: 22px; }

/* Album sleeves, drawn rather than copied: each a small abstract print. */
.sleeve { display: block; background-color: #333; }
.s-blue { background: radial-gradient(120% 80% at 20% 15%, rgb(255 255 255 / .35), transparent 55%), linear-gradient(160deg, #24507e, #0a1a2e 70%); }
.s-red { background: linear-gradient(90deg, transparent 58%, #111 58% 64%, transparent 64%), linear-gradient(0deg, transparent 22%, rgb(0 0 0 / .85) 22% 30%, transparent 30%), linear-gradient(135deg, #d6262d, #8f0f17); }
.s-sea { background: radial-gradient(circle at 70% 32%, #f4c95d 0 13%, transparent 13.5%), linear-gradient(180deg, #8fd3c8 0 52%, #2a9d8f 52% 70%, #1d5f67 70%); }
.s-bars { background: repeating-linear-gradient(90deg, #f3efe6 0 7%, #151515 7% 18%), #151515; }
.s-violet { background: radial-gradient(circle at 35% 40%, #f0c7ff 0 8%, transparent 30%), radial-gradient(circle at 70% 70%, #6a3fb5, transparent 60%), linear-gradient(200deg, #3b1d5e, #b46fbf); }
.s-haze { background: radial-gradient(90% 60% at 50% 110%, #f6d7a7, transparent 60%), linear-gradient(180deg, #c98b6b, #e9b88f 55%, #f3d6b8); filter: saturate(.85); }
.s-sun { background: repeating-linear-gradient(0deg, rgb(255 255 255 / .12) 0 6px, transparent 6px 14px), radial-gradient(circle at 50% 60%, #f6b333 0 26%, #e0752d 26.5% 34%, transparent 34.5%), linear-gradient(180deg, #f2e2b6, #e6c37a); }

/* Feature sections: a few lines of copy beside a piece of the app. */
.feature { display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: 72px; align-items: center; padding-block: 72px; border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: minmax(0, 380px) 1fr; }
.feature.flip .copy { order: 2; }
.copy { max-width: 30em; }
.copy p { color: var(--muted); margin-top: 16px; }

.phone { position: relative; background: var(--background); border: 1px solid var(--line); border-radius: 34px; padding: 22px 18px 24px; box-shadow: 0 30px 60px -30px rgb(14 30 60 / .35), 0 0 0 8px var(--surface); }
.screen-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.screen-head strong { display: block; font-size: 22px; line-height: 1.1; letter-spacing: -0.03em; }
.screen-head small, .row small, .list-card small, .album-head small { display: block; font-size: 12.5px; color: var(--muted); }
.screen-icon { width: 22px; height: 22px; border: 2px solid var(--accent); border-radius: 5px; }
.history-icon { border-top-width: 6px; }
.queue-icon { border-width: 0 0 2px; border-radius: 0; box-shadow: 0 -6px 0 -4px var(--accent), 0 -11px 0 -4px var(--accent); height: 12px; border: 2px solid var(--accent); border-radius: 3px; }
.gear { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.search { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 9px 12px; font-size: 13px; color: var(--muted); }
.tags { display: flex; gap: 6px; margin: 10px 0 6px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.chip.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }
.row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row b { display: block; font-weight: 600; }
.row > div:not(.sleeve) { min-width: 0; flex: 1; }
.row b, .row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb { width: 42px; height: 42px; border-radius: 7px; flex: none; }
.fab { position: absolute; right: 22px; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 6px 18px rgb(0 0 0 / .18); }
.fab.add { bottom: 22px; width: 50px; height: 50px; background: var(--accent); box-shadow: 0 6px 22px var(--glow); }
.fab.add::before, .fab.add::after { content: ''; position: absolute; width: 19px; height: 2.5px; border-radius: 2px; background: var(--accent-text); }
.fab.add::after { transform: rotate(90deg); }
.fab.shuffle { bottom: 84px; right: 26px; width: 42px; height: 42px; background: var(--surface); border: 1px solid var(--line); }
.fab.shuffle svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.album-head { display: flex; gap: 14px; align-items: flex-start; }
.album-head .cover { width: 104px; height: 104px; border-radius: 10px; flex: none; }
.album-title { display: block; font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; }
.album-artist { display: block; color: var(--muted); margin: 2px 0 2px; font-size: 15px; }
.stars { display: block; color: var(--accent); letter-spacing: 2px; margin-top: 6px; }
.stars i { font-style: normal; color: var(--muted); opacity: .35; }
.stars.small { font-size: 11px; letter-spacing: 1px; margin: 0; white-space: nowrap; }
.album-actions { display: flex; gap: 8px; margin: 18px 0 16px; font-size: 13.5px; font-weight: 600; }
.album-actions span { flex: 1; text-align: center; padding: 11px 6px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); }
.album-actions .primary { flex: 1.4; background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.phone .listen-main, .phone .listen-more { min-height: 42px; }
.phone .listen-more { width: 42px; height: 42px; }
.menu { margin-top: 8px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); overflow: hidden; font-size: 14px; }
.menu span, .menu a { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-top: 1px solid var(--line); }
.menu span:first-child, .menu a:first-child { border-top: 0; }
.dot { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }
.td { background: var(--text); transform: rotate(45deg) scale(.8); }
.am { background: #fa243c; } .yt { background: #ff0000; border-radius: 50%; } .dz { background: #a238ff; } .bc { background: #408294; transform: skewX(-20deg); }

.month { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 4px 0 2px; }
.date { width: 30px; text-align: center; flex: none; }
.date b { font-size: 18px; line-height: 1.1; }
.date small { font-size: 11px; }

/* Discover's list cards, with their four-cover mosaic and progress. */
.discover { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 40px; padding-block: 72px; border-top: 1px solid var(--line); text-align: center; }
.discover .copy { max-width: 36em; }
.lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; max-width: 680px; }
.list-card { font-size: 15px; color: inherit; text-decoration: none; border-radius: 12px; }
.list-card .mosaic { transition: transform .2s ease; }
.list-card:hover .mosaic { transform: translateY(-3px); }
.list-card:hover b { color: var(--accent); }
.list-card b { display: block; margin-top: 10px; font-weight: 600; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.progress { display: block; height: 3px; border-radius: 2px; background: var(--line); margin: 6px auto 0; max-width: 60%; }
.progress i { display: block; height: 100%; width: 12%; border-radius: 2px; background: var(--accent); }

.yours { padding-block: 72px; border-top: 1px solid var(--line); }
.yours p { color: var(--muted); margin-top: 16px; max-width: 36em; }
.yours p a { color: var(--accent); text-underline-offset: 3px; }
.lock { display: block; font-size: 40px; line-height: 1; margin-bottom: 18px; }

.closing { text-align: center; padding-block: 80px 96px; border-top: 1px solid var(--line); }
.closing p { color: var(--muted); max-width: 30em; margin: 14px auto 0; }
.closing .button { margin-top: 26px; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 26px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .brand { font-size: 16px; color: var(--text); }
footer a:not(.brand) { color: var(--accent); text-decoration: none; }
footer { flex-wrap: wrap; }
footer .credit { flex-basis: 100%; font-size: 12.5px; }

/* Privacy and support: one readable column of text. */
.doc { max-width: 42em; padding-block: 64px 88px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 0; max-width: none; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 12px; }
.doc h3 { font-size: 17px; margin: 22px 0 4px; }
.doc section { padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--line); }
.doc p, .doc dd, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc strong, .doc dt { color: var(--text); font-weight: 600; }
.doc a:not(.button) { color: var(--accent); text-underline-offset: 3px; }
.doc dl { margin: 0; }
.doc dl + p { margin-top: 18px; }
.doc dt { margin-top: 16px; }
.doc dt:first-child { margin-top: 0; }
.doc dd { margin: 2px 0 0; }
.doc ul { margin: 12px 0; padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc .updated { font-size: 14px; color: var(--muted); margin-top: 10px; }
.doc .summary { color: var(--text); font-size: 19px; margin-top: 28px; }
.contact { margin-top: 28px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.contact .button { margin: 18px 0 14px; }
.contact .hint { font-size: 14px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a[aria-current] { color: var(--text); }

@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature.flip .copy { order: 0; }
  .phone { width: min(380px, 100%); margin-inline: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .hero { padding-block: 48px 40px; }
  .lead { font-size: 18px; }
  .actions .button { width: 100%; }
  .store { flex: 1; justify-content: center; padding-inline: 12px; }
  .track { --size: 64vw; gap: 14px; }
  .feature, .discover, .yours { padding-block: 56px; }
  .lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lists .list-card:nth-child(3) { display: none; }
  footer { flex-wrap: wrap; }
  .doc { padding-block: 44px 64px; }
  .contact { padding: 20px; }
  .contact .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .list-card .mosaic { transition: none; }
}
