/* ─── Variables ─────────────────────────────────────────── */
:root {
  --cream: #FAF7F2;
  --warm-white: #F5F0E8;
  --charcoal: #1C1917;
  --charcoal-60: rgba(28, 25, 23, 0.6);
  --charcoal-30: rgba(28, 25, 23, 0.3);
  --charcoal-10: rgba(28, 25, 23, 0.1);
  --terracotta: #C4622D;
  --terracotta-dark: #A8521F;
  --gold: #D4A843;
  --sage: #7A8C6E;
  --text-muted: #6B6560;
  --border: #E5E0D8;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 7rem;

  --max-w: 1200px;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Noise texture overlay ─────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ─── Nav ─────────────────────────────────────────────────── */
.nav {
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
}

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

.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-left: auto;
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-texture {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(212, 168, 67, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 60%, rgba(196, 98, 45, 0.06) 0%, transparent 70%);
}

.hero-bg-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212, 168, 67, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.hero-kicker {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--space-lg);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: var(--space-lg);
}

.hero-lede {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--charcoal-60);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Stats ─────────────────────────────────────────────────── */
.stats {
  background: var(--charcoal);
  color: var(--cream);
  padding: var(--space-2xl) 2rem;
}

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  flex: 1;
  padding: 0 var(--space-xl);
}

.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(250, 247, 242, 0.7);
  margin-bottom: 0.4rem;
}

.stat-source {
  display: block;
  font-size: 0.7rem;
  color: rgba(250, 247, 242, 0.4);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: rgba(250, 247, 242, 0.15);
  flex-shrink: 0;
}

/* ─── Section shared ───────────────────────────────────────── */
.section-kicker {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.section-headline em {
  font-style: italic;
  color: var(--terracotta);
}

/* ─── How ─────────────────────────────────────────────────── */
.how {
  padding: var(--space-3xl) 2rem;
}

.how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.how-inner .section-headline {
  margin-bottom: var(--space-2xl);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.step {
  padding: var(--space-xl) var(--space-lg);
  border-right: 1px solid var(--border);
}
.step:last-child { border-right: none; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--terracotta);
  margin-bottom: var(--space-md);
}

.step-body {}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

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

/* ─── Features ─────────────────────────────────────────────── */
.features {
  background: var(--warm-white);
  padding: var(--space-3xl) 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.features-col--left {
  position: sticky;
  top: 100px;
}

.features-intro {
  margin-top: var(--space-lg);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.feature-item:last-child { border-bottom: none; }

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--terracotta);
}

.feature-icon svg { display: block; }

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Pricing ─────────────────────────────────────────────── */
.pricing {
  padding: var(--space-3xl) 2rem;
}

.pricing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.pricing-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
  margin-top: 0.75rem;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.plan {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-xl);
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.plan:hover {
  box-shadow: 0 8px 40px rgba(28, 25, 23, 0.1);
  transform: translateY(-2px);
}

.plan--standard {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 1px var(--terracotta), 0 4px 24px rgba(196, 98, 45, 0.08);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--terracotta);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  margin-bottom: 0.25rem;
}

.plan-currency {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--charcoal);
  align-self: flex-start;
  margin-top: 0.4rem;
}

.plan-amount {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1;
}

.plan-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.plan-features li {
  font-size: 0.88rem;
  color: var(--charcoal-60);
  padding-left: 1.5rem;
  position: relative;
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

/* ─── Closing ─────────────────────────────────────────────── */
.closing {
  background: var(--charcoal);
  color: var(--cream);
  padding: var(--space-3xl) 2rem;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.closing-body {
  font-size: 1rem;
  color: rgba(250, 247, 242, 0.6);
  line-height: 1.7;
}

/* ─── Lead form ─────────────────────────────────────────────── */
.lead-form {
  margin-top: var(--space-xl);
}

.lead-form-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.lead-form-field {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
}

.lead-form-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(250, 247, 242, 0.2);
  background: rgba(250, 247, 242, 0.1);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.lead-form-field input::placeholder { color: rgba(250, 247, 242, 0.45); }
.lead-form-field input:focus { border-color: rgba(250, 247, 242, 0.5); }

.lead-form-submit {
  padding: 0.85rem 1.75rem;
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.lead-form-submit:hover { background: var(--terracotta-dark); }
.lead-form-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.lead-form-msg {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.7);
}

.lead-form-msg.success { color: var(--sage); }
.lead-form-msg.error { color: #f87171; }

.closing-trust {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: rgba(250, 247, 242, 0.35);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hidden { display: none; }

.spinner {
  animation: spin 0.8s linear infinite;
}

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

/* ─── Nav dashboard link ─────────────────────────────────── */
.nav-dashboard-link {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--charcoal-60);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-dashboard-link:hover {
  color: var(--charcoal);
  border-color: var(--charcoal-30);
}

/* ─── Dashboard ─────────────────────────────────────────── */
.dashboard-page {
  min-height: 100vh;
  background: var(--cream);
}

.dashboard-header {
  background: var(--charcoal);
  color: var(--cream);
  padding: var(--space-xl) 2rem;
}

.dashboard-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.dashboard-meta {
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.5);
}

.dashboard-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.dashboard-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) 2rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
}

.stat-card-value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-card--accent { border-color: var(--terracotta); }
.stat-card--accent .stat-card-value { color: var(--terracotta); }

.leads-table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
}

.leads-table th {
  padding: 0.9rem 1.25rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--warm-white);
}

.leads-table td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.leads-table tr:last-child td { border-bottom: none; }
.leads-table tr:hover td { background: var(--warm-white); }

.lead-name {
  font-weight: 500;
  display: block;
}

.lead-phone {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-new { background: rgba(212, 168, 67, 0.15); color: #8a6914; }
.status-contacted { background: rgba(122, 140, 110, 0.15); color: #4a5e3c; }
.status-qualified { background: rgba(196, 98, 45, 0.12); color: var(--terracotta); }
.status-converted { background: rgba(122, 140, 110, 0.2); color: var(--sage); }
.status-lost { background: rgba(28, 25, 23, 0.08); color: var(--charcoal-60); }

.source-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  background: var(--charcoal-10);
  color: var(--charcoal-60);
}

.btn-update-status {
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.78rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-update-status:hover { background: var(--warm-white); }

.empty-state {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

@media (max-width: 900px) {
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .lead-form-row { flex-direction: column; align-items: stretch; }
  .lead-form-field { max-width: 100%; }
  .dashboard-header-inner { flex-direction: column; align-items: flex-start; }
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: var(--space-2xl) 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

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

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--charcoal-30);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-inner {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .stat {
    padding: 0;
    text-align: center;
    width: 100%;
  }

  .stat-divider { display: none; }

  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); padding: var(--space-lg) 0; }
  .step:last-child { border-bottom: none; }

  .features-inner { grid-template-columns: 1fr; }
  .features-col--left { position: static; }

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

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .hero { padding: var(--space-2xl) 1.5rem; min-height: auto; }
  .how, .features, .pricing { padding: var(--space-2xl) 1.5rem; }
  .closing { padding: var(--space-2xl) 1.5rem; }

  .nav-tagline { display: none; }

  .plan { padding: var(--space-lg); }
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-headline, .hero-lede, .hero-kicker {
  animation: fadeUp 0.7s ease both;
}

.hero-headline { animation-delay: 0.1s; }
.hero-lede { animation-delay: 0.25s; }
.hero-kicker { animation-delay: 0s; }
