/* Holykit Black Friday popup (home only). Built from Figma "Popup / Holykit Black Friday — Desktop".
   Colours are the Wedges light tokens used in that component. */
.bf {
  --bf-ink: #121217; --bf-mute: #6c6c89; --bf-canvas: #ffffff; --bf-gray: #f7f7f8;
  --bf-line: #ebebef; --bf-neutral: #d1d1db; --bf-purple: #7047eb; --bf-purple-hover: #5f37d9;
  --bf-green-bg: #eefbf4; --bf-green: #17663a;
  --bf-lh: 1.3333;
  position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--bf-ink);
}
.bf[hidden] { display: none; }
.bf__backdrop { position: absolute; inset: 0; background: rgb(18 18 23 / .55); opacity: 0; transition: opacity .24s ease; }
.bf__dialog {
  position: relative; display: grid; grid-template-columns: 400px 1fr; width: 880px; max-width: 100%; min-height: 560px;
  max-height: calc(100dvh - 32px); overflow: hidden; background: var(--bf-canvas); border-radius: 24px;
  box-shadow: 0 24px 64px rgb(18 18 23 / .22); outline: none;
  opacity: 0; transform: translateY(12px) scale(.97); transition: opacity .24s ease, transform .32s cubic-bezier(.2,.8,.2,1);
}
.bf.is-open .bf__backdrop { opacity: 1; }
.bf.is-open .bf__dialog { opacity: 1; transform: none; }

/* close */
.bf__close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: var(--bf-gray); color: var(--bf-mute); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.bf__close:hover { background: var(--bf-line); color: var(--bf-ink); }
.bf :focus-visible { outline: 2px solid var(--bf-purple); outline-offset: 3px; }
.bf__dialog:focus, .bf__dialog:focus-visible { outline: none; }

/* left: template stack + bundle price */
.bf__visual { position: relative; background: var(--bf-gray); overflow: hidden; }
.bf__stack { position: absolute; left: 84px; top: 126px; width: 232px; height: 250px; animation: bf-float 6s ease-in-out infinite; }
.bf__visual:hover .bf__stack { animation-play-state: paused; }
.bf__tpl {
  position: absolute; left: 0; top: 0; width: 232px; margin: 0; background: var(--bf-canvas); border: 1px solid var(--bf-line);
  border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px rgb(18 18 23 / .12);
  transform-origin: 50% 60%; backface-visibility: hidden; will-change: transform;
}
/* resting positions; JS animates between them with the Web Animations API */
.bf__tpl[data-pos="0"] { transform: none; z-index: 3; }
.bf__tpl[data-pos="1"] { transform: translate(-62px, -50px) rotate(7deg) scale(.97); z-index: 1; }
.bf__tpl[data-pos="2"] { transform: translate(73px, -80px) rotate(-6deg) scale(.97); z-index: 2; }
.bf__bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--bf-gray); font-size: 12px; line-height: 16px; color: var(--bf-mute); white-space: nowrap; }
.bf__bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--bf-neutral); flex: none; }
.bf__bar span { margin-left: 6px; overflow: hidden; text-overflow: ellipsis; }
.bf__tpl-body { padding: 12px; display: grid; gap: 8px; }
.bf__tpl img { width: 100%; height: 138px; object-fit: cover; object-position: top; border-radius: 10px; background: var(--bf-line); }
.bf__tpl b { font-size: 14px; line-height: 20px; font-weight: 600; }
.bf__tpl s { display: block; height: 6px; width: 150px; border-radius: 3px; background: var(--bf-line); text-decoration: none; }
.bf__tpl s + s { width: 110px; }

.bf__price { position: absolute; left: 40px; top: 390px; z-index: 4; width: 320px; padding: 20px; display: grid; gap: 12px;
  background: var(--bf-canvas); border: 1px solid var(--bf-line); border-radius: 20px; box-shadow: 0 14px 36px rgb(18 18 23 / .14); }
.bf__price-head { display: flex; align-items: baseline; gap: 8px; font-size: 16px; line-height: 24px; font-weight: 600; }
.bf__price-head span { font-size: 14px; font-weight: 400; color: var(--bf-mute); }
.bf__price-row { display: flex; align-items: center; gap: 10px; }
.bf__price-new { font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -.01em; }
.bf__price-old { font-size: 18px; line-height: 28px; color: var(--bf-mute); }
.bf__save { padding: 2px 8px; border-radius: 999px; background: var(--bf-green-bg); color: var(--bf-green); font-size: 12px; line-height: 20px; font-weight: 600; }

/* right: copy */
.bf__content { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 44px; overflow-y: auto; }
.bf__logo { width: 100px; height: auto; color: var(--bf-ink); }
.bf__eyebrow { align-self: flex-start; margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--bf-ink); color: #fff;
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bf__title { margin: 0; font-size: 36px; line-height: var(--bf-lh); font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.bf__body { margin: 0; font-size: 16px; line-height: 24px; color: var(--bf-mute); }

/* slot-machine digits on "$99" */
.bf__num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bf__digit { display: inline-block; height: calc(var(--bf-lh) * 1em); overflow: hidden; vertical-align: top; }
.bf__reel { display: block; }
.bf__reel { will-change: transform; }
.bf__reel span { display: block; height: calc(var(--bf-lh) * 1em); text-align: center; }
.bf__digit.is-spinning { -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }

/* coupon */
.bf__code { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border: 1.5px dashed var(--bf-neutral); border-radius: 12px; background: var(--bf-gray); }
.bf__code code { flex: 1; font: 700 18px/28px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--bf-ink); }
.bf__copy { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--bf-neutral); border-radius: 8px;
  background: var(--bf-canvas); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--bf-ink); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.bf__copy:hover { border-color: var(--bf-ink); }
.bf__copy.is-copied { background: var(--bf-green-bg); border-color: #b2eecc; color: var(--bf-green); }
.bf__copy svg { display: none; }
.bf__copy.is-copied svg { display: block; }

.bf__applied { display: flex; align-items: center; gap: 6px; margin: -6px 0 0; font-size: 13px; line-height: 18px; color: var(--bf-green); }
.bf__applied svg { flex: none; }

.bf__cta { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 24px; border-radius: 12px;
  background: var(--bf-purple); color: #fff; font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; transition: background-color .15s ease, transform .15s ease; }
.bf__cta:hover { background: var(--bf-purple-hover); }
.bf__cta:active { transform: scale(.98); }
.bf__micro { margin: 0; font-size: 12px; line-height: 16px; color: var(--bf-mute); }

@keyframes bf-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* tablet / mobile: stack the visual on top, drop the price card (the price is in the headline) */
@media (max-width: 860px) {
  .bf { padding: 12px; }
  .bf__dialog { grid-template-columns: 1fr; width: 480px; min-height: 0; max-height: calc(100dvh - 24px); overflow-y: auto; }
  .bf__visual { height: 220px; flex: none; }
  .bf__stack { left: 50%; top: 70px; margin-left: -120px; transform-origin: 50% 0; scale: .72; }
  .bf__price { display: none; }
  .bf__content { padding: 24px 24px 28px; gap: 12px; overflow: visible; }
  .bf__title { font-size: 28px; }
  .bf__body { font-size: 15px; line-height: 22px; }
}
@media (max-width: 380px) { .bf__title { font-size: 25px; } .bf__content { padding: 20px 18px 24px; } }

@media (prefers-reduced-motion: reduce) {
  .bf__stack { animation: none; }
  .bf__backdrop, .bf__dialog, .bf__tpl, .bf__cta, .bf__copy, .bf__close { transition: none; }
}
