/* Haul Forward — Factoring engine. Design: "the verdict sheet."
   Paper-form layout, mono labels, heavy Archivo headers, one steel utility accent,
   verdict colors reserved strictly for the grade stamp. */

:root {
  --paper: #FBFAF7;
  --paper-2: #F3F1EA;
  --ink: #181614;
  --ink-soft: #4A4640;
  --steel: #345564;
  --steel-ink: #233b46;
  --hair: #DEDACF;
  --take: #2E7D52;
  --negotiate: #B0791A;
  --walk: #AE3A38;
  --stamp-ink: rgba(24,22,20,.06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---- mono utility labels ---- */
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 14px;
}
.mono { font-family: "IBM Plex Mono", monospace; }

/* ---- type scale ---- */
h1, h2, h3 { font-family: "Archivo", system-ui, sans-serif; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-weight: 800; font-size: clamp(30px, 6vw, 46px); margin: 0 0 18px; }
h2 { font-weight: 700; font-size: clamp(22px, 4vw, 28px); margin: 44px 0 14px; }
h3 { font-weight: 700; font-size: 18px; margin: 28px 0 8px; }
p { margin: 0 0 18px; }
a { color: var(--steel-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

/* ---- top bar ---- */
.topbar { border-bottom: 1px solid var(--hair); }
.topbar .wrap { display: flex; align-items: baseline; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; gap: 16px; }
.brand { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.brand .sub { font-family: "IBM Plex Mono", monospace; font-weight: 400; font-size: 11px; letter-spacing: .14em; color: var(--steel); text-transform: uppercase; display: block; margin-top: 2px; }
.topbar nav a { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); }

/* ---- hero ---- */
.hero { padding: 64px 0 28px; }
.hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 60ch; }

/* ---- the document sheet ---- */
.sheet {
  border: 1px solid var(--ink);
  background: #fff;
  margin: 24px 0 40px;
  position: relative;
}
.sheet::before {
  content: "";
  position: absolute; inset: 5px;
  border: 1px solid var(--hair);
  pointer-events: none;
}
.sheet-head {
  border-bottom: 1px solid var(--ink);
  padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel);
}
.sheet-body { padding: 22px 22px 26px; }

/* ---- form fields styled like a rate-confirmation sheet ---- */
.field { margin: 0 0 16px; }
.field label { display: block; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.field .hint { font-family: "IBM Plex Sans", sans-serif; font-size: 13px; color: var(--ink-soft); text-transform: none; letter-spacing: 0; margin-top: 4px; }
input[type="text"], input[type="number"], select {
  width: 100%; font-family: "IBM Plex Mono", monospace; font-size: 16px;
  padding: 11px 12px; border: 1px solid var(--hair); background: var(--paper);
  color: var(--ink); border-radius: 0;
}
input:focus, select:focus { outline: 2px solid var(--steel); outline-offset: 1px; border-color: var(--steel); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .grid2 { grid-template-columns: 1fr; } }

.toggle-row { display: flex; gap: 10px; flex-wrap: wrap; }
.toggle-row button {
  font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: .04em;
  padding: 9px 14px; border: 1px solid var(--hair); background: var(--paper); color: var(--ink-soft); cursor: pointer;
}
.toggle-row button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* ---- primary action ---- */
.btn {
  display: inline-block; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 16px;
  letter-spacing: .01em; padding: 14px 26px; background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); cursor: pointer; text-decoration: none; border-radius: 0;
}
.btn:hover { background: var(--steel-ink); border-color: var(--steel-ink); color: #fff; }
.btn.full { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }

/* ---- verdict stamp: the signature element ---- */
.verdict { text-align: center; padding: 30px 16px 8px; }
.verdict .stamp {
  display: inline-block; font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: clamp(34px, 9vw, 60px); letter-spacing: .02em; text-transform: uppercase;
  padding: 10px 26px; border: 4px solid currentColor; border-radius: 6px;
  transform: rotate(-3deg); line-height: 1;
  position: relative;
}
.verdict.take .stamp { color: var(--take); }
.verdict.negotiate .stamp { color: var(--negotiate); }
.verdict.walk .stamp { color: var(--walk); }
.verdict .figure { margin-top: 18px; font-family: "Archivo", sans-serif; font-weight: 800; font-size: clamp(28px,7vw,40px); }
.verdict .figure-label { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }

/* ---- findings list ---- */
.findings { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--hair); }
.findings li { display: flex; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--hair); align-items: flex-start; }
.findings .tag { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border: 1px solid currentColor; white-space: nowrap; margin-top: 2px; }
.tag.ok { color: var(--take); } .tag.warn { color: var(--negotiate); } .tag.bad { color: var(--walk); }
.findings .body { font-size: 15px; }

/* ---- key points ---- */
.points { list-style: none; padding: 0; margin: 22px 0; }
.points li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--hair); position: relative; }
.points li::before { content: "\2192"; position: absolute; left: 0; color: var(--steel); font-family: "IBM Plex Mono", monospace; }

/* ---- CTA block ---- */
.cta { border: 1px solid var(--ink); background: var(--paper-2); padding: 26px 24px; margin: 40px 0; }
.cta .eyebrow { margin-bottom: 8px; }
.cta h2 { margin: 0 0 10px; }

/* ---- related ---- */
.related { margin: 48px 0; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { border-top: 1px solid var(--hair); }
.related li:last-child { border-bottom: 1px solid var(--hair); }
.related a { display: block; padding: 16px 0; text-decoration: none; color: var(--ink); font-family: "Archivo", sans-serif; font-weight: 600; font-size: 17px; }
.related a:hover { color: var(--steel-ink); padding-left: 8px; transition: padding .12s ease; }

/* ---- decision index cards ---- */
.deck { margin: 16px 0 40px; }
.deck a { display: block; border: 1px solid var(--hair); padding: 20px 22px; margin-bottom: -1px; text-decoration: none; color: var(--ink); background:#fff; }
.deck a:hover { border-color: var(--ink); position: relative; z-index: 1; }
.deck .q { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 19px; margin-bottom: 6px; }
.deck .d { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--hair); margin-top: 56px; padding: 28px 0 48px; }
footer .wrap { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .04em; color: var(--ink-soft); display:flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--steel-ink); }
.disclaimer { font-size: 12px; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }

.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .verdict .stamp { transform: none; }
}
