/* ─────────────────────────────────────────────────────────────
   Product Showcase Section — Task #1529299
   Placement: homepage, after trust bar, before settlement listings
   ───────────────────────────────────────────────────────────── */

/* ── Section wrapper ── */
.hp-products {
  background: #f8faf9;
  border-top: 1px solid #e2ece7;
  border-bottom: 1px solid #e2ece7;
  padding: 3.5rem 1.25rem 3rem;
}

.hp-products__inner {
  max-width: 1160px;
  margin: 0 auto;
}

/* ── Section heading ── */
.hp-products__heading {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #0A0A0A;
  text-align: center;
  margin: 0 0 0.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hp-products__subheading {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  color: #4B5563;
  text-align: center;
  margin: 0 0 2.5rem;
  line-height: 1.5;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── 3-column card grid ── */
.hp-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* ── Individual card ── */
.hp-product-card {
  background: #ffffff;
  border: 1.5px solid #e2ece7;
  border-radius: 14px;
  padding: 1.75rem 1.5rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 2px 8px rgba(0, 100, 62, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.hp-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 100, 62, 0.13);
  border-color: #00875A;
  color: inherit;
  text-decoration: none;
}

/* Subtle accent strip at top of each card */
.hp-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
  background: var(--card-accent, #00875A);
}

.hp-product-card--books { --card-accent: #00875A; }
.hp-product-card--toolkit { --card-accent: #d97706; }
.hp-product-card--autopilot { --card-accent: #7c3aed; }

/* ── Card icon area ── */
.hp-product-card__icon-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hp-product-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hp-product-card--books .hp-product-card__icon {
  background: #d1fae5;
}

.hp-product-card--toolkit .hp-product-card__icon {
  background: #fef3c7;
}

.hp-product-card--autopilot .hp-product-card__icon {
  background: #ede9fe;
}

.hp-product-card__badge {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  white-space: nowrap;
}

.hp-product-card--books .hp-product-card__badge {
  background: #d1fae5;
  color: #065f46;
}

.hp-product-card--toolkit .hp-product-card__badge {
  background: #fef3c7;
  color: #92400e;
}

.hp-product-card--autopilot .hp-product-card__badge {
  background: #ede9fe;
  color: #5b21b6;
}

/* ── Card text ── */
.hp-product-card__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0A0A0A;
  margin: 0 0 0.45rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.hp-product-card__desc {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  color: #4B5563;
  margin: 0 0 1.25rem;
  line-height: 1.55;
  flex: 1;
}

/* ── Mini product visual (book spines / toolkit icons) ── */
.hp-product-card__visual {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1.1rem;
  align-items: flex-end;
  height: 44px;
}

/* Book spine strips */
.hp-book-spine {
  border-radius: 3px 1px 1px 3px;
  height: 100%;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.hp-product-card:hover .hp-book-spine {
  opacity: 1;
}

/* Toolkit icon chips */
.hp-toolkit-chip {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Autopilot stacked dot grid */
.hp-autopilot-dot-grid {
  display: grid;
  grid-template-columns: repeat(5, 8px);
  gap: 4px;
  align-self: center;
}

.hp-autopilot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7c3aed;
  opacity: 0.25;
  transition: opacity 0.15s;
}

.hp-autopilot-dot.active {
  opacity: 1;
}

/* ── CTA link ── */
.hp-product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--card-cta-color, #00875A);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: gap 0.15s ease;
}

.hp-product-card--books .hp-product-card__cta { --card-cta-color: #00875A; }
.hp-product-card--toolkit .hp-product-card__cta { --card-cta-color: #d97706; }
.hp-product-card--autopilot .hp-product-card__cta { --card-cta-color: #7c3aed; }

.hp-product-card:hover .hp-product-card__cta {
  gap: 0.55rem;
  text-decoration: none;
}

.hp-product-card__cta-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Trust bar below cards ── */
.hp-products__trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid #e2ece7;
}

.hp-products__trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  color: #374151;
  font-weight: 500;
  white-space: nowrap;
}

.hp-products__trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00875A;
  flex-shrink: 0;
}

/* ── Tablet (768px) ── */
@media (max-width: 900px) {
  .hp-products {
    padding: 3rem 1.25rem 2.5rem;
  }

  .hp-products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Make autopilot card span full width on tablet */
  .hp-product-card--autopilot {
    grid-column: 1 / -1;
  }

  .hp-product-card--autopilot .hp-product-card__visual {
    max-width: 280px;
  }
}

/* ── Mobile (375px) — horizontal scroll with snap ── */
@media (max-width: 640px) {
  .hp-products {
    padding: 2.5rem 0 2rem;
  }

  .hp-products__heading {
    padding: 0 1.25rem;
  }

  .hp-products__subheading {
    padding: 0 1.25rem;
    margin-bottom: 1.5rem;
  }

  .hp-products__grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.85rem;
    padding: 0 1.25rem 0.5rem;
    grid-template-columns: unset;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .hp-products__grid::-webkit-scrollbar {
    display: none;
  }

  .hp-product-card {
    flex: 0 0 82vw;
    max-width: 300px;
    scroll-snap-align: start;
  }

  /* Reset tablet override on mobile */
  .hp-product-card--autopilot {
    grid-column: unset;
    flex: 0 0 82vw;
  }

  .hp-products__trust-bar {
    gap: 1rem;
    padding: 1.25rem 1.25rem 0;
    border-top: 1px solid #e2ece7;
    margin-top: 1rem;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }

  .hp-products__trust-item {
    font-size: 0.78rem;
  }
}
