/* Price My Property. Single stylesheet, no framework.
   Brand rules: logo blue #18a3e7 + orange #f6851f, flat colour only (no gradients).
   Layout rules for the pop-up + thank-you are load-bearing on iOS; see the
   "thank-you scroll" block. */

:root {
  --blue: #18a3e7;         /* logo blue: fills, icons, borders */
  --blue-600: #1391d1;     /* large display text on light backgrounds */
  --blue-700: #0b74ad;     /* body-size text and selected states (AA on white) */
  --blue-50: #eaf6fd;
  --blue-100: #d4eefb;
  --orange: #f6851f;       /* logo orange: primary CTA */
  --orange-600: #e2700b;
  --grey: #7e7e7e;         /* logo grey: decorative only */
  --ink: #0f2536;
  --ink-2: #51606b;
  --line: #dfe7ec;
  --bg: #ffffff;
  --card: #ffffff;
  --danger: #b42318;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(15, 37, 54, .10), 0 2px 6px rgba(15, 37, 54, .06);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: var(--blue-700); }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  font: 800 16px/1 var(--font);
  color: var(--ink); background: var(--orange);
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--orange-600); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .6; cursor: progress; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 58px; padding: 0 34px; font-size: 18px; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-700); text-decoration: underline; cursor: pointer; }
.link[disabled] { color: var(--ink-2); text-decoration: none; cursor: default; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.logo img { height: 42px; width: auto; }

/* ---------- hero ---------- */
.hero { padding: 48px 0 64px; background: var(--blue-50); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-700); background: #fff; border: 1px solid var(--blue-100); padding: 6px 12px; border-radius: 99px; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; color: var(--ink); }
.hero h1 .hl { color: var(--blue-600); }
.lede { font-size: 1.125rem; color: var(--ink-2); max-width: 36em; }
.lede strong { color: var(--ink); }
.micro { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.micro span { color: var(--orange); margin: 0 4px; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 0; font-size: 14px; color: var(--ink-2); }
.trust li { padding: 0 16px; border-left: 1px solid var(--blue-100); }
.trust li:first-child { padding-left: 0; border-left: 0; }
.trust strong { color: var(--ink); }
.trust li { display: inline-flex; align-items: center; gap: 4px; }
.star { display: inline-block; width: 15px; height: 15px; color: var(--orange); }

/* demo phone */
.hero-phone { margin: 0; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(350px, 100%);
  padding: 40px 14px 18px;
  background: #fff; border: 10px solid var(--ink); border-radius: 46px;
  box-shadow: 0 30px 60px rgba(15, 37, 54, .18);
}
.phone-notch { position: absolute; top: 10px; left: 50%; width: 104px; height: 24px; transform: translateX(-50%); background: var(--ink); border-radius: 14px; }
.ph-kicker { margin: 0 0 4px; text-align: center; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-700); }
.ph-title { margin: 0 0 14px; text-align: center; font-size: 17px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.ph-title span { display: block; color: var(--orange-600); }
.cmp { width: 100%; border-collapse: collapse; font-size: 11px; line-height: 1.3; table-layout: fixed; }
.cmp th, .cmp td { padding: 7px 5px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp thead th { font-size: 10.5px; font-weight: 800; color: var(--ink-2); text-align: center; border-bottom: 0; padding-bottom: 8px; }
.cmp thead th:first-child { width: 34%; }
.cmp tbody th { text-align: left; font-weight: 600; color: var(--ink-2); }
.cmp td { text-align: center; color: var(--ink-2); }
.cmp .pmp { background: var(--blue-50); color: var(--blue-700); font-weight: 700; }
.cmp thead .pmp { color: #fff; background: var(--blue-700); border-radius: 8px 8px 0 0; }
.cmp tbody tr:last-child .pmp { border-radius: 0 0 8px 8px; border-bottom: 0; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp i { font-style: normal; color: var(--orange-600); font-weight: 800; }
.cmp-value th { color: var(--ink); font-weight: 800; }
.cmp-value td { font-size: 18px; font-weight: 800; color: var(--ink); }
.cmp-value td.pmp { color: var(--blue-700); }
.ph-foot { margin: 12px 0 0; text-align: center; font-size: 10.5px; color: var(--ink-2); }

/* ---------- shared section bits ---------- */
.section { padding: 80px 0; }
.section-tint { background: var(--blue-50); }
.section-title { font-size: clamp(1.65rem, 3.6vw, 2.4rem); font-weight: 800; color: var(--ink); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.center { text-align: center; }
.section-head.center, .wrap.center { margin-inline: auto; }
.section-head.center .lede { margin-inline: auto; }
.micro.center { text-align: center; }

/* ---------- marquee (infinite, CSS only; JS clones the items once) ---------- */
.marquee { overflow: hidden; padding: 8px 0 24px; }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; width: max-content; animation: marquee 50s linear infinite; }
.marquee-slow .marquee-track { animation-duration: 80s; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none !important; }
  .marquee-track [data-clone] { display: none; }
}

/* sold cards */
.sold { padding: 72px 0 40px; }
.sold .section-title { margin-bottom: 28px; }
.sold-card { position: relative; width: 260px; flex: none; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.sold-card img { width: 100%; height: 180px; object-fit: cover; }
.sold-badge { position: absolute; top: 12px; right: 12px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 4px 9px; border-radius: 6px; }
.sold-meta { padding: 12px 14px 14px; }
.sold-meta strong { display: block; color: var(--orange-600); font-size: 15px; font-weight: 800; }
.sold-meta span { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.sold-meta svg { width: 14px; height: 14px; }

/* ---------- before you sell ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.list-title { font-weight: 800; margin-top: 8px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--blue); color: #fff; }
.panel { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 20px; padding: 28px; }
.panel-lead { font-weight: 700; font-size: 1.05rem; }
.stats { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 12px; }
.stats li { background: #fff; border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; border-left: 4px solid var(--orange); }
.stats strong { font-size: 1.5rem; font-weight: 800; color: var(--blue-700); line-height: 1.2; }
.stats span { color: var(--ink-2); font-size: 15px; }

/* ---------- assessed cards ---------- */
.cards-3 { display: grid; gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.card h3 { font-size: 1.2rem; margin-top: 16px; }
.card p { color: var(--ink-2); margin: 0; }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue); color: #fff; }
.card-icon svg { width: 26px; height: 26px; }
.bottom-line { margin-top: 32px; background: #fff; border-radius: 18px; padding: 28px; display: grid; gap: 20px; align-items: center; border: 1px solid var(--line); }
.bottom-line p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.bottom-line strong { color: var(--ink); }
.bottom-cta { display: flex; flex-direction: column; align-items: flex-start; }

/* ---------- three steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: none; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 24px 26px; text-align: center; }
.steps h3 { font-size: 1.15rem; margin-top: 16px; }
.steps p { color: var(--ink-2); margin: 0 0 16px; }
.step-num { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 1.25rem; font-weight: 800; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--blue-50); color: var(--blue-700); font-size: 13px; font-weight: 700; }
.chip svg { width: 14px; height: 14px; }
.steps-note { text-align: center; max-width: 640px; margin: 32px auto 0; color: var(--ink-2); }
.steps-note strong { color: var(--ink); }

/* ---------- reviews ---------- */
.rating-line { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0; background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 99px; font-size: 15px; color: var(--ink-2); }
.rating-line strong { color: var(--ink); font-size: 18px; }
.g-logo svg { width: 22px; height: 22px; display: block; }
.stars { display: inline-flex; gap: 1px; color: #fbbc05; }
.stars svg { width: 16px; height: 16px; }
.review { width: 320px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.review-head { display: flex; align-items: center; gap: 10px; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; }
.review-who { flex: 1; min-width: 0; line-height: 1.3; }
.review-who strong { display: block; font-size: 15px; }
.review-who span { font-size: 13px; color: var(--ink-2); }
.review .g-logo svg { width: 20px; height: 20px; }
.review-title { font-weight: 800; margin: 0; }
.review-text { margin: 0; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sample-note { text-align: center; font-size: 12px; color: var(--ink-2); margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '-'; background: var(--blue); color: #fff; }
.faq details p { color: var(--ink-2); margin: 0; padding: 0 20px 20px; }

/* ---------- final CTA ---------- */
.final-cta { background: #fef1e6; padding: 72px 0; }
.final-cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; margin-bottom: 24px; }
.btn-arrow { width: 20px; height: 20px; }
.final-cta .micro { margin-top: 16px; }

/* ---------- footer ---------- */
.site-footer { background: #263b59; color: #fff; padding: 40px 0 36px; }
.footer-grid { display: grid; gap: 28px; }
.site-footer h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 18px; letter-spacing: 0; }
.site-footer a, .site-footer p { color: #fff; text-decoration: none; font-size: 16px; margin: 0 0 6px; }
.site-footer a:hover { text-decoration: underline; }

@media (min-width: 760px) {
  .cards-3, .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bottom-line { grid-template-columns: 1fr auto; }
  .bottom-cta { align-items: center; }
  .sold-card { width: 280px; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .split { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}
@media (max-width: 520px) {
  .logo img { height: 34px; }
  .btn-sm { padding: 0 12px; font-size: 13px; }
  .hero .btn-lg, .bottom-cta .btn, .final-cta .btn { width: 100%; }
  .trust { flex-direction: column; gap: 6px; }
  .trust li { padding: 0; border-left: 0; }
  .section { padding: 60px 0; }
  .review { width: 280px; }
  .sold-card { width: 230px; }
  .sold-card img { height: 160px; }
}

/* ================= FUNNEL (full screen) ================= */
body.popup-open { overflow: hidden; }

.popup { position: fixed; inset: 0; z-index: 50; background: #fff; }
.popup[hidden] { display: none; }

/* The scroll container. dvh (not vh) so the mobile toolbar never strands
   the bottom of the content; min-height:0 lets it shrink inside flex. */
.popup-content {
  position: relative;
  display: flex; flex-direction: column;
  height: 100dvh; max-height: 100dvh; min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  padding: 0 16px calc(28px + env(safe-area-inset-bottom));
  animation: fade .2s ease;
}
.popup-head { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(640px, 100%); margin: 0 auto; padding: 14px 0 10px; }
.popup-logo { height: 36px; width: auto; }
.icon-btn { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--blue-50); color: var(--ink); cursor: pointer; }
.icon-btn[hidden] { visibility: hidden; display: grid; }
.icon-btn svg { width: 20px; height: 20px; }
.progress { width: min(640px, 100%); margin: 0 auto 32px; height: 6px; border-radius: 99px; background: var(--blue-50); overflow: hidden; flex: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: inherit; transition: width .3s ease; }

.popup-body { flex: 1 0 auto; min-height: 0; width: min(560px, 100%); margin: 0 auto; }
.step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; text-align: center; }
.step.active { display: block; animation: slide .25s ease; }
.q { display: block; width: 100%; font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 800; color: var(--ink); margin-bottom: 10px; padding: 0; line-height: 1.15; letter-spacing: -.02em; }
.sub { color: var(--ink-2); font-size: 16px; margin: 0 0 24px; }
.sub mark { background: #fff1c2; color: var(--ink); font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.foot { color: var(--ink-2); font-size: 13.5px; margin: 16px 0 0; }
.foot a { color: var(--blue-700); }
.foot-ic { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

.field {
  width: 100%; min-height: 56px; padding: 0 16px; margin-bottom: 12px;
  font: 500 16px var(--font); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.field.invalid { border-color: var(--danger); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; top: 18px; right: 16px; width: 20px; height: 20px; color: var(--ink-2); pointer-events: none; }
.input-icon .field { padding-right: 46px; }
.input-icon.left svg { left: 14px; right: auto; }
.input-icon.left .field { padding: 0 14px 0 44px; }
.phone-field { display: flex; margin-bottom: 12px; }
.phone-field .cc { display: grid; place-items: center; padding: 0 14px; border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--blue-50); font-weight: 800; color: var(--ink); }
.phone-field .field { margin: 0; border-radius: 0 12px 12px 0; }

/* option tiles (property type) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { position: relative; cursor: pointer; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 118px; padding: 14px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 700; font-size: 14.5px; line-height: 1.25; box-shadow: 0 2px 6px rgba(15, 37, 54, .05); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: #fff; }
.tile i svg { width: 24px; height: 24px; }
.t-orange { background: var(--orange); }
.t-blue { background: var(--blue); }
.t-grey { background: var(--grey); }
.tile:hover span { border-color: var(--blue); transform: translateY(-2px); }
.tile input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.tile input:checked + span { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }

.choices { display: grid; gap: 10px; }
.choices-2 { grid-template-columns: 1fr 1fr; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 12px 14px;
  font-weight: 700; text-align: center; line-height: 1.25;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .15s, background .15s, color .15s;
}
.choice:hover span { border-color: var(--blue); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice input:checked + span { border-color: var(--blue-700); background: var(--blue-700); color: #fff; }

.err { min-height: 1.2em; margin: 0 0 12px; color: var(--danger); font-size: 14px; font-weight: 600; }
.err:empty { margin: 0; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* OTP */
.edit-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: 6px; vertical-align: middle; border: 0; border-radius: 50%; background: #fef1e6; color: var(--orange-600); cursor: pointer; }
.edit-btn svg { width: 16px; height: 16px; }
.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 8px 0 14px; }
.otp-boxes input {
  width: 100%; aspect-ratio: 1 / 1.1; min-width: 0; text-align: center;
  font: 800 clamp(22px, 6vw, 30px) var(--font); color: var(--ink);
  background: var(--blue-50); border: 1.5px solid var(--blue-100); border-radius: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.otp-boxes input:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
.otp-boxes input.filled { background: #fff; border-color: var(--blue-700); }
.otp-boxes.invalid input { border-color: var(--danger); animation: shake .3s; }
.resend { text-align: left; margin: 0 0 16px; font-size: 14px; }
.resend .link { font-weight: 700; }
.btn-verify { border-radius: 99px; letter-spacing: .04em; }
.btn-verify[disabled] { background: #e8e4df; color: #a39c94; opacity: 1; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-700); text-decoration: underline; cursor: pointer; }
.link[disabled] { color: var(--ink-2); text-decoration: none; cursor: default; }

/* thank-you */
.form-thankyou { display: none; text-align: center; width: min(560px, 100%); margin: 0 auto; padding: 8px 0; }
.form-thankyou.active { display: block; animation: slide .3s ease; }
.ty-icon { width: 80px; height: 80px; margin: 8px auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; }
.ty-icon svg { width: 40px; height: 40px; }
.form-thankyou h2 { color: var(--ink); font-size: clamp(1.6rem, 5vw, 2.1rem); }
.ty-list { list-style: none; padding: 0; margin: 20px 0 24px; text-align: left; display: grid; gap: 10px; }
.ty-list li { background: var(--blue-50); padding: 14px 16px; border-radius: 12px; color: var(--ink-2); font-size: 15px; }
.ty-list strong { color: var(--ink); }

/* ---- thank-you scroll (iOS). Do not simplify. ----
   iOS Safari won't momentum-scroll a flex container, so when the thank-you
   is showing the scroller switches to display:block, and the (now empty)
   form is removed so it can't reserve space. */
.popup-content:has(.form-thankyou[data-thank-you="true"].active) {
  display: block;
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.popup-content:has(.form-thankyou[data-thank-you="true"].active) .popup-body { display: none; }

@media (max-width: 520px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .choices-2 { grid-template-columns: 1fr; }
  .otp-boxes { gap: 7px; }
  .popup-logo { height: 30px; }
  .progress { margin-bottom: 24px; }
}

@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { opacity: 0; transform: translateY(10px); } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
