/* Affiliate page — custom "How you earn" + "Who it's for" sections and hero fix.
   Styled to match the homepage (/) — Figtree, navy headings, slate body,
   sky/blue accents. Scoped to the affiliate page via .rb-site-header-page. */

@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

/* --------------------------------------------------------------------------
   Hero: the "Phone Mockup" placeholder reserves ~509px with no content, which
   stretches the blue hero far down on tablet/mobile. Desktop is unaffected
   (there it collapses to a few px in the row). Collapse it below desktop.
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  html.rb-site-header-page section[data-framer-name="Hero"] .framer-1nirivy {
    display: none !important;
  }

  html.rb-site-header-page section[data-framer-name="Hero"] .framer-9v6j03 {
    gap: 0 !important;
  }
}

/* Hide Framer extras without removing DOM (removing crashes React on resize) */
html.rb-site-header-page .rb-aff-hide {
  display: none !important;
}

/* Hero: hide "How it works" secondary CTA */
html.rb-site-header-page section[data-framer-name="Hero"] a[data-framer-name="Dashboard CTA"],
html.rb-site-header-page section[data-framer-name="Hero"] .framer-omgese {
  display: none !important;
}

/* Kill Framer's floating mobile "Apply to the program" pill */
html.rb-site-header-page .framer-16jxe13,
html.rb-site-header-page [class*="framer-16jxe13"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* --------------------------------------------------------------------------
   Shared section shell
   -------------------------------------------------------------------------- */
html.rb-site-header-page .rb-aff-section {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  font-family: "Figtree", "Figtree Placeholder", system-ui, -apple-system, sans-serif;
  scroll-margin-top: calc(var(--rb-header-h, 84px) + 16px);
}

html.rb-site-header-page .rb-aff-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 32px;
  box-sizing: border-box;
}

html.rb-site-header-page .rb-aff-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

html.rb-site-header-page .rb-aff-title {
  font-family: inherit;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: #0f172a;
  margin: 0;
  text-align: left;
  max-width: 760px;
}

/* Tasteful gradient accent bar under the title (color from the / page) */
html.rb-site-header-page .rb-aff-bar {
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0079b5 0%, #00ccff 100%);
}

/* --------------------------------------------------------------------------
   How you earn — borderless step flow + scratchy arrows between steps
   -------------------------------------------------------------------------- */
html.rb-site-header-page .rb-earn-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
  margin-top: 56px;
  position: relative;
}

html.rb-site-header-page .rb-earn-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  position: relative;
}

html.rb-site-header-page .rb-earn-num {
  font-family: inherit;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  background: linear-gradient(180deg, #38bdf8 0%, #2176ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #2176ff;
}

html.rb-site-header-page .rb-earn-step h3 {
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
  color: #0f172a;
  margin: 0;
}

html.rb-site-header-page .rb-earn-step p {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

html.rb-site-header-page .rb-earn-amt {
  color: #2176ff;
  font-weight: 700;
}

/* Scratchy / brush-drawn arrows — bigger, centered between adjacent numbers */
html.rb-site-header-page .rb-earn-arrow {
  position: absolute;
  top: 0;
  /* Sit between this step's number and the next — not glued to the column edge */
  left: 68%;
  width: 80px;
  height: 52px; /* match .rb-earn-num line box */
  z-index: 2;
  pointer-events: none;
  color: #2176ff;
  opacity: 0.92;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%) rotate(-4deg);
}

html.rb-site-header-page .rb-earn-arrow svg {
  display: block;
  width: 76px;
  height: 46px;
  overflow: visible;
}

html.rb-site-header-page .rb-earn-step:last-child .rb-earn-arrow {
  display: none;
}

/* --------------------------------------------------------------------------
   Who it's for — same clean, borderless style on a soft gray
   -------------------------------------------------------------------------- */
html.rb-site-header-page .rb-who {
  background: #f9fafb;
}

html.rb-site-header-page .rb-who-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}

html.rb-site-header-page .rb-who-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}

html.rb-site-header-page .rb-who-ic {
  width: auto;
  height: auto;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: none;
  color: #2176ff;
  flex: none;
  padding: 0;
}

html.rb-site-header-page .rb-who-ic svg {
  width: 26px;
  height: 26px;
  display: block;
}

html.rb-site-header-page .rb-who-item h3 {
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
  color: #0f172a;
  margin: 0;
}

html.rb-site-header-page .rb-who-item p {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

html.rb-site-header-page .rb-who-note {
  margin-top: 44px;
  padding: 18px 22px;
  border-left: 3px solid #2176ff;
  background: rgba(33, 118, 255, 0.06);
  border-radius: 0 8px 8px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #1e3a5f;
  max-width: 820px;
}

/* Bottom apply CTA under Who it's for */
html.rb-site-header-page .rb-aff-apply {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  background: #2176ff;
  color: #ffffff;
  font-family: "Figtree", "Figtree Placeholder", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s ease;
}

html.rb-site-header-page .rb-aff-apply:hover,
html.rb-site-header-page .rb-aff-apply:focus-visible {
  background: #1a5fd6;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   "Who it's for" header nav link (matches other nav items)
   -------------------------------------------------------------------------- */
html.rb-site-header-page .rb-header-mount .rb-who-nav {
  flex: none;
  height: auto;
  position: relative;
  white-space: pre;
  width: auto;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 810px) and (max-width: 1199.98px) {
  html.rb-site-header-page .rb-aff-inner {
    padding: 76px 28px;
  }

  html.rb-site-header-page .rb-aff-title {
    font-size: 38px;
  }

  html.rb-site-header-page .rb-earn-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }

  /* On 2-col: hide arrows that would sit at end of each row (step 2 & 4) */
  html.rb-site-header-page .rb-earn-step:nth-child(2n) .rb-earn-arrow {
    display: none;
  }

  html.rb-site-header-page .rb-who-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

@media (max-width: 809.98px) {
  html.rb-site-header-page .rb-aff-inner {
    padding: 56px 20px;
  }

  html.rb-site-header-page .rb-aff-title {
    font-size: 30px;
    letter-spacing: -1px;
  }

  html.rb-site-header-page .rb-earn-steps {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 44px;
  }

  html.rb-site-header-page .rb-earn-num {
    font-size: 44px;
  }

  /* Stacked: show downward scratchy arrows between steps */
  html.rb-site-header-page .rb-earn-arrow {
    top: auto;
    right: auto;
    left: 4px;
    bottom: -30px;
    width: 40px;
    height: 36px;
    transform: rotate(84deg);
  }

  html.rb-site-header-page .rb-earn-arrow svg {
    width: 36px;
    height: 28px;
  }

  html.rb-site-header-page .rb-earn-step:last-child .rb-earn-arrow {
    display: none;
  }

  html.rb-site-header-page .rb-who-list {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 44px;
  }
}
