/* ==========================================
   ClipForge — Onboarding Page Styles
   ========================================== */

/* Page layout */
.ob-page {
  min-height: 100vh;
  padding: 7rem 1.5rem 4rem;
  max-width: 860px;
  margin: 0 auto;
}

/* Step indicator */
.step-indicator {
  margin-bottom: 4rem;
}

.step-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1rem;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.step-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

.step-dot.done {
  background: var(--accent);
  border-color: var(--accent);
  opacity: 0.5;
}

.step-line {
  width: 80px;
  height: 2px;
  background: var(--border);
}

.step-labels {
  display: flex;
  justify-content: space-between;
  max-width: 340px;
  margin: 0 auto;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.step-label.active { color: var(--cream); }

/* Panels */
.ob-panel {
  display: none;
}

.ob-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* Header */
.ob-header {
  margin-bottom: 3rem;
}

.ob-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.ob-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.ob-headline em {
  font-style: italic;
  color: var(--accent);
}

.ob-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

/* Form sections */
.form-section {
  margin-bottom: 2.5rem;
}

.section-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.375rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
}

.field-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cream-2);
}

.required {
  color: var(--accent);
}

.field-hint {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Inputs */
input[type="text"],
textarea,
select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}

input[type="text"]:focus,
textarea:focus {
  border-color: var(--accent);
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Checkbox grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.platform-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.checkbox-card {
  cursor: pointer;
}

.checkbox-card input {
  display: none;
}

.checkbox-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cream-2);
}

.checkbox-card:hover .checkbox-inner {
  border-color: rgba(249, 115, 22, 0.3);
  background: var(--surface-2);
}

.checkbox-card input:checked + .checkbox-inner {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--cream);
}

.checkbox-icon {
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.2s;
}

.checkbox-card input:checked + .checkbox-inner .checkbox-icon {
  color: var(--accent);
}

/* Platform icons */
.platform-card .checkbox-inner {
  justify-content: center;
}

/* Form footer */
.form-footer {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-start;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: #ea6c0a; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-arrow { transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(12, 10, 9, 0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form error */
.form-error {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 0.875rem;
}

/* ==========================================
   Step 2: Generating state
   ========================================== */
.generating-state {
  text-align: center;
  padding: 3rem 0;
}

.gen-rings {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gen-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(249, 115, 22, 0.3);
  animation: genPulse 2s ease-in-out infinite;
}

.gen-ring-2 {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 2px solid rgba(249, 115, 22, 0.5);
  animation: genPulse 2s ease-in-out infinite 0.4s;
}

@keyframes genPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.6; }
}

.gen-core {
  width: 56px;
  height: 56px;
  background: var(--accent-dim);
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  animation: genPulse 2s ease-in-out infinite 0.2s;
}

.gen-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.gen-sub {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 2.5rem;
}

.gen-steps {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-width: 360px;
  margin: 0 auto;
  text-align: left;
}

.gen-step {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.875rem;
  color: var(--muted);
  opacity: 0.4;
  transition: opacity 0.4s, color 0.4s;
}

.gen-step.active {
  opacity: 1;
  color: var(--cream);
}

.gs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  transition: background 0.4s;
}

.gen-step.active .gs-dot {
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

/* ==========================================
   Step 3: Content Plan Results
   ========================================== */
#plan-results {
  animation: fadeIn 0.5s ease;
}

/* Plan hero */
.plan-hero {
  margin-bottom: 3.5rem;
}

.plan-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.plan-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.plan-headline em {
  font-style: italic;
  color: var(--accent);
}

.plan-overview {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.plan-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
}

.plan-badge svg { flex-shrink: 0; }

/* Section headings */
.section-heading {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--cream-2);
}

/* Week blocks */
.plan-weeks { margin-bottom: 3.5rem; }

.week-block {
  margin-bottom: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.week-header {
  padding: 1.5rem 1.75rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.week-meta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.5rem;
}

.week-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.week-theme {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--cream);
}

.week-focus {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Posts list */
.posts-list {
  display: flex;
  flex-direction: column;
}

.post-item {
  padding: 1.375rem 1.75rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.post-item:last-child { border-bottom: none; }
.post-item:hover { background: var(--surface-2); }

.post-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.post-type-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 0.2rem 0.625rem;
  border-radius: 6px;
}

.post-day {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.post-platform-badge,
.post-goal-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
}

.post-topic {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.375rem;
  line-height: 1.4;
}

.post-caption {
  font-size: 0.8125rem;
  color: var(--cream-2);
  line-height: 1.6;
  margin-bottom: 0.375rem;
}

.post-notes {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

/* Platform strategy */
.plan-strategy { margin-bottom: 3rem; }

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.strategy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.strategy-platform {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.strategy-note {
  font-size: 0.875rem;
  color: var(--cream-2);
  line-height: 1.6;
}

/* Quick wins */
.plan-quickwins,
.plan-voicetips {
  margin-bottom: 3rem;
}

.quickwins-list,
.voicetips-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.quickwins-list li,
.voicetips-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--cream-2);
  line-height: 1.5;
}

.quickwins-list li::before,
.voicetips-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.4rem;
}

/* CTA section */
.plan-cta-section { margin-top: 3.5rem; }

.cta-box {
  background: var(--surface);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  text-align: center;
}

.cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.875rem;
}

.cta-sub {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-cta-primary:hover { background: #ea6c0a; transform: translateY(-1px); }

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.875rem 1rem;
  transition: color 0.2s;
}

.btn-cta-secondary:hover { color: var(--cream); }

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 768px) {
  .ob-page {
    padding: 6rem 1rem 3rem;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn-cta-primary,
  .cta-actions .btn-cta-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
}