/* ==========================================================================
   How It Works
   ========================================================================== */

.how-hero {
  background: linear-gradient(
    135deg,
    var(--color-background) 0%,
    var(--color-accent-light) 100%
  );
}

.how-hero h1 {
  max-width: 850px;
}

.how-hero .page-hero-description {
  margin-top: 20px;
}

/* ==========================================================================
   Steps
   ========================================================================== */

.how-steps .container {
  max-width: 900px;
}

.how-step {
  display: grid;
  gap: 24px;
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 30px 0;
  position: relative;
}

.how-step:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

.how-step-content h2 {
  margin-bottom: 18px;
}

.how-step-content > p:not(.eyebrow) {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 650px;
}

.how-step-image {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.1);
  display: block;
  height: auto;
  margin-top: 28px;
  max-width: 100%;
  width: 540px;
}

.how-step-number {
  align-items: center;
  background: var(--color-primary-light, #dbeafe);
  border-radius: 20px;
  color: var(--color-accent);
  display: flex;
  font-size: 1.5rem;
  font-weight: 800;
  height: 72px;
  justify-content: center;
  width: 72px;
}

/* ==========================================================================
   First Step Spacing
   ========================================================================== */

.how-steps .how-step:first-child {
  padding-top: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 700px) {
  .how-step {
    gap: 16px;
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 24px 0;
  }

  .how-step-content h2 {
    margin-bottom: 14px;
  }

  .how-step-image {
    margin-top: 24px;
  }

  .how-step-number {
    border-radius: 16px;
    font-size: 1.25rem;
    height: 56px;
    width: 56px;
  }
}