/* ========================================
   Local Business Audit — Landing Page
   Archetype: single_scroll_story
   Colors: #f0fdf4 (bg), #16a34a (green), #dc2626 (red), #2563eb (blue)
   ======================================== */

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

:root {
  --bg: #f0fdf4;
  --bg-white: #ffffff;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --yellow-500: #eab308;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Fixed Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(240, 253, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(22, 163, 74, 0.1);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-800);
}

.nav-cta {
  display: inline-block;
  padding: 8px 20px;
  background: var(--green-600);
  color: white;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.nav-cta:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

/* ── Sections (full-width narrative flow) ── */
.section {
  width: 100%;
  padding: 100px 24px;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-heading {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtext {
  font-size: 1.15rem;
  color: var(--gray-500);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ── HERO ── */
.section-hero {
  padding: 140px 24px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 90vh;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-highlight {
  color: var(--green-600);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-form {
  margin-bottom: 16px;
}

.hero-form-row {
  display: flex;
  gap: 10px;
}

.hero-form-row input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.hero-form-row input[type="email"]:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.hero-form-row input[type="email"]::placeholder {
  color: var(--gray-400);
}

.hero-form-note {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 10px;
}

.skip-link {
  display: inline-block;
  color: var(--green-600);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px dashed var(--green-300);
  transition: color 0.2s;
}

.skip-link:hover {
  color: var(--green-700);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-600);
  color: white;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
  background: var(--green-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  transition: transform 0.2s;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ── Hero Visual (gauge mockup) ── */
.hero-visual {
  flex: 0 0 400px;
}

.gauge-demo {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--green-100);
}

.gauge-outer {
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: conic-gradient(
    var(--green-600) 0deg 259deg,
    var(--gray-200) 259deg 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gauge-fill {
  display: none;
}

.gauge-center {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-score {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.gauge-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-top: 2px;
}

.gauge-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gauge-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.gauge-cat strong {
  margin-left: auto;
  font-weight: 700;
  color: var(--gray-800);
}

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green { background: var(--green-600); }
.dot-yellow { background: var(--yellow-500); }
.dot-red { background: var(--red-600); }

/* ── PROBLEM Section ── */
.section-problem {
  background: var(--bg-white);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.problem-card {
  text-align: center;
  padding: 32px 24px;
}

.problem-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ── HOW IT WORKS ── */
.section-how {
  background: var(--bg);
}

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 12px;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.step-divider {
  width: 60px;
  height: 2px;
  background: var(--green-200);
  margin-top: 24px;
  flex-shrink: 0;
}

/* ── FEATURES ── */
.section-features {
  background: var(--bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.3s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon-green {
  background: var(--green-100);
  color: var(--green-600);
}

.icon-blue {
  background: #dbeafe;
  color: var(--blue-600);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ── SOCIAL PROOF ── */
.section-proof {
  background: var(--green-900);
  color: white;
}

.section-proof .section-heading {
  color: white;
}

.proof-anchor {
  text-align: center;
  margin-bottom: 48px;
}

.proof-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.price-strike {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.35);
  text-decoration: line-through;
  text-decoration-color: var(--red-500);
  text-decoration-thickness: 3px;
}

.price-arrow {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.4);
}

.price-free {
  font-size: 3rem;
  font-weight: 900;
  color: var(--green-500);
}

.proof-caption {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto;
}

.proof-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-bottom: 48px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.1);
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: white;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ── SECOND CTA ── */
.section-cta {
  background: var(--bg);
}

.section-cta-inner {
  text-align: center;
}

.bottom-form {
  max-width: 480px;
  margin: 0 auto 16px;
}

.bottom-form .hero-form-row {
  justify-content: center;
}

/* ── FAQ ── */
.section-faq {
  background: var(--bg-white);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  gap: 16px;
}

.faq-question:hover {
  color: var(--green-600);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--gray-400);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.925rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── FOOTER ── */
.section-footer {
  padding: 40px 24px;
  background: var(--bg);
  border-top: 1px solid var(--green-100);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-800);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.footer-copy a {
  color: var(--green-600);
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

/* ── Success / Error States ── */
.form-success {
  padding: 14px 20px;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  animation: fadeSlideUp 0.3s ease;
}

.form-error {
  padding: 14px 20px;
  background: #fef2f2;
  color: var(--red-600);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  animation: fadeSlideUp 0.3s ease;
}

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

/* ── Responsive ── */
@media (max-width: 960px) {
  .section-hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 24px 80px;
    min-height: auto;
    gap: 48px;
  }

  .hero-content {
    max-width: 600px;
  }

  .hero-visual {
    flex: none;
    width: 100%;
    max-width: 400px;
  }

  .hero-form-row {
    flex-direction: column;
  }

  .hero-form-note {
    text-align: center;
  }

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

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

@media (max-width: 680px) {
  .section {
    padding: 72px 20px;
  }

  .section-heading {
    font-size: 1.75rem;
  }

  .section-subtext {
    font-size: 1rem;
    margin-bottom: 36px;
  }

  .hero-h1 {
    font-size: 2.2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .problem-card {
    padding: 24px 16px;
  }

  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .step-divider {
    width: 2px;
    height: 32px;
    margin-top: 0;
  }

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

  .proof-stats {
    flex-direction: column;
    gap: 32px;
  }

  .price-strike {
    font-size: 1.75rem;
  }

  .price-free {
    font-size: 2.25rem;
  }

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

  .bottom-form .hero-form-row {
    flex-direction: column;
  }

  .nav-inner {
    padding: 10px 16px;
  }

  .nav-logo span {
    display: none;
  }
}

@media (max-width: 400px) {
  .hero-h1 {
    font-size: 1.8rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .gauge-outer {
    width: 150px;
    height: 150px;
  }

  .gauge-center {
    width: 115px;
    height: 115px;
  }

  .gauge-score {
    font-size: 2rem;
  }
}
