/* ═══════════════════════════════════════════════════════════════
   Layout — two-panel primary screen + step transitions
   ═══════════════════════════════════════════════════════════════ */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 96px; /* room for fixed price bar */
}

.step {
  display: none;
  width: 100%;
  animation: stepIn var(--t-med) var(--ease-out);
}

.step.active { display: block; }

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

/* ── Two-panel layout (Step 1) ──────────────────────────────── */

.two-panel {
  display: grid;
  grid-template-columns: minmax(320px, 480px) 1fr;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - 96px);
}

.panel {
  padding: var(--sp-2xl) var(--sp-xl);
}

.panel-left {
  background: var(--bg);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}

.panel-right {
  background: var(--surface);
  min-height: 100%;
}

.panel-header { margin-bottom: var(--sp-xl); }

.panel-step {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}

.panel-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 var(--sp-sm);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.panel-title .required { color: var(--error); margin-left: 2px; }

.panel-subtitle {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
  max-width: 420px;
}

.empty-state {
  padding: var(--sp-2xl) var(--sp-xl);
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  background: var(--bg);
  border-radius: var(--r-md);
  border: 1px dashed var(--border);
}

/* ── Step 2 (recommendation) — single column centered ───────── */

.step-content {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-2xl) var(--sp-lg);
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 var(--sp-sm);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.step-subtitle {
  font-size: var(--fs-md);
  color: var(--text-muted);
  margin: 0 0 var(--sp-2xl);
  max-width: 520px;
}

.section { margin-bottom: var(--sp-xl); }

.section-divider {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-md);
  margin: var(--sp-2xl) 0 var(--sp-md);
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-md);
  margin-top: var(--sp-2xl);
}

.nav .spacer { flex: 1; }

/* ── Mobile: stack panels ──────────────────────────────────── */

@media (max-width: 720px) {
  .two-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .panel-left {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: var(--sp-xl) var(--sp-md);
  }
  .panel-right {
    padding: var(--sp-xl) var(--sp-md);
  }
  .panel-title { font-size: var(--fs-xl); }
  .step-content { padding: var(--sp-xl) var(--sp-md); }
  .step-title { font-size: var(--fs-2xl); }
}
