@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-500-800.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/plex-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* Palette: the red and the slate are the logo's own (#bc011c, #232c34). Every color below is a
         token, and the dark set redefines the tokens only, so a component never branches on theme. */
:root {
  --bg: #f2f4f5;
  --surface: #ffffff;
  --ink: #232c34;
  --muted: #55616b;
  --line: #d5dbe0;
  --accent: #bc011c;
  --accent-fill: #bc011c;
  --on-accent: #ffffff;
  --band-bg: #1b2329;
  --band-ink: #e9edf0;
  --band-muted: #a6b2bb;
  --band-line: #2f3b44;
  --pass: #2f6f4e;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 6px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14191d;
    --surface: #1c2429;
    --ink: #e8ecef;
    --muted: #9aa7b1;
    --line: #2e3a42;
    --accent: #ff6b79;
    --accent-fill: #d4132b;
    --band-bg: #0e1215;
    --band-line: #263139;
    --pass: #5fbf8a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius);
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  padding: 20px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.brand svg {
  width: 44px;
  height: 30px;
  flex: none;
}
.brand .os {
  color: var(--accent);
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
}
.btn:hover {
  background: var(--surface);
}
.btn-primary {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-fill);
  filter: brightness(0.92);
}

/* Hero */
.hero {
  padding: 48px 0 88px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.kicker {
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800;
}
.lede {
  margin-top: 24px;
  max-width: 34em;
  font-size: 1.2rem;
  color: var(--muted);
}
.cta-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.fine {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* The sample inspection card: a clipboard sheet, with the tag-hole punched at the top. */
.sheet {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px 24px 24px;
  box-shadow:
    0 1px 0 var(--line),
    0 18px 40px -24px rgb(35 44 52 / 0.35);
}
.sheet::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.pill {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.res {
  flex: none;
  min-width: 64px;
  text-align: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--pass);
  color: var(--pass);
}
.res.fail {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  color: var(--on-accent);
}
.raised {
  margin-top: 18px;
  padding: 14px 16px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
}
.raised .mono {
  color: var(--accent);
}
.raised p {
  margin-top: 4px;
  font-weight: 600;
}
.raised small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
}
.sheet-foot {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Sections */
section {
  padding: 88px 0;
}
.section-head {
  max-width: 40em;
  margin-bottom: 48px;
}
.section-head .mono {
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 750;
}
.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.125rem;
}

/* How a job moves: a real sequence, so the numbers carry information. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}
.steps li {
  position: relative;
  padding: 22px 0 22px 64px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.steps h3 {
  font-size: 1.2rem;
}
.steps p {
  margin-top: 6px;
  color: var(--muted);
}
.steps-note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  max-width: 46em;
  font-weight: 600;
}

/* Capabilities */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.card .mono {
  color: var(--accent);
}
.card h3 {
  margin-top: 12px;
  font-size: 1.25rem;
}
.card p {
  margin-top: 10px;
  color: var(--muted);
}

/* The dark band */
.band {
  background: var(--band-bg);
  color: var(--band-ink);
}
.band .section-head p,
.band .muted {
  color: var(--band-muted);
}
.band .section-head .mono {
  color: #ff6b79;
}
.pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}
.pair {
  padding: 24px 0;
  border-top: 1px solid var(--band-line);
}
.pair h3 {
  font-size: 1.2rem;
}
.pair p {
  margin-top: 8px;
  color: var(--band-muted);
}

/* Forms table */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
th,
td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
tbody tr:last-child td {
  border-bottom: 0;
}
td:last-child {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}
.table-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 46em;
}

/* Status */
.status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.status .card h3 {
  margin-top: 0;
}
.status ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
}
.status li + li {
  margin-top: 6px;
}

/* FAQ */
.faq {
  max-width: 50em;
}
details {
  border-top: 1px solid var(--line);
}
details:last-child {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.2rem;
  line-height: 1.3;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent);
}
details[open] summary::after {
  content: "\2212";
}
details p {
  padding: 0 40px 24px 0;
  color: var(--muted);
}

/* Closing call to action */
.closer {
  text-align: left;
}
.closer h2 {
  max-width: 18em;
}
.closer .cta-row {
  margin-top: 28px;
}
.band .btn {
  border-color: var(--band-ink);
  color: var(--band-ink);
}
.band .btn:hover {
  background: transparent;
  filter: brightness(1.15);
}
.band .btn-primary {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  color: var(--on-accent);
}

.site-footer {
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer .brand {
  font-size: 1.1rem;
  color: var(--ink);
}
.site-footer .brand svg {
  width: 32px;
  height: 22px;
}

@media (max-width: 880px) {
  .hero {
    padding: 24px 0 64px;
  }
  .hero .wrap,
  .steps,
  .grid,
  .pairs,
  .status {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero .wrap {
    gap: 40px;
  }
  section {
    padding: 64px 0;
  }
  .nav a:not(.btn) {
    display: none;
  }
}
@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
  .btn {
    width: 100%;
  }
}

.foot-text {
  display: grid;
  gap: 10px;
  max-width: 34em;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.foot-links a {
  font-weight: 600;
}

/* Legal pages: a single readable column in the same tokens as the rest of the site. */
.legal {
  padding: 40px 0 88px;
}
.legal .prose {
  max-width: 44em;
}
.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
}
.legal .meta {
  margin-top: 12px;
  color: var(--muted);
}
.legal h2 {
  margin-top: 40px;
  font-size: 1.35rem;
  font-weight: 700;
}
.legal p,
.legal ul {
  margin-top: 12px;
}
.legal ul {
  padding-left: 1.2em;
}
.legal li + li {
  margin-top: 6px;
}
.legal a {
  color: var(--accent);
  font-weight: 600;
}
