#top,
#products {
  scroll-margin-top: 104px;
}

.product-heading h2::after,
.newsletter-promo h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 22px auto 0;
  border-radius: 999px;
  background: linear-gradient(to right, #20ded7, #087377);
}

.products-section {
  border-block: 1px solid #cde8e4;
  background: #eefaf8;
  color: #081a33;
}

.product-heading h2 {
  font-size: clamp(18px, 7.6vw, 56px);
}

.product-heading h2 > span {
  display: block;
  white-space: nowrap;
}

.product-track {
  --product-gap: 22px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--product-gap)) / 3);
  gap: var(--product-gap);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.product-track:focus-visible,
.product-controls button:focus-visible,
.product-card a:focus-visible {
  outline: 2px solid #087377;
  outline-offset: 4px;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #c9e3df;
  border-radius: 18px;
  background: #fff;
}

.product-card-image,
.newsletter-tool img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #07162a;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(18px, 2vw, 24px);
}

.product-card h3 {
  margin: 0;
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.product-card p {
  margin: 0 0 5px;
  color: #33495c;
  font-size: 14px;
  line-height: 1.65;
}

.product-card .product-availability {
  color: #086467;
  font-size: 12px;
  font-weight: 800;
}

.product-card a {
  margin-top: auto;
  padding: 9px 14px;
  border: 1px solid #38a5ae;
  border-radius: 8px;
  color: #086467;
  font-size: 14px;
  font-weight: 800;
}

.product-card a:hover {
  background: #e8f8f6;
}

.product-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.product-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #3ba3af;
  border-radius: 50%;
  background: #fff;
  color: #086467;
  font-family: inherit;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.product-controls button[aria-disabled="true"] {
  opacity: .48;
  cursor: default;
}

.product-controls .product-playback {
  width: auto;
  padding: 0 14px;
  border-radius: 999px;
  background: #086467;
  color: #fff;
  font-size: 13px;
}

.product-controls .product-playback[hidden] {
  display: none;
}

.products-section .service-list-link {
  max-width: 100%;
  padding: 12px 22px;
  border: 1px solid #3da8a8;
  border-radius: 999px;
  background: #fff;
  color: #086467;
  text-align: center;
}

.products-section .service-list-link:hover {
  background: #e8fbf8;
}

.product-position {
  min-width: 84px;
  margin: 0;
  color: #33495c;
  font-size: 14px;
  text-align: center;
}

.newsletter-section {
  background: #fbf8f0;
}

.newsletter-promo {
  text-align: center;
}

.newsletter-promo h2 {
  margin: 0;
  font-size: clamp(22px, 6.9vw, 54px);
  line-height: 1.24;
  letter-spacing: -.04em;
}

.newsletter-intro {
  max-width: 46rem;
  margin: 20px auto 0;
  color: #33495c;
  line-height: 1.85;
}

.newsletter-promo > .eyebrow {
  color: #086d70;
}

.newsletter-schedule {
  margin: 6px auto 26px;
  color: #33495c;
  font-size: 14px;
}

.newsletter-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}

.newsletter-days li {
  padding: 14px;
  border: 1px solid #d2e8e4;
  border-radius: 12px;
  background: #f4fcfa;
}

.newsletter-days li > span {
  color: #086d70;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.newsletter-days h3 {
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.5;
}

.newsletter-days p {
  margin: 0;
  color: #33495c;
  font-size: 13px;
  line-height: 1.55;
}

.newsletter-benefits {
  margin: 34px 0 6px;
  font-size: clamp(19px, 4vw, 29px);
  line-height: 1.4;
  text-wrap: balance;
}

.newsletter-benefits-summary {
  margin: 0 0 18px;
  color: #33495c;
  font-size: 14px;
}

.newsletter-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(100%, 1040px);
  margin: 0 auto;
}

.newsletter-tool {
  min-width: 0;
  overflow: hidden;
  padding: 0 0 18px;
  border: 1px solid #e0ebe9;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px #1427370a;
}

.newsletter-tool h3 {
  margin: 14px 12px 3px;
  font-size: clamp(16px, 2.3vw, 21px);
  overflow-wrap: anywhere;
}

.newsletter-tool p {
  margin: 0 12px;
  color: #3c5664;
  font-size: 14px;
}

.newsletter-register {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 28px;
  padding: 15px 24px;
  border-radius: 999px;
  background: linear-gradient(to bottom right, #008084, #074e5a);
  color: #fff;
  font-weight: 900;
}

.site-footer {
  display: block;
  padding-top: 44px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.12fr;
  gap: 24px;
  align-items: start;
}

.footer-top nav a,
.footer-company-link {
  display: block;
  margin-top: 9px;
  color: #e1edf7;
}

.footer-top nav p {
  color: #fff;
  font-weight: 800;
}

.footer-mirai img {
  width: min(100%, 211px);
}

.footer-mirai p,
.footer-company p {
  margin-top: 8px;
  line-height: 1.7;
}

.footer-company img {
  width: 116px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #254054;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1050px) {
  .newsletter-days {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-track {
    grid-auto-columns: calc((100% - var(--product-gap)) / 2);
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .product-track {
    --product-gap: 14px;
    grid-auto-columns: 100%;
  }

  .product-controls {
    gap: 8px;
    flex-wrap: wrap;
  }

  .product-position {
    min-width: 62px;
  }

  .newsletter-intro {
    font-size: 14px;
  }

  .newsletter-days {
    grid-template-columns: minmax(0, 1fr);
  }

  .newsletter-tools {
    grid-template-columns: minmax(0, 1fr);
    max-width: 360px;
  }

  .newsletter-register {
    padding-inline: 15px;
    font-size: 14px;
  }

  .footer-top {
    column-gap: 14px;
  }

  .footer-mirai,
  .footer-company {
    grid-column: 1 / -1;
  }
}
