/* =============================================================
   HOW IT WORKS — Redesigned sequential 4-step flow
   Step 2 (Proof Layer) is the visual hero of the section.
   ============================================================= */

.how-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.how-section__heading {
  text-align: left;
  margin-bottom: 12px;
}

.how-section__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 60px;
}

/* ---- flow container ---- */
.how-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

/* ---- shared step base ---- */
.how-step {
  position: relative;
}

.how-step__content {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 36px;
  background: rgba(17, 39, 71, 0.56);
  border: 1px solid rgba(12, 127, 218, 0.25);
  border-radius: 10px;
}

.how-step__number {
  position: absolute;
  top: -14px;
  left: 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  background: var(--page-bg-deep, #0b1f3a);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(12, 127, 218, 0.4);
  z-index: 2;
}

.how-step__icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(12, 127, 218, 0.12);
  border: 1px solid rgba(12, 127, 218, 0.3);
}

.how-step__icon img {
  width: auto;
  height: auto;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.how-step__copy h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--text, #ecf3f9);
}

.how-step__copy p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ---- connector arrow between steps ---- */
.how-step__connector {
  display: flex;
  justify-content: center;
  padding: 18px 0;
}

.how-step__connector::after {
  content: "";
  display: block;
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(12, 127, 218, 0.7), rgba(12, 127, 218, 0.15));
  position: relative;
}

/* ---- STEP 2 — PROOF LAYER HERO ---- */
.how-step--hero {
  margin: 0;
}

.how-step--hero .how-step__content--hero {
  flex-direction: column;
  gap: 0;
  background: linear-gradient(135deg, rgba(12, 83, 178, 0.28) 0%, rgba(7, 30, 65, 0.72) 100%);
  border: 2px solid rgba(12, 127, 218, 0.65);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(12, 127, 218, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.how-step__proof-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: linear-gradient(90deg, #0070C0, #1178cb);
  width: 100%;
}

.how-step__proof-badge span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.how-step__hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 36px 40px 40px;
}

.how-step--hero .how-step__icon--large {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
}

.how-step--hero .how-step__icon--large img {
  max-width: 72px;
  max-height: 72px;
}

.how-step__copy--emphasis {
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: rgba(236, 243, 249, 0.88) !important;
  margin-bottom: 20px !important;
}

.how-step--hero .how-step__copy h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

/* proof elements row */
.how-step__proof-elements {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 16px;
}

.how-step__proof-elements [role="listitem"] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue, #0c83df);
  background: rgba(12, 127, 218, 0.1);
  border: 1px solid rgba(12, 127, 218, 0.3);
  border-radius: 20px;
  padding: 5px 12px 5px 8px;
}

.how-step__proof-elements svg,
.how-step__proof-elements img {
  width: 16px;
  height: 16px;
  opacity: 0.9;
  flex-shrink: 0;
}

/* ---- STEPS 3 + 4 row ---- */
.how-steps-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

/* ---- list inside step 3 ---- */
.how-step__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.how-step__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.how-step__list li::before {
  content: "→";
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- final takeaway ---- */
.how-section__takeaway {
  margin-top: 48px;
  text-align: center;
  padding: 28px 32px;
  background: rgba(12, 127, 218, 0.07);
  border: 1px solid rgba(12, 127, 218, 0.2);
  border-radius: 8px;
}

.how-section__takeaway p {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text, #ecf3f9);
  margin: 0;
  font-style: italic;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .how-steps-row {
    grid-template-columns: 1fr;
  }

  .how-step__hero-inner {
    flex-direction: column;
    padding: 24px;
  }

  .how-step__content {
    flex-direction: column;
    padding: 28px 20px;
  }

  .how-section__sub {
    font-size: 16px;
  }

  .how-step--hero .how-step__copy h3 {
    font-size: 19px;
  }

  .how-step__proof-elements {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .how-section__takeaway p {
    font-size: 16px;
  }
}
