/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf8f4;
  --fg: #1a1814;
  --accent: #c4622d;
  --accent-light: #e8835a;
  --muted: #7a746e;
  --border: #e8e3da;
  --card-bg: #ffffff;
  --code-font: 'DM Mono', 'Fira Code', monospace;
  --body-font: 'DM Sans', system-ui, sans-serif;
  --display-font: 'Fraunces', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo svg {
  color: var(--accent);
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

.nav-cta {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav-cta:hover {
  background: var(--accent);
  color: white;
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 2rem 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--display-font);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 1.1rem;
}

.hero-bullets {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-bullets li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
}

.hero-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Hero above-the-fold email capture */
.hero-waitlist-form {
  margin-bottom: 1.75rem;
}

.hero-waitlist-field {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-waitlist-input {
  flex: 1 1 220px;
  font-size: 0.92rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-width: 0;
}

.hero-waitlist-input::placeholder {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-waitlist-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 98, 45, 0.12);
}

.hero-waitlist-btn {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}

.hero-waitlist-btn:hover { background: var(--accent-light); }
.hero-waitlist-btn:active { transform: scale(0.97); }
.hero-waitlist-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.hero-waitlist-error {
  font-size: 0.82rem;
  color: #dc2626;
  margin-top: 0.5rem;
  display: none;
}

.hero-waitlist-success {
  background: rgba(196, 98, 45, 0.06);
  border: 1px solid rgba(196, 98, 45, 0.18);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.hero-waitlist-pos {
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

.hero-waitlist-pos strong {
  color: var(--accent);
  font-size: 1.15rem;
}

.hero-waitlist-share-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero-share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-share-btn {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--fg);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
  white-space: nowrap;
}

.hero-share-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pill {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background: var(--fg);
  color: var(--bg);
  letter-spacing: 0.03em;
}

.pill-more {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0 0.25rem;
}

.hero-verified-badge {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Listing card stack */
.hero-visual {
  display: flex;
  justify-content: center;
}

.listing-card-stack {
  position: relative;
  width: 320px;
  height: 420px;
}

.listing-card {
  position: absolute;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26, 24, 20, 0.08), 0 1px 4px rgba(26, 24, 20, 0.04);
  transition: transform 0.3s ease;
}

.listing-card-1 {
  width: 280px;
  top: 0;
  left: 0;
  z-index: 3;
  transform: rotate(-2deg);
}

.listing-card-2 {
  width: 280px;
  top: 60px;
  left: 30px;
  z-index: 2;
  transform: rotate(1.5deg);
}

.listing-card-3 {
  width: 280px;
  top: 130px;
  left: 10px;
  z-index: 1;
  transform: rotate(-0.5deg);
}

.card-img {
  height: 120px;
  background: linear-gradient(135deg, #d4c4b0 0%, #b8a896 50%, #9e8e7e 100%);
  position: relative;
  overflow: hidden;
}

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(255,255,255,0.06) 8px,
    rgba(255,255,255,0.06) 16px
  );
}

.card-body {
  padding: 1rem 1rem 0.75rem;
}

.card-price {
  font-family: var(--display-font);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fg);
}

.card-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  font-family: var(--body-font);
}

.card-address {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg);
  margin: 0.35rem 0 0.2rem;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.card-sources {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.source-dot.zillow { background: #006aff; }
.source-dot.realtor { background: #d4222b; }
.source-dot.apartments { background: #ff6b35; }

.source-label {
  font-size: 0.68rem;
  color: var(--muted);
}

.card-status {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.card-status.interested {
  background: #e8f5e9;
  color: #2e7d32;
}

.card-status.tour-booked {
  background: #fff8e1;
  color: #f57f17;
}

.card-status.applied {
  background: #e3f2fd;
  color: #1565c0;
}

/* Hero stats */
.hero-stats {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-num {
  font-family: var(--display-font);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ===== SECTION COMMON ===== */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 3.5rem;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: calc(16.66% + 1.25rem);
  right: calc(16.66% + 1.25rem);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
}

.step-num {
  font-family: var(--display-font);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--bg);
  display: inline-block;
  margin-bottom: 1.25rem;
  padding-right: 0.5rem;
}

.step-title {
  font-family: var(--display-font);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== FEATURES ===== */
.features {
  padding: 5rem 0;
  background: var(--fg);
}

.features .section-eyebrow {
  color: var(--accent-light);
}

.features .section-heading {
  color: var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--fg);
  padding: 2.25rem;
  transition: background 0.2s;
}

.feature-card:hover {
  background: #252220;
}

.feature-icon {
  color: var(--accent-light);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-family: var(--display-font);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--bg);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.feature-card p {
  font-size: 0.82rem;
  color: rgba(250, 248, 244, 0.55);
  line-height: 1.6;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}

.manifesto-text {
  font-family: var(--display-font);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  line-height: 1.25;
  margin-bottom: 2rem;
}

.manifesto-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

/* ===== HERO CTA ===== */
.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: background 0.15s;
}

.hero-cta:hover {
  background: #a85425;
}

/* ===== CLOSING ===== */
.closing {
  padding: 6rem 0;
  background: var(--bg);
}

.closing-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.closing-headline {
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto 2rem;
}

.closing-cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.closing-cta:hover {
  background: #a85425;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-logo svg {
  color: var(--accent);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.footer-note {
  font-size: 0.75rem;
  color: rgba(122, 116, 110, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .listing-card-stack {
    width: 260px;
    height: 360px;
  }

  .listing-card-1 { width: 230px; }
  .listing-card-2 { width: 230px; left: 20px; }
  .listing-card-3 { width: 230px; left: 0; }

  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .steps::before { display: none; }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-num {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3rem 1.25rem 2.5rem;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .listing-card-stack {
    width: 220px;
    height: 320px;
  }

  .listing-card-1, .listing-card-2, .listing-card-3 {
    width: 200px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-divider { display: none; }

  .section-heading {
    font-size: 1.6rem;
  }

  .manifesto-text {
    font-size: 1.4rem;
  }
}