/* Hallmark stamp
   shape: Stage hero (live "paid lane" scene, pausable) > Feature Stack (sticky terminal synced to 4 real steps) > Ledger as a request log > Split (402 JSON read field by field) > Index > Conversational FAQ > Committed close band (toll) > footer
   theme: LicenRoute brand system, modern-minimal; posture Restrained, Committed only in the close band
   type: Bricolage Grotesque 700 display, IBM Plex Sans 400/600 body, IBM Plex Mono 400 for code only
   motion: one orchestrated scene (hero) + scroll-synced steps; transforms/opacity only; everything static under prefers-reduced-motion and without JS
   chrome: edge-aligned one-line nav; footer with closing line, real links, legal line
   waivers: 47b one terminal panel holds real CLI output; the scene is text pills on a route, not a drawn illustration
*/
@import url("fonts/fonts.css?v=202611211734");

:root {
  /* paper/ink/neutrals tinted toward the toll hue (oklch h≈80) */
  --paper: oklch(97.5% 0.007 85);
  --surface: oklch(99.3% 0.004 85);
  --line: oklch(89.5% 0.010 85);
  --line-strong: oklch(62% 0.014 80);
  --ink: oklch(21.5% 0.012 75);
  --ink-muted: oklch(47% 0.016 75);
  --toll: #f2a516;
  --on-toll: oklch(21.5% 0.012 75);
  --toll-ink: #8a5600;
  --toll-tint: oklch(95% 0.045 85);
  --route: #0d7a62;
  --deny: #c2362f;
  --focus: var(--toll-ink);
  --night: oklch(16% 0.008 75);
  --night-ink: oklch(91% 0.008 85);
  --night-raised: oklch(22% 0.010 75);
  --night-muted: oklch(64% 0.012 80);
  --night-toll: #f2a516;
  --night-route: #56d39a;
  --night-deny: #ff7b72;
  --shadow-term: 0 24px 60px -30px oklch(16% 0.008 75 / 0.55);

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-sans: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px;
  --gap-1: 120px; --gap-2: 144px; --gap-3: 176px;
  --container: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: oklch(17% 0.008 75); --surface: oklch(21.5% 0.009 75); --line: oklch(31% 0.010 75); --line-strong: oklch(52% 0.012 75);
    --ink: oklch(94% 0.006 85); --ink-muted: oklch(74% 0.012 80); --toll-ink: #f5b83d; --toll-tint: oklch(29% 0.045 80);
    --route: #3fc39e; --deny: #ff7d72; --night: oklch(13% 0.008 75);
    --shadow-term: 0 24px 60px -30px oklch(0% 0 0 / 0.8); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: oklch(17% 0.008 75); --surface: oklch(21.5% 0.009 75); --line: oklch(31% 0.010 75); --line-strong: oklch(52% 0.012 75);
  --ink: oklch(94% 0.006 85); --ink-muted: oklch(74% 0.012 80); --toll-ink: #f5b83d; --toll-tint: oklch(29% 0.045 80);
  --route: #3fc39e; --deny: #ff7d72; --night: oklch(13% 0.008 75);
  --shadow-term: 0 24px 60px -30px oklch(0% 0 0 / 0.8); color-scheme: dark;
}
@media (max-width: 760px) { :root { --gap-1: 80px; --gap-2: 96px; --gap-3: 112px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font-sans); font-synthesis: none; -webkit-font-smoothing: antialiased; }
a { color: var(--toll-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
code, pre, kbd { font-family: var(--font-mono); font-size: 0.92em; }
:not(pre) > code { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.05em 0.35em; }
img, svg { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--container); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: var(--radius-md); z-index: 20; }
.skip:focus { left: 8px; }

/* Nav: one line, edge-aligned */
header.site { border-bottom: 1px solid var(--line); background: var(--paper); }
header.site .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 22px/1 var(--font-display); letter-spacing: -0.02em; }
.brand img { width: 34px; height: auto; }
nav.top { margin-left: auto; display: flex; gap: 22px; font-size: 15px; white-space: nowrap; }
nav.top a { color: var(--ink-muted); text-decoration: none; }
nav.top a:hover { color: var(--ink); }
@media (max-width: 520px) { nav.top .opt { display: none; } }

/* Type */
.h-hero { font: 700 clamp(44px, 6.2vw, 84px)/1.02 var(--font-display); letter-spacing: -0.035em; }
.h-sec { font: 700 clamp(32px, 3.7vw, 52px)/1.06 var(--font-display); letter-spacing: -0.025em; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-muted); max-width: 40ch; }
.intro { font-size: 18px; color: var(--ink-muted); max-width: 60ch; margin-top: 14px; }

/* Buttons: one filled recipe */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius-md); font: 600 16px/1 var(--font-sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out; }
.btn-primary { background: var(--toll); color: var(--on-toll); }
.btn-primary:hover { background: var(--toll-ink); color: var(--paper); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--ink); }

/* Hero (Counter): headline + one sentence, then the prompt as the visual and the action */
.hero { padding-top: 64px; }
.hero-grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 56px; } }
.hero .h-hero { margin-bottom: 22px; }
.hero .facts { margin-top: 26px; font-size: 15px; color: var(--ink-muted); max-width: 42ch; }
.prompt { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 26px 26px 22px; }
.prompt-head { font-size: 15px; color: var(--ink-muted); margin-bottom: 14px; }
.prompt pre { margin: 0; font-size: 15.5px; line-height: 1.65; white-space: pre-wrap; color: var(--ink); }
.prompt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.prompt-actions .note { font-size: 15px; color: var(--ink-muted); }

/* Sections and their spacing (mixed) */
.sec { padding-top: var(--gap-2); }
.sec.g1 { padding-top: var(--gap-1); }
.sec.g3 { padding-top: var(--gap-3); }
.band { margin-top: var(--gap-2); padding-block: 96px; background: var(--surface); border-block: 1px solid var(--line); }
.band.g1 { margin-top: var(--gap-1); }

/* Showcase: one real terminal across the container */
.showcase .term { margin-top: 36px; }
.term { background: var(--night); color: var(--night-ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-term); overflow: hidden; }
.term pre { margin: 0; padding: 32px clamp(18px, 3vw, 40px); font-size: clamp(12.5px, 1.15vw, 16.5px); line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.term .p, .term .pay { color: var(--night-toll); }
.term .ok { color: var(--night-route); }
.term .deny { color: var(--night-deny); }
.term .c { color: var(--night-muted); }
.term .cursor { display: inline-block; width: 0.55em; height: 1.1em; vertical-align: -0.18em; background: var(--night-ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term .cursor { animation: none; } }
.caption { margin-top: 14px; font-size: 14px; color: var(--ink-muted); }

/* Ledger */
.ledger { display: grid; gap: 28px; }
@media (min-width: 900px) { .ledger { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; } }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th, td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
th { font: 600 14px/1.3 var(--font-sans); color: var(--ink-muted); }
tbody tr:last-child td { border-bottom: 0; }
.code { font: 400 16px/1 var(--font-mono); font-variant-numeric: tabular-nums; margin-right: 8px; }
.code.ok { color: var(--route); } .code.pay { color: var(--toll-ink); } .code.deny { color: var(--deny); }

/* Workflow: real sequence, numerals carry the order */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .steps li { grid-template-columns: 120px minmax(0, 4fr) minmax(0, 6fr); align-items: baseline; } }
.steps .n { font: 700 clamp(40px, 4vw, 56px)/1 var(--font-display); color: var(--line-strong); letter-spacing: -0.03em; grid-row: span 2; }
@media (min-width: 900px) { .steps .n { grid-row: auto; } }
.steps li:nth-child(2) .n { color: var(--toll-ink); }
.steps h3 { font: 600 21px/1.3 var(--font-sans); }
.steps p { color: var(--ink-muted); }

/* Split: text + code */
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; } }
pre.block { margin: 0; background: var(--night); color: var(--night-ink); border-radius: var(--radius-lg); padding: 24px 26px; font-size: 14.5px; line-height: 1.7; overflow-x: auto; }
pre.block .c { color: var(--night-muted); }
pre.block .pay { color: var(--night-toll); }

/* Index: two lists */
.index { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 900px) { .index { grid-template-columns: 1fr 1fr; gap: 64px; } }
.index h3 { font: 600 21px/1.3 var(--font-sans); padding-bottom: 14px; border-bottom: 2px solid var(--route); }
.index .no h3 { border-bottom-color: var(--line-strong); }
.index ul { list-style: none; padding: 0; margin: 0; }
.index li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.index .no li { color: var(--ink-muted); }
.index .more { margin-top: 20px; }

/* FAQ, open at rest */
.qa { display: grid; gap: 36px; margin-top: 40px; }
@media (min-width: 900px) { .qa { grid-template-columns: 1fr 1fr 1fr; gap: 48px; } }
.qa h3 { font: 600 19px/1.35 var(--font-sans); margin-bottom: 10px; }
.qa p { color: var(--ink-muted); }

/* Command strip (close) */
.close { margin-top: var(--gap-3); padding-block: 88px; background: var(--toll-tint); }
.close-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .close-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; } }
.close .links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
footer.site { padding-block: 64px 48px; }
footer.site .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { footer.site .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
footer.site nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; align-content: start; }
footer.site nav a { color: var(--ink-muted); }
footer.site .legal { font-size: 14px; color: var(--ink-muted); margin-top: 12px; }

/* Guides (long-form) */
.prose { max-width: 740px; margin: 0 auto; padding: 56px 20px 88px; }
.prose h1 { font: 700 clamp(34px, 4.6vw, 52px)/1.06 var(--font-display); letter-spacing: -0.025em; margin: 10px 0 12px; }
.prose h2 { font: 700 clamp(24px, 2.6vw, 30px)/1.15 var(--font-display); letter-spacing: -0.015em; margin: 48px 0 14px; }
.prose h3 { font: 600 20px/1.3 var(--font-sans); margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li + li { margin-top: 6px; }
.prose pre.block { margin: 18px 0; }
.prose .table-wrap { margin: 18px 0; }
.prose table { font-size: 16px; }
.prose .meta, .crumbs { font-size: 15px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); }
.tldr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 20px; margin: 22px 0; }
.tldr p { margin: 0; }
.notice { background: var(--toll-tint); border-radius: var(--radius-md); padding: 16px 20px; margin: 22px 0; }
.guide-cta { border-top: 2px solid var(--toll); padding-top: 22px; margin-top: 40px; }
.guide-cta h2 { margin-top: 0; }
.guide-list { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a { display: grid; gap: 6px; padding: 24px 0; text-decoration: none; color: var(--ink); }
.guide-list a strong { font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--font-display); letter-spacing: -0.015em; }
.guide-list a span { color: var(--ink-muted); }
.guide-list a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose .guide-list { padding-left: 0; }

/* ===== Motion layer ===== */
:root { --ease: cubic-bezier(.2,.7,.2,1); }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--toll); transform-origin: 0 50%; transform: scaleX(0); z-index: 30; }
@media (prefers-reduced-motion: reduce) { .progress { display: none; } }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* Hero (Stage) */
.hero2 { position: relative; padding-top: 72px; overflow: clip; }
.hero2 .top { display: grid; gap: 28px; align-items: end; }
@media (min-width: 980px) { .hero2 .top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } }
.hero2 .h-hero { font-size: clamp(48px, 7vw, 96px); line-height: .98; }
.hero2 .lede { max-width: 34ch; }
.hero2 .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero2 .note { margin-top: 14px; font-size: 15px; color: var(--ink-muted); }
.deco { position: absolute; pointer-events: none; z-index: -1; }
.deco-ticket { right: -200px; top: 350px; width: 520px; height: 300px; border: 2px solid var(--line); border-radius: 28px; }
.deco-ticket::before, .deco-ticket::after { content: ""; position: absolute; top: 50%; width: 64px; height: 64px; margin-top: -32px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); }
.deco-ticket::before { left: -34px; } .deco-ticket::after { right: -34px; }
.deco-perf { position: absolute; left: 150px; top: 30px; bottom: 30px; border-left: 2px dashed var(--line); }

.scene { --lane: 58%; position: relative; margin-top: 48px; height: clamp(300px, 34vw, 420px); background: var(--night); border-radius: 20px; overflow: hidden; color: var(--night-ink); box-shadow: var(--shadow-term); }
.lane { position: absolute; left: 0; right: 0; top: var(--lane); height: 2px; background: repeating-linear-gradient(90deg, var(--night-muted) 0 14px, transparent 14px 26px); opacity: .6; }
html.js .scene:not(.paused) .lane { animation: lane .9s linear infinite; }
@keyframes lane { to { background-position: 26px 0; } }
@media (prefers-reduced-motion: reduce) { html.js .scene .lane { animation: none; } }
.node { position: absolute; top: var(--lane); transform: translateY(-50%); font: 400 13px/1.3 var(--font-mono); color: var(--night-muted); }
.node b { display: block; font: 600 15px/1.2 var(--font-sans); color: var(--night-ink); margin-bottom: 2px; }
.node.from { left: 4%; transform: translateY(calc(-100% - 22px)); }
.node.api { right: 4%; text-align: right; transform: translateY(calc(-100% - 22px)); }
.quota { display: inline-flex; gap: 6px; margin-top: 8px; }
.quota i { width: 12px; height: 12px; border-radius: 50%; background: var(--night-route); transition: background-color .3s var(--ease), transform .3s var(--ease); }
.quota i.used { background: transparent; box-shadow: inset 0 0 0 2px var(--night-muted); }
.booth { position: absolute; left: 62%; top: var(--lane); width: 0; height: 0; }
.booth .tk { position: absolute; left: -46px; top: 18px; width: 92px; height: 56px; background: var(--night-toll); border-radius: 10px; -webkit-mask: radial-gradient(circle at 0 50%, transparent 9px, #000 10px) left/51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 9px, #000 10px) right/51% 100% no-repeat; mask: radial-gradient(circle at 0 50%, transparent 9px, #000 10px) left/51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 9px, #000 10px) right/51% 100% no-repeat; }
.booth .tk::before { content: ""; position: absolute; left: 30px; top: 10px; bottom: 10px; border-left: 3px dashed var(--night); }
.booth .tk span { position: absolute; left: 44px; top: 50%; transform: translateY(-50%); font: 700 13px/1 var(--font-sans); color: var(--night); }
.post { position: absolute; left: -3px; top: -96px; width: 6px; height: 96px; background: var(--night-muted); border-radius: 3px; }
.arm { position: absolute; left: 0; top: -92px; width: 150px; height: 10px; margin-left: -150px; border-radius: 5px; transform-origin: 100% 50%; background: repeating-linear-gradient(90deg, var(--night-ink) 0 18px, var(--night-deny) 18px 36px); transition: transform .55s var(--ease); }
.scene.open .arm { transform: rotate(78deg); }
.bubble { position: absolute; left: 44%; top: 16%; transform: translate(-50%, 8px); padding: 10px 16px; border-radius: 12px; background: var(--night-raised); border: 1px solid var(--night-muted); font: 600 15px/1.2 var(--font-sans); white-space: nowrap; opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.bubble.show { opacity: 1; transform: translate(-50%, 0); }
.bubble b { font: 400 15px/1 var(--font-mono); margin-right: 8px; }
.bubble.pay b { color: var(--night-toll); } .bubble.ok b { color: var(--night-route); } .bubble.deny b { color: var(--night-deny); }
.packet { position: absolute; left: 0; top: var(--lane); transform: translate(-200px, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--night-ink); color: var(--night); font: 400 13px/1 var(--font-mono); white-space: nowrap; will-change: transform; }
.packet .key { padding: 3px 7px; border-radius: 999px; background: var(--night-toll); color: var(--night); }
.packet .key.fake { background: var(--night-deny); }
.scene-cap { position: absolute; left: 4%; bottom: 7%; right: 140px; font: 400 15px/1.4 var(--font-sans); color: var(--night-ink); min-height: 1.4em; }
.scene-btn { position: absolute; right: 16px; bottom: 14px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--night-muted); background: transparent; color: var(--night-ink); font: 600 14px/1 var(--font-sans); cursor: pointer; }
.scene-btn:focus-visible { outline: 2px solid var(--night-toll); outline-offset: 2px; }
html:not(.js) .scene-btn { display: none; }
@media (max-width: 640px) { .post, .arm { display: none; } .node { font-size: 12px; } .node b { font-size: 13px; } .scene-cap { right: 16px; bottom: 60px; } }

/* Feature stack: sticky terminal synced to steps */
.stack { display: grid; gap: 40px; margin-top: 48px; }
@media (min-width: 980px) { .stack { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.step { padding: 8px 0 40px; border-top: 1px solid var(--line); }
@media (min-width: 980px) { .step { min-height: 72vh; padding-top: 28px; } }
.step .n { display: block; font: 700 clamp(56px, 6vw, 88px)/1 var(--font-display); letter-spacing: -0.04em; color: var(--line-strong); transition: color .4s var(--ease); }
.step.active .n { color: var(--toll-ink); }
.step h3 { font: 700 clamp(26px, 2.4vw, 34px)/1.1 var(--font-display); letter-spacing: -0.02em; margin: 14px 0 10px; }
.step p { color: var(--ink-muted); max-width: 40ch; }
.step .panel { margin-top: 22px; }
.viewer { display: none; }
@media (min-width: 980px) {
  html.js .viewer { display: block; position: sticky; top: 96px; align-self: start; }
  html.js .step .panel { display: none; }
}
.viewer .term pre, .step .panel pre { min-height: 0; }
.viewer .term { min-height: 440px; }
.viewer .term pre { transition: opacity .35s var(--ease); }
.viewer .term pre.swap { opacity: 0; }
.viewer-label { margin-top: 12px; font-size: 14px; color: var(--ink-muted); }
.panel .term pre, .viewer .term pre { font-size: 14px; line-height: 1.75; }

/* Ledger as a live log */
html.js .log tbody tr { opacity: 0; transform: translateX(-12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.js .log.in tbody tr { opacity: 1; transform: none; }
html.js .log.in tbody tr:nth-child(2) { transition-delay: .25s; } html.js .log.in tbody tr:nth-child(3) { transition-delay: .5s; }
html.js .log.in tbody tr:nth-child(4) { transition-delay: .75s; } html.js .log.in tbody tr:nth-child(5) { transition-delay: 1s; }
@media (prefers-reduced-motion: reduce) { html.js .log tbody tr { opacity: 1; transform: none; transition: none; } }

/* JSON read by an agent */
pre.block .k { border-radius: 4px; transition: background-color .3s var(--ease), color .3s var(--ease); }
pre.block .k.hot { background: var(--night-toll); color: var(--night); }

/* Committed close band */
.finale { margin-top: var(--gap-3); padding-block: 112px; background: var(--toll); color: var(--on-toll); position: relative; overflow: clip; }
.finale .h-hero { font-size: clamp(44px, 6vw, 84px); max-width: 14ch; }
.finale p { margin-top: 18px; font-size: 19px; max-width: 46ch; }
.finale .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-ink { background: var(--on-toll); color: var(--toll); }
.btn-ink:hover { background: var(--night); }
.btn-line { border-color: var(--on-toll); color: var(--on-toll); background: transparent; }
.btn-line:hover { background: var(--on-toll); color: var(--toll); }
.finale :focus-visible { outline-color: var(--on-toll); }
.finale pre.block { margin-top: 30px; max-width: 760px; }
.finale-notch { position: absolute; top: 50%; width: 120px; height: 120px; margin-top: -60px; border-radius: 50%; background: var(--paper); }
.finale-notch.l { left: -60px; } .finale-notch.r { right: -60px; }
@media (max-width: 760px) { .finale-notch { display: none; } }

@media (max-width: 979px) { .deco { display: none; } }
@media (max-width: 640px) {
  .scene { --lane: 44%; height: 440px; }
  .bubble { left: 50%; top: 9%; }
  .booth { left: 66%; }
  .booth .tk { transform: scale(.85); transform-origin: 50% 0; }
  .scene-cap { left: 20px; right: 20px; bottom: 76px; }
  .node.from { left: 20px; } .node.api { right: 20px; }
}

/* Market v2, B5: API pages */
.prose .lead { font-size: 1.2em; color: var(--ink); margin-bottom: 12px; }
.prose .plan { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 22px; margin: 16px 0; }
.prose .plan h3 { margin-top: 0; }
.prose .plan p:last-child { margin-bottom: 0; }

/* User manual */
.manual { max-width: 860px; }
.manual .note { border-left: 3px solid var(--toll); background: var(--surface); padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15.5px; color: var(--ink-muted); }
.manual .toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0 6px; margin: 28px 0 8px; }
.manual .toc ol { columns: 2 240px; column-gap: 32px; }
.manual h2 { scroll-margin-top: 24px; }
.manual figure.shot { margin: 24px 0 28px; }
.manual figure.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 1px 2px rgb(0 0 0 / 6%); }
.manual figure.shot figcaption { font-size: 14.5px; color: var(--ink-muted); margin-top: 8px; }

/* Holiday pages */
.holidays .cta { margin-top: 36px; }
.holidays table.months th, .holidays table.months td { text-align: center; padding-left: 6px; padding-right: 6px; }
.country-list { list-style: none; padding: 0; columns: 2 260px; column-gap: 32px; }
.country-list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; }
.country-list li span { flex: 1; }
.prose .country-list { padding-left: 0; }

/* Free tools */
.tool { display: grid; gap: 14px; margin: 24px 0 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.tool label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.tool input:not([type=checkbox]), .tool select { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); min-height: 44px; width: 100%; box-sizing: border-box; }
.tool .grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.tool .grid2[hidden] { display: none; }
.tool label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.tool button { justify-self: start; }
.tool-out { margin: 16px 0 8px; padding: 18px 22px; border-left: 3px solid var(--route); background: var(--surface); border-radius: var(--radius-sm); }
.tool-out table { margin: 0; }
.tool-out tr.sum th, .tool-out tr.sum td { font-weight: 700; border-top: 2px solid var(--ink); }
.tool-out td { text-align: right; font-variant-numeric: tabular-nums; }
.tool-out .result { font-size: 1.15em; font-weight: 600; margin: 0 0 8px; }
.tool-out .ok { color: var(--route); }
.tool-out .err, .tools .err { color: var(--deny); }
.tool-out:has(.err) { border-left-color: var(--deny); }

/* Home: built with LicenRoute */
.built { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 860px) { .built { grid-template-columns: repeat(3, 1fr); } }
.built-card { display: grid; gap: 8px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s ease-out; }
.built-card:hover { border-color: var(--route); }
.built-card strong { font: 700 21px/1.25 var(--font-display); letter-spacing: -0.01em; }
.built-card span { color: var(--ink-muted); font-size: 16px; }
