/* Research page — Figma "Jiva_R2" (node 19050:5563), 1728-wide frame. */

/* ═══ Hero ════════════════════════════════════════════
   Full-screen banner (100svh), 10px side gutters; copy block bottom-left
   (x=66, bottom 58px), 16px radius. */
.research { width: 100%; max-width: none; margin: 0; padding: 0; }
body.page-research { background: #ffffff; }
.research__hero {
  position: relative;
  width: calc(100% - 20px);
  max-width: 1712px;             /* the Figma frame: never wider… */
  max-height: 948px;             /* …or taller, and centred */
  height: calc(100vh - 84px);    /* starts 74px down: header 12px top + 50px tall + 12px gap; fills the rest less a 10px bottom border */
  height: calc(100svh - 84px);   /* svh keeps it stable under mobile browser bars */
  min-height: 560px;
  margin: 74px auto 10px;
  overflow: hidden;
  background: #0a2633;
  color: #ffffff;
  border-radius: 16px;
}
.research__hero::after {          /* Figma: a 3.6°-tilted gradient, transparent → black, bleeding past the bottom edge */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -85px;
  width: 108%;
  height: 623px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);
  transform: translateX(-50%) rotate(3.6deg);
  pointer-events: none;
}
.research__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.research__hero-copy {
  position: absolute;
  left: 56px;
  bottom: 58px;
  z-index: 1;
  width: 512px;
  max-width: calc(100% - 112px);
}
.research__eyebrow {
  margin: 0 0 12px;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  opacity: 0.8;
}
.research__title {
  margin: 0 0 20px;
  font-weight: 450;
  font-size: 56px;
  line-height: 58px;
  letter-spacing: 0;
  color: #ffffff;
}
.research__lede {
  width: 479px;
  max-width: 100%;
  margin: 0;
  font-weight: 450;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.4px;
  color: #ffffff;
  opacity: 0.9;
}

/* ═══ Intro — "Answering Questions is Hard. Asking Them is Harder." ═══
   Figma 19257:32413: one 728px column, heading then three paragraphs, 220px
   under the hero. */
.research__intro {
  width: 728px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  padding: 120px 0 0;
  box-sizing: border-box;
}
.research__intro-title {
  margin: 0 0 40px;
  font-weight: 450;
  font-size: 34px;
  line-height: 44px;
  color: #0a2633;
}
.research__intro p {
  margin: 0 0 16px;
  font-weight: 450;
  font-size: 17px;
  line-height: 30px;
  letter-spacing: 0.4px;
  color: #0a2633;
  opacity: 0.8;
}
.research__intro p:last-child { margin-bottom: 0; }
.research__intro p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.research__intro p a:hover { text-decoration-thickness: 2px; }
.research__intro-sub {              /* "Introducing Jiva" / "The Same Patient…": 20/28 Medium, 48px below the paragraph above */
  margin: 48px 0 16px;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0.4px;
  color: #0a2633;
}

@media (max-width: 860px) {
  .research__hero { height: calc(100vh - 90px); height: calc(100svh - 90px); margin-top: 80px; }   /* mobile pill is 56px tall: 12 + 56 + 12 */
  .research__hero-copy { left: 24px; bottom: 32px; max-width: calc(100% - 48px); }   /* the floating "Book a demo" stays hidden while the hero is on screen */
  .research__title { font-size: 40px; line-height: 44px; }
  .research__intro { padding-top: 96px; }
  .research__intro-title { font-size: 28px; line-height: 36px; }
}

/* ═══ Hero chat ═══════════════════════════════════════
   Figma 19257:32424. Right column, 48px in from the hero's edge. The whole
   stack is translated so the newest message always sits on the bottom;
   js/research.js reveals one message at a time and the stack glides up.
   Jiva: dark glass bubble + gradient-video avatar. Patient: white bubble. */
.hero-chat {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 450px;
  height: 600px;                 /* the Figma 450 × 600 window the messages live in */
  max-height: 100%;
  overflow: hidden;
  /* No mask here on purpose: a masked ancestor is a "backdrop root", so the bubbles' backdrop-filter
     would blur nothing. The top fade is done per layer instead (--fade, set by js/research.js). */
  pointer-events: none;
}
.hero-chat__list {
  position: absolute;
  left: 19px;
  right: 48px;
  bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-chat__msg {
  --o: 0;                                  /* layer opacity: 0 hidden → --fade (1, or less near the top of the window) */
  position: relative;
  display: flex;
  transform: translateY(18px);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-chat__msg.is-shown { --o: var(--fade, 1); transform: none; }
.hero-chat__bg,
.hero-chat__text,
.hero-chat__avatar {
  opacity: var(--o);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-chat__msg--jiva { justify-content: flex-start; padding-left: 49px; }
.hero-chat__msg--patient { justify-content: flex-end; }

.hero-chat__bubble {
  position: relative;
  box-sizing: border-box;
  width: var(--w);
  padding: 12px calc(var(--w) - 16px - var(--tw)) 12px 16px;   /* text column is exactly --tw wide, as in the design */
  border-radius: 16px 16px 4px 16px;
}
.hero-chat__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.hero-chat__text {
  position: relative;
  margin: 0;
  font-weight: 450;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.4px;
}
.hero-chat__msg--jiva .hero-chat__bg {
  background: rgba(3, 3, 3, 0.3);
  box-shadow: inset 0 0 0 1px rgba(80, 80, 80, 0.46);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.hero-chat__msg--jiva .hero-chat__text { color: #ffffff; }
.hero-chat__msg--patient .hero-chat__bg {
  background: #ffffff;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}
.hero-chat__msg--patient .hero-chat__text { color: #000000; opacity: calc(var(--o) * 0.8); }

.hero-chat__avatar {
  position: absolute;
  left: 0;
  bottom: -5px;
  display: block;
  width: 42px;
  height: 42px;
  isolation: isolate;
}
/* blur 1: the 42px halo (10%) · blur 2: the 32px disc (30%), both #A4CAD6 → #128FB4 */
.hero-chat__avatar::before,
.hero-chat__avatar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;                       /* behind the ring and the video, never over it */
  background: linear-gradient(to bottom, #a4cad6, #128fb4);
  filter: blur(2px);
}
.hero-chat__avatar::before { inset: 0; opacity: 0.1; }
.hero-chat__avatar::after { inset: 5px; opacity: 0.3; }
/* border: 1px angular-gradient ring on the 32px disc (10%) */
.hero-chat__ring {
  position: absolute;
  inset: 5px;
  box-sizing: border-box;
  padding: 1px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #a6c7cc 0deg, #78aab2 32.7deg, #142f3e 131.5deg, #5c94a3 226.6deg, #ffffff 297.2deg, #a6c7cc 360deg);
  opacity: 0.1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.hero-chat__video {
  position: absolute;
  z-index: 1;
  inset: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
@media (max-width: 979px) { .hero-chat { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-chat__list, .hero-chat__msg, .hero-chat__bg, .hero-chat__text, .hero-chat__avatar { transition: none; }
}

/* Floating "Book a demo" stays out of sight until the hero has been scrolled past. */
html.js .cta__btn--sticky.is-hero-hidden {
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  pointer-events: none;
}

/* ═══ Benchmark chart ═════════════════════════════════
   Figma node 19050:8739. Tabs sit 220px under the intro; the 1.2px rule
   runs edge to edge. Rows: 72px tile, 52px gap, then name (24) / bar (28);
   96px pitch. Bars fill via --f (set by js/research.js). */
.bm { margin-top: 120px; padding-bottom: 19px; /* frame bottom 199 − .cta margin 180 */ }
.bm__tabbar { border-bottom: 1.2px solid #e9ecec; }
.bm__tabs {
  display: flex;
  gap: 32px;                 /* 54px between tab labels: 11 + 32 + 11 */
  width: 1240px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.bm__tab {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
  height: 40px;
  padding: 0 16px 0 11px;
  border: 0;
  background: none;
  font: inherit;
  color: #0a2633;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.bm__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.2px;
  height: 1.2px;
  background: #0a2633;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.bm__tab[aria-selected="true"]::after { transform: scaleX(1); }
.bm__tab:focus-visible { outline: 2px solid #0a2633; outline-offset: -2px; border-radius: 6px; }
.bm__tab-label {
  margin-top: 2px;
  font-weight: 500;
  font-size: 15px;
  line-height: normal;
  letter-spacing: 0.4px;
  opacity: 0.64;
  transition: opacity 0.2s ease;
}
.bm__tab[aria-selected="true"] .bm__tab-label,
.bm__tab:hover .bm__tab-label { opacity: 1; }
.bm__badge {
  font-family: 'Inter', 'PP Neue Montreal', sans-serif;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 2px 5px;
  box-sizing: border-box;
  background: #ebebeb;
  border: 1px solid rgba(102, 125, 136, 0.12);
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  line-height: 20px;
  color: rgba(10, 38, 51, 0.6);
  transition: background-color 0.2s ease;
}
.bm__tab[aria-selected="true"] .bm__badge { background: #f3f4f5; }

.bm__panel { width: 1240px; max-width: 100%; margin: 0 auto; box-sizing: border-box; }
/* Two measures still under clinician review (Figma 19375:51761 / 19375:51766): 600 × 228 cards, 80px under the rows. */
.bm__cards { display: flex; gap: 40px; margin-top: 80px; }
.bm__card {
  flex: 1 1 0;
  max-width: 600px;
  min-height: 228px;
  box-sizing: border-box;
  padding: 24px 32px 28px;
  background: #f7f9fb;
  border-radius: 16px;
  color: #0a2633;
}
.bm__card-title { margin: 0; font-weight: 500; font-size: 18px; line-height: 28px; letter-spacing: 0.4px; }
.bm__card-q { max-width: 517px; margin: 8px 0 0; font-weight: 450; font-size: 14px; line-height: 20px; letter-spacing: 0.4px; opacity: 0.5; }
.bm__card-status { max-width: 377px; margin: 24px 0 0; font-weight: 450; font-size: 17px; line-height: 28px; letter-spacing: 0.4px; opacity: 0.8; }
@media (max-width: 860px) {
  .bm__cards { flex-direction: column; gap: 16px; margin-top: 48px; }
  .bm__card { flex: none; max-width: none; min-height: 0; padding: 20px; }   /* flex: none, or the row's 0 basis collapses the card to nothing once the cards stack */
  .bm__card-status { margin-top: 16px; font-size: 16px; line-height: 24px; }
}

.bm__desc {
  max-width: 760px;
  min-height: 56px;          /* two lines, so switching tabs never shifts the rows */
  margin: 40px 0 48px;
  font-weight: 450;
  font-size: 17px;
  line-height: 28px;
  letter-spacing: 0.4px;
  color: #0a2633;
  opacity: 0.8;
}
.bm__rows { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; list-style: none; }
.bm__row { display: flex; align-items: flex-start; gap: 52px; height: 72px; }
.bm__tile {
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    inset 0 -2px 0 rgba(10, 13, 18, 0.05),
    inset 0 0 0 1px rgba(10, 13, 18, 0.18),
    0 2px 2px rgba(10, 13, 18, 0.05);
}
.bm__tile img { display: block; max-width: none; }
.bm__body { flex: 1 1 auto; min-width: 0; padding-top: 6px; }
.bm__name {
  display: block;
  font-weight: 450;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.4px;
  color: #0a2633;
}
.bm__track { display: flex; align-items: center; height: 28px; margin-top: 2px; }
.bm__bar {
  --f: 0;
  flex: none;
  width: calc((100% - 56px) * var(--f));
  height: 28px;
  border-radius: 8px;
  background: #e6e9eb url("../Assets/Images/Research/bench-pattern.svg") 0 0 / 38px 28px repeat-x;
}
.bm__bar--jiva {
  background: url("../Assets/Images/Research/jiva-gradient.png") -10.54px -29.11px / calc(100% + 21.1px) 78.79px no-repeat;
}
.bm__val {
  margin-left: 16px;
  font-weight: 450;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.4px;
  color: #0a2633;
  white-space: nowrap;
}

@media (max-width: 1360px) {
  .bm__tabs, .bm__panel { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 860px) {
  .bm { margin-top: 96px; }
  .bm__tabs { overflow-x: auto; padding-left: 24px; padding-right: 24px; scrollbar-width: none; }
  .bm__tabs::-webkit-scrollbar { display: none; }
  .bm__panel { padding-left: 24px; padding-right: 24px; }
  .bm__row { gap: 16px; }
  .bm__tile { flex-basis: 48px; width: 48px; height: 48px; border-radius: 14px; }
  .bm__tile img { transform: scale(0.67); }
  .bm__row { height: 56px; }
  .bm__body { padding-top: 0; }
  .bm__name { font-size: 13px; line-height: 20px; }
  .bm__track { height: 24px; margin-top: 2px; }
  .bm__bar { height: 24px; }
  .bm__val { font-size: 16px; margin-left: 10px; }
  .bm__bar { width: calc((100% - 46px) * var(--f)); }
}

/* ═══ Individual Case Reviews ═════════════════════════
   Figma node 19073:12323. Centred heading/copy, a specialty tab bar
   (only Cardiology is live) and a 1496px card: 48px header + 64px rows
   separated by 1.2px rules. Each row is one link; the whole row hovers. */
.cr { padding: 220px 0 0; }
.cr__title {
  margin: 0;
  text-align: center;
  font-weight: 450;
  font-size: 34px;
  line-height: 44px;
  color: #0a2633;
}
/* Figma 19257:35444 — one 728px column: two-line heading, 40px gap, four paragraphs */
.cr__intro {
  width: 728px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
}
.cr__intro .cr__title { margin: 0 0 40px; text-align: left; }
.cr__intro p {
  margin: 0 0 24px;
  font-weight: 450;
  font-size: 17px;
  line-height: 28px;
  letter-spacing: 0.4px;
  color: #0a2633;
  opacity: 0.8;
}
.cr__intro p:nth-of-type(4) { margin: -4px 0 0; }   /* design gap before the last paragraph is 20px */

.cr__tabs {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-left: calc(50% - 354px);   /* Cardiology tab starts 354px left of centre */
  box-sizing: border-box;
}
.cr__tab {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  flex-shrink: 0;
  height: 40px;
  padding: 0 11px;
  border: 0;
  background: none;
  font: inherit;
  color: #0a2633;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cr__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.2px;
  height: 1.2px;
  background: #0a2633;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.cr__tab[aria-selected="true"]::after { transform: scaleX(1); }
.cr__tab:disabled { cursor: default; }
.cr__tab:focus-visible { outline: 2px solid #0a2633; outline-offset: -2px; border-radius: 6px; }
.cr__tab-label {
  margin-top: 2px;
  font-weight: 500;
  font-size: 15px;
  line-height: normal;
  letter-spacing: 0.4px;
  opacity: 0.64;
}
.cr__tab[aria-selected="true"] .cr__tab-label { opacity: 1; }
.cr__soon {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-left: 8px;
  padding: 2px 5px;
  box-sizing: border-box;
  background: #ebebeb;
  border: 1px solid rgba(102, 125, 136, 0.12);
  border-radius: 6px;
  font-family: 'Inter', 'PP Neue Montreal', sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 20px;
  text-transform: uppercase;
  color: rgba(10, 38, 51, 0.6);
}

.cr__panel { margin-top: 48px; }
.cr__card {
  --cr-cols: minmax(0, 1fr) 137px 143px 160px 164px 141px;
  position: relative;
  width: min(1496px, calc(100% - 64px));
  margin: 0 auto;
  padding-bottom: 1px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 12px;
  font-family: 'Inter', 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 16px;
  color: #233c47;
}
.cr__card::after {            /* 1px outline drawn above the row backgrounds */
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #e9ecec;
  border-radius: 12px;
  pointer-events: none;
}
.cr__head,
.cr__row {
  display: grid;
  grid-template-columns: var(--cr-cols);
  align-items: center;
  padding-left: 28px;
  box-sizing: border-box;
}
.cr__head {
  position: relative;
  z-index: 2;
  height: 48px;
  background: rgba(245, 248, 250, 0.5);
  border-radius: 12px 12px 0 0;
}
.cr__th {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 12px;
  line-height: normal;
  color: #849299;
  white-space: nowrap;
}

.cr__help {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: url("../Assets/Images/Research/help-icon.svg") center / 16px 16px no-repeat;
  cursor: pointer;
}
.cr__help:hover,
.cr__help.is-tip-open,
.cr__help:focus-visible { background-image: url("../Assets/Images/Research/help-icon-active.svg"); }
.cr__help:focus-visible { outline: 2px solid #233c47; outline-offset: 2px; }
.cr__tip {
  position: absolute;
  top: 26px;
  left: 50%;
  z-index: 5;
  width: 273px;
  padding: 12px;
  box-sizing: border-box;
  transform: translateX(-50%);
  background: #233c47;
  border-radius: 8px;
  filter: drop-shadow(0 12px 8px rgba(10, 13, 18, 0.08)) drop-shadow(0 4px 3px rgba(10, 13, 18, 0.03)) drop-shadow(0 2px 1px rgba(10, 13, 18, 0.04));
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  text-align: left;
  white-space: normal;
  color: #eff1f2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}
.cr__tip p { margin: 0; }
.cr__tip p + p { margin-top: 12px; }
.cr__tip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: calc(50% - 8px);
  width: 16px;
  height: 8.51px;
  background: url("../Assets/Images/Research/tooltip-arrow.svg") center / 100% 100% no-repeat;
  transform: rotate(180deg);
}
.cr__help:hover .cr__tip,
.cr__help:focus-visible .cr__tip,
.cr__help.is-tip-open .cr__tip {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
/* last column: keep the tooltip inside the card, arrow still on the icon */
.cr__help--end .cr__tip { left: auto; right: var(--tip-r, -83px); transform: none; }
.cr__help--end .cr__tip::before { left: calc(100% - 16px + var(--tip-r, -83px)); }

.cr__row {
  height: 64px;
  border-top: 1.2px solid #e9ecec;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.cr__row:last-child { border-radius: 0 0 11px 11px; }
/* The table shows its first five cases only (the header is child 1, so rows are children 2–6). */
.cr__card > .cr__row:nth-child(n+7) { display: none; }
.cr__card > .cr__row:nth-child(6) { border-radius: 0 0 11px 11px; }
.cr__row:hover,
.cr__row:focus-visible { background: #f5f8fa; }
.cr__row:focus-visible { outline: 2px solid #233c47; outline-offset: -2px; }
.cr__cond { padding-right: 24px; font-weight: 500; }

.cr__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  background: #fafbfd;
  border: 1px solid #e9eaeb;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}
.cr__badge i { flex: none; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.cr__badge { color: #233c47; }
.cr__badge i { background: var(--dot); }
.cr__badge--emergency { --dot: #ff301e; }
.cr__badge--non-urgent { --dot: #1adc8a; }
.cr__badge--semi-urgent { --dot: #a077ff; }
.cr__badge--urgent { --dot: #ff9d25; }

/* Responsive — ≤1100px: fluid columns, headers wrap, no sideways scroll.
   ≤760px: each row turns into a card (label above value, the whole card
   stays one link) and the column definitions move into a disclosure. */
@media (max-width: 1100px) {
  .cr__panel { overflow: visible; padding: 0; margin-bottom: 0; }
  .cr__card { width: calc(100% - 48px); margin-left: auto; margin-right: auto; }
  .cr__card { --cr-cols: minmax(0, 1fr) 76px 84px 124px 124px 116px; }
  .cr__head,
  .cr__row { padding-left: 16px; }
  .cr__head { height: auto; min-height: 48px; padding-top: 8px; padding-bottom: 8px; }
  .cr__th { white-space: normal; line-height: 14px; padding-right: 8px; }
  .cr__cond { padding-right: 12px; }
}
@media (max-width: 760px) {
  .cr__card { width: calc(100% - 32px); padding: 0; background: none; border-radius: 0; }
  .cr__card::after { display: none; }
  .cr__head { display: none; }
  .cr__row {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 14px 16px;
    height: auto;
    margin-bottom: 12px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e9ecec;
    border-radius: 12px;
  }
  .cr__row:last-child { border-radius: 12px; }
  .cr__row .cr__cond { grid-column: 1 / -1; padding-right: 0; font-size: 15px; line-height: 20px; }
  .cr__row [data-label] { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .cr__row [data-label]::before {
    content: attr(data-label);
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: #849299;
  }
  .cr__row [data-label="Triage"] { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .cr { padding-top: 96px; }
  .cr__title { font-size: 28px; line-height: 36px; }
  .cr__intro .cr__title { margin-bottom: 24px; }
  .cr__tabs { width: max-content; padding-left: 24px; padding-right: 24px; }
  .cr__panel { margin-top: 32px; }
}

/* ═══ Column guide (phones) ═══════════════════════════
   The case-review table hides its header row on phones, so its column
   definitions move into a "How to read these columns" disclosure. */
.cr__legend { display: none; }
.cr__legend summary { cursor: pointer; }
@media (max-width: 760px) {
  .cr__legend {
    display: block;
    width: calc(100% - 32px);
    margin: 0 auto 16px;
    font-family: 'Inter', 'PP Neue Montreal', sans-serif;
    font-size: 13px;
    line-height: 20px;
    color: #233c47;
  }
  .cr__legend summary { padding: 8px 0; font-weight: 500; }
  .cr__legend dl { margin: 0; padding: 4px 0 8px; }
  .cr__legend dt { margin-top: 12px; font-weight: 500; }
  .cr__legend dd { margin: 0; color: #5f7480; }
}

/* ═══ Session explorer ═══════════════════════════════
   Figma 19329:47446 (card 1496 wide), tabs 19331:47665, header 19331:47662,
   transcript 19329:47448 (650 wide), panel 19329:47513 (720 wide, sticky).
   The transcript scrolls inside the card so the page stays short. */
/* The explorer now follows the intro copy ("…Here's how Jiva performs against Claude:"), so it sits close under it. */
.cx { padding: 0 0 0; margin-top: 120px; }
.cx .cr__panel { margin-top: 0; }
.cx .cr__ex { margin-top: 48px; }
.cr__ex {
  width: min(1496px, calc(100% - 64px));
  margin: 120px auto 0;
  scroll-margin-top: 88px;
  font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0a2633;
}
.cr__ex-pin {
  position: sticky;              /* tabs + consultation header stay under the site header; the dialog scrolls beneath them */
  top: 80px;
  z-index: 3;
  background: #ffffff;
  box-shadow: 0 -44px 0 44px #ffffff;   /* masks the strip above the pinned blocks (88px up to the page top) */
}
.cr__ex-tabs {
  display: flex;
  gap: 28px;
  padding-left: 48px;
}   /* 52px between labels (12px tab padding each side) */
.cr__ex-tab { height: 37px; padding: 0 12px; }
.cr__ex-tab::after { bottom: -1px; z-index: 1; }
.cr__ex-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e9ecec;
  border-top: 0;                 /* the consultation header above carries the top edge */
  border-radius: 0 0 16px 16px;
}
.cr__ex-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 102px;
  padding: 0 48px;
  border: 1px solid #e9ecec;
  box-sizing: border-box;
  background: #f5f8fa;
  border-radius: 16px 16px 0 0;
  font-family: 'Inter', 'PP Neue Montreal', sans-serif;
}
.cr__ex-title { margin: 0; font-weight: 500; font-size: 20px; line-height: 28px; color: #233c47; }
.cr__ex-sub { margin: 4px 0 0; font-size: 13px; line-height: 20px; color: #849299; }
.cr__ex-case { display: inline-flex; align-items: center; gap: 16px; font-size: 14px; color: #6c7d85; }
.cr__ex-case select {
  height: 44px;
  padding: 0 80px 0 16px;
  border: 1px solid #e3e6e8;
  border-radius: 8px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236c7d85' stroke-width='1.5'/%3E%3C/svg%3E") right 12px center no-repeat;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: #0a2633;
  cursor: pointer;
}
.cr__ex-case select:focus-visible { outline: 2px solid #233c47; outline-offset: 2px; }

.cr__ex-body {
  display: grid;
  grid-template-columns: minmax(0, 650fr) minmax(0, 720fr);
  column-gap: 30px;
  align-items: start;
  padding: 40px 41px 48px 41px;
}
.cr__ex-msgs {
  position: relative;            /* offsetParent for keepInView() */
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 2px 8px 2px 14px;     /* room on the left for the selected-turn dot */
  list-style: none;              /* the whole dialog is shown at full height; the page scrolls, and the panel on the right stays sticky */
}
.cr__ex-msgs:focus-visible { outline: 2px solid #233c47; outline-offset: 4px; border-radius: 8px; }
.cr__ex-msg {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 588px);
  align-items: center;
  cursor: pointer;
}
.cr__ex-who { padding-right: 12px; font-size: 13px; line-height: 18px; color: #6c7d85; text-align: right; }
.cr__ex-bubble {
  justify-self: start;
  margin: 0;
  padding: 12px 16px;
  background: #fafafa;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cr__ex-msg--patient .cr__ex-bubble { background: #fefbf4; border-color: #e6e3db; }
.cr__ex-msg:hover .cr__ex-bubble { border-color: #c9d1d4; }
.cr__ex-msg[aria-current] .cr__ex-bubble { border-color: #13526f; box-shadow: 0 0 0 3px rgba(19, 82, 111, 0.08); }
.cr__ex-msg[aria-current]::before {   /* Figma's hidden 6px dot beside the speaker label */
  content: "";
  position: absolute;
  left: -12px;
  top: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #13526f;
}
.cr__ex-retry { margin-left: 8px; padding: 4px 10px; border: 1px solid #e3e6e8; border-radius: 8px; background: #ffffff; font: inherit; cursor: pointer; }

.cr__ex-side { align-self: stretch; }   /* as tall as the transcript's row, so the sticky panel inside stops at its end: above the Full session review */
.cr__ex-side .cr__ex-panel { position: sticky; top: 232px; }   /* below the pinned tabs + head (125 + 101 = 226) */
.cr__ex-panel {
  padding: 27px 32px 28px;
  background: #ffffff;
  border: 1px solid #e9ecec;
  border-radius: 16px;
  font-family: 'Inter', 'PP Neue Montreal', sans-serif;
}
.cr__ex-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cr__ex-ptabs { display: flex; gap: 27px; flex: 0 1 541px; border-bottom: 1px solid #e9ecec; }
.cr__ex-ptabs[hidden] { display: none; }
.cr__ex-ptab {
  position: relative;
  height: 31px;
  padding: 0 12px;
  border: 0;
  background: none;
  font-family: 'PP Neue Montreal', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.4px;
  line-height: 19px;
  align-self: flex-start;
  color: #0a2633;
  opacity: 0.64;
  cursor: pointer;
}
.cr__ex-ptab[aria-selected="true"] { opacity: 1; }
.cr__ex-ptab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.2px;
  background: #0a2633;
}
.cr__ex-ptab:focus-visible { outline: 2px solid #0a2633; outline-offset: -2px; border-radius: 6px; }
.cr__ex-ptitle { margin: 0; font-family: 'PP Neue Montreal', sans-serif; font-weight: 500; font-size: 15px; line-height: 28px; letter-spacing: 0.4px; }
.cr__ex-nav { display: flex; gap: 8px; flex: none; }
.cr__ex-step {
  display: grid;
  place-items: center;
  width: 40px;
  height: 28px;
  padding: 0;
  background: #ffffff;
  border: 1px solid #d5d7da;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
  color: #0a2633;
  cursor: pointer;
}
.cr__ex-step:hover { background: #f5f8fa; }
.cr__ex-step:disabled { opacity: 0.4; cursor: default; background: #ffffff; }
.cr__ex-step:focus-visible { outline: 2px solid #233c47; outline-offset: 2px; }

.cr__ex-note { margin: 0 0 16px; font-size: 13px; line-height: 20px; color: #546770; }
.cr__ex-dd-head,
.cr__ex-dd-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  column-gap: 24px;
  align-items: center;
}
.cr__ex-dd-head { margin-bottom: 8px; font-size: 14px; line-height: 24px; color: #6c7d85; }
.cr__ex-dd-head .cr__ex-dd-val { display: inline-flex; align-items: center; gap: 6px; padding-left: 57px; }
.cr__ex-dd-row { min-height: 29px; padding: 6px 0; font-size: 14px; line-height: 16px; color: #0a2633; }
.cr__ex-dd-row .cr__ex-dd-val { display: grid; grid-template-columns: 49px 113px; column-gap: 8px; align-items: center; }
.cr__ex-num { font-size: 13px; text-align: right; color: #546770; font-variant-numeric: tabular-nums; }
.cr__ex-track { position: relative; height: 8px; background: #eff1f2; border-radius: 20px; overflow: hidden; }
.cr__ex-track i { position: absolute; inset: 0 auto 0 0; background: #13526f; border-radius: 20px; }
.cr__ex-truth {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 10px;
  background: #e8f1f4;
  font-size: 11px;
  line-height: 18px;
  color: #13526f;
  white-space: nowrap;
}
.cr__ex-panel .cr__help--end { --tip-r: -8px; }

/* Patient tab — after the dashboard's PatientObjectsView: Has / Denied, new values in blue. */
.cr__ex-pt { display: flex; flex-direction: column; gap: 16px; max-height: 560px; overflow-y: auto; font-size: 12px; }
.cr__ex-legend { display: flex; align-items: center; gap: 6px; margin: 0; color: #849299; }
.cr__ex-legend .cr__ex-chip { width: 16px; height: 12px; padding: 0; }
.cr__ex-legend .cr__help--end { --tip-r: auto; }
.cr__ex-pside + .cr__ex-pside { padding-top: 16px; border-top: 1px solid #e9ecec; }
.cr__ex-pside h5 { margin: 0 0 8px; font-size: 13px; font-weight: 500; line-height: 16px; color: #0a2633; }
.cr__ex-pside h5 span,
.cr__ex-psub > span:not(.cr__ex-chip) { font-weight: 400; color: #849299; }
.cr__ex-psub { margin: 12px 0 6px; font-weight: 500; color: #546770; }
.cr__ex-pgrid { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 0; }
.cr__ex-pgrid--two { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.cr__ex-pgrid > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; align-items: start; }
.cr__ex-pgrid--two > div { grid-template-columns: 80px minmax(0, 1fr); }
.cr__ex-pgrid dt { line-height: 20px; color: #849299; }
.cr__ex-pgrid dd { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.cr__ex-chip {
  display: inline-block;
  max-width: 100%;
  padding: 0 6px;
  box-sizing: border-box;
  background: #f7f8f9;
  border: 1px solid #e9ecec;
  border-radius: 10px;
  font-size: 12px;
  line-height: 18px;
  color: #233c47;
}
.cr__ex-chip.is-new { background: #e1eef6; border-color: #a9cbe0; color: #13526f; }
.cr__ex-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1100px) {
  .cr__ex { width: calc(100% - 48px); margin-top: 80px; }
  .cr__ex-tabs { padding-left: 16px; gap: 8px; }
  .cr__ex-head { padding: 20px 24px; }
  .cr__ex-body { grid-template-columns: minmax(0, 1fr); row-gap: 24px; padding: 24px 16px 24px 10px; }
  /* Stacked layout: a capped transcript that scrolls on its own (js/research.js `inner()` relies on overflow-y: auto),
     with the Differential / Patient panel right under it. */
  .cr__ex-msgs { max-height: min(560px, 65vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 12px; }
  .cr__ex-side { padding-left: 14px; }
  .cr__ex-side .cr__ex-panel { position: static; }
}
@media (max-width: 760px) {
  .cr__ex { width: calc(100% - 32px); }
  .cr__ex-tabs { overflow-x: auto; scrollbar-width: none; padding-left: 0; }
  /* the phone header is tall: only the tabs stay pinned */
  .cr__ex-pin { display: contents; }
  .cr__ex-tabs { position: sticky; top: 80px; z-index: 3; background: #ffffff; box-shadow: 0 -44px 0 44px #ffffff; }
  .cr__ex-tabs::-webkit-scrollbar { display: none; }
  .cr__ex-tab { padding: 0 8px; }
  .cr__ex-tab::after { bottom: 0; }      /* the scrolling tab row would clip it below its box */
  .cr__ex-head { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .cr__ex-title { font-size: 18px; line-height: 24px; }
  .cr__ex-msg { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cr__ex-msg[aria-current]::before { top: 6px; }
  .cr__ex-who { font-size: 12px; line-height: 16px; }
  .cr__ex-bubble { font-size: 15px; line-height: 22px; padding: 10px 14px; }
  .cr__ex-panel { padding: 16px; }
  .cr__ex-bar { gap: 8px; }
  .cr__ex-ptabs { gap: 12px; }
  .cr__ex-ptab { padding: 0 8px; }
  .cr__ex-dd-head,
  .cr__ex-dd-row { grid-template-columns: minmax(0, 1fr) 118px; column-gap: 12px; }
  .cr__ex-dd-head .cr__ex-dd-val { padding-left: 0; }
  .cr__ex-dd-row .cr__ex-dd-val { grid-template-columns: 46px 64px; }
  .cr__ex-pgrid--two { grid-template-columns: 1fr; }
}

/* ═══ The Best is Yet to Come ════════════════════════
   Figma 19257:35489. 728px column, 220px under the case table: 34/44 heading,
   40px gap, an intro line with a two-item numbered list, then two paragraphs. */
.best {
  width: 728px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  padding: 120px 0 0;
  box-sizing: border-box;
}
.best__title {
  margin: 0 0 32px;
  font-weight: 450;
  font-size: 34px;
  line-height: 44px;
  color: #0a2633;
}
.best p,
.best ul,
.best ol {
  margin: 0 0 16px;
  font-weight: 450;
  font-size: 17px;
  line-height: 30px;
  letter-spacing: 0.4px;
  color: #0a2633;
  opacity: 0.8;
}
.best p:last-child { margin-bottom: 0; }
.best__lead { margin-bottom: 0 !important; }
.best ol { padding-left: 25.5px; list-style: decimal; }
.best ul { padding-left: 25.5px; list-style: disc; }
@media (max-width: 860px) {
  .best { padding-top: 96px; }
  .best__title { margin-bottom: 24px; font-size: 28px; line-height: 36px; }
}

/* ═══ FAQ ═════════════════════════════════════════════
   Figma node 19074:15834. Title at the card edge (x=116), 856px list on the
   right (x=755). Items are 76px apart (24px padding + 28px question + 1px
   rule); the open item adds a 20px gap and the answer (16/24, 800px). */
.faq { padding: 120px 0 19px; }   /* 120px under "The Best is Yet to Come" */
.faq__inner {
  width: 728px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
}
.faq__title {
  margin: 0;
  font-weight: 450;
  font-size: 34px;
  line-height: 44px;
  color: #0a2633;
}
.faq__list {
  margin: 24px 0 0;       /* first question sits 48px under the title */
  padding: 0;
  list-style: none;
}
.faq__item { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.faq__heading { margin: 0; font: inherit; }
.faq__q {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 24px 0 23px;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: #0a2633;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq__q:focus-visible { outline: 2px solid #0a2633; outline-offset: -2px; border-radius: 4px; }
.faq__num,
.faq__text {
  font-weight: 450;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.4px;
}
.faq__num { flex: none; width: 26px; }
.faq__text { flex: 1 1 auto; min-width: 0; padding-right: 24px; }
.faq__icon {
  flex: none;
  display: block;
  width: 16px;
  height: 16px;
  max-width: none;
  margin: 6px 0 0 auto;
  opacity: 0.4;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
.faq__q:hover .faq__icon { opacity: 0.7; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); opacity: 1; }

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.35s;
}
.faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}
.faq__panel-inner { overflow: hidden; min-height: 0; }
.faq__a {
  max-width: 800px;
  padding: 0 0 23px;       /* 20px gap above comes from the question's 23px bottom padding − 3px (rule) */
  font-weight: 450;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.4px;
  color: #0a2633;
}
.faq__a p,
.faq__a ul { margin: 0 0 16px; opacity: 0.8; }
.faq__a > :last-child { margin-bottom: 0; }
.faq__a ul { padding-left: 20px; list-style: disc; }
.faq__a li + li { margin-top: 4px; }
.faq__a a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; word-break: break-word; }
.faq__a a:hover { text-decoration-thickness: 2px; }
.faq__item.is-open .faq__q { padding-bottom: 20px; }

@media (max-width: 860px) {
  .faq { padding-top: 96px; }
  .faq__title { font-size: 28px; line-height: 36px; }
  .faq__num, .faq__text { font-size: 16px; line-height: 24px; }
  .faq__icon { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq__panel, .faq__icon { transition: none; }
}

/* ═══ CTA banner + waitlist form (Research page only) ═══
   Figma 19272:35589 (default), 19278:40389 (error), 19278:40328 (focus/filled),
   19277:40240 (success). Independent of the shared .cta used on the home page.
   Max width 1712px (the design's banner), 600px tall at full size. The title sits
   bottom-left; the form lives in a light 676px panel on the right. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.research-cta {
  position: relative;
  width: calc(100% - 16px);
  max-width: 1712px;
  height: 600px;
  margin: 140px auto 0;
  overflow: hidden;
  background: #0a2633;
  color: #ffffff;
  border-radius: 24px;
}
.research-cta__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 45px);
  object-fit: cover;
  pointer-events: none;
}
.research-cta__title {
  position: absolute;
  left: 80px;
  bottom: 72px;
  z-index: 1;
  width: min(588px, calc(100% - clamp(480px, 39.5vw, 676px) - 160px));
  margin: 0;
  font-weight: 450;
  font-size: clamp(36px, 3.24vw, 56px);     /* Figma 19291:43655: 56 / 60 */
  line-height: 1.0715;
  color: #ffffff;
}
.research-cta__accent { color: #ffebba; }

.research-cta__panel {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: clamp(480px, 39.5vw, 676px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 clamp(32px, 13%, 88px);      /* 88px each side at full size → 500px fields */
  background: #f7f9fb;
  border-radius: 16px;
}
.waitlist,
.waitlist__done {
  width: 100%;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.waitlist.is-leaving { opacity: 0; pointer-events: none; }
.waitlist__done[hidden] { display: none; }
.waitlist__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(32px);
}
.waitlist__done.is-in { opacity: 1; transform: none; }
.waitlist__done.is-out { opacity: 0; transform: none; transition-duration: 0.4s; }
.waitlist.is-returning { opacity: 0; }

.waitlist__field + .waitlist__field { margin-top: 18px; }
.waitlist__input {
  display: block;
  width: 100%;
  height: 72px;
  box-sizing: border-box;
  padding: 8px 24px;
  background: #ffffff;
  border: 1px solid #dce0e1;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
  font-family: 'Inter', 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #0a2633;
  outline: none;
  transition: border-color 0.15s ease;
}
.waitlist__input::placeholder { color: #849299; opacity: 1; }
.waitlist__input:focus { border-color: #0a2633; }
.waitlist__input[aria-invalid="true"] { border-color: #b42318; }

/* The two interest checkboxes: a plain group, 8px between rows */
.waitlist__interests { display: flex; flex-direction: column; gap: 8px; margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.waitlist__consent { position: relative; display: block; }
.waitlist__check { position: absolute; opacity: 0; width: 28px; height: 28px; margin: 0; cursor: pointer; }   /* sits over the box, so it needs the pointer too */
.waitlist__consent-label {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.waitlist__box {
  flex: none;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  background: #ffffff center / 12px 10px no-repeat;
  border: 1px solid #dce0e1;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.waitlist__consent-text {
  max-width: 306px;
  font-weight: 450;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0.4px;
  color: #0a2633;
}
.waitlist__check:checked + .waitlist__consent-label .waitlist__box {
  background-color: #0a2633;
  background-image: url("../Assets/Images/Research/waitlist-check.svg");
  border-color: #0a2633;
}
.waitlist__check:focus-visible + .waitlist__consent-label .waitlist__box { outline: 2px solid #0a2633; outline-offset: 2px; }
.waitlist__check[aria-invalid="true"] + .waitlist__consent-label .waitlist__box { border-color: #b42318; }

.waitlist__submit {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 28px;
  padding: 0;
  background: #0a2633;
  border: 0;
  border-radius: 100px;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.4px;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.waitlist__submit:hover { background: #17384a; }
.waitlist__submit:active { transform: translateY(1px); }
.waitlist__submit:focus-visible { outline: 2px solid #0a2633; outline-offset: 3px; }
.waitlist__submit:disabled { opacity: 0.7; cursor: default; }

/* Honeypot field: off-screen, not display:none (some bots skip hidden fields) */
.waitlist__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist__turnstile:empty { display: none; }
.waitlist__fail { margin: 0; font-size: 14px; line-height: 1.4; color: #b42318; }
.waitlist__fail[hidden] { display: none; }

.waitlist__done-icon {
  display: block;
  flex: none;
  width: 52px;            /* the 48px navy disc + room for its 1px shadow, as exported from Figma */
  height: 52px;
  max-width: none;
}
.waitlist__done-text {
  width: 250px;
  max-width: 100%;
  margin: 13px 0 0;       /* 16px under the disc itself */
  font-weight: 450;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0.4px;
  text-align: center;
  color: #0a2633;
}

@media (max-width: 979px) {
  .research-cta { display: flex; flex-direction: column; height: auto; margin-top: 120px; }
  .research-cta__title {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    padding: 72px 32px 40px;
    font-size: 44px;
    line-height: 50px;
  }
  .research-cta__panel {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0 16px 16px;
    padding: 40px clamp(20px, 6vw, 56px);
  }
  .waitlist__input { height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .waitlist, .waitlist__done, .waitlist__input, .waitlist__box { transition: none; }
}

/* Copy that follows the session explorer: the Jiva-vs-Claude commentary, then the benchmark heading (Figma 19375:51610). */
.research__intro.cx-copy { padding-top: 120px; }
.research__intro-title--after { margin-top: 48px; }   /* 48px under the paragraph above; the paragraph margin (16px) collapses into it */

/* Copy under the benchmark chart: 120px below the cards in the Figma (876 → 996). */
.research__intro.bm-copy { padding-top: 100px; }

.cr__ex-nav[hidden] { display: none; }

/* The first explorer is fixed to its default case: no case picker (the second one keeps it). */
#cr-ex .cr__ex-case { display: none; }

.faq[hidden] { display: none; }   /* FAQ hidden for now: remove the hidden attribute in research.html to bring it back */

.cr__ex-tab[hidden] { display: none; }
.cr__ex-case[hidden], .cr__ex-review[hidden] { display: none; }

/* Research-page header only (Figma 19394:55095): a 190 × 50 pill, 12px from the top. Logo 40 × 13 at x=27, 1 × 14 divider at x=89,
   "Contact" (Medium 14, 50%) centred at x=135.5 — all measured from the pill's left edge. Same on desktop and phones;
   the shared header on the other pages is untouched. */
body.page-research .nav.nav--v2 {
  top: 12px;
  width: 190px;
  max-width: none;
  height: 50px;
  padding: 0 0 0 26.025px;          /* + the 0.975px border = 27px to the logo */
  box-sizing: border-box;
  overflow: visible;
  align-items: center;
  gap: 0;
  background: rgba(241, 241, 241, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 0.975px solid #ffffff;
  border-radius: 100px;
  box-shadow: none;
}
body.page-research .nav--v2 .nav__logo { position: static; display: inline-flex; align-items: center; }
body.page-research .nav--v2 .nav__logo img { width: 40px; height: 13px; }
body.page-research .nav--v2 .nav__divider {
  display: block;
  flex-shrink: 0;
  position: relative;
  width: 1px;
  height: 14px;
  margin: 0 0 0 21.5px;              /* centre at x=89.5 */
}
body.page-research .nav--v2 .nav__divider img { position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; max-width: none; transform: translate(-50%, -50%) rotate(-90deg); }
body.page-research .nav--v2 .nav__links,
body.page-research .nav--v2 .nav__toggle { display: none; }
body.page-research .nav--v2 .nav__cta {
  position: absolute;                /* text centred at x=135.5, y=25 (Figma) whatever the font's exact width */
  left: 134.525px;                  /* measured from the padding edge: 135.5 − the 0.975px border */
  right: auto;
  top: 8.025px;
  width: auto;
  height: 32px;
  margin: 0;
  transform: translateX(-50%);
  padding: 0;
  background: none;
  border-radius: 0;
  color: #0a2633;
  opacity: 0.5;
  font-size: 14px;
  line-height: 32px;
  letter-spacing: 0;
  transition: opacity 0.15s ease;
}
body.page-research .nav--v2 .nav__cta:hover { background: none; color: #0a2633; opacity: 1; }


/* ═══ Research-page footer (Figma 19291:43655) ═══
   A rounded #F7F9FB card inset 8px from the page edge, up to 1712px wide: logo with the copyright under it on the left,
   the tagline and the click-to-copy e-mail on the right, starting 60% across. Scoped to this page; the shared footer
   (css/footer.css) stays as it was on the other pages. */
body.page-research .footer {
  box-sizing: border-box;
  width: calc(100% - 16px);                                   /* 8px in from each page edge… */
  max-width: 1712px;                                          /* …and never wider than the 1712px frame */
  height: 180px;
  margin: 16px auto 16px;
  padding: 0 80px;
  display: block;
  background: #f7f9fb;
  border-radius: 24px;
  color: #0a2633;
}
body.page-research .footer__inner {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 608px);   /* the right group starts 1024px in on the 1712px frame */
  grid-template-rows: 29px 1fr;                             /* logo row (6px offset + 23px) so the tall right group cannot stretch it */
  gap: 0 32px;                                              /* explicit: home.css sets a 56px row gap below 1100px */
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 60px 0 0;
}
body.page-research .footer__logo { grid-area: 1 / 1; align-self: start; margin-top: 6px; }
body.page-research .footer__copy {
  grid-area: 2 / 1;
  align-self: start;
  margin: 16px 0 0;
  font-weight: 400;
  font-size: 13px;
  line-height: 24px;
  letter-spacing: 0.6px;
  color: #0a2633;
  opacity: 0.5;
}
body.page-research .footer__brand { grid-area: 1 / 2 / 3 / 3; max-width: none; }
body.page-research .footer__tagline {
  max-width: 333px;
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.6px;
  color: #0a2633;
  opacity: 0.7;
}
body.page-research .footer__email-wrap { margin-top: 8px; }
body.page-research .footer__email { font-size: 20px; line-height: 24px; }

/* Tablet: tighter inset, columns share the card evenly. */
@media (max-width: 1100px) {
  body.page-research .footer { padding: 0 48px; }
  body.page-research .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Phone: the card grows with its content; logo, then tagline + e-mail, then the copyright. */
@media (max-width: 720px) {
  body.page-research .footer { height: auto; margin: 12px auto 8px; padding: 40px 24px 32px; border-radius: 20px; }
  body.page-research .footer__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 0; height: auto; padding: 0; }
  body.page-research .footer__logo { margin-top: 0; }
  body.page-research .footer__brand { order: 2; margin-top: 32px; }
  body.page-research .footer__tagline { max-width: 300px; }
  body.page-research .footer__email { font-size: 18px; }
  body.page-research .footer__copy { order: 3; margin-top: 40px; }
}

/* Full session review: the last block inside the dialog card (Figma 19399:55383): a full-width rule, a 20/28 Medium title
   and a 15/24 paragraph (647px). The negative margins carry the rule to the card's edges. */
.cr__ex-review {
  grid-column: 1 / -1;
  margin: 48px -41px -7px;
  padding: 38px 58px 0;
  border-top: 1px solid #e9ecec;
}
.cr__ex-review-title { margin: 0; font-weight: 500; font-size: 20px; line-height: 28px; letter-spacing: 0.4px; color: #0a2633; }
.cr__ex-review-text { max-width: 647px; margin: 12px 0 0; font-weight: 400; font-size: 15px; line-height: 24px; letter-spacing: 0.4px; color: #0a2633; opacity: 0.8; }
@media (max-width: 1100px) {
  .cr__ex-review { margin: 0 -16px -24px -10px; padding: 28px 24px 28px; }
}

/* Hover box on "⬛️ Reasoning unknown" (Figma 19400:55395): a 128 × 128 #F7F9FB card with the 107 × 104 gif inset 14px / 24px.
   It opens on hover and follows the cursor over the title; js/research.js sets the gif's src on the first hover (the file is large). */
.cr__ex-ptitle { position: relative; cursor: help; }
.cr__ex-meme {
  position: absolute;
  left: var(--mx, 50%);                /* centred horizontally on the cursor, hanging below it: js/research.js sets --mx / --my on mousemove */
  top: calc(var(--my, 0px) + 20px);
  transform: translateX(-50%);
  z-index: 5;
  box-sizing: border-box;
  width: 128px;
  height: 128px;
  padding: 24px 0 0 14px;
  background: #f7f9fb;
  border: 1px solid #f7f9fb;
  border-radius: 16px;
  box-shadow: 0 2px 2px rgba(10, 13, 18, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
  pointer-events: none;
}
.cr__ex-meme img { display: block; width: 107px; height: 104px; object-fit: cover; }
.cr__ex-ptitle:hover .cr__ex-meme {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
@media (prefers-reduced-motion: reduce) { .cr__ex-meme { transition: none; } }
