/* Source CSS for .fm-steps-section (How FlubbMind supports teens) */

.fm-steps-section {
  width: 100%;
  padding: 80px 40px 90px;
  background: #ffffff;
  font-family: 'F37 Moon', sans-serif;
  overflow: hidden;
}

.fm-steps-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.fm-steps-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8b80d0;
  text-align: center;
  margin: 0 0 14px;
}

.fm-steps-title {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 700;
  color: #18122e;
  text-align: center;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.fm-steps-subtitle {
  font-size: 0.97rem;
  color: #6b6080;
  text-align: center;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 64px;
}

/* Timeline track */
.fm-steps-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* Horizontal connecting line behind step bubbles (01 → 02 → 03) */
.fm-steps-track::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 2px;
  background: linear-gradient(90deg, #c4aeff 0%, #8b6ff5 50%, #c4aeff 100%);
  z-index: 0;
}

/* Each step */
.fm-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(.23,1,.32,1);
}

/* If JS adds .visible, no-op — steps are already visible by default */
.fm-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.fm-step:nth-child(1) { transition-delay: 0.05s; }
.fm-step:nth-child(2) { transition-delay: 0.2s; }
.fm-step:nth-child(3) { transition-delay: 0.35s; }

/* Step bubble (number circle) */
.fm-step-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #c4aeff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 16px rgba(116, 68, 242, 0.1);
}

.fm-step:hover .fm-step-bubble {
  border-color: #7444f2;
  box-shadow: 0 6px 24px rgba(116, 68, 242, 0.22);
  transform: scale(1.08);
}

.fm-step-bubble-inner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ede8ff 0%, #d8d2ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.fm-step:hover .fm-step-bubble-inner {
  background: linear-gradient(135deg, #8b6ff5 0%, #7444f2 100%);
}

.fm-step-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: #7444f2;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.fm-step:hover .fm-step-num {
  color: #ffffff;
}

/* Step card */
.fm-step-card {
  background: #faf9ff;
  border: 1px solid rgba(196, 188, 255, 0.35);
  border-radius: 20px;
  padding: 28px 24px 24px;
  width: 100%;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.fm-step:hover .fm-step-card {
  background: #ffffff;
  border-color: rgba(116, 68, 242, 0.25);
  box-shadow: 0 12px 40px rgba(116, 68, 242, 0.1);
  transform: translateY(-4px);
}

.fm-step-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fm-step-icon svg {
  width: 44px;
  height: 44px;
}

.fm-step-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a99df8;
  margin: 0 0 8px;
}

.fm-step-heading {
  font-size: 1.18rem;
  font-weight: 700;
  color: #18122e;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.25;
}

.fm-step-desc {
  font-size: 0.875rem;
  color: #6b6080;
  line-height: 1.75;
  margin: 0;
}

.fm-step-divider {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #c4aeff, #a99df8);
  border-radius: 2px;
  margin: 14px auto 14px;
  transition: width 0.3s ease;
}

.fm-step:hover .fm-step-divider {
  width: 52px;
}

/* Disclaimer + CTA */
.fm-steps-footer {
  text-align: center;
  margin-top: 52px;
}

.fm-steps-disclaimer {
  font-size: 0.8rem;
  color: #a099c0;
  margin: 0 0 24px;
  letter-spacing: 0.01em;
}

.fm-steps-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #7444f2;
  text-decoration: none;
  padding: 12px 28px;
  background: #f5f3ff;
  border-radius: 100px;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.fm-steps-cta:hover {
  background: #7444f2;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(116, 68, 242, 0.28);
}

/* Tablet — line rotates vertical */
@media (max-width: 800px) {
  .fm-steps-track {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .fm-steps-track::before {
    top: 28px;
    left: 50%;
    right: auto;
    width: 2px;
    height: calc(100% - 56px);
    background: linear-gradient(180deg, #c4aeff 0%, #8b6ff5 50%, #c4aeff 100%);
    transform: translateX(-50%);
  }

  .fm-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 480px;
    padding: 0 0 32px;
  }

  .fm-step-bubble {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .fm-step-card {
    text-align: left;
  }

  .fm-step-icon,
  .fm-step-divider {
    margin-left: 0;
  }
}

/* Mobile — line hidden */
@media (max-width: 500px) {
  .fm-steps-section { padding: 60px 20px 70px; }
  .fm-step { flex-direction: column; align-items: center; text-align: center; }
  .fm-step-bubble { margin-bottom: 20px; }
  .fm-steps-track::before { display: none; }
}
