Files
zeekay 9268cde9c9 Sign in on hanzo.ai; serve the build's files under /assets
Sign-in is hanzo.ai's own page again: Log in, Sign up and every link to
them go to hanzo.ai/login and /signup, which the edge serves from the
app. hanzo.ai's /_next is the app's for those pages, so this build's
own files move to /assets/_next (assetPrefix, and `build` moves
out/_next under out/assets).

Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk
2026-11-09 05:54:17 -08:00

380 lines
33 KiB
CSS

/* ---------- /api v2 ---------- */
/* one solid from first paint: until the page's hook hands over to the shared html[data-ask=quiet] flag, the header's ask
is an outline (the hero's own solid ask is on the first screen); same look as the shared quiet rule in system.css */
html:not([data-api-ask]):has(main.api) header[data-slot=masthead] a[href="https://hanzo.ai/signup"],
html:not([data-api-ask]):has(main.api) header[data-slot=masthead] a[data-x-ask] { background-color: transparent; color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border, rgba(0, 0, 0, .14)); }
.api code { font: 500 .88em/1.4 var(--mono); padding: 2px 7px; border-radius: 7px; background: var(--card); color: var(--ink); white-space: nowrap; }
/* hero: headline, lede and the one ask (5 cols) beside the live console (7 cols), all in the first screen */
.api-hero { padding: clamp(28px, 3.4vw, 56px) 0 clamp(48px, 5vw, 88px); }
.api-top { align-items: center; }
.api-top-l { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 28px; }
.api-h1.av-display { max-width: 12ch; }
/* the h1 rises line by line from first paint (CSS, so it never waits on hydration and always leads the console) */
.api-h1-ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.api-h1-ln > span { display: block; animation: api-rise .7s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(50ms + var(--i, 0) * 60ms); }
@keyframes api-rise { from { transform: translateY(108%); } }
.api-top-l .av-lede { max-width: 26ch; }
.api-acts { gap: 8px 20px; }
.api-ref { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(50% + .78em) / 0 1px no-repeat; transition: background-size .35s var(--av-ease); }
@media (hover: hover) { .api-ref:hover { background-size: 100% 1px; } }
.api-ref:active { transform: translateY(1px); }
.api-top-r { grid-column: 5 / -1; }
/* the signature: a terminal. The curl types itself, its output streams back, and the row below picks the next command */
.api-con.api-term { padding: 10px; background: #0a0a0a; border-color: #0a0a0a; color: #f5f5f7; box-shadow: 0 0 0 1px rgba(0, 0, 0, .9); }
.api-term-bar { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 4px 0 14px; }
.api-term-bar .api-ret-k { flex: 1; color: #86868b; }
.api-term .api-pause { background: #1c1c1f; border-color: rgba(255, 255, 255, .14); color: #f5f5f7; }
@media (hover: hover) { .api-term .api-pause:hover { border-color: rgba(255, 255, 255, .4); } }
.api-term .api-pause:focus-visible { outline-color: #f5f5f7; }
.api-term-cmd { margin: 0; font-size: clamp(13.5px, 1.05vw, 15.5px); line-height: 1.75; letter-spacing: -.01em; color: #d1d1d6; min-height: 7em; } /* four lines held, so a path that wraps after the host never moves the page */
.api-ln { display: block; }
.api-ln.ind { padding-left: 2ch; }
.api-url, .api-host { white-space: nowrap; }
.api-term-ps { color: #86868b; user-select: none; }
.api-meth { color: #0a0a0a; background: #f5f5f7; padding: 1px 7px; border-radius: 6px; font-weight: 600; }
.api-host { color: #86868b; }
.api-path { color: #fff; font-weight: 500; }
.api-term-key { color: #a1a1a6; }
.api-caret { display: inline-block; vertical-align: -.15em; width: .55em; height: 1.1em; margin-left: 2px; background: #f5f5f7; }
.api-caret.idle { animation: api-blink 1s steps(1) 4; }
.api-con.held .api-caret { animation: none; }
@keyframes api-blink { 50% { opacity: 0; } }
.api-send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #f5f5f7; color: #0a0a0a; transition: transform .3s var(--av-ease); }
@media (hover: hover) { .api-send:hover { transform: translateX(3px); } }
.api-send:active { transform: scale(.98); }
.api-pause { order: 2; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); background: #fff; color: #0a0a0a; display: grid; place-items: center; cursor: pointer; transition: border-color .15s cubic-bezier(0, 0, .2, 1); }
@media (hover: hover) { .api-pause:hover { border-color: rgba(0, 0, 0, .3); } }
.api-pause:active { transform: scale(.97); }
.api-pause:focus-visible { outline: 2px solid var(--focus, #0a0a0a); outline-offset: 2px; }
.api-con-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 10px; }
.api-ret { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 22px 20px; border-radius: 16px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.api-ret-k { font-size: 13px; color: var(--faint); }
.api-term .api-desc { color: #f5f5f7; font-size: clamp(17px, 1.3vw, 20px); }
.api-term .api-desc-box { border-left: 2px solid rgba(255, 255, 255, .16); padding-left: 14px; }
.api-term .api-doc { background: #1c1c1f; border-color: rgba(255, 255, 255, .16); color: #f5f5f7; }
@media (hover: hover) { .api-term .api-doc:hover { border-color: rgba(255, 255, 255, .4); } }
.api-term .api-chips { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); margin-top: 10px; }
.api-term .api-chips button { color: #a1a1a6; }
.api-term .api-chips button span.x-mono::before { content: '$ '; color: #636366; }
.api-term .api-chips button[aria-selected='true'] { color: #0a0a0a; }
.api-term .api-chips button[aria-selected='true'] span.x-mono::before { color: #636366; }
@media (hover: hover) { .api-term .api-chips button:hover:not([aria-selected='true']) { color: #f5f5f7; background: #1c1c1f; } }
.api-term .api-chip-bg { background: #f5f5f7; box-shadow: none; }
.api-term .api-chip-t { background: #0a0a0a; }
.api-term .api-chips button:focus-visible { outline-color: #f5f5f7; }
/* the box is sized by the longest answer, so streaming never moves anything */
.api-desc-box { display: grid; width: 100%; flex: 1; }
.api-desc-box > .api-desc { grid-area: 1 / 1; }
.api-desc-size { visibility: hidden; }
.api-desc span { transition: opacity .3s var(--av-ease); }
.api-desc span.stale { opacity: .28; }
.api-desc { margin: 0; max-width: 32ch; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.3; letter-spacing: -.022em; color: var(--ink); text-wrap: pretty; }
.api-doc { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 500 15px/1 var(--sans); color: var(--ink); text-decoration: none; transition: border-color .2s; }
@media (hover: hover) { .api-doc:hover { border-color: rgba(0, 0, 0, .25); } }
.api-doc:active { transform: scale(.98); }
.api-model { position: relative; border-radius: 18px; overflow: hidden; background: #000; min-height: 240px; }
.api-model-in { position: absolute; inset: 0; }
.api-model img, .api-model video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.api-model-k { position: absolute; left: 16px; bottom: 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.api-chips { list-style: none; margin: 12px 0 0; padding: 4px; display: flex; flex-wrap: wrap; gap: 2px; border-radius: 16px; background: var(--card); }
.api-chips button { position: relative; height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--soft); cursor: pointer; overflow: hidden; transition: color .2s; }
.api-chips button[aria-selected='true'] { color: var(--ink); }
@media (hover: hover) { .api-chips button:hover { color: var(--ink); } .api-chips button:hover:not([aria-selected='true']) { background: rgba(0, 0, 0, .04); } }
.api-chips button:active { transform: scale(.98); }
.api-chips button span:not(.api-chip-bg) { position: relative; font-size: 13px; }
.api-chips button:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: -2px; }
.api-chip-bg { position: absolute; inset: 0; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.api-chip-t { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--ink); transform-origin: 0 50%; animation: api-time 5.8s linear forwards; }
@keyframes api-time { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* paste and ship: a 4/8 command line */
.api-paste { padding: 0 0 clamp(120px, 14vw, 220px); }
.api-paste .av-grid { align-items: center; padding-top: 40px; border-top: 1px solid var(--line); }
.api-paste-l { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 10px; }
.api-paste-l .av-body { font-size: 17px; }
.api-prompt { grid-column: 6 / -1; display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; align-items: center; padding: 24px 28px; border-radius: 16px; background: var(--card); }
.api-prompt code { grid-column: 1; padding: 0; background: none; font: 500 clamp(16px, 1.3vw, 19px)/1.5 var(--mono); white-space: normal; overflow-wrap: anywhere; }
.api-prompt .x-copy { grid-column: 2; grid-row: 1 / 3; height: 44px; padding: 0 18px; font-size: 14px; }
/* how it fits together: four plain rows, text 5 / visual 7, alternating sides; no pinned stage */
.av-sec.api-fits { padding-top: clamp(24px, 3vw, 48px); }
.api-fits-h { margin: 0 0 clamp(40px, 5vw, 72px); }
.api-fit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(56px, 7vw, 112px); }
.api-fit { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.api-fit-t { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 16px; }
.api-fit-t h3 { margin: 0; max-width: 18ch; }
.api-fit-n { font-size: 13px; color: var(--faint); }
.api-fit-v { grid-column: 7 / -1; min-height: clamp(380px, 34vw, 480px); display: flex; }
.api-fit:nth-child(even) .api-fit-t { grid-column: 8 / -1; grid-row: 1; }
.api-fit:nth-child(even) .api-fit-v { grid-column: 1 / span 6; grid-row: 1; }
.api-fit-v > .api-vis { flex: 1; height: auto; }
@media (max-width: 900px) {
.api-fit { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
.api-fit .api-fit-t, .api-fit .api-fit-v, .api-fit:nth-child(even) .api-fit-t, .api-fit:nth-child(even) .api-fit-v { grid-column: 1; grid-row: auto; }
.api-fit-v { min-height: 0; }
}
.api-vis { position: relative; width: 100%; height: 100%; border-radius: 28px; background: var(--card); padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 18px; overflow: hidden; }
.api-vis-key { margin: 0; align-self: flex-start; padding: 12px 18px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 15px; color: var(--ink); }
/* 1: one key, one bill (meters fill, then the total) */
.api-bill { align-items: center; gap: 0; }
.api-bill-key { padding: 18px 24px; border-radius: 16px; background: var(--ink); color: #f5f5f7; font-size: clamp(14px, 1.2vw, 17px); max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.api-bill-flow { position: relative; width: 2px; height: clamp(88px, 12vh, 140px); background: rgba(0, 0, 0, .14); }
.api-bill-flow i { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: 0; }
.api-bill.on .api-bill-flow i { animation: api-fall 1.6s cubic-bezier(.5, 0, .5, 1) calc(var(--i) * .32s) 3; }
@keyframes api-fall { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(clamp(80px, 12vh, 132px)); } }
.api-bill-sum { width: min(100%, 420px); padding: 22px 24px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.api-bill-sum span { font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.api-bill-sum p { margin: 6px 0 16px; font-size: 16px; color: var(--soft); }
.api-bill-m { display: block; height: 6px; border-radius: 6px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.api-bill-m i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transform-origin: 0 50%; transform: scaleX(.62); }
.js .api-bill-m i { transform: scaleX(.08); transition: transform 4.6s cubic-bezier(.3, 0, .2, 1) .4s; }
.js .api-bill.on .api-bill-m i { transform: scaleX(.62); }
/* 2: identity is rewritten at the gate */
.api-id { flex-direction: column; align-items: stretch; gap: 14px; }
.api-id .api-id-col { flex: none; }
.api-id-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.api-id-card { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.api-id-card span { font-size: 14px; color: var(--soft); overflow-wrap: anywhere; }
.api-id-drop { position: relative; color: #262626 !important; }
.api-id-drop::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; }
.api-id.on .api-id-drop::after { animation: api-strike 4.8s var(--av-ease) 1 both; }
@keyframes api-strike { 0%, 30% { transform: scaleX(0); } 42%, 100% { transform: scaleX(1); } }
.api-id-new { color: var(--ac) !important; font-weight: 600; opacity: .15; }
.api-id.on .api-id-new { animation: api-new 4.8s var(--av-ease) 1 both; }
@keyframes api-new { 0%, 52% { opacity: .15; } 62%, 100% { opacity: 1; } }
.api-id-gate { position: relative; flex: none; width: auto; margin: 0; padding: 18px 16px; border-radius: 16px; background: var(--ink); color: #fff; text-align: center; }
.api-id-gate span { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.api-id-pk { display: none; position: absolute; left: -24px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--ac); opacity: 0; }
.api-id.on .api-id-pk { animation: api-pk 4.8s linear 1; }
@keyframes api-pk { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 45% { transform: translateX(calc(clamp(96px, 8.5vw, 124px) / 2 + 24px)); opacity: 1; } 55% { opacity: 0; } 100% { opacity: 0; } }
/* 3: the client lines up with the document, row for row */
.api-gen-h { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 16px; }
.api-gen-h span:last-child { grid-column: 3; }
.api-gen ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.api-gen li { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 16px; align-items: center; }
.api-gen li span { padding: 16px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 14px; overflow-wrap: anywhere; line-height: 1.35; }
.api-gen li svg { color: var(--ac); }
.api-gen-dots { display: none; }
/* with JS: one row at a time, stacked in one slot; each holds 1.6s, the last one stays */
.js .api-gen ul { grid-template-areas: 'slot'; }
.js .api-gen li { grid-area: slot; opacity: 0; }
.js .api-gen li.last { opacity: 1; }
.js .api-gen.on li { animation: api-tick 1.6s var(--av-ease) calc(var(--i) * 1.6s) both; }
.js .api-gen.on li.last { animation: api-tick-last 1.6s var(--av-ease) calc(var(--i) * 1.6s) both; }
.js .api-gen.on li span:last-child, .js .api-gen.on li svg { animation: api-in-x .5s var(--av-ease) calc(var(--i) * 1.6s + .45s) both; }
@keyframes api-tick { 0% { opacity: 0; transform: translateY(14px); } 18%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes api-tick-last { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: none; } }
@keyframes api-in-x { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.js .api-gen-dots { display: flex; gap: 8px; margin-top: 8px; }
.api-gen-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .14); }
.js .api-gen.on .api-gen-dots i { animation: api-dot .3s linear calc(var(--i) * 1.6s) both; }
.js .api-gen:not(.on) .api-gen-dots i:last-child { background: var(--ink); }
@keyframes api-dot { to { background: var(--ink); } }
@keyframes api-in { to { opacity: 1; transform: none; } }
/* 4: one gateway, every service, and a 429 coming back */
.api-gw { flex-direction: row; align-items: center; gap: 0; }
.api-gw-app { flex: none; width: clamp(140px, 13vw, 190px); display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.api-gw-app b { font-size: 15px; font-weight: 600; }
.api-gw-app span { font-size: 12.5px; line-height: 1.4; color: var(--soft); overflow-wrap: anywhere; }
.api-gw-in { position: relative; flex: none; width: 56px; height: 2px; background: rgba(0, 0, 0, .14); }
.api-gw-in i { position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ac); opacity: 0; }
.api-gw.on .api-gw-in i { animation: api-run 2.4s linear 2; }
.api-gw.on .api-gw-in i:nth-child(2) { animation-delay: 1.2s; }
.api-gw-in i.back { background: #737373; }
.api-gw.on .api-gw-in i.back { animation: api-back 7.2s var(--av-ease) 1; }
.api-gw-in em { position: absolute; left: 50%; top: 16px; translate: -50% 0; font-style: normal; font-size: 13px; font-weight: 600; white-space: nowrap; color: #262626; opacity: 0; }
.api-gw.on .api-gw-in em { animation: api-tag 7.2s var(--av-ease) 1; }
@keyframes api-run { from { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateX(48px); opacity: 0; } }
@keyframes api-back { 0%, 62% { transform: translateX(48px); opacity: 0; } 66% { opacity: 1; } 80% { transform: translateX(0); opacity: 1; } 84%, 100% { transform: translateX(0); opacity: 0; } }
@keyframes api-tag { 0%, 62% { opacity: 0; } 68%, 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
.api-gw-gate { flex: none; align-self: stretch; width: 56px; margin: 24px 0; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--ink); }
.api-gw-gate span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12.5px; color: #fff; letter-spacing: .02em; }
.api-gw-out { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.api-gw-out li { display: flex; align-items: center; }
.api-wire { position: relative; flex: none; width: clamp(28px, 4vw, 60px); height: 2px; background: rgba(0, 0, 0, .12); overflow: hidden; }
.api-wire i { position: absolute; inset: 0; background: var(--ac); transform: translateX(-100%); }
.api-gw.on .api-wire i { animation: api-wire 2.4s linear calc(var(--i) * .4s) 2; }
@keyframes api-wire { 0% { transform: translateX(-100%); } 50%, 100% { transform: translateX(100%); } }
.api-svc { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the dark room */
.api-base-h { margin-bottom: clamp(24px, 3vw, 40px); color: #f5f5f7; }
.api-base-l a { display: inline; padding: 12px 0; margin: -12px 0; } /* stays in the sentence; the padding makes a 44px target without breaking the line */
.api-big { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding-bottom: clamp(56px, 6vw, 96px); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.api-big-url { overflow-wrap: normal; font-size: clamp(26px, 5vw, 64px); font-weight: 400; letter-spacing: -.04em; line-height: 1; color: #fafafa; }
.api-big-url .av-ac { color: rgba(255, 255, 255, .55); }
.api-big .x-copy { height: 44px; padding: 0 18px; font-size: 14px; background: #1c1c1f; border-color: rgba(255, 255, 255, .16); color: #d1d1d6; }
.api-base-g { margin-top: clamp(48px, 5vw, 80px); align-items: start; }
.api-base-l { grid-column: 1 / span 5; align-self: start; position: sticky; top: 120px; } /* the auth line stays beside the picker, no empty black column */
.api-base-l .av-lede { max-width: 30ch; }
.api-base-l a { color: #f5f5f7; text-underline-offset: 4px; }
.api-dark code { background: #1c1c1f; color: #f5f5f7; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); white-space: normal; }
.api-base-r { grid-column: 7 / -1; }
.api-call { padding: 24px; border-radius: 28px; background: #111113; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.api-call-k { margin: 0 0 12px; font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #86868b; }
.api-call-list { display: flex; flex-direction: column; gap: 2px; max-height: 236px; overflow-y: auto; overscroll-behavior: contain; padding: 4px; border-radius: 16px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.api-call-list button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: #a1a1a6; font-size: 14px; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.api-call-list button[aria-selected='true'] { background: #f5f5f7; color: #000; }
@media (hover: hover) { .api-call-list button:hover:not([aria-selected='true']) { background: #1c1c1f; color: #f5f5f7; } }
.api-call-list button:active { transform: scale(.98); }
.api-call-list button:focus-visible { outline: 2px solid #f5f5f7; outline-offset: -2px; }
.api-call-lm { width: 44px; flex: none; font-size: 12px; font-weight: 600; letter-spacing: .04em; opacity: .8; }
/* the curl wraps whole (the path never splits mid-word); copy is unchanged, wrapping is only visual */
.api-call-line code { padding: 0; background: none; box-shadow: none; white-space: pre-wrap; font: inherit; color: inherit; }
.api-call-line { margin: 22px 0 18px; padding: 22px; border-radius: 16px; background: #000; overflow-wrap: anywhere; font: 400 clamp(14px, 1.15vw, 17px)/1.8 var(--mono); color: #f5f5f7; }
.api-call-m { color: #000; padding: 2px 8px; border-radius: 6px; background: #f5f5f7; font-weight: 600; }
.api-call-host { color: #86868b; }
.api-call-path { display: inline-block; color: #fff; }
.api-call-f { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; font-size: 15px; }
.api-call-f .x-copy { height: 44px; padding: 0 18px; font-size: 14px; background: #1c1c1f; border-color: rgba(255, 255, 255, .16); color: #d1d1d6; }
.api-call-f a { display: inline-flex; align-items: center; min-height: 44px; color: #f5f5f7; text-underline-offset: 4px; }
/* the core endpoints: a 4/8 reference */
.api-core-l { grid-column: 1 / span 4; align-self: start; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.api-core-l .av-body { font-size: 17px; }
.api-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.api-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); }
.api-seg button { position: relative; min-width: 64px; height: 40px; padding: 0 14px; border: 0; background: none; border-radius: 999px; font: 500 14px/1 var(--sans); color: var(--soft); cursor: pointer; }
.api-seg button[aria-selected='true'] { color: var(--ink); }
.api-seg button span:not(.api-seg-bg) { position: relative; }
.api-seg-bg { position: absolute; inset: 0; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.api-q { flex: 1 1 160px; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--faint); }
.api-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 16px var(--mono); color: var(--ink); }
.api-q:focus-within { border-color: var(--ac); }
.api-count { font-size: 13px; color: var(--faint); }
.api-rows { grid-column: 6 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.api-rows > li { border-bottom: 1px solid var(--line); }
.api-row { width: 100%; display: grid; grid-template-columns: 112px minmax(0, 1fr) 44px; align-items: center; gap: 16px; min-height: 76px; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.api-row:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; border-radius: 8px; }
.api-row-m { justify-self: start; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; padding: 6px 10px; border-radius: 8px; background: var(--card); color: var(--soft); }
.api-row-m.m-post { color: var(--ac); background: var(--ac-soft); }
.api-row-p { font-size: clamp(16px, 1.45vw, 21px); letter-spacing: -.02em; overflow-wrap: anywhere; transition: transform .35s var(--av-ease); }
.api-row:hover .api-row-p { transform: translateX(6px); }
.api-row-x { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); }
.api-row-x::before, .api-row-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; margin: -.8px 0 0 -7px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--av-ease); }
.api-row-x::after { transform: rotate(90deg); }
.api-rows li.open .api-row-x::after { transform: rotate(0deg); }
.api-row-d { display: none; padding: 0 60px 28px 128px; }
.api-rows li.open .api-row-d { display: block; }
.js .api-rows li.open .api-row-d { animation: api-open .5s var(--av-ease) both; }
@keyframes api-open { from { opacity: 0; transform: translateY(-6px); } }
.api-row-d p { margin: 0 0 18px; font-size: 17px; line-height: 1.6; color: var(--soft); max-width: 60ch; }
.api-rows > li[hidden] { border: 0; }
.av-sec.api-core { padding-bottom: clamp(48px, 5vw, 80px); }
.av-sec.tight.api-next { padding-top: 0; }
.api-more { display: none; border-bottom: 0 !important; }
.js .api-more { display: block; }
.api-more button { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; margin-top: 20px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink); font: 500 15px/1 var(--sans); cursor: pointer; transition: border-color .2s, transform .2s var(--av-ease); }
.api-more button .x-mono { font-size: 13px; color: var(--faint); }
@media (hover: hover) { .api-more button:hover { border-color: rgba(0, 0, 0, .3); } }
.api-more button:active { transform: scale(.98); }
.api-more button:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 3px; }
.api-none { padding: 28px 0; color: var(--soft); }
.api-none button { border: 0; background: none; padding: 0; color: var(--ac); font: inherit; text-decoration: underline; cursor: pointer; }
/* the Band: statement and the ask, then "Next" as two text rows under it */
.api-next-g { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; margin-top: clamp(56px, 6vw, 96px); align-items: start; }
.api-next-h { margin: 0; padding-top: 22px; font: 500 15px/1.2 var(--sans); color: var(--soft); letter-spacing: 0; }
.api-next-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.api-next-rows > li { border-bottom: 1px solid var(--line); }
.api-next-a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 44px; align-items: center; gap: 24px; min-height: 76px; padding: 12px 0; color: var(--ink); text-decoration: none; transition: transform .2s var(--av-ease); }
.api-next-t { font: 500 clamp(19px, 1.6vw, 22px)/1.2 var(--sans); letter-spacing: -.02em; transition: transform .35s var(--av-ease); }
.api-next-d { font-size: 15px; line-height: 1.5; color: var(--soft); }
.api-next-go { justify-self: end; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); transition: transform .45s var(--av-ease), background .25s, color .25s; }
@media (hover: hover) {
.api-next-a:hover .api-next-t { transform: translateX(6px); }
.api-next-a:hover .api-next-go { transform: rotate(45deg); background: var(--ink); color: #fff; }
}
.api-next-a:active { transform: scale(.99); }
.api-next-a:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 3px; border-radius: 8px; }
.api-close { padding-top: clamp(48px, 5vw, 80px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: end; }
.api-close-t { margin: 0; max-width: 16ch; }
.api-close .av-acts { justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) {
.api *, .api *::before, .api *::after { animation: none !important; }
.api-bill b { transform: scaleX(var(--w, .5)); }
.api-gen li span:last-child, .api-gen li svg, .api-id-new { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
.api-hero { padding: 24px 0 48px; }
.api-base-l { position: static; }
.api-top { row-gap: 28px; }
.api-top-l { gap: 20px; }
.api-acts .x-arrow { min-height: 44px; }
.api-con.api-term { padding: 8px; border-radius: 22px; }
.api-term-cmd { font-size: 13.5px; }
.api-con-main { grid-template-columns: 1fr; gap: 8px; }
.api-ret { padding: 18px 16px; }
.api-desc { font-size: 18px; }
.api-model { min-height: 180px; }
.api-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 8px; }
.api-chips::-webkit-scrollbar { display: none; }
.api-chips li { flex: none; }
.api-close { grid-template-columns: 1fr; }
.api-close .av-acts { justify-content: flex-start; }
.api-paste { padding-bottom: 120px; }
.api-prompt { padding: 20px; }
.api-prompt .x-copy { grid-column: 1; grid-row: auto; justify-self: start; }
.api-vis { padding: 22px; border-radius: 24px; min-height: 340px; }
.api-id { flex-direction: column; align-items: stretch; gap: 14px; }
.api-id-gate { width: auto; margin: 0; padding: 16px; }
.api-id-pk { display: none; }
.api-gw { flex-direction: column; align-items: stretch; gap: 12px; }
.api-gw-app { width: auto; }
.api-gw-in { width: 2px; height: 32px; align-self: center; }
.api-gw-in i, .api-gw-in em { display: none; }
.api-gw-gate { width: auto; margin: 0; padding: 14px; }
.api-gw-gate span { writing-mode: initial; transform: none; }
.api-wire { width: 20px; }
.api-bill-k { display: none; }
.api-big-url { font-size: min(7.4vw, calc((100vw - 40px) / 14)); letter-spacing: -.04em; } /* 23 mono glyphs fit the 16px gutters at 375, /v1 in view */
.api-core-l { position: static; }
.api-row { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: 'm x' 'p x'; row-gap: 6px; padding: 18px 0; }
.api-row-m { grid-area: m; }
.api-row-p { grid-area: p; font-size: 16px; }
.api-row-x { grid-area: x; }
.api-row-d { padding: 0 0 24px; }
.api-next-g { grid-template-columns: 1fr; gap: 12px; }
.api-next-h { padding-top: 0; }
.api-next-a { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: 't go' 'd go'; row-gap: 4px; gap: 4px 16px; padding: 16px 0; }
.api-next-t { grid-area: t; }
.api-next-d { grid-area: d; }
.api-next-go { grid-area: go; }
}
/* dark: the shared AppType paints .av white with hex greys; give this page Hanzo's dark tokens (as Bot/Chrome/Computer do) */
html:not(.light) .av.api { background: var(--bg); color: var(--ink); }
html:not(.light) .api .av-lede, html:not(.light) .api .av-body { color: var(--soft); }
html:not(.light) .api .av-kick, html:not(.light) .api .av-spec dt { color: var(--faint); }
html:not(.light) .api .av-kick b, html:not(.light) .api .av-spec dd { color: var(--ink); }
html:not(.light) .api .av-spec, html:not(.light) .api .av-spec dt, html:not(.light) .api .av-spec dd { border-color: var(--line); }
html:not(.light) .api .av-obj { box-shadow: 0 0 0 1px var(--line); }
html:not(.light) .api .av-card { background: var(--x-fill); }
html:not(.light) .api .av-dark .av-body, html:not(.light) .api .av-dark .av-lede { color: rgba(255, 255, 255, .78); }
html:not(.light) .api .av-dark .av-kick { color: rgba(255, 255, 255, .55); }
/* dark: the selected endpoint chip carries the terminal's light pill itself, so its dark type reads on what is behind it */
html:not(.light) .api-term .api-chips button[aria-selected='true'] { background: #f5f5f7; }
/* dark: the diagrams (bill, identity, generated clients, gateway) and the endpoint picker were drawn as #fff cards and
ink blocks with white type; cards go on Hanzo's card surface, ink blocks keep ink with on-ink type, hairlines use the border */
html:not(.light) .av.api { --ac: var(--muted-foreground); --ac-soft: var(--muted); }
html:not(.light) .api-doc:not(.api-term .api-doc), html:not(.light) .api-bill-sum, html:not(.light) .api-id-card,
html:not(.light) .api-gen li span, html:not(.light) .api-gw-app, html:not(.light) .api-svc, html:not(.light) .api-vis-key { background: var(--x-raised); box-shadow: 0 0 0 1px var(--border); color: var(--foreground); }
html:not(.light) .api-doc:not(.api-term .api-doc) { border-color: var(--border); }
@media (hover: hover) { html:not(.light) .api-doc:not(.api-term .api-doc):hover, html:not(.light) .api-more button:hover { border-color: var(--border-strong, var(--border)); } }
html:not(.light) .api-bill-key, html:not(.light) .api-id-gate, html:not(.light) .api-id-gate span, html:not(.light) .api-gw-gate span { color: var(--x-on-ink); }
html:not(.light) .api-bill-flow, html:not(.light) .api-gw-in, html:not(.light) .api-wire, html:not(.light) .api-bill-m, html:not(.light) .api-gen-dots i { background: var(--border); }
html:not(.light) .js .api-gen:not(.on) .api-gen-dots i:last-child { background: var(--ink); }
html:not(.light) .api-id-drop, html:not(.light) .api-gw-in em { color: var(--foreground) !important; }
html:not(.light) .api-seg-bg { background: var(--x-knob); box-shadow: none; }
html:not(.light) .api-seg button[aria-selected='true'] { background: var(--x-knob); }
@media (hover: hover) { html:not(.light) .api-next-a:hover .api-next-go { color: var(--x-on-ink); } }