:root {
  --ink: #1a1a1a;
  --muted: #5b6b70;
  --slate: #2d4248;
  --slate-dark: #22343a;
  --green: #10b981;
  --soft: #f4f6f7;
  --line: #e2e7e9;
  --radius: 14px;
  --font: "Figtree", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: #fff; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; color: inherit; }

/* Header + progress */
.qz-header { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 60px; padding: 0 12px; background: #fff; }
.qz-back { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--slate); }
.qz-logo { grid-column: 2; text-align: center; font-size: 24px; font-weight: 500; color: var(--slate); letter-spacing: -0.02em; }
.qz-logo span { color: var(--ink); }
.qz-step { font-size: 13px; color: var(--muted); text-align: right; }
.qz-progress { height: 5px; background: var(--soft); }
.qz-progress i { display: block; height: 100%; width: 0; background: var(--green); transition: width .35s ease; }

/* Main */
.qz-main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 28px 16px 40px; }
.qz-screen { animation: qz-in .35s ease both; }
@keyframes qz-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qz-screen { animation: none; } .qz-progress i { transition: none; } }
.qz-kicker { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--green); text-transform: uppercase; }
.qz-title { margin: 0 0 8px; font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.qz-sub { margin: 0 0 22px; font-size: 16px; color: var(--muted); line-height: 1.45; }

/* Options */
.qz-options { display: grid; gap: 10px; }
.qz-option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; text-align: left; font-size: 16px; font-weight: 500; transition: border-color .15s, background .15s, transform .1s; }
.qz-option:hover { border-color: #b9c5c8; }
.qz-option:active { transform: scale(.99); }
.qz-option[aria-pressed="true"] { border-color: var(--slate); background: #eef2f3; }
.qz-option__emoji { font-size: 22px; width: 28px; text-align: center; flex: none; }
.qz-option__label { flex: 1; }
.qz-option__check { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #b9c5c8; flex: none; display: grid; place-items: center; }
.qz-option[aria-pressed="true"] .qz-option__check { background: var(--slate); border-color: var(--slate); }
.qz-option[aria-pressed="true"] .qz-option__check::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }

/* Buttons */
.qz-btn { display: block; width: 100%; margin-top: 18px; padding: 17px; border: 0; border-radius: 999px; background: var(--slate); color: #fff; font-size: 17px; font-weight: 700; text-align: center; text-decoration: none; }
.qz-btn:hover { background: var(--slate-dark); }
.qz-btn[disabled] { opacity: .4; cursor: not-allowed; }
.qz-btn--green { background: var(--green); }
.qz-btn--green:hover { background: #0ea472; }
.qz-sticky { position: sticky; bottom: 12px; }

/* Intro */
.qz-intro { text-align: center; }
.qz-intro .qz-title { font-size: 30px; }
.qz-badges { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 22px 0 6px; font-size: 14px; color: var(--muted); }
.qz-badges span { display: inline-flex; align-items: center; gap: 6px; }

/* Info interstitial */
.qz-info { background: var(--soft); border-radius: 18px; padding: 24px 22px; }
.qz-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.qz-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.qz-steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--slate); color: #fff; display: grid; place-items: center; font-size: 14px; }

/* Analyzing */
.qz-analyze { text-align: center; padding-top: 30px; }
.qz-ring { width: 150px; height: 150px; margin: 0 auto 24px; position: relative; }
.qz-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.qz-ring circle { fill: none; stroke-width: 8; }
.qz-ring .bg { stroke: var(--soft); }
.qz-ring .fg { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 427; stroke-dashoffset: 427; transition: stroke-dashoffset .2s linear; }
.qz-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 32px; font-weight: 800; color: var(--slate); }
.qz-checklist { list-style: none; margin: 18px auto 0; padding: 0; max-width: 320px; text-align: left; display: grid; gap: 10px; }
.qz-checklist li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--muted); }
.qz-checklist li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.qz-checklist li.done { color: var(--ink); }
.qz-checklist li.done::before { background: var(--green); border-color: var(--green); }

/* Results */
.qz-result-head { text-align: center; margin-bottom: 22px; }
.qz-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 14px; background: #fff; }
.qz-card h3 { margin: 0 0 12px; font-size: 18px; color: var(--slate); }
.qz-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.qz-tag { background: #eef2f3; color: var(--slate); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.qz-insights { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.qz-insights li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.qz-insights li span:first-child { flex: none; }
.qz-plan { border: 2px solid var(--slate); background: linear-gradient(180deg, #f4f8f8, #fff); position: relative; }
.qz-plan__badge { position: absolute; top: -12px; left: 20px; background: var(--slate); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; }
.qz-plan__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.qz-plan__name { font-size: 20px; font-weight: 700; }
.qz-plan__price { text-align: right; }
.qz-plan__price strong { font-size: 24px; color: var(--green); }
.qz-plan__price s { color: #9aa6a9; margin-left: 6px; }
.qz-plan__save { display: inline-block; margin-top: 4px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.qz-plan ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.qz-plan li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }
.qz-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.qz-timeline div { background: var(--soft); border-radius: 12px; padding: 12px 6px; font-size: 13px; color: var(--muted); }
.qz-timeline b { display: block; font-size: 15px; color: var(--slate); margin-bottom: 4px; }
.qz-guarantee { display: flex; gap: 14px; align-items: center; background: #2b3a3f; color: #fff; border-radius: 16px; padding: 16px 18px; margin: 14px 0; }
.qz-guarantee__seal { flex: none; width: 60px; height: 60px; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 13px; line-height: 1.1; }
.qz-guarantee p { margin: 0; font-size: 14px; line-height: 1.45; color: #dfe7e9; }
.qz-guarantee strong { color: #fff; display: block; font-size: 15px; margin-bottom: 2px; }
.qz-note { font-size: 12px; color: #8a979b; text-align: center; margin-top: 12px; }

/* Footer */
.qz-footer { display: flex; justify-content: center; gap: 16px; padding: 18px 16px 28px; font-size: 12px; color: #8a979b; }
.qz-footer a { color: #8a979b; }

@media (min-width: 700px) {
  .qz-main { padding-top: 48px; }
  .qz-title { font-size: 30px; }
}
.qz-back[hidden] { display: none; }
