.xbinder-page {
  --xbinder-border: #cbd8e7;
  --xbinder-caption: #485b70;
  --xbinder-accent: #3f4aa8;
  --xbinder-shadow: 0 18px 44px rgba(10, 23, 40, .09);
}

.xbinder-hero {
  padding-bottom: clamp(72px, 8vw, 112px);
}

.xbinder-hero::after {
  z-index: 0;
  pointer-events: none;
}

.xbinder-hero .container {
  position: relative;
  z-index: 1;
}

.xbinder-hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, .88fr) minmax(460px, 1.12fr);
  gap: clamp(48px, 7vw, 96px);
}

.xbinder-hero-copy {
  min-width: 0;
}

.xbinder-hero-copy h1 {
  font-size: clamp(3.6rem, 6.4vw, 5.7rem);
}

.xbinder-hero-copy .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.xbinder-figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--xbinder-border);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--xbinder-shadow);
}

.xbinder-image-stage {
  display: grid;
  min-height: 360px;
  padding: clamp(26px, 4vw, 46px);
  place-items: center;
  background: #f7f8fb;
}

.xbinder-image-stage img {
  display: block;
  width: min(100%, 520px);
  height: auto;
}

.xbinder-image-stage-compact img {
  width: min(100%, 450px);
}

.xbinder-figure figcaption {
  min-height: 68px;
  padding: 18px 22px;
  border-top: 1px solid var(--xbinder-border);
  color: var(--xbinder-caption);
  font-size: .92rem;
  line-height: 1.55;
}

.xbinder-overview-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, .84fr) minmax(450px, 1.16fr);
  gap: clamp(54px, 8vw, 110px);
}

.xbinder-overview-copy {
  max-width: 620px;
}

.xbinder-flow-steps {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  border: 1px solid var(--xbinder-border);
  border-radius: 22px;
  background: var(--white);
  overflow: hidden;
}

.xbinder-flow-steps li {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 230px;
  flex-direction: column;
  gap: 34px;
  padding: 34px;
  border-right: 1px solid var(--xbinder-border);
}

.xbinder-flow-steps li:last-child {
  border-right: 0;
}

.xbinder-flow-steps li:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 42px;
  right: -13px;
  display: grid;
  width: 26px;
  height: 26px;
  content: "→";
  place-items: center;
  border: 1px solid var(--xbinder-border);
  border-radius: 50%;
  color: var(--blue-600);
  background: var(--white);
  font-size: .85rem;
  font-weight: 800;
}

.xbinder-step-number {
  color: var(--xbinder-accent);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.xbinder-flow-steps h3 {
  margin-bottom: 12px;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
}

.xbinder-flow-steps p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .xbinder-hero-grid,
  .xbinder-overview-grid {
    grid-template-columns: 1fr;
  }

  .xbinder-hero-copy,
  .xbinder-overview-copy {
    max-width: 720px;
  }

  .xbinder-figure {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .xbinder-flow-steps {
    grid-template-columns: 1fr;
  }

  .xbinder-flow-steps li {
    min-height: auto;
    gap: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--xbinder-border);
  }

  .xbinder-flow-steps li:last-child {
    border-bottom: 0;
  }

  .xbinder-flow-steps li:not(:last-child)::after {
    top: auto;
    right: 32px;
    bottom: -13px;
    content: "↓";
  }
}

@media (max-width: 430px) {
  .xbinder-hero-copy h1 {
    font-size: clamp(3rem, 17vw, 4.3rem);
  }

  .xbinder-hero-copy .hero-actions {
    flex-direction: column;
  }

  .xbinder-hero-copy .button {
    width: 100%;
  }

  .xbinder-figure {
    border-radius: 15px;
  }

  .xbinder-image-stage {
    min-height: auto;
    padding: 20px 14px;
  }

  .xbinder-figure figcaption {
    padding: 15px 16px;
  }

  .xbinder-flow-steps li {
    padding: 28px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xbinder-page *,
  .xbinder-page *::before,
  .xbinder-page *::after {
    scroll-behavior: auto;
  }
}
