/*
 * Scorevance website.
 *
 * One stylesheet for every public page, drawn from the app's dark theme
 * (src/config/theme.js) and the v2 store creative: Outfit for text, Barlow
 * Condensed ExtraBold Italic for the display headlines, violet for the brand,
 * green for anything that is a settled, checkable result.
 *
 * Component classes are plain words scoped by meaning (.hero, .feature, .plan);
 * the few base rules sit under body.site so the legal pages, which still bring
 * their own utility CSS, are only given the font, colours and chrome.
 */

@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/outfit-400.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/outfit-500.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/outfit-600.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/outfit-700.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/outfit-800.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url('../fonts/barlow-condensed-800i.woff2') format('woff2'); }

:root {
  --bg: #05060d;
  --bg-app: #070b14;
  --card: #0f1624;
  --card-2: #111827;
  --line: rgba(148, 163, 184, 0.13);
  --line-2: rgba(148, 163, 184, 0.24);
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --faint: #64748b;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --violet-3: #c4b5fd;
  --indigo: #6366f1;
  --green: #10b981;
  --green-2: #34d399;
  --green-3: #d1fae5;
  --amber: #fbbf24;
  --red: #f87171;
  --font: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Barlow Condensed', 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --max: 1180px;
  --gutter: 20px;
  --header: 64px;
  --dock: 0px; /* set by site.js while the mobile download bar is up */
}

/* ── Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body.site {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.site img, .site svg { max-width: 100%; }
.site :focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 6px; }
.site ::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: #05060d; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.tnum { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
[hidden] { display: none !important; }
/* Glows behind the app screens spill past the screen edge on phones; clip
   them here rather than let the page scroll sideways. */
main { display: block; overflow-x: hidden; overflow-x: clip; }

/* Device-specific bits: html gets is-ios / is-android / is-desktop before first paint */
.is-ios .hide-ios, .is-android .hide-android, .is-desktop .hide-desktop { display: none !important; }
.only-mobile { display: none !important; }
.is-ios .only-mobile, .is-android .only-mobile { display: revert !important; }
.is-ios .only-desktop, .is-android .only-desktop { display: none !important; }

/* ── Type ──────────────────────────────────────────────────────────── */
.d {
  display: block; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase;
  line-height: 0.86; letter-spacing: 0.004em; padding: 0 0.07em; margin: 0 -0.07em;
}
.d-white { color: #fff; text-shadow: 0 0.035em 0 rgba(0, 0, 0, 0.35), 0 0.08em 0.22em rgba(0, 0, 0, 0.55); }
.d-wrap { display: block; filter: drop-shadow(0 0.035em 0 rgba(0, 0, 0, 0.35)) drop-shadow(0 0 0.18em rgba(139, 92, 246, 0.35)); }
.d-violet {
  background: linear-gradient(180deg, #f5f3ff 0%, #c4b5fd 28%, #a78bfa 56%, #8b5cf6 82%, #7c3aed 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.d-green {
  background: linear-gradient(180deg, #ecfdf5 0%, #a7f3d0 34%, #34d399 70%, #10b981 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet-2);
}
.eyebrow-num { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 15px; letter-spacing: 0.04em; color: var(--violet-3); }
.h-display { margin: 0; font-size: clamp(46px, 11vw, 84px); }
.h-display-sm { margin: 0; font-size: clamp(40px, 9vw, 64px); }
.lede { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 34em; }
.lede b, .lede strong { color: #fff; font-weight: 600; }
.small { font-size: 13px; color: var(--muted); }
.fine { font-size: 12px; line-height: 1.55; color: var(--faint); }
.link { color: var(--violet-2); font-weight: 600; text-decoration: none; }
.link:hover { color: var(--violet-3); text-decoration: underline; text-underline-offset: 3px; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; color: var(--violet-2); font-weight: 600; text-decoration: none; }
.arrow-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.arrow-link:hover { color: var(--violet-3); }
.arrow-link:hover svg { transform: translateX(3px); }

/* ── Buttons & store badges ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  min-height: 48px; padding: 12px 22px; border-radius: 14px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, #8b5cf6 0%, #6d5cf6 50%, #6366f1 100%);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 38px rgba(124, 58, 237, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(167, 139, 250, 0.5); }
.btn-white { color: #05060d; background: #fff; }
.btn-white:hover { background: #ede9fe; }
.btn-sm { min-height: 38px; padding: 8px 14px; border-radius: 11px; font-size: 14px; }
.btn-lg { min-height: 58px; padding: 16px 28px; border-radius: 16px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }

.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badge { display: inline-flex; border-radius: 10px; transition: transform 0.15s ease, filter 0.2s ease; -webkit-tap-highlight-color: transparent; }
.store-badge:hover { transform: translateY(-1px); filter: drop-shadow(0 8px 20px rgba(139, 92, 246, 0.35)); }
.store-badge img { display: block; height: 48px; width: auto; }
@media (min-width: 720px) { .store-badges-lg .store-badge img { height: 54px; } }

/* Desktop: scan to install */
.qr-card { display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(15, 22, 36, 0.8); border: 1px solid var(--line-2); max-width: 340px; }
.qr-tile { flex: none; width: 104px; height: 104px; padding: 8px; border-radius: 12px; background: #fff; }
.qr-tile img { display: block; width: 100%; height: 100%; }
.qr-card p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.qr-card strong { display: block; margin-bottom: 2px; font-size: 15px; color: #fff; }

/* ── Proof chips: a settled, checkable number ─────────────────────── */
.proof {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 7px 16px 7px 7px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.88), rgba(4, 47, 36, 0.88));
  border: 1.5px solid rgba(52, 211, 153, 0.62);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(167, 243, 208, 0.16);
  color: #ecfdf5; font-size: 15px; font-weight: 500; line-height: 1.3; text-decoration: none;
}
a.proof:hover { border-color: rgba(52, 211, 153, 0.9); }
.proof .tick { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #022c22; }
.proof .tick svg { width: 15px; height: 15px; }
.proof b { font-weight: 800; color: #fff; }
.proof .muted { color: rgba(209, 250, 229, 0.72); white-space: nowrap; }
.proof-quiet { background: rgba(15, 22, 36, 0.75); border-color: var(--line-2); color: var(--text-2); }
.proof-quiet .tick { background: rgba(139, 92, 246, 0.22); color: var(--violet-3); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(167, 139, 250, 0.32);
  font-size: 13px; font-weight: 600; color: var(--violet-3);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }
.pill-green { background: rgba(16, 185, 129, 0.12); border-color: rgba(52, 211, 153, 0.35); color: #a7f3d0; }
.pill-amber { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.35); color: #fde68a; }
.pill-plain { background: rgba(148, 163, 184, 0.1); border-color: var(--line-2); color: var(--text-2); }

/* ── Header ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header);
  background: rgba(5, 6, 13, 0.72); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(5, 6, 13, 0.86); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; flex: none; }
.brand-mark {
  display: block; width: 30px; height: 30px; flex: none;
  background: linear-gradient(135deg, #ddd6fe 0%, #a78bfa 45%, #6366f1 100%);
  -webkit-mask: url('../img/site/logo-mark.png') center / contain no-repeat; mask: url('../img/site/logo-mark.png') center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.55));
}
.brand-word { font-size: 13px; font-weight: 600; letter-spacing: 0.26em; margin-right: -0.26em; text-transform: uppercase; color: rgba(241, 245, 249, 0.94); }
@media (min-width: 480px) { .brand-word { font-size: 14px; letter-spacing: 0.32em; margin-right: -0.32em; } }
@media (max-width: 400px) {
  .site-header .wrap { gap: 10px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding: 8px 12px; }
  .brand { gap: 9px; }
  .brand-word { letter-spacing: 0.2em; margin-right: -0.2em; }
}
@media (max-width: 339px) { .brand-word { display: none; } }
.site-nav { display: none; margin-left: auto; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: color 0.15s ease, background-color 0.15s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.05); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-nav + .header-actions { margin-left: 12px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .close { display: none; }
.menu-btn[aria-expanded="true"] .open { display: none; }
.menu-btn[aria-expanded="true"] .close { display: block; }
.site-menu { position: absolute; left: 0; right: 0; top: var(--header); padding: 10px var(--gutter) 20px; background: rgba(7, 9, 18, 0.97); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.site-menu a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 17px; font-weight: 500; text-decoration: none; }
.site-menu a:last-child { border-bottom: 0; }
@media (min-width: 960px) {
  .site-nav { display: flex; }
  .menu-btn, .site-menu { display: none !important; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 34px 0 0; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('../img/site/pitch.webp') center top / auto 760px no-repeat;
  opacity: 0.75;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(139, 92, 246, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(5, 6, 13, 0.1) 0%, rgba(5, 6, 13, 0.35) 55%, var(--bg) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: center; text-align: center; }
.hero-copy { max-width: 620px; display: flex; flex-direction: column; align-items: center; }
.hero h1 { margin: 18px 0 0; }
.hero-title .d { font-size: clamp(76px, 22vw, 140px); }
.hero-sub { display: block; margin-top: 22px; font-size: 19px; font-weight: 500; line-height: 1.45; color: #e2e8f0; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
.hero-sub b { color: var(--violet-3); font-weight: 600; }
.hero-proof { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-cta { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-cta .store-badges { justify-content: center; }
.hero-note { margin: 0; font-size: 14px; color: var(--muted); }
.hero-note b { color: var(--text-2); font-weight: 600; }
/* The image carries transparent room for its shadows, so on a phone it may
   run into the gutters; the hero clips it at the screen edge. */
.hero-media { position: relative; justify-self: stretch; margin: -10px calc(-1 * var(--gutter)) 0; }
.hero-media img { max-width: 400px; margin: 0 auto; }
.hero-media::before {
  content: ''; position: absolute; left: 50%; top: 42%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.42), rgba(99, 102, 241, 0.16) 55%, transparent 75%);
}
.hero-media img { display: block; width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6)); }
@media (min-width: 1024px) {
  .hero { padding: 40px 0 30px; }
  .hero::before { background-size: max(1920px, 100%) auto; }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(5, 6, 13, 0.55) 0%, rgba(5, 6, 13, 0.25) 45%, transparent 70%),
      radial-gradient(60% 45% at 70% 0%, rgba(139, 92, 246, 0.22), transparent 70%),
      linear-gradient(180deg, rgba(5, 6, 13, 0.1) 0%, rgba(5, 6, 13, 0.35) 55%, var(--bg) 100%);
  }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; justify-items: start; text-align: left; gap: 40px; }
  .hero-copy { align-items: flex-start; padding-bottom: 40px; }
  .hero-proof, .hero-cta { align-items: flex-start; }
  .hero-cta .store-badges { justify-content: flex-start; }
  .hero-media { width: 520px; justify-self: center; margin: 0; }
  .hero-media img { max-width: none; }
  .hero-sub { font-size: 21px; }
}
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise-2 { animation-delay: 0.08s; } .rise-3 { animation-delay: 0.16s; } .rise-4 { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ── Sections ─────────────────────────────────────────────────────── */
.section { position: relative; padding: 72px 0; }
.section-tight { padding: 52px 0; }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head .lede { margin-left: auto; margin-right: auto; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; margin: 0; }
@media (min-width: 1024px) { .section { padding: 96px 0; } .section-tight { padding: 64px 0; } }

/* Coverage strip */
.coverage-title { margin: 0; font-size: 14px; color: var(--muted); }
.coverage-title b { color: #fff; font-weight: 600; }
.league-chips { list-style: none; margin: 14px auto 0; padding: 0; max-width: 880px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.league-chips li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--text-2); }

/* Receipts band */
.receipts { position: relative; }
.receipts::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 15% 50%, rgba(16, 185, 129, 0.12), transparent 70%), radial-gradient(40% 50% at 85% 40%, rgba(139, 92, 246, 0.12), transparent 70%);
}
.stat-grid { display: grid; gap: 12px; margin-top: 28px; }
.stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 18px; background: rgba(15, 22, 36, 0.72); border: 1px solid var(--line); }
.stat-num { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 46px; line-height: 0.9; color: #fff; padding-right: 0.06em; }
.stat-num.green { background: linear-gradient(180deg, #ecfdf5, #6ee7b7 55%, #10b981); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { text-align: right; }
.stat-label b { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.stat-label span { font-size: 13px; color: var(--muted); }
@media (min-width: 720px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; padding: 22px; }
  .stat-num { font-size: 50px; }
  .stat-label { text-align: left; }
}
.receipts-links { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 24px; }
.media-caption { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--faint); }

/* Feature rows: copy and the app screen that shows it */
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; }
.feature + .feature { margin-top: 84px; }
.feature-copy { max-width: 560px; }
.feature-copy .lede { font-size: 17px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.ticks li { display: flex; align-items: flex-start; gap: 11px; font-size: 16px; color: var(--text-2); }
.ticks li::before {
  content: ''; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: rgba(16, 185, 129, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.ticks-violet li::before {
  background-color: rgba(139, 92, 246, 0.16); border-color: rgba(167, 139, 250, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E");
}
.feature-media { position: relative; justify-self: center; width: min(340px, 90vw); }
.feature-media::before {
  content: ''; position: absolute; left: 50%; top: 45%; width: 125%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.3), rgba(99, 102, 241, 0.1) 55%, transparent 75%);
}
.feature-media.green::before { background: radial-gradient(closest-side, rgba(16, 185, 129, 0.26), rgba(16, 185, 129, 0.08) 55%, transparent 75%); }
.feature-media img { display: block; width: 100%; height: auto; filter: drop-shadow(0 34px 50px rgba(0, 0, 0, 0.55)); }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .feature + .feature { margin-top: 96px; }
  .feature.flip .feature-media { order: -1; }
  .feature-media { width: 400px; }
  .feature-copy .lede { font-size: 18px; }
}

/* Free vs Premium */
.plans { display: grid; gap: 18px; max-width: 980px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: 24px; background: linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(10, 14, 26, 0.88)); border: 1px solid var(--line-2); }
.plan h3 { margin: 0; font-size: 24px; font-weight: 700; color: #fff; }
.plan .plan-sub { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.plan .ticks { margin-top: 22px; }
.plan .plan-cta { margin-top: auto; padding-top: 26px; }
.plan-premium { border-color: rgba(167, 139, 250, 0.55); background: radial-gradient(120% 70% at 50% 0%, rgba(139, 92, 246, 0.2), transparent 60%), linear-gradient(180deg, rgba(23, 20, 48, 0.92), rgba(12, 12, 28, 0.92)); box-shadow: 0 30px 80px rgba(76, 29, 149, 0.3); }
.plan-flag { position: absolute; top: -13px; left: 24px; padding: 5px 12px; border-radius: 999px; background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(124, 58, 237, 0.45); }
.plan .fine { margin: 14px 0 0; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; gap: 22px; } .plan { padding: 34px 32px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: rgba(15, 22, 36, 0.7); border: 1px solid var(--line); transition: border-color 0.2s ease, background-color 0.2s ease; }
.faq details[open] { border-color: rgba(167, 139, 250, 0.4); background: rgba(17, 24, 39, 0.9); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: #fff; }
.faq summary::after {
  content: ''; flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 15px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 20px 20px; font-size: 15px; line-height: 1.65; color: var(--text-2); }

/* Closing call to action */
.cta-final { position: relative; overflow: hidden; padding: 52px 16px; border-radius: 32px; text-align: center; border: 1px solid rgba(167, 139, 250, 0.3); background: radial-gradient(80% 90% at 50% 0%, rgba(139, 92, 246, 0.28), transparent 65%), linear-gradient(180deg, #0d0b22, #070812); }
.cta-final::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.45;
  background: url('../img/site/pitch.webp') center 20% / auto 640px no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 90%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 90%);
}
.cta-final > * { position: relative; }
.cta-final .h-display { font-size: clamp(38px, 11vw, 110px); }
.cta-final .lede { margin: 18px auto 0; text-align: center; }
.cta-final .store-badges { justify-content: center; margin-top: 30px; }
.cta-final .qr-card { margin: 26px auto 0; text-align: left; }
@media (min-width: 900px) { .cta-final { padding: 84px 40px; } }

/* ── Cards, lists, tables (record, accuracy, widget) ─────────────── */
.card { padding: 22px; border-radius: 20px; background: linear-gradient(180deg, rgba(17, 24, 39, 0.82), rgba(12, 17, 30, 0.82)); border: 1px solid var(--line); }
.card + .card { margin-top: 14px; }
.card h2, .card h3 { margin: 0; color: #fff; }
.card h2 { font-size: 22px; font-weight: 700; }
.card h3 { font-size: 17px; font-weight: 700; }
.card p { margin: 10px 0 0; color: var(--text-2); }
.card-violet { border-color: rgba(167, 139, 250, 0.35); background: radial-gradient(100% 120% at 0% 0%, rgba(139, 92, 246, 0.2), transparent 60%), linear-gradient(180deg, rgba(23, 20, 48, 0.9), rgba(12, 12, 28, 0.9)); }

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 48px 0 36px; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('../img/site/pitch.webp') center top / auto 620px no-repeat; opacity: 0.55; -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%); mask-image: linear-gradient(180deg, #000 40%, transparent 100%); }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 0%, rgba(139, 92, 246, 0.2), transparent 70%), linear-gradient(180deg, transparent 40%, var(--bg)); }
.page-hero h1 { margin: 0; font-size: clamp(32px, 7vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; color: #fff; text-wrap: balance; }
.page-hero .lede { font-size: 17px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--violet-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--violet-3); }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: var(--line-2); gap: 1px; }
.kpi { padding: 16px 16px 14px; background: #0a0e1a; }
.kpi-num { display: block; font-size: 24px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-label { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
@media (min-width: 720px) { .kpi { padding: 20px 22px 18px; } .kpi-num { font-size: 30px; } }

.kpis-stacked { grid-template-columns: 1fr; }
.kpis-stacked .kpi { display: flex; flex-direction: column; gap: 6px; }
.kpis-stacked .kpi-num { font-size: 30px; }
@media (min-width: 720px) { .kpis-stacked { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpis-stacked .kpi-num { font-size: 34px; } }
.section-title { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.section-text { margin: 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.list-title { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.rows { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #0a0e1a; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.row:last-child { border-bottom: 0; }
a.row { transition: background-color 0.15s ease; }
a.row:hover { background: rgba(255, 255, 255, 0.035); }
.row-main { flex: 1; min-width: 0; }
.row-title { margin: 0; font-weight: 600; color: #e2e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { margin: 2px 0 0; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-value { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.row-chev { color: #475569; }
.tone-good { color: var(--green-2); } .tone-mid { color: var(--amber); } .tone-bad { color: var(--red); } .tone-none { color: var(--muted); }
.result-dot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 800; }
.result-dot.win { background: rgba(16, 185, 129, 0.16); color: var(--green-2); }
.result-dot.loss { background: rgba(248, 113, 113, 0.14); color: var(--red); }
.tag { flex: none; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line-2); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tag-high { border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7; }
.tag-medium { border-color: rgba(251, 191, 36, 0.4); color: #fcd34d; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }

.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: #0a0e1a; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 14px 18px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.table th:first-child, .table td:first-child { text-align: left; }
.table thead th { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.table tbody tr + tr td { border-top: 1px solid var(--line); }
.table td { color: var(--text-2); }
.table td:first-child { color: #fff; font-weight: 600; }
.table .strong { color: #fff; font-weight: 700; }
.table .withheld { color: #475569; font-size: 14px; }

.prose { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.prose h2 { margin: 0 0 14px; font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.prose h3 { margin: 24px 0 6px; font-size: 17px; font-weight: 700; color: #fff; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 10px 0 0; padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose strong { color: #fff; }
.prose a { color: var(--violet-2); }

.snippet { margin: 0; padding: 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); color: var(--text-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.stack { display: grid; gap: 40px; }
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }

/* Newsletter + sponsor slots under the record */
.sponsor-logo { display: block; height: 24px; width: auto; margin-bottom: 12px; }
.notice { margin: 0 0 12px; color: var(--text); font-weight: 600; }
.qr-centered { margin-left: auto; margin-right: auto; text-align: left; }
.app-strip { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 12px 12px 12px 14px; border-radius: 18px; background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(167, 139, 250, 0.3); }
.app-strip img { flex: none; width: 44px; height: 44px; border-radius: 11px; }
.app-strip p { flex: 1; margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.app-strip .btn { flex: none; }
@media (max-width: 480px) { .app-strip { flex-wrap: wrap; } .app-strip p { flex-basis: calc(100% - 58px); } .app-strip .btn { width: 100%; } }
.slot-label { margin: 0 0 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.form-row { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.input { flex: 1; min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: #fff; font: inherit; font-size: 16px; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: rgba(167, 139, 250, 0.7); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2); }
.notice-good { color: var(--green-2); font-weight: 600; margin: 0; }
.error-text { margin: 8px 0 0; font-size: 14px; color: #fda4af; }
@media (min-width: 640px) { .form-row { flex-direction: row; } }

/* ── Single-purpose pages: invite, download, match ───────────────── */
.solo { position: relative; isolation: isolate; min-height: calc(100vh - var(--header)); display: flex; align-items: flex-start; justify-content: center; padding: 36px var(--gutter) 64px; }
.solo::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('../img/site/pitch.webp') center top / auto 700px no-repeat; opacity: 0.7; -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 700px); mask-image: linear-gradient(180deg, #000 45%, transparent 700px); }
.solo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 50% at 50% 0%, rgba(139, 92, 246, 0.24), transparent 70%), linear-gradient(180deg, transparent 30%, var(--bg) 85%); }
.solo-inner { width: 100%; max-width: 460px; text-align: center; }
.solo-inner-wide { max-width: 980px; }
@media (min-width: 720px) { .solo { padding-top: 64px; } }
.panel { padding: 26px 22px; border-radius: 26px; background: linear-gradient(180deg, rgba(17, 24, 39, 0.86), rgba(10, 14, 26, 0.9)); border: 1px solid rgba(167, 139, 250, 0.22); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); }
@media (min-width: 480px) { .panel { padding: 32px 30px; } }
.panel h1 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.15; color: #fff; text-wrap: balance; }
.panel .lede { margin: 12px auto 0; font-size: 16px; }
.kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet-2); }
.code-box { margin-top: 8px; padding: 16px; border-radius: 18px; border: 1px solid rgba(167, 139, 250, 0.4); background: rgba(139, 92, 246, 0.12); font-size: 28px; font-weight: 800; letter-spacing: 0.18em; color: var(--violet-3); font-variant-numeric: tabular-nums; }
.code-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.code-help { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.code-inline { color: #fff; font-weight: 700; letter-spacing: 0.06em; }
.copied-note { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--green-2); }
.value-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.value-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.value-list .vi { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(139, 92, 246, 0.16); color: var(--violet-3); }
.value-list .vi svg { width: 17px; height: 17px; }
.value-list b { display: block; color: #fff; font-weight: 600; }
.or-row { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.or-row::before, .or-row::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.spinner { width: 40px; height: 40px; margin: 0 auto; border-radius: 50%; border: 3px solid rgba(139, 92, 246, 0.22); border-top-color: var(--violet); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.store-badges.centered { justify-content: center; }
@media (max-width: 480px) { .panel .store-badge img { height: 44px; } }
.app-icon-lg { display: block; width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 22px; box-shadow: 0 16px 40px rgba(124, 58, 237, 0.45); }
.qr-big { width: 196px; height: 196px; margin: 22px auto 0; padding: 14px; border-radius: 22px; background: #fff; }
.qr-big img { display: block; width: 100%; height: 100%; }

/* Match page */
.solo-inner-match { max-width: 520px; }
.match-title { margin: 0; font-size: clamp(30px, 8vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; color: #fff; text-wrap: balance; }
.match-title span { color: var(--faint); font-weight: 600; }
.panel-tight { padding: 22px; }
.reward-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 8px; margin: 18px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.32); color: #fde68a; font-size: 14px; }
.reward-note svg { width: 18px; height: 18px; flex: none; }
.reward-note b { color: #fff; font-weight: 700; }

.match-card { padding: 22px 18px 24px; border-radius: 26px; background: linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(10, 14, 26, 0.92)); border: 1px solid rgba(167, 139, 250, 0.25); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); }
.match-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.match-meta .league { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text-2); }
.match-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 20px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.team img { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.team .crest-fallback { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(167, 139, 250, 0.3); color: var(--violet-3); font-weight: 800; font-size: 20px; }
.team-name { font-size: 15px; font-weight: 700; line-height: 1.25; color: #fff; text-align: center; overflow-wrap: anywhere; }
.scorebox { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); font-size: 30px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.scorebox .sep { color: var(--faint); font-weight: 600; }
.vs { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; color: var(--faint); padding: 0 6px; }
.kickoff { margin-top: 16px; font-size: 14px; color: var(--text-2); text-align: center; }
.kickoff time { font-weight: 600; color: #fff; }
.locked { position: relative; margin-top: 16px; padding: 16px; border-radius: 20px; background: rgba(9, 12, 22, 0.8); border: 1px dashed rgba(167, 139, 250, 0.38); text-align: left; overflow: hidden; }
.locked-head { display: flex; align-items: center; gap: 10px; }
.locked-head .lock { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(139, 92, 246, 0.2); color: var(--violet-3); }
.locked-head .lock svg { width: 18px; height: 18px; }
.locked-head b { display: block; font-size: 15px; color: #fff; }
.locked-head span { font-size: 13px; color: var(--muted); }
.ghost-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; filter: blur(5px); opacity: 0.75; user-select: none; pointer-events: none; }
.ghost-bars i { display: block; height: 44px; border-radius: 12px; background: linear-gradient(180deg, rgba(99, 102, 241, 0.32), rgba(99, 102, 241, 0.08)); border: 1px solid rgba(129, 140, 248, 0.25); }
.ghost-bars i:nth-child(2) { background: linear-gradient(180deg, rgba(100, 116, 139, 0.3), rgba(100, 116, 139, 0.06)); border-color: rgba(148, 163, 184, 0.2); }
.ghost-bars i:nth-child(3) { background: linear-gradient(180deg, rgba(248, 113, 113, 0.26), rgba(248, 113, 113, 0.05)); border-color: rgba(248, 113, 113, 0.2); }
.locked-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.locked-list li { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text-2); }
.about-match { margin-top: 26px; text-align: left; }
.about-match h2 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: #fff; }
.about-match p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 12, 24, 0.6), #04050b); padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 20px; padding: 52px 0 34px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { margin: 14px 0 0; max-width: 300px; font-size: 14px; color: var(--muted); }
.footer-brand .store-badges { margin-top: 20px; }
.footer-brand .store-badge img { height: 40px; }
.footer-col h2 { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 15px; text-decoration: none; }
.footer-col a:hover { color: var(--violet-3); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); color: var(--muted); transition: color 0.15s ease, border-color 0.15s ease; }
.socials a:hover { color: #fff; border-color: rgba(167, 139, 250, 0.5); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; flex-direction: column; gap: 14px; padding: 22px 0 30px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.footer-bottom p { margin: 0; }
.footer-bottom img { display: block; height: 44px; width: auto; }
.footer-min { padding: 26px 0 30px; text-align: center; font-size: 13px; color: var(--faint); }
.footer-min nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 12px; }
.footer-min a { color: var(--muted); text-decoration: none; }
.footer-min a:hover { color: var(--violet-3); }
.footer-min p { margin: 0 auto; max-width: 560px; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 72px 0 44px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ── Mobile download dock ─────────────────────────────────────────── */
.dock {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px;
  background: rgba(14, 16, 32, 0.94); border: 1px solid rgba(167, 139, 250, 0.32);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transform: translateY(calc(100% + 30px)); visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.3s;
}
.dock.is-visible { transform: none; visibility: visible; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s; }
.dock img { flex: none; width: 46px; height: 46px; border-radius: 12px; }
.dock-text { flex: 1; min-width: 0; line-height: 1.25; }
.dock-text b { display: block; font-size: 15px; color: #fff; }
.dock-text span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .btn { min-height: 42px; padding: 9px 18px; border-radius: 12px; font-size: 15px; }
@media (min-width: 900px) { .dock { display: none; } }

/* ── Cookie notice (rendered by partials/analytics) ──────────────── */
#sv-cookie-banner {
  position: fixed; z-index: 80; left: 10px; right: 10px; bottom: calc(10px + var(--dock) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 14px 14px 16px; border-radius: 18px;
  background: rgba(14, 16, 32, 0.97); border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  font-family: var(--font); font-size: 13.5px; line-height: 1.45; color: var(--text-2);
}
#sv-cookie-banner p { flex: 1 1 100%; margin: 0; }
#sv-cookie-banner a { color: var(--violet-2); }
#sv-cookie-banner .sv-btn { flex: 1 1 0; min-height: 40px; padding: 8px 16px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
#sv-cookie-banner .sv-btn:hover { background: rgba(255, 255, 255, 0.14); }
#sv-cookie-banner #sv-cookie-accept { border-color: transparent; background: var(--violet); color: #fff; }
#sv-cookie-banner #sv-cookie-accept:hover { background: #7c3aed; }
/* Wide screens: bottom right, clear of the left-hand calls to action and QR code */
@media (min-width: 720px) { #sv-cookie-banner { left: auto; right: 20px; bottom: 20px; max-width: 420px; } }

/* ── Legal pages: brand chrome around their own content ──────────── */
body.site.legal-page { background: var(--bg); }
.legal-page main { font-family: var(--font); }
