/* Sticky product tabs. Metrics from template-spec/06-sticky-products.md */

.dark-stack {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-section);
  padding: 160px 60px 120px;
}

.dark-stack .container {
  width: min(1320px, 100%);
}

.features {
  position: relative;
  z-index: 1;
  overflow: clip;
  margin-top: -45px;
  border-radius: 0;
  background: transparent;
}

.features-container {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: row;
  gap: clamp(140px, calc(100vw - 1140px), 300px);
  width: min(100%, 1320px);
  margin: 0 auto;
  align-items: flex-start;
}

.sticky-section {
  position: sticky;
  top: 100px;
  height: 80vh;
  width: 464px;
  min-width: 280px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sticky-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sticky-title {
  margin: 0;
  font-size: 46px;
  font-weight: 400;
  line-height: 43.7px;
  letter-spacing: -1.38px;
  color: #fff;
}

.tab-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.tab-chip {
  height: 36px;
  font-size: 16px;
  line-height: 15.2px;
  font-weight: 500;
  letter-spacing: -0.32px;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  transition:
    height 0.65s cubic-bezier(0.44, 0, 0.56, 1),
    color 0.65s cubic-bezier(0.44, 0, 0.56, 1),
    font-size 0.65s cubic-bezier(0.44, 0, 0.56, 1);
}

.tab-chip.is-active {
  height: 42px;
  font-size: 18px;
  line-height: 17.1px;
  letter-spacing: -0.36px;
  color: #fff;
}

.sticky-action {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 299px;
}

.sticky-note {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 19.2px;
  font-weight: 500;
  letter-spacing: -0.32px;
}

.btn-on-dark {
  width: min-content;
  height: 42px;
  padding: 0 16px;
  background: #fff;
  color: #000;
  border-radius: 12px;
  font-size: 16px;
  line-height: 15.2px;
  font-weight: 500;
  flex: none;
}

.scroll-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 556px;
  flex: none;
}

.sticky-card {
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  color: #fff;
  text-decoration: none;
  opacity: 0.001;
  transform: translateX(15px);
}

.sticky-card.is-in {
  opacity: 1;
  transform: none;
}

.sticky-card-heading {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sticky-card-heading > svg {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 4px;
  color: #fff;
}

.sticky-card-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: contain;
  object-position: left center;
}

.sticky-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-card-title {
  margin: 0;
  font-size: 24px;
  line-height: 28.8px;
  font-weight: 500;
  letter-spacing: -0.48px;
  color: #fff;
}

.sticky-card-media {
  position: relative;
  width: 300px;
  height: 273.5px;
  margin-inline: auto;
  aspect-ratio: 1.0968 / 1;
  overflow: clip;
  border-radius: 8px;
}

.sticky-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.sticky-card-body {
  margin: 0;
  font-size: 16px;
  line-height: 19.2px;
  font-weight: 500;
  letter-spacing: -0.32px;
  color: rgba(255, 255, 255, 0.6);
  min-height: 38.4px;
}

.sticky-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  pointer-events: none;
}

@media (max-width: 1279.98px) {
  .features-container {
    flex-direction: column;
    gap: 40px;
  }

  .sticky-section {
    height: auto;
    width: 100%;
    gap: 40px;
  }

  .tab-list {
    display: none;
  }

  .scroll-section {
    width: 100%;
  }

  .sticky-card-media {
    width: min(300px, 100%);
    height: auto;
  }
}

@media (max-width: 809.98px) {
  .dark-stack {
    padding: 120px 20px;
  }

  .sticky-section {
    position: relative;
    top: auto;
  }
}

.sticky-card .coming-badge {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
}
