/* Fanapult website. Colors match the app (Utilities/Theme.swift). No web fonts, no scripts. */
:root {
  --page: #0e0e10;
  --bg: #161618;
  --card: #1f1f22;
  --elevated: #29292d;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f2f4;
  --muted: #a1a1a8;
  --tertiary: #6e6e76;
  --blue: #1a8cff;
  --mint: #32d26a;
  --live: #ff4b42;
  --warning: #ffcc1f;
  --radius: 14px;
  --max: 1080px;
  --prose: 720px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--prose); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 14, 16, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1;
  background: var(--blue); color: #fff; border: 0;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.secondary { background: var(--card); color: var(--text); border: 1px solid var(--border-strong); }
.btn[aria-disabled="true"] { cursor: default; filter: none; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px; border-radius: 12px;
  background: #000; border: 1px solid var(--border-strong); color: #fff;
}
.store-badge small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.store-badge strong { display: block; font-size: 19px; line-height: 1.1; }
.store-badge:hover { text-decoration: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(26, 140, 255, 0.25), transparent 60%),
    radial-gradient(50% 60% at 100% 100%, rgba(50, 210, 106, 0.10), transparent 60%),
    var(--page);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero h1 span { color: var(--blue); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 32em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .note { font-size: 14px; color: var(--tertiary); margin-top: 18px; }
.hero-art { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 9 / 14; border: 1px solid var(--border); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .chip {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(22, 22, 24, 0.88); border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 14px 16px; font-size: 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chip .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chip .who { font-weight: 700; }
.chip .state { font-weight: 800; font-size: 12px; letter-spacing: 0.08em; }
.chip .state.live { color: var(--live); }
.chip .state.hit { color: var(--mint); }
.chip .bar { height: 6px; border-radius: 3px; background: var(--elevated); margin-top: 10px; overflow: hidden; }
.chip .bar i { display: block; height: 100%; background: var(--mint); border-radius: 3px; }
.chip + .chip { bottom: 104px; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 48px; }
  .hero-art { max-width: 360px; }
}

/* Sections */
section.block { padding: 72px 0; border-top: 1px solid var(--border); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin: 0 0 10px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 16px; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 36em; margin: 0 0 36px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 820px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(26, 140, 255, 0.16); color: var(--blue); font-weight: 800; margin-bottom: 14px; }
.not-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.not-list li { padding-left: 28px; position: relative; color: var(--muted); }
.not-list li::before { content: "✕"; position: absolute; left: 0; color: var(--tertiary); font-weight: 800; }

/* Legal and support pages */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 0 0 8px; letter-spacing: -0.01em; }
.page-head .meta { color: var(--tertiary); font-size: 14px; margin: 0; }
.doc { padding: 16px 0 72px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: #d6d6db; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.summary { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }
.summary p { margin: 0 0 8px; }
.summary ul { margin: 8px 0 0; }
.toc { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 22px; margin: 24px 0; font-size: 15px; }
.toc ol { margin: 0; padding-left: 20px; }
table.data { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.data th { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.table-scroll { overflow-x: auto; }
.callout { background: rgba(255, 204, 31, 0.08); border: 1px solid rgba(255, 204, 31, 0.3); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.help-lines { display: grid; gap: 12px; margin: 16px 0; }
.help-lines .card strong { display: block; font-size: 20px; color: var(--text); }
details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; color: var(--text); list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--tertiary); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--tertiary); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { color: var(--muted); }
.site-footer p { margin: 0; max-width: 60em; }

/* Small helpers (no inline styles: the Content-Security-Policy blocks them). */
.chip .bar i.w62 { width: 62%; }
.chip .bar i.w75 { width: 75%; }
.mt24 { margin-top: 24px; }
