:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-soft: #f3f7fb;
  --text: #132238;
  --text-muted: #5d6f82;
  --blue: #2f7edb;
  --blue-soft: #d7e9ff;
  --border: #d8e4f1;
  --shadow: 0 14px 40px rgba(16, 57, 102, 0.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: min(1120px, 92vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 10% 0%, #ecf5ff 0%, #f7fbff 38%, #ffffff 100%);
  color: var(--text);
  font-family: "Manrope", "Plus Jakarta Sans", "Segoe UI", sans-serif;
  line-height: 1.55;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section-padding {
  padding: 90px 0;
}

.section-muted {
  background: linear-gradient(180deg, #fbfdff, #f5f9fd);
  border-top: 1px solid #edf3f9;
  border-bottom: 1px solid #edf3f9;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
}

.orb-1 {
  width: 360px;
  height: 360px;
  background: rgba(122, 183, 255, 0.24);
  top: -100px;
  left: -80px;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(196, 220, 249, 0.35);
  right: -70px;
  top: 280px;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(38, 89, 142, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 89, 142, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(250, 252, 255, 0.8);
  border-bottom: 1px solid rgba(215, 226, 237, 0.8);
}

.nav-wrap {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, #3f8ce6, #2a6ec2);
  box-shadow: 0 8px 18px rgba(43, 111, 194, 0.25);
}

.brand-text {
  font-size: 1.02rem;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

.desktop-nav a {
  color: var(--text-muted);
  font-weight: 600;
}

.desktop-nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.92rem;
}

.btn-primary {
  padding: 13px 22px;
  color: white;
  background: linear-gradient(135deg, #377fd8, #2a6fc4);
  box-shadow: 0 12px 22px rgba(46, 117, 201, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(46, 117, 201, 0.3);
}

.btn-secondary {
  padding: 13px 22px;
  background: white;
  color: #234465;
  border-color: #c9daec;
}

.btn-secondary:hover {
  background: #f5faff;
}

.hero {
  padding-top: 56px;
}

.brand-strip {
  padding-top: 18px;
}

.brand-strip-copy {
  max-width: 880px;
  text-align: center;
}

.brand-strip-copy h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.12;
}

.brand-strip-copy p {
  margin: 12px auto 0;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}

.brand-marquee {
  margin-top: 24px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.brand-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(56px, 7vw, 80px);
  animation: marquee 30s linear infinite;
}

.brand-marquee-track:hover {
  animation-play-state: paused;
}

.brand-marquee-item {
  flex: 0 0 auto;
  min-width: 132px;
  height: 72px;
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 226, 239, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 22px rgba(16, 57, 102, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-marquee-item img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.72;
  filter: grayscale(1) brightness(0.76) contrast(0.92);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.brand-marquee-item:hover {
  transform: translateY(-2px);
  border-color: rgba(191, 208, 226, 0.95);
  box-shadow: 0 14px 28px rgba(16, 57, 102, 0.1);
}

.brand-marquee-item:hover img {
  opacity: 1;
  filter: none;
  transform: scale(1.04);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.hero-grid {
  display: grid;
  gap: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  background: #f4f9ff;
  color: #376ea8;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  letter-spacing: -0.025em;
  margin: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 5.8vw, 3.7rem);
  line-height: 1.08;
  max-width: 13ch;
}

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 18px 0 0;
}

.cta-group {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-group.center {
  justify-content: center;
}

.trust-line {
  margin-top: 16px;
  font-weight: 600;
  color: #4f6882;
}

.hero-panels {
  position: relative;
  display: grid;
  gap: 16px;
}

.hero-panels::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(90, 154, 232, 0.25), rgba(90, 154, 232, 0));
  right: -36px;
  top: -24px;
  pointer-events: none;
  z-index: 0;
}

.hero-panels .ui-card {
  position: relative;
  z-index: 1;
  animation: floatCard 5.2s ease-in-out infinite;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.hero-panels .booking-card {
  animation-delay: 1.1s;
}

.hero-panels .ui-card:hover {
  animation-play-state: paused;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(16, 57, 102, 0.14);
}

.ui-card {
  background: var(--surface);
  border: 1px solid #dae6f2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.chatbot-card {
  padding: 14px;
}

.ui-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6886a3;
  font-weight: 700;
  font-size: 0.88rem;
}

.ui-topbar p {
  margin-left: 8px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8d9eb;
}

.chat-stream {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  border-radius: 16px;
  padding: 12px 13px;
  font-size: 0.94rem;
  max-width: 88%;
  box-shadow: 0 8px 16px rgba(31, 86, 145, 0.08);
  opacity: 0;
  transform: translateY(8px);
  animation: messageIn 0.55s ease forwards;
}

.chat-bubble.patient {
  align-self: flex-start;
  background: #edf4fb;
  border: 1px solid #d8e7f4;
  animation-delay: 0.2s;
}

.chat-bubble.ai {
  align-self: flex-end;
  background: linear-gradient(145deg, #dcecff, #d2e7ff);
  border: 1px solid #b9d5f8;
  animation-delay: 1.8s;
}

.chat-typing {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #b9d5f8;
  background: linear-gradient(145deg, #dcecff, #d2e7ff);
  box-shadow: 0 8px 16px rgba(31, 86, 145, 0.08);
  opacity: 0;
  animation: typingReveal 1.2s ease 0.95s forwards;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a6fc4;
  animation: typingDot 0.8s ease-in-out infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.13s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.26s;
}

.chat-meta {
  color: #4870a0;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  animation: statusFadeIn 0.45s ease 2.55s forwards;
}

.booking-card {
  padding: 16px;
}

.booking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.status {
  color: #2b74ca;
  border: 1px solid #b7d3f1;
  background: #eef6ff;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.8rem;
  animation: syncPulse 1.9s ease-in-out infinite;
}

.slots {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.slots button {
  border-radius: 10px;
  border: 1px solid #d0dfef;
  background: #f9fcff;
  color: #2f4e6f;
  padding: 10px 8px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  animation: slotIn 0.45s ease forwards;
}

.slots button:nth-child(1) {
  animation-delay: 0.4s;
}

.slots button:nth-child(2) {
  animation-delay: 0.52s;
}

.slots button:nth-child(3) {
  animation-delay: 0.64s;
}

.slots button:nth-child(4) {
  animation-delay: 0.76s;
}

.slots .selected {
  border-color: #89b6ea;
  background: #e9f3ff;
  color: #184a84;
  box-shadow: 0 0 0 3px rgba(117, 171, 234, 0.24), 0 10px 20px rgba(46, 111, 194, 0.18);
}

.booking-foot {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.booking-foot p {
  margin: 0;
  color: #556e88;
  font-size: 0.9rem;
}

.booking-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2a6ec2;
  font-weight: 700;
  font-size: 0.9rem;
}

.booking-foot a::before {
  content: "\2713";
  font-size: 0.86rem;
  color: #2a70c4;
  animation: confirmPulse 1.5s ease-in-out infinite;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typingReveal {
  0% {
    opacity: 0;
  }

  15%,
  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes typingDot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.65;
  }

  50% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

@keyframes statusFadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes syncPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(63, 127, 208, 0);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(63, 127, 208, 0.18);
  }
}

@keyframes slotIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes confirmPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.16);
    opacity: 1;
  }
}

.section-title {
  max-width: 720px;
}

.section-title h2 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  line-height: 1.13;
}

.problem-grid,
.services-grid,
.steps-grid,
.results-grid,
.testimonial-grid {
  margin-top: 34px;
  display: grid;
  gap: 14px;
}

.problem-card,
.service-card,
.step-card,
.result-card,
.testimonial {
  background: var(--surface);
  border: 1px solid #d9e6f2;
  border-radius: var(--radius-md);
  padding: 22px;
}

.problem-card h3,
.service-card h3,
.step-card h3,
.result-card h3 {
  font-size: 1.16rem;
}

.problem-card p,
.service-card p,
.step-card p,
.system-wrap p,
.demo-card p,
.testimonial p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.system-wrap {
  text-align: center;
  max-width: 860px;
}

.system-wrap h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
}

.system-wrap p {
  margin-top: 14px;
  font-size: 1.08rem;
}

.services-grid {
  grid-template-columns: 1fr;
}

.service-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #edf5ff;
  border: 1px solid #c7dcf4;
  color: #215f9f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.steps-grid {
  counter-reset: step;
}

.step-card {
  position: relative;
  overflow: hidden;
}

.step-no {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eaf3ff;
  border: 1px solid #bed5ef;
  color: #1e5a95;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.results-layout {
  display: grid;
  gap: 24px;
}

.result-card h3 {
  margin: 0;
}

.stat-card {
  background: linear-gradient(140deg, #2e6db8, #4f95ea);
  color: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 16px 34px rgba(34, 92, 159, 0.28);
}

.stat {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1;
}

.stat strong {
  font-size: 3rem;
}

.booking-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f9fcff, #f3f8fe);
  border-top: 1px solid #e2ecf6;
  border-bottom: 1px solid #e2ecf6;
}

.booking-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(114, 168, 236, 0.22) 0%, rgba(114, 168, 236, 0) 70%);
  right: -120px;
  top: 40px;
  pointer-events: none;
}

.booking-wrap {
  position: relative;
  text-align: left;
  max-width: 1120px;
}

.booking-badge {
  margin: 0 auto;
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid #c8dcf0;
  background: #edf6ff;
  color: #275f97;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.booking-wrap h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  line-height: 1.14;
  max-width: 24ch;
}

.booking-subtitle {
  margin: 12px 0 0;
  max-width: 72ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.14rem);
}

.booking-grid {
  margin-top: 24px;
  display: grid;
  gap: 20px;
  align-items: start;
}

.booking-copy {
  display: grid;
  gap: 16px;
}

.booking-benefits {
  display: grid;
  gap: 10px;
}

.booking-benefit-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d8e6f3;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 18px rgba(16, 57, 102, 0.06);
}

.booking-benefit-card h3 {
  font-size: 1.03rem;
}

.calendly-shell {
  width: 100%;
  max-width: 580px;
  border: 1px solid #d7e5f2;
  border-radius: 24px;
  overflow: hidden;
  background: #f8fbff;
  box-shadow: 0 16px 34px rgba(30, 79, 134, 0.1);
}

.calendly-inline-widget {
  width: 100%;
  min-width: 320px;
  height: 680px;
}

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

.booking-trust li {
  text-align: left;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d8e6f3;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  color: #2d4b6b;
}

.booking-trust li span {
  color: #2a70c4;
  font-weight: 800;
  margin-right: 8px;
}

.booking-note {
  margin: 0;
  max-width: 68ch;
  color: #4f6882;
  font-weight: 500;
  text-align: left;
  font-size: 0.94rem;
}

.demo-card {
  background: linear-gradient(145deg, #f8fbff, #eef6ff);
  border: 1px solid #d6e4f3;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 42px);
  display: grid;
  gap: 20px;
  align-items: center;
}

.demo-card h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  line-height: 1.12;
}

.demo-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.demo-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d3e3f2;
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #2d4b6b;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(16, 57, 102, 0.06);
}

.demo-points span {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #1f6fbd;
  background: #e8f3ff;
  font-weight: 900;
}

.faq-page .section-padding:first-child {
  padding-bottom: 70px;
}

.faq-hero {
  max-width: 860px;
}

.faq-hero h1 {
  max-width: 15ch;
}

.faq-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

.faq-summary {
  max-width: 520px;
}

.faq-summary h2 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  line-height: 1.13;
}

.faq-summary p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid #d8e6f3;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(16, 57, 102, 0.06);
  overflow: hidden;
}

.faq-list summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: #173553;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #1f6fbd;
  background: #e8f3ff;
  font-size: 1.15rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--text-muted);
}

.testimonial span {
  display: inline-block;
  margin-top: 14px;
  color: #3b5a78;
  font-weight: 700;
  font-size: 0.88rem;
}

.final-cta {
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  max-width: 20ch;
  margin: 0 auto;
}

.site-footer {
  border-top: 1px solid #d9e6f2;
  background: #f8fbff;
  padding: 44px 0 56px;
}

.footer-grid {
  display: grid;
  gap: 26px;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0;
  color: #506880;
}

.site-footer h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: #456689;
}

.healthlink-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  font-family: "Manrope", "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.healthlink-chat-window {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(400px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 116px));
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto auto;
  overflow: hidden;
  border: 1px solid rgba(196, 218, 240, 0.96);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 22px 58px rgba(16, 57, 102, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

.healthlink-chat-window.open,
.healthlink-chat.is-open .healthlink-chat-window {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.healthlink-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  color: white;
  background: linear-gradient(135deg, #2f7edb, #2365b3);
}

.healthlink-chat-header h2 {
  font-size: 1rem;
  line-height: 1.2;
}

.healthlink-chat-header p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  line-height: 1.35;
}

.healthlink-chat-close,
.healthlink-chat-toggle,
.healthlink-chat-send {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.healthlink-chat-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, transform 0.2s ease;
}

.healthlink-chat-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.healthlink-chat-close span {
  font-size: 1.45rem;
  line-height: 1;
  transform: translateY(-1px);
}

.healthlink-chat-messages {
  min-height: 300px;
  overflow-y: auto;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.healthlink-chat-message {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 16px;
  color: #203d5c;
  font-size: 0.92rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: normal;
  animation: chatMessageIn 0.22s ease both;
}

.healthlink-chat-message-assistant {
  align-self: flex-start;
  max-width: 88%;
  padding: 14px 16px;
  border: 1px solid #d7e6f5;
  border-bottom-left-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 57, 102, 0.07);
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: normal;
}

.healthlink-chat-message-user {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  color: white;
  background: linear-gradient(135deg, #357ed8, #286fc3);
  box-shadow: 0 8px 18px rgba(46, 117, 201, 0.18);
}

.healthlink-chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 11px 13px;
}

.healthlink-chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f7edb;
  animation: typingDot 0.8s ease-in-out infinite;
}

.healthlink-chat-typing span:nth-child(2) {
  animation-delay: 0.13s;
}

.healthlink-chat-typing span:nth-child(3) {
  animation-delay: 0.26s;
}

.healthlink-chat-cta {
  margin: 0 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c4dcf5;
  border-radius: 12px;
  padding: 10px 12px;
  color: #205f9e;
  background: #eef7ff;
  font-size: 0.88rem;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.healthlink-chat-cta:hover {
  background: #e4f1ff;
  transform: translateY(-1px);
}

.healthlink-chat-warning {
  min-height: 18px;
  margin: -4px 16px 8px;
  color: #9a4d1f;
  font-size: 0.82rem;
  font-weight: 700;
}

.healthlink-chat-warning:empty {
  display: none;
}

.healthlink-chat-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #e1edf7;
  background: #ffffff;
}

.healthlink-chat-form textarea {
  width: 100%;
  max-height: 120px;
  resize: none;
  border: 1px solid #cddded;
  border-radius: 14px;
  padding: 11px 12px;
  background: #fbfdff;
  color: #1f3d5d;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.35;
}

.healthlink-chat-form textarea::placeholder {
  color: #8298ad;
}

.healthlink-chat-form textarea:focus {
  outline: none;
  border-color: #79abe5;
  box-shadow: 0 0 0 3px rgba(102, 159, 227, 0.18);
}

.healthlink-chat-send {
  min-width: 68px;
  height: 44px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #377fd8, #2a6fc4);
  box-shadow: 0 10px 18px rgba(46, 117, 201, 0.2);
  font-weight: 800;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.healthlink-chat-send:hover:not(:disabled) {
  transform: translateY(-1px);
}

.healthlink-chat-send:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  box-shadow: none;
}

.healthlink-chat-toggle {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #3f8ce6, #256bbc);
  box-shadow: 0 16px 32px rgba(33, 100, 184, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.healthlink-chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(33, 100, 184, 0.4);
}

.healthlink-chat-toggle svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes chatMessageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.reveal-delay {
  transition-delay: 0.1s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .brand-strip {
    padding-top: 24px;
  }

  .desktop-nav {
    display: inline-flex;
  }

  .problem-grid,
  .steps-grid,
  .results-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-grid {
    grid-template-columns: minmax(0, 1fr) minmax(520px, 580px);
    gap: 24px;
  }

  .calendly-inline-widget {
    height: 680px;
  }

  .demo-card {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 24px;
  }

  .faq-layout {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 110px 0;
  }

  .hero {
    padding-top: 76px;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-grid .service-card:last-child {
    grid-column: span 2;
  }

  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .results-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .healthlink-chat {
    right: 12px;
    bottom: 12px;
  }

  .healthlink-chat-window {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 96px);
    bottom: 72px;
    border-radius: 18px;
  }

  .healthlink-chat-messages {
    min-height: 250px;
  }

  .healthlink-chat-toggle {
    width: 58px;
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
