/* Joyride showcase. Look "A. Night Drive". Colors are the app's own (Joyride brand guide). */
:root { --night: #16131f; --dusk: #2b2545; --cream: #fff4e3; --soft: #e9def5; --red: #ff3b4e; --yellow: #ffc93c;
  --head: Nunito, ui-rounded, "SF Pro Rounded", system-ui, sans-serif; color-scheme: dark; }
@font-face { font-family: Nunito; src: url("/fonts/nunito-800-900.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--night); color: var(--cream); font: 18px/1.55 system-ui, -apple-system, sans-serif; }
h1, h2, h3, .motto, .say, .logo, .cta, .cut, .secs, .trunk strong { font-family: var(--head); font-weight: 900; }
h1, h2, h3 { line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: 25px; margin: 16px 0 6px; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, video:focus-visible, .cut:focus-within { outline: 3px solid var(--red); outline-offset: 3px; }
figure { margin: 0; }
.wrap { max-width: 1048px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.narrow { max-width: 808px; }
.soft { color: var(--soft); }

.hero { background: var(--dusk); }
.top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding-top: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: 28px; line-height: 1; text-decoration: none; }
.logo .mark { width: 44px; height: 44px; }
.logo .dot { color: var(--red); }
.home { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.lead { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding-top: 24px; padding-bottom: 8px; }
.copy { flex: 1.5 1 420px; min-width: 0; }
.copy p { margin: 22px 0 0; max-width: 34em; font-size: 19px; color: var(--soft); }
.cta { display: inline-flex; align-items: center; min-height: 54px; margin-top: 26px; padding: 0 26px; border-radius: 999px;
  border-bottom: 5px solid #b9860a; background: var(--yellow); color: var(--night); font-size: 19px; text-decoration: none; }
.copy .beta { margin-top: 12px; font-size: 15px; }
.cast { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.dash { width: 100%; max-width: 330px; height: auto; aspect-ratio: 360 / 430; }
figcaption { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 15px; color: var(--soft); }
.say { padding: 10px 18px; background: var(--cream); color: var(--night); border: 3px solid var(--night); border-radius: 20px; font-size: 18px; }
.scene { display: block; width: 100%; height: 170px; }

.band { padding: 64px 0; }
.paper { background: var(--cream); color: var(--night); }
.yellow { background: var(--yellow); color: var(--night); }
.dusk { background: var(--dusk); }

.row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; }
.row > div { flex: 1 1 320px; min-width: 0; }
.secs { margin: 0; font-size: clamp(64px, 11vw, 132px); line-height: 0.9; }
.secs .done { display: none; }
.tape { margin-top: 28px; padding: 12px; background: var(--night); border-radius: 14px; }
.strip { display: flex; gap: 6px; height: 76px; width: 100%; }
.strip i { flex-basis: 0; min-width: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #6a5ca8; color: var(--night); font: 900 22px var(--head); font-style: normal; }
.strip i.p { background: #a8a3b8; }
.g4 { flex-grow: 4; } .g5 { flex-grow: 5; } .g7 { flex-grow: 7; } .g8 { flex-grow: 8; } .g9 { flex-grow: 9; } .g12 { flex-grow: 12; } .g15 { flex-grow: 15; }
.controls { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.cut { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px; border-bottom: 5px solid #000; border-radius: 999px; background: var(--dusk); color: var(--cream); font-size: 17px; cursor: pointer; }
.cut input { width: 20px; height: 20px; margin: 0; accent-color: var(--yellow); }
.parked:has(#cut:checked) .secs .raw { display: none; }
.parked:has(#cut:checked) .secs .done { display: inline; }
.parked:has(#cut:checked) .strip { width: 68.3%; }
.parked:has(#cut:checked) .strip i.p { display: none; }
@media (prefers-reduced-motion: no-preference) { .strip { transition: width 0.5s; } }

.ways { list-style: none; display: flex; flex-wrap: wrap; gap: 36px; margin: 34px 0 0; padding: 0; }
.ways li { flex: 1 1 240px; min-width: 0; }
.ways p { margin: 0; color: var(--soft); }
.sign { display: block; width: 84px; height: 84px; }
.trunk { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px 36px; }
.trunk strong { display: block; font-size: 22px; line-height: 1.2; }

.screen { margin-top: 26px; padding: 10px; background: var(--dusk); border-radius: 20px; }
.screen video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 650; border-radius: 12px; background: var(--night); }

.duo { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.duo .shady { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.shady-art { width: 100%; max-width: 290px; height: auto; aspect-ratio: 320 / 300; }
.duo > div { flex: 1.6 1 340px; min-width: 0; }

.foot { text-align: center; }
.motto { margin: 0; font-size: 30px; }
.foot .soft { max-width: 40em; margin-left: auto; margin-right: auto; font-size: 15px; }

.lost { min-height: 100vh; padding: 20px 0 64px; }
.lost h1 { margin-top: 48px; }

/* the record light blinks three times, then stays on */
@keyframes rec { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.25; } }
@media (prefers-reduced-motion: no-preference) { .blink { animation: rec 1.5s steps(1) 3; } }
