/* PropAMM Forge — landing. Brief: docs/landing-brief.md (outside the repo).
   An indigo stage with one replay of a recorded engine run, above a sheet of
   quote tickets. Blue means one thing only: posted on chain. */

:root {
  --stage: #0c0630;
  --stage-plot: #0e0a3a;
  --stage-raise: #161961;
  --stage-ink: #edebfa;
  --stage-muted: #9a96c0;
  --signal: #334eed;
  --signal-lift: #7b8cff;
  --sheet: #f3f2f8;
  --ticket: #fbfbfe;
  --ink: #0c0630;
  --ink-muted: #4a4766;
  --rule: #d9d7e6;
  --display: "Archivo", "Arial", system-ui, sans-serif;
  --sans: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  /* The chamfer: the logo's facet angle, about 27 degrees. */
  --cut: polygon(0 0, calc(100% - 28px) 0, 100% 14px, 100% 100%, 0 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

a { color: var(--signal); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal-lift); outline-offset: 2px; }

.d { font-family: var(--display); font-stretch: 125%; letter-spacing: -0.01em; }
.m { font-family: var(--mono); font-variant-numeric: tabular-nums lining-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 2; background: var(--ticket); padding: 8px 12px; }

/* ── Stage ───────────────────────────────────────────── */

.stage { background: var(--stage); color: var(--stage-ink); padding-bottom: 56px; }
.stage a { color: var(--stage-ink); }
.stage a:hover { color: var(--signal-lift); }

.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-weight: 800; font-size: 19px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.top nav a { display: inline-block; padding: 10px 0; }
.status { font-size: 13px; color: var(--stage-muted); }

.eyebrow { font-size: 14px; color: var(--stage-muted); margin: 56px 0 18px; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 72px); font-weight: 800; line-height: 1.02; max-width: 980px; }
.lede { max-width: 720px; font-size: 19px; margin: 24px 0 32px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  text-decoration: none; font-weight: 600;
}
.stage .btn-primary { background: var(--signal); color: #fff; }
.stage .btn-primary:hover { background: #2a41cc; color: #fff; }
.stage .btn-ghost { border: 1px solid var(--signal-lift); }

.replay { margin: 64px 0 0; border: 1px solid var(--stage-raise); background: var(--stage-plot); padding: 24px 24px 18px; }
.replay-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.replay-title { font-size: 21px; font-weight: 600; max-width: 760px; line-height: 1.3; }
.replay button {
  min-height: 44px; min-width: 44px; padding: 0 14px; background: transparent;
  border: 1px solid var(--signal-lift); color: var(--stage-ink); font: 13px var(--mono); cursor: pointer;
}
.replay button:hover { background: var(--stage-raise); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12px; margin-bottom: 10px; }
.legend .feed { color: var(--stage-muted); }
.legend .quote { color: var(--signal-lift); }
.replay svg { display: block; width: 100%; height: auto; }
.replay svg text { font: 12px var(--mono); }
.strip {
  display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 13px;
  border-top: 1px solid var(--stage-raise); margin-top: 12px; padding-top: 12px;
}
.strip .off { color: var(--signal-lift); }
.replay figcaption { font-size: 14px; color: var(--stage-muted); margin-top: 12px; line-height: 1.5; }

/* ── Sheet ───────────────────────────────────────────── */

section.sheet { padding-top: 96px; }
h2 { font-size: 40px; font-weight: 800; line-height: 1.1; margin: 0 0 8px; }
.lab { font-size: 14px; color: var(--ink-muted); }
.intro { margin: 0 0 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }

/* A ticket: filled = built or measured. The border is the outer layer showing
   through 1 px around the inner one, so it follows the chamfer. */
.tk { background: var(--rule); padding: 1px; clip-path: var(--cut); }
.tk > div { background: var(--ticket); padding: 24px 24px 22px; height: 100%; clip-path: var(--cut); }
.tk-dark > div { background: var(--stage); color: var(--stage-ink); }
.tk h3 { font-size: 21px; font-weight: 800; line-height: 1.2; margin: 0 0 10px; }
.tk p { margin: 0; font-size: 16px; }
.step-n { font-size: 14px; color: var(--ink-muted); }
.tk-dark .step-n { color: var(--stage-muted); }
.step-cmd { font-weight: 600; margin: 6px 0; overflow-wrap: break-word; }
.tk-dark .step-cmd { color: var(--signal-lift); }
.grid-steps p { font-size: 15px; }

.fig { font-size: 44px; font-weight: 800; line-height: 1.05; }
.fig small { font-size: 22px; font-weight: 600; }
.partial { font: 600 15px var(--sans); border: 1px solid var(--ink-muted); padding: 2px 8px; vertical-align: middle; }
.claim { margin: 10px 0 14px !important; }
.meta { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }
.sc { margin-top: 10px; font-size: 14px; color: var(--signal); }

.proof {
  margin: 24px 0 0; padding: 20px; background: var(--stage); color: var(--stage-ink);
  font-size: 13px; line-height: 1.6; overflow-x: auto;
}

/* A dashed ticket: not here. No fill; the dashed outline follows the chamfer
   through an SVG drawn behind it. */
.no { position: relative; padding: 24px 24px 22px; }
.no svg.edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.no h3 { font-size: 19px; font-weight: 800; line-height: 1.25; margin: 0 0 8px; }
.no p { margin: 0; font-size: 16px; }

.faq { max-width: 820px; border-top: 1px solid var(--rule); margin-top: 20px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.faq p { margin: 0 0 16px; }

footer { margin-top: 96px; border-top: 1px solid var(--rule); }
footer .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center;
  padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--ink-muted);
}

@media (max-width: 640px) {
  .stage { padding-bottom: 40px; }
  .eyebrow { margin-top: 32px; }
  .lede { font-size: 17px; }
  .replay { margin-top: 40px; padding: 16px 12px 14px; }
  .replay-title { font-size: 18px; }
  /* At phone width the in-plot labels would be 4 px tall; the strip below says the same. */
  .replay svg text { display: none; }
  section.sheet { padding-top: 56px; }
  h2 { font-size: 30px; }
  .fig { font-size: 36px; }
  footer { margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
