/* ============================================================
   EasyContent – Affiliate Program page styles
   Loaded only via $this->registerCssFile() on /affiliate-program.
   All custom keyframe/class names are prefixed aff- to avoid
   clashes with the shared animate.css and style.css.
   ============================================================ */


/* ----------------------------------------------------------
   Hero overrides
   ---------------------------------------------------------- */

/* Shrink the huge pricing-main bottom padding (320px) — not needed
   here since there is no pricing table beneath the hero */
.affiliate-hero .padding-block {
  padding: 70px 0 90px;
}

/* Custom hero container background: pricing bottom shape + tint (no pricing-plans.svg badges).
   Double-class selector (.b-section.affiliate-hero) raises specificity to (0,2,1)
   so it beats .b-main .container (0,1,1) even though affiliate.css loads before style.css. */
.b-section.affiliate-hero .container {
  background:
    url('../../images/landing-new/pricing-main-fon.svg') center bottom / cover no-repeat,
    linear-gradient(135deg, #EEF5FF 0%, #F0EAFF 100%);
  border: 1px solid #D6E8FD;
  box-shadow: 0 24px 60px -30px rgba(28, 93, 227, 0.22);
}

/* Animate hero headline and sub-elements on load */
.affiliate-hero .b-content-title__item {
  animation: affFadeUp 0.6s ease both;
}

.affiliate-hero .aff-hero-sub {
  animation: affFadeUp 0.6s ease 0.1s both;
}

.affiliate-hero .pricing-outcome-bullets {
  animation: affFadeUp 0.6s ease 0.18s both;
}

.affiliate-hero .trial-buttons-block {
  animation: affFadeUp 0.6s ease 0.26s both;
}

.affiliate-hero .aff-stats {
  animation: affFadeUp 0.6s ease 0.34s both;
}

.affiliate-hero .aff-hero-img-wrap {
  animation: affFadeUp 0.7s ease 0.45s both;
}

/* Hero subtext */
.aff-hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: #4D5369;
  text-align: center;
  max-width: 600px;
  margin: 0.25rem auto 0;
}

.aff-hero-sub strong {
  color: #0961DB;
  font-weight: 700;
}

/* Hero illustration */
.aff-hero-img-wrap {
  width: 100%;
  max-width: 780px;
  margin: 2rem auto 0;
}

.aff-hero-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  box-shadow: 0 16px 48px rgba(9, 97, 219, 0.12);
}

/* CTA button pulse after load */
.affiliate-hero .purple-btn:not(.un-background) {
  animation: affBtnPulse 2.4s ease 1.2s 3;
}

/* Hero and CTA join buttons: let them grow to fit their text naturally */
.affiliate-hero .trial-buttons-block .purple-btn,
.aff-cta__btns .purple-btn {
  width: auto;
  padding: 0 32px;
}


/* ----------------------------------------------------------
   Affiliate stats bar
   ---------------------------------------------------------- */

.aff-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: 1.75rem;
  padding: 1.125rem 1rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #DDE6F0;
  box-shadow: 0 2px 12px rgba(9, 97, 219, 0.07);
  max-width: 620px;
}

.aff-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 1.5rem;
}

.aff-stat__num {
  font-size: 26px;
  font-weight: 800;
  color: #0961DB;
  line-height: 1.1;
}

.aff-stat__label {
  font-size: 11px;
  font-weight: 600;
  color: #8A94A6;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.aff-stat__sep {
  width: 1px;
  background: #DDE6F0;
  align-self: stretch;
  margin: 0.25rem 0;
}


/* ----------------------------------------------------------
   Section titles (shared helper for all aff- sections)
   ---------------------------------------------------------- */

.aff-section .b-content-top {
  font-size: 26px;
  line-height: 1.35;
}


/* ----------------------------------------------------------
   Deal section: 30% + 20% two-card block
   ---------------------------------------------------------- */

.aff-deal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.aff-deal-card {
  border-radius: 20px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.aff-deal-card--earn {
  background: linear-gradient(135deg, #0961DB 0%, #7C3AED 100%);
}

.aff-deal-card--save {
  background: linear-gradient(135deg, #E8F1FF 0%, #EFE8FF 100%);
  border: 1px solid #D6E4FB;
}

.aff-deal-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aff-deal-card--earn .aff-deal-card__icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.aff-deal-card--save .aff-deal-card__icon {
  background: rgba(9, 97, 219, 0.1);
  color: #0961DB;
}

.aff-deal-card__num {
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.aff-deal-card--earn .aff-deal-card__num {
  color: #fff;
}

.aff-deal-card--save .aff-deal-card__num {
  color: #0961DB;
}

.aff-deal-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.aff-deal-card--earn .aff-deal-card__title {
  color: #fff;
}

.aff-deal-card--save .aff-deal-card__title {
  color: #000929;
}

.aff-deal-card__desc {
  font-size: 14px;
  line-height: 1.65;
}

.aff-deal-card--earn .aff-deal-card__desc {
  color: rgba(255, 255, 255, 0.88);
}

.aff-deal-card--save .aff-deal-card__desc {
  color: #4D5369;
}

.aff-deal-card__pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  align-self: flex-start;
  margin-top: auto;
}

.aff-deal-card--earn .aff-deal-card__pill {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

.aff-deal-card--save .aff-deal-card__pill {
  background: rgba(9, 97, 219, 0.1);
  color: #0961DB;
}


/* ----------------------------------------------------------
   Earnings example callout
   ---------------------------------------------------------- */

.aff-earnings {
  width: 100%;
  background: #fff;
  border: 1px solid #DDE6F0;
  border-radius: 16px;
  padding: 2rem 2.25rem 2.25rem;
}

.b-content-block p.aff-earnings__heading {
  font-size: 16px;
  font-weight: 500;
  color: #000929;
  margin: 0;
  padding: 0 0 28px;
  text-align: center;
  line-height: 1.4;
}

.aff-earnings__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.aff-col-plan       { width: 22%; }
.aff-col-price      { width: 22%; }
.aff-col-commission { width: 28%; }

.aff-earnings__table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8A94A6;
  padding: 0 1rem 0.875rem;
  text-align: left;
  border-bottom: 1px solid #EEF2F7;
}

.aff-earnings__table th:nth-child(2),
.aff-earnings__table th:nth-child(3),
.aff-earnings__table th:nth-child(4) {
  text-align: right;
}

.aff-earnings__table td {
  font-size: 14px;
  color: #000929;
  padding: 1rem 1rem;
  border-bottom: 1px solid #EEF2F7;
  vertical-align: middle;
}

.aff-earnings__table td:nth-child(2),
.aff-earnings__table td:nth-child(3),
.aff-earnings__table td:nth-child(4) {
  text-align: right;
}

.aff-earnings__table tr:last-child td {
  border-bottom: none;
}

.aff-earn-val {
  font-size: 14px;
  font-weight: 600;
  color: #0961DB;
}

.b-content-block p.aff-earnings__note {
  font-size: 13px;
  font-weight: normal;
  line-height: 1.6;
  color: #4D5369;
  margin: 0;
  padding: 1.75rem 0 0;
  text-align: center;
  border-top: 1px solid #EEF2F7;
}

.aff-earnings__note strong {
  font-weight: 600;
  color: #000929;
}

.b-content-block p.aff-earnings__scenario-line {
  font-size: 15px;
  font-weight: normal;
  line-height: 1.6;
  color: #4D5369;
  margin: 1.25rem 0 0;
  padding: 0.875rem 1.25rem;
  text-align: center;
  background: #F4F8FF;
  border: 1px solid #D6E8FD;
  border-radius: 12px;
}

.aff-earnings__scenario-line strong {
  font-weight: 700;
  color: #0961DB;
}

.b-content-block p.aff-earnings__footnote {
  font-size: 12px;
  font-weight: normal;
  line-height: 1.5;
  color: #8A94A6;
  margin: 0;
  padding: 0.875rem 0 0;
  text-align: center;
}


/* ----------------------------------------------------------
   How It Works – 4-step grid
   ---------------------------------------------------------- */

.aff-how-intro {
  margin-bottom: 2rem !important;
}

.why-easycontent .b-content-block.aff-how-block {
  padding: 3.75rem;
  box-sizing: border-box;
}

.aff-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
  align-items: stretch;
}

/* Step cards — circular illustration + centered text */
.aff-step-card {
  background: #fff;
  border: 1px solid #DDE6F0;
  border-radius: 16px;
  padding: 1.5rem 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.625rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.aff-step-card.is-visible:hover {
  box-shadow: 0 8px 28px -8px rgba(9, 97, 219, 0.14);
  transform: translateY(-2px);
}

.aff-step-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 180px;
  margin: 0 0 0.25rem;
}

.aff-step-illustration {
  display: block;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.aff-step-title {
  font-size: 16px;
  font-weight: 700;
  color: #000929;
  line-height: 1.35;
}

.b-content-block p.aff-step-desc {
  font-size: 14px;
  font-weight: normal;
  line-height: 1.55;
  color: #4D5369;
  margin: 0;
  padding: 0;
  text-align: center;
}


/* ----------------------------------------------------------
   Case study cards
   ---------------------------------------------------------- */

.aff-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.aff-case-card {
  background: #fff;
  border: 1px solid #DDE6F0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.aff-case-card:hover {
  color: inherit;
  text-decoration: none;
}

.aff-case-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  padding: 14px;
}

/* Per-brand backdrop — matches the gradient used on each case study's own hero */
.aff-case-card__logo--teambuilding {
  background: linear-gradient(135deg, #ff5f6d 0%, #ff9145 100%);
}

.aff-case-card__logo--zizzo {
  background: linear-gradient(135deg, #7789a0 0%, #5c7085 100%);
}

/* Wordmark-style logos (transparent background, wide aspect) */
.aff-case-card__logo img {
  max-width: 170px;
  max-height: 38px;
  object-fit: contain;
}

/* Square brand-mark logos rendered as a filled tile, same treatment as the hero */
img.aff-case-card__logo--square {
  width: 56px;
  height: 56px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(20, 30, 60, 0.22);
}

.aff-case-card__body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
  text-align: left;
}

.aff-case-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.aff-case-card__name {
  font-size: 17px;
  font-weight: 700;
  color: #000929;
}

.b-content-block p.aff-case-card__desc {
  font-size: 13.5px;
  font-weight: normal;
  line-height: 1.6;
  color: #4D5369;
  margin: 0;
  padding: 0;
  text-align: left;
  flex: 1;
}

.aff-case-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 14px;
  font-weight: 600;
  color: #0961DB;
  text-decoration: none;
  margin-top: 0.375rem;
  transition: gap 0.2s ease;
}

.aff-case-card__link:hover {
  text-decoration: none;
  gap: 0.625rem;
}


/* ----------------------------------------------------------
   Commission Details & Terms grid
   ---------------------------------------------------------- */

.aff-terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.aff-term-card {
  background: #fff;
  border: 1px solid #DDE6F0;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.aff-term-card__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0961DB;
  flex-shrink: 0;
  margin-bottom: 0.1rem;
}

.aff-term-card__title {
  font-size: 14px;
  font-weight: 700;
  color: #000929;
}

.aff-term-card__text {
  font-size: 13px;
  line-height: 1.6;
  color: #4D5369;
}

/* ----------------------------------------------------------
   Zizzo case study page – coming soon section
   ---------------------------------------------------------- */

.zizzo-case-study-hero {
  background: linear-gradient(135deg, #F0F7FF 0%, #F3EEFF 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
}

.zizzo-case-study-hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.zizzo-case-study-hero__brand {
  font-size: 22px;
  font-weight: 700;
  color: #000929;
}

.zizzo-case-study-hero__tagline {
  font-size: 16px;
  color: #4D5369;
  margin: 0;
}

.zizzo-coming-soon-section .b-content-block {
  background: transparent;
  padding: 2rem 0;
  text-align: center;
}

.zizzo-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem;
  background: #F0F7FF;
  border-radius: 20px;
  border: 1px solid #D6E8FD;
}

.zizzo-coming-soon__icon {
  color: #7C3AED;
}

.zizzo-coming-soon__title {
  font-size: 24px;
  font-weight: 700;
  color: #000929;
  margin: 0;
}

.zizzo-coming-soon__text {
  font-size: 16px;
  line-height: 1.65;
  color: #4D5369;
  margin: 0;
  text-align: center;
}


/* ----------------------------------------------------------
   Final affiliate CTA band
   ---------------------------------------------------------- */

.aff-cta {
  border-radius: 32px;
  background: url('../../images/landing-new/rectangle-small.svg') no-repeat, linear-gradient(180deg, #59B5F9 0%, #1C5DE3 100%);
  padding: 3.75rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.aff-cta__title {
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  max-width: 700px;
}

.aff-cta__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.65;
  max-width: 620px;
  margin: 0;
}

.aff-cta__btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}

.aff-cta__contact {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.aff-cta__contact a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.aff-cta__contact a:hover {
  text-decoration: none;
}


/* ----------------------------------------------------------
   Scroll-reveal: cards start hidden, .is-visible transitions in
   Only applies when affiliate.css is loaded (affiliate page only)
   ---------------------------------------------------------- */

.aff-deal-card,
.aff-term-card,
.aff-case-card,
.aff-earnings {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.aff-step-card {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.aff-deal-card.is-visible,
.aff-term-card.is-visible,
.aff-case-card.is-visible,
.aff-earnings.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.aff-step-card.is-visible {
  opacity: 1;
}

/* Stagger siblings */
.aff-deal-card:nth-child(2),
.aff-case-card:nth-child(2) {
  transition-delay: 0.09s;
}

.aff-term-card:nth-child(2) { transition-delay: 0.07s; }
.aff-term-card:nth-child(3) { transition-delay: 0.14s; }
.aff-term-card:nth-child(4) { transition-delay: 0.21s; }
.aff-term-card:nth-child(5) { transition-delay: 0.28s; }
.aff-term-card:nth-child(6) { transition-delay: 0.35s; }

.aff-step-card:nth-child(2) { transition-delay: 0.07s; }
.aff-step-card:nth-child(3) { transition-delay: 0.14s; }
.aff-step-card:nth-child(4) { transition-delay: 0.21s; }


/* ----------------------------------------------------------
   Hover micro-interactions on cards
   ---------------------------------------------------------- */

.aff-deal-card:hover,
.aff-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(9, 97, 219, 0.14);
}

.aff-term-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(9, 97, 219, 0.09);
}

.aff-term-card:hover .aff-term-card__icon {
  transform: scale(1.1) rotate(-4deg);
}


/* ----------------------------------------------------------
   Keyframe animations (all prefixed aff-)
   ---------------------------------------------------------- */

@keyframes affFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes affBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(9, 97, 219, 0.28); }
  50%       { box-shadow: 0 0 0 10px rgba(9, 97, 219, 0); }
}


/* ----------------------------------------------------------
   Respect prefers-reduced-motion
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .affiliate-hero .b-content-title__item,
  .affiliate-hero .aff-hero-sub,
  .affiliate-hero .pricing-outcome-bullets,
  .affiliate-hero .trial-buttons-block,
  .affiliate-hero .aff-stats,
  .affiliate-hero .aff-hero-img-wrap,
  .affiliate-hero .purple-btn:not(.un-background) {
    animation: none;
  }

  .aff-deal-card,
  .aff-term-card,
  .aff-case-card,
  .aff-earnings,
  .aff-step-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ----------------------------------------------------------
   Responsive breakpoints
   ---------------------------------------------------------- */

@media (max-width: 960px) {
  .aff-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aff-terms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .affiliate-hero .padding-block {
    padding: 50px 0 60px;
  }

  .aff-deal-grid,
  .aff-case-grid,
  .aff-terms-grid {
    grid-template-columns: 1fr;
  }

  .aff-steps-grid {
    grid-template-columns: 1fr;
  }

  .why-easycontent .b-content-block.aff-how-block {
    padding: 25px 15px;
  }

  .aff-stat {
    padding: 0.25rem 1.125rem;
  }

  .aff-stat__sep {
    display: none;
  }

  .aff-deal-card__num {
    font-size: 42px;
  }

  .aff-cta__title {
    font-size: 24px;
  }

  .aff-earnings {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .b-content-block p.aff-earnings__heading {
    padding-bottom: 20px;
  }

  .aff-earnings__table th,
  .aff-earnings__table td {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 13px;
  }

  .aff-earn-val {
    font-size: 13px;
  }

  .b-content-block p.aff-earnings__note {
    padding-top: 1.25rem;
    font-size: 12.5px;
  }

  .b-content-block p.aff-earnings__scenario-line {
    font-size: 14px;
    padding: 0.75rem 1rem;
  }
}
