/* =============================================
   ASKANOPTOM.COM — Beta page
   Layers on top of style.css. Uses existing tokens only.
   ============================================= */

.beta-nav { justify-content: center; }
.beta-nav .logo { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }

.beta-main {
  max-width: 620px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

/* --- HERO --- */
.beta-hero { text-align: center; margin-bottom: 3rem; }
.beta-hero .hero-title { margin-bottom: 1.25rem; }
.beta-hero .hero-sub { margin-bottom: 0; }

/* --- STAT STRIP --- */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: -1.25rem 0 2.5rem;
}
.stat {
  flex: 1 1 auto;
  min-width: 96px;
  padding: 0.875rem 0.75rem;
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  color: var(--teal-dark);
  letter-spacing: -0.01em;
}
.stat-label {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
}

/* --- PANEL --- */
.beta-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}
.panel-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.beta-confirm { text-align: center; }
.beta-confirm h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.beta-confirm p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
}

/* --- ROLE SELECTOR --- */
.role-set { border: none; margin-bottom: 1.5rem; }
.role-grid { display: grid; gap: 0.625rem; margin-top: 0.625rem; }

.role-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.role-card {
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.875rem;
  row-gap: 2px;
  align-items: start;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.role-card svg {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--text-tertiary);
  transition: color var(--transition);
}
.role-name { font-size: 15px; font-weight: 500; }
.role-note { font-size: 13px; font-weight: 300; color: var(--text-tertiary); }

.role-card:hover { border-color: var(--teal-mid); }
.role-input:checked + .role-card {
  border-color: var(--teal);
  background: var(--teal-light);
}
.role-input:checked + .role-card svg { color: var(--teal-dark); }
.role-input:focus-visible + .role-card {
  outline: 2px solid var(--teal-dark);
  outline-offset: 2px;
}

/* --- FIELDS --- */
.field { margin-bottom: 1.125rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
  padding: 0;
}
.wl-form input[type="text"],
.wl-form input[type="email"] {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.wl-form input:focus { outline: none; border-color: var(--teal); }
.wl-form input:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 1px; }

.wl-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8125rem;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--teal);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.wl-btn:hover { background: var(--teal-dark); }

.form-msg {
  margin-top: 0.875rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--amber);
}

/* Honeypot — hidden from people, visible to bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- ACCESS CODE --- */
.gate {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.gate-label {
  display: block;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-tertiary);
  margin-bottom: 0.625rem;
}
.gate-row {
  display: flex;
  gap: 0.5rem;
  max-width: 320px;
  margin: 0 auto;
}
.gate-row input {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.gate-row input:focus { outline: none; border-color: var(--teal-mid); }
.gate-row input:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 1px; }
.gate-btn {
  padding: 0.625rem 1.125rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  transition: color var(--transition), border-color var(--transition);
}
.gate-btn:hover { color: var(--text-primary); border-color: var(--text-tertiary); }
.gate .form-msg { text-align: center; }

/* --- FOOTER --- */
.beta-footer {
  max-width: 620px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.beta-footer p {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-tertiary);
}
.beta-footer .footer-copy { margin-top: 0.625rem; }

/* --- RESPONSIVE --- */
@media (max-width: 520px) {
  .beta-main { padding-top: 2.75rem; }
  .beta-panel { padding: 1.5rem 1.25rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 1.125rem; }
  .stat { min-width: calc(50% - 0.25rem); }
  .stat-num { font-size: 22px; }
}

/* --- MOTION ---
   Scoped to this page's own components only. A global `*` reset would
   also kill the fadeUp entrance animations in style.css, and anything
   that starts at opacity 0 would never become visible. */
@media (prefers-reduced-motion: reduce) {
  .role-card,
  .wl-form input,
  .wl-btn,
  .gate-row input,
  .gate-btn {
    transition: none;
  }
}
