/* The footer uses the same wordmark as the shared header. */
.site-footer { background: #f1ece6; }

.site-footer .footer-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  max-width: 840px;
  margin-inline: auto;
  padding: 30px clamp(18px, 6vw, 52px) 18px;
}

.site-footer .footer-nav a {
  display: flex;
  align-items: center;
  min-height: 38px;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: normal;
}

.site-footer a.footer-brand {
  width: fit-content;
  max-width: calc(100% - 36px);
  padding: 0 0 22px;
  text-align: center;
  line-height: 1;
  background: transparent;
}

.site-footer .footer-brand > strong {
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.12;
}

.site-footer .footer-brand > span {
  margin: 5px 0 0;
  font-size: 6px;
  letter-spacing: .15em;
}

.integrated-home .mobile-copy-break { display: none; }

.integrated-home :is(.hero-copy > .hero-introduction, .visual-copy > p, .section-lead,
  .benefit-copy > p, .trainer-copy > p, .trial-step-copy > p, .faq-list p) {
  text-align: start;
  text-align-last: auto;
  text-justify: none;
  letter-spacing: normal;
  word-spacing: normal;
  text-wrap: pretty;
}

.integrated-home :is(.section-lead, .trial-step-copy, .hero-introduction) :is(.service-term, .word-unit) {
  display: inline;
  white-space: normal;
}

.integrated-home .closing-reservation .section {
  width: min(88%, 800px);
  margin-inline: auto;
}

.integrated-home .closing-reservation .section > p:not(.booking-status) {
  text-align: center;
  text-align-last: auto;
  text-justify: none;
  letter-spacing: normal;
  text-wrap: pretty;
}

@media (max-width: 768px) {
  .site-footer .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(12px, 5vw, 24px);
    padding-top: 22px;
    padding-bottom: 16px;
  }

  .site-footer .footer-nav a {
    min-height: 38px;
    font-size: clamp(10px, 2.9vw, 12px);
    padding-block: 4px;
  }

  .integrated-home {
    --body-gutter: clamp(20px, 5.8vw, 24px);
  }

  .integrated-home :is(.hero .hero-copy, #concept .visual-inner,
    .program-intro, .program-editorial .visual-inner, #reasons,
    #trainer, #price > .section, #flow > .section) {
    width: calc(100% - 2 * var(--body-gutter));
    margin-inline: auto;
  }

  /* Fill the available measure before wrapping. Explicit sentence breaks
     still apply, and the final line can end naturally. */
  .integrated-home :is(.hero-copy > .hero-introduction, .visual-copy > p,
    .section-lead, .trainer-copy > p, .trial-step-copy > p),
  .integrated-home #reasons .benefit-copy > p {
    max-inline-size: none;
    text-wrap: wrap;
  }

  .integrated-home :is(.visual-copy > p, .benefit-copy > p, .trainer-copy > p)
    :is(.service-term, .word-unit) {
    display: inline;
    white-space: normal;
  }

  .integrated-home #reasons .benefit-grid article,
  .integrated-home #flow .trial-steps > li {
    grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
    column-gap: clamp(12px, 4vw, 18px);
  }

  .integrated-home #flow .trial-step-copy {
    padding-inline: 0;
  }

  .integrated-home #trainer .trainer-copy {
    padding-inline: clamp(14px, 3.8vw, 18px);
  }

  .integrated-home .mobile-copy-break { display: inline; }
  .integrated-home .compact-heading { white-space: nowrap; }
  .integrated-home .compact-heading .pc-br { display: none; }

  .integrated-home #concept .visual-copy h2,
  .integrated-home #reasons > h2 {
    font-size: clamp(16px, 5.15vw, 25px);
    letter-spacing: 0;
    line-height: 1.6;
  }

  .integrated-home .mobile-title {
    --hero-primary-size: clamp(29px, 9vw, 43px);
  }

  .integrated-home .hero .mobile-title > p:first-child {
    /* The first line has 12 characters and the primary line has seven. */
    font-size: calc(var(--hero-primary-size) * .558);
    letter-spacing: .02em;
    line-height: 1.45;
  }

  .integrated-home .hero .mobile-title > strong {
    font-size: var(--hero-primary-size);
    letter-spacing: .02em;
    line-height: 1.22;
    margin: 6px 0 12px;
  }

  .integrated-home .hero .mobile-title .mobile-hero-description {
    width: auto;
    max-width: none;
    font-size: clamp(10px, 2.9vw, 12px);
    line-height: 1.85;
    letter-spacing: normal;
    text-align: start;
    text-align-last: auto;
    text-justify: none;
  }

  .integrated-home .sentence-tail { white-space: nowrap; }

  .integrated-home #flow .trial-step-copy > p {
    font-size: clamp(11px, 2.95vw, 13px);
    line-height: 1.9;
  }
}


/* Only explicit word groups in the requested copy stay together on mobile. */
@media (max-width: 768px) {
  .integrated-home .copy-unit {
    white-space: nowrap;
  }
}


/* Scale the subtitle with the existing wordmark, keeping its natural tracking. */
.header .brand > span,
.site-footer .footer-brand > span {
  font-size: 8.4px;
  line-height: 1.3;
  letter-spacing: .08em;
}
@media (min-width: 769px) {
  .header .brand > span { font-size: 11.4px; }
  .site-footer .footer-brand > span { font-size: 10.2px; }
}
@media (min-width: 769px) and (max-width: 1150px) {
  .header .brand > span { font-size: 9.3px; }
}
@media (min-width: 769px) and (max-width: 900px) {
  .header .brand > span { font-size: 8.4px; }
}
@media (max-width: 768px) {
  .site-footer .footer-brand > strong { font-size: 28px; }
}
@media (max-width: 360px) {
  .header .brand > span,
  .site-footer .footer-brand > span { font-size: 7.5px; }
  .site-footer .footer-brand > strong { font-size: 25px; }
}


/* Final mobile adjustments are limited to the marked header and copy. */
@media (max-width: 768px) {
  .integrated-home .header .brand > span {
    font-size: 8.1px;
  }
  .integrated-home #flow .trial-steps > li:nth-child(n + 2) p {
    text-wrap: pretty;
  }
}
@media (max-width: 360px) {
  .integrated-home .header .brand > span {
    font-size: 7.2px;
  }
}


/* Optical alignment of the mobile header subtitle only. */
@media (max-width: 768px) {
  .header .brand > span,
  .integrated-home .header .brand > span {
    font-size: 8.25px;
    position: relative;
    left: .3px;
  }
}
@media (max-width: 360px) {
  .header .brand > span,
  .integrated-home .header .brand > span {
    font-size: 7.35px;
  }
}
