/* Epoptes landing page. Brand tokens from docs/assets (paper, ink, amber); dark mode follows the system. */
:root {
  --paper: #f4f0e8;
  --paper-2: #ebe5d8;
  --card: #fffdf8;
  --ink: #101114;
  --ink-2: #3a3d44;
  --muted: #62656c;
  --line: #ded6c6;
  --amber: #e8a23a;
  --amber-ink: #a8650a;
  --amber-soft: #f8e6c6;
  --ok: #238a5a;
  --wait: #2f73b5;
  --bad: #c6412f;
  --done: #7453c0;
  --night: #0f1115;
  --night-2: #171a20;
  --night-3: #1f232b;
  --night-line: #2b303a;
  --night-text: #e8e6e1;
  --night-muted: #a0a5ae;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(16 17 20 / 0.06), 0 12px 32px -12px rgb(16 17 20 / 0.18);
  color-scheme: light;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1014;
    --paper-2: #151820;
    --card: #161a20;
    --ink: #ecebe6;
    --ink-2: #c3c6cc;
    --muted: #9ba0a9;
    --line: #272c35;
    --amber-ink: #eba33f;
    --amber-soft: #3a2a12;
    --ok: #4cc28a;
    --wait: #6aa8e6;
    --bad: #ef7a66;
    --done: #a88bf0;
    --night: #08090c;
    --night-2: #11141a;
    --night-3: #191d24;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 85% -8%, rgb(232 162 58 / 0.16), transparent 60%),
    radial-gradient(700px 420px at -10% 40%, rgb(232 162 58 / 0.07), transparent 60%), var(--paper);
  overflow-x: hidden;
  line-height: 1.55;
}
[hidden][hidden] {
  display: none;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--amber);
  color: #101114;
}
code {
  font-family: var(--mono);
  font-size: 0.9em;
}
p code,
li code,
td code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--amber-ink);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--amber);
  color: #101114;
  font-weight: 700;
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}
.wrap {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}
.hl {
  color: var(--amber-ink);
}
.center {
  text-align: center;
}

/* The mark: arcs turn slowly, like the dashboard's tab icon while a cycle runs. */
.mark {
  color: var(--ink);
  flex: none;
}
.orbit-k,
.orbit-a {
  transform-origin: 205px 205px;
  transform-box: view-box;
}
.orbit-k {
  animation: spin 24s linear infinite;
}
.orbit-a {
  animation: spin 16s linear infinite reverse;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.95rem;
}
.top nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 0;
}
.top nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.nav-gh {
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--ink);
  color: var(--paper);
}
.btn.ghost {
  border-color: var(--line);
  background: var(--card);
}
.btn.chip {
  padding: 8px 16px;
  font-size: 0.92rem;
  border-color: var(--night-line);
  background: var(--night-3);
  color: var(--night-text);
}
.btn.chip[aria-pressed="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: #101114;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  padding-block: 40px 88px;
}
.tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-2);
}
.sep {
  color: var(--muted);
}
.blip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgb(35 138 90 / 0.5);
  animation: blip 2s infinite;
}
@keyframes blip {
  70% {
    box-shadow: 0 0 0 8px rgb(35 138 90 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(35 138 90 / 0);
  }
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.05;
}
h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  font-weight: 850;
}
.lede {
  margin: 24px 0 30px;
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 34em;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.greek {
  margin: 28px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Hero dashboard mock */
.dash {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.82rem;
}
.dash-bar,
.pane-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.lights {
  display: inline-flex;
  gap: 6px;
}
.lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 14px 14px 0;
  padding: 10px 14px;
  border: 1px solid #b9e0ca;
  border-radius: 12px;
  background: #eaf6ef;
  color: #17603e;
}
@media (prefers-color-scheme: dark) {
  .band {
    border-color: #1e4733;
    background: #10211a;
    color: #7fd6aa;
  }
}
.band-meta {
  color: var(--ink-2);
}
.band-clock {
  margin-left: auto;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  animation: blip 1.6s infinite;
}
.clockbar {
  position: relative;
  height: 10px;
  margin: 14px 14px 4px;
  border-radius: 99px;
  background: var(--paper-2);
}
.clock-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 33%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--amber), #f0bd6a);
  transition: width 0.6s;
}
.tick {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 16px;
  background: var(--muted);
  opacity: 0.6;
}
.tick.done {
  background: var(--ok);
  opacity: 1;
}
.pace {
  position: absolute;
  top: -4px;
  height: 18px;
  border-left: 2px dashed var(--done);
}
.mini-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 14px;
}
.col {
  min-height: 120px;
  padding: 6px;
  border-radius: 10px;
  background: var(--paper-2);
}
.col h4 {
  margin: 0 0 6px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.col ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.col li {
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  font-size: 0.7rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.col li[data-who]::after {
  content: attr(data-who);
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--amber-ink);
}
.col li[data-who="you"]::after {
  color: var(--wait);
}
.col li.moved {
  animation: pop 0.5s ease-out;
}
@keyframes pop {
  from {
    transform: translateY(-6px) scale(0.96);
    box-shadow: 0 0 0 3px var(--amber);
  }
}
.ticker {
  height: 132px;
  margin: 0 14px;
  padding: 8px 10px;
  overflow: hidden;
  list-style: none;
  border-radius: 10px;
  background: var(--night);
  color: var(--night-text);
  font-family: var(--mono);
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ticker li {
  display: flex;
  gap: 10px;
  padding: 2px 0;
  white-space: nowrap;
}
.ticker li.new {
  animation: slide 0.35s ease-out;
}
@keyframes slide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.ticker time {
  color: var(--night-muted);
}
.ticker b {
  font-weight: 600;
  min-width: 9.5ch;
}
.ticker span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.r-orch {
  color: #f0bd6a;
}
.r-writer {
  color: #8fd3ff;
}
.r-check {
  color: #9be3b5;
}
.r-edit {
  color: #c7a6ff;
}
.r-you {
  color: #ff9b85;
}
.r-ms {
  color: var(--amber);
}
.dash figcaption {
  padding: 10px 14px 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Section heads */
section {
  padding-block: 72px;
}
.head {
  max-width: 760px;
  margin-bottom: 40px;
}
.kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-ink);
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 820;
}
.head p:not(.kicker) {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink-2);
}

/* What it is */
.parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.parts li {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.part-n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}
.parts h3 {
  margin: 16px 0 10px;
  font-size: 1.35rem;
}
.parts h3 small {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.parts p {
  margin: 0;
  color: var(--ink-2);
}
.flow {
  margin: 40px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.flow svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--muted);
}
.f-node rect {
  fill: var(--paper);
  stroke: var(--line);
  stroke-width: 2;
}
.f-node.core rect {
  fill: var(--amber-soft);
  stroke: var(--amber);
}
.f-node.agent rect {
  fill: var(--ink);
  stroke: var(--ink);
}
.f-node text {
  text-anchor: middle;
  font-size: 20px;
  font-weight: 750;
  fill: var(--ink);
}
.f-node.core text:first-of-type {
  font-family: var(--mono);
  font-size: 24px;
}
.f-node text.sub {
  font-size: 14px;
  font-weight: 500;
  fill: var(--muted);
  font-family: var(--mono);
}
.f-node.agent text {
  fill: var(--paper);
}
.f-node.agent text.sub {
  fill: var(--amber);
}
.f-edges path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.f-edges path.flowing {
  stroke: var(--amber);
  stroke-dasharray: 6 6;
  animation: flow 1.2s linear infinite;
}
.f-edges path.flowing.back {
  animation-direction: reverse;
}
@keyframes flow {
  to {
    stroke-dashoffset: -24;
  }
}
.edge-label {
  font-family: var(--mono);
  font-size: 14px;
  fill: var(--muted);
  text-anchor: middle;
}
.flow figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.why-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.pain {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--bad);
  color: var(--muted);
  font-style: italic;
}
.why-grid h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 1.3rem;
}
.num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--amber);
  color: #101114;
  font-size: 0.95rem;
  letter-spacing: 0;
}
.why-grid p:last-child {
  margin: 0;
  color: var(--ink-2);
}

/* The night shift */
.night {
  margin-block: 40px;
  padding-block: 96px;
  background:
    radial-gradient(800px 400px at 50% 0%, rgb(232 162 58 / 0.14), transparent 70%),
    radial-gradient(2px 2px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 12%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 42% 8%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 30%, #fff5 50%, transparent 51%), var(--night);
  color: var(--night-text);
}
.night .head p:not(.kicker) {
  color: var(--night-muted);
}
.night .hl,
.night .kicker {
  color: var(--amber);
}
.scrub {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.scrub-range {
  flex: 1;
}
.scrub input {
  width: 100%;
  accent-color: var(--amber);
}
.scrub-time {
  min-width: 5ch;
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
}
.play {
  flex: none;
}
.lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.lane {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  background: var(--night-2);
}
.lane.epo {
  border-color: rgb(232 162 58 / 0.45);
}
.lane header h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}
.lane header p {
  margin: 0;
  color: var(--night-muted);
  font-size: 0.92rem;
}
.lane-state {
  align-self: flex-start;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--night-3);
  font-family: var(--mono);
  font-size: 0.82rem;
}
.lane-state[data-tone="ok"] {
  background: #10211a;
  color: #7fd6aa;
}
.lane-state[data-tone="wait"] {
  background: #13202f;
  color: #8cc0f0;
}
.lane-state[data-tone="bad"] {
  background: #2a1310;
  color: #ff9b85;
}
.lane-state[data-tone="done"] {
  background: #221b3a;
  color: #c7a6ff;
}
.meter,
.ms {
  display: grid;
  grid-template-columns: 7.5em 1fr auto;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--night-muted);
}
.ms {
  grid-template-columns: 7.5em 1fr;
}
.meter-bar {
  height: 10px;
  border-radius: 99px;
  background: var(--night-3);
  overflow: hidden;
}
.meter-bar i {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: 99px;
  background: var(--ok);
  transition: width 0.2s, background 0.2s;
}
.meter-bar i.warm {
  background: var(--amber);
}
.meter-bar i.hot {
  background: #ef7a66;
}
.meter b {
  min-width: 4ch;
  text-align: right;
  color: var(--night-text);
}
.strip {
  position: relative;
  height: 26px;
  border-radius: 8px;
  background: var(--night-3);
  overflow: hidden;
}
.strip .seg {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 5px;
  background: rgb(232 162 58 / 0.55);
}
.strip .seg.wait {
  background: repeating-linear-gradient(135deg, #2f73b5 0 4px, transparent 4px 8px);
}
.strip .seg.idle {
  background: repeating-linear-gradient(135deg, #ef7a66aa 0 4px, transparent 4px 8px);
}
.strip .mark-c {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ef7a66;
}
.strip .now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
}
.ms ol {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ms li {
  flex: 1;
  height: 10px;
  border-radius: 3px;
  background: var(--night-3);
}
.ms li.on {
  background: var(--ok);
}
.ms li.meh {
  background: repeating-linear-gradient(135deg, var(--amber) 0 3px, transparent 3px 6px);
}
.lane-log {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  height: 230px;
  margin: 0;
  padding: 12px;
  overflow: hidden;
  list-style: none;
  border-radius: 12px;
  background: var(--night);
  font-size: 0.86rem;
}
.lane-log li {
  display: grid;
  grid-template-columns: 3.4em 1fr;
  gap: 10px;
}
.lane-log time {
  font-family: var(--mono);
  color: var(--night-muted);
}
.lane-log li.bad span {
  color: #ff9b85;
}
.lane-log li.good span {
  color: #9be3b5;
}
.lane-log li.wait span {
  color: #8cc0f0;
}
.lane-log li.new {
  animation: slide 0.35s ease-out;
}
.night .fine {
  color: var(--night-muted);
}
.fine {
  margin: 16px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.table-wrap {
  margin-top: 48px;
  overflow-x: auto;
  border-radius: var(--radius);
}
table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
caption {
  padding-bottom: 14px;
  text-align: left;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
th,
td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
}
.vs thead th {
  font-size: 0.85rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--night-muted);
}
.vs thead th:last-child {
  color: var(--amber);
}
.vs tbody tr {
  border-top: 1px solid var(--night-line);
}
.vs tbody th {
  width: 20%;
  color: var(--night-text);
}
.vs tbody td:nth-child(2) {
  color: var(--night-muted);
}
.vs tbody td:nth-child(2)::before {
  content: "✕ ";
  color: #ef7a66;
}
.vs tbody td:last-child::before {
  content: "✓ ";
  color: var(--amber);
  font-weight: 700;
}

/* Crash course */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.steps button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-weight: 600;
}
.steps button b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper-2);
  font-size: 0.85rem;
}
.steps button[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.steps button[aria-selected="true"] b {
  background: var(--amber);
  color: #101114;
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.step + .step {
  margin-top: 20px;
}
.js .step + .step {
  margin-top: 0;
}
.step h3 {
  margin: 0 0 14px;
  font-size: 1.5rem;
}
.step-text p {
  margin: 0 0 14px;
  color: var(--ink-2);
}
.ticks {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}
.ticks li {
  padding: 3px 0 3px 26px;
  position: relative;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.75em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--amber);
}
.term {
  border-radius: 14px;
  background: var(--night);
  color: var(--night-text);
  overflow: hidden;
  min-width: 0;
}
.term .pane-bar {
  border-color: var(--night-line);
  color: var(--night-muted);
}
.term .lights i {
  background: var(--night-line);
}
.term .lights i:first-child {
  background: #ef7a66;
}
.term .lights i:nth-child(2) {
  background: var(--amber);
}
.term .lights i:nth-child(3) {
  background: #4cc28a;
}
.term pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.6;
}
.term .p {
  color: var(--amber);
  user-select: none;
}
.term .c {
  color: #7d838e;
}
.term .k {
  color: #8fd3ff;
}
.term .s {
  color: #9be3b5;
}
.term .n {
  color: #f0bd6a;
}
.term .ok {
  color: #4cc28a;
}
.term .warn {
  color: #f0bd6a;
}
.term .you {
  color: #fff;
  font-weight: 600;
}
.term .ai {
  color: var(--amber);
}
.term .opt {
  color: #8fd3ff;
}
.term .fine {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--night-muted);
}
.term .fine code {
  background: var(--night-3);
  color: var(--amber);
}
.link-btn {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.75rem;
}

/* Features */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feat-grid li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.2s, border-color 0.2s;
}
.feat-grid li:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
}
.feat-grid svg {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 11px;
  background: var(--amber-soft);
  fill: none;
  stroke: var(--amber-ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feat-grid h3 {
  margin: 14px 0 8px;
  font-size: 1.15rem;
}
.feat-grid p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-2);
}

/* CLIs */
.cli-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  border-collapse: separate;
  border-spacing: 0;
}
.clis .table-wrap {
  margin-top: 0;
}
.cli-table thead th {
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
}
.cli-table tbody th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.cli-table tbody tr + tr > * {
  border-top: 1px solid var(--line);
}

/* Is / isn't */
.fit {
  background: var(--paper-2);
}
.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.fit ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.12rem;
}
.fit li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.fit-grid > div:first-child li::before {
  content: "✓  ";
  color: var(--ok);
  font-weight: 700;
}
.fit-grid > div:last-child li::before {
  content: "✕  ";
  color: var(--bad);
  font-weight: 700;
}

/* Start */
.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.links a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.links a:hover {
  border-color: var(--amber);
}

/* Footer */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.foot p {
  margin: 0;
}
.foot .brand {
  color: var(--ink);
  font-size: 1.1rem;
}

/* Narrow screens */
@media (max-width: 960px) {
  .hero,
  .step,
  .start-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .parts,
  .feat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lanes {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  section {
    padding-block: 56px;
  }
  .parts,
  .feat-grid,
  .why-grid,
  .fit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .top nav a:not(.nav-gh, [href="#course"]) {
    display: none;
  }
  .mini-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mini-board .col:nth-child(1),
  .mini-board .col:nth-child(2) {
    display: none;
  }
  .step {
    padding: 20px;
  }
  .scrub {
    flex-wrap: wrap;
  }
  .scrub-range {
    flex-basis: 100%;
    order: 3;
  }
  .flow {
    padding: 12px;
    overflow-x: auto;
  }
  .flow svg {
    min-width: 760px;
  }
  /* The comparison stacks per row, so the Epoptes column never hides off-screen. */
  .vs {
    min-width: 0;
  }
  .vs thead {
    display: none;
  }
  .vs tr,
  .vs th,
  .vs td {
    display: block;
    width: auto;
  }
  .vs tbody tr {
    padding-block: 10px;
  }
  .vs th,
  .vs td {
    padding: 4px 0;
  }
  .vs tbody th {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
