/* frivals.app: shared styles. Brand colours match the app (src/theme/tokens.ts). */
:root {
  --ink: #0d0e12;
  --ink-2: #1c1d26;
  --sub: #5f6371;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --panel: #0b0c10;
  --panel-card: #17181e;
  --panel-line: #262833;
  --on-dark: #ffffff;
  --on-dark-sub: #a6a9b6;
  --blue: #1463f3;
  --blue-deep: #0f4fc4;
  --blue-glow: #3b7dff;
  --blue-tint: #d9e6ff;
  --p-blue: #d6e6fb;
  --p-lime: #e5f3c6;
  --p-cream: #fbefd4;
  --p-lilac: #e6ddff;
  --ok: #2fbf71;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 28px;
  --r-md: 20px;
  --wrap: 1200px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue-glow); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
h1, h2, h3 { text-wrap: balance; }

/* ---------- top bar + nav ---------- */
.notice { background: var(--blue); color: #fff; text-align: center; font-size: 14px; padding: 10px 16px; }
.notice a { color: #fff; font-weight: 600; margin-left: 8px; }
.nav { position: sticky; top: 0; z-index: 20; background: var(--panel); color: var(--on-dark); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: .02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: #d8dae2; text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; font: 600 15px/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.pill:active { transform: scale(.98); }
.pill.blue { background: var(--blue); color: #fff; }
.pill.blue:hover { background: var(--blue-deep); }
.pill.white { background: #fff; color: var(--ink); }
.pill.white:hover { background: #eef0f4; }
.pill.white.blue-text { color: var(--blue); }
.pill.outline { border-color: rgba(255,255,255,.75); color: #fff; }
.pill.outline:hover { background: rgba(255,255,255,.1); }
.pill.outline-dark { border-color: var(--ink); color: var(--ink); }
.pill.outline-dark:hover { background: var(--bg-soft); }
.pill.sm { min-height: 42px; padding: 0 20px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; color: #fff; background: #050608; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,8,.82) 0%, rgba(5,6,8,.55) 45%, rgba(5,6,8,.2) 100%), linear-gradient(0deg, rgba(5,6,8,.6), transparent 40%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(46px, 7.6vw, 100px); line-height: 1; font-weight: 600; letter-spacing: -.035em; margin: 0; }
.hero p { font-size: clamp(17px, 1.6vw, 20px); color: #e4e6ec; max-width: 40ch; margin: 26px 0 0; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* ---------- black stats band ---------- */
.stats { background: var(--panel); color: var(--on-dark); text-align: center; padding: 96px 0; }
.stats h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.stats .lede { color: var(--on-dark-sub); font-size: 18px; max-width: 44ch; margin: 18px auto 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.stat b { display: block; font-size: clamp(64px, 8vw, 96px); line-height: 1; font-weight: 600; color: var(--blue-glow); letter-spacing: -.04em; }
.stat span { display: block; margin-top: 14px; color: var(--on-dark-sub); font-size: 15px; }

/* ---------- section heads ---------- */
.section { padding: 112px 0; }
.section.soft { background: var(--bg-soft); }
.head { max-width: 760px; }
.head.center { margin: 0 auto; text-align: center; }
.head h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -.03em; margin: 0; }
.head p { color: var(--sub); font-size: 18px; margin: 20px 0 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.tag.on-dark { background: #23252e; color: #fff; padding: 6px 12px; border-radius: 999px; }

/* ---------- feature cards (phone shots) ---------- */
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 56px; }
.fcard { background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 1px 2px rgba(13,14,18,.06), 0 8px 24px rgba(13,14,18,.05); display: flex; flex-direction: column; }
.fcard .shot { position: relative; height: 330px; overflow: hidden; display: flex; justify-content: center; padding-top: 28px; }
.fcard:nth-child(1) .shot { background: var(--p-blue); }
.fcard:nth-child(2) .shot { background: var(--p-lime); }
.fcard:nth-child(3) .shot { background: var(--ink-2); }
.fcard:nth-child(4) .shot { background: var(--p-cream); }
.phone { width: 200px; border-radius: 30px 30px 0 0; border: 7px solid #0d0e12; border-bottom: 0; overflow: hidden; background: #fff; box-shadow: 0 20px 40px rgba(13,14,18,.25); }
.phone img { width: 100%; }
.chip { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; background: rgba(13,14,18,.82); color: #fff; font-size: 13px; font-weight: 500; padding: 7px 13px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.chip.light { background: rgba(255,255,255,.92); color: var(--ink); }
.fcard .body { padding: 22px 24px 26px; }
.fcard h3 { font-size: 20px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.01em; }
.fcard p { margin: 0; color: var(--sub); font-size: 15px; }

/* ---------- dark scoring panel ---------- */
.panel { background: var(--panel); color: var(--on-dark); border-radius: 32px; padding: clamp(32px, 5vw, 56px); margin-top: 0; }
.panel .head h2 { font-size: clamp(30px, 4vw, 44px); }
.panel .head p { color: var(--on-dark-sub); }
.cards6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.mcard { background: var(--panel-card); border: 1px solid var(--panel-line); border-radius: var(--r-md); overflow: hidden; }
.mcard .viz { position: relative; height: 190px; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 120% at 30% 0%, #1d4fd6 0%, #121a3a 55%, #0e1020 100%); }
.mcard:nth-child(even) .viz { background: radial-gradient(120% 120% at 70% 0%, #2a2d3a 0%, #15161d 60%); }
.mcard .body { padding: 20px 22px 24px; }
.mcard h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.mcard p { margin: 0; color: var(--on-dark-sub); font-size: 14px; }
.score { font-size: 54px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.score small { font-size: 18px; font-weight: 500; color: var(--on-dark-sub); letter-spacing: 0; }
.mini { position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 12px; font-weight: 500; padding: 6px 11px; border-radius: 999px; }
.btns { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; }
.btns span { background: var(--blue); color: #fff; border-radius: 14px; padding: 10px 14px; text-align: center; font-weight: 600; font-size: 15px; line-height: 1.1; }
.btns span small { display: block; font-weight: 400; font-size: 11px; opacity: .85; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3d4b; }
.dots i.on { background: var(--blue-glow); }
.panel .actions { margin-top: 36px; }

/* ---------- sports ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.scard { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.scard.featured { border: 2px solid var(--blue); }
.scard .photo { position: relative; aspect-ratio: 4 / 3; }
.scard .photo img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 14px; right: 14px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.scard .body { padding: 24px 26px 28px; }
.scard h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
.scard p { margin: 0; color: var(--sub); font-size: 15px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231463f3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.more-sports { margin-top: 40px; text-align: center; }
.more-sports p { color: var(--sub); margin: 0 0 16px; }
.sport-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 0; list-style: none; }
.sport-chips li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 14px; font-weight: 500; }

/* ---------- full-bleed photo band ---------- */
.band { position: relative; color: #fff; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; background: #0b0c10; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,8,.85) 0%, rgba(5,6,8,.55) 50%, rgba(5,6,8,.1) 100%), linear-gradient(0deg, rgba(5,6,8,.5), transparent 50%); }
.band .wrap { position: relative; z-index: 1; width: 100%; padding-top: 80px; padding-bottom: 80px; }
.band h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -.03em; margin: 0; max-width: 18ch; }
.band p { color: #e4e6ec; font-size: 18px; max-width: 46ch; margin: 18px 0 30px; }

/* ---------- split rows ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split + .split { margin-top: 112px; }
.split .media { border-radius: var(--r-lg); height: 480px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: 48px; position: relative; }
.split .media.bottom { align-items: flex-end; padding-top: 0; padding-bottom: 0; }
.split .media.bottom .phone { border-radius: 0 0 30px 30px; border-top: 0; border-bottom: 7px solid #0d0e12; }
.split .media.blue { background: linear-gradient(160deg, #1463f3, #0b3fae); }
.split .media.lilac { background: linear-gradient(160deg, #e6ddff, #cbd9ff); }
.split .media .phone { width: 260px; }
.split .media .chip { left: 20px; bottom: 20px; }
.split h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.06; font-weight: 600; letter-spacing: -.025em; margin: 0; }
.split p { color: var(--sub); font-size: 18px; margin: 18px 0 28px; max-width: 42ch; }
.split.flip .media { order: 2; }

/* ---------- CTA band ---------- */
.cta { background: var(--blue); color: #fff; text-align: center; padding: 104px 0; }
.cta h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; font-weight: 600; letter-spacing: -.03em; margin: 0; }
.cta p { color: #dbe6ff; font-size: 18px; margin: 18px auto 34px; max-width: 40ch; }

/* ---------- footer ---------- */
.footer { background: var(--panel); color: var(--on-dark-sub); padding: 80px 0 36px; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer .brand { font-size: 22px; }
.footer .blurb { margin: 16px 0 0; max-width: 32ch; }
.footer h4 { color: #7d8090; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer a { color: #e4e6ec; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .legal { border-top: 1px solid var(--panel-line); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer .legal a { color: var(--on-dark-sub); text-decoration: underline; }

/* ---------- document pages (support, privacy, terms) ---------- */
.doc-hero { background: var(--panel); color: #fff; padding: 72px 0 64px; }
.doc-hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; font-weight: 600; letter-spacing: -.03em; margin: 0; }
.doc-hero p { color: var(--on-dark-sub); margin: 14px 0 0; font-size: 16px; }
.doc { max-width: 72ch; padding: 56px 0 96px; }
.doc h2 { font-size: 24px; font-weight: 600; margin: 44px 0 10px; letter-spacing: -.01em; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 26px 0 4px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary { background: var(--p-blue); color: #13294b; border-radius: var(--r-md); padding: 22px 26px; }
.summary p { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 17px; }
.faq details p { margin: 10px 0 0; color: var(--sub); }

/* ---------- invite page ---------- */
.invite { max-width: 560px; padding: 56px 0 96px; }
.invite h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.06; font-weight: 600; letter-spacing: -.025em; margin: 0; }
.invite .lead { color: var(--sub); font-size: 18px; }
.code-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 24px; margin: 26px 0; }
.code-label { font-size: 14px; color: var(--sub); flex-basis: 100%; }
.code { font-size: 34px; font-weight: 600; letter-spacing: .06em; flex: 1; }
.steps { padding-left: 22px; font-size: 17px; }
.invite .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer .cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { min-height: 640px; align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, rgba(5,6,8,.9) 0%, rgba(5,6,8,.55) 60%, rgba(5,6,8,.3) 100%); }
  .stats { padding: 72px 0; }
  .stat-row { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 44px; }
  .section { padding: 80px 0; }
  .cards4, .cards6, .cards3 { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split.flip .media { order: 0; }
  .split + .split { margin-top: 80px; }
  .split .media { height: 380px; }
  .band { min-height: 480px; }
  .footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill { transition: none; }
}
