/* ============================================================
   INJECTLY â€” Premium SaaS Design System
   ============================================================ */

/* â”€â”€ Variables â”€â”€ */
:root {
  --teal:           #0f766e;
  --teal-dark:      #125a62;
  --teal-light:     #2a9aa5;
  --teal-xlight:    #e0f3f5;
  --teal-subtle:    #f0f9fa;
  --white:          #ffffff;
  --gray-50:        #f7f8fa;
  --gray-100:       #eef2f4;
  --gray-200:       #dde4e8;
  --gray-300:       #c8d2d8;
  --gray-400:       #9aacb4;
  --gray-500:       #6e8490;
  --gray-600:       #4a6270;
  --gray-700:       #2e4550;
  --gray-800:       #1c2f38;
  --gray-900:       #0e1c22;
  --text-primary:   #0e1c22;
  --text-secondary: #4a6270;
  --text-tertiary:  #7a9aaa;
  --border:         #dde4e8;
  --border-light:   #eef2f4;
  --shadow-sm:      0 1px 3px rgba(14,28,34,.06), 0 1px 2px rgba(14,28,34,.04);
  --shadow-md:      0 4px 16px rgba(14,28,34,.08), 0 2px 6px rgba(14,28,34,.05);
  --shadow-lg:      0 8px 32px rgba(14,28,34,.10), 0 4px 12px rgba(14,28,34,.06);
  --shadow-xl:      0 16px 48px rgba(14,28,34,.12), 0 8px 24px rgba(14,28,34,.07);
  --radius-sm:      8px;
  --radius:         12px;
  --radius-lg:      18px;
  --radius-xl:      24px;
  --radius-full:    9999px;
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --banner-h:       42px;
  --nav-h:          64px;
  --transition:     0.22s cubic-bezier(.4,0,.2,1);
  --transition-slow: 0.45s cubic-bezier(.4,0,.2,1);
}

/* â”€â”€ Reset & Base â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* â”€â”€ Container â”€â”€ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal, .reveal-right {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.reveal-right {
  transform: translateX(28px);
}
.reveal.visible, .reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-label.light { color: rgba(255,255,255,.65); }

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-sub { margin: 0 auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1.5px solid transparent;
  font-family: var(--font);
  letter-spacing: -.01em;
}

.btn-primary {
  background: #0f766e;
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(15,118,110,.14);
}
.btn-primary:hover {
  background: #0b5f59;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15,118,110,.16);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-subtle);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--gray-50);
}

.btn-white {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,255,255,.2);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
}

.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   TOP BANNER
   ============================================================ */
.site-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  height: var(--banner-h);
  background: linear-gradient(140deg, var(--teal-dark) 0%, var(--teal) 72%, var(--teal-light) 100%);
  color: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.site-banner-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
}

.site-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #d7fff7;
  box-shadow: 0 0 0 5px rgba(255,255,255,.08);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-header {
  position: fixed;
  top: var(--banner-h); left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  border-radius: 0;
  transition:
    top var(--transition),
    left var(--transition),
    right var(--transition),
    height var(--transition),
    border-color var(--transition),
    border-radius var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.nav-header.scrolled {
  top: calc(var(--banner-h) + 14px);
  left: 24px;
  right: 24px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 32px rgba(14,28,34,.12);
  background: rgba(255,255,255,.68);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-img {
  width: auto;
  height: 30px;
  object-fit: contain;
}
.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--teal);
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: rgba(255,255,255,.75);
  border-radius: 4px;
}
.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding-top: 1px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
  color: var(--text-primary);
  background: var(--gray-50);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.mobile-link:hover { color: var(--text-primary); background: var(--gray-50); }
.mobile-cta { margin-top: 8px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  padding: calc(var(--banner-h) + var(--nav-h) + 72px) 0 56px;
  background: linear-gradient(160deg, var(--white) 0%, var(--teal-subtle) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,118,110,.08) 0%, transparent 70%);
  top: -100px;
  right: -200px;
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: 1200px;   /* kontrolira Å¡irinu */
  margin: 0 auto;      /* CENTRIRA */
  padding: 0 32px;     /* razmak lijevo/desno */
}

.hero-content {
  width: 100%;
  max-width: none;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-xlight);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  border: 1px solid rgba(15,118,110,.12);
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.9); }
}

.hero-headline {
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--text-primary);
  margin-bottom: 22px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.headline-accent { color: var(--teal); }

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 auto 36px;
  max-width: 760px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  justify-content: center;
}

.hero-bento {
  width: 100%;
  margin: 0 0 32px;
}

.hero-platform-image {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page {
  background: linear-gradient(180deg, #f8fbfb 0%, #ffffff 32%);
}

.about-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--banner-h) + var(--nav-h) + 84px) 0 72px;
  background:
    radial-gradient(circle at 15% 20%, rgba(15,118,110,.10) 0%, transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(42,154,165,.12) 0%, transparent 20%),
    linear-gradient(160deg, #ffffff 0%, #eef9f8 100%);
}

.about-hero::before {
  content: '';
  position: absolute;
  right: -120px;
  top: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,118,110,.12) 0%, transparent 70%);
  pointer-events: none;
}

.about-hero-inner {
  position: relative;
  z-index: 1;
}

.about-hero-copy {
  max-width: 760px;
}

.about-hero-title {
  max-width: 760px;
}

.about-hero-sub {
  max-width: 640px;
}

.about-story-section,
.about-values-section {
  padding: 88px 0;
}

.about-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr);
  gap: 26px;
}

.about-story-card {
  padding: 34px 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,250,251,.96) 100%);
  border: 1px solid rgba(221,228,232,.78);
  box-shadow: 0 20px 50px rgba(14,28,34,.07);
}

.about-story-card-alt {
  background: linear-gradient(145deg, rgba(224,243,245,.70) 0%, rgba(255,255,255,.96) 58%, rgba(242,249,250,.94) 100%);
}

.about-card-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
}

.about-card-title {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.18;
  letter-spacing: -.03em;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.about-card-copy {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.about-principles {
  list-style: none;
  display: grid;
  gap: 16px;
}

.about-principles li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.65;
}

.about-principles i {
  margin-top: 3px;
  color: var(--teal);
}

.about-values-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(15,118,110,.07) 0%, transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.about-value-card {
  padding: 28px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(221,228,232,.76);
  box-shadow: 0 18px 40px rgba(14,28,34,.06);
}

.about-value-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(15,118,110,.10);
  color: var(--teal);
  font-size: 18px;
}

.about-value-card h3 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.about-value-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
  background: linear-gradient(180deg, #f8fbfb 0%, #ffffff 34%);
}

.contact-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--banner-h) + var(--nav-h) + 84px) 0 88px;
  background:
    radial-gradient(circle at 18% 22%, rgba(15,118,110,.10) 0%, transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(42,154,165,.12) 0%, transparent 18%),
    linear-gradient(160deg, #ffffff 0%, #eef8f7 100%);
}

.contact-hero::before {
  content: '';
  position: absolute;
  left: -120px;
  top: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,118,110,.12) 0%, transparent 70%);
  pointer-events: none;
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
}

.contact-hero-copy {
  max-width: 760px;
  align-self: start;
  padding-top: 0;
}

.contact-hero-title {
  max-width: 760px;
}

.contact-hero-sub {
  max-width: 640px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.contact-card {
  max-width: 760px;
  padding: 34px 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,250,251,.96) 100%);
  border: 1px solid rgba(221,228,232,.78);
  box-shadow: 0 20px 50px rgba(14,28,34,.07);
}

.contact-card-primary {
  background: linear-gradient(145deg, rgba(224,243,245,.66) 0%, rgba(255,255,255,.97) 52%, rgba(242,249,250,.95) 100%);
}

.contact-card-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
}

.contact-card-title {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.18;
  letter-spacing: -.03em;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.contact-card-copy {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.contact-form {
  margin-top: 28px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.contact-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(221,228,232,.92);
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  color: var(--text-primary);
  font: inherit;
  padding: 15px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  resize: vertical;
}

.contact-field textarea {
  min-height: 140px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-tertiary);
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: rgba(15,118,110,.34);
  box-shadow: 0 0 0 4px rgba(15,118,110,.08);
  background: rgba(255,255,255,.96);
}

.contact-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
}

.contact-form-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.contact-form-note a {
  color: var(--teal-dark);
  font-weight: 600;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-topic-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.contact-topic-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.65;
}

.contact-topic-list i {
  margin-top: 3px;
  color: var(--teal);
}

/* ============================================================
   CAREERS PAGE
   ============================================================ */
.careers-page {
  background: linear-gradient(180deg, #f8fbfb 0%, #ffffff 34%);
}

.careers-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--banner-h) + var(--nav-h) + 84px) 0 64px;
  background:
    radial-gradient(circle at 16% 20%, rgba(15,118,110,.10) 0%, transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(42,154,165,.11) 0%, transparent 18%),
    linear-gradient(160deg, #ffffff 0%, #eef8f7 100%);
}

.careers-hero::before {
  content: '';
  position: absolute;
  right: -120px;
  top: -90px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,118,110,.12) 0%, transparent 70%);
  pointer-events: none;
}

.careers-hero-inner {
  position: relative;
  z-index: 1;
}

.careers-hero-copy {
  max-width: 780px;
}

.careers-hero-title {
  max-width: 860px;
}

.careers-hero-sub {
  max-width: 680px;
}

.careers-content-section {
  padding: 28px 0 88px;
}

.careers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr);
  gap: 26px;
}

.careers-grid-single {
  grid-template-columns: minmax(0, 1fr);
  justify-content: start;
}

.careers-card {
  padding: 34px 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,250,251,.96) 100%);
  border: 1px solid rgba(221,228,232,.78);
  box-shadow: 0 20px 50px rgba(14,28,34,.07);
}

.careers-card-primary {
  background: linear-gradient(145deg, rgba(224,243,245,.68) 0%, rgba(255,255,255,.97) 52%, rgba(242,249,250,.95) 100%);
}

.careers-card-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
}

.careers-card-title {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.18;
  letter-spacing: -.03em;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.careers-card-copy {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.careers-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.careers-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.65;
}

.careers-list i {
  margin-top: 3px;
  color: var(--teal);
}

/* ============================================================
   LEGAL PAGE
   ============================================================ */
.legal-page {
  background: linear-gradient(180deg, #f8fbfb 0%, #ffffff 36%);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--banner-h) + var(--nav-h) + 84px) 0 56px;
  background:
    radial-gradient(circle at 14% 20%, rgba(15,118,110,.10) 0%, transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(42,154,165,.10) 0%, transparent 18%),
    linear-gradient(160deg, #ffffff 0%, #eef8f7 100%);
}

.legal-hero::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -90px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,118,110,.11) 0%, transparent 70%);
  pointer-events: none;
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
}

.legal-hero-copy {
  max-width: 760px;
}

.legal-hero-title {
  max-width: 800px;
}

.legal-hero-sub {
  max-width: 620px;
}

.legal-content-section {
  padding: 0 0 88px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--banner-h) + var(--nav-h) + 28px);
  padding: 20px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(221,228,232,.8);
  box-shadow: 0 14px 36px rgba(14,28,34,.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.legal-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.legal-anchor-link {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.legal-anchor-link:hover {
  color: var(--teal-dark);
}

.legal-docs {
  display: grid;
  gap: 20px;
}

.legal-card {
  scroll-margin-top: calc(var(--banner-h) + var(--nav-h) + 28px);
  padding: 30px 30px 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,250,251,.96) 100%);
  border: 1px solid rgba(221,228,232,.78);
  box-shadow: 0 18px 44px rgba(14,28,34,.06);
}

.legal-card-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
}

.legal-card-title {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.18;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-card-copy {
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.legal-card-copy:last-child {
  margin-bottom: 0;
}
.trust-dot {
  width: 6px;
  height: 6px;
  background: var(--teal-light);
  border-radius: 50%;
}
.trust-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
}

/* â”€â”€ App Frame Mockup â”€â”€ */
.app-frame {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,.05);
  overflow: hidden;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
}

.app-frame-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border-light);
}
.frame-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.frame-dot.red    { background: #ff5f57; }
.frame-dot.yellow { background: #febc2e; }
.frame-dot.green  { background: #28c840; }
.frame-title {
  font-size: 11px;
  color: var(--gray-400);
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

.app-frame-body {
  display: flex;
  height: 440px;
  overflow: hidden;
  background: #f3f4f6;
}

/* â”€â”€ Mock Sidebar â”€â”€ */
.mock-sidebar {
  width: 176px;
  flex-shrink: 0;
  background: var(--teal);
  padding: 14px 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mock-sidebar-brand {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 2px 14px 10px 6px;
}
.mock-sidebar-wordmark {
  width: 112px;
  height: auto;
  filter: brightness(0) invert(1);
}
.mock-nav-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
  overflow: visible;
}
.mock-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px 0 0 12px;
  font-size: 12px;
  color: rgba(255,255,255,.86);
  cursor: pointer;
  transition: all var(--transition);
}
.mock-nav-item i { width: 14px; font-size: 12px; }
.mock-nav-item:hover { background: rgba(255,255,255,.1); color: var(--white); }
.mock-nav-item.active {
  background: #f3f4f6;
  color: var(--teal);
  font-weight: 600;
  border-radius: 18px 0 0 18px;
  margin-right: -8px;
  width: calc(100% + 8px);
  box-shadow: none;
}
.mock-nav-item.active::before,
.mock-nav-item.active::after {
  content: '';
  position: absolute;
  right: 0;
  width: 18px;
  height: 18px;
  background: var(--teal);
}
.mock-nav-item.active::before {
  top: -18px;
  border-bottom-right-radius: 18px;
}
.mock-nav-item.active::after {
  bottom: -18px;
  border-top-right-radius: 18px;
}
.mock-sidebar-user {
  margin-top: auto;
  margin-right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px 0 0 12px;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.08);
}
.mock-sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.16);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.mock-sidebar-user-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.mock-sidebar-user-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
}
.mock-sidebar-user-role {
  font-size: 9px;
  color: rgba(255,255,255,.72);
}

/* â”€â”€ Mock Main â”€â”€ */
.mock-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f3f4f6;
  padding: 8px 8px 8px 0;
}

.mock-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px 14px;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  border: 1px solid #e5e7eb;
  border-bottom: none;
}
.mock-greeting {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.mock-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
}

.mock-stats-row {
  display: flex;
  gap: 10px;
  padding: 12px 18px 10px;
  background: var(--white);
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}
.mock-stat-card {
  flex: 1;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--teal);
  border-radius: 18px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-stat-card.revenue { background: #f0fdf4; border-left-color: #16a34a; }
.mock-stat-card.teal { border-left-color: #0d9488; }
.mock-stat-card.blue { border-left-color: #2563eb; }
.mock-stat-label { font-size: 9px; color: var(--text-tertiary); font-weight: 500; text-transform: none; }
.mock-stat-value { font-size: 22px; font-weight: 800; color: var(--text-primary); letter-spacing: -.03em; line-height: 1; }
.mock-stat-trend { font-size: 9px; font-weight: 500; color: var(--text-tertiary); }
.mock-stat-trend.up { color: #2d9e72; }

.mock-content-row {
  display: flex;
  gap: 10px;
  padding: 0 18px 18px;
  flex: 1;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 24px 24px;
}
.mock-dashboard-section {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(15,23,42,.08);
}
.mock-appointments-panel {
  flex: 1;
  padding: 12px;
  overflow: hidden;
}
.mock-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.mock-list-header {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.mock-section-sub {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.mock-day-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mock-day-tab {
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  color: var(--text-secondary);
  background: var(--white);
}
.mock-day-tab.active {
  border-color: var(--teal);
  color: var(--teal);
  background: #ecfdf3;
}
.mock-appointments-table {
  display: flex;
  flex-direction: column;
}
.mock-table-row {
  display: grid;
  grid-template-columns: 44px 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 2px;
  border-bottom: 1px solid #eef2f4;
  font-size: 10px;
  color: var(--text-secondary);
}
.mock-table-row.head {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-top: 0;
}
.mock-table-row:last-child { border-bottom: none; }
.mock-side-panels {
  width: 148px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-status {
  font-size: 8px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 9999px;
  flex-shrink: 0;
  justify-self: start;
}
.mock-status {
  background: #f9fafb;
  color: #4b5563;
}
.mock-status.confirmed { background: #e0f3ef; color: #1a7a55; }
.mock-status.pending   { background: #fef3e0; color: #9a6a10; }
.mock-status.completed { background: #eff6ff; color: #1d4ed8; }
.mock-chart-panel,
.mock-performance-panel {
  padding: 10px;
}
.mock-chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 90px;
  padding-top: 8px;
}
.mock-bar {
  flex: 1;
  background: var(--teal-xlight);
  border-radius: 3px 3px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
  transition: background var(--transition);
  min-height: 8px;
}
.mock-chart-bars.dashboard .mock-bar.teal { background: #99f6e4; }
.mock-chart-bars.dashboard .mock-bar.amber { background: #fdba74; }
.mock-chart-bars.dashboard .mock-bar.blue { background: #93c5fd; }
.mock-chart-bars.dashboard .mock-bar.rose { background: #fda4af; }
.mock-bar.active { background: var(--teal); }
.mock-bar span {
  font-size: 7px;
  color: var(--text-tertiary);
  font-weight: 600;
}
.mock-bar.active span { color: var(--white); }
.mock-performance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f4;
}
.mock-performance-item:last-child { border-bottom: none; }
.mock-performance-label {
  font-size: 10px;
  color: var(--text-secondary);
}
.mock-performance-value {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}

/* ============================================================
   SOCIAL PROOF STRIP
   ============================================================ */
.proof-strip {
  margin-top: 56px;
  padding: 32px 0 0;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background: transparent;
}

.proof-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.proof-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.proof-logo-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.proof-logo-item i {
  color: var(--teal);
  font-size: 15px;
}
.proof-logo-item:hover {
  border-color: var(--teal-light);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   VALUES SECTION
   ============================================================ */
.values-section {
  padding: 100px 0;
  background: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--gray-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  opacity: 0;
  transition: opacity var(--transition);
}
.value-card:hover {
  border-color: var(--teal-xlight);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.value-card:hover::before { opacity: 1; }

.value-icon {
  width: 44px;
  height: 44px;
  background: var(--teal-xlight);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 18px;
  margin-bottom: 20px;
  transition: all var(--transition);
}
.value-card:hover .value-icon {
  background: var(--teal);
  color: var(--white);
}

.value-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}

.value-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ============================================================
   BENTO GRID FEATURES
   ============================================================ */
.features-section {
  padding: 100px 0;
  background: var(--gray-50);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 20px;
}

/* Patient profiles â€” large (8 cols) */
.bento-large { grid-column: span 8; }
/* Treatment tracking â€” medium (4 cols) */
.bento-medium { grid-column: span 4; }
/* Before & after â€” medium (4 cols) */
/* Consent â€” small (3 cols) */
.bento-small { grid-column: span 3; }
/* Appointments â€” small (3 cols) */
/* Analytics â€” wide (6 cols) */
.bento-wide { grid-column: span 6; }

/* Override for a nice 2nd row: medium+medium = 8 cols, small+small = 4 cols left? 
   Let me re-define specific placements: */
.bento-grid .bento-card:nth-child(1) { grid-column: 1 / 9; }   /* large 8 */
.bento-grid .bento-card:nth-child(2) { grid-column: 9 / 13; }  /* medium 4 */
.bento-grid .bento-card:nth-child(3) { grid-column: 1 / 5; }   /* medium 4 */
.bento-grid .bento-card:nth-child(4) { grid-column: 5 / 9; }   /* small 4 */
.bento-grid .bento-card:nth-child(5) { grid-column: 9 / 13; }  /* small 4 */
.bento-grid .bento-card:nth-child(6) { grid-column: 1 / 13; }  /* wide 12 */

.bento-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px 32px 28px;
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bento-card:hover {
  border-color: rgba(15,118,110,.15);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.bento-card-content { flex-shrink: 0; }
.bento-visual { flex: 1; min-height: 120px; }

.bento-icon {
  width: 40px;
  height: 40px;
  background: var(--teal-xlight);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 16px;
  margin-bottom: 14px;
}

.bento-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.bento-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* â”€â”€ Bento Mock UIs â”€â”€ */
.bento-mock {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 16px;
  height: 100%;
  min-height: 120px;
}

/* Patient profile mock */
.patient-header-mock {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.patient-avatar-big {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-xlight), var(--teal-light));
  flex-shrink: 0;
}
.patient-name-mock { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.patient-since-mock { font-size: 11px; color: var(--text-tertiary); margin-bottom: 6px; }
.patient-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.ptag {
  font-size: 10px;
  font-weight: 600;
  background: var(--teal-xlight);
  color: var(--teal-dark);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.patient-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pinfo-block {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pinfo-label { font-size: 9px; color: var(--text-tertiary); font-weight: 500; }
.pinfo-val   { font-size: 12px; font-weight: 700; color: var(--text-primary); }

/* Treatment mock */
.treatment-session {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px;
}
.ts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.ts-date { font-size: 10px; font-weight: 600; color: var(--text-tertiary); }
.ts-type {
  font-size: 10px;
  font-weight: 700;
  background: var(--teal-xlight);
  color: var(--teal);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.ts-product {
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 6px;
}
.ts-product i { color: var(--teal); margin-right: 4px; }
.ts-note {
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.ts-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.ts-tags span {
  font-size: 9px;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Photos mock */
.photo-compare {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 100%;
  min-height: 90px;
}
.photo-slot {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.photo-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-tertiary);
}
.photo-placeholder {
  flex: 1;
  background: var(--gray-100);
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--gray-400);
  font-size: 11px;
}
.photo-placeholder i { font-size: 22px; }
.photo-compare-divider {
  display: flex;
  align-items: center;
  color: var(--gray-400);
  font-size: 12px;
  padding: 18px 0;
}

/* Consent mock */
.consent-mock {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.consent-item {
  font-size: 11px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}
.consent-item.signed  { background: #e8f5ee; color: #1a7a55; }
.consent-item.pending { background: #fef3e0; color: #9a6a10; }

/* Appointment mock */
.appt-mock {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.appt-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}
.appt-time { font-size: 10px; font-weight: 700; color: var(--text-primary); min-width: 36px; }
.appt-name { font-size: 10px; color: var(--text-secondary); flex: 1; }
.appt-tag  {
  font-size: 9px;
  font-weight: 600;
  background: var(--teal-xlight);
  color: var(--teal);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Analytics mock */
.analytics-mock {
  display: flex;
  gap: 24px;
  align-items: center;
}
.analytics-kpis {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.akpi { display: flex; flex-direction: column; gap: 2px; }
.akpi-val { font-size: 22px; font-weight: 800; color: var(--text-primary); letter-spacing: -.03em; }
.akpi-label { font-size: 10px; color: var(--text-tertiary); font-weight: 500; }
.analytics-chart-mini {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}
.acm-bar {
  flex: 1;
  background: var(--teal-xlight);
  border-radius: 4px 4px 0 0;
  min-height: 10px;
  transition: background var(--transition);
}
.acm-bar.active { background: var(--teal); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
  padding: 100px 0;
  background: var(--white);
}

.flow-continuum {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(15,118,110,.10) 0%, transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(99,102,241,.11) 0%, transparent 24%),
    linear-gradient(180deg, #f7fbfb 0%, #ffffff 100%);
}

.flow-continuum::after {
  content: '';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-subtle) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.flow-continuum > section {
  position: relative;
  background: transparent;
}

.flow-continuum .container {
  position: relative;
  z-index: 1;
}

.patient-flow-section {
  background: transparent;
}

.patient-flow-shell {
  margin-top: 8px;
}

.patient-flow-shell .growth-flow-header {
  text-align: left;
}

.patient-flow-shell .growth-flow-title,
.patient-flow-shell .growth-flow-desc {
  margin-left: 0;
  margin-right: auto;
}

.patient-flow-track {
  grid-template-columns: repeat(13, minmax(0, 76px));
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.patient-flow-track .growth-flow-node:nth-child(1) { grid-column: 2 / span 2; }
.patient-flow-track .growth-flow-link:nth-child(2) { grid-column: 4 / span 1; }
.patient-flow-track .growth-flow-node:nth-child(3) { grid-column: 5 / span 2; }
.patient-flow-track .growth-flow-link:nth-child(4) { grid-column: 7 / span 1; }
.patient-flow-track .growth-flow-node:nth-child(5) { grid-column: 8 / span 2; }
.patient-flow-track .growth-flow-link:nth-child(6) { grid-column: 10 / span 1; }
.patient-flow-track .growth-flow-node:nth-child(7) { grid-column: 11 / span 2; }

.patient-flow-final {
  transform: scale(1.03);
}

.patient-flow-notes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  align-items: stretch;
}

.patient-flow-note {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 12px 24px rgba(14,28,34,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

.patient-flow-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.patient-flow-note span {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.step {
  padding: 0 28px;
  position: relative;
}
.step:first-child { padding-left: 0; }
.step:last-child  { padding-right: 0; }

.step-number {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--teal);
  margin-bottom: 16px;
}

.step-content { position: relative; }

.step-icon {
  width: 52px;
  height: 52px;
  background: var(--teal);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(15,118,110,.25);
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}

.step-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.step-connector {
  position: absolute;
  top: 50px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-xlight), transparent);
  z-index: 1;
}
.step-connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 7px solid var(--gray-200);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* ============================================================
   PRODUCT SHOWCASES
   ============================================================ */
.showcase-section {
  padding: 100px 0;
}

.showcase-a { background: var(--white); }
.showcase-b { background: var(--gray-50); }
.showcase-c { background: transparent; }

.showcase-a .showcase-inner {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap:15px;
}

.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.showcase-reverse { direction: rtl; }
.showcase-reverse > * { direction: ltr; }

.showcase-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.showcase-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.showcase-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-primary);
}
.showcase-list li i {
  color: var(--teal);
  font-size: 13px;
  flex-shrink: 0;
}

/* â”€â”€ Showcase Frame â”€â”€ */
.showcase-frame {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,.05);
  overflow: hidden;
}
.showcase-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,.05);
}
.patient-profile-image {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.patient-profile-visual {
  height: 620px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.patient-profile-visual .patient-profile-image {
  height: 100%;
  min-height: auto;
  object-fit: contain;
  object-position: left top;
  transform: scale(1.3);
  transform-origin: left top;
  margin-left: 0;
}
.treatment-intelligence-image {
  display: block;
  width: 112%;
  max-width: none;
  margin-left: -6%;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.showcase-frame-inner {
  padding: 24px;
  max-height: 520px;
  overflow: hidden;
}

.showcase-c .showcase-frame-inner {
  max-height: 620px;
}

.sf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.sf-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.sf-breadcrumb strong { color: var(--text-primary); }
.sf-breadcrumb i { font-size: 9px; }
.sf-actions { display: flex; gap: 6px; }
.sf-btn-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
}
.sf-btn-pill.accent {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.sf-patient-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}
.sf-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9e8eb, var(--teal-light));
  flex-shrink: 0;
}
.sf-patient-name { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.sf-patient-meta { font-size: 11px; color: var(--text-secondary); }
.sf-patient-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  background: #e0f3ef;
  color: #1a7a55;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.sf-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}
.sf-tab {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 7px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.sf-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
  font-weight: 700;
}

.sf-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.sf-stat {
  background: var(--gray-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sf-stat-val { font-size: 18px; font-weight: 800; color: var(--text-primary); letter-spacing: -.02em; }
.sf-stat-lbl { font-size: 10px; color: var(--text-tertiary); font-weight: 500; }

.sf-timeline {}
.sft-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.sft-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  border-left: 1px solid var(--border-light);
  padding-left: 14px;
  margin-left: 4px;
  position: relative;
}
.sft-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--gray-300);
  flex-shrink: 0;
  position: absolute;
  left: -5px;
  top: 8px;
}
.sft-dot.accent {
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--teal-light);
}
.sft-title { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.sft-date  { font-size: 10px; color: var(--text-tertiary); }

/* Session details */
.sf-session-date {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Face map */
.face-map-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.face-map {
  position: relative;
  width: 200px;
}
.face-map svg { width: 100%; height: auto; }
.face-map-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}
.fml-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-tertiary);
}
.fml-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.fml-dot.primary   { background: var(--teal); }
.fml-dot.secondary { background: var(--teal-light); }

.session-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sd-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.sd-row:last-child { border-bottom: none; }
.sd-label { color: var(--text-tertiary); }
.sd-val   { font-weight: 600; color: var(--text-primary); }

/* Communications mock */
.comms-header {
  margin-bottom: 0;
}
.comms-channel-tabs {
  display: flex;
  gap: 2px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 3px;
  width: fit-content;
}
.comms-tab {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.comms-tab.active {
  background: var(--white);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.email-preview {
  background: var(--gray-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  margin-top: 0;
}
.ep-topbar {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  background: var(--white);
}
.ep-from { font-size: 11px; color: var(--text-secondary); margin-bottom: 2px; }
.ep-from strong { color: var(--text-primary); }
.ep-subject { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.ep-body { padding: 14px; }
.ep-greeting { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.ep-text { font-size: 12px; line-height: 1.55; color: var(--text-secondary); margin-bottom: 10px; }
.ep-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 10px;
}
.ep-card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.ep-card-item {
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ep-card-item i { color: var(--teal); font-size: 10px; }
.ep-followup {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}
.ep-followup strong { color: var(--text-primary); }
.ep-cta {
  display: flex;
}
.ep-cta-btn {
  font-size: 11px;
  font-weight: 700;
  background: var(--teal);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
}

.automation-timeline {
  margin-top: 2px;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(247,250,251,.98) 100%);
  border: 1px solid rgba(221,228,232,.78);
  box-shadow: 0 10px 24px rgba(14,28,34,.05);
}
.at-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.at-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  line-height: 1.45;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(221,228,232,.58);
  border-radius: 14px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.at-item:last-child { border-bottom-color: transparent; }
.at-item i {
  width: 18px;
  margin-top: 1px;
  font-size: 12px;
  flex-shrink: 0;
  text-align: center;
}
.at-item:hover {
  transform: translateY(-1px);
}
.at-item.done {
  color: var(--text-secondary);
  background: linear-gradient(135deg, rgba(220,250,240,.72) 0%, rgba(245,251,248,.96) 100%);
  border-color: rgba(15,118,110,.10);
}
.at-item.done i {
  color: var(--teal);
}
.at-item.active {
  color: var(--text-primary);
  font-weight: 600;
  background: linear-gradient(135deg, rgba(228,242,255,.95) 0%, rgba(238,233,255,.88) 100%);
  border-color: rgba(41,102,236,.18);
  box-shadow: 0 10px 22px rgba(41,102,236,.10);
}
.at-item.active i {
  color: var(--blue);
}
.at-item.upcoming {
  color: var(--text-secondary);
  background: linear-gradient(135deg, rgba(255,242,220,.92) 0%, rgba(255,249,238,.98) 100%);
  border-color: rgba(217,119,5,.12);
}
.at-item.upcoming i {
  color: var(--amber);
}

/* ============================================================
   BENEFITS SECTION
   ============================================================ */
.benefits-section {
  padding: 100px 0;
  background: var(--gray-50);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  overflow: hidden;
  transition: all var(--transition);
}
.benefit-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background:
    radial-gradient(circle at top left, var(--benefit-accent, rgba(15,118,110,.28)) 0%, transparent 40%),
    linear-gradient(135deg, var(--benefit-accent, rgba(15,118,110,.24)) 0%, transparent 28%, transparent 72%, color-mix(in srgb, var(--benefit-accent, rgba(15,118,110,.24)) 75%, white 25%) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: .9;
  pointer-events: none;
}
.benefit-item::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  right: -34px;
  top: -34px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--benefit-accent, rgba(15,118,110,.24)) 55%, white 45%);
  opacity: .5;
  pointer-events: none;
}
.benefit-item:hover {
  border-color: var(--teal-xlight);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.benefit-teal  { --benefit-accent: rgba(15,118,110,.34); }
.benefit-amber { --benefit-accent: rgba(245,158,11,.34); }
.benefit-blue  { --benefit-accent: rgba(59,130,246,.32); }

.benefit-check {
  width: 42px;
  height: 42px;
  background: color-mix(in srgb, var(--benefit-accent, rgba(15,118,110,.18)) 20%, white 80%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.benefit-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 7px;
  letter-spacing: -.01em;
}

.benefit-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================================
   ANALYTICS / BUSINESS IMPACT
   ============================================================ */
.analytics-section {
  padding: 100px 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(15,118,110,.10) 0%, transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(99,102,241,.11) 0%, transparent 24%),
    linear-gradient(180deg, #f7fbfb 0%, #ffffff 100%);
}

.analytics-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 32px;
}

.analytics-title {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.analytics-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
}

.growth-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.growth-kpi {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 18px 20px 16px;
  min-height: 140px;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 14px 28px rgba(14,28,34,.07);
}

.growth-kpi::before {
  content: '';
  position: absolute;
  inset: auto -28px -36px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}

.growth-kpi-revenue {
  background: linear-gradient(135deg, #eafcf6 0%, #d7f6ea 100%);
}

.growth-kpi-clicks {
  background: linear-gradient(135deg, #eef1ff 0%, #e3e8ff 100%);
}

.growth-kpi-returning {
  background: linear-gradient(135deg, #fff4dd 0%, #ffe9c2 100%);
}

.growth-kpi-label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(14,28,34,.58);
  margin-bottom: 14px;
}

.growth-kpi-value {
  position: relative;
  z-index: 1;
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.05em;
  color: #0f1720;
  margin-bottom: 10px;
}

.growth-kpi-sub {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #245f53;
}

.growth-kpi-clicks .growth-kpi-sub { color: #4f46e5; }
.growth-kpi-returning .growth-kpi-sub { color: #c67b11; }

.growth-flow-shell {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(15,118,110,.08) 0%, rgba(255,255,255,.92) 26%, rgba(238,242,255,.94) 58%, rgba(255,243,219,.90) 100%);
  border: 1px solid rgba(221,228,232,.85);
  box-shadow: 0 28px 60px rgba(14,28,34,.10);
}

.growth-flow-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(15,118,110,.12) 0%, transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(99,102,241,.14) 0%, transparent 22%),
    radial-gradient(circle at 78% 82%, rgba(245,158,11,.14) 0%, transparent 24%);
  pointer-events: none;
}

.growth-flow-header {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.growth-flow-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.growth-flow-title {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.03em;
  color: var(--text-primary);
  max-width: 760px;
}

.growth-flow-desc {
  margin-top: 14px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.growth-flow-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 76px));
  align-items: center;
  gap: 18px;
  padding-inline: 22px;
  justify-content: center;
}

.growth-flow-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  border-radius: 24px;
  grid-column: span 2;
  padding: 22px 22px 20px;
  min-height: 148px;
  min-width: 152px;
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 16px 30px rgba(14,28,34,.08);
  animation: growthNodeIn 0.8s cubic-bezier(.22,1,.36,1) both;
}

.growth-flow-node:nth-child(1) { animation-delay: 0ms; }
.growth-flow-node:nth-child(3) { animation-delay: 80ms; }
.growth-flow-node:nth-child(5) { animation-delay: 160ms; }
.growth-flow-node:nth-child(7) { animation-delay: 240ms; }
.growth-flow-node:nth-child(9) { animation-delay: 320ms; }

.growth-flow-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255,255,255,.64);
  font-size: 20px;
}

.growth-flow-text {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.node-treatment { background: linear-gradient(135deg, #dcfaf0 0%, #cbf4e5 100%); color: #0f766e; }
.node-followup { background: linear-gradient(135deg, #e8f2ff 0%, #d7e8ff 100%); color: #2563eb; }
.node-email { background: linear-gradient(135deg, #eee9ff 0%, #e4dcff 100%); color: #6d28d9; }
.node-click { background: linear-gradient(135deg, #ffe8ef 0%, #ffd9e7 100%); color: #db2777; }
.node-booking { background: linear-gradient(135deg, #fff2dc 0%, #ffe5bd 100%); color: #d97706; }
.node-repeat {
  background: linear-gradient(135deg, #0f766e 0%, #16948a 100%);
  color: var(--white);
  transform: scale(1.06);
  box-shadow: 0 22px 44px rgba(15,118,110,.28);
}
.node-repeat .growth-flow-icon {
  background: rgba(255,255,255,.16);
  color: var(--white);
  box-shadow: 0 0 0 8px rgba(255,255,255,.08);
}
.node-repeat .growth-flow-text { color: var(--white); }

.growth-flow-link {
  position: relative;
  grid-column: span 1;
  height: 5px;
  margin-left: 6px;
  margin-right: -16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15,118,110,.16) 0%, rgba(15,118,110,.42) 50%, rgba(99,102,241,.24) 100%);
  overflow: hidden;
}

.growth-flow-link::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 -34%;
  width: 34%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.92) 50%, transparent 100%);
  animation: flowPulse 2.2s ease-in-out infinite;
}

.growth-flow-link::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(15,118,110,.45);
  border-right: 2px solid rgba(15,118,110,.45);
  transform: translateY(-50%) rotate(45deg);
}

@keyframes flowPulse {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(430%); opacity: 0; }
}

@keyframes flowPulseVertical {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(430%); opacity: 0; }
}

@keyframes growthNodeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dash-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.dash-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(15,118,110,.12);
  transform: translateY(-2px);
}

.dash-card-label {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 6px;
}

.dash-card-val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1;
}

.dash-card-sub {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dash-up      { color: #2d9e72; }
.dash-neutral { color: var(--teal); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-section {
  padding: 112px 0;
  background:
    radial-gradient(circle at 16% 22%, rgba(255,255,255,.12) 0%, transparent 20%),
    radial-gradient(circle at 82% 20%, rgba(255,255,255,.10) 0%, transparent 18%),
    radial-gradient(circle at 72% 78%, rgba(255,255,255,.09) 0%, transparent 24%),
    linear-gradient(135deg, #0d5b58 0%, #0f766e 42%, #15837e 70%, #35a7b0 100%);
  position: relative;
  overflow: hidden;
}

.pricing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.pricing-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04) 0%, transparent 24%, transparent 76%, rgba(7,33,32,.12) 100%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.12) 0%, transparent 34%);
  pointer-events: none;
}

.pricing-section .container {
  position: relative;
  z-index: 1;
}

.pricing-section .section-header {
  margin-bottom: 28px;
}

.pricing-section .section-title {
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.06;
  letter-spacing: -.04em;
  margin-bottom: 14px;
  color: var(--white);
}

.pricing-section .section-sub {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
}

.waitlist-card {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 46px 44px 38px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(249,251,252,.97) 100%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow:
    0 24px 56px rgba(14,28,34,.11),
    0 8px 24px rgba(10,61,58,.08);
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.waitlist-glow {
  position: absolute;
  inset: auto -72px -96px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,118,110,.12) 0%, transparent 68%);
  pointer-events: none;
}

.waitlist-card::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 33px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.24) 26%, rgba(255,255,255,0) 44%);
  pointer-events: none;
  opacity: .92;
}

.waitlist-card::after {
  content: '';
  position: absolute;
  top: -24%;
  left: -34%;
  width: 42%;
  height: 150%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 48%, rgba(255,255,255,0) 100%);
  transform: rotate(18deg);
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   DEMO MODAL
   ============================================================ */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.demo-modal[hidden] {
  display: none;
}

.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,28,34,.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.demo-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  padding: 34px 34px 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(247,250,251,.98) 100%);
  border: 1px solid rgba(221,228,232,.84);
  box-shadow: 0 30px 80px rgba(14,28,34,.22);
}

.demo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(14,28,34,.06);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.demo-modal-close:hover {
  background: rgba(14,28,34,.1);
  transform: translateY(-1px);
}

.demo-modal-copy {
  margin-bottom: 24px;
  padding-right: 40px;
}

.demo-modal-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
}

.demo-modal-title {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.demo-modal-sub {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 620px;
}

.demo-form {
  display: grid;
  gap: 14px;
}

.demo-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.demo-field {
  display: grid;
  gap: 8px;
}

.demo-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.demo-field input,
.demo-field select,
.demo-field textarea {
  width: 100%;
  border: 1px solid rgba(221,228,232,.92);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  color: var(--text-primary);
  font: inherit;
  padding: 15px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  resize: vertical;
}

.demo-field textarea {
  min-height: 120px;
}

.demo-field input::placeholder,
.demo-field textarea::placeholder {
  color: var(--text-tertiary);
}

.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
  outline: none;
  border-color: rgba(15,118,110,.34);
  box-shadow: 0 0 0 4px rgba(15,118,110,.08);
  background: rgba(255,255,255,.98);
}

.demo-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
}

.demo-form-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.demo-form-status {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
}

.demo-form-status.is-success {
  background: rgba(15,118,110,.10);
  color: var(--teal-dark);
}

.demo-form-status.is-error {
  background: rgba(220,38,38,.08);
  color: #991b1b;
}

.waitlist-offer {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15,118,110,.10);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(15,118,110,.08);
}

.waitlist-form {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 680px;
  margin: 28px auto 0;
}

.waitlist-input {
  flex: 1;
  min-width: 0;
  height: 58px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(221,228,232,.92);
  background: rgba(255,255,255,.92);
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.waitlist-input::placeholder {
  color: var(--text-tertiary);
}

.waitlist-input:focus {
  outline: none;
  border-color: rgba(15,118,110,.34);
  box-shadow: 0 0 0 4px rgba(15,118,110,.08);
}

.waitlist-button {
  height: 58px;
  padding-inline: 26px;
  flex-shrink: 0;
  box-shadow: 0 12px 28px rgba(15,118,110,.18);
}

.waitlist-support {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  font-size: 13px;
  color: rgba(74,98,112,.82);
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta-section {
  padding: 100px 0;
  background: linear-gradient(140deg, var(--teal-dark) 0%, var(--teal) 60%, var(--teal-light) 100%);
  position: relative;
  overflow: hidden;
}
.final-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.final-cta-inner {
  text-align: center;
  position: relative;
}
.final-cta-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.final-cta-title {
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 16px;
}

.final-cta-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,.75);
  max-width: 500px;
  margin: 0 auto 40px;
}

.final-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.final-trust-badges {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.final-trust-badges span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
.final-trust-badges i { color: rgba(255,255,255,.8); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  padding: 72px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo .logo-text { color: var(--white); }
.footer-logo .logo-mark::after { background: rgba(255,255,255,.6); }

.footer-tagline {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.4);
  margin: 16px 0 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 14px;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--teal);
  color: var(--white);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.5);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--white); }

.footer-bottom {
  padding: 20px 0;
  background: rgba(0,0,0,.15);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   RESPONSIVE â€” TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .showcase-a .showcase-inner,
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn,
  .hero-ctas .btn-lg {
    width: 100%;
    justify-content: center;
  }
  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-content { max-width: 100%; }

  .values-grid { grid-template-columns: 1fr; }

  .bento-grid .bento-card:nth-child(1) { grid-column: 1 / 13; }
  .bento-grid .bento-card:nth-child(2) { grid-column: 1 / 7; }
  .bento-grid .bento-card:nth-child(3) { grid-column: 7 / 13; }
  .bento-grid .bento-card:nth-child(4) { grid-column: 1 / 7; }
  .bento-grid .bento-card:nth-child(5) { grid-column: 7 / 13; }
  .bento-grid .bento-card:nth-child(6) { grid-column: 1 / 13; }

  .steps-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .step { padding: 0; }
  .step-connector { display: none; }
  .patient-flow-track {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .patient-flow-track > * {
    grid-column: auto !important;
  }
  .patient-flow-track .growth-flow-link {
    width: 4px;
    height: 18px;
    margin: 0 auto;
  }
  .patient-flow-track .growth-flow-link::before {
    inset: -34% 0 auto 0;
    width: 100%;
    height: 34%;
    animation: flowPulseVertical 2.2s ease-in-out infinite;
  }
  .patient-flow-track .growth-flow-link::after {
    top: auto;
    bottom: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(135deg);
  }
  .patient-flow-final {
    transform: none;
  }

  .showcase-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .showcase-reverse { direction: ltr; }
  .showcase-inner > .showcase-text { order: 1; }
  .showcase-inner > .showcase-visual { order: 2; }

  .benefits-grid { grid-template-columns: 1fr; }


  .analytics-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-story-grid,
  .about-values-grid,
  .careers-grid,
  .legal-layout,
  .patient-flow-notes {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    position: static;
    top: auto;
  }
  .contact-form-grid { grid-template-columns: 1fr; }
  .waitlist-form {
    flex-direction: column;
    max-width: 100%;
  }
  .waitlist-input,
  .waitlist-button {
    width: 100%;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .pricing-featured {
    transform: none;
    order: -1;
  }
  .pricing-featured:hover { transform: translateY(-4px); }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE â€” MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --banner-h: 48px;
  }

  .nav-header.scrolled {
    top: calc(var(--banner-h) + 10px);
    left: 12px;
    right: 12px;
  }
  .nav-header.scrolled .mobile-menu {
    top: calc(100% + 8px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
  }

  .site-banner-inner {
    font-size: 12px;
    line-height: 1.35;
    gap: 8px;
  }

  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .section-label { font-size: 11px; }
  .section-title { font-size: 26px; }
  .section-sub   { font-size: 15px; }
  .section-header { margin-bottom: 40px; }

  .hero-section { padding: calc(var(--banner-h) + var(--nav-h) + 40px) 0 40px; }
  .hero-headline { font-size: 34px; }
  .hero-sub  { font-size: 16px; }
  .hero-ctas { flex-direction: column; }
  .hero-trust { font-size: 12px; }
  .about-hero { padding: calc(var(--banner-h) + var(--nav-h) + 48px) 0 44px; }
  .contact-hero { padding: calc(var(--banner-h) + var(--nav-h) + 48px) 0 64px; }
  .careers-hero { padding: calc(var(--banner-h) + var(--nav-h) + 48px) 0 44px; }
  .legal-hero { padding: calc(var(--banner-h) + var(--nav-h) + 48px) 0 40px; }
  .about-story-section,
  .about-values-section,
  .careers-content-section,
  .legal-content-section { padding: 64px 0; }
  .about-story-grid,
  .about-values-grid,
  .contact-grid,
  .careers-grid,
  .legal-layout { grid-template-columns: 1fr; }
  .about-story-card,
  .contact-card,
  .careers-card,
  .legal-card { padding: 26px 22px; }
  .legal-sidebar {
    position: static;
    top: auto;
  }
  .contact-form-grid { grid-template-columns: 1fr; }
  .contact-form-actions { flex-direction: column; align-items: stretch; }
  .contact-actions { flex-direction: column; }
  .demo-modal {
    align-items: flex-start;
    padding: 16px;
    overflow-y: auto;
  }
  .demo-modal-dialog {
    width: min(760px, calc(100vw - 32px));
    max-height: none;
    margin: auto 0;
    padding: 26px 20px 20px;
  }
  .demo-form-grid { grid-template-columns: 1fr; }
  .demo-form-actions { flex-direction: column; align-items: stretch; }
  .demo-modal-copy { padding-right: 24px; }
  .patient-flow-shell .growth-flow-header { text-align: center; }
  .patient-flow-shell .growth-flow-title,
  .patient-flow-shell .growth-flow-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .flow-continuum::before {
    width: min(72vw, 460px);
    left: -96px;
    top: 50%;
    opacity: .4;
  }


  .app-frame-body { flex-direction: column; height: auto; }
  .mock-sidebar { width: 100%; flex-direction: row; align-items: center; padding: 10px 12px; gap: 8px; overflow-x: auto; }
  .mock-sidebar-brand { padding: 0 10px 0 0; min-height: auto; }
  .mock-sidebar-wordmark { width: 92px; }
  .mock-nav-items { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 0; }
  .mock-nav-item span { display: none; }
  .mock-nav-item.active::before,
  .mock-nav-item.active::after,
  .mock-sidebar-user { display: none; }
  .mock-main { min-height: 320px; padding: 8px; }
  .mock-stats-row { flex-direction: column; }
  .mock-content-row { flex-direction: column; }
  .mock-side-panels { width: 100%; }

  .proof-logos { gap: 10px; }
  .proof-logo-item { font-size: 12px; padding: 8px 12px; }

  .values-section { padding: 64px 0; }
  .values-grid { grid-template-columns: 1fr; gap: 16px; }

  .features-section { padding: 64px 0; }
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bento-grid .bento-card:nth-child(n) { grid-column: 1; }

  .how-section { padding: 64px 0; }
  .steps-wrapper { grid-template-columns: 1fr; gap: 24px; }
  .patient-flow-notes { grid-template-columns: 1fr; }
  .showcase-a .showcase-inner,
  .showcase-inner {
    grid-template-columns: 1fr;
  }
  .showcase-a .showcase-inner {
    gap: 24px;
  }
  .patient-profile-visual {
    height: 420px;
    overflow: hidden;
  }
  .patient-profile-visual .patient-profile-image {
    width: 100%;
    height: auto;
    max-height: none;
    transform: none;
    transform-origin: center top;
    object-position: center top;
  }

  .showcase-section { padding: 64px 0; }
  .showcase-title { font-size: 26px; }
  .showcase-desc  { font-size: 15px; }

  .benefits-section { padding: 64px 0; }
  .benefits-grid { grid-template-columns: 1fr; gap: 14px; }
  .benefit-item { padding: 20px; }

  .analytics-section { padding: 64px 0; }
  .analytics-title { font-size: 28px; }
  .analytics-top { grid-template-columns: 1fr; gap: 24px; }
  .growth-kpis { grid-template-columns: 1fr; }
  .growth-flow-shell { padding: 24px 18px; }
  .growth-flow-desc { font-size: 15px; }
  .growth-flow-track {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .patient-flow-track {
    grid-template-columns: 1fr;
  }
  .patient-flow-track > * {
    grid-column: auto !important;
  }
  .growth-flow-link {
    width: 4px;
    height: 18px;
    margin: 0 auto;
  }
  .growth-flow-link::before {
    inset: -34% 0 auto 0;
    width: 100%;
    height: 34%;
    animation: flowPulseVertical 2.2s ease-in-out infinite;
  }
  .growth-flow-link::after {
    top: auto;
    bottom: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(135deg);
  }
  .growth-flow-node {
    min-height: auto;
    padding: 16px 14px;
  }
  .node-repeat {
    transform: none;
  }

  .pricing-section { padding: 72px 0; }
  .pricing-section .section-title { font-size: 34px; }
  .pricing-section .section-sub { font-size: 16px; }
  .waitlist-card {
    padding: 28px 18px 22px;
    border-radius: 28px;
  }
  .waitlist-form {
    flex-direction: column;
    max-width: 100%;
    gap: 10px;
    margin-top: 22px;
  }
  .waitlist-input,
  .waitlist-button {
    width: 100%;
  }
  .waitlist-input,
  .waitlist-button {
    height: 54px;
    border-radius: 14px;
  }
  .waitlist-input {
    padding: 0 18px;
    font-size: 16px;
  }
  .waitlist-form-status {
    margin-top: 2px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
  }
  .waitlist-support {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
  }

  .final-cta-section { padding: 64px 0; }
  .final-cta-title { font-size: 28px; }
  .final-cta-actions { flex-direction: column; align-items: center; }
  .final-trust-badges { gap: 16px; }

  .footer { padding: 48px 0 0; }
  .footer-inner { gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  /* SF details on mobile */
  .sf-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .patient-info-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-mock { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-headline { font-size: 28px; }

  .proof-logos { flex-direction: column; align-items: center; }
  .footer-cols { grid-template-columns: 1fr; }
  .sf-tabs { flex-wrap: wrap; gap: 0; }
  .sf-overview-grid { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn-lg { width: 100%; justify-content: center; }
  .final-cta-actions .btn-lg { width: 100%; max-width: 280px; justify-content: center; }
  .growth-kpi-value { font-size: 34px; }
  .growth-flow-title { font-size: 24px; }
  .waitlist-card {
    width: min(100%, 100vw - 24px);
    margin-inline: auto;
    padding: 24px 12px 20px;
    border-radius: 24px;
  }
  .waitlist-form {
    gap: 8px;
  }
  .waitlist-input {
    display: block;
    width: 100% !important;
    min-height: 60px;
    height: 60px;
    padding: 0 16px;
    font-size: 16px;
    line-height: 1.2;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 16px;
  }
  .waitlist-button {
    height: 56px;
    border-radius: 16px;
  }
  .waitlist-form-status {
    font-size: 12px;
    padding: 11px 12px;
  }
}

/* ============================================================
   PREMIUM EXTRA POLISH
   ============================================================ */

/* Gradient text for selected headlines */
.headline-accent {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shimmer effect on featured pricing card */
.pricing-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    rgba(15,118,110,.04) 0%,
    rgba(42,154,165,.02) 50%,
    transparent 100%
  );
  pointer-events: none;
}

/* Subtle section alternation */
.showcase-b .showcase-frame,
.showcase-b .bento-card {
  box-shadow: var(--shadow-xl);
}

/* Benefits check icon animated fill */
.benefit-item:hover .benefit-check {
  background: var(--benefit-accent, rgba(15,118,110,.22));
  transform: scale(1.05);
  transition: all 0.22s cubic-bezier(.4,0,.2,1);
}

/* Value card icon color on featured hover */
.value-card:nth-child(1) .value-icon { background: #e0f3f5; color: #0f766e; }
.value-card:nth-child(2) .value-icon { background: #f0e8ff; color: #7c3aed; }
.value-card:nth-child(3) .value-icon { background: #e8f5ee; color: #2d9e72; }
.value-card:nth-child(4) .value-icon { background: #fff4e0; color: #d97706; }

.value-card:nth-child(1):hover .value-icon { background: #0f766e; color: #fff; }
.value-card:nth-child(2):hover .value-icon { background: #7c3aed; color: #fff; }
.value-card:nth-child(3):hover .value-icon { background: #2d9e72; color: #fff; }
.value-card:nth-child(4):hover .value-icon { background: #d97706; color: #fff; }

/* Bento card first (large) gets accent top border */
.bento-grid .bento-card:first-child {
  background: linear-gradient(160deg, var(--teal-subtle) 0%, var(--white) 40%);
}
.bento-grid .bento-card:last-child {
  background: linear-gradient(160deg, #f5f0ff 0%, var(--white) 40%);
}

/* How-it-works step numbers have a clean monospaced look */
.step-number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* Smooth transition for all interactive cards */
.bento-card,
.value-card,
.benefit-item,
.dash-card,
.pricing-card {
  will-change: transform;
}

.bento-grid,
.values-grid,
.dash-card-grid {
  perspective: 1000px;
}

/* Analytics section background variation */
.analytics-section {
  position: relative;
  overflow: hidden;
}
.analytics-section::after {
  content: '';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-subtle) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.analytics-section .container {
  position: relative;
  z-index: 1;
}

/* Final CTA animated gradient border on buttons */
.final-cta-section .btn-white {
  box-shadow: 0 4px 20px rgba(255,255,255,.15);
}

/* Proof strip animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.proof-logo-item {
  animation: fadeInUp 0.5s ease both;
}
.proof-logo-item:nth-child(1) { animation-delay: 0.1s; }
.proof-logo-item:nth-child(2) { animation-delay: 0.2s; }
.proof-logo-item:nth-child(3) { animation-delay: 0.3s; }
.proof-logo-item:nth-child(4) { animation-delay: 0.4s; }
.proof-logo-item:nth-child(5) { animation-delay: 0.5s; }

/* Responsive: pricing grid for medium screens */
@media (min-width: 769px) and (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }
  .pricing-featured { transform: scale(1); }
  .plan-tagline { min-height: unset; }
}
