/* ============================================================
   KAPOOOL Waitlist — styles.css
   Production build — Mobile-first, dark, typography-led
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d1117;
  --bg-alt:    #111820;
  --bg-card:   #161d27;
  --green:     #00c853;
  --green-dim: #009e42;
  --text:      #e8eaf0;
  --text-muted:#8a93a8;
  --border:    #1e2a38;
  --error:     #ff5252;
  --radius:    8px;
  --max-w:     680px;
  --font:      'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin-bottom: 1rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: opacity 0.15s;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; text-decoration: none; }
.btn-primary  { background: var(--green); color: #000; }
.btn-secondary{ background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-submit   { width: 100%; margin-top: 8px; min-height: 52px; font-size: 1.05rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Sections ---- */
section { padding: 56px 0; }
section:nth-child(even) { background: var(--bg-alt); }

/* ---- HERO ---- */
.hero { padding: 72px 0 56px; text-align: center; }
.hero-badge {
  display: inline-block;
  background: rgba(0,200,83,0.12);
  color: var(--green);
  border: 1px solid rgba(0,200,83,0.3);
  border-radius: 40px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}
.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 28px;
}
.hero .btn { min-width: 220px; }
.hero-context {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- HOW IT WORKS ---- */
.how-it-works { text-align: center; }
.steps { display: flex; flex-direction: column; gap: 28px; margin-top: 32px; text-align: left; }
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  font-weight: 800;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.disclaimer-inline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 0;
}

/* ---- BRING YOUR TABLE ---- */
.crew-steps { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.crew-step {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.95rem;
}
.crew-step span {
  min-width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.crew-note { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 24px; }
.bring-table .btn { margin-top: 4px; }

/* ---- FOUNDING HOST ---- */
.benefits { list-style: none; margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.benefits li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.95rem;
}
.urgency { color: var(--green); font-weight: 600; margin: 20px 0; }

/* ---- TOKENS ---- */
.tokens { text-align: center; }
.tokens h2 { font-size: clamp(1.1rem, 3vw, 1.4rem); }

/* ---- SIGNUP FORM ---- */
.signup { background: var(--bg-alt); }
.signup h2 { text-align: center; }
.form-sub { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }

#waitlist-form { display: flex; flex-direction: column; gap: 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus { border-color: var(--green); }
.form-group input.invalid { border-color: var(--error); }

.required { color: var(--green); }
.optional { color: var(--text-muted); font-weight: 400; font-size: 0.8rem; }

.radio-group { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 400; }
.radio-label input[type="radio"] { accent-color: var(--green); width: 18px; height: 18px; }

.other-country { margin-top: 8px; }
.hidden { display: none !important; }

.crew-group { background: var(--bg-card); border: 1px solid rgba(0,200,83,0.25); border-radius: var(--radius); padding: 16px; }
.crew-group label { color: var(--green); }
.field-hint { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 0.9rem; cursor: pointer; }
.checkbox-label input[type="checkbox"] { accent-color: var(--green); width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.required-check { margin-top: 4px; }

.field-error { display: block; color: var(--error); font-size: 0.82rem; margin-top: 4px; min-height: 18px; }

.form-error-banner {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  background: rgba(255,82,82,0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

/* Honeypot — visually hidden, never shown to humans */
.honeypot-wrap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.honeypot { display: block; width: 0; height: 0; }

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* ---- THANK YOU BLOCK ---- */
.thankyou-block {
  background: var(--bg-card);
  border: 1px solid rgba(0,200,83,0.3);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  margin-top: 8px;
}
.ty-check {
  font-size: 2.5rem;
  color: var(--green);
  margin-bottom: 12px;
}
.ty-heading { margin-bottom: 8px; }
.ty-sub { color: var(--text-muted); margin-bottom: 24px; }

.ty-crew-box {
  background: var(--bg);
  border: 1px solid rgba(0,200,83,0.2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}
.ty-crew-label { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; }
.ty-crew-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0;
}

.ty-share-intro { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }
.ty-share-message {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.65;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 16px;
}

.ty-copy-wrap { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 16px; }
.ty-copy-confirm { color: var(--green); font-size: 0.88rem; font-weight: 600; }

.ty-fallback { margin-top: 8px; text-align: left; }
.ty-fallback-label { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.ty-fallback-text {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.85rem;
  padding: 12px;
  resize: none;
  line-height: 1.6;
}

/* ---- FAQ ---- */
.faq h2 { margin-bottom: 24px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  padding: 16px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--green); flex-shrink: 0; transition: transform 0.2s; }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0 0 16px;
  display: none;
  line-height: 1.65;
}
.faq-a.open { display: block; }

/* ---- FINAL CTA ---- */
.final-cta { text-align: center; }
.final-cta h2 { margin-bottom: 16px; }
.final-cta p { color: var(--text-muted); margin-bottom: 24px; }

/* ---- FOOTER ---- */
.site-footer {
  background: #090d12;
  padding: 36px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-compliance { font-size: 0.78rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 12px; line-height: 1.5; }
.footer-links { font-size: 0.82rem; margin-bottom: 8px; }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* ---- Responsive (tablet+) ---- */
@media (min-width: 600px) {
  .steps { flex-direction: row; }
  .step { flex: 1; }
}
