/* ===== seção "como funciona" (clara) — quatro passos, a estrutura se monta ===== */
.how {
  --h-text: #253561;
  --h-text-2: #5A688A;
  --h-text-3: #647088;
  --h-line: #D3DAE8;
  --h-line-2: #E4E9F2;
  color: var(--h-text);
  padding: clamp(80px, 10vw, 140px) 0 clamp(72px, 8vw, 110px);
}
.how__head { margin-bottom: clamp(44px, 5vw, 72px); }
.how__eyebrow {
  color: var(--h-text-3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.how__title {
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 14px;
  max-width: 22ch;
  text-wrap: balance;
}
.how__lead { margin: 0; color: var(--h-text-2); font-size: 17px; max-width: 54ch; }

/* os quatro passos, em linha, ligados por um fio */
.how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
}
/* o fio liga os círculos numerados (altura da figura + metade do círculo) */
.how__steps::before {
  content: "";
  position: absolute;
  left: 14px;
  right: calc(25% - 14px);
  top: 248px;
  height: 1px;
  background: var(--h-line);
}
.how__step { display: grid; align-content: start; }
.how__fig { height: 236px; }
.how__fig svg { display: block; width: 100%; height: 100%; }
.how__n {
  position: relative;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--h-line);
  background: var(--paper);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  color: var(--h-text-2);
  margin: -2px 0 16px;
  font-variant-numeric: tabular-nums;
}
.how__step:first-child .how__n { background: var(--h-text); color: var(--paper); border-color: var(--h-text); }
.how__name { margin: 0 0 8px; font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; letter-spacing: -0.015em; }
.how__desc { margin: 0; color: var(--h-text-2); font-size: 15px; max-width: 30ch; }
.how__meta { margin: 10px 0 0; font-size: 13px; color: var(--h-text-3); font-variant-numeric: tabular-nums; }
.how__meta b { color: var(--h-text); font-weight: 600; }
.how__you {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--h-line-2);
  font-size: 13.5px;
  color: var(--h-text-3);
  display: grid;
  gap: 3px;
}
.how__you b { color: var(--h-text-2); font-weight: 600; }

.how__cta {
  margin-top: clamp(44px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.how__btn {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  background: var(--h-text);
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background-color .35s;
}
.how__btn:hover { background: var(--ink); }
.how__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.how__cta-sub { margin: 0; color: var(--h-text-3); font-size: 14px; }

/* entrada: texto sobe por passo; as figuras montam (classe .is-in vem do JS) */
.js .how__step > :not(.how__fig) {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform 1s var(--ease-out-expo);
}
.how__steps.is-in .how__step > :not(.how__fig) { opacity: 1; transform: none; }
.how__steps.is-in .how__step:nth-child(2) > * { transition-delay: .35s; }
.how__steps.is-in .how__step:nth-child(3) > * { transition-delay: .7s; }
.how__steps.is-in .how__step:nth-child(4) > * { transition-delay: 1.05s; }

.iso-lt-cube { opacity: 0; }
.how__steps.is-in .iso-lt-cube { animation: iso-lt-assemble .9s var(--ease-out-expo) both; animation-delay: var(--d, 0s); }
@keyframes iso-lt-assemble { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: translateY(0); } }
.iso-lt-ground { fill: none; stroke: rgba(37, 53, 97, .10); stroke-width: 1; }
.iso-lt-ghost { fill: none; stroke: rgba(37, 53, 97, .35); stroke-width: 1.1; stroke-dasharray: 3 3; }

@media (max-width: 900px) {
  .how__steps { grid-template-columns: 1fr 1fr; }
  .how__steps::before { display: none; }
  .how__steps.is-in .how__step:nth-child(n) > * { transition-delay: 0s; }
}
@media (max-width: 560px) {
  .how__steps { grid-template-columns: 1fr; gap: 36px; }
  .how__fig { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .how__step > :not(.how__fig), .iso-lt-cube { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
}
