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

:root {
  --blue: #1d76b0;
  --blue-dark: #155d8c;
  --blue-light: #e8f4fb;
  --teal: #1abc9c;
  --teal-dark: #16a085;
  --teal-light: #e8faf5;
  --dark: #1a1a2e;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg: #ffffff;
  --bg-alt: #f8fafb;
  --bg-dark: #0f1b2d;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1), 0 16px 40px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

img { max-width: 100%; display: block; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
  text-align: center;
}

.btn-nav {
  padding: 8px 20px;
  font-size: 0.9rem;
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.btn-nav:hover {
  background: var(--teal-dark);
  color: white;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: var(--shadow);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
}
.logo-e { color: var(--teal); }
.logo-reps { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--blue); }
.nav-login { color: var(--text-light) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
}

/* ============ HERO ============ */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--bg) 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-reassurance {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-product-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}

/* ============ SOCIAL PROOF BAR ============ */
.proof-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.proof-items {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.proof-item {
  text-align: center;
}
.proof-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
}
.proof-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============ FEATURES ============ */
.features {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.feature-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--blue);
}
.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============ PRODUCT SHOWCASE ============ */
.product {
  padding: 100px 0;
  background: var(--bg-alt);
}

.product-video {
  max-width: 800px;
  margin: 0 auto;
}

.wistia-video-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ============ OUTCOME MEASURES ============ */
.outcomes {
  padding: 100px 0;
}

.outcomes-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.outcomes-text h2 {
  margin-bottom: 20px;
}
.outcomes-text > p:first-of-type {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.outcomes-list {
  list-style: none;
  margin-bottom: 24px;
}
.outcomes-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 1rem;
}
.check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--teal);
}

.outcomes-note {
  font-weight: 600;
  color: var(--dark);
  font-size: 1rem;
}

.outcomes-screenshot {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}

/* ============ PATIENT PORTAL ============ */
.portal {
  padding: 100px 0;
  background: var(--bg-alt);
}

.portal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.portal-screenshot {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.portal-text h2 {
  margin-bottom: 20px;
}
.portal-text > p {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ============ REHAB PROGRAMS ============ */
.rehab {
  padding: 100px 0;
  background: var(--bg-alt);
}

.rehab-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.rehab-screenshot {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}

.rehab-text h2 {
  margin-bottom: 20px;
}
.rehab-text > p {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ============ PRICING EXTRAS ============ */
.pricing-currency-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.pricing-custom {
  text-align: center;
  margin-top: 32px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============ TESTIMONIAL INITIALS ============ */
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ============ HOW IT WORKS ============ */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-alt);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 280px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  margin-bottom: 12px;
}
.step p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 16px;
  color: var(--border);
  flex-shrink: 0;
}
.step-arrow svg {
  width: 40px;
  height: 20px;
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  padding: 100px 0;
}

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

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow);
}

.testimonial-stars {
  color: #f5a623;
  font-size: 1.2rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
}
.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============ PRICING ============ */
.pricing {
  padding: 100px 0;
  background: var(--bg-alt);
}


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

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-featured {
  border-color: var(--blue);
  border-width: 2px;
}
.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
}

.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.pricing-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.pricing-price {
  margin-bottom: 28px;
}
.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
}
.price-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: "\2713";
  color: var(--teal);
  font-weight: 700;
  margin-right: 10px;
}

/* ============ FAQ ============ */
.faq {
  padding: 100px 0;
}

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

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--blue); }
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer p {
  padding-bottom: 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============ FINAL CTA ============ */
.final-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark) 0%, #1a3a5c 50%, var(--blue-dark) 100%);
  text-align: center;
  color: white;
}
.final-cta h2 {
  color: white;
  margin-bottom: 16px;
}
.final-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.final-cta .hero-ctas {
  justify-content: center;
  margin-top: 32px;
}
.final-cta .hero-reassurance {
  color: rgba(255,255,255,0.6);
}

/* ============ FOOTER ============ */
.footer {
  padding: 60px 0 32px;
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer-brand .logo-e,
.footer-brand .logo-reps {
  font-size: 1.5rem;
  font-weight: 800;
}
.footer-brand p {
  margin-top: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links h4 {
  color: white;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }

  .features-grid,
  .testimonials-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .outcomes-layout,
  .portal-layout,
  .rehab-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portal-screenshot,
  .outcomes-screenshot,
  .rehab-screenshot {
    margin: 0 auto;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }
  .step-arrow {
    transform: rotate(90deg);
  }

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero { padding: 100px 0 60px; }

  .proof-items { gap: 32px; }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

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