/* Prerun product page (body.prerun), plus a nav fix the eula/privacy pages share. Layered on algd.store's /styles.css (paper, ink, hairlines, one green),
   so it reads as part of the ALGD list; adds a wider sheet, a monospace "slip" and plates. */
.prerun {
  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --sheet: 960px;
  --no: #8a3b2a;   /* rule rejected: brick, used only inside the slip */
}
.prerun main,
.prerun header.site .inner,
.prerun footer.site .inner { max-width: var(--sheet); }

.prerun code, .prerun kbd { font-family: var(--mono); font-size: .86em; }
.prerun kbd { background: var(--stock); border: 1px solid var(--rule); border-bottom-width: 2px;
  border-radius: 3px; padding: 0 5px; white-space: nowrap; }

/* Hero: copy on the left, the simulator's verdict typeset as a slip on the right. */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 40px;
  align-items: center; padding: 8px 0 18px; }
.hero h1 { max-width: none; font-size: clamp(32px, 5.4vw, 48px); line-height: 1.08; margin-top: 14px; }
.hero h1 em { font-style: italic; color: var(--accent-dark); }
.hero .lede { margin-top: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.actions .cta { margin: 0; padding: 11px 18px; font-size: 16.5px; }
/* Pre-approval note (src/worker.js un-hides it): a rubber stamp beside one line of copy. */
.review:not([hidden]) { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 0;
  padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--stock);
  font-size: 15px; color: var(--muted); }
.review .stamp { flex: none; padding: 1px 7px; border: 1.5px solid var(--accent-dark); border-radius: 3px;
  color: var(--accent-dark); font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; transform: rotate(-2deg); }
.review a { white-space: nowrap; }

.slip { margin: 0; background: var(--stock); border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--hair); font: 13px/1.5 var(--mono); position: relative; }
.slip::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 4px; background: var(--accent); }
.slip figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px 8px; border-bottom: 1px solid var(--hair); color: var(--muted);
  font: 600 11px/1.4 var(--serif); letter-spacing: .14em; text-transform: uppercase; }
.slip-job { padding: 12px 16px 6px; font-size: 14px; }
.slip-job b { font-weight: 700; }
.verdict { padding: 1px 7px; border-radius: 3px; font-weight: 600; }
.verdict.manual { background: #efe6c8; color: #5c4610; }
.slip-rules { list-style: none; margin: 0; padding: 4px 16px 8px; }
.slip-rules li { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto; gap: 10px;
  padding: 7px 0; border-bottom: 1px dashed var(--hair); color: var(--muted); align-items: baseline; }
.slip-rules li.hit { color: var(--ink); }
.slip-rules code { font-size: 1em; background: none; border: 0; padding: 0; color: inherit; overflow-wrap: anywhere; }
.slip-rules .n { color: var(--muted); }
.out { font-weight: 600; }
.out.no { color: var(--no); }
.out.yes { color: var(--accent); }
.slip-result { padding: 10px 16px 14px; color: var(--accent-dark); }
.slip-result code { background: none; border: 0; padding: 0; font-size: 1em; }

/* The register: questions people push throwaway commits to answer, ruled like the shop list. */
.register { margin: 0; }
.register > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 8px 32px;
  padding: 16px 0; border-bottom: 1px solid var(--hair); }
.register dt { font-size: 19px; font-style: italic; line-height: 1.35; }
.register dd { margin: 0; color: var(--muted); }
.register dd strong { color: var(--ink); }

/* Plates: real IDE screenshots, framed and numbered like figures in a manual. */
.plate { margin: 34px 0 0; }
.plate a { display: block; border: 1px solid var(--ink); background: var(--stock); padding: 6px;
  box-shadow: 6px 6px 0 var(--hair); transition: box-shadow .15s ease, transform .15s ease; }
.plate a:hover, .plate a:focus-visible { box-shadow: 8px 8px 0 var(--rule); transform: translate(-1px, -1px); }
.plate img { display: block; width: 100%; height: auto; }
.plate figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.plate-no { display: inline-block; margin-right: 8px; color: var(--accent); font-weight: 600;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.plate-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* Free / Pro ledger: two lists side by side in one ruled box. The rows don't pair up, so they are
   lists, not a table; subgrid only lines their rules up across the columns. At phone width the Pro
   list stacks under the Free one instead of squeezing both into two narrow columns. */
.ledger { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto repeat(4, auto);
  background: var(--stock); border: 1px solid var(--ink); }
.ledger-col { display: grid; grid-row: span 5; grid-template-rows: subgrid; min-width: 0; }
.ledger-col + .ledger-col { border-left: 1px solid var(--hair); }
.ledger h3 { margin: 0; padding: 12px 16px; border-bottom: 2px solid var(--ink);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.ledger .pro h3 { color: var(--accent-dark); }
.ledger ul { display: grid; grid-row: span 4; grid-template-rows: subgrid; list-style: none;
  margin: 0; padding: 0; color: var(--ink); }
.ledger li { margin: 0; padding: 12px 16px; }
.ledger li + li { border-top: 1px solid var(--hair); }

.caveats { color: var(--ink); }
.caveats li { margin: 6px 0; }
.support { margin-top: 44px; border-color: var(--rule); }
.support h3 { margin-bottom: 2px; }
footer.site .small { margin-top: 14px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .register > div { grid-template-columns: 1fr; }
  .plate-pair { grid-template-columns: 1fr; gap: 0; }
  .ledger { grid-template-columns: 1fr; grid-template-rows: none; }
  .ledger-col { grid-row: auto; grid-template-rows: none; }
  .ledger-col + .ledger-col { border-left: 0; border-top: 2px solid var(--ink); }
  .ledger ul { grid-row: auto; grid-template-rows: none; }
}
@media (max-width: 560px) {
  /* Four nav links don't fit beside the brand at phone width; let them wrap with even gaps. */
  header.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  header.site nav a { margin-left: 0; }
  .slip { font-size: 12px; }
  .slip-rules li { grid-template-columns: 1fr auto; }
  .slip-rules .n { display: none; }
  .ledger li, .ledger h3 { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .plate a { transition: none; }
}
