.service-refined .service-hero.followup-hero {
  align-items: center;
  gap: 64px;
  padding-block: 48px 64px;
}

.service-refined .followup-hero h1 {
  font-size: clamp(2.5rem, 3.9vw, 3.5rem);
  line-height: 1.12;
  text-wrap: balance;
}

.followup-hero .service-intro {
  color: var(--ink);
}

.followup-hero .service-actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
}

.followup-art {
  min-width: 0;
  margin: 0;
}

.followup-hero figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.followup-examples {
  padding: 24px;
  border-radius: 26px;
  background: #f0ebf6;
}

.followup-tabs {
  display: flex;
  gap: 5px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid #d8cce5;
  border-radius: 12px;
}

.followup-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--purple);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
}

.followup-tabs button svg {
  width: 18px;
  height: 18px;
}

.followup-tabs button[aria-selected="true"] {
  background: var(--purple);
  color: white;
}

.followup-channel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.followup-channel-heading h2,
.followup-channel-heading div > span {
  display: block;
  line-height: 1.6;
}

.followup-channel-heading h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: normal;
}

.followup-channel-heading div > span {
  color: var(--muted);
  font-size: 0.875rem;
}

.followup-channel-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: white;
}

.followup-voice-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  margin-left: auto;
  color: var(--purple);
}

.followup-voice-wave i {
  display: block;
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: currentColor;
}

.followup-voice-wave i:nth-child(2),
.followup-voice-wave i:nth-child(4) {
  height: 18px;
}

.followup-voice-wave i:nth-child(3) {
  height: 28px;
}

.followup-call-transcript,
.followup-email {
  overflow: hidden;
  border-radius: 16px;
  background: white;
}

.followup-call-transcript {
  padding: 20px;
}

.followup-transcript-label {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.followup-voice-line {
  padding-left: 14px;
  border-left: 2px solid #d8cce5;
}

.followup-voice-line + .followup-voice-line {
  margin-top: 20px;
}

.followup-voice-line > span,
.followup-email-subject > span,
.followup-email-reply > span {
  display: block;
  margin-bottom: 6px;
  color: var(--purple);
  font-size: 0.875rem;
  line-height: 1.5;
}

.followup-voice-line p,
.followup-email p {
  font-size: 1rem;
  line-height: 1.65;
}

.followup-email-subject {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.followup-email-subject > strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.followup-email-body {
  padding: 20px;
}

.followup-email-body p + p {
  margin-top: 12px;
}

.followup-email-reply {
  padding: 17px 20px;
  border-top: 1px solid var(--line);
  background: #f8f5fb;
}

.followup-context {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 22px 16px;
  color: var(--purple);
  font-size: 0.875rem;
  line-height: 1.6;
}

.followup-context svg {
  width: 17px;
  height: 17px;
}

.followup-thread {
  display: grid;
  gap: 12px;
}

.followup-message {
  max-width: 94%;
  padding: 15px 17px;
  border-radius: 14px 14px 14px 4px;
  background: white;
}

.followup-message > span {
  display: block;
  margin-bottom: 5px;
  color: var(--purple);
  font-size: 0.875rem;
  line-height: 1.5;
}

.followup-message > p {
  font-size: 1rem;
  line-height: 1.65;
}

.followup-message--patient {
  margin-left: auto;
  border-radius: 14px 14px 4px 14px;
  background: var(--purple);
  color: white;
}

.followup-message--patient > span {
  color: inherit;
}

.followup-next {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 21px;
  color: var(--purple);
  font-size: 0.875rem;
  line-height: 1.6;
}

.followup-panel {
  display: flex;
  flex-direction: column;
}

.followup-examples[data-followup-ready="true"] .followup-panels {
  display: grid;
}

.followup-examples[data-followup-ready="true"] .followup-panel {
  grid-area: 1 / 1;
}

.followup-panel[data-active="false"] {
  visibility: hidden;
}

.followup-examples:not([data-followup-ready="true"]) .followup-panel + .followup-panel {
  margin-top: 26px;
  border-top: 1px solid #d8cce5;
}

.service-refined .followup-hero--return-visit {
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.followup-hero--return-visit .followup-copy {
  max-width: 940px;
  margin-inline: auto;
  text-align: center;
}

.service-refined .followup-hero--return-visit h1 {
  font-size: clamp(2.5rem, 4.25vw, 3.8rem);
}

.followup-hero--return-visit .service-intro {
  max-width: 650px;
  margin-inline: auto;
}

.followup-hero--return-visit .service-actions {
  justify-content: center;
}

.followup-hero--return-visit .service-managed-note {
  max-width: none;
}

.followup-return-journey {
  margin: 0;
  padding: 32px 40px 24px;
  border-radius: 26px;
  background: #f0ebf6;
}

.followup-journey-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.followup-journey-stages > li {
  position: relative;
  min-width: 0;
}

.followup-journey-stages > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 64px;
  right: -16px;
  border-top: 1px solid #c4b4d6;
}

.followup-journey-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #c4b4d6;
  border-radius: 50%;
  color: var(--purple);
}

.followup-journey-symbol--complete {
  border-color: var(--purple);
  background: var(--purple);
  color: white;
}

.followup-stage-label {
  margin-top: 20px;
  color: var(--purple);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
}

.followup-journey-stages h2 {
  margin-top: 7px;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.followup-return-person,
.followup-visit {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
  min-height: 80px;
}

.followup-return-person strong,
.followup-visit strong {
  display: block;
  font-size: 1rem;
  line-height: 1.6;
}

.followup-return-person div > span,
.followup-visit div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.followup-avatar {
  display: grid;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #dfd4eb;
  color: var(--purple);
  font-size: 1.125rem;
  font-weight: 700;
}

.followup-journey-stages blockquote {
  margin: 22px 0 0;
  padding: 14px 18px;
  border-radius: 13px 13px 13px 3px;
  background: white;
  font-size: 1rem;
  line-height: 1.65;
}

.followup-visit-day {
  padding: 9px 13px;
  border-right: 1px solid #c4b4d6;
  color: var(--purple);
  font-size: 0.875rem;
  text-align: center;
}

.followup-visit-day strong {
  font-size: 1.25rem;
}

.followup-return-journey figcaption {
  margin-top: 26px;
  text-align: center;
}

.followup-team {
  overflow: hidden;
  border: 1px solid #d8cce5;
  border-radius: 26px;
  background: white;
}

.followup-team-heading {
  position: relative;
  padding: 27px 32px 30px;
  background: var(--purple);
  color: white;
}

.followup-team-heading .followup-stage-label {
  margin: 0 40px 13px 0;
  color: inherit;
}

.followup-team-heading h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.followup-team-mark {
  position: absolute;
  top: 26px;
  right: 26px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: white;
}

.followup-team-list {
  margin: 0;
  padding: 5px 28px;
  list-style: none;
}

.followup-team-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-block: 24px;
}

.followup-team-list li + li {
  border-top: 1px solid var(--line);
}

.followup-team-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 10px;
  background: #f0ebf6;
  color: var(--purple);
}

.followup-team-symbol svg {
  width: 21px;
  height: 21px;
}

.followup-team-list strong {
  display: block;
  font-size: 1rem;
  line-height: 1.6;
}

.followup-team-list p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.followup-team-outcome {
  display: block;
  margin-top: 10px;
  color: var(--purple);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.6;
}

.followup-team figcaption {
  margin: 0;
  padding: 0 28px 23px;
}

.followup-animation-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.followup-playback-slot {
  flex: 0 0 62px;
  min-height: 44px;
}

[data-followup-playback] {
  min-width: 62px;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid var(--purple);
  border-radius: 7px;
  color: var(--purple);
  background: var(--ivory);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

[data-followup-playback]:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  [data-followup-playback] {
    opacity: 0;
    pointer-events: none;
  }

  .followup-conversation:hover [data-followup-playback],
  .followup-conversation:focus-within [data-followup-playback],
  .followup-conversation[data-followup-mode="paused"] [data-followup-playback] {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .followup-examples[data-followup-animated="true"] [data-followup-visible] {
    transition:
      opacity 350ms ease,
      transform 350ms ease;
  }

  .followup-examples[data-followup-animated="true"]:is(
      [data-followup-mode="playing"],
      [data-followup-mode="idle"]
    )
    .followup-panel[data-active="true"]
    [data-followup-visible="false"] {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1000px) {
  .service-refined .service-hero.followup-hero {
    gap: 36px;
  }
  .followup-return-journey {
    padding-inline: 24px;
  }
  .followup-journey-stages {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .service-refined .service-hero.followup-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 32px 44px;
  }
  .service-refined .followup-hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.4rem);
  }
  .followup-art {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
  }
  .followup-hero--return-visit .followup-copy {
    max-width: 760px;
  }
}

@media (max-width: 650px) {
  .service-refined .service-hero.followup-hero {
    padding-block: 24px 36px;
    gap: 30px;
  }
  .service-refined .followup-hero h1 {
    font-size: clamp(2rem, 8.5vw, 3rem);
  }
  .followup-hero--return-visit .service-actions {
    align-items: center;
  }
  .followup-examples {
    padding: 18px;
    border-radius: 20px;
  }
  .followup-tabs {
    margin-bottom: 20px;
  }
  .followup-tabs button {
    flex-direction: column;
    gap: 6px;
    padding-inline: 6px;
  }
  .followup-call-transcript,
  .followup-email-body {
    padding: 16px;
  }
  .followup-email-subject,
  .followup-email-reply {
    padding: 15px 16px;
  }
  .followup-message {
    max-width: 100%;
    padding: 13px 15px;
  }
  .followup-message--patient {
    margin-left: 14px;
  }
  .followup-return-journey {
    padding: 24px;
  }
  .followup-journey-stages {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .followup-journey-stages > li {
    padding-left: 62px;
  }
  .followup-journey-symbol {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
  }
  .followup-journey-stages > li:not(:last-child)::after {
    top: 51px;
    bottom: -18px;
    left: 20px;
    right: auto;
    border-top: 0;
    border-left: 1px solid #c4b4d6;
  }
  .followup-stage-label {
    margin-top: 0;
  }
  .followup-return-person,
  .followup-visit,
  .followup-journey-stages blockquote {
    margin-top: 16px;
  }
  .followup-team-heading {
    padding: 24px;
  }
  .followup-team-list {
    padding-inline: 20px;
  }
  .followup-team-list li {
    gap: 12px;
    padding-block: 20px;
  }
  .followup-team figcaption {
    padding: 0 20px 20px;
  }
}

@media (max-width: 360px) {
  .followup-examples {
    padding: 14px;
  }
  .followup-tabs button {
    padding-inline: 6px;
  }
  .followup-channel-heading {
    gap: 10px;
  }
  .followup-voice-wave {
    display: none;
  }
  .followup-return-journey {
    padding: 20px 16px;
  }
  .followup-journey-stages > li {
    padding-left: 50px;
  }
  .followup-return-person,
  .followup-visit {
    flex-wrap: wrap;
  }
  .followup-team-list {
    padding-inline: 16px;
  }
}
