/* ── Onboarding / Welcome (/welcome) ──────────────────────────────────────── */

.ob-body {
  background: var(--color-bg, #0d0d0f);
  color: var(--color-text, #f0f0f0);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Progress bar */
.ob-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(13, 13, 15, 0.95);
  backdrop-filter: blur(8px);
}

.ob-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.ob-progress-fill {
  height: 100%;
  background: #b4ff3f;
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 20%;
}

.ob-progress-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-family: 'Syne', sans-serif;
  white-space: nowrap;
}

/* Skip button */
.ob-skip-btn {
  position: fixed;
  top: 8px;
  right: 20px;
  z-index: 110;
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}
.ob-skip-btn:hover { color: rgba(255,255,255,0.7); }

/* Container */
.ob-container {
  min-height: 100vh;
  padding-top: 60px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Steps */
.ob-step {
  width: 100%;
  max-width: 520px;
  padding: 32px 24px 80px;
  animation: obFadeIn 0.35s ease;
}
.ob-step--hidden { display: none; }

@keyframes obFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ob-step-inner { width: 100%; }
.ob-step-inner--center { text-align: center; }

/* Logo mark */
.ob-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #b4ff3f;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

/* Typography */
.ob-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 12px;
}

.ob-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 7vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

.ob-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

.ob-accent { color: #b4ff3f; }

.ob-sub {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 28px;
}

/* Bullet list (step 1) */
.ob-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ob-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
}
.ob-bullet-icon {
  color: #b4ff3f;
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Primary CTA button */
.ob-cta-primary {
  display: block;
  width: 100%;
  background: #b4ff3f;
  color: #0d0d0f;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.ob-cta-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.ob-cta-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Voice Builder ─────────────────────────────────────────────────────────── */
.ob-voice-steps { margin-bottom: 24px; }

.ob-vstep { display: flex; flex-direction: column; gap: 14px; }
.ob-vstep--hidden { display: none; }

.ob-label {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.ob-textarea {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #f0f0f0;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  padding: 14px 16px;
  resize: vertical;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.ob-textarea:focus {
  outline: none;
  border-color: #b4ff3f;
}
.ob-textarea::placeholder { color: rgba(255,255,255,0.25); }

.ob-next-sm {
  align-self: flex-end;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #f0f0f0;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 20px;
  transition: background 0.2s, border-color 0.2s;
}
.ob-next-sm:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
}

/* Voice reveal */
.ob-voice-reveal { display: flex; flex-direction: column; gap: 16px; }
.ob-voice-reveal--hidden { display: none; }

.ob-celebration {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b4ff3f;
  text-align: center;
}

.ob-voice-quote {
  background: rgba(180, 255, 63, 0.07);
  border-left: 3px solid #b4ff3f;
  border-radius: 0 10px 10px 0;
  font-size: 17px;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
  padding: 18px 20px;
}

.ob-voice-note {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin: 0 0 8px;
}

/* ── Goal picker ──────────────────────────────────────────────────────────── */
.ob-goal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.ob-goal-card {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.ob-goal-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
}
.ob-goal-card--selected {
  background: rgba(180, 255, 63, 0.08);
  border-color: #b4ff3f;
}

.ob-goal-icon { font-size: 24px; }
.ob-goal-label {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f0f0f0;
}
.ob-goal-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}

/* Goal unlock preview */
.ob-goal-unlock { display: flex; flex-direction: column; gap: 14px; }
.ob-goal-unlock--hidden { display: none; }

.ob-unlock-text {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 14px 16px;
}

/* ── Ideas step ───────────────────────────────────────────────────────────── */
.ob-ideas-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 0;
  color: rgba(255,255,255,0.5);
  font-size: 15px;
}

.ob-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #b4ff3f;
  border-radius: 50%;
  animation: obSpin 0.8s linear infinite;
}
@keyframes obSpin { to { transform: rotate(360deg); } }

.ob-ideas-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}
.ob-ideas-grid--hidden { display: none; }

.ob-idea-card {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
}
.ob-idea-card:hover { border-color: rgba(255,255,255,0.22); }

.ob-idea-hook {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #f0f0f0;
  font-style: italic;
}

.ob-idea-body {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.ob-idea-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ob-idea-format,
.ob-idea-mission {
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.ob-use-idea-btn {
  background: rgba(180, 255, 63, 0.1);
  border: 1.5px solid rgba(180, 255, 63, 0.3);
  border-radius: 8px;
  color: #b4ff3f;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  transition: background 0.2s, border-color 0.2s;
  align-self: flex-start;
}
.ob-use-idea-btn:hover {
  background: rgba(180, 255, 63, 0.18);
  border-color: rgba(180, 255, 63, 0.6);
}

/* ── Step 5 (success) ───────────────────────────────────────────────────────── */
.ob-confetti-emoji {
  font-size: 56px;
  margin-bottom: 20px;
}

.ob-home-link {
  display: block;
  margin-top: 16px;
  color: rgba(255,255,255,0.35);
  font-size: 14px;
  text-decoration: none;
  text-align: center;
}
.ob-home-link:hover { color: rgba(255,255,255,0.7); }

/* Errors */
.ob-error {
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 8px;
}
.ob-error--hidden { display: none; }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .ob-step { padding: 24px 16px 80px; }
  .ob-goal-grid { grid-template-columns: 1fr; }
  .ob-goal-card { flex-direction: row; align-items: center; gap: 12px; }
  .ob-goal-icon { font-size: 28px; }
}
