/* ============ base ============ */
:root {
  --bg: #0d0f14;
  --bg-raise: #151823;
  --bg-card: #1a1e2c;
  --ink: #f2f3f7;
  --ink-dim: #9aa1b5;
  --accent: #ffd60a;
  --accent-ink: #0d0f14;
  --good: #4ade80;
  --radius: 18px;
  --maxw: 880px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Sora", "Inter", sans-serif; line-height: 1.15; }

.hidden { display: none !important; }
.accent { color: var(--accent); }
.dim { color: var(--ink-dim); }
em { font-style: normal; color: var(--accent); }

/* ============ compare banner ============ */
.compare-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.95rem;
}

/* ============ hero ============ */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 10vh, 120px) 24px 48px;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 214, 10, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.hero .sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-dim);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-mascot { margin-top: 40px; }
.palo { width: min(220px, 50vw); animation: bob 3.2s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============ CTA ============ */
.cta {
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 16px 32px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 6px 30px rgba(255, 214, 10, 0.25);
}

.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(255, 214, 10, 0.35); }
.cta:active { transform: translateY(0); }

.microcopy {
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin-top: 14px;
}

/* ============ sections ============ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 88px) 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin-bottom: 18px;
}

.lede { color: var(--ink-dim); max-width: 640px; margin-bottom: 32px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 24px;
}

.pillar h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--accent); }
.pillar p { font-size: 0.95rem; color: var(--ink-dim); }

/* steps */
.steps { list-style: none; display: grid; gap: 16px; margin-top: 28px; }

.steps li {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 24px 24px 24px 76px;
  position: relative;
}

.step-num {
  position: absolute;
  left: 22px;
  top: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "Sora", sans-serif;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.steps h3 { font-size: 1.1rem; margin-bottom: 8px; }
.steps p { color: var(--ink-dim); font-size: 0.95rem; }

/* perks */
.perks-list { list-style: none; display: grid; gap: 10px; margin: 0 0 32px; }

.perks-list li {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.98rem;
}

.perks-list li::before { content: "✓ "; color: var(--good); font-weight: 700; }

/* faq */
details {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 10px;
}

summary { cursor: pointer; font-weight: 600; font-family: "Sora", sans-serif; }
details p { margin-top: 12px; color: var(--ink-dim); font-size: 0.95rem; }

/* footer */
.footer {
  text-align: center;
  padding: 64px 24px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer p { margin-top: 24px; color: var(--ink-dim); font-size: 0.9rem; }

/* ============ quiz overlay ============ */
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 9, 13, 0.92);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.quiz-frame {
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-raise);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 20px 24px 32px;
}

.quiz-topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }

.quiz-progress {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.quiz-close {
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.quiz-body h3 { font-size: 1.25rem; margin-bottom: 6px; }
.quiz-body .q-hint { color: var(--ink-dim); font-size: 0.88rem; margin-bottom: 16px; }

.scene {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
}

.scene svg { width: min(280px, 70vw); height: auto; }

.scene-label {
  font-size: 0.85rem;
  color: var(--ink-dim);
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}

.captions { display: grid; gap: 10px; }

.caption-btn {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--ink);
  padding: 14px 16px;
  font-size: 0.98rem;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: border-color 0.12s, transform 0.12s;
}

.caption-btn:hover { border-color: var(--accent); transform: translateX(3px); }

/* preference chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

.chip {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--ink);
  padding: 10px 18px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.12s;
}

.chip:hover { border-color: var(--accent); }
.chip.selected { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

/* free text */
.bonus-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--ink);
  padding: 14px 16px;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  margin-bottom: 14px;
  resize: vertical;
  min-height: 70px;
}

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

.quiz-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

.btn-secondary {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--ink-dim);
  padding: 12px 22px;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  border: none;
  border-radius: 999px;
  color: var(--accent-ink);
  font-weight: 700;
  padding: 12px 26px;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: "Sora", sans-serif;
}

.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

/* ============ DNA result ============ */
.dna-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 214, 10, 0.3);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.dna-archetype {
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 6px 0 2px;
}

.dna-sub { color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 20px; }

.trait-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; text-align: left; }
.trait-name { width: 110px; font-size: 0.88rem; font-weight: 600; flex-shrink: 0; }
.trait-bar { flex: 1; height: 10px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; }
.trait-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.7s ease; }
.trait-pct { width: 44px; font-size: 0.85rem; color: var(--ink-dim); text-align: right; }

.trait-row.locked { filter: blur(5px); user-select: none; pointer-events: none; }

.locked-note {
  font-size: 0.9rem;
  color: var(--accent);
  margin: 14px 0 4px;
  font-weight: 600;
}

/* signup form */
.signup-form { display: grid; gap: 12px; margin-top: 18px; }

.signup-form input[type="email"],
.signup-form input[type="text"] {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--ink);
  padding: 14px 16px;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  width: 100%;
}

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

.form-error { color: #f87171; font-size: 0.88rem; min-height: 1.2em; }
.turnstile-wrap { min-height: 0; margin-top: 4px; }
.turnstile-wrap:empty { display: none; }

/* Full-page human gate (Turnstile) — blocks the site until verified */
html.mp-gated,
html.mp-gated body {
  overflow: hidden !important;
  height: 100%;
}
#mp-human-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 214, 10, 0.12), transparent 55%),
    rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
#mp-human-gate.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.mp-human-gate__card {
  width: min(400px, 100%);
  text-align: center;
  padding: 28px 24px 22px;
  border-radius: 18px;
  background: #151823;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.mp-human-gate__brand {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffd60a;
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.mp-human-gate__title {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f2f3f7;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.mp-human-gate__copy {
  margin: 0 0 20px;
  color: #9aa1b5;
  font-size: 0.92rem;
  line-height: 1.45;
}
.mp-human-gate__widget {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin-bottom: 14px;
}
.mp-human-gate__status {
  margin: 0;
  color: #9aa1b5;
  font-size: 0.82rem;
}

.compat-card {
  background: linear-gradient(135deg, rgba(255, 214, 10, 0.12), rgba(255, 214, 10, 0.03));
  border: 1px solid rgba(255, 214, 10, 0.4);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 18px;
}

.compat-pct { font-family: "Sora", sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--accent); }

.share-row { display: grid; gap: 10px; margin-top: 18px; }

.success-check { font-size: 2.6rem; }

@media (max-width: 560px) {
  .quiz-frame { padding: 16px 16px 24px; }
  .trait-name { width: 92px; }
}
