/* footlytics.app — colors mirror lib/core/theme/app_colors.dart (dark theme). */
:root {
  --bg: #07130d;
  --surface: #0d1f15;
  --surface-hi: #13291d;
  --border: #1f3a2a;
  --primary: #14532d;
  --accent: #22e07a;
  --accent-dark: #12b85e;
  --on-accent: #04130a;
  --text: #eff7f2;
  --muted: #8fa89a;
  --won: #22c55e;
  --draw: #eab308;
  --lost: #ef4444;
  --radius: 20px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 19, 13, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -0.3px; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand b { font-weight: 800; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 40px rgba(34, 224, 122, .35); }
.btn-primary:hover { box-shadow: 0 0 56px rgba(34, 224, 122, .5); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 520px at 75% -10%, rgba(20, 83, 45, .9), transparent 70%),
    radial-gradient(600px 420px at 0% 100%, rgba(34, 224, 122, .10), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(13, 31, 21, .7);
  color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -1.5px; margin: 18px 0 18px; font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Phone-style card preview (pure CSS, no screenshots needed) */
.preview {
  justify-self: center; width: 100%; max-width: 360px;
  border-radius: 32px; padding: 20px;
  background: linear-gradient(160deg, var(--surface-hi), var(--surface));
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 70px rgba(34, 224, 122, .12);
}
.preview .league { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.preview .teams { display: flex; align-items: center; justify-content: space-between; margin: 18px 0; }
.preview .team { width: 40%; text-align: center; font-weight: 800; font-size: 15px; }
.preview .crest {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px;
  background: radial-gradient(circle at 35% 30%, var(--surface-hi), var(--bg));
  border: 2px solid var(--accent); display: grid; place-items: center; font-weight: 900; color: var(--accent);
}
.preview .vs { font-weight: 900; color: var(--accent); }
.bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; gap: 3px; font-size: 13px; font-weight: 800; color: var(--on-accent); }
.bar div { display: grid; place-items: center; }
.bar-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.form { display: flex; gap: 6px; margin-top: 16px; align-items: center; font-size: 13px; color: var(--muted); }
.form b { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #06110a; font-size: 13px; }
.w { background: var(--won); } .d { background: var(--draw); } .l { background: var(--lost); }
.preview .score { margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.preview .score small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.preview .score strong { font-size: 26px; letter-spacing: 2px; }

/* Sections */
section { padding: 72px 0; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-title h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.8px; margin: 0 0 12px; }
.section-title p { color: var(--muted); margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-hi), var(--surface));
  border: 1px solid var(--border);
}
.card .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(34, 224, 122, .12); color: var(--accent); margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.leagues { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.leagues span { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; font-weight: 600; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 820px; margin: 0 auto; }
.plans .card ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.plans .card li { margin: 6px 0; }
.plans .vip { border-color: var(--accent); box-shadow: 0 0 60px rgba(34, 224, 122, .14); }
.plans .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .6px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); margin-left: 8px; vertical-align: middle; }

.final { text-align: center; }
.final .card { padding: 48px 26px; background: radial-gradient(600px 300px at 50% 0%, rgba(20, 83, 45, .9), var(--surface)); }
.final h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; letter-spacing: -.8px; }
.final p { color: var(--muted); margin: 0 0 26px; }

.disclaimer { font-size: 14px; color: var(--muted); text-align: center; max-width: 760px; margin: 0 auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Legal / text pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -1px; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; color: var(--accent); }
.doc p, .doc li { color: #cfdcd4; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.contact-card { margin-top: 28px; }
.contact-card .row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .row svg { width: 24px; height: 24px; color: var(--accent); flex: none; }

@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .nav a.hide-sm { display: none; }
  section { padding: 56px 0; }
}

/* ---------------------------------------------------------------------------
   Generated pages (site/build.mjs): match, league, /matches, homepage list
   --------------------------------------------------------------------------- */
.match-page { padding-top: 28px; padding-bottom: 24px; }
.match-page h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.12; letter-spacing: -.8px; margin: 28px 0 12px; }
.match-page h2 { font-size: 22px; margin: 40px 0 14px; }
.match-page .card + .card { margin-top: 16px; }
.h1-logo { display: inline-block; vertical-align: middle; margin-right: 12px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--text); }
.lead-text { font-size: 18px; color: #cfdcd4; max-width: 820px; }
.muted { color: var(--muted); font-size: 15px; }

.match-head { margin-top: 18px; }
.league-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.league-line a { color: var(--text); font-weight: 700; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 22px; }
.versus .side { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-weight: 800; font-size: 19px; }
.versus .side img { width: 72px; height: 72px; object-fit: contain; }
.versus .mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.versus .vs { font-size: 28px; font-weight: 900; color: var(--accent); }
.versus .score { font-size: 40px; font-weight: 900; letter-spacing: 2px; }
.versus small { color: var(--muted); font-size: 13px; }

.bar.big { height: 44px; font-size: 15px; margin-top: 14px; }
.pick-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.pick-row > div { flex: 1 1 160px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.pick-row small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.pick-row strong { font-size: 19px; }
.pill { display: inline-block; margin-top: 16px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--surface-hi); border: 1px solid var(--border); }
.pill.won { background: rgba(34, 197, 94, .15); border-color: var(--won); color: var(--won); }
.pill.lost { background: rgba(239, 68, 68, .12); border-color: var(--lost); color: var(--lost); }
.card.locked { border-color: var(--accent); background: radial-gradient(500px 220px at 50% 0%, rgba(20, 83, 45, .8), var(--surface)); }
.card.locked h3 { margin: 12px 0 8px; font-size: 21px; }
.card.locked p { margin: 0 0 18px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col .card + .card { margin-top: 0; }
.recent { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.recent td { padding: 8px 4px; border-top: 1px solid var(--border); color: #cfdcd4; }
.recent td:first-child { color: var(--muted); white-space: nowrap; }
.num { text-align: right; white-space: nowrap; }
.res { display: inline-block; min-width: 46px; text-align: center; padding: 2px 8px; border-radius: 8px; font-weight: 800; color: #06110a; }
.res.w { background: var(--won); } .res.d { background: var(--draw); } .res.l { background: var(--lost); }

.h2h { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.h2h strong { display: block; font-size: 44px; font-weight: 900; color: var(--accent); line-height: 1.1; }
.h2h div:nth-child(2) strong { color: var(--draw); }
.h2h div:nth-child(3) strong { color: #60a5fa; }
.h2h span { color: var(--muted); font-size: 14px; }

.table-card { padding: 8px 20px; overflow-x: auto; }
.standings { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.standings th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; padding: 10px 6px; }
.standings th:not(:nth-child(2)) { text-align: right; }
.standings td { padding: 12px 6px; border-top: 1px solid var(--border); }

.facts { padding-left: 22px; }
.facts li { margin: 8px 0; color: #cfdcd4; }

.list { padding: 6px 18px; }
.match-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); color: var(--text); font-weight: 600; }
.match-row:first-child { border-top: 0; }
.match-row:hover { text-decoration: none; background: rgba(34, 224, 122, .04); }
.match-row .t { display: flex; align-items: center; gap: 10px; min-width: 0; }
.match-row .t.r { justify-content: flex-end; text-align: right; }
.match-row .t img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.match-row .m { color: var(--muted); font-size: 14px; min-width: 64px; text-align: center; }
.match-row .m strong { color: var(--text); font-size: 16px; }
.league-links { justify-content: flex-start; margin: 18px 0 8px; }
.league-links a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 600; }
.league-links a:hover { border-color: var(--accent); text-decoration: none; }
.see-all { text-align: center; margin-top: 22px; }

.cta-band { padding: 40px 0; text-align: center; }
.cta-band .card { padding: 40px 24px; background: radial-gradient(600px 300px at 50% 0%, rgba(20, 83, 45, .9), var(--surface)); }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 32px); }
.cta-band p { color: var(--muted); margin: 0 0 22px; }
.page-disclaimer { padding-bottom: 32px; }

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .versus .side img { width: 56px; height: 56px; }
  .versus .side { font-size: 16px; }
  .versus .score { font-size: 32px; }
  .match-row { font-size: 14.5px; }
}
