:root {
  --blue: #1268fb;
  --blue-strong: #0457df;
  --navy: #071f4d;
  --ink: #050507;
  --text: #1f2430;
  --muted: #697386;
  --line: #dbe3ef;
  --soft: #f4f7fb;
  --cream: #fff8dc;
  --green: #0d7c66;
  --warning: #8a5a00;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(7, 31, 77, 0.16);
  --tight-shadow: 0 14px 34px rgba(7, 31, 77, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0, #ffffff 560px, #f6f8fc 560px, #f6f8fc 100%);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(219, 227, 239, 0.82);
  backdrop-filter: blur(16px);
}

.site-header-top {
  display: grid;
  grid-template-columns: minmax(148px, 210px) minmax(320px, 1fr) auto;
  align-items: center;
  gap: 26px;
  min-height: 78px;
  padding: 12px clamp(24px, 4vw, 72px);
}

.mobile-menu-link,
.brand-light {
  display: none;
}

.brand img {
  width: 168px;
  height: auto;
}

.header-search-form {
  display: grid;
  grid-template-columns: 1fr 50px;
  align-items: center;
  width: min(100%, 470px);
  margin: 0 auto;
  gap: 12px;
}

.header-search-form input {
  min-height: 50px;
  padding: 0 18px;
  color: #4d5564;
  background: #fff;
  border: 1px solid rgba(60, 72, 96, 0.42);
  border-radius: 999px;
  font-size: 0.94rem;
}

.header-search-form input:focus {
  outline: 0;
  border-color: rgba(18, 104, 251, 0.52);
}

.header-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
}

.header-search-submit svg,
.utility-icon svg,
.header-phone svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.header-utilities {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.utility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #252d3b;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  color: var(--white);
  background: linear-gradient(180deg, #1e63e8 0%, #0b51d7 100%);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
}

.header-phone span {
  white-space: nowrap;
}

.site-tabs {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 56px);
  padding: 13px clamp(18px, 4vw, 54px) 15px;
  color: #293345;
  background: #eef3fb;
  border-top: 1px solid rgba(219, 227, 239, 0.88);
  font-size: 0.89rem;
  font-weight: 600;
}

.site-tabs a {
  padding: 0;
}

.site-tabs a:hover {
  color: var(--blue);
}

.primary-action,
.secondary-action,
.chat-form button,
.cta-message button,
.cta-message a {
  border: 0;
  cursor: pointer;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--white);
  background: var(--blue);
  border-radius: 6px;
  font-weight: 850;
}

.primary-action:hover {
  background: var(--blue-strong);
}

.site-tabs .is-highlighted {
  color: #f0319f;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.78fr);
  gap: clamp(30px, 4vw, 66px);
  align-items: start;
  width: min(1240px, calc(100% - 40px));
  margin: 18px auto 0;
  min-height: calc(100vh - 160px);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 7% 48% auto -4%;
  height: 74%;
  background:
    linear-gradient(90deg, rgba(18, 104, 251, 0.12), transparent 58%),
    repeating-linear-gradient(135deg, rgba(7, 31, 77, 0.08) 0 1px, transparent 1px 16px);
  border-radius: 8px;
  z-index: -1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(8px, 1.8vw, 18px) 0 8px;
}

.show-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(560px, 100%);
  aspect-ratio: 16 / 10.75;
  padding: 0;
  margin-bottom: 18px;
  background: #d8d2c9;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.show-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.campaign-tags span {
  padding: 7px 10px;
  color: var(--navy);
  background: #edf4ff;
  border: 1px solid #d5e5ff;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.eyebrow {
  margin: 12px 0 8px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(2.18rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 700;
}

#hero-title {
  max-width: none;
  font-size: clamp(1.9rem, 2vw, 2rem);
  line-height: 1.04;
}

.hero-title-line {
  display: block;
}

h2 {
  color: var(--ink);
  font-size: clamp(1.38rem, 2vw, 2.08rem);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 700;
}

h3 {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.18;
  font-weight: 700;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 12px;
  color: #3b4354;
  font-size: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 12px;
  color: var(--blue);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-link-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 850;
}

.secondary-action:hover {
  border-color: var(--blue);
}

.doctor-note {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  max-width: 660px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--tight-shadow);
}

.doctor-note p {
  margin: 0;
  color: #41495a;
  font-size: 0.96rem;
  font-weight: 500;
}

.doctor-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--cream);
  background: var(--ink);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
}

.chat-panel {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: min(720px, calc(100vh - 132px));
  max-height: 760px;
  background: var(--soft);
  border: 1px solid #cdd9e8;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.chat-panel-placeholder {
  display: none;
}

.chat-panel-placeholder.is-visible {
  display: block;
  visibility: hidden;
}

.chat-panel.is-fixed {
  position: fixed;
  z-index: 12;
}

.chat-panel.is-docked {
  box-shadow: 0 16px 36px rgba(7, 31, 77, 0.2);
}

.chat-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: start;
  padding: 16px 24px 14px 24px;
  color: var(--white);
  background: linear-gradient(90deg, var(--ink), var(--navy));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-header > div {
  min-width: 0;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-self: end;
  align-self: start;
  white-space: nowrap;
}

.chat-header .eyebrow {
  margin: 0 0 8px;
  color: #9cc3ff;
}

.chat-header h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.45rem, 1.85vw, 1.8rem);
  line-height: 1.04;
  max-width: 100%;
}

.chat-title-line {
  display: block;
}

.status-pill {
  flex: 0 0 auto;
  margin-top: 3px;
  padding: 6px 10px;
  color: #d9fff4;
  background: rgba(13, 124, 102, 0.42);
  border: 1px solid rgba(188, 230, 218, 0.7);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.status-pill.demo {
  color: #f6e7cf;
  background: rgba(138, 90, 0, 0.26);
  border-color: rgba(255, 214, 145, 0.42);
}

.chat-toggle-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.chat-toggle-button:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.26);
}

.chat-toggle-button:focus-visible {
  outline: 3px solid rgba(156, 195, 255, 0.26);
  outline-offset: 2px;
}

.chat-toggle-icon {
  width: 13px;
  height: 13px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.chat-toggle-button.is-collapsed {
  transform: rotate(180deg);
}

.chat-panel.is-collapsed {
  min-height: 0;
}

.chat-panel.is-collapsed .chat-mode-note,
.chat-panel.is-collapsed .messages,
.chat-panel.is-collapsed .chat-form,
.chat-panel.is-collapsed .safety-copy {
  display: none;
}

.chat-mode-note {
  margin: 0;
  padding: 9px 18px 10px;
  color: #6f5a2f;
  background: rgba(255, 248, 220, 0.78);
  border-bottom: 1px solid rgba(234, 223, 156, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
}

.messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 260px;
  padding: 16px 18px;
  overflow-y: auto;
  overflow-anchor: none;
}

.message {
  width: min(96%, 620px);
  padding: 12px 14px;
  border-radius: 8px;
}

.message-author {
  display: block;
  margin-bottom: 5px;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
}

.message-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.42;
}

.message strong {
  font-weight: 900;
}

.message.doctor-message {
  align-self: flex-start;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid #eadf9c;
}

.message.doctor-message-enter {
  animation: doctorMessageIn 220ms ease;
}

.message.doctor-message .message-author,
.message.doctor-message .message-body {
  color: var(--ink);
}

.user-message {
  align-self: flex-end;
  color: var(--white);
  background: var(--blue);
}

.user-message .message-author {
  color: #dce9ff;
}

.typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: calc(100% - 12px);
  padding: 10px 14px 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(18, 104, 251, 0.12);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(7, 31, 77, 0.06);
  backdrop-filter: blur(10px);
}

.typing .message-author {
  margin-bottom: 0;
  padding: 4px 8px;
  color: var(--blue);
  background: rgba(18, 104, 251, 0.08);
  border-radius: 999px;
  font-size: 0.67rem;
  letter-spacing: 0;
}

.typing .message-body {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #55627a;
  font-size: 0.93rem;
}

.typing .message-body::after {
  content: "";
  width: 24px;
  height: 6px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(18, 104, 251, 0.95) 0 38%, transparent 42%) 0 50% / 6px 6px no-repeat,
    radial-gradient(circle, rgba(18, 104, 251, 0.48) 0 38%, transparent 42%) 9px 50% / 6px 6px no-repeat,
    radial-gradient(circle, rgba(18, 104, 251, 0.22) 0 38%, transparent 42%) 18px 50% / 6px 6px no-repeat;
  animation: typingDotsShift 1s ease-in-out infinite;
}

.message.doctor-message.safety-message {
  color: var(--text);
  background: #ffd0c2;
  border: 1px solid rgba(214, 136, 107, 0.32);
  padding: 8px 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.message.doctor-message.safety-message .message-author {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 4px;
  padding: 1px 6px;
  color: #9b4f39;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.56rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
  letter-spacing: 0;
}

.message.doctor-message.safety-message .message-body {
  color: #7d4132;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.34;
}

.cta-message {
  align-self: center;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 0 2px;
}

.cta-message button,
.cta-message a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  color: var(--white);
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-strong) 100%);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(18, 104, 251, 0.24);
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.cta-message button:hover,
.cta-message a:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(18, 104, 251, 0.3);
}

.cta-message button:focus-visible,
.cta-message a:focus-visible {
  outline: 3px solid rgba(18, 104, 251, 0.22);
  outline-offset: 2px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 10px;
  padding: 14px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.chat-form textarea {
  width: 100%;
  min-height: 52px;
  max-height: 140px;
  padding: 14px 16px;
  color: var(--text);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  resize: vertical;
}

.chat-form textarea:focus {
  outline: 3px solid rgba(18, 104, 251, 0.18);
  border-color: var(--blue);
}

.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-height: 52px;
  color: var(--white);
  background: var(--blue);
  border-radius: 6px;
}

.send-button:hover {
  background: var(--blue-strong);
}

.send-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.safety-copy {
  margin: 0;
  padding: 0 18px 18px;
  color: #687285;
  background: var(--white);
  font-size: 0.82rem;
}

.faq-section {
  width: min(1240px, calc(100% - 40px));
  margin: 76px auto 0;
}

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

.section-heading .eyebrow {
  margin-top: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 0.98rem;
}

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

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(7, 31, 77, 0.04);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 600;
}

details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 86px;
  padding: 28px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: var(--ink);
}

@keyframes typingDotsShift {
  0%,
  100% {
    opacity: 0.58;
    transform: translateX(0);
  }

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

@keyframes doctorMessageIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer img {
  width: 180px;
}

.site-footer p {
  margin: 0;
  color: #d7dce6;
  font-size: 0.88rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
  }

  .site-header-top {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 18px;
  }

  .mobile-menu-link {
    display: none;
  }

  .header-search-form {
    width: 100%;
  }

  .header-utilities {
    justify-content: flex-start;
  }

  .site-tabs {
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    padding: 12px 18px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-shell::before {
    inset: 3% -4% auto -4%;
    height: 46%;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .chat-panel {
    position: static;
    min-height: 680px;
    max-height: none;
  }

  .chat-panel.is-fixed {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
  }

  .chat-panel-placeholder.is-visible {
    display: none;
  }

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

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

@media (max-width: 640px) {
  body {
    background: #f6f8fc;
  }

  .site-header {
    position: sticky;
    top: 0;
    background: rgba(7, 31, 77, 0.94);
    border-bottom: 0;
  }

  .site-header-top {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    min-height: 66px;
    padding: 10px 16px;
  }

  .mobile-menu-link {
    display: inline-flex;
  }

  .mobile-menu-link,
  .header-utilities .utility-icon,
  .header-phone {
    color: var(--white);
  }

  .mobile-menu-link {
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
  }

  .mobile-menu-link svg,
  .utility-icon svg,
  .header-phone svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  .brand img {
    width: 146px;
  }

  .brand-dark {
    display: none;
  }

  .brand-light {
    display: block;
  }

  .header-utilities {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .header-search-form,
  .site-tabs {
    display: none;
  }

  .utility-icon {
    width: 28px;
    height: 28px;
    color: var(--white);
  }

  .header-phone {
    width: 28px;
    min-height: 28px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .header-phone-label {
    display: none;
  }

  .hero-shell,
  .faq-section {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 2.32rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .doctor-note {
    grid-template-columns: 44px 1fr;
    padding: 14px;
  }

  .doctor-badge {
    width: 44px;
    height: 44px;
  }

  .chat-header {
    padding: 16px 24px 14px 24px;
  }

  .chat-header-actions {
    gap: 7px;
  }

  .chat-header h2 .nowrap {
    white-space: normal;
  }

  .status-pill {
    padding: 7px 9px;
    font-size: 0.76rem;
  }

  .chat-toggle-button {
    width: 30px;
    height: 30px;
  }

  .messages {
    padding-left: 14px;
    padding-right: 14px;
  }

  .message {
    width: 96%;
  }

  .chat-form {
    grid-template-columns: 1fr 48px;
    padding: 12px;
  }

  .send-button {
    width: 48px;
  }

  .faq-section {
    margin-top: 54px;
  }
}
