/* Supersonic Leagues landing page — "Matchday" look, matching the app.
   Fonts are the app's own bundled Barlow files, copied in by build.sh. */

@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(fonts/Barlow-Regular.ttf) format("truetype"); }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url(fonts/Barlow-Medium.ttf) format("truetype"); }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(fonts/Barlow-SemiBold.ttf) format("truetype"); }
@font-face { font-family: Barlow; font-weight: 700; font-display: swap; src: url(fonts/Barlow-Bold.ttf) format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(fonts/BarlowCondensed-SemiBold.ttf) format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(fonts/BarlowCondensed-Bold.ttf) format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(fonts/BarlowCondensed-ExtraBold.ttf) format("truetype"); }

:root {
  --ground: #F3F4F1;
  --ink: #121614;
  --red: #C8102E;
  --white: #FFFFFF;
  --text-2: #3F4642;
  --muted: #5A615D;
  --line: #D9DCD6;
  --line-soft: #EEF0EC;
  --on-ink-muted: #C9CEC9;
  --radius: 12px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Barlow, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--ink); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 96px; }
.kicker { font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.h2 { margin-top: 8px; font-size: clamp(36px, 4.5vw, 56px); line-height: 0.95; }
.lede { margin-top: 20px; max-width: 40em; color: var(--text-2); }
.mark { border-radius: 8px; flex: none; }

/* ─── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-red:hover, .btn-ink:hover { color: var(--white); filter: brightness(1.12); }
.btn-outline { min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); font-size: 15px; }

/* ─── Nav ───────────────────────────────────────────── */
.top { border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.02em; text-transform: uppercase; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; font-size: 15px; }
.nav-links a { text-decoration: none; }

/* ─── Hero ──────────────────────────────────────────── */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 72px 88px; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-art { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hero h1 { font-size: clamp(44px, 6vw, 78px); line-height: 0.92; letter-spacing: -0.01em; }
.hero .lede { margin-top: 24px; font-size: 20px; max-width: 34em; }
.cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--muted); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.table { overflow: hidden; }
.table-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.table-head strong { font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.table-head span { font-size: 13px; font-weight: 600; color: var(--muted); }
.row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 40px 40px 48px; gap: 0 8px; padding: 10px 20px; border-top: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.row > :nth-child(n+3) { text-align: right; }
.row > :first-child, .row > :last-child { font-weight: 700; }
.row.cols { border-top: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.row.cols > * { font-weight: 700; }
.row.you { background: var(--ink); color: var(--white); }
.row.you .club { font-weight: 700; display: flex; align-items: center; gap: 8px; min-width: 0; }
.row.you .club::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--red); flex: none; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; padding: 2px 6px; border-radius: 4px; background: var(--red); }
.row.cutoff { border-top: 2px dashed var(--red); }
.table-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 20px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.table-foot strong { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 16px; }
.chip { flex: 1 1 160px; min-width: 0; padding: 18px 20px; border-radius: var(--radius); }
.chip.result { flex-basis: 220px; background: var(--red); color: var(--white); border: 0; }
.chip-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.chip.result .chip-label { color: var(--white); opacity: 0.85; }
.chip-big { margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; }
.chip-sub { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.chip.result .chip-sub { color: var(--white); }

/* ─── Fact strip ────────────────────────────────────── */
.strip { background: var(--ink); color: var(--white); }
.strip ul { list-style: none; margin: 0 auto; padding-block: 28px; display: flex; flex-wrap: wrap; gap: 16px 48px; font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: 0.02em; }
.strip li + li::before { content: "/"; color: #9AA19D; margin-right: 48px; }

/* ─── Features: four slices, the hovered one opens ──── */
.slices { margin-top: 48px; display: flex; gap: 8px; height: 520px; }
.slice {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--ink); color: var(--white);
  transition: flex-grow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.slice img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 22% 0;
  opacity: 0.32; filter: grayscale(0.35);
  transition: opacity 0.45s, filter 0.45s, transform 0.6s;
}
.slice::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18, 22, 20, 0.96) 18%, rgba(18, 22, 20, 0.35) 65%, rgba(18, 22, 20, 0.1));
}
.slice-copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 28px 24px; }
.slice-no { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--red); }
.slice h3 { margin-top: 6px; font-size: 28px; line-height: 1; }
.slice p {
  margin-top: 10px; font-size: 16px; color: var(--on-ink-muted); max-width: 30em;
  transition: opacity 0.3s;
}
@media (hover: hover) and (min-width: 861px) {
  .slice:hover { flex-grow: 2.6; }
  .slice:hover img { opacity: 0.62; filter: none; transform: scale(1.03); }
  .slices:hover .slice:not(:hover) p { opacity: 0; }
}

/* ─── How it works: each step beside the real screen ── */
.how { background: var(--white); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: flex; flex-direction: column; gap: 88px; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: center; }
.step:nth-child(even) .step-copy { order: 2; }
.step-copy { border-top: 4px solid var(--ink); padding-top: 20px; }
.step-no { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; color: var(--red); }
.steps h3 { margin-top: 12px; font-size: 32px; }
.steps p { margin-top: 10px; color: var(--text-2); }
.step-art { margin: 0; }
.window {
  border-radius: var(--radius); overflow: hidden; background: var(--ground);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(18, 22, 20, 0.06), 0 24px 48px -20px rgba(18, 22, 20, 0.28);
}
.window img { width: 100%; height: auto; }
/* Matchday's top-right corner, where "Watching now" sits. */
.window.zoom { position: relative; aspect-ratio: 16 / 9; }
.window.zoom img { position: absolute; top: 0; right: 0; width: 250%; max-width: none; }
.invite { position: relative; padding: 0 0 72px; }
.invite img {
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(18, 22, 20, 0.08), 0 24px 48px -16px rgba(18, 22, 20, 0.35);
}
.invite-code { width: 58%; height: auto; transform: rotate(-2deg); }
.invite-shirt { position: absolute; right: 0; bottom: 0; width: 62%; height: auto; transform: rotate(1.5deg); }

/* ─── Download ──────────────────────────────────────── */
.downloads { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.dl {
  display: flex; align-items: center; gap: 18px; min-height: 112px;
  padding: 20px 20px 20px 24px; border-radius: var(--radius); text-decoration: none;
}
.dl-os { flex: none; }
.dl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-for { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.dl strong { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.dl-sub { font-size: 15px; }
.dl-arrow {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); color: var(--white);
  transition: transform 0.2s;
}
a.dl {
  background: var(--ink); color: var(--white);
  box-shadow: 0 0 0 rgba(18, 22, 20, 0);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
a.dl .dl-for, a.dl .dl-sub { color: var(--on-ink-muted); }
a.dl:hover, a.dl:focus-visible {
  color: var(--white); background: #1E2421;
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -16px rgba(18, 22, 20, 0.55);
}
a.dl:hover .dl-arrow, a.dl:focus-visible .dl-arrow { transform: translateY(3px); }
a.dl:active { transform: translateY(0); }
.dl.later { background: transparent; border: 1px dashed #9AA19D; color: var(--text-2); }
.dl.later .dl-for, .dl.later .dl-sub { color: var(--muted); }
.console-note { margin-top: 20px; font-size: 15px; color: var(--text-2); }

/* ─── Support ───────────────────────────────────────── */
.support { padding-top: 0; }
.support-card {
  position: relative; overflow: hidden; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: 64px 24px; border-radius: 20px;
  background: #FBEDEF; border: 1px solid #F2D3D8;
}
.support-mark {
  display: grid; place-items: center; width: 88px; height: 88px; margin-bottom: 20px;
  border-radius: 50%; background: var(--white); color: var(--red);
  box-shadow: 0 12px 28px -14px rgba(200, 16, 46, 0.6);
}
.support .lede { max-width: 34em; }
.support .btn { margin-top: 28px; }
.support-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ─── FAQ ───────────────────────────────────────────── */
.faq h2 { font-size: clamp(32px, 4vw, 48px); line-height: 0.95; }
.faq dl { margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 48px; }
.faq div { border-top: 1px solid #C9CEC9; padding-top: 16px; }
.faq dt { font-size: 18px; font-weight: 700; }
.faq dd { margin: 6px 0 0; color: var(--text-2); font-size: 16px; }

/* ─── Footer ────────────────────────────────────────── */
footer { background: var(--ink); color: var(--on-ink-muted); font-size: 14px; }
footer .inner { padding-block: 48px; display: flex; flex-direction: column; gap: 24px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.foot-row .brand { color: var(--white); gap: 10px; }
.foot-row .brand span { font-size: 20px; }
.foot-row a { color: var(--white); text-decoration: none; font-weight: 600; }
.foot-row a:hover { color: var(--white); text-decoration: underline; }
.disclaimer { max-width: 60em; line-height: 1.6; }

@media (max-width: 560px) {
  .section { padding-block: 64px; }
  .hero { padding-block: 48px 64px; gap: 40px; }
  .strip li + li::before { margin-right: 16px; }
  .strip ul { gap: 8px 16px; font-size: 18px; }
}

@media (max-width: 860px) {
  .slices { flex-direction: column; height: auto; }
  .slice { flex: none; height: 300px; }
  .slice img { opacity: 0.42; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step:nth-child(even) .step-copy { order: 0; }
  .steps { gap: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .slice, .slice img, .slice p, a.dl, .dl-arrow { transition: none; }
}

/* ─── Legal pages (privacy.html, terms.html) ────────── */
.legal { max-width: 760px; padding-block: 64px 96px; }
.legal .updated { margin-top: 12px; color: var(--muted); font-size: 15px; }
.legal h2 { margin-top: 48px; font-size: 28px; line-height: 1.05; }
.legal h3 { margin-top: 24px; font-family: Barlow, system-ui, sans-serif; font-weight: 700; font-size: 17px; text-transform: none; }
.legal p, .legal ul { margin-top: 12px; color: var(--text-2); }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal li ul { margin-top: 6px; }
.legal b { color: var(--ink); }
.legal .summary { margin-top: 32px; padding: 24px 28px; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: var(--radius); }
.legal .summary h2 { margin-top: 0; font-size: 22px; }
.legal .todo { background: #FFF1B8; color: var(--ink); padding: 0 4px; border-radius: 4px; }
.nav-links a[aria-current="page"] { color: var(--red); }
@media (max-width: 560px) { .legal { padding-block: 40px 64px; } .legal .summary { padding: 18px 20px; } }
