/* platform.css — The Situation Room (/platform), 2026-07-07.
   Standalone page in the /pricing pattern: shared styles.css :root tokens
   (navy/cyan/pink/lime/yellow/paper, Courier mono). Mobile rule: #pain must
   carry the whole pitch alone at 375px; everything renders legibly with zero
   animation under prefers-reduced-motion / motion-off. */

.platform-page .site-shell { min-height: 100vh; overflow-x: clip; overflow-y: visible; }
.platform-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 72px;
  font-family: var(--ui, system-ui);
}

.plat-nav {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  background: rgba(6, 21, 99, 0.94);
  border: 3px solid var(--shadow, #04102f);
  border-radius: var(--panel-radius, 6px);
  box-shadow: 4px 4px 0 var(--shadow, #04102f);
  font-family: var(--mono, "Courier New", monospace);
  font-size: 12px;
  white-space: nowrap;
}
.plat-nav a {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--paper, #fff9df);
  background: rgba(16, 20, 24, 0.86);
  border: 2px solid var(--shadow, #04102f);
  border-radius: 4px;
  text-decoration: none;
}
.plat-nav a[aria-current="page"] {
  color: var(--ink, #0b0b0b);
  background: var(--yellow, #fff200);
}
.plat-nav a:focus-visible { outline: 3px solid #fff200; outline-offset: 2px; }

/* ── acts ── */
.plat-act { margin: 0 0 26px; padding: 20px 18px; background: var(--paper, #fff9df);
  border: 3px solid var(--shadow, #04102f); border-radius: var(--panel-radius, 6px);
  box-shadow: 5px 5px 0 var(--shadow, #04102f); color: var(--ink, #0b0b0b); }
.plat-act h1, .plat-act h2 {
  font-family: var(--mono, "Courier New", monospace);
  color: var(--navy, #061563);
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  /* styles.css's global h1 is the landing WORDMARK (logo background image +
     drop shadow + visually-hidden span) — reset all of that here. */
  min-height: 0;
  background: none;
  filter: none;
}
.plat-act h1 span, .plat-act h2 span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}
.plat-act h1 { font-size: clamp(24px, 5vw, 40px); }
.plat-act h2 { font-size: clamp(19px, 3.6vw, 28px); }
.plat-kicker {
  font-family: var(--mono, "Courier New", monospace);
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pink, #ff1bbd); margin: 0 0 6px;
}
.plat-sub { font-size: 15px; line-height: 1.55; max-width: 720px; margin: 0 0 14px; }
.plat-note { font-size: 13px; line-height: 1.5; color: #333; max-width: 720px; }
.plat-honest-note {
  padding: 8px 10px; background: #fff; border: 2px dashed var(--shadow, #04102f);
  border-radius: 4px; margin: 0 0 14px;
}
.plat-foot { font-size: 12px; font-family: var(--mono); margin: 16px 0 0; color: #444; }
.plat-foot a { color: var(--navy, #061563); }

/* ── buttons ── */
.plat-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.plat-btn {
  display: inline-block; padding: 11px 18px; font-family: var(--mono, monospace);
  font-weight: 700; font-size: 14px; text-transform: uppercase; text-decoration: none;
  color: var(--ink, #0b0b0b); border: 3px solid var(--shadow, #04102f);
  border-radius: var(--panel-radius, 6px); cursor: pointer;
  box-shadow: 3px 3px 0 var(--shadow, #04102f);
}
.plat-btn:hover { transform: translate(-1px, -1px); }
.plat-btn:active { transform: translate(1px, 1px); }
.plat-btn:focus-visible { outline: 3px solid #fff200; outline-offset: 2px; }
.plat-btn-primary { background: var(--lime, #75ff00); }
.plat-btn-primary:hover { background: var(--yellow, #fff200); }
.plat-btn-ghost { background: var(--chrome, #d5d0c8); }
@media (prefers-reduced-motion: reduce) {
  .plat-btn:hover, .plat-btn:active { transform: none; }
}

/* ── #pain split ── */
.plat-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin: 14px 0; }
.plat-split-col { margin: 0; }
.plat-split-col img {
  display: block; width: 100%; max-width: 600px; max-height: min(68vh, 680px);
  height: auto; margin-inline: auto; object-fit: contain; border: 3px solid var(--shadow, #04102f);
  border-radius: 4px; background: #0f1117;
}
.plat-split-mid img { filter: saturate(0.75); }
.plat-split-mid:hover img { filter: saturate(0.55) brightness(0.92); }
.plat-tag {
  display: inline-block; margin: 0 0 6px; padding: 3px 9px; font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border: 2px solid var(--shadow, #04102f); border-radius: 3px;
}
.plat-tag-red { background: #ff5148; color: #fff; }
.plat-tag-lime { background: var(--lime, #75ff00); color: var(--ink, #0b0b0b); }
@media (max-width: 640px) {
  .plat-split { grid-template-columns: 1fr; }
  .plat-split-col img { max-height: 340px; }
  /* mobile: the agent's take leads */
  .plat-split-agent { order: -1; }
}

/* ── assisted-drafting hover X-ray (I6) ── */
.plat-xray-host { position: relative; cursor: help; }
.plat-xray-term { border-bottom: 2px dotted var(--pink, #ff1bbd); }
.plat-xray {
  position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 30;
  width: min(320px, 78vw); padding: 8px 10px;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.5; font-weight: 400;
  color: var(--paper, #fff9df); background: var(--navy, #061563);
  border: 2px solid var(--shadow, #04102f); border-radius: 4px;
  box-shadow: 3px 3px 0 var(--shadow, #04102f);
  opacity: 0; visibility: hidden; transition: opacity 0.15s ease;
  pointer-events: none;
}
.plat-xray-host:hover .plat-xray,
.plat-xray-host:focus .plat-xray,
.plat-xray-host:focus-within .plat-xray { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .plat-xray { transition: none; } }
@media (max-width: 640px) {
  .plat-xray {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: auto;
    width: auto;
    max-width: calc(100vw - 32px);
  }
}

/* ── #reasoning ── */
.plat-brief {
  margin: 0 0 16px; padding: 10px 12px; background: var(--navy, #061563);
  color: var(--paper, #fff9df); border-radius: 4px; border: 2px solid var(--shadow, #04102f);
}
.plat-brief-label {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan, #00e7ff); margin-bottom: 4px;
}
.plat-brief p { margin: 0; font-size: 15px; font-style: italic; }
.plat-stages { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.plat-stage {
  padding: 10px 12px; background: #fff; border: 2px solid var(--shadow, #04102f);
  border-left: 8px solid var(--cyan, #00e7ff); border-radius: 4px;
}
.plat-stage.is-lit { border-left-color: var(--pink, #ff1bbd); background: #fffef2; }
.plat-stage code {
  font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--navy, #061563);
}
.plat-stage p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; }
.plat-why-toggle {
  margin-left: 8px; padding: 1px 8px; font-family: var(--mono); font-size: 11px;
  font-weight: 700; background: var(--yellow, #fff200); color: var(--ink, #0b0b0b);
  border: 2px solid var(--shadow, #04102f); border-radius: 3px; cursor: pointer;
}
.plat-why { margin-top: 8px; padding: 8px 10px; background: var(--paper, #fff9df);
  border: 2px dashed var(--shadow, #04102f); border-radius: 4px; }
.plat-why-line { margin: 0 0 6px; font-size: 12.5px; line-height: 1.5; }
.plat-slate { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.plat-slate li {
  padding: 8px 10px; font-family: var(--mono); font-size: 13px; background: #101418;
  color: #9fffb0; border-radius: 4px; border: 2px solid var(--shadow, #04102f);
  overflow-x: auto; white-space: nowrap;
}
.plat-slate-slot { color: #5c8a66; margin-right: 4px; }
.plat-slate li + li { margin-top: 0; }
@media (max-width: 640px) { .plat-slate li { white-space: normal; } }

/* ── #pack ── */
.plat-pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .plat-pack-grid { grid-template-columns: 1fr; } }
.plat-card { position: relative; margin: 0; padding: 10px; background: #fff;
  border: 3px solid var(--shadow, #04102f); border-radius: 4px; }
.plat-card img { display: block; width: 100%; height: auto; border: 2px solid #111; border-radius: 3px; }
.plat-card figcaption { margin: 8px 0; font-size: 12.5px; line-height: 1.45; color: #333; }
.plat-card-actions { display: flex; gap: 8px; }
.plat-approve, .plat-reject {
  padding: 7px 12px; font-family: var(--mono); font-weight: 700; font-size: 12px;
  border: 2px solid var(--shadow, #04102f); border-radius: 4px; cursor: pointer;
}
.plat-approve { background: var(--lime, #75ff00); color: var(--ink, #0b0b0b); }
.plat-approve:hover { background: var(--yellow, #fff200); }
.plat-reject { background: var(--chrome, #d5d0c8); color: #333; }
.plat-approve:focus-visible, .plat-reject:focus-visible { outline: 3px solid #fff200; outline-offset: 1px; }
.plat-card.is-rejected { opacity: 0.45; }
.plat-card.is-rejected img { filter: grayscale(0.9); }
.plat-card.is-approved { outline: 4px solid var(--lime, #75ff00); }

/* the APPROVED BY YOU stamp (E15 idiom, scoped re-creation — alive.js is not
   on this page) */
.plat-stamp {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 5;
  pointer-events: none;
}
.plat-stamp span {
  padding: 8px 16px; font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(18px, 3vw, 26px); letter-spacing: 0.03em; text-transform: uppercase;
  color: #061563; background: rgba(255, 242, 0, 0.94);
  border: 4px solid #7a5c00; border-radius: 6px; transform: rotate(-9deg);
  box-shadow: 0 0 0 3px rgba(6, 21, 99, 0.55), 4px 6px 0 rgba(0, 0, 0, 0.4);
  animation: platStampIn 420ms cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes platStampIn {
  from { transform: rotate(-9deg) scale(2.4); opacity: 0; }
  to { transform: rotate(-9deg) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .plat-stamp span { animation: none; }
}

/* scoped confetti burst (CSS pieces animated by JS-injected inline styles) */
.plat-confetti { position: fixed; width: 8px; height: 12px; z-index: 10000;
  pointer-events: none; border-radius: 1px; }

/* ── #honesty ── */
.plat-seams { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
@media (max-width: 760px) { .plat-seams { grid-template-columns: 1fr; } }
.plat-seam { padding: 10px; background: #fff; border: 2px solid var(--shadow, #04102f); border-radius: 4px; }
.plat-seam-title { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; }
.plat-seam-src { margin: 8px 0 0; font-size: 12px; color: #555; line-height: 1.45; }
.plat-terminal {
  margin: 0; padding: 10px 12px; font-family: var(--mono); font-size: 12px; line-height: 1.5;
  background: #101418; color: #9fffb0; border-radius: 4px; border: 2px solid var(--shadow, #04102f);
  overflow-x: auto;
}
.plat-ledger, .plat-faq { margin: 14px 0 0; padding: 12px; background: #101418; color: #d7e3d9;
  border: 2px solid var(--shadow, #04102f); border-radius: 4px; }
.plat-ledger-title { margin: 0 0 8px; font-family: var(--mono); font-size: 12.5px; color: var(--cyan, #00e7ff); }
.plat-ledger ul, .plat-faq ul { margin: 0; padding: 0 0 0 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; }
.plat-ledger b, .plat-faq b { color: #9fffb0; }
.plat-receipts { margin-top: 16px; }
.plat-receipts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.plat-receipts-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 260px;
  height: auto;
  object-fit: contain;
  border: 2px solid var(--shadow, #04102f);
  border-radius: 4px;
  background: #0f1117;
}

/* right-click "context menu from the future" (I5) */
.plat-ctx {
  position: fixed; z-index: 100000; min-width: 240px; padding: 4px;
  background: var(--chrome, #d5d0c8); border: 2px outset #f2f2f2; border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35); font-family: var(--ui); font-size: 13px;
}
.plat-ctx button, .plat-ctx a {
  display: block; width: 100%; padding: 6px 10px; text-align: left; text-decoration: none;
  background: transparent; border: 0; color: var(--ink, #0b0b0b); cursor: pointer; border-radius: 2px;
}
.plat-ctx button:hover, .plat-ctx a:hover { background: var(--navy, #061563); color: #fff; }
.plat-ctx .plat-ctx-sep { height: 1px; margin: 4px 6px; background: #999; }
.plat-ctx .plat-ctx-paid { color: #666; font-style: italic; }
.plat-ctx .plat-ctx-paid:hover { background: var(--pink, #ff1bbd); color: #fff; }

/* ── #memory diagram ── */
.plat-memory-diagram {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0;
}
.plat-mem-node {
  padding: 12px 14px; font-family: var(--mono); font-size: 13px; font-weight: 700;
  text-align: center; background: #fff; border: 3px solid var(--shadow, #04102f);
  border-radius: 4px; box-shadow: 3px 3px 0 var(--shadow, #04102f);
}
.plat-mem-out { background: var(--lime, #75ff00); }
.plat-mem-arrow { font-size: 22px; font-weight: 700; color: var(--pink, #ff1bbd); }
@media (max-width: 640px) {
  .plat-memory-diagram { flex-direction: column; }
  .plat-mem-arrow { transform: rotate(90deg); }
}

/* ── #try ── */
.plat-try-box { padding: 14px; background: #fff; border: 2px solid var(--shadow, #04102f); border-radius: 4px; }
.plat-try-status { margin: 10px 0 0; font-family: var(--mono); font-size: 13px; color: var(--navy, #061563); }
.plat-try-result { margin: 12px 0 0; }
.plat-try-result img { display: block; max-width: min(420px, 100%); height: auto; border: 3px solid var(--shadow, #04102f); border-radius: 4px; }
.plat-try-result .plat-try-captions { font-family: var(--mono); font-size: 14px; padding: 10px 12px; background: #101418; color: #9fffb0; border-radius: 4px; }
.plat-try-note { margin: 8px 0 0; font-size: 12.5px; color: #555; }

/* ── approve echo ── */
.plat-approve-echo { font-family: var(--mono); font-weight: 700; color: var(--navy, #061563); }

/* inline Memmy tour caption: scoped to the active platform act, never body-fixed */
.plat-tour-caption {
  position: relative;
  max-width: 620px;
  margin: 14px 0 0;
  padding: 10px 14px;
  font-family: var(--mono, "Courier New", monospace);
  font-size: 13px;
  line-height: 1.5;
  color: var(--paper, #fff9df);
  background: var(--navy, #061563);
  border: 3px solid var(--shadow, #04102f);
  border-radius: var(--panel-radius, 6px);
  box-shadow: 4px 4px 0 var(--shadow, #04102f);
}
.plat-tour-caption p { margin: 0 0 8px; }
.plat-tour-caption button {
  padding: 5px 12px;
  font: inherit;
  border: 2px solid var(--shadow, #04102f);
  border-radius: 4px;
  cursor: pointer;
}
.plat-tour-caption button:focus-visible { outline: 3px solid #fff200; outline-offset: 2px; }
.plat-tour-next {
  margin-right: 8px;
  font-weight: 700;
  color: var(--ink, #0b0b0b);
  background: var(--lime, #75ff00);
}
.plat-tour-stop {
  color: var(--paper, #fff9df);
  background: transparent;
  border-color: var(--paper, #fff9df) !important;
}

/* page must never scroll horizontally at 375px */
.platform-shell, .plat-act { min-width: 0; max-width: 100%; }
