/* Keep the original responsive hero scale as the basis for both heading levels. */
:root {
  --ftl-heading-reduction: 4pt;
  --ftl-section-heading-offset: 10pt;
  --ftl-hero-heading-size: calc(clamp(60px, 11.5vw, 116px) - var(--ftl-heading-reduction));
}

@media (min-width: 721px) {
  :root {
    --ftl-heading-reduction: 16pt;
    --ftl-section-heading-offset: 16pt;
  }
}

@media (min-width: 721px) and (hover: hover) and (pointer: fine) {
  :root {
    --ftl-heading-reduction: 20pt;
  }
}

.hero .hero-eyebrow {
  font-size: calc(clamp(32px, 4.6vw, 46px) - 2pt);
}

.hero h1 {
  font-size: var(--ftl-hero-heading-size);
}

.hero .hero-cmc-heading,
#cta .cta-cmc-heading {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.hero .hero-cmc-heading {
  color: var(--orange);
}

#cta .cta-cmc-heading {
  color: var(--orange-dark);
  text-transform: none;
}

.hero .hero-cmc-actions,
#cta .cta-buttons.cta-cmc-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: min(100%, 320px);
  margin-inline: auto;
  gap: 12px;
}

.hero .hero-cmc-actions .btn,
#cta .cta-buttons.cta-cmc-actions .btn {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 8px;
}

#cta .cta-telegram-action {
  margin-block-start: 16px;
}

.hero .hero-ctas .btn-orange-line,
#cta .cta-buttons .btn-orange-line-dark {
  background-color: var(--orange);
  color: var(--pine);
}

.hero .hero-ctas .btn-orange-line:hover {
  background-color: transparent;
  color: var(--orange);
}

#cta .cta-buttons .btn-orange-line-dark:hover {
  background-color: transparent;
  color: var(--orange-dark);
}

.hero .hero-ctas .btn-white-line {
  background-color: #fff;
  color: var(--pine);
}

#cta .cta-buttons .btn-outline-dark {
  background-color: var(--spring);
  color: #fff;
}

.hero .hero-ctas .btn-white-line:hover {
  background-color: transparent;
  color: #fff;
}

#cta .cta-buttons .btn-outline-dark:hover {
  background-color: transparent;
  color: var(--spring);
}

.hero .hero-steps-link {
  display: inline-block;
  margin-block-start: 18px;
  color: #fff;
  font-size: calc(16px - 2pt);
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

#simple-steps-to-join {
  scroll-margin-block-start: 24px;
}

#story .who-copy h2,
#what .what-block h2,
#how-it-works .section-head h2,
#mission .mission-block h2,
#cta h2 {
  font-size: calc(var(--ftl-hero-heading-size) - var(--ftl-section-heading-offset));
}

#story .who-copy > p:not(:first-of-type),
#what .what-block > p:not(.what-lead),
#how-it-works .how-step > div > p:not(.how-access) {
  line-height: calc(1.75em - 1pt);
}

#how-it-works .section-head > p:not(:first-of-type),
#cta .container > p.cta-lead:not(.cta-lead-2) {
  line-height: calc(1.7em - 1pt);
}

#mission .mission-block > p:not(.mission-sub, .mission-highlight) {
  line-height: calc(1.85em - 1pt);
}

@media (min-width: 721px) and (hover: none) and (pointer: coarse) {
  /* Keep the header within Wix's desktop grid on touch devices. */
  .hero-header .nav-row {
    max-width: 980px;
  }

  #how-it-works .how-num {
    --ftl-step-number-reduction: 24pt;
  }
}

#story .fact-cards {
  margin-block-end: 40px;
}

#story .fact-cards .fact {
  min-height: 0;
  justify-content: flex-start;
  padding-block: 32px;
  row-gap: 20px;
}

@media (min-width: 721px) {
  .hero .hero-steps-link {
    margin-block-start: 14px;
  }

  #story .who-grid {
    margin-block-end: clamp(27px, 3.75vw, 48px);
  }

  #story .fact-cards .fact-num {
    font-size: calc(clamp(60px, 6.6vw, 88px) - 18pt);
  }

  #what .what-block > p:has(+ .vid-wrap) {
    margin-block-end: 13.5px;
  }

  #what .vid-wrap,
  #what .proof-col {
    margin-block-start: clamp(27px, 3.75vw, 48px);
  }

  #what .proof-stat .proof-big {
    font-size: calc(clamp(64px, 7vw, 100px) - 4pt);
  }

  #what,
  #how-it-works,
  #mission,
  #cta {
    padding-block: calc(clamp(72px, 9vw, 136px) * 0.75);
  }

  #cta {
    padding-block-end: calc(clamp(40px, 5vw, 72px) * 0.75);
  }

  #mission .mission-sub {
    margin-block-end: clamp(30px, 3.75vw, 48px);
  }

  #mission .mission-block > p:not(.mission-sub, .mission-highlight) {
    line-height: calc(1.85em - 3pt);
  }

  #how-it-works .how-steps-head {
    font-size: calc(clamp(44px, 7.4vw, 104px) - 28pt);
  }

  #how-it-works .how-step {
    padding-block: clamp(16px, 2.2vw, 30px);
    column-gap: clamp(10px, 2.5vw, 40px);
  }

  #how-it-works .how-num {
    flex-basis: 1.25em;
    font-size: calc(clamp(64px, 9.6vw, 136px) - var(--ftl-step-number-reduction, 18pt)) !important;
  }

  #how-it-works .how-step h3 {
    font-size: calc(clamp(24px, 2.6vw, 34px) - 8pt);
  }
}

@media (max-width: 720px) {
  body > footer {
    padding-block: 40px 32px;
  }

  .footer-nav {
    row-gap: 12px;
    margin-block-end: 24px;
  }

  .footer-rule {
    margin-block-end: 28px;
  }

  .footer-disclaimer {
    margin-block-end: 24px;
  }

  .footer-copy {
    margin-block-end: 36px;
  }

  .footer-brand-row {
    row-gap: 8px;
  }

  #story .fact-cards {
    margin-block-end: 24px;
  }

  #story .fact-cards .fact {
    padding-block: 20px;
    row-gap: 14px;
  }

  #story .fact-cards .fact-num {
    font-size: calc(clamp(60px, 6.6vw, 88px) - 4pt);
  }

  #story .fact-cards .fact-txt {
    margin-inline: auto;
  }

  #how-it-works .how-steps-head {
    font-size: calc(clamp(44px, 7.4vw, 104px) - 6pt);
  }

  #how-it-works .how-num {
    font-size: calc(80px - 12pt) !important;
  }

  #mission .mb-plus {
    inset-block-start: calc(24px + 0.5lh);
    translate: 0 -50%;
  }

  /* The homepage script marks browser widths of 600px and below. */
  :root[data-ftl-small-mobile] {
    --ftl-heading-reduction: 8pt;
  }

  :root[data-ftl-small-mobile] .hero {
    padding-block: 68px 52px;
  }

  :root[data-ftl-small-mobile] .hero .hero-eyebrow {
    font-size: calc(clamp(32px, 4.6vw, 46px) - 6pt);
  }

  :root[data-ftl-small-mobile] .hero h1 {
    margin-block-end: 21px;
  }

  :root[data-ftl-small-mobile] .hero .hero-sub {
    margin-block-end: 24px;
    font-size: calc(22px - 4pt);
    line-height: 1.65;
  }

  :root[data-ftl-small-mobile] #join-telegram-hero {
    padding-block: 11px;
  }

  :root[data-ftl-small-mobile] #join-telegram-cta {
    padding-block: 13px;
  }

  :root[data-ftl-small-mobile] #story .who-copy > p:first-of-type {
    font-size: calc(clamp(21px, 2.1vw, 27px) - 2pt);
  }

  :root[data-ftl-small-mobile] #story .fact-cards .fact-num {
    font-size: calc(clamp(60px, 6.6vw, 88px) - 14pt);
  }

  :root[data-ftl-small-mobile] #what .what-block .what-lead {
    font-size: calc(clamp(22px, 2.7vw, 34px) - 2pt);
  }

  :root[data-ftl-small-mobile] #what .what-block > p:has(+ .vid-wrap) {
    margin-block-end: 9px;
  }

  :root[data-ftl-small-mobile] #what .vid-wrap {
    margin-block-start: 18px;
  }

  :root[data-ftl-small-mobile] #what .proof-stat {
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }

  :root[data-ftl-small-mobile] #what .proof-stat .proof-big {
    font-size: calc(clamp(64px, 7vw, 100px) - 6pt);
    margin-block-start: 18px;
  }

  :root[data-ftl-small-mobile] #what .proof-stat .proof-sub {
    margin-block-start: 22.5px;
  }

  :root[data-ftl-small-mobile] #what .proof-stat .proof-eg {
    margin-block-start: 20px;
  }

  :root[data-ftl-small-mobile] #what .proof-stat .proof-pill {
    margin-block-start: 21px;
  }

  :root[data-ftl-small-mobile] #how-it-works .section-head > p:first-of-type {
    font-size: calc(clamp(22px, 2.6vw, 32px) - 2pt);
  }

  :root[data-ftl-small-mobile] #how-it-works .how-steps-head {
    font-size: calc(clamp(44px, 7.4vw, 104px) - 10pt);
  }

  :root[data-ftl-small-mobile] #mission .mission-block .mission-sub {
    font-size: calc(clamp(16px, 1.5vw, 19px) - 2pt);
  }

  :root[data-ftl-small-mobile] #cta .container > p.cta-lead {
    font-size: calc(clamp(17px, 1.6vw, 20px) - 2pt);
  }

  :root[data-ftl-small-mobile] #cta .container > p.cta-lead-2 {
    font-size: calc(clamp(22px, 2.4vw, 30px) - 2pt);
  }

  :root[data-ftl-small-mobile] #contact-head > p {
    font-size: calc(clamp(16px, 1.5vw, 18px) - 2pt);
  }
}
