/* =========================================================================
   justmocks — main stylesheet
   Sandwich theming: dark chrome (strip / header / footer) bookends a light
   paper body. Dark "bands" can be embedded in the body via .band.band-dark
   for full-bleed dark sections (e.g. hero on the homepage).
   ========================================================================= */

:root {
  /* dark chrome / accent bands */
  --ink: #04102a;
  --ink-2: #081a3d;
  --ink-3: #0d2452;
  --paper-dark: #e8e4d4;
  --paper-dim: #b9b4a3;
  --rule-dark: rgba(232, 228, 212, 0.18);

  /* light body */
  --paper: #f5efdf;
  --paper-2: #ece5d2;
  --paper-3: #ddd4ba;
  --ink-body: #0a1a3c;
  --ink-mute: #4d5b80;
  --rule-light: #c9bf9f;
  --rule-soft: #d8cfb1;

  /* shared accents */
  --red: #e11d2d;
  --red-bright: #ff334a;
  --red-dim: #a8121f;
  --blue: #4d9bff;
  --blue-dim: #2563eb;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 80% -10%, rgba(225, 29, 45, 0.05), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(29, 78, 216, 0.05), transparent 60%);
}

a { color: var(--blue-dim); text-decoration: none; }
a:hover { color: var(--red); }
/* prose links get underline-on-hover; chrome / cards stay clean */
.prose a:hover,
.crumb a:hover,
.about a:hover,
.copy a:hover,
.faq .a a:hover,
.spec-title .meta-row a:hover,
.info-sheet a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

/* ---------- full-bleed band helper ---------- */
.band {
  position: relative;
  box-shadow: 0 0 0 100vmax var(--bg, transparent);
  clip-path: inset(0 -100vmax);
}
.band-dark { --bg: var(--ink); background: var(--ink); color: var(--paper-dark); }
section.band { padding-top: 70px; padding-bottom: 70px; }

/* ---------- status strip (top of every page) ---------- */
.strip {
  background: #000;
  border-bottom: 1px solid var(--rule-dark);
  height: 34px;
  display: flex;
  align-items: stretch;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.strip .live {
  background: var(--red);
  color: var(--paper-dark);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  font-weight: 700;
  padding: 0 14px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.strip .live .dot {
  width: 6px; height: 6px;
  background: var(--paper-dark);
  display: inline-block;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }
.strip .tags {
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 0;
  flex: 1; min-width: 0;
  overflow: hidden;
}
.strip .tags a {
  color: var(--paper-dim);
  padding: 0 12px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: 120ms;
  white-space: nowrap;
}
.strip .tags a:hover { color: var(--red); }
.strip .tags a .k {
  color: var(--paper-dark);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.strip .tags a:hover .k { color: var(--red); }
.strip .tags a .v { color: var(--blue); font-weight: 500; }
.strip .stat {
  border-left: 1px solid var(--rule-dark);
  padding: 0 14px;
  display: flex; align-items: center; gap: 8px;
  color: var(--paper-dim); white-space: nowrap;
  flex-shrink: 0;
}
.strip .stat .v { color: var(--paper-dark); font-weight: 500; }
.strip .build {
  border-left: 1px solid var(--rule-dark);
  padding: 0 14px;
  display: flex; align-items: center; gap: 8px;
  color: var(--paper-dim);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.strip .build .b { color: var(--blue); }
@media (max-width: 900px) {
  .strip .stat { display: none; }
}
@media (max-width: 600px) {
  .strip .build { display: none; }
}

/* ---------- header ---------- */
header.site {
  background: var(--ink);
  color: var(--paper-dark);
  border-bottom: 1px solid var(--rule-dark);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--mono);
}
.brand {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 18px;
  color: var(--paper-dark);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand .slash { color: var(--red); }
.brand .blink { color: var(--red); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
nav.primary { display: flex; gap: 22px; font-size: 13px; }
nav.primary a { color: var(--paper-dark); }
nav.primary a:hover { color: var(--red); }
nav.primary a.active { color: var(--red); }
header.site .right {
  margin-left: auto;
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  color: var(--paper-dim);
}
header.site .right a { color: var(--paper-dark); white-space: nowrap; }
header.site .right a:hover { color: var(--red); }

/* ---------- main container ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- section heading (default = light bg) ---------- */
.sec-head {
  display: flex; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 12px;
  margin-bottom: 32px;
  font-family: var(--mono);
}
.sec-head .num {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.sec-head h2 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink-body);
}
.sec-head .meta {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.band-dark .sec-head { border-bottom-color: var(--rule-dark); }
.band-dark .sec-head h2 { color: var(--paper-dark); }
.band-dark .sec-head .meta { color: var(--paper-dim); }

/* ====================================================================
   HOMEPAGE
   ==================================================================== */

/* hero */
.hero { padding: 80px 0 60px; position: relative; }
.hero .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.hero .eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--red);
  display: inline-block;
}
.hero h1 {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  max-width: 14ch;
  color: var(--paper-3);
}
.hero h1 .red { color: var(--red); }
.hero p.lead {
  font-size: 19px;
  color: var(--paper-dim);
  max-width: 56ch;
  margin: 0 0 40px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 18px;
  border: 1px solid var(--paper-dark);
  color: var(--paper-dark);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: 120ms;
  cursor: pointer;
}
.btn:hover { background: var(--red); border-color: var(--red); color: var(--paper-dark); }
.btn.solid { background: var(--red); border-color: var(--red); }
.btn.solid:hover { background: var(--paper-dark); color: var(--ink); border-color: var(--paper-dark); }
.btn .arrow { display: inline-block; margin-left: 8px; transition: 120ms; }
.btn:hover .arrow { transform: translateX(4px); }

.hero .terminal-card {
  position: absolute;
  right: 24px;
  top: 90px;
  width: 480px;
  max-width: 42vw;
  background: #000;
  border: 1px solid var(--rule-dark);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-dark);
  box-shadow: 24px 24px 0 var(--red-dim);
}
.terminal-card .tc-head {
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule-dark);
  color: var(--paper-dim);
  font-size: 11px;
  display: flex; gap: 6px; align-items: center;
}
.terminal-card .tc-head .dt { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.terminal-card .tc-head .dt:nth-child(2) { background: #ffaa33; }
.terminal-card .tc-head .dt:nth-child(3) { background: var(--blue); }
.terminal-card .tc-head .title { margin-left: 12px; }
.terminal-card .tc-body { padding: 16px 14px; line-height: 1.7; }
.terminal-card .tc-body .p { color: var(--red); }
.terminal-card .tc-body .c { color: var(--blue); }
.terminal-card .tc-body .g { color: #6cd16c; }
.terminal-card .tc-body .d { color: var(--paper-dim); }

.bigmark {
  position: absolute; right: 24px; bottom: -8px;
  font-family: var(--mono); font-size: 220px;
  color: rgba(77, 155, 255, 0.05);
  font-weight: 800;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
}

/* top 3 cards (light) */
.top3 { padding: 60px 0 70px; }
.top3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--ink-body);
  background: var(--paper-2);
}
.top3-card {
  border-right: 1px solid var(--rule-light);
  padding: 22px;
  transition: 140ms;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 280px;
  text-decoration: none;
  color: var(--ink-body);
}
.top3-card:last-child { border-right: none; }
.top3-card:hover { background: var(--paper); }
.top3-card .rank {
  position: absolute; top: 14px; right: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.top3-card .logo {
  width: 36px; height: 36px;
  background: #fff;
  border: 1px solid var(--rule-light);
  padding: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.top3-card .logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.top3-card h3 {
  font-family: var(--mono);
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--ink-body);
  letter-spacing: -0.01em;
}
.top3-card .tagline { color: var(--ink-mute); font-size: 13.5px; flex: 1; }
.top3-card .footer-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.top3-card .footer-row .ep { color: var(--red); font-weight: 700; }
.top3-card .footer-row .tags { display: flex; gap: 6px; margin-left: auto; }
.top3-card .footer-row .tag {
  font-family: var(--mono); font-size: 10px;
  padding: 2px 8px;
  border: 1px solid var(--rule-light);
  color: var(--ink-body);
}
.top3-card .arrow-c {
  color: var(--red);
  position: absolute;
  bottom: 18px; right: 18px;
  font-family: var(--mono); font-size: 18px;
  transition: 160ms;
}
.top3-card:hover .arrow-c { transform: translateX(6px); }
.top3 .see-all { margin-top: 28px; text-align: right; }
.top3 .see-all a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

/* why (dark band) */
.why { padding: 70px 0; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.why h2.big {
  font-family: var(--mono);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--paper-3);
}
.why h2.big em { font-style: normal; color: var(--red-bright); }
.why .copy { font-size: 16.5px; color: var(--paper-dim); }
.why .copy p { margin: 0 0 18px; }
.why .copy strong { color: var(--paper-dark); }
.why .copy a { color: var(--blue); }
.why .copy code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.9em;
}

/* how it works (light) */
.howto-wrap { padding: 60px 0; }
.howto {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink-body);
  background: var(--paper-2);
}
.howto-step {
  padding: 24px 22px 26px;
  border-right: 1px solid var(--rule-light);
  position: relative;
  transition: 140ms;
}
.howto-step:last-child { border-right: none; }
.howto-step:hover { background: var(--paper); }
.howto-step .step-num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  font-weight: 700;
}
.howto-step h4 {
  font-family: var(--mono);
  font-size: 15px;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--ink-body);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.howto-step p {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.55;
}

/* faq (light) */
.faq { padding: 70px 0; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
}
.faq-grid .left h2 {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--ink-body);
}
.faq-grid .left p { color: var(--ink-mute); }
details.q {
  border-top: 1px solid var(--rule-light);
  padding: 18px 0;
}
details.q:last-child { border-bottom: 1px solid var(--rule-light); }
details.q summary {
  list-style: none;
  cursor: pointer;
  display: flex; gap: 14px; align-items: baseline;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-body);
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary .qnum { color: var(--red); font-size: 12px; min-width: 32px; }
details.q summary .qm {
  margin-left: auto;
  color: var(--red);
  font-family: var(--mono);
  transition: 160ms;
  font-size: 18px;
}
details.q[open] summary .qm { transform: rotate(45deg); }
details.q .a {
  color: var(--ink-mute);
  padding: 14px 0 0 46px;
  max-width: 70ch;
  font-size: 14.5px;
}
details.q .a a { color: var(--blue-dim); }
details.q .a code {
  background: var(--paper-3);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.9em;
}

/* ====================================================================
   SPEC DETAIL PAGE  (light body, dark try-it block)
   ==================================================================== */

.crumb {
  padding: 20px 0 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.crumb a { color: var(--ink-mute); border-bottom: 1px dotted var(--rule-light); padding-bottom: 1px; }
.crumb a:hover { color: var(--red); border-bottom-color: var(--red); }
.crumb .sep { color: var(--red); margin: 0 6px; }
.crumb .here { color: var(--ink-body); font-weight: 500; }

.spec-header {
  padding: 36px 0 32px;
  border-bottom: 2px solid var(--ink-body);
  display: grid;
  grid-template-columns: 96px 1fr 400px;
  grid-template-rows: auto auto;
  column-gap: 32px;
  row-gap: 24px;
  align-items: start;
}
.spec-header .spec-logo { grid-column: 1; grid-row: 1; }
.spec-header .spec-title { grid-column: 2; grid-row: 1; }
.spec-header .spec-cta { grid-column: 3; grid-row: 1; }
.spec-header .spec-tagline {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 18px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin: 0;
  max-width: none;
}
.spec-logo {
  width: 96px; height: 96px;
  background: var(--paper-2);
  border: 1px solid var(--rule-light);
  padding: 14px;
  display: flex; align-items: center; justify-content: center;
}
.spec-logo img { width: 100%; height: 100%; object-fit: contain; }
.spec-title h1 {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--ink-body);
}
.spec-title .meta-row {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  align-items: center;
}
.spec-title .meta-row .pill {
  background: var(--paper-2);
  border: 1px solid var(--rule-light);
  padding: 4px 10px;
  color: var(--ink-body);
}
.spec-title .meta-row .pill.red {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
  font-weight: 700;
}
.spec-title .meta-row a {
  color: var(--ink-body);
  border-bottom: 1px solid var(--red);
  padding-bottom: 1px;
}
.spec-title .tags { display: flex; gap: 6px; margin-top: 14px; }
.spec-title .tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 10px;
  border: 1px solid var(--ink-body);
  color: var(--ink-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.spec-title .tag:hover { background: var(--ink-body); color: var(--paper); }

.try-block {
  background: var(--ink);
  color: var(--paper-dark);
  padding: 20px 22px;
  font-family: var(--mono);
  border-top: 4px solid var(--red);
  box-shadow: 8px 8px 0 var(--ink-body);
}
.try-block .label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.try-block .label::after { content: ""; flex: 1; height: 1px; background: var(--rule-dark); }
.try-block .url {
  font-size: 14.5px;
  word-break: break-all;
  color: var(--paper-dark);
  margin: 12px 0;
  line-height: 1.4;
}
.try-block .url .scheme { color: var(--paper-dim); }
.try-block .url .host { color: var(--blue); }
.try-block .url .path { color: var(--paper-dark); }
.try-block .actions { display: flex; gap: 8px; margin-top: 14px; }
.try-block .btn-mini {
  font-family: var(--mono);
  font-size: 11px;
  background: transparent;
  color: var(--paper-dark);
  border: 1px solid var(--rule-dark);
  padding: 8px 12px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.try-block .btn-mini:hover { background: var(--red); border-color: var(--red); color: var(--paper-dark); }
.try-block .btn-mini.solid { background: var(--red); border-color: var(--red); }

.about p {
  font-size: 16px;
  color: var(--ink-body);
  max-width: none;
  margin: 0 0 16px;
  line-height: 1.65;
}

.info-sheet {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ink-body);
  background: var(--paper-2);
}
.info-sheet .cell {
  padding: 16px 18px;
  border-right: 1px solid var(--rule-light);
  font-family: var(--mono);
}
.info-sheet .cell:last-child { border-right: none; }
.info-sheet .cell .k {
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.info-sheet .cell .v {
  font-size: 15px;
  color: var(--ink-body);
  font-weight: 700;
  word-break: break-word;
}
.info-sheet .cell .v.red { color: var(--red); }
.info-sheet .cell .v small {
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: 11.5px;
  display: block;
  margin-top: 2px;
}
.info-sheet .cell .v small a { color: var(--red); border-bottom: 1px solid var(--red); }

/* endpoints */
.endpoints { padding-bottom: 30px; }
.ep-toolbar {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.ep-toolbar .search {
  flex: 1; max-width: 320px;
  border: 1px solid var(--rule-light);
  background: var(--paper);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-body);
}
.ep-toolbar .filter-pill {
  border: 1px solid var(--rule-light);
  padding: 5px 10px;
  background: var(--paper-2);
  color: var(--ink-body);
  letter-spacing: 0.04em;
  cursor: pointer;
}
.ep-toolbar .filter-pill.active {
  background: var(--ink-body);
  color: var(--paper);
  border-color: var(--ink-body);
}
.ep-toolbar .count { margin-left: auto; }
.ep-toolbar .count .v { color: var(--red); font-weight: 700; }

.ep-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--ink-body);
  background: var(--paper);
  table-layout: fixed;
}
.ep-table col.col-method { width: 88px; }
.ep-table col.col-path { width: 38%; }
.ep-table col.col-text { width: auto; }
.ep-row { border-bottom: 1px solid var(--rule-soft); color: var(--ink-body); }
.ep-row:last-child { border-bottom: none; }
.ep-row td { padding: 14px 18px; vertical-align: top; }
.ep-row .method {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 4px 10px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper-dark);
  min-width: 56px;
}
.ep-row .method.get { background: #1e6dcc; }
.ep-row .method.post { background: var(--red); }
.ep-row .method.put { background: #c2570f; }
.ep-row .method.patch { background: #b78207; }
.ep-row .method.delete { background: #8e1d2a; }
.ep-row .path {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink-body);
  word-break: break-all;
  display: block;
}
.ep-row .path .var { color: var(--blue-dim); }
.ep-row .summary {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-body);
  margin-bottom: 4px;
}
.ep-row .desc {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.55;
}
.ep-row .tag-list { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.ep-row .ep-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border: 1px solid var(--rule-light);
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* related mocks */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card {
  border: 1px solid var(--rule-light);
  background: var(--paper-2);
  padding: 18px;
  text-decoration: none;
  color: var(--ink-body);
  display: flex; flex-direction: column;
  transition: 140ms;
}
.related-card:hover {
  border-color: var(--ink-body);
  background: var(--paper);
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--red);
}
.related-card .head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.related-card .lg {
  width: 28px; height: 28px;
  background: var(--paper);
  padding: 4px;
  border: 1px solid var(--rule-light);
}
.related-card .lg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.related-card h4 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  margin: 0;
  letter-spacing: -0.01em;
}
.related-card .tagline { font-size: 13px; color: var(--ink-mute); flex: 1; line-height: 1.5; }
.related-card .foot {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 10px;
}
.related-card .foot .ep-count { color: var(--red); font-weight: 600; }

/* ====================================================================
   CATALOG INDEX & TAG INDEX (paginated card list)
   ==================================================================== */

.catalog-head { padding: 50px 0 28px; }
.catalog-head h1 {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 14px;
  color: var(--ink-body);
}
.catalog-head h1 .red { color: var(--red); }
.catalog-head p.lead {
  font-size: 17px;
  color: var(--ink-mute);
  max-width: none;
  margin: 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 12px 0 30px;
}
.card {
  border: 1px solid var(--rule-light);
  background: var(--paper-2);
  padding: 20px;
  text-decoration: none;
  color: var(--ink-body);
  display: flex; flex-direction: column;
  min-height: 220px;
  transition: 140ms;
  position: relative;
}
.card:hover {
  background: var(--paper);
  border-color: var(--ink-body);
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--red);
}
.card .head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.card .lg {
  width: 36px; height: 36px;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--rule-light);
}
.card .lg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card h3 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink-body);
}
.card .tagline {
  font-size: 14px;
  color: var(--ink-mute);
  flex: 1;
  line-height: 1.5;
}
.card .foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule-light);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.card .foot .ep { color: var(--red); font-weight: 700; }
.card .foot .tags { display: flex; gap: 6px; margin-left: auto; }
.card .foot .tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  border: 1px solid var(--rule-light);
  color: var(--ink-body);
}

.pagination {
  display: flex; justify-content: center; gap: 8px;
  padding: 30px 0 50px;
  font-family: var(--mono);
  font-size: 13px;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--rule-light);
  color: var(--ink-body);
  background: var(--paper-2);
}
.pagination a:hover { background: var(--ink-body); color: var(--paper); border-color: var(--ink-body); }
.pagination .current {
  background: var(--ink-body);
  color: var(--paper);
  border-color: var(--ink-body);
}
.pagination .disabled { color: var(--rule-light); background: transparent; }

/* ====================================================================
   STATIC PAGES (removal / about)
   ==================================================================== */

.prose {
  padding: 50px 0;
  max-width: 760px;
}
.prose h1 {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 14px;
  color: var(--ink-body);
}
.prose h1 .red { color: var(--red); }
.prose .deck {
  font-size: 18px;
  color: var(--ink-mute);
  margin: 0 0 36px;
}
.prose h2 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 36px 0 12px;
}
.prose p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--ink-body); }
.prose p strong { color: var(--ink-body); }
.prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose ul li { margin-bottom: 6px; }
.prose a { color: var(--blue-dim); }
.prose .email-block {
  font-family: var(--mono);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink);
  color: var(--paper-dark);
  padding: 14px 18px;
  border-top: 3px solid var(--red);
  text-decoration: none;
  margin: 12px 0 18px;
}
.prose .email-block:hover { background: var(--red); }

/* ====================================================================
   FOOTER
   ==================================================================== */

footer.site {
  background: var(--ink);
  color: var(--paper-dim);
  border-top: 1px solid var(--rule-dark);
  margin-top: 80px;
  padding: 60px 24px 30px;
  font-family: var(--mono);
  font-size: 12px;
}
/* dark bands already touch the footer with their own bg; no extra margin needed */
section.band + footer.site,
.band + footer.site { margin-top: 0; }
footer.site .inner { max-width: 1180px; margin: 0 auto; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule-dark);
}
.foot-grid h5 {
  color: var(--paper-dark);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { color: var(--paper-dim); }
.foot-grid a:hover { color: var(--red); }
.foot-grid .desc {
  color: var(--paper-dim);
  max-width: 36ch;
  font-size: 12.5px;
  line-height: 1.7;
}
.foot-grid .desc .brand-mini {
  font-weight: 800;
  color: var(--paper-dark);
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}
.foot-bottom {
  display: flex; align-items: center;
  padding-top: 22px;
  color: var(--paper-dim);
  font-size: 11px;
  letter-spacing: 0.04em;
  flex-wrap: wrap; gap: 10px;
}
.foot-bottom .right { margin-left: auto; }
.foot-bottom a { color: var(--paper-dark); }

/* ====================================================================
   RESPONSIVE
   ==================================================================== */

@media (max-width: 1080px) {
  .hero .terminal-card { display: none; }
}
@media (max-width: 880px) {
  .top3-grid { grid-template-columns: 1fr; }
  .top3-card { border-right: none; border-bottom: 1px solid var(--rule-light); }
  .why-grid, .faq-grid, .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .howto { grid-template-columns: 1fr 1fr; }
  .howto-step:nth-child(2) { border-right: none; }
  .howto-step:nth-child(1), .howto-step:nth-child(2) { border-bottom: 1px solid var(--rule-light); }
  .info-sheet { grid-template-columns: 1fr 1fr; }
  .info-sheet .cell { border-bottom: 1px solid var(--rule-light); }
  .info-sheet .cell:nth-child(2n) { border-right: none; }
  .related-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .spec-header { grid-template-columns: 1fr; row-gap: 20px; }
  .spec-header .spec-logo,
  .spec-header .spec-title,
  .spec-header .spec-cta,
  .spec-header .spec-tagline {
    grid-column: 1;
    grid-row: auto;
  }
  .try-block { box-shadow: 4px 4px 0 var(--ink-body); }
}
@media (max-width: 760px) {
  .ep-table, .ep-table tbody, .ep-table tr, .ep-table td {
    display: block;
    width: 100% !important;
  }
  .ep-table col { display: none; }
  .ep-row { padding: 14px 18px; }
  .ep-row td { padding: 4px 0; }
  .ep-row td:first-child { padding-top: 0; }
}
