/* Centered hero base, also reused by the standalone comparison studies. */
.hero-centered .hero-copy {
  height: 344px;
  padding-top: 53px;
  text-align: center;
}
.hero-centered h1 {
  margin-inline: auto;
  max-width: 850px;
  font-size: 57px;
  line-height: 1.12;
  letter-spacing: -2.3px;
  text-wrap: balance;
}
.hero-centered h1 > span {
  display: inline-block;
  width: 100%;
  font-size: 0.84em;
  text-wrap: balance;
}
.hero-centered .hero-copy-bottom {
  display: block;
  margin-top: 23px;
}
.hero-centered .hero-copy-bottom > p {
  margin-inline: auto;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.65;
}
.hero-centered .hero-copy-bottom > p > span {
  display: block;
  text-wrap: balance;
}
.hero-centered .hero-actions {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 27px;
}
.hero-centered .hero-actions > .button {
  min-height: 46px;
  padding-inline: 23px;
  font-size: 12px;
}
.hero-centered .hero-actions > .text-link {
  min-height: 44px;
  font-size: 12px;
  gap: 9px;
  background: #fbfaf777;
  border-color: #d5d4cf;
  color: #373c3b;
}
.hero-centered .hero-art {
  top: -50px;
}
.hero-centered .demo-wrap {
  margin-top: 184px;
}

/* Keep the sailboat above the preview as the edge-to-edge landscape grows. */
@media (min-width: 1201px) {
  .site-page .hero-centered .demo-wrap {
    margin-top: max(184px, calc(184px + (100vw - 1280px) * 0.42));
  }
}

@media (max-width: 900px) {
  .hero-centered h1 {
    font-size: 44px;
    letter-spacing: -1.7px;
  }
  .hero-centered .hero-art {
    top: 70px;
  }
  .hero-centered .demo-wrap {
    margin-top: 146px;
  }
}
@media (max-width: 680px) {
  .hero-centered .hero-copy {
    padding-top: 35px;
    height: auto;
    min-height: 330px;
  }
  .hero-centered h1 {
    font-size: clamp(27px, 7.5vw, 44px);
    line-height: 1.16;
    letter-spacing: -1.15px;
  }
  .hero-centered .hero-copy-bottom {
    margin-top: 22px;
  }
  .hero-centered .hero-copy-bottom > p {
    font-size: 13px;
    line-height: 1.65;
    max-width: 380px;
    text-wrap: pretty;
  }
  .hero-centered .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 17px;
    margin-top: 24px;
  }
  .hero-centered .hero-actions > .button {
    min-height: 44px;
    min-width: 195px;
    font-size: 11px;
    padding: 11px 19px;
  }
  .hero-centered .hero-actions > .text-link {
    min-height: 36px;
    font-size: 11px;
  }
  .hero-centered .hero-art {
    top: 225px;
    height: 470px;
  }
  .hero-centered .demo-wrap {
    margin-top: 176px;
  }
}

/* Selected study F. Only the homepage opts in; comparison variants stay intact. */
.hero-mobile-break {
  display: none;
}
.hero-f .hero-copy {
  padding-top: 79px;
}
.hero-f .hero-copy-bottom > p {
  font-size: 15px;
  max-width: 680px;
}
.hero-f .hero-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}
.hero-f .hero-actions > .button {
  min-height: 46px;
  font-size: 13px;
  gap: 12px;
}
@media (max-width: 680px) {
  .hero-f .hero-copy {
    padding-top: 42px;
    padding-bottom: 0;
  }
  .hero-f .hero-mobile-break {
    display: initial;
  }
  .hero-f h1 {
    font-size: clamp(37px, 10.5vw, 50px);
    line-height: 1.08;
    letter-spacing: -1.7px;
  }
  .hero-f h1 > span {
    display: block;
    max-width: 360px;
    margin: 16px auto 0;
    font-size: clamp(25px, 6.7vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.8px;
  }
  .hero-f .hero-copy-bottom {
    margin-top: 25px;
  }
  .hero-f .hero-copy-bottom > p {
    max-width: 350px;
    line-height: 1.6;
  }
  .hero-f .hero-copy-bottom > p > span + span {
    margin-top: 8px;
  }
  .hero-f .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 350px;
    gap: 12px;
    margin-top: 27px;
  }
  .hero-f .hero-actions > .button {
    min-width: 0;
    min-height: 46px;
    padding-inline: 10px;
    gap: 8px;
  }
  .hero-f .hero-art {
    top: 230px;
    height: 490px;
  }
  .hero-f .demo-wrap {
    margin-top: 210px;
  }
}
