/* Shared pricing plans UI — used on /pricing and homepage */

@media (prefers-reduced-motion: reduce) {
  .pricing-reveal,
  .pricing-card,
  .billing-glider,
  .odometer-digit-strip {
    animation: none !important;
    transition: none !important;
  }
}

.pricing-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.pricing-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.pricing-card {
  min-height: 620px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease,
              box-shadow 0.45s ease;
}
@media (min-width: 1024px) {
  .pricing-card { min-height: 680px; }
  .pricing-card--popular { min-height: 720px; }
}
.pricing-card:hover { transform: translateY(-6px); }
.pricing-card--popular:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(0, 123, 255, 0.35);
}

.billing-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border-radius: 9999px;
  background: rgba(13, 17, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.billing-glider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: 0;
  border-radius: 9999px;
  background: #007BFF;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.35);
  pointer-events: none;
}
.billing-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #CCCCCC;
  transition: color 0.35s ease;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.billing-tab.is-active { color: #fff; }

/* High-contrast Save badge — lime on dark/blue so it stays readable */
.billing-save {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #052e16 !important;
  background: #a3e635 !important;
  border: 1px solid #ecfccb;
  padding: 0.22rem 0.55rem;
  border-radius: 9999px;
  box-shadow: 0 0 0 1px rgba(163, 230, 53, 0.55), 0 4px 14px rgba(163, 230, 53, 0.45);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              background-color 0.35s ease;
}
.billing-switch.is-yearly .billing-save {
  transform: scale(1.08);
  background: #bef264 !important;
  box-shadow: 0 0 0 1px rgba(190, 242, 100, 0.85), 0 6px 18px rgba(163, 230, 53, 0.55);
}

/* Clip the scrolling digit strip tightly — prevents ghost digits below the price */
.price-amount {
  display: inline-block;
  line-height: 1 !important;
  overflow: hidden;
  vertical-align: bottom;
}
.price-amount .odometer {
  display: inline-flex;
  align-items: flex-end;
  height: 1em;
  line-height: 1;
  overflow: hidden;
}
.price-amount .odometer-prefix {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  display: inline-block;
  height: 1em;
}
.price-amount .odometer-digit {
  display: inline-block;
  height: 1em !important;
  max-height: 1em;
  line-height: 1 !important;
  overflow: hidden;
  clip-path: inset(0);
  position: relative;
  width: 0.65em;
  vertical-align: bottom;
  text-shadow: none;
}
.price-amount .odometer-digit-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.price-amount .odometer-digit-strip > span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1em;
  min-height: 1em;
  max-height: 1em;
  line-height: 1;
  overflow: hidden;
  text-align: center;
}
.price-meta {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.price-meta.is-out {
  opacity: 0;
  transform: translateY(6px);
}

.pricing-compare-wrap {
  border: 2px solid #ffffff !important;
}
