/*
  Home page shared styles.
  Scoped to classes prefixed with `home-`.
*/

.home-main {
  padding: 0;
}

.home-brand-wordmark {
  --home-brand-height: 0.98em;
  --home-brand-offset: -0.08em;
  display: inline-block;
  vertical-align: var(--home-brand-offset);
  line-height: 1;
  white-space: nowrap;
  margin-inline: 0.08em 0.05em;
}

.home-brand-text {
  display: inline;
  margin-inline: 0.06em 0.03em;
  font-family: "kallisto", "Bai Jamjuree", system-ui, sans-serif;
  font-style: italic;
  font-synthesis: none;
  white-space: nowrap;
}

.home-brand-text--white {
  color: #ffffff;
}

.home-brand-text--blue {
  color: #1e67b3;
}

.home-brand-wordmark img {
  display: block;
  width: auto;
  max-width: none;
  height: var(--home-brand-height);
}

.home-brand-wordmark--hero {
  --home-brand-height: 1em;
  --home-brand-offset: -0.09em;
}

.home-brand-wordmark--title {
  --home-brand-height: 1.12em;
  --home-brand-offset: -0.2em;
}

.home-brand-wordmark--card {
  --home-brand-height: 1.12em;
  --home-brand-offset: -0.16em;
}

.home-brand-wordmark--copy {
  --home-brand-height: 1.16em;
  --home-brand-offset: -0.14em;
}

.home-brand-wordmark--cta {
  --home-brand-height: 1.26em;
  --home-brand-offset: 0;
  position: relative;
  top: 0.03em;
  overflow: visible;
}

.home-scroll-active .home-scroll-fx {
  opacity: 0;
  transform: translate3d(0, 42px, 0) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.92s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.82s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--fx-delay, 0ms);
}

.home-scroll-active .home-scroll-fx.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.home-why {
  background: #f8fbff;
  padding: clamp(58px, 9vw, 108px) 0 clamp(74px, 10vw, 120px);
}

.home-why-shell {
  max-width: 1220px;
}

.home-why-heading {
  margin: 0 auto clamp(28px, 5vw, 50px);
}

.home-why-title {
  margin: 0;
  font-family: "kallisto", "Bai Jamjuree", system-ui, sans-serif;
  font-weight: 500;
  color: #0f2b4d;
  font-size: clamp(44px, 4.6vw, 76px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.home-why-title span {
  color: #1e67b3;
  font-style: italic;
}

.home-why-subtitle {
  margin: 0.38rem auto 0;
  max-width: 980px;
  color: #5d7697;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.home-why-card {
  height: 100%;
  border-radius: 12px;
  border: 1px solid #d6e1ee;
  background: #ffffff;
  text-align: center;
  padding: clamp(24px, 3vw, 34px) clamp(20px, 2.4vw, 30px);
  transition:
    border-color 0.26s ease,
    box-shadow 0.3s ease,
    background-color 0.26s ease,
    transform 0.3s ease;
}

.home-why-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: #eaf1fb;
  color: #1f67b4;
  display: grid;
  place-items: center;
}

.home-why-icon i {
  font-size: 31px;
  line-height: 1;
  transition: transform 0.28s ease;
}

.home-why-card-title {
  margin: 0 0 0.45rem;
  font-family: "kallisto", "Bai Jamjuree", system-ui, sans-serif;
  font-weight: 500;
  color: #0f2b4d;
  font-size: clamp(31px, 2.25vw, 39px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.home-why-card-copy {
  margin: 0 auto;
  max-width: 480px;
  color: #5d7697;
  font-size: clamp(15px, 1.28vw, 22px);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .home-why {
    padding-top: 60px;
    padding-bottom: 74px;
  }
}

@media (max-width: 640px) {
  .home-why {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .home-brand-wordmark--hero {
    --home-brand-height: 0.92em;
  }

  .home-brand-wordmark--title {
    --home-brand-height: 1.04em;
  }

  .home-brand-wordmark--card {
    --home-brand-height: 1.08em;
  }

  .home-brand-wordmark--copy {
    --home-brand-height: 1.1em;
  }

  .home-brand-wordmark--cta {
    --home-brand-height: 1.12em;
  }

  .home-why-heading {
    margin-bottom: 26px;
  }

  .home-why-title {
    font-size: clamp(35px, 10vw, 46px);
  }

  .home-why-subtitle {
    font-size: clamp(13px, 3.8vw, 15px);
  }

  .home-why-card {
    padding: 24px 18px;
  }

  .home-why-icon {
    width: 64px;
    height: 64px;
  }

  .home-why-icon i {
    font-size: 28px;
  }
}

@media (max-width: 420px) {
  .home-why-title {
    font-size: clamp(31px, 11vw, 40px);
  }

  .home-why-card-title {
    font-size: clamp(27px, 9.5vw, 35px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .home-why-card:hover {
    border-color: #aac5e5;
    background-color: #fbfdff;
    box-shadow: 0 18px 36px rgba(16, 45, 83, 0.14);
    transform: translate3d(0, -8px, 0);
  }

  .home-scroll-active .home-why-card.home-scroll-fx.is-visible:hover {
    transform: translate3d(0, -8px, 0);
  }

  .home-why-card:hover .home-why-icon i {
    transform: scale(1.08);
  }
}

@media (hover: none), (pointer: coarse) {
  .home-why-card.is-touch-active {
    border-color: #aac5e5;
    background-color: #fbfdff;
    box-shadow: 0 18px 36px rgba(16, 45, 83, 0.14);
    transform: translate3d(0, -8px, 0);
  }

  .home-why-card.is-touch-active .home-why-icon i {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-scroll-active .home-scroll-fx,
  .home-scroll-active .home-scroll-fx.is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .home-why-card,
  .home-why-icon i {
    transition: none !important;
  }
}
