.how-it-works {
  padding: 30px clamp(54px, 5.3vw, 100px) 0;
  background: #fffdf7;
}

.how-it-works-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 48px;
  align-items: center;
}

.how-it-works-eyebrow {
  margin: 0;
  color: #b65631;
  font-size: clamp(.95rem, 1.12vw, 1.18rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.how-it-works-rule {
  display: block;
  width: 84px;
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: #f0ba28;
}

.how-it-works h2 {
  margin: 16px 0 0;
  color: #075f82;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 4.6vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.how-it-works-intro {
  margin: 18px 0 0;
  color: #587680;
  font-size: clamp(1.18rem, 1.65vw, 1.68rem);
  line-height: 1.4;
}

.how-it-works-message {
  justify-self: end;
  padding-right: 18px;
  text-align: center;
  color: #075f82;
}

.how-it-works-message p {
  margin: 0;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2.5rem, 3.15vw, 3.3rem);
  font-style: italic;
  line-height: .98;
  transform: rotate(-5deg);
}

.how-it-works-message span {
  display: block;
  width: 82px;
  height: 4px;
  margin: 26px auto 0;
  border-radius: 999px;
  background: #f0ba28;
}

.how-it-works-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.process-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 30px;
  min-width: 0;
  min-height: 300px;
  padding: 30px 38px;
  border-radius: 18px;
}

.process-card--aqua { background: #ecf9fb; }
.process-card--gold { background: #fff8e8; }
.process-card--sage { background: #f1f8ec; }

.process-card-icon {
  display: grid;
  width: 104px;
  height: 104px;
  grid-row: 1;
  place-items: center;
  border-radius: 50%;
  color: #075f82;
}

.process-card--aqua .process-card-icon { background: #cceef2; }
.process-card--gold .process-card-icon { background: #ffe39a; }
.process-card--sage .process-card-icon { background: #dcedd1; }

.process-card-icon svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-card > div {
  align-self: center;
}

.process-step {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  color: #075f82;
  background: rgba(7, 95, 130, .06);
  font-size: clamp(.9rem, 1.08vw, 1.08rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.process-card h3 {
  margin: 18px 0 0;
  color: #075f82;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.15vw, 2.15rem);
  line-height: 1.05;
}

.process-card:first-child h3 {
  font-size: clamp(1.45rem, 1.8vw, 2.15rem);
  white-space: nowrap;
}

.process-card > p {
  grid-column: 1 / -1;
  margin: 22px 0 0;
  color: #496772;
  font-size: clamp(1.05rem, 1.48vw, 1.48rem);
  line-height: 1.45;
}

.how-it-works-closing {
  display: grid;
  grid-template-columns: 74px 1px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: 28px calc(clamp(54px, 5.3vw, 100px) * -1) 0;
  padding: 18px clamp(54px, 6.6vw, 124px);
  background: #e5f7f8;
  color: #075f82;
}

.how-it-works-closing svg {
  width: 70px;
  height: 70px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-it-works-closing > span {
  width: 1px;
  height: 66px;
  background: rgba(7, 95, 130, .3);
}

.how-it-works-closing em {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 1.8vw, 1.82rem);
  line-height: 1.25;
}

@media (max-width: 1040px) {
  .how-it-works-header {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .how-it-works-cards {
    gap: 18px;
  }

  .process-card {
    grid-template-columns: 82px minmax(0, 1fr);
    column-gap: 18px;
    min-height: 280px;
    padding: 24px;
  }

  .process-card-icon {
    width: 82px;
    height: 82px;
  }

  .process-card-icon svg {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 760px) {
  .how-it-works {
    padding: 36px 18px 0;
  }

  .how-it-works-header {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .how-it-works h2 {
    font-size: clamp(2.65rem, 11.5vw, 3.4rem);
  }

  .how-it-works-intro {
    font-size: 1.05rem;
  }

  .how-it-works-message {
    justify-self: start;
    padding: 0 0 0 8px;
    text-align: left;
  }

  .how-it-works-message p {
    font-size: 2.35rem;
  }

  .how-it-works-message span {
    width: 64px;
    margin: 18px 0 0;
  }

  .how-it-works-cards {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .process-card {
    grid-template-columns: 78px minmax(0, 1fr);
    column-gap: 18px;
    min-height: 0;
    padding: 22px;
  }

  .process-card-icon {
    width: 78px;
    height: 78px;
  }

  .process-card-icon svg {
    width: 44px;
    height: 44px;
  }

  .process-card h3 {
    margin-top: 12px;
    font-size: 1.65rem;
  }

  .process-card > p {
    margin-top: 18px;
    font-size: 1.02rem;
  }

  .how-it-works-closing {
    grid-template-columns: 56px 1px minmax(0, 1fr);
    gap: 16px;
    margin: 22px -18px 0;
    padding: 16px 18px;
  }

  .how-it-works-closing svg {
    width: 52px;
    height: 52px;
  }

  .how-it-works-closing > span {
    height: 54px;
  }

  .how-it-works-closing em {
    font-size: 1.15rem;
  }
}
