/* ========================================
   Onboarding quiz — gender → age → name → email
   ======================================== */

.ob-main {
  position: relative;
  min-height: 100vh;
  max-width: 540px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.ob-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.ob-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--soft-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.ob-brand .logo-leaf {
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(94, 234, 212, 0.5));
}

.ob-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--subtle-gray);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-base);
}
.ob-close:hover {
  background: rgba(184, 164, 216, 0.15);
  color: var(--soft-white);
}

/* Progress dots */
.ob-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 44px;
}

.ob-dot {
  height: 6px;
  width: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  transition: width 0.4s ease, background 0.4s ease;
}
.ob-dot.done {
  background: rgba(94, 234, 212, 0.35);
}
.ob-dot.active {
  width: 28px;
  background: var(--teal-glow);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.5);
}

/* Stage container — only one active at a time */
.ob-stage-wrap {
  flex: 1;
  position: relative;
  min-height: 460px;
}

.ob-stage {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 16px;
}

.ob-stage.active {
  display: flex;
  animation: obStageIn 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.ob-stage.leaving {
  animation: obStageOut 0.32s ease-in both;
}

@keyframes obStageIn {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes obStageOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-36px); }
}

.ob-title {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 300;
  text-align: center;
  color: var(--soft-white);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 14px;
}

.ob-subtitle {
  font-size: 14px;
  color: var(--subtle-gray);
  line-height: 1.6;
  text-align: center;
  margin: 0 0 32px;
  max-width: 380px;
  font-weight: 300;
}

/* Choice cards */
.ob-choices {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.ob-choices-tight {
  gap: 9px;
}

.ob-choice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  color: var(--soft-white);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-base);
  width: 100%;
}

.ob-choice-row {
  justify-content: center;
  text-align: center;
}

.ob-choice:hover {
  background: rgba(184, 164, 216, 0.08);
  border-color: rgba(184, 164, 216, 0.25);
  transform: translateY(-1px);
}

.ob-choice.selected {
  background: rgba(94, 234, 212, 0.18);
  border-color: var(--teal-glow);
  box-shadow: 0 4px 18px rgba(94, 234, 212, 0.2);
}

.ob-choice-emoji {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.ob-choice-label {
  font-size: 17px;
  letter-spacing: 0.2px;
}

/* Form (name + email steps) */
.ob-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.ob-form input {
  width: 100%;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: var(--soft-white);
  font-family: inherit;
  font-size: 18px;
  font-weight: 300;
  text-align: center;
  letter-spacing: 0.2px;
  transition: var(--transition-base);
}

.ob-form input::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.ob-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(94, 234, 212, 0.5);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.08);
}

.ob-cta {
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--soft-purple), var(--teal-glow));
  color: var(--deep-navy);
  border: none;
  border-radius: 28px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 6px 18px rgba(184, 164, 216, 0.35);
}

.ob-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(184, 164, 216, 0.5);
}

.ob-cta:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  background: rgba(148, 163, 184, 0.18);
  color: var(--soft-white);
}

.ob-error {
  margin: 4px 0 0;
  padding: 10px 14px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 10px;
  color: #FCA5A5;
  font-size: 13px;
  text-align: center;
}

/* Privacy-policy consent checkbox shown on Step 4 just above the
   "SEND MAGIC LINK" button. The button stays disabled until this
   is ticked. Layout is row: checkbox + a wrapping caption with a
   "Privacy Policy" hyperlink. */
.ob-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--soft-white, #e2e8f0);
  cursor: pointer;
  text-align: left;
}
.ob-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal-glow, #5EEAD4);
  cursor: pointer;
}
.ob-consent-text { flex: 1; }
.ob-consent a {
  color: var(--teal-glow, #5EEAD4);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ob-consent a:hover { opacity: 0.85; }

.ob-fineprint {
  margin-top: 24px;
  font-size: 11px;
  color: var(--subtle-gray);
  text-align: center;
  line-height: 1.6;
  font-style: italic;
  max-width: 380px;
}

/* Done state */
.ob-done-icon {
  font-size: 56px;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 18px rgba(94, 234, 212, 0.5));
  animation: obDonePop 0.6s cubic-bezier(0.34, 1.5, 0.64, 1);
}

@keyframes obDonePop {
  0%   { transform: scale(0.4); opacity: 0; }
  70%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

#emailNameSpan {
  background: linear-gradient(135deg, var(--soft-purple), var(--teal-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}

@media (max-width: 480px) {
  .ob-main { padding: 18px 16px 40px; }
  .ob-header { margin-bottom: 24px; }
  .ob-progress { margin-bottom: 32px; }
  .ob-choice { padding: 16px 18px; font-size: 16px; }
  .ob-choice-emoji { font-size: 24px; }
}
