/* Eggent's game-manual language (pixel wordmark, mono, square corners, stepped zero-blur shadows),
   printed in blue-black ink on warm paper; cobalt is the pen. */
:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --panel: #fbf9f3;
  --panel-2: #ede7da;
  --line: #1b2550;
  --line-hi: #3a4570;
  --ink: #141c3d;
  --muted: #464f6e;
  --dim: #5c6482;
  --cobalt: #2847c9;
  --cobalt-shadow: #14205c;
  --cobalt-deep: #0a1030;
  --cobalt-text: #2847c9;
  --ice: #2847c9;
  --ice-shadow: #141c3d;
  --teal: #0f7480;
  --violet: #6a4fd1;
  --green: #2f8a3e;
  --green-ink: #23702f;
  --shadow: #141c3d;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--cobalt); color: #fff; }
a { color: inherit; text-underline-offset: 3px; }
.pixel { font-family: 'Press Start 2P', monospace; letter-spacing: 0.06em; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* Header: the pixel wordmark with its stepped cobalt shadow. */
header.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 2px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.wordmark {
  font-family: 'Press Start 2P', monospace;
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
  text-shadow: 2px 2px 0 var(--cobalt), 3px 3px 0 color-mix(in srgb, var(--cobalt) 35%, var(--bg));
}
.tagline {
  /* Lowercase letters centred on the wordmark together with its 2px stepped shadow. */
  position: relative;
  top: 2px;
  line-height: 1;
  color: var(--dim);
  font-size: 12px;
  white-space: nowrap;
}
.top .links { display: flex; align-items: center; gap: 4px 14px; margin-left: auto; }
.top .links a.quiet { text-decoration: none; color: var(--muted); font-size: 14px; padding: 8px 4px; white-space: nowrap; }
.top .links a.quiet:hover, .top .links a.quiet[aria-current='page'] { color: var(--ink); }
.top .links a.quiet[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--cobalt); }
@media (max-width: 1060px) { .tagline { display: none; } }
/* Narrow screens: the quiet links drop to a second row under the wordmark; the agent link lives in the footer. */
@media (max-width: 860px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding: 10px 0 4px; row-gap: 2px; }
  .top .links { order: 3; width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .top .links a.quiet { font-size: 13px; padding: 6px 0; }
}
@media (max-width: 520px) { .top .links a.agent-link { display: none; } .wordmark { font-size: 12px; } }

/* Buttons: square, a hard shadow that the button steps onto when pressed. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--shadow);
  border-radius: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 80ms steps(2), box-shadow 80ms steps(2);
}
.btn:active { transform: translate(3px, 3px); box-shadow: none !important; }
.btn-dark { background: var(--ice); color: #fff; box-shadow: 4px 4px 0 var(--ice-shadow); }
.btn-dark:hover { background: #3557dc; }
.btn-light { background: var(--panel); color: var(--ink); border-color: var(--line); box-shadow: 4px 4px 0 var(--shadow); }
.btn-light:hover { background: var(--panel-2); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 13px; box-shadow: 3px 3px 0 var(--ice-shadow); }
.btn-light.btn-small { box-shadow: 3px 3px 0 var(--shadow); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

/* Hero: a dotted grid behind the heading, like squared notebook paper. */
.hero {
  position: relative;
  padding: 56px 0 56px;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background:
    radial-gradient(circle, rgb(20 28 61 / 0.16) 1px, transparent 1.5px) 0 0 / 24px 24px;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
/* What Monoclan is, said once, above the window: a printed label with a terminal caret. */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 64px;
  padding: 9px 14px 9px 12px;
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--cobalt);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kdot { width: 8px; height: 8px; background: var(--cobalt); flex: none; }
.ktext {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  /* Typed once on load, in steps, like a line in a terminal. */
  animation: k-type 1.1s steps(23, end) 0.3s both;
}
.kcaret {
  width: 9px;
  height: 15px;
  margin-left: -4px;
  background: var(--cobalt);
  flex: none;
  animation: k-blink 1.05s steps(1, end) infinite;
}
@keyframes k-type { from { max-width: 0; } to { max-width: 24em; } }
@keyframes k-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@media (max-width: 640px) {
  .kicker { font-size: 11px; letter-spacing: 0.08em; margin-bottom: 72px; gap: 8px; padding: 8px 11px 8px 10px; }
  .kcaret { height: 13px; width: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ktext, .kcaret { animation: none; }
}
h1 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(34px, 6.4vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--cobalt-text); }
.lede {
  margin: 26px auto 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
  text-wrap: pretty;
}
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }
.note { margin-top: 18px; color: var(--dim); font-size: 13px; }

/* Collab: a pixel contract with the cursors of the agent and the people working on it, Figma-style. */
.collab {
  position: relative;
  width: min(620px, 100%);
  height: 252px;
  margin: -40px auto 44px;
  text-align: left;
}
.paper {
  position: absolute;
  inset: 14px 56px 18px 56px;
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 var(--shadow);
  overflow: hidden;
}
.pbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 10px;
  border-bottom: 2px solid var(--line);
  background: var(--panel-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pname { display: inline-flex; align-items: center; gap: 6px; }
.pname::before { content: ''; width: 8px; height: 8px; background: var(--cobalt); }
.faces { display: inline-flex; gap: 3px; }
.faces i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #fff;
  font: 400 8px/1 'Press Start 2P', monospace;
  font-style: normal;
  border: 2px solid var(--line);
}
.faces .fa { background: var(--cobalt); }
.faces .fl { background: var(--teal); }
.faces .fk { background: var(--violet); }
.ptext { padding: 12px 16px 0; }
.pl { margin: 0 0 9px; height: 16px; font-size: 12.5px; line-height: 16px; color: var(--ink); white-space: nowrap; }
.pl > .w40, .pl > .w60, .pl > .w75, .pl > .w90 { display: block; height: 6px; margin-top: 5px; background: color-mix(in srgb, var(--line) 22%, transparent); }
.w40 { width: 40%; } .w60 { width: 60%; } .w75 { width: 75%; } .w90 { width: 90%; }
.fill { display: inline-block; min-width: 13ch; border-bottom: 2px dashed color-mix(in srgb, var(--cobalt) 55%, transparent); }
.fill b { display: inline-block; clip-path: inset(0 100% 0 0); }
.was { color: var(--ink); text-decoration: line-through 2px transparent; }
.now { display: inline-block; color: var(--teal); font-weight: 700; border-bottom: 2px solid var(--teal); clip-path: inset(0 100% 0 0); }
.note1, .note2, .okbadge {
  position: absolute;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--shadow);
  opacity: 0;
}
.note1 { right: 12px; top: 46px; background: #e3f1f2; color: var(--teal); }
.note2 { right: 12px; top: 112px; background: #ece7fb; color: var(--violet); }
.okbadge { left: 16px; bottom: 12px; background: var(--green-ink); color: #fff; border-color: var(--green-ink); box-shadow: none; letter-spacing: 0.04em; text-transform: uppercase; }
.cursor {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 0;
  pointer-events: none;
  will-change: left, top;
}
.cursor .arrow { display: block; filter: drop-shadow(1px 1px 0 var(--shadow)); }
.cursor em {
  margin: 14px 0 0 2px;
  padding: 2px 6px;
  color: #fff;
  font: 700 10.5px/1.3 'JetBrains Mono', monospace;
  font-style: normal;
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--shadow);
}
.ca { color: var(--cobalt); } .ca em { background: var(--cobalt); }
.cl { color: var(--teal); } .cl em { background: var(--teal); }
.ck { color: var(--violet); } .ck em { background: var(--violet); }
.collab .ca, .collab .cl, .collab .ck, .collab .fill b, .collab .was, .collab .now,
.collab .note1, .collab .note2, .collab .okbadge {
  animation-duration: 12s;
  animation-iteration-count: infinite;
}
.collab .ca { animation-name: cur-a; animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
.collab .cl { animation-name: cur-l; animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
.collab .ck { animation-name: cur-k; animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
/* Positions in the 620x252 box: the field ~(205,62), "15" ~(220,113), the notes on the right. */
@keyframes cur-a {
  0% { left: 4%; top: 78%; }
  8%, 24% { left: 37%; top: 25%; }
  32%, 40% { left: 46%; top: 45%; }
  62% { left: 20%; top: 64%; }
  72%, 100% { left: 18%; top: 84%; }
}
@keyframes cur-l {
  0%, 14% { left: 86%; top: 2%; }
  24%, 30% { left: 41%; top: 45%; }
  40%, 52% { left: 70%; top: 33%; }
  64%, 100% { left: 88%; top: 6%; }
}
@keyframes cur-k {
  0%, 42% { left: 92%; top: 82%; }
  52%, 62% { left: 76%; top: 61%; }
  74%, 100% { left: 90%; top: 86%; }
}
.collab .fill b { animation-name: c-fill; animation-timing-function: steps(11); }
@keyframes c-fill { 0%, 10% { clip-path: inset(0 100% 0 0); } 22%, 94% { clip-path: inset(0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
.collab .was { animation-name: c-was; animation-timing-function: steps(1, end); }
@keyframes c-was { 0%, 27% { text-decoration-color: transparent; color: var(--ink); } 28%, 94% { text-decoration-color: var(--ink); color: var(--dim); } 96%, 100% { text-decoration-color: transparent; } }
.collab .now { animation-name: c-now; animation-timing-function: steps(3); }
@keyframes c-now { 0%, 33% { clip-path: inset(0 100% 0 0); } 37%, 94% { clip-path: inset(0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
.collab .note1 { animation-name: c-n1; animation-timing-function: steps(1, end); }
@keyframes c-n1 { 0%, 43% { opacity: 0; } 44%, 94% { opacity: 1; } 96%, 100% { opacity: 0; } }
.collab .note2 { animation-name: c-n2; animation-timing-function: steps(1, end); }
@keyframes c-n2 { 0%, 55% { opacity: 0; } 56%, 94% { opacity: 1; } 96%, 100% { opacity: 0; } }
.collab .okbadge { animation-name: c-ok; animation-timing-function: steps(1, end); }
@keyframes c-ok { 0%, 73% { opacity: 0; } 74%, 94% { opacity: 1; } 96%, 100% { opacity: 0; } }
@media (max-width: 640px) {
  .collab { height: 236px; margin-top: -56px; }
  .paper { inset: 14px 8px 18px 8px; }
  .note1, .note2 { right: 8px; }
  .cursor em { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .collab *, .collab { animation: none !important; }
  .fill b, .now { clip-path: none; }
  .was { text-decoration-color: var(--ink); color: var(--dim); }
  .note1, .note2, .okbadge { opacity: 1; }
  .ca { left: 46%; top: 45%; } .cl { left: 70%; top: 33%; } .ck { left: 76%; top: 61%; }
}

/* Hand the agent one line. */
.handoff { margin: 30px auto 0; max-width: 560px; }
.handoff p { margin: 0 0 10px; color: var(--ink); font-size: 14px; font-weight: 700; }
.handoff-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.handoff code {
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  background: var(--panel);
  border: 2px solid var(--line-hi);
  color: var(--cobalt);
  overflow-wrap: anywhere;
}
.handoff code::before { content: '$ '; color: var(--dim); }

/* The route: a document passing from the agent to people, square stops on one wire. */
.route {
  position: relative;
  margin: 64px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  text-align: left;
}
.route::before {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  top: 38px;
  height: 0;
  border-top: 2px dashed var(--line-hi);
}
.stop {
  position: relative;
  background: var(--panel);
  border: 2px solid var(--line);
  padding: 20px;
  box-shadow: 4px 4px 0 var(--shadow);
  opacity: 0;
  animation: frame-in 360ms steps(4) forwards;
}
.stop:nth-child(2) { animation-delay: 160ms; }
.stop:nth-child(3) { animation-delay: 320ms; }
.stop:nth-child(4) { animation-delay: 480ms; }
@keyframes frame-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.stop .dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  color: #fff;
  font: 400 12px/1 'Press Start 2P', monospace;
  box-shadow: 3px 3px 0 var(--shadow);
}
.stop .dot svg { display: block; }
.stop b { display: block; font-size: 15px; letter-spacing: -0.01em; }
.stop > span:not(.dot) { display: block; margin-top: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.stop q {
  display: block;
  margin-top: 12px;
  padding: 8px 10px;
  border: 2px dashed color-mix(in srgb, var(--cobalt) 55%, transparent);
  color: var(--cobalt);
  font-size: 12.5px;
  line-height: 1.5;
  quotes: none;
}

/* The sequence: each stop plays its moment in turn, a pixel document travels along the wire. */
.route::after {
  content: '';
  position: absolute;
  top: 32px;
  left: 4%;
  z-index: 0;
  width: 12px;
  height: 12px;
  background: var(--cobalt);
  border: 2px solid var(--line);
  animation: wire 10s linear infinite;
}
@keyframes wire { 0% { left: 4%; } 88% { left: calc(96% - 12px); } 89%, 100% { left: calc(96% - 12px); opacity: 0; } }
.mini {
  position: relative;
  height: 54px;
  margin: -4px 0 14px;
  padding: 8px 10px;
  border: 2px solid color-mix(in srgb, var(--line) 35%, transparent);
  background: var(--bg);
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.3;
}
.mini * { animation-duration: 10s; animation-iteration-count: infinite; animation-timing-function: steps(1, end); }
.m1 { display: grid; gap: 7px; align-content: center; }
.m1 .sl { height: 6px; background: color-mix(in srgb, var(--line) 18%, transparent); position: relative; }
.m1 .sl::after { content: ''; position: absolute; inset: 0; background: var(--cobalt); transform-origin: left; transform: scaleX(0); animation: inherit; animation-timing-function: steps(6); }
.m1 .a::after { animation-name: m1a; } .m1 .b::after { animation-name: m1b; } .m1 .c::after { animation-name: m1c; }
.m1 .b { width: 80%; } .m1 .c { width: 60%; }
@keyframes m1a { 0%, 2% { transform: scaleX(0); } 8%, 96% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
@keyframes m1b { 0%, 8% { transform: scaleX(0); } 14%, 96% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
@keyframes m1c { 0%, 14% { transform: scaleX(0); } 20%, 96% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
.m2 .ln { display: block; color: var(--ink); }
.m2 s { text-decoration: line-through 2px transparent; animation-name: m2s; }
.m2 ins { text-decoration: none; color: var(--teal); font-weight: 700; opacity: 0; animation-name: m2i; }
.mini .bub { position: absolute; right: 6px; bottom: 5px; padding: 1px 6px; font-size: 10.5px; font-weight: 700; border: 2px solid var(--line); opacity: 0; }
.m2 .bub { background: #e3f1f2; color: var(--teal); animation-name: m2b; }
@keyframes m2s { 0%, 27% { text-decoration-color: transparent; } 28%, 96% { text-decoration-color: var(--ink); color: var(--dim); } 98%, 100% { text-decoration-color: transparent; } }
@keyframes m2i { 0%, 33% { opacity: 0; } 34%, 96% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes m2b { 0%, 39% { opacity: 0; } 40%, 96% { opacity: 1; } 98%, 100% { opacity: 0; } }
.m3 .own { left: 8px; right: auto; top: 6px; bottom: auto; background: #ece7fb; color: var(--violet); animation-name: m3b; }
.m3 .lock { position: absolute; left: 8px; bottom: 5px; color: var(--dim); font-size: 10.5px; opacity: 0; animation-name: m3l; }
@keyframes m3b { 0%, 52% { opacity: 0; } 53%, 96% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes m3l { 0%, 59% { opacity: 0; } 60%, 96% { opacity: 1; } 98%, 100% { opacity: 0; } }
.m4 svg { display: block; width: 62%; height: 30px; }
.m4 path { stroke-dasharray: 100; stroke-dashoffset: 100; animation-name: m4p; animation-timing-function: linear; }
.m4 .stamp { position: absolute; right: 6px; top: 50%; transform: translateY(-50%) rotate(-6deg); padding: 1px 5px; border: 2px solid var(--green-ink); color: var(--green-ink); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; opacity: 0; animation-name: m4s; }
@keyframes m4p { 0%, 76% { stroke-dashoffset: 100; } 86%, 96% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 100; } }
@keyframes m4s { 0%, 87% { opacity: 0; } 88%, 96% { opacity: 1; } 98%, 100% { opacity: 0; } }
/* The moment that is playing gets its colour on the frame. */
.stop { z-index: 1; }
.s1 .mini { animation: on1 10s steps(1, end) infinite; } .s2 .mini { animation: on2 10s steps(1, end) infinite; }
.s3 .mini { animation: on3 10s steps(1, end) infinite; } .s4 .mini { animation: on4 10s steps(1, end) infinite; }
@keyframes on1 { 0%, 22% { border-color: var(--cobalt); } 23%, 100% { border-color: color-mix(in srgb, var(--line) 35%, transparent); } }
@keyframes on2 { 0%, 24% { border-color: color-mix(in srgb, var(--line) 35%, transparent); } 25%, 47% { border-color: var(--teal); } 48%, 100% { border-color: color-mix(in srgb, var(--line) 35%, transparent); } }
@keyframes on3 { 0%, 49% { border-color: color-mix(in srgb, var(--line) 35%, transparent); } 50%, 72% { border-color: var(--violet); } 73%, 100% { border-color: color-mix(in srgb, var(--line) 35%, transparent); } }
@keyframes on4 { 0%, 74% { border-color: color-mix(in srgb, var(--line) 35%, transparent); } 75%, 96% { border-color: var(--green-ink); } 97%, 100% { border-color: color-mix(in srgb, var(--line) 35%, transparent); } }
@media (prefers-reduced-motion: reduce) {
  .route::after { display: none; }
  .mini, .mini * { animation: none !important; }
  .m1 .sl::after { transform: none; }
  .m2 s { text-decoration-color: var(--ink); color: var(--dim); }
  .m2 ins, .mini .bub, .m3 .lock, .m4 .stamp { opacity: 1; }
  .m4 path { stroke-dashoffset: 0; }
}
@media (max-width: 900px) { .route { grid-template-columns: 1fr 1fr; } .route::before, .route::after { display: none; } }
@media (max-width: 520px) { .route { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .stop { animation: none; opacity: 1; } .btn { transition: none; } }

/* Sections */
section.block { padding: 112px 0 0; }
h2 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
  max-width: 24ch;
}
.sub { margin: 16px 0 0; max-width: 62ch; color: var(--muted); font-size: 15.5px; }

/* What it does: one manual page in three columns, ruled, not three floating cards. */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--shadow), 12px 12px 0 var(--cobalt);
}
.card { padding: 28px; }
.card + .card { border-left: 2px solid var(--line); }
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .card + .card { border-left: 0; border-top: 2px solid var(--line); }
}
.card h3 { margin: 18px 0 10px; font-size: 17px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--panel-2);
  border: 2px solid var(--line-hi);
  color: var(--cobalt-text);
}

/* Connect: a terminal window. */
.connect { margin-top: 40px; background: var(--panel); border: 2px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); }
.mcp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 2px solid var(--line);
  background: var(--panel-2);
}
.mcp code {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  padding: 8px 12px;
  background: var(--bg);
  border: 2px solid var(--line-hi);
  color: var(--cobalt);
  overflow-wrap: anywhere;
}
.mcp code::before { content: '$ '; color: var(--dim); }
.mcp small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.agents { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.agent { grid-column: span 2; padding: 22px 24px; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.agent:nth-child(3) { border-right: 0; }
.agent:nth-child(n + 4) { grid-column: span 3; border-bottom: 0; }
.agent:nth-child(5) { border-right: 0; }
@media (max-width: 860px) {
  .agents { grid-template-columns: 1fr; }
  .agent, .agent:nth-child(n + 4) { grid-column: auto; border-right: 0; border-bottom: 2px solid var(--line); }
  .agent:last-child { border-bottom: 0; }
}
.agent h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.agent h3 i {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--ice);
  padding: 3px 7px;
}
.agent ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.agent ol li::marker { color: var(--cobalt-text); }
.agent pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--line-hi);
  padding: 12px 14px;
}

/* Final: the one cobalt slab, with the logo's stepped shadow. */
.final {
  margin: 120px 0 0;
  padding: 64px 24px;
  text-align: center;
  background: var(--cobalt);
  color: #fff;
  border: 2px solid var(--shadow);
  box-shadow: 6px 6px 0 var(--cobalt-shadow), 12px 12px 0 var(--cobalt-deep);
}
.final h2 { margin: 0 auto; max-width: 22ch; }
.final p { margin: 16px auto 0; max-width: 52ch; color: #e8edff; }
.final .btn-dark { margin-top: 32px; background: var(--panel); color: var(--ink); box-shadow: 4px 4px 0 var(--cobalt-deep); }
.final .btn-dark:hover { background: #fff; }
footer {
  padding: 56px 0 56px;
  color: var(--dim);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
.copy { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

[id] { scroll-margin-top: 112px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 8px;
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--cobalt-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero.small { padding: 80px 0 8px; }
.hero.small h1 { max-width: 24ch; }
.hero.small .lede { max-width: 64ch; }

/* ---------- Use cases on the home page: small looping scenes, drawn frame by frame. ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.case { grid-column: span 2; display: flex; flex-direction: column; }
/* Rows of three, two, three: the two in the middle get the room their scenes need. */
.case:nth-child(1), .case:nth-child(2), .case:nth-child(6), .case:nth-child(7), .case:nth-child(11), .case:nth-child(12) { grid-column: span 3; }
@media (max-width: 960px) { .cases { grid-template-columns: 1fr 1fr; } .case, .case:nth-child(1), .case:nth-child(2), .case:nth-child(6), .case:nth-child(7), .case:nth-child(11), .case:nth-child(12) { grid-column: auto; } }
@media (max-width: 620px) { .cases { grid-template-columns: 1fr; } }
.case h3 { margin: 8px 0 6px; font-size: 16px; letter-spacing: -0.01em; }
/* Who does it: the agent prepares, a person decides, only a person signs. */
.role {
  align-self: flex-start;
  margin-top: 18px;
  padding: 2px 8px;
  border: 2px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.role-agent { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.role-both { background: var(--panel); color: var(--ink); }
.role-person { background: var(--ink); color: var(--panel); }
.case p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.scene {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--shadow);
  font-size: 12.5px;
  line-height: 1.5;
}
.scene .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-bottom: 2px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.scene .bar::before { content: ''; width: 8px; height: 8px; background: var(--cobalt); }
.scene .body { padding: 12px 14px; }
.scene * { animation-duration: 7s; animation-iteration-count: infinite; animation-timing-function: steps(1, end); }

/* 1. Fields: the agent types into the template's slots one after another. */
.fields .row { display: flex; gap: 8px; align-items: baseline; margin-bottom: 9px; white-space: nowrap; }
.fields .row > span:first-child { color: var(--dim); min-width: 9ch; }
.slot {
  position: relative;
  display: inline-block;
  min-width: 14ch;
  padding: 0 4px;
  border-bottom: 2px dashed color-mix(in srgb, var(--cobalt) 55%, transparent);
  color: var(--ink);
  font-weight: 700;
}
.slot b { display: inline-block; font-weight: 700; clip-path: inset(0); }
.slot.s1 b { animation-name: type1; animation-timing-function: steps(10); }
.slot.s2 b { animation-name: type2; animation-timing-function: steps(10); }
.slot.s3 b { animation-name: type3; animation-timing-function: steps(10); }
@keyframes type1 { 0%, 6% { clip-path: inset(0 100% 0 0); } 22%, 100% { clip-path: inset(0); } }
@keyframes type2 { 0%, 26% { clip-path: inset(0 100% 0 0); } 42%, 100% { clip-path: inset(0); } }
@keyframes type3 { 0%, 46% { clip-path: inset(0 100% 0 0); } 62%, 100% { clip-path: inset(0); } }
.fields .done {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: var(--cobalt);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation-name: show-late;
}
@keyframes show-late { 0%, 68% { opacity: 0; } 70%, 100% { opacity: 1; } }

/* 2. A word-level edit: old word struck, new one in, accepted with one click. */
.edit .line { font-size: 14px; color: var(--ink); }
.edit .old { color: var(--dim); text-decoration: line-through 2px var(--ink); animation-name: old-word; }
.edit .new {
  display: inline-block;
  color: var(--cobalt-text);
  font-weight: 700;
  border-bottom: 2px solid var(--cobalt);
  animation-name: new-word;
}
@keyframes old-word {
  0%, 18% { text-decoration-color: transparent; color: var(--ink); }
  20%, 64% { text-decoration-color: var(--ink); color: var(--dim); }
  66%, 100% { opacity: 0; font-size: 0; }
}
@keyframes new-word {
  0%, 28% { clip-path: inset(0 100% 0 0); }
  32%, 64% { clip-path: inset(0); }
  66%, 100% { clip-path: inset(0); color: var(--ink); border-bottom-color: transparent; font-weight: 400; }
}
.edit .who { margin-top: 10px; color: var(--muted); font-size: 11.5px; animation-name: who; }
@keyframes who { 0%, 18% { opacity: 0; } 20%, 100% { opacity: 1; } }
.edit .actions { display: flex; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--shadow);
}
.chip.ok { background: var(--cobalt); color: #fff; border-color: var(--shadow); animation-name: press; }
@keyframes press {
  0%, 52% { transform: none; box-shadow: 2px 2px 0 var(--shadow); }
  54%, 60% { transform: translate(2px, 2px); box-shadow: none; }
  62%, 100% { transform: none; box-shadow: 2px 2px 0 var(--shadow); }
}
.edit .accepted {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: var(--green-ink);
  font-size: 11.5px;
  font-weight: 700;
  animation-name: show-accept;
}
@keyframes show-accept { 0%, 64% { opacity: 0; } 66%, 100% { opacity: 1; } }

/* 3. Two review circles: each sees only its own thread. */
.circles .body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; }
.circle { border: 2px solid var(--line-hi); background: var(--bg); padding: 8px; min-height: 120px; }
.circle h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.circle h4 i { width: 8px; height: 8px; display: inline-block; }
.bubble {
  display: block;
  margin-bottom: 6px;
  padding: 4px 6px;
  background: var(--panel);
  border: 2px solid var(--line-hi);
  font-size: 11.5px;
  line-height: 1.4;
}
.circle .hidden-note { display: block; color: var(--dim); font-size: 10.5px; }
.circles .a1 { animation-name: pop-a1; }
.circles .a2 { animation-name: pop-a2; }
.circles .b1 { animation-name: pop-b1; }
@keyframes pop-a1 { 0%, 8% { opacity: 0; transform: translateY(6px); } 10%, 100% { opacity: 1; transform: none; } }
@keyframes pop-a2 { 0%, 30% { opacity: 0; transform: translateY(6px); } 32%, 100% { opacity: 1; transform: none; } }
@keyframes pop-b1 { 0%, 52% { opacity: 0; transform: translateY(6px); } 54%, 100% { opacity: 1; transform: none; } }

/* 4. A Word file with tracked changes comes back as suggestions. */
.word .body { display: flex; gap: 14px; align-items: flex-start; }
.docx {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 56px;
  background: var(--cobalt);
  color: #fff;
  border: 2px solid var(--shadow);
  box-shadow: 3px 3px 0 var(--shadow);
  font-size: 10px;
  font-weight: 800;
  animation-name: fly;
}
@keyframes fly {
  0% { transform: translateX(-70px); }
  6% { transform: translateX(-46px); }
  12% { transform: translateX(-22px); }
  18%, 100% { transform: none; }
}
.sugg { flex: 1; min-width: 0; }
.sugg .s {
  display: block;
  margin-bottom: 7px;
  padding: 4px 8px;
  border-left: 4px solid var(--violet);
  background: var(--bg);
  font-size: 11.5px;
  line-height: 1.45;
}
.sugg .s small { display: block; color: var(--muted); font-size: 10.5px; }
.sugg .s del { color: var(--dim); text-decoration-thickness: 2px; }
.sugg .s ins { text-decoration: none; color: var(--cobalt-text); font-weight: 700; }
.sugg .s1 { animation-name: sugg1; }
.sugg .s2 { animation-name: sugg2; }
.sugg .s3 { animation-name: sugg3; }
@keyframes sugg1 { 0%, 24% { opacity: 0; } 26%, 100% { opacity: 1; } }
@keyframes sugg2 { 0%, 36% { opacity: 0; } 38%, 100% { opacity: 1; } }
@keyframes sugg3 { 0%, 48% { opacity: 0; } 50%, 100% { opacity: 1; } }

/* 5. A signature drawn, the document marked signed. */
.sign .body { display: flex; flex-direction: column; gap: 8px; }
.sign .pad { position: relative; height: 84px; border: 2px dashed var(--line-hi); background: var(--bg); }
.sign .pad span { position: absolute; left: 8px; bottom: 4px; color: var(--dim); font-size: 10.5px; }
.sign svg { position: absolute; top: 6px; left: 16px; width: calc(100% - 32px); height: 46px; }
.sign svg path { stroke-dasharray: 320; stroke-dashoffset: 0; animation-name: draw; animation-timing-function: steps(12); }
@keyframes draw { 0%, 6% { stroke-dashoffset: 320; } 40%, 100% { stroke-dashoffset: 0; } }
.sign .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11.5px; }
.stamp {
  padding: 3px 8px;
  border: 2px solid var(--green-ink);
  color: #fff;
  background: var(--green-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  animation-name: stamp;
}
@keyframes stamp {
  0%, 44% { opacity: 0; transform: scale(1.6) rotate(-6deg); }
  46% { opacity: 1; transform: scale(1.25) rotate(-4deg); }
  48%, 100% { opacity: 1; transform: rotate(-3deg); }
}
.sign .status { animation-name: status-wait; }
.sign .status::after { content: ''; }
@keyframes status-wait { 0%, 44% { color: var(--dim); } 46%, 100% { color: var(--muted); } }

/* Many documents from one template: the agent makes one per counterparty. */
.many .body { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; align-items: start; }
.many .tpl { display: grid; gap: 4px; padding: 10px; border: 2px solid var(--line); background: var(--panel-2); }
.many .tpl small { color: var(--muted); font-size: 11px; }
.many .docs { display: grid; gap: 8px; }
.many .doc { display: block; padding: 6px 8px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); font-size: 11.5px; box-shadow: 2px 2px 0 var(--shadow); }
.many .d1 { animation-name: pop-a1; }
.many .d2 { animation-name: pop-a2; }
.many .d3 { animation-name: pop-b1; }

/* Versions: the history grows, and a person takes an older text back. */
.versions .body { display: grid; gap: 6px; }
.versions .ver { display: flex; gap: 10px; align-items: baseline; padding: 4px 8px; border: 2px solid transparent; color: var(--muted); font-size: 12px; }
.versions .ver b { color: var(--ink); min-width: 2.2ch; }
.versions .v1 { animation-name: sugg1; }
.versions .v2 { animation-name: sugg2; }
.versions .v3 { animation-name: sugg3; }
.versions .v4 { animation-name: restore; color: var(--ink); }
@keyframes restore {
  0%, 62% { opacity: 0; border-color: transparent; }
  64%, 100% { opacity: 1; border-color: var(--cobalt); background: color-mix(in srgb, var(--cobalt) 10%, transparent); }
}

/* A disagreements protocol: the changes between two versions, row by row. */
.protocol .body { display: grid; gap: 4px; padding: 10px 12px; }
.protocol .prow { display: grid; grid-template-columns: 7ch 1fr 1fr; gap: 8px; padding: 3px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 25%, transparent); font-size: 11.5px; color: var(--ink); }
.protocol .head { color: var(--dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.protocol .r1 { animation-name: sugg1; }
.protocol .r2 { animation-name: sugg2; }
.protocol .r3 { animation-name: sugg3; }
.protocol .prow span:nth-child(2) { color: var(--muted); }
.protocol .ready { justify-self: start; margin-top: 8px; padding: 3px 8px; background: var(--cobalt); color: #fff; font-size: 11px; font-weight: 700; animation-name: show-late; }

/* A route: who looks at the contract and in what order, step by step. */
.flow .body { display: grid; gap: 8px; padding: 12px 14px; }
.flow .step { position: relative; display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 12.5px; }
.flow .step i { display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--line); background: var(--panel-2); font-style: normal; font-size: 11px; }
.flow .step small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.flow .step + .step::before { content: ''; position: absolute; left: 10px; top: -8px; width: 2px; height: 8px; background: var(--line); }
.flow .t1 { animation-name: sugg1; }
.flow .t2 { animation-name: sugg2; }
.flow .t3 { animation-name: sugg3; }
.flow .ready { justify-self: start; margin-top: 4px; padding: 3px 8px; background: var(--cobalt); color: #fff; font-size: 11px; font-weight: 700; animation-name: show-late; }

/* Approval: each approver says yes or sends it back; signing waits for every yes. */
.approve .body { display: grid; gap: 12px; padding: 14px; }
.approve .who-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.approve .person { display: grid; gap: 8px; padding: 10px; border: 2px solid var(--line); background: var(--panel); min-width: 0; }
.approve .person b { font-size: 12.5px; color: var(--ink); }
.approve .st { display: grid; min-height: 34px; align-items: start; }
.approve .st em { grid-area: 1 / 1; font-style: normal; font-size: 11.5px; line-height: 1.4; }
.approve .ok { color: var(--green-ink); font-weight: 700; }
.approve .ok::before { content: '✓ '; }
.approve .back { color: var(--violet); animation-name: ap-back; }
.approve .wait { color: var(--dim); animation-name: ap-wait; }
.approve .o1 { animation-name: ap-ok1; }
.approve .o2 { animation-name: ap-ok2; }
.approve .o3 { animation-name: ap-ok3; }
.approve .sent { justify-self: start; padding: 3px 8px; background: var(--green-ink); color: #fff; font-size: 11px; font-weight: 700; animation-name: ap-sent; }
@keyframes ap-ok1 { 0%, 12% { opacity: 0; } 14%, 100% { opacity: 1; } }
@keyframes ap-back { 0%, 24% { opacity: 0; } 26%, 48% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes ap-ok2 { 0%, 50% { opacity: 0; } 52%, 100% { opacity: 1; } }
@keyframes ap-wait { 0%, 66% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes ap-ok3 { 0%, 66% { opacity: 0; } 68%, 100% { opacity: 1; } }
@keyframes ap-sent { 0%, 78% { opacity: 0; } 80%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .approve .back, .approve .wait { display: none; } }


/* Markup: the agent reads a plain contract and turns what changes into fields. */
.markup .txt { margin: 0; color: var(--ink); font-size: 12.5px; line-height: 1.9; }
.markup .mk { display: inline-grid; vertical-align: bottom; }
.markup .mk > * { grid-area: 1 / 1; font-style: normal; }
.markup .mk i { animation-name: mk-hl; }
.markup .mk b { padding: 0 4px; background: color-mix(in srgb, var(--cobalt) 12%, transparent); border: 2px solid var(--cobalt); color: var(--cobalt-text); font-weight: 700; line-height: 1.35; opacity: 0; animation-name: mk-chip; }
.markup .k2 i { animation-name: mk-hl2; } .markup .k2 b { animation-name: mk-chip2; }
.markup .k3 i { animation-name: mk-hl3; } .markup .k3 b { animation-name: mk-chip3; }
@keyframes mk-hl { 0%, 6% { background: transparent; } 7%, 15% { background: color-mix(in srgb, var(--cobalt) 18%, transparent); } 16%, 100% { opacity: 0; } }
@keyframes mk-chip { 0%, 15% { opacity: 0; } 16%, 100% { opacity: 1; } }
@keyframes mk-hl2 { 0%, 20% { background: transparent; } 21%, 29% { background: color-mix(in srgb, var(--cobalt) 18%, transparent); } 30%, 100% { opacity: 0; } }
@keyframes mk-chip2 { 0%, 29% { opacity: 0; } 30%, 100% { opacity: 1; } }
@keyframes mk-hl3 { 0%, 34% { background: transparent; } 35%, 43% { background: color-mix(in srgb, var(--cobalt) 18%, transparent); } 44%, 100% { opacity: 0; } }
@keyframes mk-chip3 { 0%, 43% { opacity: 0; } 44%, 100% { opacity: 1; } }
.markup .cond { animation-name: mk-cond; border-bottom: 2px dashed transparent; }
@keyframes mk-cond { 0%, 51% { border-bottom-color: transparent; background: transparent; } 52%, 100% { border-bottom-color: var(--violet); background: color-mix(in srgb, var(--violet) 10%, transparent); } }
.markup .found { display: inline-block; margin-top: 8px; padding: 2px 8px; background: var(--cobalt); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; animation-name: show-late; }

/* Builder: conditions switch clauses in and out of the contract. */
.builder .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
.builder .opts, .builder .clauses { display: grid; align-content: start; gap: 7px; }
.builder .opt { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; line-height: 1.3; }
.builder .opt i { flex: none; width: 14px; height: 14px; border: 2px solid var(--line); background: var(--panel); }
.builder .o1 i { animation-name: opt1; } .builder .o2 i { animation-name: opt2; } .builder .o3 i { animation-name: opt3; }
@keyframes opt1 { 0%, 14% { background: var(--panel); } 15%, 100% { background: var(--cobalt); box-shadow: inset 0 0 0 2px var(--panel); } }
@keyframes opt2 { 0%, 34% { background: var(--panel); } 35%, 100% { background: var(--cobalt); box-shadow: inset 0 0 0 2px var(--panel); } }
@keyframes opt3 { 0%, 54% { background: var(--panel); } 55%, 100% { background: var(--cobalt); box-shadow: inset 0 0 0 2px var(--panel); } }
.builder .clauses { padding: 8px; border: 2px solid var(--line); background: var(--bg); }
.builder .clauses span { padding: 2px 6px; font-size: 11.5px; color: var(--ink); border-left: 3px solid color-mix(in srgb, var(--line) 30%, transparent); }
.builder .cl1, .builder .cl2, .builder .cl3 { border-left-color: var(--cobalt) !important; background: color-mix(in srgb, var(--cobalt) 8%, transparent); }
.builder .cl1 { animation-name: cl1; } .builder .cl2 { animation-name: cl2; } .builder .cl3 { animation-name: cl3; }
@keyframes cl1 { 0%, 18% { opacity: 0; } 19%, 100% { opacity: 1; } }
@keyframes cl2 { 0%, 38% { opacity: 0; } 39%, 100% { opacity: 1; } }
@keyframes cl3 { 0%, 58% { opacity: 0; } 59%, 100% { opacity: 1; } }
@media (max-width: 520px) { .builder .body { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .scene, .scene * { animation: none !important; }
}

/* ---------- Pricing ---------- */
.trial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 48px;
  padding: 22px 24px;
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--shadow);
  text-align: left;
}
.trial b { display: block; font-size: 17px; }
.trial > div > span { color: var(--muted); font-size: 14px; }
.tag {
  display: inline-block;
  padding: 3px 8px;
  margin-right: 8px;
  background: var(--cobalt);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.plan {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  margin-top: 40px;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--shadow), 12px 12px 0 var(--cobalt);
  text-align: left;
}
.plan > div { padding: 32px; }
.plan > div + div { border-left: 2px solid var(--line); }
@media (max-width: 860px) {
  .plan { grid-template-columns: 1fr; }
  .plan > div + div { border-left: 0; border-top: 2px solid var(--line); }
}
@media (max-width: 520px) { .plan > div { padding: 22px 18px; } }
.plan h2 { font-size: clamp(22px, 2.6vw, 28px); }
.plan label { display: block; margin-top: 26px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 18px; }
.price .num { font-size: clamp(40px, 6vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price .per { color: var(--muted); font-size: 15px; }
.price-sub { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.price-sub b { color: var(--ink); }

/* The slider: a square thumb on a ruled track, four stops. */
.range { margin-top: 14px; }
.range input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.range input[type='range']::-webkit-slider-runnable-track { height: 8px; background: var(--panel-2); border: 2px solid var(--line); }
.range input[type='range']::-moz-range-track { height: 4px; background: var(--panel-2); border: 2px solid var(--line); }
.range input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -10px;
  background: var(--cobalt);
  border: 2px solid var(--shadow);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--shadow);
}
.range input[type='range']::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--cobalt);
  border: 2px solid var(--shadow);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--shadow);
}
.range input[type='range']:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }
.stops { display: flex; justify-content: space-between; margin-top: 6px; }
.stops button {
  min-width: 44px;
  min-height: 36px;
  padding: 4px 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 700 13px/1 inherit;
  font-family: inherit;
  cursor: pointer;
}
.stops button:first-child { text-align: left; padding-left: 0; }
.stops button:last-child { text-align: right; padding-right: 0; }
.stops button[aria-pressed='true'] { color: var(--cobalt-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.plan .cta { justify-content: flex-start; margin-top: 30px; }
.plan h3 { margin: 0 0 14px; font-size: 15px; }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 0 0 12px 26px; color: var(--ink); font-size: 14px; line-height: 1.55; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--cobalt);
  box-shadow: 2px 2px 0 var(--shadow);
}
.ticks li span { color: var(--muted); }
.counted {
  margin-top: 8px;
  padding: 14px 16px;
  border: 2px dashed color-mix(in srgb, var(--cobalt) 55%, transparent);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.6;
}
.counted b { color: var(--cobalt-text); }

/* Rows: enterprise and payment, ruled like the "what it does" page. */
.rows { margin-top: 40px; border: 2px solid var(--line); background: var(--panel); box-shadow: 6px 6px 0 var(--shadow); }
.rows > div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 24px; padding: 22px 24px; }
.rows > div + div { border-top: 2px solid var(--line); }
.rows dt { font-weight: 700; font-size: 15px; }
.rows dd { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.rows dd a { color: var(--cobalt-text); font-weight: 700; }
@media (max-width: 620px) { .rows > div { grid-template-columns: 1fr; } }

/* FAQ: square disclosure rows. */
.faq { margin-top: 40px; border: 2px solid var(--line); background: var(--panel); box-shadow: 6px 6px 0 var(--shadow); }
.faq details + details { border-top: 2px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--line);
  color: var(--cobalt-text);
  font-weight: 800;
}
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { background: var(--panel-2); }
.faq summary:focus-visible { outline: 2px solid var(--ice); outline-offset: -4px; }
.faq details p { margin: 0; padding: 0 24px 20px; max-width: 72ch; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ---------- Business: two offers side by side. ---------- */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; text-align: left; }
@media (max-width: 860px) { .offers { grid-template-columns: 1fr; } }
.offer { display: flex; flex-direction: column; padding: 30px; background: var(--panel); border: 2px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); }
.offer.ent { box-shadow: 6px 6px 0 var(--shadow), 12px 12px 0 var(--cobalt); }
@media (max-width: 520px) { .offer { padding: 22px 18px; } }
.offer h2 { font-size: clamp(22px, 2.6vw, 28px); }
.offer > p { margin: 12px 0 22px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.offer .ticks { flex: 1; }
.offer .btn { align-self: flex-start; margin-top: 18px; }
.final .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.final .btn-row .btn { margin-top: 0; }
.final .btn-light { background: transparent; color: #fff; border-color: #fff; box-shadow: 4px 4px 0 var(--cobalt-deep); }
.final .btn-light:hover { background: var(--cobalt-shadow); }
.offer .eyebrow { align-self: flex-start; }

/* ---------- Offer and other legal text: one readable column. ---------- */
.legal { max-width: 76ch; margin: 0 auto; padding: 72px 0 24px; }
.legal h1 { margin: 0; max-width: none; text-align: left; font-size: clamp(30px, 4.6vw, 44px); }
.legal-lede { margin: 12px 0 0; color: var(--ink); font-size: 17px; font-weight: 700; }
.legal-meta { margin: 6px 0 0; color: var(--dim); font-size: 13px; }
.legal-toc { margin: 32px 0 8px; padding: 18px 22px; background: var(--panel); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--shadow); }
.legal-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 13.5px; line-height: 1.9; }
.legal-toc a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--cobalt) 45%, transparent); }
.legal section { scroll-margin-top: 84px; }
.legal h2 { margin: 40px 0 12px; font-size: 18px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 22px; }
.legal b { color: var(--ink); }
.legal a { color: var(--cobalt-text); }
.legal-req { display: grid; grid-template-columns: minmax(10ch, 16ch) 1fr; gap: 8px 20px; margin: 0; padding: 18px 22px; background: var(--panel); border: 2px solid var(--line); font-size: 14px; }
.legal-req dt { color: var(--dim); }
.legal-req dd { margin: 0; color: var(--ink); font-weight: 500; }
@media (max-width: 620px) {
  .legal { padding-top: 48px; }
  .legal-toc ol { columns: 1; }
  .legal-req { grid-template-columns: 1fr; gap: 2px; }
  .legal-req dd { margin-bottom: 10px; }
}

/* Eggent sets Monoclan up itself: its card carries the one-click start. */
.agent .btn { margin-top: 14px; }

/* ---------- Feature pages (/features/…): a video, then the steps as text, a real screen, a try-it box. ---------- */
.feature { padding-bottom: 8px; }
.crumbs { padding-top: 40px; color: var(--dim); font-size: 13px; }
.crumbs a { color: var(--muted); }
.feature .hero.small { padding-top: 24px; }
.feature .hero.small h1 { max-width: 30ch; }
.feature section { margin-top: 56px; }
.feature h2 { margin: 0 0 20px; }
.fvideo { margin: 36px 0 0; }
.fvideo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--panel-2); border: 2px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); }
.fvideo figcaption, .fui figcaption { margin-top: 14px; color: var(--dim); font-size: 13px; }
.fsteps ol { margin: 0; padding: 0; list-style: none; counter-reset: fstep; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
@media (max-width: 760px) { .fsteps ol { grid-template-columns: 1fr; } }
.fsteps li { counter-increment: fstep; position: relative; padding-left: 52px; }
.fsteps li::before { content: counter(fstep); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--line); background: var(--panel); color: var(--cobalt-text); font-weight: 800; box-shadow: 3px 3px 0 var(--shadow); }
.fsteps h3 { margin: 4px 0 6px; font-size: 16px; letter-spacing: -0.01em; }
.fsteps p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 60ch; }
.fui figure { margin: 0; }
.fui img { display: block; width: 100%; height: auto; border: 2px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); }
.ftry-box { padding: 28px 30px; background: var(--panel); border: 2px solid var(--line); box-shadow: 6px 6px 0 var(--shadow), 12px 12px 0 var(--cobalt); }
.ftry-box ol { margin: 0 0 22px; padding-left: 20px; color: var(--ink); font-size: 14.5px; line-height: 1.7; }
.ftry-label { margin: 0 0 8px; color: var(--cobalt-text); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ftry-prompt { margin: 0 0 22px; padding: 16px 18px; background: var(--bg); border: 2px solid var(--line); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.6; white-space: pre-wrap; }
.fnotes .ticks li { font-size: 14.5px; }
.ftranscript { margin-top: 40px; border: 2px solid var(--line); background: var(--panel); }
.ftranscript summary { padding: 16px 24px; font-weight: 700; cursor: pointer; }
.ftranscript summary:focus-visible { outline: 2px solid var(--ice); outline-offset: -4px; }
.ftranscript div { padding: 0 24px 12px; max-width: 72ch; }
.ftranscript p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.fmore { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 40px; font-weight: 700; }
.fmore a { color: var(--cobalt-text); }
