/* ============================================================
   Product page — shared layout
   Each product page sets --pcolor and --pglow on body, plus an
   inverted-on-light section that breaks the dark journey.
   ============================================================ */

/* Product hero */
.p-hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.p-hero__top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
}
.p-hero__chip {
  width: 56px;
  height: 56px;
  background: var(--pcolor);
  clip-path: var(--oct);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: #fff;
  line-height: 1;
}
.p-hero__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
}
.p-hero__name b { font-weight: 700; color: var(--pcolor); }
.p-hero__tagline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.p-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
@media (max-width: 1024px) {
  .p-hero__grid { grid-template-columns: 1fr; gap: 40px; }
}
.p-hero__title {
  font-size: clamp(48px, 6.4vw, 104px);
  letter-spacing: -0.04em;
  line-height: 0.94;
  font-weight: 500;
  text-wrap: balance;
}
.p-hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-300);
}
.p-hero__title .ac { color: var(--pcolor); }
.p-hero__sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-300);
  font-weight: 300;
  max-width: 480px;
}
.p-hero__cta-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.p-hero__cta-row .btn--accent {
  background: var(--pcolor);
  color: #fff;
}
.p-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  margin-top: 80px;
}
.p-hero__stats .stat {
  padding: 32px 24px 0 0;
  border-right: 1px solid var(--hairline);
}
.p-hero__stats .stat:last-child { border-right: none; }
.p-hero__stats .stat__num { font-size: clamp(32px, 3.2vw, 48px); }
@media (max-width: 820px) {
  .p-hero__stats { grid-template-columns: 1fr 1fr; }
}

/* Hero color wash */
.p-hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, var(--pglow), transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 80%, var(--pglow), transparent 65%);
  opacity: 0.55;
}

/* Pillars / capabilities grid */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--ink-850);
  border: 1px solid var(--hairline);
  clip-path: var(--oct);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  transition: border-color 220ms ease, transform 220ms ease;
}
.pillar:hover {
  border-color: var(--pcolor);
  transform: translateY(-2px);
}
.pillar__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--pcolor);
}
.pillar__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.pillar__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-300);
  margin: 0;
  flex: 1;
}
.pillar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pillar__list li::before { content: "— "; color: var(--pcolor); }

/* Product UI mock */
.prod-mock {
  position: relative;
  background: var(--ink-1000);
  border: 1px solid var(--hairline);
  clip-path: var(--oct);
  overflow: hidden;
  min-height: 540px;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline);
  background: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.mock-bar__dots {
  display: flex; gap: 6px;
}
.mock-bar__dots span {
  width: 8px; height: 8px;
  background: var(--ink-700);
  clip-path: var(--oct-sm);
}
.mock-bar__dots span:first-child { background: var(--pcolor); }
.mock-bar__title b { color: var(--fg); font-weight: 500; }
.mock-bar__crumbs {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table tr { border-bottom: 1px solid var(--hairline); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 18px 0;
  vertical-align: top;
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  width: 32%;
}
.spec-table td b {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}
.spec-table td span { color: var(--ink-300); }

/* Workflow diagram */
.workflow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
@media (max-width: 1024px) {
  .workflow { grid-template-columns: 1fr 1fr; }
}
.workflow__step {
  padding: 32px 24px;
  border-right: 1px solid var(--hairline);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.workflow__step:last-child { border-right: none; }
.workflow__num {
  width: 32px; height: 32px;
  background: var(--ink-800);
  border: 1px solid var(--pcolor);
  clip-path: var(--oct-sm);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--pcolor);
}
.workflow__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.workflow__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-300);
  margin: auto 0 0;
}

/* Inverted CTA on light */
.p-cta {
  background: var(--pcolor);
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  --muted: rgba(255,255,255,0.7);
  --hairline: rgba(255,255,255,0.2);
}
.p-cta h2 {
  font-size: clamp(40px, 5.6vw, 84px);
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.p-cta h2 em { font-style: italic; font-weight: 300; color: rgba(255,255,255,0.75); }
.p-cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 24px 0 32px;
}
.p-cta__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
@media (max-width: 1024px) {
  .p-cta__inner { grid-template-columns: 1fr; }
}
.p-cta .btn--accent {
  background: #fff;
  color: var(--pcolor);
}
.p-cta .btn--ghost {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.p-cta .btn--ghost::before { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); }

/* Cross-sell */
.cross-sell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) {
  .cross-sell { grid-template-columns: 1fr; }
}
