/* --- Component Base & Background Image --- */
.rmb-onboarding-section {
  position: relative;
  border-radius: 20px;
  padding: 4rem 3rem;
  margin-top: 4rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
  border-top: 4px solid #D4AF37;
  overflow: hidden;
  
  /* Background Image Setup */
  background-image: url('https://rocket-bookkeepers.com/sites/default/files/2026-08/onboarding.png');
  
  /* FIX 1: Anchors the image to the screen, stopping it from stretching vertically */
  background-attachment: fixed; 
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.rmb-section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* FIX 2: Dropped opacity from 0.88 to 0.45 so the image is actually visible */
  background-color: rgba(255, 255, 255, 0.45); 
  z-index: 1;
}

.rmb-onboarding-content-wrapper {
  position: relative;
  z-index: 2; 
}

/* --- Impactful Typographic Segue --- */
.rmb-segue-impact {
  margin-bottom: 5rem;
  max-width: 900px;
}

.rmb-segue-headline {
  font-size: 3.5rem;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.rmb-glow-text {
  background: linear-gradient(
    90deg, 
    #1A1A1A 0%, 
    #1A1A1A 35%, 
    #D4AF37 50%, 
    #1A1A1A 65%, 
    #1A1A1A 100%
  );
  background-size: 100% auto;
  color: #D4AF37; 
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: shineSweep 5s linear infinite;
}

@keyframes shineSweep {
  to {
    background-position: -1100% center;
  }
}

.rmb-segue-subtext {
  font-size: 1.15rem;
  color: #555555;
  line-height: 1.7;
  max-width: 950px;
}

/* --- True Staircase Layout (Diagonal Progression) --- */
.rmb-staircase-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.rmb-staircase-step {
  position: relative; /* Anchor for the absolute positioned arrows */
  z-index: 2; 
}

/* --- Perpendicular Connector Arrows --- */
.rmb-step-connector {
  position: absolute;
  top: 100%;
  left: 10%; /* Anchors the start of the arrow neatly under the card */
  margin-top: 2px;
  z-index: 1;
  pointer-events: none;
}

/* Pushes each step further right on desktop to form the staircase */
@media (min-width: 992px) {
  .step-1 { align-self: flex-start; margin-left: 0%; }
  .step-2 { align-self: flex-start; margin-left: 10%; }
  .step-3 { align-self: flex-start; margin-left: 20%; }
  .step-4 { align-self: flex-start; margin-left: 30%; }
}

/* --- Step Cards --- */
.rmb-onboard-card {
  background-color: #FFFFFF;
  border-radius: 15px;
  padding: 2rem 2rem;
  display: flex;
  gap: 20px;
  height: 100%;
  box-shadow: 0 5px 25px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.rmb-onboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.3);
}

.rmb-onboard-icon {
  width: 65px;
  height: 65px;
  background-color: rgba(212, 175, 55, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #D4AF37;
}

.rmb-onboard-icon svg {
  width: 32px;
  height: 32px;
}

.rmb-onboard-card:hover .rmb-onboard-icon {
  background-color: #D4AF37;
  color: #FFFFFF;
}

.rmb-onboard-content h4 {
  color: #1A1A1A;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.rmb-onboard-content p {
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991px) {
  .rmb-segue-headline { font-size: 2.75rem; }
}

@media (max-width: 767px) {
  .rmb-onboarding-section { padding: 3rem 1.5rem; }
  .rmb-segue-impact { margin-bottom: 3rem; }
  .rmb-segue-headline { font-size: 2.25rem; }
  .rmb-segue-subtext { font-size: 1.05rem; }
  
  .rmb-onboard-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .rmb-onboard-icon { margin: 0 auto 15px auto; }
}