/* Mandatum site.
 * Idea: a mandate. A sealed document, the owner's authority, a gate.
 * Parchment and ink, one vermilion seal, amber for a question, green for passage.
 * Light and dark are both designed; the terminal is dark in both.
 */

/* ------------------------------ tokens ------------------------------ */
:root {
  --seal: #C8402F;
  --amber: #D99A2B;
  --green: #4C9A6A;

  --bg: #F4EFE6;
  --raised: #FBF8F2;
  --sunk: #ECE5D8;
  --ink: #12100E;
  --ink-2: #3F3A33;
  --ink-3: #655E53;
  --rule: rgba(18, 16, 14, .13);
  --rule-2: rgba(18, 16, 14, .3);
  --seal-text: #A8321F;
  --ask-text: #7C5000;
  --allow-text: #2A6B45;
  --seal-wash: rgba(200, 64, 47, .07);
  --amber-wash: rgba(217, 154, 43, .14);
  --focus: #A8321F;
  --shadow: 0 1px 0 rgba(18, 16, 14, .04), 0 12px 32px -18px rgba(18, 16, 14, .35);

  /* the sheet in the hero stays paper in both themes */
  --paper: #FCFAF5;
  --paper-2: #F1EADC;
  --paper-ink: #12100E;
  --paper-ink-2: #4A443B;
  --paper-rule: rgba(18, 16, 14, .16);

  /* the terminal stays dark in both themes */
  --term-bg: #161310;
  --term-bar: #1F1B17;
  --term-ink: #EFE8DB;
  --term-ink-2: #B4AB9C;
  --term-rule: rgba(244, 239, 230, .12);
  --term-deny: #F2735C;
  --term-ask: #E8B04A;
  --term-allow: #77C697;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .06 0 0 0 0 .05 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 40px);
  --radius: 2px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12100E;
    --raised: #1C1916;
    --sunk: #0C0B09;
    --ink: #F1EADD;
    --ink-2: #CFC6B6;
    --ink-3: #A0978A;
    --rule: rgba(241, 234, 221, .13);
    --rule-2: rgba(241, 234, 221, .3);
    --seal-text: #F07A63;
    --ask-text: #E5AC45;
    --allow-text: #72C293;
    --seal-wash: rgba(200, 64, 47, .13);
    --amber-wash: rgba(217, 154, 43, .13);
    --focus: #F07A63;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 36px -18px rgba(0, 0, 0, .8);

    --paper: #EDE5D6;
    --paper-2: #D9D0BE;

    --term-bg: #0A0908;
    --term-bar: #14110F;

    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .92 0 0 0 0 .86 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}

/* ------------------------------- base ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
html.motion { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg) var(--grain);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration-color: var(--seal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--seal-text); }
code, kbd, pre { font-family: var(--mono); }
code { font-size: .88em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--seal); color: #fff; }

.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.small { font-size: .9rem; color: var(--ink-2); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 2px; text-decoration: none; }
.skip:focus { top: 12px; color: var(--bg); }

/* ------------------------------ header ------------------------------ */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--rule-2); }
.top-in { display: flex; align-items: center; gap: 26px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.26rem/1 var(--display); letter-spacing: -.012em; font-variation-settings: "SOFT" 0, "WONK" 0; }
.brand-mk { display: block; flex: none; fill: var(--ink); }
.brand-mk .gate { fill: var(--seal); }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a, .gh { padding: 5px 0 3px; font-size: .9rem; color: var(--ink-2); text-decoration: none; border-bottom: 1.5px solid transparent; }
.nav a:hover, .gh:hover { color: var(--ink); border-bottom-color: var(--seal); }
.gh { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
@media (max-width: 940px) { .nav { display: none; } .gh { margin-left: auto; } }

/* ------------------------------- hero -------------------------------
 * Two columns and one line. Left: what Claude runs. Right: what waits for the owner.
 * The vermilion rule between them is the gate. No cards, no shadows, square corners.
 */
.hero { padding: clamp(18px, 2.6vw, 30px) 0 0; }
.kicker { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; font-size: .86rem; line-height: 1.4; color: var(--ink-3); }
.auto { font-size: .86rem; font-weight: 500; color: var(--ink-2); }

.duo { --gap: clamp(44px, 7vw, 104px); position: relative; margin-top: clamp(22px, 3.4vw, 44px); }
.duo::before { content: ""; position: absolute; top: 4px; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--seal); }
.duo-h, .st { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); }
h1 { font: 500 clamp(2.5rem, 5.1vw, 4.6rem)/.98 var(--display); letter-spacing: -.034em; font-variation-settings: "SOFT" 0, "WONK" 0; }
.h-work { font-weight: 330; color: var(--ink-2); }
.h-own { font-weight: 640; }

/* the four parts of the offer: Claude's half, the gate line, the owner's half */
.st { position: relative; align-items: start; margin-top: clamp(24px, 3vw, 38px); scroll-margin-top: 84px; }
.st + .st { margin-top: clamp(26px, 3.4vw, 44px); }
.st-work, .st-own { min-width: 0; padding-top: 15px; border-top: 1px solid var(--rule-2); }
.st-no { position: absolute; top: 12px; left: 50%; width: 2.5em; margin-left: -1.25em; padding: 5px 0 4px; background: var(--bg); color: var(--seal-text); font: 500 .78rem/1 var(--mono); letter-spacing: .04em; text-align: center; font-variant-numeric: tabular-nums; }
.st-t { margin: 0; max-width: none; font: 360 clamp(1.3rem, 2vw, 1.62rem)/1.14 var(--display); letter-spacing: -.016em; color: var(--ink-2); font-variation-settings: "SOFT" 0, "WONK" 0; }
.st-own .st-t { font-weight: 640; color: var(--ink); }
.st-p { margin-top: 9px; max-width: 35em; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.st-p code { font-size: .88em; color: var(--ink); }
.spec { margin-top: 14px; padding-left: 13px; border-left: 1px solid var(--rule-2); max-width: 40em; font: 400 .8rem/1.55 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.spec p + p { margin-top: 3px; }
.spec b { font-weight: 600; color: var(--ink); }
.pr { color: var(--ink-3); }
.big { margin-top: 12px; padding-top: 14px; border-top: 4px solid var(--ink); }
.big-l { font: 500 clamp(1.12rem, 1.95vw, 1.62rem)/1.25 var(--mono); letter-spacing: -.01em; overflow-wrap: anywhere; }
.big-l code { font-size: inherit; }
.big-n { margin-top: 10px; max-width: 33em; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 3.9em; column-gap: 8px; align-items: baseline; margin-top: 12px; font: 400 .9rem/1.5 var(--mono); }
.row .c { display: flex; align-items: flex-end; gap: 10px; min-width: 0; }
.row code { flex: 0 1 auto; min-width: 0; font-size: inherit; overflow-wrap: anywhere; }
.row .c i { flex: 1 1 0; min-width: 0; height: 0; border-bottom: 1px dotted var(--rule-2); transform: translateY(-.42em); }
.row .v { font-size: .76rem; font-weight: 600; letter-spacing: .09em; text-align: right; color: var(--ask-text); }
.big-v { border-top-color: var(--seal); }
.vl { padding: 7px 0 6px; font: 400 .84rem/1.45 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.vl + .vl { border-top: 1px dotted var(--rule-2); }
.vl b { font-weight: 600; letter-spacing: .03em; }
.vl[data-v="fail"] b { color: var(--seal-text); }
.vl[data-v="pass"] b { color: var(--allow-text); }
.big-v .big-n { margin-top: 8px; }

/* the stage: with script the four parts share one frame and play in turn.
 * Without script none of this applies and the parts stay stacked. */
.tabs { display: none; }
.js .tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) var(--gap) minmax(0, 1fr) minmax(0, 1fr); margin-top: clamp(20px, 2.8vw, 34px); }
.tabs [role="tab"] { position: relative; padding: 13px 10px 12px 0; background: none; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; text-align: left; font: 500 .95rem/1.2 var(--sans); color: var(--ink-3); }
.tabs [role="tab"]:nth-child(3) { grid-column: 4; }
.tabs span { margin-right: .6em; font: 500 .78rem/1 var(--mono); color: var(--seal-text); font-variant-numeric: tabular-nums; }
.tabs [role="tab"]:hover, .tabs [aria-selected="true"] { color: var(--ink); }
.tabs [aria-selected="true"] { font-weight: 600; }
.tabs i { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--seal); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.tabs [aria-selected="false"] i { transform: scaleX(0); }
.js .scenes { display: grid; }
.js .scenes > .st { grid-area: 1 / 1; align-content: start; margin-top: 0; visibility: hidden; opacity: 0; }
.js .scenes > .st.on { visibility: visible; opacity: 1; }
.js .scenes .st-no { display: none; }
.js .scenes .st-work, .js .scenes .st-own { padding-top: 22px; border-top: 0; }
.motion .scenes > .st { transition: opacity .18s ease, visibility 0s linear .18s; }
.motion .scenes > .st.on { transition: opacity .2s ease .16s; }
.motion .scenes > .st.on .en { animation: enter .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0s) + .16s); }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
[data-type].typing::after { content: ""; display: inline-block; width: .55em; height: 1.02em; margin-left: 2px; vertical-align: -.14em; background: currentColor; }
.motion [data-type].typing::after { animation: caret .9s steps(1) infinite; }
.big-l { min-height: 1.25em; }

/* the register */
.reg { margin-top: 14px; font: 400 .9rem/1.5 var(--mono); }
.reg li { display: grid; grid-template-columns: 1.9em minmax(0, 1fr) 3.9em; column-gap: 8px; align-items: baseline; padding: 5px 0; }
.reg .no { font-size: .74rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.reg .c { display: flex; align-items: flex-end; gap: 10px; min-width: 0; }
.reg code { flex: 0 1 auto; min-width: 0; font-size: inherit; overflow-wrap: anywhere; }
.reg .c i { flex: 1 1 0; min-width: 0; height: 0; border-bottom: 1px dotted var(--rule-2); transform: translateY(-.42em); }
.reg .v { font-size: .76rem; font-weight: 600; letter-spacing: .09em; text-align: right; }
.reg li[data-v="allow"] .v { color: var(--allow-text); font-weight: 500; }
.reg li[data-v="deny"] .v { color: var(--seal-text); }
.reg li[data-v="ask"] .v { color: var(--ask-text); }
.reg li[data-v="deny"] code { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--seal); text-decoration-thickness: 2px; }
.reg .why { grid-column: 2 / -1; max-width: 46ch; margin-top: 3px; font: 400 .84rem/1.45 var(--sans); color: var(--ink-2); }
.reg li.held { background: var(--amber-wash); box-shadow: -10px 0 0 var(--amber-wash), 10px 0 0 var(--amber-wash); }
.reg li.typing .v, .reg li.typing .c i { visibility: hidden; }
.reg li.typing code::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -.16em; background: var(--ink); }
.motion .reg li.typing.check code::after { animation: caret .5s steps(1) infinite; }
.motion .reg li.land .v { animation: land .28s cubic-bezier(.2, .9, .3, 1) both; }
.motion .reg li.land .why { animation: rise .3s ease both; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes land { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* the owner's side */
.ask, .idle, .done { display: none; }
.duo[data-state="asking"] .ask, .duo[data-state="running"] .idle, .duo[data-state="approved"] .done, .duo[data-state="declined"] .done { display: block; }
.ask { margin-top: 12px; padding-top: 13px; border-top: 4px solid var(--amber); }
.motion .duo[data-state="asking"] .ask { animation: rise .32s ease both; }
.ask-gate { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; font: 500 .76rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ask-text); font-variant-numeric: tabular-nums; }
.ask-cmd { margin-top: 16px; font: 500 clamp(1.12rem, 1.95vw, 1.62rem)/1.25 var(--mono); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ask-cmd code { font-size: inherit; }
.ask-why { margin-top: 10px; max-width: 30em; color: var(--ink-2); }
.ask-act { display: none; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.js .ask-act { display: flex; }
.sq { min-width: 124px; padding: 12px 22px 11px; background: transparent; border: 1.5px solid var(--ink); border-radius: 2px; color: var(--ink); font: 600 .95rem/1 var(--sans); }
.sq:hover { background: var(--sunk); }
.sq-fill { background: var(--ink); color: var(--bg); }
.sq-fill:hover { background: var(--ink-2); border-color: var(--ink-2); }
.sq:active { transform: translateY(1px); }
.idle { margin-top: 12px; padding-top: 16px; border-top: 4px solid var(--rule); font: 400 clamp(1.12rem, 1.95vw, 1.62rem)/1.25 var(--display); color: var(--ink-3); }
.done { margin-top: 12px; padding-top: 16px; border-top: 4px solid var(--ink); }
.duo[data-state="approved"] .done { border-top-color: var(--green); }
.done-t { max-width: 22em; font: 400 clamp(1.12rem, 1.95vw, 1.62rem)/1.25 var(--display); }
.done-act { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: .95rem; font-weight: 600; }
.lnk { padding: 0; background: none; border: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--seal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.lnk:hover { color: var(--seal-text); }

.demo-note { margin-top: clamp(20px, 2.6vw, 30px); max-width: 62em; font-size: .86rem; line-height: 1.5; color: var(--ink-3); }
.demo-note code { font-size: .86em; }
.demo-note b { font: 600 .9em/1 var(--mono); letter-spacing: .06em; }
.k-allow { color: var(--allow-text); }
.k-deny { color: var(--seal-text); }
.k-ask { color: var(--ask-text); }

/* what it is, and how to get it */
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 33rem); gap: clamp(28px, 4.4vw, 64px); align-items: start; margin-top: clamp(26px, 3.6vw, 44px); padding-top: clamp(24px, 3.2vw, 38px); border-top: 3px double var(--rule-2); }
.lede { font: 400 clamp(1.1rem, 1.55vw, 1.36rem)/1.42 var(--display); letter-spacing: -.008em; font-variation-settings: "SOFT" 0; }
.ships { margin-top: 14px; max-width: 44em; font-size: .92rem; color: var(--ink-3); }
.install { padding: 16px 20px 15px; background: var(--ink); color: var(--bg); border-radius: 2px; }
.install-head { padding-bottom: 11px; font-size: .86rem; font-weight: 500; }
.inst { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--bg) 24%, transparent); }
.inst code { flex: 1; min-width: 0; font-size: .84rem; line-height: 1.5; overflow-wrap: anywhere; }
.inst-copy { flex: none; padding: 0; background: none; border: 0; color: inherit; font: 500 .8rem/1.5 var(--sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; opacity: .78; }
.inst-copy:hover, .inst-copy.done { opacity: 1; }
.install :focus-visible { outline-color: var(--bg); }
.install-note { padding-top: 11px; border-top: 1px solid color-mix(in srgb, var(--bg) 24%, transparent); font-size: .84rem; opacity: .8; }
.install-note code { font-size: .88em; }

@media (max-width: 860px) {
  .duo::before { display: none; }
  .duo-h, .st { grid-template-columns: minmax(0, 1fr); }
  .duo-h span { display: block; }
  .h-own { margin-top: .08em; }
  .st { padding-top: 30px; border-top: 1px solid var(--rule-2); }
  .st-no { top: 9px; left: 0; width: auto; margin: 0; padding: 0; background: none; }
  .st-work { padding-top: 0; border-top: 0; }
  .st-own { margin-top: 22px; padding: 2px 0 2px 16px; border-top: 0; border-left: 2px solid var(--seal); }
  .js .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabs [role="tab"]:nth-child(3) { grid-column: auto; }
  .js .scenes > .st { padding-top: 20px; border-top: 0; }
  .js .scenes .st-work { padding-top: 0; }
  .js .scenes .st-own { padding-top: 2px; }
}
@media (max-width: 1040px) { .band { grid-template-columns: minmax(0, 1fr); } .install { max-width: 33rem; } }
@media (max-width: 480px) {
  .tabs [role="tab"] { padding-right: 6px; font-size: .86rem; }
  .tabs span { display: block; margin: 0 0 6px; }
  .reg { font-size: .82rem; }
  .reg li { grid-template-columns: 1.7em minmax(0, 1fr) 3.6em; column-gap: 6px; }
  .sq { flex: 1; min-width: 0; }
  .install { padding-inline: 16px; }
}

/* command boxes (quick start) */
.cmd { display: flex; align-items: stretch; background: var(--term-bg); color: var(--term-ink); border: 1px solid var(--term-rule); border-radius: 2px; overflow: hidden; }
.cmd + .cmd { margin-top: 8px; }
.cmd code { flex: 1; min-width: 0; padding: 12px 14px; font-size: .84rem; line-height: 1.5; overflow-wrap: anywhere; }
.cmd code::before { content: "> "; color: var(--term-ask); }
.copy { flex: none; min-width: 74px; padding: 0 14px; background: transparent; border: 0; border-left: 1px solid var(--term-rule); color: var(--term-ink-2); font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.copy:hover { background: rgba(244, 239, 230, .08); color: var(--term-ink); }
.copy:focus-visible { outline-color: var(--term-ask); outline-offset: -3px; }
.copy.done { color: var(--term-allow); }

/* ----------------------------- sections ----------------------------- */
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec-tint, .sec-pg { background-color: var(--sunk); border-block: 1px solid var(--rule); }
.sec-pg { margin-top: clamp(48px, 7vw, 96px); }
.sec-head { margin-bottom: clamp(30px, 4vw, 52px); }
.sec-no { display: flex; align-items: baseline; gap: 14px; padding-top: 13px; border-top: 3px double var(--rule-2); font-size: .9rem; line-height: 1.3; color: var(--ink-3); }
.sec-no span { min-width: 1.6em; font: 600 1rem/1.2 var(--display); color: var(--seal-text); font-variation-settings: "SOFT" 0, "WONK" 0; }
h2 { margin-top: 20px; font: 340 clamp(1.95rem, 4.1vw, 3.15rem)/1.06 var(--display); letter-spacing: -.026em; color: var(--ink-2); font-variation-settings: "SOFT" 0, "WONK" 0; text-wrap: balance; max-width: 21em; }
h2 em { font-style: normal; font-weight: 640; color: var(--ink); }
h3 { font: 600 1.28rem/1.22 var(--display); letter-spacing: -.01em; font-variation-settings: "SOFT" 0; }
h4 { font: 600 1.06rem/1.3 var(--display); }
.sec-lede { margin-top: 18px; max-width: 46em; color: var(--ink-2); font-size: 1.05rem; }
.sec-lede code, .small code, .cfg-head p code, .limits code, .gate-row > span > code, .steps p code { padding: 1px 5px; background: var(--raised); border: 1px solid var(--rule); border-radius: 2px; }
.sec-tint .sec-lede code, .sec-pg .sec-lede code { background: var(--bg); }

.reveal-on .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal-on .reveal.in { opacity: 1; transform: none; }

/* ---------------------------- playground ---------------------------- */
.pg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 1020px) {
  .pg { grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); grid-template-areas: "term cases" "cfg cases"; align-items: start; gap: 24px 36px; }
  .term { grid-area: term; }
  .cases { grid-area: cases; }
  .cfg { grid-area: cfg; }
}

.term { position: relative; background: var(--term-bg); color: var(--term-ink); border: 1px solid var(--term-rule); border-radius: var(--radius); overflow: hidden; }
.term :focus-visible { outline-color: var(--term-ask); }
.term-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 11px 16px; background: var(--term-bar); border-bottom: 1px solid var(--term-rule); font: 500 .74rem/1.3 var(--mono); color: var(--term-ink-2); }
.term-name { display: inline-flex; align-items: center; gap: 8px; color: var(--term-ink); letter-spacing: .02em; }
.term-name img, .term-name svg { display: block; }
.engine { display: inline-flex; align-items: center; gap: 8px; }
.engine i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #6F675C; }
.engine[data-state="loading"] i { background: var(--term-ask); }
.motion .engine[data-state="loading"] i { animation: pulse 1s ease-in-out infinite; }
.engine[data-state="ready"] i { background: var(--term-allow); box-shadow: 0 0 0 3px rgba(119, 198, 151, .18); }
.engine[data-state="failed"] i { background: var(--term-deny); }
@keyframes pulse { 50% { opacity: .25; } }

.term-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 18px 16px 16px; border-bottom: 1px solid var(--term-rule); }
.prompt { font: 500 .9rem/1 var(--mono); color: var(--term-ink-2); white-space: nowrap; }
.prompt span { color: var(--term-ask); margin-right: 4px; }
#pg-input { width: 100%; min-width: 0; padding: 10px 2px; background: transparent; border: 0; border-bottom: 1.5px solid rgba(244, 239, 230, .28); border-radius: 0; color: var(--term-ink); font: 500 1rem/1.3 var(--mono); caret-color: var(--term-deny); }
#pg-input::placeholder { color: #8A8174; opacity: 1; }
#pg-input:focus { outline: none; border-bottom-color: var(--term-ask); }
#pg-input:focus-visible { outline: none; box-shadow: 0 2px 0 var(--term-ask); }
.run { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 18px; background: var(--seal); color: #fff; border: 0; border-radius: 2px; font-weight: 600; font-size: .95rem; }
.run:hover { background: #B93A2A; }
.run:active { transform: translateY(1px); }
.run kbd { font: 500 .66rem/1 var(--mono); padding: 4px 6px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 2px; letter-spacing: .04em; }
@media (max-width: 620px) {
  .term-in { grid-template-columns: minmax(0, 1fr) auto; }
  .prompt { grid-column: 1 / -1; }
  .run kbd { display: none; }
  .run { padding: 10px 16px; }
}

.term-out { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "raw stamp" "load load" "after after"; gap: 14px 20px; align-items: start; min-height: 232px; padding: 22px 18px 18px; }
.gatebar { position: absolute; inset: 0 0 auto 0; height: 3px; background: transparent; transform-origin: left center; }
.term-out[data-verdict="allow"] .gatebar { background: var(--term-allow); }
.term-out[data-verdict="ask"] .gatebar { background: var(--term-ask); }
.term-out[data-verdict="deny"] .gatebar { background: var(--term-deny); }
.motion .term-out.hit .gatebar { animation: wipe .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.raw { grid-area: raw; margin: 0; min-width: 0; font: 400 .84rem/1.62 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--term-ink-2); }
.raw .v { font-weight: 600; letter-spacing: .04em; }
.raw .l1 { color: var(--term-ink); }
.term-out[data-verdict="allow"] .raw .v { color: var(--term-allow); }
.term-out[data-verdict="ask"] .raw .v { color: var(--term-ask); }
.term-out[data-verdict="deny"] .raw .v { color: var(--term-deny); }
.term-out[data-verdict="error"] .raw, .term-out[data-verdict="unavailable"] .raw { color: var(--term-ink); }

.stamp { grid-area: stamp; justify-self: end; display: grid; justify-items: end; gap: 6px; min-width: 132px; max-width: 190px; margin: 0; padding: 10px 0 0; border-top: 4px solid currentColor; color: #6F675C; text-align: right; user-select: none; }
.stamp-word { font: 640 2.1rem/1 var(--display); letter-spacing: -.01em; font-variation-settings: "SOFT" 0, "WONK" 0; }
.stamp-sub { font: 600 .64rem/1.25 var(--mono); letter-spacing: .1em; text-transform: uppercase; overflow-wrap: anywhere; }
.term-out[data-verdict="idle"] .stamp, .term-out[data-verdict="loading"] .stamp, .term-out[data-verdict="unavailable"] .stamp, .term-out[data-verdict="error"] .stamp { opacity: .55; border-top-color: rgba(244, 239, 230, .3); }
.term-out[data-verdict="allow"] .stamp { color: var(--term-allow); }
.term-out[data-verdict="ask"] .stamp { color: var(--term-ask); }
.term-out[data-verdict="deny"] .stamp { color: var(--term-deny); }
.motion .term-out.hit .stamp { animation: stamp-hit .3s ease-out both; }
@keyframes stamp-hit { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.loading { grid-area: load; }
.loading[hidden] { display: none; }
.loading p { margin-top: 10px; font-size: .84rem; color: var(--term-ink-2); }
.loading-bar { height: 4px; border-radius: 2px; overflow: hidden; background: rgba(244, 239, 230, .12); }
.loading-bar i { display: block; width: 34%; height: 100%; background: var(--term-ask); border-radius: 2px; }
.motion .loading-bar i { animation: slide 1.25s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(310%); } }

.after { grid-area: after; padding: 2px 0 2px 14px; border-left: 3px solid rgba(244, 239, 230, .2); font-size: .9rem; line-height: 1.5; color: var(--term-ink); max-width: 46em; }
.after:empty { display: none; }
.term-out[data-verdict="allow"] .after { border-left-color: var(--term-allow); }
.term-out[data-verdict="ask"] .after { border-left-color: var(--term-ask); }
.term-out[data-verdict="deny"] .after { border-left-color: var(--term-deny); }
.after button { margin-left: 6px; padding: 3px 10px; background: transparent; border: 1px solid rgba(244, 239, 230, .4); border-radius: 2px; color: var(--term-ink); font-size: .84rem; }
.after button:hover { background: rgba(244, 239, 230, .1); }

.term-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 11px 16px; border-top: 1px solid var(--term-rule); background: var(--term-bar); font: 400 .72rem/1.45 var(--mono); color: var(--term-ink-2); }
.src:empty { display: none; }
.src[data-source="live"] { color: var(--term-allow); }
.src[data-source="recorded"] { color: var(--term-ask); }

@media (max-width: 620px) {
  .term-out { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stamp" "raw" "load" "after"; padding-top: 24px; }
  .stamp { justify-self: start; justify-items: start; text-align: left; margin: 0 0 4px; }
}

/* cases */
.cases h3 { font-size: 1.4rem; }
.cases-sub { margin-top: 4px; font-size: .9rem; color: var(--ink-2); }
.case-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.case-group h4 { flex: 0 0 100%; font: 600 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.case, .try { display: inline-flex; align-items: center; max-width: 100%; padding: 7px 11px; background: var(--raised); border: 1px solid var(--rule-2); border-radius: 2px; text-align: left; line-height: 1.4; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.case code, .try code, .limits .try code, .gate-row .try code { padding: 0; background: none; border: 0; font-size: .78rem; overflow-wrap: anywhere; }
.case:hover, .try:hover { border-color: var(--ink); }
.case:active, .try:active { transform: translateY(1px); }
.case.is-active { border-color: var(--seal); box-shadow: inset 3px 0 0 var(--seal); background: var(--bg); }
.try::after { content: "run"; flex: none; margin-left: 10px; padding-left: 9px; border-left: 1px solid var(--rule-2); font: 600 .62rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--seal-text); }
.try-inline { padding: 3px 8px; vertical-align: baseline; }
.try-block { display: flex; width: 100%; justify-content: space-between; }

/* config */
.cfg { background: var(--raised); border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 20px 20px 14px; }
.cfg-head h3 { font: 600 .92rem/1.2 var(--mono); letter-spacing: 0; }
.cfg-head h3 code { font-size: 1em; }
.cfg-head p { margin-top: 6px; font-size: .88rem; color: var(--ink-2); }
.cfg-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px dashed var(--rule-2); margin-top: 14px; }
.cfg-row + .cfg-row { margin-top: 0; }
.cfg-key { padding: 5px 0 0; font: 600 .78rem/1.2 var(--mono); color: var(--seal-text); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { display: inline-flex; align-items: center; background: var(--amber-wash); border: 1px solid var(--rule-2); border-radius: 2px; font-size: .9rem; }
.tags code { padding: 4px 4px 4px 9px; font-size: .78rem; overflow-wrap: anywhere; }
.tags button { display: grid; place-items: center; width: 28px; height: 28px; background: none; border: 0; border-radius: 2px; color: var(--ink-2); font: 500 1rem/1 var(--mono); }
.tags button:hover { color: var(--seal-text); background: var(--seal-wash); }
.tags .none { padding: 5px 9px; font: 400 .78rem/1.3 var(--mono); color: var(--ink-3); background: none; border-style: dashed; }
.tag-add { display: flex; gap: 6px; margin-top: 8px; }
.tag-add input, .modes select { min-width: 0; background: var(--bg); border: 1px solid var(--rule-2); border-radius: 2px; font: 400 .8rem/1.3 var(--mono); }
.tag-add input { flex: 1; padding: 7px 9px; }
.tag-add button { padding: 6px 14px; background: var(--ink); color: var(--bg); border: 0; border-radius: 2px; font-size: .84rem; font-weight: 500; }
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 8px 14px; }
.modes label { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; font: 500 .72rem/1.2 var(--mono); letter-spacing: .03em; }
.modes select { padding: 5px 6px; }
@media (max-width: 420px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; } .modes label { font-size: .64rem; letter-spacing: 0; gap: 6px; } }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; line-height: 1.45; padding-top: 3px; }
.check input { flex: none; width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--seal); }
.cfg-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-top: 12px; border-top: 1px dashed var(--rule-2); font-size: .84rem; color: var(--ink-2); }
.linkish { padding: 2px 0; background: none; border: 0; text-decoration: underline; text-decoration-color: var(--seal); text-underline-offset: 3px; font-size: .84rem; }
.linkish:hover { color: var(--seal-text); }
.cfg :disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 480px) {
  .cfg { padding: 16px 14px 12px; }
  .cfg-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* ------------------------------ diagram ------------------------------ */
.diagram { background: var(--raised); border: 1px solid var(--rule-2); border-radius: 2px; padding: clamp(14px, 2.4vw, 30px); }
.dg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.dg rect { rx: 2px; ry: 2px; }
.dg-narrow { display: none; max-width: 440px; margin-inline: auto; }
@media (max-width: 1099px) { .dg-wide { display: none; } .dg-narrow { display: block; } }

.dg-lane { fill: var(--bg); stroke: var(--rule); }
.dg-lane-you { fill: var(--seal-wash); stroke: none; }
.dg-lane-hook { fill: var(--sunk); }
.dg-lane-disk { fill: none; stroke: var(--rule-2); stroke-dasharray: 3 5; }
.dg-lab { font: 600 12px var(--mono); letter-spacing: .14em; fill: var(--ink); }
.dg-lab-you { fill: var(--seal-text); }
.dg-sub { font: 400 12.5px var(--sans); fill: var(--ink-3); }
.dg-mono { font: 400 12px var(--mono); }
.dg-col { font: 600 19px var(--display); fill: var(--ink); }
.dg-num { font: 400 20px var(--display); fill: var(--ink-3); }
.dg-arrow { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.dg-arrow-ask { stroke: var(--ask-text); stroke-width: 2; }
.dg-loop { stroke: var(--seal-text); stroke-dasharray: 5 5; }
.dg-head { fill: var(--ink-2); }
.dg-head-ask { fill: var(--ask-text); }
.dg-head-loop { fill: var(--seal-text); }
.dg-note { font: italic 400 12px var(--sans); fill: var(--ink-3); }
.dg-note-ask { fill: var(--ask-text); font-style: normal; font-weight: 500; }
.dg-note-loop { fill: var(--seal-text); font: italic 400 14px var(--display); }
.dg-node rect { fill: var(--raised); stroke: var(--rule-2); stroke-width: 1.25; }
.dg-node-you rect { stroke: var(--seal); stroke-width: 1.5; }
.dg-node-hook > rect { fill: var(--term-bg); stroke: var(--rule-2); }
.dg-node-disk rect { fill: var(--bg); stroke-dasharray: 4 4; }
.dg-t { font: 400 13px var(--sans); fill: var(--ink-2); }
.dg-h { font: 600 14px var(--sans); fill: var(--ink); }
.dg-code { font: 500 12.5px var(--mono); fill: var(--ink); }
.dg-node-hook .dg-t { fill: var(--term-ink-2); }
.dg-node-hook .dg-h { fill: var(--term-ink); }
.dg-pill rect { stroke: none; }
.dg-pill text { font: 600 10.5px var(--mono); letter-spacing: .08em; fill: #12100E; }
.dg-pill-allow rect { fill: var(--term-allow); }
.dg-pill-ask rect { fill: var(--term-ask); }
.dg-pill-deny rect { fill: var(--term-deny); }
.dg-card { fill: var(--bg); stroke: var(--rule-2); stroke-width: 1.25; }
.dg-tag rect { fill: var(--ink); }
.dg-tag text { font: 600 9.5px var(--mono); letter-spacing: .1em; fill: var(--bg); }
.dg-tag-you rect { fill: var(--seal); }
.dg-tag-you text { fill: #fff; }
.dg-tag-hook rect { fill: var(--term-bg); stroke: var(--rule-2); }
.dg-tag-hook text { fill: var(--term-ink); }
.dg-tag-disk rect { fill: none; stroke: var(--ink-2); stroke-dasharray: 3 3; }
.dg-tag-disk text { fill: var(--ink); }
.dg-narrow .dg-t { font-size: 12.5px; }

.reveal-on .diagram .dg-arrow { opacity: 0; transition: opacity .5s ease .35s; }
.reveal-on .diagram.in .dg-arrow { opacity: 1; }
.reveal-on .diagram .dg-loop { transition-delay: .9s; }

/* below the diagram */
.how-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 60px); margin-top: clamp(40px, 5vw, 68px); align-items: start; }
@media (max-width: 900px) { .how-grid { grid-template-columns: minmax(0, 1fr); } }
.tree { margin: 16px 0 14px; padding: 18px 20px 10px; background: var(--raised); border: 1px solid var(--rule-2); border-radius: var(--radius); }
.tree-root { font: 600 .9rem/1 var(--mono); color: var(--seal-text); }
.tree dl { margin: 10px 0 0 5px; border-left: 1.5px solid var(--rule-2); }
.tree dl > div { position: relative; display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 4px 14px; padding: 7px 0 7px 22px; }
.tree dl > div::before { content: ""; position: absolute; left: 0; top: 19px; width: 14px; border-top: 1.5px solid var(--rule-2); }
.tree dt { font: 500 .8rem/1.6 var(--mono); }
.tree dd { font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 520px) { .tree dl > div { grid-template-columns: minmax(0, 1fr); gap: 0; } .tree { padding: 16px 14px 8px; } }
.side { display: grid; gap: 38px; }
.checks .small, .ships .small { margin-top: 8px; }
.checklist { margin-top: 14px; border-top: 1px solid var(--rule-2); }
.checklist > div { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.checklist dt code { font-size: .84rem; font-weight: 600; }
.checklist dt code::after { content: "PASS / FAIL"; margin-left: 12px; padding: 2px 6px; border: 1px solid var(--rule-2); border-radius: 2px; font-size: .62rem; font-weight: 500; letter-spacing: .08em; color: var(--ink-3); vertical-align: 1px; }
.checklist dd { margin-top: 4px; font-size: .9rem; color: var(--ink-2); }
.skill-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.skill-list li { padding: 4px 9px; background: var(--raised); border: 1px solid var(--rule-2); border-radius: 2px; font: 500 .76rem/1.3 var(--mono); }

/* ------------------------------ ledger ------------------------------ */
.ledger { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; align-items: stretch; }
@media (max-width: 860px) { .ledger { grid-template-columns: minmax(0, 1fr); } }
.ledger-col { position: relative; padding: 30px clamp(18px, 2.6vw, 32px) 26px; border-radius: var(--radius); }
.ledger-hard { background: var(--raised); border: 2px solid var(--ink); }
.ledger-soft { border: 2px dashed var(--rule-2); }
.ledger-tag { position: absolute; top: -12px; left: 22px; padding: 5px 10px; background: var(--ink); color: var(--bg); border-radius: 2px; font: 600 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.ledger-soft .ledger-tag { background: var(--sunk); color: var(--ink-2); border: 1px dashed var(--rule-2); }
.ledger-sub { margin-top: 8px; font-size: .92rem; color: var(--ink-2); }
.ledger dl { margin-top: 18px; }
.ledger dl > div { padding: 14px 0; border-top: 1px solid var(--rule-2); }
.ledger dt { font: 600 .82rem/1.4 var(--mono); }
.ledger dt span { display: inline-block; margin-left: 6px; font: 400 .8rem/1.4 var(--sans); color: var(--ink-3); }
.ledger dd { margin-top: 5px; font-size: .93rem; color: var(--ink-2); }
.ledger ul { margin-top: 18px; }
.ledger li { position: relative; padding: 11px 0 11px 24px; border-top: 1px dashed var(--rule-2); font-size: .95rem; }
.ledger li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 10px; border-top: 1.5px dashed var(--ink-3); }
.ledger-foot { margin-top: 30px; font-size: .95rem; color: var(--ink-2); }

/* ------------------------------- gates ------------------------------- */
.gates { border-top: 2px solid var(--ink); }
.gates-head, .gate-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 300px); gap: 12px 28px; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--rule-2); }
.gates-head { padding-block: 10px; font: 600 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.gate-row > span { font-size: .95rem; color: var(--ink-2); min-width: 0; }
.gate-row .gate-name { display: inline-flex; align-items: center; gap: 10px; font: 600 .86rem/1 var(--mono); letter-spacing: .06em; color: var(--ink); }
.gate-name::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--amber); transform: rotate(45deg); }
@media (max-width: 800px) {
  .gates-head { display: none; }
  .gate-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 18px; }
}

.denied { margin-top: clamp(48px, 6vw, 84px); }
.denied-head p { margin-top: 8px; color: var(--ink-2); max-width: 44em; }
.denied-head h3 { font-size: 1.62rem; }
.denied-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
@media (max-width: 900px) { .denied-list { grid-template-columns: minmax(0, 1fr); } }
.denied-list li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 20px 20px; background: var(--raised); border: 1px solid var(--rule-2); border-top: 3px solid var(--seal); border-radius: 2px; }
.denied-list h4 { padding-right: 76px; margin-bottom: 6px; font-size: 1.14rem; }
.denied-list p { margin-top: 6px; font-size: .92rem; color: var(--ink-2); }
.mini-stamp { position: absolute; top: 28px; right: 20px; color: var(--seal-text); font: 600 .76rem/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.denied-foot { margin-top: 24px; font-size: .95rem; color: var(--ink-2); line-height: 2; }

/* ---------------------------- quick start ---------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 20px; padding: 24px 24px 24px; background: var(--raised); border: 1px solid var(--rule-2); border-radius: var(--radius); }
.steps li::before { content: counter(step); grid-row: 1 / span 2; min-width: 44px; margin-top: -6px; font: 300 3.6rem/1 var(--display); color: var(--ink-3); font-variation-settings: "SOFT" 0, "WONK" 0; }
.steps h3 { align-self: end; }
.steps p { margin: 8px 0 18px; font-size: .95rem; color: var(--ink-2); }
.steps .cmd { grid-column: 1 / -1; }
.steps .cmd code { padding: 12px; font-size: .78rem; }
.steps .copy { min-width: 64px; padding: 0 10px; }
@media (max-width: 520px) { .steps li { padding: 18px 16px; column-gap: 14px; } .steps li::before { font-size: 3rem; min-width: 34px; } }

/* ------------------------------- limits ------------------------------- */
.limits { counter-reset: lim; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); border-top: 2px solid var(--ink); }
@media (max-width: 860px) { .limits { grid-template-columns: minmax(0, 1fr); } }
.limits li { counter-increment: lim; padding: 26px 0 28px; border-bottom: 1px solid var(--rule-2); }
.limits li::before { content: "Limit " counter(lim); display: block; margin-bottom: 10px; font: 600 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--seal-text); }
.limits h3 { font-size: 1.42rem; }
.limits p { margin-top: 10px; color: var(--ink-2); font-size: .98rem; }
.limit-try { line-height: 2.2; font-size: .9rem; }

/* ------------------------------- footer ------------------------------- */
.foot { padding: 44px 0 56px; border-top: 3px double var(--rule-2); font-size: .9rem; color: var(--ink-2); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { flex: none; }
.foot-name { font: 600 1.25rem/1.2 var(--display); color: var(--ink); }
.foot-name span { margin-left: 6px; font: 500 .74rem/1 var(--mono); color: var(--ink-3); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-note { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--rule); font-size: .82rem; color: var(--ink-3); max-width: none; }
@media (max-width: 700px) { .foot-in { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------- reduced motion, print ------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .top, .cta, .copy, .run { display: none; }
  body { background: #fff; }
}

/* ------------------------------ privacy and terms page ------------------------------ */
.legal { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); }
.legal .wrap { max-width: 820px; }
.legal h1 { margin-top: 22px; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.legal-lede { margin-top: 22px; font: 400 clamp(1.08rem, 1.5vw, 1.25rem)/1.5 var(--display); color: var(--ink-2); font-variation-settings: "SOFT" 0; }
.legal h2 { margin-top: 52px; font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 500; color: var(--ink); }
.legal p, .legal ul { margin-top: 14px; color: var(--ink-2); }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li::marker { color: var(--seal-text); }
.legal li + li { margin-top: 8px; }
.legal li b { color: var(--ink); font-weight: 600; }
.legal code { padding: 1px 5px; background: var(--raised); border: 1px solid var(--rule); border-radius: 2px; font: 500 .88em/1 var(--mono); }
.legal a { color: var(--ink); text-decoration-color: var(--seal); text-underline-offset: 3px; }
