/* ==========================================================================
   Front page — stat ribbon, product cards, hero cards
   ========================================================================== */

/* Stat ribbon (7-column lifecycle or 4-column default) */
.fp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
  padding: 28px 0;
}

.fp-stats-lifecycle {
  grid-template-columns: repeat(7, 1fr);
}

.fp-stat {
  text-align: center;
  padding: 0 8px;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}

.fp-stat:last-child {
  border-right: none;
}

.fp-stat-label {
  font-size: var(--fs-9);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-stat-value {
  font-family: var(--mono);
  font-size: var(--fs-22);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.fp-products-grid-heading {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: var(--fs-18);
}

/* Product grid (3 cards in a row) */
.fp-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
  padding: 28px 0;
}

.fp-product-card {
  padding: 0 24px;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: color 0.2s;
}

.fp-product-card:last-child {
  border-right: none;
}

.fp-product-card:hover,
.fp-product-card:hover h3 {
  color: var(--signal);
}

.fp-product-card h3 {
  font-size: var(--fs-15);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
  transition: color 0.2s;
}

.fp-product-desc {
  font-size: var(--fs-13);
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* Hero product cards (2-column featured) */
.fp-products-grid-hero {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.fp-hero-card {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fp-hero-card:hover {
  border-color: var(--signal);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.fp-hero-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--signal);
  margin-bottom: 12px;
}

.fp-hero-card-header h3 {
  font-size: var(--fs-22);
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.fp-hero-card-who {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.fp-hero-card-desc {
  font-size: var(--fs-13);
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 20px;
}

/* Responsive */
@media (max-width: 1080px) {
  .fp-stats-lifecycle {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 0;
  }
  .fp-stats-lifecycle .fp-stat:nth-child(4) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .fp-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
  }
  .fp-stats-lifecycle {
    grid-template-columns: repeat(2, 1fr);
  }
  .fp-stat:nth-child(2n) {
    border-right: none;
  }
  .fp-stat-value {
    font-size: var(--fs-18);
  }

  .fp-products-grid,
  .fp-products-grid-hero {
    grid-template-columns: 1fr;
    gap: 24px 0;
  }

  .fp-product-card {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 0 0 24px;
  }

  .fp-product-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .fp-stats {
    grid-template-columns: 1fr;
    gap: 16px 0;
  }
  .fp-stats-lifecycle {
    grid-template-columns: 1fr;
  }
  .fp-stat {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 16px;
  }
  .fp-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}
