/* 04-onboarding.css — Onboarding overlay, assessment questions, pathway results, progress bar */

/* ══════════════════════════════════════
   ONBOARDING OVERLAY
══════════════════════════════════════ */
.onboarding {
  position: fixed; inset: 0;
  background-color: transparent;
  z-index: 200;
  display: flex; flex-direction: column; align-items: center;
  overflow-y: auto; overflow-x: hidden;
  padding: 0 20px;
}

.onboarding::before {
  /* overlay handled by 11-imagery.css */
}

.onboarding-card {
  position: relative; z-index: 1;
  max-width: 680px; width: 100%;
  animation: fadeUp 0.5s ease;
  padding: 52px 0 60px;
  margin: 0 auto;
}

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

.ob-step { display: none; }
.ob-step.active { display: block; }

/* Welcome step */
.ob-brand {
  margin-bottom: 40px;
  text-align: center;
}

.ob-brand-geo {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.5em; text-transform: uppercase;
  color: white; display: block; margin-bottom: 4px;
}

.ob-brand-full {
  font-family: 'Spectral', serif;
  font-size: 18px; font-style: italic; font-weight: 700;
  color: var(--gold-light); letter-spacing: 0.1em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6), 0 0 2px rgba(0,0,0,0.3);
}

.ob-welcome-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400; color: white;
  line-height: 1.15; margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 1px 6px rgba(0,0,0,0.5), 0 0 2px rgba(0,0,0,0.3);
}

.ob-welcome-title em {
  font-style: italic; color: white;
  text-shadow: 0 0 40px rgba(255,255,255,0.8), 0 0 16px rgba(255,255,255,0.6), 0 2px 20px rgba(0,0,0,0.8), 0 0 4px rgba(0,0,0,0.4);
}

.ob-welcome-sub {
  font-family: 'Spectral', serif;
  font-size: 17px; font-weight: 400; font-style: italic;
  color: white;
  line-height: 1.75; text-align: center;
  max-width: 520px; margin: 0 auto 48px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.6), 0 0 2px rgba(0,0,0,0.4);
}

.ob-steps-preview {
  display: flex; gap: 0;
  border: 1px solid rgba(255,255,255,0.50);
  margin-bottom: 40px;
  background: rgba(80, 55, 35, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ob-step-prev {
  flex: 1; padding: 18px 16px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.50);
}

.ob-step-prev:last-child { border-right: none; }

.ob-step-prev-n {
  font-family: 'Playfair Display', serif;
  font-size: 32px; color: white;
  line-height: 1; margin-bottom: 8px;
  display: block; min-height: 38px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.ob-step-prev-label {
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.78);
  line-height: 1.4; letter-spacing: 0.04em;
}

.ob-btn-primary {
  display: block; width: 100%;
  background: var(--terracotta); color: white;
  border: none; cursor: pointer;
  padding: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 0.2s;
}

.ob-btn-primary:hover { background: var(--terra-light); }

.ob-btn-secondary {
  display: block; width: 100%;
  background: rgba(80, 55, 35, 0.55); color: white;
  border: 1px solid rgba(255,255,255,0.30); cursor: pointer;
  padding: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase;
  transition: background 0.2s;
  margin-top: 12px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ob-btn-secondary:hover { background: rgba(80, 55, 35, 0.65); }

/* Assessment step */
.ob-panel {
  background: rgba(40, 30, 20, 0.45);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 40px;
  margin-bottom: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ob-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 28px); font-weight: 400; color: white;
  margin-bottom: 10px; line-height: 1.25;
}

.ob-panel-title em { font-style: italic; color: white; }

.ob-panel-sub {
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.92);
  line-height: 1.65; margin-bottom: 32px;
}

/* Assessment questions */
.assess-q {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.assess-q:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.assess-q-label {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.97);
  margin-bottom: 14px; line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.assess-options {
  display: flex; flex-direction: column; gap: 8px;
}

.assess-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid rgba(255,255,255,0.28);
  cursor: pointer;
  transition: all 0.2s;
}

.assess-opt:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.03); }
.assess-opt.selected { border-color: var(--terracotta); background: rgba(184,92,56,0.08); }

.assess-opt-marker {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.75);
  border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  background: rgba(255,255,255,0.08);
}

.assess-opt.selected .assess-opt-marker {
  border-color: var(--terracotta);
  background: var(--terracotta);
}

.assess-opt.selected .assess-opt-marker::after {
  content: '';
  width: 5px; height: 5px;
  background: white; border-radius: 50%;
}

.assess-opt-text {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.95); line-height: 1.45;
}

/* Results step */
.pathway-results { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }

.pathway-result-card {
  border: 1.5px solid rgba(255,255,255,0.45);
  padding: 20px 24px;
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(0,0,0,0.25);
}

.pathway-result-card:hover { border-color: rgba(255,255,255,0.25); }

.pathway-result-card.primary {
  border-color: var(--gold);
  background: rgba(184,146,74,0.08);
}

.pathway-result-card.selected {
  border-color: var(--terracotta) !important;
  background: rgba(184,92,56,0.1) !important;
}

.prc-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 8px;
}

.prc-badge {
  display: flex; align-items: center; gap: 8px;
}

.prc-icon { font-size: 18px; }

.prc-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 400; color: white;
}

.prc-tag {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  padding: 3px 10px;
  flex-shrink: 0;
}

.tag-recommended { background: rgba(184,92,56,0.85); color: white; border: 1px solid rgba(184,92,56,0.95); font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.tag-viable { background: rgba(255,255,255,0.25); color: white; border: 1px solid rgba(255,255,255,0.65); font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.tag-selected { background: rgba(184,92,56,0.2); color: var(--terra-light); border: 1px solid rgba(184,92,56,0.3); }

.prc-desc {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.90);
  line-height: 1.6; margin-bottom: 10px;
}

.prc-constraints { display: flex; flex-wrap: wrap; gap: 6px; }

.prc-constraint {
  font-size: 10px; font-weight: 600;
  padding: 3px 10px;
  background: rgba(184,92,56,0.55);
  border: 1px solid rgba(184,92,56,0.8);
  color: #ffffff;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.prc-constraint.ok {
  background: rgba(45,74,62,0.65);
  border-color: rgba(106,175,150,0.85);
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.ob-progress {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}

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

.ob-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  transition: width 0.4s ease;
}

.ob-progress-label {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.08em; white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
