/* Center only the homepage headings on phones. */
@media (max-width: 680px) {
  #main :is(h1, h2, h3, h4) {
    text-align: center;
    margin-inline: auto;
  }
  #main :is(.eyebrow, .aes-reviews__eyebrow, .aes-guide__eyebrow,
    .aes-guide__kicker, .aes-welcome__eyebrow, .aes-plan__eyebrow,
    .aes-wa__eyebrow, .aes-next__eyebrow, .aes-faq__eyebrow) {
    text-align: center;
    justify-content: center;
  }
  #main .aes-fit__title,
  #main .aes-guide__option {
    text-align: left;
    margin-inline: 0;
  }
  #main .aes-plan__grid,
  #main .aes-plan__grid :is(h3, h4, p, li) { text-align: left; }
  #main .aes-plan__grid :is(h3, h4) { margin-inline: 0; }
  #main .aes-plan__head { justify-content: flex-start; }
  #main .aes-promise,
  #main .aes-promise__badge-inner { text-align: center; }
  #main .aes-promise :is(p, h2) {
    text-align: center;
    margin-inline: auto;
  }
  #main .aes-promise__chart { width: 100%; margin-inline: auto; }
  #main .aes-promise__trust {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  #main .aes-promise__trust p { flex: none; }
  #main .aes-wa__lead {
    text-align: center;
    margin-inline: auto;
  }

  .aes-footer__cols,
  .aes-footer__bottom { text-align: center; }
  .aes-footer__cols { grid-template-columns: minmax(0, 1fr); }
  .aes-footer__col { align-items: center; }
  .aes-footer__text { margin-inline: auto; }
  .aes-footer__col--social { width: 100%; max-width: 350px; margin-inline: auto; }
  .aes-footer__links {
    display: grid;
    width: 100%;
    max-width: 350px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .aes-footer__social { width: 100%; }
  .aes-footer__links a,
  .aes-footer__col > a,
  .aes-footer__legal { justify-content: center; }
  .aes-footer__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 16px;
  }
  .aes-footer__legal { grid-column: 1; grid-row: 1; }
  .aes-footer__copy { grid-column: 1; grid-row: 2; margin: 0; }
  .aes-footer a.aes-footer__top-btn { grid-column: 1; grid-row: 3; margin: 0; }
}
