.zaritop-steps-section {
  padding: clamp(80px, 7vw, 100px) 24px;
  scroll-margin-top: calc(var(--header-height) + 24px);
  background: var(--color-white);
  color: var(--color-ink);
  font-family: Inter, sans-serif;
}

.zaritop-steps-header {
  max-width: 760px;
  margin: 0 auto clamp(32px, 4vw, 48px);
  text-align: center;
}
.zaritop-steps-eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 1.8px;
}
.zaritop-steps-heading {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(28px, 3.125vw, 40px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -1.25px;
  text-wrap: balance;
}
.zaritop-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.zaritop-steps-item { position: relative; min-width: 0; }
.zaritop-steps-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 15px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-white) 12%, transparent);
  border-radius: 16px;
  background: var(--color-default-950, var(--color-ink));
  color: var(--color-white);
  transition: transform var(--transition), box-shadow var(--transition);
}
.zaritop-steps-card::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -80px;
  inset-inline-end: -80px;
  width: 250px;
  height: 250px;
  border-radius: 999px;
  background: var(--color-primary-1);
  opacity: .3;
  filter: blur(70px);
  pointer-events: none;
}
.zaritop-steps-card > * {
  position: relative;
  z-index: 1;
}
.zaritop-steps-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.zaritop-steps-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-ink);
  background: var(--color-white);
  font-family: Manrope, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.zaritop-steps-item:nth-child(2) .zaritop-steps-number {  }
.zaritop-steps-item:nth-child(3) .zaritop-steps-number {  }
.zaritop-steps-icon {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.zaritop-steps-title {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(18px, 1.5vw, 20px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.5px;
}
.zaritop-steps-description {
  margin: 12px 0 0;
  color: color-mix(in srgb, var(--color-white) 72%, transparent);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.8;
}

/* Connect only the gaps; never draw through a card's content. */
@media (min-width: 1024px) {
  .zaritop-steps-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% + 4px);
    width: 16px;
    border-top: 2px dotted var(--color-primary-1);
    pointer-events: none;
  }
  .zaritop-steps-item:nth-child(2)::after {  }
}
@media (min-width: 768px) {
  .zaritop-steps-card { padding: 20px; }
}
@media (min-width: 1024px) {
  .zaritop-steps-card { padding: 30px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .zaritop-steps-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--color-ink) 18%, transparent);
  }
}

/* Visible by default, as in the preceding section; JS only triggers entry. */
@media (prefers-reduced-motion: no-preference) {
  .zaritop-steps-header.zaritop-steps-revealed { animation: zaritop-steps-fade 500ms backwards; }
  .zaritop-steps-item.zaritop-steps-revealed { animation: zaritop-steps-enter 500ms backwards; }
  .zaritop-steps-item:nth-child(2).zaritop-steps-revealed { animation-delay: 80ms; }
  .zaritop-steps-item:nth-child(3).zaritop-steps-revealed { animation-delay: 160ms; }
  .zaritop-steps-item:nth-child(4).zaritop-steps-revealed { animation-delay: 240ms; }
}
@keyframes zaritop-steps-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zaritop-steps-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 768px) and (max-width: 1023px) {
  .zaritop-steps-section { padding-block: clamp(64px, 7.8vw, 80px); }
  .zaritop-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zaritop-steps-item:nth-child(3).zaritop-steps-revealed { animation-delay: 0ms; }
  .zaritop-steps-item:nth-child(4).zaritop-steps-revealed { animation-delay: 80ms; }
}
@media (max-width: 767px) {
  .zaritop-steps-section { padding: clamp(48px, 8vw, 64px) 20px; }
  .zaritop-steps-heading { letter-spacing: -1px; }
  .zaritop-steps-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .zaritop-steps-card-top { margin-bottom: 20px; }
  .zaritop-steps-description { font-size: 15px; }
  .zaritop-steps-grid .zaritop-steps-revealed { animation-delay: 0ms; }
}
@media (prefers-reduced-motion: reduce) {
  .zaritop-steps-revealed { animation: none; }
  .zaritop-steps-card { transition: none; }
}
