/* =============================================
   HOW IT WORKS — UlapTax
   Brand: #ff7704 · #161616 · #fafbfd · Inter
   ============================================= */

.howitworks {
  position: relative;
  padding: 100px 24px;
  background: var(--clr-white);
  overflow: hidden;
}

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

.howitworks-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.howitworks-eyebrow {
  display: inline-block;
  background: var(--clr-primary-pale);
  color: var(--clr-primary);
  font-family: var(--ff-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.howitworks-title {
  font-family: var(--ff-display);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--clr-black);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
}
.howitworks-title .accent { color: var(--clr-primary); }
.howitworks-subtext {
  font-family: var(--ff-content);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-ink-muted);
  margin: 0;
}

.howitworks-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.howitworks-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--clr-primary), rgba(255, 119, 4, 0.25));
  z-index: 0;
}

.how-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.how-step__node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-white);
  border: 3px solid var(--clr-primary);
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-weight: 800;
  color: var(--clr-primary);
  font-size: 0.95rem;
  box-shadow:
    0 0 0 6px rgba(255, 119, 4, 0.08),
    0 8px 18px -6px rgba(22, 22, 22, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  margin-bottom: 22px;
}
.how-step:hover .how-step__node {
  transform: scale(1.08);
  background: var(--clr-primary);
  color: var(--clr-white);
  box-shadow:
    0 0 0 10px rgba(255, 119, 4, 0.14),
    0 10px 22px -6px rgba(22, 22, 22, 0.2);
}
.how-step__node--final {
  background: var(--clr-primary);
  color: var(--clr-white);
}

.how-step__body h3 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--clr-black);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  line-height: 1.3;
}
.how-step__body p {
  font-family: var(--ff-content);
  font-size: 0.88rem;
  color: var(--clr-ink-muted);
  line-height: 1.65;
  margin: 0 0 14px;
}

.how-step__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.how-step__chips span {
  font-family: var(--ff-content);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clr-primary);
  background: var(--clr-primary-pale);
  border: 1px solid rgba(255, 119, 4, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .howitworks-steps {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 560px;
    margin: 0 auto;
  }
  .howitworks-steps::before {
    top: 28px;
    bottom: 28px;
    left: 28px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--clr-primary), rgba(255, 119, 4, 0.25));
  }
  .how-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 22px;
    padding: 0;
  }
  .how-step__node {
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .how-step__body { padding-top: 6px; }
  .how-step__chips { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .howitworks { padding: 60px 16px; }
  .howitworks-header { margin-bottom: 40px; }
  .how-step__node { width: 48px; height: 48px; font-size: 0.85rem; }
  .howitworks-steps::before { left: 24px; }
}
