/* ============================================
   Costela e Cia — Como funciona (linha do tempo)
   ============================================ */

.steps {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(72px, 12vh, 152px) clamp(20px, 4vw, 64px);
}

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

.steps-head {
  max-width: 700px;
  margin-bottom: clamp(44px, 6.5vh, 84px);
}

.steps-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(18px, 2.6vh, 26px);
}

.steps-tag-rule {
  width: clamp(28px, 4vw, 54px);
  height: 2px;
  background: var(--accent);
}

.steps-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(31px, 4.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.steps-title em { font-style: italic; color: var(--accent-2); }

.steps-intro {
  margin-top: clamp(16px, 2.4vh, 24px);
  font-size: clamp(15px, 1.1vw, 17.5px);
  line-height: 1.62;
  color: var(--ink-soft);
}

/* ---- timeline ---- */
.steps-list {
  position: relative;
  max-width: 720px;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(36px, 5.5vh, 64px);
}

.step:last-child {
  padding-bottom: 0;
}

/* a linha do tempo — segmento entre um nó e o próximo */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 33px;
  top: 33px;
  bottom: -33px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    rgba(255, 106, 26, 0.7) 0%, var(--line-strong) 70%);
}

/* o nó — número incandescente dentro do círculo */
.step-node {
  position: relative;
  z-index: 1;
  width: 66px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 26px -10px rgba(255, 106, 26, 0.7);
}

.step-num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 27px;
  line-height: 1;
  color: var(--accent-2);
  background: linear-gradient(176deg, #ffe4b6 0%, #ff9a36 48%, #ec4a10 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step-body {
  padding-top: clamp(8px, 1.4vh, 16px);
}

.step-name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(21px, 2vw, 28px);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.step-desc {
  margin-top: 9px;
  max-width: 46ch;
  font-size: clamp(14px, 1.02vw, 16px);
  line-height: 1.62;
  color: var(--ink-soft);
}

/* ---- reveal (hooka no .is-revealed do reveal.js) ---- */
.steps-head > *,
.step {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.steps.is-revealed .steps-head > *,
.steps.is-revealed .step {
  opacity: 1;
  transform: translateY(0);
}
.steps.is-revealed .steps-tag { transition-delay: 0.08s; }
.steps.is-revealed .steps-title { transition-delay: 0.16s; }
.steps.is-revealed .steps-intro { transition-delay: 0.24s; }
.steps.is-revealed .step:nth-child(1) { transition-delay: 0.32s; }
.steps.is-revealed .step:nth-child(2) { transition-delay: 0.42s; }
.steps.is-revealed .step:nth-child(3) { transition-delay: 0.52s; }
.steps.is-revealed .step:nth-child(4) { transition-delay: 0.62s; }

@media (prefers-reduced-motion: reduce) {
  .steps-head > *,
  .step { opacity: 1; transform: none; transition: none; }
}

/* ---- responsivo ---- */
@media (max-width: 520px) {
  .step {
    grid-template-columns: 54px 1fr;
    gap: 18px;
  }
  .step:not(:last-child)::before {
    left: 27px;
    top: 27px;
    bottom: -27px;
  }
  .step-node {
    width: 54px;
    height: 54px;
  }
  .step-num { font-size: 22px; }
}
