/* =========================================================
   sections/convite.css — Seção "Como Funciona" (4 passos)
                        + CTA integrado ao final dos steps
   ========================================================= */

.convite-section {
  padding-block: 32px;
  border-top: 1px solid var(--gray-border);
}

/* ---------------------------------------------------------
   GRID DE STEPS: vertical mobile → horizontal desktop
   --------------------------------------------------------- */
.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (min-width: 900px) {
  .steps-grid {
    flex-direction: row;
    align-items: stretch;
  }
}

.step-card {
  flex: 1;
  background: var(--gray-dark);
  border: 1px solid var(--gray-border);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  transition: background var(--ease);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--red);
  transition: height var(--ease-med);
}
.step-card:hover { background: #1e1e1e; }
.step-card:hover::before { height: 100%; }

.step-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--red);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 10px;
}

.step-content { display: flex; flex-direction: column; gap: 8px; }

.step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
}

.step-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.step-desc strong { color: var(--white); }

/* Conector → entre steps */
.step-connector {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gray-border);
  flex-shrink: 0;
  padding: 0 2px;
}
@media (min-width: 900px) {
  .step-connector { display: flex; align-self: center; }
}

/* ---------------------------------------------------------
   CTA INTEGRADO — "Pronto para Começar?"
   Aparece logo abaixo dos steps, em linha com o formulário.
   Mais compacto e direto do que uma seção separada.
   --------------------------------------------------------- */
.steps-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 48px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(254,0,0,0.06) 0%, rgba(254,0,0,0.02) 100%);
  border: 1px solid var(--red-border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.steps-cta::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px;
  height: 100%;
  background: var(--red);
}

@media (min-width: 768px) {
  .steps-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.steps-cta-text { max-width: 520px; }

.steps-cta-eyebrow {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.steps-cta-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.steps-cta-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.steps-cta-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
