/* ── Home page (v2: prompt-first) ────────────────────── */
/* Ensure [hidden] always wins even against display:flex/inline-flex rules */
.home-page [hidden] { display: none !important; }

/* ── Pilot Door gold/white/black palette (home page only) ── */
body.home-page {
  --cyan: #C6A15B;
  --cyan-dim: rgba(198, 161, 91, 0.08);
  --cyan-glow: rgba(198, 161, 91, 0.06);
  --bg: #ffffff;
  --surface: #ffffff;
  --border: rgba(150, 110, 50, 0.18);
  --border-bright: rgba(198, 161, 91, 0.4);
  --text: #111111;
  --muted: #888888;
}
/* Hide the global blue grid — canvas handles the interactive trail */
body.home-page::before,
body.home-page::after { display: none; }

.home-page {
  overflow-x: hidden;
  /* dvh = dynamic viewport height: matches the actually-visible area on mobile
     (excluding the collapsing URL/tab bar) so the footer's flex layout always
     pins it to the real bottom edge. 100vh is the fallback for older browsers. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* White background on home page only */
.home-page {
  background: #fff;
}

/* Soft drifting gold aurora behind everything — replaces the static glow-only
   backdrop so the page feels alive without competing with the content. */
.home-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.home-aurora::before,
.home-aurora::after {
  content: '';
  position: absolute;
  width: 56vw;
  height: 56vw;
  min-width: 480px;
  min-height: 480px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.home-aurora::before {
  top: -22%;
  left: -12%;
  background: radial-gradient(circle, rgba(227, 192, 131, 0.35) 0%, transparent 65%);
  animation: aurora-drift-a 16s ease-in-out infinite alternate;
}
.home-aurora::after {
  bottom: -28%;
  right: -14%;
  background: radial-gradient(circle, rgba(198, 161, 91, 0.28) 0%, transparent 65%);
  animation: aurora-drift-b 20s ease-in-out infinite alternate;
}
@keyframes aurora-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vw, 4vh) scale(1.12); }
}
@keyframes aurora-drift-b {
  from { transform: translate(0, 0) scale(1.08); }
  to   { transform: translate(-5vw, -4vh) scale(1); }
}

/* Interactive dot grid canvas */
#homeGrid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Ensure all page content sits above the canvas */
.home-top-left,
.home-top-right,
.home-main,
.home-footer,
.auth-modal {
  position: relative;
  z-index: 1;
}

/* Top-left Pilot Door logo */
.home-top-left {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 10;
}
.home-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);     /* Pilot Door in brand cyan */
  text-decoration: none;
}
.home-logo sup {
  font-size: 0.5em;
  font-weight: 700;
  vertical-align: super;
  color: #111111;
}

/* Top-right sign-in / get-started / user greeting */
.home-top-right {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-signin-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 8px 16px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.home-signin-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(198, 161, 91, 0.06);
}

/* Primary conversion CTA — gold gradient pill with a slow sheen sweep */
.home-cta-btn {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 99px;
  padding: 9.5px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #E3C083 0%, #C6A15B 45%, #A0824D 100%);
  box-shadow: 0 4px 18px rgba(198, 161, 91, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}
.home-cta-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: cta-sheen 4.5s ease-in-out infinite;
}
@keyframes cta-sheen {
  0%, 60% { left: -80%; }
  100%    { left: 160%; }
}
.home-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(198, 161, 91, 0.6);
}
.home-cta-btn:active { transform: translateY(0); }
.home-user-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, color 0.15s;
}
.home-user-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.home-user-link[hidden] { display: none; }
.nav-login {
  font-size: 17px;
  font-weight: 600;
  padding: 6px 16px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.nav-login:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(198, 161, 91, 0.05);
}

.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Two-column stage: pitch + prompt on the left, live AI chat demo on the
   right. Collapses to a single centered column below 980px. */
.home-hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 56px;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 40px 36px;
}

/* ── Hero ────────────────────────────────────────────── */
.home-hero {
  position: relative;
  text-align: left;
  width: 100%;
}

.home-prompt-wrap {
  margin-top: 30px;
}

.home-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(198, 161, 91, 0.14) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: home-glow-drift 10s ease-in-out infinite alternate;
}
@keyframes home-glow-drift {
  from { transform: translateX(-50%) scale(1); opacity: 0.7; }
  to   { transform: translateX(-45%) scale(1.1); opacity: 1; }
}

.home-eyebrow {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.home-title {
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
/* Animated gold sheen sweeping across the gradient words */
.home-title-grad {
  background: linear-gradient(120deg, #C6A15B 0%, #8B6914 38%, #E3C083 52%, #8B6914 66%, #C6A15B 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-sheen 7s ease-in-out infinite;
}
@keyframes title-sheen {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}
/* Brand identity: Pilot Door = cyan, AI = solid purple (consistent across the app) */
.home-title-brand {
  color: var(--cyan);
}
.home-title-sup {
  font-size: 0.35em;
  font-weight: 700;
  vertical-align: super;
  color: #dc2626;
  letter-spacing: 0.5px;
}

.home-sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 14px;
}
.home-sub-word {
  color: var(--cyan);
  font-weight: 700;
  font-size: 1.15em;
  display: inline-block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.home-sub-word.cycling-out {
  opacity: 0;
  transform: translateY(-6px);
}

/* Focus mode — blur everything except title, prompt, chips */
.home-eyebrow,
.home-sub,
.home-demo,
.home-footer,
.home-glow {
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.home-page.prompt-focused .home-eyebrow,
.home-page.prompt-focused .home-sub,
.home-page.prompt-focused .home-demo,
.home-page.prompt-focused .home-footer,
.home-page.prompt-focused .home-glow {
  filter: blur(4px);
  opacity: 0.25;
  pointer-events: none;
}

/* Prompt box */
.home-prompt {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 14px 14px 14px 20px;
  box-shadow: 0 4px 24px rgba(198, 161, 91, 0.10);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.home-prompt:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 6px 28px rgba(198, 161, 91, 0.18);
}

.home-prompt-input {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
  background: transparent;
  max-height: 200px;
  padding: 4px 0;
}
.home-prompt-input::placeholder {
  color: var(--muted);
}

.home-prompt-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: var(--cyan);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
}
.home-prompt-btn:hover  { background: #a8823d; }
.home-prompt-btn:active { transform: scale(0.95); }
.home-prompt-btn:disabled {
  background: var(--border);
  cursor: not-allowed;
}

/* Example chips */
.home-examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.home-examples-label {
  font-size: 16px;
  color: var(--muted);
}
.home-chip {
  font-size: 16px;
  padding: 6px 14px;
  background: rgba(198, 161, 91, 0.07);
  border: 1px solid rgba(198, 161, 91, 0.22);
  color: var(--text);
  border-radius: 99px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.home-chip:hover {
  background: rgba(198, 161, 91, 0.14);
  border-color: var(--cyan);
}
/* Desktop and mobile each render their own set of example chips —
   different label lengths suit each viewport. */
.home-chip--mobile  { display: none; }
@media (max-width: 720px) {
  .home-chip--desktop { display: none; }
  .home-chip--mobile  { display: inline-block; }
}

/* Trust row under the prompt — quick credibility scan */
.home-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.home-trust li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.home-trust li::before {
  content: '✓';
  font-weight: 800;
  font-size: 12px;
  color: #047857;
  background: rgba(4, 120, 87, 0.1);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Live AI chat demo ───────────────────────────────── */
.home-demo {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-demo-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(198, 161, 91, 0.28);
  border-radius: 22px;
  box-shadow:
    0 30px 80px -28px rgba(139, 105, 20, 0.4),
    0 6px 28px rgba(198, 161, 91, 0.14);
  backdrop-filter: blur(10px);
  overflow: hidden;
  animation: demo-float 7s ease-in-out infinite alternate;
}
@keyframes demo-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}
/* Thin gold accent along the top edge */
.home-demo-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #E3C083, #C6A15B 50%, #8B6914);
  z-index: 1;
}

.home-demo-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(198, 161, 91, 0.18);
  background: rgba(255, 252, 246, 0.9);
}
.home-demo-logo img { display: block; }
.home-demo-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}
.home-demo-title sup {
  font-size: 0.6em;
  font-weight: 700;
  color: #dc2626;          /* brand rule: superscript AI is always red */
  margin-left: 1px;
}
.home-demo-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #047857;
  background: rgba(4, 120, 87, 0.08);
  border: 1px solid rgba(4, 120, 87, 0.22);
  border-radius: 99px;
  padding: 4px 10px;
}
.home-demo-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #059669;
  animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45); }
  55%      { box-shadow: 0 0 0 5px rgba(5, 150, 105, 0); }
}

.home-demo-body {
  height: 442px;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

/* Chat bubbles */
.demo-msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  flex-shrink: 0;
  overflow-wrap: break-word;
}
.demo-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #d4af6f 0%, #b18b46 100%);
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 3px 12px rgba(198, 161, 91, 0.3);
}
.demo-msg--ai {
  align-self: flex-start;
  background: #f7f2e8;
  border: 1px solid rgba(198, 161, 91, 0.16);
  color: var(--text);
  border-bottom-left-radius: 5px;
}
.demo-pop { animation: demo-pop-in 0.26s ease-out; }
@keyframes demo-pop-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Blinking caret while the "user" types */
.demo-typing::after {
  content: '▍';
  margin-left: 1px;
  color: rgba(255, 255, 255, 0.9);
  animation: demo-caret 0.9s steps(2) infinite;
}
@keyframes demo-caret {
  50% { opacity: 0; }
}

/* AI "thinking" indicator */
.demo-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 14px 16px;
}
.demo-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C6A15B;
  animation: demo-dot-bounce 1.1s ease-in-out infinite;
}
.demo-dots span:nth-child(2) { animation-delay: 0.15s; }
.demo-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes demo-dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

/* Listing mini-cards inside the chat */
.demo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  flex-shrink: 0;
}
.demo-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  animation: demo-pop-in 0.3s ease-out;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.demo-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 10px 26px rgba(198, 161, 91, 0.25);
}
.demo-card-photowrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #efe7d7 0%, #e0d2b5 100%);
}
.demo-card-photowrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Photo failed to load → hide the broken img, keep the gold gradient */
.demo-card--nophoto img { display: none; }
.demo-card--nophoto .demo-card-photowrap::after {
  content: '⌂';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: rgba(139, 105, 20, 0.4);
}
.demo-card-status {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}
.demo-card-status--active  { background: #047857; }
.demo-card-status--pending { background: #b45309; }
.demo-card-status--sold    { background: #475569; }
.demo-card-drop {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  background: #dc2626;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}
.demo-card-dom {
  position: absolute;
  bottom: 7px;
  left: 7px;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}
/* Year-built pill — bottom-right of the demo card photo (style3.css is not
   loaded on the home page, so .card-yr-pill is defined here too). */
.demo-card-photowrap .card-yr-pill {
  position: absolute;
  bottom: 7px;
  right: 7px;
  z-index: 3;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.demo-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 10px;
}
.demo-card-price {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  color: var(--text);
}
.demo-card-addr {
  font-size: 11.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-card-mls {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-card-meta {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Faux input bar — clicking it focuses the real prompt box */
.home-demo-inputbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 14px 14px;
  padding: 8px 8px 8px 16px;
  border: 1.5px dashed rgba(198, 161, 91, 0.5);
  border-radius: 14px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.home-demo-inputbar:hover {
  border-color: var(--cyan);
  box-shadow: 0 4px 16px rgba(198, 161, 91, 0.18);
}
.home-demo-inputbtn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--cyan);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-demo-caption {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* Loading shimmer while the featured listings are fetched */
.demo-skel {
  width: 64%;
  height: 38px;
  background: linear-gradient(90deg, #eee6d4 0%, #f8f4ea 50%, #eee6d4 100%);
  background-size: 200% 100%;
  animation: home-skel-shimmer 1.6s ease-in-out infinite;
  border: none;
  box-shadow: none;
}
.demo-skel--wide { width: 78%; }
.demo-card-skel {
  height: 150px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eee6d4 0%, #f8f4ea 50%, #eee6d4 100%);
  background-size: 200% 100%;
  animation: home-skel-shimmer 1.6s ease-in-out infinite;
}
@keyframes home-skel-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── Auth modal ──────────────────────────────────────── */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-modal[hidden] { display: none; }

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 26, 46, 0.55);
  backdrop-filter: blur(4px);
}

.auth-modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  padding: 28px 28px 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  animation: auth-modal-pop 0.18s ease-out;
}
@keyframes auth-modal-pop {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.auth-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 31px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}
.auth-modal-close:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.auth-modal-head {
  text-align: center;
  margin-bottom: 18px;
}
.auth-modal-logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #FFD060 0%, #9A6C08 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.auth-modal-tagline {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 10px;
}
/* What you get — quick benefit scan above the signup form */
.auth-benefits {
  list-style: none;
  margin: 0 auto 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: fit-content;
  text-align: left;
}
.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
}
.auth-benefits li::before {
  content: '✓';
  font-weight: 800;
  font-size: 11px;
  color: #047857;
  background: rgba(4, 120, 87, 0.1);
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-modal-prompt-echo {
  font-size: 16px;
  font-style: italic;
  color: var(--text);
  background: rgba(198, 161, 91, 0.07);
  border-left: 3px solid var(--cyan);
  padding: 8px 12px;
  border-radius: 6px;
  margin: 8px 0 0;
  text-align: left;
  max-height: 80px;
  overflow: hidden;
}
.auth-modal-prompt-echo:empty { display: none; }

.auth-modal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}
.auth-modal-tab {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  padding: 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.auth-modal-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.auth-modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-modal-form[hidden] { display: none !important; }

/* Password field with eye toggle */
.auth-pw-wrap {
  position: relative;
}
.auth-pw-wrap input {
  width: 100%;
  padding-right: 44px;
  box-sizing: border-box;
}
.auth-pw-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  display: flex;
  align-items: center;
  line-height: 1;
}
.auth-pw-eye:hover { color: var(--text); }
.auth-pw-eye svg[hidden] { display: none !important; }

/* Remember me checkbox */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.auth-remember input[type=checkbox] {
  width: 15px;
  height: 15px;
  accent-color: var(--cyan);
  cursor: pointer;
  padding: 0;
  border: none;
}
/* Terms agree row */
.auth-agent-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.auth-agent-label input[type=checkbox] {
  width: 15px;
  height: 15px;
  accent-color: var(--cyan);
  cursor: pointer;
  flex-shrink: 0;
}

.auth-terms-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.auth-terms-label input[type=checkbox] {
  width: 15px;
  height: 15px;
  accent-color: var(--cyan);
  cursor: pointer;
  flex-shrink: 0;
}
.auth-terms-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--cyan);
  cursor: pointer;
  text-decoration: underline;
}
.auth-terms-link:hover { opacity: 0.75; }

.auth-modal-form input {
  width: 100%;
  padding: 11px 14px;
  font-size: 17px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
}
.auth-modal-form input:focus { border-color: var(--cyan); }

.auth-modal-submit {
  width: 100%;
  padding: 12px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--cyan);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s;
}
.auth-modal-submit:hover { background: #a8823d; }
.auth-modal-submit:disabled { background: var(--border); cursor: wait; }

.auth-modal-msg {
  font-size: 16px;
  text-align: center;
  margin: 4px 0 0;
  min-height: 18px;
}
.auth-modal-msg.error   { color: #ef4444; }
.auth-modal-msg.success { color: #22c55e; }

.auth-modal-google { margin: 4px 0 8px; }
.auth-modal-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 12px;
  color: var(--muted);
}
.auth-modal-divider::before, .auth-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.auth-modal-footnote {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
}

/* ── Beta Testing notice (inside modal) ─────── */
.auth-beta-notice {
  margin: 0 0 14px;
  padding: 10px 13px;
  background: rgba(198, 161, 91, 0.09);
  border: 1px solid rgba(198, 161, 91, 0.35);
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.55;
  color: #666;
}
.auth-beta-notice strong {
  color: var(--cyan);
}

/* Footer — flex-shrink:0 keeps it at its natural height even when the parent
   runs short; combined with .home-page using 100dvh + .home-main flex:1, the
   footer (and its cyan top divider) always sits flush with the bottom edge. */
.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  border-top: 3px solid var(--cyan);
  background: #fff;
  flex: 0 0 auto;
  margin-top: auto;
}
.home-footer small { color: var(--muted); font-size: 12px; }

.home-footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.home-footer-link {
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
}
.home-footer-link:hover { color: var(--cyan); }

/* Legal modals (Terms / Policy) */
.home-legal-panel {
  max-height: 75vh;
  overflow-y: auto;
}
.home-legal-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-legal-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
  margin-bottom: -4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.home-legal-body ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-legal-body code {
  font-size: 12px;
  background: rgba(255,255,255,0.07);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Inquiry textarea */
.home-inquiry-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 17px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s;
  min-height: 90px;
  box-sizing: border-box;
}
.home-inquiry-textarea:focus { border-color: var(--cyan); }

/* Tablet & below — stack the demo under a centered hero */
@media (max-width: 980px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 96px 20px 32px;
  }
  .home-hero { text-align: center; }
  .home-sub { margin: 0 auto 14px; }
  .home-examples { justify-content: center; }
  .home-trust { justify-content: center; }
  .home-demo-panel { max-width: 480px; }
  .home-demo-body { height: 400px; }
}

/* Mobile */
@media (max-width: 720px) {
  .home-hero-grid { padding: 84px 16px 28px; gap: 30px; }
  /* Eyebrow text on mobile — smaller font + tighter letter-spacing so it
     fits on one line without colliding with the logo/user-link bar above. */
  .home-eyebrow {
    font-size: 10px;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
  }
  .home-prompt-wrap { margin-top: 22px; }
  /* Tighten logo and top-bar controls for smaller screens */
  .home-logo { font-size: 15px; }
  .home-logo img, .home-logo picture img { width: 46px !important; height: 46px !important; }
  .home-top-left { top: 14px; left: 14px; }
  .home-top-right { top: 14px; right: 12px; gap: 7px; }
  .home-signin-btn { padding: 7px 12px; font-size: 12.5px; }
  .home-signin-btn svg { display: none; }
  .home-cta-btn { padding: 8px 14px; font-size: 12.5px; }

  .home-prompt { padding: 10px 10px 10px 14px; }
  /* Cap the textarea height on mobile so a long/prefilled prompt doesn't
     dominate the screen — it scrolls internally past this cap instead. */
  .home-prompt-input { font-size: 18px; max-height: 96px; }
  .home-trust { gap: 6px 14px; font-size: 12px; }

  /* Chat demo sizing on phones */
  .home-demo-body { height: 372px; padding: 14px 12px 10px; gap: 10px; }
  .demo-msg { font-size: 13.5px; max-width: 88%; }
  .demo-card-price { font-size: 13.5px; }
  .demo-card-addr { font-size: 10.5px; }
  .demo-card-meta { font-size: 9.5px; }
  .home-demo-caption { font-size: 11.5px; }

  .auth-modal-panel { padding: 22px 20px 18px; }

  /* Tighten footer link gaps on mobile to prevent text wrapping */
  .home-footer-links { gap: 10px; }
}

/* Respect users who prefer minimal motion — freeze the decorative
   animations; home.js renders the chat demo statically for them too. */
@media (prefers-reduced-motion: reduce) {
  .home-aurora::before,
  .home-aurora::after,
  .home-demo-panel,
  .home-cta-btn::after,
  .home-title-grad,
  .home-glow,
  .home-demo-live-dot {
    animation: none !important;
  }
}

/* ── Cockpit Door — saved search-criteria presets ─────────────────── */
.cockpit-trigger {
  flex-shrink: 0;
  width: 40px; height: 40px;
  margin-right: 8px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color .15s, border-color .15s, background .15s;
}
.cockpit-trigger:hover { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-dim); }

.cockpit-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(15, 30, 50, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.cockpit-overlay[hidden] { display: none !important; }
.cockpit-window {
  position: relative;
  width: 100%; max-width: 520px;
  max-height: 88vh; overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 40, 80, .22);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.cockpit-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.cockpit-title { font-size: 17px; font-weight: 600; margin: 0; }
.cockpit-close {
  width: 30px; height: 30px;
  border: none; background: transparent;
  font-size: 24px; line-height: 1; color: var(--muted);
  cursor: pointer; border-radius: 8px;
}
.cockpit-close:hover { background: var(--bg); color: var(--text); }
.cockpit-body { padding: 16px 20px; }
.cockpit-intro { font-size: 13px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }

.cockpit-preset-row { display: flex; gap: 8px; margin-bottom: 16px; }
.cockpit-select {
  flex: 1; min-width: 0;
  padding: 9px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text); font-size: 14px;
  font-family: inherit;
}
.cockpit-select:focus { outline: none; border-color: var(--cyan); }

.cockpit-label {
  display: block;
  font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 16px;
}
.cockpit-input {
  width: 100%; box-sizing: border-box;
  margin-top: 6px;
  padding: 9px 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text); font-size: 14px;
  font-family: inherit;
}
.cockpit-input:focus { outline: none; border-color: var(--cyan); }

.cockpit-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.cockpit-group-title {
  font-size: 13px; font-weight: 700; color: var(--cyan);
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 12px;
}
.cockpit-field {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text);
  margin-bottom: 10px;
  white-space: nowrap;
}
.cockpit-field:last-child { margin-bottom: 0; }
.cockpit-field > .cockpit-input { flex: 1; margin-top: 0; min-width: 0; }

.cockpit-nice-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.cockpit-nice-row { display: flex; align-items: center; gap: 8px; }
.cockpit-nice-row > .cockpit-input { margin-top: 0; }
.cockpit-nice-remove {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  background: transparent; color: var(--muted);
  border-radius: 8px; font-size: 18px; line-height: 1;
  cursor: pointer;
}
.cockpit-nice-remove:hover { border-color: #f44336; color: #f44336; }

.cockpit-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.cockpit-dirty-tag { font-size: 12px; color: var(--muted); margin-right: auto; }

.cockpit-btn-primary {
  padding: 9px 18px; border: none; border-radius: 9px;
  background: var(--cyan); color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: opacity .15s;
}
.cockpit-btn-primary:hover { opacity: .88; }
.cockpit-btn-secondary {
  padding: 9px 14px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg); color: var(--text);
  font-size: 14px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.cockpit-btn-secondary:hover { border-color: var(--cyan); }
.cockpit-btn-danger {
  padding: 9px 14px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg); color: var(--muted);
  font-size: 14px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.cockpit-btn-danger:hover { border-color: #f44336; color: #f44336; }

.cockpit-confirm {
  position: absolute; inset: 0;
  background: rgba(15, 30, 50, .35);
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
}
.cockpit-confirm[hidden] { display: none !important; }
.cockpit-confirm-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  width: 320px; max-width: 90%;
  box-shadow: 0 8px 32px rgba(0, 40, 80, .25);
}
.cockpit-confirm-text { font-size: 15px; font-weight: 600; margin: 0 0 14px; }
.cockpit-confirm-remind {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 16px;
  cursor: pointer;
}
.cockpit-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ── Cookie consent modal ────────────────────────────────── */
.cookie-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 9, 20, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cookie-consent-overlay[hidden] { display: none !important; }
.cookie-consent-box {
  background: #0d1829;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cookie-consent-logo {
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #C6A15B;
}
.cookie-consent-title {
  font-size: 20px;
  font-weight: 700;
  color: #e8f0fe;
  margin: 0;
}
.cookie-consent-body {
  font-size: 14px;
  color: #7a9cc0;
  line-height: 1.7;
  margin: 0;
}
.cookie-policy-link {
  background: none; border: none; padding: 0;
  color: #C6A15B; cursor: pointer; font-size: 14px;
  text-decoration: underline;
}
.cookie-accept-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #C6A15B 0%, #A0824D 100%);
  border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  color: #fff; cursor: pointer;
  box-shadow: 0 4px 20px rgba(198,161,91,0.35);
  transition: opacity 0.2s, transform 0.1s;
}
.cookie-accept-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.cookie-accept-btn:active { transform: translateY(0); }
