/* PatchNova site. One stylesheet, no scripts, no external requests. Light and dark follow the visitor's system. */
:root {
  --bg: #ffffff;
  --surface: #f6f6f7;
  --ink: #0b0b0d;
  --muted: #4a4a50;
  --line: #d9d9dc;
  --accent: #c8101e;
  --accent-ink: #ffffff;
  --accent-soft: #fbe4e6;
  --warn: #1a1a1d;
  --warn-soft: #ececee;
  --bad: #ffffff;
  --bad-soft: #c8101e;
  --ok: #0b0b0d;
  --ok-soft: #e4e4e7;
  --code: #ededef;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090a; --surface: #151517; --ink: #f5f5f6; --muted: #a9a9b0; --line: #2c2c30;
    --accent: #ff4655; --accent-ink: #ffffff; --accent-soft: #3a1115;
    --warn: #e2e2e5; --warn-soft: #26262a; --bad: #ffffff; --bad-soft: #d9202f; --ok: #f5f5f6; --ok-soft: #2a2a2e; --code: #0e0e10;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: #c8101e; color: #ffffff; padding: 8px 14px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 8px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0; max-width: 66ch; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

/* header */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.btn { --btn: #c8101e; display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 8px; background: var(--btn); color: #ffffff; font-weight: 650; text-decoration: none; border: 2px solid var(--btn); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.nav .btn { padding: 8px 14px; color: #ffffff; }

/* hero */
.hero { padding-block: clamp(48px, 9vw, 104px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; gap: 28px; }
.hero p.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 0.9rem; color: var(--muted); }

/* the product, drawn: rows in the status colours the real page uses */
.shot { margin: 12px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: 0 10px 30px -18px rgba(10, 30, 40, 0.35); }
.shot-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--code); font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 0.86rem; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { outline: 1px solid var(--line); }
.pill.info { background: var(--accent-soft); color: var(--accent); }
.shot-foot { padding: 10px 14px; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); }

/* sections */
section { padding-block: clamp(44px, 7vw, 84px); }
section + section { border-top: 1px solid var(--line); }
.head { display: grid; gap: 12px; margin-bottom: 36px; }
.head p { color: var(--muted); }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s); font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 1.5rem; }
.steps p { color: var(--muted); font-size: 0.97rem; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card .tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

.split { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.split > * { min-width: 0; }
.stages { display: grid; gap: 10px; }
.stage { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.stage b { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.stage .bar2 { height: 8px; border-radius: 4px; background: var(--code); overflow: hidden; }
.stage .bar2 i { display: block; height: 100%; background: var(--accent); }
.stage.hold .bar2 i { background: var(--warn); }
.stage .w25 { width: 25%; } .stage .w50 { width: 50%; } .stage .w100 { width: 100%; } .stage .w6 { width: 6%; } .stage .w0 { width: 0; }

.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 560px; height: auto; }
.d-box { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
.d-core { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.d-t { fill: var(--ink); font-family: var(--font); font-size: 14px; }
.d-b { fill: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 700; }
.d-m { fill: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.d-line { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 6 5; }
.d-arrow { fill: var(--accent); }

ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.plain li { padding-left: 26px; position: relative; color: var(--muted); }
ul.plain li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
ul.plain b { color: var(--ink); }

.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 4vw, 40px); display: grid; gap: 16px; }
.mono { font-family: var(--mono); font-size: 0.95rem; background: var(--code); padding: 2px 8px; border-radius: 6px; overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sr { position: absolute; left: -9999px; }
.head.flush { margin: 0; }
ul.plain.tight { margin-top: 6px; }
ul.plain.cols { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 32px; margin-top: 28px; }
.diagram svg { margin-inline: auto; max-width: 760px; }
.card .pill { justify-self: start; }
.note.spaced { margin-top: 24px; }
.testing { margin-top: 56px; display: grid; gap: 20px; }
.testing .head { margin: 0; }
h3.sub { font-size: 1.45rem; }
.box { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.testing ul.plain.cols { margin-top: 8px; }
.box table { min-width: 0; }
.box td { white-space: normal; vertical-align: top; }
.box td:first-child, .box td:last-child { white-space: nowrap; }
.box td:last-child { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
