/* Shared by the home and public plans page. Prices remain supplied by catalog.js. */
.premium-site .pricing-grid {
  gap: 28px;
  align-items: stretch;
  padding-top: 12px;
}
.premium-site .plan {
  position: relative;
  isolation: isolate;
  padding: 40px;
  border: 1px solid #d5dff0;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 34px #193b6f09;
  transition:
    transform 0.35s,
    box-shadow 0.35s,
    border-color 0.35s;
}
.premium-site .plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: #ccd9f5;
  pointer-events: none;
}
.premium-site .plan .plan-top {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  min-height: 68px;
}
.premium-site .plan .plan-top h3 {
  font-size: 25px;
  letter-spacing: -0.045em;
  margin: 0;
}
.premium-site .plan .plan-top > span {
  font-size: 11px;
  letter-spacing: 0.01em;
  color: #536585;
}
.premium-site .plan > .price {
  position: relative;
  overflow: hidden;
  margin: 24px 0 0;
  padding: 26px 24px 28px;
  min-height: 122px;
  border-radius: 18px;
  background: #f0f4fc;
  color: #173a87;
  font-size: clamp(48px, 5.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1;
  box-shadow: inset 0 1px 0 #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.premium-site .plan > .price > span {
  display: inline-block;
  font-size: 20px;
  vertical-align: top;
  line-height: 1.9;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.premium-site .plan > .price small {
  font-size: 14px;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-left: 4px;
  color: #536585;
}
.premium-site .plan > .price::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 25%,
    #fff7 50%,
    transparent 75%
  );
  transform: translateX(-140%);
  opacity: 0;
}
.premium-site .plan > .price + p {
  min-height: 42px;
  font-size: 12px;
  line-height: 1.65;
  margin-top: 14px;
}
.premium-site .plan .button {
  margin-top: 20px;
  border-radius: 12px;
  min-height: 52px;
  font-size: 14px;
}
.premium-site .plan ul {
  border-top: 1px solid #e1e7f2;
  padding-top: 24px;
  font-size: 13px;
  gap: 14px;
}
.premium-site .plan li::before {
  font-weight: 800;
}
.premium-site .plan.monthly {
  background: linear-gradient(145deg, #204bb9, #153679 60%, #142d60);
  border-color: #3860c3;
  box-shadow: 0 18px 46px #23499e20;
}
.premium-site .plan.monthly::before {
  background: #91b4ff;
}
.premium-site .plan.monthly .plan-top > span {
  color: #c6d7ff;
}
.premium-site .plan.monthly > .price {
  color: #fff;
  background: #ffffff0d;
  box-shadow:
    inset 0 0 0 1px #ffffff26,
    inset 0 1px 0 #ffffff20;
}
.premium-site .plan.monthly > .price small {
  color: #d1dfff;
}
.premium-site .plan.monthly ul {
  border-color: #ffffff26;
}
.premium-site .plan > .plan-ribbon {
  top: -16px;
  left: 30px;
  padding: 8px 13px;
  border: 1px solid #c4d5fb;
  background: #e8efff;
  color: #1d4199;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.015em;
  border-radius: 8px;
  box-shadow: 0 4px 12px #152f6610;
  max-width: calc(100% - 60px);
}
.premium-site .plan[data-suggested="true"] {
  outline: 3px solid #88a9ff;
  outline-offset: 5px;
}
html[data-motion="active"] .plan[data-suggested="true"] {
  animation: plan-choice-settle 0.55s ease-out;
}
@keyframes plan-choice-settle {
  from {
    transform: translateY(4px);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes price-light-pass {
  0% {
    transform: translateX(-140%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}
@media (hover: hover) and (pointer: fine) {
  html[data-motion="active"] .premium-site .plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px #193b6f19;
    border-color: #829edb;
  }
  html[data-motion="active"] .plan:hover > .price::after,
  html[data-motion="active"] .plan:focus-within > .price::after {
    animation: price-light-pass 0.95s ease-out both;
  }
}
@media (max-width: 850px) {
  .premium-site .plan,
  .premium-site .plans-main .plan {
    padding: 30px;
  }
  .premium-site .plan > .price {
    padding: 24px 20px;
    min-height: 110px;
    font-size: 56px;
  }
  .premium-site .plan .plan-top {
    min-height: 64px;
  }
}
@media (max-width: 400px) {
  .premium-site .plan,
  .premium-site .plans-main .plan {
    padding: 25px;
  }
  .premium-site .plan > .price {
    font-size: 50px;
    padding: 24px 16px;
  }
  .premium-site .plan > .price small {
    font-size: 12px;
  }
  .premium-site .plan > .plan-ribbon {
    left: 22px;
    max-width: calc(100% - 44px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="active"]) .plan {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  html:not([data-motion="active"]) .plan > .price::after {
    animation: none !important;
  }
}
html[data-motion="paused"] .premium-site .plan {
  animation: none;
  transition: none;
  transform: none;
}
/* An explicit user opt-in also works when the OS defaults to reduced motion. */
html[data-motion="active"][data-motion-explicit="true"]
  .premium-site
  .plan[data-suggested="true"] {
  animation: plan-choice-settle 0.55s ease-out !important;
}
@media (hover: hover) and (pointer: fine) {
  html[data-motion="active"][data-motion-explicit="true"]
    .plan:hover
    > .price::after,
  html[data-motion="active"][data-motion-explicit="true"]
    .plan:focus-within
    > .price::after {
    animation: price-light-pass 0.95s ease-out both !important;
  }
}
