.quiz-body { min-height: 100dvh; display: flex; flex-direction: column; }
.quiz-top {
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  width: min(640px, 100% - 32px); margin: 0 auto; height: 64px;
}
.quiz-top .logo { justify-self: center; font-size: 1rem; }
.quiz-back {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
  font-size: 1.4rem; cursor: pointer; color: var(--ink);
}
.quiz-back:hover { background: var(--brand-soft); }
.quiz-back[hidden] { visibility: hidden; display: block; }
.quiz-count { justify-self: end; font-size: .85rem; color: var(--muted); font-weight: 700; }
.quiz-progress { width: min(640px, 100% - 32px); margin: 0 auto; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .35s ease; }

.quiz-main { flex: 1; display: flex; }
.quiz-stage {
  width: min(640px, 100% - 32px); margin: 0 auto; padding: 36px 0 48px;
  display: flex; flex-direction: column; outline: none;
}
.quiz-stage.enter { animation: enter .35s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.q-title { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: .35em; }
.q-sub { color: var(--ink-2); margin-bottom: 26px; }
.options { display: grid; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px;
  padding: 14px 18px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface);
  font: 600 1.02rem/1.3 var(--font-body); color: var(--ink); text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.option:hover { border-color: #f3c48f; }
.option:active { transform: scale(.99); }
.option[aria-pressed="true"] { border-color: var(--brand); background: #fff3e4; }
.option .emoji { font-size: 1.5rem; width: 32px; text-align: center; flex: none; }
.option .check {
  margin-left: auto; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line); flex: none;
  display: grid; place-items: center; color: #fff; font-size: .85rem; font-weight: 800;
}
.option[aria-pressed="true"] .check { background: var(--brand); border-color: var(--brand); }
.option small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }

.q-footer { margin-top: auto; padding-top: 28px; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding-bottom: env(safe-area-inset-bottom); }

/* Interstitials */
.inter { text-align: center; margin: auto 0; }
.inter .big { font: 800 clamp(3.4rem, 14vw, 5.5rem)/1 var(--font-display); color: var(--brand); margin-bottom: 12px; }
.inter h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.inter p { color: var(--ink-2); max-width: 46ch; margin-inline: auto; }
.inter .icons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 340px; margin: 0 auto 26px; }
.inter .icons img { border-radius: 22%; box-shadow: var(--shadow); }
.quote-card { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-align: left; margin: 22px auto 0; max-width: 480px; }
.quote-card p { margin: 0; color: var(--ink); }
.quote-card span { display: block; margin-top: 10px; color: var(--muted); font-size: .9rem; }

/* Compare bars */
.compare { display: grid; gap: 14px; margin: 26px auto 8px; max-width: 460px; text-align: left; }
.compare-row b { font-size: .95rem; }
.compare-track { height: 34px; background: var(--line); border-radius: 10px; overflow: hidden; margin-top: 6px; }
.compare-fill { height: 100%; display: flex; align-items: center; padding: 0 12px; color: #fff; font-weight: 700; font-size: .9rem; border-radius: 10px; width: 0; transition: width 1s ease .2s; white-space: nowrap; }
.compare-fill.slow { background: #9a8b7b; }
.compare-fill.fast { background: var(--brand); }

/* Loader */
.loader { text-align: center; margin: auto 0; }
.ring { width: 150px; height: 150px; margin: 0 auto 26px; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 2.2rem var(--font-display); }
.load-steps { list-style: none; padding: 0; margin: 22px auto 0; max-width: 380px; text-align: left; }
.load-steps li { padding: 10px 0; color: var(--muted); display: flex; gap: 12px; align-items: center; transition: color .3s; }
.load-steps li::before { content: "○"; color: var(--line); font-weight: 800; width: 18px; }
.load-steps li.done { color: var(--ink); }
.load-steps li.done::before { content: "✓"; color: var(--ok); }

/* Form */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input {
  min-height: 56px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface);
  font: 500 1.05rem var(--font-body); color: var(--ink);
}
.field input:focus { border-color: var(--brand); outline: none; }
.field .err { color: #b42318; font-size: .88rem; min-height: 1em; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); margin: 6px 0 4px; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #b42318; font-weight: 600; margin-top: 10px; }

/* Plan */
.plan-head { text-align: center; }
.plan-chart { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin: 24px 0; }
.plan-chart svg { width: 100%; height: auto; }
.plan-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.plan-summary div { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.plan-summary small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.plan-summary b { font-size: 1.02rem; }
.plan-days { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.plan-days li { background: var(--surface); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.plan-days .d { font: 800 .8rem var(--font-body); color: var(--brand-ink); text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.plan-days b { display: block; }
.plan-days span { color: var(--ink-2); font-size: .95rem; }
.plan-note { background: var(--brand-soft); border-radius: 16px; padding: 16px 18px; margin-bottom: 24px; color: var(--ink); }
.plan-cta { background: var(--dark); color: #fff; border-radius: 24px; padding: 28px; text-align: center; }
.plan-cta p { color: #d9cfc4; }

@media (max-width: 520px) {
  .quiz-top .logo-text { display: none; }
  .plan-summary { grid-template-columns: 1fr; }
}
.next-steps { text-align: left; margin: 0; padding-left: 22px; color: #d9cfc4; display: grid; gap: 8px; }
.next-steps b { color: #fff; }
