*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens — DARK (default) ── */
:root {
  --bg:      #0d1b2a;
  --card:    #162032;
  --card2:   #1a2840;
  --border:  rgba(255,255,255,0.07);
  --text:    #f1f5f9;
  --muted:   rgba(255,255,255,0.45);
  --muted2:  rgba(255,255,255,0.65);
  --teal:    #00c9a7;
  --teal-dk: #1fc8b4;
  --dot:     rgba(255,255,255,0.045);
  --nav-bg:  rgba(13,27,42,0.88);
  --alt-bg:  rgba(255,255,255,0.025);
  --radius:  14px;
  --shadow:  0 4px 20px rgba(0,0,0,0.4);
}

/* ── Design tokens — LIGHT ── */
[data-theme="light"] {
  --bg:     #ffffff;
  --card:   #f8f9fa;
  --card2:  #f1f3f5;
  --border: rgba(0,0,0,0.12);
  --text:   #111827;
  --muted:  #6b7280;
  --muted2: #374151;
  --dot:    rgba(0,0,0,0.04);
  --nav-bg: rgba(255,255,255,0.95);
  --alt-bg: rgba(0,201,167,0.04);
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--text);
  transition: background-color 0.3s, color 0.3s;
}

/* Minimal scrollbar - barely visible */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,201,167,0.2) transparent;
}

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,201,167,0.15);
  border-radius: 10px;
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,201,167,0.4);
}
::-webkit-scrollbar-thumb:active {
  background: var(--teal);
}

/* Prevent layout shift */
html {
  scrollbar-gutter: stable;
}

/* ── NAV ── */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 52px; height: 62px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.2px;
  white-space: nowrap;
  flex-shrink: 0;
}
/* :not() on purpose. This rule also matched .nav-catstone-img and outranked it — (0,1,1) against
   (0,1,0) — so the CatsTone mark was forced to 26x26 while keeping the margin: -15% that its own
   rule pairs with a 130% size. That dragged it up and left, and its wrapper clips overflow, so the
   left edge was sliced off. */
.nav-logo img:not(.nav-catstone-img) {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
  object-fit: contain;
}
.nav-logo span {
  display: inline-block;
}
.nav-logo-divider { width: 1px; height: 22px; background: var(--border); flex-shrink: 0; }
.nav-catstone-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  overflow: hidden; flex-shrink: 0;
  border-radius: 6px;
}
.nav-catstone-img {
  width: 130%; height: 130%;
  object-fit: cover; object-position: center;
  margin: -15%;
}
.nav-tagline {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.02em; white-space: nowrap; pointer-events: none;
}
.nav-btns { display: flex; gap: 10px; align-items: center; }

.nav-theme-btn {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s; flex-shrink: 0;
}
.nav-theme-btn:hover { border-color: var(--teal); color: var(--teal); }
.nav-theme-btn svg { width: 16px; height: 16px; }

.btn-outline {
  background: #1e293b; border: 1px solid #334155;
  color: #fff; padding: 7px 20px; border-radius: 8px;
  font-weight: 700; font-size: 13.5px; cursor: pointer;
  transition: all 0.18s; font-family: inherit;
}
.btn-outline:hover { border-color: #475569; }
.btn-solid {
  background: var(--teal); border: none; color: #fff;
  padding: 8px 22px; border-radius: 8px;
  font-weight: 700; font-size: 13.5px; cursor: pointer;
  transition: all 0.18s; font-family: inherit;
  display: flex; align-items: center; gap: 7px;
}
.btn-solid:hover { opacity: 0.88; transform: translateY(-1px); }

/* Light mode nav overrides */
[data-theme="light"] .btn-solid { background: var(--teal); }
[data-theme="light"] .btn-solid:hover { opacity: 0.88; }

/* ── HERO ── */
/* ── PROMOTIONAL BANNER ── */
/* ── FEATURE HIGHLIGHTS ── */
.feature-highlights {
  padding: 100px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  /* The vanishing point the cards rotate about. Without it they would turn flat, like a sheet of
     paper seen from directly in front however far it spins. */
  perspective: 1100px;
}

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Shared with the "Why HomeSure" cards further down, which redefine most of it. The three tilting
   cards take their own rules from .feature-3d at the end of this file. */
.feature-card {
  position: relative;
  background: linear-gradient(135deg, var(--card) 0%, var(--card2) 100%);
  border-left: 4px solid var(--feature-color);
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: var(--feature-color);
  opacity: 0.03;
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.feature-card-icon {
  width: 56px;
  height: 56px;
  background: var(--feature-color);
  border-radius: 12px;
  padding: 12px;
  margin: 0 auto 24px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.feature-card-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  color: var(--feature-color);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.feature-card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-card-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ── TRUST BANNER ── */
.trust-banner {
  padding: 80px 20px;
  background: linear-gradient(135deg,
    rgba(0,201,167,0.08) 0%,
    rgba(0,201,167,0.03) 50%,
    rgba(0,201,167,0.08) 100%);
  position: relative;
}

.trust-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.3;
}

.trust-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.3;
}

.trust-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.trust-icon {
  width: 80px;
  height: 80px;
  background: var(--teal);
  border-radius: 16px;
  padding: 20px;
  color: white;
  box-shadow: 0 8px 32px rgba(0,201,167,0.25);
}

.trust-icon svg {
  width: 100%;
  height: 100%;
}

.trust-text {
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.trust-highlight {
  color: var(--teal);
  display: inline-block;
}

.trust-subtext {
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.6;
}

/* ── PLATFORM FEATURES ── */
.platform-features {
  padding: 120px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 70px;
  text-align: center;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .platform-grid { grid-template-columns: 1fr; }
}

.platform-item {
  text-align: center;
  padding: 36px 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}

.platform-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: var(--teal);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.platform-item:hover::before {
  width: 60%;
}

.platform-icon {
  width: 52px;
  height: 52px;
  background: rgba(0,201,167,0.1);
  border-radius: 10px;
  padding: 12px;
  color: var(--teal);
  margin: 0 auto 24px;
}

.platform-icon svg {
  width: 100%;
  height: 100%;
}

.platform-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.platform-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: visible;
  gap: 0;
  background: linear-gradient(135deg, #0a1628 0%, #0d2d3a 50%, #0a1f2e 100%);
}

/* ── Particle background ── */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,201,167,0.03) 0px, transparent 400px),
    radial-gradient(circle at 80% 70%, rgba(0,201,167,0.04) 0px, transparent 400px),
    radial-gradient(circle at 2px 2px, rgba(0,201,167,0.08) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px;
  animation: particleFloat 20s ease-in-out infinite;
  /* Promote it once rather than letting the browser rediscover on every frame that this
     full-screen layer is moving. */
  will-change: opacity, transform;
}

@keyframes particleFloat {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(-10px); }
}
.hero-left {
  position: relative;
  z-index: 2;
  display: flex; flex-direction: column; gap: 28px;
  /* Extra top padding so the headline clears the floating bar. */
  padding: 128px 52px 80px;
  flex: 1;
  max-width: 50%;
}

.hero-right {
  position: relative;
  flex: 1;
  min-height: 100vh;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,229,200,0.12);
  border: 1px solid rgba(0,229,200,0.3);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: #00e5c8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}
[data-theme="light"] .hero-badge {
  background: rgba(0,201,167,0.08);
  border-color: rgba(0,201,167,0.25);
  color: #00a88a;
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
[data-theme="light"] .hero-badge-dot { background: #00c9a7; }

/* Light mode hero - MOBILE ONLY changes moved to media query below */

.hero-title {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: #ffffff !important;
}
.hero-title-accent {
  color: #00e5c8 !important;
  display: block;
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7) !important;
  line-height: 1.7;
  max-width: 440px;
  font-weight: 500;
}

.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-btn-primary {
  background: var(--teal); color: #fff; border: none;
  padding: 13px 28px; border-radius: 10px;
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all 0.18s;
  display: flex; align-items: center; gap: 8px;
}
.hero-btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,201,167,0.3); }
.hero-btn-primary span, .hero-btn-secondary span { display: inline-flex; align-items: center; line-height: 0; }
.hero-btn-primary span svg, .hero-btn-secondary span svg { display: block; }
[data-theme="light"] .hero-btn-primary { background: var(--teal); box-shadow: none; }
[data-theme="light"] .hero-btn-primary:hover { background: var(--teal); opacity: 0.88; box-shadow: 0 8px 24px rgba(0,201,167,0.3); }

.hero-btn-secondary {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border); padding: 12px 24px;
  border-radius: 10px; font-size: 14.5px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all 0.18s;
  display: flex; align-items: center; gap: 8px;
}
.hero-btn-secondary:hover { border-color: var(--text); transform: translateY(-1px); }
[data-theme="light"] .hero-btn-secondary {
  border-color: #cbd5e1;
  color: #0f172a;
}
[data-theme="light"] .hero-btn-secondary:hover {
  border-color: #94a3b8;
  background: rgba(0,0,0,0.02);
}

/* Mobile-only Sign In/Up buttons (hidden on desktop) */
.hero-btn-mobile-signin,
.hero-btn-mobile-signup {
  display: none;
}
.hero-btn-mobile-signin {
  background: transparent;
  color: #ffffff !important;
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
  justify-content: center;
  text-decoration: none;
  align-items: center;
}
.hero-btn-mobile-signin:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
}
.hero-btn-mobile-signup {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
  justify-content: center;
  text-decoration: none;
  align-items: center;
}
.hero-btn-mobile-signup:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}
/* Light mode mobile buttons - moved to mobile media query below */

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
}
.hero-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #00e5c8;
}
.hero-trust-icon svg {
  display: block;
}

/* ── TYPING ANIMATION ── */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--teal);
  margin-left: 4px;
  border-radius: 2px;
  vertical-align: text-bottom;
  animation: blink-cursor 0.8s step-end infinite;
}
@keyframes blink-cursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ── HERO MAP — right side container ── */
.hero-map-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  user-select: none;
}

.hero-map-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-map-container svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  filter:
    drop-shadow(0 0 20px rgba(0,201,167,0.8))
    drop-shadow(0 0 40px rgba(0,201,167,0.6))
    drop-shadow(0 0 60px rgba(0,201,167,0.4))
    drop-shadow(0 0 80px rgba(0,201,167,0.2));
  animation: shapeGlow 3s ease-in-out infinite;
}

@keyframes shapeGlow {
  0%, 100% {
    filter:
      drop-shadow(0 0 20px rgba(0,201,167,0.8))
      drop-shadow(0 0 40px rgba(0,201,167,0.6))
      drop-shadow(0 0 60px rgba(0,201,167,0.4))
      drop-shadow(0 0 80px rgba(0,201,167,0.2));
  }
  50% {
    filter:
      drop-shadow(0 0 30px rgba(0,201,167,1))
      drop-shadow(0 0 60px rgba(0,201,167,0.8))
      drop-shadow(0 0 90px rgba(0,201,167,0.6))
      drop-shadow(0 0 120px rgba(0,201,167,0.4));
  }
}

/* Barangay hover effects */
.hero-map-svg path {
  /* Named properties rather than "all".
     With "all", the drop-shadow below was transitioned too — and a drop-shadow on a 450-point
     polygon is a per-pixel blur of that whole outline, recomputed every frame for 0.3s. Crossing
     the map set that running on one barangay after another. fill and stroke-width are the only
     things that actually change, and both are cheap. */
  transition: fill 0.3s ease, stroke-width 0.3s ease;
  cursor: pointer;
}

.hero-map-svg path:hover {
  fill: rgba(0,201,167,0.3) !important;
  stroke-width: 3;
  /* The glow still appears, it just arrives at once instead of being blurred into place frame by
     frame. At 0.3s nobody could see the difference anyway. */
  filter: drop-shadow(0 0 12px rgba(0,201,167,0.75));
}

/* Property Markers */
.property-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  animation: markerFloat 3s ease-in-out infinite;
  cursor: pointer;
  z-index: 10;
}

@keyframes markerFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}

.marker-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(0,201,167,0.3);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.marker-icon {
  position: relative;
  width: 32px;
  height: 32px;
  background: #00c9a7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  border: 2px solid #0d1b2a;
}

.marker-icon img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.marker-tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: #00e5c8;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  font-weight: 600;
}

.property-marker:hover .marker-tooltip {
  opacity: 1;
}

.hero-map-label {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  background: rgba(0,20,30,0.85);
  border: 1px solid rgba(0,229,200,0.3);
  border-radius: 6px;
  color: #00e5c8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 10;
}

/* ── BARANGAY POPUP TOOLTIP ── */
.maplibregl-popup.barangay-popup .maplibregl-popup-content {
  background: rgba(0,30,40,0.98);
  border: 1.5px solid rgba(0,229,200,0.4);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 30px rgba(0,229,200,0.15);
  backdrop-filter: blur(12px);
  min-width: 140px;
}

.maplibregl-popup.barangay-popup .maplibregl-popup-tip {
  border-top-color: rgba(0,30,40,0.98);
}

.popup-brgy-name {
  color: #00e5c8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,229,200,0.3);
}

.popup-brgy-listings {
  color: rgba(255,255,255,0.75);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── MAP PROPERTY CARDS ── */
.map-property-card {
  width: 140px;
  background: #1a2633;
  border: 1px solid rgba(0,201,167,0.3);
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.map-property-card::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #1a2633;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.map-property-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 40px rgba(0,201,167,0.4);
  border-color: rgba(0,229,200,0.8);
  z-index: 1000 !important;
}

.map-card-verified {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #00c9a7;
  color: white;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.map-card-img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}

.map-card-content {
  padding: 10px;
  background: #1a2633;
  border-radius: 0 0 12px 12px;
}

.map-card-title {
  font-size: 11px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.map-card-location {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.map-card-location svg {
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
}

.map-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.map-card-price {
  font-size: 13px;
  font-weight: 700;
  color: #00e5c8;
}

.map-card-price span {
  font-size: 8px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
}

.map-card-btn {
  background: transparent;
  color: #00e5c8;
  border: 1px solid #00e5c8;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.map-card-btn:hover {
  background: #00e5c8;
  color: #1a2633;
}

/* ── HERO BENTO ── */
.hero-bento-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 48px 64px 48px 20px;
  justify-content: center;
  min-width: 0;
}

.bento-ping {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,201,167,0.08);
  border: 1px solid rgba(0,201,167,0.28);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 11.5px; font-weight: 700; color: #00c9a7;
  letter-spacing: 0.04em;
  width: fit-content;
}
.bento-ping-dot {
  width: 7px; height: 7px;
  background: #00e5c8; border-radius: 50%;
  flex-shrink: 0;
  animation: bento-pulse 1.8s ease-in-out infinite;
}
@keyframes bento-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.35; transform:scale(0.75); }
}

.hero-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  height: min(520px, calc(100vh - 200px));
}

.bento-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.bento-tile:hover {
  transform: scale(1.018);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  z-index: 2;
}
.bento-featured { grid-row: span 2; }

.bento-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,15,20,0.92) 0%, rgba(10,15,20,0.3) 60%, transparent 100%);
}

.bento-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 12px 13px 13px;
}
.bento-featured .bento-content { padding: 16px 18px 18px; }

.bento-badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 100px;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  width: fit-content;
}
.bento-featured .bento-badge { font-size: 11px; padding: 4px 12px; }
.bento-badge-rent { background: rgba(15,118,110,0.88); color:#fff; }
.bento-badge-sale { background: rgba(37,99,235,0.88);  color:#fff; }
.bento-badge-new  { background: rgba(220,38,38,0.88);  color:#fff; }

.bento-info { display: flex; flex-direction: column; gap: 2px; }
.bento-price {
  font-size: 14px; font-weight: 800; color: #fff; line-height: 1.2;
}
.bento-featured .bento-price { font-size: 20px; }
.bento-name {
  font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.9);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bento-featured .bento-name { font-size: 14px; }
.bento-loc {
  font-size: 10px; color: rgba(255,255,255,0.5); margin-bottom: 5px;
}
.bento-featured .bento-loc { font-size: 11.5px; margin-bottom: 8px; }

.bento-meta { display: flex; gap: 5px; flex-wrap: wrap; }
.bento-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 3px 8px;
  font-size: 10px; color: rgba(255,255,255,0.78); font-weight: 500;
}
.bento-pill span { display: inline-flex; align-items: center; line-height: 0; }

/* Floating live-count badge — bottom-left */
.map-badge {
  position: absolute;
  bottom: 24px;
  left: 52px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 27, 42, 0.88);
  border: 1px solid rgba(0, 201, 167, 0.28);
  backdrop-filter: blur(10px);
  border-radius: 99px;
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.02em;
}
.map-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00c9a7;
  flex-shrink: 0;
  animation: map-live 1.5s ease-in-out infinite;
}
/* Was animating box-shadow, which the browser cannot hand to the GPU — every frame forced a
   repaint of the element and everything overlapping it. transform and opacity are composited, so
   the same pulse now costs nothing. */
@keyframes map-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(1.35); }
}

/* Area label — top-right corner */
.map-corner-tag {
  position: absolute;
  top: 80px;
  right: 24px;
  z-index: 500;
  background: rgba(13, 27, 42, 0.82);
  border: 1px solid rgba(0, 201, 167, 0.18);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(241, 245, 249, 0.65);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Hover tooltip */
.map-hover-tip {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(13, 27, 42, 0.92);
  border: 1px solid rgba(0, 201, 167, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 8px 16px;
  pointer-events: none;
  text-align: center;
}
.mp-name  { font-size: 13px; font-weight: 800; color: #00c9a7; margin-bottom: 2px; }
.mp-count { font-size: 11px; color: rgba(241,245,249,0.6); font-weight: 500; }

/* ── MAPLIBRE GL CONTROL OVERRIDES ── */
.maplibregl-ctrl-group {
  background: rgba(13, 27, 42, 0.88) !important;
  border: 1px solid rgba(0, 201, 167, 0.22) !important;
  box-shadow: none !important;
  border-radius: 10px !important;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.maplibregl-ctrl-group button {
  background: transparent !important;
  border-bottom: 1px solid rgba(0, 201, 167, 0.14) !important;
  width: 30px !important;
  height: 30px !important;
  transition: background 0.15s;
}
.maplibregl-ctrl-group button:last-child { border-bottom: none !important; }
.maplibregl-ctrl-group button:hover { background: rgba(0, 201, 167, 0.15) !important; }
.maplibregl-ctrl-zoom-in  .maplibregl-ctrl-icon { filter: invert(1) brightness(1.5); }
.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon { filter: invert(1) brightness(1.5); }
.maplibregl-ctrl-group button:hover .maplibregl-ctrl-icon {
  filter: invert(60%) sepia(80%) saturate(400%) hue-rotate(130deg);
}

/* ── SECTIONS ── */
.section     { max-width: 1100px; margin: 0 auto; padding: 80px 52px; text-align: center; }
.section-alt { background: var(--alt-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 80px 52px; text-align: center; }

.section-label {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  color: #fff; letter-spacing: 0.1em; text-transform: uppercase;
  background: #00c9a7; border: none;
  border-radius: 99px; padding: 4px 13px; margin-bottom: 14px;
}
.section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: var(--text); letter-spacing: -0.5px; margin-bottom: 10px; }
.section-sub { font-size: 15px; color: var(--muted); max-width: 520px; margin: 0 auto 36px; line-height: 1.6; }

/* ── CATEGORIES ── */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
.cat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  transition: all 0.2s; cursor: pointer; box-shadow: var(--shadow);
}
.cat-card:hover { transform: translateY(-3px); border-color: rgba(0,201,167,0.3); }
.cat-icon { width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.cat-name { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.cat-count { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ── CAROUSEL ── */
.crs-stage { max-width: 960px; margin: 0 auto; }
.crs-row { display: flex; align-items: center; gap: 16px; }
.crs-btn {
  background: var(--card); border: 1.5px solid var(--border);
  color: var(--text); width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: all 0.18s;
}
.crs-btn:hover { border-color: var(--teal); color: var(--teal); }
.crs-clip { display: flex; align-items: center; flex: 1; gap: 16px; overflow: hidden; min-width: 0; }
.crd-side-wrap { flex-shrink: 0; cursor: pointer; transition: opacity 0.2s; opacity: 0.45; width: 220px; }
.crd-side-wrap:hover { opacity: 0.7; }
.crd-side { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.crd-center {
  flex: 1; background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden; position: relative; min-width: 0;
  box-shadow: var(--shadow);
}
.crd-img { width: 100%; height: 130px; object-fit: cover; display: block; }
.crd-img-center { width: 100%; height: 200px; object-fit: cover; display: block; }
.crd-body-side { padding: 12px 14px; }
.crd-body-center { padding: 16px 18px; }
.card-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.card-title-side { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.card-loc { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.card-loc span { color: var(--muted); }
.card-price { font-size: 18px; font-weight: 800; color: var(--text); }
.card-price span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.card-price-side { font-size: 14px; font-weight: 800; color: var(--teal); }
.card-footer-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.card-link { font-size: 13px; font-weight: 700; color: var(--teal); cursor: pointer; transition: opacity 0.18s; }
.card-link:hover { opacity: 0.75; }
.verified-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--teal); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px;
  display: flex; align-items: center; gap: 4px;
}
.dots { display: flex; justify-content: center; gap: 7px; margin-top: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; transition: all 0.2s; padding: 0; }
.dot.active { background: var(--teal); width: 22px; border-radius: 99px; }

/* ── HOW IT WORKS ── */
/* ── How it works: a timeline ────────────────────────────────────────────────
   Each step is a row with a preview window on one side and the words on the other, alternating,
   with a line running down the middle. The dot on that line lights up when you are reading its
   step. */
.how-steps {
  position: relative;
  max-width: 1080px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
  text-align: left;
}

/* The spine, for the stacked layout only — below 860px the steps are one column with the line
   down the left edge, where a curve would just look wrong. The two-column layout gets .tl-spine
   instead, so this is switched off there. */
.how-steps::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 60px;
  bottom: 60px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    transparent,
    rgba(0, 201, 167, 0.28) 8%,
    rgba(0, 201, 167, 0.28) 92%,
    transparent);
}

@media (min-width: 861px) {
  .how-steps::before { display: none; }
}

/* ── The curve ──
   The path itself is measured and written by useCurvedSpine in index.js, because the dots are not
   evenly spaced. This only has to place the canvas and style the stroke. */
.tl-spine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.tl-spine-path {
  stroke: url(#tl-spine-fade);
  stroke-width: 2;
  stroke-linecap: round;
  /* Dashed, like a route pencilled on a map. This is also why there is no draw-in animation any
     more: that effect worked by animating stroke-dashoffset against a dasharray the length of the
     whole path, and a path can only carry one dasharray. The dashes are the better of the two. */
  stroke-dasharray: 6 9;
}

.tl-step {
  position: relative;
  display: grid;
  /* The middle column is the lane the route travels in. It is far wider than the dot needs
     because the loops have to fit inside it — a narrower lane turns them into pinches. */
  grid-template-columns: 1fr 170px 1fr;
  align-items: center;
  gap: 0;
}

/* Every second step swaps sides. The preview is first in the markup either way, so the order is
   changed here rather than in the DOM — a screen reader still meets the preview after the step it
   belongs to. */
.tl-step.tl-flip .tl-preview { order: 3; }
.tl-step.tl-flip .tl-dot     { order: 2; }
.tl-step.tl-flip .tl-text    { order: 1; }

.tl-preview { padding-right: 8px; }
.tl-step.tl-flip .tl-preview { padding-right: 0; padding-left: 8px; }
.tl-text { padding-left: 8px; }
.tl-step.tl-flip .tl-text { padding-left: 0; padding-right: 8px; }

/* ── The dot ── */
.tl-dot {
  justify-self: center;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(0, 201, 167, 0.45);
  position: relative;
  z-index: 2;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* The glow. box-shadow is fine here because it only changes on hover — it is not animating in a
   loop, so it is painted once when you arrive and once when you leave. */
.tl-step:hover .tl-dot {
  border-color: var(--teal);
  background: var(--teal);
  transform: scale(1.25);
  box-shadow:
    0 0 0 5px rgba(0, 201, 167, 0.14),
    0 0 18px 2px rgba(0, 201, 167, 0.55);
}

/* ── The words ── */
.tl-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tl-num {
  font-size: 30px; font-weight: 900; color: var(--teal);
  letter-spacing: -1px; line-height: 1;
}
.tl-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  padding-left: 10px; border-left: 1px solid var(--border);
}
.tl-title {
  font-size: 20px; font-weight: 800; color: var(--text);
  letter-spacing: -0.3px; margin-bottom: 10px;
}
.tl-desc { font-size: 13.5px; line-height: 1.75; color: var(--muted2); max-width: 30rem; }

/* ── The preview window ── */
.tl-window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.tl-step:hover .tl-window {
  border-color: rgba(0, 201, 167, 0.32);
  transform: translateY(-3px);
}

.tl-window-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px;
  background: var(--card2);
  border-bottom: 1px solid var(--border);
}
.tl-window-bar span[class^="tl-dot-"] {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.tl-dot-r { background: rgba(248,113,113,0.55); }
.tl-dot-y { background: rgba(251,191,36,0.55); }
.tl-dot-g { background: rgba(34,197,94,0.55); }
.tl-window-title {
  margin-left: 8px; font-size: 11.5px; font-weight: 700;
  color: var(--muted); letter-spacing: 0.02em;
}

.tl-window-body { padding: 14px 16px 16px; }

/* Shared chip, used by verification and payments the way the app's badges work. */
.tl-chip {
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 99px; white-space: nowrap;
}
.tl-chip-ok { background: rgba(0,201,167,0.14); color: var(--teal); }

/* ── 01 Verification ── */
.tl-docs { display: flex; flex-direction: column; gap: 8px; }
.tl-doc {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 10px;
}
.tl-doc-thumb {
  width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0;
  background: rgba(0,201,167,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.tl-doc-thumb svg { width: 15px; height: 15px; }
.tl-doc-info { flex: 1; min-width: 0; }
.tl-doc-name { font-size: 12px; font-weight: 700; color: var(--text); }
.tl-doc-meta {
  font-size: 10.5px; color: var(--muted); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tl-verified {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 10px 12px;
  background: rgba(0,201,167,0.08);
  border: 1px solid rgba(0,201,167,0.22);
  border-radius: 10px;
}
.tl-verified-icon { color: var(--teal); display: flex; flex-shrink: 0; }
.tl-verified-icon svg { width: 17px; height: 17px; }
.tl-verified-title { font-size: 12.5px; font-weight: 800; color: var(--teal); }
.tl-verified-sub { font-size: 10.5px; color: var(--muted); margin-top: 1px; }

/* ── 02 Browse: the card browse.html renders ── */
.tl-filters { display: flex; gap: 6px; margin-bottom: 11px; flex-wrap: wrap; }
.tl-filter {
  font-size: 10.5px; font-weight: 600;
  padding: 4px 9px; border-radius: 99px;
  background: var(--card2); border: 1px solid var(--border); color: var(--muted2);
}
.tl-listing {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--card2);
}
.tl-listing-img {
  height: 76px; position: relative;
  background:
    linear-gradient(135deg, rgba(0,201,167,0.16), rgba(0,201,167,0.04)),
    var(--card2);
}
.tl-listing-type {
  position: absolute; top: 8px; left: 8px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 99px;
  background: var(--teal); color: #04221d;
}
.tl-listing-body { padding: 10px 12px 12px; }
.tl-listing-title { font-size: 13px; font-weight: 800; color: var(--text); }
.tl-listing-addr { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.tl-listing-price {
  font-size: 15px; font-weight: 900; color: var(--teal); margin-top: 7px;
}
.tl-listing-price span { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.tl-listing-specs {
  display: flex; gap: 12px; margin-top: 9px;
  padding-top: 9px; border-top: 1px solid var(--border);
}
.tl-listing-specs span {
  display: flex; align-items: center; gap: 4px;
  font-size: 10.5px; color: var(--muted2); font-weight: 600;
}
.tl-listing-specs i { display: flex; color: var(--muted); }
.tl-listing-specs svg { width: 11px; height: 11px; }

/* ── 03 Messages ── */
.tl-msg { margin-bottom: 9px; max-width: 86%; }
.tl-msg-me { margin-left: auto; text-align: right; }
.tl-msg-bubble {
  display: inline-block; text-align: left;
  padding: 8px 11px; border-radius: 12px;
  font-size: 12px; line-height: 1.5;
}
.tl-msg-them .tl-msg-bubble {
  background: var(--card2); color: var(--muted2);
  border-bottom-left-radius: 4px;
}
.tl-msg-me .tl-msg-bubble {
  background: rgba(0,201,167,0.16); color: var(--text);
  border-bottom-right-radius: 4px;
}
.tl-msg-time { font-size: 9.5px; color: var(--muted); margin-top: 3px; }

/* The viewing request the thread can carry, the way messages.html shows it. */
.tl-msg-viewing {
  border-left: 3px solid var(--teal);
  background: var(--card2) !important;
  padding: 9px 12px;
}
.tl-viewing-tag {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 4px;
}
.tl-viewing-when { font-size: 12px; font-weight: 700; color: var(--text); }
.tl-viewing-state { font-size: 10.5px; color: var(--teal); font-weight: 700; margin-top: 3px; }

/* ── 04 Payments: the pay-card shape ── */
.tl-pay {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 12px; border-radius: 11px;
  background: var(--card2); border: 1px solid var(--border);
}
.tl-pay-left { min-width: 0; flex: 1; }
.tl-pay-property { font-size: 12.5px; font-weight: 800; color: var(--text); margin-bottom: 9px; }
.tl-pay-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px;
}
.tl-pay-item { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tl-pay-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
.tl-pay-value {
  font-size: 11.5px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tl-pay-right { text-align: right; flex-shrink: 0; }
.tl-pay-amount { font-size: 17px; font-weight: 900; color: var(--teal); margin-bottom: 6px; }

/* ── Narrow screens: one column, the spine moves to the left edge ── */
@media (max-width: 860px) {
  .how-steps { gap: 36px; margin-top: 28px; }
  .how-steps::before { left: 7px; transform: none; top: 20px; bottom: 20px; }

  .tl-step,
  .tl-step.tl-flip {
    grid-template-columns: 26px 1fr;
    align-items: start;
    gap: 0 14px;
  }
  /* Dot first, then the words, then the preview underneath — the reading order on a phone. */
  .tl-step .tl-dot,
  .tl-step.tl-flip .tl-dot { order: 1; grid-column: 1; grid-row: 1; margin-top: 7px; }
  .tl-step .tl-text,
  .tl-step.tl-flip .tl-text { order: 2; grid-column: 2; grid-row: 1; padding: 0; }
  .tl-step .tl-preview,
  .tl-step.tl-flip .tl-preview { order: 3; grid-column: 2; grid-row: 2; padding: 14px 0 0; }

  .tl-num { font-size: 24px; }
  .tl-title { font-size: 17px; }
  .tl-desc { font-size: 13px; }
}

/* A dot that lights up on hover means nothing without a pointer, and the lift is motion. */
@media (hover: none) {
  .tl-step:hover .tl-window { transform: none; }
}

.how-step { position: relative; }
/* The old four-across layout lived here: a numbered circle per step, with a connector line
   drawn between them. The timeline above replaced all of it. */

/* ── FEATURES ── */
.features-inner { max-width: 1000px; margin: 0 auto; }
.features-card-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
  transition: all 0.2s; box-shadow: var(--shadow);
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(0,201,167,0.3); }
.feature-icon { width: 48px; height: 48px; background: var(--teal); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
[data-theme="light"] .feature-icon { background: #111827; }
.feature-title { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.feature-desc  { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── STATS ── */
.stats-inner { max-width: 800px; margin: 0 auto; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 20px; }
.stat-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 24px; text-align: center;
  box-shadow: var(--shadow); transition: all 0.2s;
}
.stat-box:hover { transform: translateY(-2px); border-color: rgba(0,201,167,0.3); }
.stat-value { font-size: 36px; font-weight: 900; color: var(--teal); letter-spacing: -1px; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ── TESTIMONIALS ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.testimonial-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; text-align: left;
  box-shadow: var(--shadow); transition: all 0.2s;
}
.testimonial-card:hover { transform: translateY(-2px); border-color: rgba(0,201,167,0.3); }
.t-stars { color: #f59e0b; font-size: 14px; margin-bottom: 12px; }
.t-quote { font-size: 13.5px; color: var(--muted2); line-height: 1.65; margin-bottom: 16px; font-style: italic; }
.t-author { display: flex; align-items: center; gap: 10px; }
.t-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
[data-theme="light"] .t-avatar { background: #111827; }
.t-name { font-size: 13px; font-weight: 700; color: var(--text); }
.t-role { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ── CTA ── */
.cta-section { background: #0d1117; padding: 80px 52px; text-align: center; border-top: 1px solid rgba(255,255,255,0.06); }
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-title { font-size: clamp(24px, 3vw, 36px); font-weight: 900; color: #fff; letter-spacing: -0.5px; margin-bottom: 12px; }
.cta-sub   { font-size: 15px; color: rgba(255,255,255,0.5); margin-bottom: 32px; line-height: 1.6; }
.cta-btns  { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-btn-white {
  background: #fff; color: #111827; border: none;
  padding: 13px 28px; border-radius: 10px;
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all 0.18s;
}
.cta-btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.15); }
.cta-btn-ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.22); padding: 12px 26px;
  border-radius: 10px; font-size: 14.5px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all 0.18s;
}
.cta-btn-ghost:hover { border-color: rgba(255,255,255,0.6); transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
  background: #0d1117;
  padding: 60px 52px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 28px;
  display: block;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 340px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
  font-weight: 500;
}
.footer-link:hover {
  color: var(--teal);
}
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 1200px;
  margin: 0 auto 24px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ── SCROLL REVEAL ── */
.reveal-section {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-section.in-view {
  opacity: 1;
  transform: none;
}

/* staggered children */
.reveal-section .cat-card,
.reveal-section .how-step,
.reveal-section .feature-card,
.reveal-section .testimonial-card,
.reveal-section .stat-box {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-section.in-view .cat-card,
.reveal-section.in-view .how-step,
.reveal-section.in-view .feature-card,
.reveal-section.in-view .testimonial-card,
.reveal-section.in-view .stat-box {
  opacity: 1;
  transform: none;
}
.reveal-section.in-view .cat-card:nth-child(1),
.reveal-section.in-view .how-step:nth-of-type(1),
.reveal-section.in-view .feature-card:nth-child(1),
.reveal-section.in-view .testimonial-card:nth-child(1),
.reveal-section.in-view .stat-box:nth-child(1) { transition-delay: 0.1s; }

.reveal-section.in-view .cat-card:nth-child(2),
.reveal-section.in-view .how-step:nth-of-type(2),
.reveal-section.in-view .feature-card:nth-child(2),
.reveal-section.in-view .testimonial-card:nth-child(2),
.reveal-section.in-view .stat-box:nth-child(2) { transition-delay: 0.2s; }

.reveal-section.in-view .cat-card:nth-child(3),
.reveal-section.in-view .how-step:nth-of-type(3),
.reveal-section.in-view .feature-card:nth-child(3),
.reveal-section.in-view .testimonial-card:nth-child(3),
.reveal-section.in-view .stat-box:nth-child(3) { transition-delay: 0.3s; }

.reveal-section.in-view .cat-card:nth-child(4),
.reveal-section.in-view .how-step:nth-of-type(4),
.reveal-section.in-view .feature-card:nth-child(4) { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-left { padding: 48px 24px; }
  .section, .section-alt { padding: 60px 24px; }
  .categories-grid, .features-card-wrap, .stats-grid, .how-steps, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav { padding: 0 24px; }
  .nav-tagline { display: none; }
  .cta-section { padding: 60px 24px; }
}

@media (max-width: 640px) {
  .hero-left { padding: 36px 20px; }
  .hero-title { font-size: clamp(26px, 7vw, 36px) !important; }
  .hero-desc  { font-size: 14px; }
  .hero-ctas  { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-btn-primary, .hero-btn-secondary { width: 100%; justify-content: center; }
  .hero-trust { gap: 12px; }
  .section, .section-alt { padding: 44px 20px; }
  .section-title { font-size: clamp(20px, 5vw, 30px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* Light mode hero - MOBILE ONLY */
  [data-theme="light"] .hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 50%, #f0f9f7 100%);
  }
  [data-theme="light"] .hero-particles {
    background-image:
      radial-gradient(circle at 20% 30%, rgba(0,201,167,0.08) 0px, transparent 400px),
      radial-gradient(circle at 80% 70%, rgba(0,201,167,0.06) 0px, transparent 400px),
      radial-gradient(circle at 2px 2px, rgba(0,201,167,0.12) 1px, transparent 1px);
  }
  [data-theme="light"] .hero-title {
    color: #0f172a;
  }
  [data-theme="light"] .hero-title-accent {
    color: #00a88a;
  }
  [data-theme="light"] .hero-desc {
    color: #475569;
  }

  /* Light mode mobile buttons - MOBILE ONLY */
  [data-theme="light"] .hero-btn-mobile-signin {
    border-color: #cbd5e1;
    color: #0f172a;
  }
  [data-theme="light"] .hero-btn-mobile-signin:hover {
    border-color: #94a3b8;
    background: rgba(0,0,0,0.02);
  }
}

@media (max-width: 480px) {
  .hero-left { padding: 28px 16px; }
  .nav-btns .btn-outline { display: none; }
  .cat-card { padding: 16px 14px; }

  .cta-section { padding: 44px 20px; }
}

/* ── Reduced motion ──────────────────────────────────────────────────────────
   The hero runs a dozen infinite animations at once: the particle layer, six markers with a float
   and a pulse each, the floating card and the live dot. Somebody who has asked their operating
   system for less motion gets a still page instead — which is also the cheapest version of it,
   and the one a tired laptop will thank you for. */
@media (prefers-reduced-motion: reduce) {
  /* Nothing here for .tl-spine-path: the route is drawn once and never animates, and its dashes
     are a pattern rather than motion — switching them off would just remove the look. */
  .hero-particles,
  .property-marker,
  .marker-pulse,
  .map-property-card,
  .map-live-dot,
  .hero-bento .bento-ping-dot {
    animation: none !important;
  }
  .reveal-section .cat-card,
  .reveal-section .how-step,
  .reveal-section .feature-card,
  .reveal-section .stat-box {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Off-screen hero ─────────────────────────────────────────────────────────
   glass-nav.js adds this once the hero has scrolled out of view. animation-play-state keeps each
   animation exactly where it was, so coming back is seamless — it simply stops costing anything
   while nobody is looking at it. */
.hero.hero-paused *,
.hero.hero-paused {
  animation-play-state: paused !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   How We Verify

   Where the testimonials block used to be. Four cards, each one a gate the platform enforces.
   ═══════════════════════════════════════════════════════════════════════════ */

.verify-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 44px auto 0;
  text-align: left;
}

.verify-card {
  position: relative;
  padding: 26px 26px 28px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  /* Named properties only. `transition: all` on a card this size repaints the shadow on every
     frame of the hover, which is what made the landing page stutter before. */
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.verify-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 16px 0 0 16px;
  background: var(--teal);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.verify-card:hover {
  border-color: rgba(0, 201, 167, 0.4);
  transform: translateY(-3px);
}

.verify-card:hover::before { opacity: 1; }

.verify-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.verify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(0, 201, 167, 0.1);
  border: 1px solid rgba(0, 201, 167, 0.22);
  color: var(--teal);
}

.verify-icon svg { width: 20px; height: 20px; }

.verify-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.verify-title {
  margin: 0 0 9px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}

.verify-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
  color: var(--muted2);
}

.verify-note {
  max-width: 760px;
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .verify-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }
  .verify-card { padding: 22px; }
  .verify-title { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   The three cards that tilt

   This lives at the end of the file deliberately. .feature-card is defined twice — once above for
   these cards and once further down for the "Why HomeSure" row — and the second definition wins,
   including `.feature-card:hover { transform: translateY(-3px) }`. That hover rule would replace
   the tilt transform at exactly the moment the tilt is supposed to be running. Everything here is
   written as .feature-card.feature-3d and placed last, so neither can be contradicted later.
   ═══════════════════════════════════════════════════════════════════════════ */

.feature-card.feature-3d {
  background: linear-gradient(135deg, var(--card) 0%, var(--card2) 100%);
  border: none;
  border-left: 4px solid var(--feature-color);
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: none;
  /* Not hidden: any overflow other than visible forces transform-style back to flat, and the
     depth below depends on preserve-3d. The clipping happens in .feature-card-bg instead. */
  overflow: visible;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  /* The ease back to flat once the pointer leaves. While it is tracking, the rule below takes
     over — easing toward a target that moves every frame just reads as lag. */
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* The decorative corner moves to the clipped layer, so the card itself does not need to clip. */
.feature-card.feature-3d::before { content: none; }

.feature-card.feature-3d.is-tilting {
  transition: transform 80ms linear;
}

.feature-3d .feature-card-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.feature-3d .feature-card-bg::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: var(--feature-color);
  opacity: 0.03;
  border-radius: 50%;
  transform: translate(50%, -50%);
}

/* A circle that gets moved, rather than a gradient redrawn at a new position every frame. Moving
   it is a compositor job; redrawing it would be a paint on each pointer move. */
.feature-3d .feature-card-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side,
    var(--feature-color) 0%,
    rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transform: translate3d(var(--gx, 50%), var(--gy, 50%), 0);
  transition: opacity 280ms ease;
}

.feature-3d.is-tilting .feature-card-glare { opacity: 0.14; }

/* Depth. Face on this is invisible — it only reads as depth once the card is turned, which is the
   point: the card looks ordinary until you move toward it. */
.feature-3d .feature-card-icon { transform: translateZ(52px); }
.feature-3d .feature-card-badge { transform: translateZ(34px); }
.feature-3d .feature-card-title { transform: translateZ(26px); }
.feature-3d .feature-card-desc { transform: translateZ(16px); }

/* The icon stands furthest off the card, so it casts onto it. */
.feature-3d .feature-card-icon {
  box-shadow: 0 10px 26px -10px var(--feature-color);
}

/* useCardTilt returns before adding .tilt-on when the system asks for less movement, so the tilt
   and the light are already gone. This flattens the depth that went with them. */
@media (prefers-reduced-motion: reduce) {
  .feature-card.feature-3d { transition: none; }
  .feature-3d .feature-card-icon,
  .feature-3d .feature-card-badge,
  .feature-3d .feature-card-title,
  .feature-3d .feature-card-desc { transform: none; }
}
