/* Price My Property. Single stylesheet, no framework.
   Brand rules: logo blue #18a3e7 + orange #F68520, 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;
  --cta: #35A3E7;          /* CTA buttons (user, 2026-09-30); same colour on hover */
  --orange: #F68520;       /* brand orange (exact, from brand guide): 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);
  /* smooth black card shadow: soft, wide, low opacity so it never looks cut off */
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 16px rgba(0, 0, 0, .06), 0 18px 40px rgba(0, 0, 0, .06);
  --card-shadow-hover: 0 2px 4px rgba(0, 0, 0, .05), 0 10px 24px rgba(0, 0, 0, .08), 0 24px 56px rgba(0, 0, 0, .09);
  /* Apple system font: SF Pro on iPhone/iPad/Mac, native equivalents elsewhere. No web font download. */
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', system-ui, 'Segoe UI', Roboto, Arial, 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;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; }
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: #fff; background: var(--cta);
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s;
}
.btn:hover, .btn:focus-visible, .btn:active { background: var(--cta); } /* one colour, no hover change (user, 2026-09-30) */
.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%; }
/* funnel Back: secondary, sits under the active step; same colours on hover (user rule) */
.btn-back, .btn-back:hover, .btn-back:focus-visible, .btn-back:active { background: #fff; color: var(--ink); }
.btn-back { min-height: 46px; padding: 0 22px 0 16px; gap: 4px; margin-top: 24px; font-size: 15px; font-weight: 700; border: 1px solid var(--line); }
.btn-back svg { width: 18px; height: 18px; }
.btn-back[hidden] { display: none; }
.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: var(--blue-50); padding: 0; transition: background .3s ease, padding .3s ease; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; border-radius: 999px; padding: 0; border: 1px solid transparent; transition: background .3s ease, box-shadow .3s ease, padding .3s ease, border-color .3s ease, min-height .3s ease; }
/* iPhone-style glass once the page scrolls (class set in app.js) */
.site-header.scrolled { background: transparent; padding: 6px 0; }
.site-header.scrolled .header-row {
  min-height: 56px; padding: 0 8px 0 20px;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-color: rgba(255, 255, 255, .7);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .10), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.site-header.scrolled .logo img { height: 36px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.scrolled .header-row { background: rgba(255, 255, 255, .95); }
}
.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; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); padding: 6px 12px; border-radius: 99px; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; color: var(--ink); }
.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: 6px; }
.trust-ic { flex: none; width: 18px; height: 18px; }
.ic-orange { color: var(--orange); }
.ic-star { color: #f5b50a; }
.ic-star use { fill: currentColor; }
.ic-green { color: #16a34a; }

/* 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-diff { 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: #16a34a; 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: #fff; }
.section-title { font-size: clamp(1.65rem, 3.6vw, 2.4rem); font-weight: 800; color: var(--ink); }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head .lede { margin-inline: auto; }
.center { text-align: center; }
/* focus words (1 to 3 per title): brand blue text only. Orange underline bar removed (user, 2026-10-01) */
.hook { color: var(--blue-600); }
.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: 24px 0 48px; }
.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; }
.marquee-reverse .marquee-track { animation-direction: reverse; }
@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: 56px 0 0; }
/* small uppercase label heading */
.label-title { text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); line-height: 1.5; margin: 0 0 4px; }
.sold-card { position: relative; width: 260px; flex: none; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); }
.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: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--card-shadow); }
.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: var(--blue-50); 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-radius: 18px; padding: 28px; box-shadow: var(--card-shadow); transition: box-shadow .2s ease, transform .2s ease; }
.card:hover, .steps li:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.card h3 { font-size: 1.2rem; margin-top: 16px; }
/* cards with a photo on top; the icon badge overlaps the photo edge */
.card-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; transition: transform .4s ease; }
.card-media:hover .card-img { transform: scale(1.03); }
.card-body { position: relative; padding: 0 28px 28px; flex: 1; background: #fff; }
.card-media .card-icon { margin-top: -26px; position: relative; box-shadow: 0 0 0 5px #fff; }
.card-media h3 { margin-top: 14px; }
.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: 32px 28px; display: grid; gap: 24px; justify-items: center; text-align: center; box-shadow: var(--card-shadow); }
.bottom-line p { margin: 0; color: var(--ink-2); font-size: 1.05rem; max-width: 760px; }
.bottom-line strong { color: var(--ink); }
.bottom-cta { display: flex; flex-direction: column; align-items: center; }
.bottom-cta .micro { margin-top: 10px; }

/* ---------- three steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: none; }
.steps li { position: relative; background: #fff; border-radius: 18px; box-shadow: var(--card-shadow); transition: box-shadow .2s ease, transform .2s ease; 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; }
/* centred CTA under a section (three steps, reviews) */
.section-cta { display: flex; flex-direction: column; align-items: center; margin-top: 28px; text-align: center; }
.section-cta .micro { margin-top: 12px; }
.reviews .section-cta { margin-top: 20px; }
.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; padding: 8px 16px; border-radius: 99px; box-shadow: var(--card-shadow); 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; }
/* two marquee rows; cards keep their own height so an opened review doesn't stretch its row */
.review-rows .marquee { padding: 12px 0 26px; }
.review-rows .marquee + .marquee { margin-top: -12px; }
.review-rows .marquee-track { align-items: flex-start; }
.review { width: 340px; flex: none; background: #fff; border: 1px solid #e3e8ee; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.review-head { display: flex; align-items: center; gap: 12px; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; }
.review-who { flex: 1; min-width: 0; line-height: 1.3; display: grid; gap: 3px; }
.review-who strong { font-size: 15.5px; color: var(--ink); }
.review-who .stars svg { width: 14px; height: 14px; }
.review-when { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-2); }
.review-when .g-logo svg { width: 14px; height: 14px; }
.review-text { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.review.open .review-text { -webkit-line-clamp: unset; display: block; }
/* the Read more line is always reserved (hidden, not removed) so every card is the same height */
.review .review-more { align-self: flex-start; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--blue-700); }
.review .review-more[hidden] { display: block; visibility: hidden; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border-radius: var(--radius); padding: 0; margin-bottom: 14px; box-shadow: var(--card-shadow); }
.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: #fff; padding: 24px 0 88px; }
/* blue card: flat brand blue, soft decorative circles (no gradients) */
.final-card { position: relative; overflow: hidden; max-width: 1040px; margin: 0 auto; padding: 64px 24px; border-radius: 28px; background: var(--blue-600); color: #fff; box-shadow: 0 20px 50px rgba(19, 145, 209, .28), 0 6px 16px rgba(0, 0, 0, .08); }
.final-card::before, .final-card::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.final-card::before { width: 340px; height: 340px; top: -150px; right: -90px; }
.final-card::after { width: 240px; height: 240px; bottom: -130px; left: -70px; }
.final-card > * { position: relative; }
.final-cta h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); font-weight: 800; margin-bottom: 26px; color: #fff; }
/* the card is blue, so its button is white with blue text */
.final-card .btn { background: #fff; color: var(--blue-700); }
.final-card .btn:hover, .final-card .btn:focus-visible, .final-card .btn:active { background: #fff; color: var(--blue-700); }
.final-card .micro { color: rgba(255, 255, 255, .92); }
.final-card .micro span { color: #fff; opacity: .7; }
.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; }
  .sold-card { width: 280px; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  /* wide hero: copy anchored left, phone anchored right; header matches so the logo lines up */
  .hero-grid, .header-row { width: min(1360px, 100% - 96px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; }
  .hero-copy { max-width: 680px; justify-self: start; }
  .hero-phone { justify-self: end; }
  .hero h1 { font-size: clamp(3rem, 4.4vw, 4.1rem); }
  .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; }
  .bottom-cta .btn, .final-cta .btn, .section-cta .btn { width: 100%; max-width: 340px; }
  .final-card { padding: 48px 20px; border-radius: 22px; }
  .section { padding: 60px 0; }
  .review { width: 280px; }
  .sold-card { width: 230px; }
  .sold-card img { height: 160px; }
}


/* ---------- legal page (/privacy/) ---------- */
.legal-header { background: var(--blue-50); }
.legal-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.legal-back { font-weight: 700; font-size: 15px; text-decoration: none; }
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 12px 0 8px; }
.legal-meta { color: var(--ink-2); font-size: 14px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.legal-toc a { padding: 8px 14px; border-radius: 99px; background: var(--blue-50); font-weight: 700; font-size: 14px; text-decoration: none; }
.legal-section { margin-top: 40px; scroll-margin-top: 20px; }
.legal-section h2 { font-size: clamp(1.4rem, 3.6vw, 1.8rem); padding-bottom: 10px; border-bottom: 2px solid var(--blue-50); }
.legal-section h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.legal-section p, .legal-section li { color: var(--ink-2); line-height: 1.7; }
.legal-section ul { padding-left: 22px; margin: 0 0 1em; }
.legal-section li { margin-bottom: 4px; }
.legal-caps { font-weight: 700; color: var(--ink) !important; font-size: 14px; letter-spacing: .01em; }

/* ---------- mobile floating CTA (shown by app.js after the hero) ---------- */
.float-cta { display: none; }
@media (max-width: 759px) {
  .float-cta {
    display: block; position: fixed; z-index: 40; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
    opacity: 0; transform: translateY(120%); pointer-events: none;
    transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
  }
  .float-cta.show { opacity: 1; transform: none; pointer-events: auto; }
  .float-cta .btn { width: 100%; border-radius: 999px; box-shadow: 0 10px 28px rgba(53, 163, 231, .38), 0 4px 10px rgba(0, 0, 0, .12); }
  body.popup-open .float-cta { display: none; }
  /* header: brand logo only, centred */
  .site-header .btn { display: none; }
  .header-row { justify-content: center; }
  .site-header.scrolled .header-row { padding: 0 20px; }
}

/* ---------- mobile: centred headings + reference hero order ---------- */
@media (max-width: 759px) {
  /* every section heading, eyebrow and intro line is centred */
  .section-head, .section-title, .eyebrow-wrap, .list-title, .panel-lead, .steps-note, .bottom-line { text-align: center; }
  .section-head { margin-inline: auto; }
  .section-head .lede, .split .lede { margin-inline: auto; }
  .split > div:first-child { text-align: center; }
  .split > div:first-child .checks { text-align: left; max-width: 420px; margin: 0 auto; }

  /* hero: eyebrow, headline, text, PHONE, button, small print, trust points */
  .hero { padding: 28px 0 48px; }
  .hero-grid { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
  .hero-copy { display: contents; }
  .hero .eyebrow { order: 1; margin-bottom: 14px; }
  .hero h1 { order: 2; font-size: clamp(1.9rem, 8.2vw, 2.5rem); margin-bottom: 12px; }
  .hero .lede { order: 3; margin: 0 auto 22px; font-size: 1.05rem; }
  .hero-phone { order: 4; margin: 0 0 26px; }
  .hero-phone .phone { zoom: .66; }
  /* compact demo on phones: price row + first four comparisons (desktop shows all nine) */
  .hero-phone .cmp tbody tr:nth-child(n+6) { display: none; }
  .hero-phone .cmp tbody tr:nth-child(5) .pmp { border-radius: 0 0 8px 8px; border-bottom: 0; }
  .hero-phone .cmp tbody tr:nth-child(5) th, .hero-phone .cmp tbody tr:nth-child(5) td { border-bottom: 0; }
  .hero .btn-lg { order: 5; width: 100%; max-width: 340px; border-radius: 999px; }
  .hero .micro { order: 6; margin-top: 12px; }
  .hero .trust { order: 7; justify-content: center; flex-wrap: nowrap; margin-top: 16px; font-size: 13.5px; }
  .hero .trust li { padding: 0 10px; white-space: nowrap; }
  .hero .trust li:first-child { padding-left: 0; }
  .hero .trust li:last-child { padding-right: 0; }
}

/* ================= 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: center; gap: 12px; width: min(640px, 100%); margin: 0 auto 24px; padding: 16px 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; display: flex; flex-direction: column; }
.step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; text-align: center; }
/* vertically centred in the space under the progress bar. Auto margins (not
   justify-content) so a step taller than the screen still starts at the top and scrolls. */
.step.active { display: block; margin-block: auto; padding-bottom: 6vh; 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; }
.q + .choices { margin-top: 24px; } /* question with no sub line */
/* exit screen for non-owners: message + home button */
.step-exit { text-align: center; }
.step-exit .q { margin-bottom: 24px; }
.step-exit .q + .sub { margin-top: -12px; }
.spinner { display: block; width: 48px; height: 48px; margin: 0 auto 22px; border-radius: 50%; border: 4px solid var(--blue-100); border-top-color: var(--blue); animation: spin .8s linear infinite; }
/* brand-orange highlight (tint of #F68520, dark orange text for readability) */
.sub mark { background: #fde8d4; color: #a84d06; font-weight: 700; padding: 3px 8px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.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; }

/* "100% Free. No obligation." under every funnel step: sits at the bottom of the screen */
.funnel-assure { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 18px auto 0; padding-top: 12px; width: min(560px, 100%); color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.funnel-assure svg { width: 14px; height: 14px; color: var(--blue); }
.popup-content:has(.form-thankyou.active) .funnel-assure { display: none; }

/* address suggestions (Google Places) */
.addr-wrap { text-align: left; }
.addr-list { position: absolute; z-index: 5; top: calc(100% - 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 14px; box-shadow: var(--card-shadow-hover); max-height: 320px; overflow-y: auto; }
.addr-list[hidden] { display: none; }
.addr-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; cursor: pointer; line-height: 1.3; }
.addr-list li svg { position: static; flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }
.addr-list li[aria-selected="true"], .addr-list li:hover { background: var(--blue-50); }
.addr-list strong { display: block; font-weight: 700; color: var(--ink); }
.addr-list small { display: block; color: var(--ink-2); font-size: 13px; }
.addr-list .addr-credit { display: block; padding: 6px 12px 2px; font-size: 11px; color: var(--ink-2); text-align: right; cursor: default; }
.addr-list .addr-credit:hover { background: none; }
.addr-list .addr-status { color: var(--ink-2); font-size: 14px; cursor: default; }
.addr-list .addr-status:hover { background: none; }
.addr-manual { display: block; margin: 4px auto 0; font-size: 14px; font-weight: 600; }
.addr-manual[hidden] { display: none; }
/* an odd last answer card sits centred on its own row */
.choices-2 > .choice:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
.tiles > .tile:last-child:nth-child(3n+1) { grid-column: 2; }

/* 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: blue shades, timeline, request summary */
.form-thankyou { display: none; width: min(640px, 100%); margin: 0 auto; padding: 4px 0 8px; }
.form-thankyou.active { display: block; animation: slide .3s ease; }
.ty-hero { text-align: center; margin-bottom: 20px; }
.ty-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: 0 0 0 8px var(--blue-50); }
.ty-icon svg { width: 32px; height: 32px; }
.form-thankyou h2 { color: var(--ink); font-size: clamp(1.5rem, 4.6vw, 2rem); margin-bottom: 8px; }
.ty-hero p { color: var(--ink-2); margin: 0 auto; max-width: 520px; }
.ty-card { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 18px; padding: 18px 20px; margin-bottom: 14px; }
.ty-label { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-700); }
.ty-label-center { text-align: center; }
.ty-contact { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.ty-contact li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; word-break: break-word; }
.ty-contact li[hidden] { display: none; }
.ty-contact svg { flex: none; width: 17px; height: 17px; color: var(--blue-700); }
.ty-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ty-chips li { background: #fff; border: 1px solid var(--blue-100); color: var(--blue-700); font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 99px; }
.ty-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ty-stats li { background: #fff; border-radius: 14px; padding: 12px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.ty-stats strong { color: var(--blue-700); font-size: 1.05rem; display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.ty-stats span { color: var(--ink-2); font-size: 12.5px; line-height: 1.3; }
.ty-star { width: 15px; height: 15px; color: var(--orange); }
.ty-assure { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.ty-assure li { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; line-height: 1.35; }
.ty-assure svg { width: 20px; height: 20px; color: var(--blue); }
.ty-fine { text-align: center; color: var(--ink-2); font-size: 12.5px; margin: 12px 0 0; }
.popup-content:has(.form-thankyou.active) .progress { display: none; }
@media (max-width: 520px) {
  .ty-stats { gap: 6px; }
  .ty-stats strong { font-size: .95rem; }
  .ty-assure { gap: 6px; font-size: 12px; }
}

/* ---- 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) {
  /* compact so most steps fit one screen and can be centred */
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile span { min-height: 88px; gap: 8px; padding: 10px 6px; font-size: 14px; }
  .tile i { width: 38px; height: 38px; border-radius: 10px; }
  .tile i svg { width: 20px; height: 20px; }
  .choices { gap: 8px; }
  .choices-2 { grid-template-columns: 1fr 1fr; }
  .choice span { min-height: 50px; padding: 10px; font-size: 15px; }
  .q { font-size: 1.55rem; margin-bottom: 8px; }
  .sub { font-size: 15px; margin-bottom: 18px; }
  .foot { margin-top: 12px; }
  .step.active { padding-bottom: 3vh; }
  .otp-boxes { gap: 7px; }
  .popup-logo { height: 30px; }
  .progress { margin-bottom: 18px; }
}


/* ================= MOTION =================
   Everything here is progressive: the classes are added by app.js, so with JS
   off (or reduced motion) the page is simply static and fully visible. */

/* scroll reveal: soft fade + rise, Apple-style easing */
.reveal-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--d, 0ms); }
/* no permanent will-change: dozens of promoted layers exhaust iPhone Safari's layer budget and parts of the page stop painting */
.reveal-ready .reveal.in { opacity: 1; transform: none; }

/* demo phone: calm fade in, then a typewriter (see app.js). No float, no bounce. */
/* phone frame is visible immediately (LCP); only its text starts hidden, then types in */
.phone-pre .phone-screen { visibility: hidden; }
.tw-r { visibility: hidden; }
/* caret is an overlay: it takes no space, so typing can never re-wrap lines or change heights */
.tw-t { position: relative; }
.tw-t.caret::after { content: ''; position: absolute; right: -3px; top: .1em; width: 2px; height: 1em; background: currentColor; animation: caret-blink .8s steps(1) infinite; pointer-events: none; }
.cmp-value td.pmp.pulse { animation: value-pulse 1.2s ease-out 1; }
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes value-pulse { 0% { box-shadow: inset 0 0 0 0 rgba(24, 163, 231, 0); } 30% { box-shadow: inset 0 0 0 3px rgba(24, 163, 231, .55); } 100% { box-shadow: inset 0 0 0 0 rgba(24, 163, 231, 0); } }

@keyframes fade { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@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; }
}
