/* ── Discover page ─────────────────────────────────────────────────────────── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); text-decoration: none; }

.discover-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* Hero */
.discover-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.discover-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.discover-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.discover-hero__sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Wizard ──────────────────────────────────────────────────────────────── */

.wizard {
  max-width: 680px;
  margin: 0 auto;
}

/* Progress bar */
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.wizard-progress-step {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.wizard-progress-step.active {
  border-color: var(--accent);
  color: var(--accent);
}

.wizard-progress-step.done {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.wizard-progress-line {
  flex: 1;
  max-width: 5rem;
  height: 1px;
  background: var(--border);
  transition: background 0.2s;
}

.wizard-progress-line.done {
  background: var(--accent);
}

/* Panel */
.wizard-panel {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.wizard-panel--exit {
  opacity: 0;
  transform: translateX(-12px);
  pointer-events: none;
}

.wizard-panel--enter {
  opacity: 0;
  transform: translateX(12px);
}

/* Question label */
.wizard-question {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  text-align: center;
  margin-bottom: 1.75rem;
  line-height: 1.4;
}

/* Option grids */
.wizard-options {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

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

.wizard-options--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* Option cards */
.wizard-option-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
  font-family: var(--font-sans);
}

.wizard-option-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.wizard-option-card:active {
  transform: translateY(0);
}

.wizard-option-label {
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
}

.wizard-option-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  font-weight: 300;
}

/* Step 3 hint */
.wizard-step3-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  margin-top: -1rem;
}

/* Archetype chip grid (step 3) */
.picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
}

.archetype-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.4;
}

.archetype-chip:hover {
  border-color: var(--accent);
  color: var(--white);
}

.archetype-chip.selected {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* Step 3 actions */
.wizard-step3-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Back button */
.btn-back {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.35rem 0;
  transition: color 0.15s;
}

.btn-back:hover {
  color: var(--text-muted);
}

/* Find button */
.btn-find {
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-find:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-find:not(:disabled):hover {
  opacity: 0.88;
}

/* ── Results section ─────────────────────────────────────────────────────── */

.results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.results-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
}

.btn-reset {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-reset:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* Result cards */
.results-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  animation: card-in 0.25s var(--ease-bar) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-card--low       { border-left: 3px solid var(--risk-low); }
.result-card--moderate  { border-left: 3px solid var(--risk-moderate); }
.result-card--high      { border-left: 3px solid var(--risk-high); }
.result-card--very-high { border-left: 3px solid var(--risk-very-high); }

.result-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}

.result-card__title-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.result-card__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}

.result-sessions {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.result-card__scores {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.result-match-score {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}

.result-risk {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.result-risk--low        { background: rgba(122,158,126,0.15); color: var(--risk-low); }
.result-risk--moderate   { background: rgba(196,163,90,0.15);  color: var(--risk-moderate); }
.result-risk--high       { background: rgba(196,136,74,0.15);  color: var(--risk-high); }
.result-risk--very-high  { background: rgba(196,90,90,0.15);   color: var(--risk-very-high); }

.result-tasks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.result-tasks li {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.task-pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-right: 0.4rem;
}

.result-card__actions {
  display: flex;
  justify-content: flex-end;
}

.result-cta {
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.result-cta:hover {
  background: var(--accent-dim);
  text-decoration: none;
}

/* Empty state */
.results-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.results-empty__sub {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Gap CTA */
.discover-gap-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
}

.discover-gap-cta p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.btn-gap-cta {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s;
}

.btn-gap-cta:hover {
  background: var(--accent-dim);
  text-decoration: none;
}

.picker-error {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .wizard-options--2col,
  .wizard-options--3col {
    grid-template-columns: 1fr;
  }

  .wizard-step3-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .btn-find {
    width: 100%;
    text-align: center;
  }

  .btn-back {
    text-align: center;
  }

  .result-card__header {
    flex-direction: column;
  }
}
