/* Hallmark · shape: the remote and the room · genre: atmospheric · theme: custom · job: try · idea: "the page is tuned like the TV: a number key changes the station, and the whole page takes on that world's light" · vibe: "a living room lit by the radio"
 * paper: oklch(19% 0.018 170), the app's own deep green · accent: oklch(79% 0.11 55), the app's terracotta focus · display: Unbounded · body: Onest · hero: the headline over the built TV home screen and a nine-key remote that tunes it · nav: sticky wordmark bar · footer: a plain sign-off with legal links · imagery: the app's own category pictures and the product built · signature: press 1 to 9 and the TV plays that favourite while the page takes on its light
 * axes: dark/display-heavy/warm · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5 · weakest: R, the belt is a wall of pictures; it moves, every tile names a real station, and it is the only picture-led band below the hero */
/* Hallmark · waive 84 · the product runs, but every captured screen shows stations' own logos, which the site may not show · the user ruled out any logo that is not ours */
/* Hallmark · waive 37 · Segoe UI is the app's own system face, used only inside the built TV and phone screens · the site itself sets Unbounded and Onest */
/* Hallmark · waive 83 · the user asked for pictures to bring the page to life; these are the app's own category art, the moving belt is the only picture-led band, and the rest is the product built · tile count is doubled by the seamless loop */
/* Hallmark · waive 85 · the two store tiles come before the form and carry the page's action · the waitlist under them is the user's brief, for more TVs and iOS later */
/* Hallmark · waive 39b · every key is 52px tall with its whole face as the hit area · the keys are a remote control to try, drawn at remote size */
/* Hallmark · dismissed 29 · the coloured glow is the signature: the light of the station playing, not depth */
/* Hallmark · answered F15 · the hero stage keeps a tighter gap so the remote sits with the TV; the text-and-picture sections share one 96px gap */
/* Hallmark · answered F4 · two filled-weight store actions on purpose: the LG and Android stores carry equal weight, the user's call */
@import url("./tokens.css");
@import url("./base.css");

:root { --world: oklch(52% 0.09 250); --nav-h: 68px; }
body { background: var(--color-paper); }
h1, h2 { font-weight: 700; letter-spacing: var(--tracking-display); line-height: 1.02; color: var(--color-ink); }
.lead { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 46ch; }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-pill); }
.skip:focus-visible { top: var(--space-md); }

/* the room's light: two soft pools in the colour of the station playing */
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: clip; }
.glow i { position: absolute; border-radius: 50%; background-color: var(--world); filter: blur(120px); opacity: 0.42; transition: background-color 1200ms var(--ease-out); }
.glow i:first-child { width: 62vw; height: 62vw; top: -24vw; right: -18vw; }
.glow i:last-child { width: 40vw; height: 40vw; bottom: -20vw; left: -14vw; opacity: 0.22; }
main, .nav, .foot { position: relative; z-index: 1; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-xl); border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-md)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-ink); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--ghost { background: color-mix(in oklab, var(--color-ink) 10%, transparent); color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-rule); }
.btn--ghost:hover { background: var(--color-ink); color: var(--color-paper); }
.btn--small { min-height: 40px; padding: 0 var(--space-lg); font-size: var(--text-sm); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }

/* nav */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 72%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--color-rule); }
.nav__in { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.wordmark { font: 700 var(--text-lg)/1 var(--font-display); letter-spacing: -0.03em; text-decoration: none; color: var(--color-ink); }
.nav__links { list-style: none; display: flex; align-items: center; gap: var(--space-xl); margin: 0; padding: 0; font-size: var(--text-sm); }
.nav__links a:not(.btn) { text-decoration: none; color: var(--color-ink-2); }
.nav__links a:not(.btn):hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.nav a:focus-visible, .foot a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }

/* hero */
.hero { padding: var(--space-2xl) 0 0; }
.tune { padding: var(--section-gap-s) 0; }
.hero h1 { font-size: clamp(2.75rem, 5.6vw + 0.5rem, 6.25rem); max-width: 14ch; }
.hero .lead { margin-top: var(--space-lg); }
.stage { display: grid; grid-template-columns: minmax(0, 8.2fr) minmax(0, 3.8fr); gap: var(--space-xl); align-items: center; }
.set { margin: 0; padding: var(--space-sm); border-radius: 18px; background: var(--color-bezel); box-shadow: 0 0 0 1px var(--color-rule), var(--shadow-card), 0 0 160px -40px var(--world); transition: box-shadow 1200ms var(--ease-out); }
.set .tv { border-radius: 9px; }

/* TV additions: genre in the facts, categories with the app's pictures */
.tv__by { color: var(--app-muted); }
.tv__song b { font-weight: 600; }
.tv__track { overflow: hidden; padding: calc(30 * var(--u)) 0 calc(40 * var(--u)); margin: calc(-30 * var(--u)) 0 calc(-40 * var(--u)); }
.tv__cards { gap: calc(110 * var(--u)); padding-left: calc(92 * var(--u)); transform: translateX(calc(var(--shift, 0) * -440 * var(--u))); transition: transform 420ms var(--ease-out); }
/* the digit as the app draws it: beside the card, overlapping its edge by 18px */
.tv__cards .card__n { left: calc(-92 * var(--u)); bottom: calc(-4 * var(--u)); font-size: calc(124 * var(--u)); line-height: 0.74; font-weight: 700; color: var(--app-digit); -webkit-text-stroke: calc(2.5 * var(--u)) var(--app-cream); }
.tv__cards .card__face { padding-left: calc(24 * var(--u)); }
.tv__cards .card.is-focus .card__n { -webkit-text-stroke-color: var(--app-terra); }
.tv__hero .art, .tv__name, .tv__song, .tv__facts { transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.tv.is-tuning .tv__hero .art, .tv.is-tuning .tv__name, .tv.is-tuning .tv__song, .tv.is-tuning .tv__facts { opacity: 0; transform: translateY(calc(16 * var(--u))); }
.tv__glow { transition: background-color 900ms var(--ease-out); }

/* the remote */
.remote { display: flex; flex-direction: column; gap: var(--space-md); }
.remote__h { font-size: var(--text-md); color: var(--color-ink-2); }
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.key { display: flex; align-items: baseline; gap: var(--space-xs); min-height: 52px; padding: var(--space-xs) var(--space-sm); border: 0; border-radius: 16px; background: color-mix(in oklab, var(--color-ink) 7%, transparent); box-shadow: inset 0 0 0 1px var(--color-rule); color: var(--color-ink-2); text-align: left; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.key b { font: 700 var(--text-lg)/1 var(--font-display); color: var(--color-ink); }
.key span { font-size: var(--text-xs); color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.key:hover { background: color-mix(in oklab, var(--color-ink) 13%, transparent); }
.key:active { transform: scale(0.96); }
.key:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.key.is-on { background: var(--color-accent); box-shadow: 0 0 0 5px color-mix(in oklab, var(--color-accent) 22%, transparent); }
.key.is-on b, .key.is-on span { color: var(--color-accent-ink); }
.remote__now { min-height: 3em; font-size: var(--text-sm); color: var(--color-ink-2); }

/* the worlds belt */
.worlds { padding: var(--section-gap-s) 0 var(--section-gap-l); overflow: clip; }
.worlds__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-2xl); align-items: end; }
.worlds h2 { font-size: var(--text-section); max-width: 20ch; }
.belt { margin-top: var(--space-2xl); display: grid; gap: var(--space-md); }
.belt__row { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-md); width: max-content; animation: belt 90s linear infinite; }
.belt__row--back { animation-direction: reverse; animation-duration: 110s; }
.belt:hover .belt__row { animation-play-state: paused; }
@keyframes belt { to { transform: translateX(-50%); } }
.tile { flex: none; width: clamp(260px, 26vw, 400px); }
.tile__pic { display: block; aspect-ratio: 720 / 411; border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper-2); }
.tile__pic { transition: transform var(--dur-long) var(--ease-out); }
.tile__pic img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover .tile__pic { transform: translateY(-6px); }
.tile p { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); margin-top: var(--space-sm); padding-inline: var(--space-2xs); }
.tile b { font: 700 var(--text-lg)/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); white-space: nowrap; }
.tile [data-t]::before { content: attr(data-t); }
.tile span { font-size: var(--text-xs); color: var(--color-muted); text-align: right; }

/* the song */
.song { padding: var(--section-gap) 0; }
.song__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.song__kicker { font-size: var(--text-title); font-weight: 400; letter-spacing: -0.01em; color: var(--color-ink-2); max-width: 24ch; }
.song__title { margin-top: var(--space-xl); font: 700 clamp(3rem, 7.4vw, 8rem)/0.95 var(--font-display); letter-spacing: -0.045em; color: var(--color-ink); overflow-wrap: break-word; min-width: 0; transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.song__artist { margin-top: var(--space-lg); font-size: var(--text-lead); color: var(--color-ink-2); transition: opacity 300ms var(--ease-out); }
.song.is-tuning .song__title, .song.is-tuning .song__artist { opacity: 0; transform: translateY(12px); }
.song__bar { margin-top: var(--space-xl); height: 4px; border-radius: 2px; background: var(--color-rule); overflow: hidden; }
.song__bar i { display: block; height: 100%; background: var(--color-sage); transform-origin: left; transform: scaleX(0.3); }
.song__bar i.is-running { animation: bar 9s linear forwards; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.heard { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: var(--space-lg); align-items: start; padding: var(--space-xl); border-radius: 28px; background: linear-gradient(150deg, var(--app-bg1), var(--app-bg3)); box-shadow: 0 0 0 1px var(--app-line), var(--shadow-card); font-family: var(--app-font); color: var(--app-text); }
.heard__head { grid-area: 1 / 1; align-self: center; }
.heard__list { grid-area: 2 / 1 / 3 / 3; }
.heard h3 { font: 700 var(--text-lg)/1.2 var(--app-font); color: var(--app-cream); }
.heard__head p { margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--app-muted); }
.heard__list { list-style: none; margin: 0; padding: 0; }
.heard__list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: var(--space-sm); padding: var(--space-sm) var(--space-sm); border-bottom: 1px solid var(--app-line); font-size: var(--text-sm); }
.heard__list li:last-child { border-bottom: 0; }
.heard__list time { color: var(--app-muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.heard__list b { font-weight: 600; color: var(--app-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heard__list b small { display: block; font-weight: 400; color: var(--app-muted); }
.heard__list li > span { grid-column: 2; font-size: var(--text-xs); color: var(--app-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heard__list li.is-focus { background: var(--app-surface); border-radius: 14px; border-bottom-color: transparent; box-shadow: inset 0 0 0 2px var(--app-terra); }
.heard__qr { grid-area: 1 / 2; text-align: center; font-size: var(--text-xs); color: var(--app-muted); }
.heard__qr svg { width: 100%; height: auto; margin-bottom: var(--space-xs); padding: var(--space-xs); border-radius: 12px; background: var(--app-cream); color: var(--app-deep); }

/* phone and car */
.phone-sec { padding: var(--section-gap-s) 0; }
.phone-sec__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.phone-sec__pic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36%); }
.phone-sec__pic > img { grid-area: 1 / 1 / 2 / 3; width: 88%; aspect-ratio: 720 / 411; object-fit: cover; border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--color-rule); }
.phone--big { grid-area: 1 / 2 / 2 / 3; justify-self: end; margin-top: clamp(40px, 6vw, 96px); width: clamp(150px, 20vw, 290px); border-radius: 34px; box-shadow: 0 0 0 8px var(--color-bezel), 0 0 0 9px var(--color-rule), var(--shadow-card); }
.phone-sec h2 { font-size: var(--text-section); max-width: 14ch; }
.facts { list-style: none; margin: var(--space-xl) 0 0; padding: 0; }
.facts li { padding: var(--space-md) 0; border-top: 1px solid var(--color-rule); color: var(--color-ink-2); }
.facts b { display: block; font: 700 var(--text-lg)/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); margin-bottom: var(--space-2xs); }

/* night: the page dims like the TV */
.night { position: relative; padding: var(--section-gap) 0; background: var(--app-night); color: var(--app-night-ink); }
.night__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xl) var(--space-3xl); align-items: end; }
.night h2 { color: var(--app-night-ink); font-size: var(--text-section); max-width: 12ch; }
.night__saver { grid-row: span 2; text-align: right; }
.night__clock { font: 400 clamp(5rem, 15vw, 14rem)/0.9 var(--font-body); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--color-night-hi); }
.night__song { margin-top: var(--space-md); font-size: var(--text-lead); color: var(--app-night-ink); }
.night__song b { color: var(--color-night-hi-2); font-weight: 600; }
.night__note { max-width: 36ch; color: var(--app-night-ink); }

/* get it */
.get { padding: var(--section-gap) 0; }
.get h2 { font-size: var(--text-section); max-width: 16ch; }
.get__stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-2xl); }
.store { display: flex; align-items: center; gap: var(--space-lg); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-accent); color: var(--color-accent-ink); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.store:hover { background: var(--color-ink); }
.store:active { transform: translateY(1px); }
.store:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.store svg { flex: none; width: 44px; height: 44px; }
.store b { display: block; font: 700 var(--text-2xl)/1.05 var(--font-display); letter-spacing: -0.03em; }
.store span { font-size: var(--text-sm); }
.wait { margin-top: var(--space-2xl); max-width: 760px; }
.wait > label { font: 400 var(--text-title)/1.3 var(--font-body); color: var(--color-ink); }
.wait__row { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.wait input, .wait select { min-height: 52px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); outline: 2px solid transparent; outline-offset: 2px; }
.wait input { flex: 1 1 15rem; min-width: 0; }
.wait input::placeholder { color: var(--color-muted); }
.wait input:hover, .wait select:hover { border-color: var(--color-ink-2); }
.wait input:focus-visible, .wait select:focus-visible { outline-color: var(--color-focus); }
.wait input[aria-invalid="true"] { border-color: var(--color-error); }
.wait__help { min-height: 1.55em; margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }

/* footer */
.foot { padding: var(--space-2xl) 0; border-top: 1px solid var(--color-rule); background: var(--color-paper-3); }
.foot__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-xl); align-items: baseline; }
.foot__word { font: 700 var(--text-lg)/1 var(--font-display); letter-spacing: -0.03em; color: var(--color-ink); }
.foot__text { max-width: 60ch; font-size: var(--text-sm); color: var(--color-muted); }
.foot__links { list-style: none; display: flex; gap: var(--space-lg); margin: 0; padding: 0; font-size: var(--text-sm); }
.foot__links a { color: var(--color-ink-2); }

@media (max-width: 80rem) {
  .song__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); }
}
@media (max-width: 68rem) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .remote { max-width: 520px; }
}
@media (max-width: 60rem) {
  .worlds__head, .song__in, .phone-sec__in, .night__in, .foot__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .night__saver { grid-row: auto; text-align: left; }
  .nav__links li:not(:last-child) { display: none; }
}
@media (max-width: 40rem) {
  .get__stores { grid-template-columns: minmax(0, 1fr); }
  .heard { grid-template-columns: minmax(0, 1fr) 80px; padding: var(--space-lg); }
  .heard__qr span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .belt { overflow-x: auto; }
  .belt__row { animation: none; }
  .glow i, .tv__glow, .set { transition: none; }
}

/* until the stores list the app, the store tiles are not links (div.store): no hover or press */
div.store:hover { background: var(--color-accent); }
div.store:active { transform: none; }
/* waitlist honeypot: off-screen, people never fill it */
.wait__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wait__help a { color: inherit; }
