/* Larger phone mockups within the existing feature boxes */
.feature-image > img {
  max-width: 99%;
  max-height: 610px;
}

.feature-gallery img {
  max-width: 118%;
  max-height: 610px;
}

.features-hero { padding-bottom: 42px; }
.features-hero + .feature-detail { padding-top: 34px; }

/* Temporary Airtable audio playback test */
.coach-audio-test {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #eadfda;
  border-radius: 22px;
  background: #fffaf8;
}

.coach-audio-test .eyebrow { margin: 0 0 8px; }
.coach-audio-test h3 { margin: 0 0 10px; color: var(--navy); font: 500 28px/1.15 'Playfair Display', serif; }
.coach-audio-test > p:not(.eyebrow) { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.coach-audio-test audio { display: block; width: 100%; max-width: 100%; }
.coach-audio-test small { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }

/* One-phone coach carousel */
.coach-carousel {
  position: relative;
  display: block;
  padding: 0;
}

.coach-carousel-viewport {
  width: 100%;
  height: 610px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.coach-carousel-track {
  display: flex;
  height: 100%;
  transition: transform .42s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.coach-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 5px 54px 18px;
}

.coach-slide img {
  display: block;
  width: auto;
  max-width: 99%;
  height: 100%;
  max-height: 598px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 28px 32px #21114d28);
}

.coach-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  border: 1px solid #ffffffa8;
  border-radius: 50%;
  background: #ffffffe6;
  color: var(--navy);
  box-shadow: 0 10px 24px #21114d1c;
  font: 500 20px/1 Poppins, sans-serif;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.coach-arrow:hover,
.coach-arrow:focus-visible {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.coach-prev { left: 18px; }
.coach-next { right: 18px; }

.coach-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 15px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.coach-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #08056845;
  cursor: pointer;
  transition: width .2s ease, border-radius .2s ease, background .2s ease;
}

.coach-dot[aria-current="true"] {
  width: 20px;
  border-radius: 99px;
  background: var(--pink);
}

@media (max-width: 650px) {
  .features-hero { padding-bottom: 28px; }
  .features-hero + .feature-detail { padding-top: 28px; }

  .coach-audio-test { margin-top: 20px; padding: 18px; border-radius: 18px; }
  .coach-audio-test h3 { font-size: 25px; }

  .feature-image > img {
    max-width: 99%;
    max-height: 490px;
  }

  .feature-gallery img {
    max-width: 118%;
    max-height: 470px;
  }

  .coach-carousel-viewport {
    height: 495px;
  }

  .coach-slide {
    padding: 4px 28px 24px;
  }

  .coach-slide img {
    max-width: 99%;
    max-height: 480px;
  }

  .coach-arrow {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .coach-prev { left: 10px; }
  .coach-next { right: 10px; }
  .coach-dots { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .coach-carousel-track { transition-duration: .01ms; }
}

/* Expanded Coach Audio feature */
.coach-audio-section {
  width: 100%;
  padding: 64px 0 68px;
  background: #ffe8ef;
}

.coach-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  grid-template-areas:
    "carousel copy"
    "carousel audio";
  gap: 24px 56px;
  align-items: start;
}

.coach-feature-copy {
  grid-area: copy;
  padding-top: 16px;
}

.coach-feature-copy h2 {
  margin: 12px 0 20px;
  font-size: clamp(48px, 5.4vw, 76px);
}

.coach-feature-copy > p:last-child {
  margin-bottom: 0;
}

.coach-audio-section .coach-carousel {
  grid-area: carousel;
  align-self: stretch;
  min-height: 620px;
  border-radius: 48px;
  background: linear-gradient(145deg, #ffd7df, #ffcbdc 58%, #ffe4d7);
}

.coach-audio-test {
  grid-area: audio;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
  min-height: 314px;
  margin: 0;
  padding: 24px;
  border: 1px solid #ead8d7;
  border-radius: 28px;
  background: #fffdfb;
  box-shadow: 0 16px 38px #35144012;
}

.coach-audio-portrait {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
}

.coach-audio-content {
  min-width: 0;
}

.coach-audio-content .eyebrow {
  margin: 2px 0 7px;
}

.coach-audio-content h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font: 500 30px/1.12 'Playfair Display', serif;
}

.coach-audio-title {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
}

.coach-audio-description {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.coach-player-shell {
  display: grid;
  align-content: start;
  min-height: 78px;
}

.coach-player-shell audio {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 54px;
}

.coach-audio-status {
  min-height: 18px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.coach-audio-status.is-error {
  display: flex;
  align-items: center;
  min-height: 54px;
  margin: 0;
}

.coach-audio-content small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.coach-review-proof {
  margin-top: 54px;
}

.coach-review-proof header {
  max-width: 760px;
}

.coach-review-proof h2 {
  margin: 10px 0 14px;
  font-size: clamp(42px, 4.8vw, 64px);
}

.coach-review-proof header > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.coach-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 28px;
}

.coach-review-item {
  margin: 0;
  padding: 9px;
}

.coach-review-item img {
  width: 100%;
  height: auto;
}

.coach-reviews-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
}

.coach-reviews-link:hover,
.coach-reviews-link:focus-visible {
  color: var(--pink);
  text-decoration: none;
}

@media (max-width: 900px) {
  .coach-audio-section {
    padding: 56px 0 60px;
  }

  .coach-feature-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "carousel"
      "audio";
    gap: 28px;
  }

  .coach-feature-copy {
    padding-top: 0;
  }

  .coach-audio-section .coach-carousel {
    min-height: 590px;
  }

  .coach-review-grid {
    grid-template-columns: 1fr 1fr;
  }

  .coach-review-item:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
  }
}

@media (max-width: 650px) {
  .coach-audio-section {
    padding: 42px 0 48px;
  }

  .coach-feature-grid {
    gap: 24px;
  }

  .coach-feature-copy h2 {
    margin-top: 9px;
  }

  .coach-audio-section .coach-carousel {
    min-height: 500px;
    border-radius: 34px;
  }

  .coach-audio-test {
    display: block;
    min-height: 0;
    padding: 20px;
    border-radius: 22px;
  }

  .coach-audio-portrait {
    width: 82px;
    height: 82px;
    margin-bottom: 16px;
  }

  .coach-audio-content h3 {
    font-size: 28px;
  }

  .coach-audio-title,
  .coach-audio-description {
    font-size: 15.5px;
  }

  .coach-review-proof {
    margin-top: 42px;
  }

  .coach-review-proof h2 {
    font-size: 40px;
  }

  .coach-review-proof header > p:last-child {
    font-size: 16.5px;
  }

  .coach-review-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
  }

  .coach-review-item:last-child {
    grid-column: auto;
    width: 100%;
  }

  .coach-reviews-link {
    margin-top: 16px;
  }
}
