/* =========================================================
   FairPlay — shared stylesheet for static SEO landing pages
   Theme: dark, sporty, orange accent (#f36c21)
   Mobile-first, responsive, no frameworks.
   ========================================================= */

:root {
  --orange: #f36c21;
  --orange-600: #d65c16;
  --orange-glow: rgba(243, 108, 33, 0.35);
  --bg-darkest: #0f0f10;
  --bg-dark: #1a1a1a;
  --bg-card: #161617;
  --line: #33333380;
  --line-solid: #333333;
  --text: #ffffff;
  --text-muted: #cccccc;
  --text-dim: #9a9a9a;
  --green: #4caf50;
  --radius: 8px;
  --radius-lg: 14px;
  --maxw: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  background: var(--bg-darkest);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--text); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.85rem, 5vw, 3rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.35rem, 3.2vw, 2rem); margin-top: 1.6em; }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); margin-top: 1.4em; }
p { margin: 0 0 1.1em; }
strong { color: var(--text); font-weight: 600; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .5em; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.brand-fair { color: #fff; }
.brand-play { color: var(--orange); }
.muted { color: var(--text-dim); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px var(--orange-glow); }
.btn-primary:hover { background: var(--orange-600); box-shadow: 0 8px 24px var(--orange-glow); color: #fff; }
.btn-outline { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- header (3-part — matches app logged-out state) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-darkest);
  border-bottom: 1px solid var(--line);
}

/* PART 1 — top bar: hamburger + text logo + login/register */
.topbar { background: var(--bg-darkest); }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  text-transform: lowercase;
  line-height: 1;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .brand-fair { color: var(--green); }
.brand .brand-play { color: var(--orange); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 36px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: .2s; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hbtn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: .82rem;
  line-height: 1;
  padding: 9px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.hbtn:hover { text-decoration: none; }
.hbtn-login { background: transparent; color: var(--orange); border-color: var(--orange); }
.hbtn-login:hover { background: var(--orange); color: #fff; }
.hbtn-register { background: var(--green); color: #fff; border-color: var(--green); }
.hbtn-register:hover { background: #388e3c; border-color: #388e3c; color: #fff; }

/* PART 2 — sport nav (horizontal scroll on mobile) */
.sport-nav {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sport-nav::-webkit-scrollbar { display: none; height: 0; }
.sport-item {
  flex: 0 0 auto;
  min-width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.85);
  border-right: 1px solid var(--line);
  transition: background .15s ease, color .15s ease;
}
.sport-item:last-child { border-right: none; }
.sport-item:hover { background: var(--bg-dark); color: #fff; text-decoration: none; }
.si-emoji { font-size: 1.15rem; line-height: 1; }
.si-label { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; text-align: center; white-space: nowrap; }
.si-label.si-hot { color: var(--orange); }
.sport-item.active .si-label { color: var(--orange); }
.sport-item.active { box-shadow: inset 0 -2px 0 var(--orange); }

/* PART 3 — IPL 2026 banner (full-width orange) */
.ipl-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--orange);
  padding: 7px 12px;
  transition: background .2s ease;
}
.ipl-banner:hover { background: var(--orange-600); text-decoration: none; }
.ipl-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; flex-shrink: 0;
  animation: iplPulse 1.6s infinite;
}
.ipl-text { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; }
.ipl-arrow { color: #fff; font-weight: 700; font-size: .95rem; line-height: 1; }
@keyframes iplPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* header responsive */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .topbar-inner { min-height: 64px; }
  .brand { font-size: 1.875rem; }
  .sport-nav { flex-wrap: wrap; justify-content: center; overflow-x: visible; }
}
@media (max-width: 767px) {
  .site-header.open .sport-nav { flex-wrap: wrap; overflow-x: visible; }
  .site-header.open .sport-item { flex: 1 0 22%; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 420px at 80% -10%, rgba(243,108,33,0.16), transparent 60%),
    linear-gradient(180deg, #141416 0%, var(--bg-darkest) 100%);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 56px;
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(243,108,33,0.1);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero p.lead { font-size: 1.1rem; color: var(--text-muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.hero-media img { border-radius: var(--radius-lg); border: 1px solid var(--line); width: 100%; }

/* ---------- content sections ---------- */
.section { padding: 14px 0; }
.section-wrap { max-width: 820px; }
.content h2 { scroll-margin-top: 80px; }
.content img { border-radius: var(--radius-lg); border: 1px solid var(--line); margin: 8px 0 20px; }
.lead { font-size: 1.08rem; color: var(--text-muted); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 18px; margin: 18px 0 26px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(243,108,33,0.12); color: var(--orange);
  font-size: 1.2rem; font-weight: 700; margin-bottom: 12px;
}

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; margin: 18px 0 26px; list-style: none; padding: 0; }
.steps li {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 20px 20px 70px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange); color: #fff;
  font-weight: 700; border-radius: 9px;
}
.steps li strong { display: block; margin-bottom: 4px; }

/* ---------- FAQ accordion (CSS-only via <details>) ---------- */
.faq { margin: 18px 0 8px; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 48px 16px 18px;
  position: relative;
  font-weight: 600;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--orange); font-size: 1.4rem; font-weight: 700; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-body { padding: 0 18px 18px; color: var(--text-muted); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta {
  margin: 40px 0 10px;
  text-align: center;
  background:
    radial-gradient(700px 240px at 50% 0%, rgba(243,108,33,0.18), transparent 70%),
    var(--bg-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
}
.cta h2 { margin-top: 0; }
.cta p { max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ---------- inline highlight strip ---------- */
.pillrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.pillrow li {
  font-size: .82rem; color: var(--text-muted);
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; margin: 0;
}
.pillrow .dot { color: var(--green); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding: 44px 0 26px;
  color: var(--text-dim);
  font-size: .92rem;
}
.footer-top { display: grid; gap: 28px; grid-template-columns: 1fr; }
.footer-brand .wordmark { font-size: 1.5rem; font-weight: 700; }
.footer-brand p { max-width: 36ch; margin-top: 8px; }
.footer-cols { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }
.footer-cols h4 { color: var(--text); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 9px; }
.footer-cols a { color: var(--text-dim); }
.footer-cols a:hover { color: var(--orange); text-decoration: none; }
.footer-bottom {
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  font-size: .82rem;
}
.footer-bottom .age {
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-bottom .badge18 {
  background: var(--orange); color: #fff; font-weight: 700;
  border-radius: 6px; padding: 2px 7px; font-size: .72rem;
}

/* ---------- responsive ---------- */
@media (min-width: 620px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1.4fr 2fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 880px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 70px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 44px; }
  .section { padding: 20px 0; }
}
