/* ==================================================================
   HOW IT WORKS -- timeline layout (desktop + mobile + dedicated page)
   ================================================================== */

/* ── Shared tokens ── */
.hiw-section {
  padding: 80px 0 96px;
  background: #fff;
}
.hiw-section .hiw-container {
  width: min(calc(100% - 64px), 1320px);
  margin: 0 auto;
}
.hiw-header {
  text-align: center;
  margin-bottom: 64px;
}
.hiw-header .hiw-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #0a6fb8;
  margin-bottom: 10px;
}
.hiw-header h2 {
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
  color: #0B2D5B;
  margin: 0 0 12px;
}
.hiw-header .hiw-sub {
  font-size: 17px;
  line-height: 1.5;
  color: #5F6C7B;
  font-weight: 500;
  margin: 0;
  max-width: 520px;
  margin-inline: auto;
}

/* ── Timeline rail ── */
.hiw-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Individual step ── */
.hiw-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  padding: 0 0 80px;
}
.hiw-step:last-child { padding-bottom: 0; }

/* ── Number badge ── */
.hiw-step__num {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0B2D5B;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(11, 45, 91, .18);
}

/* ── Vertical connector line ── */
.hiw-step::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 52px;
  bottom: -1px;
  width: 3px;
  background: linear-gradient(180deg, #0B2D5B 0%, #06B6D4 100%);
  transform: translateX(-50%);
  z-index: 1;
}
.hiw-step:last-child::before { display: none; }

/* ── Copy block ── */
.hiw-step__copy {
  padding-right: 32px;
}
.hiw-step--alt .hiw-step__copy {
  order: 2;
  padding-right: 0;
  padding-left: 32px;
}
.hiw-step__copy h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
  color: #0B2D5B;
  margin: 0 0 12px;
}
.hiw-step__copy > p {
  font-size: 16px;
  line-height: 1.6;
  color: #5F6C7B;
  margin: 0 0 24px;
  max-width: 440px;
}

/* ── Checkmark bullets ── */
.hiw-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hiw-checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hiw-check-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E8F7FD;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.hiw-check-icon svg {
  width: 14px;
  height: 14px;
  stroke: #06B6D4;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hiw-checks li strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0B2D5B;
  margin-bottom: 2px;
  line-height: 1.3;
}
.hiw-checks li span {
  font-size: 14px;
  line-height: 1.5;
  color: #5F6C7B;
}

/* ── Illustration block ── */
.hiw-step__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 32px;
}
.hiw-step--alt .hiw-step__media {
  order: 1;
  padding-left: 0;
  padding-right: 32px;
}
.hiw-step__media img {
  max-width: 380px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(11, 45, 91, .08));
}

/* ── Desktop CTA button ── */
.hiw-cta {
  text-align: center;
  margin-top: 56px;
}
.hiw-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 32px;
  background: #0B2D5B;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 26px;
  text-decoration: none;
  transition: background .2s;
}
.hiw-cta a:hover { background: #105EA8; }
.hiw-cta a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Breakpoint: tablets (901-1199) ── */
@media (min-width: 901px) and (max-width: 1199px) {
  .hiw-step { gap: 32px; }
  .hiw-step__copy h3 { font-size: 22px; }
  .hiw-step__media img { max-width: 300px; }
  .hiw-step__num { width: 44px; height: 44px; font-size: 18px; }
  .hiw-step::before { top: 44px; }
}

/* ── MOBILE layout (<= 900px) ── */
@media (max-width: 900px) {
  .hiw-section { padding: 48px 0 56px; }
  .hiw-section .hiw-container { width: calc(100% - 40px); }
  .hiw-header { margin-bottom: 40px; }
  .hiw-header h2 { font-size: 24px; }
  .hiw-header .hiw-sub { font-size: 15px; }

  .hiw-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 0 16px;
    padding: 0 0 48px;
  }

  /* Number on the left rail */
  .hiw-step__num {
    position: static;
    transform: none;
    width: 40px;
    height: 40px;
    font-size: 17px;
    grid-row: 1;
    grid-column: 1;
  }

  /* Vertical line below the number */
  .hiw-step::before {
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: -1px;
    width: 2px;
    transform: none;
  }

  /* Copy block spans full right column */
  .hiw-step__copy {
    grid-row: 1;
    grid-column: 2;
    padding: 0;
  }
  .hiw-step--alt .hiw-step__copy {
    order: unset;
    padding-left: 0;
  }
  .hiw-step__copy h3 { font-size: 20px; margin-bottom: 8px; }
  .hiw-step__copy > p { font-size: 14px; margin-bottom: 18px; }

  /* Hide illustrations on mobile */
  .hiw-step__media { display: none; }
  .hiw-step--alt .hiw-step__media { display: none; }

  /* Checks */
  .hiw-checks { gap: 12px; }
  .hiw-check-icon { width: 24px; height: 24px; }
  .hiw-check-icon svg { width: 12px; height: 12px; }
  .hiw-checks li strong { font-size: 14px; }
  .hiw-checks li span { font-size: 13px; }

  /* CTA */
  .hiw-cta { margin-top: 8px; }
  .hiw-cta a { width: 100%; justify-content: center; height: 48px; font-size: 15px; border-radius: 24px; }
}

/* ==================================================================
   DEDICATED HOW-IT-WORKS PAGE (work-timeline / work-step)
   ================================================================== */
.work-timeline {
  padding: 64px 0 80px;
  background: #fff;
}
.work-timeline__inner {
  width: min(calc(100% - 64px), 1100px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Vertical rail */
.work-timeline__inner::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #0B2D5B 0%, #06B6D4 100%);
}

.work-step {
  display: grid;
  grid-template-columns: 56px 1fr 1fr;
  gap: 0 40px;
  align-items: start;
  padding: 0 0 72px;
  position: relative;
}
.work-step:last-child { padding-bottom: 0; }

.work-step__number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0B2D5B;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(11, 45, 91, .18);
  grid-column: 1;
  grid-row: 1;
}

.work-step__copy {
  grid-column: 2;
  grid-row: 1;
  padding-top: 4px;
}
.work-step__copy span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #06B6D4;
  margin-bottom: 8px;
}
.work-step__copy h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
  color: #0B2D5B;
  margin: 0 0 12px;
}
.work-step__copy p {
  font-size: 15px;
  line-height: 1.6;
  color: #5F6C7B;
  margin: 0 0 20px;
  max-width: 440px;
}

/* Check-list reuse */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: #3a4a5a;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E8F7FD url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306B6D4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
  margin-top: 2px;
}

/* Media column */
.work-step__media {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
}
.work-step__media img {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 20px rgba(11, 45, 91, .07));
}

/* Alternate: illustration on left */
.work-step--alt .work-step__media { grid-column: 2; }
.work-step--alt .work-step__copy { grid-column: 3; }

/* ── Dedicated page mobile ── */
@media (max-width: 900px) {
  .work-timeline { padding: 32px 0 48px; }
  .work-timeline__inner {
    width: calc(100% - 40px);
    gap: 0;
  }
  .work-timeline__inner::before { left: 20px; width: 2px; }

  .work-step {
    grid-template-columns: 44px 1fr;
    gap: 0 14px;
    padding-bottom: 48px;
  }
  .work-step__number {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }
  .work-step__copy {
    grid-column: 2;
    padding-top: 0;
  }
  .work-step__copy span { font-size: 12px; margin-bottom: 4px; }
  .work-step__copy h2 { font-size: 20px; margin-bottom: 8px; }
  .work-step__copy p { font-size: 14px; margin-bottom: 16px; }
  .check-list li { font-size: 14px; }
  .check-list li::before { width: 22px; height: 22px; background-size: 11px; }

  .work-step__media { display: none; }
  .work-step--alt .work-step__media { display: none; }
  .work-step--alt .work-step__copy { grid-column: 2; }
}

/* Page hero for how-it-works */
.page-hero--center {
  text-align: center;
  padding: 56px 0 48px;
  background: #F7FBFD;
}
.page-hero--center .page-hero__inner {
  width: min(calc(100% - 48px), 720px);
  margin: 0 auto;
}
.page-kicker {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #06B6D4;
  margin-bottom: 12px;
}
.page-hero--center h1 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: #0B2D5B;
  margin: 0 0 14px;
}
.page-hero--center p {
  font-size: 17px;
  line-height: 1.55;
  color: #5F6C7B;
  font-weight: 500;
  margin: 0;
  max-width: 560px;
  margin-inline: auto;
}
@media (max-width: 900px) {
  .page-hero--center { padding: 40px 0 32px; }
  .page-hero--center h1 { font-size: 24px; }
  .page-hero--center p { font-size: 15px; }
}
