/* ── Landing page styles ─────────────────────────────────────────────────── */

.landing-body {
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f0f0;
}

.landing-brand {
  font-weight: 800;
  font-size: 1.3rem;
  color: #16a34a;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.landing-nav-links { display: flex; gap: 1rem; align-items: center; }

.btn-ghost {
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: #374151;
  border: 1.5px solid #e5e7eb;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: #16a34a; color: #16a34a; }
.btn-ghost-primary { background: #16a34a; color: #fff !important; border-color: #16a34a; }
.btn-ghost-primary:hover { background: #15803d; border-color: #15803d; color: #fff !important; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

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

.hero-badge {
  display: inline-block;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #111827;
  margin-bottom: 1.25rem;
}

.hero-accent {
  background: linear-gradient(135deg, #16a34a, #15803d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

/* ── Auth options ────────────────────────────────────────────────────────── */

.auth-options {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-card:hover {
  border-color: #16a34a;
  box-shadow: 0 4px 16px rgba(22,163,74,0.08);
}

.auth-card-icon {
  font-size: 1.4rem;
  width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-card-body { flex: 1; }
.auth-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.2rem;
}
.auth-card-body p {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.4;
}

.auth-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-auth {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s;
  display: inline-block;
  text-align: center;
}
.btn-google { background: #16a34a; color: #fff; }
.btn-google:hover { background: #15803d; color: #fff; }
.btn-email { background: #f3f4f6; color: #111827; }
.btn-email:hover { background: #e5e7eb; }

.btn-auth-secondary {
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.8rem;
  border: 1.5px solid #e5e7eb;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  background: #fff;
  color: #6b7280;
  transition: border-color 0.15s, color 0.15s;
  display: inline-block;
  text-align: center;
}
.btn-auth-secondary:hover { border-color: #16a34a; color: #16a34a; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #9ca3af;
  font-size: 0.82rem;
  margin: 0.6rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* ── Email form ──────────────────────────────────────────────────────────── */

.email-form-wrapper {
  margin-top: 1.5rem;
}

.email-form {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.email-form h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.email-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.email-form input {
  padding: 0.6rem 0.85rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.email-form input:focus { border-color: #16a34a; }

.btn-submit {
  padding: 0.65rem;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-submit:hover { background: #15803d; }

.form-switch {
  font-size: 0.82rem;
  color: #6b7280;
  text-align: center;
}
.form-switch a { color: #16a34a; text-decoration: none; font-weight: 600; }

.form-error {
  background: #fee2e2;
  color: #dc2626;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

/* ── Hero visual / mock dashboard ───────────────────────────────────────── */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.mock-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mock-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mock-dot.red { background: #f87171; }
.mock-dot.yellow { background: #fbbf24; }
.mock-dot.green { background: #4ade80; }
.mock-title {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
}

.mock-budget-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #374151;
  font-weight: 600;
}
.mock-bar {
  flex: 1;
  height: 6px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
}
.mock-fill {
  height: 100%;
  background: #16a34a;
  border-radius: 999px;
}
.mock-fill.warn { background: #d97706; }
.mock-pct { font-size: 0.75rem; color: #9ca3af; width: 2.5rem; text-align: right; }

.mock-divider { height: 1px; background: #f3f4f6; }

.mock-tx {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.mock-tx-merchant { flex: 1; color: #111827; font-weight: 500; }
.mock-tx-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.mock-tx-badge.groceries { background: #dcfce7; color: #15803d; }
.mock-tx-badge.restaurant { background: #fef3c7; color: #92400e; }
.mock-tx-badge.transport { background: #dbeafe; color: #1e40af; }
.mock-tx-amount { font-weight: 700; color: #dc2626; font-size: 0.82rem; }

.mock-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: #15803d;
  font-weight: 500;
}

/* ── Features section ────────────────────────────────────────────────────── */

.features-section {
  background: #f9fafb;
  border-top: 1px solid #f0f0f0;
  padding: 5rem 2.5rem;
  text-align: center;
}

.features-section h2 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  margin-bottom: 3rem;
}

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

.feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  transition: box-shadow 0.15s;
}
.feature-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.4rem;
}
.feature-card p {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.landing-footer {
  padding: 1.5rem 2.5rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: auto;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem;
  }
  .hero-title { font-size: 2.2rem; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .landing-nav { padding: 1rem 1.5rem; }
}

@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.9rem; }
}
