/* How It Works — logo / video / mobile process layout */
.hiw-section.hiw-section--process {
  background: #f4f7ff;
}

/* .hiw-section--process .container {
  max-width: 1320px;
} */

.hiw-process {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 72px;
  align-items: start;
}

.hiw-process__intro .section-label {
  margin-bottom: 16px;
}

.hiw-process__title {
  font-family: var(--font-heading, "Playfair Display", Georgia, serif);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.4px;
  color: var(--black, #1a1f36);
  margin: 0 0 18px;
}

.hiw-process__title em {
  font-style: italic;
  color: var(--midnight, #454da1);
}

.hiw-process__lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted, #6b7280);
  margin: 0 0 28px;
  max-width: 36rem;
}

.hiw-process__highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hiw-process__highlight {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(69, 77, 161, 0.08);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(27, 42, 107, 0.04);
}

.hiw-process__highlight-ico {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hiw-process__highlight-ico svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hiw-process__highlight-ico--blue {
  background: #e8f9fb;
  color: var(--turquoise, #21bfcf);
}

.hiw-process__highlight-ico--green {
  background: #ecfdf5;
  color: #059669;
}

.hiw-process__highlight-ico--purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.hiw-process__highlight h3 {
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--black, #1a1f36);
  margin: 0 0 6px;
  line-height: 1.35;
}

.hiw-process__highlight p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted, #6b7280);
  margin: 0;
}

.hiw-process__flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 8px;
}

.hiw-process__step {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0 26px;
}

.hiw-process__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 34px;
  top: calc(22px + 68px);
  bottom: -22px;
  width: 2px;
  background: var(--midnight, #454da1);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}

.hiw-process__marker {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(69, 77, 161, 0.14);
  box-shadow: 0 2px 8px rgba(27, 42, 107, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.hiw-process__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--midnight, #454da1);
  line-height: 1;
}

.hiw-process__marker svg {
  width: 20px;
  height: 20px;
  stroke: var(--turquoise, #21bfcf);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hiw-process__meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--midnight, #454da1);
  margin-bottom: 8px;
}

.hiw-process__body h3 {
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--black, #1a1f36);
  margin: 0 0 10px;
  line-height: 1.3;
}

.hiw-process__body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted, #6b7280);
  margin: 0 0 14px;
  max-width: 40rem;
}

.hiw-process__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #7b83a8;
  font-weight: 500;
}

.hiw-process__tags .hiw-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1;
  color: #053b2f;
  font-weight: 600;
  background: #ebfaf5;
  border: 1px solid rgba(69, 77, 161, 0.16);
  border-radius: 999px;
  padding: 6px 11px;
  white-space: nowrap;
}

@media (min-width: 1025px) {
  .hiw-process {
    align-items: start;
  }

  .hiw-process__intro {
    position: sticky;
    top: 108px;
    align-self: start;
  }

  .hiw-section--static-flow .hiw-process__flow {
    max-height: none;
    overflow: visible;
    scroll-snap-type: none;
    overscroll-behavior-y: auto;
    height: auto !important;
  }

  .hiw-section--static-flow .hiw-process__step {
    scroll-snap-align: none;
    scroll-snap-stop: unset;
    scroll-margin-top: 0;
    scroll-margin-bottom: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hiw-section--static-flow .hiw-process__step:first-child {
    padding-top: 0;
  }

  .hiw-section--static-flow .hiw-process__step:last-child {
    padding-bottom: 0;
  }

  .hiw-section--static-flow .hiw-process__step:not(:last-child)::after {
    top: calc(14px + 68px);
    bottom: -14px;
  }

  .hiw-section--static-flow .hiw-process__meta {
    margin-bottom: 4px;
  }

  .hiw-section--static-flow .hiw-process__body h3 {
    margin-bottom: 6px;
  }

  .hiw-section--static-flow .hiw-process__body p {
    margin-bottom: 6px;
  }

  .hiw-process__flow {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overscroll-behavior-y: auto;
    scroll-snap-type: y proximity;
    scroll-behavior: auto;
    scroll-padding-top: 12px;
    scroll-padding-bottom: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0;
  }

  .hiw-section--scroll-capture-active .hiw-process__intro {
    position: sticky;
    top: 108px;
    align-self: start;
  }

  .hiw-section--scroll-capture-active .hiw-process__flow {
    align-self: start;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior-y: contain;
    scroll-snap-type: none;
    contain: layout style;
  }

  .hiw-process__flow::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .hiw-process__step {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    scroll-margin-top: 12px;
    scroll-margin-bottom: 12px;
  }

  .hiw-process__step:first-child {
    scroll-margin-top: 0;
  }

  .hiw-process__step:last-child {
    padding-bottom: 0;
    scroll-snap-align: end;
  }

  .hiw-process__step:last-child .hiw-process__body p {
    margin-bottom: 10px;
  }

  .hiw-process__step:last-child .hiw-process__tags {
    margin-bottom: 0;
  }
}

@media (max-width: 1024px) {
  .hiw-process {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hiw-process__step:not(:last-child)::after {
    left: 33px;
  }
}

@media (max-width: 768px) {
  .hiw-section.hiw-section--process {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hiw-process__step {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0 20px;
  }

  .hiw-process__marker {
    width: 56px;
    height: 56px;
  }

  .hiw-process__step:not(:last-child)::after {
    left: 27px;
    top: calc(18px + 56px);
    bottom: -18px;
  }
}
