/* Outfit headings and section rhythm for Mira’s public site. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/outfit-500.ttf") format("truetype");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/outfit-600.ttf") format("truetype");
}

main :is(h1, h2, h3) {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  letter-spacing: -.03em;
  text-wrap: balance;
}

main h1 {
  line-height: 1.1;
}

main h2 {
  line-height: 1.14;
}

main h3 {
  line-height: 1.3;
  letter-spacing: -.015em;
}

main {
  --mira-section-space: clamp(56px, 7vw, 96px);
  --mira-content-space: clamp(24px, 3vw, 40px);
}

main > .section,
main > .article-body {
  padding-block: var(--mira-section-space);
}

main .page-hero {
  padding-block: clamp(40px, 6vw, 80px);
}

main .content-section {
  margin-bottom: var(--mira-content-space);
}

main .section-heading {
  margin-bottom: var(--mira-content-space);
}

.mv-home {
  --section-space: clamp(56px, 7vw, 96px);
  --group-space: 28px;
}

.mv-home .motion-hero {
  margin-block: 16px clamp(36px, 5vw, 56px);
}

.mv-home .motion-scene {
  border: 0;
  border-radius: 28px;
  background: #f1f6fb;
}

.mv-home .motion-copy {
  padding: 24px 20px 8px;
}

.mv-home .motion-copy.hero-offer h1 {
  max-width: 11ch;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.mv-home .motion-copy .hero-offer-price {
  margin-top: 12px;
  font-size: clamp(23px, 3vw, 36px);
  line-height: 1.3;
}

.mv-home .motion-copy .hero-offer-summary {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.65;
}

.mv-home .motion-copy .hero-actions {
  margin-top: 20px;
}

.mv-home .motion-copy .button {
  min-height: 52px;
  padding-inline: 24px;
  font-size: 16px;
}

.hero-service-details {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.45;
}

.hero-visit-offer > strong {
  display: block;
  margin-bottom: 2px;
}

.hero-service-details > p {
  line-height: inherit;
  text-wrap: balance;
}

.mv-home .motion-media {
  height: clamp(152px, 40vw, 200px);
}

.mv-home .motion-art {
  background: none;
}

.mv-home .mv-care-section .mv-intro {
  gap: 20px;
  margin-bottom: 32px;
}

.mv-home .mv-care-section .mv-intro h2,
.mv-home .mv-section-head h2,
.mv-home .mv-faq h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.14;
  letter-spacing: -.03em;
}

.mv-home .mv-intro .mv-deck {
  font-size: 17px;
  line-height: 1.65;
  max-width: 46ch;
}

.mv-home .mv-pathways {
  gap: 24px;
}

.mv-hero-backdrop .mv-care {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--navy);
}

.mv-hero-backdrop .mv-care-photo {
  grid-area: 1 / 1;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--care-photo) center top / cover no-repeat;
}

.mv-hero-backdrop .mv-care-copy {
  grid-area: 2 / 1;
  padding: clamp(16px, 3vw, 28px);
  min-height: 0;
}

.mv-hero-backdrop .mv-care .mv-care-copy h3 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(23px, 4.5vw, 28px);
  line-height: 1.14;
  margin: 0 0 8px;
  max-width: none;
}

.mv-care-offer {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  line-height: 1.45;
}

.mv-home .mv-care-offer p {
  max-width: none;
  margin: 0;
  font-size: 16px;
  line-height: inherit;
}

.mv-care-offer strong {
  font-weight: 700;
}

.mv-care-offer small {
  color: var(--muted);
  font-size: 13px;
}

.mv-home .mv-care-offer .mv-first-visit {
  margin-top: 10px;
  font-size: 14px;
}

.mv-home .mv-care .mv-card-link {
  align-self: stretch;
  margin-top: auto;
  min-height: 48px;
  font-size: 14px;
  text-align: center;
  padding-inline: 12px;
  justify-content: center;
}

.mv-hero-backdrop {
  padding-bottom: 0;
}

.mv-home .clinical-lead {
  gap: 32px;
}

.mv-home .clinical-lead-portrait {
  width: 100%;
  max-width: 360px;
  height: 360px;
  justify-self: start;
  border-radius: 24px;
}

.mv-home .clinical-lead-copy h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.mv-home .clinical-lead-copy p {
  font-size: 16px;
  line-height: 1.65;
}

.mv-home .mv-faq {
  gap: 24px;
}

.mv-home .mv-close {
  padding-block: 40px;
  border: 0;
  border-radius: 28px;
  background: #f1f6fb;
}

.mv-home .mv-close h2 {
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .mv-home .mv-pathways {
    gap: 32px;
  }

  .mv-home .motion-scene {
    grid-template-columns: 1.1fr 1fr;
  }

  .mv-home .motion-copy {
    padding: 32px 24px;
  }

  .mv-home .motion-media {
    height: 100%;
    min-height: 300px;
  }

  .mv-home .mv-care-copy {
    display: flex;
    flex-direction: column;
  }

}

@media (min-width: 1024px) {
  .mv-home .motion-scene {
    min-height: 500px;
  }

  .mv-home .motion-copy {
    padding: clamp(32px, 4vw, 52px);
    width: 54%;
  }

  .hero-service-details {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 16px;
  }

  .hero-service-details > p {
    padding-inline-start: 16px;
    border-inline-start: 1px solid var(--line);
  }

  .mv-home .motion-media {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .mv-home .mv-care-section .mv-intro {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    column-gap: 64px;
    margin-bottom: 40px;
  }

  .mv-home .mv-care-section .mv-intro h2 {
    max-width: 17ch;
  }

  .mv-home .mv-care-photo {
    aspect-ratio: 2 / 1;
  }

  .mv-home .mv-care .mv-card-link {
    align-self: flex-start;
    padding-inline: 20px;
  }

  .mv-home .clinical-lead-portrait {
    max-width: 400px;
    height: 460px;
  }

  .mv-home .mv-faq {
    gap: 64px;
  }
}

@media (min-width: 1024px) {
  .mv-home .motion-media {
    left: auto;
    width: 46%;
    background: #f1f6fb;
  }

  .mv-home .motion-art {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .mv-home .motion-pen-generic {
    left: -10%;
    top: 2%;
    width: 88%;
    height: 78%;
  }

  .mv-home .motion-pen-generic img {
    transform: rotate(155deg);
  }

  .mv-home .motion-pen-ozempic {
    left: 5%;
    top: 48%;
    width: 90%;
    height: 18%;
  }

  .mv-home .motion-pen-ozempic img {
    transform: rotate(-46deg);
  }
}
