/* ============================================
   Shared Product Page Styles
   ============================================ */

/* === Per-product accent mapping === */

.page-safe  { --product-accent: var(--accent-safe);  --product-accent-light: var(--accent-safe-light); }
.page-speed { --product-accent: var(--accent-speed); --product-accent-light: var(--accent-speed-light); }
.page-pulse { --product-accent: var(--accent-pulse); --product-accent-light: var(--accent-pulse-light); }


/* === Product Hero === */

.product-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--section-padding) + 60px);
  background: linear-gradient(135deg, var(--product-accent-light) 0%, var(--color-white) 60%, var(--color-primary-50) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* Decorative gradient orb */
.product-hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.product-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.product-hero .section-tag {
  color: var(--product-accent);
}

.product-hero h1 {
  font-size: var(--text-hero);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--color-text);
}

.product-hero .product-tagline-hero {
  font-family: var(--font-heading);
  font-size: var(--text-sub);
  font-weight: 500;
  color: var(--product-accent);
  margin-bottom: 24px;
}

.product-hero .product-hero-body {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 55ch;
}


/* === Product Prose === */

.product-prose {
  max-width: 680px;
}

.product-prose h2 {
  margin-bottom: 32px;
}

.product-prose h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.product-prose p {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.product-prose p:last-child {
  margin-bottom: 0;
}


/* === Problem Cards === */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.problem-card {
  padding: 28px;
}

.problem-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--color-red);
}

.problem-card-icon svg {
  width: 32px;
  height: 32px;
}

.problem-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.problem-card p {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* === Feature Grid === */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  padding: 28px;
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--product-accent);
}

.feature-card-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}


/* === Process/How It Works (product pages) === */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.process-card {
  padding: 28px;
  position: relative;
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--product-accent);
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.process-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-card p {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.6;
}


/* === Integration/Compatibility List === */

.compat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  max-width: 600px;
}

.compat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.compat-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-green);
  flex-shrink: 0;
  margin-top: 2px;
}


/* === Benefits List === */

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  max-width: 640px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
}

.benefit-icon {
  width: 32px;
  height: 32px;
  color: var(--product-accent);
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefit-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.benefit-item p {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.5;
}


/* === Section Dividers === */

.page-product .section + .section {
  border-top: 1px solid var(--color-border);
}
