@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-primary: #1f4d3d;
  --color-accent: #38bdf8;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-border: rgba(15, 23, 42, 0.12);
  --color-border-strong: rgba(15, 23, 42, 0.2);
  --color-pharmacist: #1f4d3d;
  --color-pharmacist-soft: rgba(31, 77, 61, 0.12);
  --color-surface-glass: rgba(255, 255, 255, 0.78);
  --color-shadow-soft: rgba(15, 23, 42, 0.08);
  --color-grid-line: rgba(15, 23, 42, 0.06);
  --radius-large: 32px;
  --radius-pill: 999px;
  --radius-card: 20px;
  --container-width: min(1280px, calc(100% - 5rem));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Space Grotesk",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 45%, #ffffff 90%);
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.6;
  z-index: -1;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.25),
    transparent 70%
  );
}

body::before {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -80px;
}

body::after {
  width: 640px;
  height: 640px;
  bottom: -240px;
  left: -140px;
  background: radial-gradient(circle, rgba(31, 77, 61, 0.18), transparent 70%);
}

.container {
  width: var(--container-width);
  margin: 0 auto;
}

.ambient-grid,
.texture-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.ambient-grid {
  background-image:
    linear-gradient(120deg, rgba(56, 189, 248, 0.08), transparent 65%),
    repeating-linear-gradient(
      0deg,
      var(--color-grid-line),
      var(--color-grid-line) 1px,
      transparent 1px,
      transparent 42px
    ),
    repeating-linear-gradient(
      90deg,
      var(--color-grid-line),
      var(--color-grid-line) 1px,
      transparent 1px,
      transparent 42px
    );
  opacity: 0.65;
}

.texture-noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Crect width='8' height='8' fill='%230f172a' fill-opacity='0.024'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.7;
}

.header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 720px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.section-shell {
  border: 1px solid transparent;
  border-radius: var(--radius-large);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 250, 252, 0.85);
  padding: 1.75rem 0 0.75rem;
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 4vw, 3rem) 0 2rem;
  overflow: visible;
}

.hero .container {
  padding: 0;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2.5rem, 4vw, 4rem);
  align-items: stretch;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  filter: blur(70px);
}

.hero-glow--primary {
  background: radial-gradient(
    circle at 15% 20%,
    rgba(56, 189, 248, 0.35),
    transparent 60%
  );
}

.hero-glow--secondary {
  background: radial-gradient(
    circle at 80% 40%,
    rgba(31, 77, 61, 0.35),
    transparent 65%
  );
}

.hero-copy-block {
  position: relative;
  display: grid;
  gap: 1.75rem;
  padding: clamp(2rem, 4vw, 2.75rem);
  background: var(--color-surface-glass);
  border-radius: var(--radius-large);
  border: 1px solid var(--color-border);
  box-shadow: 0 50px 80px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.hero-copy-block::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 0.4;
  pointer-events: none;
}

.audience-toggle {
  position: relative;
  display: inline-flex;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  gap: 0.5rem;
  align-items: center;
  overflow: hidden;
  transition:
    box-shadow 0.32s ease,
    background 0.3s ease;
  backdrop-filter: blur(10px);
}

.audience-toggle:hover,
.audience-toggle:focus-within {
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.toggle-indicator {
  --indicator-translate: 0px;
  --indicator-scale: 1;
  --indicator-scale-y: 1;
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  height: calc(100% - 0.9rem);
  width: var(--indicator-width, 50%);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #0f5132, #11664d);
  box-shadow: 0 10px 20px rgba(15, 81, 50, 0.3);
  transform: translateX(var(--indicator-translate))
    scaleX(var(--indicator-scale)) scaleY(var(--indicator-scale-y));
  transform-origin: center;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.32s ease;
  z-index: 0;
}

.toggle-button {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  color: var(--color-text);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition:
    transform 0.24s cubic-bezier(0.19, 1, 0.22, 1),
    color 0.3s ease;
}

.toggle-button:hover,
.toggle-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.toggle-button.is-active {
  font-weight: 700;
  color: #ffffff;
  transform: translateY(-1px) scale(1.02);
}
.eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

#hero-title {
  font-size: clamp(2.65rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 18ch;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-shadow: 0 14px 40px rgba(15, 23, 42, 0.14);
}

.hero-line-static {
  display: block;
}

 .hero-adjective-line {
   display: block;
   margin-top: 0.35rem;
 }

 .hero-adjective-line > u {
   display: inline-flex;
   align-items: flex-start;
 }

.hero-copy {
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  color: var(--color-text);
  max-width: 45ch;
  line-height: 1.5;
}

 .hero-adjective {
   display: inline;
   position: relative;
 }

 /* Wrapper creates stable width using the longest word */
 .hero-adjective-wrapper {
   display: inline-block;
   position: relative;
   vertical-align: bottom;
 }

 /* Invisible sizer - reserves width for longest word */
 .hero-adjective-sizer {
   display: block;
   visibility: hidden;
   height: 0;
   white-space: nowrap;
   pointer-events: none;
 }

 /* Visible text that types - positioned over sizer */
 .hero-adjective-text {
   display: inline;
 }

 .hero-adjective-caret {
   display: inline-block;
   width: 2px;
   height: 1.15em;
   background: var(--color-text);
   margin-left: 1px;
   vertical-align: text-bottom;
   opacity: 0;
   animation: none;
 }

 .hero-adjective.show-caret .hero-adjective-caret {
   opacity: 1;
   animation: breathe 1s ease-in-out infinite;
 }

 @keyframes breathe {
   0%, 100% {
     opacity: 1;
   }
   50% {
     opacity: 0;
   }
 }

 @media (prefers-reduced-motion: reduce) {
   .hero-adjective-caret {
     animation: none;
   }
 }

.form-panel {
  position: relative;
  border-radius: var(--radius-large);
  padding: clamp(0.5rem, 2vw, 1.5rem);
  background: rgba(248, 250, 252, 0.75);
  border: 1px solid var(--color-border);
  box-shadow: 0 50px 90px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}

.form-panel::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
  opacity: 0.45;
}

.hero-form {
  background: transparent;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: calc(var(--radius-large) - 12px);
  display: grid;
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}

.hero-form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-muted);
}

.hero-form input,
.hero-form select {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  font: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.85);
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-form input:focus,
.hero-form select:focus {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
  outline: none;
}

.field-inline {
  display: grid;
  gap: 0.6rem;
}

.name-inline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.25));
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.85rem;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(120deg, #0f5132, var(--color-primary));
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  cursor: pointer;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: -1;
}

.cta:hover::before,
.cta:focus-visible::before {
  transform: scaleX(1);
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px) scale(1.01);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(22, 89, 65, 0.25);
  outline: none;
}

.cta-logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(31, 77, 61, 0.12);
  transition: background 0.3s ease;
}

.cta:hover .cta-logo-wrapper,
.cta:focus-visible .cta-logo-wrapper {
  background: rgba(255, 255, 255, 0.2);
}

.cta-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(17%) sepia(41%) saturate(630%) hue-rotate(115deg) brightness(96%) contrast(87%);
  transition: filter 0.3s ease;
}

.cta:hover .cta-logo,
.cta:focus-visible .cta-logo {
  filter: brightness(0) invert(1);
}

/* Full-width benefits under form - speech bubble style */
.benefits-list-fullwidth {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.benefits-list-fullwidth.benefits-three-col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 960px) {
  .benefits-list-fullwidth.benefits-three-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .benefits-list-fullwidth {
    grid-template-columns: 1fr;
  }
}

.benefit-item-inline {
  position: relative;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-card);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.benefit-item-inline:hover,
.benefit-item-inline:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  outline: none;
}

.benefit-link {
  cursor: pointer;
}

.benefit-link:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.6);
  outline-offset: 2px;
}

/* Patient Journey Flow Section */
.patient-journey {
  padding: 0 0 3rem;
}

.patient-journey .container {
  padding: 0;
}

#journey-title {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: center;
}

.journey-description {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 50ch;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.journey-examples {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.journey-flow {
  position: relative;
}

.journey-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  flex-wrap: nowrap;
}

.journey-flow-title {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  text-align: left;
  width: 100%;
}

.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
}

.journey-bubble {
  position: relative;
  padding: 1.5rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #d7e0ec;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: clamp(180px, 20vw, 210px);
  min-height: 140px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.journey-bubble p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #334155;
}

/* Query bubble */
.query-bubble {
  align-items: flex-start;
  text-align: left;
  background: #111c2f;
  border-color: #111c2f;
  width: clamp(180px, 20vw, 210px);
  color: #fff;
  min-height: 130px;
  padding: 1.75rem;
}

.query-bubble p {
  color: #fff;
}

.query-bubble::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: #111c2f;
  border-radius: 4px;
  transform: rotate(45deg);
}

.bubble-logo {
  width: 36px;
  height: 36px;
}

.pharmacist-icon {
  background: #0f5132;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.08em;
}

.pharmacist-icon span {
  color: #ffffff;
}

.bubble-icon {
  color: #1e293b;
}

.bubble-icon svg {
  width: 24px;
  height: 24px;
}

.medsense-journey-bubble,
.answer-bubble,
.pharmacist-bubble,
.rx-bubble,
.calendar-bubble {
  background: #ffffff;
  border: 1px solid #d7e0ec;
  width: clamp(220px, 24vw, 260px);
  min-height: 140px;
}

.medsense-journey-bubble .bubble-logo {
  width: 32px;
  height: 32px;
  margin-bottom: 0;
}

.pharmacist-bubble,
.rx-bubble,
.calendar-bubble {
  align-items: center;
  text-align: center;
}

.pharmacist-bubble .pharmacist-icon {
  margin-bottom: 0.5rem;
}

.calendar-bubble svg,
.answer-bubble svg {
  width: 28px;
  height: 28px;
  margin-bottom: 0.5rem;
  color: #1f4d3d;
}

.journey-arrow {
  color: rgba(15, 23, 42, 0.55);
  flex-shrink: 0;
  align-self: center;
}

.journey-arrow svg {
  display: block;
  width: 40px;
  height: 26px;
  stroke-width: 3.25px;
}

.journey-flow.journey-flow--grid {
  padding: 1.5rem 0;
  position: relative;
}

.journey-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  grid-template-rows: minmax(0, auto);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  justify-items: stretch;
  padding: 1.2rem 1.5rem;
  border-radius: 28px;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.08), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(31, 77, 61, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 15px 35px rgba(15, 23, 42, 0.14);
}

.journey-grid--three {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
}

.journey-grid .journey-step {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
}

.journey-grid .journey-bubble {
  width: 100% !important;
  max-width: 210px;
  height: auto;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.9rem 1rem;
}

.journey-grid .journey-bubble.query-bubble {
  min-width: 0;
  padding: 1.1rem;
}

.journey-slot-a { grid-column: 1; grid-row: 1; }
.journey-slot-b { grid-column: 2; grid-row: 1; }
.journey-slot-c { grid-column: 3; grid-row: 1; }
.journey-slot-d { grid-column: 4; grid-row: 1; }

/* Responsive: stack vertically on mobile, with optional 2x2 grid */
@media (max-width: 768px) {
  .journey-flow {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .journey-arrow {
    transform: rotate(90deg);
  }

  .query-bubble {
    min-width: auto;
    max-width: 100%;
    width: 100%;
  }

  .journey-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    border-radius: 22px;
    border-radius: 22px;
  }

  .journey-grid .journey-step {
    height: auto;
    width: 100%;
  }

  .journey-grid .journey-bubble {
    max-width: none;
    width: 100% !important;
  }

  .journey-flow-arrows {
    display: none;
  }
}

/* Comparison section */
.comparison {
  padding: 3rem 0 3rem;
}

.comparison .container {
  padding: 0;
}

#comparison-title {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  text-align: center;
}

.comparison-description {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 60ch;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.shared-question {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 1.4rem 2.2rem;
  background: #ffffff;
  border-radius: 20px;
  border: 2px solid rgba(56, 189, 248, 0.8);
  margin: 0 auto 4rem;
  max-width: 70ch;
  position: relative;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.15);
}

.shared-question::before {
  content: "";
  position: absolute;
  bottom: -18px;
  right: 60px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #ffffff;
  z-index: 2;
}

.shared-question::after {
  content: "";
  position: absolute;
  bottom: -22px;
  right: 57px;
  width: 0;
  height: 0;
  border-left: 23px solid transparent;
  border-right: 23px solid transparent;
  border-top: 23px solid rgba(56, 189, 248, 0.8);
  z-index: 1;
}

.shared-question strong {
  color: var(--color-primary);
  margin-right: 0.5rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 960px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.comparison-window {
  --comparison-accent: rgba(56, 189, 248, 0.8);
  --comparison-heading-color: #0c4a6e;
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  border: 2px solid var(--comparison-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.comparison-window::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 4px;
  border: 1px dashed var(--comparison-accent);
  opacity: 0.25;
  pointer-events: none;
}

.comparison-window::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--comparison-accent);
  opacity: 0.3;
  pointer-events: none;
}

.comparison-window:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--comparison-accent);
}

.unverified-window {
  --comparison-accent: rgba(220, 38, 38, 0.7);
  --comparison-heading-color: #991b1b;
}

.verified-window {
  --comparison-accent: rgba(22, 163, 74, 0.7);
  --comparison-heading-color: #166534;
}

.comparison-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--comparison-accent);
  position: relative;
}

.comparison-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--comparison-accent);
}

.comparison-heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
  color: var(--comparison-heading-color);
}

.comparison-content {
  flex: 1;
  overflow-y: auto;
  max-height: 700px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  position: relative;
  padding: 1rem;
}

.comparison-content p {
  margin: 0 0 1rem;
}

.comparison-content p:last-child {
  margin-bottom: 0;
}

.comparison-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--color-text);
}

.comparison-content h4:first-child {
  margin-top: 0;
}

.comparison-content ul {
  margin: 0.75rem 0;
  padding-left: 1.75rem;
  list-style-type: disc;
}

.comparison-content li {
  margin: 0.5rem 0;
  line-height: 1.65;
}

.comparison-content strong {
  font-weight: 600;
  color: var(--color-text);
}

.comparison-content mark.highlight {
  background: #fef08a;
  color: var(--color-text);
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid #fde047;
}

/* Conversation exchanges in verified response */
.conversation-exchange {
  padding: 0.75rem 1rem 0.75rem 2rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-left: 3px solid rgba(15, 23, 42, 0.3);
  margin-bottom: 1rem;
  position: relative;
}

.conversation-exchange::before {
  content: ">";
  position: absolute;
  left: 0.5rem;
  top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.4);
  font-weight: bold;
}

.conversation-exchange:last-child {
  margin-bottom: 0;
}

.conversation-exchange.medsense-exchange {
  background: rgba(22, 163, 74, 0.05);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-left: 3px solid rgba(22, 163, 74, 0.5);
  padding: 1rem 1.25rem 1rem 2.25rem;
}

.conversation-exchange.medsense-exchange::before {
  content: "<<";
  color: rgba(22, 163, 74, 0.6);
}

.exchange-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.exchange-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
}

.exchange-text p {
  margin: 0 0 0.75rem;
}

.exchange-text p:last-child {
  margin-bottom: 0;
}

.exchange-text strong {
  font-weight: 600;
}

.exchange-text ul {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.exchange-text li {
  margin: 0.4rem 0;
  line-height: 1.6;
}

.exchange-text mark.highlight {
  background: #fef08a;
  color: var(--color-text);
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid #fde047;
}

.source-link {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(14, 165, 233, 0.3);
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
  cursor: pointer;
}

.source-link:hover {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

/* Preview section */
.preview-section {
  padding: 2rem 0 4rem;
}

.preview-section .container {
  padding: 0;
}

.conversation-heading {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: var(--color-text);
}

.conversation-preview {
  display: none;
  margin-bottom: 2.5rem;
}

.conversation-preview.is-visible {
  display: block;
}

.preview-card {
  background: var(--color-surface);
  border-radius: var(--radius-large);
  padding: 2.25rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 1.75rem;
  border: 1px solid rgba(15, 23, 42, 0.05);
  transition:
    box-shadow 0.25s ease,
    border 0.25s ease;
}

.preview-card:hover,
.preview-card:focus-within {
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  border-color: var(--color-border-strong);
}

.preview-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.preview-heading {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.preview-subheading {
  font-size: 1.1rem;
  font-weight: 600;
}

.chat-thread {
  display: grid;
  gap: 1.15rem;
}

.chat-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
}

.chat-row.patient {
  grid-template-columns: minmax(0, 1fr) auto;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.18);
  color: var(--color-text);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.avatar.patient {
  background: rgba(31, 77, 61, 0.18);
  color: var(--color-primary);
  border: 2px solid rgba(31, 77, 61, 0.25);
}

.avatar.rx {
  background: var(--color-pharmacist);
  color: var(--color-surface);
}

.avatar span {
  display: block;
}

.chat-bubble {
  padding: 1.2rem 1.45rem;
  border-radius: 18px;
  font-size: 1.05rem;
  line-height: 1.6;
  display: grid;
  gap: 0.5rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border 0.2s ease;
  border: 1px solid transparent;
}

.chat-bubble:hover,
.chat-bubble:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  border-color: var(--color-border-strong);
  outline: none;
}

.chat-bubble p {
  margin: 0;
}

.bubble-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.chat-bubble.medsense {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.2);
}

.chat-bubble.medsense:hover,
.chat-bubble.medsense:focus-visible {
  border-color: rgba(56, 189, 248, 0.4);
}

.chat-bubble.patient {
  background: var(--color-text);
  color: var(--color-surface);
  border-color: rgba(15, 23, 42, 0.4);
}

.chat-bubble.patient:hover,
chat-bubble.patient:focus-visible {
  border-color: rgba(15, 23, 42, 0.6);
}

.chat-bubble.pharmacist {
  background: var(--color-pharmacist-soft);
  border-color: rgba(31, 77, 61, 0.4);
  color: var(--color-primary);
}

.chat-bubble.pharmacist:hover,
.chat-bubble.pharmacist:focus-visible {
  border-color: rgba(31, 77, 61, 0.65);
}

.product-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.product-card {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-card);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.5rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border 0.2s ease;
  cursor: pointer;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.45);
  outline: none;
}

.product-card.alt {
  background: rgba(31, 77, 61, 0.08);
  border-color: rgba(31, 77, 61, 0.25);
}

.product-card.alt:hover,
.product-card.alt:focus-visible {
  box-shadow: 0 12px 24px rgba(31, 77, 61, 0.2);
  border-color: rgba(31, 77, 61, 0.45);
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.product-detail {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.product-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Assessment option buttons */
.assessment-options {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.assessment-option {
  padding: 0.75rem 1rem;
  background: rgba(56, 189, 248, 0.06);
  border: 1.5px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.assessment-option:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateX(2px);
}

.assessment-option.selected {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
  font-weight: 500;
}

.assessment-option.danger {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.25);
}

.assessment-option.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
}

.assessment-option.secondary {
  background: rgba(100, 116, 139, 0.06);
  border-color: rgba(100, 116, 139, 0.2);
}

.assessment-option.secondary:hover {
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.35);
}


/* Connection Diagram for Pharmacies - Floating Bubbles */
.connection-diagram {
  padding: 2rem 0 1rem;
}

.connection-diagram .container {
  padding: 0;
}

.diagram-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 3rem 0 1.5rem;
  text-align: left;
}

.journey-examples > .diagram-subtitle:first-of-type,
.pharmacy-flow-diagram > .diagram-subtitle:first-of-type {
  margin-top: 0;
}

.diagram-container {
  position: relative;
  min-height: 400px;
  padding: 1rem 2rem 2rem;
}

.diagram-container:has(.bubble-diagram) {
  padding-top: 0;
}

.bubble-diagram {
  position: relative;
  width: 100%;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding-top: 0;
}

.bubble-diagram .diagram-subtitle {
  align-self: flex-start;
  margin: 0 0 1rem 0 !important;
}

.bubble-diagram-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 1;
  width: 100%;
}

.floating-bubble {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.15),
    0 0 0 3px rgba(255, 255, 255, 0.8),
    inset 0 -8px 20px rgba(15, 23, 42, 0.03);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.floating-bubble:hover {
  transform: translateY(-20px) scale(1.05);
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.25),
    0 0 0 3px rgba(255, 255, 255, 0.9),
    inset 0 -8px 20px rgba(15, 23, 42, 0.05);
  animation-play-state: paused;
}

.patient-bubble {
  position: absolute;
  left: calc(50% - 320px);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(14, 165, 233, 0.08) 100%);
  animation-delay: 0s;
}

.pharmacy-bubble {
  position: absolute;
  right: calc(50% - 320px);
  background: linear-gradient(135deg, rgba(31, 77, 61, 0.15) 0%, rgba(15, 81, 50, 0.08) 100%);
  animation-delay: 1s;
}

.bubble-diagram .medsense-bubble {
  width: 260px;
  height: 260px;
  background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.2),
    0 0 0 4px rgba(15, 81, 50, 0.35),
    0 0 0 8px rgba(255, 255, 255, 0.8);
}

.bubble-content {
  text-align: center;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.bubble-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.bubble-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.bubble-label-large {
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bubble-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-muted);
  max-width: 16ch;
}

.connection-arrows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 960px) {
  .bubble-diagram-content {
    flex-direction: column;
    height: auto;
    gap: 3rem;
    padding: 2rem 0;
  }

  .floating-bubble {
    width: 200px;
    height: 200px;
  }

  .medsense-bubble {
    width: 240px;
    height: 240px;
  }

  .connection-arrows {
    display: none;
  }
}

.pharmacy-flow-diagram {
  padding: 2rem 1rem 0;
}

.flow-step {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.9rem;
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  flex-wrap: wrap;
}

.flow-step + .flow-step {
  margin-top: 1.1rem;
}

.flow-node {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.07), rgba(31, 77, 61, 0.07));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1.1rem;
  display: grid;
  gap: 0.35rem;
  min-height: 120px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  flex: 1 1 220px;
}

.flow-node--medsense {
  background: linear-gradient(160deg, rgba(31, 77, 61, 0.08), rgba(56, 189, 248, 0.14));
}

.flow-node--center {
  border: 1.5px solid rgba(31, 77, 61, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 24px rgba(15, 23, 42, 0.12);
}

.flow-node--patient {
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.08), rgba(14, 165, 233, 0.12));
}

.flow-node--staff {
  background: linear-gradient(160deg, rgba(31, 77, 61, 0.12), rgba(31, 77, 61, 0.2));
  color: #0f172a;
}

.flow-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f172a;
}

.flow-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.12);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.flow-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: rgba(15, 23, 42, 0.55);
  flex: 0 0 auto;
  min-width: 48px;
}

@media (max-width: 960px) {
  .flow-step {
    gap: 1rem;
  }

  .flow-node {
    flex: 1 1 100%;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }
}

.site-footer {
  padding: 2rem 0 4rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  justify-content: center;
}

@media (max-width: 960px) {
  :root {
    --container-width: calc(100% - 3rem);
  }
}

@media (max-width: 720px) {
  :root {
    --container-width: calc(100% - 2.5rem);
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-form {
    padding: 1.6rem;
  }

  .product-tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefit-item {
    padding: 1.5rem;
  }
}

.pharmacy-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.pharmacy-highlights[aria-hidden="true"] {
  display: none;
}

@media (max-width: 720px) {
  .pharmacy-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body::before {
    width: 320px;
    height: 320px;
    top: -120px;
    right: -40px;
  }

  body::after {
    width: 360px;
    height: 360px;
    bottom: -160px;
    left: -60px;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero .container {
    padding: 0 1rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-copy-block {
    text-align: center;
    justify-items: center;
  }

  #hero-title {
    max-width: 100%;
  }

  .hero-copy {
    max-width: 100%;
  }

  .audience-toggle {
    width: 100%;
    justify-content: center;
  }

  .hero-form {
    padding: 1.5rem;
  }

  .name-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .name-inline .form-logo {
    width: 30px;
    height: 30px;
  }

  .cta {
    width: 100%;
    justify-content: center;
  }

  .cta-logo-wrapper {
    display: none;
  }

  .benefits-list-fullwidth {
    margin-top: 2rem;
    gap: 1rem;
  }

  .conversation-heading {
    text-align: center;
  }
}

.highlight-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(31, 77, 61, 0.08) 0%,
    rgba(56, 189, 248, 0.08) 100%
  );
  border: 1px solid rgba(31, 77, 61, 0.18);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border 0.2s ease;
}

.highlight-card:hover,
.highlight-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  border-color: rgba(31, 77, 61, 0.3);
}

.highlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.highlight-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
}

.highlight-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.brand {
  align-self: flex-start;
  justify-content: flex-start;
}

.audience-toggle:hover,
.audience-toggle:focus-within {
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.16);
}

.hero-trust {
  font-size: 0.9rem;
  color: var(--color-muted);
  max-width: 45ch;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.6;
}

.trust-checkmark {
  width: 32px;
  height: 32px;
  margin-top: 0;
  color: #10b981;
  flex-shrink: 0;
  stroke-width: 2.5;
}

.hero-trust span {
  display: inline;
}

.hero-trust a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1.5px solid rgba(31, 77, 61, 0.25);
  transition: all 0.2s ease;
  padding-bottom: 1px;
}

.hero-trust a:hover,
.hero-trust a:focus {
  color: #0f5132;
  border-bottom-color: #0f5132;
}

.is-hidden {
  display: none !important;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(31, 77, 61, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #0f5132;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(31, 77, 61, 0.4);
}

.back-to-top:active {
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 720px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
  }

  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* Email validation error */
.email-error {
  display: block;
  color: #dc2626;
  font-size: 0.875rem;
}

.email-error:not(:empty) {
  margin-top: 0.25rem;
}

/* CTA Section at end of page */
.cta-section {
  padding: 4rem 0;
  text-align: center;
}

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-heading {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.cta-scroll-top {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

@media (max-width: 720px) {
  .cta-section {
    padding: 3rem 0;
  }

  .cta-heading {
    font-size: 1.5rem;
  }
}
