/* Packet Ledger — a network engineer's worksheet.
   Type: monospace carries the data (it is the vernacular of the subject),
   a plain grotesque carries the prose. No CDN, no webfont: this runs on an
   air-gapped box if it has to. */

:root {
  /* Brand teal from the supplied lockup; the page is a light, tinted paper so a
     capture report reads like a document rather than a dashboard. */
  --brand:     #0097B2;
  --brand-dk:  #007A91;
  --brand-ink: #045c6d;

  --bg:        #eef6f9;
  --paper:     #ffffff;
  --panel:     #ffffff;
  --panel-2:   #f6fbfc;
  --pill:      #0097B2;
  --ink:       #0e2a33;
  --ink-2:     #4b6772;
  --dim:       #7a949d;
  --rule:      #d3e5ea;
  --rule-2:    #e6f1f4;
  --signal:    #0097B2;
  --signal-2:  #007A91;
  --on-signal: #ffffff;
  --good:      #0a7a55;
  --good-bg:   #e6f7f0;
  --warn:      #8a5300;
  --warn-bg:   #fff3e0;
  --bad:       #b3261e;
  --bad-bg:    #fdecea;
  --violet:    #5b3fbf;
  --shadow:    0 1px 2px rgba(14, 42, 51, .05), 0 8px 24px rgba(14, 42, 51, .06);
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  /* A linear wash from brand-tinted to paper, with the faint engineering grid
     kept from the reference — it belongs on a tool that reads packet captures. */
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, #d9eef4 0%, #eaf5f8 22%, #f4fafb 60%, #ffffff 100%),
    linear-gradient(rgba(0, 151, 178, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 151, 178, .07) 1px, transparent 1px);
  background-size: 100% 100%, 46px 46px, 46px 46px;
  background-attachment: fixed;
  background-repeat: no-repeat, repeat, repeat;
  min-height: 100vh;
}
::selection { background: rgba(0, 151, 178, .22); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.mono { font-family: var(--mono); font-size: 0.87em; }
.dim { color: var(--ink-2); }
.bad  { color: var(--bad); }
.warnt { color: var(--warn); }
a { color: var(--signal); }

/* ---------- masthead: a floating box in the brand teal ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  padding-top: .85rem; padding-bottom: .55rem;
  background: linear-gradient(180deg, rgba(217, 238, 244, .96) 0%, rgba(217, 238, 244, .72) 62%, rgba(217, 238, 244, 0) 100%);
  backdrop-filter: blur(6px);
}
.masthead .wrap { padding-top: 0; padding-bottom: 0; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1.25rem;
  background: var(--pill);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px; padding: .5rem 1.1rem;
  box-shadow: 0 6px 20px rgba(0, 118, 140, .22), 0 1px 0 rgba(255, 255, 255, .35) inset;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo {
  display: block; height: 44px; width: auto;
  /* the lockup was drawn on this exact teal, so it sits flush on the box */
}
.brand:hover .brand-logo { filter: brightness(1.08); }

.nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.nav a {
  font-family: var(--mono); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255, 255, 255, .88); text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:hover, .nav a:focus-visible { color: #ffffff; border-bottom-color: rgba(255, 255, 255, .85); }
.nav a.on { color: #ffffff; border-bottom-color: #ffffff; }
/* The parent brand keeps its own capitalisation — it is a name, not a label. */
.nav a.ext { text-transform: none; letter-spacing: .02em; font-size: .82rem; font-weight: 700; }
.nav .ext-arrow { font-size: .8em; }

.job-strip {
  display: flex; justify-content: flex-end; align-items: center; gap: .8rem;
  padding: .6rem .2rem 0; flex-wrap: wrap;
}
.back { color: var(--brand-ink); text-decoration: none; font-family: var(--mono); font-size: .78rem; }
.back:hover { color: var(--signal); text-decoration: underline; }
.job-id { font-family: var(--mono); font-size: .72rem; color: var(--dim); }
.tagline { margin: .15rem 0 0; color: var(--ink-2); font-size: .9rem; }

main.wrap { padding-top: 1.4rem; padding-bottom: 3rem; }

@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .brand-logo { height: 36px; }
  .nav { gap: 1.1rem; }
}

/* ---------- panels ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 3px;
  padding: 1.25rem 1.35rem; margin-bottom: 1.1rem;
}
.panel-title {
  margin: 0 0 .35rem; font-family: var(--mono); font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2);
  border-bottom: 1px solid var(--rule-2); padding-bottom: .5rem;
  display: flex; align-items: center; gap: .5rem;
}
.count {
  background: var(--rule-2); color: var(--ink-2); border-radius: 2px;
  padding: 0 .35rem; font-size: .78rem;
}
.lede { margin: .6rem 0 .9rem; color: var(--ink-2); font-size: .9rem; max-width: 68ch; }
.hint { color: var(--ink-2); font-size: .8rem; margin: .6rem 0 0; }

/* ---------- verdict strip: the first thing you read ---------- */
.verdict-strip {
  display: flex; align-items: stretch; gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 3px; margin-bottom: 1.1rem; overflow: hidden;
}
.v-item { background: var(--panel); padding: .9rem 1.2rem; min-width: 8.5rem; }
.v-num { display: block; font-family: var(--mono); font-size: 2rem; font-weight: 600; line-height: 1; }
.v-lbl { font-size: .78rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.v-bad  .v-num { color: var(--bad); }
.v-warn .v-num { color: var(--warn); }
.v-good .v-num { color: var(--good); }
.v-meta {
  background: var(--panel); padding: .9rem 1.2rem; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  font-family: var(--mono); font-size: .8rem;
}

/* ---------- tables ---------- */
.grid { width: 100%; border-collapse: collapse; font-size: .87rem; }
.grid th {
  text-align: left; font-weight: 600; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-2); border-bottom: 1px solid var(--rule);
  padding: .45rem .5rem;
}
.grid td { padding: .45rem .5rem; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.grid tr:last-child td { border-bottom: 0; }
.grid .num, th.num { text-align: right; font-family: var(--mono); }
.barcell { width: 60%; }
.bar { display: block; height: .55rem; background: var(--signal); opacity: .8; border-radius: 1px; }
.tag { font-size: .68rem; background: var(--warn-bg); color: var(--warn); padding: 0 .3rem; border-radius: 2px; }

/* ---------- badges ---------- */
.badge {
  display: inline-block; font-family: var(--mono); font-size: .7rem; font-weight: 600;
  padding: .1rem .45rem; border-radius: 2px; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .05em;
}
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad  { background: var(--bad-bg);  color: var(--bad); }

/* ---------- forms ---------- */
.file-row { display: flex; gap: .6rem; align-items: center; margin-bottom: .5rem; }
.file-pick {
  flex: 1; position: relative; display: block; border: 1px dashed var(--rule);
  border-radius: 3px; padding: .6rem .8rem; cursor: pointer; background: var(--panel-2);
}
.file-pick:hover { border-color: var(--signal); }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-name { font-family: var(--mono); font-size: .82rem; color: var(--ink-2); }
.file-row.has-file .file-pick { border-style: solid; border-color: var(--signal); background: #e9f6f9; }
.file-row.has-file .file-name { color: var(--ink); }
.stage, .text-input {
  font-family: var(--sans); font-size: .85rem; padding: .5rem .6rem;
  border: 1px solid var(--rule); border-radius: 3px; background: var(--panel-2); color: var(--ink);
}
.text-input { width: 100%; }
.row-actions { display: flex; align-items: center; gap: .8rem; margin: .6rem 0 1rem; flex-wrap: wrap; }
.submit-bar { display: flex; align-items: center; gap: .9rem; border-top: 1px solid var(--rule-2);
  padding-top: 1rem; flex-wrap: wrap; }

.btn {
  font: 600 .85rem/1 var(--sans); padding: .6rem .95rem; border-radius: 3px;
  border: 1px solid var(--rule); background: var(--panel-2); color: var(--ink); cursor: pointer;
}
.btn:hover { border-color: var(--signal); color: var(--signal); }
.btn.primary { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.btn.primary:hover { background: var(--signal-2); color: var(--on-signal); box-shadow: 0 0 0 3px rgba(0, 151, 178, .22); }
.btn.primary:disabled { opacity: .6; cursor: default; }
.btn.icon { padding: .35rem .55rem; line-height: 1; font-size: 1rem; }
.btn.ghost { background: transparent; }

.checklist { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .9rem; color: var(--ink-2); }
.checklist li { margin-bottom: .35rem; }
.checklist b { color: var(--ink); }

.alert { border-radius: 3px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .9rem; }
.alert-error { background: var(--bad-bg); border: 1px solid #f0c2bd; color: #8c1d18; }
.alert ul { margin: .4rem 0 0; padding-left: 1.1rem; }

/* ---------- filters ---------- */
.filters { display: flex; gap: .4rem; align-items: center; margin-bottom: .8rem; flex-wrap: wrap; }
.chip {
  font: 600 .75rem/1 var(--mono); padding: .4rem .7rem; border: 1px solid var(--rule);
  background: var(--panel-2); border-radius: 2px; cursor: pointer; color: var(--ink-2);
}
.chip.active { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.search { flex: 1; min-width: 12rem; max-width: 22rem; }

/* ---------- streams ---------- */
.stream {
  border: 1px solid var(--rule); border-left: 3px solid var(--rule);
  border-radius: 2px; margin-bottom: .4rem; background: var(--panel);
}
.stream.v-error { border-left-color: var(--bad); }
.stream.v-warn  { border-left-color: var(--warn); }
.stream.v-ok    { border-left-color: var(--good); }
.stream > summary {
  cursor: pointer; padding: .55rem .7rem; display: flex; align-items: center;
  gap: .7rem; list-style: none; flex-wrap: wrap;
}
.stream > summary::-webkit-details-marker { display: none; }
.stream > summary:hover { background: var(--panel-2); }
.stream[open] > summary { border-bottom: 1px solid var(--rule-2); background: var(--panel-2); }
.s-id { font-family: var(--mono); font-size: .72rem; color: var(--ink-2); min-width: 2.5rem; }
.s-tuple { flex: 1 1 22rem; }
.s-tuple .port { color: var(--signal); }
.s-tuple .arrow { color: var(--ink-2); margin: 0 .3rem; }
.s-svc { font-size: .8rem; color: var(--ink-2); flex: 0 1 14rem; }
.s-num { font-family: var(--mono); font-size: .75rem; color: var(--ink-2); min-width: 5.5rem; text-align: right; }
.s-body { padding: 1rem .9rem; }
.s-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; }

/* ---------- the ladder: signature element ---------- */
.ladder { width: 100%; height: auto; background: var(--panel-2); border: 1px solid var(--rule-2); border-radius: 2px; }
.lad-head { font: 600 10px var(--mono); fill: var(--ink); text-transform: uppercase; letter-spacing: .08em; }
.lad-sub  { font: 9px var(--mono); fill: var(--ink-2); }
.lad-life { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 3; }
.lad-arrow { stroke-width: 1.4; }
.lad-label { font: 9px var(--mono); fill: var(--ink); }
.lad-time  { font: 8px var(--mono); fill: var(--ink-2); }
.lad-handshake, .lad-seq { stroke: var(--signal); }
.lad-data  { stroke: var(--good); }
.lad-tls   { stroke: var(--violet); }
.lad-close { stroke: var(--ink-2); }
.lad-reset, .lad-alert { stroke: var(--bad); stroke-width: 1.8; }
.lad-head-fill { stroke: none; }
path.lad-handshake, path.lad-seq { fill: var(--signal); }
path.lad-data  { fill: var(--good); }
path.lad-tls   { fill: var(--violet); }
path.lad-close { fill: var(--ink-2); }
path.lad-reset, path.lad-alert { fill: var(--bad); }

/* ---------- key/value tables ---------- */
.kv { width: 100%; border-collapse: collapse; font-size: .8rem; }
.kv th { text-align: right; font: 600 .7rem var(--mono); color: var(--ink-2); padding: .2rem .5rem;
  text-transform: uppercase; letter-spacing: .05em; }
.kv th:first-child { text-align: left; }
.kv td { padding: .2rem .5rem; border-bottom: 1px solid var(--rule-2); }
.kv td:first-child { color: var(--ink-2); width: 11rem; }
.kv td:not(:first-child) { font-family: var(--mono); text-align: right; }
.kv.wide td:first-child { width: 12rem; }
.kv.wide td:not(:first-child) { text-align: left; font-family: var(--sans); }

/* ---------- tls ---------- */
.tls-block { margin-top: 1.2rem; border-top: 1px solid var(--rule-2); padding-top: .9rem; }
.tls-block h3, .findings h3 {
  margin: 0 0 .5rem; font: 600 .75rem var(--mono); text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-2);
}
.tls-block h4 { margin: 1rem 0 .4rem; font: 600 .75rem var(--mono); color: var(--ink-2); }
.hs-flow { color: var(--violet); }
.chain { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.cert { border: 1px solid var(--rule-2); border-radius: 2px; padding: .5rem .6rem; background: var(--panel-2); }
.cert-bad { border-color: #f0c2bd; background: var(--bad-bg); }
.cert-role { font: 600 .65rem var(--mono); text-transform: uppercase; letter-spacing: .08em;
  color: var(--violet); margin-bottom: .3rem; }
.cert .kv td:first-child { width: 6.5rem; }
.cert .kv td:not(:first-child) { text-align: left; word-break: break-word; }

/* ---------- findings ---------- */
.findings { margin-top: 1.2rem; border-top: 1px solid var(--rule-2); padding-top: .9rem; }
.finding { display: flex; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--rule-2); }
.finding:last-child { border-bottom: 0; }
.finding p { margin: .15rem 0 0; font-size: .85rem; color: var(--ink-2); max-width: 82ch; }
.finding b { font-size: .88rem; }
.sev {
  flex: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; margin-top: .15rem;
  font: 700 .7rem/1.15rem var(--mono); text-align: center; color: var(--on-signal);
}
.sev-error { background: var(--bad); }
.sev-warn  { background: var(--warn); }
.sev-info  { background: #7a949d; }
.f-error b { color: var(--bad); }
.evidence { display: inline-block; margin-top: .3rem; background: var(--rule-2);
  padding: .05rem .35rem; border-radius: 2px; color: var(--ink-2); }

/* ---------- follow stream ---------- */
.follow { margin-top: 1rem; }
.follow > summary { cursor: pointer; font: 600 .75rem var(--mono); color: var(--signal); }
.dump-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .6rem; }
.dump-pair h5 { margin: 0 0 .3rem; font: 600 .68rem var(--mono); color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .06em; }
.dump {
  margin: 0; padding: .55rem; background: #0e2a33; color: #d6e7ec;
  font-family: var(--mono); font-size: .68rem; line-height: 1.45;
  border-radius: 2px; overflow-x: auto; white-space: pre;
}

/* ---------- foot ---------- */
.foot { padding: 1.5rem 1.25rem 3rem; font-size: .8rem; color: var(--ink-2); }
.foot b.bad { color: var(--bad); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .s-grid, .dump-pair { grid-template-columns: 1fr; }
  .verdict-strip { flex-wrap: wrap; }
  .v-meta { flex-basis: 100%; }
  .s-num { text-align: left; }
  .file-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* ============ correlation views ============ */

/* A name is evidence, not decoration: it always sits next to the address it
   was learned for, and its title says where it came from. */
.nm {
  display: inline-block; font-family: var(--mono); font-size: .72rem;
  background: #e4f4f8; color: var(--brand-ink); border: 1px solid #b8e0e9;
  padding: 0 .3rem; border-radius: 2px; margin-left: .3rem; white-space: nowrap;
  max-width: 22rem; overflow: hidden; text-overflow: ellipsis; vertical-align: baseline;
}
.badge.role { background: var(--rule-2); color: var(--ink-2); }
.explore-link { margin-right: auto; margin-left: 1.2rem; }
.alert-scope {
  background: #e4f4f8; border: 1px solid #b8e0e9; color: var(--brand-ink);
  border-left: 3px solid var(--signal);
}
.row-bad { background: #fdf3f2; }
.row-bad td { border-bottom-color: #f4d7d4; }

/* ---------- filter panel ---------- */
.filter-panel { position: sticky; top: 76px; z-index: 5; box-shadow: var(--shadow); }
.filter-grid {
  display: grid; gap: .6rem; margin: .8rem 0;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.filter-grid label {
  display: flex; flex-direction: column; gap: .25rem;
  font: 600 .68rem var(--mono); text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-2);
}
.filter-grid label.wide { grid-column: 1 / -1; }

/* ---------- quick start ---------- */
.quick { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: .5rem; }
.quick-card {
  display: block; border: 1px solid var(--rule); border-radius: 2px; padding: .6rem .7rem;
  text-decoration: none; color: var(--ink); background: var(--panel-2);
}
.quick-card:hover { border-color: var(--signal); background: #e9f6f9; }
.qc-ip { display: block; font-size: .85rem; font-weight: 600; }
.qc-meta { display: block; font-size: .72rem; color: var(--ink-2); margin-top: .2rem; }

/* ---------- host cards ---------- */
.hostcards { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.hostcard { border: 1px solid var(--rule); border-radius: 2px; padding: .7rem .8rem; background: var(--panel-2); }
.hostcard.hc-bad { border-color: #f0c2bd; background: var(--bad-bg); }
.hc-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem; }
.hc-ip { font-size: .95rem; font-weight: 600; }
.hc-names { margin-bottom: .4rem; }
.hc-names .nm { margin: 0 .25rem .25rem 0; }
.hostcard .kv td:first-child { width: 8.5rem; }
.hostcard .kv td:not(:first-child) { text-align: left; }
.hc-links { margin-top: .5rem; display: flex; gap: .8rem; font-size: .75rem; font-family: var(--mono); }

/* ---------- timeline ---------- */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li {
  display: grid; gap: .55rem; align-items: baseline;
  grid-template-columns: 8.5rem 5rem 5.5rem 1fr auto;
  padding: .35rem .4rem; border-bottom: 1px solid var(--rule-2);
  border-left: 3px solid transparent; font-size: .82rem;
}
.tl li:last-child { border-bottom: 0; }
.tl-error { border-left-color: var(--bad); background: #fdf3f2; }
.tl-ts { font-size: .72rem; color: var(--ink-2); }
.tl-off { font-size: .7rem; color: var(--dim); text-align: right; }
.tl-kind {
  font: 600 .65rem var(--mono); text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-2); background: var(--rule-2); border-radius: 2px;
  padding: 0 .3rem; text-align: center;
}
.tl-error .tl-kind { background: var(--bad-bg); color: var(--bad); }
.tl-text { min-width: 0; overflow-wrap: anywhere; }
.tl-sid { font-size: .72rem; }

/* ---------- packet rows ---------- */
.packets td { padding: .3rem .45rem; font-size: .78rem; }
.packets .info { color: var(--ink-2); overflow-wrap: anywhere; }
.packets .nm { display: none; }              /* names would double the row height */
.packets tr:hover .nm { display: inline-block; }

@media (max-width: 860px) {
  .tl li { grid-template-columns: 1fr; gap: .15rem; }
  .tl-off, .tl-kind { text-align: left; justify-self: start; }
  .filter-panel { position: static; }
}

/* ---------- hero: the reference's shape — eyebrow, two-line thesis, proof strip ---------- */
.hero { text-align: center; padding: 2.2rem 0 1.6rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--signal);
  background: #e4f4f8; border: 1px solid #b8e0e9; border-radius: 999px;
  padding: .35rem .9rem;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 6px var(--good); }
.hero h1 {
  font-family: var(--sans); font-weight: 800; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 1.1rem 0 0; color: var(--ink);
}
.hero h1 .hl { color: var(--signal); }
.hero-lede {
  font-family: var(--mono); font-size: .82rem; line-height: 1.9; color: var(--ink-2);
  max-width: 74ch; margin: 1.2rem auto 0;
}
.hero-cta { display: flex; justify-content: center; gap: 1rem; margin: 1.8rem 0 1.2rem; flex-wrap: wrap; }
.hero-cta .btn { padding: .8rem 1.4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  font-family: var(--mono); text-decoration: none; }
.assurances {
  display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: .72rem; color: var(--dim); margin: 0 0 1.6rem;
}
.assurances span { white-space: nowrap; }
.stats-strip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--panel); border: 1px solid var(--rule); border-radius: 6px;
  max-width: 56rem; margin: 0 auto; overflow: hidden;
}
.stat { padding: 1.1rem .6rem; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat-num {
  display: block; font-family: var(--sans); font-weight: 800; font-size: 1.7rem;
  line-height: 1.1; color: var(--signal); letter-spacing: -.02em;
}
.stat-num.green { color: var(--good); }
.stat-lbl {
  display: block; font-family: var(--mono); font-size: .6rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--dim); margin-top: .4rem;
}
@media (max-width: 780px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat { border-bottom: 1px solid var(--rule); }
  .topbar { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .nav { gap: .9rem; }
}

/* ---------- features page ---------- */
.feat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); margin-top: .6rem; }
.feat { border: 1px solid var(--rule); border-radius: 4px; padding: .9rem 1rem; background: var(--panel-2); }
.feat-h { margin: 0; font-size: .95rem; color: var(--ink); font-weight: 700; }
.feat-sub {
  margin: .15rem 0 .6rem; font-family: var(--mono); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .1em; color: var(--signal);
}
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  position: relative; padding-left: 1.15rem; margin-bottom: .35rem;
  font-size: .84rem; color: var(--ink-2); line-height: 1.5;
}
.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--good); font-size: .8rem;
}
.checklist.wide-list li { font-size: .88rem; margin-bottom: .5rem; }

.corr { display: grid; gap: 0; }
.corr-row {
  display: grid; grid-template-columns: 15rem 1fr; gap: 1.2rem;
  padding: .9rem 0; border-bottom: 1px solid var(--rule-2);
}
.corr-row:last-child { border-bottom: 0; }
.corr-h { margin: 0; font-size: .9rem; color: var(--signal); font-weight: 700; }
.corr-b { margin: 0; font-size: .87rem; color: var(--ink-2); }

.howto { margin: .5rem 0 1.2rem; padding: 0; list-style: none; counter-reset: step; }
.howto > li {
  position: relative; padding: 0 0 1.1rem 3rem; margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule-2); counter-increment: step;
}
.howto > li:last-child { border-bottom: 0; margin-bottom: 0; }
.howto > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: .1rem;
  font-family: var(--mono); font-size: .78rem; font-weight: 700; color: var(--signal);
  border: 1px solid var(--rule); border-radius: 4px; background: var(--panel-2);
  width: 2rem; height: 2rem; display: grid; place-items: center;
}
.howto h3 { margin: .2rem 0 .35rem; font-size: 1rem; color: var(--ink); }
.howto p { margin: 0 0 .5rem; font-size: .87rem; color: var(--ink-2); }
.howto pre.dump { margin: .5rem 0; padding: .7rem .8rem; font-size: .8rem; }
.foot { padding: 1.5rem 1.25rem 2.5rem; font-family: var(--mono); font-size: .75rem; color: var(--dim); }

@media (max-width: 780px) {
  .corr-row { grid-template-columns: 1fr; gap: .2rem; }
}

/* ---------- small utilities (these exist so no inline style= is needed,
              which keeps the Content-Security-Policy free of unsafe-inline) ---------- */
.narrow { max-width: 34rem; }
.mt-1 { margin-top: 1rem; }
.signin { max-width: 26rem; margin: 4rem auto; }
