/* Redlight Run site (redlightrun.mndst.co). The game's night palette and type (apps/game/src/ui/styles.css).
   One dark look on purpose, like the game. Fonts are served from this site (no Google Fonts request). */
@font-face { font-family: 'Barlow Condensed'; src: url(/fonts/barlow-condensed-latin-900-italic.woff2) format('woff2'); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(/fonts/barlow-condensed-latin-800-italic.woff2) format('woff2'); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url(/fonts/barlow-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url(/fonts/barlow-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink-950: #070a1f; --ink-900: #0e1230; --ink-800: #1a2154; --ink-300: #9aa2d6; --ink-200: #c3c8ec;
  --red: #ff3b3b; --amber: #ffc23d; --green: #1fcb6c; --line: rgba(255, 255, 255, .09);
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --ui: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink-950); color: #fff; font: 400 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--amber); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 6px; }

/* the signal: red lit, amber and green dark (the game's kicker) */
.lights { display: inline-flex; gap: 6px; flex: none; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #3a2a10; }
.lights i:first-child { background: var(--red); box-shadow: 0 0 10px var(--red); }
.lights i:last-child { background: #103a22; }

.bar { max-width: 1160px; margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { font: 900 italic 24px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.bar .badge img { height: 40px; width: auto; }

/* ---------- download page ---------- */
.hero { position: relative; max-width: 1160px; margin: 0 auto; padding: 24px var(--gutter) 56px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
/* glows fade out inside their own box (closest-side), so the box never shows an edge */
.hero::before { content: ''; position: absolute; z-index: -1; inset: -120px 0 auto auto; width: min(820px, 100%); aspect-ratio: 1; background: radial-gradient(closest-side at 50% 45%, rgba(255, 59, 59, .3), rgba(255, 59, 59, 0)), radial-gradient(closest-side at 72% 66%, rgba(47, 107, 255, .26), rgba(47, 107, 255, 0)); pointer-events: none; }
.kicker { display: flex; align-items: center; gap: 14px; margin: 0; font: 700 18px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.hero h1 { margin: 18px 0 20px; font: 900 italic clamp(64px, 11vw, 132px)/.88 var(--display); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.hero h1 span { display: block; color: var(--red); -webkit-text-stroke: 3px #fff; paint-order: stroke fill; }
.lead { margin: 0; max-width: 34ch; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-200); }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.get .badge img { height: 60px; width: auto; }
.facts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-300); }
.facts li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--green); vertical-align: 2px; }

/* a real capture in a phone shell */
.phone { margin: 0; padding: 9px; border-radius: 44px; background: #000; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 30px 80px rgba(0, 0, 0, .55); }
.phone img { width: 100%; height: auto; aspect-ratio: 660 / 1434; object-fit: cover; border-radius: 36px; }
.hero .phone { justify-self: center; width: min(360px, 100%); transform: rotate(3deg); box-shadow: 0 0 0 2px rgba(255, 255, 255, .14), 0 40px 120px rgba(0, 0, 0, .6), 0 0 120px rgba(255, 59, 59, .22); }

.reel { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-900); padding: 48px 0 40px; }
.reel h2, .closer h2 { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); font: 900 italic clamp(34px, 5vw, 52px)/1 var(--display); text-transform: uppercase; }
.reel .sub { max-width: 1160px; margin: 10px auto 0; padding: 0 var(--gutter); color: var(--ink-300); font-size: 15px; }
.shots { list-style: none; margin: 28px 0 0; padding: 4px max(var(--gutter), calc((100vw - 1160px) / 2 + var(--gutter))) 20px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - 1160px) / 2 + var(--gutter))); scrollbar-width: thin; scrollbar-color: var(--ink-800) transparent; }
.shots li { flex: none; width: clamp(200px, 58vw, 250px); scroll-snap-align: start; }
.shots .phone { padding: 6px; border-radius: 34px; }
.shots .phone img { border-radius: 28px; }
.shots p { margin: 14px 4px 0; font-size: 15px; line-height: 1.4; color: var(--ink-200); }
.shots p b { display: block; font: 800 italic 21px/1.05 var(--display); text-transform: uppercase; color: #fff; letter-spacing: .01em; }

.closer { padding: 72px 0 24px; text-align: center; }
.closer .get { justify-content: center; margin-top: 26px; }
.closer .lights { margin-bottom: 18px; }

/* ---------- text pages (privacy, support, legal) ---------- */
.page { max-width: 720px; margin: 0 auto; padding: 16px var(--gutter) 24px; }
.page h1 { margin: 16px 0 10px; font: 900 italic clamp(44px, 8vw, 60px)/1 var(--display); text-transform: uppercase; text-wrap: balance; }
.page h2 { margin: 36px 0 8px; font: 800 italic 25px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; text-wrap: balance; }
.page p, .page li { max-width: 65ch; color: var(--ink-200); }
.page .lead { max-width: 60ch; color: #fff; }
.page ul { padding-left: 20px; }
.card { margin-top: 14px; padding: 16px 20px; border-radius: 16px; background: var(--ink-900); box-shadow: inset 0 0 0 1px var(--line); }
.card ul { margin: 0; }
.muted { color: var(--ink-300); font-size: 14px; }
address { font-style: normal; color: var(--ink-200); }

footer { max-width: 1160px; margin: 40px auto 0; padding: 22px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; font-size: 14px; color: var(--ink-300); }
footer a { color: var(--ink-300); }
footer a:hover { color: #fff; }
footer .note { flex-basis: 100%; margin: 6px 0 0; }
.page + footer { max-width: 720px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 44px; text-align: left; }
  .hero .phone { width: min(300px, 78vw); }
  .bar .badge { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .kicker .lights i:first-child { animation: pulse 1.6s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 2px var(--red); opacity: .75; } }
}
