/* ── Diagnostic page ── */
.diag-page {
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.diag-wrap {
  width: 100%;
  max-width: 680px;
  padding: 44px 24px 60px;
}

/* Progress bar */
.diag-progress {
  margin-bottom: 32px;
}
.diag-progress-track {
  height: 2px;
  background: rgba(255,255,255,0.10);
  border-radius: 2px;
  overflow: hidden;
}
.diag-progress-fill {
  height: 100%;
  background: white;
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.diag-progress-label {
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.38;
}

/* Step */
.diag-step {
  display: none;
  animation: step-in 0.35s cubic-bezier(0.22,1,0.36,1) both;
}
.diag-step.active { display: block; }

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

.diag-step-num {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.35;
  margin-bottom: 12px;
}

.diag-question {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.diag-hint {
  font-size: 0.85rem;
  opacity: 0.5;
  margin-bottom: 22px;
  line-height: 1.5;
}

/* Option cards */
.diag-options {
  display: grid;
  gap: 10px;
}
.diag-options.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.diag-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  user-select: none;
  background: rgba(255,255,255,0.03);
}
.diag-opt:hover {
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.06);
}
.diag-opt.selected {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.09);
}

.diag-opt-check {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.diag-opt.multi .diag-opt-check { border-radius: 4px; }
.diag-opt.selected .diag-opt-check {
  background: white;
  border-color: white;
}
.diag-opt.selected .diag-opt-check::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
}
.diag-opt.multi.selected .diag-opt-check::after {
  content: '';
  width: 10px;
  height: 8px;
  background: transparent;
  border-radius: 0;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(-45deg) translate(1px, -1px);
}

.diag-opt-text { font-size: 0.95rem; font-weight: 500; line-height: 1.3; }
.diag-opt-sub  { font-size: 0.78rem; opacity: 0.5; margin-top: 2px; }

/* Navigation */
.diag-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.diag-btn-back {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.diag-btn-back:hover { color: rgba(255,255,255,0.8); }

.diag-btn-next {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 8px;
  border: none;
  background: white;
  color: #000;
  cursor: pointer;
  transition: opacity 0.15s;
  letter-spacing: 0.01em;
}
.diag-btn-next:disabled {
  opacity: 0.25;
  cursor: default;
}
.diag-btn-next:not(:disabled):hover { opacity: 0.85; }

/* ── Result screen ── */
.diag-result {
  display: none;
  animation: step-in 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.diag-result.active { display: block; }

.result-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 16px;
}
.result-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.result-title span {
  color: var(--accent, #E8B84B);
}
.result-lead {
  font-size: 1rem;
  opacity: 0.68;
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 48px;
}

.result-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 52px;
}

.result-pillar {
  padding: 22px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}
.result-pillar-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-pillar-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 6px;
}
.result-pillar-val {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.result-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: white;
  color: #000;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}
.result-cta-primary:hover { opacity: 0.85; }

.result-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: white;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.result-cta-secondary:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

.result-restart {
  margin-top: 28px;
  font-size: 0.82rem;
  opacity: 0.35;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.15s;
}
.result-restart:hover { opacity: 0.65; }

@media (max-width: 640px) {
  .diag-options.cols-2 { grid-template-columns: 1fr; }
  .result-pillars { grid-template-columns: 1fr; }
}
