/* PatientOutreach — feature accordion with an animated preview panel.
   Figma node 18313-46687. Assumes Inter (variable) + IBM Plex Mono load
   globally. Icons and connector lines are inline SVG / CSS so the component is
   self-contained (no external assets). */

.po {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding: 0;
  background: #fcfcfb;
  font-family: "Intervariable", Inter, system-ui, sans-serif;
}

.po__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.po__head {
  display: flex;
  gap: 64px;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.po__head-left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.po__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
  text-transform: uppercase;
  color: #3f3e3c;
  font-feature-settings: "salt" 1;
}

.po__eyebrow-dot {
  display: block;
  width: 8px;
  height: 8px;
  background-color: #6b4fff;
  flex-shrink: 0;
}

.po__heading {
  margin: 0;
  font-family: "Intervariable", sans-serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1.44px;
  color: #0e0d0c;
}

.po__body {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  font-family: "Intervariable", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.36px;
  color: #3f3e3c;
}

/* ── Content — list + panel ───────────────────────────────────────────────────── */
.po__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.po__list {
  flex: 1 1 0;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.po__item {
  position: relative;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #dddcda;
  padding-bottom: 20px;
}

.po__item-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.po__item-title {
  font-family: "Intervariable", sans-serif;
  font-size: 22px;
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -0.66px;
  color: #a9a8a6;
  transition: color 0.25s ease;
}

.po__item.is-active .po__item-title {
  color: #0e0d0c;
}

.po__item:not(.is-active):hover .po__item-title {
  color: #7a7977;
}

.po__item-desc {
  font-family: "Intervariable", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.36px;
  color: #3f3e3c;
}

/* Desktop/tablet: only the active feature reveals its description
   (accordion behavior). */
.po__item:not(.is-active) .po__item-desc {
  display: none;
}

/* Inline per-item preview is only used in the mobile column layout. */
.po__item-panel {
  display: none;
}

/* Progress bar under the active item (auto-advance countdown). */
.po__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: #6b4fff;
  animation: poProgress linear forwards;
}

.po__progress.is-paused {
  animation-play-state: paused;
}

@keyframes poProgress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* ── Preview panel ────────────────────────────────────────────────────────────── */
.po__panel {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #f6f4f2;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.1);
}

.po__panel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  pointer-events: none;
  animation: poFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes poFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── Tablet ─────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .po__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .po__content {
    gap: 32px;
    grid-template-columns: 1fr;
  }

  .po__heading {
    font-size: 40px;
    letter-spacing: -1.2px;
  }

  .po__panel {
    width: 100%;
  }
}

/* ── Mobile (Figma node 18787:1030) ───────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Frame padding: 48px top / 24px sides / 24px bottom. */
  .po {
    padding: 0;
  }

  .po__item-btn {
    cursor: default;
    pointer-events: none;
  }

  .po__inner {
    gap: 32px;
  }

  .po__head,
  .po__head-left {
    gap: 16px;
  }

  .po__heading {
    font-size: 36px;
    letter-spacing: -1.08px;
  }

  .po__eyebrow {
    font-size: 14px;
  }

  .po__body {
    font-size: 16px;
    letter-spacing: -0.32px;
  }

  .po__item-title {
    font-size: 20px;
    letter-spacing: -0.6px;
    color: #0e0d0c;
  }

  .po__item-desc {
    font-size: 16px;
    letter-spacing: -0.32px;
  }

  /* Mobile: drop the accordion/auto-advance behavior and lay the whole menu
     out as a column, with every feature expanded and its preview in view. */
  .po__list {
    gap: 32px;
  }

  .po__item {
    gap: 16px;
    border-bottom: none;
    padding-bottom: 0;
  }

  .po__item-btn {
    gap: 6px;
  }

  /* Reveal every description, not just the active one. */
  .po__item:not(.is-active) .po__item-desc {
    display: block;
  }

  /* Each feature stacks image → title → description (image on top via order),
     shown inline as a near-square preview (345 × 327, 10px radius). */
  .po__item-panel {
    display: block;
    order: -1;
    position: relative;
    aspect-ratio: 345 / 327;
    border-radius: 10px;
    overflow: hidden;
    background: #f6f4f2;
    box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.1);
  }

  .po__item-panel .po__panel-video {
    border-radius: 10px;
  }

  /* The shared side panel and the auto-advance progress bar aren't used when
     everything is expanded at once. */
  .po__panel,
  .po__progress {
    display: none;
  }
}

/* ── Reduced motion ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .po__progress,
  .po__panel-video {
    animation: none;
  }
  .po__progress {
    width: 100%;
  }
}

