/* ==========================================================================
   Genograms.net — Landing Page Styles
   Brand-aligned, responsive, modern marketing page.
   ========================================================================== */

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand Palette */
  --teal-900: #134E4A;
  --teal-700: #0F766E;
  --teal-600: #0D9488;
  --teal-500: #14B8A6;
  --teal-400: #2DD4BF;
  --teal-100: #CCFBF1;
  --teal-50:  #F0FDFA;
  --amber-500: #F59E0B;
  --amber-400: #FBBF24;
  --coral-400: #F87171;
  --lavender-500: #8B5CF6;
  --sky-500: #0EA5E9;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white:     #FFFFFF;

  /* Semantic */
  --text-primary:   var(--slate-900);
  --text-secondary: var(--slate-700);
  --text-muted:     var(--slate-500);
  --bg-primary:     var(--white);
  --bg-alt:         var(--slate-50);
  --border:         var(--slate-200);
  --brand:          var(--teal-700);
  --brand-light:    var(--teal-500);
  --brand-glow:     var(--teal-100);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0F766E 0%, #0D9488 40%, #0EA5E9 100%);
  --gradient-hero-dark: linear-gradient(135deg, #134E4A 0%, #0F766E 40%, #0C4A6E 100%);
  --gradient-warm: radial-gradient(ellipse at 30% 0%, rgba(20,184,166,0.12) 0%, transparent 70%);
  --gradient-badge: linear-gradient(135deg, #0F766E, #0D9488);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.08);
  --shadow-lg: 0 12px 32px rgba(15,23,42,0.10);
  --shadow-xl: 0 20px 48px rgba(15,23,42,0.12);
  --shadow-glow: 0 0 40px rgba(20,184,166,0.15);

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', Consolas, monospace;

  /* Layout */
  --max-w: 1200px;
  --max-w-narrow: 800px;
  --nav-h: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

::selection { background: rgba(13,148,136,0.15); color: var(--text-primary); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }
* { scrollbar-width: thin; scrollbar-color: var(--slate-300) transparent; }

a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-light); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}

/* ── Container ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 32px;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(15,118,110,0.35);
}
.btn--primary:hover {
  background: var(--teal-600);
  box-shadow: 0 6px 20px rgba(15,118,110,0.45);
  transform: translateY(-1px);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--brand);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.btn--white:hover {
  background: var(--teal-50);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: var(--brand);
}

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

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border-color: transparent;
  padding: 14px 20px;
}
.btn--ghost:hover {
  background: var(--teal-50);
}

.btn--ghost-light {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.25);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  font-size: 1.0625rem;
  padding: 18px 40px;
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 10px 24px;
}

/* ── Navigation ────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  transition: all 0.3s ease;
}
.nav--scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,0.95);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  text-decoration: none;
}
.nav__brand:hover { color: var(--text-primary); }
.nav__brand svg { flex-shrink: 0; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}
.nav__link:hover {
  color: var(--brand);
  background: var(--teal-50);
}
.nav__cta {
  margin-left: 8px;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-primary);
}

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 100px;
  background: var(--gradient-hero);
  color: var(--white);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.3) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__text { max-width: 560px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  color: rgba(255,255,255,0.95);
}
.hero__badge svg { flex-shrink: 0; }
.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero__title em {
  font-style: normal;
  position: relative;
  display: inline-block;
}
.hero__title em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(251,191,36,0.4);
  border-radius: 4px;
  z-index: -1;
}
.hero__subtitle {
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
}
.hero__proof-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero__proof-item svg {
  flex-shrink: 0;
  color: var(--teal-400);
}

/* Hero Visual — Genogram Preview */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__mockup {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}
.hero__mockup-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.hero__mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.hero__mockup-dot:first-child { background: rgba(248,113,113,0.6); }
.hero__mockup-dot:nth-child(2) { background: rgba(251,191,36,0.6); }
.hero__mockup-dot:nth-child(3) { background: rgba(74,222,128,0.6); }

.hero__genogram {
  width: 100%;
  height: calc(100% - 32px);
}
.hero__genogram line, .hero__genogram polyline {
  stroke: rgba(255,255,255,0.35);
  fill: none;
}
.hero__genogram rect {
  fill: rgba(255,255,255,0.1);
  stroke: rgba(255,255,255,0.5);
  stroke-width: 2;
}
.hero__genogram circle {
  fill: rgba(255,255,255,0.1);
  stroke: rgba(255,255,255,0.5);
  stroke-width: 2;
}
.hero__genogram text {
  fill: rgba(255,255,255,0.7);
  font-family: var(--font);
  font-size: 11px;
  text-anchor: middle;
}
.hero__collab-cursor {
  position: absolute;
  bottom: 60px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--lavender-500);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px 4px 4px;
  border-radius: 0 12px 12px 0;
  animation: collab-pulse 3s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}
.hero__collab-cursor svg {
  width: 16px;
  height: 16px;
}

@keyframes collab-pulse {
  0%, 100% { transform: translate(0, 0); opacity: 1; }
  50% { transform: translate(6px, -4px); opacity: 0.85; }
}

/* Floating particles */
.hero__float {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: white;
  pointer-events: none;
  animation: float-drift 20s ease-in-out infinite;
}
.hero__float--1 { width: 200px; height: 200px; bottom: -50px; left: 10%; animation-delay: 0s; }
.hero__float--2 { width: 120px; height: 120px; top: 20%; right: 5%; animation-delay: -7s; }
.hero__float--3 { width: 80px; height: 80px; bottom: 20%; left: 45%; animation-delay: -13s; }

@keyframes float-drift {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}


/* ── Trust Bar ─────────────────────────────────────────────────────────── */
.trust-bar {
  padding: 48px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 48px;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.trust-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--teal-100);
  color: var(--teal-700);
  flex-shrink: 0;
}

/* ── Section Common ────────────────────────────────────────────────────── */
.section {
  padding: 96px 0;
}
.section--alt {
  background: var(--bg-alt);
  background-image: var(--gradient-warm);
}
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section__desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Features Grid ─────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-badge);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-200, rgba(20,184,166,0.3));
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--teal-100);
  color: var(--teal-700);
  margin-bottom: 20px;
}
.feature-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.feature-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── How It Works ──────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  text-align: center;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: var(--slate-200);
  pointer-events: none;
}
.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-badge);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 14px rgba(15,118,110,0.25);
}
.step__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.step__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.step__connector {
  display: none;
}

/* ── Pricing ───────────────────────────────────────────────────────────── */

/* Single full-width plan layout */
.pricing-plan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 2px solid var(--teal-500);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(20,184,166,0.08);
}
.pricing-plan__main {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--teal-50) 0%, rgba(20,184,166,0.04) 100%);
  border-right: 1px solid var(--border);
}
.pricing-plan__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: rgba(20,184,166,0.12);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.pricing-plan__price {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-plan__price span {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-plan__period {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.pricing-plan__cta {
  width: 100%;
  max-width: 320px;
  text-align: center;
  margin-bottom: 16px;
}
.pricing-plan__note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.pricing-plan__features {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pricing-plan__features-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.pricing-plan__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.pricing-plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 8px 0;
  line-height: 1.4;
}
.pricing-plan__list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--teal-500);
}

/* Keep old card styles for potential multi-plan future, but hide grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}
.pricing-card--featured {
  border-color: var(--teal-500);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--teal-500);
  transform: scale(1.03);
  z-index: 2;
}
.pricing-card--featured .pricing-card__badge {
  display: inline-flex;
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}
.pricing-card__badge {
  display: none;
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-badge);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.pricing-card__audience {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pricing-card__price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-card__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-card__period {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.pricing-card__features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}
.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 8px 0;
  line-height: 1.4;
}
.pricing-card__features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--teal-500);
}
.pricing-card__cta {
  width: 100%;
}

/* Toggle switch for monthly/yearly */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}
.pricing-toggle__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.pricing-toggle__label--active {
  color: var(--text-primary);
  font-weight: 600;
}
.pricing-toggle__switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.pricing-toggle__switch[aria-checked="true"] {
  background: var(--brand);
}
.pricing-toggle__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.pricing-toggle__switch[aria-checked="true"]::after {
  transform: translateX(24px);
}
.pricing-toggle__save {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber-500);
  background: rgba(245,158,11,0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ── Social Proof / Testimonials ───────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  color: var(--amber-400);
  margin-bottom: 16px;
}
.testimonial-card__quote {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.testimonial-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.testimonial-card__role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Use Cases ─────────────────────────────────────────────────────────── */
.use-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.use-case {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.25s;
}
.use-case:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.use-case__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.use-case__icon--therapy { background: rgba(139,92,246,0.1); color: var(--lavender-500); }
.use-case__icon--education { background: rgba(14,165,233,0.1); color: var(--sky-500); }
.use-case__icon--medical { background: rgba(248,113,113,0.1); color: var(--coral-400); }
.use-case__icon--research { background: rgba(245,158,11,0.1); color: var(--amber-500); }
.use-case__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.use-case__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.faq-item__question:hover {
  color: var(--brand);
}
.faq-item__question:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 2px;
}
.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  transition: transform 0.3s;
}
.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
  color: var(--brand);
}
.faq-item__answer {
  padding: 0 0 24px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 640px;
}

/* ── CTA Banner ────────────────────────────────────────────────────────── */
.cta-banner {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner__bg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.cta-banner__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  position: relative;
}
.cta-banner__desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__brand-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 280px;
}
.footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-300);
  margin-bottom: 16px;
}
.footer__links {
  list-style: none;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-size: 0.875rem;
  color: var(--slate-400);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8125rem;
}
.footer__legal a {
  color: var(--slate-500);
  margin-left: 24px;
}
.footer__legal a:hover { color: var(--slate-300); }

/* ── Security Section ──────────────────────────────────────────────────── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.security-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
}
.security-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--teal-100);
  color: var(--teal-700);
  flex-shrink: 0;
}
.security-item__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.security-item__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Active Nav Link ────────────────────────────────────────────────────── */
.nav__link--active {
  color: var(--brand);
  font-weight: 600;
  background: var(--teal-50);
}

/* ── Page Hero (About, Blog) ───────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 64px;
  background: var(--gradient-hero);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}
.page-hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ── Content Prose (about page body text) ──────────────────────────────── */
.prose {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.prose p + p {
  margin-top: 24px;
}

/* ── Blog Cards ────────────────────────────────────────────────────────── */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 32px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.blog-card__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--teal-100);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.blog-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}
.blog-card__excerpt {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  font-weight: 500;
}
.blog-card__body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 8px;
}

/* ── Login / Checkout Modal ────────────────────────────────────────────── */
.landing-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.25s, visibility 0.25s;
}
.landing-modal-overlay[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.landing-modal-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.landing-modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.landing-modal--wide {
  max-width: 640px;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.landing-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.landing-modal__close:hover {
  background: var(--slate-100);
  color: var(--text-primary);
}
.landing-modal__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}
.landing-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.landing-modal__switch {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}
.landing-modal__switch a {
  font-weight: 600;
}

/* ── Form Fields (shared by signup section + modal) ────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="text"] {
  font-family: var(--font);
  font-size: 0.9375rem;
  padding: 12px 14px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.12);
}
.form-field input::placeholder {
  color: var(--slate-400);
}
.form-error {
  font-size: 0.8125rem;
  color: var(--coral-400);
  min-height: 1.2em;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--brand);
  flex-shrink: 0;
}

/* ── Signup Section ────────────────────────────────────────────────────── */
.signup-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  padding: 4px;
  max-width: 360px;
  margin: 0 auto 40px;
}
.signup-tab {
  flex: 1;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.signup-tab:hover {
  color: var(--text-primary);
}
.signup-tab--active {
  background: var(--white);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.signup-panel {
  display: none;
  justify-content: center;
}
.signup-panel--active {
  display: flex;
}
.signup-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-md);
}
.signup-card__header {
  text-align: center;
  margin-bottom: 28px;
}
.signup-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.signup-card__subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.signup-form__btn {
  width: 100%;
  margin-top: 4px;
}

/* ── Provider Plan Mini Toggle ─────────────────────────────────────────── */
.plan-mini-toggle {
  display: flex;
  gap: 8px;
}
.plan-mini {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 14px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  background: var(--white);
}
.plan-mini input[type="radio"] {
  display: none;
}
.plan-mini--active,
.plan-mini:has(input:checked) {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--teal-50);
}
.plan-mini small {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--amber-500);
}

/* ── Animations (respect reduced motion) ───────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .reveal--visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal--delay-1 { transition-delay: 0.1s; }
  .reveal--delay-2 { transition-delay: 0.2s; }
  .reveal--delay-3 { transition-delay: 0.3s; }
  .reveal--delay-4 { transition-delay: 0.35s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero__text { max-width: 100%; margin: 0 auto; }
  .hero__subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__proof { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__mockup { max-width: 440px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .step:not(:last-child)::after { display: none; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card--featured { grid-column: 1 / -1; max-width: 400px; margin: 0 auto; transform: none; }
  .pricing-plan { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section__header { margin-bottom: 40px; }

  .hero { min-height: auto; padding: calc(var(--nav-h) + 48px) 0 64px; }
  .hero__mockup { max-width: 360px; }

  .nav__links { display: none; }
  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 24px;
    gap: 8px;
    z-index: 99;
    border-top: 1px solid var(--border);
  }
  .nav__links--open .nav__link {
    font-size: 1.125rem;
    padding: 16px;
    border-radius: var(--radius-md);
  }
  .nav__links--open .nav__cta {
    margin: 8px 0 0;
  }
  .nav__toggle { display: flex; }

  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .pricing-card--featured { transform: none; max-width: 100%; }
  .pricing-plan {
    grid-template-columns: 1fr;
  }
  .pricing-plan__main {
    border-right: none;
    border-bottom: 1px solid var(--border);
    align-items: center;
    text-align: center;
  }
  .pricing-plan__cta {
    max-width: 100%;
  }
  .testimonials-grid { grid-template-columns: 1fr; }
  .use-cases { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }

  .page-hero { padding: calc(var(--nav-h) + 40px) 0 48px; }
  .blog-card { padding: 28px 24px; }
  .landing-modal { padding: 32px 24px; }
  .signup-card { padding: 32px 24px; }
  .signup-tabs { max-width: 100%; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__legal { margin-top: 8px; }
  .footer__legal a { margin: 0 12px; }

  /* Touch-friendly FAQ items */
  .faq-item__question { padding: 20px 16px; min-height: 56px; }
  .faq-item__answer { padding: 0 16px 20px; }

  /* Touch-friendly form fields */
  .form-field input[type="email"],
  .form-field input[type="password"],
  .form-field input[type="text"] { font-size: 16px; padding: 14px 16px; }
  .btn { min-height: 48px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .trust-bar__inner { gap: 16px; flex-direction: column; }
  .cta-banner__actions { flex-direction: column; align-items: center; }
  .cta-banner__actions .btn { width: 100%; max-width: 320px; }
  .footer__grid { grid-template-columns: 1fr; }

  .plan-mini-toggle { flex-direction: column; }
  .landing-modal { padding: 28px 20px; border-radius: var(--radius-lg); }
  .landing-modal--wide { max-width: 100%; }
}

/* ── Landing toast notification ── */
.landing-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #0F766E;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.landing-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
