html {
  scroll-behavior: smooth;
}

.clinical-page {
  background: #f6fafc;
  color: #485653;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  background: #ffffff;
  color: var(--dark);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(21, 55, 75, 0.18);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.clinical-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
}

.brand-link {
  display: flex;
  align-items: center;
}

.brand-link img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.clinical-header .nav-menu a {
  color: #263532;
  font-weight: 650;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.clinical-header .nav-menu a:hover,
.clinical-link:hover {
  color: var(--primary);
}

.wa-button {
  border: 0;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(43, 159, 232, 0.24);
}

.clinical-hero {
  min-height: 100dvh;
  padding-top: 130px;
  padding-bottom: 7rem;
  background:
    radial-gradient(circle at 74% 20%, rgba(43, 159, 232, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(43, 159, 232, 0.06), rgba(255, 255, 255, 0.96) 72%);
  overflow: hidden;
}

.clinical-hero-grid {
  min-height: calc(100dvh - 170px);
  padding-top: 0;
}

.clinical-badge {
  background: #ffffff;
  border: 1px solid rgba(43, 159, 232, 0.18);
  box-shadow: 0 12px 30px rgba(43, 159, 232, 0.08);
}

.hero-copy {
  max-width: 650px;
  margin: 2rem 0;
  color: #52625f;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.clinical-link {
  font-weight: 750;
  color: #273532;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(43, 159, 232, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #52625f;
  font-size: 0.85rem;
  box-shadow: 0 12px 30px rgba(36, 69, 89, 0.06);
}

.hero-proof strong {
  color: var(--dark);
  font-variant-numeric: tabular-nums;
}

.clinical-hero-visual {
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1200px;
}

.phone-orbit {
  position: absolute;
  width: min(560px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 159, 232, 0.2), rgba(43, 159, 232, 0.06) 38%, transparent 68%);
  filter: blur(2px);
  animation: orbitPulse 6s ease-in-out infinite;
}

.clinical-phone {
  position: relative;
  width: 335px;
  height: 660px;
  border-radius: 54px;
  padding: 12px;
  background: linear-gradient(145deg, #111716, #3a4642 48%, #0d1110);
  box-shadow:
    0 42px 80px rgba(18, 42, 58, 0.28),
    0 18px 30px rgba(43, 159, 232, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transform: rotateX(4deg) rotateY(-8deg) rotateZ(1deg);
  z-index: 2;
}

.phone-side-button {
  position: absolute;
  width: 4px;
  background: #0e1413;
  border-radius: 999px;
}

.phone-side-button-left {
  left: -4px;
  top: 138px;
  height: 74px;
}

.phone-side-button-right {
  right: -4px;
  top: 186px;
  height: 96px;
}

.phone-notch {
  position: absolute;
  left: 50%;
  top: 19px;
  z-index: 5;
  width: 118px;
  height: 32px;
  transform: translateX(-50%);
  background: #080b0b;
  border-radius: 0 0 18px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-notch span {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: #1d2523;
}

.phone-screen {
  height: 100%;
  border-radius: 43px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 159, 232, 0.16), transparent 38%),
    #eef6f9;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 18px 28px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1c2927;
}

.phone-signal {
  color: var(--primary);
  letter-spacing: -0.12em;
}

.phone-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 12px;
  padding: 1rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 26px rgba(26, 64, 89, 0.08);
}

.phone-chat-header img {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: rgba(43, 159, 232, 0.12);
  padding: 7px;
}

.phone-chat-header strong,
.phone-chat-header span {
  display: block;
}

.phone-chat-header strong {
  color: #15211f;
  font-size: 0.96rem;
}

.phone-chat-header span {
  color: #5f7470;
  font-size: 0.72rem;
}

.phone-chat-body {
  position: relative;
  flex: 1;
  padding: 1rem 1rem 0.2rem;
  overflow: hidden;
  isolation: isolate;
}

.phone-chat-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(43, 159, 232, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
}

.phone-chat-body::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, #eef6f9 0%, rgba(238, 246, 249, 0) 16%, rgba(238, 246, 249, 0) 76%, #eef6f9 100%);
}

.phone-chat-track {
  position: relative;
  z-index: 1;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: flex-start;
  padding: 1.2rem 0 3.5rem;
  animation: phoneChatStream 13s cubic-bezier(0.45, 0, 0.2, 1) infinite;
  will-change: transform, opacity;
}

.phone-message,
.phone-typing {
  position: relative;
  max-width: 78%;
  padding: 0 0.88rem;
  border-radius: 18px;
  font-size: 0.8rem;
  line-height: 1.38;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(12px) scale(0.96) translateZ(0);
  will-change: opacity, transform, max-height, padding;
}

.phone-message {
  animation-duration: 13s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.phone-message.bot {
  align-self: flex-start;
  background: #ffffff;
  color: #1c2927;
  border-bottom-left-radius: 5px;
  box-shadow: 0 10px 24px rgba(33, 68, 86, 0.1);
}

.phone-message::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
}

.phone-message.bot::after {
  left: -3px;
  background: #ffffff;
}

.phone-message.user {
  align-self: flex-end;
  background: #dff1fb;
  color: #102d3f;
  border: 1px solid rgba(43, 159, 232, 0.2);
  border-bottom-right-radius: 5px;
}

.phone-message.user::after {
  right: -3px;
  background: #dff1fb;
  border-top: 1px solid rgba(43, 159, 232, 0.2);
  border-right: 1px solid rgba(43, 159, 232, 0.2);
}

.phone-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  width: fit-content;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(33, 68, 86, 0.1);
  animation-duration: 13s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.phone-typing.user-typing {
  align-self: flex-end;
  background: #dff1fb;
  border: 1px solid rgba(43, 159, 232, 0.16);
}

.msg-1 { animation-name: phoneMsg1; }
.type-1 { animation-name: phoneType1; }
.msg-2 { animation-name: phoneMsg2; }
.type-2 { animation-name: phoneType2; }
.msg-3 { animation-name: phoneMsg3; }
.type-3 { animation-name: phoneType3; }
.msg-4 { animation-name: phoneMsg4; }
.type-4 { animation-name: phoneType4; }
.msg-5 { animation-name: phoneMsg5; }
.type-5 { animation-name: phoneType5; }

.phone-typing.user-typing span {
  background: #4f8baa;
}

.phone-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7c908c;
  animation: typingDot 1s ease-in-out infinite;
}

.phone-typing span:nth-child(2) { animation-delay: 0.15s; }
.phone-typing span:nth-child(3) { animation-delay: 0.3s; }

.phone-input-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 12px 12px;
  padding: 0.8rem 0.9rem 0.8rem 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  color: #879591;
  font-size: 0.82rem;
  box-shadow: inset 0 0 0 1px rgba(43, 159, 232, 0.08);
}

.phone-input-bar strong {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
}

.mac-mouse-pointer {
  position: absolute;
  z-index: 4;
  width: 42px;
  height: 64px;
  border: 2px solid #111716;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 46px 54px 42px rgba(17, 23, 22, 0.24);
  transform-origin: center;
  animation: mouseInteract 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.mac-mouse-pointer span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 13px;
  border-radius: 999px;
  background: #111716;
  transform: translateX(-50%);
  animation: mouseScroll 6s ease-in-out infinite;
}

.mac-mouse-pointer::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(17, 23, 22, 0.32);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  animation: mouseClickPulse 6s ease-in-out infinite;
}

.section-heading {
  margin-bottom: 4rem;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: 4rem;
  align-items: end;
}

.compact-heading {
  max-width: 780px;
  margin-inline: auto;
}

.compact-heading .body-large {
  margin-top: 1rem;
}

.clinical-pain-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.clinical-pain-card {
  position: relative;
  min-height: 250px;
  padding: 2rem;
  overflow: hidden;
}

.clinical-pain-card.featured {
  background: #263532;
  color: rgba(255, 255, 255, 0.82);
  transform: translateY(-1.5rem);
}

.clinical-pain-card.featured h3 {
  color: #ffffff;
}

.clinical-pain-card h3,
.flow-step h3,
.resource-card h3,
.rollout-grid h3 {
  color: var(--dark);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.pain-index {
  display: block;
  color: var(--primary);
  font-weight: 900;
  font-size: 2.7rem;
  line-height: 1;
  opacity: 0.24;
  margin-bottom: 2rem;
}

.flow-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(43, 159, 232, 0.16);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(33, 68, 86, 0.08);
}

.flow-step {
  min-height: 280px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.86);
}

.flow-step span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 850;
  margin-bottom: 2.5rem;
}

.clinical-metrics {
  padding-top: 5rem;
}

.metric-grid {
  margin-top: 3rem;
}

.metric-card {
  border-top: 4px solid var(--primary);
}

.metric-card .h1 {
  font-variant-numeric: tabular-nums;
}

.metric-title {
  color: var(--dark);
  font-weight: 800;
  margin: 0.5rem 0;
}

.resource-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "schedule schedule triage reminder"
    "schedule schedule docs reminder"
    "panel panel panel human";
  grid-auto-rows: minmax(220px, auto);
  gap: 1rem;
  align-items: stretch;
}

.resource-card {
  position: relative;
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(43, 159, 232, 0.12);
  box-shadow: 0 18px 50px rgba(33, 68, 86, 0.07);
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(43, 159, 232, 0.16);
}

.resource-card.large {
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 159, 232, 0.24), transparent 44%),
    #ffffff;
}

.resource-schedule { grid-area: schedule; }
.resource-triage { grid-area: triage; }
.resource-reminder { grid-area: reminder; }
.resource-docs { grid-area: docs; }
.resource-panel { grid-area: panel; }
.resource-human { grid-area: human; }

.resource-card.dark {
  background: #263532;
  color: rgba(255, 255, 255, 0.82);
}

.resource-card.dark h3 {
  color: #ffffff;
}

.resource-card > span {
  display: block;
  color: var(--primary);
  font-weight: 900;
  opacity: 0.42;
  margin-bottom: 2rem;
}

.resource-card p {
  position: relative;
  z-index: 2;
}

.resource-card h3,
.resource-card > span {
  position: relative;
  z-index: 2;
}

.resource-visual {
  position: relative;
  z-index: 1;
  margin-top: auto;
  min-height: 92px;
  pointer-events: none;
}

.resource-card.large .resource-visual {
  min-height: 170px;
}

.schedule-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  align-items: end;
  padding-top: 2rem;
}

.schedule-visual i {
  height: 72px;
  border-radius: 18px;
  background: rgba(43, 159, 232, 0.12);
  border: 1px solid rgba(43, 159, 232, 0.18);
  position: relative;
  animation: scheduleGlow 3.6s ease-in-out infinite;
}

.schedule-visual i::before {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  top: 16px;
  height: 8px;
  border-radius: 999px;
  background: rgba(43, 159, 232, 0.34);
  box-shadow: 0 24px 0 rgba(43, 159, 232, 0.18);
}

.schedule-visual i:nth-child(2) { height: 104px; animation-delay: 0.35s; }
.schedule-visual i:nth-child(3) { height: 132px; animation-delay: 0.7s; }

.schedule-visual strong {
  position: absolute;
  right: 1.25rem;
  bottom: 1.15rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 16px 35px rgba(43, 159, 232, 0.28);
  animation: schedulePulse 2.8s ease-in-out infinite;
}

.schedule-visual strong::before,
.schedule-visual strong::after {
  content: '';
  position: absolute;
  background: #ffffff;
  border-radius: 999px;
}

.schedule-visual strong::before { width: 22px; height: 4px; left: 18px; top: 27px; }
.schedule-visual strong::after { width: 4px; height: 22px; left: 27px; top: 18px; }

.triage-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.triage-visual i {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(43, 159, 232, 0.26);
  animation: triageOrbit 5s linear infinite;
}

.triage-visual i:nth-child(1) { width: 34px; height: 34px; background: rgba(43, 159, 232, 0.24); animation-duration: 3.5s; }
.triage-visual i:nth-child(2) { width: 76px; height: 76px; animation-delay: -1s; }
.triage-visual i:nth-child(3) { width: 118px; height: 118px; animation-delay: -2s; opacity: 0.75; }

.reminder-visual {
  min-height: 170px;
}

.reminder-visual i {
  position: absolute;
  left: 0;
  right: 0;
  height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: reminderSlide 4s ease-in-out infinite;
}

.reminder-visual i::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 14px;
  width: 60%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.reminder-visual i:nth-child(1) { top: 18px; }
.reminder-visual i:nth-child(2) { top: 78px; animation-delay: 0.55s; opacity: 0.72; }
.reminder-visual strong {
  position: absolute;
  right: 1rem;
  bottom: 0.25rem;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: rgba(43, 159, 232, 0.94);
  animation: bellNudge 2.8s ease-in-out infinite;
}

.reminder-visual strong::before {
  content: '';
  position: absolute;
  width: 25px;
  height: 30px;
  left: 19px;
  top: 15px;
  border: 3px solid #ffffff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom: 0;
}

.docs-visual {
  min-height: 118px;
}

.docs-visual i {
  position: absolute;
  width: 76px;
  height: 96px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(43, 159, 232, 0.16);
  box-shadow: 0 14px 30px rgba(33, 68, 86, 0.08);
  animation: docFloat 4s ease-in-out infinite;
}

.docs-visual i::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 22px;
  height: 6px;
  border-radius: 999px;
  background: rgba(43, 159, 232, 0.35);
  box-shadow: 0 18px 0 rgba(43, 159, 232, 0.16), 0 36px 0 rgba(43, 159, 232, 0.1);
}

.docs-visual i:nth-child(1) { left: 0; bottom: 0; transform: rotate(-7deg); }
.docs-visual i:nth-child(2) { left: 58px; bottom: 12px; transform: rotate(4deg); animation-delay: 0.45s; }
.docs-visual i:nth-child(3) { left: 116px; bottom: 0; transform: rotate(9deg); animation-delay: 0.9s; }

.panel-visual {
  display: flex;
  align-items: end;
  gap: 0.6rem;
  min-height: 118px;
}

.panel-visual i {
  flex: 1;
  min-width: 26px;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, rgba(43, 159, 232, 0.55), rgba(43, 159, 232, 0.12));
  animation: panelBar 3s ease-in-out infinite;
}

.panel-visual i:nth-child(1) { height: 42px; }
.panel-visual i:nth-child(2) { height: 84px; animation-delay: 0.25s; }
.panel-visual i:nth-child(3) { height: 62px; animation-delay: 0.5s; }
.panel-visual strong {
  position: absolute;
  right: 0;
  top: 2rem;
  width: 112px;
  height: 58px;
  border-radius: 20px;
  background: rgba(43, 159, 232, 0.1);
  border: 1px solid rgba(43, 159, 232, 0.18);
  animation: panelCard 4s ease-in-out infinite;
}

.human-visual {
  min-height: 118px;
}

.human-visual i {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(43, 159, 232, 0.16);
  border: 1px solid rgba(43, 159, 232, 0.2);
  animation: humanPulse 3.6s ease-in-out infinite;
}

.human-visual i::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateX(-50%);
  box-shadow: 0 24px 0 8px rgba(43, 159, 232, 0.35);
}

.human-visual i:nth-child(1) { left: 0; bottom: 18px; }
.human-visual i:nth-child(2) { left: 68px; bottom: 38px; animation-delay: 0.45s; }
.human-visual strong {
  position: absolute;
  right: 0;
  bottom: 22px;
  width: 76px;
  height: 42px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(43, 159, 232, 0.16);
  animation: handoffBubble 3.6s ease-in-out infinite;
}

.human-visual strong::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 17px;
  width: 44px;
  height: 7px;
  border-radius: 999px;
  background: rgba(43, 159, 232, 0.35);
}

.security-section {
  background: linear-gradient(135deg, #263532 0%, #15201e 100%);
  overflow: hidden;
}

.security-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.security-grid .h2,
.security-grid .text-micro {
  color: #ffffff;
}

.security-list {
  display: grid;
  gap: 1rem;
}

.security-list div {
  display: grid;
  grid-template-columns: 52px 190px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.35rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.security-icon,
.rollout-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: var(--primary);
  background: rgba(43, 159, 232, 0.12);
  box-shadow: inset 0 0 0 1px rgba(43, 159, 232, 0.16);
}

.security-icon svg,
.rollout-icon svg {
  width: 27px;
  height: 27px;
}

.security-list strong {
  color: #ffffff;
}

.security-list span {
  color: rgba(255, 255, 255, 0.72);
}

.rollout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.rollout-grid article {
  padding: 2rem;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(33, 68, 86, 0.07);
}

.rollout-icon {
  margin-bottom: 1.5rem;
  background: linear-gradient(145deg, rgba(43, 159, 232, 0.14), rgba(43, 159, 232, 0.05));
}

.rollout-grid span {
  color: var(--primary);
  font-weight: 850;
  display: block;
  margin-bottom: 2rem;
}

.demo-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f6fafc, #eef7fb);
}

.demo-chat-header {
  background: rgba(255,255,255,0.82);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(43, 159, 232, 0.12);
}

.demo-avatar,
.demo-message-icon {
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(43, 159, 232, 0.22);
}

.demo-avatar {
  width: 48px;
  height: 48px;
}

.demo-avatar img {
  width: 28px;
}

.demo-chat-header h3,
.demo-chat-header p {
  margin: 0;
}

.demo-chat-header h3 {
  font-size: 1.1rem;
  color: var(--dark);
}

.demo-chat-header p {
  font-size: 0.85rem;
  color: #66736f;
}

.demo-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.demo-message-row {
  display: flex;
  gap: 0.75rem;
  max-width: 84%;
}

.demo-message-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.demo-message-icon img {
  width: 18px;
}

.demo-message {
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: 0 16px 16px 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.5;
}

.demo-chat-input {
  background: rgba(255,255,255,0.82);
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(43, 159, 232, 0.12);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.demo-chat-input input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.94);
  font-size: 1rem;
  outline: none;
  color: var(--dark);
}

.demo-chat-input input:focus {
  border-color: rgba(43, 159, 232, 0.48);
  box-shadow: 0 0 0 4px rgba(43, 159, 232, 0.1);
}

.demo-chat-input button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(43, 159, 232, 0.28);
}

.demo-chat-count {
  text-align: center;
  padding-bottom: 0.5rem;
  font-size: 0.75rem;
  color: #71807c;
  background: rgba(255,255,255,0.82);
}

.final-cta-restored {
  background: linear-gradient(135deg, var(--dark) 0%, #1a252f 100%);
  overflow: hidden;
  margin-bottom: 0;
}

.final-cta-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
}

.final-cta-content {
  flex: 3;
  min-width: 350px;
  text-align: left;
}

.final-cta-content .h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.final-cta-content .body-large {
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
}

.cta-button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.cta-button-wrapper .text-small {
  color: rgba(255, 255, 255, 0.7);
}

.final-button {
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
}

.final-cta-robot {
  flex: 0.7;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1000px;
}

.robot-icon-container {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  z-index: 10;
}

.robot-icon-container img:not(.pulse-layer) {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 25px 35px rgba(0,0,0,0.7));
}

.pulse-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  animation: smoothPulse 4.5s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
  opacity: 0;
}

.pulse-layer-2 {
  animation-delay: 2.25s;
}

.restored-wa-stack {
  position: relative;
  width: 100%;
  max-width: 290px;
  height: 165px;
}

.restored-wa-bubble {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: #ffffff;
  color: #111b21;
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.35;
  transform-origin: top center;
  will-change: transform, opacity, filter;
  box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.8), 0 20px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05);
  animation: restoredBubbleStack 6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.restored-wa-bubble::after {
  content: '';
  position: absolute;
  top: 0;
  left: -10px;
  width: 0;
  height: 0;
  border-right: 10px solid #ffffff;
  border-bottom: 14px solid transparent;
}

.bubble-a { animation-delay: 0s; }
.bubble-b { animation-delay: -2s; }
.bubble-c { animation-delay: -4s; }

.clinical-footer-restored {
  background: var(--dark-header);
  color: #999;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 0 2rem;
  margin-top: 0;
}

.footer-restored-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
}

.footer-restored-grid > div {
  flex: 1;
  min-width: 150px;
}

.footer-brand-block {
  flex: 1.5 !important;
  min-width: 250px !important;
}

.footer-brand-block img {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.footer-brand-block p {
  max-width: 300px;
  line-height: 1.6;
}

.footer-restored-grid h4 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.125rem;
}

.footer-restored-grid ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-restored-grid a,
.footer-restored-grid button {
  color: inherit;
  transition: color 0.2s ease;
  padding: 0;
  text-align: left;
}

.footer-restored-grid a:hover,
.footer-restored-grid button:hover {
  color: #ffffff;
}

.footer-restored-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 4rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-restored-bottom div:last-child {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@keyframes orbitPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.86; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes phoneChatStream {
  0% { opacity: 0; transform: translateY(42px); }
  6% { opacity: 1; transform: translateY(28px); }
  22% { transform: translateY(-18px); }
  40% { transform: translateY(-78px); }
  58% { transform: translateY(-138px); }
  76% { opacity: 1; transform: translateY(-206px); }
  92% { opacity: 1; transform: translateY(-260px); }
  100% { opacity: 0; transform: translateY(-284px); }
}

@keyframes phoneMsg1 {
  0%, 8% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(12px) scale(0.96); }
  14%, 94% { opacity: 1; max-height: 120px; padding-top: 0.74rem; padding-bottom: 0.74rem; transform: translateY(0) scale(1); }
  100% { opacity: 0; max-height: 120px; padding-top: 0.74rem; padding-bottom: 0.74rem; transform: translateY(-8px) scale(0.98); }
}

@keyframes phoneMsg2 {
  0%, 24% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(12px) scale(0.96); }
  30%, 94% { opacity: 1; max-height: 90px; padding-top: 0.74rem; padding-bottom: 0.74rem; transform: translateY(0) scale(1); }
  100% { opacity: 0; max-height: 90px; padding-top: 0.74rem; padding-bottom: 0.74rem; transform: translateY(-8px) scale(0.98); }
}

@keyframes phoneMsg3 {
  0%, 40% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(12px) scale(0.96); }
  46%, 94% { opacity: 1; max-height: 100px; padding-top: 0.74rem; padding-bottom: 0.74rem; transform: translateY(0) scale(1); }
  100% { opacity: 0; max-height: 100px; padding-top: 0.74rem; padding-bottom: 0.74rem; transform: translateY(-8px) scale(0.98); }
}

@keyframes phoneMsg4 {
  0%, 56% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(12px) scale(0.96); }
  62%, 94% { opacity: 1; max-height: 90px; padding-top: 0.74rem; padding-bottom: 0.74rem; transform: translateY(0) scale(1); }
  100% { opacity: 0; max-height: 90px; padding-top: 0.74rem; padding-bottom: 0.74rem; transform: translateY(-8px) scale(0.98); }
}

@keyframes phoneMsg5 {
  0%, 72% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(12px) scale(0.96); }
  78%, 94% { opacity: 1; max-height: 120px; padding-top: 0.74rem; padding-bottom: 0.74rem; transform: translateY(0) scale(1); }
  100% { opacity: 0; max-height: 120px; padding-top: 0.74rem; padding-bottom: 0.74rem; transform: translateY(-8px) scale(0.98); }
}

@keyframes phoneType1 {
  0%, 2% {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(10px) scale(0.96);
  }
  5%, 10% {
    opacity: 1;
    max-height: 42px;
    padding-top: 0.64rem;
    padding-bottom: 0.64rem;
    transform: translateY(0) scale(1);
  }
  14%, 100% {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

@keyframes phoneType2 {
  0%, 18% {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(10px) scale(0.96);
  }
  21%, 26% {
    opacity: 1;
    max-height: 42px;
    padding-top: 0.64rem;
    padding-bottom: 0.64rem;
    transform: translateY(0) scale(1);
  }
  30%, 100% {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

@keyframes phoneType3 {
  0%, 34% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(10px) scale(0.96); }
  37%, 42% { opacity: 1; max-height: 42px; padding-top: 0.64rem; padding-bottom: 0.64rem; transform: translateY(0) scale(1); }
  46%, 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(-6px) scale(0.98); }
}

@keyframes phoneType4 {
  0%, 50% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(10px) scale(0.96); }
  53%, 58% { opacity: 1; max-height: 42px; padding-top: 0.64rem; padding-bottom: 0.64rem; transform: translateY(0) scale(1); }
  62%, 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(-6px) scale(0.98); }
}

@keyframes phoneType5 {
  0%, 66% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(10px) scale(0.96); }
  69%, 74% { opacity: 1; max-height: 42px; padding-top: 0.64rem; padding-bottom: 0.64rem; transform: translateY(0) scale(1); }
  78%, 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(-6px) scale(0.98); }
}

@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes mouseInteract {
  0% { opacity: 0; transform: translate(170px, 190px) rotate(-10deg) scale(0.96); }
  12% { opacity: 1; }
  32% { transform: translate(96px, 82px) rotate(-7deg) scale(1); }
  44% { transform: translate(68px, 110px) rotate(-7deg) scale(0.93); }
  52% { transform: translate(70px, 110px) rotate(-7deg) scale(1); }
  74% { transform: translate(128px, 310px) rotate(-3deg) scale(1); opacity: 1; }
  100% { opacity: 0; transform: translate(170px, 390px) rotate(-2deg) scale(0.96); }
}

@keyframes mouseScroll {
  0%, 34%, 100% { transform: translate(-50%, 0); }
  46%, 58% { transform: translate(-50%, 10px); }
}

@keyframes mouseClickPulse {
  0%, 38%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  44% { opacity: 1; transform: translate(-50%, -50%) scale(1.8); }
  55% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}

@keyframes smoothPulse {
  0% { transform: scale(0.9); opacity: 0.6; filter: drop-shadow(0 0 15px var(--primary)) blur(0); }
  100% { transform: scale(1.7); opacity: 0; filter: drop-shadow(0 0 35px var(--primary)) blur(4px); }
}

@keyframes restoredBubbleStack {
  0%, 6% {
    opacity: 0;
    transform: translateY(128px) scale(0.84) translateZ(-20px);
    filter: blur(3px);
    z-index: 1;
  }
  12%, 34% {
    opacity: 0.3;
    transform: translateY(106px) scale(0.88) translateZ(-20px);
    filter: blur(2.4px);
    z-index: 1;
  }
  42%, 64% {
    opacity: 0.62;
    transform: translateY(56px) scale(0.94) translateZ(10px);
    filter: blur(1px);
    z-index: 2;
  }
  72%, 92% {
    opacity: 1;
    transform: translateY(0) scale(1) translateZ(60px);
    filter: blur(0);
    z-index: 3;
  }
  100% {
    opacity: 0;
    transform: translateY(-36px) scale(0.98) translateZ(20px);
    filter: blur(0.8px);
    z-index: 3;
  }
}

@keyframes scheduleGlow {
  0%, 100% { transform: translateY(0); opacity: 0.82; }
  50% { transform: translateY(-8px); opacity: 1; }
}

@keyframes schedulePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes triageOrbit {
  0% { transform: rotate(0deg) translateX(0) scale(1); opacity: 0.72; }
  50% { transform: rotate(180deg) translateX(8px) scale(1.04); opacity: 1; }
  100% { transform: rotate(360deg) translateX(0) scale(1); opacity: 0.72; }
}

@keyframes reminderSlide {
  0%, 100% { transform: translateX(0); opacity: 0.72; }
  50% { transform: translateX(12px); opacity: 1; }
}

@keyframes bellNudge {
  0%, 100% { transform: rotate(0deg) scale(1); }
  12% { transform: rotate(-6deg) scale(1.03); }
  24% { transform: rotate(6deg) scale(1.03); }
  36% { transform: rotate(0deg) scale(1); }
}

@keyframes docFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes panelBar {
  0%, 100% { transform: scaleY(0.86); transform-origin: bottom; }
  50% { transform: scaleY(1.08); transform-origin: bottom; }
}

@keyframes panelCard {
  0%, 100% { transform: translateY(0); opacity: 0.78; }
  50% { transform: translateY(-8px); opacity: 1; }
}

@keyframes humanPulse {
  0%, 100% { transform: scale(1); opacity: 0.86; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes handoffBubble {
  0%, 100% { transform: translateX(0); opacity: 0.82; }
  50% { transform: translateX(-10px); opacity: 1; }
}

@media (max-width: 1100px) {
  .split-heading,
  .security-grid,
  .clinical-pain-grid,
  .flow-rail,
  .rollout-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "schedule triage"
      "schedule reminder"
      "docs reminder"
      "panel panel"
      "human human";
  }

  .clinical-pain-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .clinical-hero {
    padding-top: 112px;
  }

  .clinical-hero-grid {
    min-height: auto;
    text-align: left;
  }

  .clinical-hero-grid .badge {
    margin-left: 0;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn,
  .hero-actions .clinical-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .clinical-hero-visual {
    min-height: 560px;
  }

  .clinical-phone {
    width: min(315px, 86vw);
    height: min(620px, 168vw);
    transform: rotateX(0deg) rotateY(0deg);
  }

  .mac-mouse-pointer {
    transform: scale(0.84);
  }

  .clinical-pain-grid,
  .flow-rail,
  .rollout-grid,
  .resource-mosaic {
    grid-template-columns: 1fr;
    grid-template-areas:
      "schedule"
      "triage"
      "reminder"
      "docs"
      "panel"
      "human";
  }

  .security-list div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .final-cta-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .final-cta-content {
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta-button-wrapper {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .clinical-hero-visual {
    min-height: 500px;
  }

  .clinical-phone {
    border-radius: 42px;
    padding: 9px;
  }

  .phone-screen {
    border-radius: 34px;
  }

  .phone-message,
  .phone-typing {
    font-size: 0.72rem;
  }

  .clinical-pain-card,
  .flow-step,
  .resource-card,
  .rollout-grid article {
    padding: 1.5rem;
  }
}
