/* ─────────────────────────────────────────────────────────────────────────────
   Landing theme — the palette and type of the public site.

   Shared by the landing page and every public sub-page (FAQ, legal pages,
   sign-in/sign-up, onboarding, API docs) so they read as one site. Colours are
   drawn from the club photo on the landing hero: felt green, pendant-lamp
   amber, warm off-white on near-black.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --lp-bg:          #0e100d;
  --lp-bg-alt:      #0c0f0b;
  --lp-bg-deep:     #0a0d09;
  --lp-card:        #151a14;
  --lp-card-hover:  #131712;
  --lp-border:      #232b20;
  --lp-border-lite: #2c3629;
  --lp-green:       #1fb84a;
  --lp-green-hover: #25d456;
  --lp-green-dim:   #167a33;
  --lp-amber:       #c49028;
  --lp-amber-dim:   #9a7020;
  --lp-text:        #f0ebe0;
  --lp-text-mid:    #b8b2a4;
  --lp-text-dim:    #9a9488;
  --lp-max:         1280px;

  --lp-font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --lp-font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --lp-font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* The nav is fixed at 4rem; anchor targets must clear it. */
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

* { scrollbar-width: thin; scrollbar-color: var(--lp-green-dim) transparent; }

img { max-width: 100%; }
a { color: inherit; }

.lp-display { font-family: var(--lp-font-display); font-weight: 400; letter-spacing: 0.01em; }
.lp-mono    { font-family: var(--lp-font-mono); }
.lp-em      { color: var(--lp-amber); font-style: italic; }

/* Section kicker: small mono label above every heading. */
.lp-kicker {
  font-family: var(--lp-font-mono);
  font-size: 11px;
  color: var(--lp-green);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lp-shell { max-width: var(--lp-max); margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  padding: 0.75rem 1.5rem; border: 1px solid transparent; border-radius: 2px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.lp-btn-primary { background: var(--lp-green); color: var(--lp-bg); }
.lp-btn-primary:hover { background: var(--lp-green-hover); }
.lp-btn-ghost {
  border-color: var(--lp-border-lite); color: var(--lp-text-dim); font-weight: 500;
}
.lp-btn-ghost:hover { border-color: rgba(31,184,74,.6); color: var(--lp-text); }
.lp-btn-lg { padding: 1rem 2rem; }

/* ── Fixed top nav ────────────────────────────────────────────────────────── */

.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid rgba(35,43,32,.7);
  background: rgba(14,16,13,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lp-nav-inner {
  max-width: var(--lp-max); margin: 0 auto; padding: 0 1.5rem; height: 4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.lp-nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.lp-nav-brand img { height: 1.75rem; width: auto; display: block; }
.lp-nav-links { display: none; align-items: center; gap: 2rem; }
.lp-nav-links a {
  font-size: 0.875rem; color: var(--lp-text-mid); text-decoration: none;
  letter-spacing: .02em; transition: color .2s ease; white-space: nowrap;
}
.lp-nav-links a:hover { color: var(--lp-text); }
.lp-nav-actions { display: none; align-items: center; gap: 0.75rem; }
.lp-nav-signin {
  font-size: 0.875rem; color: var(--lp-text-mid); text-decoration: none;
  padding: 0.5rem 1rem; transition: color .2s ease; white-space: nowrap;
}
.lp-nav-signin:hover { color: var(--lp-text); }
.lp-nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--lp-text-mid); cursor: pointer; padding: 0.25rem;
}
.lp-nav-toggle:hover { color: var(--lp-text); }
.lp-nav-mobile {
  display: none; flex-direction: column; gap: 1rem;
  border-top: 1px solid var(--lp-border); background: var(--lp-bg); padding: 1rem 1.5rem;
}
.lp-nav-mobile.open { display: flex; }
.lp-nav-mobile a { font-size: 0.875rem; color: var(--lp-text-mid); text-decoration: none; }
.lp-nav-mobile a:hover { color: var(--lp-text); }
.lp-nav-mobile .lp-btn { justify-content: center; }

/* Language toggle sits in the nav on desktop and in the drawer on phones. */
.lp-lang {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent; border: 1px solid var(--lp-border-lite); border-radius: 2px;
  color: var(--lp-text-mid); font-family: var(--lp-font-mono); font-size: 0.75rem;
  letter-spacing: .08em; padding: 0.5rem 0.7rem; cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.lp-lang:hover { border-color: rgba(31,184,74,.6); color: var(--lp-text); }

@media (min-width: 1024px) {
  .lp-nav-links, .lp-nav-actions { display: flex; }
  .lp-nav-toggle { display: none; }
  .lp-nav-mobile, .lp-nav-mobile.open { display: none; }
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.lp-section { padding: 7rem 0; }
.lp-section--rule { border-top: 1px solid var(--lp-border); }
.lp-section--alt  { background: var(--lp-bg-alt); }

.lp-h2 {
  font-family: var(--lp-font-display); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; color: var(--lp-text);
  margin: 1rem 0 1.5rem;
}
.lp-lead { color: var(--lp-text-dim); line-height: 1.75; margin: 0 0 2rem; }

/* Two-column split used by the scoreboard and tournament sections. */
.lp-split { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 768px) { .lp-split { grid-template-columns: 1fr 1fr; } }

/* Tick list */
.lp-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.lp-ticks li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.875rem; color: var(--lp-text-mid);
}
.lp-ticks li::before { content: '✓'; color: var(--lp-green); flex-shrink: 0; line-height: 1.5; }

/* Framed screenshot with an ambient green glow behind it. */
.lp-shot { position: relative; }
.lp-shot::before {
  content: ''; position: absolute; inset: -1rem; z-index: -1;
  border-radius: 0.5rem; filter: blur(48px);
  background: radial-gradient(ellipse at center, rgba(31,184,74,.09) 0%, transparent 70%);
}
.lp-shot-frame {
  border: 1px solid rgba(31,184,74,.2); overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.8);
  /* A screenshot that has not arrived yet should read as an empty frame, not
     as a hole in the page. */
  background: var(--lp-card);
}
.lp-shot-frame img { display: block; width: 100%; height: auto; }
.lp-shot-caption {
  display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; padding: 0 0.25rem;
  font-family: var(--lp-font-mono); font-size: 10px; letter-spacing: .1em;
}
.lp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lp-green); flex-shrink: 0; }
.lp-dot--live { animation: lp-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.lp-dot--amber { background: var(--lp-amber); }
@keyframes lp-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.lp-cap-live { color: var(--lp-green); text-transform: uppercase; }
.lp-cap-draft { color: var(--lp-amber); text-transform: uppercase; }
.lp-cap-meta { color: var(--lp-text-dim); margin-left: auto; text-align: right; }

/* Hairline grid of cards: the 1px gap is the background showing through. */
.lp-grid { display: grid; gap: 1px; background: var(--lp-border); }
@media (min-width: 768px)  { .lp-grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px)  { .lp-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .lp-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.lp-cell { background: var(--lp-bg); padding: 2rem; transition: background-color .3s ease; }
.lp-cell:hover { background: var(--lp-card-hover); }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.lp-footer { border-top: 1px solid var(--lp-border); background: var(--lp-bg-deep); }
.lp-footer-inner { max-width: var(--lp-max); margin: 0 auto; padding: 3rem 1.5rem; }
.lp-footer-cols { display: grid; gap: 2rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .lp-footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.lp-footer-brand img { height: 1.75rem; width: auto; display: block; margin-bottom: 1rem; }
.lp-footer-brand p { font-size: 0.75rem; color: var(--lp-text-dim); line-height: 1.7; margin: 0; }
.lp-footer-brand p + p { margin-top: 0.75rem; }
.lp-footer-head {
  font-family: var(--lp-font-mono); font-size: 10px; color: var(--lp-text-dim);
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1rem;
}
.lp-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.lp-footer-col a {
  font-size: 0.875rem; color: var(--lp-text-dim); text-decoration: none; transition: color .2s ease;
}
.lp-footer-col a:hover { color: var(--lp-text); }
.lp-footer-bar {
  border-top: 1px solid var(--lp-border); padding-top: 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 768px) { .lp-footer-bar { flex-direction: row; } }
.lp-footer-bar p { font-size: 0.75rem; color: var(--lp-text-dim); margin: 0; }
.lp-footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.lp-footer-legal a {
  font-size: 0.75rem; color: var(--lp-text-dim); text-decoration: none; transition: color .2s ease;
}
.lp-footer-legal a:hover { color: var(--lp-text); }

/* ── Sub-page shell ───────────────────────────────────────────────────────────
   FAQ, legal pages, sign-in/up and the API docs share this article layout so
   they sit under the same nav and footer as the landing page.
   ───────────────────────────────────────────────────────────────────────────── */

.lp-page { padding: 8rem 0 5rem; }
.lp-page-narrow { max-width: 62rem; margin: 0 auto; }
.lp-h1 {
  font-family: var(--lp-font-display); font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.1; color: var(--lp-text);
  margin: 1rem 0 1rem;
}
.lp-page-lead { color: var(--lp-text-dim); font-size: 1.05rem; line-height: 1.75; margin: 0 0 3rem; }
.lp-prose h2 {
  font-family: var(--lp-font-display); font-weight: 400; font-size: 1.5rem; color: var(--lp-text);
  margin: 3rem 0 0.75rem; padding-top: 2rem; border-top: 1px solid var(--lp-border);
}
.lp-prose h3 {
  font-family: var(--lp-font-body); font-weight: 600; font-size: 1rem; color: var(--lp-text);
  margin: 1.75rem 0 0.5rem;
}
.lp-prose p, .lp-prose li { color: var(--lp-text-dim); font-size: 0.95rem; line-height: 1.8; }
.lp-prose p { margin: 0 0 0.75rem; }
.lp-prose ul, .lp-prose ol { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.lp-prose li { margin-bottom: 0.35rem; }
.lp-prose a { color: var(--lp-green); text-decoration: none; }
.lp-prose a:hover { text-decoration: underline; }
.lp-prose strong { color: var(--lp-text-mid); }
.lp-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.lp-prose th, .lp-prose td {
  text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--lp-border);
  font-size: 0.875rem; color: var(--lp-text-dim);
}
.lp-prose th { color: var(--lp-text-mid); font-weight: 600; }

/* Card used by forms and callouts on the sub-pages. */
.lp-card {
  background: var(--lp-card); border: 1px solid var(--lp-border);
  border-radius: 2px; padding: 2rem;
}
.lp-field { display: block; margin-bottom: 1.1rem; }
.lp-field > span {
  display: block; font-family: var(--lp-font-mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--lp-text-dim); margin-bottom: 0.45rem;
}
.lp-input, .lp-select, .lp-textarea {
  width: 100%; background: var(--lp-bg); border: 1px solid var(--lp-border-lite);
  border-radius: 2px; color: var(--lp-text); font-family: inherit; font-size: 0.95rem;
  padding: 0.7rem 0.85rem; transition: border-color .2s ease;
}
.lp-input:focus, .lp-select:focus, .lp-textarea:focus {
  outline: none; border-color: var(--lp-green);
}
.lp-input::placeholder, .lp-textarea::placeholder { color: #5f6659; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-dot--live { animation: none; }
  * { transition-duration: .01ms !important; }
}
