/* ===== Remove the outer container box ===== */
.shared-features__container {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

.shared-features__header {
  text-align: center;
  margin-bottom: 4rem;
}

.shared-features__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  color: rgb(var(--color-foreground));
  margin: 0;
  line-height: 1.2;
}

/* ===== 4-column card grid ===== */
.shared-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 989px) {
  .shared-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 749px) {
  .shared-features__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Feature card ===== */
.shared-features__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 2.5rem 2rem;
  background: rgba(var(--color-foreground), 0.04);
  border-radius: 1rem;
  cursor: default;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.shared-features__item:hover {
  background: rgba(var(--color-foreground), 0.08);
  transform: translateY(-4px);
}

/* ===== Checkmark icon ===== */
.shared-features__checkmark {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  background: rgba(var(--color-foreground), 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.4s ease;
}

.shared-features__item:hover .shared-features__checkmark {
  transform: scale(1.15);
  background: rgba(var(--color-foreground), 0.12);
}

.shared-features__checkmark svg {
  width: 100%;
  height: 100%;
  stroke: rgb(var(--color-foreground));
  stroke-width: 2.5;
  fill: none;
}

/* ===== Content ===== */
.shared-features__content {
  flex: 1;
}

.shared-features__item-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: rgb(var(--color-foreground));
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.shared-features__item:hover .shared-features__item-title {
  transform: translateX(4px);
}

.shared-features__item-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(var(--color-foreground), 0.55);
  margin: 0;
  transition: color 0.3s ease;
}

.shared-features__item:hover .shared-features__item-description {
  color: rgba(var(--color-foreground), 0.8);
}

/* ===== Footer ===== */
.shared-features__footer {
  text-align: center;
  margin-top: 3.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.shared-features__footer-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(var(--color-foreground), 0.5);
  margin: 0;
  font-weight: 400;
  font-style: italic;
}

/* ===== Animations ===== */
.shared-features__item.scroll-trigger.animate--slide-in {
  opacity: 0;
}

.shared-features__item.scroll-trigger.animate--slide-in.scroll-trigger--animate {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .shared-features__item,
  .shared-features__checkmark,
  .shared-features__item-title,
  .shared-features__item-description {
    transition: none;
  }
}
