/* ── Quiz shell ──────────────────────────────────────────────────────────── */
.qz-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fff 0%, #fff8f1 100%);
}

/* ── Top nav ─────────────────────────────────────────────────────────────── */
.qz-topnav {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.qz-topnav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.qz-topnav .brand { flex: 0 0 auto; }
.qz-topnav .btn   { flex: 0 0 auto; margin-left: auto; }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.qz-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
}
.qz-progress-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--border-soft);
  overflow: hidden;
}
.qz-progress-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.qz-progress-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ── Main area ───────────────────────────────────────────────────────────── */
.qz-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
}
.qz-card {
  width: 100%;
  max-width: 680px;
}

/* ── Intro ───────────────────────────────────────────────────────────────── */
.qz-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.qz-intro-mark {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.qz-intro-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-top: 4px;
}
.qz-intro-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-2);
  line-height: 1.55;
  max-width: 52ch;
  margin: 0;
}
.qz-intro-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-3);
}
.qz-start-btn { align-self: flex-start; margin-top: 8px; }

/* ── Question step ───────────────────────────────────────────────────────── */
.qz-step {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.qz-question {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 4px 0 0;
}

/* ── Options ─────────────────────────────────────────────────────────────── */
.qz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qz-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  width: 100%;
}
.qz-option:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.qz-option.active {
  border-color: var(--primary);
  background: #fffaf4;
  box-shadow: 0 0 0 3px rgba(217,123,25,0.12);
}
.qz-option-dot {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  margin-top: 1px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  color: #fff;
}
.qz-option.active .qz-option-dot {
  border-color: var(--primary);
  background: var(--primary);
}
.qz-option-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.qz-option-label {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.qz-option-sub {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.45;
}
.qz-option.active .qz-option-label { color: var(--primary-deep, #7a3f0d); }

/* ── Nav buttons ─────────────────────────────────────────────────────────── */
.qz-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--border-soft);
}
.qz-nav .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ── Result ──────────────────────────────────────────────────────────────── */
.qz-result {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.qz-result-eyebrow { display: flex; }
.qz-result-intro {
  font-size: 16px;
  color: var(--text-2);
  margin: 0;
}
.qz-result-card {
  background: #fff;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.qz-result-card.recommended {
  background: linear-gradient(135deg, #fff 0%, #fffaf2 100%);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.qz-result-card.recommended::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: calc(var(--radius-lg) + 1.5px);
  padding: 1.5px;
  background: var(--grad-primary);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.qz-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.qz-result-price { text-align: right; }
.qz-price-amount {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.qz-price-startup {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}
.qz-result-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}
.qz-result-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.qz-result-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.qz-result-features .tick {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--primary);
}
.qz-result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
}

/* ── Answers summary ─────────────────────────────────────────────────────── */
.qz-answers-summary {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qz-summary-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 4px;
}
.qz-summary-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.qz-summary-row:last-child { border-bottom: none; padding-bottom: 0; }
.qz-summary-q {
  font-size: 12px;
  color: var(--text-3);
}
.qz-summary-a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.qz-restart { align-self: flex-start; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.qz-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}
.qz-footer a { color: var(--primary); }
.qz-footer a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .qz-topnav .btn { display: none; }
  .qz-progress { max-width: none; }
  .qz-result-actions { flex-direction: column; }
  .qz-result-actions .btn { justify-content: center; }
  .qz-result-header { flex-direction: column; gap: 8px; }
  .qz-result-price { text-align: left; }
}
