/* Hero and standalone listening section. Existing content sections retain their styling. */
html { color-scheme: light; }
body { background: #fff; }

.hero {
  overflow: clip;
  padding: 16px 22px 0;
  background: #fff;
}

.hero-scene {
  --hero-radius: 24px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--hero-radius);
  /* Also clip composited blend/transform layers at the rounded edge. */
  clip-path: inset(0 round var(--hero-radius));
  background: radial-gradient(ellipse at 12% 18%, #426eb1 0%, transparent 58%),
    radial-gradient(ellipse at 95% 95%, #326cd2 0%, transparent 60%), #244b91;
  color: #fff;
  min-height: 620px;
}

.hero-art, .hero-shade { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-art {
  inset: -7%;
  mix-blend-mode: screen;
  opacity: .8;
  transform: translate3d(var(--pointer-x, 0px), var(--art-y, 0px), 0) scale(1.025);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.hero-shade {
  background: linear-gradient(180deg, rgb(18 47 99 / 4%), rgb(20 49 106 / 9%) 50%, rgb(15 42 91 / 25%));
}
.hero-topline {
  position: absolute;
  z-index: 1;
  top: 27px;
  left: 36px;
  right: 36px;
  display: flex;
  justify-content: space-between;
  color: rgb(235 243 255 / 65%);
  font-size: 10px;
  font-weight: 450;
  letter-spacing: .03em;
}
.hero-topline > span:first-child { font-size: 12px; font-weight: 650; letter-spacing: -.03em; }
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  min-height: 620px;
  margin: auto;
  padding: 98px 64px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
}
.hero-statement { text-align: center; }
.hero-eyebrow {
  margin-bottom: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #dceaff;
  font-size: 12px;
  font-weight: 450;
  letter-spacing: .015em;
  gap: 10px;
}
.hero .status-dot { background: #c4ddff; box-shadow: 0 0 0 4px #d7eaff12, 0 0 14px #b3d6ff5e; }
.hero h1 {
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.33;
  font-weight: 630;
  letter-spacing: -.066em;
  color: #fff;
  text-shadow: 0 2px 22px #062f701a;
}
.hero h1 .blue-text { color: #c8e3ff; }
.hero h1 .blue-text::after { display: none; }
.hero .opening-quote, .hero .closing-quote {
  color: #a8cbff;
  font-size: 1.1em;
  opacity: .8;
  font-weight: 400;
}
.hero-answer {
  width: fit-content;
  max-width: 100%;
  margin-top: 28px;
  padding: 13px 18px;
  gap: 12px;
  background: rgb(231 242 255 / 10%);
  border: 1px solid rgb(218 234 255 / 24%);
  box-shadow: inset 0 1px 0 #ffffff12, 0 8px 30px #03173e06;
  backdrop-filter: blur(18px);
  border-radius: 12px;
}
.hero-answer::before { display: none; }
.hero-answer p { color: #e0ecff; font-size: 14px; }
.hero-answer strong { color: #fff; font-weight: 600; }
.hero .answer-avatar { background: #f0f6ff; color: #316aea; width: 26px; height: 27px; font-size: 25px; }
.hero .answer-wave i { background: #b6d6ff; }
.hero-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding-top: 26px;
  border-top: 1px solid #e2edff2b;
  text-align: left;
}
.hero-description {
  margin: 0;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.75;
  letter-spacing: -.035em;
  color: #edf4ff;
}
.hero-description > span { display: block; color: #b4c9ed; margin-top: 7px; font-size: 11px; }
.hero-action { text-align: center; }
.hero .hero-cta {
  background: #fff;
  color: #265dd6;
  min-width: 260px;
  min-height: 53px;
  font-size: 14px;
  box-shadow: 0 6px 25px #031e651f;
}
.hero .hero-cta:hover { background: #eaf2ff; box-shadow: 0 9px 32px #041d713b; }
.hero .cta-note { color: #b4c9ed; font-size: 10px; margin-top: 11px; }
.hero-bottom {
  background: #fff;
  border: 0;
  padding: 29px 12px 25px;
  color: #8290a7;
}

@media (min-width: 1600px) {
  .hero-scene, .hero-inner { min-height: 680px; }
  .hero-inner { padding-top: 115px; padding-bottom: 44px; }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .hero-inner { padding: 105px 32px 36px; gap: 54px; }
  .hero-footer { gap: 24px; }
  .hero-description { font-size: 14px; }
}

@media (max-width: 720px) {
  .hero { padding: 10px 12px 0; }
  .hero-scene { --hero-radius: 18px; min-height: 0; }
  .hero-topline { top: 21px; left: 23px; right: 23px; font-size: 8px; color: #c0d5f5; }
  .hero-topline > span:first-child { font-size: 10px; }
  .hero-topline > span:last-child { display: none; }
  .hero-art { inset: -5% -50%; }
  .hero-art img { object-position: 55% center; }
  .hero-shade { background: linear-gradient(180deg, #153d7408, #12377438); }
  .hero-inner { min-height: 0; padding: 62px 20px 26px; gap: 25px; }
  .hero-eyebrow { font-size: 10px; margin-bottom: 22px; gap: 8px; }
  .hero h1 { font-size: clamp(29px, 8.4vw, 42px); line-height: 1.43; letter-spacing: -.065em; }
  .hero .opening-quote, .hero .closing-quote { font-size: 1em; }
  .hero-answer { padding: 11px 12px; margin-top: 22px; gap: 9px; width: 100%; }
  .hero-answer p { font-size: 11px; line-height: 1.8; }
  .hero .answer-avatar { width: 24px; height: 25px; font-size: 23px; }
  .hero .answer-wave { margin-left: auto; }
  .hero-footer { grid-template-columns: 1fr; border: 0; padding-top: 0; gap: 19px; }
  .hero-description { text-align: center; font-size: 12px; line-height: 1.8; }
  .hero-description .desktop-break { display: none; }
  .hero-description > span { margin-top: 1px; font-size: 11px; }
  .hero .hero-cta { min-height: 48px; min-width: 0; max-width: 390px; width: 100%; font-size: 12px; padding: 12px 16px; }
  .hero .cta-note { font-size: 9px; margin-top: 10px; }
  .hero-bottom { font-size: 9px; gap: 10px; padding: 21px 2px; }
  .hero-bottom .flow-line { width: 18px; }
}

@media (max-width: 375px) {
  .hero { padding-inline: 9px; }
  .hero-inner { padding: 54px 15px 23px; gap: 21px; }
  .hero h1 { font-size: 29px; }
  .hero-eyebrow { font-size: 9px; margin-bottom: 17px; }
  .hero-answer { padding: 10px; margin-top: 18px; }
  .hero-answer p { font-size: 10px; }
  .hero-footer { gap: 16px; }
  .hero-description { font-size: 11px; }
  .hero-description > span { font-size: 10px; }
}

.listen-section { padding: 12px 0 4px; background: #fff; }
.listen-card {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 64px;
  padding: 40px 44px;
  border: 1px solid #e3eaf6;
  border-radius: 22px;
  background: linear-gradient(115deg, #f8faff, #f2f6fd);
}
.listen-intro { min-width: 0; }
.listen-intro .eyebrow { margin-bottom: 12px; font-size: 11px; color: #4774c5; }
.listen-intro h2 { font-size: 29px; line-height: 1.45; letter-spacing: -.055em; }
.listen-description { margin-top: 14px; font-size: 12px; line-height: 1.85; color: #7b879b; word-break: keep-all; }
.listen-section .audio-player {
  width: 100%;
  max-width: none;
  margin: 24px 0 0;
  padding: 15px 16px 12px;
  gap: 12px;
  row-gap: 12px;
  background: #fff;
  border: 1px solid #e4ebf6;
  border-radius: 13px;
  box-shadow: 0 4px 15px #25477f03;
}
.listen-section .play-button { width: 42px; height: 42px; background: #2f6bff; color: white; }
.listen-section .play-button:hover { background: #2459e0; }
.listen-section .audio-info strong { font-size: 12px; }
.listen-section .audio-info > span { font-size: 9px; }
.listen-section .waveform { height: 28px; }
.listen-section .audio-time { color: #7d8ca4; font-size: 10px; letter-spacing: 0; }
.listen-section .audio-seek { height: 14px; }
.listen-section .audio-seek:disabled { cursor: default; opacity: .35; }
.transcript-panel {
  min-width: 0;
  background: #fff;
  padding: 23px 26px 20px;
  border: 1px solid #e4ebf6;
  border-radius: 15px;
  box-shadow: 0 10px 28px #24477904;
}
.transcript-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.transcript-heading > span:first-child { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: #5c7092; }
.transcript-heading .icon { width: 14px; height: 14px; color: #7998c8; }
.transcript-heading > span:last-child { font-size: 9px; color: #94a2b6; }
/* The transcript owns a stable viewport, independent of the current cue's length. */
.caption-stage {
  block-size: 192px;
  margin: 15px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cfdbef transparent;
  display: grid;
  align-items: center;
}
.caption-stage:focus-visible { outline: 2px solid #81a5ff; outline-offset: 5px; border-radius: 4px; }
.listen-section .audio-caption, .listen-section .player-message, .caption-placeholder {
  grid-area: 1 / 1;
  margin: 0;
  max-width: none;
  padding: 8px 2px;
  font-size: 15px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
  color: #344b6d;
  text-align: left;
}
.caption-speaker { display: block; width: fit-content; margin-bottom: 12px; padding: 3px 9px; border-radius: 5px; background: #edf3ff; color: #3267cf; font-size: 10px; font-weight: 650; line-height: 1.6; }
.audio-caption[data-speaker="patient"] .caption-speaker { color: #62758c; background: #f0f3f7; }
.caption-placeholder { color: #92a0b4; font-size: 13px; white-space: pre-line; text-align: center; }
.listen-section .player-message { font-size: 13px; color: #7b879b; }
.transcript-note { display: flex; align-items: center; gap: 6px; padding-top: 13px; border-top: 1px solid #edf1f7; color: #98a6b9; font-size: 9px; }
.transcript-dot { width: 5px; height: 5px; background: #92b0df; border-radius: 50%; }

@media (max-width: 1100px) {
  .listen-card { gap: 32px; padding: 32px; }
  .listen-intro h2 { font-size: 26px; }
  .listen-section .audio-player { padding-inline: 12px; gap: 9px; }
}
@media (max-width: 850px) {
  .listen-card { gap: 24px; padding: 28px 24px; }
  .listen-section .waveform { display: none; }
  .listen-section .audio-time { margin-left: auto; }
  .transcript-panel { padding-inline: 20px; }
  .caption-stage { block-size: 220px; }
  .listen-section .audio-caption { font-size: 14px; }
}
@media (max-width: 720px) {
  .listen-section { padding: 4px 0 0; }
  .listen-card { grid-template-columns: 1fr; gap: 24px; padding: 27px 22px 22px; border-radius: 18px; }
  .listen-intro .eyebrow { font-size: 10px; }
  .listen-intro h2 { font-size: 25px; }
  .listen-description { font-size: 11px; margin-top: 12px; }
  .listen-section .audio-player { margin-top: 20px; }
  .listen-section .play-button { width: 38px; height: 38px; }
  .listen-section .waveform { display: flex; }
  .listen-section .audio-info strong { font-size: 11px; }
  .listen-section .audio-info > span { font-size: 8px; }
  .listen-section .audio-time { font-size: 9px; }
  .transcript-panel { padding: 18px 18px 16px; }
  .caption-stage { block-size: 210px; margin-block: 10px; }
  .transcript-heading > span:last-child { font-size: 8px; }
  .caption-placeholder { font-size: 12px; }
}
@media (max-width: 375px) {
  .listen-card { padding: 24px 16px 16px; gap: 20px; }
  .listen-intro h2 { font-size: 23px; }
  .listen-section .waveform { display: none; }
  .listen-section .audio-player { gap: 8px; padding-inline: 10px; }
  .transcript-panel { padding-inline: 15px; }
  .listen-section .audio-caption { font-size: 13px; }
  .caption-stage { block-size: 240px; }
}
