/* Rollr site. Same palette and type as the app: true black, white, Ferrari red, DM Sans. */
:root {
  --black: #000;
  --vault: #121214;
  --raised: #1c1c1f;
  --ink: #f5f5f7;
  --soft: #b4b4ba;
  --muted: #86868c;
  --line: rgba(255, 255, 255, 0.12);
  --rosso: #d40000;
  --rosso-hi: #ff3b2b;
  --rosso-lo: #8e0000;
  --r: 18px;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1280px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- top bar ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: calc(22px + env(safe-area-inset-top)) var(--pad) 0; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
.brand img { height: 36px; width: auto; }
.top-join { font-size: 15px; font-weight: 500; text-decoration: none; padding: 10px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); transition: background 0.2s, color 0.2s; }
.top-join:hover { background: var(--ink); color: var(--black); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 120px var(--pad) 72px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
h1 { font-size: clamp(52px, 7.4vw, 116px); font-weight: 800; line-height: 0.93; letter-spacing: -0.055em; max-width: 9.5em; text-wrap: balance; }
.hero-lede { margin-top: 32px; max-width: 34em; font-size: clamp(17px, 1.45vw, 20px); color: var(--soft); }

/* keyhole film */
.keyhole { position: relative; justify-self: center; width: min(100%, 380px, 38svh); }
.keyhole::before { content: ''; position: absolute; inset: -18% -30% 6%; background: radial-gradient(closest-side, rgba(212, 0, 0, 0.34), transparent 72%); filter: blur(30px); z-index: -1; animation: spill 2.4s 0.2s ease-out both; }
.keyhole-window { position: relative; aspect-ratio: 72 / 136; clip-path: url(#keyhole); -webkit-clip-path: url(#keyhole); background: var(--vault); animation: open 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.1s ease; }
.frame.is-on { opacity: 1; animation: drift 7s linear both; }
@keyframes open { from { transform: scale(0.82); opacity: 0; filter: brightness(2.4) blur(8px); } }
@keyframes spill { from { opacity: 0; } }
@keyframes drift { from { transform: scale(1.12) translateY(0); } to { transform: scale(1.22) translateY(-2%); } }

.scrub { display: flex; align-items: center; gap: 14px; margin: 8px auto 0; width: 78%; font-size: 13px; color: var(--muted); }
.tc { font-variant-numeric: tabular-nums; min-width: 3.2em; }
.tc-end { text-align: right; }
.track { position: relative; flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.head { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--rosso-hi); border-radius: 3px; }

/* ---------- forms ---------- */
.join { margin-top: 40px; max-width: 520px; }
.join-row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--vault); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s; }
.join-row:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.join input[type=email] { flex: 1; min-width: 0; height: 50px; padding: 0 0 0 18px; font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; outline: none; }
.join input::placeholder { color: #5f5f65; }
.join button { flex: none; height: 50px; padding: 0 24px; font: inherit; font-size: 16px; font-weight: 700; color: #fff; border: 0; border-radius: 999px; cursor: pointer; background: linear-gradient(180deg, #ff2b1c, var(--rosso)); box-shadow: 0 8px 24px rgba(212, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25); transition: transform 0.15s, filter 0.15s; }
.join button:hover { filter: brightness(1.08); }
.join button:active { transform: scale(0.97); }
.join button:disabled { opacity: 0.65; cursor: default; }
.form-note { margin-top: 14px; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.form-note a { color: inherit; text-underline-offset: 3px; }
.form-note.ok { padding-left: 0; font-size: 17px; font-weight: 500; color: var(--ink); }
.form-note.err { color: var(--rosso-hi); }
.join.done .join-row { display: none; }
@media (max-width: 480px) {
  .join-row { flex-direction: column; border-radius: 22px; }
  .join input[type=email] { height: 52px; padding: 0 14px; }
  .join button { height: 52px; border-radius: 18px; }
  .form-note { padding-left: 4px; }
}

/* ---------- the night ---------- */
.night { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(80px, 11vw, 160px) var(--pad); }
.night h2, .split h2, .last h2 { font-size: clamp(38px, 4.8vw, 68px); font-weight: 800; line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.timeline { list-style: none; margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.timeline li { position: relative; }
.shot { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--vault); box-shadow: inset 0 0 0 1px var(--line); }
.shot > img:not([width]) { width: 100%; height: 100%; object-fit: cover; }
.shot-open { display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 45%, rgba(212, 0, 0, 0.28), transparent 70%), var(--vault); }
.shot-open img { width: 44px; height: auto; opacity: 0.95; }
.shot-locked img { filter: blur(22px) saturate(1.3); transform: scale(1.25); }
.locked-count { position: absolute; left: 14px; bottom: 14px; padding: 7px 13px 7px 30px; font-size: 13.5px; font-weight: 700; border-radius: 999px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.locked-count::before { content: ''; position: absolute; left: 12px; top: 50%; width: 9px; height: 7px; margin-top: -1px; border-radius: 2px; background: currentColor; }
.locked-count::after { content: ''; position: absolute; left: 13.5px; top: 50%; width: 6px; height: 6px; margin-top: -6.5px; border: 1.6px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; box-sizing: border-box; }
.play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.play::after { content: ''; position: absolute; left: 27px; top: 22px; border-left: 19px solid var(--rosso); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.timeline time { display: block; margin-top: 28px; font-size: clamp(40px, 4.2vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.timeline li:last-child time { color: var(--rosso-hi); }
.timeline h3 { margin-top: 14px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.timeline p { margin-top: 8px; max-width: 30em; color: var(--soft); }

/* ---------- the rule ---------- */
.rule { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--pad) clamp(80px, 11vw, 160px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.rule-big { font-size: clamp(56px, 9vw, 150px); font-weight: 800; line-height: 0.9; letter-spacing: -0.06em; text-wrap: balance; }
.rule-list { list-style: none; }
.rule-list li { padding: 20px 0; color: var(--soft); border-top: 1px solid var(--line); }
.rule-list li:last-child { border-bottom: 1px solid var(--line); }
.rule-list b { color: var(--ink); font-weight: 700; }

/* ---------- split the cost ---------- */
.split { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad) clamp(80px, 11vw, 160px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-copy p { margin-top: 22px; max-width: 30em; color: var(--soft); font-size: 18px; }
.calc { padding: clamp(28px, 4vw, 48px); border-radius: 32px; background: var(--vault); box-shadow: inset 0 0 0 1px var(--line); }
.calc-q { font-size: 15px; color: var(--muted); }
.calc-people { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.calc-people button { width: 54px; height: 54px; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); background: var(--raised); border: 0; border-radius: 50%; cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.15s; font-variant-numeric: tabular-nums; }
.calc-people button:hover { background: #2a2a2e; }
.calc-people button[aria-checked=true] { background: var(--ink); color: var(--black); }
.calc-people button:active { transform: scale(0.94); }
.calc-out { margin-top: 36px; font-size: 22px; font-weight: 500; color: var(--soft); }
.calc-out span { display: inline-block; margin-right: 8px; font-size: clamp(64px, 7vw, 104px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* ---------- last call ---------- */
.last { position: relative; overflow: hidden; background: radial-gradient(90% 120% at 15% 0%, #ff2b1c 0%, var(--rosso) 45%, var(--rosso-lo) 100%); }
.last-mark { position: absolute; right: clamp(-60px, 4vw, 120px); top: 50%; height: 135%; width: auto; transform: translateY(-50%); opacity: 0.12; pointer-events: none; }
.last-inner { position: relative; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(88px, 12vw, 170px) var(--pad); }
.last h2 { font-size: clamp(48px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.055em; max-width: 8em; color: #fff; }
.last-inner > p { margin-top: 24px; max-width: 30em; font-size: 18px; color: rgba(255, 255, 255, 0.86); }
.join-light .join-row { background: #fff; box-shadow: 0 20px 50px rgba(80, 0, 0, 0.35); }
.join-light input[type=email] { color: #111; }
.join-light input::placeholder { color: #9a9a9f; }
.join-light button { background: #000; box-shadow: none; }
.join-light .form-note, .join-light .form-note.err { color: rgba(255, 255, 255, 0.85); }
.join-light .form-note.ok { color: #fff; }

/* ---------- footer ---------- */
.foot { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 40px var(--pad) calc(40px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.foot img { height: 30px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.foot-links a { text-decoration: none; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-small { margin-left: auto; font-size: 13.5px; color: #5f5f65; }

/* ---------- privacy page ---------- */
.doc { max-width: calc(760px + 2 * var(--pad)); padding: 150px var(--pad) clamp(64px, 9vw, 120px); }
.doc-wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
.doc h1 { font-size: clamp(48px, 7vw, 88px); }
.doc .updated { margin-top: 16px; color: var(--muted); font-size: 15px; }
.doc h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 44px 0 10px; }
.doc p { color: var(--soft); }
.doc p + p { margin-top: 12px; }
.doc a { text-underline-offset: 3px; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 104px; min-height: 0; }
  .keyhole { order: -1; width: min(44vw, 190px, 30svh); }
  .hero { gap: 36px; }
  .scrub { width: 100%; }
  .timeline { grid-template-columns: 1fr; gap: 64px; }
  .shot { aspect-ratio: 16 / 11; }
  .rule, .split { grid-template-columns: 1fr; }
  .foot-small { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 480px) {
  .top-join { padding: 8px 14px; font-size: 14px; }
  .brand img { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
