:root {
  --bg: #ffffff;
  --surface: #f8f7f4;
  --ink: #0d0d0d;
  --ink-muted: #555450;
  --ink-light: #9a9790;
  --accent: #1a6b4a;
  /* Forest green for SEO/Analytics */
  --accent-light: #e8f3ef;
  --border: rgba(0, 0, 0, 0.09);
  --white: #ffffff;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -1px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  padding: 0 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}

.site-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--ink);
  color: white !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
  padding: 110px 4rem 100px;
  display: flex;
  justify-content: center;
  min-height: 80vh;
}

.hero-inner {
  max-width: 1280px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--ink);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--ink-muted);
  font-weight: 300;
  max-width: 540px;
  margin-bottom: 40px;
}

/* Form Card */
.form-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
}

.form-header {
  margin-bottom: 32px;
}

.form-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 13px;
  color: var(--ink-muted);
}

.audit-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-light);
  font-size: 14px;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 107, 74, 0.1);
}

.btn-primary {
  width: 100%;
  background: var(--ink);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 107, 74, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--ink-light);
  transform: translateY(-1px);
}

.trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-light);
  margin-top: 16px;
}

/* Stats Row */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 4rem;
}

.stats-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  display: block;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Features Section */
.features {
  padding: 100px 4rem;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 42px;
  margin-bottom: 16px;
}

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

.feature-card {
  background: var(--white);
  padding: 40px;
  border-radius: 18px;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(26, 107, 74, 0.3);
  transform: translateY(-3px);
}

.feature-icon-pill {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 18px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 300;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-card {
  background: var(--white);
  padding: 60px;
  border-radius: 24px;
  border: 1px solid var(--border);
  text-align: center;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.05);
}

.loader-ring {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 32px;
}

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

.progress-container {
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  margin: 24px 0 12px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 0.3s;
}

.progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Footer */
.footer {
  padding: 60px 4rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: var(--ink-muted);
}

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

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    padding: 110px 2rem 80px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    padding: 80px 2rem;
  }

  .stats-strip {
    padding: 40px 2rem;
  }

  .navbar {
    padding: 0 2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    padding: 96px 1.25rem 64px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(32px, 8vw, 42px);
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  /* Swap order: form on top, hero text below on mobile */
  .hero-inner {
    display: flex;
    flex-direction: column;
  }

  .hero-form {
    order: 1;
    width: 100%;
  }

  .hero-content {
    order: 2;
    text-align: center;
  }

  .form-card {
    padding: 28px 20px;
    border-radius: 18px;
    text-align: left; /* Override inherited center from .hero-content */
  }

  /* Collapse name + email to full-width stack */
  .form-row-split {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    padding: 32px 1.25rem;
  }

  .stats-container {
    flex-direction: column;
    gap: 28px;
  }

  .stat-divider {
    display: none;
  }

  .features {
    padding: 64px 1.25rem;
  }

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

  .navbar {
    padding: 0 1.25rem;
  }

  .footer {
    padding: 40px 1.25rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero {
    padding: 88px 1rem 56px;
  }

  .form-card {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .hero-badge {
    font-size: 10.5px;
  }

  .btn-primary {
    font-size: 14px;
    padding: 12px 20px;
  }

  .trust-note {
    font-size: 11px;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--ink);
  color: white;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  color: var(--accent);
  font-size: 18px;
}

.toast-error {
  background: #7f1d1d;
}

.toast-error i {
  color: #fca5a5;
}