/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #0F766E;
  --primary-dark: #0d5e57;
  --secondary: #1E293B;
  --accent:   #14B8A6;
  --bg:       #F8FAFC;
  --bg-alt:   #EEF2F7;
  --white:    #FFFFFF;
  --text:     #1E293B;
  --muted:    #64748B;
  --border:   #E2E8F0;
  --success:  #10B981;
  --warning:  #F59E0B;
  --error:    #EF4444;
  --radius:   12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary);
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p { color: var(--muted); line-height: 1.7; }

a { color: var(--accent); text-decoration: none; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-headline {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--secondary);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.section-lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
  border: none;
  text-decoration: none;
}
.btn:hover { transform: scale(1.02); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(15, 118, 110, 0.35); }

.btn-secondary {
  background: var(--white);
  color: var(--secondary);
  border: 1.5px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--primary); }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--secondary); background: var(--bg-alt); }
.nav-cta { background: var(--primary) !important; color: var(--white) !important; }
.nav-cta:hover { background: var(--primary-dark) !important; }

/* ===== HERO ===== */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(160deg, #f0fdf9 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 20px;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.hero-headline em {
  font-style: normal;
  color: var(--primary);
}
.hero-lede {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}
.hero-stats-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hero-stat-item { }
.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 4px;
}
.hero-stat-num span { color: var(--primary); }
.hero-stat-lbl {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ===== PROBLEM ===== */
.problem {
  padding: 96px 0;
}
.problem-intro { max-width: 640px; margin-bottom: 56px; }
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.problem-icon {
  width: 48px; height: 48px;
  background: #FEF2F2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
}
.problem-card h3 { margin-bottom: 10px; }
.problem-card p { font-size: 0.9rem; }

/* ===== SOLUTION (How it Works) ===== */
.solution {
  padding: 96px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 28px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.step-num {
  width: 36px; height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 18px;
}
.step-card h3 { font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.875rem; }

/* ===== FEATURES ===== */
.features {
  padding: 96px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  background: rgba(15, 118, 110, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.2rem;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; }

/* ===== FEATURES GRID (6 cards) ===== */
.features-grid-section { padding: 96px 0; }
.features-6-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.features-6-grid .feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.features-6-grid .feature-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.features-6-grid .feature-icon {
  width: 44px; height: 44px;
  background: rgba(15, 118, 110, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}
.features-6-grid .feature-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
.features-6-grid .feature-card p { font-size: 0.85rem; }

/* ===== SOCIAL PROOF ===== */
.proof {
  padding: 96px 0;
  background: var(--secondary);
}
.proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.metric-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px 24px;
  text-align: center;
}
.metric-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}
.metric-lbl {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.proof-headline {
  color: var(--white) !important;
  margin-bottom: 12px;
}
.proof-sub {
  color: rgba(255,255,255,0.55) !important;
  max-width: 560px;
  margin-bottom: 48px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}
.testimonial-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
}
.testimonial-role { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ===== PRICING ===== */
.pricing {
  padding: 96px 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: box-shadow 0.2s;
}
.pricing-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15,118,110,0.08), 0 8px 32px rgba(15,118,110,0.12);
}
.pricing-badge {
  display: inline-block;
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.pricing-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.pricing-card .pricing-desc { font-size: 0.875rem; margin-bottom: 24px; }
.pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pricing-per { font-size: 0.875rem; color: var(--muted); margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 6px 0;
}
.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-cta { display: block; text-align: center; padding: 14px; font-size: 0.95rem; }

/* ===== FOOTER ===== */
.footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { }
.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 12px;
  display: block;
}
.footer-logo span { color: var(--primary); }
.footer-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 280px;
}
.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 16px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.875rem; color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: 0.8rem; color: var(--muted); }
.hipaa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .problem-cards { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-6-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-metrics { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 56px; }
  .hero-stats { padding: 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .features-6-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .nav-links { display: none; }
}