/* HiQuiz runtime — the quiz a shopper sees. Scoped to .hq-quiz. Accent comes from --qa. */
.hq-quiz {
  --qa: #2f45ff;
  --qa-soft: color-mix(in oklab, var(--qa) 10%, white);
  --qa-mid: color-mix(in oklab, var(--qa) 22%, white);
  --q-ink: #0f1324;
  --q-ink-2: #555a70;
  --q-line: #e8e9ef;
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; height: 100%;
  background: #fff; color: var(--q-ink);
  font-family: var(--font, system-ui);
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  line-height: 1.45;
}
.hq-top { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; height: 50px; padding: 0 8px; flex: none; }
.hq-back { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; border-radius: 10px; color: var(--q-ink); transition: opacity 200ms ease, transform 140ms var(--ease-out); }
.hq-back:active { transform: scale(.92); background: #f3f4f7; }
.hq-noback .hq-back { opacity: 0; pointer-events: none; }
.hq-brand { text-align: center; font-weight: 650; letter-spacing: -.02em; font-size: 16px; }
.hq-count { font-size: 11.5px; color: var(--q-ink-2); text-align: right; padding-right: 6px; font-variant-numeric: tabular-nums; font-family: var(--mono, monospace); }
.hq-bar { height: 3px; margin: 0 16px; border-radius: 3px; background: #eef0f4; overflow: hidden; flex: none; transition: opacity 240ms ease; }
.hq-bar i { display: block; height: 100%; background: var(--qa); transform-origin: 0 50%; transform: scaleX(.04); transition: transform 500ms var(--ease-out); border-radius: 3px; }
.hq-nobar .hq-bar { opacity: 0; }

.hq-stage { position: relative; flex: 1; min-height: 0; }
.hq-screen {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
  overscroll-behavior: contain; scrollbar-width: none;
  transition: transform 380ms var(--ease-out), opacity 260ms ease, filter 260ms ease;
}
.hq-screen::-webkit-scrollbar { display: none; }
.hq-screen.from-r { transform: translateX(28px); opacity: 0; }
.hq-screen.from-l { transform: translateX(-28px); opacity: 0; }
.hq-screen.is-out-l { transform: translateX(-28px); opacity: 0; filter: blur(2px); pointer-events: none; transition-duration: 240ms; }
.hq-screen.is-out-r { transform: translateX(28px); opacity: 0; filter: blur(2px); pointer-events: none; transition-duration: 240ms; }

.hq-pad { padding: 18px 20px 20px; flex: 1; }
.hq-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hq-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--qa); margin-bottom: 8px; }
.hq-quiz .hq-h { font-size: 24px; line-height: 1.12; letter-spacing: -.028em; font-weight: 650; margin: 0 0 8px; text-wrap: balance; }
.hq-sub { margin: 0 0 18px; color: var(--q-ink-2); font-size: 14.5px; line-height: 1.45; text-wrap: pretty; }
.hq-body { color: var(--q-ink-2); font-size: 15px; line-height: 1.55; margin: 4px 0 0; text-wrap: pretty; }
.hq-quiz .hq-h3 { font-size: 14px; font-weight: 650; letter-spacing: -.01em; margin: 22px 0 10px; }
.hq-legal { font-size: 11px; color: #8a8fa3; line-height: 1.45; margin: 16px 0 0; text-wrap: pretty; }

/* opener */
.hq-hero { position: relative; margin: 6px 16px 0; border-radius: 20px; overflow: hidden; aspect-ratio: 886 / 560; background: var(--qa-soft); flex: none; }
.hq-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; mix-blend-mode: multiply; }
.hq-quiz .hq-t-opener .hq-h { font-size: 23px; margin-top: 2px; }
.hq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hq-tile {
  display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 14px 0 16px;
  border: 0; border-radius: 14px; background: var(--qa); color: #fff; font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 14px -8px var(--qa);
  transition: transform 140ms var(--ease-out), filter 200ms ease;
}
.hq-tile svg { opacity: .7; }
.hq-tile:active { transform: scale(.97); filter: brightness(.95); }

/* options */
.hq-opts { display: grid; gap: 8px; }
.hq-opt {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px 12px 16px; text-align: left;
  border: 0; border-radius: 14px; background: #f5f6f9; color: var(--q-ink); font-size: 15.5px; font-weight: 500; letter-spacing: -.01em;
  box-shadow: 0 0 0 1.5px transparent inset;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, box-shadow 180ms ease;
}
.hq-opt:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .hq-opt:hover { background: #eef0f5; } }
.hq-opt.on { background: var(--qa-soft); box-shadow: 0 0 0 1.5px var(--qa) inset; }
.hq-emo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #fff; font-size: 18px; flex: none; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.hq-ol { flex: 1; }
.hq-go { color: #b2b6c4; transition: transform 200ms var(--ease-out), color 200ms ease; }
.hq-opt.on .hq-go { color: var(--qa); transform: translateX(2px); }
.hq-box { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; box-shadow: 0 0 0 1.5px #cdd0db inset; color: #fff; flex: none; transition: background-color 160ms ease, box-shadow 160ms ease; }
.hq-box svg { transform: scale(.6); opacity: 0; transition: transform 200ms var(--ease-out), opacity 160ms ease; }
.hq-opt.on .hq-box { background: var(--qa); box-shadow: none; }
.hq-opt.on .hq-box svg { transform: scale(1); opacity: 1; }
.hq-yn { grid-template-columns: 1fr 1fr; }
.hq-yn .hq-opt { justify-content: center; min-height: 64px; font-size: 17px; font-weight: 600; }
.hq-yn .hq-go { display: none; }

/* dock */
.hq-dock { position: sticky; bottom: 0; padding: 12px 20px 18px; background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0)); flex: none; }
.hq-cta {
  width: 100%; height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; background: var(--q-ink); color: #fff; font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 18px -10px rgba(15,19,36,.8);
  transition: transform 140ms var(--ease-out), opacity 200ms ease, background-color 200ms ease;
}
.hq-cta:active { transform: scale(.98); }
.hq-cta:disabled { opacity: .3; }

/* slider */
.hq-slider { margin-top: 26px; }
.hq-sv { text-align: center; margin-bottom: 18px; }
.hq-sv b { font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.hq-sv span { color: #a0a4b6; font-size: 18px; margin-left: 4px; }
.hq-slider input { --t: .5; -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; margin: 0; touch-action: none; }
.hq-slider input::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(to right, var(--qa) calc(var(--t) * 100%), #eceef3 0); }
.hq-slider input::-moz-range-track { height: 8px; border-radius: 8px; background: linear-gradient(to right, var(--qa) calc(var(--t) * 100%), #eceef3 0); }
.hq-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 4px 12px rgba(15,19,36,.2); transition: transform 140ms var(--ease-out); }
.hq-slider input:active::-webkit-slider-thumb { transform: scale(1.1); }
.hq-slider input::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 4px 12px rgba(15,19,36,.2); }
.hq-sl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--q-ink-2); margin-top: 6px; }
.hq-num { display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 18px; border-radius: 14px; background: #f5f6f9; font-size: 22px; }
.hq-num input { flex: 1; border: 0; background: none; outline: none; font-size: 24px; font-weight: 600; min-width: 0; }

/* info + proof */
.hq-art { width: 100%; max-width: 280px; margin: 10px auto 18px; color: var(--q-ink); }
.hq-quiz .hq-t-info .hq-h, .hq-quiz .hq-t-proof .hq-h { font-size: 23px; }
.hq-quote { margin: 18px 0 0; padding: 20px; border-radius: 18px; background: #f7f7fa; text-align: left; }
.hq-quote.is-ph { background: repeating-linear-gradient(135deg, #fff6e5 0 10px, #fff1d6 10px 20px); box-shadow: 0 0 0 1px #f3d9a2 inset; }
.hq-quote blockquote { margin: 8px 0 12px; font-size: 16.5px; line-height: 1.45; letter-spacing: -.01em; text-wrap: pretty; }
.hq-quote figcaption { font-size: 13px; font-weight: 600; }
.hq-quote figcaption em { font-style: normal; font-weight: 500; color: var(--mint, #3fa48f); margin-left: 6px; font-size: 12px; }
.hq-quote.sm { padding: 16px; margin-top: 16px; }
.hq-quote.sm blockquote { font-size: 14.5px; }
.hq-stars { display: flex; gap: 2px; color: #f5a524; }

/* loading */
.hq-load { justify-content: center; padding-top: 34px; }
.hq-ring { --v: 0; position: relative; width: 132px; height: 132px; margin: 0 auto 22px; }
.hq-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hq-ring circle { fill: none; stroke-width: 9; }
.hq-ring .bg { stroke: #eff0f4; }
.hq-ring .fg { stroke: var(--qa); stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: calc(326.73 * (1 - var(--v) / 100)); }
.hq-ring.anim .fg { transition: stroke-dashoffset 1400ms var(--ease-out); }
.hq-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hq-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; text-align: left; width: 100%; max-width: 260px; }
.hq-steps li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #a6aabb; transition: color 300ms ease; }
.hq-tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #eceef3; transition: background-color 300ms ease, transform 300ms var(--ease-out); transform: scale(.85); flex: none; }
.hq-steps li.done { color: var(--q-ink); }
.hq-steps li.done .hq-tick { background: var(--qa); transform: scale(1); }

/* email */
.hq-lock { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--qa-soft); color: var(--qa); font-size: 12.5px; font-weight: 600; margin: 6px 0 14px; }
.hq-lock span { width: 20px; height: 20px; border-radius: 50%; background: var(--qa); color: #fff; display: grid; place-items: center; }
.hq-form { display: grid; gap: 10px; margin-top: 4px; }
.hq-form label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--q-ink-2); }
.hq-form input { height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: #f5f6f9; font-size: 16px; color: var(--q-ink); outline: none; box-shadow: 0 0 0 1.5px transparent inset; transition: box-shadow 160ms ease, background-color 160ms ease; }
.hq-form input:focus { background: #fff; box-shadow: 0 0 0 1.5px var(--qa) inset, 0 0 0 4px var(--qa-soft); }
.hq-form input.bad { box-shadow: 0 0 0 1.5px #e5484d inset; }
.hq-err { margin: 0; color: #e5484d; font-size: 12.5px; }
.hq-form .hq-cta { margin-top: 6px; }

/* results */
.hq-score { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, var(--qa-soft), #fff 80%); box-shadow: 0 0 0 1px var(--q-line) inset; margin-top: 10px; }
.hq-ring.sm { width: 96px; height: 96px; margin: 0; }
.hq-ring.sm b { font-size: 26px; }
.hq-k { font-size: 11.5px; color: var(--q-ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.hq-pname { font-size: 18px; font-weight: 650; letter-spacing: -.02em; margin: 2px 0 4px; }
.hq-score p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--q-ink-2); }
.hq-told { list-style: none; margin: 0; padding: 0; border-radius: 16px; box-shadow: 0 0 0 1px var(--q-line) inset; }
.hq-told li { display: grid; gap: 2px; padding: 11px 14px; border-top: 1px solid var(--q-line); }
.hq-told li:first-child { border-top: 0; }
.hq-told span { font-size: 12px; color: var(--q-ink-2); }
.hq-told b { font-size: 14px; font-weight: 600; }
.hq-plan { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 10px; }
.hq-plan li { display: grid; grid-template-columns: 86px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: #f7f7fa; }
.hq-ph b { display: block; font-size: 14px; color: var(--qa); }
.hq-ph span { font-size: 11.5px; color: var(--q-ink-2); font-family: var(--mono, monospace); }
.hq-plan p { margin: 0; font-size: 14px; line-height: 1.4; }

/* offer */
.hq-bundles { display: grid; gap: 10px; margin: 6px 0 14px; }
.hq-bundle {
  position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; text-align: left;
  min-height: 70px; padding: 14px 16px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1.5px var(--q-line) inset;
  transition: box-shadow 180ms ease, background-color 180ms ease, transform 140ms var(--ease-out);
}
.hq-bundle:active { transform: scale(.985); }
.hq-bundle.on { box-shadow: 0 0 0 2px var(--qa) inset; background: var(--qa-soft); }
.hq-radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1.5px #c9ccd8 inset; position: relative; transition: box-shadow 160ms ease; }
.hq-bundle.on .hq-radio { box-shadow: 0 0 0 7px var(--qa) inset; }
.hq-bl b { display: block; font-size: 16px; letter-spacing: -.01em; }
.hq-bl small { font-size: 13px; color: var(--q-ink-2); }
.hq-bl s { color: #a3a7b8; margin-left: 4px; }
.hq-pd { text-align: right; }
.hq-pd b { display: block; font-size: 17px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hq-pd small { font-size: 11.5px; color: var(--q-ink-2); }
.hq-rec, .hq-badge { position: absolute; top: -9px; left: 14px; height: 19px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; display: inline-flex; align-items: center; }
.hq-rec { background: var(--qa); color: #fff; }
.hq-badge { background: #fff; color: var(--q-ink-2); box-shadow: 0 0 0 1px var(--q-line) inset; }
.hq-buy { background: var(--qa); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 10px 22px -10px var(--qa); }
.hq-guar { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #f7f7fa; font-size: 13px; line-height: 1.4; color: var(--q-ink-2); }
.hq-guar svg { color: var(--qa); flex: none; }
.hq-faq details { border-top: 1px solid var(--q-line); }
.hq-faq details:last-child { border-bottom: 1px solid var(--q-line); }
.hq-faq summary { list-style: none; cursor: pointer; padding: 13px 24px 13px 0; font-size: 14px; font-weight: 600; position: relative; }
.hq-faq summary::-webkit-details-marker { display: none; }
.hq-faq summary::after { content: "+"; position: absolute; right: 2px; top: 10px; font-size: 18px; font-weight: 400; color: var(--q-ink-2); transition: transform 200ms var(--ease-out); }
.hq-faq details[open] summary::after { transform: rotate(45deg); }
.hq-faq p { margin: 0 0 14px; font-size: 13.5px; color: var(--q-ink-2); line-height: 1.5; }

.hq-toast { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(15,19,36,.92); color: #fff; font-size: 13px; text-align: center; transform: translateY(12px); opacity: 0; pointer-events: none; transition: transform 300ms var(--ease-out), opacity 200ms ease; z-index: 5; backdrop-filter: blur(12px); }
.hq-toast.on { transform: none; opacity: 1; }
