:root {
  --forest: #1a3327;
  --sage: #4a7c59;
  --stone: #b5a99a;
  --cream: #f5f0eb;
  --white: #ffffff;
  --gold: #c9a84c;
  --dark: #111;
}

body.landing-page {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background: var(--cream);
  overflow-x: hidden;
}

/* ── NAV ── */
.landing-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.logo span {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--forest);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover { background: #e0bc62; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--white); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom,
      rgba(10, 30, 20, 0.72) 0%,
      rgba(10, 30, 20, 0.45) 50%,
      rgba(10, 30, 20, 0.75) 100%),
    url('https://images.unsplash.com/photo-1551632811-561732d1e306?w=1800&q=85&fit=crop');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.03);
  animation: slowZoom 18s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1.03); }
  to   { transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 2rem;
  animation: fadeUp 1s ease 0.2s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 0.35rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--forest);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: #e0bc62;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.9rem 2.2rem;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.07);
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeUp 1s ease 1.2s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ── PROBLEM / SOLUTION SPLIT ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.split-left {
  background: #2a2a2a;
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-right {
  background: var(--forest);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.split-left .split-label { color: #888; }
.split-right .split-label { color: var(--gold); }

.split h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.split-left h2 { color: #ccc; }
.split-right h2 { color: var(--white); }

.split p {
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
}

.split-left p { color: #888; }
.split-right p { color: rgba(255,255,255,0.7); }

.divider-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  font-size: 1.4rem;
}

.split-wrapper {
  position: relative;
}

/* ── HOW IT WORKS ── */
.how {
  padding: 7rem 3rem;
  background: var(--cream);
  text-align: center;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: #666;
  max-width: 520px;
  margin: 0 auto 4.5rem;
  line-height: 1.7;
  font-weight: 300;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  background: var(--white);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  text-align: left;
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(74, 124, 89, 0.12);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.65;
  font-weight: 300;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  font-size: 1.2rem;
  padding-top: 2rem;
}

/* ── PRICING ── */
.pricing {
  background: var(--forest);
  padding: 7rem 3rem;
  text-align: center;
}

.pricing .section-label { color: var(--gold); }
.pricing .section-title { color: var(--white); }
.pricing .section-sub { color: rgba(255,255,255,0.6); }

.price-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 3.5rem 3rem;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.price-amount sup {
  font-size: 1.5rem;
  vertical-align: super;
  font-weight: 400;
}

.price-desc {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2.5rem;
}

.price-features li {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 300;
}

.price-features li::before {
  content: '\2713';
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
}

/* ── FOOTER ── */
.landing-footer {
  background: #0d1f18;
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.footer-logo span { color: var(--gold); }

.landing-footer p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ── UPLOAD / PAYMENT PAGES ── */
.upload-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  background: var(--cream);
}

.upload-container {
  max-width: 520px;
  width: 100%;
}

.upload-sub {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.upload-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  padding: 2.5rem 2rem;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--forest);
}

.form-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--stone);
  border-radius: 2px;
  background: var(--white);
  color: var(--dark);
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.form-file {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #666;
}

.form-file::file-selector-button {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  margin-right: 1rem;
  border: 1px solid var(--stone);
  border-radius: 2px;
  background: var(--cream);
  color: var(--forest);
  cursor: pointer;
  transition: background 0.2s;
}

.form-file::file-selector-button:hover {
  background: var(--stone);
  color: var(--white);
}

.upload-note {
  font-size: 0.8rem;
  color: #999;
  text-align: center;
  margin-top: 0.25rem;
}

.upload-errors {
  background: #fdf2f2;
  border: 1px solid #e8c4c4;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.upload-errors p {
  font-size: 0.85rem;
  color: #a33;
  line-height: 1.6;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(74, 124, 89, 0.15);
  border-top-color: var(--sage);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .landing-nav { padding: 1.25rem 1.5rem; }
  .split { grid-template-columns: 1fr; }
  .split-left, .split-right { padding: 3.5rem 2rem; }
  .divider-arrow { display: none; }
  .steps { grid-template-columns: 1fr; }
  .how, .pricing { padding: 5rem 1.5rem; }
  .landing-footer { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════
   APP LAYOUT - For logged-in users (buyers/realtors)
   ══════════════════════════════════════════════════════════════ */

body.app-layout {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── APP NAV ── */
.app-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--forest);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.app-nav .logo {
  font-size: 1.25rem;
}

.app-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.app-nav .nav-link {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.app-nav .nav-link:hover,
.app-nav .nav-link.active {
  color: var(--white);
}

.app-nav .nav-cta {
  font-size: 0.75rem;
  padding: 0.5rem 1.2rem;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.15);
}

.nav-user-name {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}

.sign-out {
  font-size: 0.75rem !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* ── APP MAIN ── */
.app-main {
  flex: 1;
  padding-top: 60px; /* Account for fixed nav */
}

/* ── APP FOOTER ── */
.app-footer {
  background: var(--forest);
  padding: 1.5rem 2rem;
  text-align: center;
}

.app-footer p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ── FLASH MESSAGES ── */
.flash {
  padding: 1rem 2rem;
  font-size: 0.9rem;
  text-align: center;
}

.flash-notice {
  background: rgba(74, 124, 89, 0.1);
  color: var(--sage);
  border-bottom: 1px solid rgba(74, 124, 89, 0.2);
}

.flash-alert {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

/* ── APP RESPONSIVE ── */
@media (max-width: 768px) {
  .app-nav { padding: 0.75rem 1rem; }
  .app-nav .nav-right { gap: 0.75rem; }
  .nav-user { padding-left: 0.75rem; }
  .nav-user-name { display: none; }
}
