/* AgentOK. The look borrows from a shipping label: ink rules, a label-yellow action colour, a barcode of checks. */
:root {
  --paper: #f2f5f9;
  --card: #ffffff;
  --ink: #101b33;
  --muted: #535e76;
  --line: #c3ccda;
  --label: #ffcc1a;
  --label-deep: #e6b400;
  --pass: #14704a;
  --warn: #9a5a00;
  --fail: #bd2a25;
  --pass-bg: #e2f2ea;
  --warn-bg: #fbeed4;
  --fail-bg: #fae3e1;
  --head: "Helvetica Neue", "Arial Nova", "Nimbus Sans", "Liberation Sans", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
}
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--label-deep); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
code, pre { font-family: var(--mono); font-size: 0.875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 5; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- page frame */
.top, main, .foot { width: min(1120px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.0625rem/1 var(--head); letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { display: inline-block; width: 28px; height: 28px; border-radius: 7px; }
.top nav, .foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.top nav a { font-weight: 600; text-decoration: none; padding-block: 6px; }
.top nav a:hover { text-decoration: underline; }
main { padding-block: 16px 64px; }
.foot { border-top: 2px solid var(--ink); padding-block: 24px 40px; color: var(--muted); font-size: 0.9375rem; display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.foot p { margin: 0; max-width: 52ch; }
.foot a { color: var(--muted); }

/* ---------- buttons and form */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border: 2px solid var(--ink); border-radius: 6px; background: var(--card); color: var(--ink);
  font: 700 1rem/1 var(--head); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--paper); }
.btn-primary { background: var(--label); }
.btn-primary:hover { background: var(--label-deep); }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 0.875rem; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.check-form { margin-top: 28px; max-width: 560px; }
.check-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.field-row { display: flex; gap: 10px; }
.check-form input {
  flex: 1; min-width: 0; width: 100%; min-height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 6px;
  background: var(--card); color: var(--ink); font: 400 1.0625rem/1 var(--body);
}
.check-form input::placeholder { color: #7a8499; }
.check-form details { margin-top: 14px; }
.check-form summary { cursor: pointer; font-weight: 600; width: fit-content; padding-block: 4px; }
.check-form details label { margin-top: 10px; }
.hint { color: var(--muted); font-size: 0.9375rem; margin: 10px 0 0; }
.form-error { background: var(--fail-bg); border-left: 4px solid var(--fail); padding: 10px 14px; border-radius: 4px; margin-bottom: 14px; }

/* ---------- hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: clamp(20px, 5vw, 56px); }
.lede { font-size: 1.1875rem; line-height: 1.5; color: #2b3650; margin-top: 18px; max-width: 54ch; }

/* ---------- the label */
.label { background: var(--card); border: 2px solid var(--ink); border-radius: 8px; margin: 0; overflow: hidden; }
.label-sample { transform: rotate(1.2deg); box-shadow: 10px 12px 0 rgba(16, 27, 51, 0.12); }
.label-sample figcaption { background: var(--ink); color: #fff; font: 700 0.875rem/1 var(--head); padding: 9px 16px; }
.label-row { display: flex; border-bottom: 2px solid var(--ink); }
.label-route > div { flex: 1; padding: 12px 16px; min-width: 0; }
.label-route > div + div { border-left: 2px solid var(--ink); }
.label-route strong { display: block; font: 700 1rem/1.25 var(--head); overflow-wrap: anywhere; }
.k { display: block; color: var(--muted); font-size: 0.8125rem; margin-bottom: 2px; }
.label-score { align-items: stretch; }
.score { flex: 1; padding: 14px 16px 12px; display: flex; align-items: baseline; gap: 10px; }
.score-num { font: 800 clamp(4rem, 11vw, 6rem)/0.9 var(--head); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.score-of { color: var(--muted); font-weight: 600; }
.grade { width: 96px; display: grid; place-items: center; border-left: 2px solid var(--ink); font: 800 3.25rem/1 var(--head); }
.grade-A, .grade-B { background: var(--pass-bg); color: var(--pass); }
.grade-C { background: var(--warn-bg); color: var(--warn); }
.grade-D, .grade-F { background: var(--fail-bg); color: var(--fail); }

.barcode { display: flex; align-items: stretch; gap: 3px; height: 64px; padding: 14px 16px 6px; }
.bar { display: block; flex: 0 1 auto; background: var(--ink); border-radius: 1px; min-width: 3px; }
.bar-warn { background: repeating-linear-gradient(135deg, var(--warn) 0 3px, var(--warn-bg) 3px 6px); }
.bar-fail { background: var(--fail); }
.label-note { color: var(--muted); font-size: 0.8125rem; padding: 0 16px 12px; margin: 0; }

.label-facts { margin: 0; }
.label-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.label-facts > div:last-child { border-bottom: 2px solid var(--ink); }
.label-facts-full > div:last-child { border-bottom: 0; }
.label-facts dt { color: var(--muted); flex: none; }
.label-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.label-facts .missing dd { color: var(--fail); font-weight: 600; }
.label-facts .missing dd::before { content: "✕ "; }

.cats { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.cats th, .cats td { padding: 9px 16px; text-align: left; font-weight: 400; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cats tr:last-child th, .cats tr:last-child td { border-bottom: 0; }
.cats td.num { white-space: nowrap; text-align: right; width: 1%; color: var(--muted); }
.meter-cell { width: 34%; }
.meter { display: block; height: 10px; background: #e3e8f0; border-radius: 5px; overflow: hidden; }
.meter-fill { display: block; height: 100%; background: var(--ink); border-radius: 5px; }

/* ---------- landing sections */
.band { border-top: 2px solid var(--ink); padding-block: clamp(32px, 5vw, 56px); }
.band > h2 { margin-bottom: 24px; }
.looks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 40px; }
.looks h3 { margin-bottom: 6px; }
.looks p { margin: 0; color: #2b3650; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.plan { background: var(--card); border: 2px solid var(--ink); border-radius: 8px; padding: 22px 24px; }
.plan-pro { border-top: 10px solid var(--label); }
.plan h2, .plan h3 { margin-bottom: 12px; }
.plan ul { margin: 0 0 14px; padding-left: 1.2em; }
.plan li { margin-bottom: 6px; }
.plan p:last-child { margin-bottom: 0; }
.price { font-weight: 700; }

/* ---------- report */
.report { max-width: 780px; }
.report-head { padding-block: clamp(12px, 3vw, 32px) 20px; }
.report-head h1 { font-size: clamp(1.8rem, 4.4vw, 2.75rem); overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 0.9375rem; margin-top: 8px; overflow-wrap: anywhere; }
.block { margin-top: 44px; }
.block > h2 { margin-bottom: 6px; }
.notice { margin-top: 20px; background: var(--warn-bg); border-left: 4px solid var(--warn); padding: 12px 16px; border-radius: 4px; max-width: none; }
.label-facts-full { margin-top: 14px; }

.fixes { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: fix; }
.fixes > li { counter-increment: fix; position: relative; padding: 18px 0 6px 52px; border-top: 2px solid var(--ink); }
.fixes > li::before { content: counter(fix); position: absolute; left: 0; top: 16px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--label); border: 2px solid var(--ink); border-radius: 50%; font: 800 1.0625rem/1 var(--head); }
.fixes h3 { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.loss { font: 600 0.875rem/1 var(--body); color: var(--fail); letter-spacing: 0; }
.locked { color: var(--muted); font-size: 0.9375rem; padding-left: 26px; position: relative; }
.locked::before { content: ""; position: absolute; left: 2px; top: 0.3em; width: 14px; height: 11px; border: 2px solid var(--muted); border-radius: 2px; background: var(--paper); box-shadow: 0 -7px 0 -3px var(--paper), 0 -7px 0 -1px var(--muted); }

.unlock { margin-top: 36px; background: var(--card); border: 2px solid var(--ink); border-top: 10px solid var(--label); border-radius: 8px; padding: 24px; }
.unlock h2 { margin-bottom: 8px; }

.sponsored { margin-top: 28px; padding: 14px 16px; border: 1px dashed var(--muted); border-radius: 6px; }
.sponsored-tag { display: inline-block; font-size: 0.8125rem; color: var(--muted); margin-right: 8px; }
.sponsored a { font-weight: 700; }
.sponsored p { margin: 6px 0 0; color: #2b3650; }

.group-title { margin-top: 28px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.group-title .num { font: 600 0.9375rem/1 var(--body); color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.checks { list-style: none; margin: 0; padding: 0; }
.check { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.check h4 { margin-bottom: 4px; }
.check p { margin-bottom: 6px; color: #2b3650; }
.badge { justify-self: start; align-self: start; font: 700 0.8125rem/1 var(--head); padding: 6px 8px; border-radius: 4px; white-space: nowrap; }
.badge-pass { background: var(--pass-bg); color: var(--pass); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-fail { background: var(--fail-bg); color: var(--fail); }

.snippet { margin: 12px 0 14px; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: #0f1830; }
.snippet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; background: var(--card); border-bottom: 2px solid var(--ink); font-weight: 700; font-size: 0.9375rem; }
.snippet pre { margin: 0; padding: 14px; overflow-x: auto; color: #e9eef8; line-height: 1.5; max-height: 420px; }

.table-wrap { overflow-x: auto; margin-top: 12px; }
.agents, .rows { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.agents th, .agents td, .rows th, .rows td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.agents thead th, .rows thead th { border-bottom: 2px solid var(--ink); font-weight: 700; white-space: nowrap; }
.agents tbody th { font-weight: 600; white-space: nowrap; }
.diff { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin: 6px 0 10px; }
.diff th, .diff td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.diff thead th { border-bottom: 2px solid var(--ink); font-weight: 700; }
.diff tbody th { font-weight: 600; }
.diff td:last-child { color: var(--fail); font-weight: 600; }
.agents .yes { color: var(--pass); font-weight: 600; }
.agents .no { color: var(--fail); font-weight: 700; }
.again { margin-top: 44px; }

/* ---------- text pages */
.prose { max-width: 720px; padding-block: clamp(12px, 3vw, 32px); }
.prose h1 { margin-bottom: 8px; }
.prose h2 { margin: 36px 0 10px; }
.prose .lede { margin: 12px 0 24px; }
.prose pre { background: #0f1830; color: #e9eef8; padding: 14px; border-radius: 6px; overflow-x: auto; }
.prose li { margin-bottom: 6px; }
.prose .plans { margin-block: 24px; }

/* ---------- dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 12px 20px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 2px solid var(--ink); border-radius: 8px; background: var(--card); overflow: hidden; }
.tile { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.tile-num { display: block; font: 800 2.25rem/1 var(--head); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile-label { display: block; color: var(--muted); font-size: 0.9375rem; margin-top: 6px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.panel { background: var(--card); border: 2px solid var(--ink); border-radius: 8px; padding: 18px 20px; margin-top: 20px; }
.dash-grid .panel { margin-top: 0; }
.panel h2 { font-size: 1.125rem; margin-bottom: 12px; }
.panel p { color: var(--muted); margin: 0; }
.kv { width: 100%; border-collapse: collapse; }
.kv th, .kv td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.kv td.num { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 12px; }
.kv .meter-cell { width: 55%; padding-inline: 12px; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.chart-bar { display: block; width: 100%; max-width: 28px; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 2px; }
.chart-val { font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; min-height: 1.2em; }
.chart-day { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- small screens */
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .label-sample { transform: none; box-shadow: none; }
}
@media (max-width: 560px) {
  .field-row { flex-direction: column; }
  .btn { width: 100%; }
  .btn-small { width: auto; }
  .check { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .grade { width: 76px; font-size: 2.6rem; }
  .cats th, .cats td { padding-inline: 12px; }
  .meter-cell { width: 26%; }
  .fixes > li { padding-left: 46px; }
  .top nav { gap: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 120ms ease; }
}
@media print {
  .top nav, .foot, .unlock, .sponsored, .again, .btn { display: none; }
  body { background: #fff; }
}

/* ---------- generated size steps (no inline styles, so the strict content policy holds) */
.w-1 { flex-grow: 1; flex-basis: 3px; }
.w-2 { flex-grow: 2; flex-basis: 6px; }
.w-3 { flex-grow: 3; flex-basis: 9px; }
.w-4 { flex-grow: 4; flex-basis: 12px; }
.w-5 { flex-grow: 5; flex-basis: 15px; }
.w-6 { flex-grow: 6; flex-basis: 18px; }
.w-7 { flex-grow: 7; flex-basis: 21px; }
.w-8 { flex-grow: 8; flex-basis: 24px; }
.w-9 { flex-grow: 9; flex-basis: 27px; }
.w-10 { flex-grow: 10; flex-basis: 30px; }
.p-0 { width: 0%; }
.p-5 { width: 5%; }
.p-10 { width: 10%; }
.p-15 { width: 15%; }
.p-20 { width: 20%; }
.p-25 { width: 25%; }
.p-30 { width: 30%; }
.p-35 { width: 35%; }
.p-40 { width: 40%; }
.p-45 { width: 45%; }
.p-50 { width: 50%; }
.p-55 { width: 55%; }
.p-60 { width: 60%; }
.p-65 { width: 65%; }
.p-70 { width: 70%; }
.p-75 { width: 75%; }
.p-80 { width: 80%; }
.p-85 { width: 85%; }
.p-90 { width: 90%; }
.p-95 { width: 95%; }
.p-100 { width: 100%; }
.h-0 { height: 0%; }
.h-5 { height: 4%; }
.h-10 { height: 8%; }
.h-15 { height: 12%; }
.h-20 { height: 16%; }
.h-25 { height: 20%; }
.h-30 { height: 23%; }
.h-35 { height: 27%; }
.h-40 { height: 31%; }
.h-45 { height: 35%; }
.h-50 { height: 39%; }
.h-55 { height: 43%; }
.h-60 { height: 47%; }
.h-65 { height: 51%; }
.h-70 { height: 55%; }
.h-75 { height: 58%; }
.h-80 { height: 62%; }
.h-85 { height: 66%; }
.h-90 { height: 70%; }
.h-95 { height: 74%; }
.h-100 { height: 78%; }

.badge-info { background: #e8ecf3; color: var(--muted); }
.logs pre { margin: 8px 0; padding: 12px 14px; border-radius: 6px; overflow-x: auto; background: #0f1830; color: #e9eef8; font-size: 0.875rem; }
.logs .check-form details { margin-top: 16px; }

.check-deep { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; }
.check-deep input { width: 20px; min-width: 20px; height: 20px; min-height: 20px; padding: 0; margin-top: 3px; flex: none; }
.check-deep label { margin: 0; font-weight: 700; }
.hint-inline { display: block; font-weight: 400; color: var(--muted); font-size: 0.9375rem; }

.foot-id { display: block; margin-top: .4rem; font-size: .85rem; opacity: .75; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; }
.prose th, .prose td { border: 1px solid #c9d2e3; padding: .5rem .6rem; text-align: left; vertical-align: top; }
.prose th { background: #eef2f9; }
@media (max-width: 700px) { .prose table { display: block; overflow-x: auto; } }

/* ---------- customer account */
.narrow { max-width: 520px; }
.stack { display: grid; gap: 8px; max-width: 520px; }
.stack input, .stack select, .stack textarea { font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 6px; background: var(--card); color: var(--ink); width: 100%; }
.stack label { font-weight: 600; margin-top: 6px; }
.stack .row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.check-line { display: flex; gap: 10px; align-items: center; font-weight: 400 !important; }
.check-line input { width: auto; }
.acct-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); margin-bottom: 12px; }
.acct-tabs a { padding: 10px 14px; font-weight: 600; text-decoration: none; border-radius: 6px 6px 0 0; }
.acct-tabs a:hover { background: var(--card); }
.acct-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.acct-who { color: var(--muted); font-size: 0.9375rem; }
.pill { display: inline-block; padding: 1px 10px; border: 2px solid var(--ink); border-radius: 99px; font-weight: 700; font-size: 0.8125rem; }
.pill-pro { background: var(--label); }
.dot { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--fail); color: #fff; font-size: 0.75rem; text-align: center; }
.h-page { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 12px; }
.acct .panel { margin-block: 20px; }
.acct .urlform { display: flex; gap: 10px; flex-wrap: wrap; margin-block: 12px; }
.acct .urlform input { flex: 1 1 220px; min-width: 0; font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 6px; }
table.plain { border-collapse: collapse; width: 100%; }
table.plain th, table.plain td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.plain th.num, table.plain td.num { text-align: right; }
.thread { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; max-width: 640px; }
.msg { padding: 10px 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--card); }
.msg-out { background: var(--label); }
.msg p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-meta { font-size: 0.8125rem; color: var(--muted); }
.msg-out .msg-meta { color: var(--ink); }
.bigcode { font-size: 1.25rem; padding: 8px 12px; background: var(--card); border: 2px solid var(--ink); border-radius: 6px; display: inline-block; }

/* ---------- guides */
.guide-list { list-style: none; padding: 0; display: grid; gap: 20px; }
.guide-list h2 { font-size: 1.25rem; margin-bottom: 4px; }
.guide-list p { margin: 0; }
