/* Shared StackChum product landing-page layer.
   UX-018: colours are tokens; each product sets --sc-accent via data-product
   (services/_shared/ui/stackchum-tokens.css). */
.product-page {
  background: var(--sc-background);
  color: #10243d;
}
.product-page .site-header {
  background: var(--sc-navy);
}
.product-page .top-nav a { color: #e7f0fb; }
.product-page .top-nav .nav-cta { color: var(--sc-navy); }
.product-main { overflow: hidden; }
.product-hero {
  position: relative;
  padding: 78px max(24px, calc((100vw - 1180px) / 2)) 72px;
  background: linear-gradient(145deg, var(--sc-navy) 0%, color-mix(in srgb, var(--sc-accent) 45%, var(--sc-navy)) 70%, var(--sc-accent) 130%);
  color: #fff;
}
.product-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -160px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sc-accent) 18%, transparent);
  box-shadow: 0 0 0 70px color-mix(in srgb, var(--sc-accent) 6%, transparent), 0 0 0 140px color-mix(in srgb, var(--sc-accent) 4%, transparent);
  pointer-events: none;
}
.product-hero-inner { position: relative; z-index: 1; max-width: 880px; }
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sc-accent);
  box-shadow: 0 0 0 4px rgba(85,213,238,.12);
}
.product-hero h1 {
  margin: 22px 0 12px;
  max-width: 820px;
  font-size: clamp(2.55rem, 6vw, 5.35rem);
  line-height: .98;
  letter-spacing: -.045em;
  color: #fff;
}
.product-hero .lead {
  max-width: 770px;
  margin: 0;
  font-size: clamp(1.06rem, 2vw, 1.32rem);
  line-height: 1.7;
  color: #d9e8f7;
}
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.product-actions .button { text-decoration: none; }
.product-actions .button.secondary { border-color: rgba(255,255,255,.42); color: #fff; }
.product-actions .button.secondary:hover { border-color: #fff; }
.product-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
  margin: -28px auto 0;
  position: relative;
  z-index: 2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(7, 26, 51, .13);
}
.product-stat { background: #fff; padding: 24px; border-right: 1px solid #e4edf7; }
.product-stat:last-child { border-right: 0; }
.product-stat strong { display: block; font-size: 1.08rem; margin-bottom: 5px; color: var(--sc-navy); }
.product-stat span { display: block; color: #5a6c80; line-height: 1.45; font-size: .93rem; }
.product-content { max-width: 1180px; margin: 0 auto; padding: 80px 24px; }
.product-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.product-intro h2, .product-section h2 { color: var(--sc-navy); font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.05; letter-spacing: -.035em; }
.product-intro p, .product-section p { color: #43586f; line-height: 1.75; }
.product-kicker { color: var(--sc-accent) !important; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.product-section { max-width: 1180px; margin: 0 auto; padding: 0 24px 80px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card {
  background: #fff;
  border: 1px solid #dae6f2;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 8px 26px rgba(7, 26, 51, .05);
}
.product-card .card-label { color: var(--sc-accent); font-size: .76rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.product-card h3 { color: var(--sc-navy); margin: 9px 0 10px; font-size: 1.25rem; }
.product-card p { margin: 0; font-size: .97rem; }
.product-report {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 32px;
  background: var(--sc-navy);
  border-radius: 20px;
  color: #fff;
}
.product-report h2 { color: #fff; margin-top: 0; }
.product-report p { color: #d5e4f3; }
.product-report ul { margin: 0; padding-left: 20px; color: #eaf2fa; line-height: 1.8; }
.product-report .product-kicker { color: #fff !important; } /* UX-026: the accent is not legible on navy */
.product-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--sc-accent);
  background: var(--sc-accent-soft);
  color: #2f5264;
  border-radius: 0 10px 10px 0;
  line-height: 1.6;
}
.product-cta {
  max-width: 1180px;
  margin: 0 auto 80px;
  padding: 44px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #d9e6f2;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.product-cta h2 { margin: 0 0 8px; color: var(--sc-navy); }
.product-cta p { margin: 0; color: #53687d; }
.product-cta .button { flex: 0 0 auto; }
.product-back { display: inline-block; margin-top: 20px; color: #b9d9f3; }
.product-back:hover { color: #fff; }
@media (max-width: 850px) {
  .product-strip { grid-template-columns: 1fr 1fr; margin-left: 18px; margin-right: 18px; }
  .product-stat:nth-child(2) { border-right: 0; }
  .product-stat:nth-child(-n+2) { border-bottom: 1px solid #e4edf7; }
  .product-intro, .product-report { grid-template-columns: 1fr; gap: 24px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-cta { margin-left: 18px; margin-right: 18px; padding: 30px; align-items: flex-start; flex-direction: column; }
}
@media (max-width: 540px) {
  .product-hero { padding-top: 52px; }
  .product-strip { grid-template-columns: 1fr; }
  .product-stat { border-right: 0; border-bottom: 1px solid #e4edf7; }
  .product-stat:last-child { border-bottom: 0; }
}

/* ---- UX-018: product sub-header (product identity begins before sign-in) ---- */
.product-subheader { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px max(24px, calc((100vw - 1180px) / 2)); background: var(--sc-surface); border-bottom: 3px solid var(--sc-accent); }
.product-identity { display: inline-flex; align-items: center; gap: 12px; color: var(--sc-ink); text-decoration: none; min-width: 0; }
.product-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--sc-accent); color: var(--sc-accent-ink); display: inline-grid; place-items: center; font: 800 15px var(--sc-font-display); flex: none; }
.product-identity-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.product-identity-text strong { font: 800 1.05rem var(--sc-font-display); letter-spacing: -0.01em; }
.product-identity-text span { color: var(--sc-muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-subnav { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.product-subnav a { color: var(--sc-ink-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; font: 600 .9rem var(--sc-font-display); white-space: nowrap; }
.product-subnav a:hover { background: var(--sc-surface-2); color: var(--sc-ink); }
.product-subnav .product-subnav-cta { background: var(--sc-accent); color: var(--sc-accent-ink); margin-left: 6px; }
.product-subnav .product-subnav-cta:hover { filter: brightness(1.06); background: var(--sc-accent); }
.product-notice { max-width: 1180px; margin: 20px auto 0; padding: 14px 18px; border-radius: 12px; background: #FEF3C7; border: 1px solid #FDE68A; color: #78350F; }
.product-notice a { color: inherit; }
.product-badge-retired { background: rgba(255,255,255,.14); }
.product-badge-retired::before { background: #FBBF24; box-shadow: 0 0 0 4px rgba(251,191,36,.18); }
@media (max-width: 768px) { .product-subheader { flex-wrap: wrap; } .product-identity-text span { display: none; } }
