/* ==========================================================================
   COMMISSION STRUCTURE - 2-COLUMN SPLIT WITH STICKY LEFT & SCROLL-REVEAL BOXES
   - Left Column: Heading + Channel Partner Earnings Hero Card (Sticky on Desktop)
   - Right Column: Compact Small Boxes appearing sequentially on scroll
   - 100% Mobile Responsive
   - Pure Vanilla CSS & JS (Zero Python, Zero external dependencies)
   ========================================================================== */

#commissionSection {
  position: relative;
  background-color: #f8fafc;
  padding: 65px 0 75px;
  overflow: visible;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.commission-sticky-viewport {
  width: 100%;
}

.commission-layout-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 48px;
  align-items: flex-start;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Left Column: Sticky Hero Block
   -------------------------------------------------------------------------- */
.commission-left-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 5;
}

.commission-header-block .section-title {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #222e40;
  text-align: left;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.commission-header-block .section-subtitle {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.98rem;
  color: #64748b;
  text-align: left;
  margin: 0 0 16px 0;
  line-height: 1.55;
}

/* Hero Earnings Card — Premium Glass */
.commission-earnings-card {
  position: relative;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 22px;
  padding: 46px 40px;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.9) inset,
    0 16px 42px -6px rgba(15, 23, 42, 0.08),
    0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.35s ease;
  overflow: hidden;
}

/* Gradient top accent strip */
.commission-earnings-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0f172a, #334155, #0f172a);
  border-radius: 22px 22px 0 0;
  z-index: 1;
}

/* Subtle ambient orb */
.commission-earnings-card::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,23,42,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.commission-earnings-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.9) inset,
    0 26px 55px -10px rgba(15, 23, 42, 0.13),
    0 8px 20px rgba(0, 0, 0, 0.05);
  border-color: rgba(203, 213, 225, 0.5);
}

.earnings-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.48rem;
  font-weight: 700;
  color: #222e40;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.commission-earnings-card .pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  font-size: clamp(2.8rem, 4.8vw, 3.8rem);
  font-weight: 800;
  color: #222e40;
  margin: 14px 0 8px 0;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.earnings-caption {
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Right Column: Horizontal Feature Items with Scroll-Triggered Reveal (Image 2)
   -------------------------------------------------------------------------- */
.commission-right-col {
  width: 100%;
}

/* Horizontal Features Container (Box removed per user request) */
.commission-features-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  box-sizing: border-box;
  width: 100%;
}

.commission-features-card:hover {
  box-shadow: none;
}

.commission-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Horizontal Row Item - Generous spacing between each sentence */
.commission-feature-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 6px;
  border-bottom: 1px solid transparent;
  box-sizing: border-box;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.45s ease,
              background-color 0.2s ease, 
              padding-left 0.2s ease;
  will-change: opacity, transform;
  
  /* Initial hidden state: translated down and transparent */
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.commission-feature-item:last-child {
  border-bottom: none !important;
}

/* When in view / revealed: smoothly appear with scroll */
.commission-feature-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
  border-bottom-color: #e2e8f0;
  pointer-events: auto;
}

.commission-feature-item:hover {
  background: linear-gradient(165deg, #ffffff 0%, #fafbfd 100%);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.8) inset,
    0 10px 28px -4px rgba(15, 23, 42, 0.07);
  border-bottom-color: transparent;
  padding-left: 20px;
  border-radius: 14px;
}

/* Refined Checkmark Badge */
.feature-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1f5f9, #e8ecf1);
  border: 1.5px solid rgba(30, 41, 59, 0.5);
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.commission-feature-item:hover .feature-check {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  transform: scale(1.08);
}

/* Feature Text */
.feature-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.04rem;
  color: #334155;
  line-height: 1.65;
  flex: 1;
}

.feature-text strong {
  font-weight: 700;
  color: #1e293b;
}

/* Fallback / Backward Compatibility for Box Cards */
.commission-box-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.commission-box-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive Design: Tablet & Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .commission-layout-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .commission-left-col {
    position: relative;
    top: auto;
  }

  .commission-header-block .section-title,
  .commission-header-block .section-subtitle {
    text-align: center;
  }

  .commission-earnings-card {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .commission-features-card {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  #commissionSection {
    padding: 50px 0 60px;
  }

  .commission-earnings-card {
    padding: 24px 20px;
  }

  .commission-features-card {
    padding: 0;
  }

  .commission-feature-item {
    align-items: flex-start;
    gap: 14px;
    padding: 18px 8px;
  }

  .feature-check {
    font-size: 1.1rem;
    margin-top: 2px;
  }

  .feature-text {
    font-size: 0.92rem;
    line-height: 1.5;
  }
}
