.quiz-page { min-height: 100vh; display: flex; flex-direction: column; }
.quiz-top { position: sticky; top: 0; background: var(--paper); z-index: 10; }
.quiz-top-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.quiz-back { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 18px; }
.quiz-back:disabled { visibility: hidden; }
.quiz-count { width: 44px; text-align: right; font: 600 13px/1 var(--sans); color: var(--muted); }
.quiz-progress { height: 3px; background: var(--line); }
.quiz-progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .5s cubic-bezier(.2,.7,.2,1); }

.quiz-main { flex: 1; display: grid; place-items: center; padding: 64px 0 96px; }
.q { width: min(760px, 100%); text-align: center; animation: qIn .5s cubic-bezier(.2,.7,.2,1); }
@keyframes qIn { from { opacity: 0; transform: translateY(18px); } }
.q h1 { font-size: clamp(40px, 6vw, 68px); margin: 18px 0 14px; }
.q .hint { color: var(--muted); margin: 0 0 44px; }

.opts { display: grid; gap: 12px; text-align: left; }
.opts.tones { grid-template-columns: repeat(3, 1fr); }
.opt {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 20px 22px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--paper);
  font: 500 17px/1.3 var(--sans); color: var(--ink); text-align: left;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.opt:hover { border-color: var(--ink); transform: translateY(-2px); }
.opt.sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.opt small { display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 3px; }
.opt .sw { width: 40px; height: 40px; border-radius: 50%; flex: none; border: 1px solid rgba(0,0,0,.06); }
.tones .opt { flex-direction: column; align-items: center; text-align: center; padding: 26px 14px; }
.tones .opt .sw { width: 64px; height: 64px; }
.opt .num { font: 400 26px/1 var(--serif); width: 28px; color: var(--muted); }

.email-row { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.email-row input { flex: 1; min-width: 0; height: 56px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 22px; font: inherit; outline: none; }
.email-row input:focus { border-color: var(--ink); }
.skip { margin-top: 18px; background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 14px; }
.fine { font-size: 12px; color: var(--muted); margin-top: 18px; }

/* Result */
.result { width: min(1080px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; text-align: left; animation: qIn .6s cubic-bezier(.2,.7,.2,1); }
.result h1 { font-size: clamp(48px, 6.4vw, 84px); margin: 18px 0 18px; }
.result .lede { font-size: 19px; color: #333; margin: 0 0 28px; }
.profile-card { border-radius: 32px; padding: 40px; color: var(--paper); background: var(--ink); position: relative; overflow: hidden; }
.profile-card::before { content: ""; position: absolute; inset: auto -80px -120px auto; width: 360px; aspect-ratio: 1; border-radius: 50%; background: var(--grad); filter: blur(80px); opacity: .55; }
.profile-card > * { position: relative; }
.profile-card .eyebrow { color: #a3a3a0; }
.profile-card img { width: 72%; aspect-ratio: 1; object-fit: cover; object-position: center 30%; border-radius: 20px; margin: 26px auto; }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #2a2a2a; border-radius: 16px; overflow: hidden; }
.profile-facts div { background: #141414; padding: 16px 18px; font-size: 14px; color: #bdbdb9; }
.profile-facts b { display: block; color: var(--paper); font: 400 24px/1.1 var(--serif); margin-bottom: 4px; }
.rec { border: 1px solid var(--ink); background: #fbfaf8; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: opacity .2s ease; }
.rec.dim { opacity: .45; }
.rec .plan-name { font-weight: 600; }
.rec .plan-desc { font-size: 14px; color: var(--muted); }
.rec .price { font: 400 36px/1 var(--serif); white-space: nowrap; }
.rec .price small { font: 500 14px var(--sans); color: var(--muted); }

/* Duo upsell under the recommendation */
.upsell { display: flex; gap: 14px; align-items: flex-start; margin: 10px 0 18px; padding: 16px 20px; border: 1px dashed #c9c9c4; cursor: pointer; transition: border-color .2s, background .2s; }
.upsell:hover { border-color: var(--ink); }
.upsell:has(input:checked) { border: 1px solid var(--ink); background: #fff3ea; }
.upsell input { appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid #a9a9a5; display: grid; place-items: center; background: var(--paper); }
.upsell input:checked { background: var(--ink); border-color: var(--ink); }
.upsell input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.upsell-text b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.upsell-text b .pill { border-radius: 0; }
.upsell-text span:not(.pill) { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.renew { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.result .btn-dark { width: 100%; height: 62px; }
.alt { margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }
.alt a { color: var(--ink); }

@media (max-width: 860px) {
  .opts.tones { grid-template-columns: 1fr 1fr; }
  .result { grid-template-columns: 1fr; gap: 32px; }
  .profile-card { order: -1; padding: 28px; }
}
