/* ============================================================
   papsbot — readiness.css
   Step wizard with progress bar
   ============================================================ */

.wizard {
  background: var(--paper-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}

/* Progress bar */
.wizard__progress {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.wizard__progress-bar {
  background: var(--paper-muted);
  height: 6px;
  border-radius: var(--r-pill);
  flex: 1;
  overflow: hidden;
}
.wizard__progress-fill {
  height: 100%;
  background: var(--signal);
  border-radius: var(--r-pill);
  width: 20%;
  transition: width 300ms var(--ease-out);
}
.wizard__progress-text {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  font-weight: 650;
  color: var(--ink-35);
  white-space: nowrap;
}

/* Steps */
.wizard__step { display: none; }
.wizard__step--active { display: block; animation: fadeIn 200ms var(--ease-out); }

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

.wizard__question {
  font-size: var(--t-24);
  font-weight: 700;
  margin: 0 0 var(--s-4);
  line-height: var(--lh-snug);
}

/* Options as clickable cards */
.wizard__options {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.wizard__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--s-3) var(--s-4);
  font-family: inherit;
  font-size: var(--t-16);
  font-weight: 500;
  color: var(--ink-90);
  background: var(--paper-elevated);
  border: 2px solid var(--rule);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.wizard__option:hover {
  border-color: var(--signal);
  background: var(--signal-muted);
}
.wizard__option--selected {
  border-color: var(--signal);
  background: var(--signal-soft);
  color: var(--signal-hover);
}
.wizard__option--selected::after {
  content: " ✓";
  color: var(--signal);
  font-weight: 700;
}

/* Back button */
.wizard__back {
  display: inline-block;
  margin-top: var(--s-3);
  background: none;
  border: none;
  font-family: inherit;
  font-size: var(--t-14);
  color: var(--ink-35);
  cursor: pointer;
  padding: var(--s-1) 0;
}
.wizard__back:hover { color: var(--ink-80); }

/* Result */
.wizard__result {
  text-align: center;
  padding: var(--s-3) 0;
  animation: fadeIn 300ms var(--ease-out);
}
.wizard__result-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--t-12);
  font-weight: 650;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--s-2);
}
.wizard__result-title {
  font-size: var(--t-28);
  font-weight: 750;
  margin: 0 0 var(--s-3);
  line-height: var(--lh-snug);
}
.wizard__result-summary {
  font-size: var(--t-18);
  color: var(--ink-55);
  margin: 0 0 var(--s-2);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.wizard__result-next {
  font-size: var(--t-14);
  color: var(--ink-35);
  margin: 0 0 var(--s-4);
}
.wizard__result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: center;
}

@media (max-width: 480px) {
  .wizard { padding: var(--s-3); border-radius: var(--r-lg); }
  .wizard__question { font-size: var(--t-18); }
  .wizard__option { padding: var(--s-2) var(--s-3); font-size: var(--t-14); }
  .wizard__result-title { font-size: var(--t-22); }
  .wizard__result-summary { font-size: var(--t-16); }
}
