/* ==========================================================================
   Intellox Proof (proof.html). Loaded after styles.css.
   Adapts the owner-supplied reference page into the site design language:
   site tokens, .wrap / .band rhythm, .frame / .btn / .page-footnote where they fit,
   Space Grotesk headings, Inter body, JetBrains Mono labels, 2px corners throughout.
   Default styles are the final static state. Motion is additive and only runs when
   the user has not asked for reduced motion (proof.js arms it).
   ========================================================================== */

:root {
  --px-mint: #6ee7b7;   /* site accent (diagram highlights, focus marks) */
  --px-warn: #fbbf24;   /* caution state in forensic output (reference colour) */
}

/* ---- Page-scoped corner language: square 2px everywhere on this page ---- */
.px-page .frame,
.px-page figure.diagram,
.px-page .btn,
.px-page .mobile-toggle,
.px-page .nav-menu,
.px-page .form-control,
.px-page .skip-link { border-radius: 2px; }

/* ---- Header lockup (intellox | PROOF): this page's header only ---- */
.px-lockup { display: inline-flex; align-items: center; gap: 0.7rem; }
.px-lockup-logo { display: block; height: calc(22px * var(--logo-scale, 1)); width: auto; max-width: none; transition: height 220ms ease; }
.px-lockup-div { display: block; width: 1px; height: 20px; background: var(--border-strong); flex: 0 0 1px; }
.px-lockup-word { font-family: var(--font-mono); font-size: 0.73rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); line-height: 1; }
@media (max-width: 420px) { .px-lockup-word { font-size: 0.66rem; } }
/* The longer Proof lockup and second CTA need tighter gaps before the shared drawer breakpoint. */
@media (1000px < width <= 1200px) {
  .px-page .topbar-inner, .px-page .nav-menu { gap: 0.65rem; }
  .px-page .header-actions { gap: 0.4rem; }
  .px-page .header-actions .btn { padding-inline: 0.6rem; }
}
/* Keep Book Sprint beside the menu on small phones; the secondary CTA remains in the drawer. */
@media (max-width: 520px) {
  .px-page .header-actions button.header-start { display: none; }
}

/* ---- Shared labels ---- */
.px-eyebrow { display: block; color: var(--ink-muted); font-size: 0.72rem; letter-spacing: 0.12em; margin-bottom: 1rem; }
.px-body { color: var(--ink-muted); font-size: 1rem; line-height: 1.65; max-width: 62ch; margin-top: 1.1rem; }
.px-code { font-family: var(--font-mono); font-size: 0.85em; color: var(--ink); }
.px-muted { color: var(--ink-dim); font-size: 0.72rem; }
.px-ink { color: var(--ink); }
.px-ink-line { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink); }
.px-strong { font-weight: 600; }
.px-small { font-size: 0.8rem; color: var(--ink-muted); line-height: 1.55; }
.px-ok { color: var(--status-ok); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em; }
.px-ok-small { font-size: 0.72rem; color: var(--status-ok); }
.px-bad { color: var(--status-bad); font-family: var(--font-mono); font-size: 0.78rem; margin-top: 0.3rem; }
.px-warn { color: var(--px-warn); font-family: var(--font-mono); font-size: 0.78rem; margin-top: 0.3rem; }
.is-ok { color: var(--status-ok); }
.is-bad { color: var(--status-bad); }
.is-muted { color: var(--ink-muted); }

/* ---- Hero ---- */
.px-lead { margin: 1.35rem 0 0; text-align: left; max-width: 62ch; color: var(--ink-muted); }
.px-asterisk { font-family: var(--font-mono); font-size: 0.7em; color: var(--ink-secondary); vertical-align: super; margin-left: 0.05em; }
.px-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.px-ctas .btn span[aria-hidden] { font-family: var(--font-sans); letter-spacing: 0; }

.px-jump {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem;
  padding: 1.1rem 0; margin-top: 3rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.px-jump a { color: var(--ink-muted); text-decoration: none; transition: color 0.2s; }
.px-jump a:hover { color: var(--ink); }

.px-deadlines { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.px-deadlines .px-eyebrow { margin-bottom: 1rem; }
.px-deadline-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border-strong); border-radius: 2px; background: var(--surface-solid); }
.px-deadline { padding: 1rem 1.1rem; border-left: 1px solid var(--border); min-width: 0; }
.px-deadline:first-child { border-left: 0; }
.px-deadline-date { font-family: var(--font-mono); font-size: 0.69rem; letter-spacing: 0.06em; color: var(--ink); line-height: 1.55; }
.px-deadline p { font-size: 0.8rem; color: var(--ink-muted); margin-top: 0.4rem; line-height: 1.5; }
@media (max-width: 980px) {
  .px-deadline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-deadline:nth-child(3) { border-left: 0; }
  .px-deadline:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .px-deadline-grid { grid-template-columns: minmax(0, 1fr); }
  .px-deadline { border-left: 0; border-top: 1px solid var(--border); }
  .px-deadline:first-child { border-top: 0; }
}

/* ---- Section heads ---- */
.px-head { align-items: flex-end; }
.px-head-copy { max-width: 64ch; min-width: 0; }

/* ---- Schematic plates (figure.diagram carries the site border and background) ---- */
figure.diagram.px-plate { margin: 0 0 1.5rem; padding: 0; background: var(--bg-elevated); border-color: var(--border-strong); max-width: none; }
.px-plate-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--border); }
.px-plate-label { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ink-secondary); }
.px-plate-meta { font-size: 0.68rem; letter-spacing: 0.08em; color: var(--ink-dim); }
figure.diagram.px-plate figcaption.px-plate-label { display: block; margin: 0; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--border); color: var(--ink-muted); font-size: 0.7rem; letter-spacing: 0.1em; line-height: 1.4; }
.px-scroll { overflow-x: auto; padding: 1rem; background: var(--bg); }
.px-scroll::-webkit-scrollbar { height: 6px; }
.px-scroll::-webkit-scrollbar-track { background: var(--bg-elevated); }
.px-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }
.px-art { display: block; width: 100%; height: auto; }
.px-art-core { min-width: 680px; }
.px-art-flow { min-width: 560px; }
.px-plate-tight .px-scroll { padding: 1rem 0.9rem; }

/* ---- Core: three pillars ---- */
.px-pillars { margin-top: 1.5rem; }
.px-pillar { padding: clamp(1.25rem, 2.2vw, 1.6rem); min-width: 0; }
.px-pillar-title { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink); line-height: 1.5; margin-bottom: 0.8rem; font-weight: 500; }
.px-pillar p { color: var(--ink-muted); font-size: 0.92rem; line-height: 1.65; }

/* ---- Two-column modules (Decision / Retrieval) ---- */
.px-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; }
.px-split-copy { min-width: 0; }
.px-split-demo { min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 981px) { .px-split-copy { position: sticky; top: 6.5rem; } }
@media (max-width: 980px) { .px-split { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; } }

.px-outcomes { list-style: none; margin: 1.8rem 0 0; padding: 0; border-top: 1px solid var(--border); }
.px-outcomes li { display: flex; gap: 0.9rem; padding: 0.95rem 0; border-bottom: 1px solid var(--border); color: var(--ink-muted); font-size: 0.92rem; line-height: 1.6; }
.px-outcomes strong { color: var(--ink); font-weight: 600; }
.px-num { font-size: 0.75rem; color: var(--ink); padding-top: 0.2rem; flex: 0 0 1.8rem; }

.px-ecosystems { border-top: 1px solid var(--border); padding-top: 1.2rem; margin-top: 1.8rem; }
.px-eco-list { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.03em; color: var(--ink); line-height: 1.7; }

/* ---- Demo panels (.frame carries surface and hairline) ---- */
.px-demo { padding: 0; overflow: hidden; min-width: 0; }
.px-demo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.8rem 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--border); }
.px-demo-kicker { font-size: 0.68rem; letter-spacing: 0.1em; color: var(--ink-dim); }
.px-demo-id { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-secondary); margin-top: 0.4rem; word-break: break-word; line-height: 1.5; }
.px-badge { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; padding: 0.35rem 0.65rem; border: 1px solid var(--border-strong); border-radius: 2px; color: var(--ink-secondary); white-space: nowrap; }
.px-badge.is-ok { color: var(--status-ok); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.06); }
.px-badge.is-bad { color: var(--status-bad); border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.06); }

.px-tablist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--border); background: rgba(7, 7, 9, 0.6); }
.px-tablist-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.px-tab {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.03em; line-height: 1.4;
  text-align: left; min-height: 44px; padding: 0.85rem 1.1rem;
  background: transparent; color: var(--ink-dim); border: 0; border-right: 1px solid var(--border); border-radius: 0;
  cursor: pointer; transition: color 0.2s ease, background-color 0.2s ease;
}
.px-tab:last-child { border-right: 0; }
.px-tab:hover { color: var(--ink); }
.px-tab[aria-selected="true"] { background: var(--bg-elevated); color: var(--ink); box-shadow: inset 0 -2px 0 var(--px-mint); }
.px-tab:focus-visible { outline: 1px solid var(--ink); outline-offset: -4px; }
@media (max-width: 640px) {
  .px-tablist, .px-tablist-2 { grid-template-columns: minmax(0, 1fr); }
  .px-tab { border-right: 0; border-bottom: 1px solid var(--border); }
  .px-tab:last-child { border-bottom: 0; }
}

.px-demo-body { padding: 1.3rem; display: grid; gap: 1rem; min-width: 0; }
.px-demo-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 0.9rem; }
.px-demo-title { font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.px-demo-meta { font-size: 0.68rem; letter-spacing: 0.04em; color: var(--ink-dim); }

.px-cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.px-card { border: 1px solid var(--border); border-radius: 2px; background: var(--bg-elevated); padding: 1rem 1.1rem; display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.px-card-deep { background: var(--bg); }
.px-label { font-size: 0.66rem; letter-spacing: 0.1em; color: var(--ink-dim); }
.px-factors { list-style: none; display: grid; gap: 0.55rem; font-size: 0.9rem; color: var(--ink); padding: 0; margin: 0; }
.px-factors li { display: flex; gap: 0.6rem; line-height: 1.5; }
.px-fid { font-size: 0.72rem; color: var(--ink-dim); padding-top: 0.2rem; flex: 0 0 2.2rem; }
.px-range { font-size: 1rem; font-weight: 600; color: #fff; }
.px-break { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink); word-break: break-all; line-height: 1.5; }
.px-appeal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.9rem; background: var(--bg); }
.px-chip { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.03em; border: 1px solid var(--border-strong); border-radius: 2px; padding: 0.4rem 0.6rem; color: var(--ink); white-space: nowrap; }
.px-appeal .px-chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.px-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.px-seal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.7rem; color: var(--ink-muted); padding: 0.8rem 1rem; background: var(--bg-elevated); }
.px-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.px-kpi { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; color: #fff; margin: 0.3rem 0 0.2rem; }
.px-kpi.px-ok { color: var(--status-ok); font-size: 1.25rem; }
.px-regimes { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.8rem; background: var(--bg); }
@media (max-width: 900px) { .px-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .px-cards-2 { grid-template-columns: minmax(0, 1fr); } }

/* Forensic (ghost-vector) pane */
.px-forensic { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }
.px-term { font-family: var(--font-mono); font-size: 0.74rem; line-height: 1.7; color: var(--ink-secondary); background: var(--bg); border: 1px solid var(--border); border-radius: 2px; padding: 1rem; overflow-x: auto; white-space: pre; margin: 0; min-width: 0; }
.px-term code { font-family: inherit; }
.c-muted { color: var(--ink-dim); }
.c-ink { color: var(--ink); }
.c-warn { color: var(--px-warn); }
.c-bad { color: var(--status-bad); }
.c-ok { color: var(--status-ok); }
.c-strong { font-weight: 600; }
.px-forensic-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem 1.2rem; align-content: start; font-family: var(--font-mono); font-size: 0.75rem; }
.px-stat { border-top: 1px solid var(--border); padding-top: 0.85rem; }
.px-stat .px-label { display: block; }
.px-stat.px-bad, .px-stat.px-ok { font-size: 0.72rem; letter-spacing: 0.03em; }

/* Tiered erasure strip */
.px-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border-strong); border-radius: 2px; background: var(--surface-solid); }
.px-tier { padding: 1rem 1.1rem; border-left: 1px solid var(--border); min-width: 0; }
.px-tier:first-child { border-left: 0; }
.px-tier-name { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--ink); font-weight: 500; }
.px-tier-name.is-ok { color: var(--status-ok); }
.px-tier-name.is-muted { color: var(--ink-muted); }
.px-tier p { font-size: 0.8rem; color: var(--ink-muted); margin-top: 0.4rem; line-height: 1.5; }
@media (max-width: 640px) {
  .px-tiers { grid-template-columns: minmax(0, 1fr); }
  .px-tier { border-left: 0; border-top: 1px solid var(--border); }
  .px-tier:first-child { border-top: 0; }
}

/* ---- Offline verifier CLI simulator ---- */
.px-cli { padding: 0; overflow: hidden; }
.px-cli-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.3rem; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.px-toolbar-groups { display: flex; flex-wrap: wrap; gap: 0.7rem; min-width: 0; }
.px-toolbar-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.px-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border-strong); border-radius: 2px; background: var(--bg); max-width: 100%; }
.px-seg-btn {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em; line-height: 1.3;
  min-height: 40px; padding: 0.55rem 0.9rem;
  background: transparent; color: var(--ink-dim); border: 0; border-radius: 0; cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.px-seg-btn + .px-seg-btn { border-left: 1px solid var(--border-strong); }
.px-seg-btn:hover { color: var(--ink); }
.px-seg-btn[aria-pressed="true"] { background: var(--surface-solid); color: var(--ink); box-shadow: inset 0 -2px 0 var(--px-mint); }
.px-seg-btn:focus-visible { outline: 1px solid var(--ink); outline-offset: -4px; }

.px-term-wrap { padding: 1.3rem; background: var(--bg); font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.6; min-width: 0; }
.px-term-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 0.9rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.px-term-cmd { color: var(--ink); word-break: break-all; }
.px-prompt { color: var(--ink-dim); }
.px-term-out { display: grid; min-height: 218px; }
.px-term-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.25rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.px-term-row:last-child { border-bottom: 0; }
@media (min-width: 720px) { .px-term-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 0.8rem; } }
.px-r-name { display: flex; gap: 0.7rem; align-items: flex-start; }
.px-r-status { flex: 0 0 auto; font-weight: 600; color: var(--status-ok); }
.px-r-status.is-fail { color: var(--status-bad); }
.px-r-title { color: var(--ink); font-weight: 500; }
.px-r-detail { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: center; font-size: 0.7rem; padding-left: 3.2rem; color: var(--ink-secondary); }
@media (min-width: 720px) { .px-r-detail { padding-left: 0; } }
.px-r-detail.is-fail { color: var(--status-bad); }
.px-r-ms { color: var(--ink-dim); }
.px-term-foot { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; }
.px-verdict { font-size: 0.78rem; font-weight: 600; color: var(--ink-secondary); }
.px-verdict.is-ok { color: var(--status-ok); }
.px-verdict.is-bad { color: var(--status-bad); }
.px-verdict.is-run { color: var(--ink-secondary); font-weight: 500; }

/* ---- Engagement stages ---- */
.px-stages { align-items: stretch; }
.px-stage { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-width: 0; }
.px-stage.is-featured { background: var(--bg-elevated); border-color: var(--border-strong); }
.px-stage-title { font-size: 1.2rem; letter-spacing: -0.02em; margin: 0.9rem 0 0.8rem; }
.px-stage-price { font-family: var(--font-mono); font-size: 1.45rem; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.px-unit { font-size: 0.75rem; font-weight: 400; color: var(--ink-dim); }
.px-stage p { color: var(--ink-muted); font-size: 0.9rem; line-height: 1.6; margin-top: 0.9rem; }
.px-stage-foot { border-top: 1px solid var(--border); padding-top: 1.1rem; display: grid; gap: 0.6rem; }
.px-output { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink); line-height: 1.5; }
.px-stage-cta { display: inline-flex; gap: 0.4rem; align-items: center; margin-top: 0.4rem; font-size: 0.85rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; justify-self: start; transition: border-color 0.2s ease; }
.px-stage-cta:hover { border-bottom-color: var(--ink); }

.px-closing { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 2rem; }
.px-closing-title { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.6rem; }
.px-closing p { color: var(--ink-muted); font-size: 0.95rem; }
.px-closing-copy { min-width: 0; max-width: 60ch; }
.px-closing-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.px-mail { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-muted); text-decoration: none; padding: 0.5rem; }
.px-mail:hover { color: var(--ink); }

/* ---- Enterprise pricing card (centred) and form ---- */
.px-pricing-card { max-width: 720px; margin-inline: auto; text-align: center; }
.px-pricing-card .px-list { margin-inline: auto; }
.px-pricing-card .px-list li { padding: 0.45rem 0; }
.px-pricing-card .px-list li::before { display: none; }
.px-pricing-card .px-price { margin-inline: auto; }
.px-pricing-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.9rem; }
.px-pricing-title { font-size: 1.5rem; margin-bottom: 1rem; }
.px-list { list-style: none; margin: 0 0 1.4rem; padding: 0; max-width: 64ch; }
.px-list li { color: var(--ink-muted); font-size: 0.95rem; padding: 0.45rem 0 0.45rem 1.2rem; position: relative; line-height: 1.6; }
.px-list li::before { content: ''; position: absolute; left: 0; top: 0.95rem; width: 6px; height: 1px; background: var(--border-strong); }
.px-price { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.02em; color: var(--ink-secondary); border-top: 1px solid var(--border); padding-top: 1rem; margin: 1.4rem 0; max-width: 64ch; }

/* ---- Enterprise pricing form (modal) ---- */
.px-form { max-width: 640px; }
.px-form-row { gap: 0.9rem; }
.px-submit { width: 100%; margin-top: 0.4rem; }
.px-privacy { color: var(--ink-muted); font-size: 0.8rem; margin-top: 0.75rem; }
/* Pricing form lives in a modal popup (#pricing-modal, markup in proof.html; behaviour in proof.js). */
.px-page .modal-panel { border-radius: 2px; }
.px-modal-panel { max-width: 600px; }
.px-modal-title { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 0.35rem; padding-right: 2rem; }
.px-modal-intro { color: var(--ink-muted); font-size: 0.88rem; margin-bottom: 1.25rem; }
.px-modal-form { max-width: none; }
.px-modal-form .px-form-row { grid-template-columns: minmax(0, 1fr); }
.px-modal-form .form-group { margin-bottom: 1rem; }
/* What Enterprise includes: shown at the top of the modal, above the form fields */
.px-inclusions { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0.9rem 0 0.7rem; margin-bottom: 1.25rem; }
.px-inc-label { font-size: 0.7rem; letter-spacing: 0.08em; color: var(--ink-dim); margin-bottom: 0.5rem; }
.px-inc-list { list-style: none; margin: 0; padding: 0; }
.px-inc-list li { color: var(--ink-muted); font-size: 0.85rem; line-height: 1.5; padding: 0.3rem 0 0.3rem 1.1rem; position: relative; }
.px-inc-list li::before { content: ''; position: absolute; left: 0; top: 0.8rem; width: 6px; height: 1px; background: var(--border-strong); }

/* ---- Reveal on scroll: plays once; reduced motion keeps everything visible ---- */
@media (prefers-reduced-motion: no-preference) {
  .px-armed .px-reveal:not(.is-in) { opacity: 0; transform: translateY(14px); }
  .px-reveal { transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
  .px-term-row.px-enter { animation: px-line-in 150ms ease both; }
  @keyframes px-line-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
}

/* ---- Mobile polish ---- */
@media (max-width: 560px) {
  .px-ctas .btn { width: 100%; }
  .px-toolbar-actions .btn { flex: 1 1 auto; }
  .px-cli-toolbar { padding: 0.9rem 1rem; }
  .px-term-wrap { padding: 1rem; }
}

/* ---- RC1 demos: monochrome frames; media carries the only colour ---- */
.px-demos { align-items: start; }
/* asciinema start overlay: keep the big play glyph in the empty lower band of the poster so it never covers the poster text (6/6 line, DECISION box). Monochrome. */
.px-demo-card asciinema-player .ap-overlay-start .ap-play-button { top: auto; bottom: 4px; left: 50%; right: auto; margin: 0; transform: translateX(-50%); height: 24px; max-height: none; width: 24px; }
.px-demo-card { margin: 0; padding: 0; overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.px-demo-card img, .px-demo-card video, .px-demo-card asciinema-player { display: block; width: 100%; height: auto; background: var(--bg); border-bottom: 1px solid var(--border); }
.px-demo-card figcaption { padding: 0.9rem 1.1rem; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ink-muted); }
.px-demo-caption { margin-top: 1.5rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-muted); line-height: 1.6; }

/* ---- Demo players (asciinema-player, self-hosted in assets/vendor). Obsidian monochrome:
   no yellow, no accent colour inside the terminal. theme="none" leaves colours to these rules. ---- */
asciinema-player { display: block; width: 100%; max-width: 100%; min-height: 200px; background: #070709; }
asciinema-player .ap-player,
asciinema-player .ap-wrapper,
asciinema-player .ap-terminal {
  --term-color-background: #070709;
  --term-color-foreground: #f5f5f2;
  --term-color-0: #2a2a31;
  --term-color-1: #e4e4e0;
  --term-color-2: #d6d6d2;
  --term-color-3: #c8c8d0;
  --term-color-4: #e4e4e0;
  --term-color-5: #d6d6d2;
  --term-color-6: #c8c8d0;
  --term-color-7: #f5f5f2;
  --term-color-8: #8a8a95;
  --term-color-9: #f5f5f2;
  --term-color-10: #ececea;
  --term-color-11: #e0e0dc;
  --term-color-12: #ececea;
  --term-color-13: #e0e0dc;
  --term-color-14: #ececea;
  --term-color-15: #ffffff;
  background: #070709;
  color: #f5f5f2;
}
asciinema-player .ap-player { border-radius: 0; box-shadow: none; width: 100%; }
asciinema-player .ap-control-bar { background: #0c0c10; color: #c8c8d0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
asciinema-player .ap-control-bar * { color: inherit; }

/* ---- Proof demo sizing pilot ---- */
/* Keep the same tracks as .grid-3, but never span the tablet orphan. */
body.px-demo-sizing-pilot .px-demos > .px-demo-card { grid-column: auto; }

/* Reserve the same space before posters, video metadata or casts load. */
body.px-demo-sizing-pilot .px-demos .px-demo-media {
  position: relative;
  min-block-size: 200px;
  padding-block-end: 34px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
/* The 80×30 terminal is about 6:5 before adding its control bar. */
body.px-demo-sizing-pilot .px-demo-media::before {
  content: "";
  display: block;
  aspect-ratio: 6 / 5;
}
body.px-demo-sizing-pilot .px-demo-media :is(asciinema-player, video, img) {
  position: absolute;
  inset: 0;
  block-size: 100%;
  min-block-size: 0;
  border: 0;
}
body.px-demo-sizing-pilot .px-demo-media :is(video, img) { object-fit: contain; }
body.px-demo-sizing-pilot .px-demo-media asciinema-player:not(:defined) { display: none; }
