/* ─────────────────────────────────────────────────────────────────────────────
   Services & Products Page
───────────────────────────────────────────────────────────────────────────── */

/* ── Page hero ──────────────────────────────────────────────────────────────── */
.products-hero {
  padding: var(--space-20) 0 var(--space-12);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.products-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  color: var(--text);
}

.products-hero-sub {
  color: var(--text-muted);
  font-size: var(--text-lg);
  max-width: 580px;
  line-height: 1.65;
}

/* ── Section header ─────────────────────────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-10);
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.section-sub {
  color: var(--text-muted);
  font-size: var(--text-base);
  max-width: 520px;
  line-height: 1.6;
}

/* ── Services section ───────────────────────────────────────────────────────── */
.services-section {
  padding: var(--space-16) 0 var(--space-12);
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

/* ── Service card ───────────────────────────────────────────────────────────── */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-8);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(26, 86, 232, 0.25);
}

/* Featured / most-popular card */
.service-card--featured {
  background: var(--bg);
  border-color: var(--accent);
  border-width: 2px;
  position: relative;
  box-shadow: var(--shadow);
}

.service-card--featured:hover {
  box-shadow: 0 16px 48px rgba(26, 86, 232, 0.14);
}

/* Card top row */
.service-card-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.service-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.service-category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* "Most popular" badge */
.service-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 3px var(--space-3);
  border-radius: 100px;
}

/* Service name */
.service-name {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: var(--space-3);
}

/* Service description */
.service-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

/* What's included list */
.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.service-features li::before {
  content: '✓';
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(26, 86, 232, 0.1);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* Service footer: price + CTA */
.service-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  margin-top: auto;
  flex-wrap: wrap;
}

.service-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-price-amount {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

.service-price-amount small {
  font-size: 0.6em;
  font-weight: 600;
  color: var(--text-muted);
}

.service-price-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.service-cta {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── "Not sure" CTA band ────────────────────────────────────────────────────── */
.services-cta-band {
  background: var(--text);
  padding: var(--space-12) 0;
}

.services-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.services-cta-text h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: var(--space-2);
}

.services-cta-text p {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 420px;
}

/* Ghost button for dark band */
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ── Digital Products section ───────────────────────────────────────────────── */
.products-section {
  padding: var(--space-16) 0 var(--space-20);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

/* ── Product card ───────────────────────────────────────────────────────────── */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(26, 86, 232, 0.2);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--bg-elevated);
}

.product-card-image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-faint);
}

.product-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.product-card-category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-card-name {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.product-card-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  margin-top: var(--space-2);
}

.product-card-price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
}

.product-card-price .price-note {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.product-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.product-buy-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

/* Featured badge */
.product-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(26, 86, 232, 0.08);
  border: 1px solid rgba(26, 86, 232, 0.2);
  padding: 2px var(--space-3);
  border-radius: 100px;
  margin-bottom: var(--space-2);
  align-self: flex-start;
}

/* ── Stripe notice ──────────────────────────────────────────────────────────── */
.stripe-notice {
  text-align: center;
  padding: var(--space-10) 0 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.stripe-notice a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(128, 128, 128, 0.3);
}

.stripe-notice a:hover { color: var(--text); }

/* ── Products teaser (used on homepage) ─────────────────────────────────────── */
.products-teaser {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.products-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .service-card--featured {
    order: -1; /* featured card first on mobile */
  }
}

@media (max-width: 640px) {
  .products-grid,
  .products-teaser-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: var(--space-6);
  }

  .services-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
  }
}
