/* ===== Product Features — Annotated Image + Feature List ===== */
product-features {
  display: block;
}

.product-features {
  padding: 0;
}

/* ===== Header ===== */
.product-features__header {
  text-align: center;
  margin-bottom: 4rem;
}

.product-features__heading {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  color: rgb(var(--color-foreground));
  margin: 0 0 1rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.product-features__subheading {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(var(--color-foreground), 0.6);
  margin: 0 auto;
  max-width: 44rem;
}

/* ===== Layout ===== */
.product-features__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media screen and (min-width: 990px) {
  .product-features__body {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }
}

/* ===== Image Container ===== */
.product-features__image-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgba(var(--color-foreground), 0.04);
}

.product-features__image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-features__image-wrap .placeholder-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 15%;
  opacity: 0.3;
}

/* ===== Numbered Markers ===== */
.product-features__marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid rgb(var(--color-foreground));
  background: rgba(var(--color-background), 0.88);
  color: rgb(var(--color-foreground));
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  z-index: 2;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (min-width: 990px) {
  .product-features__marker {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.05rem;
  }
}

.product-features__marker.--highlight {
  background: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
  border-color: rgb(var(--color-foreground));
  box-shadow: 0 0 0 4px rgba(var(--color-foreground), 0.2);
}

/* Subtle pulse on markers */
.product-features__marker::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(var(--color-foreground), 0.3);
  animation: product-features-pulse 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

.product-features__marker.--highlight::after {
  animation: none;
  opacity: 0;
}

@keyframes product-features-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ===== Feature List ===== */
.product-features__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-features__item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.4rem 1.2rem;
  border-radius: 0.6rem;
  transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.product-features__item.--highlight {
  background: rgba(var(--color-foreground), 0.06);
}

/* Number circle in the list */
.product-features__number {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid rgba(var(--color-foreground), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(var(--color-foreground), 0.6);
  margin-top: 0.15rem;
  transition: border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-features__item.--highlight .product-features__number {
  border-color: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
  background: rgb(var(--color-foreground));
}

.product-features__item-content {
  flex: 1;
  min-width: 0;
}

.product-features__item-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(var(--color-foreground));
  margin: 0;
  line-height: 1.3;
}

.product-features__item-text {
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(var(--color-foreground), 0.55);
  margin: 0.3rem 0 0 0;
}

/* ===== Scroll-trigger Animation ===== */
.product-features__header.scroll-trigger.animate--slide-in,
.product-features__body.scroll-trigger.animate--slide-in {
  opacity: 0;
  transform: translateY(1rem);
}

.product-features__header.scroll-trigger.animate--slide-in.scroll-trigger--animate,
.product-features__body.scroll-trigger.animate--slide-in.scroll-trigger--animate {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .product-features__marker,
  .product-features__item,
  .product-features__number {
    transition: none;
  }

  .product-features__marker::after {
    animation: none;
  }
}
