/* ============================================================
   LIGA F · SPONSORSHIP REPORTING PLATFORM (click-demo)
   Brand language: Liga F Moeve — deep cobalt blue + electric
   purple + hot pink, on light surfaces.
   Fonts: Bricolage Grotesque (display) + Onest (UI/body).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Onest:wght@300;400;500;600;700;800&display=swap');

/* ----------- Brand tokens (sampled from ligaf.es + laliga.com) ----------- */
:root {
  /* Brand */
  --ligaf-navy:        #0E1A2D;        /* hero band, header, footer */
  --ligaf-navy-deep:   #050B17;        /* deepest navy */
  --ligaf-blue:        #00256A;        /* primary brand — Moeve banner */
  --ligaf-blue-bright: #206DC5;        /* interactive blue */
  --ligaf-blue-light:  #047DBA;
  --ligaf-purple:      #5F29FF;        /* SIGNATURE accent */
  --ligaf-purple-deep: #4218CC;
  --ligaf-pink:        #FF2E68;        /* hot CTA, live */
  --ligaf-red:         #EB171C;        /* LALIGA red — used sparingly */
  --ligaf-lime:        #C6FF3A;        /* secondary accent — KPI delta good */

  /* Surfaces */
  --bg:                #FAFAFA;
  --surface:           #FFFFFF;
  --surface-lilac:     #F4F1FF;        /* alt section bg, pale lilac */
  --surface-blue:      #ECF1F8;
  --surface-dark:      var(--ligaf-navy);

  /* Ink */
  --ink:               #141E23;
  --ink-soft:          #4A5260;
  --ink-mute:          #7A8295;
  --ink-on-dark:       #FFFFFF;
  --ink-on-dark-soft:  rgba(255,255,255,0.82);

  /* Lines */
  --line:              #E4E4E9;
  --line-soft:         #EFEFF3;
  --line-on-dark:      rgba(255,255,255,0.16);

  /* Status */
  --good:              #1FB386;
  --bad:               #E14F4F;

  /* Radii */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 26px;

  /* Shadows */
  --shadow-card:      0 8px 28px -12px rgba(14,26,45,0.12);
  --shadow-card-lg:   0 24px 60px -22px rgba(14,26,45,0.22);
  --shadow-purple:    0 8px 28px -10px rgba(95,41,255,0.45);

  /* Header */
  --header-top-h: 32px;
  --header-h:     64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { background: var(--bg); }
img, svg { max-width: 100%; }

body {
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4, .display {
  font-family: 'Bricolage Grotesque', 'Onest', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(40px, 6.5vw, 84px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 48px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: 18px; }
p { line-height: 1.55; margin: 0; }
a { color: var(--ligaf-purple); }
.accent { color: var(--ligaf-purple); }
.accent-pink { color: var(--ligaf-pink); }
.accent-blue { color: var(--ligaf-blue); }

.eyebrow {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ligaf-purple);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.on-dark { color: var(--ligaf-lime); }
.eyebrow.plain::before { display: none; }

.kicker {
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}
.muted { color: var(--ink-soft); }

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ================== DEMO DISCLAIMER ================== */
.demo-disclaimer {
  position: relative;
  z-index: 60;
  background: #FFC233;
  color: #1A1407;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #E8A300;
}
.demo-disclaimer .container {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.demo-disclaimer .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px;
  background: #1A1407;
  color: #FFC233;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}
.demo-disclaimer .pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FFC233;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.demo-disclaimer .msg strong { font-weight: 800; }
@media (max-width: 640px) {
  .demo-disclaimer { font-size: 11px; padding: 6px 0; }
}

/* ================== AUTH OVERLAY ================== */
.auth-overlay {
  position: fixed; inset: 0;
  z-index: 1000;
  display: grid; place-items: center;
  padding: 24px;
  background-color: var(--ligaf-navy);
  background-image:
    radial-gradient(45% 60% at 18% 22%, rgba(95,41,255,0.55) 0%, transparent 60%),
    radial-gradient(55% 70% at 88% 84%, rgba(255,46,104,0.28) 0%, transparent 60%),
    radial-gradient(40% 50% at 82% 12%, rgba(32,109,197,0.32) 0%, transparent 65%),
    linear-gradient(160deg, #0E1A2D 0%, #00256A 55%, #050B17 100%);
  background-size: cover;
  background-position: center;
}
/* Big Liga F Moeve watermark — anchored bottom-right, mirroring the laliga.com/futbol-femenino banner */
.auth-overlay::after {
  content: '';
  position: absolute;
  right: -8%; bottom: -14%;
  width: 62vmin; height: 62vmin;
  background: url('/assets/logos/brand/liga-f-moeve-white.png') center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
/* Wave motif (Liga F Moeve banner style) + film grain */
.auth-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'><g fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.12'><path d='M-50 580 Q150 500 350 580 T 850 580'/><path d='M-50 620 Q150 540 350 620 T 850 620'/><path d='M-50 660 Q150 580 350 660 T 850 660'/><path d='M-50 700 Q150 620 350 700 T 850 700'/><path d='M-50 740 Q150 660 350 740 T 850 740'/></g></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.14 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: no-repeat, repeat;
  background-size: cover, 160px 160px;
  background-position: center, 0 0;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.auth-stack {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%; max-width: 460px;
  position: relative;
  z-index: 1;
}
.auth-card {
  width: 100%;
  background: white;
  border-radius: var(--r-xl);
  padding: 40px 36px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
}
.auth-card .auth-logo { display: block; height: 38px; margin-bottom: 24px; }
.auth-card .auth-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ligaf-purple); font-weight: 700;
  margin-bottom: 18px;
}
.auth-card .auth-eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ligaf-pink); box-shadow: 0 0 8px var(--ligaf-pink);
}
.auth-card h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.05;
  margin-bottom: 14px;
}
.auth-card h2 .accent { color: var(--ligaf-purple); }
.auth-card .auth-lead {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 28px;
}
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-card .field {
  position: relative;
  display: flex; align-items: center;
  background: var(--surface-lilac);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 14px;
  transition: border-color .15s, background .15s;
}
.auth-card .field:focus-within {
  border-color: var(--ligaf-purple);
  background: white;
  box-shadow: 0 0 0 3px rgba(95,41,255,0.18);
}
.auth-card .field svg { color: var(--ink-mute); margin-right: 10px; }
.auth-card input[type="password"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.auth-card input::placeholder { color: var(--ink-mute); }
.auth-card .auth-submit {
  margin-top: 8px;
  padding: 14px 22px;
  background: var(--ligaf-purple);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: var(--shadow-purple);
}
.auth-card .auth-submit:hover { background: var(--ligaf-purple-deep); transform: translateY(-1px); }
.auth-card .auth-error {
  display: none;
  margin-top: 6px;
  padding: 10px 12px;
  background: rgba(225,79,79,0.08);
  border: 1px solid rgba(225,79,79,0.35);
  color: var(--bad);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
}
.auth-card .auth-error.is-visible { display: block; animation: fadeUp .25s ease both; }
.auth-card .auth-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.auth-credit {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.auth-credit-label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; color: rgba(255,255,255,0.78);
}
.auth-credit-logo {
  height: 18px;
  filter: brightness(0) invert(1);
  display: block;
}

/* ================== HEADER ================== */
.site-header { position: sticky; top: 0; z-index: 50; }

.header-top {
  background: var(--ligaf-navy);
  height: var(--header-top-h);
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-top .container {
  display: flex; align-items: center; gap: 18px;
  width: 100%;
}
.header-top a {
  color: var(--ink-on-dark-soft);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.header-top .program {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 12px 0 0;
  height: var(--header-top-h);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ligaf-lime);
  white-space: nowrap;
}
.header-top .program::after {
  content: '';
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.18);
  margin-left: 14px;
}
@media (max-width: 720px) {
  .header-top .program { font-size: 10px; letter-spacing: 0.10em; padding-right: 0; }
  .header-top .program::after { display: none; }
}
.header-top a:hover { color: white; }
.header-top .top-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 6px;
  height: var(--header-top-h);
}
.header-top .right { margin-left: auto; display: flex; gap: 16px; align-items: center; }

.header-main {
  background: var(--ligaf-blue);
  height: var(--header-h);
  display: flex; align-items: center;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  position: relative;
}
.header-main::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ligaf-purple) 0%, var(--ligaf-pink) 100%);
}
.header-main .container {
  display: flex; align-items: center; gap: 28px;
  width: 100%;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: white;
  flex: none;
}
.brand .liga-logo {
  height: 40px;
  width: auto;
  display: block;
}
.brand-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.35);
}
.brand-sub {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
  line-height: 1;
}
@media (max-width: 640px) {
  .brand .liga-logo { height: 32px; }
  .brand-divider, .brand-sub { display: none; }
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  color: var(--ink-on-dark-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  transition: color .2s, background .2s;
  position: relative;
}
.nav a:hover { color: white; background: rgba(255,255,255,0.10); }
.nav a.active { color: white; }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: -2px;
  height: 3px;
  background: var(--ligaf-pink);
  border-radius: 2px;
}
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 8px;
  color: white; cursor: pointer;
  margin-left: auto;
}
.nav-toggle .bars { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after  { top:  6px; }

.login-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  color: white; text-decoration: none;
  font-size: 13px; font-weight: 600;
}
.login-btn:hover { border-color: white; background: rgba(255,255,255,0.10); }

/* ================== BUTTONS ================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn-primary {
  background: var(--ligaf-purple);
  color: white;
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover { background: var(--ligaf-purple-deep); transform: translateY(-1px); }

.btn-pink {
  background: var(--ligaf-pink);
  color: white;
}
.btn-pink:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-blue {
  background: var(--ligaf-blue);
  color: white;
}
.btn-blue:hover { background: var(--ligaf-blue-bright); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ligaf-purple);
  border-color: var(--ligaf-purple);
}
.btn-ghost:hover { background: var(--ligaf-purple); color: white; }

.btn-ghost-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.6);
}
.btn-ghost-light:hover { background: white; color: var(--ligaf-blue); }

.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

/* ================== ICONS ================== */
.icon {
  width: 1em; height: 1em;
  flex: none;
  display: inline-block;
  vertical-align: -0.18em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.fill { fill: currentColor; stroke: none; }
.icon.lg { font-size: 22px; }

/* ================== CARDS ================== */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.card-lilac { background: var(--surface-lilac); border-color: transparent; }

/* Chip / pill */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--ligaf-purple); color: var(--ligaf-purple); }
.chip.is-active {
  background: var(--ligaf-purple);
  color: white;
  border-color: var(--ligaf-purple);
}

/* ================== CLUB CREST BADGE ================== */
.crest {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
  padding: 4px;
  flex: none;
  overflow: hidden;
}
.crest img { max-width: 100%; max-height: 100%; object-fit: contain; }
.crest.sm { width: 36px; height: 36px; border-radius: 8px; padding: 3px; }
.crest.lg { width: 88px; height: 88px; border-radius: 16px; padding: 6px; }
.crest.xl { width: 140px; height: 140px; border-radius: 20px; padding: 10px; }

/* ================== FOOTER ================== */
.site-footer {
  background: var(--ligaf-navy);
  color: var(--ink-on-dark-soft);
  padding: 56px 0 40px;
  margin-top: 80px;
  border-top: 4px solid var(--ligaf-purple);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .site-footer .container { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ligaf-lime);
  margin: 0 0 16px;
  font-family: 'Onest', sans-serif;
  font-weight: 700;
}
.site-footer .brand { color: white; }
.site-footer .brand .liga-logo { height: 46px; }
.site-footer p, .site-footer a {
  font-size: 13px; line-height: 1.55;
  color: var(--ink-on-dark-soft);
  text-decoration: none;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 4px 0; }
.site-footer a:hover { color: white; }
.site-footer .meta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

/* ================== PAGE HERO ================== */
.page-hero {
  background: var(--ligaf-navy);
  color: white;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 90% 0%, rgba(95,41,255,0.45) 0%, transparent 55%),
    radial-gradient(40% 60% at 0% 100%, rgba(255,46,104,0.20) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .crumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}
.page-hero .crumb a { color: inherit; text-decoration: none; }
.page-hero .crumb a:hover { color: white; }
.page-hero .crumb .sep { color: var(--ligaf-pink); }
.page-hero h1 { color: white; }
.page-hero h1 .accent { color: var(--ligaf-lime); }
.page-hero h1 .accent-pink { color: var(--ligaf-pink); }
.page-hero .lead {
  max-width: 720px;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.86);
}

/* ================== SECTIONS ================== */
section.block {
  padding: 64px 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 700px) { section.block { padding: 40px 0; } }
section.block.alt { background: var(--surface-lilac); }
section.block.dark {
  background: var(--ligaf-navy);
  color: white;
  border-bottom: none;
}
section.block.dark h2 { color: white; }

.block-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.block-head h2 { max-width: 20ch; }
.block-head h2 .accent { color: var(--ligaf-purple); }
.block-head p { color: var(--ink-soft); max-width: 54ch; margin: 0; }
section.block.dark .block-head p { color: rgba(255,255,255,0.78); }

/* ================== KPI GRID ================== */
.kpi-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .kpi-grid { grid-template-columns: 1fr; } }

.kpi {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.kpi .label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700;
  margin-bottom: 18px;
}
.kpi .v {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.kpi .v em { font-style: normal; color: var(--ligaf-purple); }
.kpi .v .pct, .kpi .v .unit {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--ink-mute);
  margin-left: 4px;
  letter-spacing: 0;
}
.kpi .sub {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.kpi .sub strong { color: var(--ink); }
.kpi.featured {
  background: linear-gradient(155deg, var(--ligaf-purple) 0%, var(--ligaf-blue) 100%);
  color: white;
  border-color: transparent;
}
.kpi.featured .label { color: rgba(255,255,255,0.78); }
.kpi.featured .v { color: white; }
.kpi.featured .v em { color: var(--ligaf-lime); }
.kpi.featured .sub { color: rgba(255,255,255,0.88); }
.kpi.featured .sub strong { color: white; }

/* Delta pill */
.delta {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  background: rgba(31,179,134,0.12);
  color: var(--good);
  margin-left: 8px;
}
.delta.bad { background: rgba(225,79,79,0.12); color: var(--bad); }
.delta.flat { background: var(--line-soft); color: var(--ink-mute); }

/* ================== BAR CHARTS ================== */
.hbar {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 0;
}
.hbar .lbl { width: 140px; font-size: 13px; font-weight: 600; color: var(--ink); }
.hbar .track { flex: 1; height: 12px; background: var(--surface-blue); border-radius: 999px; overflow: hidden; }
.hbar .fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--ligaf-purple) 0%, var(--ligaf-pink) 100%);
  width: var(--w, 50%);
  animation: barGrow 1.2s cubic-bezier(.2,.7,.2,1) both;
}
.hbar .v { width: 56px; text-align: right; font-weight: 700; font-family: 'Bricolage Grotesque', sans-serif; }
.hbar.alt .fill { background: var(--ligaf-blue-bright); }

@keyframes barGrow { from { width: 0; } to { width: var(--w, 50%); } }

/* Stacked sponsor share-of-voice bar */
.sov-bar {
  display: flex;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--line-soft);
  margin: 12px 0 18px;
}
.sov-bar .seg {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  position: relative;
  min-width: 0;
  transition: filter .2s;
}
.sov-bar .seg:hover { filter: brightness(1.10); }
.sov-bar .seg span {
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* Hide labels in segments narrower than ~70px to prevent collisions */
@container (max-width: 1) {} /* placeholder so CSS parses; real rule below */
.sov-bar .seg[data-narrow] span { visibility: hidden; }

/* Full sponsor legend (10 swatches) */
.sov-legend-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 18px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-soft);
}
.sov-legend-full .row {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.sov-legend-full .sw {
  width: 12px; height: 12px; border-radius: 3px; flex: none;
}
.sov-legend-full .nm { font-weight: 600; color: var(--ink); }
.sov-legend-full .pct {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  color: var(--ink-soft);
  margin-left: auto;
}

/* ================== TABLES ================== */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tbl th, .tbl td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.tbl th {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
  background: var(--surface-lilac);
}
.tbl tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; }
.tbl .row-club { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.tbl .row-club .crest.sm { width: 30px; height: 30px; }
.tbl a { color: var(--ligaf-blue-bright); text-decoration: none; font-weight: 600; }
.tbl a:hover { color: var(--ligaf-purple); text-decoration: underline; }

/* ================== TEAM CARDS GRID ================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-lg); border-color: var(--ligaf-purple); }
.team-card .tc-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.team-card .tc-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.team-card .tc-city {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.team-card .tc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.team-card .tc-stat .l {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700;
}
.team-card .tc-stat .v {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-top: 4px;
  color: var(--ligaf-purple);
}
.team-card .arrow {
  position: absolute;
  top: 22px; right: 22px;
  color: var(--ink-mute);
  transition: transform .25s, color .25s;
}
.team-card:hover .arrow { color: var(--ligaf-purple); transform: translate(3px, -3px); }

/* ================== SPONSOR ROWS / LOGO STRIPS ================== */
.sponsor-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  align-items: center;
}
.sponsor-strip .sp {
  display: flex; align-items: center; justify-content: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  height: 90px;
}
.sponsor-strip .sp img { max-height: 56px; max-width: 100%; object-fit: contain; filter: grayscale(0.1); transition: filter .25s, transform .25s; }
.sponsor-strip .sp:hover img { filter: none; transform: scale(1.04); }

.sponsor-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-card);
}
.sponsor-card .sp-logo {
  width: 80px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-lilac);
  border-radius: var(--r-md);
  padding: 6px;
}
.sponsor-card .sp-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.sponsor-card .sp-meta .name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.sponsor-card .sp-meta .role {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700;
  margin-top: 4px;
}
.sponsor-card .sp-kpi {
  text-align: right;
}
.sponsor-card .sp-kpi .v {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--ligaf-purple);
  line-height: 1;
}
.sponsor-card .sp-kpi .l {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700;
  margin-top: 4px;
}

/* ================== MATCHDAY LINE / SPARK ================== */
.spark {
  height: 70px; width: 100%;
  display: block;
}

/* ================== TILES (landing entry points) ================== */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1100px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .tile-grid { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px 32px;
  text-decoration: none;
  color: inherit;
  min-height: 220px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-lg); border-color: var(--ligaf-purple); }
.tile .num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
  color: var(--ligaf-purple);
  margin-bottom: 24px; display: block;
}
.tile h3 { font-size: 22px; margin-bottom: 10px; }
.tile p { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.tile .arr { color: var(--ligaf-purple); }
.tile.featured {
  background: linear-gradient(165deg, var(--ligaf-purple) 0%, var(--ligaf-blue) 100%);
  color: white; border-color: transparent;
}
.tile.featured h3, .tile.featured .num, .tile.featured .arr { color: white; }
.tile.featured p { color: rgba(255,255,255,0.84); }
.tile.featured .num { color: var(--ligaf-lime); }
.tile.coming {
  background: var(--surface-lilac);
  border-color: transparent;
  pointer-events: none;
}
.tile.coming .pill {
  display: inline-block;
  padding: 3px 10px;
  background: var(--ligaf-pink);
  color: white;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ================== AI INSIGHT CALLOUT ================== */
.insight {
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ligaf-purple);
  border-radius: var(--r-md);
  padding: 20px 22px;
}
.insight .ai-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700;
  color: var(--ligaf-purple);
  margin-bottom: 10px;
}
.insight p { font-size: 14px; color: var(--ink); line-height: 1.55; }

/* ================== ANIMATIONS ================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s cubic-bezier(.2,.7,.2,1) both; }
.d-1 { animation-delay: .04s; }
.d-2 { animation-delay: .10s; }
.d-3 { animation-delay: .16s; }
.d-4 { animation-delay: .22s; }
.d-5 { animation-delay: .28s; }
.d-6 { animation-delay: .34s; }

@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  .d-1,.d-2,.d-3,.d-4,.d-5,.d-6 { animation-delay: 0s; }
  .fade-up { animation-duration: .35s; }
}

/* ================== RESPONSIVE NAV ================== */
@media (max-width: 960px) {
  .header-top .top-link.hide-mobile { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: calc(var(--header-top-h) + var(--header-h));
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: var(--ligaf-blue);
    transform: translateY(-110%);
    transition: transform .25s ease;
    z-index: 40;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 30px -12px rgba(0,0,0,0.4);
  }
  .nav a {
    padding: 14px 12px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    border-radius: 0;
    color: white;
  }
  .nav a:last-child { border-bottom: none; }
  .nav a.active::after { left: 12px; right: auto; width: 28px; bottom: 8px; }
  .nav.is-open { transform: translateY(0); }
}
@media (max-width: 640px) {
  :root { --header-top-h: 28px; }
  .header-top .right { gap: 10px; }
  .header-top .right a:nth-of-type(1),
  .header-top .right a:nth-of-type(2) { display: none; }
}

/* ================== UTILITIES ================== */
.flex { display: flex; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* AI insight grid layout used in dashboard */
.demo-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
