/* ============================================================
   Home page styles
   ============================================================ */

/* -----------------------------------------------------------
   HERO
   ----------------------------------------------------------- */

.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #FCFEFE 0%, #F4FAFB 60%, var(--bg) 100%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
}
.hero-glow.hg-1 {
  width: 700px; height: 700px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(25,173,197,0.4), transparent 60%);
}
.hero-glow.hg-2 {
  width: 540px; height: 540px;
  top: 200px; right: -120px;
  background: radial-gradient(circle, rgba(107,215,232,0.35), transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}

.hero-top {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 56px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-wash);
}
.hero-eyebrow-link {
  background: var(--teal-wash);
  color: var(--teal-deep);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.hero-eyebrow-link:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-1px);
}

.hero-title { margin-bottom: 24px; }
.hero-lede { margin: 0 auto 36px; }

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-soft);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta .dot { opacity: 0.5; }

/* Hero demo container (React mounts inside) */
.hero-demo {
  position: relative;
  margin-top: 24px;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 60px 120px -40px rgba(15, 23, 42, 0.25),
    0 30px 60px -30px rgba(25, 173, 197, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.02);
  overflow: hidden;
}

.hero-demo-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  position: relative;
}
.hero-demo-frame::before {
  /* divider */
  content: "";
  position: absolute;
  left: 50%; top: 16px; bottom: 16px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.hd-pane {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.hd-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hd-toolbar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hd-rec-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-wash);
  animation: pulse-rec 1.6s ease-in-out infinite;
}
@keyframes pulse-rec {
  0%, 100% { box-shadow: 0 0 0 3px rgba(25,173,197,0.2); }
  50% { box-shadow: 0 0 0 9px rgba(25,173,197,0); }
}
.hd-meta {
  font-size: 11.5px;
  color: var(--text-soft);
  font-family: var(--font-mono);
}

/* Waveform */
.hd-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  width: 100%;
}
.hd-wave-bar {
  flex: 1;
  background: var(--teal);
  border-radius: 2px;
  opacity: 0.85;
  transition: height 0.18s ease;
}

/* Transcript */
.hd-transcript {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}
.hd-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hd-line.in {
  opacity: 1;
  transform: translateY(0);
}
.hd-speaker {
  flex-shrink: 0;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex; align-items: center;
  background: var(--surface-muted);
  color: var(--text-muted);
}
.hd-speaker.sp-provider { background: var(--teal-wash); color: var(--teal-deep); }
.hd-speaker.sp-assistant { background: #FEF3C7; color: #B45309; }
.hd-speaker.sp-patient { background: #F1F5F9; color: #475569; }
.hd-text { color: var(--text); }
.hd-text .hl {
  background: linear-gradient(transparent 60%, rgba(25,173,197,0.22) 60%);
  padding: 0 2px;
  border-radius: 2px;
}
.hd-translation {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-style: italic;
  color: var(--text-soft);
}

/* Right pane structured */
.hd-section-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.hd-template {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  background: var(--surface-subtle);
  display: grid; gap: 10px;
}
.hd-template-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13.5px;
}
.hd-template-title .tag {
  font-size: 10.5px; font-weight: 600;
  padding: 2px 7px; border-radius: 4px;
  background: var(--teal-wash); color: var(--teal-deep);
  letter-spacing: 0.04em;
}
.hd-field {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.hd-field:last-child { border-bottom: none; }
.hd-field-label { color: var(--text-soft); }
.hd-field-value {
  color: var(--text);
  font-weight: 500;
  transition: background .6s ease;
  padding: 2px 6px;
  margin: -2px -6px;
  border-radius: 4px;
}
.hd-field-value.empty { color: var(--text-soft); font-style: italic; font-weight: 400; }
.hd-field-value.just-filled {
  background: var(--teal-wash);
  animation: just-filled 1.6s ease-out;
}
@keyframes just-filled {
  0% { background: var(--teal-wash); }
  100% { background: transparent; }
}

.hd-cdt-section {
  display: flex; flex-direction: column; gap: 10px;
}
.hd-cdt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-cdt-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--border);
  font-size: 12.5px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(0.9) translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.hd-cdt-chip.in {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.hd-cdt-code {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--teal-deep);
  font-size: 12px;
  background: var(--teal-wash);
  padding: 2px 6px;
  border-radius: 4px;
}
.hd-cdt-attach {
  font-size: 11px;
  color: var(--success);
  display: inline-flex; align-items: center; gap: 3px;
}

/* Scrubber */
.hd-controls {
  border-top: 1px solid var(--border);
  background: var(--surface-subtle);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.hd-play {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px -4px rgba(25,173,197,0.6);
  flex-shrink: 0;
  transition: transform .15s ease;
}
.hd-play:hover { transform: scale(1.05); }
.hd-track {
  position: relative;
  flex: 1;
  height: 28px;
  display: flex; align-items: center;
  cursor: pointer;
}
.hd-track-rail {
  position: absolute; left: 0; right: 0;
  height: 4px; border-radius: 2px;
  background: var(--border);
}
.hd-track-fill {
  position: absolute; left: 0;
  height: 4px; border-radius: 2px;
  background: var(--teal);
}
.hd-track-marker {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.2s ease;
}
.hd-track-marker.passed { background: var(--teal); }
.hd-track-knob {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--teal);
  box-shadow: 0 4px 10px -2px rgba(25,173,197,0.4);
  pointer-events: none;
}
.hd-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.hd-variant {
  display: flex; gap: 4px;
  padding: 4px;
  background: var(--surface-muted);
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.hd-variant button {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-weight: 500;
}
.hd-variant button.active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Variant: morph (waveform → transcript → chip, all stay on stage) */
.hd-morph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 32px 0 0;
}
.hd-morph-stack {
  width: min(820px, 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.hd-morph-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
  padding: 16px 22px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 18px;
  min-height: 76px;
}
.hd-morph-row--transcript {
  background: #fff;
  border-color: rgba(25, 173, 197, 0.15);
  box-shadow: 0 8px 20px -10px rgba(25, 173, 197, 0.15);
}
.hd-morph-row--chip {
  background: linear-gradient(180deg, #fff 0%, #F4FAFB 100%);
  border-color: rgba(25, 173, 197, 0.25);
  box-shadow: 0 24px 50px -16px rgba(25, 173, 197, 0.32), 0 4px 12px rgba(0,0,0,0.04);
}
.hd-morph-row-l {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hd-morph-row-r {
  min-width: 0;
}
.hd-morph-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.hd-morph-sub {
  font-size: 11.5px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.hd-morph-arrow {
  display: grid;
  place-items: center;
  height: 22px;
  color: var(--teal);
  transition: opacity 0.5s ease;
}

.hd-morph-transcript {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.hd-morph-caret {
  display: inline-block;
  opacity: 0.5;
  margin-left: 1px;
  animation: morph-caret 0.9s ease-in-out infinite;
}
@keyframes morph-caret { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.85; } }
.hd-morph-hl {
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}
.hd-morph-hl.hl-typing {
  background: rgba(25, 173, 197, 0.10);
  color: var(--text);
}
.hd-morph-hl.hl-done {
  background: var(--teal-wash);
  color: var(--teal-deep);
}

.hd-morph-chip {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(25, 173, 197, 0.18);
  border-radius: 14px;
  overflow: hidden;
}
.hd-morph-chip-code {
  background: linear-gradient(135deg, #22C0DA, #0F7689);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 110px;
}
.hd-morph-chip-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.hd-morph-progress {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  width: min(820px, 100%);
}
.hd-morph-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  min-width: 0;
}
.hd-morph-progress-bar {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  transition: background 0.6s ease;
}

@media (max-width: 720px) {
  .hd-morph { padding: 28px 20px; }
  .hd-morph-row { grid-template-columns: 1fr; padding: 14px 16px; gap: 10px; }
  .hd-morph-chip { flex-direction: column; }
  .hd-morph-chip-code { padding: 12px 16px; }
}

/* Variant: bilingual - full width */
.hd-bilingual {
  grid-column: 1 / -1;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  min-height: 540px;
}

/* Variant: session (full Lab preview) */
.hd-session {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 600px;
}
.hd-session::before {
  content: "";
  position: absolute;
  left: 47%; top: 16px; bottom: 16px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

@media (max-width: 880px) {
  .hero-demo-frame, .hd-session, .hd-bilingual { grid-template-columns: 1fr; }
  .hero-demo-frame::before, .hd-session::before { display: none; }
}

/* -----------------------------------------------------------
   LOGO WALL
   ----------------------------------------------------------- */

.logos {
  padding: 64px 0 24px;
  border-bottom: 1px solid var(--border);
}
.logos-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 32px;
  letter-spacing: 0.02em;
}
.logos-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 32px;
  align-items: center;
  justify-items: center;
  color: var(--text-muted);
}
.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-muted);
  opacity: 0.72;
  transition: opacity 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.logo-item:hover { opacity: 1; color: var(--text); }
.logo-item::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}
.logo-circle::before { background: transparent; border: 1.5px solid currentColor; }
.logo-diamond::before { border-radius: 0; transform: rotate(45deg); width: 12px; height: 12px; }
.logo-mono { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.01em; }
.logo-mono::before { border-radius: 3px; }
.logo-serif { font-family: var(--font-serif); font-style: italic; font-size: 20px; font-weight: 400; letter-spacing: 0; }
.logo-serif::before { display: none; }
.logo-wide { letter-spacing: 0.08em; font-weight: 700; }
.logo-wide::before { width: 4px; height: 16px; border-radius: 1px; }
.logo-arc::before { border-radius: 50%; border: 1.5px solid currentColor; background: transparent; border-right-color: transparent; border-bottom-color: transparent; transform: rotate(-45deg); }
.logo-dot { display: inline-flex; }
.logo-dot::before { width: 10px; height: 10px; }
.logo-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; margin-left: -14px; margin-right: 4px; }
@media (max-width: 720px) {
  .logos-row { grid-template-columns: repeat(2, 1fr); }
}

/* -----------------------------------------------------------
   SECTION HEADS
   ----------------------------------------------------------- */

.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head h2 { margin-bottom: 18px; }
.section-head--center { margin: 0 auto 56px; text-align: center; }
.section-head--center .eyebrow,
.section-head--center h2 { justify-content: center; }

/* -----------------------------------------------------------
   HOW IT WORKS - 3 STEP
   ----------------------------------------------------------- */

.how-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px 48px 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  overflow: hidden;
}
.how-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.how-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal-deep);
  background: var(--teal-wash);
  width: fit-content;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.how-step h3 {
  font-size: 22px;
  letter-spacing: -0.015em;
}
.how-step p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.how-step-art {
  position: relative;
  height: 140px;
  margin-top: 8px;
  background: var(--surface-subtle);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* Connecting beams between steps */
.how-beam {
  position: absolute;
  top: 76px;
  left: -36px;
  width: 56px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--teal) 50%, transparent);
  opacity: 0.5;
}
.how-step:first-child .how-beam { display: none; }

@media (max-width: 880px) {
  .how-frame { grid-template-columns: 1fr; padding: 32px; }
  .how-beam { display: none !important; }
}

/* -----------------------------------------------------------
   FEATURE SECTIONS
   ----------------------------------------------------------- */

.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.feat-grid--text-right { grid-template-columns: 1.1fr 1fr; }

.feat-copy h2 { margin: 18px 0; max-width: 18ch; }
.feat-copy .eyebrow { margin-bottom: 4px; }
.feat-copy .lede { margin-bottom: 28px; }

.feat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 16px;
}
.feat-list li {
  display: flex; gap: 12px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.feat-list strong { color: var(--text); font-weight: 600; }
.feat-list code {
  background: var(--teal-wash);
  color: var(--teal-deep);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.feat-list .check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal-wash);
  color: var(--teal-deep);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}
.feat-list--dark strong { color: #fff; }
.feat-list--dark .check {
  background: rgba(25,173,197,0.18);
  color: #6BD7E8;
}

.feat-art {
  position: relative;
  border-radius: var(--r-xl);
  min-height: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.feat-art--dark {
  background: #0E1729;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
}

@media (max-width: 960px) {
  .feat-grid, .feat-grid--text-right { grid-template-columns: 1fr; gap: 40px; }
}

/* -----------------------------------------------------------
   BEFORE / AFTER
   ----------------------------------------------------------- */

.ba-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
}
.ba-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 28px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ba-card--old {
  background: linear-gradient(180deg, #FCFCFD 0%, #F6F6F8 100%);
}
.ba-card--new {
  background: linear-gradient(180deg, #fff 0%, #F4FAFB 100%);
  border-color: rgba(25,173,197,0.2);
  box-shadow: 0 24px 60px -20px rgba(25,173,197,0.18);
}
.ba-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ba-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}
.ba-card--new .ba-title { color: var(--teal-deep); }
.ba-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
}
.ba-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text);
  font-family: var(--font-mono);
  white-space: pre-wrap;
}
.ba-card--old .ba-body { color: var(--text-muted); }
.ba-footer {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.ba-stat {
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.ba-stat strong { font-family: var(--font-mono); }

@media (max-width: 760px) {
  .ba-frame { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------
   STATS
   ----------------------------------------------------------- */

.stats {
  padding: 32px 0 80px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.stat-unit {
  font-size: 0.45em;
  color: var(--teal-deep);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.stat-cap {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 26ch;
}

@media (max-width: 880px) {
  .stats-row { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* -----------------------------------------------------------
   TESTIMONIALS
   ----------------------------------------------------------- */

.testi-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: auto;
  gap: 20px;
}
.testi-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
}
.testi-card blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.005em;
}
.testi-card--feature {
  grid-row: span 2;
  background: linear-gradient(180deg, #fff 0%, #F4FAFB 100%);
  border-color: rgba(25,173,197,0.2);
}
.testi-card--feature blockquote {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.32;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.testi-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testi-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.testi-avatar--a { background: linear-gradient(135deg, #19ADC5, #0F7689); }
.testi-avatar--b { background: linear-gradient(135deg, #C58A19, #8A5E0F); }
.testi-avatar--c { background: linear-gradient(135deg, #6B5BC5, #3B2F89); }
.testi-avatar--d { background: linear-gradient(135deg, #C5526B, #893545); }
.testi-name { font-weight: 600; font-size: 14px; }
.testi-role { font-size: 12.5px; color: var(--text-soft); }

@media (max-width: 960px) {
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .testi-card--feature { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .testi-grid { grid-template-columns: 1fr; }
  .testi-card--feature { grid-column: auto; }
}

/* -----------------------------------------------------------
   FINAL CTA
   ----------------------------------------------------------- */

.cta-final {
  padding: 80px 0 120px;
}
.cta-card {
  position: relative;
  background: var(--ink);
  border-radius: 36px;
  padding: 72px 64px 80px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(25, 173, 197, 0.35), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(107, 215, 232, 0.18), transparent 55%);
  z-index: -1;
}

@media (max-width: 640px) {
  .cta-card { padding: 48px 32px 56px; }
}
