/* Navbar + Hero only */
:root {
  --color-white: #ffffff;
  --color-bg: #f8fafc;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-primary: #1e40af;
  --color-primary-hover: #1d4ed8;
  --color-accent: #3b82f6;
  --color-border: #e2e8f0;
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --container: 1200px;
  --color-dark-green: #1a2c21;
  --color-accent-green: #407756;
  --color-accent-green-hover: #4d8a67;
  --color-highlight: #8afdb8;
  --color-bg-green: #eef5f0;
  --color-bg-green-deep: #e0ede5;
  --color-panel-brown: #2c2419;
  /* Breakpoints (for reference; use in media queries) */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 968px;
  --bp-xl: 1024px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: "kern" 1;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-dark-green);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 12px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: calc(100vw - 120px);
    padding: 0 16px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 24px 0;
  line-height: 1;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.logo:hover {
  color: var(--color-primary-hover);
}

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

.nav a {
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-header {
  flex-shrink: 0;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .btn {
    min-height: 44px;
  }

  .btn-lg {
    min-height: 48px;
  }
}

/* Header – Calmoria-style (dark green), transitions to white on scroll */
.header-hero-style {
  --header-scroll: 0;
  background: color-mix(in srgb, var(--color-white) calc(var(--header-scroll) * 100%), var(--color-dark-green));
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) calc(var(--header-scroll) * 100%), transparent);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.logo-hero-style {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--color-dark-green) calc(var(--header-scroll) * 100%), var(--color-white));
  transition: color 0.15s ease;
}

.logo-hero-style:hover {
  color: color-mix(in srgb, var(--color-dark-green) calc(var(--header-scroll) * 100%), var(--color-white));
  opacity: 0.9;
}

.logo-hero-style .logo-icon {
  font-size: 1.25rem;
  color: color-mix(in srgb, var(--color-dark-green) calc(var(--header-scroll) * 100%), var(--color-white));
  transition: color 0.15s ease;
}

/* Logo image (SVG) – header: white on hero, black when scrolled */
.logo-img-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.logo-img-wrap .logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo-hero-style.logo-img-wrap .logo-img-white {
  opacity: calc(1 - var(--header-scroll, 0));
  transition: opacity 0.15s ease;
}
.logo-hero-style.logo-img-wrap .logo-img-dark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: var(--header-scroll, 0);
  transition: opacity 0.15s ease;
}
.footer-logo.logo-img-wrap .footer-logo-img {
  height: 32px;
  width: auto;
}

.nav-hero-style {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex: 1;
  padding: 0 24px;
}

.header-hero-style .nav-link-hero {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--color-dark-green) calc(var(--header-scroll) * 100%), var(--color-white));
  transition: color 0.15s ease, opacity 0.15s ease;
}

.header-hero-style .nav-link-hero:hover {
  color: color-mix(in srgb, var(--color-dark-green) calc(var(--header-scroll) * 100%), var(--color-white));
  opacity: 0.85;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-hero-style .header-actions {
  flex-shrink: 0;
}

.btn-hero-primary {
  background: var(--color-accent-green);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 9999px;
  gap: 8px;
}

/* Navbar pill button – reference style with arrow in white circle */
.btn-header.btn-hero-primary {
  background: #4A8B5B;
  padding: 12px 24px;
  gap: 12px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(74, 139, 91, 0.25);
}

.btn-hero-primary:hover {
  background: var(--color-accent-green-hover);
  color: var(--color-white);
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(64, 119, 86, 0.4);
}

.btn-arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-white);
  color: #1a2c21;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.btn-arrow-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.btn-arrow-icon {
  width: 14px;
  height: 14px;
  display: block;
  object-fit: contain;
}

/* CTA arrow hover: exit top-right, enter from bottom-left */
@keyframes cta-arrow-hover {
  0% { transform: translate(0, 0); opacity: 1; }
  45% { transform: translate(120%, -120%); opacity: 0; }
  55% { transform: translate(-120%, 120%); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}

.btn-hero-primary:hover .btn-arrow-circle .btn-arrow-icon-wrap,
.scroll-step-cta:hover .btn-arrow-circle .btn-arrow-icon-wrap,
.btn-cta-highlight:hover .btn-arrow-circle .btn-arrow-icon-wrap {
  animation: cta-arrow-hover 0.6s ease-in-out forwards;
}

.btn-header.btn-hero-primary .btn-arrow-circle {
  width: 28px;
  height: 28px;
}

.btn-header.btn-hero-primary:hover {
  background: #5a9d6b;
  box-shadow: 0 4px 12px rgba(74, 139, 91, 0.35);
  transform: scale(1.02);
}

/* Mobile menu button – visible only on small screens */
.header-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
}

@media (max-width: 968px) {
  .header-menu-btn {
    display: inline-flex;
  }

  .header-inner {
    padding: 16px 0;
    min-height: 56px;
  }

  .header .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: visibility 0.25s ease, opacity 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.nav-open .nav-overlay {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open .nav-overlay .nav-link-hero {
    color: var(--color-white);
  }

  body.nav-open .nav-overlay .nav-link-hero:hover {
    color: var(--color-white);
    opacity: 0.9;
  }

  .nav-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 44, 33, 0.92);
    z-index: 0;
  }

  .nav-overlay-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 48px 24px 48px;
    min-height: 0;
    flex-shrink: 0;
  }

  .nav-overlay-nav {
    flex-direction: column;
    gap: 24px;
    padding: 0;
  }

  .nav-overlay-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    transition: opacity 0.2s ease;
  }

  .nav-overlay-close:hover {
    opacity: 0.85;
  }

  .nav-overlay-nav .nav-link-hero {
    font-size: 1.125rem;
    padding: 12px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-actions-overlay .btn-header {
    min-height: 48px;
    padding: 14px 28px;
  }
}

@media (min-width: 969px) {
  .header-menu-btn {
    display: none;
  }

  .nav-overlay {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    position: static;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-overlay-backdrop {
    display: none;
  }

  .nav-overlay-panel {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex: 1;
    padding: 0;
    min-height: 0;
  }

  .nav-overlay-close {
    display: none;
  }

  .nav-overlay-nav {
    flex-direction: row;
  }
}

.btn-hero-menu {
  background: transparent;
  color: color-mix(in srgb, var(--color-white) calc((1 - var(--header-scroll, 0)) * 100%), var(--color-dark-green));
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 0;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-hero-menu:hover {
  background: transparent;
  color: color-mix(in srgb, var(--color-white) calc((1 - var(--header-scroll, 0)) * 100%), var(--color-dark-green));
  opacity: 0.85;
  transform: scale(1.04);
}

.btn-menu-icon {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0;
  /* Hamburger as white/dark lines (no circle) */
}

/* Hero – Calmoria-style (gradient overlay on image) */
.hero-hero-style {
  width: 100%;
  min-width: 100%;
  background: var(--color-dark-green);
  padding: clamp(56px, 10vw, 96px) 0 clamp(40px, 6vw, 64px);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateX(25%);
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    var(--color-dark-green) 0%,
    var(--color-dark-green) 35%,
    rgba(26, 44, 33, 0.85) 50%,
    rgba(26, 44, 33, 0.3) 70%,
    transparent 100%
  );
  z-index: 1;
}

.hero-hero-style .hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

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

/* Hero avatar group */
.hero-avatar-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
  border: 2px solid var(--color-white);
  margin-left: -12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-avatar:first-child {
  margin-left: 0;
}

.hero-avatar-label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-left: 8px;
}

.hero-title {
  margin: 0 0 24px;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-white);
}

.hero-title-highlight {
  display: block;
  color: var(--color-highlight);
}

.hero-desc {
  margin: 0 0 40px;
  max-width: 480px;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.85);
}

/* Hero Stats Section (within content) */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin-top: 48px;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 0.9vw, 0.875rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-hero-style {
    padding: 48px 0;
    min-height: auto;
  }

  .hero-hero-style .hero-inner {
    justify-content: center;
    text-align: center;
  }

  .hero-gradient-overlay {
    background: linear-gradient(
      to bottom,
      var(--color-dark-green) 0%,
      rgba(26, 44, 33, 0.92) 40%,
      rgba(26, 44, 33, 0.75) 70%,
      rgba(26, 44, 33, 0.5) 100%
    );
  }

  .hero-content {
    max-width: none;
  }

  .hero-avatar-group {
    justify-content: center;
    margin-bottom: 28px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
  }

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

@media (max-width: 480px) {
  .hero-hero-style {
    padding: 40px 0;
  }

  .hero-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .hero-stats {
    gap: 16px;
    margin-top: 28px;
  }
}

/* Scroll-triggered How It Works Section */
.scroll-how-it-works {
  background: #ffffff;
  padding: clamp(56px, 10vw, 96px) 0 clamp(32px, 5vw, 48px);
  position: relative;
}

.scroll-how-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  position: relative;
}

@media (max-width: 768px) {
  .scroll-how-container {
    padding: 0 20px;
  }
}

@media (min-width: 769px) and (max-width: 968px) {
  .scroll-how-container {
    padding: 0 16px;
  }
}

@media (min-width: 1024px) {
  .scroll-how-container {
    max-width: calc(100vw - 120px);
    padding: 0 16px;
  }
}

@media (max-width: 968px) {
  .scroll-how-it-works {
    overflow-x: hidden;
  }

  .scroll-how-container {
    grid-template-columns: 1fr;
    gap: 32px;
    min-width: 0;
  }

  .scroll-how-content {
    padding-right: 0;
    display: contents;
  }

  .scroll-how-visual,
  .scroll-how-animation-container {
    display: contents;
  }

  /* Allow grid children to shrink and prevent horizontal overflow */
  .scroll-how-container .scroll-how-header,
  .scroll-how-container .scroll-how-step,
  .scroll-how-container .scroll-animation {
    min-width: 0;
  }

  .scroll-how-header {
    order: 0;
  }

  .scroll-how-step[data-step="1"] {
    order: 1;
  }

  .scroll-animation-step-1 {
    order: 2;
  }

  .scroll-how-step[data-step="2"] {
    order: 3;
  }

  .scroll-animation-step-2 {
    order: 4;
  }

  .scroll-how-step[data-step="3"] {
    order: 5;
  }

  .scroll-animation-step-3 {
    order: 6;
  }

  /* Tablet: hide connecting line (it spans wrong content when visual is between steps) */
  .scroll-how-step::after {
    display: none;
  }

  /* Tablet: tighter step spacing so section doesn’t feel broken */
  .scroll-how-step {
    min-height: auto;
    margin-bottom: 48px;
    padding-left: 48px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .scroll-how-step:last-child {
    margin-bottom: 32px;
  }

  /* Slightly smaller circle so left column doesn’t dominate */
  .scroll-how-step::before {
    width: 24px;
    height: 24px;
    top: 32px;
    left: 0;
  }

  .scroll-how-header {
    margin-bottom: 40px;
  }

  /* Each animation is its own block: Step 1 → Anim 1 → Step 2 → Anim 2 → Step 3 → Anim 3 */
  .scroll-how-animation-container .scroll-animation {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-height: 320px;
    pointer-events: auto;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    height: auto;
    background: var(--color-bg-green);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    box-shadow: 0 8px 32px rgba(26, 44, 33, 0.12);
    margin-bottom: 32px;
    overflow-x: hidden;
    padding: 24px 16px;
  }

  .scroll-how-animation-container .scroll-animation-step-1 {
    background: #e0ede5;
    height: 540px;
    min-height: 540px;
    overflow-y: auto;
  }

  .scroll-how-animation-container .scroll-animation-step-2 {
    background: #dce8f0;
    height: 540px;
    min-height: 540px;
    overflow-y: auto;
  }

  .scroll-how-animation-container .scroll-animation-step-3 {
    background: #f0e8dc;
    height: 760px;
    min-height: 760px;
    overflow-y: auto;
  }

  .scroll-patient-table-wrapper,
  .scroll-performance-wrapper {
    max-width: 100%;
    min-width: 0;
  }
}

/* Left side: scrolling content */
.scroll-how-content {
  padding-right: 32px;
}

.scroll-how-header {
  margin-bottom: 80px;
}

.scroll-how-title {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-dark-green);
}

.scroll-how-subtitle {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.scroll-how-step {
  padding: 24px 0;
  padding-left: 80px;
  position: relative;
  transition: opacity 0.3s ease;
}

/* Desktop only: tall steps for scroll-driven sticky effect */
@media (min-width: 969px) {
  .scroll-how-step {
    min-height: 50vh;
    margin-bottom: 20vh;
  }

  .scroll-how-step:last-child {
    margin-bottom: 5vh;
  }
}

.scroll-how-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 48px;
  width: 28px;
  height: 28px;
  background: #e0ede5;
  border: 2px solid #b8d4c2;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(224, 237, 229, 0.5), 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.scroll-how-step[data-step="2"]::before {
  background: #dce8f0;
  border-color: #b8d0e8;
  box-shadow: 0 0 0 8px rgba(220, 232, 240, 0.5), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.scroll-how-step[data-step="3"]::before {
  background: #f0e8dc;
  border-color: #d8c8b8;
  box-shadow: 0 0 0 8px rgba(240, 232, 220, 0.5), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Desktop only: vertical connector line */
@media (min-width: 969px) {
  .scroll-how-step::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 76px;
    width: 2px;
    height: calc(100% + 20vh - 28px);
    background: linear-gradient(to bottom, #407756 0%, rgba(64, 119, 86, 0.3) 100%);
    z-index: 1;
  }

  .scroll-how-step:last-child::after {
    display: none;
  }
}

.scroll-how-step:hover::before {
  transform: scale(1.15);
  box-shadow: 0 0 0 12px rgba(224, 237, 229, 0.6), 0 6px 16px rgba(0, 0, 0, 0.1);
}

.scroll-how-step[data-step="2"]:hover::before {
  box-shadow: 0 0 0 12px rgba(220, 232, 240, 0.6), 0 6px 16px rgba(0, 0, 0, 0.1);
}

.scroll-how-step[data-step="3"]:hover::before {
  box-shadow: 0 0 0 12px rgba(240, 232, 220, 0.6), 0 6px 16px rgba(0, 0, 0, 0.1);
}

.scroll-step-number {
  display: none;
}

.scroll-step-title {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-dark-green);
  line-height: 1.3;
}

.scroll-step-desc {
  margin: 0 0 24px 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  max-width: 520px;
}

.scroll-step-subpoints {
  list-style: none;
  margin: 0 0 32px 0;
  padding: 0;
  max-width: 520px;
}

.scroll-step-subpoints li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 18px;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
  font-weight: 500;
}

.scroll-step-subpoints li:last-child {
  margin-bottom: 0;
}

.scroll-step-subpoints li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 10px;
  background: var(--color-accent-green);
  border-radius: 50%;
  opacity: 0.8;
}

.scroll-step-subpoints li:hover::before {
  opacity: 1;
  transform: scale(1.3);
  transition: all 0.2s ease;
}

.scroll-step-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-accent-green);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.scroll-step-cta:hover {
  background: var(--color-accent-green-hover);
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(64, 119, 86, 0.4);
}

.scroll-step-cta .btn-arrow-circle {
  width: 24px;
  height: 24px;
}

.scroll-step-cta .btn-arrow-icon {
  width: 12px;
  height: 12px;
}

/* Right side: sticky animation area */
.scroll-how-visual {
  position: relative;
}

.scroll-how-animation-container {
  position: sticky;
  top: 120px;
  width: 100%;
  height: 600px;
  background: var(--color-bg-green);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(26, 44, 33, 0.12);
  align-self: start;
  transition: background-color 0.8s ease, opacity 0.3s ease;
}

/* Different background colors for each step */
.scroll-how-animation-container[data-active-step="1"] {
  background: #e0ede5;
}

.scroll-how-animation-container[data-active-step="2"] {
  background: #dce8f0;
}

.scroll-how-animation-container[data-active-step="3"] {
  background: #f0e8dc;
}

.scroll-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  pointer-events: none;
  z-index: 1;
  visibility: hidden;
}

.scroll-animation.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 10;
  visibility: visible;
}

/* Step 1: Patient Table Animation */
.scroll-patient-table-wrapper {
  width: 100%;
  max-width: 500px;
  min-height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.scroll-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 2px solid #f0f0f0;
  background: #fafafa;
  position: sticky;
  top: 0;
  z-index: 10;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.scroll-table-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark-green);
}

.scroll-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--color-accent-green);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(64, 119, 86, 0.2);
}

.scroll-export-btn:hover {
  background: var(--color-accent-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(64, 119, 86, 0.3);
}

.scroll-export-btn.clicked {
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(64, 119, 86, 0.3);
}

.scroll-export-icon {
  font-size: 1rem;
  line-height: 1;
}

.scroll-patient-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  flex: 1;
}

.scroll-patient-row-wrapper {
  margin-bottom: 10px;
  transition: all 0.4s ease;
}

.scroll-patient-row-wrapper:last-child {
  margin-bottom: 0;
}

.scroll-patient-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8faf9;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.5s ease;
  opacity: 1;
  transform: translateX(0);
  cursor: pointer;
  margin-bottom: 10px;
}

.scroll-patient-row:last-child {
  margin-bottom: 0;
}

.scroll-patient-row-wrapper.expanded .scroll-patient-row {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: #ffffff;
  border-bottom-color: transparent;
}

.scroll-patient-row[data-status="live"] {
  opacity: 1;
}

.scroll-patient-row-hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  height: 0;
  padding: 0;
  margin-bottom: 0;
  border: none;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-patient-row.show-row {
  opacity: 1;
  transform: translateY(0) scale(1);
  height: auto;
  padding: 14px 18px;
  margin-bottom: 10px;
  border: 1px solid #e5e7eb;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-patient-name {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-dark-green);
}

.scroll-patient-tag {
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.4s ease;
}

.scroll-patient-tag-live {
  background: #dcfce7;
  color: #166534;
}

.scroll-patient-tag-lapsed {
  background: #fef3c7;
  color: #92400e;
}

.scroll-patient-tag-queued {
  background: #dbeafe;
  color: #1e40af;
}

.scroll-patient-tag-booked {
  background: #dcfce7;
  color: #166534;
}

/* Patient Details - Expandable Section */
.scroll-patient-details {
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 18px;
}

.scroll-patient-row-wrapper.expanded .scroll-patient-details {
  max-height: 400px;
  padding: 20px 18px;
  border-top: 1px solid #f0f0f0;
}

/* Outreach Steps */
.scroll-outreach-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.scroll-outreach-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.scroll-outreach-step.active {
  opacity: 1;
}

.scroll-outreach-step.completed {
  opacity: 0.6;
}

.scroll-outreach-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.scroll-outreach-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scroll-outreach-label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark-green);
}

.scroll-outreach-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Loading Spinner */
.scroll-loading-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--color-accent-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-outreach-step.active .scroll-loading-spinner {
  opacity: 1;
}

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

.scroll-status-text {
  transition: all 0.3s ease;
}

.scroll-outreach-step.completed .scroll-status-text {
  color: var(--color-accent-green);
  font-weight: 600;
}

/* Success Message */
.scroll-success-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #dcfce7;
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease;
}

.scroll-success-message.show {
  opacity: 1;
  transform: scale(1);
}

.scroll-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.scroll-success-text {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #166534;
}

/* Animation states controlled by scroll */
.scroll-patient-row.fade-out {
  opacity: 0;
  transform: translateX(-100%) scale(0.9);
  height: 0;
  padding: 0;
  margin-bottom: 0;
  border: none;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.6, 1);
}

.scroll-patient-row.whoosh-out {
  opacity: 0;
  transform: translateX(100%) scale(0.8);
  height: 0;
  padding: 0;
  margin: 0;
  border: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 1, 1);
}

.scroll-patient-row.to-queued .scroll-patient-tag {
  background: #dbeafe;
  color: #1e40af;
  animation: scrollTagPulse 0.5s ease;
}

@keyframes scrollTagPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* Animated Cursor */
.scroll-cursor {
  position: absolute;
  width: 32px;
  height: 32px;
  color: var(--color-dark-green);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.scroll-cursor.visible {
  opacity: 1;
}

.scroll-cursor.clicking {
  transform: translate(-50%, -50%) scale(0.9);
  transition: all 0.1s ease;
}

/* Step 3: Monthly Performance */
.scroll-performance-wrapper {
  width: 100%;
  max-width: 550px;
  min-height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.scroll-performance-header {
  padding: 16px 20px;
  background: var(--color-dark-green);
  color: white;
}

.scroll-performance-title {
  margin: 0 0 12px 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

.scroll-performance-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.scroll-total-item {
  text-align: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.scroll-total-highlight {
  background: var(--color-accent-green);
}

.scroll-total-label {
  font-size: 0.625rem;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scroll-total-value {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-sans);
}

.scroll-performance-table {
  padding: 20px 24px 24px 24px;
  flex: 1;
}

.scroll-performance-table-header {
  display: none;
}

.scroll-performance-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 240px;
}

.scroll-performance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #f8faf9;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  font-family: var(--font-sans);
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.6s ease, background 0.3s ease;
}

.scroll-performance-row.visible {
  opacity: 1;
}

.scroll-perf-month {
  font-weight: 600;
  color: var(--color-dark-green);
  font-size: 0.875rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* Large screens: month and tag side by side */
@media (min-width: 769px) {
  .scroll-perf-month {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
}

.scroll-month-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 3px;
  white-space: nowrap;
}

.scroll-month-tag-backlog {
  background: #dbeafe;
  color: #1e40af;
}

.scroll-month-tag-steady {
  background: #dcfce7;
  color: #166534;
}

.scroll-perf-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.scroll-perf-stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.scroll-perf-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark-green);
}

.scroll-perf-label {
  font-size: 0.6875rem;
  color: #94a3b8;
  font-weight: 500;
}

.scroll-perf-revenue {
  color: var(--color-accent-green);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-left: auto;
}

/* Placeholder for other steps */
.scroll-placeholder {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .scroll-how-it-works {
    min-height: auto;
    padding: 40px 0;
  }

  .scroll-how-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .scroll-how-content {
    padding-right: 0;
  }

  .scroll-how-header {
    margin-bottom: 48px;
  }

  .scroll-how-step {
    margin-bottom: 60px;
    min-height: auto;
    padding-left: 44px;
    padding-right: 0;
  }

  .scroll-how-step::before {
    left: 0;
    width: 22px;
    height: 22px;
    top: 40px;
  }

  .scroll-how-step::after {
    display: none;
  }

  .scroll-how-visual {
    min-height: 0;
    align-self: start;
  }

  .scroll-how-animation-container .scroll-animation {
    min-height: 300px;
  }

  .scroll-patient-table-wrapper,
  .scroll-performance-wrapper {
    min-height: 350px;
    max-width: 100%;
    overflow-x: auto;
  }

  .scroll-performance-row {
    max-width: 100%;
  }

  .scroll-perf-stats {
    flex-wrap: wrap;
    gap: 8px;
  }

  .scroll-perf-value,
  .scroll-perf-revenue {
    font-size: 0.8125rem;
  }
}

/* Team Section – reference style: dark left panel, light right */
.team-section {
  background: var(--color-bg-green);
  padding: clamp(32px, 5vw, 48px) 0 clamp(40px, 6vw, 56px);
}

.team-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 8px;
}

@media (max-width: 768px) {
  .team-container {
    padding: 0 20px;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .team-container {
    padding: 0 16px;
  }
}

@media (min-width: 1024px) {
  .team-container {
    max-width: calc(100vw - 120px);
    padding: 0 16px;
  }
}

.team-member-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 520px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26, 44, 33, 0.08);
}

.team-member-visual {
  background: var(--color-panel-brown);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.team-image-wrap {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: 0;
  overflow: hidden;
  background: var(--color-panel-brown);
}

.team-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-trust-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-white);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.trust-badge:hover {
  border-color: var(--color-accent-green);
  background: rgba(64, 119, 86, 0.04);
}

.trust-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-accent-green);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.trust-badge-text {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark-green);
}

.team-member-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 40px 48px 44px;
  justify-content: center;
}

.team-label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.team-member-headline {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.team-member-name-highlight {
  color: var(--color-dark-green);
}

.team-member-bio {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-member-bio p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-text);
}

.team-quote {
  margin: 0;
  padding: 24px 28px;
  background: var(--color-dark-green);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-accent-green);
}

.team-quote p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  font-style: italic;
}

.team-member-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px;
  background: var(--color-bg-green);
  border-radius: var(--radius-sm);
}

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

.member-stat-value {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent-green);
  margin-bottom: 6px;
}

.member-stat-label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Responsive Team Section */
@media (max-width: 968px) {
  .team-member-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .team-member-visual {
    padding: 0;
    min-height: 340px;
  }

  .team-image-wrap {
    width: 100%;
    min-height: 340px;
  }

  .team-image {
    min-height: 340px;
  }

  .team-member-content {
    padding: 40px 28px 40px 32px;
  }

  .team-member-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .member-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .member-stat-value {
    margin-bottom: 0;
    font-size: 1.5rem;
  }

  .member-stat-label {
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .team-section {
    padding: 40px 0 56px;
  }

  .team-member-visual,
  .team-image-wrap,
  .team-image {
    min-height: 280px;
  }

  .team-member-content {
    padding: 32px 20px 32px 24px;
    gap: 20px;
  }

  .team-member-headline {
    font-size: 1.375rem;
  }

  .team-member-bio p {
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .team-member-visual,
  .team-image-wrap,
  .team-image {
    min-height: 260px;
  }

  .team-member-content {
    padding: 28px 16px 28px 20px;
  }
}

/* Pricing & Calculator Section */
.pricing-section {
  background: var(--color-white);
  padding: clamp(32px, 5vw, 48px) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.pricing-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 8px;
  width: 100%;
}

@media (max-width: 768px) {
  .pricing-container {
    padding: 0 20px;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .pricing-container {
    padding: 0 16px;
  }
}

@media (min-width: 1024px) {
  .pricing-container {
    max-width: calc(100vw - 120px);
    padding: 0 16px;
  }
}

.pricing-header {
  text-align: center;
  margin-bottom: 56px;
}

.pricing-title {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-dark-green);
}

.pricing-subtitle {
  margin: 0 auto;
  max-width: 600px;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
}

.pricing-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Calculator Card */
.calculator-card {
  background: var(--color-bg-green);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 24px rgba(26, 44, 33, 0.08);
  border: 2px solid var(--color-border);
}

.calculator-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.calculator-title {
  margin: 0 0 4px;
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-dark-green);
}

.calculator-subtitle {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

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

.calculator-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Slider row: label, short slider inline, value */
.calculator-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.calculator-slider-row .calculator-label {
  flex: 1;
  min-width: 0;
}

.calculator-label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark-green);
}

.calculator-value-display {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent-green);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 7ch; /* Reserve space so numbers don't push bars when they grow */
  text-align: right;
}

.calculator-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.4;
}

/* Range Slider Styling – fixed width so all bars same size, don't move when value grows */
.calculator-slider {
  -webkit-appearance: none;
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  flex-shrink: 0;
  height: 8px;
  border-radius: 9999px;
  background: var(--color-white);
  outline: none;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.calculator-slider:hover {
  border-color: var(--color-accent-green);
}

.calculator-slider:focus {
  box-shadow: 0 0 0 4px rgba(64, 119, 86, 0.1);
}

/* Webkit (Chrome, Safari, Edge) */
.calculator-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent-green);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(64, 119, 86, 0.3);
  transition: all 0.2s ease;
}

.calculator-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(64, 119, 86, 0.4);
}

.calculator-slider::-webkit-slider-thumb:active {
  transform: scale(1.05);
}

/* Firefox */
.calculator-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent-green);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(64, 119, 86, 0.3);
  transition: all 0.2s ease;
}

.calculator-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(64, 119, 86, 0.4);
}

.calculator-slider::-moz-range-thumb:active {
  transform: scale(1.05);
}

/* Firefox range track */
.calculator-slider::-moz-range-track {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 9999px;
  height: 8px;
}

/* Slider Labels */
.slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -4px;
}

.slider-label-min,
.slider-label-max {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-light);
}

/* Calculator Results */
.calculator-results {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(26, 44, 33, 0.1);
}

.calculator-results-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-bg-green);
}

.calculator-results-title {
  margin: 0 0 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark-green);
}

.calculator-results-note {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.calculator-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calculator-breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.breakdown-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
}

.breakdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent-green);
  color: var(--color-white);
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
}

.breakdown-icon::before {
  content: '';
  position: absolute;
  color: var(--color-white);
  font-weight: 700;
}

.breakdown-icon-users::before {
  content: '⚬';
  font-size: 0.875rem;
}

.breakdown-icon-calendar::before {
  content: '◷';
  font-size: 0.75rem;
}

.breakdown-icon-check::before {
  content: '✓';
  font-size: 0.75rem;
}

.breakdown-icon-pound::before {
  content: '£';
  font-size: 0.75rem;
}

.breakdown-icon-target::before {
  content: '⊕';
  font-size: 0.875rem;
}

.breakdown-value {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-dark-green);
  white-space: nowrap;
}

.breakdown-value-large {
  font-size: 0.9375rem;
  color: var(--color-dark-green);
}

.calculator-breakdown-separator {
  height: 1px;
  background: var(--color-border);
  margin: 4px 0;
}

.calculator-breakdown-total {
  padding: 10px 12px;
  background: var(--color-bg-green);
  border-radius: var(--radius-sm);
  margin: 4px 0;
}

.calculator-breakdown-highlight {
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(64, 119, 86, 0.08) 0%, rgba(64, 119, 86, 0.04) 100%);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(64, 119, 86, 0.15);
}

.calculator-cost-breakdown {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cost-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
}

.cost-label {
  color: var(--color-text);
  font-weight: 500;
}

.cost-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-dark-green);
}

.cost-item-roi {
  padding: 10px 12px;
  background: var(--color-accent-green);
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.cost-item-roi .cost-label {
  color: var(--color-white);
  font-size: 0.8125rem;
}

.cost-item-roi .cost-value {
  color: var(--color-white);
  font-size: 0.9375rem;
}

/* Pricing Card */
.pricing-card-wrapper {
  position: sticky;
  top: 100px;
  align-self: start;
}

.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 24px rgba(26, 44, 33, 0.08);
  border: 2px solid var(--color-accent-green);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26, 44, 33, 0.12);
}

.pricing-card-header {
  text-align: center;
  margin-bottom: 20px;
}

.pricing-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-accent-green);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.pricing-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  margin-bottom: 6px;
}

.pricing-currency {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-green);
  margin-top: 6px;
}

.pricing-value {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent-green);
  line-height: 1;
}

.pricing-period {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.pricing-card-divider {
  height: 1px;
  background: var(--color-bg-green);
  margin: 16px 0;
}

.pricing-features {
  margin-bottom: 16px;
}

.pricing-features-title {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark-green);
}

.pricing-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--color-accent-green);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-feature-text {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 500;
}

.pricing-guarantees {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.pricing-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-bg-green);
  border-radius: var(--radius-sm);
}

.guarantee-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent-green);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
}

.guarantee-icon::before {
  content: '';
  position: absolute;
  color: var(--color-white);
  font-weight: 700;
}

.guarantee-icon-shield::before {
  content: '✓';
  font-size: 0.75rem;
}

.guarantee-icon-no::before {
  content: '✗';
  font-size: 0.75rem;
}

.guarantee-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-dark-green);
}

.btn-full-width {
  width: 100%;
  justify-content: center;
}

/* Responsive Pricing Section */
@media (max-width: 968px) {
  .pricing-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pricing-card-wrapper {
    position: relative;
    top: 0;
  }

  .calculator-card {
    padding: 32px 24px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-value {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .pricing-section {
    padding: 40px 0 56px;
    min-height: auto;
    align-items: flex-start;
  }

  .pricing-header {
    margin-bottom: 40px;
  }

  .calculator-card {
    padding: 28px 20px;
  }

  .calculator-input-group,
  .calculator-breakdown {
    max-width: 100%;
  }

  .calculator-slider-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
  }

  .calculator-slider-row .calculator-label {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .calculator-slider-row .calculator-slider {
    flex: 1 1 auto;
    min-width: 0;
  }

  .calculator-slider-row .calculator-value-display {
    flex-shrink: 0;
  }

  .calculator-slider {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .slider-labels {
    max-width: 100%;
    font-size: 0.75rem;
  }

  .calculator-title {
    font-size: 1.5rem;
  }

  .calculator-results {
    padding: 24px 20px;
  }

  .breakdown-value-large {
    font-size: 1.25rem;
  }

  .pricing-card {
    padding: 28px 20px;
  }

  .pricing-value {
    font-size: 3rem;
  }

  .pricing-currency {
    font-size: 1.5rem;
  }
}

/* Final CTA Section */
.final-cta-section {
  background: var(--color-bg-green);
  padding: clamp(32px, 5vw, 48px) 0;
}

.final-cta-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 8px;
}

@media (max-width: 768px) {
  .final-cta-container {
    padding: 0 20px;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .final-cta-container {
    padding: 0 16px;
  }
}

@media (min-width: 1024px) {
  .final-cta-container {
    max-width: calc(100vw - 120px);
    padding: 0 16px;
  }
}

.final-cta-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 8px 32px rgba(26, 44, 33, 0.12);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.final-cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 44, 33, 0.16);
}

.final-cta-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.final-cta-title {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--color-dark-green);
}

.final-cta-subtitle {
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.btn-cta-highlight {
  box-shadow: 0 4px 16px rgba(64, 119, 86, 0.3);
}

.btn-cta-highlight:hover {
  box-shadow: 0 6px 20px rgba(64, 119, 86, 0.4);
  transform: scale(1.04);
}

/* Responsive Final CTA */
@media (max-width: 768px) {
  .final-cta-section {
    padding: 28px 0;
  }

  .final-cta-card {
    padding: 24px 20px;
  }

  .final-cta-title {
    font-size: 1.5rem;
  }

  .final-cta-subtitle {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }

  .btn-cta-highlight {
    margin: 0 auto;
    min-height: 48px;
    padding: 14px 28px;
  }
}

/* Footer: tall dark green, vertical link list */
.footer {
  background: var(--color-dark-green);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 56px 0 48px;
  flex-wrap: wrap;
}

.footer-logo {
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-logo:hover {
  color: var(--color-white);
  opacity: 0.9;
}

.footer-logo .logo-icon {
  font-size: 1.25rem;
  color: var(--color-white);
}

.footer-nav {
  flex-shrink: 0;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list li {
  margin: 0;
}

.footer-nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-white);
  transition: color 0.15s ease, opacity 0.15s ease;
  display: inline-block;
}

.footer-nav-link:hover {
  color: var(--color-white);
  opacity: 0.85;
}

.footer-actions {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-contact {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
}

.footer-contact-link {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
}

.footer-contact-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    padding: 40px 0 36px;
  }

  .footer-actions {
    margin-left: 0;
    align-items: center;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-actions .btn-header {
    min-height: 48px;
    padding: 14px 28px;
  }

  .footer-nav-list {
    align-items: center;
  }

  .footer-nav-link {
    padding: 10px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px 20px 24px;
  background: linear-gradient(180deg, rgba(26, 44, 33, 0.98) 0%, rgba(26, 44, 33, 0.99) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(139, 253, 184, 0.2);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1 1 280px;
  min-width: 0;
}

.cookie-banner-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.95;
}

.cookie-banner-text {
  min-width: 0;
}

.cookie-banner-title {
  margin: 0 0 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-white);
  letter-spacing: 0.01em;
}

.cookie-banner-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.cookie-banner-desc a {
  color: var(--color-highlight);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-desc a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner-btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  border: none;
  white-space: nowrap;
}

.cookie-banner-btn:focus {
  outline: 2px solid var(--color-highlight);
  outline-offset: 2px;
}

.cookie-banner-btn:active {
  transform: scale(0.98);
}

.cookie-banner-btn-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.cookie-banner-btn-decline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

.cookie-banner-btn-accept {
  background: var(--color-accent-green);
  color: var(--color-white);
  border: 1px solid transparent;
}

.cookie-banner-btn-accept:hover {
  background: var(--color-accent-green-hover);
  color: var(--color-white);
}

@media (max-width: 639px) {
  .cookie-banner {
    padding: 14px 16px 20px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-banner-btn {
    flex: 1;
    min-width: 0;
  }
}
