/* KEMEL GUARD landing, style of kemel-tech.kz (plans/16 §16.0, plans/24).
   Light theme only. Tokens and @font-face are copied from web/src/styles.css.
   No inline styles (CSP style-src 'self'), fonts are local files. */

@font-face {
  font-family: "Onest";
  src: url("fonts/onest/Onest-wght.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono/JetBrainsMono-wght.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f4;
  --surface-3: #ecebe9;
  --text: #0a0a0a;
  --text-2: #2b2a28;
  --text-3: #595650;
  --border: #d8d6d1;
  --border-hi: #0a0a0a;
  --accent: #ff5a1f;
  --accent-hover: #e0440f;
  --accent-50: #fff1eb;
  --accent-text: #c2410c;
  --on-strong: #ffffff;
  --on-strong-2: #dedcd8;
  --on-strong-3: #b4b0a9;
  --strong: #0a0a0a;
  --strong-hover: #2b2a28;
  --sev3: #a16207;
  --sev3-bg: #fffbeb;
  --shadow: #0a0a0a;
  --sh-md: 3px 3px 0 0 #0a0a0ae6;
  --sh-lg: 5px 5px 0 0 #0a0a0a;
  --grid-line: #0a0a0a0f;
  --stripe: repeating-linear-gradient(-45deg, #0a0a0a 0 12px, #ff5a1f 12px 24px);

  --font-sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 120px;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 20px;
  --radius-badge: 4px;
  --line: 1.6px;
  --wrap: 1360px;
  --gutter: 40px;
  --count: clamp(52px, 6.2vw, 88px);

  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.55;
}

/* ---------- base and browser surfaces ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--strong) var(--surface-2);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--surface-2);
}

::-webkit-scrollbar-thumb {
  background: var(--strong);
  border: 3px solid var(--surface-2);
}

::selection {
  background: var(--accent);
  color: var(--strong);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  caret-color: var(--accent);
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
}

h2 {
  font-size: clamp(32px, 4.6vw, 60px);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
}

h3 {
  font-size: var(--fs-lg);
  line-height: 1.2;
}

p,
ul,
ol,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.6px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-text);
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.num,
.count,
.props dd,
.code,
.alerts,
.contacts .v {
  font-variant-numeric: tabular-nums;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 10;
}

.skip:focus {
  top: var(--s2);
}

/* ---------- label (плашка) ---------- */

.label {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 3px var(--s2);
  border: var(--line) solid var(--border-hi);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface);
}

.label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  flex: none;
}

/* ---------- buttons ---------- */

.button {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  min-height: 52px;
  padding: 0 var(--s5);
  border: var(--line) solid var(--border-hi);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 0 var(--shadow);
  color: var(--text);
}

.button:active {
  transform: none;
  box-shadow: none;
}

.button.primary {
  background: var(--strong);
  border-color: var(--strong);
  color: var(--on-strong);
}

.button.primary:hover {
  background: var(--strong-hover);
  color: var(--on-strong);
  box-shadow: 2px 2px 0 0 var(--accent);
}

.button.sm {
  min-height: 38px;
  padding: 0 var(--s4);
  font-size: 13px;
}

/* ---------- badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-badge);
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
}

.badge.dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.sev3 {
  color: var(--sev3);
  background: var(--sev3-bg);
}

.example {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px dashed var(--text-3);
  color: var(--text-3);
  padding: 1px 6px;
  white-space: nowrap;
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: var(--line) solid var(--border-hi);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-right: auto;
}

.brand-home {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 800;
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-home:hover {
  color: var(--text);
}

.logo-mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.logo-accent {
  color: var(--accent-text);
}

.brand-by {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.nav {
  display: flex;
  gap: var(--s5);
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.menu {
  display: none;
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 38px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: var(--line) solid var(--border-hi);
  padding: 0 var(--s3);
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu[open] summary {
  background: var(--strong);
  color: var(--on-strong);
}

.menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + var(--s2));
  width: min(280px, calc(100vw - 32px));
  display: grid;
  background: var(--surface);
  border: var(--line) solid var(--border-hi);
  box-shadow: var(--sh-lg);
}

.menu nav a {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  font-weight: 500;
}

.menu nav a:last-child {
  border-bottom: 0;
  background: var(--strong);
  color: var(--on-strong);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: var(--s5) 0 var(--s8);
  border-bottom: var(--line) solid var(--border-hi);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 14px;
  background: var(--stripe);
}

.hero h1 {
  margin: 0 0 var(--s4);
  font-size: clamp(34px, 10.4vw, 156px);
  line-height: 1.14;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s5) var(--s7);
  flex-wrap: wrap;
  margin-bottom: var(--s4);
}

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 58ch;
}

.actions {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
}

/* ---------- the board ---------- */

.board {
  border: var(--line) solid var(--border-hi);
  box-shadow: var(--sh-lg);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2) var(--s4);
  flex-wrap: wrap;
  padding: var(--s3) var(--s5);
  border-bottom: var(--line) solid var(--border-hi);
  background: var(--strong);
  color: var(--on-strong);
}

.board-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.board-meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--on-strong-2);
}

.board-head .label {
  margin-left: auto;
  background: transparent;
  border-color: var(--on-strong-3);
  color: var(--on-strong);
}

.board-head .example {
  color: var(--on-strong-2);
  border-color: var(--on-strong-3);
}

.funnel {
  list-style: none;
  padding: var(--s5);
  display: grid;
  gap: var(--s3);
}

.stage {
  --w: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--w);
  align-items: center;
}

.st2 {
  --w: 82%;
}

.st3 {
  --w: 64%;
}

.st4 {
  --w: 46%;
  align-items: start;
}

.stage > .slab,
.stage > .alert-card {
  grid-column: 2;
}

.st4 > .note {
  grid-row: 1;
}

.st4 > .slab {
  grid-row: 1;
}

.st4 > .alert-card {
  grid-row: 2;
}

.st4 > .note {
  position: relative;
  z-index: 1;
}

.dropped {
  position: relative;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: stretch;
  margin: 88px var(--s4) 0 0;
}

.dropped svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #0a0a0a1f;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
  mask-image: linear-gradient(90deg, transparent, #000 45%);
}

.note {
  grid-column: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-align: right;
  background: var(--bg);
  margin-right: var(--s4);
  padding: 2px 0 2px var(--s2);
}

.st4 .note {
  margin-top: 34px;
}

.note::after {
  content: "";
  width: 32px;
  height: 0;
  border-top: var(--line) solid var(--border-hi);
  flex: none;
}

.slab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s3) var(--s6);
  min-width: 0;
  padding: var(--s4) var(--s5);
  background: var(--surface);
  border: var(--line) solid var(--border-hi);
  box-shadow: var(--sh-md);
}

.slab-num {
  display: grid;
  gap: var(--s2);
  justify-items: start;
}

.count {
  display: inline-grid;
  font-family: var(--font-mono);
  font-size: var(--count);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  word-spacing: -0.4em;
}

.count > span {
  grid-area: 1 / 1;
  text-align: right;
}

.count-ghost {
  visibility: hidden;
}

.slab-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
}

/* slab 1: log ticker */

.ticker {
  position: relative;
  height: 96px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 24px;
  color: var(--text-3);
  border-left: 1px solid var(--border);
  padding-left: var(--s4);
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}

.ticker ul {
  list-style: none;
  padding: 0;
}

.ticker li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker .hit {
  color: var(--text);
  font-weight: 500;
}

.ticker .hit::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: var(--s2);
  background: var(--accent);
  vertical-align: 1px;
}

.ticker-track {
  animation: tick 30s linear infinite;
}

@keyframes tick {
  to {
    transform: translateY(-50%);
  }
}

/* slab 2: rules */

.slab-body {
  display: grid;
  gap: var(--s2);
  min-width: 0;
}

.split-line {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.split-line .num {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
}

.split-line .plus {
  color: var(--text-3);
  margin: 0 var(--s1);
}

.rule-now {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  min-width: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  border-top: 1px solid var(--border);
  padding-top: var(--s2);
}

.rule-k {
  flex: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.rule-v {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 500;
}

.rule-v.swap-a {
  animation: swap-a 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.rule-v.swap-b {
  animation: swap-b 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes swap-a {
  from {
    clip-path: inset(0 100% 0 0);
  }
}

@keyframes swap-b {
  from {
    clip-path: inset(0 100% 0 0);
  }
}

/* slab 3: alerts */

.alerts {
  list-style: none;
  padding: 0;
  display: grid;
  font-family: var(--font-mono);
  font-size: 12.5px;
  min-width: 0;
}

.alerts li {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s3);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

.alerts li:last-child {
  border-bottom: 0;
}

.alerts .t {
  color: var(--text-3);
}

.alerts .r {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.alerts .hot .r,
.alerts .hot .ip {
  font-weight: 500;
}

.alerts .hot .t {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

/* slab 4: the one that needs a human */

.slab.final {
  border-color: var(--accent);
  box-shadow: 5px 5px 0 0 var(--accent);
  border-width: 2.4px;
}

.slab-status {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  justify-self: start;
  padding: var(--s1) var(--s3);
  border: var(--line) dashed var(--text-3);
}

.slab-status .ok {
  display: none;
}

.board[data-acked] .slab-status {
  border: var(--line) solid var(--strong);
  background: var(--strong);
  color: var(--on-strong);
}

.board[data-acked] .slab-status .ok {
  display: block;
  color: var(--accent);
}

/* alert card */

.alert-card {
  margin-top: -1.6px;
  background: var(--surface);
  border: var(--line) solid var(--border-hi);
  box-shadow: var(--sh-lg);
  min-width: 0;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border);
}

.card-head .sub {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-top: 2px;
}

.card-body {
  padding: var(--s4);
}

.alert-title {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: var(--s3);
}

.props {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px var(--s4);
  font-size: var(--fs-sm);
}

.props dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  padding-top: 2px;
}

.props dd {
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-left: auto;
  padding: 3px var(--s2);
  border: var(--line) solid var(--strong);
  background: var(--surface);
  color: var(--strong);
  font-weight: 500;
  letter-spacing: 0.04em;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 0 var(--accent);
}

.stamp[hidden] {
  display: none;
}

.stamp .icon {
  color: var(--accent-text);
}

.stamp:not([hidden]) {
  animation: stamp 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stamp {
  from {
    transform: rotate(-2deg) scale(1.35);
    opacity: 0;
    filter: blur(2px);
  }
}

.ack {
  min-height: 36px;
  padding: 0 var(--s5);
  font-size: 13px;
}

.ack:disabled {
  cursor: default;
}

.ack:disabled:hover {
  transform: none;
  box-shadow: none;
  background: var(--strong);
}

.ack[aria-pressed="true"] {
  background: var(--surface-3);
  border-color: var(--border);
  color: var(--text-3);
  cursor: default;
}

.ack[aria-pressed="true"]:hover {
  transform: none;
  box-shadow: none;
  background: var(--surface-3);
  color: var(--text-3);
}

.board-caption {
  padding: var(--s3) var(--s5);
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--text-3);
}

/* ---------- sections ---------- */

.section {
  padding: var(--s9) 0 104px;
  border-bottom: var(--line) solid var(--border-hi);
}

.section.alt {
  background: var(--surface-2);
}

.sec-head {
  display: grid;
  gap: var(--s4);
  max-width: 880px;
  margin-bottom: var(--s7);
}

.sec-head p {
  font-size: 18px;
  color: var(--text-2);
  max-width: 60ch;
}

/* sources manifest */

.manifest {
  width: 100%;
  border-collapse: collapse;
  border: var(--line) solid var(--border-hi);
  box-shadow: var(--sh-lg);
  background: var(--surface);
  font-size: 15px;
}

.manifest thead th {
  padding: var(--s2) var(--s4);
  background: var(--strong);
  color: var(--on-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
}

.manifest tbody tr {
  border-top: 1px solid var(--border);
}

.manifest tbody tr:first-child {
  border-top: 0;
}

.manifest tbody tr:hover {
  background: var(--surface-2);
}

.manifest tbody th,
.manifest td {
  padding: 14px var(--s4);
  text-align: left;
  vertical-align: top;
}

.manifest tbody th {
  width: 20%;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.manifest .src {
  width: 30%;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  padding-top: 15px;
}

.manifest td:last-child {
  color: var(--text-2);
  max-width: 62ch;
}

/* trace: one log line through the pipeline */

.trace {
  list-style: none;
  padding: 0;
  border: var(--line) solid var(--border-hi);
  background: var(--surface);
  box-shadow: var(--sh-lg);
}

.hop {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-top: var(--line) solid var(--border-hi);
}

.hop:first-child {
  border-top: 0;
}

.hop-text {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: var(--s2) var(--s4);
  padding: var(--s5);
}

.hop-text > :not(.st-no) {
  grid-column: 2;
}

.st-no {
  grid-row: 1 / span 3;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.hop-text p {
  color: var(--text-2);
  font-size: 15px;
  max-width: 52ch;
}

.specs {
  list-style: none;
  padding: var(--s2) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
}

.specs li {
  border: var(--line) solid var(--border-hi);
  padding: var(--s1) var(--s2);
}

.specs .num {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.hop-line {
  position: relative;
  min-width: 0;
  padding: var(--s5) var(--s5) var(--s5) var(--s7);
  background: var(--surface-2);
}

.hop-line::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  border-left: var(--line) solid var(--border-hi);
}

.hop:last-child .hop-line::before {
  bottom: auto;
  height: 34px;
}

.hop-line::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  width: 12px;
  height: 12px;
  background: var(--strong);
}

.hop-line.last::after {
  background: var(--accent);
}

.hop-k {
  margin-bottom: var(--s2);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.kv {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px var(--s4);
}

.kv dt {
  color: var(--text-3);
}

.code mark {
  background: none;
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.tg {
  display: grid;
  gap: 2px;
  max-width: 440px;
  padding: var(--s3);
  background: var(--surface);
  border: var(--line) solid var(--border-hi);
}

.tg-ack {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s2);
}

.tg-btn {
  padding: 2px var(--s4);
  background: var(--strong);
  color: var(--on-strong);
  font-weight: 500;
  text-transform: uppercase;
}

.trace-note {
  margin-top: var(--s4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* delivery: quiet, typographic */

.delivery {
  list-style: none;
  padding: 0;
  border-top: var(--line) solid var(--border-hi);
}

.delivery li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s4) var(--s7);
  align-items: baseline;
  padding: var(--s6) 0;
  border-bottom: var(--line) solid var(--border-hi);
}

.delivery h3 {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  font-size: clamp(28px, 3.4vw, 44px);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
}

.delivery p {
  font-size: 18px;
  color: var(--text-2);
  max-width: 48ch;
}

.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: var(--line) solid var(--border-hi);
  padding: 2px var(--s2);
  line-height: 1.4;
}

/* team compare */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: var(--line) solid var(--border-hi);
  background: var(--surface);
  box-shadow: var(--sh-lg);
}

.compare .col {
  display: grid;
  align-content: start;
  gap: var(--s4);
  padding: var(--s6);
}

.compare .col.plus {
  border-left: var(--line) solid var(--border-hi);
  background: var(--strong);
  color: var(--on-strong);
}

.compare h3 {
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.ticks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s3);
  color: var(--text-2);
  font-size: 17px;
}

.ticks li {
  position: relative;
  padding-left: 22px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--strong);
}

.plus .ticks {
  color: var(--on-strong-2);
}

.plus .ticks li::before {
  background: var(--on-strong);
}

/* personal data */

.pdn {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s7) var(--s8);
  align-items: start;
}

.pdn .sec-head {
  margin-bottom: 0;
  position: sticky;
  top: 96px;
}

.facts {
  display: grid;
  border-top: var(--line) solid var(--border-hi);
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--s2) var(--s5);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--border);
}

.facts dt {
  font-weight: 800;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.facts dd {
  color: var(--text-2);
}

/* FAQ */

.faq {
  display: grid;
  gap: var(--s3);
  max-width: 920px;
}

.faq details {
  border: var(--line) solid var(--border-hi);
  background: var(--surface);
}

.faq details[open] {
  box-shadow: var(--sh-md);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  font-weight: 700;
  font-size: 18px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent-text);
}

.pm .v {
  transform-origin: 8px 8px;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq details[open] .pm .v {
  transform: scaleY(0);
}

.faq details p {
  padding: 0 var(--s5) var(--s5);
  color: var(--text-2);
  max-width: 70ch;
}

/* ---------- close ---------- */

.close {
  position: relative;
  padding: 136px 0 var(--s9);
  background: var(--strong);
  color: var(--on-strong);
}

.close::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 14px;
  background: var(--stripe);
}

.close-title {
  font-size: clamp(44px, 9vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-bottom: var(--s7);
}

.close-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s7);
  align-items: start;
}

.close .lead {
  color: var(--on-strong-2);
}

.contacts {
  list-style: none;
  padding: 0;
  border-top: var(--line) solid var(--on-strong-3);
}

.contacts a {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s2);
  border-bottom: var(--line) solid var(--on-strong-3);
  text-decoration: none;
  color: var(--on-strong);
  transition: background-color 160ms ease-out;
}

.contacts .k {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--on-strong-3);
}

.contacts .v {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.contacts .icon {
  width: 20px;
  height: 20px;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contacts a:hover .icon {
  transform: translateX(4px);
}

.contacts a:hover {
  color: var(--on-strong);
  background: var(--strong-hover);
}

.contacts a.main {
  background: var(--accent);
  color: var(--strong);
  border-bottom-color: var(--accent);
}

.contacts a.main .k {
  color: var(--strong);
}

.contacts a.main:hover {
  background: var(--accent-hover);
  color: var(--strong);
}

.close :focus-visible {
  outline-color: var(--on-strong);
}

/* ---------- footer ---------- */

.foot {
  padding: var(--s6) 0;
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: var(--s3) var(--s5);
  flex-wrap: wrap;
}

.foot ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: var(--s2) var(--s5);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

/* ---------- 404 ---------- */

.nf {
  min-height: 60vh;
}

.nf .wrap {
  display: grid;
  gap: var(--s5);
  justify-items: start;
}

.nf h1 {
  margin: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .st4 {
    --w: 56%;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
    --s9: 88px;
  }

  .funnel {
    padding: var(--s4);
  }

  .stage,
  .st2,
  .st3,
  .st4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage > .slab,
  .stage > .alert-card,
  .note {
    grid-column: 1;
    grid-row: auto;
  }

  .dropped {
    display: none;
  }

  .hop {
    grid-template-columns: minmax(0, 1fr);
  }

  .hop-line {
    border-top: 1px solid var(--border);
  }

  .st2 > * {
    margin-left: 4%;
  }

  .st3 > * {
    margin-left: 8%;
  }

  .st4 > * {
    margin-left: 12%;
  }

  .note,
  .st4 .note {
    justify-self: start;
    margin-right: 0;
    margin-top: var(--s2);
    margin-bottom: var(--s2);
    padding: 0;
    background: none;
    text-align: left;
  }

  .note::after {
    display: none;
  }

  .note::before {
    content: "";
    width: 16px;
    border-top: var(--line) solid var(--border-hi);
  }

  .pdn,
  .close-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pdn .sec-head {
    position: static;
  }

  .delivery li {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 719.98px) {
  :root {
    --gutter: 16px;
    --s9: 72px;
    --count: 56px;
  }

  .hero {
    padding: var(--s5) 0 var(--s7);
  }

  .hero .wrap {
    padding-left: 30px;
  }


  .top .wrap {
    gap: var(--s3);
  }

  .top-cta,
  .brand-by {
    display: none;
  }

  .hero-row {
    margin-bottom: var(--s5);
  }

  .actions,
  .actions .button {
    width: 100%;
  }

  .board-head {
    padding: var(--s3);
  }

  .funnel {
    padding: var(--s3);
  }

  .st2 > * {
    margin-left: 14px;
  }

  .st3 > * {
    margin-left: 28px;
  }

  .st4 > * {
    margin-left: 42px;
  }

  .slab {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--s3) var(--s4);
  }

  .slab-num {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: var(--s3);
  }

  .slab-label {
    padding-bottom: 4px;
  }

  .ticker {
    height: 72px;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: var(--s2);
    font-size: 11px;
  }

  .alerts li {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 2px var(--s2);
  }

  .alerts .badge {
    display: none;
  }

  .alerts .r {
    white-space: normal;
  }

  .rule-now {
    align-items: start;
  }

  .rule-v {
    white-space: normal;
    min-height: 2lh;
  }

  .alerts .ip {
    grid-column: 2 / 4;
    color: var(--text-3);
  }

  .alerts .r {
    grid-column: 2 / 4;
    grid-row: 1;
  }

  .props {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .props dd {
    margin-bottom: var(--s2);
  }

  .card-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: var(--s4);
  }

  .card-foot .stamp {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    margin: var(--s1) 0 0 var(--s1);
  }

  .board-caption {
    padding: var(--s3);
  }

  .manifest,
  .manifest tbody,
  .manifest tr,
  .manifest th,
  .manifest td {
    display: block;
    width: auto;
  }

  .manifest thead {
    display: none;
  }

  .manifest tbody th,
  .manifest .src {
    width: auto;
  }

  .manifest tbody tr {
    padding: var(--s4);
  }

  .manifest tbody th,
  .manifest td,
  .manifest .src {
    padding: 0;
  }

  .manifest .src {
    margin: var(--s1) 0 var(--s2);
  }

  .hop-text {
    padding: var(--s4);
  }

  .hop-line {
    padding: var(--s4) var(--s4) var(--s4) var(--s7);
  }

  .compare {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare .col {
    padding: var(--s5);
  }

  .compare .col.plus {
    border-left: 0;
    border-top: var(--line) solid var(--border-hi);
  }

  .facts > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq summary {
    font-size: var(--fs-md);
    padding: var(--s4);
  }

  .faq details p {
    padding: 0 var(--s4) var(--s4);
  }

  .close {
    padding-top: 96px;
  }

  .contacts a {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px var(--s3);
  }

  .contacts .k {
    grid-column: 1;
  }

  .contacts .v {
    grid-column: 1;
    grid-row: 2;
  }

  .contacts .icon {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .button {
    white-space: normal;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker-track,
  .rule-v.swap-a,
  .rule-v.swap-b,
  .stamp:not([hidden]) {
    animation: none;
  }

  .button,
  .contacts a,
  .contacts .icon,
  .pm .v {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
