/* Family voice: a quiet, human rhythm with the recorded voice kept in view. */
.voice-section {
  padding-block: 80px;
  background: #FFF6EC;
}

.voice-section .voice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  align-items: center;
  gap: 72px;
}

.voice-section .voice-layout.content-only {
  grid-template-columns: minmax(0, 1fr);
}

.voice-section .voice-copy,
.voice-section .voice-phone-panel {
  min-width: 0;
}

.voice-section .voice-copy {
  text-align: start;
}

.voice-section .pill-label {
  margin: 0 0 16px;
  color: #0E4F4B;
  border-color: rgb(14 79 75 / 18%);
  background: rgb(255 255 255 / 56%);
}

.voice-section .section-heading {
  max-width: 620px;
  margin: 0 0 16px;
  text-align: start;
}

.voice-section .section-heading h2 {
  margin: 0;
  color: #0E4F4B;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-wrap: balance;
}

.voice-section .section-heading p {
  max-width: 540px;
  margin: 14px 0 0;
  color: #3C4A47;
  font-size: 17px;
  line-height: 1.8;
}

.voice-section .voice-player {
  width: min(100%, 480px);
  box-sizing: border-box;
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 1px solid #E9D7C3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(69 49 30 / 5%);
}

.voice-section .voice-player-top {
  gap: 12px;
}

.voice-section .voice-play {
  width: 42px;
  height: 42px;
  background: #0E4F4B;
  color: #FFF6EC;
  transition: background-color 160ms ease, transform 160ms ease;
}

.voice-section .voice-play:hover {
  background: #17625D;
}

.voice-section .voice-play:active {
  transform: scale(.96);
}

.voice-section .waveform {
  height: 32px;
  gap: 3px;
}

.voice-section .waveform span {
  width: 3px;
  background: #82A9A0;
}

.voice-section .voice-meta time {
  color: #5B6966;
  font-size: 12px;
}

.voice-section .voice-quote {
  margin: 13px 0 0;
  color: #263B37;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
}

.voice-section .voice-meta {
  margin-top: 10px;
  color: #5B6966;
}

.voice-section .sample-status {
  color: #5B6966;
}

.voice-section .voice-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: #0E4F4B;
  font-size: 15px;
  font-weight: 700;
  text-decoration-color: rgb(14 79 75 / 38%);
  text-underline-offset: 5px;
}

.voice-section .voice-timeline {
  display: grid;
  gap: 22px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.voice-section .voice-timeline > li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  padding-inline-start: 48px;
}

.voice-section .voice-step-number {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: grid;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  place-items: center;
  border: 1px solid #0E4F4B;
  border-radius: 50%;
  background: #0E4F4B;
  color: #FFF6EC;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
}

.voice-section .voice-timeline > li:not(:last-child)::after {
  position: absolute;
  inset-block-start: 32px;
  inset-inline-start: 15px;
  bottom: -38px;
  width: 2px;
  border-radius: 2px;
  background: #E9D7C3;
  content: "";
}

.voice-section .voice-timeline > li:last-child .voice-step-number {
  border-color: #E07A2E;
  background: #E07A2E;
  color: #1F1308;
}

.voice-section .voice-step-copy {
  min-width: 0;
}

.voice-section .voice-step-copy h3 {
  margin: 1px 0 3px;
  color: #0E4F4B;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.voice-section .voice-step-copy p {
  max-width: 540px;
  margin: 0;
  color: #4F5D59;
  font-size: 15px;
  line-height: 1.7;
}

.voice-section .voice-missed-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 9px;
  padding: 4px 10px;
  border: 1px solid #E6A273;
  border-radius: 999px;
  background: #FFF9F3;
  color: #8D4317;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  vertical-align: middle;
}

.voice-section .voice-alert-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #E07A2E;
}

.voice-section .voice-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.voice-section .voice-tags li {
  padding: 5px 11px;
  border: 1px solid #E9D7C3;
  border-radius: 999px;
  background: rgb(255 255 255 / 48%);
  color: #52615D;
  font-size: 12px;
  line-height: 1.5;
}

.voice-section .related-page-wrap {
  margin: 15px 0 0;
}

.voice-section .related-page-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0E4F4B;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.voice-section .voice-phone-panel {
  display: grid;
  align-self: center;
  justify-items: center;
  min-width: 0;
  width: min(100%, 372px);
  justify-self: center;
  padding: 28px 36px 30px;
  border-radius: 40px;
  background: #F6EADB;
}

.voice-section .voice-phone-panel > .phone-bezel.phone-illustration {
  position: relative;
  inset: auto;
  width: min(300px, 100%);
  max-width: 300px;
  margin: 0 auto 44px;
  transform: none;
}

.voice-section .voice-phone-panel > .phone-bezel:not(.phone-illustration) {
  position: relative;
  inset: auto;
  width: min(300px, 100%);
  max-width: 300px;
  margin: 0 auto;
  transform: none;
}

.voice-section .voice-phone-panel .illustration-caption {
  top: calc(100% + 10px);
  bottom: auto;
  color: #5B6966;
}

.voice-section .voice-phone-panel .phone-screen {
  max-width: 100%;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .voice-section .voice-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .78fr);
    gap: 44px;
  }

  .voice-section .voice-phone-panel {
    padding-inline: 26px;
  }
}

@media (max-width: 767px) {
  .voice-section {
    padding-block: 64px;
  }

  .voice-section .voice-layout,
  .voice-section .voice-layout.content-only {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .voice-section .section-heading h2 {
    font-size: clamp(30px, 7vw, 36px);
    line-height: 1.4;
  }

  .voice-section .section-heading p {
    font-size: 16px;
  }

  .voice-section .voice-timeline {
    gap: 19px;
    margin-top: 24px;
  }

  .voice-section .voice-timeline > li:not(:last-child)::after {
    bottom: -35px;
  }

  .voice-section .voice-phone-panel {
    width: min(100%, 360px);
    box-sizing: border-box;
    justify-self: center;
    padding: 24px 24px 28px;
    border-radius: 32px;
  }

  .voice-section .voice-phone-panel > .phone-bezel.phone-illustration,
  .voice-section .voice-phone-panel > .phone-bezel:not(.phone-illustration) {
    width: min(260px, 100%);
    max-width: 260px;
  }
}

@media (max-width: 420px) {
  .voice-section .voice-copy .pill-label {
    font-size: 12px;
  }

  .voice-section .voice-player {
    padding: 14px;
  }

  .voice-section .voice-quote {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-section .voice-play {
    transition: none;
  }

  .voice-section .voice-player.is-playing .waveform span {
    animation: none;
  }
}
