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

/* ===== TOKENS (from game repo) ===== */
:root {
  --chrome: #1b1f2a;
  --chrome-deep: #12151d;
  --chrome-hover: #252a38;
  --chrome-border: #2e3446;
  --chrome-text: #8892a6;
  --chrome-text-bright: #cdd3e0;

  --bg: #f2f3f6;
  --surface: #ffffff;
  --border: #dfe2e8;

  --text: #1a1d26;
  --text-sec: #555d6f;
  --text-dim: #8f96a3;

  --red: #dc2626;
  --amber: #d97706;
  --green: #16a34a;
  --blue: #2563eb;

  --accent: #d97706;
  --accent-light: #f59e0b;

  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --font-head: 'Oswald', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max-w: 1200px;
  --radius: 8px;
}

html { background: var(--chrome-deep); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: min(var(--max-w), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ===== SECTION LABEL ===== */
.section-label {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ===== HERO (dark, split) ===== */
.hero {
  position: relative;
  background: var(--chrome);
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6rem) 1.25rem clamp(4rem, 8vw, 6rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 50% 55%, rgba(217, 119, 6, 0.06), transparent 70%),
    radial-gradient(ellipse 800px 300px at 30% 20%, rgba(37, 99, 235, 0.04), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  height: clamp(120px, 16vw, 200px);
}

.hero-content {
  border-left: 1px solid var(--chrome-border);
  padding-left: clamp(2rem, 4vw, 4rem);
  text-align: center;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 2.25rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.hero-cta svg {
  flex-shrink: 0;
}

.hero-cta:hover {
  transform: translateY(-1px);
}

.hero-cta--discord {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.35);
  color: #cbd2ff;
}

.hero-cta--discord:hover {
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.5);
}

.hero-cta--steam {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #1a1a1a;
}

.hero-cta--steam:hover {
  box-shadow: 0 8px 32px rgba(217, 119, 6, 0.35);
}

/* ===== INTRO SECTION (light) ===== */
.intro {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 7rem) 1.25rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.intro-text h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.intro-text p {
  color: var(--text-sec);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 500px;
}

.intro-text p:last-of-type {
  margin-bottom: 0;
}

/* Screenshot frame */
.screenshot-frame {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.screenshot-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 90px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== SCREENSHOT GALLERY (dark) ===== */
.gallery {
  background: var(--chrome);
  padding: clamp(4rem, 8vw, 7rem) 1.25rem;
}

.gallery .wrap {
  max-width: var(--max-w);
}

.gallery-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.gallery-item--wide {
  grid-column: 1 / -1;
}

.gallery-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 56px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
}

.gallery-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--chrome-text);
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
}

/* ===== FEATURES SECTION (light) ===== */
.matchday {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 7rem) 1.25rem;
}

.matchday .wrap {
  max-width: var(--max-w);
}

.matchday h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.matchday > .wrap > p {
  color: var(--text-sec);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.feature-card-icon.amber { background: rgba(217, 119, 6, 0.1); color: var(--amber); }
.feature-card-icon.blue { background: rgba(37, 99, 235, 0.1); color: var(--blue); }
.feature-card-icon.green { background: rgba(22, 163, 74, 0.1); color: var(--green); }
.feature-card-icon.red { background: rgba(220, 38, 38, 0.1); color: var(--red); }

.feature-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ===== PILLARS (dark) ===== */
.pillars {
  background: var(--chrome);
  padding: clamp(4rem, 8vw, 7rem) 1.25rem;
}

.pillars .wrap {
  max-width: var(--max-w);
}

.pillars h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--chrome-border);
  border: 1px solid var(--chrome-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pillar {
  background: var(--chrome);
  padding: 2rem 1.75rem;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.pillar h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--chrome-text-bright);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.pillar p {
  font-size: 0.92rem;
  color: var(--chrome-text);
  line-height: 1.6;
}

/* ===== QUOTE STRIP (accent) ===== */
.quote-strip {
  background: var(--chrome-deep);
  border-top: 3px solid var(--accent);
  padding: 3.5rem 1.25rem;
  text-align: center;
}

.quote-strip blockquote {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--chrome-text-bright);
  text-transform: uppercase;
  line-height: 1.25;
  max-width: 700px;
  margin: 0 auto 0.75rem;
}

.quote-strip cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.75rem;
  color: var(--chrome-text);
  letter-spacing: 0.08em;
}

/* ===== LICENSED CLUBS, floodlit badge carousel (dark) ===== */
.badges-board {
  position: relative;
  background: var(--chrome-deep);
  border-top: 3px solid var(--accent);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  overflow: hidden;
}

/* Hidden until the published manifest provides at least one club (set by JS). */
.badges-board.is-hidden {
  display: none;
}

.badges-board::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 760px 380px at 50% -12%, rgba(217, 119, 6, 0.16), transparent 70%),
    radial-gradient(ellipse 600px 300px at 15% 110%, rgba(37, 99, 235, 0.07), transparent 65%);
  pointer-events: none;
}

.badges-head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

.badges-head .section-label {
  margin-bottom: 0.75rem;
}

.badges-head h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.badges-head p {
  color: var(--chrome-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* coverflow carousel */
.badge-carousel {
  position: relative;
  z-index: 1;
  width: min(var(--max-w), calc(100% - 2.5rem));
  height: 360px;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto clamp(2.25rem, 4vw, 3.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  outline: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.badge-carousel.is-dragging {
  cursor: grabbing;
}

/* spotlight behind the focused crest */
.badge-carousel::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 440px;
  transform: translate(-50%, -54%);
  background: radial-gradient(circle, rgba(217, 119, 6, 0.22), transparent 62%);
  pointer-events: none;
}

.bc-stage {
  position: absolute;
  inset: 0;
}

.bc-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.42s ease;
  will-change: transform, opacity;
}

.bc-badge {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bc-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}

.bc-item.is-active .bc-badge img {
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px rgba(217, 119, 6, 0.35));
}

.bc-name {
  font-family: var(--font-head);
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--chrome-text);
  text-align: center;
  line-height: 1.2;
  max-width: 168px;
  transition: color 0.3s ease;
}

.bc-item.is-active .bc-name {
  color: #ffffff;
}

/* prev / next controls */
.bc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--chrome-border);
  color: var(--chrome-text-bright);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.bc-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(217, 119, 6, 0.55);
  color: #ffffff;
}

.bc-prev { left: clamp(0.25rem, 2vw, 1.5rem); }
.bc-next { right: clamp(0.25rem, 2vw, 1.5rem); }

@media (prefers-reduced-motion: reduce) {
  .bc-item { transition: none; }
}

.badges-cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.badges-cta p {
  color: var(--chrome-text);
  font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .badge-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}

/* ===== FAQ SECTION (light) ===== */
.faq-section {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 7rem) 1.25rem;
}

.faq-section .wrap {
  max-width: var(--max-w);
}

.faq-section h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.faq-section .section-desc {
  color: var(--text-sec);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 740px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  background: var(--surface);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.faq-list details[open] {
  border-color: var(--accent);
  background: linear-gradient(150deg, rgba(217, 119, 6, 0.04), transparent 40%), var(--surface);
}

.faq-list summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--text);
  text-transform: uppercase;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.faq-list summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-list details[open] summary::before {
  content: "\2212";
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 0.6rem 0 0;
  color: var(--text-sec);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 60ch;
}

/* ===== CTA SECTION (dark) ===== */
.cta-section {
  background: var(--chrome);
  padding: clamp(5rem, 10vw, 8rem) 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 300px at 50% 80%, rgba(217, 119, 6, 0.08), transparent);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--chrome-text);
  margin-bottom: 2rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(217, 119, 6, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--chrome-text-bright);
  border: 1px solid var(--chrome-border);
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--chrome-deep);
  border-top: 1px solid var(--chrome-border);
  padding: 2.5rem 1.25rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 28px;
  opacity: 0.6;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--chrome-text);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chrome-text);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--chrome-text-bright);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  cursor: zoom-out;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 32px 100px rgba(0,0,0,0.5);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

/* ===== PARTNERS PAGE ===== */
.matchday > .wrap.partners-prose > p {
  margin-bottom: 1.25rem;
  max-width: 720px;
}
.matchday > .wrap.partners-prose > p:last-of-type {
  margin-bottom: 2.5rem;
}

.features-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
  .features-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.partner-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.partner-tile img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.partner-tile-name {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.partners-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.partners-form-placeholder {
  background: rgba(255,255,255,0.03);
  border: 2px dashed var(--chrome-border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.partners-form-placeholder strong {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--chrome-text-bright);
}

.partners-form-placeholder p {
  color: var(--chrome-text);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  max-width: none;
}

/* ===== LICENSING PAGE ===== */
.licensing-page {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.licensing-page main {
  flex: 1;
}

.licensing-header {
  background: var(--chrome);
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--chrome-border);
}

.licensing-header-inner {
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.licensing-logo img {
  height: 64px;
  opacity: 0.95;
}

.licensing-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.licensing-agreement {
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem clamp(2rem, 4vw, 3rem);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.licensing-agreement .wrap {
  max-width: 720px;
}

.licensing-agreement h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.licensing-agreement h1 #club-name-target {
  color: var(--accent);
  font-style: normal;
}

.licensing-version {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
}

.licensing-agreement-body {
  max-width: 720px;
}

.licensing-agreement-body p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-sec);
  margin-bottom: 1rem;
}

.licensing-agreement-body p:last-child {
  margin-bottom: 0;
}

.licensing-form-section {
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem clamp(3rem, 6vw, 5rem);
  background: var(--bg);
}

.licensing-form-section .wrap {
  max-width: 720px;
}

.licensing-form {
  max-width: 720px;
}

.licensing-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.licensing-form legend {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0;
}

.lf-field {
  margin-bottom: 1.1rem;
  position: relative;
}

.lf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lf-field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.lf-opt {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 0.78rem;
}

.lf-field input[type=text],
.lf-field input[type=email],
.lf-field input[type=tel],
.lf-field input[type=url],
.lf-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lf-field input:focus,
.lf-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.lf-field input[type=file] {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-sec);
  padding: 0.4rem 0;
}

.lf-field textarea {
  resize: vertical;
  min-height: 80px;
}

.lf-hint {
  font-size: 0.88rem;
  color: var(--text-sec);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.lf-hint-small {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.lf-dupe {
  margin-top: 0.6rem;
  padding: 0.7rem 0.85rem;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #92400e;
}

/* club picker */
.lf-club-picker {
  position: relative;
}

.lf-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0.25rem 0 0 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  max-height: 320px;
  overflow-y: auto;
  z-index: 10;
}

.lf-suggest li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: background 0.1s;
}

.lf-suggest li:hover,
.lf-suggest li.is-active {
  background: rgba(217, 119, 6, 0.08);
}

.lf-suggest-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.lf-suggest-league {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* honeypot */
.lf-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* consent block */
.lf-consent {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.lf-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.lf-check input[type=checkbox] {
  margin-top: 0.18rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.lf-sign-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  font-style: italic;
}

.lf-submit {
  width: 100%;
  padding: 0.95rem 2rem;
  font-size: 1rem;
  margin-top: 0.5rem;
  cursor: pointer;
  justify-content: center;
}

.lf-fallback {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 1rem;
  text-align: center;
}

.lf-fallback a {
  color: var(--accent);
  text-decoration: underline;
}

.licensing-footer {
  background: var(--chrome-deep);
  border-top: 1px solid var(--chrome-border);
  padding: 1.25rem;
  color: var(--chrome-text);
  font-size: 0.85rem;
}

.licensing-footer .wrap {
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.licensing-footer a {
  color: var(--chrome-text-bright);
  text-decoration: none;
}

.licensing-footer a:hover {
  color: #fff;
}

/* licensing success page */
.licensing-success {
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
  background: var(--surface);
}

.licensing-success .wrap {
  max-width: 720px;
}

.licensing-success h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
}

.licensing-success-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.75rem 0;
  max-width: 720px;
}

.licensing-success-summary dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.25rem;
  font-size: 0.95rem;
}

.licensing-success-summary dt {
  color: var(--text-dim);
  font-weight: 500;
}

.licensing-success-summary dd {
  color: var(--text);
  margin: 0;
}

.licensing-success-next {
  max-width: 720px;
}

.licensing-success-next h2 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.licensing-success-next ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-sec);
  line-height: 1.7;
}

.licensing-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #991b1b;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .lf-row {
    grid-template-columns: 1fr;
  }
  .licensing-footer .wrap {
    flex-direction: column;
    text-align: center;
  }
  .licensing-success-summary dl {
    grid-template-columns: 1fr;
    gap: 0.1rem 0;
  }
  .licensing-success-summary dt {
    margin-top: 0.6rem;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--chrome-border);
    padding-top: 2rem;
  }

  .hero-logo {
    height: 100px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cta-btn-group {
    flex-direction: column;
  }
}

/* ===== FEATURE CARD AS LINK (deep-dive entry points) ===== */
/* Cards stack their content and pin the "Read more" affordance to the
   bottom so cards of differing length keep their CTAs aligned. The hover
   treatment only applies when the card is an <a> (the homepage grid); the
   plain <div> feature-cards on other pages are unaffected. */
.feature-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

a.feature-card {
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

a.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26, 29, 38, 0.09);
}

.feature-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.feature-card-more svg {
  flex-shrink: 0;
  transition: transform 0.15s;
}

a.feature-card:hover .feature-card-more svg {
  transform: translateX(3px);
}

/* ===== DEEP-DIVE PAGE BITS ===== */
/* "Back to the site" link sitting under the hero headline on subpages. */
.hero-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chrome-text);
  text-decoration: none;
  transition: color 0.15s;
}

.hero-back svg {
  transition: transform 0.15s;
}

.hero-back:hover {
  color: #ffffff;
}

.hero-back:hover svg {
  transform: translateX(-3px);
}

/* Interlink strip at the foot of each deep-dive page. */
.more-features {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 1.25rem;
}

.more-features .wrap {
  max-width: var(--max-w);
}

/* The shared .gallery-title is white for dark sections; this strip is light. */
.more-features .gallery-title {
  color: var(--text);
  margin-bottom: 0.25rem;
}

.more-features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.more-features-grid a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.more-features-grid a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Clearly-marked placeholder copy in the deep-dive shells. Replace the
   text and drop the class once the real detail is written. */
.ph {
  color: var(--text-dim);
  font-style: italic;
}

.lc-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 5rem);
  background: var(--bg);
}

.lc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.lc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.lc-field--search {
  flex: 1 1 20rem;
}

.lc-field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.lc-field input,
.lc-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.8rem;
  width: 100%;
}

.lc-field select {
  cursor: pointer;
}

.lc-field input:focus-visible,
.lc-field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.lc-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-sec);
  margin-bottom: 1.75rem;
  min-height: 1.2em;
}

.lc-group {
  margin-bottom: 2.75rem;
}

.lc-group-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--chrome);
  margin-bottom: 1.25rem;
}

.lc-group-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
}

.lc-division-block {
  margin-bottom: 1.5rem;
}

.lc-division-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-sec);
  margin-bottom: 0.6rem;
}

.lc-club-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.lc-club {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
}

.lc-club-name {
  font-weight: 500;
}

.lc-club-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.lc-club--licensed .lc-club-status {
  color: var(--green);
  font-weight: 600;
}

.lc-note {
  margin-top: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-sec);
  font-size: 0.95rem;
}

.lc-note p {
  margin: 0 0 0.5rem;
}

.lc-note a {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 560px) {
  .lc-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .lc-field--search {
    flex: 0 0 auto;
  }
  .lc-club-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero--lookup {
    padding: 1.5rem 1.25rem;
  }
  .hero--lookup .hero-grid {
    grid-template-columns: auto 1fr;
    align-items: center;
    text-align: left;
    gap: 1.1rem;
  }
  .hero--lookup .hero-logo {
    height: 56px;
  }
  .hero--lookup .hero-content {
    border-top: none;
    border-left: none;
    padding-top: 0;
    padding-left: 0;
    text-align: left;
  }
  .hero--lookup .hero-content .section-label {
    font-size: 0.72rem;
    margin-bottom: 0.3rem;
  }
  .hero--lookup .hero-content h1 {
    font-size: 1.4rem;
    margin-bottom: 0.45rem;
  }
}
