/* ========================================================================
   mig2 — "switching is painless" migration strip (light section)
   All selectors namespaced .mig2-*. Relies on global .ios reveal + palette
   vars from styles.css. No JS.
   ======================================================================== */

.mig2 {
  padding: clamp(64px, 9vw, 116px) var(--gut, 24px);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(90, 130, 194, 0.08), transparent 65%),
    var(--white, #eef1f7);
  border-top: 1px solid var(--line, rgba(20, 33, 61, 0.1));
}

/* ---- head ---- */
.mig2-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.mig2-lead {
  margin-top: 14px;
}

/* ---- 4-step flow — open, connected on a hairline; no cards ---- */
.mig2-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
  counter-reset: none;
}
.mig2-step {
  position: relative;
  border-top: 1px solid var(--line, rgba(20, 33, 61, 0.1));
  padding: 18px 0 0;
}
/* connector chevron riding the hairline between steps */
.mig2-step::after {
  content: '';
  position: absolute;
  top: 0;
  right: calc(clamp(24px, 3.4vw, 44px) / -2);
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--accent, #5a82c2);
  border-right: 1.5px solid var(--accent, #5a82c2);
  transform: translate(50%, -50%) rotate(45deg);
  opacity: 0.7;
}
.mig2-step:last-child::after {
  display: none;
}

.mig2-step-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.mig2-n {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent, #5a82c2);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.mig2-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-40, rgba(20, 33, 61, 0.4));
  white-space: nowrap;
}
.mig2-step-t {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink, #14213d);
}
.mig2-step-p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-60, rgba(20, 33, 61, 0.6));
}

/* ---- "coming from?" pills ---- */
.mig2-from {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(22px, 3vw, 30px);
  border-top: 1px solid var(--line, rgba(20, 33, 61, 0.12));
}
.mig2-from-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40, rgba(20, 33, 61, 0.4));
  white-space: nowrap;
}
.mig2-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mig2-pill {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-60, rgba(20, 33, 61, 0.6));
  border: 1px solid var(--line, rgba(20, 33, 61, 0.1));
  border-radius: 999px;
  padding: 5px 13px;
  line-height: 1.2;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.mig2-pill:hover {
  color: var(--indigo, #3d63a4);
  border-color: var(--accent, #5a82c2);
}
.mig2-pill:last-child {
  border-style: dashed;
  color: var(--ink-40, rgba(20, 33, 61, 0.4));
}

/* ---- trust line + CTAs ---- */
.mig2-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: clamp(24px, 3.5vw, 34px);
}
.mig2-trust {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-60, rgba(20, 33, 61, 0.6));
}
.mig2-trust::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal, #2f9e8f);
  margin-right: 10px;
  vertical-align: 1px;
}
.mig2-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.mig2-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--indigo, #3d63a4);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.mig2-link:hover {
  border-bottom-color: var(--indigo, #3d63a4);
}
.mig2-link-quiet {
  font-weight: 500;
  color: var(--ink-60, rgba(20, 33, 61, 0.6));
}
.mig2-link-quiet:hover {
  color: var(--ink, #14213d);
  border-bottom-color: var(--ink-40, rgba(20, 33, 61, 0.4));
}

/* ---- responsive ---- */
@media (max-width: 980px) {
  .mig2-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  /* hide horizontal arrow where the row wraps */
  .mig2-step:nth-child(2)::after {
    display: none;
  }
}
@media (max-width: 700px) {
  .mig2-flow {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .mig2-step::after {
    display: none;
  }
  .mig2-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .mig2-pill,
  .mig2-link {
    transition: none;
  }
}
