/* Roommatez City site.
   Layout: one dark scroll story. Each feature pins a phone beside its copy
   while scrolling drives the phone's animation, then lets go.
   Deliberately a single dark theme: it matches the app. */
:root {
  --bg: #000000;
  --surface: #121214;
  --raised: #1d1d20;
  --line: #2a2a2e;
  --fg: #f4f2ee;
  --muted: #8e8e93;
  --accent: #ff4800;      /* the logo's orange */
  --accent-soft: #ff7a3d; /* the app's ember */
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; background: var(--fg); color: #000; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .98; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(36px, 5.2vw, 64px); }
p { margin: 0; text-wrap: pretty; }
em { font-style: normal; color: var(--fg); font-weight: 600; }
.eyebrow, .step-num, .sheet-label {
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* ── Nav ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand img { width: 132px; height: auto; transform: translateY(3px); }
.brand-city { font: 500 13px/1 var(--mono); color: var(--accent); letter-spacing: .08em; }
.nav-links { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 560px) { .nav-links a:not(:last-child) { display: none; } }

/* ── Hero ── */
.hero { padding-top: calc(64px + env(safe-area-inset-top, 0px)); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; min-height: min(860px, 100svh); padding-block: 48px 64px; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-title { font-size: clamp(52px, 8.6vw, 112px); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
.accent { color: var(--accent); }
.lede { max-width: 34em; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); animation: fade 1s .45s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; animation: fade 1s .6s var(--ease) both; }
.badge-soon { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 15px; }
.link-quiet { color: var(--muted); text-decoration: none; font-weight: 500; transition: color .2s; }
.link-quiet:hover { color: var(--fg); }
.hero-art { position: relative; min-width: 0; }
.hero-art::before { content: ""; position: absolute; inset: 12% 8%; background: radial-gradient(closest-side, rgba(255, 72, 0, .22), transparent); filter: blur(30px); }
.lottie { position: relative; aspect-ratio: 1703 / 1024; width: 118%; margin-left: -6%; max-width: none; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-block: 40px 24px; }
  .hero-art { order: -1; }
  .lottie { width: 100%; margin: 0; }
}

/* ── Scroll stories: tall track, pinned phone ── */
.story-track { position: relative; height: 260vh; }
.story-track.short { height: 200vh; }
.story-sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(24px, 6vw, 96px); }
.story-copy { display: grid; gap: 18px; max-width: 30em; min-width: 0; }
.story-copy p:not(.step-num) { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }
.step-num { color: var(--accent); }
@media (max-width: 860px) {
  .story-track { height: 230vh; }
  .story-track.short { height: 180vh; }
  .story-sticky { grid-template-columns: 1fr; align-content: center; justify-items: center; gap: 22px; padding-top: 72px; }
  .story-copy { text-align: center; justify-items: center; gap: 10px; }
  .story-copy h2 { font-size: clamp(30px, 8vw, 44px); }
  .story-copy p:not(.step-num) { font-size: 15px; max-width: 30em; }
}

.filters { display: flex; gap: 6px; padding: 4px; margin: 4px 0 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: max-content; font-size: 14px; }
.filters li { padding: 7px 12px; border-radius: 9px; color: var(--muted); }
.filters li.on { background: var(--raised); color: var(--fg); }

/* ── Phone ── */
.phone {
  --w: clamp(240px, 26vw, 300px);
  width: var(--w); aspect-ratio: 300 / 620; flex: none;
  border-radius: calc(var(--w) * .16); padding: calc(var(--w) * .035);
  background: linear-gradient(145deg, #2c2c30, #0d0d0f 40%, #1c1c1f);
  box-shadow: 0 0 0 1px #3a3a3f inset, 0 40px 80px -20px rgba(255, 72, 0, .18), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
@media (max-width: 860px) { .phone { --w: min(62vw, 250px, calc((100svh - 260px) * .484)); } }
.phone-screen { position: relative; height: 100%; border-radius: calc(var(--w) * .13); overflow: hidden; background: #000; display: flex; flex-direction: column; font-size: calc(var(--w) * .047); }
.app-top { padding: 14% 0 4%; text-align: center; font-family: var(--display); font-weight: 700; font-size: 1.5em; letter-spacing: -.02em; border-bottom: 1px solid #1a1a1c; background: #0c0c0e; }
.app-top .city span { color: var(--accent); font-size: .7em; }
.tabbar { display: flex; justify-content: space-around; padding: 4% 2% 9%; border-top: 1px solid #1a1a1c; background: #0c0c0e; font-size: .74em; color: var(--muted); }
.tabbar .t { position: relative; }
.tabbar .t.on { color: var(--accent-soft); }
.tabbar .dot { position: absolute; top: -9px; right: -12px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: #ff453a; color: #fff; font: 600 9px/15px var(--body); text-align: center; font-style: normal; transform: scale(0); transition: transform .35s var(--ease); }
.tabbar .t.saved.lit { color: var(--fg); }
.tabbar .t.saved.lit .dot { transform: scale(1); }

/* Profile card: duotone "photo" with grain, like the feed card */
.card {
  position: absolute; left: 6%; right: 6%; aspect-ratio: 3 / 4.15; border-radius: 1.3em; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 7%;
  background: var(--g); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset;
}
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.card::before { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); }
.c1 { --g: radial-gradient(120% 90% at 20% 15%, #ffb38a, transparent 55%), linear-gradient(160deg, #ff7a3d, #7a1d00); }
.c2 { --g: radial-gradient(110% 80% at 80% 10%, #9fd3ff, transparent 55%), linear-gradient(170deg, #3a6ea5, #0b1a33); }
.c3 { --g: radial-gradient(110% 80% at 30% 20%, #c9f7b0, transparent 55%), linear-gradient(165deg, #4d9a5b, #0f2a16); }
.c4 { --g: radial-gradient(110% 80% at 70% 20%, #f2c3ff, transparent 55%), linear-gradient(165deg, #8a4fb5, #22102f); }
.c5 { --g: radial-gradient(110% 80% at 25% 15%, #ffe39a, transparent 55%), linear-gradient(160deg, #c79a2e, #3a2a05); }
.c6 { --g: radial-gradient(110% 80% at 75% 15%, #ffb0b8, transparent 55%), linear-gradient(165deg, #c44a5a, #34101a); }
.chip { position: relative; z-index: 1; align-self: flex-end; padding: .35em .75em; border-radius: .7em; background: rgba(0, 0, 0, .45); font-weight: 600; font-size: .78em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.chip.room { background: var(--accent-soft); color: #000; }
.card-foot { position: relative; z-index: 1; display: grid; gap: .2em; }
.card-foot b { font-family: var(--display); font-size: 1.55em; letter-spacing: -.02em; line-height: 1; }
.card-foot span { font-size: .82em; color: rgba(255, 255, 255, .78); }

/* The wheel: cards on a cylinder, turned by scroll (site.js) */
.wheel { position: relative; flex: 1; perspective: 900px; overflow: hidden; }
.wheel .card { top: 50%; transform-origin: 50% 50%; margin-top: calc(var(--w) * -.555); backface-visibility: hidden; will-change: transform, opacity; }

/* Swipe-to-save */
.swipe-stage { position: relative; flex: 1; }
.swipe-stage .card { top: 50%; transform: translateY(-50%); }
.swipe-stage .under { transform: translateY(-50%) scale(.94); opacity: .6; }
.swiper { will-change: transform; transform-origin: 50% 120%; }

/* ── Profile sheet ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; padding-block: clamp(80px, 14vh, 160px); }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: grid; gap: 12px; }
.rows { margin: 0 0 10px; background: var(--raised); border-radius: 16px; overflow: hidden; }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.rows > div:first-child { border-top: 0; }
.rows dt { color: var(--fg); }
.rows dd { margin: 0; color: var(--muted); text-align: right; display: flex; gap: 8px; align-items: center; }
.num { font-variant-numeric: tabular-nums; }
.tag { font: 600 11px/1 var(--body); padding: 5px 8px; border-radius: 6px; background: rgba(255, 72, 0, .16); color: var(--accent-soft); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .story-copy { text-align: left; } }

/* ── Chat ── */
.chat { padding: 0; }
.chat-head { display: grid; gap: .3em; justify-items: center; padding: 14% 6% 4%; background: #0c0c0e; border-bottom: 1px solid #1a1a1c; font-size: 1.05em; }
.chat-head b { font-family: var(--display); font-size: 1.25em; }
.ig { position: relative; font-size: .72em; height: 1.4em; width: 100%; text-align: center; }
.ig > span { position: absolute; inset: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.ig .lock { color: var(--muted); }
.ig .handle { color: var(--accent-soft); font-weight: 600; opacity: 0; transform: translateY(6px); }
.ig.open .lock { opacity: 0; transform: translateY(-6px); }
.ig.open .handle { opacity: 1; transform: none; }
.bubbles { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .5em; padding: 5% 5% 12%; }
.b { position: relative; max-width: 78%; padding: .6em .85em; border-radius: 1.1em; font-size: .92em; line-height: 1.3; }
.b, .typing { opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.b.in, .typing.in { opacity: 1; transform: none; }
.b.me { align-self: flex-end; background: var(--accent-soft); color: #000; border-bottom-right-radius: .3em; transform-origin: right bottom; }
.b.them { align-self: flex-start; background: var(--raised); border-bottom-left-radius: .3em; transform-origin: left bottom; }
.react { position: absolute; left: -.6em; bottom: -.8em; font-size: .85em; padding: .05em .3em; border-radius: 1em; background: var(--raised); border: 2px solid #000; }
.typing { align-self: flex-start; display: flex; gap: .3em; padding: .75em .9em; background: var(--raised); border-radius: 1.1em; border-bottom-left-radius: .3em; }
.typing i { width: .42em; height: .42em; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-.3em); } }

/* ── Cities marquee ── */
.cities { padding-block: clamp(70px, 12vh, 140px) clamp(40px, 8vh, 90px); display: grid; gap: 26px; overflow: hidden; }
.marquee { -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-row { display: flex; gap: .6em; width: max-content; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 6vw, 76px); letter-spacing: -.03em; animation: marquee 60s linear infinite; }
.marquee-row span { white-space: nowrap; }
.marquee-row span:nth-child(odd) { color: var(--fg); }
.marquee-row span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px #4a4a50; }
.marquee-row span::after { content: "·"; margin-left: .6em; color: var(--accent); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Safety ── */
.safety { padding-block: clamp(60px, 10vh, 120px); display: grid; gap: 40px; }
.safety-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.safety-grid li { background: var(--bg); padding: 28px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.safety-grid b { font-family: var(--display); font-size: 21px; letter-spacing: -.02em; font-weight: 700; }
.safety-grid span { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .safety-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .safety-grid { grid-template-columns: 1fr; } }

/* ── Closing + footer ── */
.closing { display: grid; justify-items: center; text-align: center; gap: 24px; padding-block: clamp(80px, 14vh, 160px); }
.closing-mark { width: 64px; height: auto; }
.closing h2 { font-size: clamp(38px, 6vw, 80px); }
.closing p { color: var(--muted); max-width: 32em; }
.closing a { color: var(--fg); text-underline-offset: 3px; }
.foot { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot nav { display: flex; gap: 24px; }
.foot nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.foot nav a:hover { color: var(--fg); }
.fine { color: #5c5c62; font-size: 14px; width: 100%; }

/* Reveal on scroll where supported; always visible otherwise */
@supports (animation-timeline: view()) {
  .reveal { animation: fade linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
}

/* ── Legal pages ── */
.legal { padding: calc(110px + env(safe-area-inset-top, 0px)) 0 80px; }
.legal .wrap { max-width: 760px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(40px, 7vw, 72px); margin-bottom: 4px; }
.legal h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; margin-top: 26px; line-height: 1.15; scroll-margin-top: 90px; }
.legal p, .legal li { color: #c9c7c3; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal a { color: var(--accent-soft); text-underline-offset: 3px; }
.legal .meta { font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal .note { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); font-size: 15px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--fg); font-weight: 600; }
.legal td { color: #c9c7c3; }
.table-scroll { overflow-x: auto; }

/* ── Reduced motion: everything still, nothing hidden ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-row { animation: none; flex-wrap: wrap; width: auto; padding-inline: var(--gutter); }
  .marquee { -webkit-mask: none; mask: none; }
  .b, .typing { opacity: 1; transform: none; }
  .story-track, .story-track.short { height: auto; }
  .story-sticky { position: static; height: auto; padding-block: 60px; }
}

/* ── Waitlist ── */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border: 0; border-radius: 999px; background: var(--accent); color: #000; font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); white-space: nowrap; }
.btn-primary:hover { background: var(--accent-soft); }
.btn-primary:active { transform: scale(.97); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.waitlist { width: 100%; max-width: 560px; display: grid; gap: 18px; text-align: left; scroll-margin-top: 100px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.optional { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.waitlist input, .waitlist textarea { width: 100%; min-width: 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--fg); font: 400 16px/1.4 var(--body); transition: border-color .2s; }
.waitlist button { justify-self: start; }
@media (max-width: 560px) { .waitlist button { justify-self: stretch; } }
.waitlist textarea { resize: vertical; min-height: 110px; }
.waitlist input::placeholder, .waitlist textarea::placeholder { color: #5c5c62; }
.waitlist input:focus-visible, .waitlist textarea:focus-visible { outline: none; border-color: var(--accent-soft); }
.waitlist input[aria-invalid="true"] { border-color: #ff453a; }
.hint { color: #5c5c62; font-size: 13px; }
.status { min-height: 1.5em; font-size: 15px; color: var(--muted); }
.status.ok { color: var(--accent-soft); }
.status.err { color: #ff6961; }
.fine-print { font-size: 14px; color: #5c5c62; max-width: 40em; }
.fine-print a { color: var(--muted); }
.field .check { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; font-weight: 400; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }

/* reCAPTCHA v3 badge: hidden; the required notice sits under the form instead. */
.grecaptcha-badge { visibility: hidden; }

/* ── Waitlist page ── */
.waitlist-page { padding-top: calc(64px + env(safe-area-inset-top, 0px)); min-height: 100svh; }
.waitlist-page h1 { font-size: clamp(44px, 7vw, 88px); }

/* ── Early access ── */
.early { padding-block: clamp(24px, 6vh, 64px); }
.early-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, rgba(255, 72, 0, .14), rgba(255, 72, 0, 0) 55%), var(--surface); }
.early-copy { display: grid; gap: 12px; min-width: 0; }
.early-copy h2 { font-size: clamp(32px, 4.4vw, 52px); }
.early-copy p:not(.eyebrow) { color: var(--muted); }
.early .eyebrow { color: var(--accent-soft); display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 72, 0, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 72, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 72, 0, 0); } }
.early-form { display: grid; gap: 10px; min-width: 0; }
.early-row { display: flex; gap: 8px; }
.early-form input { flex: 1; min-width: 0; padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg); font: 400 16px/1.4 var(--body); }
.early-form input::placeholder { color: #5c5c62; }
.early-form input:focus-visible { outline: none; border-color: var(--accent-soft); }
.early-form input[aria-invalid="true"] { border-color: #ff453a; }
.dl-actions { margin-top: 8px; }
.dl-qr { justify-self: center; display: grid; justify-items: center; gap: 12px; margin: 0; }
.dl-qr-code { padding: 14px; border-radius: 20px; background: #fff; line-height: 0; }
.dl-qr-code svg { width: 168px; height: 168px; display: block; }
.dl-qr figcaption { color: var(--muted); font-size: 14px; }
.android-h { margin-top: 40px; font-size: clamp(24px, 3vw, 32px); }
@media (max-width: 860px) { .early-card { grid-template-columns: 1fr; } .dl-qr { display: none; } }
@media (max-width: 560px) { .early-row { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ── Motion layer (motion.js, GSAP) ── */
/* Hero: a soft orange light that follows the pointer, over film grain. */
.hero { position: relative; isolation: isolate; }
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--gx, 70%) var(--gy, 40%), rgba(255, 72, 0, .16), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* Split headline characters (motion.js wraps them). */
.char { display: inline-block; will-change: transform; transform-origin: 50% 100%; }
.word { display: inline-block; white-space: nowrap; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split-words .w > span { display: inline-block; }
/* Once GSAP runs, it owns the entrance; the CSS one would double up. */
.gsap .hero-title .line > span { animation: none; }

/* Magnetic buttons */
.btn-primary { will-change: transform; }

/* Scale bars on the example profile sheet */
.scale { display: inline-flex; gap: 2px; margin-right: 6px; vertical-align: middle; }
.scale i { width: 9px; height: 5px; border-radius: 3px; background: var(--raised); }
.scale i.on { background: var(--accent); }

/* ── People: horizontal holo cards ── */
.people { position: relative; }
.people-pin { padding-block: clamp(60px, 10vh, 110px) clamp(40px, 8vh, 80px); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vh, 40px); }
.people-row { justify-self: start; }
.people-head { display: grid; gap: 12px; }
.people-head h2 { max-width: 14em; }
.people-row { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: 22px; width: max-content; will-change: transform; }
.holo { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; width: clamp(200px, min(26vw, calc((100svh - 250px) * .73)), 300px); aspect-ratio: 3 / 4.1; perspective: 900px; flex: none; }
.holo-inner { position: relative; height: 100%; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 20px;
  background: var(--g); transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 30px 60px -30px rgba(0, 0, 0, .9); }
.holo.c1 { --g: radial-gradient(120% 90% at 20% 15%, #ffb38a, transparent 55%), linear-gradient(160deg, #ff7a3d, #6d1a00); }
.holo.c2 { --g: radial-gradient(110% 80% at 80% 10%, #9fd3ff, transparent 55%), linear-gradient(170deg, #3a6ea5, #0b1a33); }
.holo.c3 { --g: radial-gradient(110% 80% at 30% 20%, #c9f7b0, transparent 55%), linear-gradient(165deg, #4d9a5b, #0f2a16); }
.holo.c4 { --g: radial-gradient(110% 80% at 70% 20%, #f2c3ff, transparent 55%), linear-gradient(165deg, #8a4fb5, #22102f); }
.holo.c5 { --g: radial-gradient(110% 80% at 25% 15%, #ffe39a, transparent 55%), linear-gradient(160deg, #c79a2e, #3a2a05); }
.holo.c6 { --g: radial-gradient(110% 80% at 75% 15%, #ffb0b8, transparent 55%), linear-gradient(165deg, #c44a5a, #34101a); }
.holo-inner::before { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); pointer-events: none; }
.holo .chip { position: relative; z-index: 1; align-self: flex-end; padding: 6px 11px; border-radius: 10px; background: rgba(0, 0, 0, .45); font-weight: 600; font-size: 13px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.holo .chip.room { background: var(--accent); color: #000; }
.holo-foot { position: relative; z-index: 1; display: grid; gap: 5px; transform: translateZ(40px); }
.holo-foot b { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.holo-foot > span { font-size: 14px; color: rgba(255, 255, 255, .8); }
.holo-foot p { margin: 4px 0 6px; font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .86); }
.holo-habits { display: inline-flex; gap: 12px; width: max-content; padding: 7px 11px; border-radius: 12px; background: rgba(28, 28, 30, .7); border: 1px solid rgba(255, 255, 255, .12); }
.holo-habits img { width: 18px; height: 18px; }
/* Foil glare that follows the pointer, like a holographic trading card. */
.glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); mix-blend-mode: soft-light;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .55), transparent 45%),
    linear-gradient(115deg, transparent 20%, rgba(255, 120, 60, .35) 38%, rgba(120, 200, 255, .35) 52%, rgba(200, 120, 255, .3) 64%, transparent 80%);
  background-size: 100% 100%, 220% 220%; background-position: center, var(--mx) var(--my); }
.holo:hover .glare, .holo.touch .glare { opacity: 1; }
.holo:hover .holo-inner { box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 40px 80px -30px rgba(255, 72, 0, .35); }

/* ── Spotlight cards (safety): a light that tracks the pointer ── */
.spotlight-grid li { position: relative; overflow: hidden; }
.spotlight-grid li::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 72, 0, .14), transparent 60%); }
.spotlight-grid:hover li::before { opacity: 1; }
.spotlight-grid li > * { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .holo-inner { transform: none !important; transition: none; }
  .glare, .hero-glow { display: none; }
  .people-row { width: auto; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 860px) { .holo { width: min(74vw, 280px, calc((100svh - 260px) * .73)); } }

/* ── 3D hero (hero3d.js): a tall track with a pinned full-screen stage ── */
.h3d-track { position: relative; height: 230vh; }
.hero.h3d { position: sticky; top: 0; height: 100svh; padding: 0; overflow: hidden; display: block; }
.h3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.h3d-room { position: absolute; left: 50%; top: 31%; width: min(36vw, 380px); aspect-ratio: 1703 / 1024; margin: 0; transform: translate(-50%, -50%);
  pointer-events: none; filter: drop-shadow(0 30px 60px rgba(255, 72, 0, .25)); }
.h3d-copy { position: absolute; left: 0; right: 0; bottom: calc(6vh + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; justify-items: center; text-align: center; padding: 0 var(--gutter); }
.h3d-copy .hero-title { font-size: clamp(38px, 5.6vw, 80px); }
/* A soft dark fade behind the copy so the cards never fight the text. */
.hero.h3d::before { content: ""; position: absolute; inset: auto 0 0; height: 58%; z-index: 1; pointer-events: none; background: linear-gradient(transparent, rgba(0, 0, 0, .82) 45%, #000); }
.h3d-copy { z-index: 2; }
.h3d-copy .hero-title .line { overflow: visible; }
.h3d-copy .lede { max-width: 34em; }
.h3d-copy .hero-actions { justify-content: center; }
@media (max-width: 700px) {
  .h3d-room { width: 76vw; top: 30%; }
  .h3d-copy { bottom: calc(4vh + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  .h3d-copy .lede { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .h3d-track { height: auto; } .hero.h3d { position: relative; } }

/* ── How it works, the film (film.js) ── */
.film { position: relative; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.film-glow { position: absolute; width: 70vmin; height: 70vmin; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 72, 0, .28), transparent); filter: blur(20px); }
.film-caps { position: absolute; left: max(var(--gutter), 6vw); top: 50%; transform: translateY(-50%); width: min(32vw, 400px); display: grid; }
.film .cap { grid-area: 1 / 1; display: grid; gap: 12px; opacity: 0; }
.film .cap .num { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--accent); }
.film .cap h2 { font-size: clamp(32px, 3.8vw, 54px); }
.film .cap p { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); }
.film-bars { position: absolute; right: max(var(--gutter), 6vw); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.film-bars i { width: 4px; height: 28px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.film-bars b { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.film-phone { --w: min(300px, 70vw, calc((100svh - 120px) * .484)); width: var(--w); aspect-ratio: 300 / 620; border-radius: calc(var(--w) * .16); padding: calc(var(--w) * .035);
  background: linear-gradient(145deg, #2c2c30, #0d0d0f 40%, #1c1c1f); box-shadow: 0 0 0 1px #3a3a3f inset, 0 60px 120px -40px rgba(255, 72, 0, .35); position: relative; will-change: transform; }
.film-screen { position: relative; height: 100%; border-radius: calc(var(--w) * .13); overflow: hidden; background: #000; font-size: calc(var(--w) * .047); }
.film-view { position: absolute; inset: 0; display: flex; flex-direction: column; background: #000; }
.film-top { padding: 14% 0 4%; text-align: center; font: 700 1.5em/1 var(--display); background: #0c0c0e; border-bottom: 1px solid #1a1a1c; }
.film-top small { color: var(--accent); font-size: .6em; }
.film-wheel { flex: 1; position: relative; perspective: 800px; }
.film-card { position: absolute; left: 7%; right: 7%; top: 50%; aspect-ratio: 3 / 4.15; margin-top: calc(var(--w) * -.555); border-radius: 1.3em; overflow: hidden; padding: 7%;
  display: flex; flex-direction: column; justify-content: space-between; background: var(--g); backface-visibility: hidden; transform-origin: 50% 50% calc(var(--w) * -.9); }
.film-card::before { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.film-card .chip { position: relative; align-self: flex-end; }
.film-foot { position: relative; display: grid; gap: .2em; }
.film-foot b { font: 700 1.55em/1 var(--display); }
.film-foot span { font-size: .85em; opacity: .8; }
.film-tabs { display: flex; justify-content: space-around; padding: 4% 2% 9%; border-top: 1px solid #1a1a1c; background: #0c0c0e; font-size: .74em; color: var(--muted); position: relative; z-index: 20; }
.film-tabs .on { color: var(--accent); }
.film-tabs .saved { position: relative; }
.film-badge { position: absolute; top: -.9em; right: -1.2em; min-width: 1.35em; height: 1.35em; border-radius: .7em; background: #ff453a; color: #fff; font: 600 .8em/1.35em var(--body); text-align: center; transform: scale(0); font-style: normal; }
.film-chat-head { display: grid; gap: .3em; justify-items: center; padding: 14% 6% 4%; background: #0c0c0e; border-bottom: 1px solid #1a1a1c; }
.film-chat-head b { font: 700 1.25em/1 var(--display); }
.film-ig { font-size: .72em; color: var(--muted); position: relative; height: 1.3em; width: 100%; text-align: center; }
.film-ig span { position: absolute; inset: 0; }
.film-ig .handle { color: var(--accent-soft); font-weight: 600; opacity: 0; }
.film-bubbles { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .5em; padding: 5% 5% 12%; }
.fb { margin: 0; max-width: 78%; padding: .6em .85em; border-radius: 1.1em; font-size: .92em; line-height: 1.3; opacity: 0; }
.fb.me { align-self: flex-end; background: var(--accent-soft); color: #000; border-bottom-right-radius: .3em; }
.fb.them { align-self: flex-start; background: var(--raised); border-bottom-left-radius: .3em; }
@media (max-width: 860px) {
  .film { align-content: end; padding-bottom: 3vh; }
  .film-caps { left: var(--gutter); right: var(--gutter); top: calc(76px + env(safe-area-inset-top, 0px)); transform: none; width: auto; text-align: center; }
  .film .cap { justify-items: center; gap: 8px; }
  .film .cap h2 { font-size: clamp(28px, 8vw, 40px); }
  .film .cap p { display: none; }
  .film-bars { display: none; }
  .film-phone { --w: min(250px, 62vw, calc((100svh - 250px) * .484)); }
}
/* Reduce Motion: not pinned, every caption showing, the chat on screen. */
.film.still { height: auto; padding-block: 80px; grid-template-columns: 1fr auto; gap: 40px; place-items: center; max-width: 1180px; margin: 0 auto; }
.film.still .film-caps { position: static; transform: none; width: auto; gap: 28px; }
.film.still .cap { grid-area: auto; opacity: 1; }
.film.still .film-bars { display: none; }
