/* ============================================
   Shared Product Page Styles
   ============================================ */

/* === Per-product accent mapping === */

.page-essentia  { --product-accent: var(--accent-essentia);  --product-glow: var(--accent-essentia-glow); }
.page-praesaga  { --product-accent: var(--accent-praesaga);  --product-glow: var(--accent-praesaga-glow); }
.page-lucerna   { --product-accent: var(--accent-lucerna);    --product-glow: var(--accent-lucerna-glow); }
.page-mensura   { --product-accent: var(--accent-mensura);    --product-glow: var(--accent-mensura-glow); }
.page-vigilia   { --product-accent: var(--accent-vigilia);    --product-glow: var(--accent-vigilia-glow); }
.page-verax     { --product-accent: var(--accent-verax);      --product-glow: var(--accent-verax-glow); }
.page-calibra   { --product-accent: var(--accent-calibra);    --product-glow: var(--accent-calibra-glow); }
.page-chat      { --product-accent: var(--accent-chat);       --product-glow: var(--accent-chat-glow); }


/* === Product Hero === */

.product-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.product-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--product-glow) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.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-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 55ch;
}


/* === Section dividers for product pages === */

.page-product .section + .section,
.page-product .section-footer-cta {
  position: relative;
}

.page-product .section + .section::before,
.page-product .section-footer-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-border) 20%,
    var(--product-glow) 50%,
    var(--color-border) 80%,
    transparent 100%
  );
}


/* === Prose Section (reusable for body copy sections) === */

.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-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.product-prose p:last-child {
  margin-bottom: 0;
}

.product-prose .text-accent {
  color: var(--product-accent);
}


/* === Capabilities Grid === */

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.capability-card {
  padding: var(--card-padding);
}

.capability-card h3 {
  font-size: 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--product-accent);
  margin-bottom: 12px;
}

.capability-card p {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
}


/* === Use Case Cards === */

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.use-case-card {
  padding: var(--card-padding);
}

.use-case-card h3 {
  font-size: 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--product-accent);
  margin-bottom: 12px;
}

.use-case-card p {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .use-case-grid {
    grid-template-columns: 1fr;
  }
}


/* === Step Cards === */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.step-card {
  padding: var(--card-padding);
  position: relative;
}

.step-card .step-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--product-accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--product-accent);
  margin-bottom: 12px;
}

.step-card p {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* === Specs Table === */

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 48px;
}

.specs-table tr {
  border-bottom: 1px solid var(--color-border);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 16px 0;
  vertical-align: top;
}

.specs-table td:first-child {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--product-accent);
  width: 180px;
  padding-right: 32px;
  white-space: nowrap;
}

.specs-table td:last-child {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .specs-table td:first-child {
    width: auto;
    white-space: normal;
    display: block;
    padding-bottom: 4px;
    font-weight: 600;
  }
  .specs-table td:last-child {
    display: block;
    padding-top: 0;
  }
  .specs-table tr {
    display: block;
    padding: 16px 0;
  }
  .specs-table td {
    padding: 0;
  }
}


/* === Demo Placeholder === */

.demo-placeholder {
  text-align: center;
  padding: 80px 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 48px;
}

.demo-placeholder h3 {
  font-size: var(--text-sub);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
}

.demo-placeholder p {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 45ch;
  margin-left: auto;
  margin-right: auto;
}

.demo-placeholder .demo-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--product-accent);
  border: 1px solid var(--product-glow);
  padding: 6px 16px;
  border-radius: 100px;
}


/* === Integration Section === */

.section-integration .product-prose {
  max-width: 680px;
  margin-bottom: 32px;
}

.integration-links {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.integration-links li {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  padding: 8px 0;
  line-height: 1.6;
}

.integration-links a {
  color: var(--product-accent);
  font-weight: 500;
}

.integration-links a:hover {
  text-decoration: underline;
}


/* === Signals / Feature Cards (Verax five signals, etc.) === */

.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.signal-card {
  padding: var(--card-padding);
}

.signal-card h3 {
  font-size: 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--product-accent);
  margin-bottom: 8px;
}

.signal-card p {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* === Footer for product pages === */

.page-product .footer {
  position: relative;
}

.page-product .footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-border) 20%,
    var(--product-glow) 50%,
    var(--color-border) 80%,
    transparent 100%
  );
}
