/* ============ NIGHT LEAGUE SHARED DESIGN SYSTEM ============
   Shared by all Lowballed? pages. Design tokens plus the common
   chrome: header, footer, buttons, wrap, headings, article basics.
   Type: Space Grotesk 500/700 for big headlines ONLY.
   Inter 400/500/600/700 for all body text, buttons, form fields,
   labels, and UI. */
:root {
  --bg: #120E24;
  --bg-deep: #0D0A1D;
  --panel: #1D1742;
  --panel-2: #251C54;
  --field: #150F31;
  --line: rgba(74, 63, 143, 0.45);
  --line-soft: rgba(74, 63, 143, 0.28);
  --lime: #B8F135;
  --lime-ink: #1B1430;
  --yellow: #FFD21F;
  --pink: #FF4D8D;
  --pink-soft: rgba(255, 77, 141, 0.13);
  --pink-chip-text: #FFC7DC;
  --text: #E9E6FF;
  --muted: #A79FD1;
  --muted-2: #7E76AC;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 12px;
  /* Standard vertical gap between major sections. New sections use
     var(--section-gap) instead of per-section padding numbers. */
  --section-gap: 96px;
  --glow-lime: 0 0 0 1px rgba(184, 241, 53, 0.25), 0 12px 44px rgba(184, 241, 53, 0.13);
  --glow-panel: 0 24px 70px rgba(5, 3, 16, 0.55);
}
@media (min-width: 860px) {
  :root { --section-gap: 126px; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 420px at 85% -60px, rgba(184, 241, 53, 0.07), transparent 65%),
    radial-gradient(900px 560px at -10% 30%, rgba(74, 63, 143, 0.20), transparent 60%),
    radial-gradient(700px 500px at 110% 78%, rgba(255, 77, 141, 0.05), transparent 60%);
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: var(--lime); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.wrap-narrow { max-width: 760px; }
.section { padding-block: 118px 8px; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 14, 36, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.22rem;
  letter-spacing: 0.02em; color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
}
.wordmark .q { color: var(--lime); }
.wordmark svg { width: 30px; height: 26px; flex: none; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.main-nav a.nav-link { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.main-nav a.nav-link:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-ui); font-weight: 600; font-size: 1rem;
  border-radius: 14px; border: 1px solid transparent; cursor: pointer;
  padding: 13px 22px; min-height: 52px; display: inline-flex; align-items: center;
  justify-content: center; gap: 9px; text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--lime); color: var(--lime-ink); box-shadow: var(--glow-lime); }
.btn-primary:hover { background: #C6F75E; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-small { min-height: 44px; padding: 9px 18px; font-size: 0.95rem; border-radius: 12px; }
.btn-block { width: 100%; }
.link-btn {
  background: none; border: none; padding: 6px 2px; cursor: pointer;
  font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600;
  color: var(--lime); text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Breadcrumb ---------- */
.crumb { color: var(--muted); font-size: 0.88rem; margin: 0 0 4px; }
.crumb a { text-decoration: none; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 136px; padding-block: 40px 46px; background: var(--bg-deep); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 28px 54px; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; font-size: 0.97rem; }
.footer-col a:hover { color: var(--lime); }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; margin-top: 12px; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line-soft); color: var(--muted-2); font-size: 0.88rem; display: grid; gap: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  /* stacked grids go in page styles */
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding-top: 88px; }
  .main-nav a.nav-link { display: none; }
  .header-in { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Newsletter + form utilities (moved from homepage inline styles 2026-10-18, so every page's form renders identically; includes the off-screen honeypot and sr-only rules) ---------- */
/* ---------- Newsletter ---------- */
      .news-band {
        background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
        padding: 30px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: center;
      }

.news-band h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); font-weight: 700; }

.news-band p { color: var(--muted); margin-top: 8px; }

.news-cta { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 0; width: 100%; }

.news-form { display: flex; flex-direction: column; gap: 12px; width: 100%; position: relative; }

.news-form[hidden] { display: none; }

.news-row { display: flex; gap: 10px; width: 100%; }

.news-form input[type="email"] {
        flex: 1 1 auto; min-width: 0; min-height: 52px;
        background: #1D1742; color: var(--text);
        border: 1px solid var(--line); border-radius: var(--radius-md);
        padding: 14px 16px; font-family: var(--font-ui); font-size: 16px;
      }

.news-form input[type="email"]::placeholder { color: var(--muted); }

.news-form input[type="email"]:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(184, 241, 53, 0.22); }

.news-form .btn { flex: none; }

.news-form .btn[disabled] { opacity: 0.65; cursor: wait; }

.news-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.news-turnstile { width: 100%; max-width: 100%; }

.news-turnstile iframe { display: block; width: 100% !important; max-width: 100%; }

.news-success { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.02rem; color: var(--text); margin: 0; }

.news-success[hidden] { display: none; }

.news-success svg { flex: none; }

.news-msg { font-weight: 600; font-size: 0.97rem; min-height: 1.5em; margin: 0; }

.news-msg.ok { color: var(--lime); }

.news-msg.err { color: var(--pink); }

.news-consent { color: var(--muted); font-size: 0.88rem; margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Responsive ---------- */
      @media (max-width: 860px) {
        .steps, .pricing-grid, .guides-grid, .testimonial-grid { grid-template-columns: 1fr; }
        .news-band { grid-template-columns: 1fr; }
        .plan.featured { order: -1; }
      }

@media (max-width: 680px) {
  .news-band { padding: 24px 20px; gap: 18px; }
  .news-row { flex-direction: column; }
  .news-form .btn { width: 100%; }
}

/* ---------- Article pages (guides, roadmap, terms) ----------
   Moved here 2026-10-20 from per-page inline <style> blocks so every
   article page shares one typography. Table rules are scoped to
   .article so they never leak into tool/app pages. */
.article { padding-block: 54px 40px; }
.article h1 { font-size: clamp(2.4rem, 5.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.015em; margin: 10px 0 14px; }
.article h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); font-weight: 700; letter-spacing: -0.01em; margin: 52px 0 14px; scroll-margin-top: 96px; }
.article p { margin: 0 0 14px; font-size: 1.02rem; }
.lede { font-size: clamp(1.08rem, 2.2vw, 1.25rem); line-height: 1.6; margin: 0 0 8px; color: var(--text); }
.toc { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: 20px 22px; margin: 26px 0 8px; }
.toc-title { font-weight: 600; font-size: 0.95rem; color: var(--muted); margin: 0 0 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.toc a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.toc a:hover { color: var(--lime); }
.table-scroll { overflow-x: auto; margin: 20px 0 8px; }
.article table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.98rem; }
.article th { font-weight: 600; font-size: 0.9rem; color: var(--muted); text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.article td { padding: 12px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.article td:last-child { text-align: right; font-weight: 700; white-space: nowrap; color: var(--lime); font-variant-numeric: tabular-nums; }
.article tr:last-child td { border-bottom: none; }
.flag-card { background: var(--panel); border: 1px solid var(--line-soft); border-left: 4px solid var(--pink); border-radius: var(--radius-sm); padding: 14px 16px; margin: 14px 0; }
.flag-card b { color: var(--text); }
.cta-band { margin: 52px 0; background: linear-gradient(160deg, var(--panel-2), var(--panel) 60%); border: 1px solid rgba(184, 241, 53, 0.4); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--glow-panel); }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
.cta-band p { color: var(--muted); margin: 0 0 18px; }
.cta-band .btn { margin-top: 4px; }
.cta-deep { border-color: var(--line); }
.faq-list h3 { font-size: 1.08rem; font-weight: 600; margin: 24px 0 6px; }
.faq-list p { color: var(--muted); }

/* ---------- Motion (subtle, fast, mobile-first) ---------- */
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.btn, .vote-item, .cta-band, .flag-card, .stage-item { transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background-color 200ms ease; }
.btn:active, button:active, .vote-item:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .cta-band:hover, .flag-card:hover, .stage-item:hover, .vote-item:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
  .btn-primary:hover { box-shadow: 0 0 0 1px rgba(184, 241, 53, 0.35), 0 6px 24px rgba(184, 241, 53, 0.25); }
}
/* Scroll reveal: hidden state exists ONLY when motion.js armed it. */
html.lb-motion .lb-rv { opacity: 0; transform: translateY(8px); }
html.lb-motion .lb-rv.lb-rv-in { opacity: 1; transform: none; transition: opacity 350ms ease, transform 350ms ease; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html.lb-motion .lb-rv { opacity: 1 !important; transform: none !important; }
}
