/* BetBack — non-AI design system */
/* Fonts: Space Grotesk (display) + IBM Plex Sans (UI) — both self-hosted */
/* Colours: deep green/black, warm white, muted zinc — no CSS variables soup */

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk-v20-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/ibm-plex-sans-v15-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/ibm-plex-sans-v15-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  background: #080f0b;
  color: #e8efe9;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #22c55e; outline-offset: 2px; border-radius: 2px; }

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 15, 11, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #1a2a20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo span { color: #22c55e; }
.badge {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #0d1a12;
  color: #22c55e;
  border: 1px solid #22c55e;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 96px 0 64px;
  text-align: left;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: #f0fdf4;
}
.hero-lead {
  font-size: 1.1rem;
  color: #8ba895;
  max-width: 56ch;
  margin: 0 0 32px;
  line-height: 1.7;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: #16a34a;
  color: #052e16;
  border-color: #16a34a;
}
.btn-primary:hover { background: #15803d; border-color: #15803d; }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
  background: transparent;
  color: #8ba895;
  border-color: #2a4a35;
}
.btn-secondary:hover { color: #e8efe9; border-color: #22c55e; }
.trust-line {
  font-size: 0.85rem;
  color: #6b8a75;
  margin: 0;
}

/* Section rhythm */
section { padding: 72px 0; }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #f0fdf4;
}
.section-sub {
  color: #6b8a75;
  margin: 0 0 36px;
  font-size: 1rem;
  max-width: 50ch;
}

/* Two paths — editorial, not cards */
.paths {
  display: grid;
  gap: 28px;
}
.path-card {
  background: #0d1a12;
  border: 1px solid #1a2a20;
  border-radius: 14px;
  padding: 32px;
}
.path-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #f0fdf4;
}
.path-card .tag {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #0d1a12;
  color: #22c55e;
  border: 1px solid #22c55e;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 10px;
}
.path-card p {
  color: #8ba895;
  margin: 0 0 16px;
  font-size: 0.95rem;
}
.path-card ul {
  margin: 0;
  padding-left: 20px;
  color: #8ba895;
  font-size: 0.9rem;
}
.path-card li { margin-bottom: 8px; line-height: 1.6; }

/* How it works — ordered list, not step cards */
.steps {
  counter-reset: step;
  display: grid;
  gap: 24px;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px;
  background: #0d1a12;
  border: 1px solid #1a2a20;
  border-radius: 12px;
}
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #22c55e;
  line-height: 1;
  align-self: start;
}
.step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #f0fdf4;
}
.step p {
  color: #8ba895;
  margin: 0;
  font-size: 0.95rem;
}

/* Tiers — table, not cards */
.tier-table {
  width: 100%;
  border-collapse: collapse;
  background: #0d1a12;
  border: 1px solid #1a2a20;
  border-radius: 12px;
  overflow: hidden;
  font-size: 1rem;
}
.tier-table th,
.tier-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid #1a2a20;
}
.tier-table th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b8a75;
  background: #080f0b;
}
.tier-table td {
  color: #e8efe9;
}
.tier-table tbody tr:last-child td { border-bottom: none; }
.tier-table tbody tr:hover td { background: #102016; }
.tier-table .tier-featured td {
  background: linear-gradient(90deg, rgba(34,197,94,0.06), transparent);
  border-left: 3px solid #22c55e;
}
.tier-note {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: #6b8a75;
}

/* Trust signals */
.trust {
  background: #0d1a12;
  border-top: 1px solid #1a2a20;
  border-bottom: 1px solid #1a2a20;
}
.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.trust-list li {
  padding: 20px 24px;
  background: #080f0b;
  border: 1px solid #1a2a20;
  border-radius: 10px;
  color: #8ba895;
  font-size: 0.95rem;
  line-height: 1.7;
}
.trust-list strong { color: #e8efe9; }

/* Waitlist form */
.form-card {
  background: #0d1a12;
  border: 1px solid #1a2a20;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 520px;
  margin: 0 auto;
}
.form-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 6px;
}
.form-lead {
  text-align: center;
  color: #6b8a75;
  margin: 0 0 28px;
  font-size: 0.95rem;
}
#waitlist-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b8a75;
  margin-bottom: 6px;
}
#waitlist-form input,
#waitlist-form select {
  width: 100%;
  background: #080f0b;
  border: 1px solid #1a2a20;
  border-radius: 8px;
  padding: 14px 16px;
  color: #e8efe9;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#waitlist-form input:focus,
#waitlist-form select:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}
#waitlist-form input::placeholder { color: #4a6a55; }
.success-message {
  text-align: center;
  padding: 28px;
  background: #052e16;
  border: 1px solid #22c55e;
  border-radius: 12px;
  margin-top: 16px;
}
.success-message h3 { color: #22c55e; margin: 0 0 8px; }
.success-message p { color: #8ba895; margin: 0; }
.form-note {
  font-size: 0.75rem;
  color: #4a6a55;
  text-align: center;
  margin: 16px 0 0;
}

/* FAQ — details/summary, accessible */
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item { border: 1px solid #1a2a20; border-radius: 10px; background: #0d1a12; overflow: hidden; }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  border: none;
  color: #f0fdf4;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after {
  content: '+';
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #22c55e;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-q:focus-visible { outline: 2px solid #22c55e; outline-offset: -2px; border-radius: 8px; }
.faq-a {
  padding: 0 20px 20px;
  color: #8ba895;
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid #1a2a20;
}

/* Footer */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid #1a2a20;
  text-align: center;
}
.footer p {
  font-size: 0.8rem;
  color: #4a6a55;
  margin: 0 0 6px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero { padding: 64px 0 48px; }
  .step { grid-template-columns: 40px 1fr; padding: 18px; }
  .step-num { font-size: 1.25rem; }
  .form-card { padding: 28px 20px; }
  .tier-table th,
  .tier-table td { padding: 14px 16px; font-size: 0.9rem; }
  .path-card { padding: 24px; }
}
@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;
  }
}