/* ===========================================================
   OGRE — Pillar Redesign shared primitives
   Used by Rent / Maintain / Sell (Acquire has its own file).
   Mirrors the Acquire visual language so the four pillar pages
   share one system while each keeps a distinct structure.
   Inherits tokens from styles.css.
   =========================================================== */

:root {
  --px-dark: #0B0C10;
  --px-ink: var(--text-dark-primary);
  --px-slate: var(--text-dark-secondary);
  --px-muted: var(--text-muted-metadata);
  --px-ok: #15803D;
  --px-ok-bg: #E6F4EA;
  --px-warn: #B45309;
  --px-warn-bg: #FCEFDC;
  --px-info: #1D5FB4;
  --px-info-bg: #E4EEFB;
}

/* ---- Reveal: always visible (overrides styles.css `.reveal{opacity:0}`).
   Motion comes from hover + live pulses, not entrance fades, so rendering
   is stable everywhere. ---- */
.reveal { opacity: 1 !important; transform: none !important; }

.px-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 920px) { .px-wrap { padding: 0 26px; } }

/* ---- Type helpers ---- */
.px-kicker {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); display: inline-flex; align-items: center; gap: 10px;
}
.px-kicker::before { content: ''; width: 22px; height: 1.5px; background: var(--orange); display: inline-block; }
.px-eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--px-muted); display: block; margin-bottom: 18px;
}
.px-h2 {
  font-family: 'Satoshi', sans-serif; font-weight: 900;
  font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.2; letter-spacing: -0.03em;
  color: var(--px-ink); text-wrap: pretty; margin: 0;
}
.px-lead { font-size: 17px; line-height: 1.62; color: var(--px-slate); max-width: 52ch; margin: 24px 0 0; text-wrap: pretty; }
.px-section-head .px-lead, .px-showcase-head .px-lead { margin-top: 40px; }
.px-section-head { max-width: 660px; }

/* ---- Crumb ---- */
.px-crumb {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Hanken Grotesk', sans-serif; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 26px;
}
.px-crumb a { color: var(--px-slate); text-decoration: none; transition: color .2s; }
.px-crumb a:hover { color: var(--orange); }
.px-crumb .sep { color: var(--px-muted); }
.px-crumb .here { color: var(--px-ink); }

/* ===========================================================
   HERO scaffold (light, grid bg, glow)
   =========================================================== */
.px-hero {
  position: relative; background: var(--bg-light);
  border-bottom: 1px solid var(--border-muted-light);
  padding: clamp(150px, 17vh, 200px) 0 clamp(64px, 8vh, 96px);
  overflow: hidden; isolation: isolate;
}
.px-hero-gridbg {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--grid-line) 1.4px, transparent 1.4px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 70% 4%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 100% 70% at 70% 4%, #000 0%, transparent 72%);
  opacity: 0.9; z-index: 0;
}
.px-hero-glow {
  position: absolute; top: -180px; right: -120px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, var(--orange-tint) 0%, rgba(233,78,27,0) 64%);
  z-index: 0; pointer-events: none;
}
.px-hero-inner {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 5vw, 76px); align-items: center;
}
.px-hero h1 {
  font-family: 'Satoshi', sans-serif; font-weight: 900;
  font-size: clamp(2.5rem, 4.4vw, 3.9rem); line-height: 1.14; letter-spacing: -0.035em;
  color: var(--px-ink); margin: 14px 0 0; max-width: 16ch; text-wrap: pretty;
}
.px-hero .px-lead { font-size: 18px; max-width: 50ch; margin-top: 40px; }
.px-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.px-hero-meta {
  display: flex; align-items: center; gap: 26px; margin-top: 38px; padding-top: 26px;
  border-top: 1px solid var(--border-muted-light);
}
.px-hero-meta-item { display: flex; flex-direction: column; gap: 3px; }
.px-hero-meta-num {
  font-family: 'Satoshi', sans-serif; font-weight: 900; font-size: 30px; line-height: 1;
  letter-spacing: -0.03em; color: var(--px-ink);
}
.px-hero-meta-num small { color: var(--orange); font-size: 19px; }
.px-hero-meta-label { font-family: 'Hanken Grotesk', sans-serif; font-size: 10.5px; letter-spacing: 0.04em; color: var(--px-muted); }
.px-hero-meta-div { width: 1px; height: 34px; background: var(--border-muted-light); }
@media (max-width: 980px) {
  .px-hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .px-hero h1 { max-width: 20ch; }
}

/* ===========================================================
   Console / dashboard primitives (window chrome, tiles, table)
   =========================================================== */
.px-console {
  position: relative; background: var(--bg-pure-white);
  border: 1px solid var(--border-muted-light); border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(27,36,48,0.04), 0 40px 80px -34px rgba(27,36,48,0.30), 0 16px 34px -24px rgba(27,36,48,0.20);
}
.px-bar {
  display: flex; align-items: center; gap: 9px; padding: 14px 18px;
  border-bottom: 1px solid var(--border-muted-light); background: var(--bg-light);
}
.px-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-muted-light); }
.px-dot.live { background: rgba(233,78,27,0.6); }
.px-bar-title { margin-left: 8px; font-family: 'Hanken Grotesk', sans-serif; font-size: 11px; letter-spacing: 0.04em; color: var(--px-muted); }
.px-bar-tag {
  margin-left: auto; font-family: 'Hanken Grotesk', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--px-ok); display: inline-flex; align-items: center; gap: 6px;
}
.px-bar-tag .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--px-ok);
  box-shadow: 0 0 0 0 rgba(21,128,61,0.5); animation: pxPulse 2.2s infinite;
}
@keyframes pxPulse {
  0% { box-shadow: 0 0 0 0 rgba(21,128,61,0.45); }
  70% { box-shadow: 0 0 0 7px rgba(21,128,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(21,128,61,0); }
}
.px-console-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }

/* KPI tiles */
.px-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.px-kpi { border: 1px solid var(--border-muted-light); border-radius: 11px; padding: 14px; background: var(--bg-pure-white); }
.px-kpi-label { font-family: 'Hanken Grotesk', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--px-muted); }
.px-kpi-val { font-family: 'Satoshi', sans-serif; font-weight: 900; font-size: 24px; line-height: 1.1; letter-spacing: -0.03em; color: var(--px-ink); margin-top: 6px; }
.px-kpi-val small { font-size: 13px; color: var(--orange); margin-left: 1px; }

/* chips */
.px-chip { font-family: 'Hanken Grotesk', sans-serif; font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em; padding: 4px 9px; border-radius: 5px; white-space: nowrap; }
.px-chip-ok { background: var(--px-ok-bg); color: var(--px-ok); }
.px-chip-warn { background: var(--px-warn-bg); color: var(--px-warn); }
.px-chip-orange { background: var(--orange-tint); color: var(--orange); }
.px-chip-info { background: var(--px-info-bg); color: var(--px-info); }

/* data table */
.px-table { border: 1px solid var(--border-muted-light); border-radius: 11px; overflow: hidden; }
.px-tr { display: grid; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-muted-light); font-size: 12.5px; }
.px-tr:last-child { border-bottom: none; }
.px-tr.head {
  background: var(--bg-light); font-family: 'Hanken Grotesk', sans-serif; font-size: 9px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--px-muted);
}
.px-tr:not(.head):hover { background: var(--bg-light); }
.px-cell-id { font-family: 'Hanken Grotesk', sans-serif; font-weight: 600; color: var(--px-ink); }
.px-cell-name { color: var(--px-ink); font-weight: 500; }
.px-cell-name span { display: block; font-family: 'Hanken Grotesk', sans-serif; font-size: 10px; color: var(--px-muted); font-weight: 400; margin-top: 2px; }
.px-cell-val { font-family: 'Satoshi', sans-serif; font-weight: 700; color: var(--px-ink); }

/* side nav (for full consoles) */
.px-side { border-right: 1px solid var(--border-muted-light); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--bg-light); }
.px-side-grp { font-family: 'Hanken Grotesk', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--px-muted); padding: 14px 12px 8px; }
.px-side-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; font-size: 13px; color: var(--px-slate); }
.px-side-item svg { width: 16px; height: 16px; color: var(--px-muted); flex-shrink: 0; }
.px-side-item.active { background: var(--orange-tint); color: var(--orange); font-weight: 600; }
.px-side-item.active svg { color: var(--orange); }

/* ===========================================================
   Dark showcase band + floating callouts
   =========================================================== */
.px-showcase {
  position: relative; background: var(--px-dark); color: #fff;
  padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; isolation: isolate;
}
.px-showcase::before {
  content: ''; position: absolute; top: -10%; right: -6%; width: 680px; height: 680px; border-radius: 50%;
  background: radial-gradient(circle, var(--orange-glow) 0%, rgba(233,78,27,0) 62%); z-index: 0; pointer-events: none;
}
.px-showcase-gridbg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1.2px, transparent 1.2px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000, transparent 78%); z-index: 0;
}
.px-showcase > .px-wrap { position: relative; z-index: 1; }
.px-showcase .px-eyebrow { color: rgba(255,255,255,0.55); }
.px-showcase .px-h2 { color: #fff; }
.px-showcase .px-lead { color: rgba(255,255,255,0.74); }
.px-showcase-head { max-width: 620px; margin-bottom: clamp(44px, 5vw, 64px); }

.px-callout {
  position: absolute; pointer-events: auto;
  background: rgba(11,12,16,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 11px; padding: 12px 15px; max-width: 210px;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.6);
}
.px-callout .ct { font-family: 'Hanken Grotesk', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #FF8A5C; display: block; margin-bottom: 5px; }
.px-callout .cx { font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,0.92); }
@media (max-width: 1100px) {
  .px-callout {
    position: static !important; inset: auto !important; max-width: none !important;
    margin-top: 14px; background: rgba(255,255,255,0.05) !important; box-shadow: none !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
}

/* ===========================================================
   Horizontal flow rail (stepped process)
   =========================================================== */
.px-rail { display: grid; gap: 16px; position: relative; }
.px-rail::before {
  content: ''; position: absolute; top: 34px; left: 0; right: 0; height: 1px;
  background: rgba(0, 0, 0, 0.12); z-index: 0;
}
.px-node {
  position: relative; z-index: 1; background: var(--bg-pure-white); border: 1px solid var(--border-muted-light);
  border-radius: 14px; padding: 22px 20px 24px;
  transition: box-shadow .2s ease;
}
/* Hover = only two signals: orange outlined badge + 2px orange top border (inset, no reflow) */
.px-node:hover { box-shadow: inset 0 2px 0 0 var(--orange); }
.px-num {
  width: 26px; height: 26px; border-radius: 50%; background: transparent;
  border: 2px solid var(--px-ink); color: var(--px-ink);
  display: grid; place-items: center; font-family: 'Hanken Grotesk', sans-serif; font-size: 11px; font-weight: 700;
  margin-bottom: 18px; box-shadow: 0 0 0 5px var(--bg-pure-white);
  transition: border-color .2s ease, color .2s ease;
}
.px-node:hover .px-num { border-color: var(--orange); color: var(--orange); }
.px-node-lbl { font-family: 'Hanken Grotesk', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 8px; }
.px-node h3 { font-family: 'Satoshi', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.015em; color: var(--px-ink); margin: 0 0 9px; line-height: 1.25; }
.px-node p { font-size: 13px; line-height: 1.5; color: var(--px-slate); margin: 0; }

/* ===========================================================
   Capability ledger (bordered grid of caps)
   =========================================================== */
.px-ledger-label {
  font-family: 'Hanken Grotesk', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--px-muted); display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
}
.px-ledger-label::before { content: '—'; color: var(--orange); margin-right: 2px; letter-spacing: 0; }
.px-ledger-label::after { content: ''; flex: 1; height: 1px; background: var(--border-muted-light); }
.px-ledger { display: grid; border: 1px solid var(--border-muted-light); border-radius: 16px; overflow: hidden; background: var(--bg-pure-white); }
.px-cell { position: relative; padding: 30px 26px 32px; border-right: 1px solid var(--border-muted-light); transition: background .4s ease; }
.px-cell:last-child { border-right: none; }
.px-cell::before { content: ''; position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--orange); transition: width .5s cubic-bezier(0.16,1,0.3,1); }
.px-cell:hover { background: var(--bg-light); }
.px-cell:hover::before { width: 100%; }
.px-cell-idx { font-family: 'Hanken Grotesk', sans-serif; font-size: 11px; font-weight: 600; color: var(--px-muted); display: block; margin-bottom: 20px; }
.px-cell:hover .px-cell-idx { color: var(--orange); }
.px-cell h3 { font-family: 'Satoshi', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--px-ink); margin: 0 0 11px; line-height: 1.3; }
.px-cell p { font-size: 13.5px; line-height: 1.55; color: var(--px-slate); margin: 0; text-wrap: pretty; }

/* ===========================================================
   Section shells
   =========================================================== */
.px-sec { padding: clamp(72px, 9vw, 124px) 0; }
.px-sec--white { background: var(--bg-pure-white); }
.px-sec--light { background: var(--bg-light); }
.px-sec--tint { background: var(--bg-subtle-gray); }

.px-sec-head-row { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-bottom: clamp(48px, 6vw, 76px); }
@media (max-width: 820px) { .px-sec-head-row { grid-template-columns: 1fr; gap: 18px; } }
.px-sec-note { font-family: 'Hanken Grotesk', sans-serif; font-size: 11px; letter-spacing: 0.06em; color: var(--px-muted); max-width: 24ch; text-align: right; }
@media (max-width: 820px) { .px-sec-note { text-align: left; } }

/* generic snapshot panel (hero side, informational) */
.px-snapshot {
  background: var(--bg-pure-white); border: 1px solid var(--border-muted-light); border-radius: 18px; padding: 24px;
  box-shadow: 0 2px 4px rgba(27,36,48,0.04), 0 40px 80px -34px rgba(27,36,48,0.28), 0 16px 34px -24px rgba(27,36,48,0.18);
}

/* ===========================================================
   Responsive capability cards (5/6-up sections)
   =========================================================== */
.px-capgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.px-capcard {
  position: relative; background: var(--bg-pure-white); border: 1px solid var(--border-muted-light);
  border-radius: 16px; padding: 28px 26px 30px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
/* Ultra-premium minimal hover: soft shadow lift only, no border/accent change */
.px-capcard:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.07); }
.px-capcard-idx { font-family: 'Hanken Grotesk', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: rgba(0,0,0,0.20); display: block; margin-bottom: 16px; }
.px-capcard h3 { font-family: 'Satoshi', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.25; letter-spacing: -0.015em; color: var(--px-ink); margin: 0 0 10px; }
.px-capcard p { font-size: 13.5px; line-height: 1.55; color: var(--px-slate); margin: 0; text-wrap: pretty; }
.px-aiflag {
  position: absolute; top: 26px; right: 24px;
  font-family: 'Hanken Grotesk', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: #7C3AED; border: 1px solid #7C3AED; padding: 4px 9px 3px; border-radius: 999px;
}

/* ===========================================================
   Dark feature grid (inside .px-showcase)
   =========================================================== */
.px-featgrid { display: grid; gap: 1px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; overflow: hidden; }
.px-feat { background: rgba(255,255,255,0.015); padding: 28px 24px; transition: background .4s ease; }
.px-feat:hover { background: rgba(255,255,255,0.055); }
.px-feat-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); color: #FF8A5C; margin-bottom: 16px; }
.px-feat-ic svg { width: 20px; height: 20px; }
.px-feat-idx { font-family: 'Hanken Grotesk', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); display: block; margin-bottom: 10px; }
.px-feat h4 { font-family: 'Satoshi', sans-serif; font-weight: 700; font-size: 16px; color: #fff; letter-spacing: -0.015em; margin: 0 0 8px; line-height: 1.22; }
.px-feat p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.66); margin: 0; text-wrap: pretty; }

/* ===========================================================
   Floating callouts over a portal screenshot (Rent / Maintain)
   Same visual language as the Acquire PO console callouts.
   =========================================================== */
.pxc-stage { position: relative; }
.pxc-callouts { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.pxc {
  position: absolute;
  pointer-events: auto;
  background: rgba(11,12,16,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 11px;
  padding: 12px 15px;
  max-width: 216px;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.6);
}
.pxc .c-tag {
  font-family: 'Hanken Grotesk', sans-serif; font-size: 9px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #FF8A5C; display: block; margin-bottom: 5px;
}
.pxc .c-text { font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,0.92); }
.pxc::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  background: rgba(11,12,16,0.82);
  border: 1px solid rgba(255,255,255,0.16);
  transform: rotate(45deg);
}
.pxc.pxc-tl { top: 17%; left: -2.5%; }
.pxc.pxc-tl::after { right: -5px; bottom: 22px; border-left: none; border-top: none; }
.pxc.pxc-tr { top: 11%; right: -2.5%; }
.pxc.pxc-tr::after { left: -5px; top: 22px; border-right: none; border-bottom: none; }
.pxc.pxc-bl { bottom: 15%; left: -2%; }
.pxc.pxc-bl::after { right: -5px; top: 22px; border-left: none; border-top: none; }
.pxc.pxc-br { bottom: 9%; right: -2%; }
.pxc.pxc-br::after { left: -5px; bottom: 22px; border-right: none; border-bottom: none; }

@media (max-width: 1180px) {
  .pxc.pxc-tl, .pxc.pxc-bl { left: 1.5%; }
  .pxc.pxc-tr, .pxc.pxc-br { right: 1.5%; }
}
@media (max-width: 920px) {
  .pxc-callouts { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
  .pxc { position: static; max-width: none; background: rgba(255,255,255,0.05); }
  .pxc::after { display: none; }
}
@media (max-width: 560px) { .pxc-callouts { grid-template-columns: 1fr; } }
