:root {
  --cb-blue-50: #f4f8ff;
  --cb-blue-75: #edf5ff;
  --cb-blue-100: #dbeafe;
  --cb-blue-200: #bfdbfe;
  --cb-blue-300: #93c5fd;
  --cb-blue-500: #3f7ef8;
  --cb-blue-600: #2563eb;
  --cb-blue-700: #1d4ed8;
  --cb-blue-800: #1e40af;
  --cb-navy-950: #000829;
  --cb-navy-900: #05133a;
  --cb-navy-800: #132b64;
  --cb-text-primary: #071636;
  --cb-text-secondary: #4b587c;
  --cb-text-muted: #697492;
  --cb-surface: #ffffff;
  --cb-surface-soft: #f8fbff;
  --cb-surface-blue: #f3f8ff;
  --cb-border: #d8e4f5;
  --cb-border-strong: #c6d7f0;
  --cb-success: #18b875;
  --cb-shadow-sm: 0 6px 18px rgba(16, 42, 86, 0.08);
  --cb-shadow-md: 0 18px 45px rgba(30, 64, 175, 0.14);
  --cb-shadow-lg: 0 28px 70px rgba(30, 64, 175, 0.18);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --widget-height: clamp(280px, 35vh, 380px);
  color: var(--cb-text-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fbfdff;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #fbfdff;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.benefits-page {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  padding: 20px 26px 16px;
  background:
    radial-gradient(circle at 50% 48%, rgba(63, 126, 248, 0.13), transparent 27%),
    radial-gradient(circle at 13% 70%, rgba(63, 126, 248, 0.09), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 54%, #ffffff 100%);
}

.dot-field {
  position: absolute;
  pointer-events: none;
  width: 176px;
  height: 212px;
  opacity: 0.5;
  background-image: radial-gradient(rgba(63, 126, 248, 0.38) 1.1px, transparent 1.1px);
  background-size: 11px 11px;
}

.dot-field--top {
  top: 158px;
  right: -34px;
}

.dot-field--bottom {
  bottom: 78px;
  left: -28px;
}

.orbital-rings {
  position: absolute;
  top: 340px;
  right: -96px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(63, 126, 248, 0.34);
  border-radius: var(--radius-pill);
  pointer-events: none;
}

.orbital-rings::before,
.orbital-rings::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(63, 126, 248, 0.24);
  border-radius: inherit;
}

.orbital-rings::after {
  inset: 39px;
}

.site-header,
.page-shell,
.footer-row {
  position: relative;
  z-index: 2;
}

.site-header {
  width: min(100%, 1180px);
  margin-inline: auto;
  display: flex;
  align-items: center;
}

.carebridge-logo-link {
  display: inline-flex;
  border-radius: 12px;
  text-decoration: none;
}

.carebridge-logo-link:focus-visible,
.quick-actions button:focus-visible,
.language-button:focus-visible,
.expand-link:focus-visible,
.footer-row a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.36);
  outline-offset: 4px;
}

.carebridge-logo {
  width: clamp(180px, 19vw, 245px);
  height: auto;
}

.page-shell {
  width: min(100%, 1055px);
  margin: clamp(14px, 2.6vh, 28px) auto 0;
  display: grid;
  justify-items: center;
  gap: clamp(12px, 2vh, 22px);
}

.page-shell > * {
  min-width: 0;
  max-width: 100%;
}

.hero-section {
  width: min(100%, 790px);
  text-align: center;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 38px;
  margin: 0;
  padding: 0 24px;
  border: 1.5px solid rgba(37, 99, 235, 0.9);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.06);
  color: var(--cb-blue-600);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.product-badge__dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--cb-success);
  box-shadow: 0 0 0 4px rgba(24, 184, 117, 0.12);
}

.hero-title {
  margin: clamp(14px, 2vh, 23px) 0 0;
  color: var(--cb-navy-900);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-title__accent {
  position: relative;
  display: inline-block;
  color: var(--cb-blue-500);
}

.hero-title__accent::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 4%;
  bottom: -5px;
  height: 9px;
  border-bottom: 4px solid var(--cb-blue-500);
  border-radius: 50%;
  transform: rotate(-2deg);
}

.hero-subtitle {
  max-width: 610px;
  margin: clamp(9px, 1.4vh, 15px) auto 0;
  color: var(--cb-text-secondary);
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.55;
  font-weight: 600;
  text-wrap: balance;
}

.trust-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: clamp(10px, 1.5vh, 18px);
  color: var(--cb-text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.trust-row span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-inline: 28px;
  border-right: 1px solid rgba(105, 116, 146, 0.25);
  white-space: nowrap;
}

.trust-row span:first-child {
  padding-left: 0;
}

.trust-row span:last-child {
  padding-right: 0;
  border-right: 0;
}

.trust-row svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--cb-blue-600);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agent-section {
  width: min(100%, 730px);
}

.agent-card {
  overflow: hidden;
  border: 1px solid var(--cb-border-strong);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--cb-shadow-lg);
  backdrop-filter: blur(14px);
}

.agent-card__header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 26px;
  border-bottom: 1px solid rgba(198, 215, 240, 0.78);
  background: rgba(255, 255, 255, 0.86);
}

.agent-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.agent-identity img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 7px 13px rgba(37, 99, 235, 0.13));
}

.agent-identity h2 {
  margin: 0;
  color: var(--cb-navy-900);
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
}

.agent-identity p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 0 0;
  color: var(--cb-success);
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

.agent-identity p span {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: currentColor;
}

.agent-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cb-navy-800);
}

.language-button,
.expand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: inherit;
}

.language-button {
  min-height: 44px;
  gap: 10px;
  padding: 0;
  color: var(--cb-navy-800);
  cursor: default;
  font-size: 18px;
  font-weight: 700;
}

.language-button svg,
.expand-link svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.expand-link {
  min-width: 58px;
  min-height: 44px;
  border-left: 1px solid rgba(105, 116, 146, 0.22);
  text-decoration: none;
}

.agent-card__body {
  padding: 14px 22px 20px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.84), rgba(255, 255, 255, 0.96));
}

.cora-message-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.cora-message-row img {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  filter: drop-shadow(0 8px 12px rgba(37, 99, 235, 0.12));
}

.cora-message {
  width: min(100%, 470px);
  padding: 16px 18px;
  border: 1px solid var(--cb-blue-200);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  color: var(--cb-text-primary);
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.06);
}

.cora-message p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 600;
}

.cora-message p + p {
  margin-top: 7px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.quick-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--cb-blue-200);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.86);
  color: var(--cb-blue-600);
  box-shadow: var(--cb-shadow-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.quick-actions button:hover {
  border-color: var(--cb-blue-500);
  background: #ffffff;
  transform: translateY(-1px);
}

.quick-actions svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-hint {
  margin: 9px 0 8px;
  color: var(--cb-text-muted);
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 600;
}

.agent-live-shell {
  overflow: hidden;
  min-height: var(--widget-height);
  border: 2px solid var(--cb-blue-600);
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 16px 36px rgba(37, 99, 235, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.eleven-widget-frame {
  display: block;
  width: 100%;
  height: var(--widget-height);
  border: 0;
  background: #ffffff;
}

.plan-panel {
  width: min(100%, 300px);
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(198, 215, 240, 0.88);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--cb-shadow-md);
  backdrop-filter: blur(12px);
}

.plan-panel__header {
  padding: 2px 3px 4px;
}

.plan-panel__header p {
  margin: 0;
  color: var(--cb-navy-900);
  font-size: 14px;
  line-height: 1.1;
  font-weight: 800;
}

.plan-panel__header span {
  display: block;
  margin-top: 5px;
  color: var(--cb-text-secondary);
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 650;
}

.plan-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(198, 215, 240, 0.82);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.95));
}

.plan-card__marker {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(145deg, #5c92ff, #1158f1);
  box-shadow:
    0 9px 16px rgba(37, 99, 235, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  font-size: 14px;
  font-weight: 800;
}

.plan-card__marker--hospital {
  background: linear-gradient(145deg, #5c92ff, #1158f1);
}

.plan-card__marker--saver {
  background: linear-gradient(145deg, #31c58e, #0f8f63);
}

.plan-card__marker--care {
  background: linear-gradient(145deg, #0f2c74, #2563eb);
}

.plan-card h3 {
  margin: 0;
  color: var(--cb-navy-900);
  font-size: 13.5px;
  line-height: 1.15;
  font-weight: 800;
}

.plan-card p {
  margin: 4px 0 0;
  color: var(--cb-blue-600);
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 800;
}

.plan-card small {
  display: block;
  margin-top: 5px;
  color: var(--cb-text-secondary);
  font-size: 10.8px;
  line-height: 1.35;
  font-weight: 600;
}

.footer-row {
  width: min(100%, 1000px);
  margin: 14px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(105, 116, 146, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--cb-text-secondary);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.footer-row span,
.footer-row a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-row svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--cb-blue-600);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-row a {
  color: var(--cb-blue-600);
  text-decoration: none;
}

.footer-row a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

@media (max-height: 820px) and (min-width: 820px) {
  :root {
    --widget-height: 290px;
  }

  .benefits-page {
    padding-top: 14px;
  }

  .page-shell {
    margin-top: 10px;
    gap: 12px;
  }

  .product-badge {
    min-height: 34px;
  }

  .hero-title {
    margin-top: 10px;
    font-size: clamp(32px, 4vw, 48px);
  }

  .hero-subtitle {
    margin-top: 10px;
    font-size: 15px;
  }

  .trust-row {
    margin-top: 10px;
    font-size: 12px;
  }

  .agent-card__header {
    min-height: 66px;
    padding-block: 11px;
  }

  .agent-card__body {
    padding: 14px 18px 18px;
  }

  .cora-message-row {
    display: none;
  }

  .quick-actions {
    margin-top: 0;
  }

  .plan-panel {
    display: none;
  }

  .footer-row {
    margin-top: 10px;
  }
}

/* Direct ElevenLabs mount: the widget owns the live chat surface. */
body {
  overflow: hidden;
}

.benefits-page {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  padding: 18px 24px 14px;
}

.site-header {
  width: 100%;
  margin-inline: 0;
}

.page-shell {
  width: 100%;
  margin: 0;
  display: block;
}

.hero-section {
  width: min(360px, 32vw);
  margin: clamp(42px, 7vh, 70px) 0 0 clamp(18px, 4vw, 58px);
  text-align: left;
}

.product-badge {
  padding-inline: 17px;
}

.hero-title {
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.05;
}

.hero-subtitle {
  margin-inline: 0;
  text-wrap: pretty;
}

.trust-row {
  width: min(100%, 330px);
  display: grid;
  justify-content: start;
  gap: 10px;
  margin-top: 18px;
}

.trust-row span {
  justify-content: start;
  min-height: 32px;
  padding: 0;
  border-right: 0;
}

.agent-section {
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100%;
  pointer-events: none;
}

.cora-live-widget {
  --el-overlay-padding: 28px;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.plan-panel {
  position: fixed;
  right: clamp(22px, 4vw, 58px);
  top: clamp(160px, 25vh, 220px);
  z-index: 2;
  width: min(300px, 23vw);
  grid-template-columns: 1fr;
  overflow: hidden;
  margin-top: 0;
}

.footer-row {
  position: fixed;
  left: clamp(20px, 4vw, 58px);
  bottom: 12px;
  z-index: 2;
  width: auto;
  margin: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 11.5px;
}

.footer-row a {
  display: none;
}

.footer-row svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 980px) {
  .hero-section,
  .plan-panel {
    display: none;
  }

  .site-header {
    justify-content: center;
  }

  .carebridge-logo {
    width: 154px;
  }

  .cora-live-widget {
    --el-overlay-padding: 16px;
  }

  .footer-row {
    left: 14px;
    right: 14px;
    bottom: 8px;
    justify-content: center;
    font-size: 11px;
  }
}

@media (max-height: 850px) and (min-width: 820px) {
  .benefits-page {
    padding-bottom: 8px;
  }

  .footer-row {
    margin-top: 6px;
    padding-top: 0;
    border-top: 0;
    justify-content: center;
    font-size: 11.5px;
  }

  .footer-row svg {
    width: 18px;
    height: 18px;
  }

  .footer-row a {
    display: none;
  }
}

@media (max-height: 720px) and (min-width: 820px) {
  :root {
    --widget-height: 270px;
  }

  .hero-subtitle,
  .trust-row {
    display: none;
  }

  .agent-card__header {
    min-height: 60px;
  }
}

@media (max-width: 820px) {
  .benefits-page {
    padding: 18px 16px 18px;
  }

  .site-header {
    justify-content: center;
  }

  .page-shell {
    margin-top: 20px;
  }

  .trust-row {
    width: min(100%, 420px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    text-align: left;
  }

  .trust-row span {
    justify-content: center;
    padding: 0;
    border: 0;
  }

  .agent-card__header {
    align-items: flex-start;
    padding: 15px 16px;
  }

  .agent-identity img {
    width: 48px;
    height: 48px;
  }

  .agent-identity h2 {
    font-size: 22px;
  }

  .language-button {
    font-size: 0;
  }

  .language-button svg {
    width: 24px;
    height: 24px;
  }

  .expand-link {
    min-width: 44px;
  }

  .agent-card__body {
    padding: 15px;
  }

  .cora-message-row {
    grid-template-columns: 1fr;
  }

  .cora-message-row img {
    display: none;
  }

  .cora-message {
    width: 100%;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-actions button {
    justify-content: center;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .dot-field,
  .orbital-rings {
    display: none;
  }
}

@media (max-width: 520px) {
  :root {
    --widget-height: 300px;
  }

  .benefits-page {
    padding: 12px 12px 14px;
  }

  .carebridge-logo {
    width: 158px;
  }

  .page-shell {
    margin-top: 10px;
    gap: 10px;
  }

  .hero-title {
    margin-top: 10px;
    font-size: 29px;
  }

  .hero-subtitle {
    margin-top: 9px;
    font-size: 14px;
  }

  .trust-row {
    display: none;
  }

  .product-badge {
    width: min(100%, 340px);
    min-height: 30px;
    padding-inline: 15px;
    font-size: 11px;
  }

  .agent-card {
    border-radius: 22px;
  }

  .agent-card__header {
    min-height: 58px;
    padding: 8px 12px;
  }

  .agent-identity img {
    width: 38px;
    height: 38px;
  }

  .agent-identity h2 {
    font-size: 20px;
  }

  .agent-identity p {
    margin-top: 5px;
    font-size: 13px;
  }

  .agent-card__body {
    padding: 10px;
  }

  .cora-message-row {
    display: none;
  }

  .quick-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .quick-actions::-webkit-scrollbar {
    display: none;
  }

  .quick-actions button {
    flex: 0 0 auto;
    min-height: 36px;
    padding-inline: 11px;
    font-size: 12px;
    white-space: nowrap;
  }

  .topic-hint {
    margin: 7px 0;
    font-size: 11.5px;
  }

  .plan-panel {
    display: none;
  }

  .footer-row {
    margin-top: 8px;
    padding-top: 8px;
    font-size: 11px;
    line-height: 1.3;
  }

  .footer-row svg {
    width: 18px;
    height: 18px;
  }

  .footer-row a {
    display: none;
  }
}

@media (max-width: 520px) and (max-height: 760px) {
  :root {
    --widget-height: 255px;
  }

  .hero-subtitle {
    display: none;
  }

  .hero-title {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .agent-card,
  .plan-panel,
  .product-badge {
    animation: rise-in 560ms ease both;
  }

  .agent-card {
    animation-delay: 80ms;
  }

  .plan-panel {
    animation-delay: 140ms;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Final direct-widget layout overrides. */
.benefits-page {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

.site-header,
.hero-section,
.plan-panel,
.footer-row {
  position: fixed;
  z-index: 10;
}

.site-header {
  top: 18px;
  left: 24px;
  width: auto;
}

.hero-section {
  top: clamp(130px, 19vh, 175px);
  left: clamp(26px, 4vw, 58px);
  width: min(360px, 31vw);
  margin: 0;
  text-align: left;
}

.plan-panel {
  right: clamp(22px, 4vw, 58px);
  top: clamp(160px, 25vh, 220px);
  width: min(300px, 23vw);
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
}

.agent-section,
.cora-live-widget {
  position: fixed;
  inset: 0;
  z-index: 5;
}

.cora-live-widget {
  width: 100%;
  height: 100%;
}

.footer-row {
  left: clamp(20px, 4vw, 58px);
  bottom: 12px;
}

@media (max-width: 980px) {
  .hero-section,
  .plan-panel,
  .site-header {
    display: none;
  }

  .footer-row {
    left: 14px;
    right: 14px;
    bottom: 8px;
    justify-content: center;
  }

  .cora-live-widget {
    --el-overlay-padding: 16px;
  }
}
