/* Audience pages (Para Médicos, Para Investigadores, Para Pacientes, Tesis).
   Built on the live page systems: prisma.css (px-*), biobank.css (bb-*), diagnostics.css (dx-*).
   Only the pieces those files do not already cover live here. */

/* ── Médicos: Atla, in the patient page's warm language, product first ── */

.md-hero { padding-top: calc(var(--nav-gap) + var(--nav-h) + clamp(48px, 7vw, 104px)); }

.md-hero-copy { display: flex; flex-direction: column; align-items: flex-start; }

.md-hero h1 {
  max-width: var(--measure-display);
  margin-top: 16px;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.md-hero .pt-lede { max-width: var(--measure-text); margin-top: clamp(20px, 2.2vw, 28px); }
.md-hero .pt-assure { min-width: min(100%, 640px); }

/* Warm stages: the dark product sits on the patient page's gradients */

.md-stage {
  margin: 0;
  padding: clamp(14px, 4vw, 56px);
  border-radius: 28px;
  background: var(--pt-warm);
}

.md-hero .md-stage { margin-top: clamp(48px, 6vw, 88px); }

.md-stage--coral {
  background:
    radial-gradient(55% 60% at 88% 8%, rgba(255, 112, 92, 0.42), transparent 70%),
    radial-gradient(50% 55% at 6% 96%, rgba(48, 27, 235, 0.14), transparent 72%),
    radial-gradient(40% 45% at 92% 92%, rgba(255, 186, 140, 0.5), transparent 70%),
    var(--pt-warm);
}

.md-stage--blue {
  background:
    radial-gradient(55% 70% at 10% 10%, rgba(48, 27, 235, 0.16), transparent 72%),
    radial-gradient(50% 60% at 92% 90%, rgba(255, 112, 92, 0.3), transparent 70%),
    var(--pt-warm);
}

.md-stage--peach {
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(255, 186, 140, 0.55), transparent 70%),
    radial-gradient(45% 55% at 96% 96%, rgba(48, 27, 235, 0.12), transparent 72%),
    radial-gradient(40% 50% at 2% 80%, rgba(255, 112, 92, 0.24), transparent 70%),
    var(--pt-warm);
}

.md-stage .px-term { box-shadow: 0 40px 80px -36px rgba(17, 13, 23, 0.5); }

.md-cap { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }

/* Hero product screen: light mode to match the product tour */

.md-hero .px-term {
  --m-text: #17131d;
  --m-muted: #777580;
  --m-faint: #aaa7b0;
  --m-line: rgba(17, 13, 23, 0.09);
  --m-fill: rgba(17, 13, 23, 0.035);
  --m-raise: rgba(48, 27, 235, 0.08);
  border-color: rgba(17, 13, 23, 0.12);
  background: #fbfaf7;
  box-shadow: 0 28px 72px -38px rgba(17, 13, 23, 0.32);
  color: var(--m-text);
}

.md-hero .px-term-bar { background: rgba(255, 255, 255, 0.82); }
.md-hero .px-search,
.md-hero .px-ghost { border-color: rgba(17, 13, 23, 0.11); background: #fff; }
.md-hero .px-term-body { height: clamp(500px, 42vw, 600px); }
.md-hero .px-rail { background: #f5f3ef; }
.md-hero .px-rail .is-on { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(17, 13, 23, 0.1); }
.md-hero .px-side { background: rgba(255, 255, 255, 0.78); }
.md-hero .px-toolbar {
  border-color: rgba(17, 13, 23, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(17, 13, 23, 0.12);
}
.md-hero .px-toolbar button:hover { color: var(--m-text); }
.md-hero .px-toolbar button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.md-hero .px-pill { border-color: rgba(17, 13, 23, 0.1); background: #fff; }
.md-hero .px-term.is-analyzed .px-pill::before { background: #39a36d; }
.md-hero .px-term.is-analyzed .px-progress i { background: rgba(48, 27, 235, 0.18); }
.md-hero .px-meter i { background: var(--blue); }
.md-hero .px-meter--low i { background: rgba(48, 27, 235, 0.28); }
.md-hero .px-syn-empty { border-color: rgba(17, 13, 23, 0.14); }
.md-hero .px-msg--me { background: rgba(48, 27, 235, 0.08); color: var(--ink); }
.md-hero .px-ask { background: #fff; }

/* Statement */

.md-statement .pt-statement-text { max-width: var(--measure-sub); }

/* Product: three workspaces */

.md-mod { margin-top: clamp(72px, 9vw, 128px); scroll-margin-top: calc(var(--nav-h) + var(--nav-gap) + 24px); }

.md-mod-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 20px clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.md-mod-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
}

.md-mod-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.md-mod h3 {
  max-width: var(--measure-display);
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: var(--weight-headline);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.md-mod-head > p { max-width: var(--measure-text); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; color: var(--ink-muted); }

.md-mod-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px clamp(24px, 3vw, 44px);
  margin: clamp(32px, 3.6vw, 48px) 0 0;
}

.md-mod-specs > div { padding-top: 16px; border-top: 1px solid var(--ink); }
.md-mod-specs dt { font-size: 17px; font-weight: 500; color: var(--ink); }
.md-mod-specs dd { margin: 8px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-muted); }

/* One product, three clinical moments */

.md-product .pt-head { max-width: 760px; }

.md-product-tour { margin-top: clamp(36px, 4.5vw, 64px); }

.md-product-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.md-product-tabs::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: calc(100% / 3);
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--blue);
  box-shadow: 0 -2px 10px rgba(48, 27, 235, 0.16);
  transform: translateX(calc(var(--md-tab-index, 0) * 100%));
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.md-product-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 8px 16px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.32s var(--ease-out);
}

.md-product-tabs button:hover,
.md-product-tabs button.is-active { color: var(--ink); }
.md-product-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.md-product-tabs button span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.md-product-tabs button b {
  min-width: 0;
  font: inherit;
  font-weight: inherit;
}

.md-product-panels { margin-top: clamp(28px, 3.5vw, 48px); }

.md-product-panel {
  display: grid;
  grid-template-columns: minmax(210px, 2.6fr) minmax(0, 9.4fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.md-product-tour.is-enhanced .md-product-panel:not(.is-active) { display: none; }

.md-tab-transition .md-product-copy { view-transition-name: md-product-copy; }
.md-tab-transition .md-product-visual { view-transition-name: md-product-visual; }

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-group(md-product-copy),
::view-transition-group(md-product-visual) {
  animation-duration: 0.46s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(md-product-copy),
::view-transition-old(md-product-visual) {
  animation: md-vt-out 0.3s cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(md-product-visual) {
  animation: md-vt-visual-in 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html[data-md-direction="forward"]::view-transition-new(md-product-copy) {
  animation: md-vt-copy-forward 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html[data-md-direction="back"]::view-transition-new(md-product-copy) {
  animation: md-vt-copy-back 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes md-vt-out {
  to { opacity: 0; transform: scale(0.988); }
}

@keyframes md-vt-visual-in {
  from { opacity: 0; transform: scale(0.985); }
}

@keyframes md-vt-copy-forward {
  from { opacity: 0; transform: translateX(18px); }
}

@keyframes md-vt-copy-back {
  from { opacity: 0; transform: translateX(-18px); }
}

.md-product-copy h3 {
  max-width: var(--measure-display);
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: var(--weight-headline);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.md-product-copy p {
  max-width: var(--measure-note);
  margin: 18px 0 0;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.55;
  color: var(--ink-muted);
}

.md-product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  aspect-ratio: 16 / 9;
  padding: clamp(14px, 1.8vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(60% 72% at 96% 4%, rgba(255, 112, 92, 0.24), transparent 72%),
    radial-gradient(55% 68% at 3% 96%, rgba(48, 27, 235, 0.12), transparent 74%),
    #eeeae4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 18px 54px -44px rgba(17, 13, 23, 0.3);
}

.md-product-visual > figure { width: 100%; }
.md-product-shot { margin: 0; }

/* The AI reading switcher */

.md-lens { margin: 0; }

.md-lens-stage {
  position: relative;
  aspect-ratio: 1024 / 310;
  overflow: hidden;
  background: #0e0c16;
  border: 1px solid rgba(17, 13, 23, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -36px rgba(17, 13, 23, 0.5);
}

.md-lens-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.md-lens-img.is-on { opacity: 1; }

.md-lens-bar {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 1.6vw, 20px);
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  max-width: calc(100% - 24px);
  padding: 4px;
  overflow-x: auto;
  background: rgba(14, 12, 22, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  white-space: nowrap;
}

.md-lens-bar button {
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b909d;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--duration-micro) var(--ease-out), color var(--duration-micro) var(--ease-out);
}

.md-lens-bar button:hover { color: #e6e7eb; }
.md-lens-bar button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.md-lens-bar button:focus-visible { outline: 2px solid #8f83ff; outline-offset: 2px; }

.md-lens-cap { min-height: 3em; margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--ink); }

.md-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(17, 13, 23, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -36px rgba(17, 13, 23, 0.5);
}

/* Molecular orders: copy beside the panel */

.md-mod--split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.md-mod--split .md-mod-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }

.md-order-fig {
  margin: 0;
  padding: 10px;
  background: #0e0c16;
  border: 1px solid rgba(17, 13, 23, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -36px rgba(17, 13, 23, 0.5);
  color: #e6e7eb;
}

.md-order-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 14px;
  font-size: 12px;
  color: #8b909d;
}

.md-order-brand { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; color: #e6e7eb; }
.md-order-title { color: #e6e7eb; }
.md-order-case { margin-left: auto; font-family: var(--font-mono); }

.md-order-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.md-order-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title when" "body body";
  gap: 4px 16px;
  padding: 18px 20px;
}

.md-order-rows li + li { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.md-order-rows li.is-picked { background: rgba(143, 131, 255, 0.1); box-shadow: inset 2px 0 0 #8f83ff; }

.md-order-rows h4 {
  grid-area: title;
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 500;
  color: #fff;
}

.md-order-k {
  grid-area: when;
  align-self: baseline;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #8b909d;
  white-space: nowrap;
}

.md-order-rows p { grid-area: body; font-size: 14.5px; line-height: 1.5; color: #a3a8b4; max-width: var(--measure-text); }

.md-order-cap { padding: 10px 10px 2px; font-size: 12px; color: #8b909d; }

/* Light product screens */

.md-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
  border: 1px solid rgba(17, 13, 23, 0.12);
  border-radius: 16px;
  background: #fbfaf7;
  box-shadow: 0 24px 64px -36px rgba(17, 13, 23, 0.28);
  color: var(--ink);
}

.md-screen-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(17, 13, 23, 0.09);
  background: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  color: var(--ink-muted);
}

.md-screen-brand {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.md-screen-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-screen-path i { padding: 0 6px; color: rgba(17, 13, 23, 0.25); font-style: normal; }

.md-screen-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  white-space: nowrap;
  color: var(--ink);
}

.md-screen-state > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #39a36d;
}

.md-ui-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.md-ui-note {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 13, 23, 0.09);
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-muted);
}

.md-ui-pill {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 112, 92, 0.12);
  color: #a43d2f;
  font-size: 10px;
  font-weight: 500;
}

.md-ui-accent { color: var(--blue); }

.md-path-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  flex: 1;
  min-height: 0;
}

.md-path-art {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 14px;
  background: #f3f1ed;
}

.md-path-canvas {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 13, 23, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(rgba(17, 13, 23, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 13, 23, 0.025) 1px, transparent 1px),
    #f9f6f2;
  background-size: 28px 28px;
}

.md-path-canvas svg {
  display: block;
  width: 100%;
  height: 100%;
}

.md-path-flag {
  position: absolute;
  top: 12%;
  right: 5%;
  padding: 5px 8px;
  border: 1px solid rgba(48, 27, 235, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(17, 13, 23, 0.08);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--blue);
}

.md-path-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(17, 13, 23, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(17, 13, 23, 0.08);
}

.md-path-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 5px;
  font-size: 9px;
  color: var(--ink-muted);
}

.md-path-legend .is-active { background: rgba(48, 27, 235, 0.08); color: var(--blue); }
.md-path-legend i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.md-path-art figcaption {
  margin: 8px 2px 0;
  font-size: 11px;
  color: var(--ink-muted);
}

.md-screen-scale {
  position: absolute;
  right: 12px;
  bottom: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(17, 13, 23, 0.45);
}

.md-screen-scale i { width: 28px; border-top: 1px solid currentColor; }
.md-path-canvas .md-screen-scale { color: rgba(17, 13, 23, 0.52); text-shadow: none; }

.md-screen-side {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-left: 1px solid rgba(17, 13, 23, 0.09);
  background: rgba(255, 255, 255, 0.62);
}

.md-screen-side h4,
.md-board-side h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.md-findings { margin: 18px 0 0; }
.md-findings > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(17, 13, 23, 0.08); }
.md-findings dt { font-size: 10px; color: var(--ink-muted); }
.md-findings dd { margin: 0; font-size: 10px; font-weight: 500; text-align: right; color: var(--ink); }

.md-board-summary,
.md-follow-head {
  display: grid;
  border-bottom: 1px solid rgba(17, 13, 23, 0.09);
  background: #fff;
}

.md-board-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.md-follow-head { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.md-board-summary > div,
.md-follow-head > div { padding: 12px 16px; }
.md-board-summary > div + div,
.md-follow-head > div + div { border-left: 1px solid rgba(17, 13, 23, 0.08); }
.md-board-summary span,
.md-follow-head span { display: block; margin-bottom: 4px; font-size: 9px; color: var(--ink-muted); }
.md-board-summary strong,
.md-follow-head strong { display: block; overflow: hidden; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

.md-board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  flex: 1;
  min-height: 0;
}

.md-board-main,
.md-board-side { padding: 16px; }
.md-board-side { border-left: 1px solid rgba(17, 13, 23, 0.09); background: rgba(255, 255, 255, 0.62); }

.md-ui-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.md-ui-section-head h4 { margin: 0; font-size: 12px; font-weight: 500; }
.md-ui-section-head > span { font-size: 9px; color: var(--ink-muted); }

.md-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.md-evidence-grid article {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 13, 23, 0.09);
  border-radius: 9px;
  background: #fff;
}

.md-evidence-grid img { width: 70px; height: 74px; object-fit: cover; }
.md-evidence-grid article > div { min-width: 0; padding: 10px; }
.md-evidence-grid span,
.md-evidence-grid small { display: block; font-size: 9px; color: var(--ink-muted); }
.md-evidence-grid strong { display: block; margin: 5px 0 3px; overflow: hidden; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

.md-evidence-grid .md-evidence-wide {
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
}

.md-mini-trend {
  display: flex;
  align-items: end;
  gap: 5px;
  width: 130px;
  height: 44px;
  padding: 8px 12px !important;
}

.md-mini-trend i { flex: 1; border-radius: 2px 2px 0 0; background: rgba(48, 27, 235, 0.24); }
.md-mini-trend i:nth-child(1) { height: 100%; }
.md-mini-trend i:nth-child(2) { height: 76%; }
.md-mini-trend i:nth-child(3) { height: 52%; }
.md-mini-trend i:nth-child(4) { height: 34%; }
.md-mini-trend i:nth-child(5) { height: 22%; background: var(--blue); }

.md-board-side ol { list-style: none; margin: 14px 0 0; padding: 0; }
.md-board-side li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid rgba(17, 13, 23, 0.08); font-size: 10px; line-height: 1.4; }
.md-board-side li span { font-family: var(--font-mono); font-size: 9px; color: var(--blue); }

.md-follow-chart { flex: 1; min-height: 0; padding: 14px 18px 4px; }
.md-follow-chart svg { display: block; width: 100%; height: clamp(120px, 14vw, 170px); margin-top: 4px; overflow: visible; }
.md-chart-grid path { fill: none; stroke: rgba(17, 13, 23, 0.08); stroke-width: 1; }
.md-chart-area { fill: rgba(48, 27, 235, 0.07); }
.md-chart-line { fill: none; stroke: var(--blue); stroke-width: 2.5; }
.md-chart-dots circle { fill: #fbfaf7; stroke: var(--blue); stroke-width: 2; }
.md-chart-labels text { fill: var(--ink-muted); font-family: var(--font-mono); font-size: 8px; }

.md-follow-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0 16px 14px;
}

.md-follow-timeline li {
  position: relative;
  min-width: 0;
  padding: 12px 10px 0;
  border-top: 1px solid rgba(17, 13, 23, 0.14);
}

.md-follow-timeline li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbfaf7;
  box-shadow: inset 0 0 0 2px rgba(17, 13, 23, 0.28);
}

.md-follow-timeline li.is-current::before { box-shadow: inset 0 0 0 2px var(--blue); }
.md-follow-timeline span,
.md-follow-timeline small { display: block; font-size: 8px; color: var(--ink-muted); }
.md-follow-timeline strong { display: block; margin: 4px 0; overflow: hidden; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

/* One case transforming across three clinical moments */

.md-concept {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 13, 23, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 28px 62px -30px rgba(17, 13, 23, 0.42),
    0 4px 12px rgba(17, 13, 23, 0.08);
  color: var(--ink);
}

.md-concept-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(17, 13, 23, 0.1);
  background: #fff;
  font-size: 10.5px;
  color: var(--ink-muted);
}

.md-concept-head em {
  margin-left: auto;
  font-family: var(--font-mono);
  font-style: normal;
  letter-spacing: 0.05em;
  color: var(--blue);
}

.md-case-id {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  color: var(--ink);
}

.md-case-id i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(48, 27, 235, 0.08);
}

.md-concept-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  flex: 1;
  min-height: 0;
}

.md-specimen-map {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 18px;
}

.md-specimen {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: 12px;
  background:
    linear-gradient(rgba(17, 13, 23, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 13, 23, 0.028) 1px, transparent 1px),
    #f8f6f2;
  background-size: 28px 28px;
}

.md-specimen > img { display: block; width: 100%; height: 100%; object-fit: cover; }

.md-focus-ring {
  position: absolute;
  z-index: 2;
  top: 24%;
  left: 59%;
  width: 27%;
  height: 48%;
  border: 2px solid var(--blue);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 6px rgba(48, 27, 235, 0.05);
}

.md-focus-ring::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 54%;
  height: 18px;
  border-left: 1px solid var(--blue);
}

.md-focus-label {
  position: absolute;
  z-index: 3;
  top: 11%;
  right: 7%;
  padding: 6px 9px;
  border: 1px solid rgba(48, 27, 235, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px rgba(17, 13, 23, 0.07);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--blue);
}

.md-specimen-map figcaption {
  margin-top: 9px;
  font-size: 10px;
  color: var(--ink-muted);
}

.md-concept-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border-left: 1px solid rgba(17, 13, 23, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.md-concept-note span,
.md-evidence-node span,
.md-decision-node span,
.md-case-core span,
.md-trajectory-label span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
}

.md-concept-note strong {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.md-concept-note p {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--ink-muted);
}

.md-case-signals {
  padding: 22px 20px;
  border-left: 1px solid rgba(17, 13, 23, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.md-case-signals > p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
}

.md-case-signals dl { margin: 18px 0 0; }
.md-case-signals dl > div { position: relative; padding: 12px 0 12px 12px; border-top: 1px solid rgba(17, 13, 23, 0.08); }
.md-case-signals dl > div::before { content: ""; position: absolute; top: 16px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: rgba(17, 13, 23, 0.2); }
.md-case-signals dl > div.is-active::before { background: var(--blue); box-shadow: 0 0 0 4px rgba(48, 27, 235, 0.08); }
.md-case-signals dt { font-size: 9px; color: var(--ink-muted); }
.md-case-signals dd { margin: 5px 0 0; font-size: 12px; font-weight: 500; color: var(--ink); }

.md-evidence-map {
  position: relative;
  flex: 1;
  min-height: 0;
  background:
    linear-gradient(rgba(17, 13, 23, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 13, 23, 0.025) 1px, transparent 1px),
    #faf9f6;
  background-size: 32px 32px;
}

.md-evidence-map > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.md-evidence-map > svg path {
  fill: none;
  stroke: rgba(48, 27, 235, 0.25);
  stroke-width: 1.5;
}

.md-evidence-node,
.md-context-node,
.md-decision-node,
.md-case-core {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(17, 13, 23, 0.09);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px -22px rgba(17, 13, 23, 0.35);
}

.md-evidence-node {
  left: 3%;
  width: 18%;
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 10px;
}

.md-evidence-node--path { top: 8%; }
.md-evidence-node--molecular { top: 39%; }
.md-evidence-node--course { top: 70%; }

.md-evidence-node::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
}

.md-evidence-node strong {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
}

.md-case-core {
  top: 50%;
  left: 43%;
  align-items: center;
  width: 104px;
  height: 104px;
  border-color: rgba(48, 27, 235, 0.18);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #f0edff);
  transform: translate(-50%, -50%);
}

.md-case-core strong { margin-top: 7px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; }

.md-context-node {
  left: 56%;
  width: 20%;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 10px;
  border-color: rgba(48, 27, 235, 0.13);
  background: #f7f5ff;
}

.md-context-node--guides { top: 8%; }
.md-context-node--rwe { bottom: 8%; }
.md-context-node span { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue); }
.md-context-node strong { margin-top: 6px; font-size: 11px; font-weight: 500; }

.md-decision-node {
  top: 50%;
  right: 2%;
  width: 20%;
  min-height: 122px;
  padding: 16px;
  border-color: rgba(48, 27, 235, 0.16);
  border-radius: 12px;
  background: #f0edff;
  transform: translateY(-50%);
}

.md-decision-node strong { margin-top: 9px; font-size: 14px; font-weight: 500; line-height: 1.35; }

.md-trajectory {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 24px 28px 18px;
  background:
    linear-gradient(rgba(17, 13, 23, 0.022) 1px, transparent 1px),
    #faf9f6;
  background-size: 100% 74px;
}

.md-trajectory-label { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.md-trajectory-label strong { font-size: 13px; font-weight: 500; }

.md-trajectory > svg {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 170px;
  margin-top: 2px;
  overflow: visible;
}

.md-trajectory-grid path { fill: none; stroke: rgba(17, 13, 23, 0.07); stroke-width: 1; }
.md-trajectory-area { fill: rgba(48, 27, 235, 0.06); }
.md-trajectory-line { fill: none; stroke: var(--blue); stroke-width: 2.5; }
.md-trajectory-points circle { fill: #faf9f6; stroke: var(--blue); stroke-width: 2; }
.md-trajectory-points circle:last-child { fill: var(--blue); }

.md-trajectory ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: -20px 0 0;
  padding: 0;
}

.md-trajectory li {
  position: relative;
  padding: 14px 8px 0;
  border-top: 1px solid rgba(17, 13, 23, 0.12);
}

.md-trajectory li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #faf9f6;
  box-shadow: inset 0 0 0 2px rgba(17, 13, 23, 0.25);
}

.md-trajectory li.is-current::before { background: var(--blue); box-shadow: none; }
.md-trajectory li span { display: block; font-size: 8px; color: var(--ink-muted); }
.md-trajectory li strong { display: block; margin-top: 4px; font-size: 10px; font-weight: 500; }

.md-trajectory figcaption {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 10px;
  color: var(--ink-muted);
}

.md-trajectory figcaption i { width: 6px; height: 6px; border-radius: 50%; background: #39a36d; }

@media (hover: hover) and (pointer: fine) {
  .md-concept {
    transition:
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .md-product-visual:hover .md-concept {
    transform: translateY(-2px);
    box-shadow:
      0 34px 70px -30px rgba(17, 13, 23, 0.48),
      0 6px 16px rgba(17, 13, 23, 0.1);
  }
}

#md-panel-path.is-animating .md-focus-ring {
  animation: md-focus-confirm 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#md-panel-path.is-animating .md-focus-label {
  animation: md-label-confirm 0.58s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#md-panel-board.is-animating .md-evidence-map > svg path {
  animation: md-line-confirm 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#md-panel-board.is-animating .md-evidence-node,
#md-panel-board.is-animating .md-context-node {
  animation: md-node-confirm 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#md-panel-board.is-animating .md-case-core {
  animation: md-core-confirm 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#md-panel-board.is-animating .md-decision-node {
  animation: md-decision-confirm 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#md-panel-board.is-animating .md-evidence-node--molecular,
#md-panel-board.is-animating .md-context-node--guides { animation-delay: 0.06s; }
#md-panel-board.is-animating .md-evidence-node--course,
#md-panel-board.is-animating .md-context-node--rwe { animation-delay: 0.12s; }
#md-panel-board.is-animating .md-case-core { animation-delay: 0.17s; }
#md-panel-board.is-animating .md-decision-node { animation-delay: 0.23s; }

#md-panel-follow.is-animating .md-trajectory-line {
  stroke-dasharray: 700;
  animation: md-trace-confirm 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#md-panel-follow.is-animating .md-trajectory-area {
  animation: md-area-confirm 0.7s ease-out both;
}

#md-panel-follow.is-animating .md-trajectory-points circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: md-point-confirm 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#md-panel-follow.is-animating .md-trajectory-points circle:nth-child(2) { animation-delay: 0.08s; }
#md-panel-follow.is-animating .md-trajectory-points circle:nth-child(3) { animation-delay: 0.16s; }
#md-panel-follow.is-animating .md-trajectory-points circle:nth-child(4) { animation-delay: 0.24s; }

@keyframes md-focus-confirm {
  0% { box-shadow: 0 0 0 0 rgba(48, 27, 235, 0.22); }
  55% { box-shadow: 0 0 0 9px rgba(48, 27, 235, 0.07); }
  100% { box-shadow: 0 0 0 6px rgba(48, 27, 235, 0.05); }
}

@keyframes md-label-confirm {
  from { opacity: 0.7; transform: translateY(5px); }
}

@keyframes md-line-confirm {
  from { opacity: 0.32; }
}

@keyframes md-node-confirm {
  from { opacity: 0.72; transform: translateY(5px); }
}

@keyframes md-core-confirm {
  from { opacity: 0.72; transform: translate(-50%, -50%) scale(0.94); }
}

@keyframes md-decision-confirm {
  from { opacity: 0.72; transform: translate(5px, -50%); }
}

@keyframes md-trace-confirm {
  from { stroke-dashoffset: 70; }
}

@keyframes md-area-confirm {
  from { opacity: 0.35; }
}

@keyframes md-point-confirm {
  from { opacity: 0.55; transform: scale(0.65); }
}

@media (prefers-reduced-motion: reduce) {
  .md-product-tabs::after,
  .md-concept { transition: none; }

  .md-product-panel *,
  .md-product-panel *::before,
  .md-product-panel *::after { animation: none !important; }
}

/* The mirror: the patient's promise beside the doctor's view */

.md-mirror-panel {
  padding: clamp(28px, 4.4vw, 64px);
  border-radius: 28px;
  background:
    radial-gradient(50% 60% at 8% 12%, rgba(255, 112, 92, 0.22), transparent 70%),
    radial-gradient(45% 55% at 95% 90%, rgba(48, 27, 235, 0.1), transparent 72%),
    var(--pt-warm);
}

.md-mirror-table { display: grid; }

.md-mirror-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 5fr);
  gap: 12px clamp(16px, 2.4vw, 32px);
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(17, 13, 23, 0.1);
}

.md-mirror-row--head {
  padding: 0 0 12px;
  border-top: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

.md-mirror-row--head span:last-child { color: var(--blue); }

.md-mirror-when { font-size: 15px; font-weight: 500; color: var(--ink); }

.md-mirror-pt {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.md-mirror-atla {
  padding: 14px 18px;
  background: rgba(255, 253, 249, 0.9);
  border-radius: var(--radius-md);
  box-shadow: inset 2px 0 0 var(--blue);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
}

.md-mirror-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 40px;
  margin-top: clamp(24px, 3vw, 36px);
}

.md-mirror-foot .pt-note { margin-top: 0; }
.md-mirror-foot .pt-moment-link { margin-top: 0; padding-top: 0; }

/* Install specs: one dense row */

.md-tech {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--ink);
}

.md-tech > div { padding: 20px clamp(16px, 2vw, 28px) 20px 0; }
.md-tech > div + div { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.md-tech dt { font-size: 15px; font-weight: 500; color: var(--ink-muted); }
.md-tech dd { margin: 10px 0 0; font-size: 17px; line-height: 1.45; color: var(--ink); }

.md-install-more { margin-top: 28px; font-size: 16px; line-height: 1.5; color: var(--ink); }

/* Reveals, only when JS runs and motion is allowed */

.md-motion .md-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.md-motion .md-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .md-mod-specs,
  .md-tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-tech > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .md-tech > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .md-mod-head,
  .md-mod--split { grid-template-columns: minmax(0, 1fr); }
  .md-product-panel { grid-template-columns: minmax(0, 1fr); }
  .md-mirror-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 0; }
  .md-mirror-row--head { display: none; }
}

@media (max-width: 720px) {
  .md-product-tabs button { gap: 6px; padding-inline: 3px; font-size: 14px; }
  .md-product-copy h3 { max-width: var(--measure-head); }
  .md-product-visual { aspect-ratio: 4 / 3; }
  .md-lens-stage { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .md-product-tabs button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 5px;
    padding-inline: 2px;
    font-size: 11.5px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .md-product-tabs button span { font-size: 9.5px; line-height: 1.35; }
  .md-product-tabs button b { overflow-wrap: anywhere; }

  .md-mod-specs,
  .md-tech { grid-template-columns: minmax(0, 1fr); }
  .md-tech > div,
  .md-tech > div + div { padding-left: 0; border-left: 0; }
  .md-tech > div + div { border-top: 1px solid var(--line); }
  .md-order-rows li { grid-template-columns: minmax(0, 1fr); grid-template-areas: "when" "title" "body"; padding: 16px; }
  .md-order-k { justify-self: start; margin-bottom: 2px; white-space: normal; }
  .md-product-visual { aspect-ratio: 1 / 1; }
  .md-screen { min-height: 0; }
  .md-concept { min-height: 0; }
  .md-concept-head { min-height: 42px; padding-inline: 12px; }
  .md-concept-head > span:nth-child(2) { display: none; }
  .md-concept-stage { grid-template-columns: minmax(0, 1fr) 126px; }
  .md-specimen-map { padding: 10px; }
  .md-focus-label { top: 9%; right: 5%; padding: 5px 6px; font-size: 7px; }
  .md-concept-note { padding: 12px; }
  .md-concept-note span { font-size: 7px; }
  .md-concept-note strong { margin-top: 8px; font-size: 13px; }
  .md-concept-note p { margin-top: 8px; font-size: 9px; }
  .md-case-signals { padding: 12px 10px; }
  .md-case-signals > p { font-size: 7px; }
  .md-case-signals dl { margin-top: 10px; }
  .md-case-signals dl > div { padding: 8px 0 8px 10px; }
  .md-case-signals dl > div::before { top: 12px; }
  .md-case-signals dt { font-size: 7px; }
  .md-case-signals dd { margin-top: 3px; font-size: 9px; }
  .md-evidence-node { left: 3%; width: 21%; min-height: 44px; padding: 6px 8px; }
  .md-evidence-node span,
  .md-context-node span,
  .md-decision-node span,
  .md-case-core span { font-size: 7px; }
  .md-evidence-node strong { margin-top: 4px; font-size: 10px; }
  .md-case-core { left: 42%; width: 68px; height: 68px; }
  .md-case-core strong { margin-top: 4px; font-size: 10px; }
  .md-context-node { left: 54%; width: 20%; min-height: 44px; padding: 6px; }
  .md-context-node strong { margin-top: 4px; font-size: 8px; }
  .md-decision-node { right: 2%; width: 22%; min-height: 82px; padding: 7px; }
  .md-decision-node strong { margin-top: 6px; font-size: 10px; }
  .md-trajectory { padding: 16px 14px 12px; }
  .md-trajectory-label strong { font-size: 10px; }
  .md-trajectory > svg { min-height: 130px; }
  .md-trajectory figcaption { margin-top: 10px; font-size: 8px; }
  .md-screen-path { display: none; }
  .md-path-layout,
  .md-board-layout { grid-template-columns: minmax(0, 1fr); }
  .md-screen-side,
  .md-board-side { display: none; }
  .md-board-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-board-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(17, 13, 23, 0.08); }
  .md-board-summary > div:nth-child(4) { border-top: 1px solid rgba(17, 13, 23, 0.08); }
  .md-follow-head > div { padding-inline: 10px; }
  .md-follow-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
}

/* ── Pacientes: written for a patient or a family member, not a lab.
   Sans labels instead of mono kickers, larger body copy, warm paper tones. ── */

.pt-page {
  --pt-warm: #f6efe6;
}

.pt-hero {
  padding-top: calc(var(--nav-gap) + var(--nav-h) + clamp(48px, 7vw, 104px));
}

.pt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.pt-hero-copy { display: flex; flex-direction: column; align-items: flex-start; }

.pt-eyebrow {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
}

.pt-hero h1 {
  max-width: var(--measure-display);
  margin-top: 16px;
  font-size: clamp(40px, 4.8vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.pt-lede {
  max-width: var(--measure-text);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--ink-muted);
}

.pt-hero .pt-lede { margin-top: clamp(20px, 2.2vw, 28px); }

.pt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: clamp(28px, 3vw, 40px);
}

.pt-link-quiet {
  font-size: 15px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--duration-micro) var(--ease-out);
}

.pt-link-quiet:hover { color: var(--ink); }
.pt-link-quiet:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 3px; }

.pt-assure {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: clamp(32px, 3.6vw, 48px) 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}

.pt-assure li { display: flex; align-items: center; gap: 8px; }

.pt-assure li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

/* The circle of care: the patient at the center, the people around them */

.pt-care { margin: 0; }

.pt-care-field {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 72% 22%, rgba(255, 112, 92, 0.42), transparent 70%),
    radial-gradient(55% 50% at 20% 80%, rgba(48, 27, 235, 0.16), transparent 72%),
    radial-gradient(45% 40% at 85% 85%, rgba(255, 186, 140, 0.5), transparent 70%),
    var(--pt-warm);
}

/* The print (audience-prints.js) fills the field on a 90 x 90 grid; labels sit off the ring nodes,
   which start on the diagonals of a ring 25 cells around the centre; while it orbits,
   audience-prints.js moves each label so it stays just outside its node. */
.pt-care-print {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}
.pt-care-print.is-live { opacity: 1; }

.pt-care-node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: 999px;
  box-shadow: 0 12px 28px -18px rgba(17, 13, 23, 0.45);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.pt-care-node--a { left: 28.4%; top: 20.5%; }
.pt-care-node--b { left: 71.6%; top: 20.5%; }
.pt-care-node--c { left: 71.6%; top: 79.5%; }
.pt-care-node--d { left: 28.4%; top: 79.5%; background: var(--blue); border-color: var(--blue); color: var(--white) }

@media (max-width: 520px) {
  .pt-care-node { padding: 7px 12px; font-size: 12.5px; }
}

/* Statement */

.pt-statement-text {
  max-width: var(--measure-sub);
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: var(--weight-headline);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pt-statement-text em { font-style: italic; color: var(--blue); }

.pt-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(36px, 4.4vw, 56px);
}

.pt-head h2 { max-width: var(--measure-head); }

/* ¿En qué momento estás? */

.pt-moment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
}

.pt-moment {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--paper-card);
  border-radius: var(--radius-lg);
}

.pt-moment--urgent { background: var(--pt-warm); }

.pt-moment-when { font-size: 14px; font-weight: 500; color: var(--ink-muted); }

.pt-moment h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: var(--weight-headline);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.pt-moment > p:not(.pt-moment-when):not(.pt-moment-flag) {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.pt-moment-flag {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(48, 27, 235, 0.08);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue);
}

.pt-moment-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
}

.pt-moment-link:hover { color: var(--blue-dark); }
.pt-moment-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 3px; }

/* Después de tu llamada */

.pt-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px);
}

.pt-step-list li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.pt-step-n {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--ink-muted);
}

.pt-step-list h3 { margin-top: 6px; font-size: 20px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.pt-step-list p { font-size: 16px; line-height: 1.55; color: var(--ink-muted); }

.pt-step-list .pt-step-who {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

/* Tu equipo médico + Omica */

.pt-roles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.pt-role {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.pt-role--shared {
  z-index: 1;
  margin-block: -14px;
  justify-content: center;
  background: var(--ink);
  border-color: var(--ink);
  text-align: center;
}

.pt-role h3 { font-size: 20px; font-weight: 500; color: var(--ink); }
.pt-role p { font-size: 16px; line-height: 1.5; color: var(--ink-muted); }
.pt-role--shared h3 { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); color: var(--paper); }
.pt-role--shared p { color: var(--fog); }

.pt-role:first-child { border-right: 0; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.pt-role:last-child { border-left: 0; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }

.pt-note {
  max-width: var(--measure-text);
  margin-top: clamp(32px, 3.6vw, 48px);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* Lo que recibes */

.pt-receive-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 4.4vw, 64px);
  border-radius: 28px;
  background:
    radial-gradient(50% 60% at 8% 12%, rgba(255, 112, 92, 0.22), transparent 70%),
    radial-gradient(45% 55% at 95% 90%, rgba(48, 27, 235, 0.1), transparent 72%),
    var(--pt-warm);
}

.pt-receive-grid .pt-head { margin-bottom: 0; }

.pt-receive-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pt-receive-list > div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(20px, 2vw, 28px);
  background: rgba(255, 253, 249, 0.86);
  border-radius: var(--radius-lg);
}

.pt-receive-list dt { font-size: 18px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.pt-receive-list dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-muted); }

/* Alma: the patient's view of the same longitudinal record */

.pt-brand-mark {
  position: relative;
  top: -0.2em;
  margin-left: 0.06em;
  font-size: 0.5em;
  line-height: 0;
}

.pt-alma-stage { padding: clamp(14px, 3.4vw, 48px); }

.pt-alma-screen {
  overflow: hidden;
  border: 1px solid rgba(17, 13, 23, 0.12);
  border-radius: 18px;
  background: #fbfaf7;
  box-shadow:
    0 32px 72px -38px rgba(17, 13, 23, 0.42),
    0 4px 12px rgba(17, 13, 23, 0.07);
  color: var(--ink);
}

.pt-alma-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(17, 13, 23, 0.09);
  background: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  color: var(--ink-muted);
}

.pt-alma-brand {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.pt-alma-brand sup {
  position: relative;
  top: -0.35em;
  margin-left: 1px;
  font-size: 6px;
  line-height: 0;
}

.pt-alma-bar em {
  margin-left: auto;
  font-style: normal;
  color: #27734e;
}

.pt-alma-body {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  min-height: 430px;
}

.pt-alma-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 14px;
  border-right: 1px solid rgba(17, 13, 23, 0.08);
  background: #f3f1ed;
}

.pt-alma-nav span {
  padding: 9px 11px;
  border-radius: 7px;
  font-size: 11px;
  color: var(--ink-muted);
}

.pt-alma-nav .is-active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(17, 13, 23, 0.08);
  font-weight: 500;
  color: var(--blue);
}

.pt-alma-main {
  min-width: 0;
  padding: clamp(22px, 3vw, 38px);
}

.pt-alma-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.pt-alma-heading span,
.pt-alma-lower section > p {
  display: block;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.pt-alma-heading strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 500;
  color: var(--ink);
}

.pt-alma-heading b {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 7px;
  background: var(--blue);
  font-size: 10px;
  font-weight: 500;
  color: #fff;
}

.pt-alma-companion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(48, 27, 235, 0.14);
  border-radius: 11px;
  background:
    radial-gradient(70% 120% at 100% 100%, rgba(255, 112, 92, 0.13), transparent 72%),
    rgba(48, 27, 235, 0.055);
}

.pt-alma-companion span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
}

.pt-alma-companion strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.pt-alma-companion p {
  margin: 4px 0 0;
  font-size: 9px;
  color: var(--ink-muted);
}

.pt-alma-companion > b {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(48, 27, 235, 0.16);
  border-radius: 7px;
  background: #fff;
  font-size: 9px;
  font-weight: 500;
  color: var(--blue);
}

.pt-alma-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.pt-alma-cards article {
  padding: 16px;
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: 10px;
  background: #fff;
}

.pt-alma-cards span,
.pt-alma-cards small {
  display: block;
  font-size: 9px;
  color: var(--ink-muted);
}

.pt-alma-cards strong {
  display: block;
  margin: 9px 0 5px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.pt-alma-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(190px, 0.8fr);
  gap: 12px;
  margin-top: 12px;
}

.pt-alma-lower > section {
  padding: 17px;
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: 10px;
  background: #fff;
}

.pt-alma-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.pt-alma-timeline li {
  position: relative;
  min-width: 0;
  padding: 13px 10px 0 0;
  border-top: 1px solid rgba(17, 13, 23, 0.16);
}

.pt-alma-timeline li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--blue);
}

.pt-alma-timeline li.is-done::before { background: var(--blue); }
.pt-alma-timeline span,
.pt-alma-timeline small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-alma-timeline span { font-size: 10px; font-weight: 500; color: var(--ink); }
.pt-alma-timeline small { margin-top: 5px; font-size: 8px; color: var(--ink-muted); }

.pt-alma-files { display: flex; flex-direction: column; }

.pt-alma-files div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(17, 13, 23, 0.08);
  font-size: 9px;
}

.pt-alma-files div:first-of-type { margin-top: 13px; }
.pt-alma-files div span { color: var(--ink); }
.pt-alma-files div b { font-family: var(--font-mono); font-size: 8px; font-weight: 500; color: var(--blue); }

.pt-alma-stage + .pt-doctor { margin-top: 12px; }

.pt-alma-tour { margin-top: clamp(34px, 4vw, 56px); }
.pt-alma-tour .md-product-panel { align-items: stretch; }
.pt-alma-tour .md-product-copy { align-self: center; }
.pt-alma-tour .md-product-visual { aspect-ratio: 16 / 10; }
.pt-alma-tour .pt-alma-screen { width: 100%; height: 100%; }
.pt-alma-tour + .md-cap { width: 74.5%; margin: 14px 0 0 auto; }
.pt-alma-tour + .md-cap + .pt-doctor { margin-top: 12px; }

.pt-alma-workspace {
  display: flex;
  flex-direction: column;
  height: calc(100% - 50px);
  min-height: 0;
  padding: clamp(18px, 2.4vw, 28px);
  background: #fbfaf7;
}

.pt-alma-screen-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.pt-alma-screen-head span,
.pt-alma-result > span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.pt-alma-screen-head strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.pt-alma-screen-head > b {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--blue);
  font-size: 9px;
  font-weight: 500;
  color: #fff;
}

.pt-alma-ai {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(48, 27, 235, 0.13);
  border-radius: 10px;
  background:
    radial-gradient(65% 120% at 100% 100%, rgba(255, 112, 92, 0.12), transparent 72%),
    rgba(48, 27, 235, 0.055);
}

.pt-alma-ai span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
}

.pt-alma-ai p {
  margin: 7px 0 0;
  font-size: 10px;
  line-height: 1.45;
  color: var(--ink);
}

.pt-alma-tasks {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.pt-alma-tasks li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 43px;
  padding: 0 14px 0 35px;
}

.pt-alma-tasks li + li { border-top: 1px solid rgba(17, 13, 23, 0.07); }

.pt-alma-tasks li::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(17, 13, 23, 0.25);
  border-radius: 50%;
}

.pt-alma-tasks li.is-done::before {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 2px #fff;
}

.pt-alma-tasks span { font-size: 10px; font-weight: 500; color: var(--ink); }
.pt-alma-tasks small { font-size: 8px; color: var(--ink-muted); }

.pt-alma-result {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: 10px;
  background: #fff;
}

.pt-alma-result p {
  margin: 9px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink);
}

.pt-alma-result small {
  display: block;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(17, 13, 23, 0.07);
  font-size: 8px;
  color: var(--ink-muted);
}

.pt-alma-chat {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.pt-alma-chat p {
  max-width: 82%;
  margin: 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid rgba(17, 13, 23, 0.08);
  font-size: 9px;
  line-height: 1.45;
  color: var(--ink);
}

.pt-alma-chat p.is-me {
  justify-self: end;
  border-color: rgba(48, 27, 235, 0.1);
  background: rgba(48, 27, 235, 0.06);
}

.pt-alma-chat p span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.pt-alma-journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.pt-alma-journey li {
  position: relative;
  min-width: 0;
  padding: 14px 8px 0 0;
  border-top: 1px solid rgba(17, 13, 23, 0.16);
}

.pt-alma-journey li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbfaf7;
  box-shadow: inset 0 0 0 2px rgba(17, 13, 23, 0.2);
}

.pt-alma-journey li.is-done::before { background: var(--blue); box-shadow: none; }
.pt-alma-journey li.is-current::before { box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 4px rgba(48, 27, 235, 0.08); }
.pt-alma-journey span,
.pt-alma-journey small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-alma-journey span { font-size: 9px; font-weight: 500; color: var(--ink); }
.pt-alma-journey small { margin-top: 5px; font-size: 7px; color: var(--ink-muted); }

.pt-alma-ai--follow { margin-top: 18px; }

.pt-alma-files-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 13, 23, 0.08);
}

.pt-alma-files-row span { font-size: 8px; color: var(--ink-muted); }
.pt-alma-files-row b { margin-left: 4px; font-family: var(--font-mono); font-size: 7px; font-weight: 500; color: var(--blue); }

.pt-doctor {
  margin-top: 12px;
  background: var(--paper-card);
  border-radius: var(--radius-lg);
}

.pt-doctor summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px clamp(20px, 2.6vw, 32px);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.pt-doctor summary::-webkit-details-marker { display: none; }

.pt-doctor summary::after {
  content: "+";
  font-size: 20px;
  color: var(--ink-muted);
  transition: transform var(--duration-micro) var(--ease-out);
}

.pt-doctor[open] summary::after { transform: rotate(45deg); }
.pt-doctor summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--radius-lg); }

.pt-doctor-body { padding: 0 clamp(20px, 2.6vw, 32px) clamp(24px, 2.6vw, 32px); }
.pt-doctor-body dl { margin: 0 0 20px; }

.pt-doctor-body dl > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 4px 20px;
  padding: 12px 0;
  border-top: 1px solid rgba(17, 13, 23, 0.1);
  font-size: 14.5px;
  line-height: 1.5;
}

.pt-doctor-body dt { font-weight: 500; color: var(--ink); }
.pt-doctor-body dd { margin: 0; color: var(--ink-muted); }

.pt-faq .bb-faq-list summary { font-size: 18px; }
.pt-faq .bb-faq-list details p { font-size: 16.5px; }

@media (max-width: 1000px) {
  .pt-step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .pt-hero-grid,
  .pt-receive-grid { grid-template-columns: minmax(0, 1fr); }
  .pt-care { max-width: 480px; width: 100%; }
  .pt-moment-list { grid-template-columns: minmax(0, 1fr); }
  .pt-roles { grid-template-columns: minmax(0, 1fr); }
  .pt-role,
  .pt-role:first-child,
  .pt-role:last-child { border: 1px solid var(--line); border-radius: var(--radius-lg); }
  .pt-role--shared { margin-block: 12px; border-color: var(--ink); }
  .pt-alma-body { grid-template-columns: minmax(0, 1fr); }
  .pt-alma-nav { display: none; }
}

@media (max-width: 560px) {
  .pt-step-list,
  .pt-receive-list { grid-template-columns: minmax(0, 1fr); }
  .pt-doctor-body dl > div { grid-template-columns: minmax(0, 1fr); }
  .pt-alma-stage { padding: 10px; }
  .pt-alma-bar { padding-inline: 12px; }
  .pt-alma-bar > span:nth-child(2) { display: none; }
  .pt-alma-main { padding: 18px 14px; }
  .pt-alma-heading { align-items: flex-start; }
  .pt-alma-heading b { display: none; }
  .pt-alma-companion { align-items: flex-end; }
  .pt-alma-companion > b { display: none; }
  .pt-alma-workspace { padding: 14px 12px; }
  .pt-alma-screen-head > b { display: none; }
  .pt-alma-tasks small { display: none; }
  .pt-alma-files-row { display: none; }
  .pt-alma-cards,
  .pt-alma-lower { grid-template-columns: minmax(0, 1fr); }
}

/* ── Tesis ── */

.ts-hero {
  min-height: calc(100svh - 120px);
  padding-bottom: clamp(80px, 10vw, 160px);
}

.ts-hero h1 { max-width: var(--measure-head); }

.ts-body {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.2vw, 28px);
  max-width: var(--measure-text);
  margin-top: clamp(28px, 3.6vw, 44px);
}

.ts-body p {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.ts-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 56px;
  margin: clamp(36px, 4.5vw, 56px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  min-width: min(100%, 420px);
}

.ts-meta dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.ts-meta dd { margin: 6px 0 0; font-size: 16px; color: var(--ink); }

.ts-back { margin-top: 32px; }

/* ── Investigadores: the Pacientes/Médicos treatment. One tissue core in the hero,
   one figure for the programs: the specimen at "Hoy", the cohort behind it, the experiment ahead. ── */

.rs-nobr { white-space: nowrap; }

.rs-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px clamp(16px, 2vw, 28px);
  width: 100%;
  margin: clamp(36px, 4vw, 56px) 0 0;
}

.rs-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding-top: 14px; border-top: 1px solid var(--ink); }

.rs-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.rs-stats dt { font-size: 13.5px; line-height: 1.4; color: var(--ink-muted); }

.rs-scope {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: clamp(28px, 4.4vw, 64px);
}

.rs-scope .bb-scope-field { width: 100%; }

.rs-layers { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.rs-layers dt span { margin-right: 10px; font-weight: 400; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

.rs-cosmo-stage { padding: clamp(14px, 3vw, 40px); }

.rs-cosmo-tour { margin-top: clamp(34px, 4vw, 56px); }
.rs-cosmo-tour .md-product-panel { align-items: stretch; }
.rs-cosmo-tour .md-product-copy { align-self: center; }
.rs-cosmo-tour .md-product-visual { aspect-ratio: 16 / 10; }
.rs-cosmo-tour .rs-cosmo-ui { width: 100%; height: 100%; min-height: 0; }
.rs-cosmo-tour + .md-cap { width: 74.5%; margin: 14px 0 0 auto; }
.rs-cosmo-tour + .md-cap + .pt-note { margin-top: 12px; }

/* COSMO product surfaces */

.rs-app-body {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  background: #fbfaf7;
}

.rs-app-filter {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 22px 14px;
  border-right: 1px solid rgba(17, 13, 23, 0.09);
  background: #f5f2ed;
}

.rs-app-filter strong {
  margin: 0 8px 10px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}

.rs-app-filter span {
  padding: 8px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 500;
  color: var(--ink-muted);
}

.rs-app-filter span.is-on {
  background: #fff;
  box-shadow: 0 1px 4px rgba(17, 13, 23, 0.07);
  color: var(--blue);
}

.rs-app-filter small {
  margin: auto 8px 0;
  font-size: 8px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.rs-catalog-main,
.rs-work-main,
.rs-order-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: clamp(18px, 2.4vw, 30px);
}

.rs-app-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.rs-app-title span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.rs-app-title strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.rs-app-title > b {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(48, 27, 235, 0.08);
  font-size: 9px;
  font-weight: 500;
  color: var(--blue);
}

.rs-dataset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.rs-dataset-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: 11px;
  background: #fff;
}

.rs-dataset-card.is-featured { border-color: rgba(48, 27, 235, 0.24); box-shadow: inset 0 2px 0 var(--blue); }

.rs-dataset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 8px;
}

.rs-dataset-head span { font-family: var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue); }
.rs-dataset-head em { overflow: hidden; font-style: normal; text-overflow: ellipsis; white-space: nowrap; color: #27734e; }

.rs-dataset-card h4 {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.rs-dataset-card > p {
  min-height: 3em;
  margin: 6px 0 0;
  font-size: 9px;
  line-height: 1.45;
  color: var(--ink-muted);
}

.rs-dataset-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 0;
  border-block: 1px solid rgba(17, 13, 23, 0.07);
}

.rs-dataset-card dl > div { min-width: 0; padding: 9px 3px; }
.rs-dataset-card dt { overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-muted); }
.rs-dataset-card dd { margin: 3px 0 0; font-family: var(--font-mono); font-size: 9px; color: var(--ink); }

.rs-dataset-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.rs-dataset-card li { padding: 3px 5px; border-radius: 4px; background: #f1efeb; font-size: 7px; color: var(--ink-muted); }

.rs-dataset-card footer {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 8px;
}

.rs-dataset-card footer span { color: var(--ink-muted); }
.rs-dataset-card footer b { color: var(--blue); font-weight: 500; }

.rs-work-grid,
.rs-order-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1.28fr);
  gap: 10px;
  flex: 1;
  min-height: 0;
  margin-top: 16px;
}

.rs-work-grid > section,
.rs-order-grid > section {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: 10px;
  background: #fff;
}

.rs-work-grid section > span,
.rs-order-grid section > span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.rs-work-cohort > strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}

.rs-work-cohort dl { margin: 12px 0 0; }
.rs-work-cohort dl > div,
.rs-order-status dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid rgba(17, 13, 23, 0.07); font-size: 8px; }
.rs-work-cohort dt,
.rs-order-status dt { color: var(--ink-muted); }
.rs-work-cohort dd,
.rs-order-status dd { margin: 0; color: var(--ink); text-align: right; }

.rs-work-code { background: #17151d !important; color: #efedf2; }
.rs-work-code > div { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 8px; }
.rs-work-code > div span { color: #efedf2; }
.rs-work-code > div em { font-style: normal; color: #9b96a4; }
.rs-work-code pre { margin: 15px 0 0; overflow: hidden; font: 9px/1.65 var(--font-mono); color: #b9afff; white-space: pre-wrap; }
.rs-work-code footer { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 8px; color: #9b96a4; }

.rs-work-result > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 8px; color: var(--ink-muted); }
.rs-work-result > div:first-child b { color: #27734e; font-weight: 500; }
.rs-work-bars { display: grid; gap: 10px; margin-top: 16px; }
.rs-work-bars i { position: relative; display: block; height: 7px; border-radius: 4px; background: #eeece7; font-style: normal; }
.rs-work-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--blue); }
.rs-work-bars span { position: absolute; z-index: 1; top: -2px; left: 7px; font-size: 7px; color: #fff; }
.rs-work-result footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 9px; border-top: 1px solid rgba(17, 13, 23, 0.07); font-size: 8px; color: var(--ink-muted); }
.rs-work-result footer strong { color: var(--ink); font-weight: 500; }

.rs-work-audit ul { margin: 8px 0 0; padding: 0; list-style: none; }
.rs-work-audit li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(17, 13, 23, 0.07); font-size: 8px; }
.rs-work-audit b { color: var(--ink); font-weight: 500; }
.rs-work-audit em { color: #27734e; font-style: normal; }

.rs-order-scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; grid-column: 1 / -1; }
.rs-order-scope > div { min-width: 0; padding-right: 8px; border-right: 1px solid rgba(17, 13, 23, 0.07); }
.rs-order-scope > div:last-child { border-right: 0; }
.rs-order-scope span,
.rs-order-scope strong,
.rs-order-scope small { display: block; }
.rs-order-scope span { font-size: 7px; color: var(--ink-muted); }
.rs-order-scope strong { margin-top: 5px; font-size: 11px; font-weight: 500; color: var(--ink); }
.rs-order-scope small { margin-top: 4px; font-size: 7px; line-height: 1.35; color: var(--ink-muted); }

.rs-order-status dl { margin: 9px 0 0; }
.rs-order-status > b { display: inline-block; margin-top: 10px; padding: 6px 8px; border-radius: 6px; background: var(--blue); font-size: 8px; font-weight: 500; color: #fff; }

.rs-order-track { grid-column: 2; grid-row: 2 / span 2; }
.rs-order-track ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 0; padding: 0; list-style: none; }
.rs-order-track li { position: relative; min-width: 0; padding: 14px 5px 0 0; border-top: 1px solid rgba(17, 13, 23, 0.14); }
.rs-order-track li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink-muted); }
.rs-order-track li.is-done::before { background: var(--ink); box-shadow: none; }
.rs-order-track li.is-current::before { background: var(--blue); box-shadow: 0 0 0 3px rgba(48, 27, 235, 0.1); }
.rs-order-track b,
.rs-order-track small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-order-track b { font-size: 8px; font-weight: 500; color: var(--ink); }
.rs-order-track small { margin-top: 3px; font-size: 7px; color: var(--ink-muted); }

.rs-order-delivery strong,
.rs-order-delivery small { display: block; }
.rs-order-delivery strong { margin-top: 7px; font-size: 10px; font-weight: 500; color: var(--ink); }
.rs-order-delivery small { margin-top: 4px; font-size: 7px; line-height: 1.4; color: var(--ink-muted); }

.rs-cosmo-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 2fr);
  flex: 1;
  min-height: 0;
}

.rs-cosmo-brief {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.8vw, 38px);
  border-right: 1px solid rgba(17, 13, 23, 0.09);
  background: #f5f2ed;
}

.rs-cosmo-k {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.rs-cosmo-brief h3 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: var(--weight-headline);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.rs-cosmo-brief dl { margin: clamp(24px, 3vw, 38px) 0 0; }

.rs-cosmo-brief dl > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(17, 13, 23, 0.09);
  font-size: 11px;
  line-height: 1.4;
}

.rs-cosmo-brief dt { color: var(--ink-muted); }
.rs-cosmo-brief dd { margin: 0; font-weight: 500; color: var(--ink); }

.rs-cosmo-agent {
  margin-top: auto;
  padding: 15px;
  border: 1px solid rgba(48, 27, 235, 0.12);
  border-radius: 10px;
  background: rgba(48, 27, 235, 0.06);
}

.rs-cosmo-agent span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
}

.rs-cosmo-agent p {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink);
}

.rs-cosmo-results {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2.6vw, 34px);
  background: #fbfaf7;
}

.rs-cosmo-results--full { flex: 1; }

.rs-cosmo-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
}

.rs-cosmo-toolbar > div:first-child span,
.rs-cosmo-next span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.rs-cosmo-toolbar > div:first-child strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.rs-cosmo-toolbar > b {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 7px;
  background: var(--blue);
  font-size: 9px;
  font-weight: 500;
  color: #fff;
}

.rs-cosmo-agent--inline { margin-top: 18px; }

.rs-cosmo-funnel {
  display: grid;
  gap: 13px;
  margin-top: 24px;
}

.rs-cosmo-funnel > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  font-size: 10px;
}

.rs-cosmo-funnel span { color: var(--ink-muted); }

.rs-cosmo-funnel i {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e5df;
}

.rs-cosmo-funnel i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #7768ff);
}

.rs-cosmo-funnel strong { text-align: right; font-weight: 500; color: var(--ink); }

.rs-cosmo-split {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 13, 23, 0.08);
  font-size: 10px;
}

.rs-cosmo-split span,
.rs-cosmo-split em {
  padding: 7px 9px;
  border-radius: 7px;
  background: #fff;
  color: var(--ink-muted);
  font-style: normal;
}

.rs-cosmo-split b { margin-left: 5px; color: var(--ink); }
.rs-cosmo-split em { background: rgba(48, 27, 235, 0.07); color: var(--blue); }

.rs-cosmo-workspace {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(0, 2fr);
  flex: 1;
  min-height: 0;
  background: #fbfaf7;
}

.rs-cosmo-side {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 14px;
  border-right: 1px solid rgba(17, 13, 23, 0.09);
  background: #f5f2ed;
}

.rs-cosmo-side span {
  margin: 0 8px 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.rs-cosmo-side b {
  padding: 8px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 500;
  color: var(--ink-muted);
}

.rs-cosmo-side b.is-on { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(17, 13, 23, 0.07); }
.rs-cosmo-side small { margin: auto 8px 0; font-size: 8px; color: var(--ink-muted); }

.rs-cosmo-analysis {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(18px, 2.2vw, 28px);
}

.rs-cosmo-chart {
  position: relative;
  min-height: 0;
  margin-top: 14px;
  padding: 8px 8px 22px 30px;
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: 9px;
  background: #fff;
}

.rs-cosmo-chart svg { display: block; width: 100%; height: auto; max-height: 150px; }
.rs-chart-grid path { fill: none; stroke: rgba(17, 13, 23, 0.09); stroke-width: 1; }
.rs-chart-points circle { fill: rgba(48, 27, 235, 0.34); }
.rs-chart-points--b circle { fill: rgba(255, 112, 92, 0.52); }
.rs-chart-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }

.rs-cosmo-chart-y {
  position: absolute;
  inset: 12px auto 27px 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 7px;
  color: var(--ink-muted);
}

.rs-cosmo-chart-x {
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
  font-size: 8px;
  color: var(--ink-muted);
}

.rs-cosmo-analysis-foot {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 9px;
  color: var(--ink-muted);
}

.rs-cosmo-analysis-foot span { padding: 6px 8px; border-radius: 6px; background: #f1efeb; }
.rs-cosmo-analysis-foot b { margin-left: 4px; color: var(--ink); }

.rs-cosmo-validation {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  margin-top: 14px;
}

.rs-cosmo-roc,
.rs-cosmo-subgroups {
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.rs-cosmo-roc { padding: 12px; }
.rs-cosmo-roc > span { font-size: 8px; color: var(--ink-muted); }
.rs-cosmo-roc svg { display: block; width: 100%; height: auto; margin-top: 4px; }
.rs-roc-base { fill: none; stroke: rgba(17, 13, 23, 0.16); stroke-width: 1; stroke-dasharray: 3 3; }
.rs-roc-line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
.rs-cosmo-roc circle { fill: var(--coral); stroke: #fff; stroke-width: 2; }

.rs-cosmo-subgroups > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
  min-height: 31px;
  padding: 0 11px;
  border-top: 1px solid rgba(17, 13, 23, 0.07);
  font-size: 8px;
}

.rs-cosmo-subgroups > div:first-child {
  border-top: 0;
  background: #f7f5f1;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.rs-cosmo-subgroups strong { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.rs-cosmo-subgroups b { justify-self: end; color: var(--blue); }

.rs-cosmo-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: 8px;
  background: #f3f1ed;
}

.rs-cosmo-tabs span {
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 9px;
  color: var(--ink-muted);
}

.rs-cosmo-tabs .is-active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(17, 13, 23, 0.08);
  color: var(--blue);
}

.rs-cosmo-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.rs-cosmo-metrics > div {
  padding: 13px 14px;
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: 9px;
  background: #fff;
}

.rs-cosmo-metrics span {
  display: block;
  font-size: 9px;
  color: var(--ink-muted);
}

.rs-cosmo-metrics strong {
  display: block;
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

.rs-cosmo-table {
  margin-top: 14px;
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.rs-cosmo-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.5fr) minmax(90px, 1fr) minmax(86px, 0.8fr);
  gap: 14px;
  align-items: center;
  min-height: 45px;
  padding: 0 14px;
  font-size: 10px;
}

.rs-cosmo-row + .rs-cosmo-row { border-top: 1px solid rgba(17, 13, 23, 0.07); }
.rs-cosmo-row strong { font-weight: 500; color: var(--ink); }
.rs-cosmo-row span { color: var(--ink-muted); }

.rs-cosmo-row em {
  justify-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(57, 163, 109, 0.1);
  font-style: normal;
  color: #27734e;
}

.rs-cosmo-row em.is-next { background: rgba(48, 27, 235, 0.08); color: var(--blue); }

.rs-cosmo-row--head {
  min-height: 34px;
  background: #f7f5f1;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rs-cosmo-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding-top: 18px;
}

.rs-cosmo-next strong {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink);
}

.rs-cosmo-next b {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 7px;
  background: var(--blue);
  font-size: 9px;
  font-weight: 500;
  color: #fff;
}

.rs-time { padding-bottom: clamp(14px, 2.4vw, 32px); }

.rs-time-art {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  padding-bottom: 26px;
}

.rs-time-plate {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 150;
  image-rendering: pixelated;
}

.rs-time-now {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
}

.rs-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(32px, 3.6vw, 48px) 0 0;
  border-top: 1px solid var(--ink);
}

.rs-route-grid > div { padding: 20px clamp(18px, 2.4vw, 32px) 0 0; }
.rs-route-grid > div + div { padding-left: clamp(18px, 2.4vw, 32px); border-left: 1px solid var(--line); }

.rs-route-grid dt {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
}

.rs-route-grid dt span {
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blue);
}

.rs-route-grid dd {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}

.rs-legs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 3vw, 48px);
  margin-top: clamp(32px, 3.6vw, 48px);
}

.rs-leg-art {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0 0 14px;
  padding: clamp(10px, 1.5vw, 18px);
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(70% 80% at 8% 10%, rgba(48, 27, 235, 0.12), transparent 72%),
    radial-gradient(65% 70% at 95% 92%, rgba(255, 112, 92, 0.24), transparent 72%),
    var(--pt-warm);
}

.rs-leg:nth-child(2) .rs-leg-art {
  background:
    radial-gradient(65% 80% at 90% 8%, rgba(255, 186, 140, 0.52), transparent 72%),
    radial-gradient(60% 70% at 5% 94%, rgba(48, 27, 235, 0.1), transparent 72%),
    var(--pt-warm);
}

.rs-leg:nth-child(3) .rs-leg-art {
  background:
    radial-gradient(65% 80% at 12% 10%, rgba(255, 112, 92, 0.28), transparent 72%),
    radial-gradient(60% 70% at 95% 92%, rgba(48, 27, 235, 0.14), transparent 72%),
    var(--pt-warm);
}

.rs-leg-plate {
  display: block;
  width: min(100%, 240px);
  height: auto;
  image-rendering: pixelated;
}

.rs-leg {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.rs-leg + .rs-leg { border-top-color: var(--blue); }
.rs-leg:first-child .md-mod-label::before { background: var(--ink); }

.rs-leg h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: var(--weight-headline);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.rs-leg > p:not(.md-mod-label):not(.rs-out) { max-width: var(--measure-text); font-size: 16px; line-height: 1.55; color: var(--ink-muted); }

.rs-uses {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 15px;
  color: var(--ink);
}

.rs-uses li { white-space: nowrap; }
.rs-uses li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--ink-muted); }
ol.rs-uses li:not(:last-child)::after { content: "→"; }

.rs-out {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.rs-out span { font-size: 14px; font-weight: 500; color: var(--ink-muted); }

@media (max-width: 960px) {
  .rs-layers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-legs { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .rs-scope { max-width: 480px; width: 100%; }
  .pt-alma-tour + .md-cap,
  .rs-cosmo-tour + .md-cap { width: 100%; }
}

@media (max-width: 640px) {
  .rs-time-plate { image-rendering: auto; }
  .rs-route-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-route-grid > div,
  .rs-route-grid > div + div { padding: 18px 0; border-left: 0; }
  .rs-route-grid > div + div { border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .rs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .rs-layers { grid-template-columns: minmax(0, 1fr); }
  .rs-cosmo-tour .md-product-visual { aspect-ratio: 3 / 5; padding: 8px; }
  .rs-cosmo-body { grid-template-columns: minmax(0, 1fr); }
  .rs-cosmo-brief { padding: 18px 14px; border-right: 0; border-bottom: 1px solid rgba(17, 13, 23, 0.09); }
  .rs-cosmo-brief dl { display: none; }
  .rs-cosmo-agent { margin-top: 18px; }
  .rs-cosmo-workspace { grid-template-columns: minmax(0, 1fr); }
  .rs-cosmo-side { display: none; }
  .rs-cosmo-analysis { padding: 16px 12px; }
  .rs-cosmo-validation { grid-template-columns: minmax(0, 1fr); }
  .rs-cosmo-roc { display: none; }
  .rs-cosmo-stage { padding: 10px; }
  .rs-cosmo-ui .md-concept-head > span:nth-child(2),
  .rs-cosmo-tabs { display: none; }
  .rs-cosmo-results { padding: 18px 14px; }
  .rs-cosmo-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-cosmo-metrics > div:last-child { grid-column: 1 / -1; }
  .rs-cosmo-row { grid-template-columns: minmax(0, 1.4fr) minmax(76px, 0.8fr); }
  .rs-cosmo-row > :nth-child(2) { display: none; }
  .rs-cosmo-next { align-items: flex-end; }
  .rs-page .rs-cosmo-metrics { margin-top: 14px; }
  .rs-page .rs-cosmo-table { margin-top: 10px; }
  .rs-page .rs-cosmo-next { padding-top: 10px; }
  .rs-cosmo-tour .md-product-tabs button { align-items: flex-start; gap: 5px; padding-inline: 3px; font-size: 12px; line-height: 1.25; }
  .rs-cosmo-tour .md-product-tabs button span { padding-top: 2px; font-size: 9px; }
  .rs-app-body { grid-template-columns: minmax(0, 1fr); }
  .rs-app-filter { display: none; }
  .rs-catalog-main,
  .rs-work-main,
  .rs-order-main { padding: 14px 12px; }
  .rs-app-title strong { font-size: 14px; }
  .rs-dataset-grid { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
  .rs-dataset-card:nth-child(n + 2) { display: none; }
  .rs-dataset-card > p { min-height: 0; }
  .rs-work-grid,
  .rs-order-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
  .rs-work-cohort,
  .rs-work-audit { display: none; }
  .rs-work-code pre { margin-top: 10px; font-size: 8px; }
  .rs-order-scope { grid-template-columns: minmax(0, 1fr); gap: 7px; grid-column: auto; }
  .rs-order-scope > div { padding: 0 0 7px; border-right: 0; border-bottom: 1px solid rgba(17, 13, 23, 0.07); }
  .rs-order-scope > div:last-child { padding-bottom: 0; border-bottom: 0; }
  .rs-order-status { display: none; }
  .rs-order-track { grid-column: auto; grid-row: auto; }
  .rs-order-track ol { margin-top: 14px; }
}


/* ── Product tour stage: copy above, a full-width screen in a glass frame ── */

.md-product-tour { position: relative; }

.md-product-panel {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 3vw, 40px);
}

.md-product-tour .md-product-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 72px);
  align-items: end;
  align-self: auto;
}

.md-product-tour .md-product-copy h3 { max-width: var(--measure-head); }
.md-product-tour .md-product-copy p { max-width: var(--measure-text); margin: 0; }

.md-product-tour .md-product-visual:has(> .ux) {
  position: relative;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  isolation: isolate;
  overflow: visible;
  aspect-ratio: 2 / 1;
  padding: clamp(10px, 1.1vw, 14px);
  border: 1px solid transparent;
  border-radius: clamp(20px, 2vw, 28px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34)) padding-box,
    linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35) 34%, rgba(48, 27, 235, 0.22) 72%, rgba(255, 112, 92, 0.32)) border-box;
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(44, 39, 31, 0.05),
    0 30px 80px -48px rgba(44, 39, 31, 0.42);
}

.md-product-tour .md-product-visual:has(> .ux)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4% -5% -8%;
  border-radius: 50%;
  background:
    radial-gradient(42% 58% at 84% 22%, rgba(255, 112, 92, 0.34), transparent 70%),
    radial-gradient(46% 60% at 14% 82%, rgba(48, 27, 235, 0.24), transparent 72%),
    radial-gradient(40% 50% at 50% 50%, rgba(255, 196, 160, 0.16), transparent 70%);
  filter: blur(36px);
  pointer-events: none;
}

.md-product-tour .md-product-visual > .ux {
  border-radius: clamp(12px, 1.2vw, 16px);
  box-shadow:
    0 0 0 1px rgba(44, 39, 31, 0.1),
    0 1px 2px rgba(44, 39, 31, 0.05),
    0 12px 28px -18px rgba(44, 39, 31, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .md-product-visual:hover > .ux {
    box-shadow:
      0 0 0 1px rgba(44, 39, 31, 0.12),
      0 1px 2px rgba(44, 39, 31, 0.05),
      0 16px 34px -18px rgba(44, 39, 31, 0.34);
  }
}

@media (max-width: 860px) {
  .md-product-tour .md-product-copy { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 720px) {
  .md-product-tour .md-product-visual:has(> .ux) { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .md-product-tour .md-product-visual:has(> .ux) { aspect-ratio: 1 / 1.08; padding: 8px; border-radius: 18px; }
  .md-product-tour .md-product-visual > .ux { border-radius: 11px; }
}


/* ── Evidence stage: one composed proof per page (Médicos, Investigadores).
   Each stage tells its story once, when it is mostly in view (.is-playing). ── */

.ev-stage {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: clamp(20px, 3.4vw, 48px);
  border: 1px solid transparent;
  border-radius: clamp(20px, 2vw, 28px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34)) padding-box,
    linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35) 34%, rgba(48, 27, 235, 0.22) 72%, rgba(255, 112, 92, 0.32)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 30px 80px -48px rgba(44, 39, 31, 0.42);
}

.ev-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6% -4% -6%;
  border-radius: 50%;
  background:
    radial-gradient(40% 56% at 82% 30%, rgba(255, 112, 92, 0.26), transparent 70%),
    radial-gradient(44% 58% at 14% 78%, rgba(48, 27, 235, 0.18), transparent 72%);
  filter: blur(40px);
  pointer-events: none;
}

.ev-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.ev-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* Médicos: Atla reads each source in turn and writes the cited recommendation */

.ev-trace {
  --ev-gap: clamp(32px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--ev-gap);
  align-items: center;
}

.ev-sources { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.ev-sources li {
  --t: calc(1.2s + var(--i, 0) * 0.85s);
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 1px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid oklch(0.893 0.005 85);
  border-radius: 12px;
  background: oklch(0.995 0.002 85);
  box-shadow: 0 1px 1px rgba(44, 39, 31, 0.03);
  transition: opacity 0.6s var(--ease-out) var(--d, 0s), transform 0.6s var(--ease-out) var(--d, 0s);
}

.ev-sources li::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: var(--ev-gap);
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(48, 27, 235, 0.32) 0 4px, transparent 4px 8px);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out) var(--dl, 0s);
}

/* The packet that carries a source into the card */
.ev-sources li::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 100%;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-radius: 50%;
  display: none;
}

.ev-sources b {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--blue) 10%, white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
}

.ev-sources span { font-size: 12.5px; color: var(--ink-muted); }
.ev-sources strong { font-size: 15px; font-weight: 500; color: var(--ink); }
.ev-sources .ev-meta { grid-column: 3; grid-row: 1 / span 2; }

.ev-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: 18px;
  background: oklch(0.995 0.002 85);
  box-shadow:
    0 0 0 1px rgba(44, 39, 31, 0.08),
    0 1px 2px rgba(44, 39, 31, 0.05),
    0 24px 48px -28px rgba(44, 39, 31, 0.32);
  transition: opacity 0.7s var(--ease-out) var(--d, 0s), transform 0.7s var(--ease-out) var(--d, 0s);
}

/* A sheen that passes over the card while Atla is reading */
.ev-card::after {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
}

.ev-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.ev-tag {
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--blue) 9%, white);
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  white-space: nowrap;
  transition:
    opacity 0.5s var(--ease-out) var(--t, 0s),
    transform 0.5s var(--ease-out) var(--t, 0s);
}

.ev-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition:
    opacity 0.9s var(--ease-out) 0.6s,
    filter 0.9s var(--ease-out) 0.6s,
    transform 0.9s var(--ease-out) 0.6s;
}

.ev-claims { display: grid; margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid oklch(0.91 0.004 85); }

.ev-claims li {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid oklch(0.91 0.004 85);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.ev-claims li > span:first-child {
  transition:
    opacity 0.7s var(--ease-out) var(--t, 0s),
    filter 0.7s var(--ease-out) var(--t, 0s),
    transform 0.7s var(--ease-out) var(--t, 0s);
}

.ev-claims li::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -12px;
  display: none;
}

.ev-cite { display: flex; flex: 0 0 auto; gap: 4px; }

.ev-cite i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--blue) 10%, white);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-style: normal;
  color: var(--blue);
  transition:
    opacity 0.3s ease var(--t, 0s),
    transform 0.5s var(--ease-out) var(--t, 0s);
}

.ev-gap {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px dashed rgba(181, 67, 46, 0.35);
  border-radius: 10px;
  background: rgba(255, 112, 92, 0.08);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  transition:
    opacity 0.6s var(--ease-out) var(--t, 0s),
    transform 0.6s var(--ease-out) var(--t, 0s),
    filter 0.6s var(--ease-out) var(--t, 0s);
}

.ev-gap .ev-k { display: flex; align-items: center; gap: 7px; color: #b5432e; }

.ev-gap .ev-k::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e0623f;
}

.ev-card-foot,
.ev-stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

.ev-card-foot { margin-top: 18px; }

.ev-stage-foot {
  margin-top: clamp(20px, 2.4vw, 28px);
  padding-top: 14px;
  border-top: 1px solid rgba(44, 39, 31, 0.08);
}

.ev-state { display: grid; justify-items: end; }
.ev-state > * { grid-area: 1 / 1; }

.ev-status,
.ev-run { display: inline-flex; align-items: center; gap: 6px; }

.ev-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.ev-run { display: none; color: var(--blue); }

.ev-run::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1.5px solid rgba(48, 27, 235, 0.25);
  border-top-color: var(--blue);
  border-radius: 50%;
}

/* Named sources as a quiet wordmark row */

.ev-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px clamp(20px, 3vw, 40px);
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.ev-wall ul { display: flex; flex-wrap: wrap; gap: 10px clamp(18px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }

.ev-wall li {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  transition: opacity 0.6s var(--ease-out) var(--d, 0s), transform 0.6s var(--ease-out) var(--d, 0s), filter 0.6s var(--ease-out) var(--d, 0s);
}

/* Short bento under the stage: a small diagram, label, one line, a mono spec */

.ev-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(28px, 3vw, 40px) 0 0;
}

.ev-bento > div {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: clamp(14px, 1.6vw, 18px) clamp(14px, 1.6vw, 18px) clamp(18px, 2vw, 24px);
  border-radius: 18px;
  background: var(--paper-deep);
  transition: opacity 0.6s var(--ease-out) var(--d, 0s), transform 0.6s var(--ease-out) var(--d, 0s);
}

.ev-bento h3 { margin: 8px 6px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.ev-bento p { margin: 0 6px; font-size: 15.5px; line-height: 1.5; color: var(--ink-muted); }
.ev-bento .ev-spec { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--ink); }

.ev-viz {
  --p: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 0 16px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(44, 39, 31, 0.05);
}

.ev-viz-tiles > div {
  position: relative;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 3px;
  width: 100%;
  max-width: 260px;
}

.ev-viz-tiles i {
  --a: clamp(0, calc((var(--p) - var(--k, 0) * 0.45) * 5), 1);
  --h: clamp(0, calc((var(--p) - 0.62) * 3), 1);
  aspect-ratio: 1;
  border-radius: 2px;
  opacity: var(--a);
  transform: scale(calc(0.6 + 0.4 * var(--a)));
  background: color-mix(in oklch, var(--blue) 7%, white);
}

.ev-viz-tiles i:nth-child(3n) { background: color-mix(in oklch, var(--blue) 18%, white); }
.ev-viz-tiles i:nth-child(5n + 2) { background: color-mix(in oklch, var(--blue) 34%, white); }
.ev-viz-tiles i:nth-child(7n + 4) { background: color-mix(in oklch, var(--blue) 58%, white); }
.ev-viz-tiles i:nth-child(11n + 6) { background: color-mix(in oklch, var(--blue) 82%, white); }
.ev-viz-tiles i:nth-child(13n + 9) { background: rgba(255, 112, 92, 0.55); }

/* The regions the model finds strengthen last */
.ev-viz-tiles i:nth-child(7n + 4),
.ev-viz-tiles i:nth-child(11n + 6),
.ev-viz-tiles i:nth-child(13n + 9) { opacity: calc(var(--a) * (0.3 + 0.7 * var(--h))); }

.ev-viz-tiles > div::after {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  display: none;
}

.ev-viz-flow span,
.ev-viz-flow b {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.ev-viz-flow span { background: #fff; box-shadow: 0 0 0 1px rgba(44, 39, 31, 0.1); color: var(--ink); }
.ev-viz-flow b { background: var(--blue); color: #fff; box-shadow: 0 6px 14px -8px rgba(48, 27, 235, 0.7); }

.ev-viz-flow i {
  position: relative;
  flex: 1 1 auto;
  min-width: 18px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(48, 27, 235, 0.35) 0 3px, transparent 3px 6px);
}

.ev-viz-flow i::before,
.ev-viz-flow i::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

/* Data crosses each line in turn, and the line it has crossed stays drawn */
.ev-viz-flow i { --q: clamp(0, calc((var(--p) - 0.2) * 2.6), 1); }
.ev-viz-flow i:last-of-type { --q: clamp(0, calc((var(--p) - 0.58) * 2.6), 1); }

.ev-viz-flow i::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -2px;
  left: calc(var(--q) * (100% - 5px));
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  opacity: min(1, calc(var(--q) * 10), calc((1 - var(--q)) * 10));
}

.ev-viz-flow i:last-of-type::before { left: calc((1 - var(--q)) * (100% - 5px)); background: #e0623f; }

.ev-viz-flow i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(48, 27, 235, 0.55);
  transform: scaleX(var(--q));
  transform-origin: left;
}

.ev-viz-flow i:last-of-type::after { background: rgba(224, 98, 63, 0.55); transform-origin: right; }

.ev-viz-net > div {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 16px 12px 10px;
  border: 1px dashed rgba(48, 27, 235, 0.4);
  border-radius: 12px;
}

.ev-viz-net .ev-k {
  position: absolute;
  top: -7px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 5px;
  background: oklch(0.985 0.004 85);
  font-size: 9.5px;
  line-height: 1.3;
  color: var(--blue);
}

.ev-viz-net .ev-k svg { width: 9px; height: 9px; }

.ev-viz-net span:not(.ev-k) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(44, 39, 31, 0.1);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink);
}

/* Each source lights as it is secured inside the network */
.ev-viz-net span:not(.ev-k) { --l: clamp(0, calc((var(--p) - 0.4) * 8), 1); }
.ev-viz-net span:nth-of-type(3) { --l: clamp(0, calc((var(--p) - 0.58) * 8), 1); }
.ev-viz-net span:nth-of-type(4) { --l: clamp(0, calc((var(--p) - 0.76) * 8), 1); }

.ev-viz-net span:not(.ev-k)::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  opacity: calc(0.22 + 0.78 * var(--l));
}


/* Investigadores: one case played across time, lane by lane, then into a cohort */

.ev-case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: clamp(24px, 2.6vw, 36px);
}

.ev-case-head strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ev-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  background: oklch(0.995 0.002 85);
  box-shadow: 0 0 0 1px rgba(44, 39, 31, 0.08), 0 4px 10px -8px rgba(44, 39, 31, 0.3);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
}

.ev-chip svg { width: 14px; height: 14px; color: var(--blue); }

.ev-journey {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.75fr);
  gap: 12px;
  align-items: stretch;
}

/* The chart: one row per evidence layer on a shared clock.
   Event delays follow their position, so they land as the playhead passes. */
.ev-lanes {
  --lab: 104px;
  --play-start: 0.6s;
  --play-dur: 4.4s;
  position: relative;
  padding: 34px 18px 12px;
  border-radius: 16px;
  background: oklch(0.995 0.002 85);
  box-shadow:
    0 0 0 1px rgba(44, 39, 31, 0.08),
    0 24px 48px -30px rgba(44, 39, 31, 0.32);
}

.ev-lane {
  position: relative;
  display: grid;
  grid-template-columns: var(--lab) minmax(0, 1fr);
  align-items: center;
  height: 48px;
  border-bottom: 1px solid oklch(0.94 0.004 85);
  transition: opacity 0.6s var(--ease-out) var(--d, 0s), transform 0.6s var(--ease-out) var(--d, 0s);
}

.ev-lane-tall { height: 76px; }

.ev-lane > .ev-k { font-size: 10.5px; }

.ev-lane-track { position: relative; height: 100%; }

.ev-ev {
  --at: calc(var(--play-start) + var(--x) * var(--play-dur) / 100);
  position: absolute;
  top: 50%;
  left: calc(var(--x) * 1%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  translate: 0 -50%;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  transition:
    opacity 0.5s var(--ease-out) var(--at),
    filter 0.5s var(--ease-out) var(--at),
    transform 0.6s var(--ease-out) var(--at);
}

.ev-ev::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--blue) 14%, transparent);
}

.ev-ev > span {
  padding: 4px 7px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(44, 39, 31, 0.1), 0 4px 10px -8px rgba(44, 39, 31, 0.4);
}

.ev-ev-slide img {
  display: block;
  width: 44px;
  height: 28px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(44, 39, 31, 0.12), 0 6px 14px -8px rgba(44, 39, 31, 0.5);
}

.ev-ev-end { top: calc(10px + (100% - 20px) * 0.72); translate: -50% -50%; }
.ev-ev-end::before { margin: 0; background: #e0623f; box-shadow: 0 0 0 3px rgba(224, 98, 63, 0.16); }
.ev-ev-end > span { position: absolute; right: -4px; bottom: calc(100% + 8px); }

/* Six treatment cycles, each landing as the playhead crosses it */
.ev-cycle {
  --at: calc(var(--play-start) + var(--x) * var(--play-dur) / 100);
  position: absolute;
  top: 50%;
  left: calc(var(--x) * 1%);
  width: 3.4%;
  height: 14px;
  margin-top: -7px;
  border-radius: 4px;
  background: linear-gradient(180deg, color-mix(in oklch, var(--blue) 80%, white), var(--blue));
  transform-origin: bottom;
  transition: opacity 0.3s ease var(--at), transform 0.5s var(--ease-out) var(--at);
}

.ev-cycle-label {
  position: absolute;
  top: 50%;
  left: 70%;
  translate: 0 -50%;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  transition: opacity 0.5s ease calc(var(--play-start) + 66 * var(--play-dur) / 100);
}

/* Tumor burden, drawn in time with the playhead */
.ev-burden {
  position: absolute;
  inset: 10px 0 10px 0;
  width: 100%;
  height: calc(100% - 20px);
  overflow: visible;
}

.ev-burden path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.ev-burden .ev-burden-fill { fill: url(#ev-burden-grad); stroke: none; }

.ev-axis {
  position: relative;
  height: 26px;
  margin-left: var(--lab);
}

.ev-axis span {
  position: absolute;
  top: 10px;
  left: calc(var(--x) * 1%);
  translate: -50% 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.ev-axis span::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 1px;
  height: 5px;
  background: rgba(44, 39, 31, 0.2);
}

.ev-playhead {
  display: none;
  position: absolute;
  top: 34px;
  bottom: 38px;
  left: calc(18px + var(--lab));
  right: 18px;
  pointer-events: none;
}

.ev-playhead i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--blue);
  opacity: 0;
}

.ev-playhead i::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 56px;
  background: linear-gradient(90deg, transparent, rgba(48, 27, 235, 0.08));
}

.ev-playhead i::after {
  content: "C-0412";
  position: absolute;
  top: -8px;
  left: 50%;
  translate: -50% -100%;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--blue);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #fff;
  white-space: nowrap;
}

/* The narrative beside the chart, one line per layer */
.ev-steps {
  display: grid;
  align-content: space-between;
  gap: 6px;
  margin: 0;
  padding: 14px;
  list-style: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(44, 39, 31, 0.06);
}

.ev-steps li {
  --at: calc(0.6s + var(--x) * 4.4s / 100);
  position: relative;
  display: grid;
  gap: 2px;
  padding: 8px 10px 8px 28px;
  border-radius: 10px;
  transition: opacity 0.5s ease var(--at);
}

.ev-steps li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.4 6.2 5.2 8l3.4-3.8' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform 0.5s var(--ease-out) var(--at), background-color 0.3s ease var(--at);
}

.ev-steps strong { font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.ev-steps small { font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); }

/* Final beat: the case joins its cohort */
.ev-cohort {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 24px;
  align-items: center;
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: oklch(0.995 0.002 85);
  box-shadow: 0 0 0 1px rgba(44, 39, 31, 0.08);
  transition: opacity 0.6s ease 4.8s, transform 0.6s var(--ease-out) 4.8s;
}

.ev-cohort-grid {
  display: grid;
  grid-template-columns: repeat(24, 9px);
  gap: 4px;
}

.ev-cohort-grid i {
  --at: calc(5.3s + var(--n) * 14ms);
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: color-mix(in oklch, var(--blue) 22%, white);
  transition: opacity 0.3s ease var(--at), transform 0.4s var(--ease-out) var(--at);
}

.ev-cohort-grid i.is-self {
  --at: 5.1s;
  background: var(--blue);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--blue);
}

.ev-cohort p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-muted);
  transition: opacity 0.6s ease 5.6s, filter 0.6s ease 5.6s, transform 0.6s var(--ease-out) 5.6s;
}

.ev-cohort p strong { font-weight: 500; color: var(--ink); }

/* Investigadores: one integrated, scroll-led six-layer biological record */

.arca-system {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.arca-system-head {
  margin-bottom: clamp(42px, 5vw, 72px);
}

.arca-system-head strong {
  display: block;
  max-width: var(--measure-sub);
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.7vw, 38px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.arca-system-body {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 0.92fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
  min-width: 0;
}

.arca-stack {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: clamp(380px, 34vw, 440px);
  justify-self: center;
}

.arca-plate {
  position: absolute;
  top: calc(var(--i) * clamp(57px, 4.8vw, 66px));
  left: calc(var(--i) * 1.4%);
  width: calc(100% - 7%);
  height: clamp(82px, 7.4vw, 98px);
  overflow: hidden;
  border: 1px solid rgba(44, 39, 31, 0.13);
  border-radius: 2px;
  background-color: #f1eee8;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 12px 24px -22px rgba(35, 30, 24, 0.35);
}

.arca-plate::before,
.arca-plate::after {
  content: "";
  position: absolute;
  inset: 0;
}

.arca-plate::before {
  opacity: 0.62;
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(44, 39, 31, 0.08) 34px 35px),
    repeating-linear-gradient(0deg, transparent 0 20px, rgba(44, 39, 31, 0.055) 20px 21px);
}

.arca-plate::after {
  left: 8%;
  right: auto;
  width: clamp(76px, 22%, 112px);
  border-left: 1px solid rgba(44, 39, 31, 0.2);
  border-right: 1px solid rgba(44, 39, 31, 0.08);
  background: rgba(255, 253, 249, 0.3);
}

.arca-plate:nth-child(2) { background-color: #ebe9e4; }
.arca-plate:nth-child(3) { background-color: #e5e8e3; }
.arca-plate:nth-child(4) { background-color: #e7e4e8; }
.arca-plate:nth-child(5) { background-color: #e8e5df; }
.arca-plate:nth-child(6) { background-color: #e2e5e3; }

.arca-plate:nth-child(2)::before { background-size: 52px 100%, 100% 16px; }
.arca-plate:nth-child(3)::before { background-size: 24px 100%, 100% 28px; }
.arca-plate:nth-child(4)::before { background-size: 68px 100%, 100% 14px; }
.arca-plate:nth-child(5)::before { background-size: 40px 100%, 100% 24px; }
.arca-plate:nth-child(6)::before { background-size: 30px 100%, 100% 18px; }

.arca-layer-list {
  align-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.arca-layer-list li {
  min-width: 0;
  padding: clamp(12px, 1.4vw, 17px) 0;
  border-top: 1px solid rgba(44, 39, 31, 0.12);
}

.arca-layer-list li:last-child {
  border-bottom: 1px solid rgba(44, 39, 31, 0.12);
}

.arca-layer-list li div {
  display: grid;
  gap: 4px;
}

.arca-layer-list strong {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.arca-layer-list small {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
}

@media (min-width: 781px) and (prefers-reduced-motion: no-preference) {
  .arca-motion .arca-scroll-track {
    min-height: 240vh;
  }

  .arca-motion .arca-system-body {
    position: sticky;
    top: clamp(92px, 11vh, 128px);
  }
}

@media (max-width: 780px) {
  .arca-system-body {
    display: block;
  }

  .arca-stack {
    position: sticky;
    z-index: 3;
    top: 76px;
    height: min(76vw, 312px);
    margin-inline: auto;
    background: var(--paper, #faf8f3);
  }

  .arca-layer-list {
    position: relative;
    z-index: 2;
    margin-top: 18px;
  }

  .arca-motion .arca-layer-list li {
    display: flex;
    align-items: center;
    min-height: 28svh;
    border-color: transparent;
  }

  .arca-motion .arca-layer-list li div {
    width: 100%;
    padding: 18px 0;
    border-block: 1px solid rgba(44, 39, 31, 0.12);
    background: #faf8f3;
  }
}

@media (max-width: 640px) {
  .arca-system {
    padding: 0;
  }

  .arca-system-head {
    margin-bottom: 34px;
  }

  .arca-system-head strong {
    font-size: 24px;
  }

  .arca-plate {
    top: calc(var(--i) * clamp(38px, 10vw, 44px));
    left: calc(var(--i) * 1.1%);
    width: calc(100% - 5.5%);
    height: clamp(58px, 16vw, 68px);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.8) inset,
      0 9px 20px -20px rgba(35, 30, 24, 0.35);
  }

  .arca-layer-list strong {
    font-size: 17px;
  }

  .arca-layer-list small {
    font-size: 12.5px;
  }
}

.arca-motion .arca-plate,
.arca-motion .arca-layer-list li {
  opacity: 0.62;
  transition:
    opacity 220ms ease-out,
    transform 220ms ease-out,
    border-color 220ms ease-out;
}

.arca-motion .arca-plate.is-revealed {
  opacity: 0.76;
}

.arca-motion .arca-layer-list li {
  opacity: 0.3;
}

.arca-motion .arca-layer-list li.is-revealed {
  opacity: 0.46;
}

.arca-motion .arca-plate.is-current,
.arca-motion .arca-layer-list li.is-current {
  opacity: 1;
}

.arca-motion .arca-plate.is-current {
  z-index: 2;
  border-color: rgba(48, 27, 235, 0.45);
  box-shadow:
    inset 3px 0 0 var(--blue),
    0 12px 26px -20px rgba(35, 30, 24, 0.38);
  transform: translateX(8px);
}

@media (prefers-reduced-motion: reduce) {
  .arca-stack {
    position: relative;
    top: auto;
  }

  .arca-plate,
  .arca-layer-list li {
    transition: none !important;
  }
}

/* Restored from the investor deck: the original six image layers and geometry. */
.arca-system-body {
  grid-template-columns: minmax(430px, 0.95fr) minmax(340px, 1fr);
  gap: 70px;
}

.arca-stack {
  position: relative;
  top: auto;
  width: 520px;
  max-width: 100%;
  height: 520px;
  margin-inline: auto;
  background: transparent;
}

.arca-plate {
  position: absolute;
  top: calc(var(--i) * 66px - 24px);
  left: 92px;
  z-index: calc(10 - var(--i));
  width: 270px;
  height: 270px;
  overflow: hidden;
  border: 2px solid rgba(255, 253, 249, 0.96);
  border-radius: 12px;
  background: #ece7df;
  box-shadow:
    0 0 0 1px rgba(23, 19, 29, 0.08),
    18px 18px 40px rgba(23, 19, 29, 0.12);
  opacity: 1;
  transform: scaleY(0.5) rotate(45deg);
}

.arca-plate::before,
.arca-plate::after {
  content: none;
}

.arca-plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arca-layer-list {
  position: static;
  z-index: auto;
  align-self: center;
  margin: 0;
}

.arca-motion .arca-plate,
.arca-motion .arca-plate.is-revealed,
.arca-motion .arca-plate.is-current {
  border-color: rgba(255, 253, 249, 0.96);
  box-shadow:
    0 0 0 1px rgba(23, 19, 29, 0.08),
    18px 18px 40px rgba(23, 19, 29, 0.12);
  opacity: 1;
  transform: scaleY(0.5) rotate(45deg);
}

@media (max-width: 960px) {
  .arca-system-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .arca-stack {
    width: 520px;
  }

  .arca-layer-list {
    width: min(100%, 620px);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .arca-stack {
    position: relative;
    top: auto;
    width: 100%;
    height: 350px;
    margin: 0 auto 48px;
    background: transparent;
  }

  .arca-plate {
    top: calc(var(--i) * 46px - 16px);
    left: calc(50% - 95px);
    width: 190px;
    height: 190px;
    border-width: 2px;
    border-radius: 9px;
    box-shadow:
      0 0 0 1px rgba(23, 19, 29, 0.08),
      12px 12px 28px rgba(23, 19, 29, 0.12);
  }
}

/* Entrance: the structure arrives with the reveal (.is-in) */

.md-motion .ev-sources li { --d: calc(0.25s + var(--i, 0) * 0.09s); --dl: calc(0.75s + var(--i, 0) * 0.09s); }
.md-motion .ev-card { --d: 0.35s; }
.md-motion .ev-wall li,
.md-motion .ev-bento > div { --d: calc(0.1s + var(--i, 0) * 0.07s); }
.md-motion .ev-lane { --d: calc(0.2s + var(--r, 0) * 0.08s); }

.md-motion .ev-stage:not(.is-in) .ev-sources li,
.md-motion .ev-stage:not(.is-in) .ev-lane,
.md-motion .ev-bento:not(.is-in) > div { opacity: 0; transform: translateY(10px); }

.md-motion .ev-wall:not(.is-in) li { opacity: 0; filter: blur(6px); transform: translateY(6px); }
.md-motion .ev-stage:not(.is-in) .ev-sources li::after { transform: scaleX(0); }
.md-motion .ev-stage:not(.is-in) .ev-card { opacity: 0; transform: translateY(16px) scale(0.985); }

/* Story: held until the stage is mostly in view (.is-playing), then timed by --t / --at */

.md-motion [data-story] .ev-card-foot .ev-run { display: inline-flex; transition: opacity 0.4s ease 5.3s; }
.md-motion [data-story] .ev-card-foot .ev-status { transition: opacity 0.4s ease 5.4s; }
.md-motion [data-story].is-playing .ev-card-foot .ev-run { opacity: 0; }
.md-motion [data-story]:not(.is-playing) .ev-card-foot .ev-status { opacity: 0; }

.md-motion [data-story]:not(.is-playing) .ev-title { opacity: 0; filter: blur(8px); transform: translateY(6px); }
.md-motion [data-story]:not(.is-playing) .ev-claims li > span:first-child { opacity: 0; filter: blur(6px); transform: translateY(4px); }
.md-motion [data-story]:not(.is-playing) .ev-cite i { opacity: 0; transform: scale(0.3); }
.md-motion [data-story]:not(.is-playing) .ev-tag { opacity: 0; transform: scale(0.8); }
.md-motion [data-story]:not(.is-playing) .ev-gap { opacity: 0; filter: blur(6px); transform: translateY(8px); }

.md-motion [data-story]:not(.is-playing) .ev-ev { opacity: 0; filter: blur(4px); transform: scale(0.85); }
.md-motion [data-story]:not(.is-playing) .ev-cycle { opacity: 0; transform: scaleY(0.2); }
.md-motion [data-story]:not(.is-playing) .ev-cycle-label { opacity: 0; }
.md-motion [data-story]:not(.is-playing) .ev-steps li { opacity: 0.38; }
.md-motion [data-story]:not(.is-playing) .ev-steps li::before { transform: scale(0.6); background-color: rgba(44, 39, 31, 0.18); }
.md-motion [data-story]:not(.is-playing) .ev-cohort-grid i { opacity: 0; transform: scale(0.2); }
.md-motion [data-story]:not(.is-playing) .ev-cohort p { opacity: 0; filter: blur(6px); transform: translateY(6px); }
.md-motion [data-story]:not(.is-playing) .ev-burden { clip-path: inset(0 66% 0 0); }
.md-motion [data-story]:not(.is-playing) .ev-cohort { opacity: 0; transform: translateY(8px); }

@media (prefers-reduced-motion: no-preference) {
  /* Médicos: each source is marked as it is read */
  .ev-stage.is-playing .ev-sources b { animation: ev-verified 0.5s ease var(--t) both; }
  .ev-run::before { animation: ev-spin 0.8s linear infinite; }

  /* Investigadores: the curve draws in */
  .ev-stage.is-playing .ev-burden { animation: ev-draw calc(var(--play-dur) * 0.6) linear calc(var(--play-start) + var(--play-dur) * 0.34) both; }
}

@keyframes ev-read {
  0%, 100% { border-color: oklch(0.893 0.005 85); box-shadow: 0 1px 1px rgba(44, 39, 31, 0.03); transform: none; }
  18%, 70% {
    border-color: color-mix(in oklch, var(--blue) 45%, white);
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--blue) 8%, transparent), 0 10px 22px -12px rgba(48, 27, 235, 0.45);
    transform: translateX(4px);
  }
}

@keyframes ev-packet {
  0% { opacity: 0; transform: translateX(0) scale(0.6); }
  15% { opacity: 1; transform: translateX(0) scale(1); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(var(--ev-gap) - 7px)) scale(0.8); }
}

@keyframes ev-wire {
  to { background: color-mix(in oklch, var(--blue) 45%, transparent); }
}

@keyframes ev-verified {
  to { background: var(--blue); color: #fff; }
}

@keyframes ev-edge {
  0% { transform: scaleY(0); }
  25%, 70% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

@keyframes ev-sheen {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes ev-spin { to { transform: rotate(360deg); } }

@keyframes ev-play {
  0% { left: 0; opacity: 0; }
  4% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes ev-draw {
  from { clip-path: inset(0 66% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes ev-current {
  0% { background-color: transparent; }
  20%, 70% { background-color: color-mix(in oklch, var(--blue) 7%, white); }
  100% { background-color: transparent; }
}

@keyframes ev-scan {
  0% { left: 0; opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@media (max-width: 960px) {
  .ev-bento { grid-template-columns: minmax(0, 1fr); }
  .ev-bento > div { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 18px; }
  .ev-viz { grid-row: 1 / span 3; height: 100%; min-height: 96px; }
  .ev-journey { grid-template-columns: minmax(0, 1fr); }
  .ev-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 10px; }
  .ev-steps li { padding: 30px 8px 8px; }
  .ev-steps li::before { top: 10px; left: 8px; }
  .ev-steps small { display: none; }
}

@media (max-width: 860px) {
  .ev-trace { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ev-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-sources li::after,
  .ev-sources li::before { display: none; }
  .ev-cohort { grid-template-columns: minmax(0, 1fr); }
  .ev-cohort-grid { grid-template-columns: repeat(16, 9px); }
  .ev-cohort-grid i:nth-child(n + 49) { display: none; }
}

@media (max-width: 640px) {
  .ev-bento > div { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; }
  .ev-viz { grid-row: auto; height: 96px; }
  .ev-lanes { --lab: 0px; padding: 12px; }
  .ev-lane { grid-template-columns: minmax(0, 1fr); height: auto; padding: 22px 0 8px; }
  .ev-lane > .ev-k { position: absolute; top: 6px; left: 0; font-size: 9.5px; }
  .ev-lane-track { height: 34px; }
  .ev-lane-tall .ev-lane-track { height: 58px; }
  .ev-cycle-label { top: -15px; right: 0; left: auto; translate: none; font-size: 9.5px; }
  .ev-playhead { top: 34px; bottom: 34px; left: 12px; right: 12px; }
  .ev-steps { grid-template-columns: minmax(0, 1fr); }
  .ev-steps li { padding: 8px 10px 8px 28px; }
  .ev-steps li::before { top: 11px; left: 8px; }
}

@media (max-width: 560px) {
  .ev-sources { grid-template-columns: minmax(0, 1fr); }
  .ev-claims li { font-size: 14px; }
}

/* ux:start */
/* ── Product vignettes: one distilled moment per panel.
   A calm warm canvas, one focal fragment, context ghosted or cropped away, and royal blue
   as the single accent. Laid out at a fixed design width (1040, 880, 640, 400) and zoomed
   to the frame by medicos.js, so type and hairlines stay crisp at every size. ── */

.md-product-tour .md-product-visual:has(> .vg) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.45)) padding-box,
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.5) 45%, rgba(44, 39, 31, 0.1)) border-box;
}
.md-product-tour .md-product-visual:has(> .vg)::before { opacity: 0.45; }

.md-product-tour .md-product-visual > .vg,
.md-product-visual:hover > .vg {
  box-shadow: 0 0 0 1px rgba(44, 39, 31, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.vg {
  --v-canvas: oklch(0.972 0.003 85);
  --v-raised: oklch(0.997 0.0015 85);
  --v-line: oklch(0.9 0.005 85);
  --v-hair: oklch(0.935 0.004 85);
  --v-ghost: oklch(0.905 0.005 85);
  --v-ink: oklch(0.2 0.008 55);
  --v-2: oklch(0.42 0.01 55);
  --v-3: oklch(0.52 0.008 55);
  --v-4: oklch(0.66 0.006 55);
  --v-acc: oklch(0.44 0.27 271);
  --v-acc-soft: oklch(0.955 0.025 271);
  --v-shadow: 0 0 0 1px oklch(0.25 0.02 85 / 0.07), 0 1px 2px oklch(0.25 0.02 85 / 0.05), 0 28px 56px -30px oklch(0.25 0.02 85 / 0.3);
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(90% 70% at 50% 0%, oklch(0.995 0.002 85 / 0.9), transparent 70%),
    var(--v-canvas);
  color: var(--v-ink);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.vg *,
.vg *::before,
.vg *::after { box-sizing: border-box; }
.vg :where(b, strong) { font-weight: 500; }
.vg :where(em, i) { font-style: normal; }
.vg :where(p, ul, ol, dl, dd) { margin: 0; padding: 0; }
.vg :where(ul, ol) { list-style: none; }

/* Shared atoms */
.vg-card {
  position: absolute;
  z-index: 2;
  border-radius: 16px;
  background: var(--v-raised);
  box-shadow: var(--v-shadow);
}
.vg-k { display: block; color: var(--v-3); font-size: 12px; }
.vg-m { font-family: var(--font-mono); font-size: 0.9em; letter-spacing: -0.01em; }
.vg-title { display: block; font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -0.025em; }
.vg-meta { display: block; color: var(--v-3); font-size: 13px; }
.vg-num { display: flex; align-items: baseline; gap: 6px; font-size: 44px; font-weight: 400; line-height: 1; letter-spacing: -0.045em; }
.vg-num small { color: var(--v-3); font-size: 15px; letter-spacing: -0.01em; }

.vg-ai { display: flex; align-items: baseline; gap: 8px; color: var(--v-2); font-size: 12.5px; line-height: 1.5; }
.vg-ai > b { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; color: var(--v-acc); font-size: 11.5px; font-weight: 500; }
.vg-ai > b::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transform: translateY(-1px); }

.vg-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--v-acc);
  color: #fff;
  font-size: 12.5px;
  white-space: nowrap;
}
.vg-btn--ink { background: var(--v-ink); }
.vg-btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--v-line); color: var(--v-2); }

.vg-fade-x { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }

/* ── Alma · Resguardar: the possibilities layer ── */
.vg-poss { position: absolute; inset: 0; display: grid; grid-template-columns: 256px minmax(56px, 1fr) 404px; align-items: center; padding: 0 8%; }
.vg-tis { position: relative; z-index: 2; overflow: hidden; margin: 0; }
.vg-tis img { display: block; width: 100%; height: 128px; object-fit: cover; filter: saturate(0.78) brightness(1.03); }
.vg-tis figcaption { padding: 16px 18px 16px; }
.vg-tis .vg-title { margin-top: 4px; font-size: 19px; }
.vg-tis-m { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--v-hair); color: var(--v-3); font-size: 11.5px; white-space: nowrap; }
.vg-tis-m .vg-m { color: var(--v-4); font-size: 11px; }
.vg-wires { display: block; width: 100%; height: 312px; overflow: visible; }
.vg-wires path { fill: none; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.vg-wires .is-done { stroke: oklch(0.2 0.008 55 / 0.28); }
.vg-wires .is-next { stroke: oklch(0.44 0.27 271 / 0.55); stroke-dasharray: 3 4; }
.vg-assays { display: flex; flex-direction: column; height: 312px; }
.vg-assays > .vg-k { height: 24px; color: var(--v-4); font-size: 11.5px; }
.vg-assays > .vg-k:nth-of-type(2) { margin-top: 20px; color: var(--v-acc); }
.vg-assays ul { display: grid; gap: 8px; }
.vg-assays li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; align-items: center; height: 44px; padding: 0 14px; border-radius: 10px; }
.vg-assays li.is-done { background: var(--v-raised); box-shadow: 0 0 0 1px oklch(0.25 0.02 85 / 0.07), 0 1px 2px oklch(0.25 0.02 85 / 0.04); }
.vg-assays li.is-next { box-shadow: inset 0 0 0 1px oklch(0.44 0.27 271 / 0.22); }
.vg-assays li > i { position: relative; width: 16px; height: 16px; border-radius: 50%; }
.vg-assays li.is-done > i { background: var(--v-ink); }
.vg-assays li.is-done > i::after { content: ""; position: absolute; top: 4px; left: 5.5px; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.vg-assays li.is-next > i { box-shadow: inset 0 0 0 1.25px var(--v-acc); }
.vg-assays li div { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.vg-assays strong { font-size: 13px; }
.vg-assays li span { overflow: hidden; color: var(--v-4); font-size: 11.5px; text-overflow: ellipsis; }
.vg-assays em { color: var(--v-4); font-family: var(--font-mono); font-size: 11px; }
.md-product-panel.is-animating .vg-wires { animation: vg-wipe 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both; }
.md-product-panel.is-animating .vg-assays li { animation: vg-lift 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.md-product-panel.is-animating .vg-assays ul:first-of-type li:nth-child(1) { animation-delay: 0.25s; }
.md-product-panel.is-animating .vg-assays ul:first-of-type li:nth-child(2) { animation-delay: 0.32s; }
.md-product-panel.is-animating .vg-assays ul:first-of-type li:nth-child(3) { animation-delay: 0.39s; }
.md-product-panel.is-animating .vg-assays ul:last-of-type li:nth-child(1) { animation-delay: 0.5s; }
.md-product-panel.is-animating .vg-assays ul:last-of-type li:nth-child(2) { animation-delay: 0.57s; }
@keyframes vg-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.vg.is-tight .vg-poss { grid-template-columns: 220px minmax(40px, 1fr) 392px; padding: 0 4%; }
.vg.is-tight .vg-tis .vg-title { font-size: 17px; }
.vg.is-tight .vg-tis-m .vg-m { display: none; }
.vg.is-tight .vg-tis img { height: 112px; }
.vg.is-mid .vg-poss { grid-template-columns: 200px minmax(28px, 1fr) 340px; padding: 0 4%; }
.vg.is-mid .vg-tis img { height: 96px; }
.vg.is-mid .vg-tis .vg-title { font-size: 16px; }
.vg.is-mid .vg-tis-m .vg-m { display: none; }
.vg.is-mid .vg-assays li span { display: none; }
.vg.is-compact .vg-poss { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 16px; padding: 0 7%; }
.vg.is-compact .vg-wires, .vg.is-compact .vg-tis img, .vg.is-compact .vg-tis-m { display: none; }
.vg.is-compact .vg-tis figcaption { padding: 14px 16px; }
.vg.is-compact .vg-assays { height: auto; }
.vg.is-compact .vg-assays li em { display: none; }

/* ── Alma · Entender: one term, in plain language ── */
.vg-doc {
  position: absolute;
  top: 12%;
  left: 8%;
  width: 46%;
  height: 100%;
  padding: 26px 28px;
  border-radius: 12px 12px 0 0;
  background: var(--v-raised);
  box-shadow: 0 0 0 1px oklch(0.25 0.02 85 / 0.06);
  -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 52%, transparent 88%);
}
.vg-doc-src { display: block; margin-top: 5px; color: var(--v-4); font-size: 11px; }
.vg-doc-h { display: flex; justify-content: space-between; color: var(--v-3); font-size: 11.5px; }
.vg-sk { display: block; height: 6px; margin-top: 9px; border-radius: 3px; background: var(--v-hair); }
.vg-doc-k { display: block; margin: 22px 0 6px; color: var(--v-4); font-size: 11px; }
.vg-doc-row { display: flex; gap: 14px; padding: 9px 0; border-top: 1px solid var(--v-hair); color: var(--v-4); font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap; }
.vg-doc-row b { min-width: 58px; color: var(--v-3); font-weight: 500; }
.vg-doc-row.is-on { color: var(--v-2); }
.vg-doc-row.is-on b { color: var(--v-acc); }
.vg-doc-row.is-on mark { padding: 1px 3px; margin: -1px -3px; border-radius: 3px; background: var(--v-acc-soft); color: inherit; }

.vg-explain { top: 50%; right: 9%; width: 380px; padding: 24px 26px 22px; transform: translateY(-46%); }
.vg-explain .vg-k { color: var(--v-acc); }
.vg-explain .vg-title { margin-top: 8px; font-family: var(--font-mono); font-size: 21px; letter-spacing: -0.02em; }
.vg-explain p { margin-top: 10px; color: var(--v-2); font-size: 15px; line-height: 1.55; letter-spacing: -0.01em; }
.vg-ask { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--v-hair); }
.vg-ask .vg-k { color: var(--v-3); font-size: 11.5px; }
.vg-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--v-line); font-size: 13px; }

/* ── Alma · Seguir: the tumor's own variants, followed in blood ── */
.vg-panel { position: absolute; top: 10%; left: 6%; width: 23%; }
.vg-panel-n { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 40px; font-weight: 400; line-height: 1; letter-spacing: -0.04em; }
.vg-panel-n small { color: var(--v-3); font-size: 13px; letter-spacing: -0.005em; }
.vg-vars { display: grid; margin-top: 18px; border-top: 1px solid var(--v-hair); }
.vg-vars li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--v-hair); color: var(--v-4); font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap; }
.vg-vars b { min-width: 56px; color: var(--v-2); font-weight: 500; }
.vg-vars li.is-more { color: var(--v-4); font-family: var(--font-sans); border-bottom: 0; }
.vg-legend { display: flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--v-4); font-size: 11px; white-space: nowrap; }
.vg-legend i { width: 14px; height: 2px; border-radius: 1px; background: var(--v-acc); }
.vg-legend i.is-trace { background: oklch(0.8 0.006 85); }
.vg-legend i + i, .vg-legend i:not(:first-child) { margin-left: 8px; }

.vg-blood { position: absolute; top: 34%; bottom: 11%; left: 34%; right: 6%; }
.vg-blood-plot { position: absolute; inset: 0 0 30px 0; }
.vg-blood-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vg-trace { fill: none; stroke: oklch(0.8 0.006 85 / 0.75); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.vg-blood-line { fill: none; stroke: var(--v-acc); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.vg-blood-floor { stroke: var(--v-line); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.vg-blood-next { fill: none; stroke: var(--v-4); stroke-width: 1.25; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.vg-blood-plot i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--v-raised); box-shadow: inset 0 0 0 1.75px var(--v-acc); transform: translate(-50%, -50%); }
.vg-blood-plot i.is-last { width: 11px; height: 11px; background: var(--v-acc); box-shadow: 0 0 0 5px var(--v-acc-soft); }
.vg-blood-plot i.vg-blood-due { background: var(--v-canvas); box-shadow: inset 0 0 0 1.5px var(--v-4); }
.vg-blood-l { position: absolute; left: 0; color: var(--v-4); font-size: 10.5px; transform: translateY(calc(-100% - 5px)); }
.vg-blood-x { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; }
.vg-blood-x span { position: absolute; color: var(--v-4); font-family: var(--font-mono); font-size: 11px; white-space: nowrap; transform: translateX(-50%); }
.vg-blood-x span.is-next { color: var(--v-2); }

.vg-result { top: 9%; right: 6%; width: 292px; padding: 18px 20px 16px; }
.vg-result .vg-title { margin-top: 6px; font-size: 22px; }
.vg-result .vg-meta { margin-top: 4px; font-size: 12.5px; }
.vg-result .vg-ai { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--v-hair); font-size: 12px; }

/* ── Atla · Oncología: every source on one clock, read as one line ── */
.vg-lanes { position: absolute; top: 15%; bottom: 15%; left: 6%; width: 62%; }
.vg-lane { position: relative; height: 25%; border-bottom: 1px solid var(--v-hair); }
.vg-lane > span { position: absolute; top: 50%; left: 0; color: var(--v-4); font-size: 11.5px; transform: translateY(-50%); }
.vg-track { position: absolute; top: 0; bottom: 0; left: 96px; right: 0; }
.vg-mk { position: absolute; top: 50%; display: flex; align-items: center; gap: 7px; color: var(--v-4); font-size: 11.5px; transform: translate(-3.5px, -50%); white-space: nowrap; }
.vg-mk::before { content: ""; width: 7px; height: 7px; border-radius: 1.5px; background: var(--v-4); transform: rotate(45deg); }
.vg-mk b { color: var(--v-3); font-weight: 500; }
.vg-bar { position: absolute; top: 50%; height: 6px; border-radius: 3px; background: var(--v-ghost); transform: translateY(-50%); }
.vg-bar span { position: absolute; bottom: 11px; left: 0; color: var(--v-4); font-size: 11.5px; white-space: nowrap; }
.vg-bar.is-open { background: linear-gradient(90deg, var(--v-ghost) 70%, transparent); }
.vg-axis { position: absolute; top: -24px; left: 96px; right: 0; height: 14px; }
.vg-axis span { position: absolute; color: var(--v-4); font-family: var(--font-mono); font-size: 10.5px; transform: translateX(-50%); }
.vg-today { position: absolute; top: -10px; bottom: -6px; left: 100%; width: 0; border-left: 1px dashed var(--v-acc); opacity: 0.6; }
.vg-today::before { content: "Hoy"; position: absolute; top: -16px; left: -12px; width: 24px; color: var(--v-acc); font-size: 10.5px; font-weight: 500; text-align: center; }

.vg-readout { top: 50%; right: 5%; width: 252px; padding: 20px 20px 18px; transform: translateY(-50%); }
.vg-readout .vg-title { margin-top: 10px; font-size: 19px; line-height: 1.25; }
.vg-readout .vg-meta { margin-top: 6px; font-size: 12.5px; line-height: 1.45; }
.vg-src { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.vg-src span { padding: 2px 7px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--v-line); color: var(--v-3); font-size: 11px; }

/* ── App windows: the fuller product screens ── */
.vg-app {
  position: absolute;
  inset: 4.5% 3.5%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--v-raised);
  box-shadow: 0 0 0 1px oklch(0.25 0.02 85 / 0.08), 0 1px 2px oklch(0.25 0.02 85 / 0.04), 0 24px 48px -32px oklch(0.25 0.02 85 / 0.32);
}
.vg-app-bar { flex: 0 0 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--v-hair); background: oklch(0.985 0.003 85); }
.vg-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; color: var(--v-3); font-size: 12px; white-space: nowrap; }
.vg-crumbs i { color: var(--v-line); }
.vg-crumbs strong { color: var(--v-ink); }
.vg-app-act { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.vg-app .vg-btn { height: 28px; padding: 0 12px; border-radius: 7px; font-size: 12px; }
.vg-live { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; color: var(--v-3); font-size: 11.5px; }
.vg-live i { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.62 0.13 155); }
.vg-people { display: flex; margin-right: 6px; padding-left: 5px; }
.vg-people i { display: grid; place-items: center; width: 22px; height: 22px; margin-left: -5px; border-radius: 50%; background: var(--v-canvas); box-shadow: 0 0 0 2px var(--v-raised); color: var(--v-3); font-family: var(--font-mono); font-size: 9.5px; }
.vg-ok { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 5px; background: oklch(0.96 0.03 155); color: oklch(0.45 0.1 155); font-size: 11px; white-space: nowrap; }
.vg-bartrack, .vg-mets li > i, .vg-syn > i { position: relative; display: block; height: 3px; overflow: hidden; border-radius: 2px; background: var(--v-hair); }
.vg-mets li > i::after, .vg-syn > i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 2px; background: var(--v-chart, oklch(0.6 0.09 271)); }
.vg-syn > i::after { background: var(--v-acc); }

/* ── Atla · Patología: the computational pathology workspace ── */
.vg-path-body { flex: 1; display: grid; grid-template-columns: 74px minmax(0, 1fr) 264px; min-height: 0; }
.vg-thumbs { display: flex; flex-direction: column; gap: 12px; padding: 12px 10px; border-right: 1px solid var(--v-hair); background: oklch(0.985 0.003 85); }
.vg-thumbs figure { margin: 0; }
.vg-thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px var(--v-hair); opacity: 0.6; filter: saturate(0.8); }
.vg-thumbs span { display: block; margin-top: 5px; color: var(--v-4); font-size: 9.5px; white-space: nowrap; }
.vg-thumbs .is-on img { opacity: 1; box-shadow: 0 0 0 1.5px var(--v-acc); }
.vg-thumbs .is-on span { color: var(--v-ink); }
.vg-viewer { position: relative; overflow: hidden; background: oklch(0.93 0.02 340); }
.vg-viewer svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.vg-viewer image { filter: saturate(0.82) brightness(1.03); }
.vg-ly { opacity: 0; }
.vg-ly-t { opacity: 1; }
.vg-ly-t rect { fill: oklch(0.44 0.27 271); fill-opacity: calc(var(--o) * 0.55); }
.vg-ly-g rect { fill-opacity: 0.5; }
.vg-ly-g .g1 { fill: oklch(0.84 0.04 271); }
.vg-ly-g .g2 { fill: oklch(0.72 0.07 271); }
.vg-ly-g .g3 { fill: oklch(0.56 0.12 271); }
.vg-ly-g .g4 { fill: oklch(0.4 0.2 271); }
.vg-ly-c circle { fill: oklch(0.44 0.27 271); stroke: #fff; stroke-width: 0.7; }
.vg-ly-c circle.ly { fill: oklch(0.28 0.01 55); }
.vg-layers { position: absolute; left: 50%; bottom: 14px; display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: oklch(1 0 0 / 0.88); box-shadow: 0 0 0 1px oklch(0.25 0.02 85 / 0.08), 0 8px 18px -12px oklch(0.25 0.02 85 / 0.4); transform: translateX(-50%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vg-layers span { padding: 4px 10px; border-radius: 6px; color: var(--v-3); font-size: 11.5px; white-space: nowrap; }
.vg-layers .l-t { background: var(--v-ink); color: #fff; }
.vg-scale { position: absolute; left: 14px; bottom: 20px; display: flex; align-items: center; gap: 7px; color: #fff; font-family: var(--font-mono); font-size: 10.5px; text-shadow: 0 1px 2px oklch(0 0 0 / 0.4); }
.vg-scale i { width: 44px; height: 2px; background: #fff; box-shadow: 0 1px 2px oklch(0 0 0 / 0.3); }
.vg-mag { position: absolute; top: 12px; right: 12px; padding: 3px 7px; border-radius: 5px; background: oklch(1 0 0 / 0.88); color: var(--v-3); font-family: var(--font-mono); font-size: 10.5px; }
.vg-path-side { display: flex; flex-direction: column; min-height: 0; padding: 14px 16px; border-left: 1px solid var(--v-hair); }
.vg-side-h { display: flex; align-items: baseline; justify-content: space-between; }
.vg-side-h .vg-m { color: var(--v-4); font-size: 11px; }
.vg-mets { margin-top: 6px; }
.vg-mets li { padding: 6px 0 7px; border-bottom: 1px solid var(--v-hair); }
.vg-mets li > div { display: flex; justify-content: space-between; color: var(--v-2); font-size: 12px; }
.vg-mets b { color: var(--v-ink); font-family: var(--font-mono); font-size: 12px; }
.vg-mets li > i { margin-top: 6px; }
.vg-mets small { display: block; margin-top: 4px; color: var(--v-4); font-size: 10.5px; }
.vg-syn { margin-top: auto; padding-top: 10px; }
.vg-syn > div { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--v-2); font-size: 11.5px; }
.vg-syn b { color: var(--v-3); font-size: 11px; font-weight: 400; }
.vg-path-side .vg-ai { margin-top: 10px; font-size: 11.5px; }

.md-product-panel.is-active .vg-ly-t { animation: vg-cyc-1 9s 1s infinite; }
.md-product-panel.is-active .vg-ly-g { animation: vg-cyc-2 9s 1s infinite; }
.md-product-panel.is-active .vg-ly-c { animation: vg-cyc-3 9s 1s infinite; }
.md-product-panel.is-active .vg-layers .l-t { animation: vg-btn-1 9s 1s infinite; }
.md-product-panel.is-active .vg-layers .l-g { animation: vg-btn-2 9s 1s infinite; }
.md-product-panel.is-active .vg-layers .l-c { animation: vg-btn-3 9s 1s infinite; }
@keyframes vg-cyc-1 { 0%, 30% { opacity: 1; } 35%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes vg-cyc-2 { 0%, 30% { opacity: 0; } 35%, 63% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes vg-cyc-3 { 0%, 63% { opacity: 0; } 68%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vg-btn-1 { 0%, 30% { background: var(--v-ink); color: #fff; } 35%, 95% { background: transparent; color: var(--v-3); } 100% { background: var(--v-ink); color: #fff; } }
@keyframes vg-btn-2 { 0%, 30% { background: transparent; color: var(--v-3); } 35%, 63% { background: var(--v-ink); color: #fff; } 68%, 100% { background: transparent; color: var(--v-3); } }
@keyframes vg-btn-3 { 0%, 63% { background: transparent; color: var(--v-3); } 68%, 95% { background: var(--v-ink); color: #fff; } 100% { background: transparent; color: var(--v-3); } }
.md-product-panel.is-animating .vg-ly-t rect { animation: vg-fade 0.5s both; }
.md-product-panel.is-animating .vg-mets li > i::after { animation: vg-grow 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both; transform-origin: left; }

/* ── Atla · Oncología: the longitudinal record ── */
.vg-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--v-hair); }
.vg-facts > div { min-width: 0; padding: 9px 16px; border-right: 1px solid var(--v-hair); }
.vg-facts > div:last-child { border-right: 0; }
.vg-facts span { display: block; color: var(--v-4); font-size: 10.5px; }
.vg-facts b { display: block; margin-top: 2px; overflow: hidden; color: var(--v-ink); font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.vg-onco-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 236px; min-height: 0; }
.vg-onco .vg-lanes { position: relative; top: auto; bottom: auto; left: auto; width: auto; display: flex; flex-direction: column; margin: 34px 24px 14px 18px; }
.vg-onco .vg-lane { position: relative; flex: 1; border-bottom: 1px solid var(--v-hair); }
.vg-onco .vg-lane.is-ct { flex: 1.6; }
.vg-onco .vg-lane > span { position: absolute; top: 50%; left: 0; color: var(--v-4); font-size: 11px; transform: translateY(-50%); }
.vg-onco .vg-track { position: absolute; top: 0; bottom: 0; left: 84px; right: 0; }
.vg-onco .vg-axis { position: absolute; top: -22px; left: 84px; right: 0; height: 14px; }
.vg-onco .vg-axis span { position: absolute; color: var(--v-4); font-family: var(--font-mono); font-size: 10.5px; transform: translateX(-50%); }
.vg-onco .vg-mk { position: absolute; top: 50%; display: flex; align-items: center; gap: 6px; color: var(--v-4); font-size: 11.5px; white-space: nowrap; transform: translate(-3.5px, -50%); }
.vg-onco .vg-mk::before { content: ""; width: 7px; height: 7px; border-radius: 1.5px; background: var(--v-3); transform: rotate(45deg); }
.vg-onco .vg-mk.is-end { flex-direction: row-reverse; transform: translate(calc(-100% + 3.5px), -50%); }
.vg-onco .vg-mk b { color: var(--v-2); font-weight: 500; }
.vg-onco .vg-mk em { color: var(--v-4); font-family: var(--font-mono); font-size: 10.5px; }
.vg-onco .vg-bar { position: absolute; top: 50%; height: 8px; border-radius: 3px; background: oklch(0.88 0.03 271); transform: translateY(-50%); }
.vg-onco .vg-bar.is-open { background: linear-gradient(90deg, oklch(0.88 0.03 271) 78%, transparent); }
.vg-onco .vg-bar > span { position: absolute; bottom: 12px; left: 0; color: var(--v-3); font-size: 11px; white-space: nowrap; }
.vg-onco .vg-bar > i { position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--v-raised); }
.vg-onco .vg-spark { position: absolute; inset: 18px 0 10px; }
.vg-onco .vg-today { position: absolute; top: -10px; bottom: -6px; left: 100%; width: 0; border-left: 1px dashed var(--v-acc); opacity: 0.6; }
.vg-onco .vg-readout { position: relative; top: auto; right: auto; width: auto; transform: none; display: flex; flex-direction: column; padding: 18px; border-left: 1px solid var(--v-hair); background: oklch(0.985 0.003 85); }
.vg-onco .vg-readout .vg-title { margin-top: 10px; font-size: 18px; line-height: 1.25; }
.vg-onco .vg-readout .vg-meta { margin-top: 8px; font-size: 12px; line-height: 1.5; }

/* ── Atla · Comité: the board's working record ── */
.vg-board-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.2fr); min-height: 0; }
.vg-bcol { min-width: 0; padding: 16px 18px; border-right: 1px solid var(--v-hair); }
.vg-bcol:last-child { border-right: 0; }
.vg-bq { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.vg-board .vg-rows { display: grid; margin-top: 10px; border-top: 1px solid var(--v-hair); }
.vg-board .vg-rows > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--v-hair); color: var(--v-4); font-size: 11.5px; }
.vg-board .vg-rows dd { color: var(--v-ink); font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
.vg-k2 { margin-top: 16px; }
.vg-bp { margin-top: 6px; color: var(--v-ink); font-size: 14px; line-height: 1.4; letter-spacing: -0.01em; }
.vg-evid { margin-top: 8px; border-top: 1px solid var(--v-hair); }
.vg-evid li { padding: 9px 0; border-bottom: 1px solid var(--v-hair); }
.vg-evid span { display: block; color: var(--v-4); font-size: 11px; }
.vg-evid b { display: block; margin-top: 2px; color: var(--v-2); font-size: 12.5px; font-weight: 400; }
.vg-rec { display: flex; flex-direction: column; background: oklch(0.985 0.003 85); }
.vg-rec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.vg-rec-t { margin-top: 8px; color: var(--v-ink); font-size: 15px; line-height: 1.4; letter-spacing: -0.01em; }
.vg-acts { margin-top: 12px; border-top: 1px solid var(--v-hair); }
.vg-acts li { display: grid; grid-template-columns: 78px minmax(0, 1fr) 22px; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--v-hair); }
.vg-acts span { color: var(--v-4); font-size: 11px; }
.vg-acts b { overflow: hidden; color: var(--v-2); font-size: 12px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.vg-acts i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--v-canvas); color: var(--v-3); font-family: var(--font-mono); font-size: 9.5px; }
.vg-rec .vg-ai { margin-top: auto; padding-top: 10px; font-size: 11.5px; }

/* app tiers */
.vg.is-tight .vg-path-body { grid-template-columns: 64px minmax(0, 1fr) 236px; }
.vg.is-tight .vg-onco-body { grid-template-columns: minmax(0, 1fr) 212px; }
.vg.is-tight .vg-board-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); }
.vg.is-tight .vg-acts li { grid-template-columns: 70px minmax(0, 1fr) 22px; }
.vg.is-mid .vg-app { inset: 4% 3%; }
.vg.is-mid .vg-crumbs > :nth-child(-n + 2),
.vg.is-tight .vg-onco .vg-mk.is-end em, .vg.is-mid .vg-onco .vg-mk em, .vg.is-compact .vg-scale, .vg.is-mid .vg-live, .vg.is-mid .vg-app .vg-btn--ghost { display: none; }
.vg.is-mid .vg-path-body { grid-template-columns: minmax(0, 1fr) 210px; }
.vg.is-mid .vg-thumbs, .vg.is-mid .vg-mets small, .vg.is-mid .vg-path-side .vg-ai { display: none; }
.vg.is-mid .vg-onco-body { grid-template-columns: minmax(0, 1fr); }
.vg.is-mid .vg-onco .vg-readout, .vg.is-mid .vg-facts > div:nth-child(n + 4) { display: none; }
.vg.is-mid .vg-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vg.is-mid .vg-board-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.vg.is-mid .vg-board-body > :nth-child(2) { display: none; }
.vg.is-compact .vg-app { inset: 4%; }
.vg.is-compact .vg-crumbs > :not(strong), .vg.is-compact .vg-live, .vg.is-compact .vg-people { display: none; }
.vg.is-compact .vg-path-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.1fr) auto; }
.vg.is-compact .vg-path-side { border-left: 0; border-top: 1px solid var(--v-hair); padding: 10px 14px; }
.vg.is-compact .vg-mets li:nth-child(n + 4), .vg.is-compact .vg-syn, .vg.is-compact .vg-side-h .vg-m { display: none; }
.vg.is-compact .vg-layers span { padding: 4px 8px; font-size: 11px; }
.vg.is-compact .vg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vg.is-compact .vg-facts > div:nth-child(n + 3) { display: none; }
.vg.is-compact .vg-onco .vg-track, .vg.is-compact .vg-onco .vg-axis { left: 70px; }
.vg.is-compact .vg-onco .vg-mk em, .vg.is-compact .vg-onco .vg-mk b, .vg.is-compact .vg-onco .vg-axis span:nth-child(even), .vg.is-compact .vg-onco .vg-bar > span { display: none; }
.vg.is-compact .vg-onco .vg-lanes { margin: 30px 14px 12px 12px; }
.vg.is-compact .vg-board-body { grid-template-columns: minmax(0, 1fr); }
.vg.is-compact .vg-board-body > :nth-child(-n + 2) { display: none; }

/* ── Cosmo · Descubrimiento: one signal lifted out of the screen ── */
.vg-forest { position: absolute; top: 50%; left: 50%; width: 760px; transform: translate(-50%, -50%); }
.vg-frow { position: relative; display: grid; grid-template-columns: 236px minmax(0, 1fr) 120px; align-items: center; gap: 24px; height: 40px; padding: 0 24px; color: var(--v-4); font-size: 12.5px; }
.vg-frow > span:last-child { color: var(--v-4); font-family: var(--font-mono); font-size: 11.5px; text-align: right; }
.vg-ci { position: relative; height: 12px; }
.vg-ci i { position: absolute; top: 50%; left: var(--lo); width: calc(var(--hi) - var(--lo)); height: 1px; background: var(--v-ghost); }
.vg-ci b { position: absolute; top: 50%; left: var(--pt); width: 7px; height: 7px; background: var(--v-ghost); transform: translate(-50%, -50%); }
.vg-ghostrows { -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); }
.vg-ghostrows--b { -webkit-mask-image: linear-gradient(0deg, transparent, #000 40%); mask-image: linear-gradient(0deg, transparent, #000 40%); }
.vg-ci::before { content: ""; position: absolute; top: -14px; bottom: -14px; left: 33.333%; border-left: 1px dashed var(--v-line); }
.vg-frow.is-lift .vg-ci::before { top: -37px; bottom: -37px; }

.vg-frow.is-lift { z-index: 2; height: 92px; margin: 10px -12px; padding: 0 36px; border-radius: 16px; background: var(--v-raised); box-shadow: var(--v-shadow); color: var(--v-ink); }
.vg-frow.is-lift .vg-ci { height: 18px; }
.vg-frow.is-lift .vg-ci i { height: 2px; margin-top: -0.5px; background: var(--v-acc); }
.vg-frow.is-lift .vg-ci b { width: 11px; height: 11px; background: var(--v-acc); }
.vg-sig { display: flex; align-items: center; gap: 14px; min-width: 0; }
.vg-thumb { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 10px; background: url("assets/prisma-case-he.webp") 72% 62% / 900% auto no-repeat; box-shadow: inset 0 0 0 1px oklch(0.2 0.01 55 / 0.08); filter: saturate(0.45) brightness(1.05); }
.vg-sig strong { display: block; font-size: 15px; letter-spacing: -0.015em; }
.vg-sig span { display: block; margin-top: 2px; color: var(--v-3); font-size: 12px; }
.vg-hr { text-align: right; }
.vg-hr strong { display: block; font-family: var(--font-mono); font-size: 26px; font-weight: 400; letter-spacing: -0.04em; }
.vg-hr span { display: block; margin-top: 2px; color: var(--v-3); font-family: var(--font-mono); font-size: 11px; }
.vg-fx { display: grid; grid-template-columns: 236px minmax(0, 1fr) 120px; gap: 24px; margin-top: 14px; padding: 0 24px; color: var(--v-4); font-family: var(--font-mono); font-size: 10.5px; }
.vg-fx > span:nth-child(2) { position: relative; height: 14px; }
.vg-fx > span:nth-child(2) i { position: absolute; transform: translateX(-50%); }
.vg-fx > span:last-child { text-align: right; }

/* ── Cosmo · Biomarcadores: two cohorts, every specimen accounted for ── */
.vg-cohorts { position: absolute; top: 47%; left: 50%; display: flex; align-items: flex-end; gap: 72px; transform: translate(-50%, -50%); }
.vg-cohort-h { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.vg-cohort-h .vg-k { color: var(--v-2); font-size: 13px; white-space: nowrap; }
.vg-cohort-h .vg-k small { display: block; margin-top: 2px; margin-top: 2px; color: var(--v-4); font-size: 11.5px; }
.vg-cohort-h .vg-num { font-size: 36px; }
.vg-dots { display: grid; grid-template-columns: repeat(var(--cols), 8px); gap: 5px; }
.vg-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--v-ghost); }
.vg-dots i.is-miss { background: none; box-shadow: inset 0 0 0 1px var(--v-4); }
.vg-cohort.is-blind .vg-dots i { background: var(--v-acc); opacity: 0.78; }
.vg-cohort.is-blind .vg-k { color: var(--v-acc); }
.vg-wall { align-self: stretch; width: 1px; margin-bottom: 0; background: repeating-linear-gradient(180deg, var(--v-line) 0 4px, transparent 4px 8px); }
.vg-c2-foot { position: absolute; bottom: 9%; left: 50%; display: flex; gap: 22px; align-items: center; color: var(--v-3); font-size: 12px; transform: translateX(-50%); white-space: nowrap; }
.vg-c2-foot span { display: inline-flex; align-items: center; gap: 7px; }
.vg-c2-foot i { width: 8px; height: 8px; border-radius: 50%; background: var(--v-ghost); }
.vg-c2-foot i.is-miss { background: none; box-shadow: inset 0 0 0 1px var(--v-4); }
.vg-c2-foot .vg-ai { padding-left: 22px; border-left: 1px solid var(--v-line); }

/* ── Cosmo · Desarrollo clínico: enrollment against plan, across the network ── */
.vg-c3-head { position: absolute; top: 11%; left: 8%; }
.vg-c3-head .vg-num { margin-top: 10px; font-size: 52px; }
.vg-c3-head .vg-meta { margin-top: 10px; }
.vg-curve { position: absolute; top: 40%; bottom: 14%; left: 8%; right: 8%; }
.vg-curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vg-curve .base { fill: none; stroke: var(--v-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.vg-curve .base.goal { stroke: var(--v-line); stroke-dasharray: 2 5; }
.vg-curve .plan { fill: none; stroke: var(--v-4); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.vg-curve .act { fill: none; stroke: var(--v-acc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.vg-curve .proj { fill: none; stroke: var(--v-acc); stroke-width: 1.5; stroke-dasharray: 0.5 5; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0.7; }
.vg-curve .area { fill: url(#vg-c3-fill); }
.vg-pt { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--v-acc); box-shadow: 0 0 0 4px var(--v-acc-soft), 0 0 0 5px var(--v-raised); transform: translate(-50%, -50%); }
.vg-pt.is-goal { width: 8px; height: 8px; background: var(--v-raised); box-shadow: inset 0 0 0 1.5px var(--v-acc); }
.vg-xl { position: absolute; bottom: -22px; left: 0; right: 0; height: 12px; color: var(--v-4); font-family: var(--font-mono); font-size: 10.5px; }
.vg-xl span { position: absolute; transform: translateX(-50%); }
.vg-plan-l { position: absolute; color: var(--v-4); font-size: 11px; white-space: nowrap; transform: translate(-100%, -50%); }
.vg-plan-l.is-acc { color: var(--v-acc); }
.vg-goal { top: 12%; right: 8%; width: 300px; padding: 16px 18px; }
.vg-goal .vg-k { color: var(--v-3); font-size: 11.5px; }
.vg-goal .vg-ai { margin-top: 8px; color: var(--v-ink); font-size: 13.5px; }
.vg-goal .vg-ai > b { display: none; }
.vg-goal-h { display: flex; justify-content: space-between; }
.vg-goal-h b { display: inline-flex; align-items: center; gap: 6px; color: var(--v-acc); font-size: 11.5px; font-weight: 500; }
.vg-goal-h b::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ── 880 ── */
.vg.is-tight .vg-panel { width: 25%; }
.vg.is-tight .vg-blood { left: 35%; }
.vg.is-tight .vg-result { width: 268px; }
.vg.is-tight .vg-doc { left: 5%; width: 48%; }
.vg.is-tight .vg-explain { right: 5%; width: 360px; }
.vg.is-tight .vg-forest { width: 720px; }
.vg.is-tight .vg-cohorts { gap: 56px; }

/* ── 640 and 400: stacked compositions ── */
.vg.is-mid .vg-panel { top: 8%; left: 6%; width: 40%; }
.vg.is-mid .vg-vars, .vg.is-mid .vg-legend { display: none; }
.vg.is-mid .vg-blood { top: 42%; left: 6%; right: 6%; }
.vg.is-mid .vg-result { top: 7%; right: 5%; width: 264px; }
.vg.is-mid .vg-doc { top: 7%; left: 7%; right: 7%; width: auto; height: 52%; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.vg.is-mid .vg-explain { top: auto; right: 50%; bottom: 7%; width: 440px; transform: translateX(50%); }
.vg.is-mid .vg-forest { width: 580px; }
.vg.is-mid .vg-frow,
.vg.is-mid .vg-fx { grid-template-columns: 180px minmax(0, 1fr) 86px; gap: 16px; padding: 0 16px; }
.vg.is-mid .vg-frow.is-lift { padding: 0 24px; }
.vg.is-mid .vg-c2-foot { flex-direction: column; gap: 8px; }
.vg.is-mid .vg-c2-foot .vg-ai { padding: 0; border: 0; }
.vg.is-mid .vg-goal { top: auto; right: auto; bottom: 7%; left: 7%; width: 86%; }
.vg.is-mid .vg-curve { top: 34%; bottom: 33%; left: 7%; right: 7%; }
.vg.is-mid .vg-c3-head { top: 8%; left: 7%; }

.vg.is-compact { font-size: 13px; }
.vg.is-compact .vg-title { font-size: 21px; }
.vg.is-compact .vg-panel { display: none; }
.vg.is-compact .vg-result { top: 6%; right: 50%; width: 352px; transform: translateX(50%); }
.vg.is-compact .vg-blood { top: 52%; bottom: 7%; left: 7%; right: 7%; }
.vg.is-compact .vg-blood-x span:nth-child(2),
.vg.is-compact .vg-blood-x span:nth-child(4),
.vg.is-compact .vg-blood-x span.is-next { display: none; }
.vg.is-compact .vg-explain { width: 352px; padding: 20px 20px 18px; }
.vg.is-compact .vg-explain p { font-size: 14px; }
.vg.is-compact .vg-doc { padding: 20px; }
.vg.is-compact .vg-doc-row span { display: none; }
.vg.is-compact .vg-forest { width: 372px; }
.vg.is-compact .vg-frow,
.vg.is-compact .vg-fx { grid-template-columns: 112px minmax(0, 1fr) 46px; gap: 12px; padding: 0 12px; font-size: 11.5px; }
.vg.is-compact .vg-frow.is-lift { grid-template-columns: minmax(0, 1fr) 80px; grid-template-rows: auto auto; gap: 12px 12px; height: auto; margin: 12px -6px; padding: 16px 18px; }
.vg.is-compact .vg-frow.is-lift .vg-ci { grid-column: 1 / -1; grid-row: 2; }
.vg.is-compact .vg-frow.is-lift .vg-ci::before { top: -6px; bottom: -6px; }
.vg.is-compact .vg-frow.is-lift .vg-sig { grid-row: 1; }
.vg.is-compact .vg-frow.is-lift .vg-hr { grid-row: 1; grid-column: 2; }
.vg.is-compact .vg-frow > span:last-child { font-size: 10.5px; }
.vg.is-compact .vg-fx { display: none; }
.vg.is-compact .vg-thumb { width: 40px; height: 40px; }
.vg.is-compact .vg-sig strong { font-size: 13.5px; }
.vg.is-compact .vg-hr strong { font-size: 22px; }
.vg.is-compact .vg-cohorts { top: 42%; gap: 28px; }
.vg.is-compact .vg-dots { grid-template-columns: repeat(var(--cols-s), 7px); gap: 4px; }
.vg.is-compact .vg-dots i { width: 7px; height: 7px; }
.vg.is-compact .vg-cohort-h { gap: 6px; margin-bottom: 14px; }
.vg.is-compact .vg-cohort-h .vg-num { font-size: 30px; }
.vg.is-compact .vg-c2-foot { bottom: 6%; font-size: 11.5px; }
.vg.is-compact .vg-c2-foot .vg-ai { display: none; }
.vg.is-compact .vg-c3-head .vg-num { font-size: 40px; }
.vg.is-compact .vg-curve { top: 38%; bottom: 36%; }
.vg.is-compact .vg-plan-l { font-size: 10.5px; }

/* Motion: one quiet settle when a tab opens */
.md-product-panel.is-animating .vg-card { animation: vg-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.md-product-panel.is-animating .vg-frow.is-lift { animation: vg-lift 0.7s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both; }
.md-product-panel.is-animating .vg-blood-line,
.md-product-panel.is-animating .vg-trace,
.md-product-panel.is-animating .vg-spark path,
.md-product-panel.is-animating .vg-curve .act { stroke-dasharray: 2400; animation: vg-draw 1.2s 0.1s cubic-bezier(0.45, 0, 0.2, 1) both; }
.md-product-panel.is-animating .vg-dots i { animation: vg-fade 0.6s both; }
.md-product-panel.is-animating .vg-cohort.is-blind .vg-dots i { animation-delay: 0.25s; }

@keyframes vg-rise { from { opacity: 0; translate: 0 8px; } }
@keyframes vg-lift { from { opacity: 0; translate: 0 6px; } }
@keyframes vg-draw { from { stroke-dashoffset: 2400; } to { stroke-dashoffset: 0; } }
@keyframes vg-fade { from { opacity: 0; } }
@keyframes vg-grow { from { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  .md-product-panel.is-active .vg-ly, .md-product-panel.is-active .vg-layers span, .md-product-panel.is-animating .vg-wires, .md-product-panel.is-animating .vg-assays li { animation: none !important; }
  .md-product-panel.is-animating .vg-card,
  .md-product-panel.is-animating .vg-frow.is-lift,
  .md-product-panel.is-animating .vg-blood-line,
  .md-product-panel.is-animating .vg-trace,
  .md-product-panel.is-animating .vg-spark path,
  .md-product-panel.is-animating .vg-curve .act,
  .md-product-panel.is-animating .vg-dots i { animation: none; }
}
/* ux:end */

/* ── Editorial pass: one grid for every audience page ──
   Section heads, product tours and their captions share the homepage's split: the headline on seven
   columns, the lede on five, bottoms aligned. Rules and type carry the structure; fills and pills do not. */

.pt-page,
.md-page,
.rs-page {
  --ed-split: minmax(0, 7fr) minmax(0, 5fr);
  --ed-gap: clamp(40px, 6vw, 112px);
}

.pt-head:has(> .pt-lede) {
  grid-template-columns: var(--ed-split, minmax(0, 7fr) minmax(0, 5fr));
  column-gap: var(--ed-gap, clamp(40px, 6vw, 112px));
  row-gap: 16px;
  align-items: start;
  max-width: none;
}
.pt-head:has(> .pt-lede) > .pt-eyebrow { grid-column: 1 / -1; }
.pt-head:has(> .pt-lede) > h2 { grid-column: 1; }
.pt-head:has(> .pt-lede) > .pt-lede {
  grid-column: 2;
  padding-top: 0.3em;
  max-width: var(--measure-note);
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.5;
}

/* Product tour: the tabs as a running head, the panel's line as a subhead under the section's headline. */
.md-product-tabs { border-bottom-color: rgba(17, 13, 23, 0.14); }
.md-product-tabs::after {
  height: 1px;
  border-radius: 0;
  background: var(--ink);
  box-shadow: none;
}
.md-product-tabs button { padding: 0 0 14px; font-size: 15px; }
.md-product-tabs button span { font-size: 11px; letter-spacing: 0.04em; color: inherit; opacity: 0.7; }

.md-product-tour .md-product-copy {
  grid-template-columns: var(--ed-split, minmax(0, 7fr) minmax(0, 5fr));
  column-gap: var(--ed-gap, clamp(40px, 6vw, 112px));
  align-items: start;
}
.md-product-tour .md-product-copy h3 {
  max-width: var(--measure-sub);
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.md-product-tour .md-product-copy p {
  max-width: var(--measure-note);
  padding-top: 0.2em;
  font-size: clamp(16px, 1.15vw, 17px);
}

/* The screen on a quiet plate: paper, a hairline, no glow. */
.md-product-tour .md-product-visual:has(> .ux) {
  border: 1px solid rgba(17, 13, 23, 0.08);
  border-radius: clamp(16px, 1.6vw, 22px);
  background: #f3f0ea;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.md-product-tour .md-product-visual:has(> .ux)::before { display: none; }

.md-product-tour + .md-cap,
.pt-alma-tour + .md-cap,
.rs-cosmo-tour + .md-cap {
  width: auto;
  max-width: var(--measure-text);
  margin: 16px 0 0;
}

/* Disclosures read as rows, like the FAQ. */
.pt-doctor {
  margin-top: clamp(40px, 4.4vw, 64px);
  background: none;
  border-top: 1px solid rgba(17, 13, 23, 0.14);
  border-bottom: 1px solid rgba(17, 13, 23, 0.14);
  border-radius: 0;
}
.pt-alma-tour + .md-cap + .pt-doctor { margin-top: clamp(40px, 4.4vw, 64px); }
.pt-doctor summary { padding: 20px 0; font-size: 17px; }
.pt-doctor-body { padding: 0 0 28px; }

/* Pacientes · the three moments as an index: when and what on the left, the answer on the right. */
.pt-moment-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid rgba(17, 13, 23, 0.14);
}
.pt-moment {
  display: grid;
  grid-template-columns: var(--ed-split);
  grid-template-areas:
    "when body"
    "title body"
    ". flag"
    ". link";
  grid-template-rows: auto 1fr auto auto;
  column-gap: var(--ed-gap);
  row-gap: 10px;
  padding: clamp(28px, 3vw, 40px) 0;
  background: none;
  border-top: 1px solid rgba(17, 13, 23, 0.14);
  border-radius: 0;
}
.pt-moment:not(:has(> .pt-moment-flag)) {
  grid-template-areas:
    "when body"
    "title body"
    ". link";
  grid-template-rows: auto 1fr auto;
}
.pt-moment--urgent { background: none; border-top-color: var(--ink); }
.pt-moment-when { grid-area: when; }
.pt-moment h3 {
  grid-area: title;
  font-size: clamp(28px, 2.9vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.pt-moment > p:not(.pt-moment-when):not(.pt-moment-flag) {
  grid-area: body;
  max-width: var(--measure-note);
  padding-top: 0.15em;
  font-size: clamp(16px, 1.15vw, 17px);
}
.pt-moment-flag {
  grid-area: flag;
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: 14px;
}
.pt-moment-flag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  vertical-align: 0.12em;
  background: var(--blue);
}
.pt-moment-link { grid-area: link; margin-top: 0; padding-top: 6px; }

/* Pacientes · hero: the people around the tumor as quiet labels, not chips. */
.pt-care-node {
  padding: 6px 11px;
  background: rgba(255, 253, 249, 0.72);
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  font-size: clamp(13px, 0.95vw, 14px);
}
.pt-care-node--d { background: var(--blue); }
.pt-hero .pt-link-quiet { font-size: 16px; font-weight: 500; color: var(--blue); }
.pt-hero .pt-link-quiet:hover { color: var(--blue-dark); }

@media (max-width: 860px) {
  .pt-head:has(> .pt-lede),
  .md-product-tour .md-product-copy { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .pt-head:has(> .pt-lede) > .pt-lede { grid-column: 1; }
  .pt-moment {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "when" "title" "body" "flag" "link";
    grid-template-rows: none;
  }
}

/* Pacientes · Un mismo tumor, dos lecturas. Two stacks of data layers on one baseline; drawn by pacientes-reads.js. */
.pt-reads-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  margin-top: clamp(44px, 5vw, 72px);
  border-top: 1px solid rgba(17, 13, 23, 0.14);
}
.pt-read {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  margin: 0;
  padding: 22px calc(var(--ed-gap) / 2) 0 0;
  min-width: 0;
}
.pt-read + .pt-read {
  padding: 22px 0 0 calc(var(--ed-gap) / 2);
  border-left: 1px solid rgba(17, 13, 23, 0.14);
}

.pt-read-k { margin: 0; font-size: 13px; color: var(--ink-muted); }
.pt-read--omica .pt-read-k { color: var(--ink); }
.pt-read-count { margin: 8px 0 0; font-size: 14px; color: var(--ink-muted); }
.pt-read-count b {
  margin-right: 0.2em;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: var(--weight-headline);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.pt-read-stage { position: relative; height: clamp(420px, 54vh, 580px); margin-top: 20px; }
.pt-read-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.pt-read-layers { margin: 0; padding: 0; list-style: none; }
.pt-reads:not(.is-live) .pt-read-stage canvas,
.pt-reads:not(.is-live) .pt-read-layers { visibility: hidden; }
.pt-layer {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: var(--on, 0);
  transform: translateY(-50%);
}
.pt-layer strong { font-size: 14.5px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.pt-layer span { font-size: 13px; line-height: 1.3; color: var(--ink-muted); }
.pt-layer--same strong { font-weight: 400; color: var(--ink-muted); }
.pt-layer--same span { color: rgba(17, 13, 23, 0.4); }

.pt-read-gain {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 13, 23, 0.14);
}
.pt-reads.is-live .pt-read-gain { opacity: var(--gains, 0); transition: opacity 0.3s linear; }
.pt-read-gk { margin: 0 0 10px; font-size: 13px; color: var(--ink-muted); }
.pt-read-gp { max-width: 30em; margin: 0; font-size: clamp(16px, 1.2vw, 17.5px); line-height: 1.5; color: var(--ink-muted); }
.pt-read-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 1.45;
  color: var(--ink);
}
.pt-read-pillars b { display: block; margin-bottom: 4px; font-weight: 500; }
.pt-read-pillars b::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  vertical-align: 1px;
  background: var(--pillar, var(--ink));
}
.pt-read-pillars [data-pillar="entender"] { --pillar: #e8745c; }
.pt-read-pillars [data-pillar="seguir"] { --pillar: var(--blue); }

.pt-reads-cap { max-width: 44em; margin: 28px 0 0; font-size: 12px; line-height: 1.5; color: rgba(17, 13, 23, 0.42); }

@media (max-width: 860px) {
  .pt-reads-pair { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .pt-read,
  .pt-read + .pt-read { grid-row: auto; display: block; padding: 22px 0 0; }
  .pt-read + .pt-read { margin-top: 56px; border-left: 0; border-top: 1px solid rgba(17, 13, 23, 0.14); }
  .pt-read .pt-read-stage { height: 250px; }
  .pt-read--omica .pt-read-stage { height: 500px; }
  .pt-read-pillars { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pt-layer strong { font-size: 13.5px; }
  .pt-layer span { font-size: 12px; }
}

.pt-read--omica .pt-read-gp { color: var(--ink); }

/* ALMA · Cómo empieza: the steps close the program, under the tour. */
.pt-alma-how {
  margin-top: clamp(64px, 7vw, 104px);
  padding-top: 22px;
  border-top: 1px solid rgba(17, 13, 23, 0.14);
}
.pt-alma-how-head {
  display: grid;
  grid-template-columns: var(--ed-split, minmax(0, 7fr) minmax(0, 5fr));
  column-gap: var(--ed-gap, clamp(40px, 6vw, 112px));
  align-items: baseline;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.pt-alma-how-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: var(--weight-headline);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pt-alma-how-head p { max-width: var(--measure-note); margin: 0; font-size: clamp(16px, 1.2vw, 17.5px); line-height: 1.55; color: var(--ink-muted); }
.pt-alma-how + .pt-doctor { margin-top: clamp(48px, 5vw, 72px); }

@media (max-width: 860px) {
  .pt-alma-how-head { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
}

/* ALMA · four steps: the tab rail splits in quarters. */
.pt-alma-tour .md-product-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pt-alma-tour .md-product-tabs::after { width: 25%; }
.pt-lined-tour .md-product-tabs { column-gap: clamp(20px, 2.4vw, 40px); }
.pt-lined-tour .md-product-tabs button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 8px;
  align-items: baseline;
  align-content: start;
  padding-bottom: 20px;
  text-align: left;
}
.pt-lined-tour .md-product-tabs button b { font-size: 17px; }
.pt-lined-tour .pt-tab-more { font-style: normal; }
.pt-lined-tour .pt-tab-line {
  grid-column: 2;
  max-width: 26ch;
  color: rgba(17, 13, 23, 0.46);
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
  transition: color 0.3s ease;
}
.pt-lined-tour .md-product-tabs button.is-active .pt-tab-line { color: rgba(17, 13, 23, 0.72); }
.pt-lined-tour .md-product-panels { margin-top: clamp(28px, 3vw, 44px); }
.pt-lined-tour .md-product-panel,
.pt-lined-tour .md-product-visual { min-width: 0; }

/* ── Alma · Conectar: findings from separate layers meet in one reading ── */
.vg-link { position: absolute; inset: 0; display: grid; grid-template-columns: 300px minmax(56px, 1fr) 320px; align-items: center; padding: 0 8%; }
.vg-evid { display: flex; flex-direction: column; height: 312px; }
.vg-evid > .vg-k { height: 26px; color: var(--v-4); font-size: 11.5px; }
.vg-evid ul { display: grid; gap: 12px; }
.vg-evid li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  height: 52px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--v-raised);
  box-shadow: 0 0 0 1px oklch(0.25 0.02 85 / 0.07), 0 1px 2px oklch(0.25 0.02 85 / 0.04);
}
.vg-evid li > i { width: 10px; height: 10px; background: var(--v-ink); }
.vg-evid li[data-layer="genome"] > i { background: #e8745c; }
.vg-evid li[data-layer="expr"] > i { background: #d9a37f; }
.vg-evid li[data-layer="cells"] > i { background: linear-gradient(135deg, #6fb6a0 50%, #9a7fd1 50%); }
.vg-evid li[data-layer="ihc"] > i { background: #925834; }
.vg-evid li div { display: flex; flex-direction: column; gap: 2px; min-width: 0; white-space: nowrap; }
.vg-evid li span { color: var(--v-4); font-size: 11px; }
.vg-evid strong { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; }
.vg-synth { position: relative; padding: 22px 24px 20px; }
.vg-synth .vg-title { margin-top: 8px; font-size: 20px; line-height: 1.25; }
.vg-synth > p:not(.vg-ai) { margin-top: 8px; color: var(--v-2); font-size: 14px; line-height: 1.5; }
.vg-synth .vg-ai { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--v-hair); font-size: 12px; }
.md-product-panel.is-animating .vg-evid li { animation: vg-lift 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.md-product-panel.is-animating .vg-evid li:nth-child(2) { animation-delay: 0.07s; }
.md-product-panel.is-animating .vg-evid li:nth-child(3) { animation-delay: 0.14s; }
.md-product-panel.is-animating .vg-evid li:nth-child(4) { animation-delay: 0.21s; }
.vg.is-tight .vg-link { grid-template-columns: 260px minmax(40px, 1fr) 300px; padding: 0 4%; }
.vg.is-mid .vg-link { grid-template-columns: 230px minmax(28px, 1fr) 260px; padding: 0 4%; }
.vg.is-mid .vg-synth .vg-src { display: none; }
.vg.is-compact .vg-link { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 14px; padding: 0 7%; }
.vg.is-compact .vg-link .vg-wires,
.vg.is-compact .vg-evid > .vg-k,
.vg.is-compact .vg-synth .vg-src { display: none; }
.vg.is-compact .vg-evid { height: auto; }
.vg.is-compact .vg-evid ul { gap: 6px; }
.vg.is-compact .vg-evid li { height: 44px; }
@media (max-width: 560px) {
  .pt-lined-tour .md-product-tabs button { font-size: 12.5px; }
}
/* The active tab's line, mirrored by medicos.js into the flow under the rail on small screens. */
.pt-tab-sub { display: none; }

@media (max-width: 720px) {
  .pt-lined-tour .md-product-tabs { column-gap: 8px; }
  .pt-lined-tour .md-product-tabs button { display: flex; align-items: flex-end; min-height: 44px; padding-bottom: 14px; }
  .pt-lined-tour .md-product-tabs button b { font-size: 14px; white-space: nowrap; }
  .pt-lined-tour .md-product-tabs button span { display: none; }
  .pt-lined-tour .pt-tab-line,
  .pt-lined-tour .pt-tab-more { display: none; }
  .pt-lined-tour .pt-tab-sub {
    display: block;
    max-width: 34em;
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(17, 13, 23, 0.72);
  }
  .pt-lined-tour .md-product-panels { margin-top: clamp(22px, 6vw, 32px); }
}

/* Phones: the labels keep their natural width and the rail scrolls, so no label is squeezed or clipped. */
@media (max-width: 560px) {
  .pt-lined-tour .md-product-tabs {
    display: flex;
    column-gap: 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .pt-lined-tour .md-product-tabs::-webkit-scrollbar { display: none; }
  .pt-lined-tour .md-product-tabs.is-scrollable:not(.is-end) {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }
  .pt-lined-tour .md-product-tabs::after { display: none; }
  .pt-lined-tour .md-product-tabs button { flex: 0 0 auto; padding-inline: 0; scroll-snap-align: start; }
  .pt-lined-tour .md-product-tabs button.is-active { box-shadow: inset 0 -1px 0 var(--ink); }
  .pt-lined-tour .md-product-tabs button:focus-visible { outline-offset: -2px; }
}

/* ALMA · Cómo empieza: four steps on one connected track, on a warm panel. */
.pt-alma-how {
  --step-gap: clamp(20px, 2.4vw, 36px);
  padding: clamp(28px, 3.6vw, 52px);
  border-top: 0;
  border-radius: clamp(20px, 2vw, 28px);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(255, 120, 95, 0.12), transparent 70%),
    radial-gradient(50% 80% at 0% 100%, rgba(48, 27, 235, 0.07), transparent 70%),
    var(--pt-warm);
}
.pt-alma-how .pt-step-list { gap: 32px var(--step-gap); }
.pt-alma-how .pt-step-list li { position: relative; gap: 10px; padding-top: 0; border-top: 0; }
.pt-alma-how .pt-step-list li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 48px;
  right: calc(-1 * var(--step-gap) + 12px);
  height: 1px;
  background: rgba(17, 13, 23, 0.16);
}
.pt-alma-how .pt-step-list li:last-child::before { display: none; }
.pt-alma-how .pt-step-n {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(17, 13, 23, 0.16);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}
.pt-alma-how .pt-step-list li:first-child .pt-step-n {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(48, 27, 235, 0.12);
  color: #fff;
}
.pt-alma-how .pt-step-list h3 { margin-top: 14px; font-size: 19px; }
.pt-alma-how .pt-step-list p { font-size: 15.5px; }
.pt-alma-how .pt-step-list .pt-step-who {
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.8);
  box-shadow: inset 0 0 0 1px rgba(17, 13, 23, 0.08);
  font-size: 13px;
}

@media (max-width: 1000px) {
  .pt-alma-how .pt-step-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pt-alma-how .pt-step-list li { padding-left: 56px; }
  .pt-alma-how .pt-step-n { position: absolute; top: 0; left: 0; }
  .pt-alma-how .pt-step-list li::before { top: 48px; bottom: -16px; left: 18px; right: auto; width: 1px; height: auto; }
  .pt-alma-how .pt-step-list h3 { margin-top: 6px; }
  .pt-alma-how .pt-step-list .pt-step-who { margin-top: 4px; }
}

/* Pacientes · moments: the closing CTA as three separate situations, on a warm panel. */
.pt-moments-panel {
  padding: clamp(28px, 3.6vw, 52px);
  border-radius: clamp(20px, 2vw, 28px);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(255, 120, 95, 0.12), transparent 70%),
    radial-gradient(50% 80% at 0% 100%, rgba(48, 27, 235, 0.07), transparent 70%),
    var(--pt-warm);
}
.pt-moments .pt-head { margin-bottom: clamp(28px, 3.2vw, 44px); }
.pt-moments .pt-moment-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  border-bottom: 0;
}
.pt-moments .pt-moment,
.pt-moments .pt-moment:not(:has(> .pt-moment-flag)) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.2vw, 30px);
  background: rgba(255, 253, 249, 0.78);
  border: 0;
  border-radius: clamp(14px, 1.4vw, 18px);
  box-shadow: inset 0 0 0 1px rgba(17, 13, 23, 0.06), 0 1px 2px rgba(44, 39, 31, 0.04);
}
.pt-moments .pt-moment-when { font-size: 14px; color: var(--ink-muted); }
.pt-moments .pt-moment--urgent .pt-moment-when { color: var(--blue); }
.pt-moments .pt-moment h3 { font-size: clamp(22px, 1.9vw, 26px); }
.pt-moments .pt-moment > p:not(.pt-moment-when):not(.pt-moment-flag) {
  max-width: 34ch;
  padding-top: 0;
  font-size: 15.5px;
}
.pt-moments .pt-moment-flag { margin-top: 2px; font-size: 13.5px; }
.pt-moments .pt-moment-link { margin-top: auto; padding-top: 14px; }

@media (max-width: 1000px) {
  .pt-moments .pt-moment-list { grid-template-columns: minmax(0, 1fr); }
}

/* Pacientes · FAQ: a way out for the question that isn't listed. */
.pt-faq .pt-head { position: sticky; top: 120px; }
.pt-faq-ask {
  max-width: 30ch;
  margin-top: clamp(24px, 2.6vw, 36px);
  padding-top: 18px;
  border-top: 1px solid rgba(17, 13, 23, 0.14);
}
.pt-faq-ask p { font-size: 16px; line-height: 1.5; color: var(--ink-muted); }
.pt-faq-ask .pt-moment-link { display: inline-block; margin-top: 12px; padding-top: 0; }
@media (max-width: 860px) {
  .pt-faq .pt-head { position: static; }
}
.pt-faq .bb-faq-list details p a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ── Atla · Oncología: the patient list, watched against the record and the trial registries ── */
.vg-pts-body { flex: 1; display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 0; }
.vg-pts-list { min-width: 0; padding: 14px 0; border-right: 1px solid var(--v-hair); background: oklch(0.985 0.003 85); }
.vg-pts-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 18px 8px; }
.vg-pts-h .vg-m { color: var(--v-4); font-family: var(--font-mono); font-size: 11px; }
.vg-pts-list ul { display: grid; gap: 2px; padding: 0 8px; }
.vg-pts-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border-radius: 8px; }
.vg-pts-list li.is-on { background: var(--v-raised); box-shadow: 0 0 0 1px oklch(0.25 0.02 85 / 0.07), 0 1px 2px oklch(0.25 0.02 85 / 0.04); }
.vg-pts-list li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vg-pts-list li b { color: var(--v-ink); font-size: 13px; }
.vg-pts-list li span { overflow: hidden; color: var(--v-4); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.vg-pts-list li em { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; background: var(--v-canvas); color: var(--v-2); font-size: 11px; white-space: nowrap; }
.vg-pts-list li em::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: #e8745c; }
.vg-pts-list li em.is-acc { background: var(--v-acc-soft); color: var(--v-acc); }
.vg-pts-list li em.is-acc::before { background: var(--v-acc); }
.vg-pts-list li.is-calm em { background: transparent; color: var(--v-4); }
.vg-pts-list li.is-calm em::before { background: var(--v-line); }
.vg-pts-case { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px 24px 14px; }
.vg-pts-alert { padding: 14px 18px; border-radius: 10px; background: var(--v-acc-soft); }
.vg-pts-alert .vg-k { color: var(--v-acc); font-size: 11.5px; }
.vg-pts-alert .vg-title { margin-top: 6px; font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; }
.vg-pts-src { display: block; margin-top: 8px; color: var(--v-3); font-family: var(--font-mono); font-size: 11px; }
.vg-pts-qa { display: flex; flex-direction: column; gap: 8px; }
.vg-pts-q { align-self: flex-end; max-width: 70%; padding: 8px 12px; border-radius: 10px 10px 3px 10px; background: var(--v-ink); color: #fff; font-size: 13px; }
.vg-pts-a { color: var(--v-2); font-size: 14px; line-height: 1.6; letter-spacing: -0.005em; }
.vg-pts-a i,
.vg-pts-cites i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--v-acc-soft); color: var(--v-acc); font-family: var(--font-mono); font-size: 9.5px; vertical-align: 1px; }
.vg-pts-cites { display: flex; flex-wrap: wrap; gap: 6px; }
.vg-pts-cites li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--v-line); color: var(--v-3); font-size: 11px; white-space: nowrap; }
.vg-pts-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--v-hair); }
.vg-pts-foot .vg-ai { min-width: 0; font-size: 11.5px; }
.md-product-panel.is-animating .vg-pts-alert { animation: vg-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.md-product-panel.is-animating .vg-pts-q { animation: vg-lift 0.6s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both; }
.md-product-panel.is-animating .vg-pts-a,
.md-product-panel.is-animating .vg-pts-cites { animation: vg-fade 0.6s 0.45s both; }
.vg.is-tight .vg-pts-body { grid-template-columns: 296px minmax(0, 1fr); }
.vg.is-tight .vg-mets small { display: none; }
.vg.is-tight .vg-pts-src,
.vg.is-tight .vg-pts-list li:nth-child(n + 6) { display: none; }
.vg.is-mid .vg-pts-body { grid-template-columns: 220px minmax(0, 1fr); }
.vg.is-mid .vg-pts-list li { flex-direction: column; align-items: flex-start; gap: 6px; }
.vg.is-mid .vg-pts-src,
.vg.is-mid .vg-pts-list li span,
.vg.is-mid .vg-pts-list li:nth-child(n + 5),
.vg.is-mid .vg-pts-foot .vg-ai { display: none; }
.vg.is-mid .vg-pts-case { gap: 14px; padding: 16px 18px 14px; }
.vg.is-mid .vg-pts-alert .vg-title { font-size: 17px; }
.vg.is-mid .vg-pts-a { font-size: 13.5px; line-height: 1.55; }
.vg.is-mid .vg-pts-foot { justify-content: flex-end; }
.vg.is-compact .vg-pts-body { grid-template-columns: minmax(0, 1fr); }
.vg.is-compact .vg-pts-list,
.vg.is-compact .vg-pts-cites,
.vg.is-compact .vg-pts-src { display: none; }
.vg.is-compact .vg-pts-case { gap: 12px; padding: 14px; }
.vg.is-compact .vg-pts-alert { padding: 12px 14px; }
.vg.is-compact .vg-pts-alert .vg-title { font-size: 15.5px; }
.vg.is-compact .vg-pts-q { max-width: 85%; font-size: 12.5px; }
.vg.is-compact .vg-pts-a { font-size: 13px; line-height: 1.5; }
.vg.is-compact .vg-pts-foot .vg-ai { display: none; }
.vg.is-compact .vg-pts-foot { justify-content: flex-end; }

/* ── Atla · Patología, demo cut: one slide, four measurements, one action ── */
.vg-path .vg-path-body { grid-template-columns: minmax(0, 1fr) 300px; }
.vg.is-tight .vg-path .vg-path-body { grid-template-columns: minmax(0, 1fr) 272px; }
.vg.is-mid .vg-path .vg-path-body { grid-template-columns: minmax(0, 1fr) 220px; }
.vg.is-compact .vg-path .vg-path-body { grid-template-columns: minmax(0, 1fr); }
.vg-path .vg-path-side { padding: 18px 20px 16px; }
.vg-path .vg-mets { margin-top: 10px; }
.vg-path .vg-mets li { padding: 11px 0 12px; }
.vg-path .vg-mets li > div { align-items: baseline; color: var(--v-2); font-size: 13px; }
.vg-path .vg-mets b { font-family: var(--font-sans); font-size: 20px; letter-spacing: -0.02em; }
.vg-path .vg-mets li > i { margin-top: 8px; }
.vg-path .vg-mets small { margin-top: 6px; font-size: 11px; }
.vg-path .vg-path-side .vg-ai { margin-top: auto; padding-top: 12px; }
.vg.is-tight .vg-path .vg-mets li { padding: 9px 0 10px; }
.vg.is-compact .vg-path .vg-path-side { padding: 10px 14px; }
.vg.is-compact .vg-path .vg-mets li { padding: 7px 0 8px; }
.vg.is-compact .vg-path .vg-mets b { font-size: 16px; }

/* ── Atla · Oncología, demo cut: five patients, more air ── */
.vg-pts-list li { padding: 12px 10px; }

/* ── Comité: the evidence story stands in for the board's screen ── */
.md-product-panel > .ev-stage { min-width: 0; }
.ev-stage.ev-reset,
.ev-stage.ev-reset * { transition: none !important; animation: none !important; }

/* ── Bento · audit trail: each entry lands as the card scrolls in ── */
.ev-viz-log ol { display: grid; gap: 4px; width: 100%; max-width: 300px; margin: 0; padding: 0; list-style: none; }
.ev-viz-log li {
  --k: 0;
  display: grid;
  grid-template-columns: 34px 78px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(44, 39, 31, 0.08);
  color: var(--ink-muted);
  font-size: 10.5px;
  white-space: nowrap;
  opacity: clamp(0.2, calc((var(--p) - 0.3 - var(--k) * 0.18) * 6), 1);
}
.ev-viz-log li:nth-child(2) { --k: 1; }
.ev-viz-log li:nth-child(3) { --k: 2; }
.ev-viz-log time { font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); }
.ev-viz-log b { overflow: hidden; font-weight: 500; color: var(--ink); text-overflow: ellipsis; }
.ev-viz-log li:nth-child(2) b { color: var(--blue); }
.ev-viz-log span { overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 560px) {
  .md-product-panel > .ev-stage .ev-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .md-product-panel > .ev-stage .ev-sources li { padding: 10px 12px; }
  .md-product-panel > .ev-stage .ev-sources span,
  .md-product-panel > .ev-stage .ev-sources .ev-meta { display: none; }
  .md-product-panel > .ev-stage .ev-sources strong { font-size: 13px; line-height: 1.3; }
}
