/*
 * Black Friday pricing page (partials/pricing-page-bf). Layout and colours are
 * inline in the markup (copied from the design); this file holds hover states,
 * animations, the yearly plan tiles, the FAQ and the small-screen layout.
 * Delete with the partial once the sale is over for good.
 */
body.ae-pricing-bg.ae-bf-on { background: #fff !important; background-image: none !important; }

.ae-bf { display: flex; flex-direction: column; align-items: center; padding: 6px 24px 70px; background: #fff; font-family: 'Inter', sans-serif; color: #1A1A1A; line-height: normal; }
.ae-bf, .ae-bf * { box-sizing: border-box; }
/* flex children default to min-width:auto, so the wide comparison table would
   stretch the whole column past the screen on phones */
.ae-bf { width: 100%; max-width: 100%; overflow-x: clip; }
.ae-bf > * { min-width: 0; max-width: 100%; }
.ae-bf h1, .ae-bf h2 { line-height: normal; }
.ae-bf [hidden] { display: none !important; }
.ae-bf-mont { font-family: 'Montserrat', 'Inter', sans-serif; }
.ae-bf-jak { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
.ae-bf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* hover states (the design's style-hover values) */
.ae-bf .bf-lift:hover { transform: translateY(-2px); }
.ae-bf .bf-bright5:hover { filter: brightness(1.05); }
.ae-bf .bf-bright6:hover { filter: brightness(1.06); }
.ae-bf .bf-bright15:hover { filter: brightness(1.15); }
.ae-bf a.ae-bf-btn:hover, .ae-bf a.ae-bf-btn:focus { color: inherit; }
.ae-bf a:focus-visible, .ae-bf button:focus-visible, .ae-bf [data-bf-faq]:focus-visible { outline: 2px solid #FBC901; outline-offset: 3px; }

/* moving shine on the gold buttons */
@keyframes ae-bf-shine { 0% { transform: translateX(-120px); } 60%, 100% { transform: translateX(420px); } }
@keyframes ae-bf-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.ae-bf-shine::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 46px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
  animation: ae-bf-shine 3.2s ease-in-out infinite; pointer-events: none;
}
.ae-bf-pulse { animation: ae-bf-pulse 1.4s infinite; }
@media (prefers-reduced-motion: reduce) {
  .ae-bf-shine::before, .ae-bf-pulse { animation: none; }
  .ae-bf .bf-lift:hover { transform: none; }
}

/* the featured (monthly) card sits a little larger, as in the design */
.ae-bf-card--featured { transform: scale(1.03); }

/* yearly plan tiles: Basic / Pro / Studio */
.ae-bf-tile {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff;
  border-radius: 12px; padding: 7px 0; cursor: pointer; font: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.ae-bf-tile:hover { border-color: rgba(251,201,1,.6); }
.ae-bf-tile__name { font-size: 10px; opacity: .6; }
.ae-bf-tile__price { font-size: 12px; font-weight: 700; }
.ae-bf-tile__price s { opacity: .55; font-weight: 500; }
.ae-bf-tile.is-on { border: 1.5px solid #FBC901; background: rgba(251,201,1,.12); color: #FBC901; }
.ae-bf-tile.is-on .ae-bf-tile__name { opacity: 1; font-weight: 700; }

/* FAQ */
.ae-bf-faq {
  background: #fff; border: 1.5px solid #E7E3F0; border-radius: 20px; padding: 19px 24px;
  display: flex; gap: 14px; cursor: pointer; transition: border-color .15s ease;
}
.ae-bf-faq:hover { border-color: #C9B8F2; }
.ae-bf-faq__a { display: none; }
.ae-bf-faq__icon {
  width: 27px; height: 27px; border-radius: 50%; background: #F5F1FE; color: #6A2ED6;
  display: flex; align-items: center; justify-content: center; flex: none; transition: transform .2s ease;
}
.ae-bf-faq.is-open { background: #FBF9FF; border-color: #DCD2F7; }
.ae-bf-faq.is-open .ae-bf-faq__a { display: block; }
.ae-bf-faq.is-open .ae-bf-faq__icon { background: #7A3BE8; color: #fff; transform: rotate(45deg); }

/* ------------------------------------------------------------ small screens */
@media (max-width: 1100px) {
  .ae-bf-deco--gift { display: none; }
}
@media (max-width: 900px) {
  .ae-bf-cards { grid-template-columns: minmax(0, 1fr) !important; max-width: 460px !important; gap: 28px !important; }
  .ae-bf-card--featured { transform: none; }
  .ae-bf-compare { overflow-x: auto !important; }
  .ae-bf-compare__in { min-width: 620px; }
}
@media (max-width: 760px) {
  .ae-bf { padding: 0 16px 56px; }
  .ae-bf-hero { padding: 36px 20px 40px !important; border-radius: 24px !important; }
  .ae-bf-h1 { font-size: 30px !important; }
  .ae-bf-hero .ae-bf-deco { width: 120px !important; opacity: .45; }
  .ae-bf-strip, .ae-bf-final { padding: 24px 20px !important; }
  .ae-bf-strip > div:last-child, .ae-bf-final > div:last-child { width: 100%; }
  .ae-bf-final .ae-bf-deco, .ae-bf-strip .ae-bf-deco { display: none; }
  .ae-bf h2 { font-size: 26px !important; }
}
