/* Black Friday on /pricing (pricing.astro while the sale shows; the sale in
   src/data/black-friday.ts). The hero and the plans on a black stage of
   fluted glass lit red from the top, a light that follows the pointer, a
   −30% tag hung from the top, slashed yearly prices (Price.astro's `bf`) and
   the till that prints a plan's first year (Receipt.astro). Behaviour in
   pricing-bf.js. The red is the Black Friday bar's (black-friday.css). */
.pp--bf {
  --bf-red: #f0283c;
  --bf-red-deep: #c8102e;
  --bf-red-soft: #ff8c97;
  --bf-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --bf-paper: #f6f4ee;
  --bf-ink: #26262b;
}

/* ---------- the stage ---------- */
.pp--bf .pp-hero {
  isolation: isolate;
  overflow: hidden; overflow: clip;
  padding-top: 76px; padding-bottom: 88px;
  background: #000;
  color: #fff;
}
/* the glass lights the top of the stage only, and fades into the black the
   plans and the till stand on (a canvas as tall as the stage would spread
   the light thin and cost the GPU the whole height) */
.bf-stage__glass {
  position: absolute; top: 0; left: 0; z-index: 0;
  display: block; width: 100%; height: 980px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgb(0 0 0 / 0) 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgb(0 0 0 / 0) 100%);
  opacity: 0; transition: opacity 1.2s ease;
}
.bf-stage__glass.is-live { opacity: 1; }
/* the light the pointer carries */
.bf-stage__spot {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 20%), rgb(255 226 230 / .1) 0%, rgb(255 226 230 / .04) 35%, rgb(255 226 230 / 0) 70%);
  opacity: 0; transition: opacity .5s ease;
}
.pp-hero.is-lit .bf-stage__spot { opacity: 1; }

/* ---------- the nav on black, as the AI Assistant page's (assistant-night.css's
   .ax-body block), its accent the sale's red; HomeDesign's `night` gives it the
   white lockup ---------- */
.bf-body .nav { background: #000; border-bottom-color: rgb(255 255 255 / .085); }
.bf-body .nav__links,
.bf-body .nav__plain { color: rgb(255 255 255 / .82); }
.bf-body .nav__link:hover,
.bf-body .nav__plain:hover { color: #fff; }
.bf-body .nav__caret { color: rgb(255 255 255 / .45); }
.bf-body .nav__item.is-open > .nav__link,
.bf-body .nav__item.is-open .nav__caret { color: #fff; }
.bf-body .nav .btn--ghost { background: transparent; border-color: rgb(255 255 255 / .15); color: #fff; }
.bf-body .nav .btn--ghost:hover { background: rgb(255 255 255 / .07); }
.bf-body .nav .btn--primary { background: #fff; color: #000; }
.bf-body .nav .btn--primary:hover { background: #e6e6ea; }
.bf-body .mm {
  background: linear-gradient(180deg, #0a0a0c 0%, #060607 100%);
  border-bottom-color: rgb(255 255 255 / .085);
  box-shadow: 0 30px 50px -30px #000;
}
.bf-body .nav::after { background: rgb(0 0 0 / .5); }
.bf-body .mm-body { --mm-tint: rgb(255 255 255 / .06); }
.bf-body .mm-item:hover .mm-item__icon,
.bf-body .mm-link:hover .mm-link__icon { border-color: rgb(255 255 255 / .16); }
.bf-body .mm-eyebrow { color: rgb(255 255 255 / .42); }
.bf-body .mm-item__icon,
.bf-body .mm-link__icon { background: #121215; border-color: rgb(255 255 255 / .1); box-shadow: none; color: #ff8c97; }
.bf-body .mm-item__title,
.bf-body .mm-link { color: #fff; }
.bf-body .mm-item__desc { color: rgb(255 255 255 / .5); }
.bf-body .mm-tag { background: rgb(240 40 60 / .22); color: #ffc7cd; }
.bf-body .mm-strip,
.bf-body .mm-others { border-top-color: rgb(255 255 255 / .085); color: rgb(255 255 255 / .55); }
.bf-body .mm-strip__link { color: #fff; }
.bf-body .mm-strip__link:hover { color: #ff8c97; }
.bf-body .mm-strip__logos span { background: #121215; border-color: rgb(255 255 255 / .12); }
.bf-body .mm-go { color: rgb(255 255 255 / .4); }
.bf-body .mm-item--other:hover .mm-go { color: #fff; }
@media (max-width: 900px) {
  .bf-body .nav__links { background: #000; border-bottom-color: rgb(255 255 255 / .085); box-shadow: 0 20px 30px -20px #000; color: #fff; }
  .bf-body .nav__item.is-open > .nav__link,
  .bf-body .nav__item.is-open .nav__caret { color: #ff8c97; }
  .bf-body .mm { background: none; box-shadow: none; }
  .bf-body .nav__toggle { background: transparent; border-color: rgb(255 255 255 / .15); color: #fff; }
  .bf-body .nav__cta { border-top-color: rgb(255 255 255 / .085); }
}

/* ---------- the head on black ---------- */
.pp--bf .pp-hero .hero__head { position: relative; }
.bf-eyebrow {
  color: #ffd1d6;
  text-shadow: 0 0 12px rgb(255 77 94 / .9), 0 0 2px rgb(255 77 94 / .8);
}
.pp--bf .pp-hero .hero__title { color: #fff; max-width: 860px; }
.pp--bf .pp-hero .hero__title span {
  background: linear-gradient(95deg, #fff 0%, #ffc7cd 55%, #ff8c97 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
/* "Deal of the week" over the headline: the cards' neon tag */
.bf-week {
  --bf-tube: #ff6b78;
  display: flex; justify-content: center;
  margin: 0 auto 18px;
}
/* the headline the app's banner has, in its Outfit 300: three short lines
   (credits, then the heatmaps), narrow enough to clear the hanging tag */
.pp--bf .pp-hero .bf-week + .hero__title { max-width: 820px; }
.pp--bf .pp-leads { margin-top: 10px; font-size: 16px; color: rgb(255 255 255 / .6); }
.pp--bf .pp-leads__chip { background: rgb(255 255 255 / .1); color: #fff; }
.pp--bf .pp-trust { color: rgb(255 255 255 / .72); }
.pp--bf .pp-trust svg path { stroke: #ff6b78; }

/* ---------- the tag, hung from the top of the stage ---------- */
.pp--bf .hero__head > .bf-hang {
  position: absolute; top: -76px; right: 3%; z-index: 2;
  max-width: none; margin: 0;
  width: 104px;
  filter: drop-shadow(0 22px 26px rgb(240 40 60 / .4)) drop-shadow(0 6px 8px rgb(0 0 0 / .6));
  animation: bf-drop 1.1s .25s cubic-bezier(.3, 1.45, .55, 1) both;
}
.bf-hang__swing { transform-origin: 50% 0; will-change: transform; }
.bf-hang__string {
  position: relative; z-index: 1;
  display: block; width: 2px; height: 138px; margin: 0 auto;
  border-radius: 1px;
  background: linear-gradient(180deg, rgb(255 255 255 / .1) 0%, #b9bcc4 70%, #e4e6ea 100%);
}
.bf-hang__tag {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 104px; height: 128px; margin-top: -22px; padding-top: 20px;
  background:
    radial-gradient(120% 70% at 30% 0%, rgb(255 255 255 / .28) 0%, rgb(255 255 255 / 0) 60%),
    linear-gradient(165deg, #ff4d5e 0%, #e3182f 55%, #b10c24 100%);
  clip-path: polygon(24% 0, 76% 0, 100% 17%, 100% 100%, 0 100%, 0 17%);
  color: #fff;
  pointer-events: auto; cursor: grab;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.bf-hang.is-held .bf-hang__tag { cursor: grabbing; }
.bf-hang__tag::after {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px dashed rgb(255 255 255 / .38);
  clip-path: polygon(24% 0, 76% 0, 100% 17%, 100% 100%, 0 100%, 0 17%);
}
.bf-hang__hole {
  position: absolute; top: 15px; left: 50%;
  width: 13px; height: 13px; margin-left: -6.5px;
  border-radius: 50%;
  background: #120306;
  box-shadow: 0 0 0 3px #f1d2d6, inset 0 2px 3px rgb(0 0 0 / .8);
}
.bf-hang__tag b { font: 700 32px/1 var(--font-display); letter-spacing: -.03em; text-shadow: 0 2px 0 rgb(120 0 18 / .35); }
@keyframes bf-drop {
  from { transform: translateY(-120%); }
  to { transform: none; }
}

/* ---------- the toggle and the tray on black ---------- */
.pp--bf .pp-billing { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .12); }
.pp--bf .pp-billing button { color: rgb(255 255 255 / .62); }
.pp--bf .pp-billing button[aria-pressed="true"] { color: #0b0c0f; }
.pp--bf .pp-billing__thumb { background: #fff; }
.pp--bf .pp-billing button:focus-visible { outline-color: #fff; }
.bf-billing__save { background: rgb(240 40 60 / .14); color: var(--bf-red-deep); white-space: nowrap; }
.pp--bf .pp-billing button[aria-pressed="false"] .bf-billing__save { background: rgb(240 40 60 / .22); color: #ffb3ba; }
#plans { scroll-margin-top: calc(96px + var(--top-bar, 0px)); }

.pp--bf .pp-plans {
  background: rgb(255 255 255 / .06);
  border-color: rgb(255 255 255 / .1);
  box-shadow: 0 40px 80px -40px rgb(240 40 60 / .35);
}

/* the plans black on the stage, Grow in the sale's red (ring, badge,
   icons), with a white button and the stage's red fluted light behind its
   price and button (look "blackFriday", masked as pricing.css masks it) */
.pp--bf .pp-card {
  background: linear-gradient(180deg, #08080a 0%, #000 100%);
  border-color: rgb(255 107 120 / .18);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .05);
  color: #fff;
}
.pp--bf .pp-card.is-popular { background: #000; border-color: var(--bf-red); box-shadow: 0 0 0 1px var(--bf-red), 0 30px 70px -30px rgb(240 40 60 / .8); }
.pp--bf .pp-card.is-popular .pp-card__blurb { color: rgb(255 255 255 / .66); }
.pp--bf .pp-card.is-popular .pp-card__trial { color: rgb(255 255 255 / .6); }
.pp--bf .pp-card.is-popular .pp-card__badge { background: var(--bf-red); }
.pp--bf .pp-card.is-popular .pp-card__cta { background: #fff; color: #0b0c0f; box-shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 30px -12px rgb(240 40 60 / .9); }
.pp--bf .pp-card.is-popular .pp-card__cta:hover { background: #fff1f2; color: #0b0c0f; }
.pp--bf .pp-card.is-popular .pp-card__cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pp--bf .pp-card .pp-name { background: rgb(255 255 255 / .08); color: #fff; }
.pp--bf .pp-card .pp-card__blurb,
.pp--bf .pp-card .pp-price__unit,
.pp--bf .pp-card .pp-price__meta,
.pp--bf .pp-card .pp-card__lead { color: rgb(255 255 255 / .58); }
.pp--bf .pp-card .pp-price__amt { color: #fff; }
.pp--bf .pp-card .pp-price__meta s { color: rgb(255 255 255 / .34); }
.pp--bf .pp-card .bf-was { color: rgb(255 255 255 / .45); }
/* the first year's saving on the till's green screen (.bf-till__screen) */
.pp--bf .pp-card .bf-save {
  padding: 5px 8px; border-radius: 5px;
  background: #07140c;
  box-shadow: inset 0 1px 4px rgb(0 0 0 / .9), 0 1px 0 rgb(255 255 255 / .06);
  font: 500 11.5px/1 var(--bf-mono); letter-spacing: .06em; text-transform: uppercase;
  color: #73ffa6;
  text-shadow: 0 0 8px rgb(115 255 166 / .55);
}
.pp--bf .pp-card .bf-nudge { border-color: rgb(255 107 120 / .6); background: rgb(240 40 60 / .1); color: #ffb3ba; }
.pp--bf .pp-card .btn--outline { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .14); color: #fff; }
.pp--bf .pp-card .btn--outline:hover { background: rgb(255 255 255 / .11); }
.pp--bf .pp-card .btn--outline:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pp--bf .pp-card .pp-line { color: rgb(255 255 255 / .9); }
.pp--bf .pp-card .pp-line__ico { color: rgb(255 255 255 / .42); }
.pp--bf .pp-card.is-popular .pp-line__ico { color: #ff8c97; }
.pp--bf .pp-card .pp-line__note { color: rgb(255 255 255 / .45); }
.pp--bf .pp-card .pp-tip__label { text-decoration-color: rgb(255 255 255 / .3); }
.pp--bf .pp-card .pp-tip__box { background: #23232a; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 14px 30px -10px rgb(0 0 0 / .8); }

/* the sale's perk, first on Scale's and Enterprise's cards (blackFriday.heatmaps):
   a strip of the Black Friday bar, its neon sign over the line, the bar's
   red light at its foot (black-friday.css) */
.pp--bf .pp-card .bf-perk {
  --bf-tube: #ff6b78;
  /* a breath lighter than the black card, so the strip reads */
  /* no overflow clip: its tooltips rise out of it */
  position: relative; isolation: isolate;
  margin: -4px -10px 4px; padding: 12px 10px 12px;
  row-gap: 10px;
  border-radius: 11px;
  background:
    radial-gradient(70% 120% at 50% 135%, rgb(240 40 60 / .34) 0%, rgb(240 40 60 / 0) 70%),
    linear-gradient(180deg, #17171a 0%, #0a0a0c 100%);
  box-shadow: inset 0 0 0 1px rgb(255 107 120 / .22), inset 0 1px 0 rgb(255 255 255 / .05);
  color: #fff;
}
.pp--bf .pp-card .bf-perk::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit;
  background-image: var(--grain); background-size: 200px 200px;
  opacity: .12;
}
.bf-perk__sign {
  grid-column: 1 / -1; justify-self: start;
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px 0 9px;
  border: 1.5px solid var(--bf-tube); border-radius: 6px;
  font: 600 10px/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase;
  color: #fff4f5;
  text-shadow: 0 0 1px #fff, 0 0 5px #ff4d5e, 0 0 12px var(--bf-red), 0 0 22px rgb(240 40 60 / .7);
  box-shadow: 0 0 3px rgb(255 77 94 / .9), 0 0 12px rgb(240 40 60 / .55), inset 0 0 5px rgb(255 77 94 / .5), inset 0 0 10px rgb(240 40 60 / .28);
}
.pp--bf .pp-card .bf-perk .pp-line__ico { color: #ff8c97; }
.pp--bf .pp-card .bf-perk b { color: #fff; }
/* what the one add-on includes, under its line, each part with its
   definition: the tip spans the line, so it stays inside the card */
.bf-perk__parts {
  grid-column: 2; position: relative;
  margin-top: -6px;
  font-size: 13px; line-height: 19px; color: rgb(255 255 255 / .6);
}
/* the sale's bonus AI credits under each card's AI credits line
   (blackFriday.credits, yearly only): the app's green "+ 100 bonus" mark,
   in the till screen's green, on a line of its own (its display stays at
   one class, so pricing.css hides it on monthly) */
.bf-bonus { display: table; }
.pp--bf .pp-card .bf-bonus {
  margin-top: 5px; padding: 1px 7px;
  border-radius: 5px;
  background: rgb(115 255 166 / .12);
  font-size: 13px; font-weight: 600; line-height: 19px;
  color: #73ffa6;
  white-space: nowrap;
}
.pp--bf .pp-card .bf-perk .pp-tip__label { color: rgb(255 255 255 / .88); }
.pp--bf .pp-card .bf-perk .pp-tip { position: static; }
.pp--bf .pp-card .bf-perk .pp-tip__box { left: -8px; right: -8px; width: auto; max-width: none; }

/* the Black Friday Stack after the cards (bf-stack.ts's stackPromo), where
   10% off ClickFlare was: a card like them, the bar's red light at its foot,
   the copy and Build My Stack beside the four tools, each with the most it
   gets off (a total off its regular monthly price) */
.bf-stk {
  --bf-tube: #ff6b78;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px 56px; align-items: center;
  margin-top: 16px; padding: 34px 36px;
  border-radius: 16px;
  background:
    radial-gradient(60% 140% at 22% 130%, rgb(240 40 60 / .24) 0%, rgb(240 40 60 / 0) 70%),
    linear-gradient(180deg, #121214 0%, #08080a 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09);
  color: #fff;
}
.bf-stk__brand { display: flex; margin: 0; }
.bf-stk__title {
  margin: 18px 0 0;
  font: 300 34px/1.12 var(--font-display); letter-spacing: -.02em;
  color: #fff;
  text-wrap: balance;
}
.bf-stk__sub {
  margin: 12px 0 0; max-width: 480px;
  font: 400 15px/1.55 var(--font-ui); color: rgb(255 255 255 / .62);
  text-wrap: pretty;
}
.bf-stk__go { margin-top: 24px; background: var(--bf-red); color: #fff; box-shadow: 0 14px 34px -12px rgb(240 40 60 / .8); }
.bf-stk__go:hover { background: #d91a31; color: #fff; }
.bf-stk__go:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bf-stk__fine { margin: 12px 0 0; font: 400 13px/1.5 var(--font-ui); color: rgb(255 255 255 / .45); }
.bf-stk__tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bf-stk__tools li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 3px; align-items: center;
  padding: 14px;
  border-radius: 12px;
  background: rgb(255 255 255 / .035);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07);
}
.bf-stk__logo {
  grid-row: 1 / 3;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: #fff;
}
.bf-stk__logo img { display: block; width: 22px; height: 22px; }
.bf-stk__logo--ll { background: #0a0a0b; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); }
.bf-stk__logo svg { display: block; width: 11px; height: 18px; fill: #fff; }
.bf-stk__name { align-self: end; font: 500 15px/1.2 var(--font-ui); letter-spacing: -.01em; color: #fff; }
.bf-stk__role { grid-column: 2; align-self: start; font: 400 13px/1.2 var(--font-ui); color: rgb(255 255 255 / .5); }
.bf-stk__off {
  grid-column: 1 / -1; justify-self: start;
  margin-top: 10px; padding: 5px 8px;
  border-radius: 6px;
  background: rgb(240 40 60 / .16);
  font: 400 12.5px/1 var(--font-ui); color: #ffb3ba;
}
.bf-stk__off b { font-weight: 600; color: #fff; }
@media (max-width: 900px) {
  .bf-stk { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .bf-stk__title { font-size: 28px; }
}
@media (max-width: 480px) {
  .bf-stk__tools { grid-template-columns: minmax(0, 1fr); }
}

/* the credits strip, right under the cards, black like them */
.pp--bf .pp-credits {
  background: linear-gradient(180deg, #08080a 0%, #000 100%);
  border-color: rgb(255 107 120 / .18);
}
.pp--bf .pp-credits__title { color: #fff; }
.pp--bf .pp-credits__title svg { color: #8fa2ff; }
.pp--bf .pp-credits__list > div { border-left-color: rgb(255 255 255 / .1); }
.pp--bf .pp-credits dt { color: rgb(255 255 255 / .5); }
.pp--bf .pp-credits dd { color: #fff; }
.pp--bf .pp-credits dd a { color: #8fa2ff; }

/* ---------- slashed prices ---------- */
.pp-price--bf { flex-wrap: wrap; column-gap: 10px; }
.bf-was {
  position: relative;
  display: inline-block;
  font: 400 24px/1 var(--font-display); letter-spacing: -.02em;
  color: #9a9aa5;
  font-variant-numeric: tabular-nums;
}
.bf-was s { text-decoration: none; }
.bf-was__cut {
  position: absolute; left: -5px; top: 50%;
  width: calc(100% + 10px); height: 26px; margin-top: -14px;
  overflow: visible; pointer-events: none;
}
.bf-was__cut path {
  fill: none; stroke: var(--bf-red); stroke-width: 3.5; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1 1; stroke-dashoffset: 0;
}
/* with JS the slash waits to be drawn (pricing-bf.js) */
.pp-js .bf-was:not(.is-cut) .bf-was__cut path { stroke-dashoffset: 1; }
.bf-was.is-cut .bf-was__cut path { transition: stroke-dashoffset .38s cubic-bezier(.6, 0, .25, 1); }
.bf-now { font-variant-numeric: tabular-nums; }


.pp--bf .bf-save { background: rgb(240 40 60 / .1); color: var(--bf-red-deep); }

.bf-nudge {
  display: inline-block; margin-top: 6px; padding: 5px 8px;
  border: 1px dashed rgb(240 40 60 / .55); border-radius: 6px;
  background: rgb(240 40 60 / .06); color: var(--bf-red-deep);
  font: 500 12.5px/1.2 var(--font-ui); letter-spacing: -.004em; text-align: left;
  cursor: pointer;
  transition: background .2s ease;
}
.bf-nudge:hover { background: rgb(240 40 60 / .12); }
.bf-nudge:focus-visible { outline: 2px solid var(--bf-red); outline-offset: 2px; }

.pp-price--sm .bf-was { font-size: 14px; }
.pp-price--sm .bf-was__cut { height: 12px; margin-top: -7px; }
.pp-price--sm .bf-was__cut path { stroke-width: 2; }

/* ---------- the till ---------- */
.bf-counter {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px;
  align-items: start;
  max-width: 1040px; margin: 96px auto 0;
  text-align: left;
}
.bf-counter__copy { padding-top: 36px; }
.bf-counter__eyebrow {
  margin: 0;
  font: 500 12px/1 var(--font-ui); letter-spacing: .09em; text-transform: uppercase;
  color: #ff6b78;
}
.bf-counter__title {
  margin: 16px 0 0;
  font: 300 42px/1.12 var(--font-display); letter-spacing: -.012em;
  color: #fff;
  text-wrap: balance;
}
.bf-counter__title span { color: rgb(255 255 255 / .5); }
.bf-counter__sub {
  margin: 16px 0 0; max-width: 470px;
  font: 400 16px/1.55 var(--font-ui); letter-spacing: -.006em;
  color: rgb(255 255 255 / .62);
  text-wrap: pretty;
}
.bf-counter__pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.bf-counter__pick button {
  display: inline-flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 16px;
  border: 1px solid rgb(255 255 255 / .14); border-radius: 11px;
  background: rgb(255 255 255 / .05);
  font: 500 15px/1 var(--font-ui); letter-spacing: -.008em;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .25s ease, color .2s ease;
}
.bf-counter__pick button span { font-weight: 400; font-size: 13.5px; color: rgb(255 255 255 / .5); font-variant-numeric: tabular-nums; }
.bf-counter__pick button:hover { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .24); }
.bf-counter__pick button[aria-checked="true"] {
  background: #fff; border-color: #fff; color: #0b0c0f;
  box-shadow: 0 0 0 4px rgb(240 40 60 / .28), 0 12px 32px -10px rgb(240 40 60 / .7);
}
.bf-counter__pick button[aria-checked="true"] span { color: var(--bf-red-deep); font-weight: 500; }
.bf-counter__pick button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bf-counter__go { margin-top: 30px; }
.bf-counter__cta { height: 50px; padding-inline: 22px; border-radius: 10px; font-size: 16px; background: var(--bf-red); color: #fff; box-shadow: 0 14px 34px -12px rgb(240 40 60 / .8); }
.bf-counter__cta:hover { background: #d91a31; color: #fff; }
.bf-counter__cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bf-counter__cta[hidden] { display: none; }
.bf-counter__fine {
  margin: 18px 0 0; max-width: 450px;
  font: 400 13px/1.55 var(--font-ui);
  color: rgb(255 255 255 / .45);
}

.bf-till { position: relative; width: 100%; max-width: 380px; justify-self: end; }
.bf-till__body {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  height: 66px; padding: 0 18px 4px;
  border-radius: 16px 16px 10px 10px;
  background: linear-gradient(180deg, #2c2d33 0%, #1b1c20 70%, #141518 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), inset 0 -1px 0 rgb(0 0 0 / .6), 0 22px 36px -14px rgb(0 0 0 / .9);
}
.bf-till__led {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: #4a1219;
  box-shadow: inset 0 1px 1px rgb(0 0 0 / .6);
}
.bf-till.is-printing .bf-till__led { background: #ff4d5e; box-shadow: 0 0 10px #ff4d5e; animation: bf-blink .24s steps(2, end) infinite; }
.bf-till__screen {
  flex: 1; min-width: 0; height: 32px; padding: 0 12px;
  border-radius: 6px;
  background: #07140c;
  box-shadow: inset 0 1px 4px rgb(0 0 0 / .9), 0 1px 0 rgb(255 255 255 / .06);
  font: 500 13px/32px var(--bf-mono); letter-spacing: .08em;
  color: #73ffa6;
  text-shadow: 0 0 8px rgb(115 255 166 / .55);
  white-space: nowrap; overflow: hidden;
}
.bf-till__screen [hidden] { display: none; }
.bf-till__slot {
  position: absolute; left: 26px; right: 26px; bottom: -3px;
  height: 7px; border-radius: 4px;
  background: #020203;
  box-shadow: inset 0 2px 3px rgb(0 0 0 / .95), 0 1px 0 rgb(255 255 255 / .08);
}
.bf-till__out {
  position: relative; z-index: 1;
  display: grid;
  margin: 0 34px; padding-bottom: 50px;
  clip-path: inset(0 -80px -120px -80px);
  filter: drop-shadow(0 26px 22px rgb(0 0 0 / .55));
}
@keyframes bf-blink { 50% { opacity: .3; } }

/* the receipt */
.bf-receipt {
  --zz: 7px;
  grid-area: 1 / 1;
  position: relative;
  padding: 24px 22px calc(26px + var(--zz));
  background:
    linear-gradient(180deg, rgb(0 0 0 / .08) 0, rgb(0 0 0 / 0) 18px),
    var(--bf-paper);
  color: var(--bf-ink);
  font: 400 12.5px/1.6 var(--bf-mono);
  letter-spacing: -.01em;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--zz)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--zz)) var(--zz) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--zz)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--zz)) var(--zz) repeat-x;
}
.bf-receipt[hidden] { display: none; }
.bf-receipt p { margin: 0; }
.bf-receipt dl { margin: 0; }
.bf-receipt dt, .bf-receipt dd { margin: 0; }
.bf-receipt dl div { display: flex; justify-content: space-between; gap: 14px; }
.bf-receipt dd { white-space: nowrap; font-variant-numeric: tabular-nums; }

.bf-r__head { text-align: center; }
.bf-r__brand { font-weight: 700; font-size: 16px; letter-spacing: .32em; margin-right: -.32em !important; }
.bf-r__no { margin-top: 2px !important; font-size: 11.5px; color: #7a7a82; }
.bf-r__plan, .bf-r__sums, .bf-r__lines, .bf-r__foot { margin-top: 12px !important; padding-top: 12px; border-top: 1px dashed #b4b0a5; }
.bf-r__plan { display: flex; justify-content: space-between; gap: 12px; text-transform: uppercase; }
.bf-r__plan span { color: #7a7a82; }
.bf-r__sale { color: var(--bf-red-deep); font-weight: 700; }
.bf-r__total { margin-top: 12px; padding-top: 10px; border-top: 3px double var(--bf-ink); }
.bf-r__total dl div { font-size: 15px; font-weight: 700; }
.bf-r__total p { text-align: right; font-size: 11.5px; color: #7a7a82; }
.bf-r__saved { margin-top: 10px !important; }
.bf-r__saved div {
  padding: 6px 8px; margin-inline: -8px;
  background: var(--bf-ink); color: var(--bf-paper);
  font-weight: 700; text-transform: uppercase;
}
.bf-r__lines { list-style: none; padding-left: 0; }
.bf-r__lines li::before { content: "✓"; display: inline-block; width: 1.6em; }
.bf-r__lines .bf-r__perk { color: var(--bf-red-deep); font-weight: 700; }
.bf-r__foot { text-align: center; }
.bf-r__code { display: block; width: 100%; height: 36px; margin: 2px 0 8px; fill: var(--bf-ink); }
.bf-r__foot p { font-size: 11.5px; color: #7a7a82; }
.bf-r__foot .bf-r__bye { margin-top: 6px; font-size: 12.5px; color: var(--bf-ink); }

/* the stamp: red ink, pressed on once the receipt is out */
.bf-r__stamp {
  position: absolute; right: 10px; bottom: 146px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 12px 9px;
  border: 3px solid #d0142e; border-radius: 9px;
  box-shadow: inset 0 0 0 1.5px var(--bf-paper), inset 0 0 0 3px #d0142e;
  color: #d0142e;
  font: 700 9.5px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(-11deg) scale(var(--stamp, 1));
  opacity: .86;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.bf-r__stamp b { font: 800 28px/1 var(--font-display); letter-spacing: -.02em; text-transform: none; }

/* with JS: the receipt waits in the till until it prints, the stamp until it lands */
.pp-js .bf-till:not(.is-ready) .bf-receipt { transform: translateY(-101%); }
.pp-js .bf-receipt:not(.is-stamped) .bf-r__stamp { opacity: 0; transform: rotate(-11deg) scale(calc(var(--stamp, 1) * 1.9)); }
.bf-receipt.is-stamped .bf-r__stamp { transition: transform .26s cubic-bezier(.3, 1.6, .5, 1), opacity .1s ease; }
.bf-receipt.is-printing { animation: bf-feed 1.5s steps(18, end) both; }
.bf-receipt.is-torn { animation: bf-tear .5s cubic-bezier(.5, 0, .75, 0) both; }
@keyframes bf-feed {
  from { transform: translateY(-101%); }
  to { transform: none; }
}
@keyframes bf-tear {
  0% { transform: none; }
  18% { transform: translateY(-5px) rotate(-1.2deg); }
  100% { transform: translate(46px, 160px) rotate(11deg); opacity: 0; }
}

/* ---------- the rest of the stage ---------- */
.pp--bf .pp-credits { position: relative; }
.pp--bf .pp-jump a { color: #fff; }
.pp--bf .pp-jump a:hover { color: #ffb3ba; }

@media (max-width: 1100px) {
  .bf-counter { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  .pp--bf .hero__head > .bf-hang { right: 0; }
}
@media (max-width: 900px) {
  .pp--bf .pp-hero { padding-top: 64px; }
  .pp--bf .hero__head > .bf-hang { top: -64px; right: -6px; width: 84px; }
  .bf-hang__string { height: 96px; }
  .bf-hang__tag { width: 84px; height: 104px; padding-top: 18px; }
  .bf-hang__tag b { font-size: 26px; }
  .pp--bf .pp-hero .hero__title { padding-right: 64px; padding-left: 64px; }
  .bf-counter { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 72px; }
  .bf-counter__copy { padding-top: 0; text-align: center; }
  .bf-counter__sub, .bf-counter__fine { margin-inline: auto; }
  .bf-counter__pick { justify-content: center; }
  .bf-till { justify-self: center; }
}
@media (max-width: 600px) {
  .pp--bf .hero__head > .bf-hang { width: 68px; right: 0; }
  .bf-hang__string { height: 70px; }
  .bf-hang__tag { width: 68px; height: 84px; margin-top: -18px; padding-top: 16px; gap: 4px; }
  .bf-hang__hole { top: 11px; width: 10px; height: 10px; margin-left: -5px; }
  .bf-hang__tag b { font-size: 21px; }
  .pp--bf .pp-hero .hero__title { padding-right: 0; padding-left: 0; }
  /* the copy starts under the hanging tag, the tag beside "Deal of the week" */
  .pp--bf .pp-hero .bf-week { margin-top: 40px; }
  .bf-counter__title { font-size: 34px; }
  .bf-counter__pick button { height: 42px; padding: 0 13px; font-size: 14px; }
  .bf-till__out { margin: 0 22px; }
  .bf-receipt { --stamp: .8; padding-inline: 16px; font-size: 12px; }
  .bf-r__stamp { right: 0; bottom: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .pp--bf .hero__head > .bf-hang { animation: none; }
  .bf-stage__glass { transition: none; }
  .bf-receipt.is-printing, .bf-receipt.is-torn { animation: none; }
  .bf-receipt.is-stamped .bf-r__stamp, .bf-was.is-cut .bf-was__cut path { transition: none; }
}
