﻿/* Black Friday promo, scene 2. assets/promo.js builds the stage (.bfp) and plays it once per
   browser session, between the logo intro (scene 1) and the form (scene 3).
   If the scripts never run, only the cover below applies, and it lifts by itself at 9 s. */

html.bf-promo-pre::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 44;
  background: #000;
  animation: bfp-gone 0s 9s forwards;
}
@keyframes bfp-gone { to { visibility: hidden; } }
html.bf-promo-on { overflow: hidden; }
html.bf-promo-on .site-header { background: transparent; box-shadow: none; }

.bfp {
  position: fixed;
  inset: 0;
  z-index: 45;              /* under the header (50), so the intro's logo lands on a visible header */
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .92;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
  animation: bfp-gone 0s 30s forwards;   /* backstop */
}
.bfp * { box-sizing: border-box; }
.bfp__bg { position: absolute; inset: 0; background: #000; }

/* progress line under the header, and the buttons */
.bfp__bar {
  position: absolute;
  left: 0; right: 0;
  top: var(--header-h);
  height: 3px;
  background: rgba(255, 255, 255, .14);
  z-index: 6;
}
.bfp__bar i {
  position: absolute; inset: 0;
  background: var(--bf-yellow);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.bfp__skip {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 7;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: 700 .875rem/1 var(--font-body);
  letter-spacing: .02em;
  cursor: pointer;
}
.bfp__skip:hover { border-color: var(--bf-yellow); color: var(--bf-yellow); }
.bfp__terms {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(22px, env(safe-area-inset-bottom));
  right: 170px;
  z-index: 6;
  margin: 0;
  font: 400 .6875rem/1.35 var(--font-body);
  text-transform: none;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .7);
}
.bfp.is-yellow .bfp__terms { color: rgba(0, 0, 0, .7); }
.bfp.is-yellow .bfp__skip { color: #000; border-color: rgba(0, 0, 0, .5); background: rgba(253, 232, 0, .6); }

/* the yellow flood that wipes between beats, on the logo's italic slant */
.bfp__flood {
  position: absolute;
  top: 0; bottom: 0;
  left: -40%; right: -40%;
  background: var(--bf-yellow);
  transform: translateX(-200%);   /* promo.js takes over: skewX(-10deg), xPercent */
  z-index: 1;
}
.bfp__flood::after {     /* black blade on its trailing edge */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 10px;
  background: #000;
}

/* speed dashes, as in the logo */
.bfp__dashes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bfp__dash {
  position: absolute;
  height: clamp(10px, 2.2vw, 18px);
  width: 34vw;
  background: var(--bf-yellow);
  transform: skewX(-24deg);
  opacity: 0;
}
.bfp__dash--red { background: #e03c10; }

/* every beat is a centred column */
.bfp__beat {
  position: absolute;
  inset: calc(var(--header-h) + 24px) 0 90px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  text-align: center;
  visibility: hidden;
}
.bfp__kicker {
  font: 800 clamp(.8125rem, .7rem + .6vw, 1.125rem)/1 var(--font-body);
  letter-spacing: .32em;
  margin-right: -.32em;
}
.bfp__line { display: block; overflow: hidden; padding: .06em .1em; margin: -.06em 0; }
.bfp__ch { display: inline-block; will-change: transform; }
.bfp__sub {
  max-width: 30ch;
  font: 700 clamp(1rem, .9rem + .6vw, 1.375rem)/1.3 var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.bfp__hl { color: var(--bf-yellow); }

/* beat 1: BLACK FRIDAY */
.bfp__mega { font-size: clamp(3.4rem, 1rem + 13vw, 10rem); transform: skewX(-8deg); }
.bfp__date {
  display: inline-block;
  padding: .28em .6em .22em;
  background: var(--bf-yellow);
  color: #000;
  font-size: clamp(1.75rem, 1.2rem + 3vw, 3.25rem);
  transform: skewX(-10deg);
}

/* beat 2: RM11 on yellow */
.bfp__beat--fee { color: #000; }
.bfp__price { display: flex; align-items: flex-start; justify-content: center; font-size: clamp(7rem, 3rem + 24vw, 17rem); line-height: .84; transform: skewX(-8deg); }
.bfp__rm { font-size: .3em; margin: .2em .06em 0 0; }
.bfp__reel { display: inline-block; height: .84em; overflow: hidden; }
.bfp__strip { display: block; }
.bfp__strip span { display: block; height: .84em; }

/* beat 3: pay 12, train 13 */
.bfp__twin { font-size: clamp(3rem, 1.6rem + 8vw, 6.5rem); transform: skewX(-8deg); }
.bfp__hexes { position: relative; width: min(78vw, 360px); aspect-ratio: 360 / 196; margin: 6px 0; }
.bfp__hexes svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bfp__hex { fill: transparent; stroke: rgba(255, 255, 255, .35); stroke-width: 2; transform-box: fill-box; transform-origin: 50% 50%; }
.bfp__hex.is-free { stroke: var(--bf-yellow); }
.bfp__free {
  font: 800 13px/1 var(--font-body);
  letter-spacing: .14em;
  fill: #000;
  text-anchor: middle;
  dominant-baseline: central;
}

/* beat 4: 15% off PT, with faces */
.bfp__pct { font-size: clamp(5.5rem, 2.4rem + 18vw, 13rem); color: var(--bf-yellow); transform: skewX(-8deg); }
.bfp__pct small { font-size: .42em; }
.bfp__pt { font-size: clamp(1.5rem, 1rem + 3vw, 2.75rem); }
.bfp__faces { display: flex; justify-content: center; gap: 0; margin: 4px 0 6px; }
.bfp__face {
  width: clamp(92px, 26vw, 150px);
  aspect-ratio: 1 / 1.1547;
  margin: 0 -6px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--bf-yellow);
  overflow: hidden;
}
.bfp__face:nth-child(2) { transform: translateY(18%); }
.bfp__face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

/* beat 5: credit card */
.bfp__card {
  position: relative;
  width: min(74vw, 330px);
  aspect-ratio: 1.586;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d1d1d, #050505 60%, #222);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .18), 0 30px 60px rgba(0, 0, 0, .6);
  text-align: left;
  transform-style: preserve-3d;
}
.bfp__chip {
  position: absolute; left: 9%; top: 26%;
  width: 15%; aspect-ratio: 1.3;
  border-radius: 5px;
  background: var(--bf-yellow);
}
.bfp__cardtxt {
  position: absolute; left: 9%; bottom: 13%;
  font-size: clamp(1.75rem, 1.2rem + 3vw, 2.6rem);
}
.bfp__cardtxt small { display: block; font: 700 .6875rem/1 var(--font-body); letter-spacing: .2em; color: rgba(255, 255, 255, .6); margin-bottom: 6px; }
.bfp__cardB { position: absolute; right: 8%; top: 14%; width: 15%; }
.bfp__cardB path { fill: var(--bf-yellow); }

/* beat 6: try it free, then the hexagon becomes the form */
.bfp__try { font-size: clamp(3.5rem, 1.8rem + 10vw, 8rem); transform: skewX(-8deg); }
/* the hexagon full stop the camera dives into */
.bfp__dot {
  display: inline-block;
  width: .3em;
  height: .346em;
  margin-left: .06em;
  background: var(--bf-yellow);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  will-change: transform;
}
/* the speed-dash strips that break the yellow and uncover the form */
.bfp__wipe { position: absolute; inset: -2px 0; z-index: 2; display: flex; flex-direction: column; pointer-events: none; }
.bfp__wipe i {
  position: relative;
  flex: 1 1 0;
  margin: 0 -30%;
  margin-bottom: -1px;
  background: var(--bf-yellow);
  will-change: transform;
}
.bfp__wipe i::before {   /* a black blade on each trailing edge, as on the logo's dashes */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 7px;
  background: #000;
}
.bfp__wipe i:nth-child(5) { background: linear-gradient(var(--bf-yellow) 38%, #e03c10 38% 62%, var(--bf-yellow) 62%); }   /* one red dash, as in the logo */
.bfp__ink {
  position: fixed;
  z-index: 3;
  display: none;
  height: 3px;
  background: var(--bf-yellow);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.bfp__burst { position: absolute; inset: 0; z-index: 4; pointer-events: none; }

/* the form's own entrance after the morph */
html.bf-promo-land .trial__main .form > * { opacity: 0; }

/* static offer card on the page: for anyone who skipped, or has reduced motion */
.bf-offer {
  position: relative;
  margin: 0 0 28px;
  padding: 20px 20px 18px;
  background: var(--bf-yellow);
  color: #000;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.bf-offer__kicker { margin: 0 0 6px; font: 800 .75rem/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase; }
.bf-offer__title { margin: 0 0 12px; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); color: #000; }
.bf-offer__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-weight: 700; }
.bf-offer__list li { display: flex; gap: 10px; align-items: baseline; }
.bf-offer__list b { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; min-width: 4.6em; }
.bf-offer__terms { margin: 0 0 10px; font-size: .75rem; line-height: 1.4; color: rgba(0, 0, 0, .78); }
.bf-offer__replay {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1.5px solid #000;
  border-radius: 999px;
  color: #000;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
}
.bf-offer__replay:hover { background: #000; color: var(--bf-yellow); }

@media (prefers-reduced-motion: reduce) {
  .bfp, html.bf-promo-pre::after { display: none; }
  html.bf-promo-land .trial__main .form > * { opacity: 1; }
}
@media (min-width: 900px) {
  .bfp__terms { right: 240px; font-size: .75rem; }
}

/* hero kicker on the page */
.bf-hero-kicker { display: inline-block; margin: 0 0 12px; padding: 6px 12px 5px; background: var(--bf-yellow); color: #000; font: 800 .8125rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; transform: skewX(-10deg); }

