/* First Look - Chess Club Media
   Zero external dependencies. System font stack. Pure CSS. */

:root {
  --bg-primary: #090d16;
  --bg-secondary: #0d1320;
  --bg-card: #111827;
  --bg-surface: #1e293b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-text: #090d16;
  --focus-ring: #f59e0b;
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

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

.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Header */
.top-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wordmark {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-wordmark:hover {
  color: var(--accent);
}

.nav-links {
  display: none;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.is-active {
  color: var(--accent);
}

.btn-primary-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background-color: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-primary-sm:hover {
  background-color: var(--accent-hover);
}

.btn-primary-sm:active {
  transform: scale(0.98);
}

/* Hero Section */
.hero-section {
  padding: 2.5rem 0 4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
  }
}

.kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.hero-title {
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.75rem;
  }
}

.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
}

.btn-primary-lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}

.btn-primary-lg:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: none;
  text-align: center;
  transition: color 0.15s ease;
}

.btn-secondary:hover {
  color: var(--text-main);
}

.micro-proof {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Video Showcase Box */
.video-carrier {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.video-overlay-top {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.video-badge {
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
}

.video-controls-bottom {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.btn-sound-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-play-toggle {
  padding: 0.625rem;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
}

/* Proof Section */
.proof-section {
  padding: 3.5rem 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.proof-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .proof-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
}

.metric-value.white {
  color: var(--text-main);
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.metric-source {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.proof-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 2rem;
}

@media (min-width: 768px) {
  .proof-details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.proof-narrative {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.proof-narrative strong {
  color: var(--text-main);
}

.proof-callout-box {
  background-color: var(--bg-card);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.proof-callout-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

/* Collapsible Source Citation */
.sources-toggle-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.75rem;
  cursor: pointer;
  margin-top: 1.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.sources-toggle-btn:hover {
  color: var(--text-muted);
}

.sources-toggle-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.sources-toggle-btn[aria-expanded="true"] .sources-toggle-arrow {
  transform: rotate(180deg);
}

.sources-content {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background-color: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.sources-content.open {
  display: block;
}

/* Samples Gallery */
.samples-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.samples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .samples-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sample-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.sample-video-box {
  position: relative;
  aspect-ratio: 9 / 16;
  background-color: #000;
  overflow: hidden;
}

.sample-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.35);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.sample-play-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}

.sample-play-overlay:hover .sample-play-btn {
  transform: scale(1.06);
}

/* Playing silently: clear the dim layer and shrink the button to a "Tap for sound" pill */
.sample-play-overlay.is-live {
  background-color: transparent;
  align-items: flex-end;
  padding-bottom: 0.875rem;
}

.sample-play-overlay.is-live .sample-play-btn {
  width: auto;
  height: auto;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sample-play-overlay.has-sound .sample-play-btn {
  background-color: var(--accent);
  color: var(--accent-text);
}

.sample-caption {
  padding: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.sample-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.sample-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Audio Section */
.audio-section {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.audio-player-box {
  background-color: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
  .audio-player-box {
    padding: 2rem;
  }
}

.audio-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
  .audio-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.audio-active-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-main);
}

.audio-active-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.btn-audio-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-audio-main:hover {
  background-color: var(--accent-hover);
}

.audio-scrubber-area {
  padding: 1.5rem 0 1rem;
}

.audio-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.audio-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-surface);
  cursor: pointer;
  accent-color: var(--accent);
}

.palette-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .palette-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.palette-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background-color: rgba(9, 13, 22, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.palette-btn:hover {
  border-color: var(--border-strong);
  background-color: rgba(9, 13, 22, 0.9);
}

.palette-btn.active {
  background-color: var(--bg-surface);
  border-color: rgba(245, 158, 11, 0.6);
}

.palette-btn-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.palette-btn.active .palette-btn-title {
  color: var(--accent);
}

.palette-btn-desc {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.palette-icon-bubble {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.palette-btn.active .palette-icon-bubble {
  background-color: var(--accent);
  color: var(--accent-text);
}

.palette-btn.is-playing .palette-icon-bubble {
  font-size: 0.625rem;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

/* Steps Section */
.steps-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background-color: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
}

.step-number {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Form Section */
.form-section {
  padding: 4.5rem 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 2rem;
}

.form-wrapper {
  max-width: 540px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

@media (min-width: 640px) {
  .form-box {
    padding: 2.25rem;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

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

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.875rem;
  transition: border-color 0.15s ease;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent);
  outline: none;
}

.form-hint {
  font-size: 0.6875rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.checkbox-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.25rem 0;
  cursor: pointer;
}

.checkbox-input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
  width: 1rem;
  height: 1rem;
}

.checkbox-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-submit {
  width: 100%;
  padding: 0.875rem;
  background-color: var(--accent);
  color: var(--accent-text);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-submit:hover {
  background-color: var(--accent-hover);
}

.form-error {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #fca5a5;
  text-align: center;
}

.form-error a {
  color: var(--accent);
}

.form-subtext {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

/* Confirmation State */
.confirmation-box {
  display: none;
  background-color: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 2.25rem;
  text-align: center;
}

.confirmation-box.active {
  display: block;
}

.confirmation-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.confirmation-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.calendar-action-box {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.calendar-subtext {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-calendar:hover {
  background-color: #334155;
}

/* County Scarcity Section */
.scarcity-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.scarcity-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.scarcity-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Footer */
.page-footer {
  padding: 2.5rem 0;
  background-color: #060910;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-dim);
}

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

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-address {
  line-height: 1.6;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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