/* Clear purchase actions shared by the public home and archived /pg presentation. */
body[data-site-archive] .annual-grid,
body[data-personal-site] .annual-grid {
  grid-auto-rows: 1fr;
  align-items: stretch;
}

body[data-site-archive] .pg-mobile-purchase-cta {
  display: none !important;
}

body[data-personal-site] .personal-mobile-cta {
  display: none !important;
}

body[data-site-archive] .annual-grid article,
body[data-personal-site] .annual-grid article {
  min-width: 0;
}

body[data-site-archive] .annual-grid a.lifetime-purchase-button,
body[data-personal-site] .annual-grid a.lifetime-purchase-button {
  display: flex !important;
  box-sizing: border-box;
  width: 100%;
  height: 60px;
  min-height: 60px;
  margin-top: auto !important;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 14px;
  background: linear-gradient(105deg, #f43bcb 0%, #ff7c31 100%);
  box-shadow: 0 8px 26px rgb(241 52 190 / 28%), inset 0 1px 0 rgb(255 255 255 / 24%);
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 2px rgb(30 0 28 / 35%);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

body[data-site-archive] .annual-grid a.lifetime-purchase-button:hover,
body[data-personal-site] .annual-grid a.lifetime-purchase-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 12px 32px rgb(241 52 190 / 38%), inset 0 1px 0 rgb(255 255 255 / 28%);
  color: #fff;
}

body[data-site-archive] .annual-grid a.lifetime-purchase-button:focus-visible,
body[data-personal-site] .annual-grid a.lifetime-purchase-button:focus-visible,
body[data-site-archive] .pg-purchase-cta:focus-visible,
body[data-personal-site] .personal-header-cta:focus-visible,
body[data-personal-site] .personal-section-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

body[data-site-archive] .pg-section-purchase,
body[data-personal-site] .personal-section-purchase {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

body[data-site-archive] .pg-purchase-cta:not(.pg-mobile-purchase-cta),
body[data-personal-site] .personal-header-cta:not(.personal-mobile-cta),
body[data-personal-site] .personal-section-cta {
  display: inline-flex !important;
  min-width: 190px;
  min-height: 54px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 999px;
  background: linear-gradient(105deg, #f43bcb 0%, #ff7c31 100%);
  box-shadow: 0 8px 24px rgb(241 52 190 / 25%), inset 0 1px 0 rgb(255 255 255 / 25%);
  color: #fff !important;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  text-shadow: 0 1px 2px rgb(30 0 28 / 35%);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

body[data-site-archive] .pg-purchase-cta:hover,
body[data-personal-site] .personal-header-cta:hover,
body[data-personal-site] .personal-section-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 12px 30px rgb(241 52 190 / 36%), inset 0 1px 0 rgb(255 255 255 / 30%);
}

body[data-site-archive] .pg-purchase-cta:active,
body[data-personal-site] .personal-header-cta:active,
body[data-personal-site] .personal-section-cta:active,
body[data-site-archive] .annual-grid a.lifetime-purchase-button:active,
body[data-personal-site] .annual-grid a.lifetime-purchase-button:active {
  transform: translateY(0) scale(.98);
}

@media (max-width: 700px) {
  body[data-site-archive] .annual-grid,
  body[data-personal-site] .annual-grid {
    grid-auto-rows: auto;
  }

  body[data-site-archive] .annual-grid a.lifetime-purchase-button,
  body[data-personal-site] .annual-grid a.lifetime-purchase-button {
    height: 58px;
    min-height: 58px;
  }
}

@media (max-width: 1023px) {
  body[data-site-archive] .pg-mobile-purchase-cta {
    display: inline-flex !important;
    min-width: 0;
    min-height: 42px;
    height: 42px;
    padding-inline: 15px;
    font-size: 12px;
  }

  body[data-personal-site] .personal-mobile-cta {
    display: inline-flex !important;
    min-width: 0;
    min-height: 42px;
    height: 42px;
    padding-inline: 15px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-site-archive] .pg-purchase-cta,
  body[data-personal-site] .personal-header-cta,
  body[data-personal-site] .personal-section-cta,
  body[data-site-archive] .annual-grid a.lifetime-purchase-button,
  body[data-personal-site] .annual-grid a.lifetime-purchase-button {
    transition: none;
  }
}
