/* Product page specific styles, on top of design-system/site.css + home/home.css */

/* ── Hero — layout uses global .hero-2col, .hero-2col-left, .hero-headline, .hero-sub, .hero-card-list ── */

/* ── Section 2 — The System ── */
.system-intro-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 1020px) {
  .system-intro-grid { grid-template-columns: 1fr; gap: 48px; }
}
.system-intro-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-body);
}
.system-intro-body p { margin: 0 0 16px; }
.system-intro-body p:last-child { margin-bottom: 0; }
.system-intro-em {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-style: italic;
  color: var(--ink-8);
  border-left: 2px solid var(--brand-gold);
  padding-left: 18px;
  margin: 28px 0 0;
}

/* System flow steps */
.system-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-hair);
  border-radius: 14px;
  overflow: hidden;
}
.system-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0;
  background: var(--ink-0);
  border-bottom: 1px solid var(--border-hair);
  transition: background 160ms ease;
  cursor: default;
}
.system-step:last-child { border-bottom: 0; }
.system-step:hover { background: var(--brand-plum-mist); }
.system-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--brand-gold);
  padding: 28px 0 28px 22px;
  line-height: 1;
  padding-top: 30px;
  border-right: 1px solid var(--border-hair);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  writing-mode: unset;
}
.system-step-body {
  padding: 24px 28px;
}
.system-step-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-plum);
  margin-bottom: 6px;
}
.system-step-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink-8);
  margin: 0 0 8px;
}
.system-step-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-secondary);
  margin: 0;
}

/* ── Product Table ── */
.pt-table-mono-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  margin-bottom: 12px;
}
/* Container: styled card, clips rounded corners, bleeds right */
.pt-card {
  background: var(--ink-0);
  border: 1px solid var(--border-hair);
  border-right: none;        /* open on the right so it bleeds off-screen naturally */
  border-radius: 16px 0 0 16px;
  box-shadow: 0 4px 24px rgba(69,43,81,0.08), 0 1px 4px rgba(69,43,81,0.04);
  overflow: hidden;          /* clips the rounded corners */
}
.pt-scroll-wrap {
  overflow: visible;         /* no scrollbar — decorative */
  padding: 0;
}
/* Bleed: CSS-only — push table column past the right viewport edge */
.output-table-col {
  min-width: 0;
  overflow: visible;
  margin-right: calc(-50vw + 50% - 120px);
  position: relative;
}
/* Gradient overlay — positioned on the section (which has position:relative + overflow:hidden) */
.output-fade-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  background: linear-gradient(to right, transparent 0%, transparent 15%, var(--ink-2) 65%);
  pointer-events: none;
  z-index: 4;
}
@media (min-width: 2000px) {
  .output-fade-right { width: 600px; background: linear-gradient(to right, transparent 0%, transparent 15%, var(--ink-2) 50%); }
}
@media (max-width: 1600px) {
  .output-fade-right { background: linear-gradient(to right, transparent 0%, transparent 15%, var(--ink-2) 95%); }
}
@media (max-width: 760px) {
  .output-fade-right { display: none; }
}
.pt-table {
  border-collapse: collapse;
  table-layout: fixed;
  font-family: var(--font-sans);
  width: max-content;
  background: var(--ink-0);
}

/* ── Section 3 — Product Output / UI ── */
.output-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 760px) {
  .output-grid { grid-template-columns: 1fr; gap: 40px; }
}
/* Center the two-col layout vertically and horizontally */
.output-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.output-copy-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-body);
  margin: 0 0 28px;
}
.output-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-hair);
}
.output-points li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-hair);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-7);
}
.output-points li svg { width: 18px; height: 18px; color: var(--brand-plum); margin-top: 2px; flex-shrink: 0; }

/* Product UI mock */
.product-ui-mock {
  background: var(--ink-0);
  border: 1px solid var(--border-hair);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(69,43,81,0.14);
}
.mock-topbar {
  background: var(--brand-plum-deep);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mock-topbar-dots {
  display: flex;
  gap: 6px;
}
.mock-topbar-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.mock-topbar-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  margin-left: 6px;
}
.mock-body { padding: 20px; }
.mock-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-hair);
}
.mock-table { width: 100%; border-collapse: collapse; }
.mock-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-hair);
}
.mock-table td {
  padding: 10px 10px;
  font-size: 14px;
  color: var(--ink-7);
  border-bottom: 1px solid var(--border-hair);
}
.mock-table tr:last-child td { border-bottom: 0; }
.mock-table tr:hover td { background: var(--brand-plum-mist); }
.mock-rank {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-tertiary);
  letter-spacing: 0.08em;
}
.mock-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mock-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-plum-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-plum);
  flex-shrink: 0;
}
.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.mock-pill--strongest { background: rgba(47,111,78,0.12); color: #1f5c37; }
.mock-pill--strong    { background: rgba(69,43,81,0.10); color: var(--brand-plum); }
.mock-pill--moderate  { background: rgba(156,107,30,0.12); color: #7a5012; }
.mock-caption {
  font-size: 13px;
  color: var(--fg-tertiary);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
  font-family: var(--font-serif);
}

/* ── Section 3b — Attributes ── */
.attr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) {
  .attr-grid { grid-template-columns: 1fr; }
}

/* ── Section 4 — Differentiation ── */
/* reuses diff-grid / diff-card from home.css — no overrides needed */

/* ── Section 5 — Use Cases ── */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .use-cases-grid { grid-template-columns: 1fr; }
}
.use-case-card {
  background: var(--ink-0);
  border: 1px solid var(--border-hair);
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
}
.use-case-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-tertiary);
  margin-bottom: 16px;
}
.use-case-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink-8);
  margin: 0 0 12px;
}
.use-case-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-secondary);
  margin: 0;
}

/* ── Section 6 — Outcomes ── */
.prod-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-hair);
  border: 1px solid var(--border-hair);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 56px;
}
/* 5th item spans full width on the bottom row so it doesn't orphan */
.prod-outcomes-grid .outcome-item:nth-child(4),
.prod-outcomes-grid .outcome-item:nth-child(5) {
  grid-column: span 1;
}
/* Center the bottom two by making them each span 1.5 cols via a 6-col subgrid trick — 
   simpler: just let the 4th and 5th sit in col 1 and 2 of row 2, 
   and pad the grid to show 3 cols with the 5th spanning 2 */
.prod-outcomes-grid .outcome-item:nth-child(5) {
  grid-column: 2 / 4;
}
@media (max-width: 860px) {
  .prod-outcomes-grid { grid-template-columns: 1fr; }
  .prod-outcomes-grid .outcome-item:nth-child(4),
  .prod-outcomes-grid .outcome-item:nth-child(5) { grid-column: span 1; }
}

/* System step without the left number column */
.system-step--no-num {
  grid-template-columns: 1fr;
}
.outcome-item {
  background: var(--ink-0);
  padding: 36px 32px;
}
.outcome-item-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--brand-plum-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-plum);
  margin-bottom: 20px;
}
.outcome-item-icon svg { width: 20px; height: 20px; }
.outcome-item-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink-8);
  margin: 0 0 10px;
}
.outcome-item-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-secondary);
  margin: 0;
}
