/* ============================================================
   Thought Pattern AI - Engram product page layout
   Page-specific only; shared chrome is in site.css.
   Mirrors the Tapestry / Conclave product-page layout.
   ============================================================ */

/* -------- Product hero ----------------------------------- */
.product-hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 120px) var(--tp-space-8) clamp(36px, 6vw, 80px);
  container-type: inline-size;
}
.product-hero .hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.phero-orb {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(0px, calc(100cqw - 720px), 440px);
  opacity: 0.85;
}
.phero-inner { position: relative; z-index: 1; max-width: 660px; }
.phero-glyph { display: block; width: 54px; height: 54px; margin: 0 0 var(--tp-space-5); }
.phero-title {
  font-family: var(--tp-font-display);
  font-weight: var(--tp-fw-regular);
  letter-spacing: var(--tp-ls-display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--tp-fg);
  margin: 0 0 var(--tp-space-4);
}
.phero-lede {
  font-family: var(--tp-font-serif);
  font-style: italic;
  font-size: var(--tp-fs-xl);
  color: var(--tp-fg);
  margin: 0 0 var(--tp-space-5);
}
.phero-intro {
  font-family: var(--tp-font-serif);
  font-size: var(--tp-fs-md);
  line-height: var(--tp-lh-body);
  color: var(--tp-fg-body);
  margin: 0 0 var(--tp-space-6);
}
.phero-meta {
  display: flex;
  align-items: center;
  gap: var(--tp-space-2);
  font-family: var(--tp-font-mono);
  font-size: var(--tp-fs-xs);
  letter-spacing: 0.04em;
  color: var(--tp-fg-muted);
  margin: 0 0 var(--tp-space-8);
}
.phero-ctas { display: flex; flex-wrap: wrap; gap: var(--tp-space-4); }

/* -------- Article / long-form sections ------------------- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--tp-space-8);
}
.article > section {
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--tp-border);
  scroll-margin-top: 88px;
}
.article .section-title { margin-bottom: var(--tp-space-5); }
.lede {
  font-family: var(--tp-font-serif);
  font-size: var(--tp-fs-lg);
  line-height: var(--tp-lh-body);
  color: var(--tp-fg-body);
  margin: 0 0 var(--tp-space-5);
}
.article p {
  font-family: var(--tp-font-serif);
  font-size: var(--tp-fs-md);
  line-height: var(--tp-lh-body);
  color: var(--tp-fg-muted);
  margin: 0 0 var(--tp-space-5);
}
.article p:last-child { margin-bottom: 0; }
.article p strong { color: var(--tp-fg); font-weight: var(--tp-fw-semi); }
.article code {
  font-family: var(--tp-font-mono);
  font-size: 0.9em;
  color: var(--tp-yellow);
  background: var(--tp-bg-recessed);
  padding: 0.12em 0.4em;
  border-radius: var(--tp-radius-sm);
}

.article ul { list-style: none; margin: 0 0 var(--tp-space-5); padding: 0; }
.article li {
  position: relative;
  font-family: var(--tp-font-serif);
  font-size: var(--tp-fs-md);
  line-height: var(--tp-lh-body);
  color: var(--tp-fg-muted);
  padding-left: var(--tp-space-6);
  margin-bottom: var(--tp-space-3);
}
.article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--tp-rule);
}
.article li strong { color: var(--tp-fg); font-weight: var(--tp-fw-semi); }

.callout {
  border-left: 2px solid var(--tp-line-yellow);
  background: var(--tp-bg-recessed);
  padding: var(--tp-space-5) var(--tp-space-6);
  margin: var(--tp-space-6) 0 0;
  border-radius: 0 var(--tp-radius-sm) var(--tp-radius-sm) 0;
}
.callout p { margin: 0; color: var(--tp-fg-body); }
.callout strong { color: var(--tp-yellow); }

/* the three differentiators: legible / learns / small */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tp-space-5);
  margin: var(--tp-space-6) 0;
}
.trio article {
  position: relative;
  padding: var(--tp-space-6);
  background: var(--tp-bg-surface);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
}
.trio h3 {
  font-family: var(--tp-font-mono);
  font-size: var(--tp-fs-sm);
  font-weight: 700;
  line-height: normal;
  letter-spacing: var(--tp-ls-mono);
  text-transform: uppercase;
  color: var(--tp-yellow);
  margin: 0 0 var(--tp-space-3);
}
.trio p { margin: 0; font-size: var(--tp-fs-base); }

/* -------- Responsive ------------------------------------- */
@media (max-width: 1000px) {
  .product-hero { container-type: normal; }
  .phero-orb { width: min(80%, 480px); right: -18%; opacity: 0.15; }
}
@media (max-width: 760px) {
  .trio { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .product-hero, .article { padding-left: var(--tp-space-5); padding-right: var(--tp-space-5); }
}
