/* ── Reset ──────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #111827; line-height: 1.7; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { padding: 16px 32px; border-bottom: 1px solid #e5e7eb; background: white; }
.logo { font-size: 18px; font-weight: 700; color: #6366f1; text-decoration: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { background: #0f172a; color: white; padding: 80px 24px; text-align: center; }
h1 { font-size: 52px; font-weight: 800; color: white; line-height: 1.15; max-width: 700px; margin: 0 auto 20px; }
.sub { font-size: 18px; color: #94a3b8; max-width: 540px; margin: 0 auto 40px; line-height: 1.7; }
#signup-wrap { max-width: 560px; margin: 0 auto; }
.input-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; }
#email-input { padding: 14px 20px; font-size: 16px; border-radius: 8px; border: 2px solid transparent;
  width: 300px; background: white; color: #111827; outline: none; }
#email-input:focus { border-color: #6366f1; }
.cta-btn { padding: 14px 24px; background: #6366f1; color: white; border: none;
  border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cta-btn:hover { background: #4f46e5; }
.cta-btn:disabled { background: #a5b4fc; cursor: not-allowed; }
.form-note { font-size: 13px; color: #64748b; margin-bottom: 8px; }
.social-proof { font-size: 13px; color: #475569; max-width: 440px; margin: 0 auto; }

/* ── Consent box ────────────────────────────────────────────────────────── */
.consent-box { background: #1e293b; border: 1px solid #334155; border-radius: 16px; padding: 24px; text-align: left; margin-top: 16px; }
.consent-title { font-size: 16px; font-weight: 600; color: white; margin-bottom: 20px; }
.consent-row { margin-bottom: 16px; }
.toggle-row { padding-bottom: 16px; border-bottom: 1px solid #334155; }
.toggle-label { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; cursor: pointer; }
.toggle-text { flex: 1; }
.toggle-main { display: block; font-size: 14px; font-weight: 500; color: white; margin-bottom: 4px; }
.toggle-sub { display: block; font-size: 12px; color: #64748b; }
.toggle-wrap { position: relative; width: 44px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.toggle-wrap input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #334155; border-radius: 24px; transition: 0.2s; }
.slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.2s; }
input:checked + .slider { background: #6366f1; }
input:checked + .slider::before { transform: translateX(20px); }

/* ── Flat consent area (sits on dark hero) ──────────────────────────────── */
.consent-area { text-align: left; padding: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.consent-row { display: flex; }

/* Toggle row */
.toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-wrap { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-wrap input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #334155; border-radius: 24px; transition: 0.2s; }
.slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.2s; }
input:checked + .slider { background: #6366f1; }
input:checked + .slider::before { transform: translateX(20px); }

/* Checkbox rows */
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox-label input[type=checkbox] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: #6366f1; }

/* Shared consent text */
.consent-text { font-size: 13px; color: #94a3b8; line-height: 1.6; }
.consent-text a { color: #818cf8; text-decoration: underline; }

.error-msg { color: #f87171; font-size: 13px; margin-top: 10px; }

/* ── Success box ────────────────────────────────────────────────────────── */
.success-box { text-align: center; padding: 24px 0; }
.success-main { font-size: 20px; font-weight: 600; color: #86efac; margin-bottom: 8px; }
.success-sub { font-size: 14px; color: #94a3b8; margin-bottom: 24px; }
.role-section { margin-top: 20px; }
.role-label { font-size: 13px; color: #94a3b8; margin-bottom: 12px; }
.role-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.role-pill { padding: 8px 16px; background: transparent; border: 1px solid #4f46e5; color: white; border-radius: 20px; font-size: 13px; cursor: pointer; }
.role-pill:hover, .role-pill.selected { background: #4f46e5; }
.role-thanks { color: #86efac; font-size: 14px; margin-top: 14px; }

/* ── Why / Use cases / FAQ sections ────────────────────────────────────── */
.why-section, .use-cases-section, .faq-section { max-width: 960px; margin: 0 auto; padding: 80px 24px; }
.section-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #6366f1; margin-bottom: 12px; }
h2 { font-size: 32px; font-weight: 800; color: #0f172a; margin-bottom: 20px; line-height: 1.25; }
.why-body { font-size: 16px; color: #0f172a; max-width: 640px; margin-bottom: 40px; }

/* ── Pillars ────────────────────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.pillar { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px; }
.pillar-label { display: inline-block; background: #0f172a; color: #a5b4fc; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.pillar p { font-size: 15px; color: #0f172a; line-height: 1.7; }

/* ── Use case grid ──────────────────────────────────────────────────────── */
.use-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.use-case-card { border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px; }
.use-case-card h3 { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.use-case-card p { font-size: 14px; color: #0f172a; line-height: 1.7; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
details { border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-size: 15px; font-weight: 600; color: #0f172a; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: '+'; font-size: 18px; color: #6366f1; font-weight: 400; }
details[open] summary::after { content: '−'; }
details p { font-size: 14px; color: #0f172a; margin-top: 12px; line-height: 1.7; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer { text-align: center; padding: 40px 24px; color: #9ca3af; font-size: 13px; border-top: 1px solid #f3f4f6; }
footer a { color: #6366f1; text-decoration: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  .site-header { padding: 14px 20px; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 20px; }
  h1 { font-size: 28px; }
  .sub { font-size: 15px; }
  .input-row { flex-direction: column; align-items: stretch; }
  #email-input, .cta-btn { width: 100%; }
  .why-section, .use-cases-section, .faq-section { padding: 56px 16px; }
  h2 { font-size: 24px; }
}
