/* =========================================================================
   GFTEAM APEX — Black Friday sale (shared by index.html + membership.html)
   Loaded AFTER styles.css. The site is black & white; the sale borrows the
   one red conversion color from the Events page and uses it ONLY for sale
   urgency: the top bar, the countdown, the deal tags and the sale buttons.

   HOW THE SALE SWITCHES OFF
   The sale ends Cyber Monday, Nov 30, 2026 at 11:59 PM Central. From that
   moment <html> gets the class "bf-over" (inline script in each page's head,
   and membership.js when the clock hits zero with the page open):
     [data-bf]       sale-only content: hidden once the sale is over
     [data-bf-over]  after-sale content: hidden until the sale is over
   To retire the sale for good, delete the [data-bf] blocks and this file.
   ========================================================================= */

:root {
  --bf-red:      #E11D2E;  /* display type, big blocks, dots */
  --bf-red-ink:  #C8102E;  /* behind small white text (passes contrast) */
  --bf-red-deep: #A50D1E;  /* hover */
  --bf-red-glow: rgba(225, 29, 46, 0.45);
  --bf-bar-h:    44px;
  /* hand-drawn marker, used ONLY for the "spots left" callouts */
  --bf-hand: 'Permanent Marker', 'Marker Felt', 'Comic Sans MS', cursive;
  /* a marker ring drawn around a callout; stretches to fit its text */
  --bf-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M14 36 C8 16 56 5 108 5 C160 5 196 15 191 31 C186 50 132 57 86 55 C40 53 6 47 13 27 C18 14 52 8 84 7' fill='none' stroke='%23E11D2E' stroke-width='2.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ SALE ON / OFF */
html:not(.bf-over) [data-bf-over] { display: none !important; }
.bf-over [data-bf] { display: none !important; }

/* ------------------------------------------------------------------ BUTTON */
.btn--bf {
  background: var(--bf-red-ink); color: #fff;
  box-shadow: inset 0 0 0 1px var(--bf-red-ink);
  font-weight: 600;
}
.btn--bf:hover { background: var(--bf-red-deep); color: #fff; box-shadow: inset 0 0 0 1px var(--bf-red-deep); }
.btn--bf.btn--xl { padding: 24px 46px; font-size: 15px; }
.btn--pulse-bf { animation: bf-pulse 2.6s var(--ease) infinite; }
@keyframes bf-pulse {
  0%   { box-shadow: inset 0 0 0 1px var(--bf-red-ink), 0 0 0 0 var(--bf-red-glow); }
  70%  { box-shadow: inset 0 0 0 1px var(--bf-red-ink), 0 0 0 18px rgba(225, 29, 46, 0); }
  100% { box-shadow: inset 0 0 0 1px var(--bf-red-ink), 0 0 0 0 rgba(225, 29, 46, 0); }
}

/* --------------------------------------------------------------- COUNTDOWN */
/* membership.js fills every [data-bf-count] with four units. */
.bf-cd { display: inline-flex; align-items: flex-start; gap: clamp(10px, 1.6vw, 22px); font-variant-numeric: tabular-nums; }
.bf-cd__u { display: flex; flex-direction: column; align-items: center; }
.bf-cd__n {
  font-family: var(--font-display); font-weight: 400; line-height: 0.9;
  font-size: clamp(44px, 5.4vw, 72px); min-width: 1.5ch; text-align: center;
}
.bf-cd__l {
  margin-top: 8px; font-style: normal;
  font-family: var(--font-heading); font-weight: 500; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.2em; opacity: .7;
}
.bf-cd__l::after { content: attr(data-l); }

/* one-line version for the top bar */
.bf-cd--inline { align-items: baseline; gap: 8px; }
.bf-cd--inline .bf-cd__u { flex-direction: row; align-items: baseline; gap: 2px; }
.bf-cd--inline .bf-cd__n { font-size: 21px; line-height: 1; min-width: 0; }
.bf-cd--inline .bf-cd__l { margin-top: 0; font-size: 10px; letter-spacing: 0.06em; opacity: .85; }
.bf-cd--inline .bf-cd__l::after { content: attr(data-s); }

/* boxed version: each unit on its own tile */
.bf-cd--box { gap: 6px; }
.bf-cd--box .bf-cd__u { background: rgba(255,255,255,.08); padding: 14px 8px 10px; min-width: clamp(58px, 7vw, 84px); }

/* ----------------------------------------------------------------- TOP BAR */
/* Pinned above the nav on every page that loads this file. */
.bf-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1050; height: var(--bf-bar-h);
  display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 26px);
  padding-inline: 14px; white-space: nowrap; overflow: hidden;
  background: var(--bf-red-ink); color: #fff;
  font-family: var(--font-heading); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.16em; line-height: 1;
  transition: background var(--dur) var(--ease);
}
.bf-bar:hover { background: var(--bf-red-deep); }
.bf-bar:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.bf-bar__tag { display: inline-flex; align-items: center; gap: 9px; }
.bf-bar__dot { width: 7px; height: 7px; background: #fff; flex: none; animation: pulse-dot 2.4s var(--ease) infinite; }
.bf-bar__msg { font-weight: 400; opacity: .9; }
.bf-bar__cta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; color: #000; font-size: 11px; }
.bf-bar__arrow { transition: transform var(--dur) var(--ease); }
.bf-bar:hover .bf-bar__arrow { transform: translateX(4px); }

/* make room for the bar while the sale is live */
html:not(.bf-over) .nav { top: var(--bf-bar-h); }
html:not(.bf-over) .hero__inner { padding-top: calc(128px + var(--bf-bar-h)); }

/* -------------------------------------------------------------------- TAPE */
/* A strip of sale tape between two sections. --tape-a / --tape-b are the
   colors of the sections above and below, so the tilt never shows a gap. */
.bf-tape-wrap {
  position: relative; z-index: 3; overflow: hidden; padding-block: 16px;
  background: linear-gradient(to bottom, var(--tape-a, #000) 50%, var(--tape-b, #fff) 50%);
}
.bf-tape {
  width: 106%; margin-left: -3%; transform: rotate(-1.1deg);
  background: var(--bf-red); color: #000; overflow: hidden;
  box-shadow: 0 14px 34px -18px rgba(0,0,0,.6);
}
.bf-tape__track {
  display: flex; width: max-content; padding-block: 13px;
  font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1;
  letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
  animation: bf-tape 38s linear infinite;
}
.bf-tape__track span { padding-inline: 18px; }
.bf-tape__track .bf-tape__alt { color: #fff; }
@keyframes bf-tape { to { transform: translateX(-50%); } }

/* -------------------------------------------------------- DEAL TAGS ON CARDS */
.bf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--s-3); }
.bf-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.18em; line-height: 1; padding: 8px 11px;
  background: var(--bf-red-ink); color: #fff;
}
/* "Only 5 Available" / "Limited Spots": written in marker and ringed, so it
   reads like someone circled it by hand. Deliberately the one un-tidy thing
   on the card. */
.bf-spots {
  display: inline-block; margin-left: 6px;
  font-family: var(--bf-hand); font-weight: 400; font-size: 21px; line-height: 1;
  letter-spacing: 0.01em; white-space: nowrap;
  padding: 13px 22px 12px; transform: rotate(-3deg);
  color: #000; /* black ink, red ring */
  background: var(--bf-ring) center / 100% 100% no-repeat;
}
.plan--dark .bf-spots,
.plan--onDark .bf-spots { color: #fff; }
.bf-spots__dot { display: none; }
.bf-spots.is-soldout { opacity: .55; background: none; text-decoration: line-through; }

/* deadline line under a sale button */
.bf-deadline {
  margin-top: 14px; text-align: center;
  font-family: var(--font-heading); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em; line-height: 1.5; color: var(--bf-red-ink);
}
.plan--dark .bf-deadline,
.plan--onDark .bf-deadline,
.section--dark .bf-deadline { color: #ff6b77; }
.plan--feature .bf-deadline { color: var(--bf-red-ink); }

/* a sold-out plan: card dims, button stops being a link (membership.js) */
.plan.is-soldout { opacity: .62; }
.plan.is-soldout:hover { transform: none; box-shadow: none; }
.btn.is-soldout { pointer-events: none; background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; animation: none; }

/* ============================================================ HOMEPAGE BANNER */
/* The one loud block on the homepage: solid red, sits straight under the hero. */
.bf-banner {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--bf-red); color: #000;
  padding-block: clamp(56px, 7vw, 104px);
}
/* fine diagonal texture so the red reads as printed, not flat */
.bf-banner::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(-45deg, rgba(0,0,0,.055) 0 2px, transparent 2px 14px);
}
.bf-banner__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.bf-banner__grid > * { min-width: 0; }
.bf-banner__chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; padding: 10px 14px;
  font-family: var(--font-heading); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.2em; line-height: 1;
}
.bf-banner__chip-dot { width: 7px; height: 7px; background: var(--bf-red); animation: pulse-dot 2.4s var(--ease) infinite; }
.bf-banner__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(76px, 12.4vw, 196px); line-height: 0.8; letter-spacing: 0.005em;
  color: #fff; margin: var(--s-3) 0 var(--s-2);
}
.bf-banner__title span { display: block; }
.bf-banner__title .bf-banner__title-dark { color: #000; }
.bf-banner__sub {
  font-family: var(--font-heading); font-weight: 600; text-transform: uppercase;
  font-size: clamp(17px, 2vw, 24px); letter-spacing: 0.08em; line-height: 1.3; color: #000;
}
.bf-banner__text { margin-top: var(--s-2); max-width: 46ch; font-size: 17px; line-height: 1.7; font-weight: 500; color: #000; }

.bf-banner__card {
  background: #000; color: #fff; padding: clamp(26px, 3vw, 40px);
  box-shadow: 12px 12px 0 0 rgba(0,0,0,.28);
}
.bf-banner__card-label {
  font-family: var(--font-heading); font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.22em; color: rgba(255,255,255,.7); margin-bottom: 14px;
}
.bf-banner__card .bf-cd { display: flex; }
.bf-banner__card .bf-cd__u { flex: 1; min-width: 0; }
.bf-banner__list { display: grid; gap: 12px; margin: var(--s-3) 0; padding-top: var(--s-3); border-top: 1px solid rgba(255,255,255,.18); }
.bf-banner__item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-family: var(--font-heading); font-weight: 500; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,.86);
}
.bf-banner__item b { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: 0.02em; color: #fff; line-height: 1; }
.bf-banner__card .btn { width: 100%; }
.bf-banner__fine {
  margin-top: 14px; text-align: center;
  font-family: var(--font-heading); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255,255,255,.7);
}

/* homepage plans section: deadline line under the heading */
.bf-inline {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px;
  margin-top: var(--s-3); padding: 12px 18px; background: #000; color: #fff;
  font-family: var(--font-heading); font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.18em; line-height: 1;
}

/* ------------------------------------------------------------- RESPONSIVE */
@media (max-width: 960px) {
  .bf-banner__grid { grid-template-columns: 1fr; }
  .bf-banner__title { font-size: clamp(76px, 27vw, 190px); }
}
@media (max-width: 640px) {
  :root { --bf-bar-h: 42px; }
  .bf-bar { font-size: 11px; letter-spacing: 0.12em; gap: 10px; padding-inline: 10px; }
  .bf-bar__msg, .bf-bar__cta-text { display: none; }
  .bf-bar__cta { padding: 7px 9px; }
  .bf-cd--inline .bf-cd__n { font-size: 19px; }
  .bf-banner__card { box-shadow: 6px 6px 0 0 rgba(0,0,0,.28); }
  .bf-cd--box .bf-cd__u { padding: 12px 4px 9px; }
}
@media (max-width: 360px) {
  .bf-bar__tag-word { display: none; } /* "Black Friday" only, drop "Sale" */
}

@media (prefers-reduced-motion: reduce) {
  .bf-tape__track, .btn--pulse-bf, .bf-bar__dot, .bf-spots__dot, .bf-banner__chip-dot { animation: none; }
}
