/* ====================================================================
   OPTIMANCER AFFILIATE PAGE — scoped styles (light champagne theme)
   Overrides + adapts the dark "res-*" classes from the legacy resource
   page into the ID 2.0 light champagne system, plus adds sticky sitemap
   nav, video modal, and additional layout primitives.
   ==================================================================== */

/* CSS variables — local map */
.aff-page{
  --rich-gold: var(--gold);
  --warm-coral: var(--gold);
  --soft-lavender: var(--cream-dim);
  --text-body: var(--cream);
  --text-muted: var(--cream-dim);
  --white: var(--cream);
  --near-black: var(--bg);
  --deep-purple: var(--bg);
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--cream);
}

/* ----- LAYOUT WRAPPER ----- */
.aff-page{
  background: var(--bg);
  padding-top: 0;
}
.aff-page .res-container{
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- TWO-COL LAYOUT WITH STICKY NAV ----- */
.aff-layout{
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1024px){
  .aff-layout{ grid-template-columns: 1fr; gap: 0; }
}
.aff-layout .res-container{ max-width: 100%; padding: 0; }

/* ----- STICKY SITEMAP NAV ----- */
.aff-sitemap{
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 28px rgba(31,22,18,0.08), inset 0 0 0 1px rgba(156,123,26,0.08);
  /* Constrain to viewport so a long nav stays fully reachable */
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Themed scrollbar (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
/* Themed scrollbar (WebKit) */
.aff-sitemap::-webkit-scrollbar{ width: 6px; }
.aff-sitemap::-webkit-scrollbar-track{ background: transparent; }
.aff-sitemap::-webkit-scrollbar-thumb{
  background: rgba(156,123,26,0.45);
  border-radius: 3px;
}
.aff-sitemap::-webkit-scrollbar-thumb:hover{ background: rgba(156,123,26,0.75); }
.aff-sitemap__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.aff-sitemap__top{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cream-dim);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: color .2s, border-color .2s, background .2s;
}
.aff-sitemap__top:hover{
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(156,123,26,0.06);
}
.aff-sitemap__top svg{ width: 11px; height: 11px; }
.aff-sitemap__group{
  margin-bottom: 16px;
}
.aff-sitemap__group:last-child{ margin-bottom: 0; }
.aff-sitemap__group-label{
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-weight: 600;
  margin-bottom: 8px;
  opacity: 0.7;
}
.aff-sitemap ol{
  list-style: none;
  margin: 0;
  padding: 0;
}
.aff-sitemap a{
  display: block;
  padding: 7px 10px;
  margin-left: -10px;
  font-size: 13.5px;
  color: var(--cream-dim);
  text-decoration: none;
  border-radius: 5px;
  border-left: 2px solid transparent;
  transition: all 160ms ease;
  line-height: 1.4;
}
.aff-sitemap a:hover{
  color: var(--cream);
  background: rgba(156,123,26,0.05);
  border-left-color: var(--gold);
}
.aff-sitemap a.is-active{
  color: var(--cream);
  background: rgba(156,123,26,0.10);
  border-left-color: var(--gold);
  font-weight: 600;
}
@media (max-width: 1024px){
  .aff-sitemap{
    position: static;
    margin-bottom: 32px;
  }
}

/* ----- HERO ----- */
.aff-opt-hero{
  position: relative;
  padding: 92px 0 42px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2, var(--surface)) 100%);
  overflow: hidden;
}
.aff-opt-hero::before{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 1100px 600px at 50% 0%, rgba(156,123,26,0.10) 0%, transparent 60%);
  pointer-events: none;
}
/* Dark fade at the very top so the global top nav has contrast before scroll */
.aff-opt-hero::after{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(180deg,
    rgba(20,14,6,0.78) 0%,
    rgba(20,14,6,0.55) 35%,
    rgba(20,14,6,0.22) 70%,
    rgba(20,14,6,0) 100%);
  pointer-events: none;
  z-index: 2;
}
.aff-opt-hero-inner{
  position: relative;
  z-index: 3; /* sit above the dark fade overlay */
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.aff-opt-hero-inner > .crumbs{ text-align: left; margin-bottom: 10px; }

.aff-opt-hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 4px 0 0;
}
@media (max-width: 980px){
  .aff-opt-hero-grid{ grid-template-columns: 1fr; gap: 32px; }
}

.aff-opt-hero-copy{ text-align: left; }
.aff-opt-hero-copy .eyebrow{ margin-bottom: 10px; }
.aff-opt-hero-copy h1{ text-align: left; }
.aff-opt-hero-copy p.lead{ text-align: left; margin: 0 0 24px; max-width: 600px; }
.aff-opt-hero-copy .hero-brand{
  color: var(--gold);
  font-style: italic;
  letter-spacing: -0.005em;
}
.aff-opt-hero-cta-row{ display: flex; gap: 14px; flex-wrap: wrap; }

/* ----- Becky + Optimancer logo stage ----- */
.aff-opt-hero-stage{
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}
.aff-opt-becky-card{
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 4.6;
  border-radius: 14px;
  overflow: hidden;
  background: #1F1612;
  box-shadow:
    0 0 0 1px rgba(156,123,26,0.30) inset,
    0 0 0 6px rgba(255,250,236,0.85),
    0 0 0 7px rgba(156,123,26,0.45),
    0 30px 60px rgba(60,40,10,0.30),
    0 12px 30px rgba(31,22,18,0.18);
}

/* Video variant: replace portrait card with Becky Kartra player.
   Wider 16:9 footprint to honor the horizontal HeyGen render. */
.aff-opt-becky-card.aff-opt-becky-card--video{
  max-width: 520px;
  aspect-ratio: 16 / 9;
  background: #0a0604;
}
.aff-opt-becky-card--video .becky-video-poster{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  z-index: 0;
  opacity: 0.95;
  pointer-events: none;
}
.aff-opt-becky-card--video.has-player .becky-video-poster{ display: none; }
.aff-opt-becky-card--video::after{
  display: none; /* hide the original portrait-gradient overlay on the video variant */
}
/* Gold play hint over poster until Kartra injects iframe */
.aff-opt-becky-card--video:not(.has-player)::before{
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: rgba(255,250,236,0.18);
  border: 1.5px solid rgba(255,250,236,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 40px rgba(156,123,26,0.5);
  z-index: 1;
  pointer-events: none;
}
.aff-opt-becky-card--video .aff-becky-video-play-arrow{
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  margin: -12px 0 0 -7px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #FFFAEC;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(156,123,26,0.7));
}
.aff-opt-becky-card--video.has-player .aff-becky-video-play-arrow,
.aff-opt-becky-card--video.has-player::before{ display: none; }
/* Kartra container fills the card, sits above poster */
.aff-opt-becky-card--video > div[class*="kartra_video_container"]{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  z-index: 3;
}
.aff-opt-becky-card--video iframe,
.aff-opt-becky-card--video video{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  border: 0;
  border-radius: 14px;
  background: #0a0604;
}
/* Hide the floating Optimancer logo + portrait "Meet Becky" pill
   when in video mode — they'd cover the player. Tag is still useful below. */
.aff-opt-becky-card--video .aff-opt-logo-badge{ display: none; }
.aff-opt-becky-card--video .aff-opt-becky-tag{
  bottom: -34px;
  background: transparent;
  border: 0;
  color: var(--cream-dim);
  padding: 0;
  font-size: 11px;
}
.aff-opt-becky-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.aff-opt-becky-card::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,22,18,0) 50%, rgba(31,22,18,0.55) 100%);
  pointer-events: none;
}
.aff-opt-logo-badge{
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  width: 58%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255,250,236,0.96);
  padding: 10px;
  box-shadow:
    0 0 0 2px rgba(156,123,26,0.55),
    0 14px 40px rgba(0,0,0,0.45),
    0 4px 14px rgba(0,0,0,0.30);
  z-index: 2;
  animation: aff-logo-float 5.5s ease-in-out infinite;
}
.aff-opt-logo-badge img{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
@keyframes aff-logo-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}
.aff-opt-becky-tag{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFFAEC;
  background: rgba(31,22,18,0.78);
  padding: 6px 14px;
  border-radius: 99px;
  white-space: nowrap;
  border: 1px solid rgba(156,123,26,0.55);
}

@media (max-width: 680px){
  .aff-opt-becky-card{ max-width: 360px; aspect-ratio: 3 / 4; }
  .aff-opt-becky-card.aff-opt-becky-card--video{ max-width: 100%; aspect-ratio: 16 / 9; }
  .aff-opt-logo-badge{ bottom: 52px; width: 55%; }
}
.aff-opt-hero .eyebrow{
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 18px;
}
.aff-opt-hero h1{
  font-size: clamp(1.75rem, 3.0vw, 2.5rem);
  font-weight: 800;
  color: var(--cream);
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.aff-opt-hero p.lead{
  font-size: 16px;
  line-height: 1.55;
  color: var(--cream-dim);
  max-width: 760px;
  margin: 0 auto 20px;
}
.aff-opt-hero .crumbs{
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 14px;
}
.aff-opt-hero .crumbs a{ color: var(--gold); text-decoration: none; }
.aff-opt-hero .crumbs .sep{ margin: 0 8px; color: var(--cream-soft, var(--cream-dim)); }

.aff-opt-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 820px;
  margin: 24px auto 0;
}
@media (max-width: 680px){
  .aff-opt-stats{ grid-template-columns: 1fr; }
}
.aff-opt-stat{
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(31,22,18,0.06), inset 0 0 0 1px rgba(156,123,26,0.08);
}
.aff-opt-stat__value{
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.aff-opt-stat__label{
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-weight: 600;
}

/* ----- PRIMARY CTA ----- */
.aff-cta-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--gold);
  color: #1F1612 !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--gold);
  transition: all 180ms ease;
  box-shadow: 0 4px 20px rgba(156,123,26,0.25);
}
.aff-cta-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(156,123,26,0.35);
}
.aff-cta-btn--ghost{
  background: transparent;
  color: var(--gold) !important;
  border-color: var(--gold);
  box-shadow: none;
}
.aff-cta-btn--ghost:hover{ background: rgba(156,123,26,0.08); }

/* ----- SECTIONS: re-theme the legacy .res-* classes ----- */
.aff-page .res-section{
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.aff-page .res-section:first-of-type{ border-top: none; }
.aff-page .res-section__eyebrow{
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.aff-page .res-section__title{
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: var(--cream);
  margin: 0 0 14px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.aff-page .res-section__desc{
  font-size: 16px;
  color: var(--cream-dim);
  line-height: 1.65;
  max-width: 760px;
  margin-bottom: 32px;
}

/* ----- INFO CARDS (commission cards) ----- */
.aff-page .res-info-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.aff-page .res-info-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 20px;
  box-shadow: 0 4px 18px rgba(31,22,18,0.06), inset 0 0 0 1px rgba(156,123,26,0.08);
}
.aff-page .res-info-card__label{
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.aff-page .res-info-card__value{
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
  line-height: 1.2;
}
.aff-page .res-info-card__note{
  font-size: 13px;
  color: var(--cream-dim);
  line-height: 1.5;
}

/* ----- SWIPE BLOCKS (emails, social, ads) ----- */
.aff-page .swipe-block{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 200ms ease;
}
.aff-page .swipe-block:hover{
  border-color: rgba(156,123,26,0.30);
  box-shadow: 0 4px 18px rgba(31,22,18,0.06);
}
.aff-page .swipe-block__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--surface);
  border-radius: 10px;
  transition: background 160ms ease;
}
.aff-page .swipe-block.is-open .swipe-block__header{
  background: rgba(156,123,26,0.05);
  border-radius: 10px 10px 0 0;
}
.aff-page .swipe-block__header-info{
  flex: 1;
  min-width: 0;
}
.aff-page .swipe-block__label{
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
  line-height: 1.35;
}
.aff-page .swipe-block__meta{
  font-size: 12.5px;
  color: var(--cream-dim);
  line-height: 1.4;
}
.aff-page .swipe-block__badge{
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  flex-shrink: 0;
}
.aff-page .swipe-block__badge--email{ background: rgba(156,123,26,0.12); color: var(--gold); }
.aff-page .swipe-block__badge--social{ background: rgba(156,123,26,0.12); color: var(--gold); }
.aff-page .swipe-block__badge--ad{ background: rgba(156,123,26,0.12); color: var(--gold); }
.aff-page .swipe-block__badge--resource{ background: rgba(156,123,26,0.12); color: var(--gold); }
.aff-page .swipe-block__toggle{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 200ms ease;
}
.aff-page .swipe-block.is-open .swipe-block__toggle{ transform: rotate(180deg); }
.aff-page .swipe-block__body{
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
}
.aff-page .swipe-block.is-open .swipe-block__body{ display: block; }

/* Copy button */
.aff-page .swipe-copy-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 5px;
  cursor: pointer;
  margin-top: 14px;
  transition: all 160ms ease;
}
.aff-page .swipe-copy-btn:hover{
  background: rgba(156,123,26,0.08);
}
.aff-page .swipe-copy-btn.is-copied{
  background: var(--gold);
  color: var(--bg);
}
.aff-page .swipe-copy-btn svg{ width: 14px; height: 14px; }

/* Swipe content text */
.aff-page .swipe-content{ padding-top: 16px; }
.aff-page .swipe-content h4{
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 18px 0 10px;
}
.aff-page .swipe-content h4:first-child{ margin-top: 0; }
.aff-page .swipe-content p{
  font-size: 15px;
  line-height: 1.65;
  color: var(--cream);
  margin: 0 0 12px;
}
.aff-page .swipe-content .subject-line{
  font-size: 14.5px;
  color: var(--cream);
  margin: 0 0 6px;
  padding-left: 12px;
  border-left: 2px solid rgba(156,123,26,0.40);
}
.aff-page .swipe-content .email-body{
  font-size: 14.5px;
  color: var(--cream);
  line-height: 1.7;
  white-space: pre-wrap;
}
.aff-page .swipe-content .placeholder{
  display: inline-block;
  padding: 1px 6px;
  background: rgba(156,123,26,0.15);
  color: var(--gold);
  font-weight: 600;
  border-radius: 3px;
  font-size: 0.92em;
}
.aff-page .swipe-content .tip{
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(156,123,26,0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 5px 5px 0;
  font-size: 13.5px;
  color: var(--cream);
  line-height: 1.55;
}

/* ----- DOWNLOAD CARDS ----- */
.aff-page .res-download-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.aff-page .res-download-card{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: all 180ms ease;
  box-shadow: 0 4px 18px rgba(31,22,18,0.04), inset 0 0 0 1px rgba(156,123,26,0.06);
}
.aff-page .res-download-card:hover{
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(156,123,26,0.15);
}
.aff-page .res-download-card__icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(156,123,26,0.10);
  color: var(--gold);
  border-radius: 6px;
}
.aff-page .res-download-card__icon svg{ width: 22px; height: 22px; }
.aff-page .res-download-card__info{ flex: 1; min-width: 0; }
.aff-page .res-download-card__name{
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 3px;
}
.aff-page .res-download-card__desc{
  font-size: 12.5px;
  color: var(--cream-dim);
  line-height: 1.45;
}

/* ----- CHECKLIST ----- */
.aff-page .res-checklist{
  list-style: none;
  margin: 0;
  padding: 0;
}
.aff-page .res-checklist li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15.5px;
  color: var(--cream);
  line-height: 1.55;
}
.aff-page .res-checklist li + li{ border-top: 1px solid var(--line); }
.aff-page .res-checklist__icon{
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(156,123,26,0.12);
  color: var(--gold);
  border-radius: 4px;
}

/* ----- CTA BANNER (used for terms link) ----- */
.aff-page .aff-banner{
  margin: 24px 0;
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--surface), rgba(156,123,26,0.06));
  border: 1px solid var(--gold);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 28px rgba(156,123,26,0.10), inset 0 0 0 1px rgba(156,123,26,0.10);
}
.aff-page .aff-banner h3{
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 10px;
}
.aff-page .aff-banner p{
  font-size: 15px;
  color: var(--cream-dim);
  margin: 0 0 18px;
  line-height: 1.5;
}

/* ----- VIDEO MODAL ----- */
.aff-video-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.aff-video-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(31,22,18,0.06), inset 0 0 0 1px rgba(156,123,26,0.06);
  transition: all 180ms ease;
}
.aff-video-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(156,123,26,0.18);
  border-color: rgba(156,123,26,0.30);
}
.aff-video-thumb{
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #1F1612, #5A4636);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.aff-video-poster{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%; /* show face area + setting for portrait reels */
  z-index: 1;
  transition: transform 320ms ease, filter 280ms ease;
}
.aff-video-thumb:hover .aff-video-poster{
  transform: scale(1.04);
  filter: brightness(0.78);
}
.aff-video-thumb::before{
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.45) 90%);
  z-index: 2;
  opacity: 0.55;
  transition: opacity 220ms ease;
}
.aff-video-thumb:hover::before{ opacity: 0.85; }
.aff-video-play{
  position: absolute;
  left: 50%;
  top: 65%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 64px;
  height: 64px;
  background: rgba(156,123,26,0.94);
  color: #1F1612;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(0,0,0,0.55), 0 0 0 2px rgba(255,255,255,0.18) inset;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.aff-video-thumb:hover .aff-video-play{
  transform: translate(-50%, -50%) scale(1.10);
  box-shadow: 0 10px 36px rgba(0,0,0,0.65), 0 0 0 2px rgba(255,255,255,0.32) inset;
}
.aff-video-play svg{ width: 28px; height: 28px; margin-left: 3px; }
.aff-video-body{ padding: 14px 16px 16px; }
.aff-video-title{
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 6px;
  line-height: 1.3;
}
.aff-video-desc{
  font-size: 13px;
  color: var(--cream-dim);
  line-height: 1.5;
  margin: 0 0 12px;
}
.aff-video-dl{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}
.aff-video-dl svg{ width: 13px; height: 13px; }

.aff-modal{
  position: fixed;
  inset: 0;
  background: rgba(31,22,18,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.aff-modal.is-open{ display: flex; }
.aff-modal-inner{
  position: relative;
  width: 100%;
  max-width: 920px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.aff-modal-close{
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: #1F1612;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.aff-modal-close svg{ width: 20px; height: 20px; }
.aff-modal-video{
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}
.aff-modal-video video{ width: 100%; height: 100%; display: block; }

/* ----- GRAPHICS CATALOG ----- */
.aff-page img{ max-width: 100%; height: auto; }
.aff-page a[download]{ word-break: break-word; }

/* ----- FAQ ----- */
.aff-faq{
  margin-top: 20px;
}
.aff-faq__item{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 160ms ease;
}
.aff-faq__item:hover{ border-color: rgba(156,123,26,0.25); }
.aff-faq__q{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}
.aff-faq__q h3{
  font-size: 15.5px;
  font-weight: 700;
  color: var(--cream);
  margin: 0;
  line-height: 1.4;
}
.aff-faq__toggle{
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: transform 200ms ease;
}
.aff-faq__toggle svg{ width: 18px; height: 18px; }
.aff-faq__item.is-open .aff-faq__toggle{ transform: rotate(180deg); }
.aff-faq__a{
  display: none;
  padding: 0 20px 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--cream-dim);
}
.aff-faq__item.is-open .aff-faq__a{ display: block; }

/* ----- FINAL SIGNUP BAND ----- */
.aff-signup-band{
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  border-top: 1px solid var(--line);
}
.aff-signup-band h2{
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--cream);
  margin: 0 0 16px;
}
.aff-signup-band p{
  font-size: 17px;
  color: var(--cream-dim);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Utility */
.aff-page .res-cta-banner{ display: none; } /* hide any leftover */
.aff-page strong{ color: var(--cream); }
.aff-page em{ color: var(--gold); font-style: italic; }
.aff-page table{ width: 100%; border-collapse: collapse; margin: 14px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.aff-page th, .aff-page td{ padding: 10px 14px; text-align: left; font-size: 14px; color: var(--cream); border-bottom: 1px solid var(--line); }
.aff-page th{ background: rgba(156,123,26,0.08); color: var(--gold); font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.aff-page tr:last-child td{ border-bottom: none; }

/* ===================================================================
   BECKY AFFILIATE INTRO VIDEO — Kartra player with pin-stripe glow box
   Uses Kartra-native 16:9 aspect (videos are always letterboxed to 16:9
   by Kartra, even if the source is portrait). Frame is constrained to
   a moderate width so it doesn't dominate the page.
   =================================================================== */
.aff-opt-becky-intro{
  text-align: center;
}
.aff-opt-becky-intro .res-section__title{
  margin-bottom: 12px;
}
.aff-opt-becky-intro .res-section__title em{
  color: var(--gold);
  font-style: italic;
}
.aff-opt-becky-intro .res-section__lead{
  max-width: 720px;
  margin: 0 auto 32px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream-dim);
}
.aff-becky-video-wrap{
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 760px;
  padding: 0 8px;
}
.aff-becky-video-frame{
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(160deg, rgba(255,250,236,0.95) 0%, rgba(250,243,228,0.85) 100%);
  border: 1px solid rgba(156,123,26,0.35);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.55) inset,
    0 0 0 2px rgba(156,123,26,0.18),
    0 18px 48px -16px rgba(156,123,26,0.45),
    0 4px 18px -6px rgba(31,22,18,0.18);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  overflow: hidden;
}
.aff-becky-video-frame:hover{
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.55) inset,
    0 0 0 2px rgba(156,123,26,0.32),
    0 24px 60px -14px rgba(156,123,26,0.6),
    0 6px 22px -6px rgba(31,22,18,0.22);
  transform: translateY(-2px);
}
.aff-becky-video-frame::before{
  /* outer pin-stripe halo */
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(156,123,26,0.32), rgba(156,123,26,0.06) 50%, rgba(156,123,26,0.32));
  z-index: -1;
  opacity: 0.7;
  filter: blur(1px);
}

/* Poster behind the player — shown until Kartra injects an iframe/video */
.aff-becky-video-frame .becky-video-poster{
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: cover;
  object-position: center 18%;
  border-radius: 10px;
  z-index: 0;
  opacity: 0.95;
  pointer-events: none;
}
.aff-becky-video-frame.has-player .becky-video-poster{ display: none; }

/* Gold play-hint over poster until the player loads */
.aff-becky-video-frame:not(.has-player)::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: rgba(156,123,26,0.22);
  border: 1.5px solid rgba(156,123,26,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 40px rgba(156,123,26,0.4);
  z-index: 1;
  pointer-events: none;
}
.aff-becky-video-play-arrow{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  margin: -12px 0 0 -7px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #9C7B1A;
  z-index: 2;
  pointer-events: none;
}
.aff-becky-video-frame.has-player .aff-becky-video-play-arrow{ display: none; }
.aff-becky-video-frame.has-player::after{ display: none; }

/* Kartra container fills frame, sits above poster */
.aff-becky-video-frame > div[class*="kartra_video_container"]{
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px) !important;
  height: calc(100% - 28px);
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  z-index: 3;
}
.aff-becky-video-frame iframe,
.aff-becky-video-frame video{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  border: 0;
  border-radius: 10px;
  background: #0a0604;
}

@media (max-width: 720px){
  .aff-becky-video-wrap{ max-width: 100%; padding: 0; }
  .aff-becky-video-frame{ max-width: 100%; padding: 10px; border-radius: 14px; }
  .aff-becky-video-frame .becky-video-poster,
  .aff-becky-video-frame > div[class*="kartra_video_container"]{
    inset: 10px;
    width: calc(100% - 20px) !important;
    height: calc(100% - 20px);
  }
  .aff-opt-becky-intro .res-section__lead{ font-size: 15px; padding: 0 8px; }
}
