/* Liga XXL website — builds on the app's tokens and components in app.css. */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.site { padding-bottom: 0; }
.site a { text-decoration: none; }

/* ---------- nav ---------- */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 18px; padding: calc(12px + var(--safe-t)) clamp(16px, 4vw, 48px) 12px; transition: background .2s, border-color .2s, padding .2s; border-bottom: 3px solid transparent; }
.site-nav.scrolled { background: rgba(255, 245, 230, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--ink); padding-top: calc(8px + var(--safe-t)); padding-bottom: 8px; }
.site-nav .brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 18px; color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.site-nav.scrolled .brand { color: var(--ink); text-shadow: none; }
.site-nav nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav nav a { font-weight: 800; padding: 8px 12px; border-radius: 10px; color: #fff; border: 2px solid transparent; }
.site-nav nav a:hover { background: #fff; color: var(--ink); border-color: var(--ink); }
.site-nav.scrolled nav a { color: var(--ink); }
.site-nav.scrolled nav a:hover { background: var(--yellow); }
.menu-btn { display: none; margin-left: 8px; width: 44px; height: 44px; border: var(--border); border-radius: 12px; background: #fff; box-shadow: 2px 2px 0 var(--ink); padding: 10px 9px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-btn i { display: block; height: 3px; background: var(--ink); border-radius: 3px; transition: transform .2s, opacity .2s; }
@media (max-width: 860px) {
  .site-nav nav { position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; gap: 6px; background: var(--bg); border-bottom: 3px solid var(--ink); padding: calc(80px + var(--safe-t)) 20px 20px; transform: translateY(-110%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); z-index: -1; }
  .site-nav nav a, .site-nav.scrolled nav a { color: var(--ink); font-size: 20px; font-family: var(--display); text-transform: uppercase; }
  .menu-open .site-nav nav { transform: none; }
  .menu-open .site-nav .brand { color: var(--ink); text-shadow: none; }
  .menu-btn { display: flex; }
  .nav-login { margin-left: auto; }
  .menu-open .menu-btn i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-open .menu-btn i:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 420px) { .site-nav .brand span { display: none; } }

/* ---------- hero ---------- */
.s-hero { position: relative; overflow: hidden; color: #fff; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(96px + var(--safe-t)) clamp(16px, 5vw, 64px) 40px; background: radial-gradient(70% 70% at 70% 40%, #ff6a4d 0%, #e63b2e 55%, #c42a1f 100%); border-bottom: 3px solid var(--ink); }
.s-hero::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 72% 42%, rgba(255, 255, 255, .07) 0 10deg, transparent 10deg 20deg); pointer-events: none; }
.s-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; max-width: 1200px; width: 100%; margin: 0 auto; }
.s-hero-copy h1 { font-size: clamp(42px, 7vw, 92px); line-height: .92; text-shadow: 4px 4px 0 var(--ink); margin: 14px 0 18px; }
.s-hero-copy h1 span { color: var(--yellow); }
.s-hero-copy p { font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; max-width: 560px; line-height: 1.5; margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.big-btn { padding: 16px 26px; font-size: 18px; border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
.s-hero-logo { display: flex; justify-content: center; padding: 70px 0; }
.site-logo { width: min(30vw, 340px); }
.kicker-tag { display: inline-block; background: var(--yellow); color: var(--ink); border: var(--border); border-radius: 999px; padding: 5px 14px; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; box-shadow: 3px 3px 0 var(--ink); text-shadow: none; }
.kicker-tag.light { background: #fff; }
.stat-strip { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1200px; width: 100%; margin: 40px auto 0; }
.stat-strip div { background: #fff; color: var(--ink); border: var(--border); border-radius: 16px; box-shadow: var(--pop); padding: 14px 18px; }
.stat-strip div:nth-child(1) { background: var(--yellow); }
.stat-strip div:nth-child(2) { background: var(--sky); }
.stat-strip div:nth-child(3) { background: var(--mint); }
.stat-strip div:nth-child(4) { background: var(--pink); }
.stat-strip b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3.4vw, 40px); font-variant-numeric: tabular-nums; }
.stat-strip span { font-weight: 800; font-size: 13px; text-transform: uppercase; opacity: .75; }
@media (max-width: 860px) {
  .s-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .s-hero-copy { order: 2; }
  .s-hero-copy p { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .s-hero-logo { order: 1; padding: 40px 0 50px; }
  .site-logo { width: min(48vw, 240px); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); color: #fff; border-bottom: 3px solid var(--ink); padding: 14px 0; }
.marquee-track { display: flex; align-items: center; gap: 26px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 18px; white-space: nowrap; }
.mq-item .ic { filter: none; }
.mq-dot .ic { filter: none; opacity: .9; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.s-section { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 40px) 0; }
.s-head { text-align: center; margin-bottom: 34px; }
.s-head.left { text-align: left; margin-bottom: 0; }
.s-head h2 { font-size: clamp(32px, 5vw, 56px); line-height: .95; margin-top: 14px; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); font-weight: 500; max-width: 620px; margin: 16px 0 0; }
.lead.center { margin: 16px auto 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: #fff; border: var(--border); border-radius: 20px; box-shadow: var(--pop-lg); padding: 26px 22px 22px; }
.step:nth-child(1) { background: var(--yellow); }
.step:nth-child(2) { background: var(--sky); }
.step:nth-child(3) { background: var(--mint); }
.step:nth-child(4) { background: var(--pink); }
.step-n { position: absolute; top: -18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 20px; }
.step-ic { height: 70px; display: flex; align-items: center; }
.step-ic .ic { filter: drop-shadow(3px 3px 0 var(--ink)); }
.step h3 { font-size: 24px; margin: 14px 0 8px; }
.step p { margin: 0; font-weight: 600; line-height: 1.5; }

.s-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .s-split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; }
.ticks li > span { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 2px solid var(--ink); }
.ticks li > span .ic { filter: none; }
.fat-card { padding: 20px; }
.fat-list { display: grid; gap: 12px; }
.fat-row { display: flex; align-items: center; gap: 12px; }
.fat-row .bar { margin-top: 6px; height: 14px; }
.fat-row .bar i { transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.fat-pos { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 13px; flex: none; }
.fat-row:first-child .fat-pos { background: var(--yellow); }
.fat-num { text-align: right; min-width: 64px; }
.fat-num b { display: block; font-family: var(--display); font-weight: 900; font-size: 18px; }
.fat-num span { font-size: 12px; color: var(--muted); font-weight: 700; }

/* ---------- teams ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { position: relative; overflow: hidden; background: #fff; border: var(--border); border-radius: 22px; box-shadow: var(--pop-lg); padding: 22px; text-align: center; transition: transform .2s, box-shadow .2s; }
.team-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 110px; background: var(--team); border-bottom: 3px solid var(--ink); }
.team-card:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 9px 9px 0 var(--ink); }
.team-crest { position: relative; display: flex; justify-content: center; margin-top: 10px; }
.team-crest .crest-ic { filter: drop-shadow(4px 4px 0 var(--ink)); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.team-card:hover .team-crest .crest-ic { transform: rotate(-8deg) scale(1.08); }
.team-card h3 { font-size: 20px; margin: 14px 0 10px; }
.team-meta { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.team-meta span { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: 13px; background: var(--bg-2); }

/* ---------- table & fixtures ---------- */
.table-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 960px) { .table-layout { grid-template-columns: 1fr; } }
.side-col { display: grid; gap: 22px; }
.site .tbl { font-size: 15px; }
.site .tbl td { padding: 12px 8px; }
.tn-short { display: none; }
@media (max-width: 600px) { .hide-sm { display: none; } .tn-long { display: none; } .tn-short { display: inline; } }
.fx-list { display: grid; gap: 10px; }
.fx { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px; border: 2px solid var(--line); border-radius: 14px; }
.fx-team { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; min-width: 0; }
.fx-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-team.right { justify-content: flex-end; text-align: right; }
.fx-mid { text-align: center; min-width: 72px; }
.fx-mid b { display: block; font-family: var(--display); font-weight: 900; font-size: 18px; background: var(--ink); color: #fff; border-radius: 8px; padding: 3px 8px; }
.fx-mid span { font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; }

/* ---------- badges ---------- */
.badge-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.wall-badge { text-align: center; background: #fff; border: var(--border); border-radius: 18px; box-shadow: var(--pop); padding: 16px 10px; transition: transform .2s; }
.wall-badge:hover { transform: rotate(-3deg) scale(1.04); }
.wall-badge b { display: block; font-weight: 900; margin-top: 8px; }
.wall-badge span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.wall-badge .badge-ic { filter: drop-shadow(3px 3px 0 var(--ink)); }

/* ---------- join ---------- */
.join-card { display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; border: 3px solid var(--ink); border-radius: 28px; box-shadow: 10px 10px 0 var(--ink); }
@media (max-width: 860px) { .join-card { grid-template-columns: 1fr; } }
.join-left { background: var(--red); color: #fff; padding: clamp(24px, 4vw, 48px); }
.join-left h2 { font-size: clamp(30px, 4vw, 48px); line-height: .95; margin: 16px 0 10px; text-shadow: 3px 3px 0 var(--ink); }
.join-left p { font-weight: 700; font-size: 17px; margin: 0; }
.ticks.light li > span { background: var(--yellow); }
.join-right { background: var(--yellow); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; text-align: center; border-left: 3px solid var(--ink); }
@media (max-width: 860px) { .join-right { border-left: 0; border-top: 3px solid var(--ink); } }
.price-tag { display: flex; align-items: flex-start; font-family: var(--display); font-weight: 900; line-height: 1; }
.price-tag .cur { font-size: 32px; margin-top: 10px; }
.price-tag b { font-size: clamp(72px, 9vw, 110px); text-shadow: 4px 4px 0 #fff; }
.price-tag .per { font-size: 18px; align-self: flex-end; margin-bottom: 14px; }
.join-right .small { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: var(--border); border-radius: 16px; box-shadow: var(--pop); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 900; font-size: 17px; padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { background: var(--bg-2); }
.faq p { margin: 0 0 18px; line-height: 1.6; font-weight: 500; }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(64px, 9vw, 110px); background: var(--ink); color: #fff; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 30px clamp(16px, 4vw, 48px) calc(110px + var(--safe-b)); }
.site-foot .muted { color: #bdb6ad; }
.site-foot nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; font-weight: 800; }
.site-foot nav a:hover { color: var(--yellow); }

/* ---------- floating join ---------- */
.fab-join { position: fixed; z-index: 45; right: clamp(14px, 3vw, 32px); bottom: calc(18px + var(--safe-b)); display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 12px 22px 12px 14px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 16px; box-shadow: 5px 5px 0 var(--ink); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), box-shadow .15s, opacity .3s; animation: fab-in .6s .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.fab-join:hover { transform: translate(-2px, -2px) rotate(-2deg); box-shadow: 7px 7px 0 var(--ink); }
.fab-join:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.fab-join.tucked { transform: translateY(160%); opacity: 0; pointer-events: none; }
.fab-ball { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); animation: fab-bounce 2.4s ease-in-out infinite; }
.fab-ball .ic { filter: none; }
@keyframes fab-in { from { transform: translateY(160%) rotate(-10deg); } }
@keyframes fab-bounce { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-9px) rotate(-120deg); } 80% { transform: translateY(0) rotate(-240deg); } 88% { transform: translateY(-4px) rotate(-300deg); } }
@media (max-width: 520px) { .fab-join { left: 14px; right: 14px; justify-content: center; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.step.reveal:nth-child(2), .team-card.reveal:nth-child(3n + 2) { transition-delay: 90ms; }
.step.reveal:nth-child(3), .team-card.reveal:nth-child(3n) { transition-delay: 180ms; }
.step.reveal:nth-child(4) { transition-delay: 270ms; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
/* Hover lifts must beat the reveal's transform reset. */
.team-card.reveal.in:hover { transform: translate(-3px, -3px) rotate(-.6deg); transition-delay: 0ms; }
.wall-badge.reveal.in:hover { transform: rotate(-3deg) scale(1.04); transition-delay: 0ms; }

/* Hero decoration placed in the gaps around the copy and badge. */
.s-hero .hero-shapes i:nth-child(1) { top: 16%; left: 47%; }
.s-hero .hero-shapes i:nth-child(3) { top: auto; right: auto; bottom: 30%; left: 49%; }
.s-hero .hero-shapes i:nth-child(4) { top: 78%; left: auto; right: 4%; }
@media (max-width: 860px) {
  .s-hero .hero-shapes i:nth-child(1) { top: 13%; left: 6%; }
  .s-hero .hero-shapes i:nth-child(3), .s-hero .hero-shapes i:nth-child(4), .s-hero .hero-shapes i:nth-child(5) { display: none; }
}
