/* =========================================================================
   GFTEAM APEX — Membership page
   Loaded AFTER styles.css. Only blocks unique to this page live here;
   everything else (nav, buttons, sections, offer grid, footer, modal) is
   shared. Black & white, plus the sale red from black-friday.css (loaded
   before this file) while the Black Friday sale is live.
   ========================================================================= */

/* current page marker in the shared nav */
.nav__link[aria-current="page"]::after { width: 100%; }
.mobile-menu__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; }

/* in-page anchors land below the fixed nav (and the sale bar while it is up) */
#new-members, #current-members, #fast-pass, #gift-pack, #how-it-works, #sale-faq { scroll-margin-top: 72px; }
html:not(.bf-over) #new-members,
html:not(.bf-over) #current-members,
html:not(.bf-over) #fast-pass,
html:not(.bf-over) #gift-pack,
html:not(.bf-over) #how-it-works,
html:not(.bf-over) #sale-faq { scroll-margin-top: calc(72px + var(--bf-bar-h)); }
/* a deal-board row lands with its card clear of the nav */
.plan[id] { scroll-margin-top: calc(110px + var(--bf-bar-h)); }

/* ------------------------------------------------------------------- HERO */
/* Sale hero: the offer and the deadline on the left, the deal board (clock,
   every deal, price, spots) on the right. Nothing here is decoration: a
   visitor should know what, how much, and until when without scrolling. */
.mem-hero {
  min-height: 0; isolation: isolate;
  background: radial-gradient(110% 120% at 82% 0%, #1b0507 0%, #000 58%);
  padding-top: calc(132px + var(--bf-bar-h));
  padding-bottom: clamp(56px, 7vw, 96px);
}
.mem-hero__inner {
  position: relative; z-index: 2; color: #fff;
  display: grid; grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(36px, 4.5vw, 72px); align-items: center;
}
.mem-hero__inner--single { grid-template-columns: 1fr; max-width: 900px; margin-inline: 0; }
.mem-hero__chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bf-red-ink); 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;
}
.mem-hero__chip-dot { width: 7px; height: 7px; background: #fff; flex: none; animation: pulse-dot 2.4s var(--ease) infinite; }
.mem-hero__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(60px, 8.4vw, 126px); line-height: 0.84; letter-spacing: 0.005em; white-space: nowrap;
  margin: var(--s-3) 0 var(--s-4);
}
.mem-hero__title span { display: block; }
.mem-hero__title-end { color: var(--bf-red); }
.mem-hero__title-brand { font-size: 0.34em; line-height: 1; letter-spacing: 0.12em; margin-bottom: 0.3em; color: rgba(255,255,255,.86); }

/* the two doors under the headline */
.mem-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: var(--s-4); max-width: 620px; }
.mem-pick__btn {
  position: relative; display: grid; gap: 7px; align-content: center;
  padding: 20px 54px 20px 22px; min-height: 88px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.mem-pick__btn:active { transform: scale(0.985); }
.mem-pick__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mem-pick__main {
  font-family: var(--font-heading); font-weight: 700; font-size: clamp(16px, 1.45vw, 19px);
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.15;
}
.mem-pick__sub {
  font-family: var(--font-heading); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em; line-height: 1.3; opacity: .82;
}
.mem-pick__arrow {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; line-height: 1; transition: transform var(--dur) var(--ease);
}
.mem-pick__btn:hover .mem-pick__arrow { transform: translateY(-50%) translateY(5px); }
.mem-pick__btn--new { background: var(--bf-red-ink); color: #fff; box-shadow: inset 0 0 0 1px var(--bf-red-ink); }
.mem-pick__btn--new:hover { background: var(--bf-red-deep); box-shadow: inset 0 0 0 1px var(--bf-red-deep); }
.mem-pick__btn--member { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #fff; }
.mem-pick__btn--member:hover { background: transparent; color: #fff; }
.mem-hero__title--over { font-size: clamp(44px, 7vw, 100px); line-height: 0.9; white-space: normal; }
.mem-hero__lead {
  font-family: var(--font-heading); font-weight: 400; color: #fff;
  font-size: clamp(19px, 2.1vw, 26px); line-height: 1.4; max-width: 30ch;
  margin-bottom: var(--s-2);
}
.mem-hero__lead strong { font-weight: 700; box-shadow: inset 0 -0.42em 0 var(--bf-red-ink); padding-inline: 2px; }
.mem-hero__text {
  color: rgba(255,255,255,.76); font-size: 16px; line-height: 1.8;
  max-width: 50ch;
}
.mem-hero__text .mem-hero__alt { display: block; margin-top: var(--s-2); }
.mem-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.mem-hero__alt {
  font-family: var(--font-heading); font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,.78);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(255,255,255,.4);
  padding: 8px 0; transition: color var(--dur-fast) var(--ease);
}
.mem-hero__alt:hover { color: #fff; text-decoration-color: #fff; }
.mem-hero__alt:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* -------------------------------------------------------------- DEAL BOARD */
.board {
  background: #fff; color: #000; width: 100%; max-width: 580px; justify-self: end;
  box-shadow: 12px 12px 0 0 var(--bf-red);
}
.board__clock { background: #000; color: #fff; border: 1px solid rgba(255,255,255,.22); border-bottom: 0; padding: 22px clamp(18px, 2.4vw, 30px) 20px; text-align: center; }
.board__clock-label {
  font-family: var(--font-heading); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.26em; color: rgba(255,255,255,.7); margin-bottom: 12px;
}
.board__clock .bf-cd { justify-content: center; }
.board__clock .bf-cd__n { color: #fff; }
.board__clock .bf-cd__u:last-child .bf-cd__n { color: var(--bf-red); }
.board__clock-date {
  margin-top: 14px; font-family: var(--font-heading); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.18em; color: #ff6b77;
}
.board__group {
  padding: 9px clamp(18px, 2.4vw, 30px); background: var(--bg-secondary);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-family: var(--font-heading); font-weight: 600; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.24em; color: var(--text-secondary);
}
.board__row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
  padding: 12px clamp(18px, 2.4vw, 30px); color: #000;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.board__row + .board__row { border-top: 1px solid var(--border); }
.board__row:hover, .board__row:focus-visible { background: #000; color: #fff; outline: none; }
.board__name {
  font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.25;
}
.board__name small {
  display: block; margin-top: 3px; font-family: var(--font-body); font-weight: 400; font-size: 12.5px;
  text-transform: none; letter-spacing: 0; line-height: 1.4; opacity: .66;
}
/* spots left: marker handwriting with a ring, same as on the plan cards */
.board__spots {
  font-family: var(--bf-hand); font-weight: 400; font-size: 19px; line-height: 1;
  letter-spacing: 0.01em; white-space: nowrap;
  padding: 12px 18px 11px; transform: rotate(-3deg);
  color: #000; /* black ink, red ring */
  background: var(--bf-ring) center / 100% 100% no-repeat;
}
.board__row:hover .board__spots, .board__row:focus-visible .board__spots { color: #fff; }
.board__spots.is-soldout { color: var(--text-muted); background: none; text-decoration: line-through; }
.board__price {
  display: inline-flex; align-items: flex-start; justify-content: flex-end; min-width: 3.1em;
  font-family: var(--font-display); font-size: 36px; line-height: 0.9; letter-spacing: 0.01em;
}
.board__price i { font-style: normal; font-size: 0.48em; margin-top: 0.1em; margin-right: 2px; }

/* Plan cards (.plan, .plan__*, .mem-badge) are shared with the homepage and
   live in styles.css under PLAN CARDS. */

/* ------------------------------------------------------- 01 STARTER PACK */
.starter__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.starter__media { position: relative; }
.starter__img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; object-position: 50% 40%;
  border: 1px solid var(--border);
  filter: grayscale(1) contrast(1.06);
}
.starter__frame,
.gift__frame {
  position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border: 1px solid var(--border); pointer-events: none;
}
.starter__tag,
.privates__tag,
.gift__tag {
  position: absolute; left: 0; bottom: 0;
  background: #000; color: #fff;
  font-family: var(--font-heading); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em; padding: 10px 18px;
}
.plan--starter { border-color: #000; box-shadow: 10px 10px 0 0 var(--bf-red); }
.plan--starter:hover { transform: none; box-shadow: 10px 10px 0 0 var(--bf-red); }
.starter__assure {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--border);
}
.starter__assure li {
  position: relative; padding-left: 18px;
  font-family: var(--font-heading); font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-secondary);
}
.starter__assure li::before {
  content: ''; position: absolute; left: 0; top: 0.2em; width: 9px; height: 5px;
  border-left: 2px solid var(--bf-red-ink); border-bottom: 2px solid var(--bf-red-ink); transform: rotate(-45deg);
}
.plan--starter .plan__price { font-size: clamp(80px, 9vw, 120px); }

/* New-member offers: Starter Pack full-width, fast pass cards in a 2×2 grid */
.newoffers__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2);
}
.newoffers__grid .plan--starter { grid-column: 1 / -1; }
.newoffers__grid .plan {
  padding: clamp(24px, 2.2vw, 32px);
  overflow: hidden;
}
.newoffers__grid .btn,
.fastpass__grid .btn { white-space: normal; text-align: center; min-width: 0; }
.newoffers__grid .plan .plan__price { font-size: clamp(56px, 5.4vw, 76px); }
.newoffers__grid .plan__term, .newoffers__grid .plan__label { letter-spacing: 0.12em; }
.fastpass__grid::-webkit-scrollbar { display: none; }
.fastpass__grid { scrollbar-width: none; }
.newoffers__assure { border-top: 0; padding-top: 0; margin-top: var(--s-4); }
#plan-starter, #plan-fast-cubs, #plan-fast-kids, #plan-fast-adults, #plan-fast-year { scroll-margin-top: calc(84px + var(--bf-bar-h)); }
/* quick list of the five offers; only shown where the cards stack */
.offerjump { display: none; position: relative; z-index: 1; margin-bottom: var(--s-3); border: 1px solid #000; background: var(--surface); }
.offerjump__link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 13px 16px; color: #000; text-decoration: none;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em;
}
.offerjump__link + .offerjump__link { border-top: 1px solid var(--border); }
.offerjump__link b { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: 0.02em; color: var(--bf-red-ink); }
.offerjump__link b::after { content: ' \2193'; font-family: var(--font-body, sans-serif); font-size: 14px; color: #000; }

/* ---------------------------------------------------- 02 PRIVATE LESSONS */
.privates__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 2px; align-items: stretch;
}
.memberpass { position: relative; z-index: 1; margin-top: var(--s-6, 72px); padding-top: var(--s-5); border-top: 1px solid var(--border); }
.memberpass__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 56px); line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; }
.memberpass__lead { margin: 12px 0 var(--s-4); max-width: 52ch; font-size: 17px; color: var(--text-secondary); }
.privates__media { position: relative; min-height: 420px; background: #000; }
.privates__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
  filter: grayscale(1) contrast(1.06);
}

/* ---------------------------------------------------------- 03 FAST PASS */
.fastpass { isolation: isolate; }
.fastpass__bg {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  object-fit: cover; opacity: .16;
  filter: grayscale(1) contrast(1.1);
}
.fastpass::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.85) 100%);
}
.fastpass .section__head { margin-bottom: var(--s-5); }
.fastpass__grid {
  position: relative; z-index: 1;
  display: flex; gap: var(--s-2);
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scroll-padding-left: 0; padding-bottom: 4px;
}
.fastpass__grid .plan {
  flex: 0 0 calc((100% - var(--s-2) * 3) / 4); min-width: 220px;
  scroll-snap-align: start; overflow: hidden;
}

/* ---------------------------------------------------- 04 CHRISTMAS GIFT */
.gift__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.gift__media { position: relative; }
.gift__img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 50%;
  border: 1px solid var(--border);
  filter: grayscale(1) contrast(1.06);
}
.gift__deal { margin-top: var(--s-4); }
.gift__deal .plan__price { margin-top: 0; font-size: clamp(80px, 9vw, 120px); }
.gift__list { max-width: 420px; }
.gift__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.gift__note {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 400; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-muted);
}
.gift__note-marker { width: 6px; height: 6px; background: var(--text-muted); }

/* falling snow (membership.js). Drawn over the whole section, photo
   included; pointer-events:none keeps every link and button clickable.
   Flakes are white with a soft grey halo so they show on white too. */
.gift__snow {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; pointer-events: none;
}

/* ----------------------------------------------------------- HOW IT WORKS */
.joinsteps .offer__grid { margin-top: 0; }
.joinsteps .section__head { margin-bottom: var(--s-5); }
.joinsteps__link { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.joinsteps__link:hover { color: var(--text-secondary); }

/* --------------------------------------------------------------- SALE FAQ */
.mem-faq .section__head { margin-bottom: var(--s-5); }
.mem-faq__link { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; font: inherit; }

/* ------------------------------------------------------ FINAL CTA (sale live) */
.mem-last { text-align: center; background: radial-gradient(110% 130% at 50% 110%, #22060a 0%, #000 62%); }
.mem-last__inner { display: flex; flex-direction: column; align-items: center; }
.mem-last__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(52px, 9.4vw, 124px); line-height: 0.88; letter-spacing: 0.01em;
  margin: var(--s-3) 0 var(--s-4);
}
.mem-last__title span { display: block; }
.mem-last__title-red { color: var(--bf-red); }
.mem-last__sub {
  margin: var(--s-3) 0 var(--s-4); font-family: var(--font-heading); font-weight: 500; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.2em; color: #ff6b77;
}
.mem-last__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.mem-last__note { margin-top: var(--s-4); color: rgba(255,255,255,.7); font-size: 15px; }
.mem-last__link { color: #fff; text-decoration: underline; text-underline-offset: 4px; font: inherit; }

/* ---------------------------------------------- FINAL CTA (after the sale) */
.mem-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.mem-final__call { background: transparent; color: #000; box-shadow: inset 0 0 0 1px #000; }
.mem-final__call:hover { background: #000; color: #fff; }


/* ------------------------------------------------------------- RESPONSIVE */
@media (max-width: 1024px) {
  .mem-hero__inner { grid-template-columns: 1fr; }
  .mem-hero__title { font-size: clamp(56px, 19vw, 168px); }
  .mem-hero__lead { max-width: 34ch; }
  .board { justify-self: start; max-width: 640px; }
  .starter__grid { grid-template-columns: 1fr; }
  .starter__media { max-width: 640px; }
  .privates__grid { grid-template-columns: 1fr 1fr; }
  .privates__media { grid-column: 1 / -1; min-height: 0; aspect-ratio: 16 / 9; }
  .fastpass__grid .plan { flex: 0 0 calc((100% - var(--s-2)) / 2); }
  .newoffers__grid { grid-template-columns: 1fr; }
  /* Phones and tablets: the offer card comes before the photo, so the price
     and checkout button are on screen right after tapping a hero button. */
  .newoffers .section__head { margin-bottom: var(--s-3); }
  .privates__media { order: 3; }
  .starter .section__head,
  .privates .section__head { margin-bottom: var(--s-4); }
}

@media (max-width: 860px) {
  .mem-hero { padding-top: calc(112px + var(--bf-bar-h)); }
  .gift__grid { grid-template-columns: 1fr; }
  .gift__media { max-width: 520px; }
  .gift__img { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .privates__grid { grid-template-columns: 1fr; }
  .fastpass__grid .plan { flex: 0 0 85%; }
  .offerjump { display: block; }
  .plan--starter, .plan--starter:hover { box-shadow: 6px 6px 0 0 var(--bf-red); }
  .board { box-shadow: 6px 6px 0 0 var(--bf-red); }
  .board__row { grid-template-columns: 1fr auto; row-gap: 8px; }
  .board__spots { grid-column: 1; grid-row: 2; justify-self: start; margin-left: -6px; }
  .board__price { grid-column: 2; grid-row: 1 / span 2; font-size: 34px; }
}

@media (max-width: 480px) {
  .mem-pick { grid-template-columns: 1fr; }
  .mem-pick__btn { min-height: 76px; padding-block: 16px; }
  .mem-hero__actions .btn,
  .gift__actions .btn,
  .mem-last__actions .btn,
  .mem-final__actions .btn { width: 100%; }
  .btn--bf.btn--xl { padding: 22px 20px; }
  .starter__frame,
  .gift__frame { display: none; }
}
