:root {
  --purple:        #5B2D6E;
  --purple-mid:    #7C4494;
  --purple-light:  #EDE5F2;
  --purple-faint:  #F7F3FA;
  --bg:            #F4F3EE;
  --bg-cool:       #F0EEF5;
  --surface:       #FFFFFF;
  --ink:           #0F0E13;
  --ink-muted:     #4A4757;
  --ink-faint:     #9490A0;
  --border:        rgba(91,45,110,0.1);
  --border-dark:   rgba(91,45,110,0.22);
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
}

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

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

body {
  margin: 0;
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(91,45,110,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3 { margin: 0; font-family: sohne-var, "SF Pro Display", sans-serif; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }

p { margin: 0; }

em { font-style: italic; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.eyebrow {
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

/* ----------------- NAV ----------------- */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(244,243,238,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow 0.2s ease;
}
nav.site-nav.scrolled { box-shadow: 0 1px 0 var(--border-dark); }

nav.site-nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--purple); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
}
.btn-primary:hover { background: var(--purple-mid); }

.btn-primary-lg {
  background: var(--purple);
  color: #fff;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  border-radius: 8px;
}
.btn-primary-lg:hover { background: var(--purple-mid); }

.btn-outline {
  border: 1.5px solid var(--purple);
  color: var(--purple);
  background: transparent;
  padding: 0.78rem 2rem;
  font-size: 0.95rem;
  border-radius: 8px;
}
.btn-outline:hover { background: var(--purple-light); }

/* ----------------- HERO ----------------- */
section { position: relative; }

#hero {
  padding: clamp(8rem, 16vw, 11rem) 0 clamp(4rem, 8vw, 6rem);
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(91,45,110,0.07) 0%, transparent 70%), var(--bg);
  text-align: center;
}

.pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-dark);
  background: var(--surface);
  border-radius: 999px;
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

h1.hero-title {
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
  max-width: 960px;
  margin: 0 auto 1.5rem;
  text-wrap: balance;
}

h1.hero-title em {
  color: var(--purple);
  font-style: italic;
  font-weight: 500;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.cta-pair {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* HERO ANIMATION FRAME */
.hero-anim-wrap {
  max-width: 880px;
  margin: clamp(3.5rem, 7vw, 5.5rem) auto 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-anim-wrap.visible { opacity: 1; transform: none; }

.browser-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(110,46,122,0.18);
}
.browser-bar {
  height: 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}
.browser-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.browser-bar .dot.r { background: #FF5F57; }
.browser-bar .dot.y { background: #FEBC2E; }
.browser-bar .dot.g { background: #28C840; }

.diagram {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.25fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  min-height: 360px;
}

/* ----- ACT 1: Nurse + event ----- */
.diagram-left {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.nurse-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  color: var(--ink-faint);
}
.nurse-head {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
}
.nurse-body {
  width: 26px;
  height: 30px;
  border-radius: 13px 13px 4px 4px;
  background: currentColor;
}
.nurse-clipboard {
  position: absolute;
  right: -16px;
  top: 18px;
  width: 14px;
  height: 16px;
  color: var(--ink-faint);
  transform-origin: center;
}
.nurse-clipboard svg { width: 100%; height: 100%; display: block; }
.nurse-clipboard.pulse { animation: nurse-clip-pulse 0.4s ease; }

.event-node {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.event-node.visible { opacity: 1; transform: none; }
.event-node.fading { opacity: 0; transition: opacity 0.5s ease; }

/* ----- ACT 2: Marlann ----- */
.diagram-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.marlann-node {
  background: var(--purple);
  color: #fff;
  padding: 0.95rem 1.4rem;
  border-radius: 8px;
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-align: center;
  box-shadow: 0 0 0 0 rgba(110,46,122,0);
  position: relative;
  z-index: 2;
  min-width: 130px;
}
.marlann-node .marlann-label { font-weight: 500; }
.marlann-node .marlann-sub {
  font-size: 0.65rem;
  font-weight: 400;
  margin-top: 4px;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  transition: opacity 0.25s ease;
  height: 0.85rem;
  line-height: 0.85rem;
}
.marlann-node .marlann-sub.visible { opacity: 1; }
.marlann-node.pulse { animation: pulse-marlann 0.5s ease; }

/* ----- ACT 3: Role nodes ----- */
.diagram-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.role-node {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: sohne-var, "SF Pro Display", sans-serif;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.role-node.visible { opacity: 1; transform: none; }
.role-node.fading { opacity: 0; transition: opacity 0.5s ease; }
.role-node.flash { border-color: var(--purple); }
.role-node .role-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.role-node .role-action {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--ink-muted);
  margin-top: 1px;
}
.role-node .role-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.2px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.role-node .role-check svg { width: 10px; height: 10px; }
.role-node .role-check svg path {
  fill: none;
  stroke: var(--purple);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset 0.4s ease;
}
.role-node.checked .role-check {
  background: var(--purple-light);
  border-color: var(--purple);
}
.role-node.checked .role-check svg path { stroke-dashoffset: 0; }

/* ----- SVG paths ----- */
.diagram-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.diagram-svg path {
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.5;
  opacity: 0;
}
.diagram-svg path.visible { opacity: 0.55; }
.diagram-svg path.animating {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw-line-marlann 0.5s ease forwards;
  opacity: 1;
}
.diagram-svg path.fading { opacity: 0; transition: opacity 0.5s ease; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes pulse-marlann {
    0% { box-shadow: 0 0 0 0 rgba(110,46,122,0.35); }
    100% { box-shadow: 0 0 0 14px rgba(110,46,122,0); }
  }
  @keyframes draw-line-marlann {
    to { stroke-dashoffset: 0; }
  }
  @keyframes nurse-clip-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
  }
}

/* Reduced motion: show static end-state */
@media (prefers-reduced-motion: reduce) {
  .event-node { opacity: 1; transform: none; }
  .role-node { opacity: 1; transform: none; }
  .role-node .role-check { background: var(--purple-light); border-color: var(--purple); }
  .role-node .role-check svg path { stroke-dashoffset: 0; transition: none; }
}

/* ----------------- SECTIONS ----------------- */
.section-pad { padding: clamp(5rem, 10vw, 8rem) 0; }

#why {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

h2.section-h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  max-width: 820px;
}

.why-intro {
  max-width: 740px;
  margin-top: 1.75rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.problem-grid {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.problem-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: all 0.2s ease;
}
.problem-card:hover {
  border-color: var(--border-dark);
  background: var(--purple-light);
}
.problem-card h3 {
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.problem-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ----------------- HOW IT WORKS ----------------- */
#how {
  background: var(--bg-cool);
  border-top: 1px solid var(--border);
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: flex-start;
}
.how-left {
  position: sticky;
  top: 80px;
}
.how-left p {
  margin-top: 1.5rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
  font-weight: 300;
  max-width: 380px;
  line-height: 1.7;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.how-step {
  min-height: 300px;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  transition: opacity 0.4s ease;
}
.how-step .step-number {
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-style: italic;
  font-size: 3rem;
  color: var(--purple);
  opacity: 0.3;
  line-height: 1;
  transition: opacity 0.4s ease;
}
.how-step .step-content { display: flex; flex-direction: column; gap: 0.75rem; opacity: 0.4; transition: opacity 0.4s ease; }
.how-step .step-content h3 {
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-size: 1.4rem;
  color: var(--ink);
}
.how-step .step-content p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.how-step.active .step-number { opacity: 1; }
.how-step.active .step-content { opacity: 1; }
.how-step.was-active .step-content { opacity: 0.5; }
.how-step.was-active .step-number { opacity: 0.5; }

.step-illu {
  margin-top: 0.5rem;
  width: 100%;
  max-width: 320px;
  height: 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* DETECT illustration — listening microphone */
.illu-detect {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}
.detect-svg {
  width: 100%;
  height: 100%;
  max-width: 260px;
  display: block;
  overflow: visible;
}
.detect-svg .mic {
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.detect-svg .pulse-ring {
  fill: none;
  stroke: var(--purple);
  r: 14px;
  stroke-width: 1.5;
  opacity: 0;
}
.detect-svg .connector {
  stroke: var(--border-dark);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  fill: none;
}
.detect-svg .emr-node rect {
  fill: var(--bg);
  stroke: var(--border);
  stroke-width: 1;
}
.detect-svg .emr-node text {
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-size: 11px;
  fill: var(--ink-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .how-step.active .detect-svg .pulse-ring {
    animation: pulse-listen 1.8s ease-out infinite;
  }
  .how-step.active .detect-svg .pulse-ring.r2 { animation-delay: 0.6s; }
  .how-step.active .detect-svg .pulse-ring.r3 { animation-delay: 1.2s; }

  @keyframes pulse-listen {
    0%   { r: 14px; opacity: 0.5; stroke-width: 1.5; }
    100% { r: 40px; opacity: 0;   stroke-width: 0.5; }
  }
}

@media (prefers-reduced-motion: reduce), (max-width: 767px) {
  .detect-svg .pulse-ring {
    opacity: 0.2;
    r: 28px;
    stroke-width: 1;
    animation: none !important;
  }
}

/* GENERATE illustration */
.illu-gen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.illu-gen .row {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.illu-gen .checkbox {
  width: 14px; height: 14px;
  border: 1.5px solid var(--purple);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.illu-gen .checkbox svg { width: 10px; height: 10px; }
.illu-gen .checkbox svg path {
  stroke: var(--purple);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  transition: stroke-dashoffset 0.4s ease;
}
.illu-gen .line {
  flex: 1;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
}
.how-step.active .illu-gen .row { opacity: 1; transform: none; }
.how-step.active .illu-gen .row:nth-child(1) { transition-delay: 0.1s; }
.how-step.active .illu-gen .row:nth-child(2) { transition-delay: 0.3s; }
.how-step.active .illu-gen .row:nth-child(3) { transition-delay: 0.5s; }
.how-step.active .illu-gen .row .checkbox svg path { stroke-dashoffset: 0; }
.how-step.active .illu-gen .row:nth-child(1) .checkbox svg path { transition-delay: 0.5s; }
.how-step.active .illu-gen .row:nth-child(2) .checkbox svg path { transition-delay: 0.7s; }
.how-step.active .illu-gen .row:nth-child(3) .checkbox svg path { transition-delay: 0.9s; }

/* ROUTE illustration */
.illu-route { width: 100%; height: 100%; position: relative; }
.illu-route svg { width: 100%; height: 100%; }
.illu-route svg .branch {
  stroke: var(--purple);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  transition: stroke-dashoffset 0.7s ease;
}
.how-step.active .illu-route svg .branch { stroke-dashoffset: 0; }
.how-step.active .illu-route svg .branch.b2 { transition-delay: 0.2s; }
.illu-route .label {
  position: absolute;
  font-size: 0.7rem;
  color: var(--ink-muted);
  font-family: sohne-var, "SF Pro Display", sans-serif;
  background: var(--surface);
  padding: 0 4px;
}
.illu-route .label.top { left: 50%; top: 4px; transform: translateX(-50%); color: var(--ink); font-weight: 500; }
.illu-route .label.left { left: 6px; bottom: 4px; }
.illu-route .label.right { right: 6px; bottom: 4px; }

/* COMPLETE illustration */
.illu-complete { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.illu-complete .track {
  width: 100%;
  height: 8px;
  background: var(--purple-light);
  border-radius: 4px;
  overflow: hidden;
}
.illu-complete .fill {
  width: 0%;
  height: 100%;
  background: var(--purple);
  border-radius: 4px;
  transition: width 1s ease;
}
.how-step.active .illu-complete .fill { width: 100%; }
.illu-complete .check-circle {
  width: 28px; height: 28px;
  background: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
}
.illu-complete .check-circle svg { width: 14px; height: 14px; }
.illu-complete .check-circle svg path {
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.how-step.active .illu-complete .check-circle { animation: bounce-marlann 0.5s ease 1s forwards; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes bounce-marlann {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
  }
}

.how-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: clamp(4rem, 8vw, 6rem) 0 0;
}

/* ----------------- VALUE PROPS ----------------- */
#value {
  background: var(--surface);
}
.value-grid {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
}
.value-item .bar {
  width: 32px;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
.value-item h3 {
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.value-item p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ----------------- OPERATORS ----------------- */
#operators {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.operators-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.operators-text p.intro {
  margin-top: 1.5rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
}
ul.check-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
ul.check-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink);
  font-size: 0.95rem;
}
ul.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--purple);
  font-weight: 500;
}

.stats-card {
  background: var(--purple);
  color: #fff;
  border-radius: 10px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}
.stat {
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.stat:first-child { padding-top: 0; }
.stat:last-child { border-bottom: none; padding-bottom: 0; }
.stat .num {
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-style: italic;
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 1;
  color: #fff;
  margin-bottom: 0.5rem;
}
.stat .lbl {
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 260px;
  line-height: 1.5;
}

/* ----------------- CTA ----------------- */
#cta {
  background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(91,45,110,0.06) 0%, transparent 65%), var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(6rem, 12vw, 10rem) 0;
  text-align: center;
}
#cta h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}
#cta p.body {
  max-width: 500px;
  margin: 0 auto 2.25rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
}
#cta .fine {
  margin-top: 1.75rem;
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ----------------- FOOTER ----------------- */
footer.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}
footer.site-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
footer.site-footer {
  font-size: 0.825rem;
  color: var(--ink-faint);
}

/* ----------------- MODAL ----------------- */
#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,17,16,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#modal-overlay.open { display: flex; }

.modal-card {
  background: var(--surface);
  border-radius: 12px;
  max-width: 1000px;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-dark);
  position: relative;
  max-height: 92vh;
  overflow: hidden;
}

.calendly-inline-widget {
  min-width: 320px;
  width: 100%;
  height: min(80vh, 720px);
  border-radius: 8px;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 1.1rem;
  transition: color 0.2s ease;
  border-radius: 6px;
}
.modal-close:hover { color: var(--ink); }

.modal-tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}
.modal-tab {
  padding: 0.6rem 0;
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-size: 0.875rem;
  color: var(--ink-faint);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.modal-tab.active {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

.modal-form { display: none; flex-direction: column; gap: 0.9rem; }
.modal-form.active { display: flex; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}
.field input, .field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--surface);
}

.submit-btn {
  width: 100%;
  background: var(--purple);
  color: #fff;
  padding: 0.85rem;
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}
.submit-btn:hover { background: var(--purple-mid); }

.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1rem 0;
}
.modal-success.active { display: flex; }
.modal-success .check-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-success .check-bubble svg { width: 20px; height: 20px; }
.modal-success .check-bubble svg path {
  stroke: var(--purple);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.modal-success h3 {
  font-family: sohne-var, "SF Pro Display", sans-serif;
  font-size: 1.5rem;
}
.modal-success p { color: var(--ink-muted); font-size: 0.95rem; }

/* ----------------- SCROLL FADE-IN ----------------- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 100ms);
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .hero-anim-wrap { opacity: 1; transform: none; transition: none; }
  .how-step .step-number, .how-step .step-content { opacity: 1; }
  .illu-gen .row { opacity: 1; transform: none; }
  .illu-gen .row .checkbox svg path { stroke-dashoffset: 0; }
  .illu-route svg .branch { stroke-dashoffset: 0; }
  .illu-complete .fill { width: 100%; }
  .illu-complete .check-circle { transform: scale(1); }
}

/* ----------------- RESPONSIVE ----------------- */
@media (max-width: 1023px) {
  .how-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .how-left { position: static; }
  .operators-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .nav-links a { display: none; }
  .nav-links .btn-primary { display: inline-flex; }
  .problem-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .diagram {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 0;
  }
  .diagram-svg { display: none; }
  .diagram-left { justify-content: flex-start; }
  .event-node { opacity: 1; transform: none; }
  .role-node { opacity: 1; transform: none; }
  .role-node .role-check { background: var(--purple-light); border-color: var(--purple); }
  .role-node .role-check svg path { stroke-dashoffset: 0; transition: none; }
  .modal-card { padding: 1.75rem; }
  footer.site-footer .footer-inner { flex-direction: column; align-items: center; }
}
