/* Layout and alignment overrides for index.php */
:root {
  --rmu-shell-max: 980px;
  --rmu-content-max: 760px;
  --rmu-gutter: 16px;
}

html,
body {
  overflow-x: hidden;
}

body {
  text-align: left !important;
}

body > div {
  width: min(100% - 32px, var(--rmu-shell-max)) !important;
  margin: 0 auto !important;
  padding: 15px 0 20px !important;
}

header,
.reveal-block,
.reveal-section,
.promo-strip,
.hero-points,
.feature-list,
.section-visual,
#final-cta {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.reveal-section,
#final-cta {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-inline: var(--rmu-gutter) !important;
}

.reveal-block,
.reveal-section {
  width: min(100%, var(--rmu-content-max)) !important;
  max-width: var(--rmu-content-max) !important;
}

.reveal-section > h2,
.reveal-section > p,
.reveal-section > ul,
.reveal-section > div,
#final-cta > h2,
#final-cta > p,
#final-cta > ul,
#final-cta > div {
  width: min(100%, var(--rmu-content-max)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.reveal-block > *,
.reveal-section > * {
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-kicker,
.hero-title,
.hero-copy,
.reveal-block h2,
.reveal-section h2,
.reveal-block p,
.reveal-section p {
  text-align: center !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.promo-strip h2,
.promo-strip p {
  text-align: left !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-kicker,
.hero-title,
.hero-copy {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-cta-row {
  justify-content: center !important;
  gap: 14px !important;
}

.hero-cta-row a,
.cta-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-align: center !important;
}

.promo-strip {
  width: min(100%, 1120px) !important;
  padding: 18px !important;
  overflow: hidden;
}

.promo-strip > div {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

.section-visual {
  width: min(50%, 360px) !important;
  margin: 18px auto 16px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hero-visual {
  width: min(80%, 520px) !important;
}

.section-visual img,
.hero-visual img {
  display: block;
  width: 60%;
  height: auto;
  margin: 0 auto;
}

.hero-visual img {
  width: 100%;
}

.feature-list {
  list-style: none !important;
  margin: 22px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  max-width: 760px !important;
  text-align: center !important;
}

.feature-list--grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px !important;
  justify-content: center !important;
  justify-items: stretch !important;
  width: min(100%, var(--rmu-content-max)) !important;
}

.feature-list--grid > li,
.hero-points > li,
.feature-list--split > li {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.hero-points {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px !important;
  max-width: var(--rmu-content-max) !important;
  justify-content: center !important;
  justify-items: stretch !important;
  border: 0 !important;
}

.feature-list--split > li {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  justify-content: center !important;
  text-align: center !important;
}

.feature-list--split .feature-icon,
.hero-points > li > span[aria-hidden="true"],
.reveal-block ul > li > span[aria-hidden="true"],
.reveal-section ul > li > span[aria-hidden="true"] {
  width: 52px;
  height: 52px;
}

.reveal-block ul > li > div,
.reveal-section ul > li > div,
.hero-points > li > div,
.feature-list--grid > li > div,
.feature-list--split > li > div {
  min-width: 0;
  text-align: inherit;
}

@media (max-width: 720px) {
  body > div {
    width: min(100% - 20px, var(--rmu-content-max)) !important;
    padding: 12px 0 16px !important;
  }

  .reveal-block,
  .reveal-section {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .reveal-section,
  #final-cta {
    margin-top: 24px !important;
  }

  .reveal-block > *,
  .reveal-section > * {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    line-height: 1 !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-copy {
    font-size: 1rem !important;
    line-height: 1.75 !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-kicker {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-cta-row a,
  .cta-button {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    padding: 0 16px !important;
  }

  .promo-strip {
    padding: 14px 12px 8px !important;
  }

  .promo-strip > div {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .promo-price {
    justify-content: center !important;
  }

  .section-visual {
    width: min(80%, 760px) !important;
    padding: 0 !important;
    margin: 14px auto 0 !important;
  }

  .hero-visual {
    width: min(90%, 760px) !important;
  }

  .hero-points,
  .feature-list--grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .feature-list--split > li,
  .hero-points > li,
  .feature-list--grid > li,
  .reveal-section ul > li,
  .reveal-block ul > li {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 12px !important;
    padding: 16px 14px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .feature-list--split > li:nth-child(even) {
    flex-direction: column !important;
  }

  .feature-list--split > li {
    justify-content: center !important;
  }

  .reveal-block ul > li > div,
  .reveal-section ul > li > div,
  .hero-points > li > div,
  .feature-list--grid > li > div,
  .feature-list--split > li > div {
    width: 100% !important;
    text-align: center !important;
  }

  .reveal-block h2,
  .reveal-section h2,
  .reveal-block p,
  .reveal-section p,
  .hero-points h3,
  .feature-list h3,
  .hero-points p,
  .feature-list p,
  .promo-strip h2,
  .promo-strip p {
    text-align: center !important;
  }

  .scroll-top-btn {
    right: 12px;
    bottom: 12px;
    min-width: 48px;
    height: 48px;
    padding: 0 12px;
    border-radius: 16px;
  }

  .scroll-top-btn span {
    display: none;
  }

  .scroll-top-btn svg {
    width: 22px;
    height: 22px;
  }
}
