/* =============================================================
   CO Sportsbook Promos — OLED Dark Theme
   Lexend Mega + Public Sans, neubrutalist, radius-0
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #000000;
  --bg2: #121212;
  --ink: #e8e8e8;
  --ink-muted: #888;
  --neon-green: #39ff14;
  --neon-blue: #00cfff;
  --neon-gold: #ffd700;
  --neon-purple: #c77dff;
  --accent: #39ff14;
  --accent2: #00cfff;
  --border: #2a2a2a;
  --border-bright: #39ff14;
  --font-head: 'Lexend Mega', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
  --radius: 0;
  --max-w: 1200px;
  --col-gap: 2rem;
  color-scheme: dark;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); margin-top: 2rem; margin-bottom: 0.5rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-top: 1.5rem; margin-bottom: 0.4rem; }
h4 { font-size: 1.1rem; margin-top: 1.2rem; }

p { margin-bottom: 1rem; }
a { color: var(--neon-blue); text-decoration: underline; }
a:hover { color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green); }
a:focus-visible { outline: 2px solid var(--neon-green); outline-offset: 3px; }

strong { color: #fff; }
em { color: var(--neon-gold); font-style: italic; }

ul, ol { margin: 0 0 1rem 1.4rem; }
li { margin-bottom: 0.4rem; }

hr {
  border: none;
  border-top: 2px solid var(--neon-green);
  margin: 0.6rem 0 1.2rem;
  opacity: 0.6;
}

/* Neon glow on div labels */
.section-label {
  color: var(--neon-green);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.2rem;
  margin-top: 0;
}

/* === SITE WRAP === */
.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--border-bright);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  color: var(--neon-green);
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 0 10px var(--neon-green);
  flex-shrink: 0;
}
.brand:hover { color: #fff; text-shadow: 0 0 16px var(--neon-green); }

/* NAV — details/summary structure */
.nav-details { flex: 1; min-width: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1.5px solid var(--border-bright);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  min-height: 44px;
  min-width: 44px;
  user-select: none;
  list-style: none;
}
.nav-toggle::-webkit-details-marker { display: none; }

.hamburger-icon { display: flex; flex-direction: column; gap: 4px; }
.hamburger-icon span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--neon-green);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-details[open] .hamburger-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-details[open] .hamburger-icon span:nth-child(2) { opacity: 0; }
.nav-details[open] .hamburger-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.toggle-label { font-weight: 600; }

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-menu li a:hover { color: var(--neon-green); text-shadow: 0 0 6px var(--neon-green); }

/* Header CTAs */
.header-ctas {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.cta-signup {
  background: var(--neon-green);
  color: #000;
  border: 2px solid var(--neon-green);
}
.cta-signup:hover {
  background: #000;
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green);
  box-shadow: 0 0 12px var(--neon-green);
}

.cta-login {
  background: transparent;
  color: var(--neon-green);
  border: 2px solid var(--neon-green);
}
.cta-login:hover {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 12px var(--neon-green);
}

/* === HEROES === */
.hero-home {
  background: var(--bg2);
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-inner {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.hero-copy {
  max-width: 600px;
  text-align: right;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon-green);
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 8px var(--neon-green);
}

.hero-h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(57,255,20,0.15);
}

.hero-sub {
  font-size: 1rem;
  color: var(--ink-muted);
  max-width: 480px;
  margin-left: auto;
}

.hero-slant {
  height: 60px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  margin-top: -1px;
}

/* Inner heroes (ranking/review/faq/compare) */
.ranking-hero, .review-hero, .faq-hero, .compare-hero, .inner-hero {
  background: var(--bg2);
  border-bottom: 2px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.ranking-hero-inner, .review-hero-inner, .faq-hero-inner, .compare-hero-inner, .inner-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-blue);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Byline */
.byline {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 0.75rem;
  margin-bottom: 0;
}
.byline time { color: var(--neon-gold); }

/* Stage badge */
.stage-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--neon-purple);
  color: var(--neon-purple);
  margin-bottom: 0.5rem;
}
.stage-awareness { border-color: var(--neon-blue); color: var(--neon-blue); }
.stage-consideration { border-color: var(--neon-gold); color: var(--neon-gold); }
.stage-decision { border-color: var(--neon-green); color: var(--neon-green); }

/* === PAGE LAYOUT (sidebar + main) === */
.page-layout {
  flex: 1;
  display: flex;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 2rem 1rem;
  gap: var(--col-gap);
  align-items: flex-start;
}

/* Sidebar LEFT */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 72px;
  order: -1;
}

.sidebar-inner {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--neon-blue);
  padding: 1.25rem;
}

.sidebar-heading {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-blue);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-links li { margin-bottom: 0.1rem; }

.sidebar-links a {
  display: block;
  padding: 0.55rem 0.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.sidebar-links a:hover {
  color: var(--neon-blue);
  border-left-color: var(--neon-blue);
}

.sidebar-rg {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* === MAIN CONTENT === */
.main-content {
  flex: 1;
  min-width: 0;
}

.content-article { width: 100%; }

.body-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Body copy link contrast */
.body-section a { color: var(--neon-blue); text-decoration: underline; }
.body-section a:hover { color: var(--neon-green); }

/* Tables in body */
.body-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.body-section th {
  background: #1a1a1a;
  color: var(--neon-green);
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--neon-green);
}
.body-section td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.body-section tr:hover td { background: #1a1a1a; }

/* === CHILD CARDS (div > section×n) === */
.child-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Direct children are articles — no wrapping article */
.child-cards > section.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--neon-green);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.child-cards > section.card:hover {
  border-bottom-color: var(--neon-blue);
  transform: translateY(-2px);
}

.card-title { font-size: 1rem; margin: 0 0 0.5rem; }
.card-title a { color: #fff; text-decoration: none; }
.card-title a:hover { color: var(--neon-green); }
.card-desc { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 0.75rem; flex: 1; }
.card-date { font-size: 0.75rem; color: var(--ink-muted); }
.card-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--neon-green);
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--neon-green);
  padding-bottom: 1px;
  align-self: flex-start;
}
.card-cta:hover { color: #fff; border-color: #fff; }

/* === REVIEW HERO IMAGE === */
.review-hero-img {
  max-width: 100%;
  height: auto;
  margin-top: 1.5rem;
  display: block;
  border: 1px solid var(--border);
}

/* === AUTHOR SECTION === */
.author-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--neon-purple);
  padding: 2rem;
  margin-top: 2rem;
}

.author-section h2 {
  color: var(--neon-purple);
  margin-top: 0;
}

.author-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.author-credentials {
  font-size: 0.8rem;
  color: var(--neon-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.author-bio {
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* === FOOTER === */
.site-footer {
  background: var(--bg2);
  border-top: 2px solid var(--border-bright);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col dt {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-green);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.footer-col dd {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
}

.footer-col dd a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s;
  display: inline-block;
  min-height: 28px;
  line-height: 1.6;
}
.footer-col dd a:hover { color: var(--neon-green); }

.rg-notice {
  font-size: 0.72rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.footer-bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.footer-trust a {
  color: var(--ink-muted);
  text-decoration: underline;
}
.footer-trust a:hover { color: var(--neon-blue); }

.rg-bar {
  color: var(--ink-muted);
  font-size: 0.72rem;
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* === MOBILE NAV COLLAPSE === */
@media (max-width: 768px) {
  .header-inner { height: auto; min-height: 60px; flex-wrap: nowrap; padding: 0.5rem 0.75rem; gap: 0.5rem; }

  .nav-details { flex: 0 0 auto; order: 3; }
  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 2px solid var(--neon-green);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    z-index: 99;
  }

  .nav-details:not([open]) .nav-menu { display: none; }
  .nav-details[open] .nav-menu { display: flex; }

  .nav-menu li a {
    padding: 0.75rem 1.25rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }

  .header-ctas { flex-shrink: 0; gap: 0.35rem; order: 2; margin-left: auto; }
  .cta { padding: 0.4rem 0.6rem; font-size: 0.6rem; min-height: 44px; }

  .brand { font-size: 0.85rem; order: 1; }
}

/* === RESPONSIVE LAYOUT === */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-layout { flex-direction: column; padding: 1rem; gap: 1rem; }
  .sidebar { width: 100%; position: static; order: 0; }
  .sidebar-inner { border-left: 3px solid var(--neon-blue); }

  .body-section { padding: 1.25rem; }

  .hero-inner { padding: 2rem 1rem 3rem; justify-content: flex-start; }
  .hero-copy { text-align: left; }
  .hero-sub { margin-left: 0; }

  .ranking-hero, .review-hero, .faq-hero, .compare-hero, .inner-hero { padding: 1.5rem 1rem; }

  h1 { font-size: clamp(1.5rem, 7vw, 2.5rem); }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

@media (max-width: 400px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* === HOVER MICRO-INTERACTIONS === */
.card:hover { box-shadow: 0 0 20px rgba(57,255,20,0.1); }

.sidebar-links a:focus-visible { outline: 2px solid var(--neon-blue); }

/* No horizontal scroll safety */
img { max-width: 100%; height: auto; display: block; }

/* Sensible reading width */
.body-section > *:not(table):not(.child-cards) { max-width: 72ch; }

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}