/* ===================== Landing (guest home) =====================
   Scoped to .lp-home so the rest of the app keeps its own look.
   Loaded after hero.css — overrides here win on equal specificity. */

.lp-home {
  --lh-navy: #0c2340;
  --lh-blue: #2563eb;
  --lh-blue-dark: #1d4ed8;
  --lh-ring: rgba(37, 99, 235, 0.14);
  --lh-ink: #1e2229;
  --lh-muted: #5b6472;
  --lh-quiet: #7a8391;
  --lh-line: #e4e7ec;
  --lh-line-strong: #d8dee7;
  --lh-wash: #f7f8fa;
  --lh-card: #ffffff;
  --lh-img: #edf0f4;
  --lh-input: #ffffff;
  --lh-input-line: #dde2e9;
  --lh-bluewash: #eef3fe;
  --lh-bluewash-line: #dce6fa;
  --lh-btn: #0c2340;
  --lh-btn-hover: #0a1c33;
  --lh-shadow-card: 0 1px 2px rgba(16, 24, 40, 0.05);
  --lh-shadow-lift: 0 2px 10px rgba(12, 35, 64, 0.07);
  background: var(--lh-card);
  color: var(--lh-ink);
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.dark-mode .lp-home {
  --lh-navy: #eef2f8;
  --lh-blue: #7aa7ff;
  --lh-blue-dark: #9db9ff;
  --lh-ring: rgba(96, 165, 250, 0.28);
  --lh-ink: #e5e7eb;
  --lh-muted: #a7b0bd;
  --lh-quiet: #8d97a6;
  --lh-line: #2b3546;
  --lh-line-strong: #3b4557;
  --lh-wash: #141b26;
  --lh-card: #1b2431;
  --lh-img: #243043;
  --lh-input: #141b26;
  --lh-input-line: #374151;
  --lh-bluewash: rgba(37, 99, 235, 0.18);
  --lh-bluewash-line: rgba(96, 165, 250, 0.3);
  --lh-btn: #2563eb;
  --lh-btn-hover: #1d4ed8;
  --lh-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
  --lh-shadow-lift: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.lp-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------------------------------------------------------- nav */
.hz-nav.lp-nav {
  background: var(--lh-card);
  border-bottom: 1px solid var(--lh-line);
}
.lp-nav-in {
  height: 72px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 36px;
}
.hz-nav.lp-nav .hz-brand {
  gap: 10px;
  padding: 0;
}
.hz-nav.lp-nav .hz-brand img {
  width: 32px;
  height: 32px;
  display: block;
}
.lp-brand-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  color: var(--lh-navy);
}
.hz-nav.lp-nav .hz-nav-links {
  gap: 28px;
  margin-left: 8px;
}
.hz-nav.lp-nav .hz-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--lh-muted);
}
.hz-nav.lp-nav .hz-nav-links a:hover {
  color: var(--lh-navy);
}
.hz-nav.lp-nav .hz-nav-cta {
  gap: 18px;
}
.lp-signin {
  background: none;
  border: 0;
  padding: 8px 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--lh-navy);
  cursor: pointer;
}
.lp-signin:hover {
  color: var(--lh-blue);
}
.lp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--lh-btn);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.lp-cta-btn:hover {
  background: var(--lh-btn-hover);
}
/* Guest theme toggle. The landing ships its own dark palette, so the control
   sits beside Sign in rather than living only inside the signed-in shell. */
.lp-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--lh-line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--lh-navy);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.lp-theme-btn:hover {
  background: var(--lh-wash);
  border-color: var(--lh-muted);
}
.lp-theme-btn svg {
  width: 17px;
  height: 17px;
}
.lp-theme-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.lp-theme-link svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------- hero */
.lp-hero {
  padding: 76px 0 92px;
  background: var(--lh-card);
}
.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 600px) 1fr;
  gap: 64px;
  align-items: center;
}
.lp-eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lh-blue);
}
.lp-hero h1 {
  margin: 0 0 20px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--lh-navy);
}
.lp-hero h1 em {
  display: block;
  font-style: normal;
  color: var(--lh-blue);
}
.lp-lede {
  margin: 0 0 30px;
  max-width: 452px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--lh-muted);
}
.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.lp-btn-primary {
  background: var(--lh-btn);
  color: #fff;
}
.lp-btn-primary:hover {
  background: var(--lh-btn-hover);
}
.lp-btn-ghost {
  background: var(--lh-card);
  color: var(--lh-navy);
  border-color: #d6dbe3;
}
.dark-mode .lp-btn-ghost {
  border-color: #3b4557;
}
.lp-btn-ghost:hover {
  border-color: #b9c2cf;
}
.dark-mode .lp-btn-ghost:hover {
  border-color: #55627a;
}
.lp-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-proof li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--lh-muted);
}
.lp-proof svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--lh-blue);
}
.lp-fine {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--lh-quiet);
}

/* -------------------------------------------------------- search card */
.lp-search-card {
  background: var(--lh-card);
  border: 1px solid var(--lh-line);
  border-radius: 16px;
  box-shadow: var(--lh-shadow-lift);
  padding: 24px;
}
.lp-search-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--lh-navy);
}
.lp-search-kinds {
  margin: 5px 0 18px;
  font-size: 12px;
  color: var(--lh-quiet);
}
.lp-field {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--lh-input-line);
  border-radius: 8px;
  background: var(--lh-input);
  color: var(--lh-ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.lp-field::placeholder {
  color: #98a1af;
}
.dark-mode .lp-field::placeholder {
  color: #7c8697;
}
.lp-field:focus,
.lp-search-card .lp-btn:focus-visible,
.hz-nav.lp-nav .lp-cta-btn:focus-visible {
  border-color: var(--lh-blue);
  box-shadow: 0 0 0 3px var(--lh-ring);
  outline: none;
}
.lp-select {
  appearance: none;
  cursor: pointer;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.lp-search-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  margin-bottom: 10px;
  padding: 0 13px;
  border: 1px solid var(--lh-input-line);
  border-radius: 8px;
  background: var(--lh-input);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.lp-search-field:focus-within {
  border-color: var(--lh-blue);
  box-shadow: 0 0 0 3px var(--lh-ring);
}
.lp-search-input {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--lh-ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.lp-search-input::placeholder {
  color: #98a1af;
}
.dark-mode .lp-search-input::placeholder {
  color: #7c8697;
}
.lp-search-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}
.lp-search-row .lp-btn {
  min-height: 44px;
  height: 44px;
  padding: 0 22px;
}

/* ----------------------------------------------------------- listings */
.lp-listings {
  padding: 64px 0 78px;
  border-top: 1px solid var(--lh-line);
  background: var(--lh-card);
}
.lp-sec-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.lp-sec-head {
  max-width: 640px;
  margin: 0 0 34px;
}
.lp-sec-row .lp-sec-head {
  margin: 0;
}
.lp-sec-head .lp-eyebrow {
  margin-bottom: 12px;
}
.lp-h2 {
  margin: 0 0 10px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--lh-navy);
}
.lp-sec-row .lp-h2 {
  margin: 0;
}
.lp-sec-sub {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--lh-muted);
}
.lp-browse {
  flex: none;
  padding: 0 0 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--lh-blue);
  cursor: pointer;
  white-space: nowrap;
}
.lp-browse:hover {
  color: var(--lh-blue-dark);
}
.lp-homes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-home {
  display: block;
  overflow: hidden;
  border: 1px solid var(--lh-line);
  border-radius: 16px;
  background: var(--lh-card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--lh-shadow-card);
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.lp-home:hover {
  border-color: var(--lh-line-strong);
  box-shadow: var(--lh-shadow-lift);
}
.lp-home-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--lh-img);
}
.lp-home-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-home-chip {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: #0c2340;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.16);
}
.lp-home-chip svg {
  width: 12px;
  height: 12px;
  color: #2563eb;
}
.lp-home-body {
  padding: 16px 18px 18px;
}
.lp-home-price {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--lh-navy);
}
.lp-home-price span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--lh-quiet);
}
.lp-home h3 {
  margin: 5px 0 2px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--lh-ink);
}
.lp-home-meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--lh-muted);
}
.lp-home-more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--lh-bluewash-line);
  border-radius: 16px;
  background: var(--lh-bluewash);
  color: inherit;
  text-decoration: none;
}
.lp-home-more.is-wide {
  grid-column: span 2;
}
.lp-home-more strong {
  max-width: 250px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  color: var(--lh-navy);
}
.lp-home-more span {
  font-size: 12.5px;
  color: var(--lh-muted);
}
.lp-home-more b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lh-blue);
}
.lp-home-more b svg {
  width: 15px;
  height: 15px;
}

/* ----------------------------------------------------------- services */
.lp-services {
  padding: 84px 0 92px;
  border-top: 1px solid var(--lh-line);
  background: var(--lh-wash);
}
.lp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-card {
  padding: 26px;
  border: 1px solid var(--lh-line);
  border-radius: 16px;
  background: var(--lh-card);
  box-shadow: var(--lh-shadow-card);
}
.lp-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--lh-bluewash);
  color: var(--lh-blue);
}
.lp-card h3 {
  margin: 0 0 7px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--lh-ink);
}
.lp-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--lh-muted);
}

/* --------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .lp-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .lp-homes,
  .lp-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .lp-home-more.is-wide {
    grid-column: span 1;
  }
}
@media (max-width: 860px) {
  .lp-wrap,
  .lp-nav-in {
    padding: 0 20px;
  }
  .lp-nav-in {
    height: 64px;
    gap: 16px;
  }
  .lp-hero {
    padding: 48px 0 56px;
  }
  .lp-hero h1 {
    font-size: 34px;
  }
  .lp-lede {
    font-size: 15.5px;
    max-width: none;
  }
  .lp-h2 {
    font-size: 28px;
  }
  .lp-listings {
    padding: 48px 0 56px;
  }
  .lp-services {
    padding: 56px 0 64px;
  }
  .lp-search-row {
    grid-template-columns: 1fr 1fr;
  }
  .lp-search-row .lp-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}
@media (max-width: 620px) {
  .lp-homes,
  .lp-cards {
    grid-template-columns: 1fr;
  }
  .lp-home-more,
  .lp-home-more.is-wide {
    grid-column: auto;
  }
  .lp-hero h1 {
    font-size: 30px;
  }
  .lp-search-row {
    grid-template-columns: 1fr;
  }
  .lp-actions {
    flex-direction: column;
  }
  .lp-actions .lp-btn {
    width: 100%;
  }
  .lp-sec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .lp-sec-head {
    margin-bottom: 24px;
  }
}
