/* Runtrovert site. The app's palette and type (src/theme.ts), on its own footage. */

@font-face { font-family: 'Fraunces'; font-weight: 300; font-style: normal; font-display: swap; src: url(fonts/Fraunces_300Light.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/Fraunces_400Regular_Italic.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/Fraunces_600SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url(fonts/DMSans_400Regular.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url(fonts/DMSans_500Medium.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url(fonts/DMSans_600SemiBold.woff2) format('woff2'); }

:root {
  --night: #141218;
  --ink: #2b2733;
  --line: rgba(246, 241, 234, 0.16);
  --cream: #f6f1ea;
  --cream-soft: rgba(246, 241, 234, 0.78);
  --cream-muted: #b7afc9;
  --mint: #c9e7d6;
  --lilac: #d9d0f0;
  --peach: #f7c9b6;
  --butter: #f5e3a8;
  --sky: #c5dcf0;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 0.98; letter-spacing: -0.02em; }
em { font-family: var(--serif); font-weight: 400; font-style: italic; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); color: var(--ink); padding: 8px 14px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--butter); outline-offset: 3px; border-radius: 6px; }

/* Film grain over everything: the footage is soft, this makes it feel shot, not stocked. */
.grain { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.09; 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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Top bar */
.top { position: fixed; inset: 0 0 auto; z-index: 30; padding: 0 var(--gutter); }
.top .bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px var(--serif); }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.soon { font-size: 13px; font-weight: 500; text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(20,18,24,0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.soon i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-right: 8px; vertical-align: 1px; font-style: normal; }

/* Chapter counter, bottom left on wide screens */
.rail { position: fixed; left: 50%; top: 26px; transform: translateX(-50%); z-index: 31; font: 500 12px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-soft); display: flex; gap: 14px; align-items: center; }
.rail .bar { width: 64px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.rail .bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--cream); transition: width 0.5s ease; }
@media (max-width: 900px) { .rail { display: none; } }

/* Chapters: each one a full screen of its own footage */
.ch { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px var(--gutter) clamp(72px, 12vh, 120px); isolation: isolate; overflow: hidden; }
.ch > video, .ch > .poster, .ch > .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ch > video { opacity: 0; transition: opacity 0.8s ease; }
.ch > video.on { opacity: 1; }
@media (max-aspect-ratio: 1/1) { .ch .shift { object-position: 30% center; } }
.ch::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,18,24,0.55) 0%, rgba(20,18,24,0.05) 30%, rgba(20,18,24,0.15) 55%, rgba(20,18,24,0.88) 100%); }
.ch.left::before { background: linear-gradient(90deg, rgba(20,18,24,0.85) 0%, rgba(20,18,24,0.35) 55%, rgba(20,18,24,0.1) 100%), linear-gradient(180deg, rgba(20,18,24,0.4), transparent 30%); }
.ch .in { width: 100%; max-width: 1240px; margin: 0 auto; }
.num { display: block; font: 500 12px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-soft); margin-bottom: 22px; }
.num b { color: var(--butter); font-weight: 600; margin-right: 10px; }
.ch h2 { font-size: clamp(46px, min(8.2vw, 12.5vh), 136px); max-width: 12ch; }
.ch p.say { font-size: clamp(18px, 1.7vw, 22px); max-width: 36ch; margin-top: 26px; color: var(--cream-soft); }
.ch p.say strong { color: var(--cream); font-weight: 500; }

/* Hero */
.hero h1 { font-size: clamp(54px, min(11vw, 14.5vh), 196px); }
.hero::before { background: linear-gradient(90deg, rgba(20,18,24,0.8) 0%, rgba(20,18,24,0.35) 50%, rgba(20,18,24,0.05) 100%), linear-gradient(180deg, rgba(20,18,24,0.45) 0%, transparent 25%, transparent 60%, rgba(20,18,24,0.75) 100%); }
.hero .what { font-size: clamp(18px, 1.7vw, 23px); max-width: 32ch; margin-top: 24px; }
.hero .what strong { font-weight: 500; }
.ticker { margin-top: 18px; min-height: 1.6em; font: 400 italic clamp(16px, 1.4vw, 19px) var(--serif); color: var(--cream-soft); transition: opacity 0.6s ease; }
.ticker::before { content: '“'; } .ticker::after { content: '”'; }
.hero .foot { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-end; justify-content: space-between; margin-top: 32px; }
.hero { padding-top: 96px; padding-bottom: 48px; }
.nos { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--cream-soft); list-style: none; padding: 0; }
.nos li::before { content: '×'; margin-right: 7px; color: var(--peach); }

/* Store badges: placeholders shaped like the real ones, swapped for the official artwork at launch */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px 0 16px; border-radius: 12px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.35); text-decoration: none; line-height: 1.1; min-width: 190px; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }
.store strong { display: block; font: 600 19px var(--sans); letter-spacing: -0.01em; }
.store .tagsoon { margin-left: auto; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: var(--butter); color: #6b5a1f; }
.store.later { background: rgba(0,0,0,0.55); }
.store.later .tagsoon { background: rgba(255,255,255,0.16); color: #fff; }
.store[aria-disabled='true'] { cursor: default; }

/* Lists that sit straight on the footage */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 48px; max-width: 1080px; list-style: none; padding: 0; }
.three li { border-top: 1px solid var(--line); padding-top: 16px; }
.three b { display: block; font: 600 clamp(20px, 2vw, 26px) var(--serif); margin-bottom: 6px; }
.three span { color: var(--cream-soft); font-size: 15.5px; }
.three .k { display: block; font: 500 11px var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--butter); margin-bottom: 10px; }
@media (max-width: 760px) { .three { grid-template-columns: 1fr; gap: 18px; } }

/* A saved place, as a small card on the footage */
.place { margin-top: 40px; display: inline-block; background: rgba(246,241,234,0.94); color: var(--ink); border-radius: 22px; padding: 18px 20px; width: min(340px, 100%); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
.place .t { font: 600 22px var(--serif); }
.place .m { font-size: 13px; color: #6b5f86; margin-top: 2px; }
.place .row { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.place .row span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--lilac); color: #4a3f6b; }
.place .row span.mint { background: var(--mint); color: #2f5c47; }
.place .go { margin-top: 14px; text-align: center; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 11px; font: 600 14px var(--sans); }
.lock { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--lilac); color: #4a3f6b; margin-left: 6px; vertical-align: 2px; }

/* A reminder, as the phone shows it */
.note { margin-top: 40px; width: min(400px, 100%); display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 22px; background: rgba(246,241,234,0.94); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
.note img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.note .h { font-size: 12.5px; color: #6b5f86; }
.note .l { font-size: 16px; font-weight: 500; margin-top: 2px; transition: opacity 0.6s ease; min-height: 2.6em; }
.note .b { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; font-weight: 600; color: #4a3f6b; }

/* Price */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; max-width: 980px; }
.tier { border-radius: 24px; padding: 28px; border: 1px solid var(--line); background: rgba(20,18,24,0.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tier.once { background: rgba(246,241,234,0.94); color: var(--ink); border-color: transparent; }
.tier .label { font: 500 12px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }
.tier .amount { font: 600 64px/1 var(--serif); margin: 14px 0 6px; }
.tier .small { font-size: 14px; opacity: 0.8; }
.tier ul { list-style: none; padding: 0; margin-top: 20px; font-size: 15px; }
.tier li { padding: 8px 0; border-top: 1px solid rgba(127,127,127,0.28); }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } }

/* Closing */
.end { align-items: center; text-align: center; }
.end .in { display: flex; flex-direction: column; align-items: center; }
.end h2 { max-width: 12ch; }
.end .stores { justify-content: center; margin-top: 40px; }
.end .say { margin-left: auto; margin-right: auto; }

footer { padding: 36px var(--gutter) 48px; font-size: 14px; color: var(--cream-muted); border-top: 1px solid var(--line); }
footer .bar { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.say a { padding: 12px 0; }

/* Policy page */
.doc { max-width: 720px; margin: 0 auto; padding: 130px var(--gutter) 80px; }
.doc h1 { font-size: clamp(44px, 7vw, 72px); }
.doc .updated { margin: 14px 0 40px; color: var(--cream-muted); }
.doc h2 { font-size: 28px; margin: 48px 0 14px; line-height: 1.1; }
.doc p, .doc li { color: #e6e0ea; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 8px 0; }
.doc .short { background: #1f1c25; border: 1px solid var(--line); border-radius: 20px; padding: 24px 28px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 10px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 10px 12px 0; border-top: 1px solid var(--line); }
.doc th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.todo { background: var(--butter); color: #6b5a1f; padding: 0 6px; border-radius: 4px; }
.solid { background: var(--night); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ticker, .note .l { transition: none; } }
