/* ─── Home page ─── */

.home-page {
  overflow-x: clip;
}

.home-section {
  padding-block: clamp(4rem, 8vw, 6rem);
}

.home-section--stats {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}

.home-section--tight {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.home-section--last {
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.home-section--white {
  background: #fff;
}

.home-section--muted {
  background: var(--surface-2);
}

.home-section--sale {
  background: linear-gradient(180deg, #fff7ed 0%, #fef2f2 100%);
}

.home-section-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.home-section-cta {
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .home-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.home-product-grid > [data-home-reveal-item] {
  display: flex;
  min-height: 100%;
}

.home-product-grid > [data-home-reveal-item] > .product-card {
  width: 100%;
}

/* Stats */
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .home-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.home-stat-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  padding: 1.35rem 1.25rem;
  text-align: center;
  box-shadow: 0 16px 40px -24px rgba(15, 23, 42, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px -22px rgba(21, 128, 61, 0.22);
}

.home-stat-card__icon {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: #ecfdf5;
  color: #15803d;
}

.home-stat-card__icon svg {
  height: 1.25rem;
  width: 1.25rem;
}

.home-stat-card__value {
  margin-top: 0.85rem;
  font-family: var(--font-jakarta);
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.home-stat-card__label {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

/* Categories */
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .home-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.home-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1.25rem 0.85rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 163, 74, 0.35);
  box-shadow: 0 16px 36px -20px rgba(21, 128, 61, 0.25);
}

.home-category-card__icon {
  display: flex;
  height: 4.25rem;
  width: 4.25rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  border: 2px solid #dcfce7;
  background: #fff;
}

.home-category-card__name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
}

.home-category-card__count {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
}

/* Steps */
.home-steps-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .home-steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.home-step-card {
  position: relative;
  border-radius: 1.35rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 10px 30px -20px rgba(15, 23, 42, 0.12);
}

.home-step-card__number {
  font-family: var(--font-jakarta);
  font-size: 2rem;
  font-weight: 800;
  color: #bbf7d0;
}

.home-step-card__title {
  margin-top: 0.75rem;
  font-family: var(--font-jakarta);
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.home-step-card__desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Testimonials */
.home-testimonial-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .home-testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.home-testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1.35rem;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1.75rem;
  box-shadow: 0 12px 32px -22px rgba(15, 23, 42, 0.14);
}

.home-testimonial-card__quote {
  margin-top: 1rem;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
}

.home-testimonial-card__author {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

/* Features */
.home-feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.home-feature-card {
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -20px rgba(21, 128, 61, 0.18);
}

.home-feature-card__icon {
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
  color: #15803d;
}

.home-feature-card__title {
  margin-top: 1rem;
  font-family: var(--font-jakarta);
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.home-feature-card__desc {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

/* CTA banner */
.home-cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, #15803d 0%, #166534 55%, #14532d 100%);
  padding: clamp(2.5rem, 6vw, 4rem) 2rem;
  box-shadow: 0 24px 60px -28px rgba(21, 128, 61, 0.55);
}

.home-cta-banner__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle at 20% 50%, white 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Verify card */
.home-verify-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: 1.75rem;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 20px 50px -28px rgba(15, 23, 42, 0.12);
}

@media (min-width: 1024px) {
  .home-verify-card {
    flex-direction: row;
    align-items: center;
  }
}

.home-verify-card__icon {
  display: flex;
  height: 4rem;
  width: 4rem;
  shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 1.1rem;
  background: #dcfce7;
  color: #15803d;
}

.home-verify-card__content {
  flex: 1;
}

/* Popular tabs refresh on home */
.home-page .popular-tab {
  font-size: 1rem;
  padding-bottom: 0.65rem;
}

.home-page .goal-bar {
  border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
  .home-stat-card,
  .home-category-card,
  .home-feature-card,
  .product-card-image,
  .product-card__shine {
    transition: none;
  }

  .product-card:hover .product-card-image {
    transform: none;
  }
}
