/* Pro Form Academy Production Landing Styles
   Black Friday theme: Geometric Pro (Montserrat + Source Sans 3) + Current Gold
   Evergreen theme: Editorial Power (Bebas Neue + Work Sans) + Tour Volt
   Hero Video Calibration: Pulsea 80 (Video 116% / Overlay 26%) baked in */

html, body {
  margin: 0;
  padding: 0;
  background: #0B0B0D;
}
html[data-pfa-offer="bf"],
html[data-pfa-offer="bf"] body {
  background: #0B0B0D !important;
}
html[data-pfa-offer="evergreen"],
html[data-pfa-offer="evergreen"] body {
  background: #0A0E17 !important;
}

#pfa {
  --bg: #0B0B0D;
  --bg2: #111114;
  --card: #1C1C21;
  --line: #2C2C33;
  --cta: #FF4A1C;
  --cta-h: #FF6A42;
  --cta-t: #0B0B0D;
  --gold: #FFC531;
  --gold2: #E6A915;
  --text: #F5F3EE;
  --muted: #A3A3AC;
  --steel: #8A8A93;
  --btn-ink: #0B0B0D;
  --header-bg: rgba(11, 11, 13, 0.94);
  --scrim-rgb: 11, 11, 13;

  /* Black Friday locked font pairing: Geometric Pro */
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --display-weight: 800;
  --display-track: -0.015em;
  --display-lh: 1.08;

  /* Locked Pulsea-calibrated hero video brightness (80 / 100: Video 116% / Overlay 26%) */
  --vid-brightness: 1.16;
  --vid-contrast: 1.02;
  --scrim-left: 0.55;
  --scrim-mid: 0.26;
  --scrim-right: 0.18;
  --scrim-top: 0.26;
  --scrim-bot: 0.84;

  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-body) !important;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.22s ease, color 0.22s ease;
}

/* Size-matched fallback for Bebas Neue: while the web font loads, headlines wrap
   to the same number of lines, so the evergreen hero does not jump (CLS). */
@font-face {
  font-family: 'PFA Bebas Fallback';
  src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Liberation Sans'), local('LiberationSans'), local('Noto Sans'), local('NotoSans-Regular'), local('DejaVu Sans'), local('DejaVuSans');
  size-adjust: 58%;
}

/* Evergreen locked theme: Editorial Power (Bebas Neue + Work Sans) + Tour Volt */
#pfa[data-pfa-offer="evergreen"] {
  --bg: #0A0E17;
  --bg2: #111827;
  --card: #161F31;
  --line: rgba(248, 250, 252, 0.12);
  --cta: #C8F53B;
  --cta-h: #D9FF5B;
  --cta-t: #0A0E17;
  --gold: #C8F53B;
  --gold2: #9FD418;
  --text: #F8FAFC;
  --muted: #9AA8BE;
  --steel: #7C8BA1;
  --btn-ink: #0A0E17;
  --header-bg: rgba(10, 14, 23, 0.94);
  --scrim-rgb: 10, 14, 23;

  --font-display: 'Bebas Neue', 'PFA Bebas Fallback', Impact, sans-serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;
  --display-weight: 400;
  --display-track: 0.03em;
  --display-lh: 1.04;
}

#pfa *, #pfa *::before, #pfa *::after { box-sizing: border-box; }
#pfa img, #pfa video { max-width: 100%; display: block; }
#pfa a { color: inherit; }

#pfa h1, #pfa h2, #pfa h3 {
  text-transform: uppercase;
  margin: 0 0 0.5em;
  color: var(--text);
}
#pfa h1 { font-size: clamp(34px, 7vw, 64px); }
#pfa h2 { font-size: clamp(28px, 5vw, 44px); }
#pfa h3 { font-size: 22px; }
#pfa p { margin: 0 0 1em; }

#pfa h1, #pfa h2, #pfa h3, #pfa .price, #pfa .stat b,
#pfa .res-badge, #pfa .res3-champ-tile b,
#pfa .hero .price-line b, #pfa .card .num, #pfa .seal b {
  font-family: var(--font-display) !important;
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: var(--display-lh);
}

#pfa .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
#pfa section { padding: 72px 0; }
#pfa .alt { background: var(--bg2) !important; }
#pfa .center { text-align: center; }
#pfa .eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
#pfa .lead { font-size: 19px; color: var(--muted); max-width: 720px; }
#pfa .center .lead { margin-left: auto; margin-right: auto; }
#pfa .gold { color: var(--gold); }

#pfa .btn {
  display: inline-block;
  background: var(--cta) !important;
  color: var(--cta-t) !important;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 10px;
  text-align: center;
  transition: background 0.15s, transform 0.15s;
  border: 0;
  cursor: pointer;
}
#pfa .btn:hover { background: var(--cta-h) !important; transform: translateY(-1px); }
#pfa .btn.full { display: block; width: 100%; }
#pfa .btn.ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.24) !important;
}
#pfa .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}
#pfa .badge {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
}
#pfa .strike { color: var(--steel); text-decoration: line-through; font-weight: 500; }

/* Black Friday topbar & banner (hidden automatically in Evergreen mode) */
#pfa[data-pfa-offer="evergreen"] .bf-only { display: none !important; }
#pfa .topbar {
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
#pfa .topbar a { text-decoration: underline; }
#pfa .cd { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Header */
#pfa header {
  padding: 16px 0;
  background: var(--header-bg) !important;
  border-bottom: 1px solid var(--line);
}
#pfa header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#pfa header img { height: 48px; width: auto; }
#pfa header nav { display: flex; gap: 14px; align-items: center; }
#pfa header .login { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
#pfa header .login:hover { color: var(--text); }
#pfa header .btn { padding: 10px 18px; font-size: 15px; white-space: nowrap; }

/* Hero Section: Locked Video Background with Baked-In Pulsea 80 Calibration */
#pfa .hero-video {
  position: relative;
  overflow: hidden;
  padding: 52px 0 60px;
  min-height: 600px;
  display: flex;
  align-items: center;
}
#pfa .hero-video > .wrap {
  position: relative;
  z-index: 3;
  width: 100%;
}
#pfa .hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
#pfa .hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(var(--vid-brightness, 1.16)) contrast(var(--vid-contrast, 1.02)) saturate(1.06);
}
#pfa .hero-bg-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(var(--scrim-rgb, 11, 11, 13), var(--scrim-left, 0.55)) 0%,
      rgba(var(--scrim-rgb, 11, 11, 13), var(--scrim-mid, 0.26)) 54%,
      rgba(var(--scrim-rgb, 11, 11, 13), var(--scrim-right, 0.18)) 100%
    ),
    linear-gradient(
      180deg,
      rgba(var(--scrim-rgb, 11, 11, 13), var(--scrim-top, 0.26)) 0%,
      rgba(var(--scrim-rgb, 11, 11, 13), 0.04) 46%,
      rgba(var(--scrim-rgb, 11, 11, 13), var(--scrim-bot, 0.84)) 100%
    );
}
#pfa .hero-inner {
  max-width: 660px;
  padding: 20px 0 12px;
}
#pfa .hero-inner h1 {
  font-size: clamp(38px, 6.2vw, 68px);
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.65), 0 1px 4px rgba(0, 0, 0, 0.85);
}
#pfa .hero-inner .eyebrow { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75); }
#pfa .hero-inner .lead {
  color: #F4F6FA;
  font-size: 19px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}
#pfa .hero .price-line {
  font-size: 20px;
  margin: 6px 0 22px;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}
#pfa .hero .price-line b { font-size: 32px; color: var(--gold); }
#pfa .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
#pfa .hero-actions .btn.ghost {
  background: rgba(11, 11, 13, 0.55) !important;
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.36) !important;
  color: #FFFFFF !important;
}
#pfa .trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
  font-size: 14px;
  color: #EEF2F7;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
  list-style: none;
  padding: 0;
}
#pfa .trust li::before { content: "\2713"; color: var(--gold); font-weight: 700; margin-right: 6px; }

/* Trailer Modal */
#pfa dialog.pfa-modal {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #050507;
  width: min(920px, 94vw);
  color: #FFFFFF;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
}
#pfa dialog.pfa-modal::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
}
#pfa .pfa-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
#pfa .pfa-modal-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #FFFFFF;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}
#pfa .pfa-modal-body video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}

/* Banner & Plans */
#pfa .banner { margin-top: 24px; }
#pfa .banner img { width: 100%; border-radius: 14px; }
#pfa .plans { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px; align-items: start; }
#pfa .plan { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
#pfa .plan.featured { border: 2px solid var(--cta); order: -1; }
#pfa .plan .ribbon { background: var(--cta); color: var(--btn-ink) !important; text-align: center; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; padding: 8px; }
#pfa .plan img { width: 100%; height: auto; background: #000; }
#pfa .plan .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
#pfa .plan .price { font-size: 44px; color: var(--gold); line-height: 1; margin: 4px 0; }
#pfa .plan .price .strike { font-size: 24px; margin-left: 6px; }
#pfa .plan .save { font-size: 14px; color: var(--cta); font-weight: 700; margin-bottom: 12px; }
#pfa .plan ul { list-style: none; padding: 0; margin: 8px 0 20px; flex: 1; }
#pfa .plan li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; border-bottom: 1px solid var(--line); }
#pfa .plan li:last-child { border-bottom: 0; }
#pfa .plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
#pfa .plan li.bonus { color: var(--gold); }
#pfa .plan .fine { font-size: 13px; color: var(--steel); margin: 10px 0 0; text-align: center; }

/* Student Results: Locked Portrait & Champion Wall (9 Portraits = 3x3) */
#pfa .res3-champ-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0 24px;
  text-align: left;
}
#pfa .res3-champ-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 16px;
}
#pfa .res3-champ-tile .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
#pfa .res3-champ-tile b { display: block; font-size: 28px; color: var(--text); margin-bottom: 4px; }
#pfa .res3-champ-tile p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.4; }

#pfa .res3-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
#pfa .res3-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
#pfa .res3-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  display: block;
}
#pfa .res3-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 56px 16px 16px;
  text-align: left;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.84) 52%, rgba(0, 0, 0, 0.96) 100%);
}
#pfa .res-badge {
  display: inline-block;
  background: var(--gold);
  color: #0B0B0D;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}
#pfa .res3-caption h3 { margin: 0 0 4px; font-size: 22px; color: #FFFFFF; }
#pfa .res3-caption p { margin: 0; font-size: 13.5px; color: #DCE2EC; line-height: 1.4; }

/* Problem, Courses, Stats, Steps, Idio, Guarantee, Coaches, FAQ, Final, Footer */
#pfa .grid3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
#pfa .card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
#pfa .card .num { font-size: 40px; color: var(--cta); line-height: 1; }
#pfa .courses { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
#pfa .course { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; border-top: 4px solid var(--cta); }
#pfa .course .who { color: var(--gold); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
#pfa .course p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }
#pfa .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
#pfa .stat { background: var(--card); border-radius: 12px; padding: 18px; text-align: center; }
#pfa .stat b { display: block; font-size: 32px; color: var(--gold); line-height: 1.1; }
#pfa .stat span { font-size: 14px; color: var(--muted); }
#pfa .steps { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 28px; counter-reset: s; }
#pfa .step { background: var(--card); border-radius: 14px; padding: 22px 22px 22px 70px; position: relative; }
#pfa .step::before { counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--bg); font-weight: 700; display: flex; align-items: center; justify-content: center; }
#pfa .step p { margin: 0; color: var(--muted); font-size: 16px; }
#pfa .idio { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
#pfa .idio-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#pfa .idio-imgs img { border-radius: 12px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
#pfa .idio ol { padding-left: 20px; margin: 0 0 20px; }
#pfa .idio ol li { margin-bottom: 8px; }
#pfa .guarantee { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 36px 24px; text-align: center; max-width: 780px; margin: 0 auto; }
#pfa .guarantee .seal { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto 16px; font-weight: 700; line-height: 1.1; }
#pfa .guarantee .seal b { font-size: 24px; }
#pfa .guarantee .seal span { font-size: 11px; letter-spacing: 1px; }
#pfa .coaches { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
#pfa .coach { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
#pfa .coach h3 { color: var(--gold); margin-bottom: 6px; }
#pfa .coach p { color: var(--muted); margin: 0; font-size: 15px; }
#pfa .faq { max-width: 780px; margin: 28px auto 0; }
#pfa details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
#pfa summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#pfa summary::-webkit-details-marker { display: none; }
#pfa summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; }
#pfa details[open] summary::after { content: "\2212"; }
#pfa details p { color: var(--muted); margin: 12px 0 0; font-size: 16px; }
#pfa .final {
  text-align: center;
  padding: 72px 20px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%) !important;
  color: var(--btn-ink) !important;
}
#pfa .final h2, #pfa .final .lead { color: var(--btn-ink) !important; }
#pfa .final .lead { margin: 0 auto 24px; }
#pfa .final .btn { background: #0B0B0D !important; color: #FFFFFF !important; }
#pfa footer { padding: 36px 0 96px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--steel); }
#pfa footer img { height: 34px; margin: 0 auto 12px; border-radius: 6px; }
#pfa footer a { color: var(--muted); text-decoration: none; margin: 0 8px; }
#pfa footer a:hover { color: var(--text); }
#pfa footer .footer-links, #pfa footer .footer-socials { margin-top: 8px; }
#pfa footer .footer-links a, #pfa footer .footer-socials a { display: inline-block; margin: 4px 8px; }

/* Sticky mobile buy bar */
#pfa .stickybuy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 60;
  transform: translateY(110%);
  transition: transform 0.2s;
}
#pfa .stickybuy.show { transform: translateY(0); }
#pfa .stickybuy .t { font-size: 13px; line-height: 1.2; }
#pfa .stickybuy .t b { color: var(--gold); font-size: 18px; }
#pfa .stickybuy .btn { padding: 11px 18px; font-size: 15px; white-space: nowrap; }

/* Responsive Breakpoints (1440 / 768 / 390px, zero horizontal overflow) */
@media (min-width: 768px) {
  #pfa section { padding: 92px 0; }
  #pfa .grid3 { grid-template-columns: repeat(3, 1fr); }
  #pfa .courses { grid-template-columns: repeat(2, 1fr); }
  #pfa .stats { grid-template-columns: repeat(4, 1fr); }
  #pfa .steps { grid-template-columns: repeat(3, 1fr); }
  #pfa .plans { grid-template-columns: repeat(2, 1fr); }
  #pfa .plan.featured { order: 0; }
  #pfa .idio { grid-template-columns: 1fr 1fr; }
  #pfa .coaches { grid-template-columns: repeat(2, 1fr); }
  #pfa .stickybuy { display: none; }
  #pfa footer { padding-bottom: 44px; }
}
@media (min-width: 1060px) {
  #pfa .plans { grid-template-columns: repeat(4, 1fr); }
  #pfa .coaches { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  #pfa .res3-champ-banner { grid-template-columns: repeat(2, 1fr); }
  #pfa .res3-wall { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  #pfa .hero-video { min-height: 540px; padding: 36px 0 44px; }
  #pfa .res3-wall { grid-template-columns: 1fr; }
}
/* Mobile header: logo, "Member Login" and "See plans" each stay on one line */
@media (max-width: 480px) {
  #pfa header .wrap { gap: 10px; }
  #pfa header img { height: 30px; }
  #pfa header nav { gap: 10px; flex-shrink: 0; }
  #pfa header .login { font-size: 13px; }
  #pfa header .btn { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 374px) {
  #pfa header img { height: 26px; }
}
