/* Soonu landing page. Look, timings and motion follow the B2 artboard
   (docs/design/landing/b2-artboard.dc.html). Only transform (including
   translate/rotate), opacity and filter animate or transition: shadows and
   colours that pulse or fade sit on pseudo-elements whose transform and
   opacity move instead. No ancestor of a scroll reveal may use overflow: hidden
   (it makes a scroll box the reveal would track); use overflow: clip. */

/* ---------- Fonts (self-hosted, Latin subset, variable) ---------- */
@font-face {
  font-family: Unbounded;
  src: url(/assets/fonts/unbounded-latin.woff2) format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(/assets/fonts/manrope-latin.woff2) format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

/* Width-matched stand-in while Unbounded loads, so the hero doesn't jump. */
@font-face {
  font-family: "Unbounded Fallback";
  src: local("Arial Black"), local("Arial-Black");
  size-adjust: 117%;
  ascent-override: 84%;
  descent-override: 21%;
  line-gap-override: 0%;
}

/* ---------- Base ---------- */
:root {
  --violet: #6A4BFF;
  --night: #050A1A;
  --ink: #EEF3FF;
  --mint: #4DF2B4;
  --yellow: #FFC93D;
  --orange: #FF9F45;
  --muted: #C3CCE6;
  --gut: clamp(20px, 5vw, 40px);
  --display: Unbounded, "Unbounded Fallback", "Arial Black", system-ui, sans-serif;
  --body: Manrope, Arial, system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--violet); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--violet);
  color: var(--night);
  font-family: var(--body);
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: clip; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* The page wrapper stops sideways scroll from the tilted marquee. */
.page { min-height: 100vh; background: var(--violet); overflow: clip; }
main { display: block; }

/* Pill buttons and links */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; border-radius: 999px; text-decoration: none;
  font-family: var(--body); font-weight: 800; white-space: nowrap;
}
.pill-night { background: var(--night); color: #FFFFFF; }
.pill-night:hover { background: #FFFFFF; color: var(--night); }
.pill-mint { background: var(--mint); color: var(--night); }
.pill-mint:hover { background: #FFFFFF; }
.pill-sm { font-size: 15px; padding: 12px 20px; }
.pill-lg { font-size: 18px; padding: 20px 30px; }

.kicker { font: 800 14px var(--display); letter-spacing: .14em; color: var(--mint); }

/* ---------- 1. Header ---------- */
.bar {
  max-width: 1360px; margin: 0 auto; padding: 28px var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark { width: 110px; height: 42px; }

/* ---------- 2. Hero ---------- */
.hero { max-width: 1360px; margin: 0 auto; padding: 48px var(--gut) 0; }
.hero-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px; }
.hero h1 {
  flex: 999 1 640px; min-width: 0;
  font: 900 clamp(46px, 6.8vw, 108px)/1.04 var(--display);
  letter-spacing: -.035em; color: #FFFFFF;
}
.hero h1 > span { display: block; }
.hero h1 .hero-night { color: var(--night); animation-delay: .12s; }
.hero-icon { flex: 1 1 200px; display: flex; justify-content: center; padding-bottom: 14px; }
.hero-icon svg { width: 180px; height: 180px; }
.hero-sub {
  padding-top: 40px; display: flex; flex-wrap: wrap; gap: 32px;
  align-items: center; justify-content: space-between;
}
.hero-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.hero-drum { position: relative; font: 800 clamp(24px, 2.4vw, 34px)/1.06 var(--display); color: #FFFFFF; }
.drum { display: block; height: 1.06em; overflow: clip; }
.drum-track { display: block; animation: kb-drum 9s cubic-bezier(.76, 0, .24, 1) infinite; }
.drum-track span { display: block; height: 1.06em; white-space: nowrap; }
/* 700 keeps night-on-violet text legible: bold 19 px+ counts as large text. */
.hero-lede { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; font-weight: 700; max-width: 38ch; }
.hero-actions { flex: none; display: flex; align-items: center; gap: 12px; }
/* Page-wide pause / play for looping motion (WCAG 2.2.2). */
.motion-toggle {
  flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--night); background: transparent; color: var(--night); cursor: pointer;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { background: var(--night); color: #FFFFFF; }
.motion-toggle .ic-play, .motion-off .motion-toggle .ic-pause { display: none; }
.motion-off .motion-toggle .ic-play { display: block; }

.kb-rise { animation: kb-rise 1s cubic-bezier(.16, 1, .3, 1) both; }
.kb-pop { animation: kb-pop .9s .35s cubic-bezier(.34, 1.56, .64, 1) both; }
.kb-hop { transform-origin: 50% 100%; animation: kb-hop 3.2s cubic-bezier(.3, 0, .2, 1) infinite; }
.kb-look { animation: kb-look 3.2s cubic-bezier(.7, 0, .2, 1) infinite; }

@keyframes kb-rise { from { opacity: 0; transform: translateY(.5em) rotate(2deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes kb-pop { from { opacity: 0; transform: scale(.4) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes kb-hop {
  0%, 62% { transform: translateY(0) scale(1, 1); }
  68% { transform: translateY(0) scale(1.08, .88); }
  76% { transform: translateY(-34%) scale(.94, 1.08); }
  84% { transform: translateY(0) scale(1.06, .92); }
  90%, 100% { transform: translateY(0) scale(1, 1); }
}
@keyframes kb-look {
  0%, 12% { transform: translate(-16px, 0); }
  18%, 34% { transform: translate(16px, 0); }
  40%, 60% { transform: translate(18px, -2px); }
  66%, 100% { transform: translate(18px, -8px); }
}
@keyframes kb-drum {
  0%, 26% { transform: translateY(0); }
  33%, 59% { transform: translateY(-1.06em); }
  66%, 92% { transform: translateY(-2.12em); }
  100% { transform: translateY(-3.18em); }
}

@media (max-width: 720px) {
  .hero-icon { justify-content: flex-start; padding: 24px 0 0; }
  .hero-icon svg { width: 112px; height: 112px; }
}

/* ---------- 3. Street marquee ---------- */
/* Wider than the page so the tilted ends never show; .page clips it. */
.marquee {
  margin: 96px -60px 0; display: flex; flex-direction: column; gap: 6px;
  transform: rotate(-3deg); transform-origin: center;
}
.band { overflow: clip; }
.band-solid { background: var(--night); padding: 18px 0; }
.band-outline { padding: 10px 0; }
.track {
  display: flex; width: max-content; gap: 48px; padding-right: 48px;
  font: 900 54px/1 var(--display); white-space: nowrap;
  animation: kb-marquee 26s linear infinite;
}
.band-solid .track { color: #FFFFFF; }
.band-solid .dot { color: var(--mint); }
.band-outline .track { color: transparent; -webkit-text-stroke: 2px var(--night); }
.track-rev { animation-direction: reverse; animation-duration: 34s; }
@keyframes kb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 4. Edmonton at night ---------- */
.ed {
  position: relative; margin-top: 110px; min-height: 780px;
  background: var(--night); color: #FFFFFF;
  border-radius: 56px 56px 0 0; overflow: clip;
}
.ed-layer { position: absolute; inset: 0; pointer-events: none; }
.ed-par-sky { inset: -40px 0 0 0; }
.ed-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Text sits on top; the bottom padding keeps it clear of the yellow card. */
.ed-inner { position: relative; max-width: 1360px; margin: 0 auto; padding: 96px var(--gut) 340px; }
.ed-copy { max-width: 680px; display: flex; flex-direction: column; gap: 22px; }
.ed-copy h2 { font: 900 clamp(40px, 4.8vw, 72px)/1 var(--display); letter-spacing: -.04em; }
.ed-line { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 36ch; }

.ed-chip {
  position: absolute; left: max(var(--gut), calc(50% - 640px)); bottom: 56px;
  width: min(300px, calc(100% - 40px)); border-radius: 24px; padding: 16px 18px;
  background: var(--yellow); color: #3A0A3A; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  animation: ed-chip 5s ease-in-out infinite;
}
.chip-top { display: flex; justify-content: space-between; font: 800 11px var(--body); letter-spacing: .08em; }
.chip-temp { position: relative; display: inline-block; min-width: 4.5em; text-align: right; }
.chip-temp .ed-summer { position: absolute; right: 0; top: 0; }
.chip-mid { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; }
.chip-route { display: flex; align-items: center; gap: 10px; font: 800 18px var(--display); }
.chip-num { padding: 1px 8px; border: 3px solid #3A0A3A; border-radius: 9px; }
.chip-eta { font: 900 34px/1 var(--display); }
.chip-eta span { font: 800 13px var(--body); }
.chip-tip { margin-top: 10px; font: 700 13px var(--body); }

.ed-au-a { transform-box: fill-box; transform-origin: 50% 50%; animation: ed-au 12s ease-in-out infinite alternate; }
.ed-au-b { transform-box: fill-box; transform-origin: 50% 50%; animation: ed-au 9s -4s ease-in-out infinite alternate-reverse; }
.ed-star { animation: ed-tw 3.4s ease-in-out infinite; }
.ed-win { animation: ed-win 9s steps(1) infinite; }
.ed-beacon { animation: ed-tw 1.4s ease-in-out infinite; }
.ed-bus { animation: ed-bus 16s linear infinite; }
.ed-shim { animation: ed-shim 3s ease-in-out infinite; }
.ed-snow-a { animation: ed-snow 16s linear infinite; }
.ed-snow-b { animation: ed-snow 9s linear infinite; }
.ed-winter { animation: ed-season 20s ease-in-out infinite; }
.ed-summer { opacity: 0; animation: ed-season 20s -10s ease-in-out infinite; }
.ed-fly { animation: ed-fly 5s ease-in-out infinite; }
.ed-par-sky { animation: ed-par-sky linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
.ed-par-city { animation: ed-par-city linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }

@keyframes ed-au { 0% { transform: translateX(-50px) scaleY(.85); opacity: .7; } 50% { opacity: 1; } 100% { transform: translateX(50px) scaleY(1.15); opacity: .8; } }
@keyframes ed-tw { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes ed-win { 0%, 60% { opacity: .85; } 61%, 100% { opacity: .1; } }
@keyframes ed-bus { from { transform: translateX(-220px); } to { transform: translateX(1500px); } }
@keyframes ed-shim { 0%, 100% { opacity: .1; transform: translateX(0); } 50% { opacity: .6; transform: translateX(10px); } }
@keyframes ed-snow { from { transform: translate(0, 0); } to { transform: translate(-30px, 640px); } }
@keyframes ed-par-sky { from { transform: translateY(-50px); } to { transform: translateY(50px); } }
@keyframes ed-par-city { from { transform: translateY(-20px); } to { transform: translateY(20px); } }
@keyframes ed-season { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ed-fly { 0%, 100% { opacity: .15; transform: translate(0, 0); } 50% { opacity: 1; transform: translate(12px, -14px); } }
@keyframes ed-chip { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(-1deg); } }

/* ---------- 5. Sneak peek ---------- */
.peek { background: var(--night); color: #FFFFFF; padding: 90px 0 120px; }
.peek-inner {
  max-width: 1360px; margin: 0 auto; padding: 0 var(--gut);
  display: flex; flex-wrap: wrap; gap: 64px; align-items: center;
}
.peek-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.peek-copy h2 { font: 900 clamp(44px, 6vw, 92px)/.98 var(--display); letter-spacing: -.04em; }
.peek-caps { min-height: 120px; }
.pk-cap { display: none; }
.pk-cap.is-on { display: block; animation: pk-cap .6s cubic-bezier(.23, 1, .32, 1) both; }
.cap-title { font: 900 clamp(28px, 3vw, 42px)/1.1 var(--display); color: #FFFFFF; }
.cap-line { margin-top: 12px; font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 34ch; }
.peek-copy .pill { align-self: flex-start; padding: 18px 28px; }

.peek-controls { display: flex; align-items: center; gap: 10px; }
.peek-tabs { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

/* Pause / play for the auto-advancing peek (WCAG 2.2.2). */
.pk-toggle {
  flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255, 255, 255, .28); background: transparent; color: #FFFFFF; cursor: pointer;
}
.pk-toggle[hidden] { display: none; }
.pk-toggle:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.pk-toggle .ic-play, .is-stopped .pk-toggle .ic-pause { display: none; }
.is-stopped .pk-toggle .ic-play { display: block; }
/* Paused: progress, float, pulses and ghost taps hold where they are.
   Entrances (screen, push, sheet, caption, notification) still finish, so
   a scene picked while paused shows its content. */
.is-stopped :is(.pk-float, .pk-kb, .pk-press, .pk-tap),
.is-stopped .pk-glow::before,
.is-stopped :is(.pk-glow, .pk-ping, .pk-me)::after { animation-play-state: paused; }
/* Outranks the selected-fill rule, whose shorthand resets play-state. */
.peek:is(.is-stopped, .is-held) .pk-step[aria-selected="true"] .pk-fill { animation-play-state: paused; }
.pk-step {
  display: flex; flex-direction: column; gap: 10px; min-height: 44px;
  padding: 12px 10px 14px; border: 0; border-radius: 14px;
  background: transparent; color: #8D99BE; text-align: left;
  font: 800 14px var(--body); cursor: pointer;
}
.pk-step:hover { background: rgba(255, 255, 255, .06); }
.pk-step[aria-selected="true"] { color: #FFFFFF; }
.pk-bar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: clip; }
.pk-fill { display: none; height: 100%; background: var(--mint); transform-origin: left; }
.pk-step.is-done .pk-fill { display: block; background: rgba(255, 255, 255, .5); }
.pk-step[aria-selected="true"] .pk-fill { display: block; animation: pk-progress 4s linear both; }

/* The phone */
.pk-fit { flex: 1 1 400px; display: flex; justify-content: center; perspective: 1600px; }
.pk-float { animation: pk-float 6s ease-in-out infinite; }
.pk-phone { transform: rotateX(4deg) rotateY(-14deg); transition: transform .5s cubic-bezier(.23, 1, .32, 1); }
.pk-frame {
  width: 364px; height: 760px; border-radius: 60px; padding: 12px; background: #11131C;
  box-shadow: 0 0 0 2px #2A2E3D, 0 60px 140px rgba(106, 75, 255, .45), 0 20px 40px rgba(0, 0, 0, .6);
}
.pk-screen { position: relative; width: 340px; height: 736px; border-radius: 48px; overflow: clip; background: #F4F2FA; }
.pk-scene { display: none; position: absolute; inset: 0; }
.pk-scene.is-on, .pk-scene.is-prev { display: block; }
.pk-scene.is-on { z-index: 1; }
.pk-img { position: absolute; left: 0; top: 0; width: 340px; height: 738px; max-width: none; }

.pk-card-hit { position: absolute; left: 13px; top: 199px; width: 314px; height: 129px; border-radius: 16px; }
.pk-press { background: rgba(42, 10, 40, .14); }
.pk-tap { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(106, 75, 255, .45); }
.pk-tap-card { left: 196px; top: 262px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 2px rgba(42, 10, 40, .25); }
.pk-tap-map { left: 111px; top: 694px; }
.pk-tap-tonight { left: 170px; top: 694px; }

.pk-push { background: #F4F2FA; box-shadow: -20px 0 40px rgba(10, 8, 40, .25); }
.pk-route-map { position: absolute; left: 0; top: 0; width: 340px; height: 378px; overflow: clip; }
.pk-sheet { position: absolute; left: 0; top: 378px; width: 340px; height: 360px; overflow: clip; }
.pk-sheet-img { top: -378px; }
.pk-ping { position: absolute; pointer-events: none; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 8px; }
.pk-ping-bus { left: 232px; top: 109px; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 9px; }
.pk-ping-a { left: 186px; top: 222px; }
.pk-ping-b { left: 233px; top: 455px; }
.pk-ping-c { left: 19px; top: 398px; }
.pk-ping-a::after { animation-delay: .4s; }
.pk-ping-b::after { animation-delay: 1.1s; }
.pk-ping-c::after { animation-delay: 1.8s; }
.pk-me { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; }
.pk-me-route { left: 153px; top: 229px; }
.pk-me-map { left: 170px; top: 319px; }

.pk-dim { position: absolute; inset: 0; background: rgba(10, 8, 40, .38); }
.pk-note {
  position: absolute; left: 9px; right: 9px; top: 50px; border-radius: 22px; padding: 12px 13px;
  background: rgba(250, 250, 255, .86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: #0A0C24; display: flex; gap: 10px; align-items: flex-start;
  box-shadow: 0 14px 34px rgba(10, 8, 40, .28); font-family: var(--body);
}
.pk-note svg { flex: none; }
.note-body { min-width: 0; flex: 1; }
.note-meta { display: flex; justify-content: space-between; font-weight: 700; font-size: 11px; color: #5C6180; }
.note-title { margin-top: 2px; font-weight: 800; font-size: 13px; }
.note-text { margin-top: 2px; font-weight: 600; font-size: 12px; line-height: 1.35; }

.pk-screen-in { animation: pk-screen .6s cubic-bezier(.23, 1, .32, 1) both; }
.pk-push { animation: pk-push .55s cubic-bezier(.32, .72, 0, 1) both; }
.pk-kb { transform-origin: 68% 15%; animation: pk-kb 4s ease-out both; }
.pk-sheet { animation: pk-sheet .7s .35s cubic-bezier(.32, .72, 0, 1) both; }
/* The artboard grows the card's glow to a peak and settles it to rest. Here
   the peak (::after) and the resting glow (::before) crossfade. */
.pk-glow::before, .pk-glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
}
.pk-glow::before {
  box-shadow: 0 0 0 3px rgba(106, 75, 255, .35), 0 8px 20px rgba(106, 75, 255, .2);
  animation: pk-glow 2.4s .5s ease-in-out both;
}
.pk-glow::after {
  box-shadow: 0 0 0 4px rgba(106, 75, 255, .55), 0 12px 30px rgba(106, 75, 255, .35);
  animation: pk-glow-peak 2.4s .5s ease-in-out both;
}
.pk-press { opacity: 0; animation: pk-press .5s 3.15s ease-out both; }
/* The artboard's growing box-shadow halos, as a ring that scales and fades. */
.pk-ping::after, .pk-me::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; }
.pk-ping::after { box-shadow: 0 0 0 5px rgba(255, 201, 61, .9); animation: pk-ping 1.6s ease-out infinite; }
.pk-me::after { box-shadow: 0 0 0 4px rgba(30, 136, 255, .6); animation: pk-me 1.8s ease-out infinite; }
.pk-note { animation: pk-note .8s 1.2s cubic-bezier(.2, 1.3, .4, 1) both; }
.pk-dim { animation: pk-dim .6s 1.1s ease both; }
.pk-tap { animation: pk-tap .9s 3.1s ease-out both; }

@keyframes pk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pk-screen { from { opacity: 0; transform: scale(1.05); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pk-push { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pk-kb { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes pk-sheet { from { transform: translateY(100%); } to { transform: none; } }
/* Glow: the settled ring fades in; a stronger ring peaks at 40% and fades. */
@keyframes pk-glow { 0%, 40% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pk-glow-peak { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pk-press { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pk-ping { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.75); } }
@keyframes pk-me { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(2.8); } }
@keyframes pk-note { from { opacity: 0; transform: translateY(-150%) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes pk-dim { from { opacity: 0; } to { opacity: 1; } }
@keyframes pk-tap { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes pk-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pk-cap { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pk-fade { from { opacity: 0; } to { opacity: 1; } }

/* The phone scales down so it is never cut off on small phones. */
@media (max-width: 480px) { .pk-fit { zoom: .86; } .pk-step { padding-inline: 6px; font-size: 13px; } .peek-controls { gap: 6px; } }
@media (max-width: 380px) { .pk-fit { zoom: .78; } .peek-tabs { gap: 2px; } .pk-step { padding-inline: 3px; font-size: 12px; } }
@media (max-width: 340px) { .pk-fit { zoom: .74; } }

/* ---------- 6. Feature cards ---------- */
.cards {
  max-width: 1360px; margin: 0 auto; padding: 110px var(--gut) 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.card {
  position: relative; border-radius: 32px; padding: clamp(24px, 6vw, 36px); min-height: 240px;
  display: flex; flex-direction: column; gap: 14px;
}
.card h3 { display: flex; flex-direction: column; gap: 14px; font: 800 26px/1.15 var(--display); }
.card-big { font: 900 72px/1 var(--display); }
.card p { font-size: 17px; line-height: 1.5; font-weight: 600; }
.card-light { background: #FFFFFF; }
.card-light .card-big { color: var(--violet); }
.card-light p { color: #2B2F45; }
.card-night { background: var(--night); color: #FFFFFF; }
.card-night .card-big { color: var(--mint); }
.card-night p { color: var(--muted); }
.card-orange { background: var(--orange); }
.card-orange p { color: #2A1A00; }

.rs-card { transition: translate .45s cubic-bezier(.23, 1, .32, 1), rotate .45s cubic-bezier(.23, 1, .32, 1); }
.rs-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 24px 50px rgba(5, 10, 26, .28); opacity: 0;
  transition: opacity .45s cubic-bezier(.23, 1, .32, 1);
}
@media (hover: hover) {
  .rs-card:hover { translate: 0 -8px; rotate: -.8deg; }
  .rs-card:hover::after { opacity: 1; }
}

/* ---------- 7. Waitlist ---------- */
.join { max-width: 1360px; margin: 100px auto 0; padding: 0 var(--gut); }
/* The night card, shared with the result and privacy pages. */
.join-card, .sub-card {
  background: var(--night); color: #FFFFFF; border-radius: clamp(32px, 5vw, 44px);
  padding: clamp(28px, 6vw, 88px); display: flex; flex-direction: column; gap: 28px;
}
.join-title { font: 900 clamp(40px, 7vw, 112px)/.98 var(--display); letter-spacing: -.04em; }
.join-line { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 44ch; }
.join-form { display: flex; flex-direction: column; gap: 14px; }
/* No row gap: the empty error alert sits on its own line and must take no
   space until it has text; margins space the wrapped lines instead. */
.join-row { display: flex; flex-wrap: wrap; column-gap: 14px; align-items: stretch; }
.join-input {
  flex: 1 1 320px; min-width: 0; height: 76px; padding: 0 4px;
  border: 0; border-bottom: 4px solid var(--violet); border-radius: 0;
  background: transparent; color: #FFFFFF;
  font: 800 clamp(20px, 2.6vw, 36px) var(--display);
}
.join-input::placeholder { color: #8D99BE; opacity: 1; }
.join-input[aria-invalid="true"] { border-bottom-color: var(--yellow); }
.join-btn {
  flex: none; height: 76px; padding: 0 clamp(24px, 5vw, 40px);
  border: 0; border-radius: 999px; background: var(--violet); color: #FFFFFF;
  font: 900 20px var(--display); cursor: pointer;
}
.join-btn:hover { background: #FFFFFF; color: var(--night); }
.join-btn:disabled { cursor: progress; background: #3B2C8F; color: #FFFFFF; }
/* The field error sits right under the field: below the row when the
   button is beside the field, between them once the button wraps. It is a
   role="alert" that stays rendered (empty, zero height) so filling it is
   always announced. */
.join-error { order: 1; flex: 1 1 100%; font: 800 17px/1.4 var(--body); color: var(--yellow); }
.join-error:not(:empty) { margin-top: 14px; }
/* Under 760 px the button no longer fits beside the field: full width. */
@media (max-width: 760px) { .join-btn { order: 2; flex: 1 1 100%; margin-top: 14px; } }
.join-consent { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 60ch; }
/* Links inside a sentence: vertical padding makes the hit area 44 px tall
   without spreading the lines apart. */
.join-consent a, .sub-card a:not(.pill) {
  padding-block: 13px; color: #FFFFFF; font-weight: 800; text-underline-offset: 3px;
}
/* The live region stays rendered (empty, zero height) so screen readers
   track it before any message lands. It only takes space once filled. */
.join-form + .join-status:not(:empty) { margin-top: 14px; }
.join-status.is-ok { font: 900 clamp(26px, 3vw, 40px)/1.1 var(--display); color: var(--mint); }
.join-status.is-error { font: 800 17px/1.4 var(--body); color: var(--yellow); }
/* The honeypot: off-screen for people and hidden from assistive technology
   (aria-hidden, tabindex -1), but still in the form for bots to fill. */
.hp {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: clip; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Result and privacy pages ---------- */
.bar-home { display: inline-flex; align-items: center; min-height: 44px; }
.sub { max-width: 1360px; margin: 0 auto; padding: 24px var(--gut) 0; }
.sub-title { font: 900 clamp(32px, 5.6vw, 80px)/1.02 var(--display); letter-spacing: -.035em; max-width: 18ch; }
.sub-title.is-ok { color: var(--mint); }
.sub-card .pill { align-self: flex-start; }
.sub-lede { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 52ch; }
.policy { display: flex; flex-direction: column; gap: 32px; max-width: 64ch; }
.policy h2 { font: 800 clamp(20px, 2.2vw, 26px)/1.2 var(--display); color: #FFFFFF; }
.policy p { margin-top: 10px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.policy-date { font-size: 15px; color: var(--muted); }

/* ---------- Scroll reveals ---------- */
.kb-reveal { animation: kb-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
.kb-reveal.rs-d2 { animation-range: entry 8% entry 80%; }
.kb-reveal.rs-d3 { animation-range: entry 16% entry 90%; }
@keyframes kb-in { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }

/* No scroll timelines: just show everything, no motion. */
@supports not (animation-timeline: view()) {
  .kb-reveal, .ed-par-sky, .ed-par-city { animation: none; }
}

/* ---------- 8. Footer ---------- */
/* White on violet: the artboard's #1A1440 is under 4.5:1 at 14 px. */
.foot {
  max-width: 1360px; margin: 0 auto; padding: 56px var(--gut) 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 14px; font-weight: 600; color: #FFFFFF;
}
.foot p { max-width: 70ch; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-underline-offset: 3px; }

/* ---------- Off-screen sections pause (site.js sets .is-paused) ---------- */
/* Scroll-linked reveals and parallax keep tracking the scroll. */
.is-paused *:not(.kb-reveal, .ed-par-sky, .ed-par-city),
.is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

/* ---------- Page motion pause (site.js sets html.motion-off) ---------- */
/* Every looping animation holds. Left alone: scroll-linked reveals and
   parallax, the one-shot hero entrance, and the peek, which has its own
   stopped state (set at the same time) so its play button can resume it. */
.motion-off *:not(.kb-reveal, .ed-par-sky, .ed-par-city, .kb-rise, .kb-pop, .peek, .peek *),
.motion-off *:not(.peek *)::before, .motion-off *:not(.peek *)::after { animation-play-state: paused !important; }

/* ---------- Reduced motion: everything still; the peek crossfades ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kb-rise, .kb-pop, .kb-hop, .kb-look, .drum-track, .track, .track-rev, .kb-reveal,
  .rs-d2, .rs-d3,
  .ed-au-a, .ed-au-b, .ed-star, .ed-win, .ed-beacon, .ed-bus, .ed-shim, .ed-snow-a, .ed-snow-b,
  .ed-par-sky, .ed-par-city, .ed-chip, .ed-winter, .ed-summer, .ed-fly,
  .pk-float, .pk-screen-in, .pk-push, .pk-kb, .pk-sheet, .pk-glow, .pk-press, .pk-ping, .pk-me,
  .pk-note, .pk-dim, .pk-tap, .pk-cap.is-on, .pk-step[aria-selected="true"] .pk-fill,
  .pk-glow::before, .pk-glow::after, .pk-ping::after, .pk-me::after {
    animation: none;
  }
  .pk-glow::before, .pk-glow::after, .pk-ping::after, .pk-me::after { opacity: 0; }
  .ed-summer { opacity: 0; }
  .pk-tap, .pk-press, .pk-glow { opacity: 0; }
  .pk-phone, .rs-card, .rs-card::after { transition: none; }
  .rs-card:hover { translate: none; rotate: none; }
  /* The peek still changes screens, by a plain crossfade over the last one. */
  .pk-scene.is-on { animation: pk-fade .5s ease both; }
}
