/* ==========================================================================
   como-funciona.css — Seção "Como funciona o diagnóstico"
   (timeline horizontal, carrossel de passos, abas e layout vertical)
   ========================================================================== */

.cf__eyebrow {
  margin: 0 0 16px;
}

.cf__title {
  margin: 0 0 24px;
}

/* ── Timeline horizontal ─────────────────────────────────────────────── */

.cf-timeline {
  max-width: 1000px;
  margin: 72px auto 0;
  padding: 0 var(--gutter);
}

.cf-timeline__inner {
  position: relative;
}

.cf-timeline__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  column-gap: 4px;
}

.cf-timeline__line {
  position: absolute;
  top: 5px;
  left: calc(10%);
  right: calc(10%);
  height: 1px;
  background: var(--gold);
  z-index: 0;
}

.cf-timeline__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cf-timeline__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  margin-bottom: 14px;
}

.cf-timeline__dot--pulse {
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 5px rgba(200, 164, 78, 0.2);
  margin-bottom: 12px;
  animation: duoPulse 1.4s ease-in-out infinite;
}

.cf-timeline__label {
  font-size: clamp(9px, 2.6vw, 13px);
  color: var(--ink);
  font-weight: 600;
  text-align: center;
}

.cf-timeline__label--muted {
  letter-spacing: 0.02em;
  color: var(--muted);
}

.cf-timeline__label--result {
  font-size: clamp(9px, 2.6vw, 15px);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cf-timeline__icon {
  font-size: clamp(14px, 4vw, 20px);
  color: var(--ink);
  background: var(--paper);
  margin-bottom: 8px;
}

.cf-timeline__here {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 20%;
  margin: 10px 0 0;
}

.cf-timeline__here-icon {
  font-size: 16px;
  color: var(--gold);
}

.cf-timeline__here-label {
  font-size: clamp(9px, 2.6vw, 12px);
  color: var(--gold);
  white-space: nowrap;
}

/* ── Passos em carrossel ─────────────────────────────────────────────── */

.cf-cards {
  margin: 16px auto 0;
}

.cf-cards__track {
  gap: clamp(16px, 4vw, 40px);
  margin-bottom: 56px;
  padding-bottom: 8px;
}

.cf-card {
  flex-basis: min(78vw, 320px);
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
}

.cf-card__icon-circle {
  width: 48px;
  height: 48px;
  background: var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cf-card__icon {
  font-size: 24px;
  color: var(--gold);
}

.cf-card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 12px;
}

/* ── Passos em abas ──────────────────────────────────────────────────── */

.cf-tabs {
  max-width: 720px;
  margin: 16px auto 0;
  padding: 0 var(--gutter) 56px;
}

.cf-tabs__row {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.cf-tab {
  flex: 1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
}

.cf-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
}

.cf-tab__icon {
  font-size: 22px;
  color: var(--gold);
}

.cf-tab__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.cf-tab.is-active .cf-tab__label {
  color: #fff;
}

.cf-tab__panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
}

.cf-tab__panel-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ── Layout vertical ─────────────────────────────────────────────────── */

.cf-steps {
  max-width: 640px;
  margin: 64px auto 0;
  padding: 0 var(--gutter);
}

.cf-step {
  display: flex;
  gap: 24px;
}

.cf-step__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.cf-step__bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-step__icon {
  font-size: 26px;
  color: var(--gold);
}

.cf-step__line {
  width: 1px;
  flex: 1;
  background: var(--line);
  min-height: 40px;
}

.cf-step__content {
  padding-bottom: 40px;
}

.cf-step__num {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  text-transform: uppercase;
  font-weight: 700;
}

.cf-step__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin: 6px 0 12px;
}
