/* The Bid Bench — "The Plan Room"
   Tokens are copied verbatim from soul.md. Do not drift them here.
   Structural device is the HAIRLINE RULE, not the card. This should read as a
   spec sheet, not a dashboard. Paper sits ON a table; it does not float. */

:root {
  --paper:   #F3F4F1;  /* plan-paper white — blue-grey tinted, NOT cream */
  --card:    #FFFFFF;
  --oxblood: #7B2E2A;  /* PRIMARY */
  --slate:   #38424E;
  --cleared: #3F7A57;
  --alert:   #B4482F;
  --ink:     #1E2126;  /* never #000 */
  --muted:   #737C86;

  --rule:      rgba(56, 66, 78, 0.20);
  --rule-soft: rgba(56, 66, 78, 0.10);

  --r-card: 4px;
  --r-chip: 2px;

  --display: "Oswald", "Arial Narrow", sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "Roboto Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 68ch;
  --gutter:  clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: clamp(34px, 6vw, 58px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: 19px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--slate); max-width: var(--measure); }
p { max-width: var(--measure); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
strong { font-weight: 600; }

a { color: var(--oxblood); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--alert); }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 18px; padding-bottom: 18px;
}
.lockup { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.lockup svg { display: block; flex: none; }
.wordmark {
  font-family: var(--display); font-weight: 600; font-size: 21px;
  letter-spacing: 0.03em; text-transform: uppercase; line-height: 1;
}
.wordmark .the { color: var(--muted); font-weight: 500; }
.head-note {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.06em; text-align: right;
}

/* ---------- hero: deliberately LEFT-aligned, never centered ---------- */
.hero { padding: clamp(52px, 9vw, 104px) 0 clamp(34px, 5vw, 56px); }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 20px; }

/* ---------- the numbers strip: hairline rules, mono, no cards ---------- */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: clamp(30px, 5vw, 48px) 0;
}
.figure { padding: 22px 24px 20px; border-right: 1px solid var(--rule-soft); }
.figure:last-child { border-right: 0; }
.figure b {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 4.2vw, 40px); line-height: 1; color: var(--oxblood);
  font-variant-numeric: tabular-nums;
}
.figure span {
  display: block; margin-top: 9px; font-size: 13.5px; line-height: 1.45; color: var(--slate);
}
.figures-src {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  margin: -30px 0 clamp(46px, 7vw, 76px); letter-spacing: 0.03em;
}

/* ---------- section ---------- */
section { padding: clamp(40px, 6vw, 68px) 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }
.sec-head { margin-bottom: 30px; }
.sec-head h2 { max-width: 22ch; }
.sec-head p { margin-top: 14px; color: var(--slate); }

/* ---------- the four costs: ZIG-ZAG, never a 3-equal-card row ---------- */
.costs { display: grid; gap: 0; }
.cost {
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--rule-soft);
}
.cost:first-child { border-top: 0; padding-top: 6px; }
.cost .n {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  letter-spacing: 0.1em; padding-top: 6px;
}
.cost h3 { margin-bottom: 8px; letter-spacing: 0.03em; }
.cost p { margin: 0; color: var(--slate); font-size: 16px; }
.cost.lead h3 { color: var(--oxblood); }
.cost.lead .tag {
  display: inline-block; margin-left: 10px; padding: 2px 7px; border-radius: var(--r-chip);
  background: var(--oxblood); color: #fff; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.1em; vertical-align: 2px;
}
@media (min-width: 720px) {
  .cost { grid-template-columns: 3.4rem 1fr 1fr; align-items: start; }
  .cost p { grid-column: 3; }
  .cost h3 { grid-column: 2; }
  .cost .n { grid-column: 1; }
}

/* ---------- service / pricing rows ---------- */
.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 20px 0; border-bottom: 1px solid var(--rule-soft);
}
@media (min-width: 720px) {
  .row { grid-template-columns: 15rem 1fr 9rem; gap: 24px; align-items: baseline; }
}
.row .what { font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: 0.02em; }
.row .desc { color: var(--slate); font-size: 15.5px; max-width: 52ch; }
.row .price {
  font-family: var(--mono); font-size: 14px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.row .price.free { color: var(--cleared); font-weight: 500; }

/* ---------- callout ---------- */
.callout {
  border-left: 3px solid var(--oxblood);
  background: var(--card);
  padding: 20px 24px;
  border-radius: 0 var(--r-card) var(--r-card) 0;
  margin: 30px 0;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 12px; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--rule);
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; }
.site-foot p { margin: 0; max-width: 46ch; }

/* ---------- audit-page specifics ---------- */
.audit-table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; font-size: 15px; }
.audit-table th {
  text-align: left; font-family: var(--mono); font-weight: 400; font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  padding: 0 14px 9px 0; border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.audit-table td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.audit-table td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.audit-table tr:last-child td { border-bottom: 0; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.days { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.days.urgent { color: var(--alert); }
.days.soon   { color: var(--oxblood); }

.bar {
  display: inline-block; height: 9px; background: var(--oxblood);
  border-radius: 1px; vertical-align: middle; margin-left: 8px; min-width: 2px;
}

.stamp {
  display: inline-block; padding: 3px 9px; border: 1px solid var(--cleared);
  color: var(--cleared); border-radius: var(--r-chip); font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- motion: 200ms ease-out, opacity + 2px translate ONLY ---------- */
a, .row, .cost { transition: opacity 200ms ease-out, transform 200ms ease-out, color 200ms ease-out; }
.lockup:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .lockup:hover { transform: none; }
}

/* Light-first by design. Dark mode only softens the paper so the page is not a
   flashlight at night — the brand stays plan-room, never inverted to a console. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16181A; --card: #1D2023; --ink: #E9E9E4; --muted: #929AA3;
    --slate: #B3BCC6; --oxblood: #C9756C; --cleared: #6FB58C; --alert: #E08B72;
    --rule: rgba(179, 188, 198, 0.24); --rule-soft: rgba(179, 188, 198, 0.12);
  }
}
