/* ArkGate product site — shared design system (4.1.0) */
:root {
  --font-archivo: "Archivo", "Arial Narrow", sans-serif;
  --font-plex-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
  --paper: #f3efe4;
  --paper-deep: #e9e2d3;
  --paper-light: #fffdf6;
  --ink: #192326;
  --muted: #596365;
  --rule: rgba(25, 35, 38, 0.25);
  --rule-soft: rgba(25, 35, 38, 0.095);
  --blue: #1748c7;
  --blue-dark: #103394;
  --red: #ee4c2b;
  --display: var(--font-archivo), "Arial Narrow", sans-serif;
  --mono: var(--font-plex-mono), "SFMono-Regular", monospace;
  --content: min(100% - 2.5rem, 76rem);
  --masthead-h: 72px;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--masthead-h) + 16px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(
      90deg,
      transparent 23px,
      var(--rule-soft) 24px,
      transparent 25px
    ),
    linear-gradient(
      transparent 23px,
      var(--rule-soft) 24px,
      transparent 25px
    ),
    var(--paper);
  background-size: 24px 24px;
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button,
code {
  font: inherit;
}

::selection {
  color: var(--paper-light);
  background: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper-light);
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* —— Shell —— */
.site-shell {
  width: min(100%, 1680px);
  margin: 0 auto;
  overflow: clip;
  border-right: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  background: rgba(243, 239, 228, 0.72);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

/* —— Masthead —— */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--masthead-h);
  padding: 0 clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ink);
  background: rgba(243, 239, 228, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.055em;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  width: 24px;
  height: 24px;
  border: 2px solid var(--blue);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--red);
}

.brand-mark::before {
  width: 2px;
  height: 34px;
  top: -7px;
  left: 9px;
}

.brand-mark::after {
  width: 34px;
  height: 2px;
  top: 9px;
  left: -7px;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 22px);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-primary a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-primary a[aria-current="page"] {
  color: var(--blue);
  font-weight: 600;
}

.nav-primary i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  transition: transform 180ms ease;
}

.nav-primary a:hover i,
.nav-primary a[aria-current="page"] i {
  transform: scale(2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-link,
.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  text-decoration: none;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nav-link::after,
.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-link:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.text-link.light::after {
  background: var(--paper-light);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle-bars {
  width: 18px;
  height: 12px;
  position: relative;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.nav-toggle-bars span:nth-child(1) {
  top: 0;
}
.nav-toggle-bars span:nth-child(2) {
  top: 5px;
}
.nav-toggle-bars span:nth-child(3) {
  top: 10px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* —— Release ribbon —— */
.release-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  padding: 12px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-light);
  text-decoration: none;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.02em;
  transition: background 180ms ease;
}

.release-ribbon:hover {
  background: var(--blue-dark);
}

.release-ribbon strong {
  color: #9bff6a;
  font-weight: 600;
}

.release-ribbon span.arrow {
  color: #ff8065;
}

/* —— Type & sections —— */
.meta,
.section-ref,
.section-kicker,
.step-meta {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta,
.section-ref {
  color: var(--muted);
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--blue);
}

.section-kicker.light {
  color: #d6e1ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.page-hero {
  padding: clamp(48px, 6vw, 88px) clamp(20px, 4vw, 56px) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--ink);
  position: relative;
}

.page-hero .section-ref {
  position: absolute;
  top: 18px;
  right: clamp(16px, 3vw, 40px);
}

.page-hero h1 {
  max-width: 18ch;
  margin-bottom: 0;
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 760;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.page-hero .lede {
  max-width: 58ch;
  margin: 22px 0 0;
  color: #354043;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--red);
}

.section {
  padding: clamp(56px, 7vw, 100px) clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--ink);
}

.section.tight {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.section.paper-light {
  background: var(--paper-light);
}

.section.ink {
  color: var(--paper-light);
  background: var(--ink);
}

.section.blue {
  color: var(--paper-light);
  background: var(--blue);
}

.section-inner {
  width: min(100%, 76rem);
  margin: 0 auto;
}

.section h2 {
  max-width: 20ch;
  margin: 0 0 20px;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 740;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section .lede,
.prose-lede {
  max-width: 62ch;
  margin: 0 0 28px;
  color: #354043;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
}

.section.blue .lede,
.section.ink .lede {
  color: #d6e1ff;
}

/* —— Buttons & commands —— */
.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.button::after {
  content: "↗";
  font-size: 15px;
  font-weight: 400;
}

.button.primary {
  border-color: var(--blue);
  color: var(--paper-light);
  background: var(--blue);
}

.button.paper {
  border-color: var(--paper-light);
  color: var(--ink);
  background: var(--paper-light);
}

.button:hover {
  color: var(--paper-light);
  background: var(--ink);
  transform: translateY(-2px);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.paper:hover {
  color: var(--paper-light);
  background: var(--ink);
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.command-bar {
  min-height: 56px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 90px;
  align-items: stretch;
  border: 1px solid var(--ink);
  background: rgba(255, 253, 246, 0.65);
}

.command-bar.inverted {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(16, 51, 148, 0.35);
  color: var(--paper-light);
}

.command-bar.inverted .copy-button {
  border-left-color: rgba(255, 255, 255, 0.55);
  color: var(--paper-light);
}

.prompt {
  display: grid;
  place-items: center;
  border-right: 1px solid currentColor;
  color: var(--red);
  font: 600 16px/1 var(--mono);
}

.command-bar code {
  min-width: 0;
  align-self: center;
  overflow: hidden;
  padding: 0 16px;
  font: 500 clamp(12px, 1.1vw, 15px) / 1.35 var(--mono);
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--blue);
}

.command-bar.inverted code {
  color: #e8edf0;
}

.copy-button {
  border: 0;
  border-left: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.copy-button:hover,
.copy-button.copied {
  color: var(--paper-light);
  background: var(--red);
}

.copy-button.copy-failed {
  color: var(--paper-light);
  background: var(--ink);
}

.command-stack {
  display: grid;
  gap: 10px;
  max-width: 48rem;
}

.command-stack .command-bar {
  grid-template-columns: minmax(0, 1fr) 90px;
}

.command-stack .command-bar code {
  padding: 14px 16px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.command-note {
  margin: 8px 0 0;
  color: var(--muted);
  font: 500 13px/1.5 var(--mono);
}

.loop-line {
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  font: 500 14px/1.5 var(--mono);
  max-width: 48rem;
}

/* —— Home hero —— */
.home-hero {
  min-height: min(78vh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  border-bottom: 1px solid var(--ink);
}

.hero-copy {
  position: relative;
  padding: clamp(48px, 5vw, 80px) clamp(24px, 4vw, 56px) 36px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ink);
}

.hero-copy .section-ref {
  position: absolute;
  top: 18px;
  right: 18px;
}

.home-hero h1 {
  max-width: 14ch;
  margin-bottom: 0;
  font-size: clamp(48px, 5.4vw, 84px);
  font-weight: 760;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.home-hero h1 .accent {
  color: var(--blue);
}

.home-hero h1 .dot {
  color: var(--red);
}

.home-hero .lede {
  max-width: 38ch;
  margin: 24px 0 0;
  color: #354043;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.48;
}

.home-hero .command-bar {
  margin-top: auto;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.hero-drawing {
  min-width: 0;
  padding: 28px clamp(20px, 3vw, 44px) 32px;
  background: rgba(255, 253, 246, 0.35);
}

.drawing-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font: 500 10px/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.architecture-plot {
  position: relative;
  height: min(520px, 62vh);
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--blue);
  background:
    linear-gradient(
      90deg,
      transparent 31px,
      rgba(23, 72, 199, 0.09) 32px,
      transparent 33px
    ),
    linear-gradient(
      transparent 31px,
      rgba(23, 72, 199, 0.09) 32px,
      transparent 33px
    ),
    rgba(255, 253, 246, 0.42);
  background-size: 32px 32px;
}

.layers {
  position: absolute;
  inset: 56px 36px 80px 48px;
  display: grid;
  gap: 10px;
}

.layer {
  position: relative;
  min-height: 64px;
  padding: 10px 18px 10px 48px;
  display: grid;
  grid-template-columns: minmax(100px, 0.7fr) 1fr;
  align-items: center;
  border: 1px solid var(--ink);
  background: rgba(243, 239, 228, 0.92);
  box-shadow: 6px 6px 0 rgba(23, 72, 199, 0.1);
}

.layer-number {
  position: absolute;
  inset: 0 auto 0 0;
  width: 34px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--ink);
  color: var(--muted);
  font: 500 9px/1 var(--mono);
}

.layer-name {
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 730;
  letter-spacing: -0.035em;
}

.layer-detail {
  color: var(--muted);
  font: 500 10px/1.25 var(--mono);
}

.layer-node {
  position: absolute;
  right: 16px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--red);
  border-radius: 50%;
}

.contract-plane {
  position: absolute;
  z-index: 3;
  top: 44px;
  right: 26%;
  bottom: 60px;
  width: 48px;
  display: grid;
  place-items: center;
  border-right: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
  color: var(--paper-light);
  background: repeating-linear-gradient(
    -45deg,
    var(--blue),
    var(--blue) 8px,
    rgba(23, 72, 199, 0.72) 8px,
    rgba(23, 72, 199, 0.72) 16px
  );
  box-shadow: 0 0 0 8px rgba(23, 72, 199, 0.08);
}

.contract-plane span {
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

.gate-stamp {
  position: absolute;
  z-index: 5;
  right: 10%;
  bottom: 40px;
  padding: 8px 12px;
  border: 2px solid var(--red);
  color: var(--red);
  background: var(--paper);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

/* —— Why bullets —— */
.why-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
  background: var(--paper-light);
}

.why-list li {
  min-height: 200px;
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--ink);
}

.why-list li:last-child {
  border-right: 0;
}

.why-list span {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.why-list h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.why-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* —— Pillars —— */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.pillar {
  min-height: 200px;
  padding: clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  color: inherit;
  transition: background 160ms ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar:nth-child(3n) {
  border-right: 0;
}

.pillar:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.pillar:hover {
  background: var(--paper-light);
}

.pillar span {
  color: var(--red);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.pillar h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.pillar .more {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

/* —— Contract lab (compact) —— */
.contract-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.contract-lab {
  border: 1px solid var(--ink);
  background: #0d1719;
  box-shadow: 10px 10px 0 rgba(23, 72, 199, 0.18);
  overflow: hidden;
}

.contract-lab-header {
  min-height: 48px;
  padding-left: 16px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--paper-light);
  background: rgba(16, 51, 148, 0.55);
}

.contract-file {
  align-self: center;
  font: 600 13px/1 var(--mono);
}

.contract-copy {
  min-width: 88px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--paper-light);
  background: transparent;
  cursor: pointer;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-copy:hover,
.contract-copy.copied {
  color: var(--ink);
  background: var(--paper-light);
}

.contract-code-wrap {
  overflow-x: auto;
  color: #e8edf0;
  scrollbar-color: #5277dc #0d1719;
}

.contract-code {
  margin: 0;
  padding: 18px 20px;
  font: 500 12px/1.5 var(--mono);
  white-space: pre;
  min-width: max-content;
}

.json-key {
  color: #94b4ff;
}
.json-string {
  color: #f3d38b;
}
.json-boolean {
  color: #ff8065;
}

.deny-card {
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 8px 8px 0 var(--paper-deep);
}

.deny-card .stamp {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  margin-bottom: 12px;
  border: 1px solid var(--red);
  color: var(--red);
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deny-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.deny-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

/* —— Doctor lights —— */
.lights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
  background: var(--paper);
}

.light {
  min-height: 220px;
  padding: clamp(20px, 2.5vw, 32px);
  border-right: 1px solid var(--ink);
}

.light:last-child {
  border-right: 0;
}

.light span {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.light.suggest span {
  border-color: var(--muted);
  color: var(--muted);
}
.light.adapt span {
  border-color: var(--blue);
  color: var(--blue);
}
.light.enforce span {
  border-color: #2a7a3a;
  color: #2a7a3a;
  background: rgba(42, 122, 58, 0.08);
}
.light.weak span {
  border-color: var(--red);
  color: var(--red);
  background: rgba(238, 76, 43, 0.06);
}

.light h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.light p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.honesty-note {
  margin-top: 24px;
  max-width: 68ch;
  padding: 18px 20px;
  border-left: 3px solid var(--blue);
  background: rgba(23, 72, 199, 0.06);
  font-size: 15px;
  line-height: 1.55;
  color: #354043;
}

/* —— Tables —— */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ink);
  background: var(--paper-light);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

table.data th,
table.data td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

table.data th {
  font: 600 10px/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-deep);
  border-bottom: 1px solid var(--ink);
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data td strong.hard {
  color: var(--red);
}

table.data td strong.advisory {
  color: var(--blue);
}

table.data.compact td,
table.data.compact th {
  padding: 12px 14px;
}

.compare-check {
  color: #2a7a3a;
  font-weight: 700;
}
.compare-x {
  color: var(--muted);
}

/* —— Field cards —— */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}

.field-card {
  padding: clamp(22px, 3vw, 32px);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-light);
}

.field-card:nth-child(2n) {
  border-right: 0;
}

.field-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.field-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.field-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* —— FAQ —— */
.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--ink);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 650;
  letter-spacing: -0.03em;
}

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

.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  font: 500 22px/1 var(--mono);
  color: var(--red);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0 0 22px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* —— Final CTA —— */
.final-cta {
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  color: var(--paper-light);
  background: var(--blue);
  border-bottom: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(40px, 4.5vw, 68px);
  font-weight: 740;
  line-height: 0.96;
  letter-spacing: -0.055em;
  max-width: 14ch;
}

.final-cta p {
  margin: 16px 0 0;
  color: #d6e1ff;
  font-size: 16px;
  line-height: 1.5;
  max-width: 40ch;
}

/* —— Docs / content pages —— */
.prose {
  max-width: 68ch;
}

.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.6;
  color: #354043;
}

.prose p {
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

.prose h2 {
  margin: 2em 0 0.6em;
  font-size: clamp(26px, 2.5vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  max-width: none;
}

.prose h3 {
  margin: 1.5em 0 0.5em;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(23, 72, 199, 0.08);
  padding: 0.1em 0.35em;
}

.prose a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hub-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
}

.hub-card {
  min-height: 260px;
  padding: clamp(28px, 3vw, 40px);
  border-right: 1px solid var(--ink);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 160ms ease;
  background: var(--paper-light);
}

.hub-card:last-child {
  border-right: 0;
}

.hub-card:hover {
  background: var(--paper);
}

.hub-card span {
  color: var(--red);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hub-card h2 {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 34px);
  letter-spacing: -0.04em;
  max-width: none;
}

.hub-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  flex: 1;
}

.hub-card .more {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

/* —— Changelog —— */
.release-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.release-list li {
  border-bottom: 1px solid var(--ink);
}

.release-list a {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: baseline;
  padding: 22px 4px;
  text-decoration: none;
}

.release-list a:hover h3 {
  color: var(--blue);
}

.release-list .ver {
  font: 600 14px/1 var(--mono);
  color: var(--blue);
}

.release-list h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.release-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  grid-column: 2;
}

.release-list .status {
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2a7a3a;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid currentColor;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge.published {
  color: #2a7a3a;
  background: rgba(42, 122, 58, 0.08);
}

/* —— Steps —— */
.steps {
  display: grid;
  gap: 0;
  border: 1px solid var(--ink);
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0 20px;
  padding: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-light);
  counter-increment: step;
}

.step:last-child {
  border-bottom: 0;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font: 600 12px/1 var(--mono);
  color: var(--red);
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* —— Anchor targets —— */
.anchor-block {
  scroll-margin-top: calc(var(--masthead-h) + 20px);
}

/* —— Footer —— */
.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 32px;
  padding: 28px clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--ink);
  background: rgba(243, 239, 228, 0.95);
}

.footer-brand .brand-mark {
  width: 20px;
  height: 20px;
}

.footer-brand .brand-mark::before {
  height: 28px;
  top: -6px;
  left: 7px;
}

.footer-brand .brand-mark::after {
  width: 28px;
  top: 7px;
  left: -6px;
}

.footer-credit {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-credit a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.footer-credit a:hover {
  color: var(--blue);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-links a#ark-version-link {
  color: var(--blue);
  font-weight: 600;
}

.footer-links a#ark-version-link:hover {
  color: var(--red);
}

/* —— Utility —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .nav-primary {
    gap: 12px;
  }

  .nav-actions .meta {
    display: none;
  }

  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar:nth-child(3n) {
    border-right: 1px solid var(--ink);
  }

  .pillar:nth-child(2n) {
    border-right: 0;
  }

  .pillar:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--ink);
  }

  .pillar:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .lights {
    grid-template-columns: repeat(2, 1fr);
  }

  .light:nth-child(2) {
    border-right: 0;
  }

  .light:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ink);
  }

  .why-list {
    grid-template-columns: 1fr;
  }

  .why-list li {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
    min-height: 0;
  }

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

  .hub-cards {
    grid-template-columns: 1fr;
  }

  .hub-card {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .hub-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-primary {
    display: none;
    position: absolute;
    top: var(--masthead-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--ink);
    background: rgba(243, 239, 228, 0.98);
    box-shadow: 0 12px 24px rgba(25, 35, 38, 0.08);
  }

  .nav-primary.is-open {
    display: flex;
  }

  .nav-primary a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--rule-soft);
  }

  .nav-actions .nav-link {
    display: none;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .hero-drawing {
    display: none;
  }

  .contract-split {
    grid-template-columns: 1fr;
  }

  .final-cta {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-card {
    border-right: 0;
  }

  .field-card:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--ink);
  }

  .field-card:last-child {
    border-bottom: 0;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .release-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .release-list p {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .pillars {
    grid-template-columns: 1fr;
  }

  .pillar {
    border-right: 0 !important;
  }

  .pillar:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--ink);
  }

  .lights {
    grid-template-columns: 1fr;
  }

  .light {
    border-right: 0 !important;
    border-bottom: 1px solid var(--ink);
  }

  .light:last-child {
    border-bottom: 0;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-hero h1,
  .home-hero h1 {
    font-size: clamp(40px, 11vw, 56px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
