/* ============================================================
   HOMEPAGE.CSS - Page-specific styles for index.html
   Everything here is NOT covered by the shared CSS files
   (tokens, base, components, animations, interactions, responsive).
   ============================================================ */


/* ================================================================
   PAGE TRANSITION SUPPORT
   ================================================================ */
body {
  opacity: 0;
    overflow-x: hidden;
}

body.page-loaded {
  opacity: 1;
    transition: opacity 0.3s ease;
}
body.page-exiting {
  opacity: 0;
    transition: opacity 0.2s ease;
}


/* ================================================================
   LEGACY NAV (homepage inline nav - overrides shared .nav)
   ================================================================ */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 52px;
  background: rgba(247,242,234,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196,98,45,0.08);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: all 0.3s;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--clay);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.04em;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.65;
  transition: all 0.2s;
  letter-spacing: .01em;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--clay) !important;
  color: white !important;
  opacity: 1 !important;
  padding: 9px 22px;
  border-radius: 10px;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  transition: all 0.2s !important;
  box-shadow: 0 4px 14px rgba(196,98,45,0.28) !important;
}
.nav-cta:hover {
  background: var(--clay-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196,98,45,0.38) !important;
}
.nav-list { font-size: 13px !important; }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 210;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Hamburger → X animation */
nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* Mobile dropdown */
nav.nav-open .nav-links {
  display: flex !important;
}


/* ================================================================
   HERO
   ================================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(196,98,45,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(232,136,90,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(232,221,208,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 30%, rgba(196,98,45,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* floating dots */
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--clay);
  opacity: 0.08;
  animation: floatDot linear infinite;
  filter: blur(1px);
  will-change: transform;
  transform: translateZ(0);
}
.hero-dot:nth-child(even) { filter: blur(2px); opacity: 0.05; }
.hero-dot:nth-child(3n) { filter: blur(3px); opacity: 0.04; }
/* Pause animations when tab not visible */
@media (prefers-reduced-motion: reduce) {
  .hero-dot { animation: none; }
  .hero-headline .hw {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  position: relative;
  z-index: 1;
}
/* Staggered hero entrance */
.hero-badge,
.hero-sub,
.hero-actions,
.hero-trust {
  opacity: 0;
  transform: translateY(20px);
  animation: heroEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-badge      { animation-delay: 0.1s; }
.hero-sub        { animation-delay: 0.65s; }
.hero-actions    { animation-delay: 0.8s; }
.hero-trust      { animation-delay: 0.95s; }
.hero-right      { opacity: 0; animation: heroSlideIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; }

/* Hero headline - word-by-word reveal */
.hero-headline {
  opacity: 1;
  transform: none;
  animation: none;
}
.hero-headline .hw {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: heroWordReveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.2s + var(--i) * 0.08s);
  margin-right: 0.22em;
}
@keyframes heroWordReveal {
  to {
    opacity: 1;
        filter: blur(0);
  }
}

@keyframes heroEntrance {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid var(--sand);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  width: fit-content;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px rgba(196,98,45,0.14), 0 1px 4px rgba(26,22,18,0.08);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
  animation: pulse 2s ease infinite;
}

/* 3D layered headline */
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.08;
  margin-bottom: 22px;
  letter-spacing: -0.04em;
  position: relative;
  padding-bottom: 0.08em;
}
.hero-headline em {
  font-style: italic;
  color: var(--clay);
  position: relative;
  display: inline-block;
}
.hero-headline em::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 2px;
  color: rgba(196,98,45,0.15);
  z-index: -1;
  font-style: italic;
}
.hero-headline em::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--clay), transparent);
  border-radius: 2px;
  opacity: 0.4;
}

.hero-sub {
  font-size: 17px;
  color: var(--warm-grey);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 440px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  transition: transform 0.3s ease;
}
.hero-actions.campus-selected-highlight .btn-primary,
.hero-actions.campus-selected-highlight .btn-outline,
.hero-actions.campus-selected-highlight .btn-outline-neutral {
  animation: btnGlisten 1.5s ease 1;
  position: relative;
  overflow: hidden;
}
.hero-actions.campus-selected-highlight .btn-primary::after,
.hero-actions.campus-selected-highlight .btn-outline::after,
.hero-actions.campus-selected-highlight .btn-outline-neutral::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmerSlide 1.2s ease 0.3s 1;
  pointer-events: none;
}
@keyframes btnGlisten {
  0% { box-shadow: 0 0 0 0 rgba(196,98,45,0); }
  30% { box-shadow: 0 0 20px 4px rgba(196,98,45,0.2); }
  100% { box-shadow: none; }
}
@keyframes shimmerSlide {
  0% { left: -100%; }
  100% { left: 120%; }
}
.hero-actions.campus-selected-highlight .btn-outline::after { animation-delay: 0.5s; }
.hero-actions.campus-selected-highlight .btn-outline-neutral::after { animation-delay: 0.7s; }
.hero-actions .btn-primary {
  padding: 15px 34px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 24px rgba(196,98,45,0.35), 0 2px 6px rgba(196,98,45,0.18);
}
.hero-actions .btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(196,98,45,0.45), 0 4px 12px rgba(196,98,45,0.25);
}
.btn-secondary {
  font-size: 14px;
  color: var(--ink);
  opacity: 0.6;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-weight: 500;
}
.btn-secondary:hover { opacity: 1; }
.btn-outline {
  font-size: 14px;
  color: var(--clay);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border: 1.5px solid var(--clay);
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.25s;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.btn-outline:hover {
  background: var(--clay);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,98,45,0.25);
}
.btn-outline:active {
  transform: translateY(0) scale(0.98);
}
.btn-outline-neutral {
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline-neutral:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  box-shadow: 0 6px 20px rgba(26,22,18,0.15);
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--warm-grey);
  font-weight: 500;
}
.hero-trust-item span { font-size: 15px; }


/* ================================================================
   AI SEARCH (hero)
   ================================================================ */
.ai-search-wrap { margin-bottom: 32px; max-width: 520px; }
.ai-search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: white;
  border: 2px solid var(--sand);
  border-radius: 16px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 8px 40px rgba(26,22,18,0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ai-search-bar:focus-within {
  border-color: var(--clay);
  box-shadow: 0 8px 40px rgba(196,98,45,0.15);
}
.ai-search-icon { font-size: 18px; margin-right: 10px; color: var(--clay); flex-shrink: 0; }
.ai-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink);
  background: transparent;
  min-width: 0;
}
.ai-search-input::placeholder { color: var(--warm-grey); }
.ai-search-btn {
  flex-shrink: 0;
  background: var(--clay);
  color: white;
  border: none;
  border-radius: 11px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.ai-search-btn:hover { background: var(--clay-light); }
.ai-search-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.ai-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.ai-examples { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ai-example-label { font-size: 12px; color: var(--warm-grey); flex-shrink: 0; }
.ai-example {
  background: white;
  border: 1px solid var(--sand);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.15s;
}
.ai-example:hover { border-color: var(--clay); color: var(--clay); }
.ai-results-wrap {
  background: white;
  border: 1.5px solid var(--sand);
  border-radius: 18px;
  padding: 20px;
  max-width: 520px;
  box-shadow: 0 12px 48px rgba(26,22,18,0.1);
  animation: fadeUp 0.3s ease both;
  max-height: 420px;
  overflow-y: auto;
}
.ai-result-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  border: 1px solid transparent;
}
.ai-result-card:hover { background: var(--cream); border-color: var(--sand); }
.ai-result-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clay);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ai-result-body { flex: 1; min-width: 0; }
.ai-result-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.ai-result-price { font-size: 13px; color: var(--clay); font-weight: 600; margin-bottom: 4px; }
.ai-result-why { font-size: 12px; color: var(--warm-grey); line-height: 1.5; }
.ai-result-divider { height: 1px; background: var(--sand); margin: 8px 0; }
.ai-powered-by {
  text-align: center;
  font-size: 11px;
  color: var(--warm-grey);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--sand);
}
.ai-no-results { text-align: center; padding: 20px; color: var(--warm-grey); font-size: 14px; }
.ai-error { text-align: center; padding: 16px; color: #991B1B; font-size: 13px; }


/* ================================================================
   HERO RIGHT / MOCKUP
   ================================================================ */
.hero-right {
  background: linear-gradient(135deg, #EDE5D8 0%, #E2D5C3 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  overflow: hidden;
}
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 60% 40%, rgba(196,98,45,0.08), transparent);
}


/* ================================================================
   HERO SLIDESHOW
   ================================================================ */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  perspective: 1200px;
}

/* Slide label */
.slide-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--clay);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  text-align: center;
  transition: opacity 0.4s ease;
  min-height: 20px;
}

/* Phone frame */
.hero-phone {
  width: 280px;
  background: white;
  border-radius: 36px;
  box-shadow:
    0 25px 60px rgba(26,22,18,0.18),
    0 8px 24px rgba(26,22,18,0.1),
    inset 0 1px 0 rgba(255,255,255,0.8);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
  border: 3px solid rgba(26,22,18,0.08);
}
.hero-phone:hover {
  transform: rotateY(0) rotateX(0) translateY(-4px);
  box-shadow: 0 32px 72px rgba(26,22,18,0.22), 0 12px 32px rgba(26,22,18,0.12);
}
.phone-notch {
  width: 100px; height: 24px; background: white;
  border-radius: 0 0 16px 16px; margin: 0 auto; position: relative; z-index: 1;
}
.phone-notch::before {
  content: ''; width: 8px; height: 8px; background: #1a1612; border-radius: 50%;
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%); opacity: 0.15;
}
.phone-status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 20px 8px; font-size: 11px; font-weight: 600; color: var(--ink); opacity: 0.6;
}
.phone-status-icons { display: flex; align-items: center; gap: 4px; }
.phone-status-icons svg { opacity: 0.6; }
.phone-content { padding: 0 14px 20px; }
.phone-nav { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 12px; }
.phone-logo { font-family: var(--serif); font-size: 16px; color: var(--clay); font-weight: 700; }
.phone-search-icon { font-size: 14px; opacity: 0.5; }

/* Slide panels */
.slide-panel {
  display: none;
  animation: slideFadeIn 0.5s ease forwards;
}
.slide-panel.active { display: block; }
@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Progress dots */
.slide-dots {
  display: flex; gap: 8px; margin-top: 20px; z-index: 3;
}
.slide-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--sand); transition: all 0.3s ease; padding: 0;
}
.slide-dot.active {
  background: var(--clay); width: 24px; border-radius: 4px;
}

/* ── Slide 1: Listings ── */
.phone-listing {
  background: var(--cream); border-radius: 14px; overflow: hidden; margin-bottom: 10px;
}
.phone-listing-img {
  height: 110px; position: relative; display: flex; align-items: flex-end; padding: 8px; gap: 6px;
}
.phone-listing-img-sm { height: 70px; }
.phone-verified-badge {
  font-size: 9px; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  padding: 3px 8px; border-radius: 6px; font-weight: 600;
}
.phone-price-tag { font-size: 12px; font-weight: 700; color: white; margin-left: auto; }
.phone-price-tag small { font-weight: 400; font-size: 9px; opacity: 0.8; }
.phone-listing-info { padding: 10px 12px; }
.phone-listing-title { font-family: var(--serif); font-size: 13px; font-weight: 700; margin-bottom: 2px; color: var(--ink); }
.phone-listing-meta { font-size: 10px; color: var(--warm-grey); margin-bottom: 6px; }
.phone-listing-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.phone-listing-tags span { font-size: 9px; background: white; padding: 3px 7px; border-radius: 6px; color: var(--warm-grey); font-weight: 500; }

/* ── Slide 2: Roommate match ── */
.slide-match { text-align: center; }
.match-notification {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(196,98,45,0.08); border-radius: 12px; padding: 10px 16px; margin-bottom: 16px;
  opacity: 0; animation: matchNotifIn 0.6s 0.3s ease forwards;
}
@keyframes matchNotifIn { to { opacity: 1; transform: translateY(0); } from { transform: translateY(-8px); } }
.match-bell { font-size: 16px; }
.match-notif-text { font-size: 12px; color: var(--ink); }
.match-cards {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px;
}
.match-profile { text-align: center; }
.match-avatar {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: white; margin: 0 auto 6px;
  overflow: hidden; border: 3px solid white; box-shadow: 0 4px 12px rgba(26,22,18,0.12);
}
.match-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.match-name { font-size: 11px; font-weight: 600; color: var(--ink); }
.match-heart { font-size: 22px; animation: matchPulse 1.5s ease infinite; }
@keyframes matchPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.match-score-bar {
  height: 6px; background: var(--sand); border-radius: 3px; margin: 0 auto 12px; width: 80%;
  overflow: hidden;
}
.match-score-fill {
  height: 100%; width: 0; background: linear-gradient(90deg, var(--clay), #2D7A3A);
  border-radius: 3px; animation: matchFill 1.5s 0.8s ease forwards;
}
@keyframes matchFill { to { width: 92%; } }
.match-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }
.match-tag {
  font-size: 9px; background: var(--cream); padding: 4px 10px; border-radius: 8px;
  color: var(--warm-grey); font-weight: 500; opacity: 0;
  animation: tagIn 0.3s ease forwards;
}
.match-tag:nth-child(1) { animation-delay: 1.2s; }
.match-tag:nth-child(2) { animation-delay: 1.35s; }
.match-tag:nth-child(3) { animation-delay: 1.5s; }
.match-tag:nth-child(4) { animation-delay: 1.65s; }
@keyframes tagIn { to { opacity: 1; } }
.match-cta-btn {
  background: var(--clay); color: white; font-size: 11px; font-weight: 600;
  padding: 10px 20px; border-radius: 10px; display: inline-block;
  opacity: 0; animation: tagIn 0.4s 1.8s ease forwards;
}

/* ── Slide 3: Chat with typing ── */
.slide-chat { padding-top: 0 !important; }
.chat-header {
  display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--sand);
  margin-bottom: 10px;
}
.chat-avatar { font-size: 20px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--cream); border-radius: 50%; }
.chat-name { font-size: 11px; font-weight: 700; color: var(--ink); }
.chat-online { font-size: 9px; color: var(--green); }
.chat-verified-pill { font-size: 9px; background: rgba(45,122,58,0.08); color: var(--green); padding: 3px 8px; border-radius: 6px; font-weight: 600; margin-left: auto; }
.chat-messages { display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.chat-bubble {
  max-width: 85%; padding: 10px 12px; font-size: 11px; line-height: 1.5; border-radius: 14px;
}
.chat-bubble.landlord {
  background: var(--cream); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px;
}
.chat-bubble.student {
  background: var(--clay); color: white; align-self: flex-end; border-bottom-right-radius: 4px;
  min-height: 20px;
}
.chat-file {
  display: flex; flex-direction: column; gap: 2px; background: white; border: 1px solid var(--sand);
}
.chat-file small { font-size: 9px; color: var(--warm-grey); }
.chat-typing-indicator {
  display: flex; gap: 4px; padding: 8px 14px; background: var(--cream); border-radius: 14px;
  align-self: flex-end; width: fit-content;
}
.chat-typing-indicator span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--warm-grey);
  animation: typingBounce 1.4s infinite;
}
.chat-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}
.chat-typed-msg { display: none; }
.chat-input-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--cream); border-radius: 20px; padding: 8px 12px; margin-top: 10px;
  font-size: 11px; color: var(--warm-grey);
}
.chat-send-btn { color: var(--clay); font-size: 16px; }

/* ── Slide 4: Lease + Payment + Keys ── */
.slide-sign { text-align: left; }
.lease-doc {
  background: var(--cream); border-radius: 12px; padding: 14px; margin-bottom: 12px;
  border: 1px solid var(--sand);
}
.lease-header {
  font-family: var(--serif); font-size: 12px; font-weight: 700; color: var(--ink);
  margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--sand);
}
.lease-detail {
  display: flex; justify-content: space-between; font-size: 10px; padding: 3px 0;
  color: var(--warm-grey);
}
.lease-detail span:last-child { font-weight: 600; color: var(--ink); }
.lease-sig-line {
  margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--sand); position: relative;
}
.lease-signature {
  width: 140px; height: 35px;
}
.lease-signature path {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: signDraw 2s 0.5s ease forwards;
}
@keyframes signDraw { to { stroke-dashoffset: 0; } }
.lease-sig-label { font-size: 8px; color: var(--warm-grey); margin-top: 2px; }
.lease-stamp {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--green);
  background: rgba(45,122,58,0.08); padding: 4px 12px; border-radius: 8px; margin-top: 8px;
  opacity: 0; animation: stampIn 0.4s 2.5s ease forwards;
}
@keyframes stampIn { from { opacity: 0; transform: scale(1.5) rotate(-5deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

/* Payment progress bar */
.payment-progress {
  display: flex; align-items: center; gap: 0; margin-bottom: 12px;
  opacity: 0; animation: tagIn 0.5s 2.8s ease forwards;
}
.pay-step {
  display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9px;
  color: var(--warm-grey); font-weight: 500; flex-shrink: 0;
}
.pay-step small {
  font-size: 7px; color: var(--warm-grey); opacity: 0.7; font-weight: 400;
  white-space: nowrap;
}
.pay-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--sand);
  border: 2px solid var(--sand); transition: all 0.3s;
}
.pay-done .pay-dot { background: var(--green); border-color: var(--green); }
.pay-active .pay-dot { background: var(--clay); border-color: var(--clay); }
.pay-done, .pay-active { color: var(--ink); }
.pay-line { flex: 1; height: 2px; background: var(--sand); position: relative; overflow: hidden; }
.pay-line-fill {
  height: 100%; background: var(--green); width: 0;
  animation: payFill 0.8s 3.2s ease forwards;
}
.pay-done + .pay-line .pay-line-fill { animation-delay: 3s; }
@keyframes payFill { to { width: 100%; } }

/* Move-in badge with key */
.movein-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(45,122,58,0.08); color: var(--green); font-size: 12px; font-weight: 700;
  padding: 10px 20px; border-radius: 12px; text-align: center;
  opacity: 0; transform: translateY(10px);
  animation: keyDrop 0.6s 3.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.movein-key { font-size: 20px; }
@keyframes keyDrop {
  from { opacity: 0; transform: translateY(-20px) scale(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Floating glassmorphic cards */
.hero-float {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5); border-radius: 14px; padding: 10px 16px;
  box-shadow: 0 8px 32px rgba(26,22,18,0.1), 0 2px 8px rgba(26,22,18,0.06);
  z-index: 3; animation: heroFloat 6s ease-in-out infinite;
}
.hero-float-icon { font-size: 20px; flex-shrink: 0; }
.hero-float-label { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.hero-float-sub { font-size: 10px; color: var(--warm-grey); font-weight: 500; }
.hero-float-1 { top: 15%; right: -10px; animation-delay: 0s; }
.hero-float-2 { bottom: 25%; left: -20px; animation-delay: -2s; }
.hero-float-3 { bottom: 8%; right: 5%; animation-delay: -4s; }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }


/* ================================================================
   SECTION DIVIDERS
   ================================================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--clay), transparent);
  opacity: 0.15;
}
.section-wave {
  width: 100%;
  height: 48px;
  display: block;
  position: relative;
  overflow: hidden;
}
.section-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}


/* ================================================================
   STATS BAR
   ================================================================ */
.stats-bar {
  display: flex;
  justify-content: center;
  background: linear-gradient(160deg, #1a1612 0%, #221d18 60%, #1a1612 100%);
  color: white;
  padding: 32px 48px;
  flex-wrap: wrap;
  gap: 0;
  position: relative;
  overflow: visible !important;
}
.stats-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 100% at 25% 50%, rgba(196,98,45,0.07), transparent);
  pointer-events: none;
}
.stat-item { text-align: center; padding: 12px 56px; border-right: 1px solid rgba(255,255,255,0.08); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #E8885A, #C4622D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.stat-label { font-size: 11.5px; opacity: 0.4; margin-top: 4px; letter-spacing: 0.07em; }


/* ================================================================
   FEATURE PILLS (marquee)
   ================================================================ */
.feature-strip {
  background: var(--ink);
  overflow: hidden;
  padding: 16px 0;
  position: relative;
}
.feature-strip::before,
.feature-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.feature-strip::before { left: 0; background: linear-gradient(to right, var(--ink), transparent); }
.feature-strip::after { right: 0; background: linear-gradient(to left, var(--ink), transparent); }
.feature-marquee { display: flex; gap: 0; animation: marqueeScroll 40s linear infinite; width: max-content; }
.feature-strip:hover .feature-marquee { animation-play-state: paused; }
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}
.feature-pill-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--clay); }


/* ================================================================
   SECTION LABELS (homepage enhancements)
   ================================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(196,98,45,0.08);
  border-radius: 100px;
  padding: 5px 13px;
  letter-spacing: 0.12em;
  font-size: 10.5px;
}
.section-label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clay);
  flex-shrink: 0;
}
.section-label:hover { background: rgba(196,98,45,0.13); }
.section-title { letter-spacing: -0.03em; line-height: 1.07; }
.section-sub { font-size: 16.5px; letter-spacing: -0.01em; line-height: 1.72; }


/* ================================================================
   FILTERS SECTION / SEARCH BAR
   ================================================================ */
.filters-section {
  background: white;
  padding: 64px 48px;
  position: relative;
}
.filters-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-warm);
  pointer-events: none;
}
.filters-inner { max-width: 1140px; margin: 0 auto; }

.search-bar-wrap {
  background: white;
  border: 1.5px solid var(--sand);
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px rgba(26,22,18,0.06);
}
.search-input-group { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.search-icon { font-size: 17px; flex-shrink: 0; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
}
.search-input::placeholder { color: var(--warm-grey); }
.search-clear {
  background: var(--sand);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-grey);
  flex-shrink: 0;
  transition: background 0.2s;
}
.search-clear:hover { background: #d4c9bc; }
.search-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-select {
  border: 1.5px solid var(--sand);
  border-radius: 100px;
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  background: var(--cream);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238C8278'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.search-select:focus,
.search-select:hover { border-color: var(--clay); }
.search-select.active { border-color: var(--clay); background-color: #fff8f5; }
.search-reset-btn {
  border: 1.5px solid var(--clay);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--clay);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.search-reset-btn:hover { background: var(--clay); color: white; }
.search-results-label { font-size: 13px; color: var(--warm-grey); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sand); }

.filter-demo {
  margin-top: 48px;
  background: var(--cream);
  border-radius: 28px;
  padding: 32px;
  border: none;
  box-shadow: var(--shadow-sm);
}
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--sand);
  background: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  color: var(--ink);
  letter-spacing: -0.01em;
  box-shadow: 0 1px 3px rgba(26,22,18,0.05);
}
.filter-chip:hover { border-color: var(--clay); color: var(--clay); }
.filter-chip.active { background: var(--clay); color: white; border-color: var(--clay); box-shadow: 0 4px 16px rgba(196,98,45,0.22); }
.filter-chip:active { transform: scale(0.97); }
.filter-chip .chip-icon { font-size: 14px; }
.filter-results-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }


/* ================================================================
   LISTING TILES
   ================================================================ */
.listing-tile {
  border-radius: 24px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(26,22,18,0.04);
  box-shadow: var(--shadow-layered);
  transition: transform 0.32s var(--ease-spring), box-shadow 0.32s var(--ease-out);
  cursor: pointer;
}
.listing-tile:hover { transform: translateY(-7px) scale(1.01); box-shadow: var(--shadow-lg); }
.listing-tile-img {
  height: 248px;
  overflow: hidden;
  position: relative;
  border-radius: 0;
}
.listing-tile-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(26,22,18,0.55) 0%, rgba(26,22,18,0.1) 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.listing-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease-out); }
.listing-tile:hover .listing-tile-img img { transform: scale(1.07); }
.listing-tile-img > div { border-radius: 0; }
.listing-verified {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: #2D5A27;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(26,22,18,0.1);
}
.listing-coming {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.9);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--warm-grey);
}
.save-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(26,22,18,0.15);
  padding: 0;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), background 0.15s;
  color: var(--warm-grey);
  line-height: 1;
}
.save-btn:hover { transform: scale(1.15); background: white; }
.save-btn.saved { color: #e05555; animation: heartPop 0.35s var(--ease-spring); }
.listing-tile-price-overlay {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  color: white;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.listing-tile-price-overlay small { font-size: 12px; font-weight: 400; opacity: 0.85; }
.listing-tile-body { padding: 15px 18px 18px; }
.listing-tile-title { font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 2px; }
.listing-tile-loc { font-size: 12.5px; color: var(--warm-grey); margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
.listing-badge-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { font-size: 10.5px; border-radius: 6px; padding: 3px 9px; letter-spacing: 0.01em; }
.listing-tile-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--sand);
}
.listing-tile-price { font-size: 17px; font-weight: 700; color: var(--clay); letter-spacing: -0.02em; display: none; }
.listing-tile-cta { font-size: 12.5px; font-weight: 600; color: var(--clay); opacity: 0.8; }
.listing-tile:hover .listing-tile-cta { opacity: 1; }
.listing-tile[style*="opacity:0.55"] .listing-tile-img::after {
  background: linear-gradient(to top, rgba(26,22,18,0.25) 0%, transparent 60%) !important;
}

/* ================================================================
   COMING SOON PLACEHOLDER CARDS
   ================================================================ */
.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.coming-soon-card {
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  opacity: 0.6;
  filter: saturate(0.3);
  transition: opacity 0.3s, filter 0.3s;
}
.coming-soon-card:hover { opacity: 0.75; filter: saturate(0.5); }
.coming-soon-img {
  height: 200px;
  background: linear-gradient(135deg, var(--sand) 0%, #d4c9bc 50%, var(--sand) 100%);
  position: relative;
  overflow: hidden;
}
.coming-soon-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  animation: shimmerSlide 2.5s ease-in-out infinite;
}
@keyframes shimmerSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.coming-soon-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--warm-grey);
  letter-spacing: 0.02em;
}
.coming-soon-body { padding: 16px 18px 20px; }
.coming-soon-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  opacity: 0.7;
}
.coming-soon-meta {
  font-size: 12px;
  color: var(--warm-grey);
  margin-bottom: 10px;
}
.coming-soon-tags { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.coming-soon-tag-text {
  font-size: 11px;
  color: var(--warm-grey);
  background: rgba(232,221,208,0.4);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}
/* Keep old shimmer classes for backwards compat */
.coming-soon-line { height: 12px; border-radius: 6px; background: var(--sand); margin-bottom: 10px; }
.coming-soon-tag { height: 24px; width: 72px; border-radius: 6px; background: rgba(232,221,208,0.6); }
.coming-soon-tag.short { width: 52px; }


/* Tile gallery */
.tile-gallery { position: relative; width: 100%; height: 100%; }
.tile-gallery-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.tile-gallery-img.tg-active { opacity: 1; }
.tile-gallery-dots { position: absolute; bottom: 46px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 4; pointer-events: none; }
.tile-gallery-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.45); transition: background 0.25s; flex-shrink: 0; }
.tile-gallery-dot.tg-active { background: white; }
.tile-gallery-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--sand), #c4a882); }
.tile-gallery-fallback-icon { font-size: 40px; opacity: 0.4; }

/* Commute badge */
.commute-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(45,74,45,0.08);
  color: var(--moss);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
}


/* ================================================================
   PLATFORM FEATURES (tabs)
   ================================================================ */
.platform-section {
  padding: 80px 48px;
  background: var(--gradient-mesh);
  background-size: 200% 200%;
  position: relative;
}
.platform-inner { max-width: 1140px; margin: 0 auto; }
.platform-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 48px;
  background: white;
  border-radius: 18px;
  padding: 6px;
  border: none;
  box-shadow: var(--shadow-sm);
  width: fit-content;
  flex-wrap: wrap;
}
.platform-tab {
  padding: 10px 22px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--ink);
  border: 1.5px solid var(--sand);
  background: white;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.platform-tab.active { background: var(--clay); color: white; border-color: var(--clay); box-shadow: 0 4px 20px rgba(196,98,45,0.28); }
.platform-tab.active .tab-icon { stroke: white; }
.platform-tab:not(.active) .tab-icon { stroke: var(--ink); opacity: 0.5; transition: all 0.2s; }
.platform-tab:not(.active):hover { border-color: var(--clay); color: var(--clay); }
.platform-tab:not(.active):hover .tab-icon { stroke: var(--clay); opacity: 1; }
.platform-panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
}
.platform-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  animation: panelFadeIn 0.35s ease forwards;
}
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.platform-panel.active > * { min-width: 0; }
.panel-text { min-width: 0; word-break: break-word; }
.panel-text h3 { font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); margin-bottom: 16px; line-height: 1.2; letter-spacing: -0.03em; }
.panel-text h3 em { font-style: italic; color: var(--clay); }
.panel-text p { font-size: 15px; color: var(--warm-grey); line-height: 1.7; margin-bottom: 24px; }
.panel-features { display: flex; flex-direction: column; gap: 12px; }
.panel-feat { display: flex; align-items: flex-start; gap: 12px; }
.panel-feat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--clay-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}
.panel-feat-text strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.panel-feat-text span { font-size: 13px; color: var(--warm-grey); }

/* UI mockups */
.ui-mockup {
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: none;
  max-width: 100%;
  min-width: 0;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.ui-mockup:hover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: 0 32px 80px rgba(26,22,18,0.14); }
.ui-header { background: var(--cream); padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.ui-title { font-size: 13px; font-weight: 600; }
.ui-badge { background: var(--clay-pale); color: var(--clay); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.ui-badge-green { background: #F0F7F0; color: #2D5A27; }

/* messages UI */
.msg-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow: hidden; }
.msg-thread { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background 0.15s; }
.msg-thread:hover, .msg-thread.active { background: var(--cream); }
.msg-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: white; }
.msg-meta { flex: 1; min-width: 0; }
.msg-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.msg-preview { font-size: 12px; color: var(--warm-grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-time { font-size: 11px; color: var(--warm-grey); flex-shrink: 0; }
.msg-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); flex-shrink: 0; margin-top: 4px; }

/* chat window */
.chat-window { background: var(--cream); border-radius: 16px; overflow: hidden; }
.chat-header { background: white; padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #8BA882, #4A6B4A); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.chat-name { font-size: 13px; font-weight: 600; }
.chat-status { font-size: 11px; color: #2D5A27; }
.chat-verified-pill { margin-left: auto; background: #F0F7F0; color: #2D5A27; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.chat-messages { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.bubble { max-width: 75%; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.bubble.in { background: white; color: var(--ink); align-self: flex-start; border: 1px solid var(--border); }
.bubble.out { background: var(--clay); color: white; align-self: flex-end; }
.bubble-time { font-size: 10px; opacity: 0.5; margin-top: 3px; }
.chat-doc-msg { display: flex; align-items: center; gap: 8px; background: white; border: 1px solid var(--sand); border-radius: 10px; padding: 10px 12px; align-self: flex-start; max-width: 75%; }
.chat-doc-icon { font-size: 20px; }
.chat-doc-name { font-size: 12px; font-weight: 600; }
.chat-doc-size { font-size: 11px; color: var(--warm-grey); }
.chat-input-bar { background: white; padding: 10px 14px; display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--border); }
.chat-input { flex: 1; background: var(--cream); border-radius: 20px; padding: 8px 14px; font-size: 13px; color: var(--ink); border: none; outline: none; }
.chat-send-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--clay); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; color: white; }

/* docs UI */
.doc-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.doc-item:last-child { border-bottom: none; }
.doc-icon { font-size: 22px; flex-shrink: 0; }
.doc-info { flex: 1; }
.doc-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.doc-meta { font-size: 11px; color: var(--warm-grey); }
.doc-status { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.doc-status.signed { background: #F0F7F0; color: #2D5A27; }
.doc-status.pending { background: #FFF8F0; color: #B45309; }
.doc-status.ready { background: var(--clay-pale); color: var(--clay); }
.sign-progress { padding: 16px; background: var(--cream); }
.sign-progress-label { font-size: 12px; font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; }
.sign-track { height: 6px; background: var(--sand); border-radius: 3px; overflow: hidden; }
.sign-fill { height: 100%; background: linear-gradient(to right, var(--clay), var(--clay-light)); border-radius: 3px; width: 66%; }

/* payment UI */
.payment-card {
  background: linear-gradient(135deg, #1A1612 0%, #2D2520 100%);
  border-radius: 16px;
  padding: 24px;
  color: white;
  margin: 16px;
  position: relative;
  overflow: hidden;
}
.payment-card::before { content: ''; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(196,98,45,0.2); }
.payment-card::after { content: ''; position: absolute; bottom: -20px; left: 20px; width: 80px; height: 80px; border-radius: 50%; background: rgba(196,98,45,0.1); }
.payment-card-chip { width: 32px; height: 24px; background: linear-gradient(135deg, #D4A847, #A8822F); border-radius: 4px; margin-bottom: 20px; }
.payment-card-num { font-size: 16px; letter-spacing: .15em; font-family: monospace; margin-bottom: 16px; opacity: 0.9; }
.payment-card-row { display: flex; justify-content: space-between; font-size: 11px; opacity: 0.6; }
.payment-methods { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.payment-method { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border); cursor: pointer; transition: all 0.2s; }
.payment-method:hover { border-color: var(--clay); }
.payment-method.selected { border-color: var(--clay); background: var(--clay-pale); }
.payment-method-icon { font-size: 22px; flex-shrink: 0; }
.payment-method-name { font-size: 13px; font-weight: 600; }
.payment-method-desc { font-size: 11px; color: var(--warm-grey); }
.payment-method-check { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--clay); display: flex; align-items: center; justify-content: center; font-size: 10px; color: white; }

/* deposit UI */
.deposit-card { margin: 16px; background: linear-gradient(135deg, var(--cream), white); border-radius: 16px; border: 1.5px solid var(--sand); padding: 20px; }
.deposit-amount { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--clay); margin-bottom: 4px; }
.deposit-label { font-size: 12px; color: var(--warm-grey); margin-bottom: 16px; }
.deposit-steps { display: flex; flex-direction: column; gap: 10px; }
.deposit-step { display: flex; align-items: center; gap: 10px; }
.deposit-step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--clay); color: white; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.deposit-step-text { font-size: 12px; color: var(--ink); }

/* roommate UI */
.roommate-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.roommate-profile { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--cream); border-radius: 12px; }
.roommate-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #8BA882, #4A6B4A); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.roommate-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.roommate-detail { font-size: 11px; color: var(--warm-grey); }
.match-score-big { margin-left: auto; text-align: center; }
.match-pct { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--clay); }
.match-text { font-size: 10px; color: var(--warm-grey); }
.roommate-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; }
.roommate-tag { background: white; border: 1px solid var(--sand); border-radius: 6px; padding: 4px 10px; font-size: 11px; color: var(--warm-grey); }
.match-bar-wrap { padding: 0 4px; }
.match-bar-label { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px; }
.match-bar { height: 6px; background: var(--sand); border-radius: 3px; overflow: hidden; }
.match-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(to right, var(--clay), var(--clay-light)); }


/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how-section {
  padding: 80px 48px;
  background: var(--gradient-dark);
  position: relative;
}
.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(196,98,45,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(196,98,45,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.how-section .section-label { color: var(--clay-light); }
.how-section .section-title { color: white; }
.how-section .section-title em { color: var(--clay-light); }
.how-inner { max-width: 1140px; margin: 0 auto; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}
/* Horizontal connector line behind steps - hidden, replaced by step-connector arrows */
.steps-grid::before {
  display: none;
}
.step {
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s var(--ease-out), background 0.28s var(--ease-out);
}
.step:hover { transform: translateY(-7px); box-shadow: 0 12px 40px rgba(0,0,0,0.25); background: rgba(255,255,255,0.07); }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196,98,45,0.15);
  border-radius: 50%;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 36px;
  color: var(--clay-light);
  line-height: 1;
  letter-spacing: -0.06em;
}
.step h3 { font-size: 17.5px; margin-bottom: 10px; font-weight: 600; letter-spacing: -0.02em; color: white; }
.step p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.68; }
.step-connector {
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--clay-light);
  opacity: 0.35;
  z-index: 1;
}


/* ================================================================
   TRUST SECTION
   ================================================================ */
.trust-section {
  padding: 72px 48px;
  background: linear-gradient(155deg, #191511 0%, #211c17 50%, #1a1612 100%);
  position: relative;
  overflow: hidden;
}
/* Noise texture overlay */
.trust-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  z-index: 0;
}
.trust-inner { position: relative; z-index: 1; }
.trust-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,98,45,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.trust-inner { max-width: 1140px; margin: 0 auto; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.trust-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.trust-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.35), 0 0 0 1px rgba(196,98,45,0.22);
  border-color: rgba(196,98,45,0.22);
  background: rgba(255,255,255,0.07);
}
.trust-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(196,98,45,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.trust-card h3 { font-size: 18.5px; color: white; margin-bottom: 10px; font-weight: 600; letter-spacing: -0.025em; }
.trust-card p { font-size: 14px; color: rgba(255,255,255,0.38); line-height: 1.72; }
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(196,98,45,0.2);
  color: var(--clay-light);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 12px;
  letter-spacing: 0.02em;
}


/* ================================================================
   NEIGHBOURHOOD SECTION
   ================================================================ */
.neighbourhood-section { padding: 96px 48px; background: var(--cream); position: relative; }
.neighbourhood-inner { max-width: 1140px; margin: 0 auto; }

/* Commute search bar */
.commute-search-wrap {
  max-width: 560px;
  margin: 32px auto 0;
}
.commute-search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: white;
  border: 1.5px solid var(--sand);
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  transition: border-color 0.2s, box-shadow 0.3s;
}
.commute-search-bar:focus-within {
  border-color: var(--clay);
  box-shadow: var(--shadow-glow-clay);
}
.commute-search-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-right: 10px;
}
.commute-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--ink);
  background: transparent;
  padding: 10px 0;
}
.commute-search-input::placeholder {
  color: var(--warm-grey-light);
}
.commute-search-btn {
  background: var(--clay);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.commute-search-btn:hover {
  background: var(--clay-light);
  transform: translateY(-1px);
}
/* Results */
.commute-search-result {
  margin-top: 16px;
  background: white;
  border: 1px solid var(--sand);
  border-radius: 14px;
  padding: 16px 20px;
  animation: slideFadeIn 0.35s ease;
}
.commute-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.commute-result-address {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.commute-result-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--warm-grey);
  padding: 4px;
}
.commute-result-modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.commute-mode-card {
  text-align: center;
  padding: 12px 8px;
  background: var(--cream);
  border-radius: 10px;
}
.commute-mode-icon {
  font-size: 20px;
  margin-bottom: 6px;
}
.commute-mode-time {
  font-size: 14px;
  font-weight: 700;
  color: var(--clay);
  margin-bottom: 2px;
}
.commute-mode-label {
  font-size: 10px;
  color: var(--warm-grey);
}
.commute-mode-dist {
  font-size: 9px;
  color: var(--warm-grey);
  opacity: 0.6;
  margin-top: 2px;
}
@media (max-width: 480px) {
  .hero-text { padding: 36px 20px 28px; }
  .hero-phone { width: 200px; }
  .score-cards { grid-template-columns: 1fr; }
  .commute-search-bar { flex-direction: column; padding: 12px; gap: 8px; }
  .commute-search-btn { width: 100%; }
  .commute-search-icon { display: none; }
  .commute-result-modes { grid-template-columns: repeat(2, 1fr); }
}
.neighbourhood-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; align-items: start; }
.score-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.score-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.score-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.score-val {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--clay), var(--clay-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.score-label { font-size: 13px; color: var(--warm-grey); margin-top: 4px; }
.score-bar { height: 4px; background: var(--sand); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 2px; background: var(--clay); }
.commute-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.commute-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border-radius: 12px;
  border: 1.5px solid var(--sand);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.commute-item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.commute-icon { font-size: 20px; width: 36px; text-align: center; flex-shrink: 0; }
.commute-label { font-size: 13px; font-weight: 500; flex: 1; }
.commute-time { font-size: 13px; font-weight: 700; color: var(--clay); }
.commute-mode { font-size: 11px; color: var(--warm-grey); }
.map-container { background: #E8E0D5; border-radius: 20px; overflow: hidden; height: 360px; position: relative; }
.map-iframe { width: 100%; height: 100%; border: none; }
.map-overlay-badge { position: absolute; bottom: 16px; left: 16px; background: white; border-radius: 10px; padding: 10px 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); font-size: 12px; font-weight: 600; }


/* ================================================================
   WAITLIST
   ================================================================ */
.waitlist-section {
  padding: 80px 48px;
  background: var(--gradient-mesh);
  background-size: 300% 300%;
  animation: gradientShift 20s ease infinite;
  position: relative;
}
.waitlist-inner { max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 48px; text-align: left; isolation: isolate; }
.feature-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-layered);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s var(--ease-out);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 22px; margin-bottom: 10px; }
.feature-card h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.02em; }
.feature-card p { font-size: 13.5px; color: var(--warm-grey); line-height: 1.6; }
.waitlist-form { display: flex; gap: 12px; max-width: 440px; margin: 32px auto 0; position: relative; z-index: 2; }
.waitlist-input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--sand);
  border-radius: 14px;
  font-size: 15px;
  background: var(--cream);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 6px rgba(26,22,18,0.04) inset;
}
.waitlist-input:focus { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(196,98,45,0.1), 0 2px 6px rgba(26,22,18,0.04) inset; }
.waitlist-form .btn-primary.success {
  background: #2D7A3A;
  box-shadow: 0 6px 24px rgba(45,122,58,0.35);
  animation: waitlistSuccess 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes waitlistSuccess {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
#waitlist-btn {
  background: var(--clay);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(196,98,45,0.3);
}
#waitlist-btn:hover { background: var(--clay-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(196,98,45,0.4); }


/* ================================================================
   FOOTER (homepage inline)
   ================================================================ */
footer { background: var(--ink); color: white; padding: 60px 48px 40px; }
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand {
  font-family: var(--serif);
  font-size: 26px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--clay-light), #D4845A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.65; max-width: 240px; }
.footer-col h5 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.5); }


/* ================================================================
   LISTING MODAL
   ================================================================ */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26,22,18,0.6);
  overflow-y: auto;
  align-items: flex-start !important;
  backdrop-filter: blur(4px);
}
.modal-box {
  max-width: 720px;
  margin: 40px auto 80px;
  background: var(--cream);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  overflow-y: auto !important;
  max-height: calc(100vh - 60px);
  box-shadow: 0 40px 100px rgba(26,22,18,0.28), 0 8px 24px rgba(26,22,18,0.1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--warm-grey);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { color: var(--clay); }
.modal-slideshow { position: relative; height: 340px; overflow: hidden; background: #111; }
.slides-track { display: flex; height: 100%; transition: transform 0.4s ease; }
.slides-track img { min-width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; }
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  line-height: 1;
  transition: all 0.2s;
}
.slide-btn:hover { background: white; transform: translateY(-50%) scale(1.05); }
.slide-prev { left: 12px; }
.slide-next { right: 12px; }
.slide-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.slide-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s; }
.slide-dot.active { background: white; }
.slide-counter { position: absolute; top: 12px; right: 14px; background: rgba(0,0,0,0.45); color: white; font-size: 12px; padding: 3px 9px; border-radius: 20px; }
.modal-body { padding: 28px 32px; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.modal-price-num { font-size: 26px; font-weight: 700; color: var(--clay); }
.modal-price-sub { font-size: 12px; color: var(--warm-grey); }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px; background: white; border-radius: 14px; margin-bottom: 20px; }
.modal-grid-item .label { font-size: 11px; color: var(--warm-grey); text-transform: uppercase; letter-spacing: .05em; }
.modal-grid-item .value { font-weight: 500; margin-top: 2px; }
.modal-desc { font-size: 15px; line-height: 1.65; color: #4A4035; margin-bottom: 24px; }
.modal-cta { background: var(--clay); border-radius: 14px; padding: 22px 24px; }
.modal-cta input, .modal-cta textarea { width: 100%; padding: 11px 14px; border-radius: 10px; border: none; font-size: 14px; margin-bottom: 10px; box-sizing: border-box; font-family: inherit; }
.modal-cta textarea { resize: none; }
.modal-cta-btn {
  width: 100%;
  background: white;
  color: var(--clay);
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.modal-cta-btn:hover { background: var(--cream); }
.modal-verified { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 16px; background: #F0F7F0; border-radius: 10px; }
.modal-verified span { font-size: 13px; color: #2D5A27; font-weight: 500; }


/* ================================================================
   QUIZ OVERLAY
   ================================================================ */
.quiz-overlay { display: none; position: fixed; inset: 0; z-index: 999; background: var(--cream); overflow-y: auto; }
.quiz-overlay.open { display: block; }
.quiz-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 1001;
  background: white;
  border: 1.5px solid rgba(26,22,18,0.1);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8C8278;
  transition: all 0.2s;
}
.quiz-close:hover { border-color: var(--clay); color: var(--clay); }

.quiz-overlay nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 18px 48px; background: rgba(247,242,234,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(196,98,45,0.1); }
.quiz-overlay .nav-logo { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--clay); text-decoration: none; }
.quiz-overlay .nav-back { font-size: 13px; color: var(--warm-grey); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
.quiz-overlay .nav-back:hover { color: var(--ink); }
.quiz-overlay .quiz-wrapper { max-width: 680px; margin: 0 auto; padding: 120px 24px 80px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.quiz-overlay .progress-bar-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.quiz-overlay .progress-track { flex: 1; height: 4px; background: rgba(196,98,45,0.15); border-radius: 2px; overflow: hidden; }
.quiz-overlay .progress-fill { height: 100%; background: var(--clay); border-radius: 2px; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.quiz-overlay .progress-text { font-size: 12px; color: var(--warm-grey); white-space: nowrap; }

.quiz-overlay .question-block { display: none; animation: slideUp 0.4s ease both; }
.quiz-overlay .question-block.active { display: block; }
.quiz-overlay .q-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--clay); margin-bottom: 12px; }
.quiz-overlay .q-title { font-family: 'Playfair Display', serif; font-size: clamp(26px, 5vw, 40px); font-weight: 700; line-height: 1.15; margin-bottom: 10px; }
.quiz-overlay .q-title em { font-style: italic; color: var(--clay); }
.quiz-overlay .q-subtitle { font-size: 15px; color: var(--warm-grey); line-height: 1.6; margin-bottom: 36px; }

.quiz-overlay .options-grid { display: grid; gap: 12px; }
.quiz-overlay .options-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.quiz-overlay .options-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.quiz-overlay .option-card { background: white; border: 2px solid var(--border); border-radius: 16px; padding: 20px 22px; cursor: pointer; transition: all 0.2s; display: flex; align-items: flex-start; gap: 14px; position: relative; overflow: hidden; font: inherit; text-align: left; width: 100%; }
.quiz-overlay .option-card:hover { border-color: rgba(196,98,45,0.3); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,98,45,0.1); }
.quiz-overlay .option-card.selected { border-color: var(--clay); background: rgba(196,98,45,0.04); }
.quiz-overlay .option-card.selected::after { content: '\2713'; position: absolute; top: 14px; right: 16px; width: 22px; height: 22px; border-radius: 50%; background: var(--clay); color: white; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 22px; text-align: center; }
.quiz-overlay .option-icon { font-size: 28px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.quiz-overlay .option-label { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.quiz-overlay .option-desc { font-size: 13px; color: var(--warm-grey); line-height: 1.5; }

.quiz-overlay .slider-wrap { margin: 8px 0 32px; }
.quiz-overlay .slider-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--warm-grey); margin-bottom: 10px; }
.quiz-overlay .commute-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--clay) 0%, var(--clay) 50%, rgba(196,98,45,0.2) 50%, rgba(196,98,45,0.2) 100%); outline: none; cursor: pointer; }
.quiz-overlay .commute-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--clay); cursor: pointer; box-shadow: 0 2px 8px rgba(196,98,45,0.4); border: 3px solid white; }
.quiz-overlay .slider-value { text-align: center; margin-top: 16px; font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; color: var(--clay); line-height: 1; }
.quiz-overlay .slider-value span { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 400; color: var(--warm-grey); }

.quiz-overlay .next-btn { margin-top: 32px; background: var(--clay); color: white; padding: 16px 40px; border-radius: 10px; font-size: 15px; font-weight: 600; font-family: 'DM Sans', sans-serif; border: none; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: background 0.2s, transform 0.2s; opacity: 0.4; pointer-events: none; }
.quiz-overlay .next-btn.enabled { opacity: 1; pointer-events: all; }
.quiz-overlay .next-btn.enabled:hover { background: var(--clay-light); transform: translateY(-1px); }
.quiz-overlay .next-btn::after { content: '\2192'; }

.quiz-overlay #q-email { display: none; }
.quiz-overlay #q-email.active { display: block; animation: slideUp 0.4s ease both; }
.quiz-overlay .email-input-wrap { position: relative; margin-bottom: 16px; }
.quiz-overlay .email-input { width: 100%; padding: 16px 20px; font-size: 16px; border: 1.5px solid var(--sand); border-radius: 14px; background: white; color: var(--ink); outline: none; box-sizing: border-box; transition: border-color 0.2s; font-family: 'DM Sans', sans-serif; }
.quiz-overlay .email-input:focus { border-color: var(--clay); }
.quiz-overlay .email-note { font-size: 12px; color: var(--warm-grey); text-align: center; line-height: 1.5; }
.quiz-overlay #results { display: none; animation: slideUp 0.5s ease both; }
.quiz-overlay .results-header { margin-bottom: 40px; }
.quiz-overlay .results-header .q-eyebrow { margin-bottom: 8px; }
.quiz-overlay .results-header h2 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 5vw, 42px); font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
.quiz-overlay .results-header h2 em { font-style: italic; color: var(--clay); }
.quiz-overlay .results-header p { font-size: 15px; color: var(--warm-grey); line-height: 1.65; }
.quiz-overlay .match-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 36px; }
.quiz-overlay .match-tag { background: rgba(196,98,45,0.1); color: var(--clay); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.quiz-overlay .listings-results { display: flex; flex-direction: column; gap: 16px; }
.quiz-overlay .result-card { background: white; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); display: flex; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; }
.quiz-overlay .result-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(26,22,18,0.08); }
.quiz-overlay .result-img { width: 140px; flex-shrink: 0; background: linear-gradient(135deg, #8BA882, #4A6B4A); position: relative; }
.quiz-overlay .result-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quiz-overlay .result-img-2 { background: linear-gradient(135deg, #C4A882, #8B6F52); }
.quiz-overlay .result-img-3 { background: linear-gradient(135deg, #7A8BA8, #4A5B6A); }
.quiz-overlay .match-score { position: absolute; top: 10px; left: 10px; background: var(--moss); color: white; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; letter-spacing: 0.3px; }
.quiz-overlay .result-body { padding: 18px 20px; flex: 1; }
.quiz-overlay .result-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.quiz-overlay .result-loc { font-size: 13px; color: var(--warm-grey); margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.quiz-overlay .result-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.quiz-overlay .result-tag { background: var(--cream); padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.quiz-overlay .result-footer { display: flex; justify-content: space-between; align-items: center; }
.quiz-overlay .result-price { font-size: 18px; font-weight: 700; color: var(--clay); }
.quiz-overlay .result-price span { font-size: 12px; font-weight: 400; color: var(--warm-grey); }
.quiz-overlay .result-avail { font-size: 11px; background: rgba(45,74,45,0.1); color: var(--moss); padding: 4px 10px; border-radius: 6px; font-weight: 600; }
.quiz-overlay .roommate-banner { background: var(--ink); border-radius: 16px; padding: 24px 28px; margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.quiz-overlay .roommate-banner h4 { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--cream); margin-bottom: 6px; }
.quiz-overlay .roommate-banner p { font-size: 13px; color: rgba(247,242,234,0.6); line-height: 1.5; }
.quiz-overlay .roommate-btn { background: var(--clay); color: white; padding: 12px 22px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; flex-shrink: 0; transition: background 0.2s; }
.quiz-overlay .roommate-btn:hover { background: var(--clay-light); }
.quiz-overlay .btn-row { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.quiz-overlay .back-btn { background: none; border: 1.5px solid var(--border); color: var(--warm-grey); padding: 15px 22px; border-radius: 10px; font-size: 15px; font-weight: 500; font-family: 'DM Sans', sans-serif; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s; }
.quiz-overlay .back-btn:hover { border-color: var(--clay); color: var(--clay); }
.quiz-overlay .back-btn::before { content: '\2190'; }
.quiz-overlay .restart-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-size: 13px; color: var(--warm-grey); cursor: pointer; text-decoration: none; transition: color 0.2s; }
.quiz-overlay .restart-link:hover { color: var(--clay); }


/* ================================================================
   FLOATING AI BUTTON & PANEL
   ================================================================ */
.ai-ghost-btn {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(247,242,234,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(196,98,45,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(196,98,45,0.12), 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  color: var(--clay);
  font-size: 20px;
  user-select: none;
}
.ai-ghost-btn:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(196,98,45,0.2); border-color: rgba(196,98,45,0.5); }
.ai-ghost-btn .ai-ghost-tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  font-family: var(--sans);
}
.ai-ghost-btn:hover .ai-ghost-tooltip { opacity: 1; }

.ai-float-panel {
  position: fixed;
  right: 24px;
  bottom: 152px;
  z-index: 998;
  width: min(380px, calc(100vw - 48px));
  background: var(--cream);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(26,22,18,0.18), 0 0 0 1px rgba(196,98,45,0.1);
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.25s cubic-bezier(0.4,0,0.2,1);
  transform-origin: bottom right;
}
.ai-float-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.ai-float-header { background: var(--clay); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.ai-float-header-title { font-family: var(--serif); font-size: 15px; color: white; font-weight: 600; }
.ai-float-header-sub { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 1px; }
.ai-float-close { color: rgba(255,255,255,0.75); font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 4px; border-radius: 4px; transition: color 0.15s; }
.ai-float-close:hover { color: white; }
.ai-float-body { padding: 14px 16px 16px; }
.ai-float-bar { display: flex; align-items: center; gap: 0; background: white; border: 1.5px solid var(--sand); border-radius: 12px; padding: 5px 5px 5px 12px; margin-bottom: 10px; transition: border-color 0.2s; }
.ai-float-bar:focus-within { border-color: var(--clay); }
.ai-float-icon { color: var(--clay); font-size: 14px; margin-right: 8px; flex-shrink: 0; }
.ai-float-input { flex: 1; border: none; outline: none; font-size: 13.5px; font-family: var(--sans); color: var(--ink); background: transparent; min-width: 0; }
.ai-float-input::placeholder { color: var(--warm-grey); }
.ai-float-submit { flex-shrink: 0; background: var(--clay); color: white; border: none; border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 700; font-family: var(--sans); cursor: pointer; transition: background 0.2s; }
.ai-float-submit:hover { background: var(--clay-light); }
.ai-float-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ai-float-chip { font-size: 11.5px; color: var(--warm-grey); border: 1px solid var(--sand); border-radius: 100px; padding: 4px 10px; cursor: pointer; background: white; font-family: var(--sans); transition: border-color 0.15s, color 0.15s; }
.ai-float-chip:hover { border-color: var(--clay); color: var(--clay); }
.ai-float-results { margin-top: 12px; max-height: 320px; overflow-y: auto; }


/* ================================================================
   SCROLL ANIMATIONS (legacy)
   ================================================================ */
.fade-up, .fade-up-2, .fade-up-3 {
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}


/* ================================================================
   HERO STAGGERED ENTRANCE
   ================================================================ */
.hero-text .hero-badge,
.hero-text .hero-sub,
.hero-text .ai-search-wrap,
.hero-text .hero-actions,
.hero-text .hero-trust {
  opacity: 0;
  transform: translateY(20px);
  animation: heroStagger 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-text .hero-badge     { animation-delay: 0.15s; }
.hero-text .hero-sub        { animation-delay: 0.65s; }
.hero-text .ai-search-wrap  { animation-delay: 0.8s; }
.hero-text .hero-actions    { animation-delay: 0.8s; }
.hero-text .hero-trust      { animation-delay: 0.95s; }

@keyframes heroStagger {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero visual entrance */
.hero-right .hero-visual {
  opacity: 0;
  transform: translateX(40px) scale(0.95);
  animation: heroVisualEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
@keyframes heroVisualEntrance {
  to { opacity: 1; transform: translateX(0) scale(1); }
}


/* ================================================================
   STATS STAGGER ON REVEAL
   ================================================================ */
.stat-num {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stats-bar.revealed .stat-num {
  opacity: 1;
  }
.stats-bar.revealed .stat-item:nth-child(1) .stat-num { transition-delay: 0s; }
.stats-bar.revealed .stat-item:nth-child(2) .stat-num { transition-delay: 0.1s; }
.stats-bar.revealed .stat-item:nth-child(3) .stat-num { transition-delay: 0.2s; }
.stats-bar.revealed .stat-item:nth-child(4) .stat-num { transition-delay: 0.3s; }


/* Platform tab crossfade is handled by .platform-panel display:none/grid + panelFadeIn keyframe above */


/* ================================================================
   TRUST CARD GRADIENT BORDER HOVER
   ================================================================ */
.trust-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(196,98,45,0) 0%, rgba(196,98,45,0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.trust-card:hover::after {
  background: linear-gradient(135deg,
    rgba(196,98,45,0.6) 0%,
    rgba(232,136,90,0.25) 50%,
    rgba(196,98,45,0.6) 100%);
}


/* ================================================================
   WAITLIST SUCCESS STATE
   ================================================================ */
#waitlist-btn.success {
  background: #2D5A27 !important;
  transform: scale(1.02) !important;
  box-shadow: 0 6px 24px rgba(45,90,39,0.3) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}


/* ================================================================
   SCORE BAR ANIMATE ON REVEAL
   ================================================================ */
.score-bar-fill {
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}


/* ================================================================
   FOCUS STATES
   ================================================================ */
*:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }


/* ================================================================
   RESPONSIVE - HOMEPAGE-SPECIFIC
   ================================================================ */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid::before { display: none; }
  .step-connector { display: none; }
  .coming-soon-grid { grid-template-columns: repeat(2,1fr); }
  .coming-soon-grid .coming-soon-card:last-child { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .platform-panel.active { grid-template-columns: 1fr; }
  .neighbourhood-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* ── Mobile Nav ── */
  nav { padding: 14px 16px; position: sticky; top: 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--sand);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    box-shadow: 0 12px 40px rgba(26,22,18,0.12);
    z-index: 200;
  }
  .nav-links a {
    padding: 12px 16px !important;
    border-radius: 10px;
    font-size: 14px !important;
    opacity: 1 !important;
    display: block !important;
    border: none !important;
    background: none !important;
    color: var(--ink) !important;
    box-shadow: none !important;
    width: 100%;
    text-align: left;
  }
  .nav-links a:hover { background: rgba(196,98,45,0.06) !important; }
  .nav-links .nav-cta {
    background: var(--clay) !important;
    color: white !important;
    text-align: center;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(196,98,45,0.28) !important;
  }
  .nav-links .nav-login {
    color: var(--clay) !important;
    border: 1.5px solid var(--clay) !important;
    text-align: center;
    margin-top: 4px;
  }

  /* ── Hero Mobile ── */
  .hero { grid-template-columns: 1fr; min-height: auto; overflow: hidden; }
  .hero-text { padding: 44px 24px 36px; order: 1; max-width: 100vw; box-sizing: border-box; }
  .hero-headline { font-size: clamp(28px, 8vw, 36px); }
  .hero-headline .hw {
    transform: translateY(12px);
    filter: blur(4px);
  }
  .hero-sub { font-size: 15px; }
  .hero-right { order: 2; min-height: auto; overflow: visible; padding: 0 16px 40px; }
  .hero-slideshow { padding: 20px 10px; }
  .hero-phone { width: 240px; transform: none; }
  .hero-phone:hover { transform: none; }
  .hero-float { padding: 8px 10px; font-size: 10px; }
  .hero-float-label { font-size: 11px; }
  .hero-float-sub { font-size: 9px; }
  .hero-float-1 { top: 5%; right: -5px; }
  .hero-float-2 { bottom: 22%; left: -5px; }
  .hero-float-3 { bottom: 5%; right: 0; }
  .slide-dots { margin-top: 16px; }
  .hero-trust {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero-trust-item {
    font-size: 11px;
    gap: 4px;
  }

  /* ── Stats ── */
  .stats-bar { padding: 20px 16px !important; overflow: visible !important; }
  .stat-item { padding: 10px 12px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); width: 50%; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.07); }
  .stat-num { font-size: clamp(18px, 6.5vw, 28px) !important; letter-spacing: -0.01em; }

  /* ── Sections ── */
  .filters-section,
  .platform-section,
  .how-section,
  .trust-section,
  .neighbourhood-section,
  .waitlist-section { padding: 56px 20px; }

  /* ── Filters ── */
  .filter-bar { gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; flex-wrap: nowrap; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-chip { padding: 7px 13px; font-size: 12.5px; flex-shrink: 0; }
  .filter-results-row { grid-template-columns: 1fr; }

  /* ── Steps & Trust ── */
  .steps-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* ── Coming Soon ── */
  .coming-soon-grid { grid-template-columns: 1fr; }
  .coming-soon-grid .coming-soon-card:last-child { display: block; }
  .coming-soon-grid .coming-soon-card:nth-child(3) { display: none; }
  .coming-soon-img { height: 160px; }

  /* ── Neighbourhood ── */
  .score-cards { grid-template-columns: 1fr 1fr; }
  .neighbourhood-grid { gap: 28px; }

  /* ── Modals ── */
  .modal-box { margin: 0; border-radius: 20px 20px 0 0; margin-top: auto; max-height: 78vh; overflow-y: auto; }
  .modal-body { padding: 20px 20px 40px; }
  .modal-header { flex-direction: column; gap: 8px; }
  .modal-cta input, .modal-cta textarea { font-size: 16px; }

  /* ── Listings ── */
  .listing-tile { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .listing-tile-img { height: 180px; }
  .listings-grid { grid-template-columns: 1fr; }
  .save-btn { width: 40px; height: 40px; font-size: 18px; display: flex; align-items: center; justify-content: center; }
  .listing-tile-title { font-size: 15px; }
  .listing-tile-price { font-size: 15px; }

  /* ── Forms ── */
  input, textarea, select { font-size: 16px !important; }
  .feature-grid { grid-template-columns: 1fr; }

  /* ── Waitlist ── */
  .waitlist-form { flex-direction: column; max-width: 100%; }
  .waitlist-input, .waitlist-form .btn-primary { width: 100%; }

  /* ── Footer ── */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-top > div:first-child { grid-column: span 2; }

  /* ── Platform Tabs ── */
  .platform-tabs { gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .platform-tabs::-webkit-scrollbar { display: none; }
  .platform-tab { padding: 8px 14px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
  .platform-panel.active { gap: 28px; }
  .platform-section, .how-section, .trust-section, .neighbourhood-section { padding: 48px 20px; }

  /* ── Mockup ── */
  /* old .mockup-screen rule removed */

  /* ── Typography ── */
  .section-title { font-size: clamp(26px, 7vw, 38px); }

  /* ── Search ── */
  .search-bar-wrap { padding: 14px 16px; }
  .search-filters { gap: 6px; }
  .search-select { font-size: 12px; padding: 7px 24px 7px 10px; }
  .search-input { font-size: 14px; }
}

@media (max-width: 600px) {
  .quiz-overlay nav { padding: 0 16px; height: 56px; }
  .quiz-wrapper { padding: 80px 14px 60px; }
  .quiz-overlay .options-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .quiz-overlay .options-grid.cols-3 { grid-template-columns: 1fr; }
  .result-card { flex-direction: column; }
  .result-img { width: 100%; height: 160px; }
  .roommate-banner { flex-direction: column; gap: 12px; }
  .question-title { font-size: 22px; }
  .option-card { padding: 14px 12px; }
}

@media (max-width: 480px) {
  .hero-text { padding: 36px 20px 28px; }
  .hero-phone { width: 200px; }
  .score-cards { grid-template-columns: 1fr; }
  .hero-text { padding: 36px 20px 32px; }
  .hero-headline { font-size: 30px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn-primary { width: 100%; text-align: center; justify-content: center; }
  .hero-actions .btn-secondary { text-align: center; justify-content: center; }
  .hero-right { max-height: 300px; padding: 0 16px 32px; }
  .hero-trust {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .hero-trust::-webkit-scrollbar { display: none; }
  .hero-trust-item {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .stat-item { width: 50%; padding: 8px 10px; }
  .stat-num { font-size: clamp(16px, 5.5vw, 24px) !important; letter-spacing: 0; }
  /* old .mockup-screen rule removed */
  .platform-section, .how-section, .trust-section, .neighbourhood-section { padding: 40px 16px; }
  .filters-section, .waitlist-section { padding: 40px 16px; }
  .step { padding: 20px 16px; }
  .trust-card { padding: 20px; }
  .trust-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  .section-sub { font-size: 14px; }
  #alert-banner { padding: 12px 16px; gap: 12px; }
}

@media (max-width: 380px) {
  .quiz-overlay .options-grid.cols-2,
  .quiz-overlay .options-grid.cols-3 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   HOMEPAGE REDESIGN ADDITIONS
   ═══════════════════════════════════════════════════════ */

/* ── Hero carousel arrows ── */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.slide-arrow:hover {
  background: rgba(196,98,45,0.6);
  border-color: rgba(196,98,45,0.6);
  transform: translateY(-50%) scale(1.08);
}
.slide-arrow-prev { left: 16px; }
.slide-arrow-next { right: 16px; }

/* ── Slide dots - bigger and more visible ── */
.slide-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 16px 0 12px;
}
.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}
.slide-dot.active {
  width: 28px;
  background: white;
}
.slide-dot:hover { background: rgba(255,255,255,0.6); }

/* ── Homepage buildings section ── */
.homepage-buildings-section {
  background: var(--cream);
  padding: clamp(56px, 7vw, 88px) 0 clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--sand);
  overflow: hidden;
}
.homepage-buildings-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 52px;
}
.homepage-buildings-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.homepage-buildings-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 -52px;
  padding: 4px 52px 16px;
}
.homepage-buildings-scroll::-webkit-scrollbar { display: none; }
.homepage-buildings-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  width: 100%;
}

/* Building cards */
.hb-card {
  flex-shrink: 0;
  width: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--sand);
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(26,22,18,0.04);
}
.hb-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(26,22,18,0.12), 0 4px 12px rgba(26,22,18,0.06);
  border-color: transparent;
}
.hb-card-photo {
  height: 140px;
  background: var(--sand);
  flex-shrink: 0;
  overflow: hidden;
}
.hb-card-photo img,
.hb-card-photo > div {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hb-card:hover .hb-card-photo img,
.hb-card:hover .hb-card-photo > div {
  transform: scale(1.05);
}
.hb-card-body {
  padding: 14px 16px;
  flex: 1;
}
.hb-card-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.hb-card-addr {
  font-size: 12px;
  color: var(--warm-grey);
  margin-bottom: 8px;
}
.hb-card-walk {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #166534;
  background: #F0FDF4;
  border-radius: 100px;
  padding: 3px 8px;
}

/* ── Landlord split section ── */
.landlord-split-section {
  background: var(--ink);
  padding: clamp(56px, 7vw, 88px) 52px;
}
.landlord-split-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.landlord-split-card {
  border-radius: 20px;
  padding: 44px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.landlord-split-card:hover {
  transform: translateY(-4px);
}
.landlord-split-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}
.landlord-split-student {
  background: var(--cream);
  box-shadow: 0 8px 32px rgba(26,22,18,0.08);
}
.landlord-split-student:hover {
  box-shadow: 0 16px 48px rgba(26,22,18,0.14);
}
.landlord-split-landlord {
  background: linear-gradient(155deg, var(--clay) 0%, var(--clay-dark) 100%);
  box-shadow: 0 8px 32px rgba(196,98,45,0.25);
}
.landlord-split-landlord:hover {
  box-shadow: 0 16px 48px rgba(196,98,45,0.35);
}
.lsc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.55;
  color: var(--ink);
}
.landlord-split-landlord .lsc-label {
  color: white;
}
.lsc-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--ink);
}
.landlord-split-landlord .lsc-title { color: white; }

.lsc-sub {
  font-size: 15px;
  line-height: 1.65;
  color: var(--warm-grey);
  margin-bottom: 28px;
}
.landlord-split-landlord .lsc-sub { color: rgba(255,255,255,0.75); }

.lsc-cta {
  display: inline-flex;
  align-items: center;
  background: var(--clay);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 28px;
}
.lsc-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,98,45,0.35);
  color: white;
}
.landlord-split-landlord .lsc-cta {
  background: white !important;
  color: var(--clay) !important;
  border: 2px solid white !important;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
  background-image: none !important;
}
.landlord-split-landlord .lsc-cta:hover {
  background: rgba(255,255,255,0.1) !important;
  background-image: none !important;
  border-color: white !important;
  color: white !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
  transform: translateY(-2px);
}
.lsc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lsc-list li {
  font-size: 14px;
  color: var(--warm-grey);
  display: flex;
  align-items: center;
  gap: 8px;
}
.landlord-split-landlord .lsc-list li { color: rgba(255,255,255,0.75); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .homepage-buildings-inner { padding: 0 32px; }
  .homepage-buildings-scroll { margin: 0 -32px; padding: 4px 32px 16px; }
}
@media (max-width: 768px) {
  .slide-arrow { display: none; }
  .homepage-buildings-section { padding: 40px 0; }
  .homepage-buildings-inner { padding: 0 16px; }
  .homepage-buildings-header { flex-direction: column; align-items: flex-start; }
  .homepage-buildings-scroll { margin: 0 -16px; padding: 4px 16px 16px; }
  .landlord-split-section { padding: 48px 20px; }
  .landlord-split-inner { grid-template-columns: 1fr; }
  .landlord-split-card { padding: 28px 24px; }
}
@media (max-width: 480px) {
  .hero-text { padding: 36px 20px 28px; }
  .hero-right { display: none; }
  .score-cards { grid-template-columns: 1fr; }
  .hb-card { width: 180px; }
  .hb-card-photo { height: 120px; }
  /* Reduce homepage scroll length on mobile */
  .landlord-split-section { display: none; }
  .neighbourhood-section { display: none; }
}


/* ================================================================
   PHASE 0 - Campus Search in Hero
   ================================================================ */
.hero-campus-search { margin-bottom: 32px; max-width: 460px; }
.hero-search-bar {
  display: flex; align-items: center; gap: 14px;
  background: white; border: 2px solid var(--sand); border-radius: 60px;
  padding: 18px 24px; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 6px 24px rgba(26,22,18,0.08);
}
.hero-search-bar:hover { border-color: var(--clay); box-shadow: 0 12px 40px rgba(196,98,45,0.15); transform: translateY(-3px); }
.hero-search-bar.selected { border-color: var(--clay); background: rgba(196,98,45,0.04); }
.hero-search-bar.selected .hero-search-text { color: var(--ink); font-weight: 600; }
.hero-search-icon { font-size: 22px; flex-shrink: 0; }
.hero-search-text { flex: 1; font-size: 16px; color: var(--warm-grey); font-family: var(--sans); font-weight: 500; }
.hero-search-arrow {
  width: 40px; height: 40px; border-radius: 50%; background: var(--clay); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; flex-shrink: 0; transition: all 0.2s;
}
.hero-search-bar:hover .hero-search-arrow { background: var(--clay-light); transform: scale(1.05); }

/* Campus picker modal (homepage) */
.hero-campus-modal-overlay {
  position: fixed; inset: 0; background: rgba(26,22,18,0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 500; display: none; align-items: center; justify-content: center; padding: 24px;
}
.hero-campus-modal-overlay.open { display: flex; }
.hero-campus-modal {
  background: white; border-radius: 20px; padding: 28px; width: 100%;
  max-width: 480px; max-height: 80vh; display: flex; flex-direction: column; gap: 16px;
  animation: fadeUp 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
.hero-campus-modal-title { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.hero-campus-search-input {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--sand); border-radius: 12px;
  font-size: 15px; font-family: var(--sans); background: var(--cream); color: var(--ink);
  outline: none; transition: border-color 0.2s;
}
.hero-campus-search-input:focus { border-color: var(--clay); background: white; }
.hero-campus-list { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.hero-campus-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: 12px; cursor: pointer; transition: background 0.15s;
  border: 1.5px solid transparent; font-family: var(--sans); background: none; width: 100%; text-align: left;
}
.hero-campus-option:hover { background: var(--cream); border-color: var(--clay-light); }
.hero-campus-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.hero-campus-city { font-size: 12px; color: var(--warm-grey); }
.hero-campus-short {
  font-size: 11px; font-weight: 700; color: var(--clay);
  background: rgba(196,98,45,0.08); padding: 3px 10px; border-radius: 100px;
}


/* ================================================================
   PHASE 0 - Testimonials
   ================================================================ */
.testimonials-section { padding: clamp(64px, 8vw, 100px) 52px; background: white; }
.testimonials-inner { max-width: 1200px; margin: 0 auto; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.testimonial-card {
  background: var(--cream); border: 1px solid var(--sand); border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(26,22,18,0.08); }
.testimonial-stars { font-size: 16px; color: #F59E0B; letter-spacing: 2px; }
.testimonial-body { font-size: 14px; line-height: 1.7; color: var(--ink); flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clay-light), var(--clay));
  color: white; font-weight: 700; font-size: 16px; font-family: var(--serif);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.testimonial-meta { font-size: 12px; color: var(--warm-grey); }

@media (max-width: 768px) {
  .testimonials-section { padding: 48px 20px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-campus-search { max-width: 100%; }
  .hero-search-bar { padding: 14px 16px; }
}
