/* ==========================================================================
   MY TOP AGENT — Christchurch (v1)
   Cream + orange palette · Poppins · zero-framework
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand orange */
  --brand-500: #F87416;
  --brand-600: #D9610D;
  --brand-700: #B54F09;
  --brand-050: #FFF3EA;
  --brand-100: #FFE4CE;
  --brand-200: #FFCEA4;
  --brand-300: #FFB47A;
  --brand-400: #FA9647;

  /* Page canvas — pale cool mint */
  --cream-050: #EAF3F5;   /* page bg */
  --cream-100: #DDEAED;   /* alt section band */
  --cream-200: #C9DBE0;   /* borders / dividers */

  /* Warm neutrals */
  --ink-900: #14110E;
  --ink-800: #2A251F;
  --ink-700: #4A423B;
  --ink-600: #6B6157;
  --ink-500: #8B8175;
  --ink-400: #ABA294;
  --ink-300: #CCC4B7;
  --ink-200: #E4DED2;
  --ink-100: #EFE7DA;
  --ink-50:  #FBF7F1;
  --white:   #FFFFFF;

  /* Legacy aliases (used by preserved popup/form/thank-you blocks) */
  --cta-500: #F87416;
  --cta-600: #D9610D;
  --cta-700: #B54F09;
  --accent-cream: #FFF3EA;
  --accent-warm:  #FFCEA4;
  --brand-50:  #FFF3EA;
  --brand-800: #B54F09;
  --brand-900: #7A3606;

  /* Layout */
  --container: 1200px;
  --container-narrow: 900px;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 40px;
  --r-round: 999px;

  /* Shadows (warm) */
  --sh-1: 0 1px 2px rgba(20,17,14,.06), 0 1px 1px rgba(20,17,14,.04);
  --sh-2: 0 8px 24px -8px rgba(20,17,14,.10), 0 4px 8px -4px rgba(20,17,14,.06);
  --sh-3: 0 20px 48px -12px rgba(20,17,14,.14), 0 10px 24px -8px rgba(20,17,14,.08);
  --sh-4: 0 40px 80px -20px rgba(20,17,14,.20), 0 20px 40px -12px rgba(20,17,14,.10);

  /* Motion */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink-800);
  background: var(--cream-050);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; margin: 0; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink-900); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* Lenis smooth-scroll compat */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-round);
  font-family: 'Inter', 'Poppins', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .18s, background .18s, color .18s, border-color .18s;
  text-align: center;
  text-decoration: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-lg svg { width: 20px; height: 20px; }
.btn-primary { background: var(--brand-500); color: var(--white); box-shadow: 0 8px 20px -8px rgba(248,116,22,.5); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(248,116,22,.6); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--white); color: var(--brand-600); border: 1.5px solid var(--brand-200); }
.btn-ghost:hover { background: var(--brand-050); border-color: var(--brand-500); }
.btn-inverse { background: var(--white); color: var(--brand-600); }
.btn-inverse:hover { background: var(--brand-050); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(0,0,0,.15); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 17px; }

/* ---------- Common section pieces ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--brand-050);
  color: var(--brand-600);
  border-radius: var(--r-round);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--ink-600);
  max-width: 640px;
  margin: 0 0 32px;
  line-height: 1.6;
}
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }
.brand-word { color: var(--brand-500); position: relative; white-space: nowrap; }
.section-title .accent, .smarter-title .accent { color: var(--brand-500); }
.smarter-title .accent { color: #FFE18A; text-shadow: 0 2px 8px rgba(122,54,6,.35); }
.brand-word::after {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -6px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 Q 25 1 50 5 T 98 4' stroke='%23F87416' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  opacity: .85;
}

/* ---------- Header · transparent at top → floating iPhone Dynamic Island glass pill on scroll ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: 0;
  transition:
    padding .5s cubic-bezier(.22,1,.36,1),
    background .5s cubic-bezier(.22,1,.36,1);
  will-change: padding;
}
.site-header.scrolled {
  padding: 12px 12px 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
  padding: 0 28px;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: 1px solid transparent;
  transition:
    height .55s cubic-bezier(.22,1,.36,1),
    gap .55s cubic-bezier(.22,1,.36,1),
    padding .55s cubic-bezier(.22,1,.36,1),
    max-width .55s cubic-bezier(.22,1,.36,1),
    width .55s cubic-bezier(.22,1,.36,1),
    border-radius .55s cubic-bezier(.22,1,.36,1),
    background .55s cubic-bezier(.22,1,.36,1),
    box-shadow .55s cubic-bezier(.22,1,.36,1),
    border-color .55s cubic-bezier(.22,1,.36,1),
    backdrop-filter .55s cubic-bezier(.22,1,.36,1);
  will-change: max-width, width, border-radius, background;
}
/* Scrolled → collapse into a centered floating glass pill */
.site-header.scrolled .site-header-inner {
  height: 60px;
  gap: 32px;
  padding: 6px 6px 6px 28px;
  width: min(720px, calc(100% - 24px));
  max-width: 720px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow:
    0 12px 32px -8px rgba(20,17,14,.14),
    0 4px 12px -4px rgba(20,17,14,.06),
    inset 0 1px 0 rgba(255,255,255,.7);
}
.site-logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo {
  height: 44px;
  width: auto;
  transition: height .35s var(--ease-out);
}
.site-header.scrolled .site-logo { height: 34px; }
.btn-sm { padding: 11px 20px; font-size: 14px; border-radius: var(--r-round); transition: padding .35s var(--ease-out), font-size .35s var(--ease-out); }
.btn-sm svg { width: 15px; height: 15px; transition: width .35s, height .35s; }
.site-header-cta { flex-shrink: 0; }
.site-header.scrolled .site-header-cta { padding: 10px 18px; font-size: 13px; }
.site-header.scrolled .site-header-cta svg { width: 13px; height: 13px; }
@media (max-width: 720px) {
  .site-header-inner {
    height: 64px;
    padding: 0 16px;
    gap: 12px;
    justify-content: center;
  }
  .site-header.scrolled { padding: 10px 10px 0; }
  .site-header.scrolled .site-header-inner { height: 52px; padding: 0 14px; max-width: 220px; justify-content: center; }
  .site-logo { height: 34px; }
  .site-header.scrolled .site-logo { height: 28px; }
  .site-header-cta { display: none; }
}

/* ---------- HERO (wide rounded frame · title centered · overlapping search card) ---------- */
.hero {
  position: relative;
  padding: 72px 10px 60px;
  background: linear-gradient(180deg,
    var(--cream-050) 0%,
    var(--cream-050) 45%,
    var(--white) 75%,
    var(--white) 100%);
}
@media (min-width: 720px) { .hero { padding: 84px 14px 80px; } }
@media (min-width: 1024px) { .hero { padding: 92px 20px 100px; } }

/* Viewport-height responsive tweaks — keeps search card above the fold
   on laptops (768–900px viewports) without breaking taller screens. */
@media (max-height: 820px) {
  .hero { padding-top: 60px; padding-bottom: 40px; }
  .hero-search-overlap { margin-top: -70px; }
  .hero-title { font-size: clamp(28px, 4vw, 40px); }
  .hero-sub { margin-top: 8px; }
}
@media (max-height: 700px) {
  .hero { padding-top: 48px; padding-bottom: 24px; }
  .hero-search-overlap { margin-top: -50px; }
  .hero-title-wrap { padding: 20px 20px 24px; }
}

.hero-frame {
  position: relative;
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  border-radius: 0 0 22px 22px;    /* sharp top corners, rounded bottom */
  overflow: hidden;
  min-height: min(400px, 46dvh);
  isolation: isolate;
  box-shadow: 0 30px 60px -20px rgba(20,17,14,.14), 0 0 0 1px rgba(20,17,14,.04);
  background: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 720px) { .hero-frame { border-radius: 0 0 26px 26px; min-height: min(500px, 55dvh); } }
@media (min-width: 1024px) { .hero-frame { border-radius: 0 0 30px 30px; min-height: min(620px, 60dvh); } }

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
@media (max-width: 720px) {
  .hero-bg-img { object-position: 70% 50%; }
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(20,17,14,.14) 0%, rgba(20,17,14,.28) 60%, rgba(20,17,14,.42) 100%);
}

.hero-title-wrap {
  position: relative;
  z-index: 3;
  padding: 32px 24px 40px;
  max-width: 820px;
  text-align: center;
  color: var(--white);
}
@media (min-width: 1024px) { .hero-title-wrap { padding: 48px 32px 60px; } }
.hero-title-wrap .hero-badge {
  background: rgba(255,255,255,.16);
  color: var(--white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.24);
}
.hero-title-wrap .hero-badge-dot { background: var(--brand-500); box-shadow: 0 0 12px var(--brand-500); }
.hero-title-wrap .hero-title {
  color: var(--white);
  font-size: clamp(30px, 5.6vw, 56px);
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
  margin-bottom: 16px;
}
.hero-title-wrap .brand-word { color: var(--brand-400); }
.hero-title-wrap .brand-word::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 Q 25 1 50 5 T 98 4' stroke='%23FA9647' stroke-width='2.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.hero-title-wrap .hero-sub {
  color: rgba(255,255,255,.92);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
@media (min-width: 720px) { .hero-title-wrap .hero-sub { font-size: 17px; } }
.hero-title-wrap .hero-sub-mobile { display: none; }
@media (max-width: 640px) {
  .hero-title-wrap .hero-sub { display: none; }
  .hero-title-wrap .hero-sub-mobile { display: block; color: rgba(255,255,255,.92); font-size: 14.5px; max-width: 340px; margin: 0 auto; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
}

/* Search card overlapping the bottom of the hero frame */
.hero-search-overlap {
  position: relative;
  z-index: 10;
  max-width: 640px;
  margin: -80px auto 0;
  padding: 0 20px;
}
@media (min-width: 1024px) { .hero-search-overlap { margin-top: -100px; max-width: 720px; padding: 0 24px; } }
/* iPhone-style glass search card */
.hero-search-overlap .hero-search {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 24px;
  box-shadow:
    0 30px 60px -20px rgba(20,17,14,.24),
    0 10px 24px -12px rgba(20,17,14,.14),
    inset 0 1px 0 rgba(255,255,255,.8);
  padding: 20px;
  margin-bottom: 12px;
}
.hero-search-overlap .hero-search-wrap {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.6);
}
.hero-search-overlap .hero-search-wrap:focus-within {
  background: rgba(255,255,255,.96);
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(248,116,22,.15);
}
@media (min-width: 720px) {
  .hero-search-overlap .hero-search { padding: 24px 28px; }
}
.hero-scroll-chevron {
  display: none;
  margin: 8px auto 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.55);
  color: var(--ink-700);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(20,17,14,.18);
  transition: transform .2s, background .2s;
  animation: bob 2s ease-in-out infinite;
}
@media (min-width: 720px) { .hero-scroll-chevron { display: flex; } }
.hero-scroll-chevron:hover { transform: translateY(2px); background: var(--brand-050); color: var(--brand-600); }
.hero-scroll-chevron svg { width: 20px; height: 20px; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Trust badges inside the hero frame (below the sub) */
.hero-title-wrap .hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 28px auto 0;
  flex-wrap: wrap;
}
.hero-title-wrap .hero-trust-item {
  color: rgba(255,255,255,.94);
  font-weight: 500;
  font-size: 14px;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-title-wrap .hero-trust-icon { font-size: 17px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-050);
  color: var(--brand-600);
  border-radius: var(--r-round);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: .6; } }
.hero-title {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--ink-900);
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-600);
  max-width: 520px;
  margin: 0 0 28px;
  line-height: 1.6;
}
.hero-sub-mobile { display: none; }
@media (max-width: 720px) {
  .hero-sub { display: none; }
  .hero-sub-mobile { display: block; font-size: 15px; color: var(--ink-600); margin: 0 0 24px; line-height: 1.55; }
}

.hero-search {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--sh-3);
  margin-bottom: 16px;
}
.hero-search-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 10px;
}
.hero-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--cream-050);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.hero-search-wrap:focus-within {
  border-color: var(--brand-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(248,116,22,.12);
}
.hero-search-icon { width: 20px; height: 20px; color: var(--brand-500); flex-shrink: 0; }
.hero-search-input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink-900);
  outline: none;
  min-width: 0;
}
.hero-search-input::placeholder { color: var(--ink-400); }
.hero-search-btn {
  margin-top: 14px;
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
}
.hero-microcopy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 12px;
  flex-wrap: wrap;
}
.hero-microcopy-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-300); }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-700);
}
.hero-trust-icon { font-size: 16px; }

.hero-confirm { display: none; margin-top: 14px; padding: 16px; background: var(--brand-050); border: 1px solid var(--brand-100); border-radius: var(--r-lg); }
.hero-confirm.active { display: block; }
.hero-confirm-question { font-size: 14px; font-weight: 600; color: var(--ink-900); margin-bottom: 12px; text-align: center; }
.hero-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.hero-media {
  position: relative;
  border-radius: 40px 12px 40px 12px;
  overflow: hidden;
  background: var(--brand-050);
  aspect-ratio: 4/5;
  box-shadow: var(--sh-3);
  display: none;
}
@media (min-width: 1024px) { .hero-media { display: block; } }
.hero-media-img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-floater {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 14px 18px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-media-floater-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-500); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.hero-media-floater-name { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.hero-media-floater-role { font-size: 12px; color: var(--ink-500); }
.hero-media-floater-badge { margin-left: auto; padding: 4px 10px; background: var(--brand-050); color: var(--brand-600); border-radius: var(--r-round); font-size: 11px; font-weight: 700; }

/* ---------- HERO SOLD STRIP (marquee slides right under the search card, chevron floats above) ---------- */
.hero-sold-strip {
  position: relative;
  margin-top: 32px;
  padding: 0 0 80px;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 55%,
    var(--white) 100%
  );
}
@media (min-width: 720px) { .hero-sold-strip { margin-top: -110px; padding-bottom: 100px; } }
@media (min-width: 1024px) { .hero-sold-strip { margin-top: -140px; padding-bottom: 120px; } }
/* Chevron rides on top of the marquee */
.hero-scroll-chevron { position: relative; z-index: 12; }

/* Hidden source grid — cards live inside the .sold[hidden] block */
.sold, .sold-grid { display: none !important; }

/* Uiverse-inspired white sold card with orange corner ribbon */
.sold-card {
  position: relative;
  width: 220px;
  height: 260px;
  border-radius: 20px;
  background: var(--white);
  box-shadow:
    0 40px 60px -20px rgba(20,17,14,.14),
    0 24px 36px -18px rgba(20,17,14,.10),
    0 8px 14px -8px rgba(20,17,14,.08),
    0 2px 4px rgba(20,17,14,.04);
  cursor: pointer;
  transition: transform .3s var(--ease-out), box-shadow .3s;
  overflow: hidden;
  isolation: isolate;
}
.sold-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 50px 80px -20px rgba(20,17,14,.20),
    0 30px 44px -18px rgba(20,17,14,.14),
    0 10px 18px -8px rgba(20,17,14,.10);
}
.sold-card-photo {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
}
.sold-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .95;
}
.sold-card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35) 100%);
}
.sold-card-body {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 12px;
  padding: 8px 12px 9px;
  box-shadow: 0 6px 18px -6px rgba(20,17,14,.24), inset 0 1px 0 rgba(255,255,255,.6);
}
.sold-card-badge { display: none; }
.sold-card-result {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.sold-card-suburb {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--ink-600);
  font-weight: 500;
}
.sold-card-suburb svg { width: 11px; height: 11px; color: var(--brand-500); }

/* Corner SOLD ribbon (Uiverse pattern) */
.sold-card::before {
  content: '';
  position: absolute;
  overflow: hidden;
  width: 150px;
  height: 150px;
  top: -10px;
  left: -10px;
  z-index: 3;
  pointer-events: none;
}
.sold-card::after {
  content: 'SOLD';
  position: absolute;
  top: 24px;
  left: -34px;
  width: 150px;
  height: 32px;
  transform: rotate(-45deg);
  background-image: linear-gradient(45deg, #FF6547 0%, #FFB144 51%, #FF7053 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 5px 10px rgba(0,0,0,0.28);
  z-index: 4;
  pointer-events: none;
}

/* Marquee */
.sold-marquee-wrap {
  overflow-x: hidden;
  overflow-y: visible;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  padding: 40px 0 48px;
}
.sold-marquee {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: soldScroll 40s linear infinite;
  will-change: transform;
  padding-left: 20px;
}
.sold-marquee .sold-card { flex: 0 0 220px; }
@keyframes soldScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .sold-marquee { animation: none; }
}
.sold-marquee-wrap:hover .sold-marquee { animation-play-state: paused; }

/* ---------- EMPATHY ---------- */
.empathy {
  padding: 8px 0 56px;
  background: var(--white);
}
@media (min-width: 720px) { .empathy { padding: 24px 0 80px; } }
@media (min-width: 1024px) { .empathy { padding: 40px 0 96px; } }
.empathy-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.empathy-inner > div:first-child { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 1024px) {
  .empathy-inner { grid-template-columns: 1.15fr 1fr; gap: 64px; text-align: left; }
  .empathy-inner > div:first-child { align-items: flex-start; }
}
.empathy-highlight {
  display: block;
  padding: 16px 20px;
  background: var(--brand-050);
  border-left: 4px solid var(--brand-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 20px 0 24px;
  line-height: 1.5;
}
.empathy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 20px 0;
  margin-top: 28px;
}
.empathy-stat { text-align: center; padding: 6px 12px; position: relative; }
.empathy-stat + .empathy-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--ink-100);
}
.empathy-stat-icon { font-size: 20px; margin-bottom: 4px; display: block; }
.empathy-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-500);
  line-height: 1;
  letter-spacing: -0.02em;
}
.empathy-stat-label {
  font-size: 12px;
  color: var(--ink-600);
  margin-top: 4px;
  font-weight: 500;
}
.empathy-foot { font-size: 14px; color: var(--ink-500); margin-top: 20px; }
.empathy-cta { margin-top: 24px; display: inline-block; }
.empathy-media {
  aspect-ratio: 1/1;
  border-radius: 60px 12px 60px 12px;
  overflow: hidden;
  background: var(--cream-100);
  box-shadow: var(--sh-3);
}
.empathy-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- WHY COMPARE ---------- */
.why {
  padding: 48px 0 56px;
  background: var(--white);
}
@media (min-width: 720px) { .why { padding: 72px 0 80px; } }
@media (min-width: 1024px) { .why { padding: 96px 0; } }
.why-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 900px) {
  .why-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.why-card {
  padding: 32px 28px 40px;
  background: var(--cream-050);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  transition: transform .3s var(--ease-out), box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.why-card-icon {
  display: inline-flex;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand-600);
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.why-card-icon svg { width: 26px; height: 26px; }
.why-card-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 220px;
  margin: 0 auto 20px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--brand-050);
}
.why-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 900px) {
  .why-card-media { max-width: 260px; }
}
.why-card-title { font-size: 20px; font-weight: 700; color: var(--ink-900); margin-bottom: 10px; line-height: 1.3; }
.why-card-body { font-size: 15px; color: var(--ink-600); line-height: 1.6; }
.why-card::after {
  content: '';
  position: absolute;
  left: 28px;
  bottom: 0;
  width: 40%;
  height: 4px;
  background: var(--brand-500);
  border-radius: var(--r-round) var(--r-round) 0 0;
}
.why-foot { text-align: center; margin-top: 40px; }
.why-foot-text { font-size: 14px; color: var(--ink-500); margin-bottom: 20px; }

/* ---------- 4 STEPS ---------- */
.steps {
  padding: 96px 0;
  background: var(--white);
  position: relative;
}
.steps-grid-wrap { position: relative; margin-top: 40px; }
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}
@media (min-width: 640px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.steps-line {
  display: none;
  position: absolute;
  top: 78px;
  left: 12%;
  right: 12%;
  height: 1px;
  background-image: linear-gradient(to right, var(--brand-200) 60%, transparent 0);
  background-size: 10px 1px;
  background-repeat: repeat-x;
  z-index: 0;
}
@media (min-width: 1024px) { .steps-line { display: block; } }
.step-tile {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  text-align: center;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.step-tile:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.step-num {
  display: block;
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--brand-500);
  position: relative;
}
@media (min-width: 640px) { .step-num { font-size: 88px; } }
@media (min-width: 1024px) { .step-num { font-size: 96px; margin-bottom: 22px; } }
.step-title { font-size: 20px; font-weight: 700; color: var(--ink-900); margin-bottom: 10px; line-height: 1.3; }
@media (min-width: 1024px) { .step-title { font-size: 23px; } }
.step-body { font-size: 14px; color: var(--ink-600); line-height: 1.6; margin-bottom: 14px; }
.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: var(--brand-050);
  color: var(--brand-600);
  border-radius: var(--r-round);
  font-size: 12px;
  font-weight: 600;
}
.steps-foot { text-align: center; margin-top: 40px; }
.steps-foot-text { font-size: 14px; color: var(--ink-500); margin-bottom: 20px; }

/* ---------- REVIEWS ---------- */
.reviews {
  padding: 96px 0;
  background: var(--white);
  position: relative;
}
.reviews-marquee-wrap {
  overflow: hidden;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  padding: 12px 0;
}
.reviews-marquee {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: reviewsScroll 60s linear infinite;
  will-change: transform;
  padding-left: 20px;
}
@keyframes reviewsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .reviews-marquee { animation: none; } }
.reviews-marquee-wrap:hover .reviews-marquee { animation-play-state: paused; }

.review-card {
  flex: 0 0 340px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: 22px 22px 24px;
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px -12px rgba(20,17,14,.14);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-header-text { flex: 1; min-width: 0; }
.review-avatar-img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(20,17,14,.12);
}
.review-name { font-size: 14px; font-weight: 700; color: var(--ink-900); line-height: 1.3; }
.review-suburb { font-size: 12px; color: var(--ink-500); margin-top: 1px; }
.review-google-mark { width: 20px; height: 20px; flex-shrink: 0; }
.review-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--ink-500);
}
.review-stars {
  color: #FBBC04;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1;
}
.review-rating { color: var(--ink-800); font-weight: 700; font-size: 13px; }
.review-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-300);
}
.review-time { color: var(--ink-500); }
.review-body { font-size: 14px; color: var(--ink-700); line-height: 1.55; flex: 1; margin: 0; }
.reviews-cta { text-align: center; margin-top: 40px; }

/* ---------- FAQ ---------- */
.faq {
  padding: 96px 0;
  background: var(--white);
}
.faq-list { max-width: 720px; margin: 40px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--ink-100);
  padding: 4px 0;
  transition: background .25s, padding .25s;
}
.faq-item[open] { background: var(--cream-050); border-radius: var(--r-md); padding: 4px 20px; margin-bottom: 8px; border-bottom-color: transparent; }
.faq-summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  text-align: left;
}
.faq-body { text-align: left; }
.faq-summary::-webkit-details-marker { display: none; }
.faq-chevron {
  width: 22px; height: 22px;
  color: var(--brand-500);
  transition: transform .3s var(--ease-out);
  flex-shrink: 0;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-body {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.65;
}
.faq-cta { text-align: center; margin-top: 40px; }

/* ---------- SMARTER WAY (orange card on white section) ---------- */
.smarter {
  position: relative;
  padding: 64px 20px;
  background: var(--white);
  color: var(--white);
  overflow: hidden;
}
@media (min-width: 720px) { .smarter { padding: 80px 24px; } }
@media (min-width: 1024px) { .smarter { padding: 96px 40px; } }
.smarter-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 28px;
  background:
    linear-gradient(180deg, rgba(248,116,22,.35) 0%, rgba(216,97,13,.55) 55%, rgba(122,54,6,.75) 100%),
    url('images/smarter-bg.webp') center bottom / cover no-repeat,
    var(--brand-500);
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 60px -20px rgba(216,97,13,.35), 0 12px 28px -12px rgba(216,97,13,.25);
}
@media (min-width: 720px) {
  .smarter-inner { padding: 80px 40px; border-radius: 40px; }
}
@media (min-width: 1024px) {
  .smarter-inner { padding: 100px 64px; }
}
.smarter-inner::before,
.smarter-inner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .28;
  pointer-events: none;
  z-index: 0;
}
.smarter-inner::before { width: 460px; height: 460px; background: #FFFFFF; top: -140px; left: -100px; }
.smarter-inner::after  { width: 340px; height: 340px; background: #FFFFFF; bottom: -80px; right: -100px; }
.smarter-inner > * { position: relative; z-index: 1; }
.smarter-title { font-size: clamp(28px, 4.4vw, 44px); color: var(--white); margin-bottom: 16px; }
.smarter-sub { font-size: 17px; color: rgba(255,255,255,.9); margin-bottom: 32px; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.smarter-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.smarter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(255,255,255,.15);
  color: var(--white);
  border-radius: var(--r-round);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.2);
}
.smarter-pill svg { width: 16px; height: 16px; }
.step-pill svg { width: 14px; height: 14px; }
.faq-summary svg.faq-chevron { width: 22px; height: 22px; }
.review-stars svg { width: 15px; height: 15px; }
.smarter-cta { margin-bottom: 20px; }
.smarter-fine { font-size: 13px; color: rgba(255,255,255,.75); }

/* ---------- READY TO FIND / CONTACT ---------- */
.ready {
  padding: 96px 0;
  background: var(--white);
}
.ready-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) {
  .ready-inner { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}
.ready-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}
.ready-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-700);
  font-weight: 500;
}
.ready-trust-item svg { color: var(--brand-500); width: 16px; height: 16px; }
.ready-contact-label { font-size: 13px; color: var(--ink-500); margin: 0 0 16px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.phone-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.phone-tiles-single {
  grid-template-columns: 1fr;
  max-width: 320px;
}
.phone-tile {
  position: relative;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: block;
}
.phone-tile:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand-200); }
.phone-tile-city { font-size: 12px; font-weight: 600; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.06em; }
.phone-tile-number { font-size: 20px; font-weight: 700; color: var(--ink-900); margin-top: 4px; letter-spacing: -0.01em; }
.phone-tile-icon {
  position: absolute;
  top: 14px; right: 14px;
  width: 18px; height: 18px;
  color: var(--brand-500);
}

/* ---------- FLOATING MOBILE CTA ---------- */
.floating-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  z-index: 40;
  background: linear-gradient(to top, rgba(234,243,245,1), rgba(234,243,245,0));
  display: none;
}
.floating-cta .btn { width: 100%; }
@media (max-width: 900px) {
  .floating-cta.active { display: block; }
}
body.popup-open .floating-cta { display: none !important; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: #0B0B0C;
  color: var(--white);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo {
  height: 44px;
  width: auto;
  background: var(--white);
  padding: 10px 14px;
  border-radius: 12px;
  box-sizing: content-box;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  align-self: flex-start;
}
.footer-desc { font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.6; max-width: 340px; }
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--white);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.85); transition: color .18s; }
.footer-links a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: rgba(255,255,255,.85); }
.footer-contact a { transition: color .18s; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,.2);
}
.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { transition: color .18s; }
.footer-bottom-links a:hover { color: var(--white); }
.footer-disclaimer { max-width: var(--container); margin: 20px auto 0; padding: 0 24px; font-size: 11.5px; color: rgba(255,255,255,.7); line-height: 1.6; }

/* ==========================================================================
   FORM POPUP — preserved mechanics from ATLAS template
   All fixes: 100dvh, :has(.form-thankyou), overscroll-behavior:contain,
   -webkit-overflow-scrolling:touch, body.popup-open scroll lock
   ========================================================================== */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20,17,14,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: flex-end;
  justify-content: center;
  animation: overlay-fade .28s var(--ease-out);
}
.popup-overlay.active { display: flex; }
@keyframes overlay-fade { from { opacity: 0; } to { opacity: 1; } }

.popup-content {
  width: 100%;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--cream-050);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -20px 60px rgba(0,0,0,.25);
  animation: sheet-up .6s cubic-bezier(.22,1,.36,1);
  position: relative;
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (min-width: 720px) {
  .popup-overlay { align-items: stretch; padding: 0; }
  .popup-content {
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    animation: fade-in .42s var(--ease-out);
    box-shadow: none;
  }
  @keyframes fade-in {
    from { opacity: 0; transform: scale(1.015); }
    to { opacity: 1; transform: scale(1); }
  }
  /* Inner content stays capped so the form doesn't stretch across a huge viewport */
  .popup-header,
  .popup-body,
  .popup-footer,
  .form-thankyou {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .popup-header { padding: 28px 40px 20px; }
  .popup-body { padding: 32px 40px 40px; }
  .popup-close {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--white);
    box-shadow: var(--sh-2);
  }
}

.popup-header {
  position: relative;
  padding: 20px 20px 16px;
  flex-shrink: 0;
  text-align: center;
}
.popup-close {
  position: absolute;
  top: 20px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--ink-700);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
  z-index: 3;
}
.popup-close:hover { background: var(--ink-200); }
.popup-close svg { width: 18px; height: 18px; }

.popup-logo {
  display: block;
  height: 30px;
  width: auto;
  margin: 0 auto 14px;
}
.popup-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink-700);
}

.progress-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.progress-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-200);
  transition: all .3s var(--ease-out);
}
.progress-dots span.active {
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(248,116,22,.15);
}
.progress-dots span.complete { background: var(--brand-500); }

.progress-bar {
  height: 3px;
  background: var(--ink-100);
  overflow: hidden;
  flex-shrink: 0;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-300), var(--brand-500));
  width: calc((var(--step-current, 1) / 5) * 100%);
  transition: width .6s var(--ease-spring);
}

.popup-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px 24px;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.form-step {
  display: none;
  animation: step-in .35s var(--ease-spring);
  width: 100%;
}
.form-step.active { display: block; margin: auto 0; }
.step-icon {
  display: flex;
  justify-content: center;
  margin: 0 0 12px;
}
.step-icon img {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: block;
  object-fit: contain;
}
@media (min-width: 720px) {
  .step-icon { margin-bottom: 16px; }
  .step-icon img { max-width: 180px; }
}
@media (max-height: 700px) {
  .step-icon img { max-width: 120px; }
}
@keyframes step-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-visual {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
}
.step-icon-halo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(248,116,22,.18), rgba(248,116,22,.08));
  color: var(--brand-600);
  box-shadow: inset 0 0 0 1px rgba(248,116,22,.22);
}
.step-icon-halo svg { width: 26px; height: 26px; }

.step-headline {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 auto 8px;
  text-align: center;
  max-width: 460px;
  line-height: 1.25;
}
.step-sub {
  color: var(--ink-600);
  font-size: 14.5px;
  margin: 0 auto 24px;
  text-align: center;
  max-width: 460px;
  line-height: 1.5;
}

/* Fields */
.field-group { margin-bottom: 18px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 8px;
}
.field-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--white);
  font: inherit;
  font-size: 16px;
  color: var(--ink-900);
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
  appearance: none;
}
.field-input::placeholder { color: var(--ink-400); }
.field-input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(248,116,22,.15);
}
.field-error {
  display: none;
  color: #d93025;
  font-size: 13px;
  margin-top: 6px;
}
.field-group.invalid .field-input {
  border-color: #d93025;
  box-shadow: 0 0 0 4px rgba(217,48,37,.08);
}
.field-group.invalid .field-error { display: block; }

.field-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .field-row-two { grid-template-columns: 1fr; gap: 0; }
}

/* Phone with country prefix */
.field-phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--white);
  transition: border-color .18s, box-shadow .18s;
  overflow: hidden;
}
.field-phone-wrap:focus-within {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(248,116,22,.15);
}
.field-phone-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: var(--brand-050);
  color: var(--brand-700);
  font-weight: 700;
  font-size: 14px;
  border-right: 1.5px solid var(--brand-100);
  flex-shrink: 0;
}
.field-phone-wrap .field-input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.field-phone-wrap .field-input:focus { box-shadow: none; }
.field-group.invalid .field-phone-wrap { border-color: #d93025; box-shadow: 0 0 0 4px rgba(217,48,37,.08); }

/* Radio cards */
/* Uiverse-inspired radio group — soft container + pill options + pulse-on-check */
.radio-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: rgba(20,17,14,.04);
  border-radius: 16px;
  box-shadow: inset 0 1px 2px rgba(20,17,14,.03);
}
.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  min-height: 58px;
  background: var(--white);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-800);
  transition:
    background-color .3s var(--ease-out),
    transform .3s var(--ease-out),
    box-shadow .3s var(--ease-out);
  font-size: 15px;
  box-shadow: 0 2px 4px rgba(20,17,14,.06);
  user-select: none;
}
@media (hover: hover) {
  .radio-card:hover {
    background-color: var(--brand-050);
    transform: scale(1.02);
    box-shadow: 0 8px 16px -4px rgba(20,17,14,.12), 0 4px 8px -2px rgba(20,17,14,.06);
  }
}
.radio-card:active { transform: scale(.99); }
.radio-card input[type="radio"] {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}
.radio-checkmark {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink-300);
  box-shadow: inset 0 1px 2px rgba(20,17,14,.08);
  flex-shrink: 0;
  transition:
    background-color .4s ease,
    border-color .4s ease,
    box-shadow .4s ease,
    transform .4s ease;
}
.radio-card input[type="radio"]:checked ~ .radio-checkmark,
.radio-card:has(input[type="radio"]:checked) .radio-checkmark {
  background: var(--white);
  border-color: var(--brand-500);
  box-shadow: 0 0 0 6px rgba(248,116,22,.18);
  transform: scale(1.1);
  animation: radioPulse .55s var(--ease-spring);
}
.radio-checkmark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-500);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .3s var(--ease-spring);
}
.radio-card:has(input[type="radio"]:checked) .radio-checkmark::after {
  transform: translate(-50%, -50%) scale(1);
}
.radio-card:has(input[type="radio"]:checked) {
  background: var(--brand-050);
  box-shadow: 0 8px 20px -6px rgba(248,116,22,.28), 0 3px 8px -2px rgba(248,116,22,.15);
}
@keyframes radioPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1.1); }
}
.radio-card-text { display: flex; flex-direction: column; }
.radio-card-title { font-size: 15px; font-weight: 600; color: var(--ink-900); }
.radio-card-desc { font-size: 12.5px; font-weight: 400; color: var(--ink-500); margin-top: 2px; }

/* Grid layout for smaller radios (bedrooms) */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 480px) {
  .radio-grid { grid-template-columns: repeat(3, 1fr); }
}
.radio-tile {
  position: relative;
  cursor: pointer;
  padding: 18px 8px;
  background: var(--white);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-md);
  text-align: center;
  transition: transform .18s var(--ease-out), border-color .18s, background .18s, box-shadow .18s;
}
@media (hover: hover) {
  .radio-tile:hover { border-color: var(--brand-200); background: var(--brand-050); }
}
.radio-tile input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.radio-tile-num { font-size: 22px; font-weight: 700; color: var(--ink-900); line-height: 1; }
.radio-tile-label { font-size: 11px; color: var(--ink-500); font-weight: 500; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.radio-tile:has(input:checked) {
  border-color: var(--brand-500);
  background: var(--brand-050);
  box-shadow: 0 0 0 4px rgba(248,116,22,.14);
}
.radio-tile:has(input:checked) .radio-tile-num { color: var(--brand-600); }

/* Address confirm card (inside step 1) */
.address-confirm {
  display: none;
  margin-top: 12px;
  padding: 16px;
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-md);
}
.address-confirm.active { display: block; }
.address-confirm-summary {
  padding: 14px 16px;
  background: var(--white);
  border-radius: var(--r-sm);
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.4;
  text-align: center;
  border: 1px solid var(--brand-100);
}
.address-confirm-summary::before {
  content: '📍 ';
  margin-right: 4px;
}
.address-confirm-question { font-size: 14px; font-weight: 600; color: var(--ink-900); margin-bottom: 12px; text-align: center; }
.address-confirm-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; }
.address-confirm-actions .btn { padding: 12px 16px; font-size: 14px; }

/* Consent + microcopy */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--brand-050);
  border-radius: var(--r-sm);
  margin: 18px 0;
}
.consent-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--ink-300);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all .18s;
}
.consent-row input[type="checkbox"]:checked {
  background: var(--brand-500);
  border-color: var(--brand-500);
}
.consent-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 45%; left: 50%;
  width: 4px; height: 8px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -55%) rotate(45deg);
}
.consent-row label {
  font-size: 12.5px;
  color: var(--ink-700);
  line-height: 1.45;
}
.step-microcopy {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 12px;
}

/* Nav */
.form-nav { margin-top: 20px; padding-top: 8px; }

/* Popup footer */
.popup-footer {
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-500);
  flex-shrink: 0;
  background: var(--cream-050);
}

/* ==========================================================================
   THANK YOU (inside popup) — preserved scroll fix + MTA structure
   ========================================================================== */
.form-thankyou { display: none; padding: 24px 20px 40px; }
.form-thankyou[data-thank-you="true"].active { display: block; }

/* Desktop reorg — masonry-style pack via CSS multi-column so blocks
   fill vertical gaps instead of aligning to grid rows.
   Hero title and the final contact block span both columns. */
@media (min-width: 900px) {
  .form-thankyou[data-thank-you="true"].active {
    max-width: 1080px;
    padding: 24px 40px 56px;
    columns: 2;
    column-gap: 20px;
  }
  .form-thankyou > .ty-block {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    display: block;
    margin-bottom: 16px;
  }
  .form-thankyou > .ty-hero,
  .form-thankyou > .ty-contact-block {
    column-span: all;
    -webkit-column-span: all;
  }
  .form-thankyou > .ty-hero { margin-bottom: 20px; }
  .form-thankyou > .ty-contact-block { margin-top: 24px; }
}

/* CRITICAL SCROLL FIX (do not modify):
   When thank-you active, popup-content becomes plain block scroller with 100dvh,
   overscroll-behavior:contain, -webkit-overflow-scrolling:touch. */
.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;
}
.popup-content:has(.form-thankyou[data-thank-you="true"].active) .popup-footer {
  display: none;
}

.ty-hero {
  text-align: center;
  padding: 16px 0 20px;
  position: relative;
}
.ty-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-700);
  margin: 0 0 6px;
  line-height: 1.2;
}
.ty-subtitle { color: var(--ink-600); font-size: 14.5px; }
.ty-confetti { position: absolute; inset: 0; pointer-events: none; }

.ty-block {
  padding: 20px;
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
}
.ty-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 12px;
}

/* Dynamic pricing message */
.ty-message {
  font-size: 14.5px;
  color: var(--ink-700);
  line-height: 1.6;
}

/* Steps timeline */
.ty-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; position: relative; }
.ty-steps::before { content: ''; position: absolute; left: 15px; top: 20px; bottom: 20px; width: 2px; background: var(--brand-200); }
.ty-step { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: flex-start; position: relative; }
.ty-step-marker {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--brand-500);
  color: var(--brand-600);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 1;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 13px;
}
.ty-step-marker svg { width: 16px; height: 16px; }
.ty-step-body strong { display: block; font-size: 14px; color: var(--ink-900); font-weight: 700; margin-bottom: 2px; }
.ty-step-body span { font-size: 13px; color: var(--ink-600); }

/* Your Details card */
.summary-card-header { margin-bottom: 12px; }
.summary-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.summary-address, .summary-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-900);
  padding: 6px 0;
}
.summary-address svg, .summary-row svg { width: 16px; height: 16px; color: var(--brand-600); flex-shrink: 0; }
.summary-divider { height: 1px; background: var(--brand-100); margin: 4px 0 8px; }
.summary-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.summary-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  background: var(--white);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-round);
  font-size: 12px; color: var(--ink-800);
  font-weight: 500;
}
.summary-tag svg { width: 12px; height: 12px; color: var(--brand-600); }

/* Trust banner */
.ty-trust-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.ty-trust-item { text-align: center; padding: 12px 8px; background: var(--white); border-radius: var(--r-md); }
.ty-trust-badge { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-500); color: var(--white); display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 6px; }
.ty-trust-badge svg { width: 16px; height: 16px; }
.ty-trust-num { font-size: 18px; font-weight: 700; color: var(--brand-600); }
.ty-trust-rating { color: var(--brand-600); }
.ty-star { color: #ffb800; margin-left: 2px; }
.ty-trust-text strong { display: block; font-size: 12px; color: var(--ink-900); font-weight: 700; }
.ty-trust-text span { display: block; font-size: 11px; color: var(--ink-500); }

/* While you wait */
.ty-wait-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.ty-wait-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--white);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .18s;
  font-size: 14px;
  color: var(--ink-700);
}
.ty-wait-item:hover { background: var(--brand-050); }
.ty-wait-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--ink-300);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all .18s;
}
.ty-wait-item input[type="checkbox"]:checked {
  background: var(--brand-500);
  border-color: var(--brand-500);
}
.ty-wait-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 45%; left: 50%;
  width: 4px; height: 8px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -55%) rotate(45deg);
}
.ty-wait-item.checked { color: var(--ink-500); text-decoration: line-through; }

/* Share */
.ty-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ty-share-label { font-size: 14px; color: var(--ink-700); }
.ty-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-round);
  background: var(--brand-500);
  color: var(--white);
  border: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, transform .18s;
}
.ty-share-btn:hover { background: var(--brand-600); transform: translateY(-1px); }
.ty-share-btn.copied { background: #16a34a; }
.ty-share-btn svg { width: 14px; height: 14px; }

/* Contact block */
.ty-contact-block { text-align: center; }
.ty-contact-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 700;
  color: var(--brand-600);
  padding: 8px 16px;
  border-radius: var(--r-round);
  transition: background .18s;
}
.ty-contact-phone:hover { background: var(--white); }
.ty-contact-phone svg { width: 20px; height: 20px; }
.ty-hint { font-size: 12px; color: var(--ink-500); margin-top: 4px; }

@media (max-width: 480px) {
  .ty-trust-items { grid-template-columns: 1fr; }
}

/* ==========================================================================
   REVEAL animations base + prefers-reduced-motion + body scroll lock
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}
html.reveal-fallback [data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease-out, transform .6s ease-out;
}
body.popup-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Preview-only image placeholders (until brand .webp images are dropped in).
   Real images will completely cover this background. Delete this block after
   you place actual images, or leave it — it becomes a no-op once the imgs
   load successfully.
   ========================================================================== */
.empathy-media,
.sold-card-photo {
  background:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(248,116,22,.06) 18px 19px),
    linear-gradient(135deg, var(--brand-050), var(--cream-100));
}
.empathy-media::before,
.sold-card-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 24 24' fill='none' stroke='%23F87416' stroke-width='.8' stroke-linecap='round' stroke-linejoin='round' opacity='0.28'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") center/72px no-repeat;
  z-index: 0;
  pointer-events: none;
}
.sold-card-photo::before { background-size: 44px; }
.empathy-media > *,
.sold-card-photo > * { position: relative; z-index: 1; }
/* Broken-image icon suppression until real files land */
.hero-bg-img,
.empathy-media img,
.sold-card-photo img { color: transparent; font-size: 0; }

/* Hero-frame placeholder when hero image missing */
.hero-frame:has(.hero-bg-img[src$=".webp"]:not([src=""])) { background: var(--cream-100); }
.hero-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 20px, rgba(248,116,22,.05) 20px 21px),
    linear-gradient(135deg, var(--brand-050), var(--cream-100));
  pointer-events: none;
}
.hero-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 24 24' fill='none' stroke='%23F87416' stroke-width='.8' stroke-linecap='round' stroke-linejoin='round' opacity='0.2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") right 8% center/200px no-repeat;
  pointer-events: none;
}

/* Google Places autocomplete container styling */
.pac-container {
  border-radius: var(--r-md) !important;
  border: 1px solid var(--ink-200) !important;
  box-shadow: var(--sh-3) !important;
  font-family: 'Poppins', sans-serif !important;
  z-index: 200 !important;
  margin-top: 4px;
}
.pac-item {
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: var(--ink-800) !important;
  cursor: pointer;
  border-top: 1px solid var(--ink-100) !important;
}
.pac-item:hover { background: var(--brand-050) !important; }
.pac-item-query { color: var(--ink-900) !important; font-weight: 600 !important; }
.pac-matched { font-weight: 700 !important; color: var(--brand-600) !important; }
