#how {
  overflow: hidden;
}

.how-carousel-shell {
  position: relative;
}

.how-carousel-header {
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.how-carousel-title {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1.875rem, 4vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 1rem;
  font-weight: 700;
}

.how-carousel-subtitle {
  max-width: 36rem;
  color: #94a3b8;
  font-size: 1.15rem;
  line-height: 1.8;
  font-weight: 300;
}

.how-stage {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 4rem 0 0;
  outline: none;
}

.how-viewport {
  overflow: visible;
}

.how-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
  will-change: transform;
}

.how-card {
  min-width: 300px;
  width: 300px;
  margin: 0 1rem;
  flex-shrink: 0;
  opacity: 0.35;
  transform: scale(0.8);
  filter: blur(4px);
  transition: all 0.7s cubic-bezier(0.2, 1, 0.3, 1);
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 2rem;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  user-select: none;
}

.how-card.active {
  opacity: 1;
  transform: scale(1.05);
  filter: blur(0);
  border-color: #e2e8f0;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.02),
    0 8px 16px rgba(15, 23, 42, 0.04),
    0 20px 40px rgba(15, 23, 42, 0.06);
  z-index: 10;
}

.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.how-card.active .stagger-item:nth-child(1) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}

.how-card.active .stagger-item:nth-child(2) {
  transition-delay: 0.25s;
  opacity: 1;
  transform: translateY(0);
}

.how-card.active .stagger-item:nth-child(3) {
  transition-delay: 0.35s;
  opacity: 1;
  transform: translateY(0);
}

.how-card.active .stagger-item:nth-child(4) {
  transition-delay: 0.45s;
  opacity: 1;
  transform: translateY(0);
}

.how-step-number {
  font-family: "Fraunces", Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: #14b8a6;
  opacity: 0.15;
  margin-bottom: 0.5rem;
  display: block;
}

.how-card-title {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.how-card-copy {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.how-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #0f766e;
  font-weight: 500;
  background: rgba(240, 253, 250, 0.75);
  align-self: flex-start;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(204, 251, 241, 0.8);
}

.how-card-chip span {
  font-size: 0.875rem;
}

.how-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: #ffffff;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  color: #0f172a;
}

.how-nav:hover,
.how-nav:focus-visible {
  border-color: #14b8a6;
  color: #14b8a6;
  transform: translateY(-50%) scale(1.1);
}

.how-nav:focus-visible {
  outline: 2px solid rgba(20, 184, 166, 0.25);
  outline-offset: 2px;
}

.how-nav-prev {
  left: 2rem;
}

.how-nav-next {
  right: 2rem;
}

.how-carousel-meta {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.how-step-pill {
  font-size: 0.875rem;
  font-weight: 600;
  color: #14b8a6;
  background: #f0fdfa;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.how-dot-nav {
  display: flex;
  gap: 0.75rem;
}

.how-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.3s ease;
}

.how-dot.active {
  width: 24px;
  background: #14b8a6;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .how-card {
    min-width: 440px;
    width: 440px;
    margin: 0 1.5rem;
    padding: 4rem 3.5rem;
  }
}

@media (max-width: 768px) {
  .how-carousel-header {
    margin-bottom: 2rem;
    text-align: center;
  }

  .how-carousel-subtitle {
    margin: 0 auto;
    font-size: 1rem;
  }

  .how-stage {
    width: 100%;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 3rem 0 0;
  }

  .how-viewport {
    overflow: hidden;
  }

  .how-card {
    min-width: min(82vw, 320px);
    width: min(82vw, 320px);
    margin: 0 0.75rem;
    padding: 3rem 2rem;
  }

  .how-card.active {
    transform: scale(1);
  }

  .how-nav {
    top: 38%;
    width: 48px;
    height: 48px;
  }

  .how-nav-prev {
    left: 0.5rem;
  }

  .how-nav-next {
    right: 0.5rem;
  }
}
