:root {
  --blue: #3B82F6;
  --blue-dark: #1E5FC4;
  --blue-mid: #7DAAF9;
  --blue-soft: #E5EFFD;
  --teal: #14B8A6;
  --teal-mid: #5DD4C5;
  --teal-soft: #E0F7F4;
  --ink: #1A1A1A;
  --body: #4A4A4A;
  --muted: #8A8A8A;
  --line: #E8EAED;
  --smoke: #F7F9FB;
  --white: #FFFFFF;
  --warn: #D99A2B;
  --error: #C4453A;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 30px 80px rgba(30, 95, 196, 0.12);
  --max: 1180px;
  --nav-max: 1320px;
  --nav-h: 88px;
  --scroll-pad: 84px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: var(--scroll-pad); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 96px 0; }
.section.alt { background: var(--smoke); }
.section.tint { background: var(--blue-soft); }
.section.dark {
  background: linear-gradient(180deg, #10233f 0%, #1A1A1A 100%);
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.section.dark .eyebrow { color: var(--teal-mid); }
h1, h2, h3 { margin: 0 0 16px; letter-spacing: -0.03em; line-height: 1.12; }
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 650; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--body); max-width: 680px; }
.section.dark .lead { color: rgba(255,255,255,0.78); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: transparent; border-color: var(--blue); color: var(--blue-dark); }
.btn-secondary:hover { background: var(--blue-soft); }
.btn-ghost { background: var(--white); color: var(--ink); }
.btn-ghost:hover { background: var(--smoke); }
.btn-warn { background: var(--warn); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Logo lockup */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.logo img.lockup {
  height: 44px;
  width: auto;
  display: block;
  background: transparent !important;
}
.logo img.mark, .logo svg.mark { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.logo .word { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.logo .name {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.05em;
  color: var(--ink);
  white-space: nowrap;
}
.logo .name .dot { color: var(--teal); font-weight: 700; }
.logo .tag { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 500; letter-spacing: 0.03em; white-space: nowrap; }
.logo.light .name { color: var(--white); }
.logo.light .tag { color: rgba(255,255,255,0.7); }
.logo-home { display: flex; flex: none; border-radius: 12px; }
a.tag { transition: color 0.2s ease; }
a.tag:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.logo.light a.tag:hover { color: var(--white); }
/* Links to the parent site (twapps.app) inside running text */
.tw-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(59, 130, 246, 0.45);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.tw-link:hover { color: var(--blue-dark); text-decoration-color: currentColor; }
footer .tw-link { color: rgba(255, 255, 255, 0.8); text-decoration-color: rgba(255, 255, 255, 0.35); font-size: inherit; }
footer .tw-link:hover { color: var(--white); }
.eyebrow .tw-link { text-decoration: none; }
.eyebrow .tw-link:hover { text-decoration: underline; }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: auto;
  display: flex;
  align-items: center;
  padding: 16px 0 0;
  padding-top: max(16px, env(safe-area-inset-top));
  background: transparent;
  border: 0;
}
.nav-inner {
  position: relative;
  width: min(var(--nav-max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  padding: 8px 10px 8px 18px;
  box-shadow: 0 12px 40px rgba(16, 28, 48, 0.12);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.nav.is-scrolled .nav-inner {
  background: rgba(255,255,255,0.72);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 8px 28px rgba(16, 28, 48, 0.1);
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; color: var(--body); }
.nav-links a {
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--blue-dark); }
.nav-links a.is-active {
  color: var(--blue-dark);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--blue);
}
.nav-links a.nav-dir {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  margin-left: -4px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a.nav-dir:hover { background: var(--blue); color: var(--white); }
.nav-dir .ext { width: 13px; height: 13px; flex: none; transition: transform 0.2s ease; }
.nav-dir:hover .ext { transform: translate(2px, -2px); }
.nav-links .mobile-only { display: none; }
.nav-cta { display: flex; gap: 10px; align-items: center; flex: none; }
.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  position: relative;
  cursor: pointer;
}
.menu-bar {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-btn.is-open .menu-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-btn.is-open .menu-bar:nth-child(2) { opacity: 0; }
.menu-btn.is-open .menu-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Language switch (ES · EN · FR) */
.lang-switch {
  --i: 0;
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.06);
  isolation: isolate;
  flex: none;
}
.lang-thumb {
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.lang-btn {
  position: relative;
  z-index: 1;
  min-width: 38px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.lang-btn:hover { color: var(--blue-dark); }
.lang-btn[aria-pressed="true"] { color: var(--white); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,28,48,0.28) 0%, rgba(16,28,48,0.72) 100%),
    url("../assets/images/hero-reception.jpg") center/cover no-repeat;
}
.hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  padding: 120px 0 88px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}
.hero .logo { margin-bottom: 28px; }
.hero h1 { max-width: 720px; }
.hero .lead { color: rgba(255,255,255,0.86); }
.hero-card {
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.hero .hero-card {
  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 18px 50px rgba(16, 28, 48, 0.18);
}
.hero .hero-card h3 { color: var(--ink); }
.hero .hero-card p,
.hero .hero-card .form-note,
.hero .hero-card label { color: #2a2a2a; }
.hero .hero-card input,
.hero .hero-card textarea {
  background: rgba(255,255,255,0.62);
  border-color: rgba(255,255,255,0.7);
}
.hero-card h3 { font-size: 18px; margin-bottom: 6px; }
.hero-card p { margin: 0 0 16px; color: var(--body); font-size: 14px; }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 8px 0 4px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 16px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
input.invalid, textarea.invalid { border-color: var(--error); }
.form-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.success {
  display: none;
  background: var(--teal-soft);
  color: #0b6b61;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
}

/* Split layouts */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(26,26,26,0.04);
}
.card:hover { transform: translateY(-2px); transition: 0.2s ease; }

/* ===== The gap · animated patient loop ===== */
.gap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(55% 45% at 50% 72%, rgba(229, 239, 253, 0.6), rgba(255, 255, 255, 0) 70%),
    var(--white);
}
.gap-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 64px;
  align-items: end;
  margin-bottom: 64px;
}
.gap-head h2 { margin: 0; max-width: 560px; }
.gap-head .lead { margin: 0; }

.gap-stage {
  --pw: 292px;
  --orbit: 500px;
  --sat: 40px;
  display: grid;
  grid-template-columns: minmax(230px, 262px) minmax(0, 1fr) minmax(300px, 340px);
  gap: 24px;
  align-items: center;
}

/* Channel tabs */
.gap-try {
  margin: 0 0 14px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.gap-tabs { display: grid; gap: 6px; }
.gap-tab {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}
.gap-tab:hover { background: rgba(247, 249, 251, 0.95); }
.gap-tab .ic {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--white);
  border: 1px solid #d9e6fb;
  color: var(--blue);
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.gap-tab .ic svg { width: 20px; height: 20px; }
.gap-tab .txt { min-width: 0; }
.gap-tab b {
  display: block;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  color: var(--body);
  transition: color 0.3s ease;
}
.gap-tab small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.gap-tab .go {
  width: 18px;
  height: 18px;
  color: var(--blue);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gap-tab.is-active {
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 16px 36px rgba(16, 28, 48, 0.08);
}
.gap-tab.is-active b { color: var(--ink); }
.gap-tab.is-active .ic {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.32);
}
.gap-tab.is-active .go { opacity: 1; transform: none; }
.gap-tab .bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-soft);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gap-tab .bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0);
  transform-origin: left center;
}
.gap-tab.is-active .bar { opacity: 1; }
.gap-tab.is-running .bar i { animation: gapBar var(--dur, 12s) linear forwards; }
.gap-stage.is-paused .gap-tab .bar i { animation-play-state: paused; }
/* Separate rule: browsers without :has() must not drop the one above */
.gap-stage:has(:focus-visible) .gap-tab .bar i { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  .gap-stage:hover .gap-tab .bar i { animation-play-state: paused; }
}

.gap-engine {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.gap-engine .pulse {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  animation: gapPulse 2s ease-out infinite;
}
.gap-toggle {
  margin-left: auto;
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--body);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.gap-toggle:hover { border-color: var(--blue); color: var(--blue-dark); }
.gap-toggle svg { width: 12px; height: 12px; }
.gap-toggle .i-play,
.gap-toggle[aria-pressed="true"] .i-pause { display: none; }
.gap-toggle[aria-pressed="true"] .i-play { display: block; }

/* Device + orbit */
.gap-device {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(var(--pw) * 2.04 + 56px);
}
.gap-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--orbit);
  height: var(--orbit);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.gap-orbit .ring { position: absolute; border-radius: 50%; }
.gap-orbit .r1 { inset: 0; border: 1px solid rgba(59, 130, 246, 0.14); }
.gap-orbit .r2 {
  inset: 15%;
  border: 1px solid rgba(59, 130, 246, 0.08);
  background: radial-gradient(circle, rgba(229, 239, 253, 0.95) 0%, rgba(229, 239, 253, 0.45) 55%, rgba(229, 239, 253, 0) 72%);
}
.gap-orbit .flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: gapSpin 16s linear infinite;
}
.gap-orbit .flow circle {
  fill: none;
  stroke: var(--blue);
  stroke-opacity: 0.55;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-dasharray: 46 266;
  vector-effect: non-scaling-stroke;
}
.gap-orbit .sats { position: absolute; inset: 0; animation: gapSpin 70s linear infinite; }
.gap-orbit .sat {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--sat);
  height: var(--sat);
  margin: calc(var(--sat) / -2) 0 0 calc(var(--sat) / -2);
  transform: rotate(var(--a)) translateX(calc(var(--orbit) / 2)) rotate(calc(var(--a) * -1));
}
.gap-orbit .sat > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 30%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--blue);
  box-shadow: 0 8px 20px rgba(16, 28, 48, 0.08);
  animation: gapSpin 70s linear infinite reverse;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.gap-orbit .sat svg { width: 45%; height: 45%; }
.gap-orbit .sat.is-on > span {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.14), 0 10px 24px rgba(59, 130, 246, 0.35);
}
.gap-stage.is-paused .gap-orbit .flow,
.gap-stage.is-paused .gap-orbit .sats,
.gap-stage.is-paused .gap-orbit .sat > span { animation-play-state: paused; }

/* Phone */
.gap-phone {
  position: relative;
  z-index: 2;
  width: var(--pw);
  aspect-ratio: 292 / 596;
  padding: 9px;
  border-radius: calc(var(--pw) * 0.165);
  background: #0f172a;
  box-shadow:
    0 0 0 2px rgba(59, 130, 246, 0.85),
    0 0 0 8px rgba(59, 130, 246, 0.07),
    0 44px 80px -24px rgba(16, 28, 48, 0.4),
    0 18px 40px rgba(59, 130, 246, 0.12);
  container-type: inline-size;
}
.gap-phone::before,
.gap-phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: #334155;
}
.gap-phone::before { right: -4px; top: 24%; height: 11%; }
.gap-phone::after { left: -4px; top: 19%; height: 7%; box-shadow: 0 calc(var(--pw) * 0.2) 0 #334155; }
.gap-screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: calc(var(--pw) * 0.135);
  background: var(--white);
  font-size: 16px;
  font-size: clamp(12.5px, 5.9cqw, 16px);
  line-height: 1.4;
}
.gap-island {
  position: absolute;
  z-index: 3;
  top: 0.6em;
  left: 50%;
  width: 5.8em;
  height: 1.7em;
  transform: translateX(-50%);
  border-radius: 1em;
  background: #0f172a;
}
.gap-sbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.9em;
  padding: 0.35em 1.55em 0 1.75em;
}
.gap-sbar > span:first-child { font-size: 0.76em; font-weight: 700; }
.gap-sbar .sig { display: flex; align-items: flex-end; gap: 0.14em; height: 0.7em; }
.gap-sbar .sig i { width: 0.22em; border-radius: 0.1em; background: var(--ink); }
.gap-sbar .sig i:nth-child(1) { height: 40%; }
.gap-sbar .sig i:nth-child(2) { height: 70%; }
.gap-sbar .sig i:nth-child(3) { height: 100%; }
.gap-app {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.5em 1em 0.8em;
  border-bottom: 1px solid #eef1f5;
}
.gap-app .av {
  width: 2.4em;
  height: 2.4em;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 0.75em;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0.4em 0.9em rgba(59, 130, 246, 0.3);
}
.gap-app .av svg { width: 1.2em; height: 1.2em; }
.gap-app .who { min-width: 0; line-height: 1.2; }
.gap-app strong {
  display: block;
  font-size: 0.86em;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gap-app small {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin-top: 0.2em;
  font-size: 0.68em;
  font-weight: 600;
  color: var(--blue-dark);
  white-space: nowrap;
}
.gap-app .live {
  width: 0.55em;
  height: 0.55em;
  flex: none;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0.22em rgba(34, 197, 94, 0.18);
}
.gap-app .more { margin-left: auto; display: flex; gap: 0.2em; flex: none; }
.gap-app .more i { width: 0.26em; height: 0.26em; border-radius: 50%; background: var(--body); }
.gap-prog { flex: none; padding: 0.65em 1em 0.55em; }
.gap-prog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 1.2em;
  font-size: 0.68em;
  font-weight: 500;
  color: var(--muted);
}
.gap-prog-top .ok {
  width: 1.3em;
  height: 1.3em;
  color: var(--teal);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.gap-prog.is-done .ok { opacity: 1; transform: none; }
.gap-prog-track { height: 0.2em; margin-top: 0.45em; border-radius: 1em; background: var(--blue-soft); overflow: hidden; }
.gap-prog-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gap-msgs {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5em;
  padding: 0.6em 0.85em 0.7em;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 2.4em);
  mask-image: linear-gradient(180deg, transparent 0, #000 2.4em);
}
.gm {
  flex: none;
  max-width: 84%;
  padding: 0.6em 0.85em 0.45em;
  border-radius: 1.1em;
  font-size: 0.76em;
  line-height: 1.38;
  animation: gmIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.gm time { display: block; margin-top: 0.25em; font-size: 0.8em; opacity: 0.62; }
.gm.in {
  align-self: flex-start;
  transform-origin: bottom left;
  background: var(--white);
  border: 1px solid #e3eaf5;
  border-bottom-left-radius: 0.35em;
  color: var(--ink);
  box-shadow: 0 0.3em 0.8em rgba(16, 28, 48, 0.04);
}
.gm.out {
  align-self: flex-end;
  transform-origin: bottom right;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  border-bottom-right-radius: 0.35em;
  color: var(--white);
  box-shadow: 0 0.5em 1.1em rgba(37, 99, 235, 0.25);
}
.gm.out time { text-align: right; }
.gm.sys {
  align-self: center;
  max-width: 94%;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.5em 0.9em;
  border-radius: 2em;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.66em;
  font-weight: 600;
  text-align: center;
}
.gm.sys svg { width: 1.25em; height: 1.25em; flex: none; }
.gm.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 0.28em;
  padding: 0.85em 0.95em;
  background: var(--white);
  border: 1px solid #e3eaf5;
  border-bottom-left-radius: 0.35em;
}
.gm.typing i {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--blue-mid);
  animation: gmDot 1s ease-in-out infinite;
}
.gm.typing i:nth-child(2) { animation-delay: 0.15s; }
.gm.typing i:nth-child(3) { animation-delay: 0.3s; }
.gm-card {
  flex: none;
  align-self: stretch;
  display: grid;
  grid-template-columns: 2.3em minmax(0, 1fr) 1em;
  align-items: center;
  gap: 0.65em;
  margin-top: 0.2em;
  padding: 0.7em 0.75em;
  border: 1.5px solid var(--blue);
  border-radius: 1em;
  background: linear-gradient(180deg, #ffffff, #f3f7ff);
  box-shadow: 0 0.7em 1.6em rgba(59, 130, 246, 0.18);
  animation: gmCard 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.gm-card .ck {
  width: 2.3em;
  height: 2.3em;
  display: grid;
  place-items: center;
  border-radius: 0.7em;
  background: var(--blue);
  color: var(--white);
}
.gm-card .ck svg { width: 1.2em; height: 1.2em; }
.gm-card .tx { min-width: 0; line-height: 1.25; }
.gm-card em {
  display: block;
  font-style: normal;
  font-size: 0.54em;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.gm-card strong { display: block; margin: 0.15em 0 0.1em; font-size: 0.78em; }
.gm-card small { display: block; font-size: 0.62em; color: var(--muted); }
.gm-card .go { width: 1em; height: 1em; color: var(--blue); }
.gm-card.warn { border-color: var(--warn); background: linear-gradient(180deg, #ffffff, #fff8ea); box-shadow: 0 0.7em 1.6em rgba(217, 154, 43, 0.18); }
.gm-card.warn .ck { background: var(--warn); }
.gm-card.warn em { color: #9a6a12; }
.gm-card.warn .go { color: var(--warn); }
.gap-compose {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0.35em 0.75em 0.95em;
  padding: 0.35em 0.35em 0.35em 0.9em;
  border: 1px solid #e3eaf5;
  border-radius: 1em;
  background: var(--white);
}
.gap-compose > span:first-child {
  flex: 1;
  min-width: 0;
  font-size: 0.7em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gap-compose .send {
  width: 1.9em;
  height: 1.9em;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 0.6em;
  background: var(--blue);
  color: var(--white);
}
.gap-compose .send svg { width: 1em; height: 1em; }

/* Floating badges */
.gap-badge {
  --tx: -38%;
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 34px rgba(16, 28, 48, 0.13);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  translate: var(--tx) 0;
  scale: 0.9;
  transition: opacity 0.45s ease, scale 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  animation: gapBob 5s ease-in-out infinite;
}
.gap-badge.is-on { opacity: 1; scale: 1; }
.gap-badge.b1 { top: 10%; left: calc(50% + var(--pw) / 2); }
.gap-badge.b2 { --tx: 38%; bottom: 7%; right: calc(50% + var(--pw) / 2); animation-delay: -2.5s; }
.gap-badge .dot {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
}
.gap-badge .dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  animation: gapPulseBlue 1.8s ease-out infinite;
}
.gap-badge .ck {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
}
.gap-badge .ck svg { width: 13px; height: 13px; }

/* Thread card */
.gap-card {
  position: relative;
  z-index: 1;
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fc 100%);
  box-shadow: 0 24px 60px rgba(16, 28, 48, 0.06);
}
.gap-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.gap-card h3 {
  margin: 0 0 14px;
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}
.gap-card h3 span,
.gap-card h3 em { display: block; }
.gap-card h3 em { font-style: normal; color: var(--blue); }
.gap-card-body { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--body); }
.gap-join {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  padding: 14px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.08);
}
.gap-join.is-swap { animation: gapSwap 0.5s ease both; }
.gap-join .ic {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--blue);
  color: var(--white);
}
.gap-join .ic svg { width: 20px; height: 20px; }
.gap-join em {
  display: block;
  margin-bottom: 3px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.gap-join span { display: block; font-size: 13px; line-height: 1.45; color: var(--ink); }
.gap-steps { list-style: none; margin: 0; padding: 0; }
.gap-step {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}
.gap-step:not(:last-child)::before,
.gap-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: calc(50% + 19px);
  width: 2px;
  height: calc(100% - 38px);
  border-radius: 2px;
  background: var(--line);
}
.gap-step:not(:last-child)::before {
  z-index: 1;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s ease;
}
.gap-step.is-done:not(:last-child)::before { transform: scaleY(1); }
.gap-step .n {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.gap-step b { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.3; }
.gap-step small { display: block; font-size: 12px; line-height: 1.35; color: var(--muted); }
.gap-step .st {
  width: 18px;
  height: 18px;
  color: var(--teal);
  opacity: 0;
  transform: scale(0.4) rotate(-20deg);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.gap-step.is-now .n {
  border-color: var(--blue);
  color: var(--blue-dark);
  animation: gapRing 1.6s ease-in-out infinite;
}
.gap-step.is-done .n { border-color: var(--blue); background: var(--blue); color: var(--white); }
.gap-step.is-done .st { opacity: 1; transform: none; }
.gap-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gap-tags span {
  padding: 6px 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-dark);
}

@keyframes gapBar { to { transform: scaleX(1); } }
@keyframes gapSpin { to { transform: rotate(360deg); } }
@keyframes gapPulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.45); }
  100% { box-shadow: 0 0 0 10px rgba(20, 184, 166, 0); }
}
@keyframes gapPulseBlue {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
  100% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}
@keyframes gapRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.28); }
  50% { box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.12); }
}
@keyframes gapBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes gapSwap {
  from { opacity: 0.25; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes gmIn {
  from { opacity: 0; transform: translateY(0.8em) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes gmCard {
  from { opacity: 0; transform: translateY(1.2em) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes gmDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-0.3em); opacity: 1; }
}

.crm-toast {
  margin-top: 14px;
  background: var(--teal-soft);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
}
.cohorts { display: grid; gap: 10px; margin: 22px 0 8px; }
.cohort {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  width: 100%;
  color: var(--ink);
}
.cohort:hover { border-color: var(--blue-mid); }
.cohort.active {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.cohort b { display: block; font-size: 14px; }
.cohort span { display: block; font-size: 13px; color: var(--body); font-weight: 400; }
.radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line); margin-top: 2px;
  box-shadow: inset 0 0 0 3px #fff;
}
.cohort.active .radio { border-color: var(--blue); background: var(--blue); }
.recall-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.recall-kpis div {
  background: var(--smoke);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.recall-kpis strong { display: block; font-size: 20px; color: var(--blue-dark); }
.recall-kpis small { color: var(--muted); font-size: 11px; }
.loop-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.loop-steps span {
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

/* AI grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.icon-box {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-dark); font-size: 20px; margin-bottom: 12px;
}
.ai-card p { color: var(--body); font-size: 14px; margin: 0; }

/* OS diagram */
.os-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.os-node {
  width: 100%;
  background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.os-node:hover, .os-node.on {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: var(--shadow);
}
.relations { font-size: 13px; color: var(--body); margin-top: 16px; }
/* Two full images (native 16:9, never cropped) */
.os-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.os-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(16, 28, 48, 0.08);
}
@media (max-width: 640px) {
  .os-media { grid-template-columns: 1fr; gap: 12px; }
}

/* Limits */
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.can, .cannot {
  border-radius: 20px;
  padding: 26px 26px 22px;
  border: 1px solid transparent;
}
.can {
  background: var(--white);
  border-color: #b7ebe4;
  box-shadow: inset 4px 0 0 var(--teal);
}
.cannot {
  background: var(--white);
  border-color: var(--line);
  box-shadow: inset 4px 0 0 #1E5FC4;
}
.can h3 { color: #0f766e; }
.cannot h3 { color: var(--blue-dark); }
.can li, .cannot li { margin: 8px 0; color: var(--body); }
.can ul, .cannot ul { padding-left: 18px; }
.principles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.principles span {
  background: white; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px;
}

/* Use cases */
.uc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.uc {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: white;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: var(--ink);
  /* Buttons centre their content vertically; stack it from the top so every image lines up */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.uc:hover { transform: translateY(-3px); border-color: rgba(59, 130, 246, 0.3); box-shadow: 0 16px 36px rgba(16, 28, 48, 0.08); }
.uc img { flex: none; height: 130px; width: 100%; object-fit: cover; }
.uc .pad { padding: 14px; }
.uc h3 { font-size: 16px; margin-bottom: 6px; }
.uc p { margin: 0; font-size: 13px; color: var(--body); }
.modal {
  position: fixed; inset: 0; background: rgba(16,23,42,0.55);
  display: none; align-items: center; justify-content: center; z-index: 80; padding: 20px;
}
.modal.open { display: flex; }
.modal-card {
  width: min(640px, 100%);
  background: white;
  border-radius: 20px;
  padding: 24px;
  max-height: 86vh;
  overflow: auto;
}

/* Demo timeline */
.timeline { display: grid; gap: 10px; }
.tl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
}
.tl.active { border-color: var(--blue); background: var(--blue-soft); }
.tl b { font-size: 13px; color: var(--blue-dark); }
.pipeline {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px;
}
.stage {
  font-size: 12px; padding: 6px 10px; border-radius: 999px; background: var(--line); color: var(--body);
}
.stage.done { background: var(--teal); color: white; }
.stage.now { background: var(--blue); color: white; }

/* Footer */
footer {
  background: #101828;
  color: white;
  padding: 56px 0 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}
.ft-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
footer a { color: rgba(255,255,255,0.75); font-size: 14px; }
footer a:hover { color: white; }
.legal { margin-top: 28px; font-size: 12px; color: rgba(255,255,255,0.55); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }

.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.7s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ===== Market evidence (light, in the site's blue family) ===== */
.evidence {
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0) 60%),
    linear-gradient(180deg, #eef4fe 0%, #f7faff 100%);
}
.evi-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 64px;
  align-items: end;
}
.evi-head h2 { margin: 0; max-width: 560px; }
.evi-head-side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.evi-head-side .lead { margin: 0; }
.evi-open { padding: 11px 18px; font-size: 14px; background: var(--white); }
.evi-open svg { width: 17px; height: 17px; }
.evi-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.evi-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(30, 95, 196, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.evi-stat:hover { transform: translateY(-3px); border-color: rgba(59, 130, 246, 0.3); box-shadow: 0 18px 40px rgba(30, 95, 196, 0.12); }
.evi-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}
.evi-ic svg { width: 20px; height: 20px; }
.evi-n {
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.evi-n.is-money { font-size: clamp(24px, 2.1vw, 29px); padding: 6px 0 3px; }
.evi-stat > b { flex: 1; font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--body); }
.evi-src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 0 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-dark);
  text-align: left;
  cursor: pointer;
}
.evi-src svg { flex: none; width: 14px; height: 14px; transition: transform 0.2s ease; }
.evi-src:hover { text-decoration: underline; text-underline-offset: 3px; }
.evi-src:hover svg { transform: translateX(2px); }
a.evi-src:hover svg { transform: translate(2px, -2px); }

.evi-explorer {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(30, 95, 196, 0.07);
}
.evi-side { padding: 22px 18px; border-right: 1px solid var(--line); background: linear-gradient(180deg, #fbfdff, #f4f8ff); }
.evi-side h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px 6px; font-size: 16px; }
.evi-side h3 svg { width: 19px; height: 19px; color: var(--blue); }
.evi-tabs { display: grid; gap: 6px; }
.evi-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--body);
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.evi-tab:hover { background: rgba(255, 255, 255, 0.8); color: var(--ink); }
.evi-tab .n { width: 24px; font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.evi-tab.is-active { border-color: var(--line); background: var(--white); color: var(--ink); box-shadow: 0 8px 20px rgba(16, 28, 48, 0.06); }
.evi-tab.is-active .n { color: var(--blue); }
.evi-tab .bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}
.evi-tab.is-running .bar { opacity: 1; animation: gapBar 6s linear forwards; }
.evi-explorer:hover .evi-tab .bar { animation-play-state: paused; }
.evi-panel { display: flex; align-items: center; min-height: 300px; padding: 32px 36px; }
.evi-panel-in { display: flex; flex-direction: column; align-items: flex-start; max-width: 640px; }
.evi-panel-in.is-swap { animation: gapSwap 0.45s ease both; }
.evi-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-dark); }
.evi-finding { margin: 8px 0 20px; font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.28; letter-spacing: -0.02em; color: var(--ink); }
.evi-meaning { margin: 6px 0 22px; font-size: 16px; line-height: 1.55; color: var(--body); }
.evi-flow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 18px;
  border-radius: 16px;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(59, 130, 246, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}
.evi-flow:hover { background: var(--blue-dark); transform: translateY(-1px); }
.evi-flow small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.evi-flow b { display: block; font-size: 15px; line-height: 1.3; }
.evi-flow svg { flex: none; width: 20px; height: 20px; }

/* Method & sources sheet */
.sheet {
  width: min(520px, 100vw);
  max-width: 100vw;
  height: 100%;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.sheet::backdrop { background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet[open] .sheet-card { animation: sheetIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.sheet-card { display: flex; flex-direction: column; height: 100%; background: var(--white); box-shadow: -24px 0 60px rgba(15, 23, 42, 0.2); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { margin: 0; font-size: 20px; }
.sheet-x {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.sheet-x svg { width: 20px; height: 20px; transform: rotate(45deg); }
.sheet-x:hover { border-color: var(--blue); color: var(--blue-dark); }
.sheet-body { position: relative; flex: 1; overflow-y: auto; padding: 20px 22px 32px; overscroll-behavior: contain; }
.sheet-method { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--smoke); font-size: 13.5px; line-height: 1.6; color: var(--body); }
.sheet-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.sheet-scope b { margin-right: 4px; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sheet-scope span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--body); }
.sheet-sub { margin: 22px 0 10px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.refs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ref {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.ref.is-focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12); }
.ref-n { font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; color: var(--blue-dark); overflow-wrap: anywhere; }
.ref b { display: block; font-size: 14px; line-height: 1.35; }
.ref p { margin: 4px 0 8px; font-size: 13px; line-height: 1.55; color: var(--body); }
.ref-meta { font-size: 11.5px; color: var(--muted); }
.ref-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue-dark); }
.ref-link svg { width: 13px; height: 13px; }
.ref-link:hover { text-decoration: underline; text-underline-offset: 3px; }
html:has(.sheet[open]) { overflow: hidden; }
@keyframes sheetIn { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== The layer: stack diagram + loop step by step ===== */
.layer-split { align-items: stretch; }
/* The photo column always matches the text column, down to the last layer of the diagram */
.layer-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(16, 28, 48, 0.1);
}
.layer-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 50%;
}
.stack { margin-top: 26px; text-align: center; container-type: inline-size; }
.stack-layer {
  position: relative;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(16, 28, 48, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.stack-layer:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(16, 28, 48, 0.09); }
.stack-head { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 12px; }
.stack-head b { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.stack-head small { font-size: 12.5px; color: var(--muted); }
.stack-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.stack-chips span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--smoke);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--body);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.stack-chips span.is-hot {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  transform: translateY(-1px);
}
.stack-layer.l-core {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.25);
}
.l-core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.16) 50%, transparent 62%);
  background-size: 260% 100%;
  animation: coreSheen 6s ease-in-out infinite;
  pointer-events: none;
}
.l-core.is-pulse { box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28), 0 0 0 6px rgba(59, 130, 246, 0.16); }
.l-core .stack-head small { color: rgba(255, 255, 255, 0.85); }
.l-core .stack-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.l-core .stack-chips span { border-color: rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.13); color: var(--white); }
.l-core .stack-chips span.is-hot { border-color: var(--white); background: var(--white); color: var(--blue-dark); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2); }
.stack-layer.l-clinical {
  border-style: dashed;
  background: repeating-linear-gradient(-45deg, #ffffff 0 9px, #f6f8fa 9px 18px);
}
.l-clinical.is-sync { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14); }
.l-clinical .stack-chips span { background: var(--white); color: var(--muted); }
.stack-link { position: relative; display: flex; align-items: center; justify-content: center; height: 48px; }
.stack-link::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  background: repeating-linear-gradient(180deg, rgba(59, 130, 246, 0.5) 0 4px, transparent 4px 8px);
}
.stack-link > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid #d6e3fb;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(16, 28, 48, 0.06);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-dark);
}
.stack-link > span em { font-style: normal; }
.stack-link > span svg { width: 13px; height: 13px; }
.stack-link:not(.two-way) > span svg { transform: rotate(90deg); }
.stack-link .fd {
  position: absolute;
  z-index: 0;
  top: 0;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
  opacity: 0;
}
.stack-link .fd.up { background: var(--teal); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2); }
.stack-link .fd.go { animation: fdDown 0.85s ease-in-out both; }
.stack-link .fd.up.go { animation-name: fdUp; }
/* Entrance: layers rise one after another the first time the diagram is seen */
.stack.js-reveal > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.stack.js-reveal.is-in > * { opacity: 1; transform: none; }
.stack.js-reveal.is-in > :nth-child(2) { transition-delay: 0.12s; }
.stack.js-reveal.is-in > :nth-child(3) { transition-delay: 0.24s; }
.stack.js-reveal.is-in > :nth-child(4) { transition-delay: 0.36s; }
.stack.js-reveal.is-in > :nth-child(5) { transition-delay: 0.48s; }
@container (max-width: 440px) {
  .l-core .stack-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-chips span { padding: 6px 10px; font-size: 12.5px; }
}
@keyframes fdDown {
  0% { transform: translateY(-4px); opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { transform: translateY(42px); opacity: 0; }
}
@keyframes fdUp {
  0% { transform: translateY(42px); opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { transform: translateY(-4px); opacity: 0; }
}
@keyframes coreSheen {
  0%, 100% { background-position: 130% 0; }
  50% { background-position: -30% 0; }
}

.loopflow {
  margin-top: 56px;
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(16, 28, 48, 0.05);
}
.loopflow-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 24px; }
.loopflow-head h3 { margin: 0; }
.loopflow-head p { margin: 0; font-size: 14px; color: var(--muted); }
.lf-steps {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lf-steps::before,
.lf-steps::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 20px;
  right: calc(12.5% - 8px);
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}
.lf-steps::after {
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(var(--p));
  transform-origin: left center;
  transition: transform 0.6s ease;
}
.lf-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.lf-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.lf-step b { margin-top: 6px; font-size: 15px; line-height: 1.25; }
.lf-step p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--body); }
.lf-step.is-past .lf-n { border-color: var(--blue); color: var(--blue-dark); }
.lf-step.is-on .lf-n {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
}
.who {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.who.ai { background: var(--blue-soft); color: var(--blue-dark); }
.who.auto { background: var(--teal-soft); color: #0f766e; }
.who.team { background: #fff3dc; color: #8a5d0c; }
.who.pt { background: #eef0f3; color: var(--body); }
.loopflow-note { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--body); }

/* ===== Regulatory framework ===== */
.law-title { margin: 32px 0 14px; font-size: 18px; }
.law-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.law {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}
.law-k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-dark); }
.law b { font-size: 15px; line-height: 1.3; }
.law p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--body); }

/* ===== Live WhatsApp · iPhone 18 Pro Max carousel ===== */
.live { overflow: hidden; }
.live-head { text-align: center; }
.live-head .lead { margin: 0 auto; }
.live-stage {
  /* Phone width follows the viewport height so the whole carousel fits on laptop screens */
  --pw: clamp(240px, calc((100vh - 250px) / 2.2), 300px);
  position: relative;
  height: calc(var(--pw) * 2.095 + 72px);
  margin-top: 36px;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}
.live-stage:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; border-radius: 24px; }
.live-track { position: absolute; inset: 0; }
.lv-slide {
  position: absolute;
  top: 36px;
  left: 50%;
  width: var(--pw);
  margin-left: calc(var(--pw) / -2);
  transform-origin: 50% 50%;
  transition: transform 0.85s cubic-bezier(0.22, 0.8, 0.2, 1), opacity 0.6s ease;
  cursor: pointer;
  will-change: transform;
}
.lv-slide.is-active { cursor: grab; }
.lv-slide::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0));
  z-index: -1;
}

/* Device */
.ip {
  --frame: linear-gradient(135deg, #6a7ea0 0%, #2b3b57 20%, #1c283e 48%, #33466a 76%, #7488aa 100%);
  --btn: #2d3d5b;
  position: relative;
  width: 100%;
  aspect-ratio: 78 / 163.4;
  padding: calc(var(--pw) * 0.012);
  border-radius: calc(var(--pw) * 0.19);
  background: var(--frame);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 0 calc(var(--pw) * 0.012) rgba(0, 0, 0, 0.35),
    0 calc(var(--pw) * 0.1) calc(var(--pw) * 0.2) calc(var(--pw) * -0.07) rgba(15, 23, 42, 0.45),
    0 calc(var(--pw) * 0.025) calc(var(--pw) * 0.05) rgba(15, 23, 42, 0.16);
}
.ip.f-silver { --frame: linear-gradient(135deg, #f4f5f7 0%, #c6cad0 22%, #e9ebee 50%, #b7bcc3 78%, #f1f2f4 100%); --btn: #bfc4ca; }
.ip.f-graphite { --frame: linear-gradient(135deg, #7c8088 0%, #3c3f45 22%, #2a2c31 50%, #45484f 78%, #858991 100%); --btn: #3a3d43; }
.ip.f-natural { --frame: linear-gradient(135deg, #e7e0d4 0%, #b6ab99 22%, #d6cebf 50%, #a89c88 78%, #e4dccf 100%); --btn: #b2a693; }
.ip.f-mist { --frame: linear-gradient(135deg, #e3edf8 0%, #9fb6cf 22%, #c9d8e8 50%, #8fa7c2 78%, #dfe9f5 100%); --btn: #9eb3cb; }
.ip-b { position: absolute; width: calc(var(--pw) * 0.013); border-radius: 2px; background: var(--btn); }
.ip .b-act { left: calc(var(--pw) * -0.01); top: 17%; height: 4.5%; }
.ip .b-up { left: calc(var(--pw) * -0.01); top: 24.5%; height: 8.5%; }
.ip .b-down { left: calc(var(--pw) * -0.01); top: 35%; height: 8.5%; }
.ip .b-pwr { right: calc(var(--pw) * -0.01); top: 26%; height: 12%; }
.ip .b-cam { right: calc(var(--pw) * -0.008); top: 57%; height: 7%; border-radius: 1px; }
.ip-bezel {
  height: 100%;
  padding: calc(var(--pw) * 0.026);
  border-radius: calc(var(--pw) * 0.178);
  background: #050506;
  container-type: inline-size;
}
.ip-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--pw) * 0.152);
  background: #efeae2;
  color: #111b21;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-size: clamp(10px, 5.6cqw, 16px);
  line-height: 1.3;
  text-align: left;
}
.ip-island {
  position: absolute;
  z-index: 6;
  top: 0.55em;
  left: 50%;
  width: 28%;
  height: 1.75em;
  transform: translateX(-50%);
  border-radius: 1em;
  background: #000;
}
.ip-home {
  position: absolute;
  z-index: 6;
  bottom: 0.4em;
  left: 50%;
  width: 34%;
  height: 0.28em;
  transform: translateX(-50%);
  border-radius: 1em;
  background: #111;
}
.lv-slide.is-side .ip-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* WhatsApp chrome */
.wx-head {
  position: relative;
  z-index: 3;
  flex: none;
  background: rgba(246, 246, 246, 0.96);
  border-bottom: 1px solid #dadada;
}
.ip-status { display: flex; align-items: center; justify-content: space-between; height: 2.75em; padding: 0.35em 1.45em 0 2em; }
.ip-time { font-size: 0.84em; font-weight: 650; letter-spacing: -0.01em; }
.ip-icons { display: flex; align-items: center; gap: 0.3em; }
.ip-icons svg { width: 1em; height: 1em; }
.ip-bat {
  position: relative;
  width: 1.55em;
  height: 0.75em;
  padding: 0.1em;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 0.24em;
}
.ip-bat::after { content: ""; position: absolute; right: -0.18em; top: 30%; width: 0.1em; height: 40%; border-radius: 0 1px 1px 0; background: rgba(0, 0, 0, 0.4); }
.ip-bat i { display: block; width: 78%; height: 100%; border-radius: 0.1em; background: #111; }
.wx-top { display: flex; align-items: center; gap: 0.4em; padding: 0.2em 0.7em 0.55em 0.3em; }
.wx-back { display: flex; align-items: center; flex: none; color: #111; }
.wx-back svg { width: 1.35em; height: 1.35em; }
.wx-back i { margin-left: -0.1em; font-size: 0.8em; font-style: normal; font-weight: 500; }
.wx-av {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.05em;
  height: 2.05em;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b8a6, #3b82f6);
  color: #fff;
}
.wx-av svg { width: 1.15em; height: 1.15em; }
.wx-id { flex: 1; min-width: 0; line-height: 1.2; }
.wx-id b { display: flex; align-items: center; gap: 0.22em; font-size: 0.82em; font-weight: 650; letter-spacing: -0.01em; }
.wx-id b span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-ver { flex: none; width: 0.95em; height: 0.95em; color: #25d366; }
.wx-st { display: block; font-size: 0.68em; color: #667781; white-space: nowrap; }
.wx-acts { display: flex; flex: none; gap: 0.75em; color: #111; }
.wx-acts svg { width: 1.2em; height: 1.2em; }

.wx-chat {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background-color: #efeae2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23d8d0c3' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 12c-3 0-5 2-5 5 0 2 1 4 1.5 6 .8 2.5 1 5 2 7.5.4 1 1.8 1 2.2 0 .7-1.8 1-4 2.3-5 .6-.5 1.4-.5 2 0 1.3 1 1.6 3.2 2.3 5 .4 1 1.8 1 2.2 0 1-2.5 1.2-5 2-7.5.5-2 1.5-4 1.5-6 0-3-2-5-5-5-2.3 0-3.4 1.3-5 1.3S16.3 12 14 12z'/%3E%3Cpath d='M70 18h22a6 6 0 0 1 6 6v10a6 6 0 0 1-6 6H80l-7 6v-6h-3a6 6 0 0 1-6-6V24a6 6 0 0 1 6-6z'/%3E%3Cpath d='m42 60 2.5 5.2 5.7.8-4.1 4 1 5.7-5.1-2.7-5.1 2.7 1-5.7-4.1-4 5.7-.8z'/%3E%3Ccircle cx='100' cy='72' r='7'/%3E%3Cpath d='M96.5 72.5l2.5 2.5 4.5-5'/%3E%3Cpath d='M12 92c4-6 12-6 16 0M9 100h22'/%3E%3Cpath d='M64 96h14v14H64zM64 101h14M71 96v14'/%3E%3Cpath d='M104 104l6-6M104 98l6 6'/%3E%3C/svg%3E");
  background-size: 7.6em 7.6em;
}
.wx-msgs {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.5em 0.55em 0.55em;
}
.wx-day {
  align-self: center;
  flex: none;
  margin: 0.3em 0 0.45em;
  padding: 0.28em 0.75em;
  border-radius: 0.55em;
  background: #fff;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  font-size: 0.66em;
  font-weight: 500;
  color: #54656f;
}
.wx-sec {
  align-self: center;
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 0.4em;
  max-width: 90%;
  margin-bottom: 0.4em;
  padding: 0.5em 0.75em;
  border-radius: 0.6em;
  background: #fdf4c5;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.1);
  font-size: 0.62em;
  line-height: 1.35;
  text-align: center;
  color: #54656f;
}
.wx-sec svg { flex: none; width: 1.1em; height: 1.1em; margin-top: 0.05em; }
.wm-row {
  flex: none;
  display: flex;
  flex-direction: column;
  max-width: 82%;
  margin-top: 0.14em;
  animation: wmIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wm-row.tail { margin-top: 0.5em; }
.wm-row.in { align-self: flex-start; transform-origin: 0 100%; }
.wm-row.out { align-self: flex-end; align-items: flex-end; transform-origin: 100% 100%; }
.wm {
  position: relative;
  padding: 0.34em 0.55em 0.32em 0.6em;
  border-radius: 0.55em;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  font-size: 0.8em;
  line-height: 1.32;
  overflow-wrap: break-word;
}
.wm::after { content: ""; display: table; clear: both; }
.wm-row.in .wm { background: #fff; }
.wm-row.out .wm { background: #d9fdd3; }
.wm-row.tail.in .wm { border-top-left-radius: 0; }
.wm-row.tail.out .wm { border-top-right-radius: 0; }
.wm-row.tail.in .wm::before,
.wm-row.tail.out .wm::before {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
}
.wm-row.tail.in .wm::before { left: -0.42em; border-top: 0.55em solid #fff; border-left: 0.45em solid transparent; }
.wm-row.tail.out .wm::before { right: -0.42em; border-top: 0.55em solid #d9fdd3; border-right: 0.45em solid transparent; }
.wm-nm { display: block; margin-bottom: 0.1em; font-size: 0.86em; font-weight: 650; color: #0a7c6f; }
.wm-meta {
  position: relative;
  top: 0.35em;
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  margin: 0 -0.1em 0 0.7em;
  font-size: 0.7em;
  line-height: 1.2;
  color: #667781;
}
.wm-ck { width: 1.45em; height: 1.45em; color: #8696a0; transition: color 0.3s ease; }
.wm-ck.is-read { color: #53bdeb; }
.wm-row.typing .wm { display: flex; gap: 0.25em; padding: 0.7em 0.8em; }
.wm-row.typing i {
  width: 0.46em;
  height: 0.46em;
  border-radius: 50%;
  background: #8696a0;
  animation: gmDot 1s ease-in-out infinite;
}
.wm-row.typing i:nth-child(2) { animation-delay: 0.15s; }
.wm-row.typing i:nth-child(3) { animation-delay: 0.3s; }
.wm-btns { display: grid; gap: 0.14em; margin-top: 0.14em; }
.wm-b {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  padding: 0.55em 0.6em;
  overflow: hidden;
  border-radius: 0.55em;
  background: #fff;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  font-size: 0.76em;
  font-weight: 500;
  color: #027eb5;
  transition: color 0.3s ease, background 0.3s ease;
}
.wm-b svg { flex: none; width: 1.05em; height: 1.05em; }
.wm-btns.is-done .wm-b { color: #8696a0; }
.wm-btns.is-done .wm-b.is-picked { color: #027eb5; background: #f2fbff; }
.wm-b.is-tap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.6em;
  height: 2.6em;
  margin: -1.3em 0 0 -1.3em;
  border-radius: 50%;
  background: rgba(2, 126, 181, 0.28);
  animation: wmTap 0.6s ease-out forwards;
}
.wx-bar {
  position: relative;
  z-index: 3;
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 0.6em;
  padding: 0.45em 0.75em 1.5em;
  border-top: 1px solid #dadada;
  background: #f6f6f6;
  color: #111;
}
.wx-ic { display: grid; place-items: center; flex: none; height: 2.05em; }
.wx-ic svg { width: 1.35em; height: 1.35em; }
.wx-input {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 0.3em;
  min-height: 2.05em;
  padding: 0.35em 0.4em 0.35em 0.7em;
  border: 1px solid #e2e2e2;
  border-radius: 1.05em;
  background: #fff;
}
.wx-input > svg { flex: none; width: 1.25em; height: 1.25em; margin-left: auto; color: #8a8a8a; }
.wx-typed,
.wx-ph { font-size: 0.78em; line-height: 1.3; }
.wx-typed { flex: 1; min-width: 0; max-height: 3.9em; overflow: hidden; color: #111b21; }
.wx-ph { flex: 1; color: #8a8a8a; }
.wx-typed:empty { display: none; }
.wx-send {
  display: none;
  place-items: center;
  flex: none;
  width: 2.05em;
  height: 2.05em;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
}
.wx-send svg { width: 1.1em; height: 1.1em; }
.wx-bar.is-typing .wx-ph,
.wx-bar.is-typing .wx-cam,
.wx-bar.is-typing .wx-mic { display: none; }
.wx-bar.is-typing .wx-send { display: grid; }
.wx-bar.is-typing .wx-typed::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: #25d366;
  animation: caret 1s steps(1) infinite;
}
@keyframes wmIn {
  from { opacity: 0; transform: translateY(0.6em) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes wmTap {
  from { transform: scale(0.2); opacity: 1; }
  to { transform: scale(4); opacity: 0; }
}
@keyframes caret { 50% { opacity: 0; } }

/* Carousel controls */
.live-ui {
  display: grid;
  grid-template-columns: 48px minmax(0, 560px) 48px;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.live-nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 28, 48, 0.06);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.live-nav:hover { border-color: var(--blue); color: var(--blue-dark); }
.live-nav:active { transform: scale(0.95); }
.live-nav svg { width: 20px; height: 20px; }
.live-nav.next svg { transform: rotate(180deg); }
.live-caption { min-height: 104px; text-align: center; }
.live-flow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.live-caption b { display: block; margin: 8px 0 4px; font-size: 20px; letter-spacing: -0.02em; }
.live-caption p { margin: 0; font-size: 15px; color: var(--body); }
.live-dots-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.live-dots { display: flex; align-items: center; }
.lv-dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: width 0.35s ease;
}
.lv-dot > span {
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #cfd6e0;
  transition: width 0.35s ease, background 0.35s ease;
}
.lv-dot i { position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left center; }
.lv-dot.is-active { width: 46px; }
.lv-dot.is-active > span { width: 34px; background: var(--blue-soft); }
.lv-dot.is-active i { transform: scaleX(1); }
.lv-dot.is-running i { transform: scaleX(0); animation: gapBar var(--dur, 12s) linear forwards; }
.live.is-paused .lv-dot i,
.live.is-hover .lv-dot i { animation-play-state: paused; }
.live-toggle { margin-left: 0; }
.live-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.live-tags span {
  padding: 6px 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 999px;
  background: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-dark);
}

/* ===== Flows B and C · reminders → reschedule → recover (live demo) ===== */
.rs-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 64px;
  align-items: end;
  margin-bottom: 48px;
}
.rs-head h2 { margin: 0; max-width: 560px; }
.rs-head .lead { margin: 0; }
.rs-stage {
  --pw: 280px;
  display: grid;
  grid-template-columns: minmax(0, 310px) minmax(0, 1fr) minmax(0, 330px);
  grid-template-areas: "ctrl device agenda";
  gap: 28px;
  align-items: center;
}
.rs-controls { grid-area: ctrl; display: flex; flex-direction: column; gap: 24px; }
.rs-label { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.rs-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-soft); font-size: 12px; color: var(--blue-dark); }
.rs-cadence { position: relative; display: grid; gap: 8px; }
.rs-cadence::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 21px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.rs-cad {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.rs-cad:hover { border-color: var(--blue-mid); transform: translateX(2px); }
.rs-cad i { position: relative; z-index: 1; width: 14px; height: 14px; border: 2px solid #cfd6e0; border-radius: 50%; background: var(--white); transition: 0.25s ease; }
.rs-cad b { font-size: 14px; font-weight: 650; }
.rs-cad small { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.rs-cad.is-done i { border-color: var(--teal); background: var(--teal); }
.rs-cad.is-active { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12); }
.rs-cad.is-active i { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18); }
.rs-cad.is-active small { color: var(--blue-dark); }
.rs-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rs-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.rs-slot small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #0f766e; }
.rs-slot b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rs-slot:not(:disabled):hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(30, 95, 196, 0.1); }
.rs-slot.is-current { background: var(--smoke); cursor: default; }
.rs-slot.is-current small { color: var(--muted); }
.rs-slot.is-current.is-freed b { color: var(--muted); text-decoration: line-through; }
.rs-slot.is-chosen { border-color: var(--blue); background: var(--blue); color: var(--white); box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3); }
.rs-slot.is-chosen small { color: rgba(255, 255, 255, 0.85); }
.rs-stage.is-hinting .rs-slot[data-slot] { animation: rsHint 1.4s ease-in-out 2; }
.rs-hint { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.rs-reset {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 4px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
  cursor: pointer;
}
.rs-reset svg { width: 15px; height: 15px; }
.rs-reset:hover { text-decoration: underline; text-underline-offset: 3px; }

.rs-device {
  grid-area: device;
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(var(--pw) * 2.095 + 24px);
}
.rs-device::before {
  content: "";
  position: absolute;
  inset: 8% -6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0));
}
.rs-device > .ip { position: relative; width: var(--pw); }

.rs-agenda {
  grid-area: agenda;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(16, 28, 48, 0.07);
}
.rs-ag-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rs-ag-head b { display: block; font-size: 15px; }
.rs-ag-head small { display: block; font-size: 12.5px; color: var(--muted); }
.rs-sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  font-size: 11.5px;
  font-weight: 600;
  color: #0f766e;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}
.rs-sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.rs-sync.is-busy { background: var(--blue-soft); color: var(--blue-dark); }
.rs-sync.is-busy i { background: var(--blue); animation: gapPulseBlue 1s ease-out infinite; }
.rs-rows { margin: 0; padding: 0; list-style: none; }
.rs-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border-top: 1px dashed var(--line);
}
.rs-row:first-child { border-top: 0; }
.rs-row.is-hidden { display: none; }
.rs-row.is-new { animation: rsRowIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.rs-t { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-p { min-width: 0; }
.rs-p b { display: block; font-size: 13.5px; }
.rs-p small { display: block; font-size: 12px; color: var(--muted); }
.rs-row.is-freed .rs-t,
.rs-row.is-freed .rs-p b { color: var(--muted); text-decoration: line-through; }
.rs-pill { padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; transition: background 0.3s ease, color 0.3s ease; }
.rs-pill.ok { background: var(--teal-soft); color: #0f766e; }
.rs-pill.blue { background: var(--blue-soft); color: var(--blue-dark); }
.rs-pill.warn { background: #fff3dc; color: #8a5d0c; }
.rs-pill.off { background: #eef0f3; color: var(--muted); }
.rs-ag-foot { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.rs-ag-foot svg { flex: none; width: 14px; height: 14px; color: var(--blue); }
@keyframes rsHint {
  50% { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.16); }
}
@keyframes rsRowIn {
  from { opacity: 0; transform: translateY(8px); background: var(--blue-soft); }
  to { opacity: 1; transform: none; background: transparent; }
}

/* Regulation links */
.law-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--blue-dark); }
.law-link svg { width: 13px; height: 13px; transition: transform 0.2s ease; }
.law-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.law-link:hover svg { transform: translate(2px, -2px); }

/* ===== Flow A · the patient's iPhone hands over to the clinic's MacBook ===== */
.fl-head, .ho-head, .ms-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 64px;
  align-items: end;
  margin-bottom: 44px;
}
.fl-head h2, .ho-head h2, .ms-head h2 { margin: 0; max-width: 580px; }
.fl-head .lead, .ho-head .lead, .ms-head .lead { margin: 0; }
.fl-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
.fl-side { display: flex; flex-direction: column; gap: 18px; }
.fl-controls { display: flex; align-items: center; gap: 10px; }
.fl-toggle {
  --i: 0;
  position: relative;
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef2f8;
}
.fl-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(16, 28, 48, 0.12);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.fl-view {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
}
.fl-view svg { flex: none; width: 16px; height: 16px; }
.fl-view.is-on { color: var(--blue-dark); }
.fl-steps { position: relative; display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.fl-steps::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 17px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.fl-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: 100%;
  padding: 8px 10px 8px 0;
  border: 0;
  border-radius: 14px;
  background: none;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.fl-n {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}
.fl-tx b { display: block; margin-top: 7px; font-size: 15px; font-weight: 650; line-height: 1.3; color: var(--body); transition: color 0.3s ease; }
.fl-tx { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows 0.4s ease; }
.fl-tx small {
  display: block;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  transition: opacity 0.3s ease;
}
.fl-step:hover .fl-tx b { color: var(--blue-dark); }
.fl-step.is-done .fl-n { border-color: var(--blue); color: var(--blue-dark); }
.fl-step.is-on .fl-n { border-color: var(--blue); background: var(--blue); color: var(--white); box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.15); }
.fl-step.is-on .fl-tx b { color: var(--ink); }
.fl-step.is-on .fl-tx { grid-template-rows: auto 1fr; }
.fl-step.is-on .fl-tx small { opacity: 1; }
.fl-caption { display: none; }
.fl-stops { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.fl-stops-k { flex-basis: 100%; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fl-stops span:not(.fl-stops-k) {
  padding: 5px 10px;
  border: 1px solid #f3d3cc;
  border-radius: 999px;
  background: #fdf1ee;
  font-size: 12px;
  font-weight: 600;
  color: #a3422f;
}

.fl-stage {
  --pw: 232px;
  --lw: 580px;
  position: relative;
  height: 560px;
  margin-bottom: 36px;
}
.fl-stage::before {
  content: "";
  position: absolute;
  inset: 6% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0));
}
.fl-mb, .fl-ph {
  position: absolute;
  top: 50%;
  left: 50%;
  transition:
    left 0.95s cubic-bezier(0.65, 0, 0.35, 1),
    top 0.95s cubic-bezier(0.65, 0, 0.35, 1),
    transform 0.95s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.6s ease,
    filter 0.6s ease;
}
.fl-mb { z-index: 1; width: var(--lw); }
.fl-ph { z-index: 2; width: var(--pw); }
.fl-stage.is-patient .fl-ph { left: 30%; top: 50%; transform: translate(-50%, -50%); }
.fl-stage.is-patient .fl-mb { left: 62%; top: 47%; transform: translate(-50%, -50%) scale(0.82); opacity: 0.55; filter: saturate(0.6) blur(0.6px); }
.fl-stage.is-clinic .fl-mb { left: 57%; top: 45%; transform: translate(-50%, -50%); }
.fl-stage.is-clinic .fl-ph { left: 12%; top: 66%; transform: translate(-50%, -50%) scale(0.62); }
.fl-stage.is-patient .fl-mb, .fl-stage.is-clinic .fl-ph { cursor: pointer; }
.fl-stage.is-patient .fl-mb:hover { opacity: 0.75; filter: none; }
.fl-note {
  position: absolute;
  bottom: -34px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
.fl-note svg { flex: none; width: 13px; height: 13px; }

/* MacBook */
.fl-mb::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -18px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0));
  z-index: -1;
}
.mb-lid {
  position: relative;
  aspect-ratio: 16 / 10.3;
  padding: 2.2% 2.2% 2.8%;
  border-radius: 4.2% 4.2% 1.6% 1.6% / 6.5% 6.5% 2.5% 2.5%;
  background: #0b0b0d;
  box-shadow: 0 0 0 2px #c9cbce, 0 0 0 3px #a6a9ad;
}
.mb-notch {
  position: absolute;
  z-index: 2;
  top: 2.2%;
  left: 50%;
  width: 11%;
  height: 3.2%;
  transform: translateX(-50%);
  border-radius: 0 0 22% 22% / 0 0 45% 45%;
  background: #0b0b0d;
}
.mb-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 0.6% / 1%;
  background: #f4f6fa;
  container-type: inline-size;
}
.mb-base {
  position: relative;
  width: 114%;
  height: 0;
  margin-left: -7%;
  padding-bottom: 3.6%;
  border-radius: 0 0 28px 28px / 0 0 16px 16px;
  background: linear-gradient(180deg, #eceef0 0%, #d6d8db 40%, #a9acb0 100%);
}
.mb-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 15%;
  height: 40%;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #b0b3b7, #d9dbde);
}

/* Clinic inbox inside the MacBook */
.db {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  font-size: clamp(6.5px, 1.72cqw, 12px);
  line-height: 1.35;
  color: #111827;
  text-align: left;
}
.db svg { display: block; }
.db-top { flex: none; display: flex; align-items: center; gap: 1em; height: 3.2em; padding: 0 1.2em; border-bottom: 1px solid #e6e9ef; background: #fff; }
.db-dots { display: flex; flex: none; gap: 0.45em; }
.db-dots i { width: 0.8em; height: 0.8em; border-radius: 50%; background: #ff5f57; }
.db-dots i:nth-child(2) { background: #febc2e; }
.db-dots i:nth-child(3) { background: #28c840; }
.db-brand { display: flex; align-items: center; gap: 0.5em; font-size: 1.05em; font-weight: 700; white-space: nowrap; }
.db-brand svg { width: 1.5em; height: 1.5em; padding: 0.22em; border-radius: 0.45em; background: linear-gradient(135deg, #14b8a6, #3b82f6); color: #fff; }
.db-search { display: flex; align-items: center; gap: 0.5em; width: 26%; margin-left: auto; padding: 0.45em 0.8em; border-radius: 0.6em; background: #f1f4f9; color: #8a93a3; white-space: nowrap; overflow: hidden; }
.db-search svg { flex: none; width: 1em; height: 1em; }
.db-sede { flex: none; padding: 0.35em 0.8em; border-radius: 999px; background: var(--blue-soft); font-weight: 600; color: var(--blue-dark); white-space: nowrap; }
.db-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 9.6em minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1.2fr); grid-template-rows: minmax(0, 1fr); }
.db-nav { display: flex; flex-direction: column; gap: 0.3em; padding: 1em 0.6em; border-right: 1px solid #e6e9ef; background: #fbfcfe; }
.db-nav span { display: flex; align-items: center; gap: 0.6em; padding: 0.6em 0.7em; border-radius: 0.6em; font-weight: 500; color: #5b6475; }
.db-nav svg { flex: none; width: 1.3em; height: 1.3em; }
.db-nav em { font-style: normal; white-space: nowrap; }
.db-nav .is-on { background: var(--blue-soft); font-weight: 600; color: var(--blue-dark); }
.db-list { padding: 0.9em 0.7em; overflow: hidden; border-right: 1px solid #e6e9ef; background: #fff; }
.db-cap { margin: 0 0 0.7em; font-size: 0.8em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a93a3; }
.db-item { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; align-items: center; gap: 0.6em; margin-bottom: 0.3em; padding: 0.6em; border-radius: 0.7em; }
.db-item.is-on { background: #f1f6ff; box-shadow: inset 2px 0 0 var(--blue); }
.db-av { display: grid; place-items: center; flex: none; width: 2.4em; height: 2.4em; border-radius: 50%; background: #e8edf5; font-size: 0.85em; font-weight: 700; color: #475569; }
.db-av.lg { width: 3em; height: 3em; background: linear-gradient(135deg, #dbeafe, #ccfbf1); color: #1e3a8a; }
.db-it { min-width: 0; }
.db-it b { display: block; font-size: 0.95em; }
.db-it small { display: block; overflow: hidden; color: #8a93a3; white-space: nowrap; text-overflow: ellipsis; }
.db-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3em; color: #94a3b8; }
.db-meta svg { width: 1.1em; height: 1.1em; }
.db-flag { padding: 0.15em 0.5em; border-radius: 999px; background: #fff3dc; font-size: 0.75em; font-style: normal; font-weight: 700; color: #8a5d0c; }
.db-thread { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid #e6e9ef; background: #f7f9fc; }
.db-th-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em 0.7em; padding: 0.8em 1em; border-bottom: 1px solid #e6e9ef; background: #fff; }
.db-th-head b { display: block; }
.db-th-head small { display: flex; align-items: center; gap: 0.3em; color: #8a93a3; white-space: nowrap; }
.db-th-head small svg { width: 1em; height: 1em; }
.db-assign { flex-basis: 100%; padding: 0.3em 0.7em; border-radius: 999px; background: #fff3dc; font-size: 0.8em; font-weight: 600; color: #8a5d0c; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.45em; padding: 0.9em 1em; overflow: hidden; }
.db-b { max-width: 84%; margin: 0; padding: 0.55em 0.75em; border-radius: 0.8em; font-size: 0.92em; line-height: 1.35; }
.db-b.pt { align-self: flex-start; border: 1px solid #e3e8ef; border-bottom-left-radius: 0.25em; background: #fff; }
.db-b.ai { align-self: flex-end; border-bottom-right-radius: 0.25em; background: var(--blue); color: #fff; }
.db-sys { display: flex; align-self: center; align-items: center; gap: 0.5em; margin: 0.2em 0 0; padding: 0.45em 0.85em; border: 1px solid #f5dfb0; border-radius: 999px; background: #fff3dc; font-size: 0.85em; font-weight: 600; color: #8a5d0c; }
.db-sys svg { flex: none; width: 1.2em; height: 1.2em; }
.db-side { padding: 0.9em 1em; overflow: hidden; background: #fff; }
.db-who { display: flex; align-items: center; gap: 0.7em; margin-bottom: 0.8em; }
.db-who b { display: block; margin-bottom: 0.2em; }
.db-pill { display: inline-block; padding: 0.2em 0.6em; border-radius: 999px; font-size: 0.78em; font-style: normal; font-weight: 700; white-space: nowrap; }
.db-pill.ok { background: var(--teal-soft); color: #0f766e; }
.db-pill.blue { background: var(--blue-soft); color: var(--blue-dark); }
.db-pill.warn { background: #fff3dc; color: #8a5d0c; }
.db-fields { display: grid; align-content: start; gap: 0.45em; margin: 0 0 1em; }
.db-fields .db-pill { white-space: normal; }
.db-fields div { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 0.5em; padding-bottom: 0.45em; border-bottom: 1px dashed #e6e9ef; }
.db-fields dt { color: #8a93a3; }
.db-fields dd { margin: 0; font-weight: 600; }
.db-kpis { display: grid; align-content: start; gap: 0.4em; margin: 0; padding: 0; list-style: none; }
.db-kpis li { display: flex; align-items: center; gap: 0.5em; font-size: 0.92em; }
.db-kpis svg { flex: none; width: 1.3em; height: 1.3em; padding: 0.22em; border-radius: 50%; background: var(--teal); color: #fff; }
@container (max-width: 520px) {
  .db { font-size: 2.05cqw; }
  .db-body { grid-template-columns: 3.2em minmax(0, 1.35fr) minmax(0, 1fr); }
  .db-list, .db-search, .db-nav em, .db-assign { display: none; }
  .db-nav { align-items: center; padding: 0.8em 0.35em; }
}
@container (max-width: 400px) {
  .db { font-size: 3.05cqw; }
  .db-top { gap: 0.7em; }
  .db-body { grid-template-columns: minmax(0, 1fr); }
  .db-nav, .db-thread, .db-who { display: none; }
  .db-side { display: grid; grid-template-rows: auto 1fr; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 1.2em; }
  .db-fields div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .db-fields div:nth-child(2), .db-fields div:nth-child(3) { display: none; }
  .db-kpis { gap: 0.7em; }
}
.fl-stage.is-live .db-item { animation: dbIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(0.35s + var(--d) * 0.09s); }
.fl-stage.is-live .db-b { animation: dbIn 0.4s ease both; animation-delay: calc(0.55s + var(--d) * 0.16s); }
.fl-stage.is-live .db-sys { animation: dbIn 0.45s ease both, dbPulse 1.6s ease 1.8s 2; animation-delay: calc(0.55s + var(--d) * 0.16s), 1.8s; }
.fl-stage.is-live .db-fields > div { animation: dbIn 0.4s ease both; animation-delay: calc(1.3s + var(--d) * 0.15s); }
.fl-stage.is-live .db-kpis li { animation: dbIn 0.4s ease both; animation-delay: calc(2.1s + var(--d) * 0.2s); }
@keyframes dbIn { from { opacity: 0; transform: translateY(0.6em); } to { opacity: 1; transform: none; } }
@keyframes dbPulse { 50% { box-shadow: 0 0 0 0.45em rgba(217, 154, 43, 0.22); } }

/* ===== Human handoff · visible for the patient, traceable for the clinic ===== */
.ho-grid { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.ho-triggers { display: grid; gap: 10px; align-content: start; }
.ho-trig {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.ho-trig:hover { transform: translateX(2px); border-color: #efc98a; }
.ho-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--smoke); color: var(--body); transition: background 0.3s ease, color 0.3s ease; }
.ho-ic svg { width: 20px; height: 20px; }
.ho-tx b { display: block; font-size: 15px; font-weight: 650; }
.ho-tx small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.ho-trig.is-on { border-color: var(--warn); background: #fffaf0; box-shadow: 0 10px 24px rgba(217, 154, 43, 0.14); }
.ho-trig.is-on .ho-ic { background: #fff0d4; color: #b7791f; }
.ho-trig .bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--warn);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}
.ho-trig.is-running .bar { opacity: 1; animation: gapBar 6.5s linear forwards; }
#hoBox:hover .ho-trig .bar { animation-play-state: paused; }
.ho-panel { display: flex; flex-direction: column; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, #fbfcfe, #f5f8fc); }
.ho-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ho-track::before { content: ""; position: absolute; top: 9px; left: 10px; right: calc(25% - 16px); height: 2px; border-radius: 2px; background: var(--line); }
.ho-track li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-top: 28px; }
.ho-track li i { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border: 2px solid #cfd6e0; border-radius: 50%; background: var(--white); }
.ho-track b { font-size: 13.5px; }
.ho-track small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.ho-panel.is-play .ho-track li i { animation: hoDot 0.4s ease both; animation-delay: calc(var(--d) * 0.35s); }
.ho-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ho-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.ho-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ho-label svg { flex: none; width: 14px; height: 14px; }
.hb { max-width: 90%; margin: 0; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.hb.out { align-self: flex-end; border-bottom-right-radius: 4px; background: #d9fdd3; }
.hb.in { align-self: flex-start; border-bottom-left-radius: 4px; background: #f1f4f8; }
.ho-panel.is-play .hb.out { animation: dbIn 0.4s ease both 0.15s; }
.ho-panel.is-play .hb.in { animation: dbIn 0.4s ease both 0.8s; }
.ho-tk { padding: 12px; border: 1px dashed #efc98a; border-radius: 14px; background: #fffaf0; }
.ho-panel.is-play .ho-tk { animation: tkIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both 1.3s; }
.ho-tk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ho-tk-badge { padding: 3px 9px; border-radius: 999px; background: #fff0d4; font-size: 11.5px; font-weight: 700; color: #8a5d0c; }
.ho-tk-head time { font-size: 12px; color: var(--muted); }
.ho-tk dl { display: grid; gap: 6px; margin: 0; }
.ho-tk dl div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; font-size: 13.5px; line-height: 1.4; }
.ho-tk dt { color: var(--muted); }
.ho-tk dd { margin: 0; font-weight: 600; }
.ho-tk-foot { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12.5px; font-weight: 600; color: #0f766e; }
.ho-tk-foot svg { width: 14px; height: 14px; }
.ho-foot { margin: 0; font-size: 13.5px; color: var(--body); }
@keyframes hoDot { to { border-color: var(--warn); background: var(--warn); box-shadow: 0 0 0 4px rgba(217, 154, 43, 0.18); } }
@keyframes tkIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ===== Membership · the clinic's own program, seen through its portal ===== */
.ms-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: center; }
.ms-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ms-flow li { display: flex; }
.ms-node {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.ms-node:hover { transform: translateY(-2px); border-color: var(--teal-mid); }
.ms-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--teal-soft); font-size: 13px; font-weight: 700; color: #0f766e; transition: background 0.3s ease, color 0.3s ease; }
.ms-t b { display: block; margin-top: 2px; font-size: 15px; font-weight: 650; line-height: 1.3; }
.ms-t small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.ms-node.is-on { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12); }
.ms-node.is-on .ms-n { background: var(--teal); color: var(--white); }
.ms-portal {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(16, 28, 48, 0.1);
  transition: box-shadow 0.4s ease;
}
.ms-portal[data-hl="portal"] { box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.28), 0 24px 60px rgba(16, 28, 48, 0.12); }
.ms-chrome { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f3f5f8; font-size: 12px; }
.ms-url { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--white); font-size: 12px; color: var(--muted); }
.ms-url svg { width: 12px; height: 12px; }
.ms-app { display: grid; gap: 12px; padding: 18px; }
.ms-top { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ms-logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #14b8a6, #3b82f6); color: var(--white); }
.ms-logo svg { width: 17px; height: 17px; }
.ms-hello { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.ms-card { padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #0f766e, #14b8a6 60%, #3b82f6); color: var(--white); }
.ms-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ms-card-top b { font-size: 16px; }
.ms-card .db-pill.ok { background: rgba(255, 255, 255, 0.22); color: var(--white); }
.ms-rec { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; opacity: 0.92; }
.ms-rec svg { flex: none; width: 15px; height: 15px; }
.ms-next { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.ms-next small { display: block; font-size: 12px; color: var(--muted); }
.ms-next b { font-size: 14px; }
.ms-book { flex: none; padding: 7px 12px; border-radius: 10px; background: var(--blue); font-size: 12.5px; font-weight: 600; color: var(--white); }
.ms-ben small { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ms-ben ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ms-ben li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.ms-ben svg { flex: none; width: 16px; height: 16px; color: var(--teal); }
.ms-hidden { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ms-hidden small { width: 100%; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ms-hidden span { padding: 4px 9px; border-radius: 999px; background: #f6f7f9; font-size: 12px; color: #9aa1ab; text-decoration: line-through; }
.ms-demo { margin: 0; padding: 0 14px 12px; font-size: 11.5px; color: var(--muted); text-align: center; }
.ms-portal .hl-brand,
.ms-portal .hl-member,
.ms-portal .hl-program,
.ms-portal .hl-benefits,
.ms-portal .hl-recurring {
  border-radius: 12px;
  outline: 2px solid transparent;
  outline-offset: 4px;
  transition: outline-color 0.35s ease;
}
.ms-portal[data-hl="brand"] .hl-brand,
.ms-portal[data-hl="member"] .hl-member,
.ms-portal[data-hl="program"] .hl-program,
.ms-portal[data-hl="benefits"] .hl-benefits { outline-color: var(--teal); }
.ms-portal[data-hl="recurring"] .hl-recurring { outline-color: rgba(255, 255, 255, 0.9); outline-offset: 3px; }
.ms-note { margin-top: 20px; }

/* ===== Responsive ===== */
@media (max-width: 1360px) {
  .nav-cta .btn-secondary { display: none; }
}
@media (max-width: 1240px) {
  .nav-links { gap: 16px; font-size: 13.5px; }
  .nav-inner { gap: 12px; }
}
@media (max-width: 1180px) {
  .gap-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    --orbit: 440px;
  }
  .gap-channels { grid-column: 1 / -1; }
  .gap-try { margin: 0 0 14px; text-align: center; }
  .gap-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .gap-tab {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 14px 6px 16px;
    border-color: var(--line);
    background: var(--white);
    text-align: center;
  }
  .gap-tab small, .gap-tab .go { display: none; }
  .gap-tab b { font-size: 13.5px; }
  .gap-tab .bar { left: 14px; right: 14px; bottom: 6px; }
  .gap-engine { justify-content: center; margin: 16px 0 0; }
  .gap-toggle { margin-left: 4px; }
  /* Badges sit on the phone's top/bottom edge when the column is narrow */
  .gap-badge.b1 { --tx: 0; top: 6px; left: auto; right: calc(50% - var(--pw) / 2 - 14px); }
  .gap-badge.b2 { --tx: 0; bottom: 6px; right: auto; left: calc(50% - var(--pw) / 2 - 14px); }
}
@media (max-width: 1100px) {
  .os-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1120px) {
  .nav {
    padding: 10px 0 0;
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .nav-inner {
    width: min(var(--max), calc(100% - 20px));
    border-radius: 999px;
    padding: 6px 6px 6px 12px;
    gap: 8px;
  }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    /* Solid: a translucent panel nested in the blurred pill let the hero bleed through */
    background: var(--white);
    border: 1px solid var(--line);
    padding: 8px;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(26,26,26,.14);
    z-index: 60;
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    font-size: 15px;
  }
  .nav-links.is-open { display: flex; animation: menuIn 0.22s ease both; }
  .nav-links a { padding: 13px 14px; border-radius: 10px; }
  .nav-links a:hover { background: var(--blue-soft); }
  .nav-links a.is-active {
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--blue);
  }
  .nav-links a.nav-dir {
    display: flex;
    justify-content: space-between;
    margin: 4px 0 0;
    padding: 13px 14px;
    border-radius: 10px;
  }
  .nav-dir .ext { width: 15px; height: 15px; }
  .nav-links .mobile-cta.is-active {
    background: var(--blue-dark);
    color: #fff;
    box-shadow: none;
  }
  .nav-links .mobile-only { display: block; }
  .nav-links .mobile-cta {
    margin-top: 6px;
    background: var(--blue);
    color: #fff;
    text-align: center;
    font-weight: 600;
  }
  .menu-btn {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
    padding: 0;
  }
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 960px) {
  :root { --nav-h: 72px; --scroll-pad: 76px; }
  .section { padding: 72px 0; }
  .container { width: min(var(--max), calc(100% - 32px)); }
  .hero { min-height: auto; }
  .hero-inner, .split, .limits, .ft-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 108px 0 56px; gap: 24px; align-items: stretch; }
  .grid-3, .grid-4, .uc-grid, .os-grid { grid-template-columns: 1fr 1fr; }
  .logo img.mark { width: 42px; height: 42px; border-radius: 12px; }
  .logo .name { font-size: 22px; }
  .logo .tag {
    display: block;
    font-size: 11.5px;
    color: #6A6A6A;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-top: 4px;
  }
  form .row { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; }

  .gap-head { grid-template-columns: 1fr; margin-bottom: 40px; }
  .gap-stage { grid-template-columns: minmax(0, 1fr); gap: 28px; --orbit: min(500px, 88vw); }
  .gap-channels { grid-column: auto; }
  .gap-badge.b1 { --tx: -38%; top: 10%; right: auto; left: calc(50% + var(--pw) / 2); }
  .gap-badge.b2 { --tx: 38%; bottom: 7%; left: auto; right: calc(50% + var(--pw) / 2); }
  .gap-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 8px 36px;
    align-items: center;
  }
  .gap-join { margin-bottom: 0; }
}
@media (max-width: 760px) {
  .gap-stage { --pw: min(290px, 74vw); --sat: 36px; }
  .gap-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero-inner { padding-top: 116px; }
  .section { padding: 56px 0; }
  .grid-3, .grid-4, .uc-grid, .os-grid { grid-template-columns: 1fr; }
  .nav-cta .btn { display: none; }
  h1 { font-size: clamp(28px, 9vw, 40px); }
  h2 { font-size: clamp(24px, 7vw, 34px); }
  .hero-card, .card { padding: 18px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .uc img { height: 160px; }

  .gap-head { margin-bottom: 32px; }
  .gap-card { display: block; padding: 26px 20px 22px; border-radius: 24px; }
  .gap-join { margin-bottom: 16px; }
}
@media (max-width: 560px) {
  .gap-badge { font-size: 12px; }
  .gap-badge.b1 { --tx: 0; top: 4px; left: auto; right: calc(50% - var(--pw) / 2 - 10px); }
  .gap-badge.b2 { --tx: 0; bottom: 4px; right: auto; left: calc(50% - var(--pw) / 2 - 10px); }
}
@media (max-width: 420px) {
  .logo { gap: 10px; }
  .lang-btn { min-width: 32px; height: 32px; padding: 0 6px; font-size: 11.5px; }
  .gap-tab { padding: 12px 4px 14px; }
  .gap-tab .ic { width: 40px; height: 40px; border-radius: 12px; }
  .gap-tab b { font-size: 12.5px; }
}
@media (max-width: 400px) {
  .container { width: min(var(--max), calc(100% - 24px)); }
  .logo img.mark { width: 40px; height: 40px; }
  .recall-kpis { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .logo img.mark { width: 34px; height: 34px; border-radius: 10px; }
  .logo .name { font-size: 19px; }
  .logo .tag { display: none; }
  .lang-btn { min-width: 30px; padding: 0 4px; }
  .gap-tab b { font-size: 11.5px; }
}
@media (max-width: 300px) {
  .logo img.mark { display: none; }
}

/* New sections · responsive */
@media (max-width: 1199px) {
  .live-stage { --pw: clamp(240px, calc((100vh - 250px) / 2.2), 282px); }
}
@media (max-width: 1180px) {
  .rs-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "ctrl device" "agenda device";
    gap: 24px 32px;
  }
}
@media (max-width: 1100px) {
  .evi-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lf-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 24px; }
  .lf-steps::before, .lf-steps::after { display: none; }
  .law-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .evi-head, .rs-head { grid-template-columns: 1fr; }
  .evi-stats { margin-top: 32px; }
  .layer-media { min-height: 0; height: clamp(260px, 56vw, 420px); }
  .layer-photo { object-position: 50% 45%; }
  .live-stage { --pw: clamp(240px, calc((100vh - 250px) / 2.2), 266px); }
  .rs-head { margin-bottom: 32px; }
}
@media (max-width: 760px) {
  .evi-explorer { grid-template-columns: 1fr; }
  .evi-side { padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .evi-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
  .evi-tab { width: auto; padding: 8px 12px; font-size: 13.5px; border-color: var(--line); background: var(--white); }
  .evi-tab .n { width: auto; }
  .evi-panel { min-height: 0; padding: 24px 20px; }
  .rs-stage {
    --pw: min(272px, 72vw);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "ctrl" "device" "agenda";
  }
  .sheet { width: 100vw; height: 90dvh; margin: auto 0 0; }
  .sheet[open] .sheet-card { animation-name: sheetUp; }
  .sheet-card { border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px rgba(15, 23, 42, 0.2); }
}
@media (max-width: 640px) {
  .evi-stats { grid-template-columns: 1fr; }
  .evi-stat { padding: 20px 18px 16px; }
  .evi-flow { width: 100%; justify-content: space-between; }
  .loopflow { margin-top: 36px; padding: 22px 18px 18px; }
  .lf-steps { grid-template-columns: 1fr; row-gap: 0; }
  .lf-step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 4px;
    align-items: start;
    padding-bottom: 18px;
  }
  .lf-step > * { grid-column: 2; }
  .lf-step .lf-n { grid-column: 1; grid-row: 1 / span 3; }
  .lf-step b { margin-top: 0; }
  .lf-step .who { justify-self: start; }
  .lf-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: 4px;
    width: 2px;
    border-radius: 2px;
    background: var(--line);
  }
  .lf-step.is-past:not(:last-child)::before { background: var(--blue-mid); }
  .law-grid { grid-template-columns: 1fr; }
  .stack-layer { padding: 16px 14px 14px; }
  .stack-link { height: 42px; }
  .live-stage { --pw: min(272px, 70vw); margin-top: 24px; }
  .live-ui { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px; }
  .live-nav { width: 44px; height: 44px; }
  .live-caption b { font-size: 18px; }
  .live-caption p { font-size: 14px; }
  .ref { grid-template-columns: 1fr; gap: 6px; }
  .rs-agenda { padding: 16px 14px; }
  .rs-row { grid-template-columns: 74px minmax(0, 1fr) auto; }
}

/* Flow A, handoff and membership · responsive */
@media (max-width: 1100px) {
  .fl-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .fl-side { display: contents; }
  .fl-stops { order: 1; }
  .fl-steps { display: flex; justify-content: space-between; gap: 6px; }
  .fl-steps::before { top: 17px; bottom: auto; left: 18px; right: 18px; width: auto; height: 2px; }
  .fl-steps li { flex: none; }
  .fl-step { display: block; width: auto; padding: 0; border-radius: 50%; }
  .fl-tx { display: none; }
  .fl-caption {
    display: block;
    min-height: 74px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
  }
  .fl-caption b { display: block; font-size: 15px; }
  .fl-caption span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--body); }
  .fl-controls { max-width: 520px; }
  .ho-grid { grid-template-columns: minmax(0, 1fr); }
  .ho-triggers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .fl-head, .ho-head, .ms-head { grid-template-columns: 1fr; margin-bottom: 32px; }
  .ms-grid { grid-template-columns: minmax(0, 1fr); }
  .ms-portal { width: 100%; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .ho-views { grid-template-columns: minmax(0, 1fr); }
  .ho-track small { display: none; }
}
@media (max-width: 640px) {
  .fl-stage { --pw: min(250px, 64vw); --lw: 100%; height: calc(var(--pw) * 2.095 + 30px); margin-bottom: 44px; }
  .fl-stage.is-patient .fl-ph { left: 50%; top: 50%; }
  .fl-stage.is-patient .fl-mb { left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.9); pointer-events: none; }
  .fl-stage.is-clinic .fl-mb { left: 50%; top: 34%; }
  .fl-stage.is-clinic .fl-ph { left: 50%; top: 76%; transform: translate(-50%, -50%) scale(0.5); }
  .fl-note { white-space: normal; width: 100%; justify-content: center; }
  .fl-view { font-size: 12.5px; }
  .ho-triggers, .ms-flow { grid-template-columns: minmax(0, 1fr); }
  .ho-panel { padding: 18px 16px; }
  .ho-tk dl div { grid-template-columns: 78px minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .fl-view svg { display: none; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gap-orbit .flow, .gap-orbit .sats, .gap-orbit .sat > span,
  .gap-badge, .gap-engine .pulse, .gap-badge .dot::after,
  .gap-step.is-now .n, .gm, .gm-card, .gm.typing i, .gap-join.is-swap { animation: none !important; }
  .gap-tab .bar { display: none; }
  .stack-link .fd, .l-core::after, .evi-panel-in.is-swap, .sheet[open] .sheet-card, .rs-row.is-new, .rs-stage.is-hinting .rs-slot,
  .wm-row, .wm-row.typing i, .wm-b.is-tap::after, .wx-bar.is-typing .wx-typed::after { animation: none !important; }
  .lv-slide, .lf-n, .lf-steps::after, .stack.js-reveal > * { transition: none !important; }
  .fl-mb, .fl-ph, .fl-thumb { transition: none !important; }
  .fl-stage.is-live *, .ho-panel.is-play *, .ho-panel.is-play .ho-tk { animation: none !important; }
  .ho-track li i { border-color: var(--warn); background: var(--warn); }
  .ho-trig .bar { display: none; }
  .evi-tab .bar { display: none; }
}
