/* =====================================================================
   REVYVAL — GQUIZ CHECKOUT  (v2 visual design, SDK skeleton class names)
   ===================================================================== */
:root {
  --bg: #F7F4EE;
  --surface: #fff;
  --ink: #221D17;
  --ink2: #574E45;
  --muted: #8A7D71;
  --line: #E3DACD;
  --dark: #161210;
  --orange: #E07A4E;
  --orange-deep: #CC6A40;
  --orange-soft: #F7E7DB;
  --green: #3E8E5F;
  --green-soft: #DFF2E4;
  --red: #C9362B;
  --gold: #B98A2C;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(34,29,23,.08);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: "Mulish", "Hanken Grotesk", system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---- layout ---- */
.page { max-width: 520px; margin: 0 auto; padding: 0 14px 40px; }

/* ---- header ---- */
.topbar { background: #F2E9DF; border-bottom: 1px solid #E3DACD; }
.topbar .inner { max-width: 520px; margin: 0 auto; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.logo { font-family: "Hanken Grotesk", sans-serif; font-weight: 800; letter-spacing: .2em; font-size: 16px; color: var(--ink); text-transform: uppercase; }
.tb-right { display: flex; align-items: center; gap: 10px; }
.seal { width: 44px; height: 44px; flex: none; }
.divider { width: 1px; height: 36px; background: #D8CFC5; }
.help { font-size: 12px; line-height: 1.35; color: var(--ink2); }
.help a { color: var(--ink); font-weight: 800; text-decoration: none; }

/* ---- secure bar ---- */
.securebar { background: var(--dark); color: #fff; text-align: center; font-size: 12px; font-weight: 700; padding: 8px; letter-spacing: .02em; }
.securebar .inner { display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ---- breadcrumb ---- */
.crumbs { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 0 4px; font-size: 13px; color: var(--muted); font-weight: 700; }
.crumbs .cr.active { color: var(--ink); }
.crumbs .arrow { color: #C9BFB3; }

/* ---- promo bar ---- */
.promo { display: flex; align-items: stretch; border-radius: 12px; overflow: hidden; margin: 12px 0 16px; box-shadow: var(--shadow); }
.promo .code { background: var(--dark); color: #fff; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.promo .code .c1 { display: flex; align-items: center; gap: 5px; font-family: "Hanken Grotesk", sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.promo .code .c2 { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: #C9BFB3; }
.promo .timer { flex: 1; background: var(--green-soft); display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; color: #245239; padding: 8px 12px; text-align: center; }
.promo .timer b { color: var(--red); margin: 0 3px; }

/* ---- diagnosis echo (slim) ---- */
.echo { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; font-size: 13px; color: var(--ink2); }
.echo .n { flex: 0 0 auto; font-family: "Hanken Grotesk", sans-serif; font-weight: 800; font-size: 15px; background: #F7E2DE; color: #B23A30; border-radius: 999px; padding: 5px 11px; }
.echo b { color: var(--ink); }

/* ---- package picker ---- */
.pkg-section-heading { font-family: "Hanken Grotesk", sans-serif; font-weight: 800; font-size: 20px; margin: 0 0 12px; color: var(--ink); }
.pkgpick { margin: 0 0 18px; }
.pkgopt { display: block; position: relative; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; cursor: pointer; transition: border .12s, box-shadow .12s; }
.pkgopt input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.pkgopt.sel { border-color: var(--ink); box-shadow: 0 8px 24px rgba(34,29,23,.10); }
.pkgopt .flag { position: absolute; top: 10px; right: 14px; font-size: 11px; font-weight: 800; font-family: "Hanken Grotesk", sans-serif; display: flex; align-items: center; gap: 4px; }
.pkgopt .flag.f1 { color: var(--gold); }
.pkgopt .flag.f2 { color: var(--orange-deep); }
.pkgopt .pk-row { display: flex; align-items: flex-start; gap: 12px; }
.pkgopt .ring { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #C9BFB3; flex: 0 0 auto; margin-top: 3px; display: flex; align-items: center; justify-content: center; }
.pkgopt.sel .ring { border-color: var(--ink); }
.pkgopt.sel .ring::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.pkgopt .pk-mid { flex: 1; min-width: 0; padding-right: 86px; }
.pkgopt h3 { font-family: "Hanken Grotesk", sans-serif; font-weight: 800; font-size: 16px; color: var(--ink); }
.pkgopt .pk-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pkgopt .pk-save { margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--red); }
.pkgopt .pk-price { position: absolute; right: 14px; top: 34px; text-align: right; }
.pkgopt .pk-price .was { display: block; font-size: 12.5px; color: var(--muted); text-decoration: line-through; font-weight: 700; }
.pkgopt .pk-price .now { font-family: "Hanken Grotesk", sans-serif; font-weight: 800; font-size: 19px; color: var(--ink); display: block; }
.pkgopt .pk-price .per { font-size: 10.5px; font-weight: 700; color: var(--muted); display: block; }

/* ---- express checkout ---- */
.divlabel { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; font-weight: 800; margin: 20px 0 10px; }
.divlabel::before, .divlabel::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.express-card { margin-bottom: 4px; }
.express-checkout__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.express-error-banner { display: none; background: #FDE8E8; border: 1px solid #F5C6C6; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--red); margin-bottom: 8px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; font-weight: 800; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- form ---- */
.sec-h { font-family: "Hanken Grotesk", sans-serif; font-weight: 800; font-size: 19px; margin: 6px 0 2px; color: var(--ink); }
.sec-sub { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.fld { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: 14px; font-family: "Mulish", sans-serif; font-size: 15px; margin-bottom: 10px; color: var(--ink); appearance: none; -webkit-appearance: none; }
.fld::placeholder { color: #B3A798; }
.fld:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(224,122,78,.15); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.address-locality { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.country-cap { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; letter-spacing: .04em; text-transform: uppercase; }
.fldwrap { position: relative; }
.fldwrap .fld { padding-right: 42px; }
.fldwrap .ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field-error { display: block; font-size: 12px; color: var(--red); margin: -6px 0 8px; }

/* ---- guarantee callout ---- */
.guar { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 18px; font-size: 12.5px; color: var(--ink2); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.gbadge { width: 52px; height: 52px; flex: none; }
.guar p { margin: 0; line-height: 1.5; }
.guar b { color: var(--ink); }

/* ---- payment ---- */
.credit-error-banner { display: none; background: #FDE8E8; border: 1px solid #F5C6C6; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--red); margin-bottom: 10px; }
.credit-error-text { display: block; }
.payopt { background: #F2E9DF; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.payopt.on { border-color: var(--orange); }
.cc-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14.5px; cursor: pointer; }
.cc-logos { display: flex; gap: 5px; margin-left: auto; }
.pmark { width: 34px; height: auto; }
.radio-input { display: none; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C9BFB3; flex: none; display: flex; align-items: center; justify-content: center; }
.payopt.on .radio::after, .payopt.cc-box.on .radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.cc-body { margin-top: 12px; }
.input-flds { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 13px 14px; min-height: 48px; margin-bottom: 10px; }
.spreedly-field { min-height: 48px; }
.cc-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-expiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chk { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink2); margin-top: 4px; cursor: pointer; }
.chk .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #C9BFB3; background: #fff; flex: none; display: flex; align-items: center; justify-content: center; }
input[type="checkbox"]:checked + .box { background: var(--orange); border-color: var(--orange); }
.pp-row { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.pp-row .name { font-weight: 800; font-size: 14.5px; }
.payment-method__icon { height: auto; }
.legal { font-size: 11.5px; color: var(--muted); text-align: center; margin: 14px 0 10px; line-height: 1.5; }
.legal a { color: var(--ink2); font-weight: 700; text-decoration: underline; }

/* ---- CTA button ---- */
.cta { display: block; width: 100%; border: none; border-radius: 12px; background: var(--orange); color: #fff; font-family: "Hanken Grotesk", sans-serif; font-weight: 800; font-size: 18px; letter-spacing: .02em; padding: 16px; cursor: pointer; text-align: center; transition: background .15s; position: relative; }
.cta:hover { background: var(--orange-deep); }
.cta .big { display: flex; align-items: center; justify-content: center; gap: 8px; }
.cta .small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em; margin-top: 3px; color: rgba(255,255,255,.8); }
.loading-spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta[data-loading] .loading-spinner { display: inline-block; }
.cta[data-loading] .btn-text { opacity: .7; }

/* ---- trust badges ---- */
.trust2 { display: flex; justify-content: center; gap: 22px; margin: 14px 0 4px; font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.tb2 { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.paylogos { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 8px 0 6px; }
.paylogos img { height: 20px; width: auto; }

/* ---- second CTA ---- */
.second-cta-wrap { max-width: 520px; margin: 0 auto; padding: 0 14px 14px; }
.cta-link { display: block; width: 100%; border-radius: 12px; background: var(--orange); color: #fff; font-family: "Hanken Grotesk", sans-serif; font-weight: 800; font-size: 18px; letter-spacing: .02em; padding: 16px; cursor: pointer; text-align: center; text-decoration: none; transition: background .15s; }
.cta-link:hover { background: var(--orange-deep); }
.cta-link .big { display: flex; align-items: center; justify-content: center; gap: 8px; }
.cta-link .small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em; margin-top: 3px; color: rgba(255,255,255,.8); }

/* ---- delivery banner ---- */
.delivery-banner { max-width: 520px; margin: 14px auto 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink2); }
.delivery-banner svg { flex: none; color: var(--orange); margin-top: 2px; }
.delivery-banner p { margin: 0; line-height: 1.5; }

/* ---- order summary ---- */
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 18px 0; box-shadow: var(--shadow); }
.summary .sh { display: flex; justify-content: space-between; font-weight: 800; font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.srow { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #F0EAE0; font-size: 14px; }
.srow .it small { display: block; font-size: 11.5px; color: var(--muted); }
.srow .am { font-weight: 800; }
.srow .am .was { color: var(--muted); text-decoration: line-through; font-weight: 700; margin-right: 6px; font-size: 12.5px; }
.srow.saved .am { color: var(--red); }
.srow.total { border-bottom: none; font-family: "Hanken Grotesk", sans-serif; font-weight: 800; font-size: 16px; padding-top: 12px; }
.am.free { color: var(--green); }

/* ---- billing terms ---- */
.billing-terms { max-width: 560px; margin: 0 auto 6px; text-align: center; padding: 0 14px; }
.billing-terms p { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---- reviews ---- */
.reviews { max-width: 520px; margin: 0 auto; padding: 0 14px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; box-shadow: var(--shadow); }
.review-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.review-content { flex: 1; }
.copper-stars { display: flex; gap: 3px; margin-bottom: 6px; }
.copper-stars svg { width: 15px; height: 15px; }
.quote { font-size: 13.5px; color: var(--ink2); line-height: 1.55; margin-bottom: 8px; }
.attribution { font-size: 13px; font-weight: 800; color: var(--ink); }
.credibility { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted); margin-top: 3px; text-transform: uppercase; }
.energy-age-section { margin-top: 10px; }
.energy-age-label { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }

/* ---- offer stack ---- */
.included { max-width: 520px; margin: 20px auto 0; padding: 0 14px; }
.included-banner { border-radius: var(--radius); overflow: hidden; position: relative; margin-bottom: 16px; }
.included-banner img { width: 100%; height: 200px; object-fit: cover; }
.included-banner .ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,18,16,.85) 60%, transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff; }
.included-banner .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.included-banner h2 { font-family: "Hanken Grotesk", sans-serif; font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.included-banner p { font-size: 13px; color: rgba(255,255,255,.85); margin: 0; line-height: 1.5; }
.layers { display: flex; flex-direction: column; gap: 12px; }
.layer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.layer .num { width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.layer .lt { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.layer h3 { font-family: "Hanken Grotesk", sans-serif; font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 5px; }
.layer p { font-size: 13px; color: var(--ink2); margin-bottom: 10px; line-height: 1.5; }
.layer .imgs { display: flex; gap: 8px; }
.layer .imgs img { border-radius: 8px; flex: 1; object-fit: cover; height: 80px; }
.bonus-note { display: flex; align-items: center; gap: 8px; background: var(--orange-soft); border: 1px solid #F0D5C2; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--ink2); margin-top: 14px; }

/* ---- footer ---- */
.foot { background: var(--ink); color: #CFC8BE; margin-top: 30px; }
.foot .inner { max-width: 520px; margin: 0 auto; padding: 20px 14px 26px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.foot .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.foot .links a { color: #CFC8BE; text-decoration: underline; font-size: 13px; margin: 0 9px; line-height: 2; }
.foot .copy { font-size: 13px; color: #9A9183; }

/* ---- responsive ---- */
@media (max-width: 420px) {
  .address-locality { grid-template-columns: 1fr 1fr; }
  .address-locality > div:last-child { grid-column: 1 / -1; }
  .cc-details-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
