/* CanopyClaim landing page styles */
:root {
  --primary: #3F8F2E;
  --primary-hover: #347626;
  --primary-soft: #EDF6E9;
  --primary-deep: #1F4D17;
  --accent: #8A6A3D;
  --accent-muted: #DCCFB8;
  --accent-surface: #F8F4EC;
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --border-soft: #EFEEEA;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --shadow-sm: 0 1px 2px rgba(31, 41, 55, 0.04), 0 1px 3px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 41, 55, 0.06), 0 2px 4px rgba(31, 41, 55, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(31, 41, 55, 0.12), 0 8px 16px -8px rgba(31, 41, 55, 0.08);
  --shadow-nav: 0 4px 24px rgba(31, 41, 55, 0.08), 0 1px 2px rgba(31, 41, 55, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Geist', 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============ FLOATING NAV ============ */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 36px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius-pill);
  padding: 10px 12px 10px 22px;
  box-shadow: var(--shadow-nav);
  max-width: 1100px;
  width: 100%;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(31, 41, 55, 0.1), 0 1px 2px rgba(31, 41, 55, 0.04);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.nav-brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  flex: 1;
}
.nav-link {
  color: var(--text-primary);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover { background: rgba(63, 143, 46, 0.06); color: var(--primary-hover); }
.nav-link svg { width: 12px; height: 12px; opacity: 0.6; }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-login {
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  transition: background 0.2s;
}
.nav-login:hover { background: rgba(31, 41, 55, 0.05); }
.nav-cta {
  background: var(--primary);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--primary-hover); transform: translateY(-0.5px); }

/* ============ HERO ============ */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
body[data-hero="plain"] .hero-bg { display: none; }

/* Variant: glow — soft radial canopy wash */
body[data-hero="glow"] .hero-bg {
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(63,143,46,0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 70%, rgba(138,106,61,0.10), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(237,246,233,0.6), transparent 70%);
}

/* Variant: topo — organic concentric arcs */
body[data-hero="topo"] .hero-bg {
  background-color: var(--bg);
  background-image: url('assets/hero-topo.svg');
  background-size: cover;
  background-position: center;
}
body[data-hero="topo"] .hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 40%, transparent 30%, var(--bg) 90%);
}

/* Variant: leaves — scattered canopy bits */
body[data-hero="leaves"] .hero-bg {
  background-color: var(--bg);
  background-image: url('assets/hero-leaves.svg');
  background-size: 720px;
  background-repeat: repeat;
}

/* Variant: grain — paper texture w/ green wash */
body[data-hero="grain"] .hero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(63,143,46,0.10), transparent 65%),
    var(--bg);
}
body[data-hero="grain"] .hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(63,143,46,0.08) 0, transparent 1px),
                    radial-gradient(circle at 60% 70%, rgba(138,106,61,0.06) 0, transparent 1px),
                    radial-gradient(circle at 85% 20%, rgba(63,143,46,0.08) 0, transparent 1px);
  background-size: 8px 8px, 12px 12px, 6px 6px;
  opacity: 0.6;
}

.hero {
  padding: 160px 24px 80px;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px 6px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  border: 1px solid rgba(63, 143, 46, 0.15);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 3px rgba(63, 143, 46, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(63, 143, 46, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(63, 143, 46, 0); }
}
.hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--primary);
  position: relative;
}
.hero h1 .underline-arc {
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  width: 100%; height: 12px;
  pointer-events: none;
}
.hero p.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(63, 143, 46, 0.5); }
.btn-secondary { background: var(--surface); color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--text-primary); }
.btn svg { width: 14px; height: 14px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(2px); }

.hero-trust {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.hero-trust .checks {
  display: flex; gap: 8px;
}
.hero-trust .check {
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-trust .check svg { width: 14px; height: 14px; color: var(--primary); }

/* ============ SECTIONS ============ */
section { position: relative; }
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 24px;
}
.section-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--primary); }
.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* ============ TRUST STRIP ============ */
.trust-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 28px 24px;
  background: rgba(255,255,255,0.4);
}
.trust-strip-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-label {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.trust-badges {
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
}
.trust-badge svg { width: 18px; height: 18px; color: var(--primary); }

/* ============ PROBLEM ============ */
.problem {
  background: var(--accent-surface);
  position: relative;
  overflow: hidden;
}
.problem::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/canopy-pattern.svg');
  background-size: 480px;
  opacity: 0.04;
  pointer-events: none;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.problem-card-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 12px;
}
.problem-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.problem-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============ HOW IT WORKS ============ */
.how {
  background: var(--bg);
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.how-step {
  padding: 24px 0 0;
  position: relative;
  border-top: 1px solid var(--border);
}
.how-step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.how-step-num {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}
.how-step-num::before { content: '0'; }
.how-step p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============ FEATURES ============ */
.features-hero {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  transition: box-shadow 0.3s;
}
.features-hero:hover { box-shadow: var(--shadow-md); }
.features-hero h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  line-height: 1.1;
}
.features-hero p {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.features-hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.features-hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
}
.bullet-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* Parser demo visual */
.parser-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 14px;
}
.parser-doc, .parser-out {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px;
}
.parser-doc-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}
.parser-doc-tag {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: 'Geist Mono', monospace;
}
.parser-doc-stamp {
  font-size: 9.5px;
  font-weight: 700;
  color: #B32424;
  border: 1.5px solid #B32424;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.parser-doc-line {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 7px;
}
.parser-arrow {
  width: 32px;
  height: 14px;
  flex-shrink: 0;
  color: var(--primary);
  justify-self: center;
}
.parser-out-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  font-size: 11.5px;
  border-bottom: 1px dashed var(--border-soft);
}
.parser-out-row:last-child { border-bottom: none; }
.parser-out-row span { color: var(--text-tertiary); flex-shrink: 0; }
.parser-out-row b {
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-align: right;
  min-width: 0;
  line-height: 1.45;
  word-break: break-word;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(63, 143, 46, 0.25);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(63, 143, 46, 0.15);
}
.feature-icon svg { width: 22px; height: 22px; color: var(--primary-hover); }
.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.feature p em { font-style: italic; color: var(--primary-hover); }

@media (max-width: 980px) {
  .features-hero { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
}

/* ============ STATS ============ */
.stats {
  background: var(--primary-deep);
  color: #fff;
  border-radius: 32px;
  margin: 0 24px;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/canopy-pattern.svg');
  background-size: 360px;
  opacity: 0.06;
  pointer-events: none;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  position: relative;
}
.stats-header { max-width: 640px; margin-bottom: 56px; }
.stats-eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.stats-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}
.stats-title em { font-style: italic; color: #A8D88E; }
.stats-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 48px;
}
.stat-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #A8D88E;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.stat-num small { font-size: 36px; }
.stat-label {
  font-size: 14.5px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-bottom: 4px;
}
.stat-note {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

/* ============ TESTIMONIAL ============ */
.testimonial {
  max-width: 920px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}
.testimonial-quote {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 32px;
}
.testimonial-quote::before { content: '\201C'; color: var(--primary); margin-right: 4px; }
.testimonial-quote::after { content: '\201D'; color: var(--primary); margin-left: 4px; }
.testimonial-attr {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-muted), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.testimonial-attr-text { text-align: left; }
.testimonial-attr-name { font-size: 14.5px; font-weight: 600; }
.testimonial-attr-title { font-size: 13px; color: var(--text-secondary); }

/* ============ FAQ ============ */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.faq-q-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s;
  color: var(--primary-hover);
}
.faq-q-icon svg { width: 14px; height: 14px; display: block; }
.faq-item.open .faq-q-icon { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 240px; }
.faq-a-inner { padding: 0 0 24px; max-width: 680px; }

/* ============ CONTACT ============ */
.contact {
  background: var(--accent-surface);
  position: relative;
  overflow: hidden;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.contact-info h2 em { font-style: italic; color: var(--primary); }
.contact-info p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}
.contact-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-primary);
}
.contact-perks li svg {
  width: 20px; height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(63, 143, 46, 0.15);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-fine {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin-top: 12px;
  line-height: 1.5;
}
.form-success {
  display: none;
  padding: 32px 16px;
  text-align: center;
}
.form-success.show { display: block; }
.form-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary-hover);
}
.form-success h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 28px;
  margin-bottom: 8px;
}
.form-success p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 24px 32px;
  background: var(--bg);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
}
.footer-cta-col .footer-cta-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.15s, gap 0.15s;
}
.footer-cta-link svg { width: 14px; height: 14px; }
.footer-cta-link:hover { color: var(--primary-hover); gap: 9px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; }
.footer-logo svg { width: 28px; height: 28px; }
.footer-tag { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.footer-col h4 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--primary-hover); }
.footer-bottom {
  max-width: 1240px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-tertiary);
}

/* ============ HAMBURGER + MOBILE MENU ============ */
.nav-hamburger {
  display: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s;
  cursor: pointer;
}
.nav-hamburger:hover { background: rgba(31, 41, 55, 0.05); }
.nav-hamburger span {
  display: block;
  width: 14px; height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 74px;
  left: 16px;
  right: 16px;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
}
.nav-mobile-menu.open {
  display: flex;
  animation: menuSlideIn 0.2s ease;
}
@keyframes menuSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.nav-mobile-link {
  display: block;
  padding: 13px 16px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  transition: background 0.15s;
}
.nav-mobile-link:hover { background: rgba(63, 143, 46, 0.06); color: var(--primary-hover); }
.nav-mobile-divider { height: 1px; background: var(--border-soft); margin: 6px 8px; }
.nav-mobile-cta-link { font-weight: 600; color: var(--primary); }
.nav-mobile-cta-link:hover { background: var(--primary-soft); color: var(--primary-hover); }

/* ============ MOTION ============ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.fade-up.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
/* Safety net: never show the mobile menu at desktop widths, even if .open is set */
@media (min-width: 981px) {
  .nav-mobile-menu { display: none !important; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-right { margin-left: auto; }
  /* Compact nav so the mobile menu clears the nav bar cleanly */
  .nav { padding: 8px 8px 8px 16px; gap: 8px; }
  .nav-cta { padding: 8px 14px; }
  /* Hide auth links from mobile menu — nav bar already shows them at this size */
  .nav-mobile-auth { display: none; }
  .section { padding: 72px 20px; }
  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .problem-grid, .features-grid { grid-template-columns: 1fr; }
  .how-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .how-step {
    border-top: none;
    border-left: 1px solid var(--border);
    padding: 4px 0 4px 20px;
  }
  .how-step h3 { margin-bottom: 6px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  /* Nav bar buttons are hidden at phone size — show them in the mobile menu instead */
  .nav-login { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-auth { display: block; }
  .hero-eyebrow { display: flex; }
  .eyebrow-secondary { display: none; }
  .hero-trust { justify-content: center; }
  .trust-strip-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .trust-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .parser-demo { grid-template-columns: 1fr; }
  .section { padding: 56px 20px; }
  .stats { margin: 0 12px; }
  .stats-inner { padding: 40px 20px; }
  .stats-grid { gap: 32px 16px; }
  .stat-num { font-size: 48px; white-space: nowrap; }
  .stat-num small { font-size: 26px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats { margin: 0 16px; border-radius: 20px; }
  .stats-inner { padding: 56px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }

  /* Inline icon with title on feature cards */
  .feature {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
  }
  .feature-icon {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
    align-self: center;
  }
  .feature h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
  .feature p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 6px;
  }
}

/* ============ HERO ANIMATION ============ */
.hero-visual {
  position: relative;
  min-height: 540px;
  display: block;
  overflow: hidden;
  min-width: 0;
}
#hero-anim-root { display: block; height: 100%; }
.hero-anim {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 540px;
  margin: 0 auto;
}
.hero-anim-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(closest-side, rgba(63, 143, 46, 0.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  animation: glowDrift 6s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  0% { transform: translate(-12px, -8px) scale(1); }
  100% { transform: translate(12px, 8px) scale(1.05); }
}

.stage-strip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 6px;
  z-index: 3;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.stage-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: all 0.4s ease;
}
.stage-dot.active { background: var(--primary-soft); color: var(--primary-hover); }
.stage-dot.done { color: var(--text-secondary); }
.stage-dot-bullet {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.stage-dot.active .stage-dot-bullet { background: var(--primary); box-shadow: 0 0 0 3px rgba(63,143,46,0.2); }
.stage-dot.done .stage-dot-bullet { background: var(--primary); }
.stage-dot-label { display: none; }
.stage-dot.active .stage-dot-label { display: inline; }

.claim-card {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: auto;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: cardFloat 5s ease-in-out infinite alternate;
}
@keyframes cardFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}
.claim-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(250, 250, 248, 0.5);
}
.claim-card-id { font-size: 13px; font-weight: 600; letter-spacing: -0.005em; }
.claim-card-patient { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s;
}
.status-badge .status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.badge-denied { background: #FEEAEA; color: #B32424; }
.badge-analyzing { background: #FEF6E0; color: #8A6A1B; }
.badge-analyzing .status-dot { animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.badge-plan { background: var(--accent-surface); color: var(--accent); }
.badge-paid { background: var(--primary-soft); color: var(--primary-hover); }

.claim-card-body { padding: 22px; min-height: 280px; position: relative; }

.view { animation: viewIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Denied view */
.denial-letter { position: relative; padding: 8px 4px; }
.denial-letter-head { display: flex; gap: 12px; margin-bottom: 16px; }
.denial-letter-logo { width: 32px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #1E3A5F, #4A6FA5); flex-shrink: 0; }
.denial-letter-lines { display: flex; flex-direction: column; gap: 6px; flex: 1; padding-top: 4px; }
.denial-letter-lines span { height: 7px; background: var(--border); border-radius: 4px; }
.denial-letter-body { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.denial-letter-body span { height: 7px; background: var(--border-soft); border-radius: 4px; }
.denial-stamp {
  position: absolute;
  top: 8px;
  right: 4px;
  border: 2.5px solid #B32424;
  color: #B32424;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  transform: rotate(-8deg);
  border-radius: 4px;
  font-family: 'Geist Mono', monospace;
  opacity: 0.85;
  animation: stampDrop 0.4s cubic-bezier(0.4, 1.6, 0.6, 1);
}
@keyframes stampDrop {
  0% { transform: rotate(-8deg) scale(2); opacity: 0; }
  100% { transform: rotate(-8deg) scale(1); opacity: 0.85; }
}
.denial-reason {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  margin-top: 8px;
}
.denial-reason-label { font-size: 11.5px; color: #B32424; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.denial-reason-code { font-family: 'Geist Mono', monospace; font-size: 13px; font-weight: 600; color: #B32424; }

/* Analyzing view */
.scanner { position: relative; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border-soft); overflow: hidden; }
.scanner-bar {
  position: absolute;
  left: 0; right: 0;
  height: 32px;
  background: linear-gradient(180deg, transparent, rgba(63,143,46,0.18), transparent);
  border-top: 1px solid rgba(63,143,46,0.5);
  border-bottom: 1px solid rgba(63,143,46,0.5);
  animation: scan 2.4s linear infinite;
  z-index: 2;
}
@keyframes scan {
  0% { top: -10%; }
  100% { top: 110%; }
}
.scanner-doc { padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.scanner-line { height: 7px; background: var(--border); border-radius: 4px; opacity: 0.7; }
.analyzing-meta { margin-top: 14px; display: flex; align-items: center; }
.typing {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: 'Geist Mono', 'SF Mono', monospace;
}
.typing-spinner {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.typing-text { animation: viewIn 0.3s ease; }

/* Plan view */
.plan-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.plan-header-title { font-size: 13.5px; font-weight: 600; }
.plan-header-conf { display: flex; align-items: center; gap: 8px; }
.conf-bar { display: inline-block; width: 60px; height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; }
.conf-fill { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 999px; animation: confFill 0.8s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes confFill { to { width: 94%; } }
.conf-text { font-size: 11.5px; color: var(--primary-hover); font-weight: 500; }

.plan-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plan-step {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--bg);
  opacity: 0;
  transform: translateX(-8px);
  animation: stepIn 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 120ms);
  transition: background 0.4s, border-color 0.4s;
}
@keyframes stepIn { to { opacity: 1; transform: none; } }
.plan-step.done { background: var(--primary-soft); border-color: rgba(63,143,46,0.2); }
.plan-step-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
  margin-top: 1px;
  transition: all 0.3s;
}
.plan-step.done .plan-step-check { background: var(--primary); border-color: var(--primary); color: #fff; }
.plan-step-check svg { width: 12px; height: 12px; }
.plan-step-num { font-size: 11px; font-weight: 600; }
.plan-step-text { display: flex; flex-direction: column; gap: 2px; }
.plan-step-t { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.plan-step-d { font-size: 12px; color: var(--text-secondary); line-height: 1.45; }

/* Paid view */
.view-paid { display: flex; flex-direction: column; align-items: center; padding: 8px 0; }
.paid-check { animation: pop 0.5s cubic-bezier(0.4, 1.6, 0.6, 1); }
.paid-check svg { width: 56px; height: 56px; }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.paid-amount-row { text-align: center; margin-top: 14px; }
.paid-amount-label { font-size: 12.5px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }
.paid-amount {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 48px;
  line-height: 1;
  margin-top: 4px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.paid-amount span { font-size: 24px; color: var(--text-secondary); }
.paid-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  margin-top: 20px;
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}
.paid-meta-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.paid-meta-item span { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; }
.paid-meta-item b { font-size: 13px; font-weight: 600; }

/* Paid burst — leaves emerging */
.paid-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.leaf-bit {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50% 0;
  background: var(--primary);
  transform: rotate(var(--angle));
  opacity: 0;
  animation: leafFly 1.4s var(--delay) cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
.leaf-bit:nth-child(2n) { background: var(--accent); }
.leaf-bit:nth-child(3n) { background: #5BA847; }
@keyframes leafFly {
  0% { opacity: 0; transform: rotate(var(--angle)) translateY(0) scale(0.4); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--angle)) translateY(-180px) scale(1); }
}

@media (max-width: 980px) {
  .hero-visual { min-height: 480px; }
  .claim-card { max-width: 420px; }
}
@media (max-width: 560px) {
  .stage-strip { padding: 4px; }
  .stage-dot { padding: 5px 8px; font-size: 11px; }
  .claim-card { top: 50px; }
  .claim-card-body { padding: 18px; min-height: 260px; }
  .paid-amount { font-size: 40px; }
}
