:root {
  --bg: #FBF7FF;
  --text: #4A3226;
  --heading: #3B2E5C;
  --muted: #6B5F8C;
  --muted-2: #9186B0;
  --faint: #9186B0;
  --accent: #8B6FE8;
  --accent-dark: #7458D6;
  --accent-text: #6B4FD1;
  --brown: #4A3B7A;
  --pill-bg: #EAE1FB;
  --card-bg: #FFFFFF;
  --card-warm: #F1EBFC;
  --border: #E4D9F7;
  --input-border: #D9C9F5;
  --whatsapp: #3F9E5C;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--brown); }

button { font-family: inherit; }

.page { min-height: 100vh; background: var(--bg); overflow-x: hidden; }

.screen { animation: floatIn 0.5s ease both; }

@keyframes floatIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Nav / brand ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6vw;
  max-width: 1100px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-dot { width: 34px; height: 34px; flex-shrink: 0; }
.brand-name {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--brown);
}
.brand-name.small { font-size: 16px; }
.nav-link { font-weight: 700; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 8vh 6vw 6vh;
  text-align: center;
}
.pill {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(30px, 5.5vw, 54px);
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--heading);
  font-weight: 800;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 34px;
}
.hero-meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted-2);
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  border: none;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(214, 140, 69, 0.35);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { background: var(--accent); }
.btn-lg { padding: 18px 40px; font-size: 18px; }
.btn-brown { background: var(--brown); color: #fff; padding: 13px 26px; font-size: 15px; }
.btn-brown:hover { background: #744836; color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; padding: 14px 18px; font-size: 14px; border-radius: 14px; }
.btn-whatsapp:hover { background: #358a4f; color: #fff; }
.btn-outline {
  background: #fff;
  border: 1.5px solid var(--accent);
  color: var(--accent-text);
  padding: 14px 18px;
  font-size: 14px;
  border-radius: 14px;
}
.btn-outline:hover { background: #FFF6EC; color: var(--accent-text); }

/* ---------- Steps ---------- */
.steps {
  max-width: 980px;
  margin: 0 auto;
  padding: 4vh 6vw 8vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
}
.step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--pill-bg);
  color: var(--accent-text);
  font-weight: 800;
  font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.step-title { font-weight: 800; font-size: 17px; margin-bottom: 8px; color: var(--heading); }
.step-desc { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ---------- Waitlist ---------- */
.waitlist-wrap { max-width: 720px; margin: 0 auto; padding: 2vh 6vw 10vh; }
.waitlist-card {
  background: var(--card-warm);
  border-radius: 28px;
  padding: 36px 30px;
  text-align: center;
}
.badge-soon {
  display: inline-block;
  background: #fff;
  color: var(--accent-text);
  font-weight: 800;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.waitlist-title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--heading);
  margin-bottom: 10px;
}
.waitlist-desc { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0 0 22px; }
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist-form input {
  flex: 1;
  min-width: 200px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--input-border);
  font-size: 15px;
  background: #fff;
  font-family: inherit;
  color: var(--text);
}
.waitlist-form input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.waitlist-feedback { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--accent-text); }

.site-footer { text-align: center; padding: 0 6vw 6vh; font-size: 13px; color: var(--faint); }

/* ---------- Demographics ---------- */
.demo-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 8vh 6vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.demo-kicker {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--heading);
  margin-bottom: 36px;
}
.demo-group { width: 100%; margin-bottom: 28px; }
.demo-label {
  font-weight: 800;
  font-size: 14px;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-align: left;
}
.demo-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-btn {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  cursor: pointer;
}
.choice-btn:hover { border-color: var(--accent); background: #F3EEFD; }
.choice-btn.selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.demo-note { margin-top: 22px; font-size: 13px; color: var(--muted-2); line-height: 1.5; max-width: 420px; }

/* ---------- Quiz ---------- */
.quiz-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 6vh 6vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.quiz-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.question-counter { font-weight: 700; font-size: 14px; color: var(--accent-text); }
.progress-track {
  width: 100%; height: 10px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 44px;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.quiz-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.quiz-kicker {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.quiz-options { display: flex; flex-direction: column; gap: 16px; }
.option-btn {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 22px;
  padding: 26px 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
  animation: floatIn 0.35s ease both;
}
.option-btn:hover { border-color: var(--accent); background: #FFF6EC; }
.quiz-exit { text-align: center; margin-top: 30px; }
.quiz-exit a { font-size: 14px; font-weight: 700; color: var(--faint); }

/* ---------- Result ---------- */
.result-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 6vh 6vw 8vh;
  animation: popIn 0.45s ease both;
}
.result-head { text-align: center; margin-bottom: 34px; }
.result-badge {
  width: 88px; height: 88px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: #fff;
}
.result-kicker {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.result-title {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  color: var(--heading);
  margin: 0 0 16px;
  font-weight: 800;
}
.result-desc { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 520px; margin: 0 auto; }

.card { border-radius: 24px; padding: 26px 24px; margin-bottom: 24px; }
.card-title { font-weight: 800; font-size: 15px; color: var(--heading); margin-bottom: 18px; }
.score-card { background: var(--card-bg); }

.score-row { margin-bottom: 14px; }
.score-row-top {
  display: flex; justify-content: space-between;
  font-size: 14px; font-weight: 700; color: var(--muted);
  margin-bottom: 6px;
}
.score-track { width: 100%; height: 10px; background: var(--border); border-radius: 999px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 999px; }

.tips-sub { font-size: 14px; color: var(--muted); line-height: 1.5; margin: -8px 0 14px; }
.tips-list { list-style: none; padding: 0; margin: 0; }
.tips-list li {
  background: var(--card-warm);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--heading);
  line-height: 1.5;
  margin-bottom: 10px;
}
.tips-list li:last-child { margin-bottom: 0; }

.card-preview-img { display: block; width: 100%; max-width: 320px; margin: 0 auto; border-radius: 18px; box-shadow: 0 12px 30px rgba(74,59,122,0.18); }

.share-card { background: var(--card-warm); }
.share-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.share-actions .btn { flex: 1; min-width: 150px; }
.qr-row { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 16px; padding: 16px; }
.qr-canvas { border-radius: 10px; flex-shrink: 0; width: 100px; height: 100px; overflow: hidden; line-height: 0; }
.qr-note { font-size: 13px; color: var(--muted); line-height: 1.5; }

.result-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.result-actions .btn { flex: 1; min-width: 160px; padding: 15px 20px; font-size: 15px; }
.result-footer { text-align: center; margin-top: 28px; font-size: 14px; color: var(--muted-2); }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; }
}
