.mpc-process {
  background: #f2f2f2;
  color: #191919;
}

.mpc-process__inner {
  padding-block: clamp(54px,4.6vw,86px);
}

.mpc-process__heading {
  text-align: center;
  margin: 0 auto clamp(25px,2.6vw,44px);
}

.mpc-process__heading h2 {
  font-size: clamp(34px,3.2vw,48px);
  line-height: 1.13;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 0 0 14px;
}

.mpc-process__heading p {
  font-size: clamp(16px,1.35vw,20px);
  line-height: 1.45;
  color: #656565;
  margin: 0 auto;
  max-width: 650px;
}

.mpc-process__panel {
  min-width: 0;
}

.mpc-process__steps {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: start;
  list-style: none;
  margin: 0;
  padding: 28px 24px 38px;
  gap: 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 22px;
}

.mpc-process__step {
  position: relative;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.mpc-process__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e2e2;
  border-radius: 11px;
  color: #ff7909;
  background: #f5f5f5;
  flex: none;
}

.mpc-process__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 100%;
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: #d1d1d1;
}

.mpc-process__step-copy {
  min-width: 0;
}

.mpc-process__step h3 {
  font-size: clamp(16px,1.45vw,23px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.022em;
  margin: 0 0 8px;
}

.mpc-process__step p {
  font-size: clamp(13px,1.04vw,16px);
  line-height: 1.48;
  color: #555;
  margin: 0 auto;
  max-width: 27ch;
}

.mpc-process__note {
  text-align: center;
  color: #656565;
  font-size: clamp(13px,1.05vw,16px);
  line-height: 1.5;
  margin: 18px 0 0;
}

@media (min-width:769px) and (max-width:1100px) {
  .mpc-process__steps {
    padding: 24px 16px 32px;
    gap: 14px;
  }

  .mpc-process__step:not(:last-child)::after {
    left: 100%;
    width: 14px;
  }

  .mpc-process__step h3 {
    font-size: 16px;
  }
}

@media (max-width:768px) {
  .mpc-process__inner.wrap {
    width: calc(100% - 64px);
    padding-block: 8px 54px;
  }

  .mpc-process__heading {
    margin-bottom: 24px;
  }

  .mpc-process__heading h2 {
    font-size: clamp(27px,6.1vw,38px);
    line-height: 1.15;
    letter-spacing: -.025em;
    margin-bottom: 12px;
  }

  .mpc-process__heading p {
    font-size: clamp(15px,3.7vw,17px);
    line-height: 1.45;
    max-width: 30ch;
  }

  .mpc-process__panel {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 18px;
    padding: 20px 17px 22px;
  }

  .mpc-process__steps {
    grid-template-columns: minmax(0,1fr);
    /* As três etapas com conector compartilham a altura da maior linha. */
    grid-template-rows: repeat(3,minmax(0,1fr)) auto;
    align-items: stretch;
    gap: 28px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .mpc-process__step {
    display: grid;
    grid-template-columns: 46px minmax(0,1fr);
    gap: 13px;
    align-items: start;
    text-align: left;
  }

  .mpc-process__icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  .mpc-process__icon svg {
    width: 26px;
    height: 26px;
  }

  .mpc-process__step:not(:last-child)::after {
    top: 50px;
    bottom: -24px;
    left: 21.5px;
    width: 2px;
    height: auto;
    min-height: 10px;
  }

  .mpc-process__step h3 {
    font-size: clamp(15px,3.8vw,18px);
    margin: 0 0 5px;
  }

  .mpc-process__step p {
    font-size: clamp(12px,3.25vw,15px);
    line-height: 1.42;
    max-width: none;
    margin: 0;
  }

  .mpc-process__note {
    text-align: left;
    font-size: 13px;
    margin: 26px 0 0;
  }
}

@media (max-width:390px) {
  .mpc-process__inner.wrap {
    width: calc(100% - 40px);
  }

  .mpc-process__panel {
    padding: 17px 12px 20px;
  }

  .mpc-process__step {
    grid-template-columns: 42px minmax(0,1fr);
    gap: 10px;
  }

  .mpc-process__icon {
    width: 42px;
    height: 42px;
  }

  .mpc-process__step:not(:last-child)::after {
    top: 46px;
    left: 19.5px;
  }
}

.mpc-process__panel {
  --mpc-step-accent: #ff7909;
}

.mpc-process__step h3 {
  transition: color .18s ease;
}

.mpc-process__icon {
  transition: background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.mpc-process__step.is-current .mpc-process__icon {
  background: var(--mpc-step-accent);
  border-color: var(--mpc-step-accent);
  color: #191919;
  box-shadow: 0 2px 8px #ff79093b;
}

.mpc-process__step.is-current h3 {
  color: #ad4900;
}

.mpc-process__step:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 25px;
  left: 100%;
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--mpc-step-accent);
  transform: scaleX(var(--step-progress,0));
  transform-origin: left center;
}

@media(min-width:769px) and (max-width:1100px) {
  .mpc-process__step:not(:last-child)::before {
    width: 14px;
  }
}

@media(min-width:769px) {
  .mpc-how-process-items .mpc-process__panel {
    padding: 20px 17px 22px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 18px;
  }

  .mpc-how-process-items .mpc-process__steps {
    grid-template-columns: minmax(0,1fr);
    /* As três etapas com conector compartilham a altura da maior linha. */
    grid-template-rows: repeat(3,minmax(0,1fr)) auto;
    align-items: stretch;
    gap: 28px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .mpc-how-process-items .mpc-process__step {
    display: grid;
    grid-template-columns: 46px minmax(0,1fr);
    gap: 13px;
    align-items: start;
    text-align: left;
  }

  .mpc-how-process-items .mpc-process__icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  .mpc-how-process-items .mpc-process__icon svg {
    width: 26px;
    height: 26px;
  }

  .mpc-how-process-items .mpc-process__step:not(:last-child)::after,.mpc-how-process-items .mpc-process__step:not(:last-child)::before {
    top: 50px;
    bottom: -24px;
    left: 21.5px;
    width: 3px;
    height: auto;
    min-height: 10px;
  }

  .mpc-how-process-items .mpc-process__step:not(:last-child)::before {
    transform: scaleY(var(--step-progress,0));
    transform-origin: top center;
  }

  .mpc-how-process-items .mpc-process__step h3 {
    font-size: 18px;
    margin: 0 0 5px;
    letter-spacing: -.022em;
  }

  .mpc-how-process-items .mpc-process__step p {
    font-size: 15px;
    line-height: 1.42;
    max-width: none;
    margin: 0;
  }

  .mpc-how-process-items .mpc-process__note {
    text-align: left;
    font-size: 13px;
    margin: 36px 0 0;
  }
}

@media(max-width:768px) {
  .mpc-process__step:not(:last-child)::after,.mpc-process__step:not(:last-child)::before {
    top: 50px;
    bottom: -24px;
    left: 21.5px;
    width: 3px;
    height: auto;
    min-height: 10px;
  }

  .mpc-process__step:not(:last-child)::before {
    transform: scaleY(var(--step-progress,0));
    transform-origin: top center;
  }

  body[data-page="como-funciona"] .mpc-process__step h3 {
    letter-spacing: -.022em;
  }
}

@media(max-width:390px) {
  .mpc-process__step:not(:last-child)::after,.mpc-process__step:not(:last-child)::before {
    top: 46px;
    left: 19.5px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .mpc-process__step h3,.mpc-process__icon {
    transition: none;
  }
}
