/* Black Friday (any Billing Point site-wide sale) on the home page: the
   promotional hero slide and sale prices on the plan cards.
   Loaded only while a sale is live (see CmsController.home). */

.wsHeroSlider { position: relative; }
.wsHeroSlider > [hidden],
[data-home-hero-slider] [hidden] { display: none !important; }

/* Slide switcher: a small segmented control. */
.wsHeroSliderNav {
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  background: #05070f;
}
.wsHeroSliderNav:not([hidden]) { display: flex; }
.wsHeroSliderNav button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.wsHeroSliderNav button:first-child { border-radius: 99px 0 0 99px; }
.wsHeroSliderNav button:last-child { border-radius: 0 99px 99px 0; border-left: 0; }
.wsHeroSliderNav button:hover { color: #fff; }
.wsHeroSliderNav button[aria-pressed="true"] { background: #fff; color: #05070f; border-color: #fff; }
.wsHeroSliderNav button:focus-visible { outline: 2px solid #7cc4ff; outline-offset: 2px; }

/* Hero */
.wsBfHero {
  --bf-ink: #05070f;
  --bf-accent: #7cc4ff;
  --bf-accent-2: #a78bfa;
  --bf-line: rgba(255, 255, 255, 0.09);
  --bf-muted: rgba(255, 255, 255, 0.62);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--bf-ink);
  padding: clamp(48px, 7vw, 96px) 0;
}
.wsBfSky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.wsBfGrid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bf-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bf-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.wsBfGlow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: wsBfDrift 16s ease-in-out infinite alternate;
}
.wsBfGlow.isOne { width: 560px; height: 420px; left: -8%; top: -30%; background: rgba(0, 102, 255, 0.45); }
.wsBfGlow.isTwo { width: 520px; height: 420px; right: -6%; bottom: -40%; background: rgba(139, 92, 246, 0.38); animation-duration: 20s; animation-direction: alternate-reverse; }

.wsBfInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--ws-home-gutter, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.wsBfCopy > * { animation: wsBfIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.wsBfCopy > *:nth-child(2) { animation-delay: 0.06s; }
.wsBfCopy > *:nth-child(3) { animation-delay: 0.12s; }
.wsBfCopy > *:nth-child(4) { animation-delay: 0.18s; }
.wsBfCopy > *:nth-child(5) { animation-delay: 0.24s; }

.wsBfKicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--bf-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
}
.wsBfLive {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
}
.wsBfLive::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #34d399;
  animation: wsBfPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.wsBfTitle { margin: 22px 0 28px; }
.wsBfTitleBig {
  display: flex;
  align-items: baseline;
  gap: 0.18em;
  font-size: clamp(64px, 10vw, 136px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.055em;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wsBfTitleOff {
  background: linear-gradient(100deg, var(--bf-accent) 0%, var(--bf-accent-2) 50%, var(--bf-accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: wsBfShine 6s linear infinite;
}
.wsBfTitleSub {
  display: block;
  margin-top: 18px;
  max-width: 30ch;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--bf-muted);
}

.wsBfCountdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 28px;
  padding: 6px 8px 6px 16px;
  border: 1px solid var(--bf-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.wsBfCountdownLabel {
  margin-right: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bf-muted);
}
.wsBfUnit {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
}
.wsBfUnit strong {
  display: inline-block;
  min-width: 2ch;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.wsBfUnit strong.isFlip { animation: wsBfFlip 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.wsBfUnit span { font-size: 12px; font-weight: 600; color: var(--bf-muted); }

.wsBfActions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 26px; }
.wsBfCta,
.wsBfGhost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.wsBfCta {
  background: #fff;
  color: var(--bf-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 12px 40px -10px rgba(124, 196, 255, 0.6);
}
.wsBfCta:hover, .wsBfCta:focus-visible { color: var(--bf-ink); transform: translateY(-1px); box-shadow: 0 0 0 1px #fff, 0 16px 48px -10px rgba(124, 196, 255, 0.85); }
.wsBfCta .fa-arrow-right, .wsBfPlanCta .fa-arrow-right { transition: translate 180ms ease; }
.wsBfCta:is(:hover, :focus-visible) .fa-arrow-right,
.wsBfPlanCta:is(:hover, :focus-visible) .fa-arrow-right { translate: 4px 0; }
.wsBfGhost { border: 1px solid var(--bf-line); color: #fff; background: transparent; }
.wsBfGhost:hover, .wsBfGhost:focus-visible { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.05); }
.wsBfCta:focus-visible, .wsBfGhost:focus-visible, .wsBfPlanCta:focus-visible { outline: 2px solid var(--bf-accent); outline-offset: 3px; }

.wsBfPerks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--bf-muted); }
.wsBfPerks li { display: inline-flex; align-items: center; gap: 8px; }
.wsBfPerks .fa-check { font-size: 12px; color: var(--bf-accent); }

/* Plan offers: glass cards with a gradient edge. */
.wsBfPlans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  min-width: 0;
}
.wsBfPlan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #111a30, #0a0f1d) padding-box,
    linear-gradient(160deg, rgba(124, 196, 255, 0.55), rgba(255, 255, 255, 0.06) 40%, rgba(167, 139, 250, 0.45)) border-box;
  border: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  animation: wsBfCardIn 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: translate 240ms ease, box-shadow 240ms ease;
}
.wsBfPlan:nth-child(2) { animation-delay: 120ms; }
.wsBfPlan:only-child { max-width: 420px; justify-self: end; width: 100%; }
.wsBfPlan:focus-within { translate: 0 -4px; box-shadow: 0 36px 70px -30px rgba(0, 102, 255, 0.55); }
@media (hover: hover) {
  .wsBfPlan:hover { translate: 0 -4px; box-shadow: 0 36px 70px -30px rgba(0, 102, 255, 0.55); }
}
.wsBfPlanTop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.wsBfPlan h3 { margin: 0; color: #fff; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.wsBfPlanBadge {
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bf-accent), var(--bf-accent-2));
  color: var(--bf-ink);
  font-size: 12px;
  font-weight: 800;
}
.wsBfPlanPrice { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; }
.wsBfPlanRegular { color: rgba(255, 255, 255, 0.45); font-size: 14px; text-decoration: line-through; }
.wsBfPlanNow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.wsBfPlanNow strong { white-space: nowrap; color: #fff; font-size: clamp(26px, 2.3vw, 34px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.wsBfPlanNow span { color: var(--bf-muted); font-size: 14px; }
.wsBfPlanNote { margin: 0 0 24px; color: rgba(255, 255, 255, 0.45); font-size: 12.5px; }
.wsBfPlanCta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  min-height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bf-line);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}
.wsBfPlanCta:hover, .wsBfPlanCta:focus-visible { background: #fff; color: var(--bf-ink); }

@media (min-width: 641px) {
  .wsReferenceHome .wsPricingGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
  }
}
/* Home pricing cards on sale: dark "deal" cards that match the hero. */
.wsReferenceHome .wsPricingSection .wsPlanCard:has(.wsPlanSaleTag) {
  --bf-ink: #05070f;
  --bf-accent: #7cc4ff;
  --bf-accent-2: #a78bfa;
  --bf-line: rgba(255, 255, 255, 0.09);
  --bf-muted: rgba(255, 255, 255, 0.62);
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: 30px 26px 26px;
  border: 1px solid transparent;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(0, 102, 255, 0.28), transparent 55%) padding-box,
    linear-gradient(180deg, #111a30, #070b16) padding-box,
    linear-gradient(160deg, rgba(124, 196, 255, 0.7), rgba(255, 255, 255, 0.08) 45%, rgba(167, 139, 250, 0.6)) border-box;
  box-shadow: 0 30px 60px -28px rgba(5, 7, 15, 0.75);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wsReferenceHome .wsPricingSection .wsPlanCard.isPopular:has(.wsPlanSaleTag) {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(139, 92, 246, 0.32), transparent 55%) padding-box,
    linear-gradient(180deg, #141a36, #080b18) padding-box,
    linear-gradient(160deg, #7cc4ff, rgba(255, 255, 255, 0.1) 45%, #a78bfa) border-box;
  box-shadow: 0 34px 70px -26px rgba(76, 58, 200, 0.55);
}
.wsReferenceHome .wsPricingSection .wsPlanCard:has(.wsPlanSaleTag):is(:hover, :focus-within) {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 40px 80px -30px rgba(0, 102, 255, 0.6);
}
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsPopularTag {
  background: linear-gradient(90deg, var(--bf-accent), var(--bf-accent-2));
  color: var(--bf-ink);
  font-weight: 800;
  box-shadow: 0 6px 20px -6px rgba(167, 139, 250, 0.7);
}
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsPlanIconWrap {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bf-line);
  color: var(--bf-accent);
}
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsPlanName { color: #fff; letter-spacing: -0.01em; }
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsPlanDesc { color: var(--bf-muted); }
.wsReferenceHome .wsPlanCard .wsPlanSaleTag {
  gap: 7px;
  margin: 0 0 16px;
  padding: 5px 12px;
  background: linear-gradient(90deg, var(--bf-accent), var(--bf-accent-2));
  color: var(--bf-ink);
  font-size: 11px;
  letter-spacing: 0.08em;
  animation: wsBfTagGlow 2.4s ease-in-out infinite;
}
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsPlanPriceBlock { align-items: baseline; gap: 4px 8px; }
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsPriceFrom { color: var(--bf-muted); }
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsPriceWas {
  margin-right: 2px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.42);
  text-decoration-color: rgba(167, 139, 250, 0.9);
  text-decoration-thickness: 2px;
}
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsCurrency { color: var(--bf-muted); font-weight: 700; }
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsPrice {
  font-size: clamp(36px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsPeriod { color: var(--bf-muted); }
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsPlanRenews { color: rgba(255, 255, 255, 0.5); border-bottom-color: var(--bf-line); }
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsPlanFeatures li { color: rgba(255, 255, 255, 0.82); }
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsCheckIcon { color: var(--bf-accent); }
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsPlanBtn {
  border: 1px solid var(--bf-line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsPlanBtn.isSolid,
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsPlanBtn:is(:hover, :focus-visible) {
  border-color: #fff;
  background: #fff;
  color: var(--bf-ink);
  box-shadow: 0 12px 34px -10px rgba(124, 196, 255, 0.7);
}
.wsReferenceHome .wsPlanCard:has(.wsPlanSaleTag) .wsPlanBtn:focus-visible { outline: 2px solid var(--bf-accent); outline-offset: 3px; }
@keyframes wsBfTagGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.55); } 50% { box-shadow: 0 0 0 6px rgba(167, 139, 250, 0); } }

@keyframes wsBfCardIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes wsBfDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 30px) scale(1.12); } }
@keyframes wsBfPing { 75%, 100% { transform: scale(2.4); opacity: 0; } }
@keyframes wsBfIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes wsBfShine { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@keyframes wsBfFlip { 0% { transform: translateY(-40%); opacity: 0; } 100% { transform: none; opacity: 1; } }

@media (max-width: 900px) {
  .wsBfInner { grid-template-columns: minmax(0, 1fr); }
  .wsBfPlan:only-child { justify-self: stretch; max-width: none; }
}
@media (max-width: 480px) {
  .wsBfCountdown { padding-left: 10px; }
  .wsBfCountdownLabel { display: none; }
  .wsBfUnit strong { font-size: 19px; }
  .wsBfActions > a { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .wsBfGlow, .wsBfLive::after, .wsBfCopy > *, .wsBfTitleOff, .wsBfUnit strong.isFlip, .wsBfPlan,
  .wsReferenceHome .wsPlanCard .wsPlanSaleTag { animation: none; }
  .wsReferenceHome .wsPricingSection .wsPlanCard:has(.wsPlanSaleTag) { transition: none; transform: none !important; }
  .wsBfCta, .wsBfPlan, .wsBfCta .fa-arrow-right, .wsBfPlanCta .fa-arrow-right { transition: none; translate: none !important; transform: none !important; }
}

/* Yearly-only sale: a note in place of the Monthly / Yearly switch. */
.wsReferenceHome .wsBillingSaleNote {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 20px;
  border-radius: 999px;
  background: #05070f;
  border: 1px solid rgba(124, 196, 255, 0.35);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 12px 30px -14px rgba(0, 102, 255, 0.6);
}
.wsReferenceHome .wsBillingSaleNote .fa-bolt { color: #7cc4ff; }
@media (max-width: 540px) {
  .wsReferenceHome .wsBillingSaleNote { justify-self: stretch; justify-content: center; text-align: center; font-size: 13.5px; }
}
