/* BidFit — 2 September 2026
   Ink/slate + ochre. No gradients, no Inter, no SaaS chrome. */

:root {
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #57534e;
  --paper: #f6f3ec;
  --paper-2: #efeae0;
  --card: #fbf9f4;
  --rule: #d6cfc3;
  --rule-strong: #a8a29e;
  --ochre: #b45309;
  --ochre-dark: #9a3412;
  --ochre-wash: #f3e4d0;
  --go: #3f6212;
  --go-wash: #ecf0e4;
  --nogo: #9f1239;
  --nogo-wash: #f8e8ec;
  --qualify: #854d0e;
  --unknown: #57534e;
  --focus: #1d4ed8;
  --max: 42rem;
  --max-wide: 68rem;
  --header-h: 4.25rem;
}

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

html {
  font-size: 112.5%; /* 18px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", Times, serif;
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.55;
  border-top: 4px solid var(--ochre);
}

.ui,
nav,
.btn,
.kicker,
.wordmark-sub,
.price-amount,
.score,
.meta,
.site-header,
.site-footer,
.breadcrumb,
caption,
th,
.step-n,
.badge {
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

img { max-width: 100%; height: auto; }
svg { display: block; }

a {
  color: var(--ochre-dark);
  text-underline-offset: 0.15em;
}
a:hover { color: var(--ink); }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.75rem;
  z-index: 20;
}
.skip:focus { top: 0.5rem; color: var(--paper); }

.wrap {
  width: min(var(--max-wide), calc(100% - 2rem));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem 0 0.85rem;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.brand:hover { color: var(--ink); }
.wordmark {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.wordmark-sub {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
nav a:hover,
nav a[aria-current="page"] {
  border-bottom-color: var(--ochre);
  color: var(--ink);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 1.75rem 0 2.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}
.footer-inner {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}
.site-footer a { color: var(--ink-soft); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-weight: 600;
}

/* Type */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(1.85rem, 3.4vw, 2.55rem); margin: 0 0 0.7rem; }
h2 { font-size: 1.45rem; margin: 2.4rem 0 0.7rem; }
h3 { font-size: 1.12rem; margin: 1.6rem 0 0.45rem; }
p { margin: 0 0 1rem; }
.lede {
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-dark);
  margin: 0 0 0.55rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.2;
}
.btn:hover { background: var(--ochre-dark); border-color: var(--ochre-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ochre-wash);
  color: var(--ink);
  border-color: var(--ink);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.1rem 0 0; }

/* Hero */
.hero {
  padding: 2.4rem 0 0.5rem;
}
.hero h1 { max-width: 22ch; }
.price-strip {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.7rem 0;
  margin: 1.25rem 0 0;
}

/* Sections */
section { padding: 0.25rem 0; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 2.4rem 0; }

/* Cards / grids */
.grid-2,
.grid-3 {
  display: grid;
  gap: 1rem;
  margin: 1.1rem 0 0;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.1rem 1.15rem 1.15rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Prices */
.price-card .price-amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.15rem 0 0.35rem;
  color: var(--ink);
}
.price-card .price-amount span {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}
.price-card ul {
  margin: 0.6rem 0 1rem;
  padding-left: 1.1rem;
}
.price-card li { margin-bottom: 0.3rem; }

/* Verdict samples */
.verdict-card { position: relative; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  line-height: 1.2;
}
.badge-go { background: var(--go); color: #fff; }
.badge-nogo { background: var(--nogo); color: #fff; }
.badge-example {
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.score {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0.45rem 0 0.2rem;
}
.score small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

/* Steps */
.steps { list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.step-n {
  font-weight: 700;
  color: var(--ochre-dark);
  font-size: 1.05rem;
}
.step-n::before { content: counter(step); }

/* FAQ */
.faq details {
  border-top: 1px solid var(--rule);
  padding: 0.7rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--ochre-dark);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.55rem 0 0.2rem; color: var(--ink-soft); }

/* Page title band */
.page-head { padding: 2rem 0 0.25rem; }

/* Legal */
.legal h2 { font-size: 1.2rem; }
.legal ol.clauses { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.55rem; }
.draft-banner {
  background: var(--ochre-wash);
  border: 1px solid #e7c9a0;
  padding: 0.75rem 0.95rem;
  margin: 0 0 1.4rem;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 0.92rem;
}

/* Memos */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1.1rem 0 0;
}
.breadcrumb a { color: var(--ink-soft); }
.memo { padding-bottom: 3rem; }
.memo-banner {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 0.92rem;
  padding: 0.7rem 0.9rem;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.memo-banner.nogo {
  background: var(--nogo-wash);
  border-color: #e8c5cf;
}
.verdict-box {
  border: 1px solid var(--ink);
  padding: 1rem 1.1rem 0.85rem;
  margin: 0 0 1.4rem;
  background: var(--card);
}
.verdict-box.go { border-left: 6px solid var(--go); }
.verdict-box.nogo { border-left: 6px solid var(--nogo); }
.verdict-box .verdict-word {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.15rem 0 0.15rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.verdict-box.go .verdict-word { color: var(--go); }
.verdict-box.nogo .verdict-word { color: var(--nogo); }

.disclaimer {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  margin: 1.25rem 0;
}
.disclaimer strong { font-weight: 700; }

.table-wrap {
  overflow-x: auto;
  margin: 0.8rem 0 1.2rem;
  border: 1px solid var(--rule);
  background: var(--card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.4;
}
caption {
  text-align: left;
  font-weight: 700;
  padding: 0.55rem 0.7rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--rule);
}
th {
  font-weight: 700;
  background: var(--paper-2);
  white-space: nowrap;
}
tr:last-child th,
tr:last-child td { border-bottom: 0; }
td a { overflow-wrap: anywhere; }

.unknown {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--unknown);
}
.pass { color: var(--go); font-weight: 700; }
.fail { color: var(--nogo); font-weight: 700; }

.sources {
  padding-left: 1.3rem;
}
.sources li {
  margin-bottom: 0.45rem;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}
.sources a { font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif; font-size: 0.88rem; }

.scope-list { margin: 0.4rem 0 1rem; padding-left: 1.2rem; }
.scope-list li { margin-bottom: 0.35rem; }

/* Order form */
.ui,
nav,
.btn,
button.btn,
.kicker,
.wordmark-sub,
.price-amount,
.score,
.meta,
.site-header,
.site-footer,
.breadcrumb,
caption,
th,
.step-n,
.badge,
.order-form label,
.order-form input,
.order-form select,
.order-form textarea,
.order-form button,
.sku-switch {
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.sku-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}
.sku-switch a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.sku-switch a:hover {
  border-bottom-color: var(--ochre);
}

.order-form {
  display: none;
  margin: 0 0 2rem;
}
.order-form:target { display: block; }
.order-picker { display: block; margin: 0 0 1.5rem; }
body:has(.order-form:target) .order-picker { display: none; }

.order-form h2 { margin-top: 0.4rem; }
.order-form p { margin: 0 0 0.95rem; }
.order-form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.28rem;
}
.order-form input[type="text"],
.order-form input[type="email"],
.order-form input[type="url"],
.order-form select,
.order-form textarea {
  display: block;
  width: 100%;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule-strong);
  padding: 0.45rem 0.55rem;
  border-radius: 0;
  font-family: inherit;
}
.order-form textarea { resize: vertical; min-height: 4.5rem; }
.order-form select { appearance: auto; }
.order-form input:focus-visible,
.order-form select:focus-visible,
.order-form textarea:focus-visible,
.order-form button:focus-visible,
.order-form input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.order-form p.check label {
  /* Do NOT use grid/flex here: bare text + <a> nodes become separate
     cells/items and overlap. Keep one inline flow with the box offset. */
  display: block;
  position: relative;
  padding-left: 1.7rem;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.5;
  cursor: pointer;
}
.order-form p.check label a {
  display: inline;
  white-space: normal;
}
.order-form p.check input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 0.22rem;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.order-form input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--ink);
  cursor: pointer;
}
.order-form button.btn {
  cursor: pointer;
  font-family: inherit;
}
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Small print */
.fine {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Print */
@media print {
  body { background: #fff; border-top: 0; font-size: 11pt; }
  .site-header, .site-footer, .skip, .actions, nav, .btn { display: none !important; }
  a { color: var(--ink); text-decoration: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #444; }
  .table-wrap { border: 0; overflow: visible; }
  .verdict-box, .card, .disclaimer { break-inside: avoid; }
}

@media (max-width: 540px) {
  html { font-size: 100%; }
  .hero { padding-top: 1.5rem; }
  .score { font-size: 2rem; }
}

/* Guide diagrams */
.guide-diagram {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.5rem auto 2rem;
  padding: 0;
}
.guide-diagram img {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  margin-inline: auto;
}

/* Guides index — search + category chips */
.guides-toolbar {
  margin: 1.5rem 0 2rem;
}

.guides-search-wrap label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.guides-search {
  display: block;
  width: 100%;
  max-width: 28rem;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--rule, #cbd5e1);
  border-radius: 4px;
  background: var(--card, #fff);
  color: var(--ink);
}

.guides-search:focus {
  outline: 2px solid var(--focus, var(--navy, #0f766e));
  outline-offset: 1px;
}

.guides-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.guides-chip {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--rule, #cbd5e1);
  border-radius: 999px;
  background: var(--card, #fff);
  color: var(--ink-soft, var(--ink));
  cursor: pointer;
}

.guides-chip:hover {
  background: var(--wash, var(--paper-2, #f1f5f9));
}

.guides-chip.is-active {
  background: var(--navy, #0f766e);
  border-color: var(--navy, #0f766e);
  color: #fff;
}

.guides-category {
  margin-bottom: 2rem;
}

.guides-category-title {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--muted, var(--ink-soft));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guides-index--flat .guides-category-title {
  display: none;
}

.guides-empty {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: var(--paper-2, #f1f5f9);
  border-radius: 4px;
  font-size: 0.92rem;
}

.guides-empty[hidden],
.guide-item[hidden],
.guides-category[hidden] {
  display: none;
}

.guides-index .guide-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.guides-index .guide-list li {
  margin: 0 0 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule, #cbd5e1);
}

.guides-index .guide-list li:last-child {
  border-bottom: 0;
}

.guides-index .guide-list h2,
.guides-index .guide-list h3 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.guides-index .guide-list p {
  margin: 0;
  color: var(--ink-soft);
}
