/* Home Warranty quiz v3 - Comparisons.org (M-048)
   Design: home-warranty-v2 (= 6500165). Content, questions, order and partner: 6500152.
   CSS only: hidden radios / checkboxes + :has(). */

:root{
  --primary:#047857;
  --primary-light:#ecfdf5;
  --primary-dark:#065f46;
  --orange:#f59e0b;
  --ink:#0f172a;
  --muted:#475569;
  --soft:#64748b;
  --line:#e2e5e8;
  --bg:#f2f4f7;
  --white:#fff;
  --hairline:rgba(60,60,67,.12);
  --fill:rgba(118,118,128,.12);
  --radius-card:20px;
  --radius-btn:14px;
  --ease:cubic-bezier(.25,.1,.25,1);
  --pad:16px;
  /* Clear shadow on answer options (Alex) */
  --option-shadow:0 1px 2px rgba(15,23,42,.06),0 6px 18px rgba(15,23,42,.09);
  --card-shadow:0 1px 2px rgba(15,23,42,.05);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg);scroll-behavior:smooth}
body{
  /* Same font stack as v2 / our windows page (26700070) */
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;
  background:var(--bg);color:var(--ink);
  font-size:17px;line-height:1.4;
  -webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;
}
img,svg{display:block}
ul,ol{list-style:none}
a{color:inherit}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- Header ---------- */
.header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px var(--pad);height:52px}
.logo{height:30px;width:auto}
.disclosure-link{flex:none;font-size:11px;color:rgba(100,116,139,.8);text-decoration:underline;text-decoration-color:rgba(100,116,139,.35);text-underline-offset:2px;cursor:pointer;white-space:nowrap}
/* Advertiser Disclosure - step 1 only */
body:not(:has(#q1-none:checked)) .disclosure-link{visibility:hidden}

/* ---------- Main + steps ---------- */
/* min-height keeps the footer out of the first screen on every step (AGENTS.md) */
.main{padding:0 var(--pad);min-height:calc(100svh - 52px);overflow-x:clip}
.screen-container{width:100%;max-width:560px;margin:0 auto}

.step{display:none;flex-direction:column;padding-bottom:14px}
/* Each step = all earlier questions answered + this one not yet. Back unwinds one step at a time. */
body:has(#q1-none:checked) .step--1,
body:has(#q1-none:not(:checked)):has(#q2-none:checked) .step--2,
body:has(#q2-none:not(:checked)):has(#q3-none:checked) .step--3,
body:has(#q3-none:not(:checked)):has(#q4-none:checked) .step--4,
body:has(#q4-none:not(:checked)):has(#q5-none:checked) .step--5,
body:has(#q5-none:not(:checked)):has(#q6-none:checked) .step--6,
body:has(#q6-none:not(:checked)) .step--7{display:flex;animation:stepIn .35s var(--ease)}
/* Guard: a later step only when every earlier answer is set (Back always clears the later ones) */
body:has(#q1-none:checked) .step:not(.step--1){display:none}
@keyframes stepIn{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}

/* ---------- Quiz nav (Back + progress + step) ---------- */
.quiz-nav{padding:10px 0 10px;margin-bottom:20px;border-bottom:.5px solid var(--hairline)}
.quiz-nav-row{display:flex;align-items:center;justify-content:center;gap:14px;min-height:30px}
.quiz-back-btn{display:flex;align-items:center;gap:2px;font-size:16px;color:var(--primary);cursor:pointer;padding:4px 0}
.quiz-back-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.step:not(.step--1) .quiz-nav-row{justify-content:space-between}
.step:not(.step--1) .quiz-progress-bar{flex:1;max-width:160px}
.quiz-progress-bar{width:110px;height:4px;background:var(--fill);border-radius:100px;overflow:hidden}
.quiz-progress-fill{display:block;height:100%;background:var(--primary);border-radius:100px}
.quiz-step-text{font-size:12px;font-weight:600;letter-spacing:.6px;color:var(--soft);text-transform:uppercase;white-space:nowrap}
.step-num{color:var(--primary);font-weight:700}

/* ---------- Headings ---------- */
.screen-header{margin-bottom:16px}
.eyebrow{font-size:18px;font-weight:600;letter-spacing:.2px;line-height:1.35;text-transform:uppercase;color:var(--primary);margin-bottom:28px;text-wrap:balance} /* 18px + space above the title (Alex, 15/11) */
.screen-title{font-size:26px;font-weight:700;letter-spacing:-.5px;line-height:1.2;margin-bottom:4px;text-wrap:balance}
.screen-subtitle{font-size:15px;color:var(--muted);text-wrap:pretty}
.first-fold{padding-top:clamp(12px,4dvh,48px)}

/* ---------- Answer options ---------- */
.options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.option{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;
  min-height:158px;padding:20px 12px 16px;background:var(--white);
  border:2px solid transparent;border-radius:var(--radius-card);box-shadow:var(--option-shadow);
  cursor:pointer;transition:border-color .2s var(--ease),transform .15s var(--ease),box-shadow .2s var(--ease);
}
.option:hover{border-color:rgba(4,120,87,.35)}
.option:active{transform:scale(.97)}
.option-icon{width:62px;height:62px;display:flex;align-items:center;justify-content:center;background:var(--primary-light);border-radius:17px;color:var(--primary)}
.option-icon svg{width:50%;height:50%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* 20px answer text on all steps (Alex, 15/11) */
.option-title{display:block;font-size:20px;font-weight:600;letter-spacing:-.2px;line-height:1.25}
.option-check{position:absolute;top:10px;right:10px;width:20px;height:24px}
.option-check svg{width:20px;height:24px}
.shield-outline{fill:none;stroke:#c7ccd4;stroke-width:1.8;transition:fill .2s,stroke .2s}

/* 4-answer questions (steps 2-5): one full-width card per answer, same card style */
.options--list{grid-template-columns:1fr}
.option--row{min-height:72px;flex-direction:row;padding:14px 48px}
.option--row .option-check{top:50%;transform:translateY(-50%);right:16px}

/* Multi-select (step 6): smaller cards, "Not sure yet" full width */
.options--multi .option{min-height:128px;gap:10px;padding:18px 10px 14px}
.options--multi .option.option--wide{grid-column:1/-1;min-height:68px;flex-direction:row;gap:12px;padding:10px 44px}
.options--multi .option-icon{width:54px;height:54px;border-radius:15px}
.options--multi .option--wide .option-check{top:50%;transform:translateY(-50%);right:16px}
.options--multi .option.option--wide .option-icon{width:40px;height:40px;border-radius:11px}
/* Selected appliance: green border + filled shield */
body:has(#a-fridge:checked) .option[for="a-fridge"],
body:has(#a-oven:checked) .option[for="a-oven"],
body:has(#a-dish:checked) .option[for="a-dish"],
body:has(#a-washer:checked) .option[for="a-washer"],
body:has(#a-unsure:checked) .option[for="a-unsure"]{border-color:var(--primary);background:#f7fdfa}
body:has(#a-fridge:checked) .option[for="a-fridge"] .shield-outline,
body:has(#a-oven:checked) .option[for="a-oven"] .shield-outline,
body:has(#a-dish:checked) .option[for="a-dish"] .shield-outline,
body:has(#a-washer:checked) .option[for="a-washer"] .shield-outline,
body:has(#a-unsure:checked) .option[for="a-unsure"] .shield-outline{fill:var(--primary);stroke:var(--primary)}
/* Next: active only with at least one appliance. With none, the gray Next shows the 152 error message. */
.multi-actions{margin-top:20px}
.multi-actions .btn-next--off,.multi-actions .btn-next--off:hover{background:#c7ccd4;cursor:pointer}
.multi-actions .btn-next--on{display:none}
body:has(.appl:checked) .multi-actions .btn-next--on{display:flex}
body:has(.appl:checked) .multi-actions .btn-next--off{display:none}
.multi-error{display:none;margin-top:12px;font-size:14px;font-weight:500;color:#b91c1c;text-align:center}
body:has(#q6-tried:checked):not(:has(.appl:checked)) .multi-error{display:block}

/* ---------- Trust tags ---------- */
.trust-row{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;margin-top:18px}
.trust-item{display:flex;align-items:center;gap:4px;font-size:14px;font-weight:500;letter-spacing:0;text-transform:uppercase;color:var(--primary-dark);background:rgba(4,120,87,.08);padding:5px 7px;border-radius:6px;white-space:nowrap}
.trust-item svg{width:15px;height:15px;fill:none;stroke:var(--primary);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* Same look as v2 / windows (uppercase + icons). 152 tags are longer, so on mobile they wrap to 2 rows (approved 24/11). */
.trust-row{row-gap:6px}
/* Steps 2-7: trust row on desktop only (152: hidden on mobile) */
.trust-row--steps{display:none;margin-top:28px}
@media (min-width:768px){.trust-row--steps{display:flex}}

/* ---------- Fact toast after an answer (152) - CSS only: shows on the next step for ~1.5s ---------- */
.fact{display:none;position:fixed;left:50%;bottom:24px;z-index:50;transform:translateX(-50%);align-items:center;gap:7px;width:max-content;max-width:calc(100% - 32px);padding:10px 16px;background:var(--ink);color:#fff;font-size:14px;font-weight:600;line-height:1.3;border-radius:100px;box-shadow:0 8px 24px rgba(15,23,42,.25);opacity:0;animation:factShow 1.9s var(--ease) forwards;pointer-events:none}
.fact svg{width:15px;height:15px;flex-shrink:0;fill:none;stroke:#34d399;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
@keyframes factShow{0%{opacity:0;transform:translate(-50%,8px)}12%{opacity:1;transform:translate(-50%,0)}80%{opacity:1}100%{opacity:0;visibility:hidden}}
/* Shown when that answer is set AND the next question is the current step (answered just now) */
body:has(#q1-own:checked):has(#q2-none:checked) .fact--q1-own,
body:has(#q2-a:checked):has(#q3-none:checked) .fact--q2-a,body:has(#q2-b:checked):has(#q3-none:checked) .fact--q2-b,body:has(#q2-c:checked):has(#q3-none:checked) .fact--q2-c,body:has(#q2-d:checked):has(#q3-none:checked) .fact--q2-d,
body:has(#q3-a:checked):has(#q4-none:checked) .fact--q3-a,body:has(#q3-b:checked):has(#q4-none:checked) .fact--q3-b,body:has(#q3-c:checked):has(#q4-none:checked) .fact--q3-c,body:has(#q3-d:checked):has(#q4-none:checked) .fact--q3-d,
body:has(#q4-a:checked):has(#q5-none:checked) .fact--q4-a,body:has(#q4-b:checked):has(#q5-none:checked) .fact--q4-b,body:has(#q4-c:checked):has(#q5-none:checked) .fact--q4-c,body:has(#q4-d:checked):has(#q5-none:checked) .fact--q4-d,
body:has(#q5-a:checked):has(#q6-none:checked) .fact--q5-a,body:has(#q5-b:checked):has(#q6-none:checked) .fact--q5-b,body:has(#q5-c:checked):has(#q6-none:checked) .fact--q5-c,body:has(#q5-d:checked):has(#q6-none:checked) .fact--q5-d{display:flex}

/* ---------- ZIP ---------- */
/* ZIP step: more air between title, field and button (15/11) */
.step--7 .screen-header{margin-bottom:28px}
.zip-wrapper{position:relative;margin-bottom:28px}
.zip-icon{position:absolute;left:20px;top:50%;transform:translateY(-50%);color:var(--soft);pointer-events:none}
.zip-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8}
.zip-input{
  width:100%;height:86px;padding:0 20px 0 60px;font-family:inherit;font-size:22px;font-weight:600;color:var(--ink);
  background:var(--white);border:2px solid var(--line);border-radius:20px;outline:none;appearance:none;
  box-shadow:var(--card-shadow);transition:border-color .2s,box-shadow .2s;
}
.zip-input::placeholder{color:var(--soft);font-weight:400}
.zip-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(4,120,87,.15)}
.zip-input:valid{border-color:var(--primary)}
.btn-find{
  width:100%;height:70px;display:flex;align-items:center;justify-content:center;gap:10px;
  font-size:22px;font-weight:600;letter-spacing:-.2px;color:#fff;text-decoration:none;
  background:var(--primary);border-radius:var(--radius-btn);transition:transform .15s var(--ease),background .2s;cursor:pointer;
}
.btn-find:hover{background:var(--primary-dark)}
.btn-find:active{transform:scale(.97)}
.btn-find svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* Disabled until the ZIP has 5 digits */
.zip-form:has(.zip-input:invalid) .btn-find{background:#c7ccd4;pointer-events:none}

/* ---------- Below the quiz (step 1 only) ---------- */
/* Trustpilot right under the quiz so it shows Above the Fold, like 152 (approved 24/11, instead of the usual 72px). Mobile: 20px (below). */
.below{margin-top:28px;display:flex;flex-direction:column;gap:56px}
.sec-title{font-size:22px;font-weight:700;letter-spacing:-.4px;line-height:1.25;text-align:center;margin-bottom:16px;text-wrap:balance}
.sec-lead{font-size:15px;color:var(--muted);line-height:1.55;text-align:center;margin:-6px auto 18px;max-width:520px;text-wrap:pretty}

/* Trusted providers - logos sit on the page background, no box (AGENTS.md) */
.trustpilot{width:120px;height:auto;margin:0 auto 10px}
.providers{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;align-items:center;justify-items:center;max-width:420px;margin:0 auto}
.providers img{width:140px;height:auto}

/* Lifespan cards */
.life-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.life-card{background:var(--white);border-radius:16px;padding:16px 14px;box-shadow:var(--card-shadow);text-align:center}
.life-name{font-size:14px;font-weight:600;color:var(--muted);margin-bottom:4px}
.life-years{font-size:22px;font-weight:500;letter-spacing:-.2px;color:var(--primary);margin-bottom:4px}
.life-cost{font-size:13px;color:var(--soft)}

/* Article blocks */
.article{display:flex;flex-direction:column;gap:12px}
.edu-card{background:var(--white);border-radius:var(--radius-card);padding:20px;box-shadow:var(--card-shadow)}
.edu-title{font-size:18px;font-weight:700;letter-spacing:-.3px;line-height:1.3;margin-bottom:8px;text-wrap:balance}
.edu-body{font-size:15px;color:var(--muted);line-height:1.55}
.text-cta{display:inline-flex;align-items:center;gap:4px;margin-top:12px;font-size:15px;font-weight:600;color:var(--primary);text-decoration:underline;text-underline-offset:3px}

/* How it works */
.how-list{display:flex;flex-direction:column;gap:12px}
.how-item{display:flex;gap:14px;align-items:flex-start;background:var(--white);border-radius:var(--radius-card);padding:18px 20px;box-shadow:var(--card-shadow)}
.how-num{flex:none;width:36px;height:36px;border-radius:50%;background:var(--primary-light);color:var(--primary);font-size:17px;font-weight:800;display:flex;align-items:center;justify-content:center}
.how-title{font-size:17px;font-weight:600;letter-spacing:-.2px;margin-bottom:4px}
.how-body{font-size:14.5px;color:var(--muted);line-height:1.5}

/* Privacy */
.privacy{text-align:center}
.privacy-icon{width:64px;height:64px;margin:0 auto 14px;border-radius:50%;background:var(--primary-light);display:flex;align-items:center;justify-content:center}
.privacy-icon svg{width:32px;height:32px;fill:none;stroke:var(--primary);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.privacy .sec-title{margin-bottom:6px}
.privacy p{font-size:15px;color:var(--muted);line-height:1.5;max-width:420px;margin:0 auto;text-wrap:balance}

/* FAQ - <details>, no JS (AGENTS.md) */
.faq{display:flex;flex-direction:column;gap:10px}
.faq-item{background:var(--white);border-radius:16px;box-shadow:var(--card-shadow)}
.faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;font-size:16px;font-weight:600;cursor:pointer;list-style:none}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary svg{flex:none;width:18px;height:18px;fill:none;stroke:var(--primary);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.faq-item[open] summary svg{transform:rotate(180deg)}
.faq-item p{padding:0 18px 16px;font-size:15px;color:var(--muted);line-height:1.55}

/* Closing stats */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.stat{background:var(--white);border-radius:16px;padding:16px 8px;text-align:center;box-shadow:var(--card-shadow)}
.stat-num{font-size:28px;font-weight:500;letter-spacing:-.3px;color:var(--primary);line-height:1.1;margin-bottom:4px}
.stat-label{font-size:13px;color:var(--muted);line-height:1.3;text-wrap:balance}

/* ---------- Footer (approved, always at the bottom - margin-top 150px) ---------- */
.footer{margin-top:150px;background:var(--bg);border-top:1px solid var(--line);padding:28px var(--pad) 40px;text-align:center}
.footer__inner{max-width:820px;margin:0 auto}
.footer__lead{font-size:14px;font-weight:600;color:var(--ink);margin-bottom:4px}
.footer__copy{font-size:13px;color:var(--soft);margin-bottom:14px}
.footer__legal{font-size:11.5px;line-height:1.6;color:var(--soft);margin-bottom:16px}
.footer__links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px}
.footer__links a{font-size:12.5px;color:var(--primary);text-decoration:none}
.footer__links a:hover{text-decoration:underline}

/* ---------- Advertiser Disclosure modal (CSS only) ---------- */
.modal{position:fixed;inset:0;z-index:100;display:none;align-items:flex-end;justify-content:center}
body:has(#disclosure-toggle:checked) .modal{display:flex}
.modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.4);backdrop-filter:blur(4px);cursor:pointer}
.modal__box{position:relative;background:#fff;border-radius:20px 20px 0 0;padding:28px 20px 34px;max-width:560px;width:100%}
.modal__title{font-size:17px;font-weight:600;margin-bottom:10px;padding-right:36px}
.modal__box p{font-size:14px;color:var(--muted);line-height:1.5}
.modal__close{position:absolute;top:14px;right:14px;width:30px;height:30px;border-radius:50%;background:var(--fill);display:flex;align-items:center;justify-content:center;font-size:20px;line-height:1;color:var(--soft);cursor:pointer}

/* ---------- Loading (result.html) ---------- */
.step-loading{display:grid;min-height:calc(100svh - 52px);place-items:center;padding:20px 0 40px;position:relative;overflow:clip}
.loading{display:flex;flex-direction:column;align-items:center;text-align:center}

.radar{position:absolute;left:50%;top:50%;width:280px;height:280px;transform:translate(-50%,-50%);pointer-events:none}
.radar span{position:absolute;inset:0;border:1.5px solid rgba(4,120,87,.12);border-radius:50%;animation:radar 2s var(--ease) 2;opacity:0}
.radar span:nth-child(2){animation-delay:.5s}
.radar span:nth-child(3){animation-delay:1s}
@keyframes radar{from{transform:scale(.3);opacity:.8}to{transform:scale(1.5);opacity:0}}
.shield-loader{position:relative;width:72px;height:82px;margin-bottom:22px}
.shield-loader svg{width:100%;height:100%}
.shield-loader .s-path{fill:none;stroke:var(--primary);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:100;stroke-dashoffset:100;animation:drawShield 1.8s var(--ease) forwards}
.shield-loader .s-check{fill:none;stroke:var(--primary);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:100;stroke-dashoffset:100;animation:drawCheck .4s var(--ease) 1.8s forwards}
@keyframes drawShield{60%{stroke-dashoffset:0;fill:transparent}to{stroke-dashoffset:0;fill:rgba(4,120,87,.08)}}
@keyframes drawCheck{to{stroke-dashoffset:0}}
.loading-title{position:relative;font-size:21px;font-weight:700;letter-spacing:-.4px;margin-bottom:14px;text-wrap:balance}
.verify-list{position:relative;display:flex;flex-direction:column;gap:12px;text-align:left}
.verify-row{display:flex;align-items:center;gap:10px;opacity:.35;animation:rowOn .3s var(--ease) forwards}
.verify-row:nth-child(1){animation-delay:.3s}
.verify-row:nth-child(2){animation-delay:1.5s}
.verify-row:nth-child(3){animation-delay:2.7s}
@keyframes rowOn{to{opacity:1}}
.verify-dot{width:22px;height:22px;border-radius:50%;background:var(--fill);display:flex;align-items:center;justify-content:center;flex-shrink:0;animation:dotDone .25s var(--ease) forwards}
.verify-row:nth-child(1) .verify-dot{animation-delay:1.3s}
.verify-row:nth-child(2) .verify-dot{animation-delay:2.5s}
.verify-row:nth-child(3) .verify-dot{animation-delay:3.7s}
@keyframes dotDone{to{background:var(--primary)}}
.verify-dot svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.verify-text{font-size:14.5px;font-weight:500;color:var(--muted)}
.scan-progress{position:relative;width:220px;height:4px;background:var(--fill);border-radius:100px;overflow:hidden;margin-top:20px}
.scan-progress span{display:block;height:100%;width:0;background:var(--primary);border-radius:100px;animation:fill 4s linear .2s forwards}
@keyframes fill{to{width:100%}}
/* 152 trust line under the loader */
.loader-trust{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;margin-top:16px;font-size:12px;color:var(--soft);text-wrap:balance}
.loader-trust svg{width:13px;height:13px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2}

/* ---------- Result screen (result.html): Loading -> Result (4.5s) -> redirect (9s) ---------- */
.step-loading > *{grid-area:1/1}
.loading--out{animation:loadingOut .3s var(--ease) 4.2s forwards}
@keyframes loadingOut{to{opacity:0;visibility:hidden}}
/* Same design as v2 (our windows page 26700070): one white panel, bordered partner card, details box, redirect bar, privacy line */
.result{width:100%;max-width:480px;background:var(--white);padding:26px 24px;border-radius:24px;box-shadow:0 24px 60px -16px rgba(15,23,42,.35);opacity:0;visibility:hidden;animation:resultIn .4s var(--ease) 4.5s forwards}
@keyframes resultIn{from{opacity:0;visibility:visible;transform:translateY(12px)}to{opacity:1;visibility:visible;transform:none}}
.result-title{font-size:22px;font-weight:700;letter-spacing:-.4px;text-align:center;margin-bottom:16px}
.result-card{position:relative;background:var(--white);border:.5px solid var(--hairline);border-radius:var(--radius-card);padding:38px 22px 26px;margin-bottom:14px;text-align:center}
/* "Best Value For Your Need" (152) - v2 badge style */
.result-ribbon{position:absolute;top:-11px;left:50%;transform:translateX(-50%);white-space:nowrap;background:var(--primary);color:#fff;font-size:12px;font-weight:700;padding:4px 12px;border-radius:100px;text-transform:uppercase;letter-spacing:.4px;box-shadow:0 1px 3px rgba(4,120,87,.35)}
/* Partner logo sits directly on the card (transparent file, no box) */
.result-logo{display:block;width:176px;height:auto;margin:0 auto 12px}
/* Offer as a "coupon": big dark text on a warm light-yellow box with a dashed border (v2) */
.result-offer{display:inline-block;margin-top:6px;padding:12px 20px;font-size:21px;font-weight:800;letter-spacing:-.2px;line-height:1.2;color:var(--ink);background:#fff8e6;border:1.5px dashed #f2b544;border-radius:14px;text-wrap:balance}
@media (max-width:380px){.result-offer{font-size:19px;padding:11px 14px}}
/* 152 highlights */
.result-points{display:flex;flex-direction:column;gap:8px;margin:18px 0 0;text-align:left}
.result-points li{display:flex;align-items:flex-start;gap:8px;font-size:14px;color:var(--muted);line-height:1.4}
.result-points svg{width:16px;height:16px;flex-shrink:0;margin-top:1px;fill:none;stroke:var(--primary);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.info-box{background:var(--white);border:.5px solid var(--hairline);border-radius:var(--radius-btn);padding:4px 16px;margin-bottom:14px}
.info-row{display:flex;align-items:center;gap:8px;padding:11px 0;position:relative}
.info-row + .info-row::before{content:"";position:absolute;top:0;left:24px;right:0;height:.5px;background:var(--hairline)}
.info-row svg{width:16px;height:16px;flex-shrink:0;fill:none;stroke:var(--primary);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.info-label{font-size:13px;color:var(--soft)}
.info-value{margin-left:auto;font-size:13px;font-weight:600;color:var(--ink)}
.info-value.serial{font-family:"SF Mono",ui-monospace,Menlo,Consolas,monospace;font-size:12px;color:var(--muted);letter-spacing:.4px}
/* CTA to the partner - hidden on the first visit, shown only after Back from the partner (script adds .is-return) */
.result-cta{display:none;margin-bottom:12px}
.is-return .result-cta{display:flex}
/* Back from the partner: no loading, Result shown at once, no countdown */
.is-return .loading{display:none}
.is-return .result{animation:none;opacity:1;visibility:visible}
.is-return .redirect-box{display:none}
.redirect-box{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;height:44px;width:100%;max-width:320px;margin:0 auto;background:var(--fill);border-radius:var(--radius-btn);overflow:hidden;text-decoration:none}
.redirect-icon{width:24px;height:24px;border-radius:50%;background:rgba(4,120,87,.12);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.redirect-icon svg{width:12px;height:12px;fill:none;stroke:var(--primary);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;animation:spin 1.5s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.redirect-text{font-size:14px;font-weight:500;color:var(--muted);white-space:nowrap}
/* 4-3-2-1 countdown, CSS only: one digit visible at a time */
.count{display:inline-block;height:1.2em;line-height:1.2em;overflow:hidden;vertical-align:bottom}
/* 4 -> 3 (5.6s) -> 2 (6.6s) -> stops on 1 (7.6s) - redirect at 9s */
.count span{display:block;animation:countDown 3s steps(3,end) 4.6s forwards}
@keyframes countDown{to{transform:translateY(-300%)}}
.redirect-progress{position:absolute;left:0;right:0;bottom:0;height:2.5px}
.redirect-progress span{display:block;height:100%;width:0;background:var(--primary);animation:fill 4.3s linear 4.7s forwards}
.result .privacy-seal{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;color:var(--soft);margin-top:12px}
.result .privacy-seal svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2}
@media (max-width:380px){.result{padding:20px 16px}.result-card{padding:30px 16px 22px}}


/* ---------- Responsive ---------- */
@media (min-width:640px){
  :root{--pad:32px}
  .header{height:58px;padding:12px 32px}
  .main{min-height:calc(100svh - 58px)}
  .logo{height:34px}
  .screen-container{max-width:620px}
  .screen-title{font-size:30px}
  .screen-subtitle{font-size:16px}
  .option{min-height:176px}
  .option--row{min-height:76px}
  .options--multi .option{min-height:140px}
  .option-icon{width:72px;height:72px;border-radius:19px}
  .life-grid{grid-template-columns:repeat(4,1fr)}
  .providers{grid-template-columns:repeat(4,1fr);max-width:none}
  .zip-form{width:100%}
  .modal{align-items:center;padding:20px}
  .modal__box{border-radius:20px;padding:28px 24px}
  .step-loading{min-height:calc(100svh - 58px)}
}
@media (min-width:1024px){
  .first-fold{padding-top:40px}
  .below{margin-top:96px}
}
/* Mobile, step 1 only: tighter spacing so Trustpilot shows Above the Fold on a real phone too (browser bars included) - approved 24/11 */
@media (max-width:767px){
  .step--1 .quiz-nav{margin-bottom:8px}
  .step--1 .first-fold{padding-top:8px}
  .step--1 .option{min-height:128px}
  .step--1 .trust-row{margin-top:14px}
  .below{margin-top:44px}
}
@media (max-width:380px){
  @media (max-width:340px){.trust-item{font-size:12px;padding:4px 5px}.trust-row{gap:4px}.providers img{width:120px}.stat-num{font-size:24px}}
  .screen-title{font-size:23px}
  .options{gap:10px}
  .option{min-height:148px;padding:16px 8px 12px;gap:10px}
  .option--row{min-height:68px;padding:12px 44px}
  .options--multi .option{min-height:112px;padding:14px 8px 12px}
  .option-icon{width:58px;height:58px;border-radius:15px}
  .trust-row{gap:5px}
  .life-years{font-size:20px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition:none!important}
}
