/* The home page below the first screen. Linked at the end of <body> (layout.mjs `lateStyles`): it never blocks the
   first paint. Values come from ui/tokens.css; the first screen is ui/home.css. */
/* three steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step { display: grid; gap: var(--s-3); align-content: start; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-4); padding: var(--s-5) var(--s-5) var(--s-6); }
.step .no, .rules .no, .use .no { font: var(--t-micro); letter-spacing: var(--ls-micro); color: var(--fg-3); margin: 0; text-transform: uppercase; }
.art { height: 200px; border-radius: var(--r-3); background: var(--bg); border: 1px solid var(--line-2); margin-bottom: var(--s-3); display: grid; place-items: center; overflow: hidden; padding: var(--s-4); }

.art-key { align-content: center; gap: var(--s-3); }

.art-flow svg { width: 100%; max-width: 320px; height: auto; }
.wire { stroke: var(--control); stroke-width: 1; stroke-dasharray: 3 4; }
.node { fill: var(--bg-1); stroke: var(--line); }
.node.hub { stroke: var(--fg-2); }
.mark { fill: var(--fg); }
.lab { font: var(--t-micro); fill: var(--fg-2); }
.pkt { fill: var(--live); }

/* six reasons */

.fields { margin: 0; padding: 0; list-style: none; display: grid; }

.end { font: var(--t-micro); color: var(--fg-3); display: inline-flex; align-items: center; gap: 6px; }

.fields li { display: flex; justify-content: space-between; gap: var(--s-3); height: 34px; align-items: center; border-top: 1px solid var(--line-2); font: var(--t-code); color: var(--fg); }
.fields li:first-child { border-top: 0; }
.fields i { font-style: normal; color: var(--fg-3); }

/* the response, annotated */

.code-head .grow { margin-left: auto; font: var(--t-micro); }

/* use cases: pick one, see the endpoints it runs on and what they cost */
.uses { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--s-5); align-items: stretch; }
.use-list { display: grid; align-content: start; border: 1px solid var(--line); border-radius: var(--r-4); overflow: hidden; }
.use { display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; align-items: center; gap: var(--s-3); height: 68px; padding: 0 var(--s-5); background: transparent; border: 0; border-top: 1px solid var(--line-2); color: var(--fg-2); font: var(--t-h4); letter-spacing: var(--ls-h4); text-align: left; cursor: pointer; transition: background-color var(--t-fast) var(--e-std), color var(--t-fast) var(--e-std); }
.use:first-child { border-top: 0; }
.use:hover { color: var(--fg); background: var(--bg-1); }
.use .arrow { opacity: 0; transform: translateX(-4px); transition: opacity var(--t-fast) var(--e-std), transform var(--t-move) var(--e-out); }
.use[aria-selected="true"] { color: var(--fg); background: var(--bg-1); }
.use[aria-selected="true"] .arrow { opacity: 1; transform: none; }
.use[aria-selected="true"] .no { color: var(--live); }
.use-panels { border: 1px solid var(--line); border-radius: var(--r-4); background: var(--bg-1); padding: var(--s-7); min-height: 408px; }
.use-panel { display: grid; gap: var(--s-4); align-content: start; animation: arrive var(--t-move) var(--e-out) both; }
.use-panel .t-body { max-width: 38rem; }
.chain { margin: var(--s-3) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); position: relative; }
.chain a { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); height: 52px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg); color: var(--fg); text-decoration: none; transition: border-color var(--t-fast) var(--e-std), transform var(--t-move) var(--e-out); }
.chain a:hover { border-color: var(--fg-2); transform: translateX(4px); }
.chain .pf { font: var(--t-ui); color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chain code { font: var(--t-code); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chain .pr { font: var(--t-code); text-align: right; white-space: nowrap; }
.chain .pr small { color: var(--fg-3); margin-left: 6px; font: var(--t-label); }
.out { margin: var(--s-2) 0 0; font: var(--t-ui); color: var(--fg); display: flex; gap: var(--s-3); align-items: baseline; }
.out span { font: var(--t-micro); letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--live); white-space: nowrap; }
/* platforms: every tile is a link to that platform's page */

/* the comparison: our column is marked, and it does not win every row */

.mk { width: 20px; height: 20px; margin: 0 auto; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mk.y { stroke: var(--live); }
.mk.y circle { stroke: none; fill: var(--ok-bg); }
.mk.n { stroke: var(--fg-3); }
.mk.p { stroke: var(--warn); }

/* pricing: drag the volume, read the bill */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-4); overflow: hidden; }
.rules li { background: var(--bg); padding: var(--s-6); display: grid; gap: var(--s-3); align-content: start; }
/* agents: the transcript plays once when it scrolls in */
.agents { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-7); align-items: center; }
.points { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-5); }
.points li { display: grid; gap: var(--s-2); padding-left: var(--s-5); border-left: 1px solid var(--line); }
.points .note { font: var(--t-ui); color: var(--fg-3); border-left-color: var(--warn); }
/* questions */
/* the closing call */

.oneliner { display: inline-flex; align-items: center; gap: var(--s-4); max-width: 100%; padding: 6px 6px 6px var(--s-4); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-1); }
.oneliner code { font: var(--t-code); color: var(--fg); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
/* footer with the site's links */
@media (max-width: 1000px) {
  .steps, .uses, .agents { grid-template-columns: minmax(0, 1fr); }
  
  
  
  
  .use-panels { padding: var(--s-5); min-height: 0; }
  .use { height: 56px; padding: 0 var(--s-4); }
  .chain a { grid-template-columns: minmax(0, 1fr) auto; height: auto; padding: var(--s-3) var(--s-4); row-gap: 2px; }
  .chain .pf { grid-column: 1 / -1; }
  .rules { grid-template-columns: minmax(0, 1fr); }
  
  
  
  
  
  .oneliner { flex-direction: column; align-items: stretch; padding: var(--s-3); }
}
@media (prefers-reduced-motion: reduce) {
  
  .pkt { display: none; }
}
/* platforms as a browser over the real catalog */

/* the comparison lights up row by row when it scrolls in: the table is read in order, ours first */

/* each platform's line grows to its real number of endpoints */

/* the bill ticks when the volume moves */

/* three steps: the pictures play in order */
.steps .step { opacity: 1; }
.js .steps:not(.in) .step { opacity: 0; transform: translateY(12px); }
.steps .step { transition: opacity var(--t-reveal) var(--e-out), transform var(--t-reveal) var(--e-out); }
.steps .step:nth-child(2) { transition-delay: 120ms; }
.steps .step:nth-child(3) { transition-delay: 240ms; }
.art svg { width: 100%; max-width: 300px; height: auto; overflow: visible; }
.steps .art { height: 220px; padding: var(--s-2); grid-template-columns: minmax(0, 1fr); }
.steps .art svg { width: 100%; height: 100%; max-width: none; }
.art .frame, .art .field { stroke: var(--line); }
.art .frame { fill: var(--bg-1); }
.art .field { fill: var(--bg); }

.art .dot3 { fill: var(--bg-2); }
.art .ico { stroke: var(--fg-2); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.art .lab { font: var(--t-micro); fill: var(--fg-3); letter-spacing: 0; }
.art .lab.hi { fill: var(--fg); }
.art .code { font: var(--t-code); fill: var(--fg); }
.art .mask { fill: var(--fg-3); }
.art .num-t { font: var(--t-h4); fill: var(--fg); font-variant-numeric: tabular-nums; }
.art .num-t.sm { font: var(--t-code); }
.art .num-t.ok { fill: var(--live); }
.art .tick { stroke: var(--live); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art .track { fill: var(--bg-2); }
.art .fill { fill: var(--live); transform-box: fill-box; transform-origin: left center; }
.art .caret-r { fill: var(--fg); animation: blink var(--t-loop) steps(2, start) infinite; }

.art .ok-t { font: var(--t-micro); fill: var(--live); }

.wire.lit { stroke: none; }
/* step 1: sign in, the key appears, the balance fills */
.js .art-key .k-row, .js .art-flow .ok-t { opacity: 0; transition: opacity var(--t-reveal) var(--e-out), transform var(--t-reveal) var(--e-out); }
.js .art-key .k-row { transform: translateY(6px); }
.js .art-key .fill { transform: scaleX(0); transition: transform var(--t-draw) var(--e-out); }
.js .art-key .tick { opacity: 0; transition: opacity var(--t-move) var(--e-std); }
.steps.in .art-key .k-row { opacity: 1; transform: none; }
.steps.in .art-key .k1 { transition-delay: 300ms; }
.steps.in .art-key .tick { opacity: 1; transition-delay: 650ms; }
.steps.in .art-key .k2 { transition-delay: 800ms; }
.steps.in .art-key .k3 { transition-delay: 1100ms; }
.steps.in .art-key .fill { transform: none; transition-delay: 1300ms; }
/* step 2: the request goes out to a platform and comes back (the dot is started by script after step 1) */
/* the dots show once the steps are in; which of them shows when is their own (SMIL) opacity, so it is not set here */
.art-flow .pkt { visibility: hidden; }
.art-flow.go .pkt { visibility: visible; }
.art-flow.go .ok-t { opacity: 1; transition-delay: 2200ms; }
.art-flow .pf-node rect.node { transition: stroke var(--t-fast) var(--e-std); }
/* step 3: the receipt prints line by line, then the stamp */

/* the signature: text scrolls past, the panel stays; the path and the answer change, the lit lines do not */

/* what you skip: the pile folds into one line as it scrolls (--p from 0 to 1, set by script) */

.side { font: var(--t-micro); letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--fg-3); margin: 0 0 var(--s-3); }

.sk0 { --k: -2; }
.sk1 { --k: -1; }
.sk2 { --k: 0; }
.sk3 { --k: 1; }
.sk4 { --k: 2; }

/* platforms: a neutral initial square beside each name; hovering shows the lowest price instead of the count */

/* pricing: the bill turns digit by digit, following the slider */
/* questions open and close by growing */
/* the end: centred, a terminal types the line, the page sends it, the answer drops in with what was measured */

:lang(zh) .side { letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .steps:not(.in) .step, .js .art-key .k-row, .js .art-flow .ok-t, .js .art-key .tick { opacity: 1; transform: none; }
  .js .art-key .fill { transform: none; }
  .art .caret-r { animation: none; }
  
  
}

/* round 3b: code never runs out of its box, whatever the API host's length */

/* six reasons: each picture works when its card arrives */

/* paging: the three pages light in turn and the cursor between them runs, then the list ends */

/* fields: a check runs down the list, one field at a time, the same on every call */
.fields { position: relative; }
.fields::after { content: ""; position: absolute; left: -8px; right: -8px; top: 0; height: 34px; border-radius: var(--r-1); background: var(--lit); box-shadow: inset 2px 0 0 var(--live); opacity: 0; pointer-events: none; }

/* the response: a pager under the request */

/* use cases: the request runs down the chain of endpoints, each lights in turn, then what you get */
.chain { padding-left: var(--s-5); }
.chain::before { content: ""; position: absolute; left: 5px; top: 26px; bottom: 26px; width: 1px; background: var(--line); }
.chain::after { content: ""; position: absolute; left: 2px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--live); opacity: 0; }
.chain li { position: relative; }
.chain li::before { content: ""; position: absolute; left: calc(var(--s-5) * -1 + 1px); top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--control); }
.uses.in .use-panel:not([data-off]) .chain::after { animation: chain-run calc(var(--t-arrive) * 3) var(--e-std) both; }
.uses.in .use-panel:not([data-off]) .chain li::before { animation: node-on var(--t-move) var(--e-std) both; }
.uses.in .use-panel:not([data-off]) .chain li:nth-child(2)::before { animation-delay: 700ms; }
.uses.in .use-panel:not([data-off]) .chain li:nth-child(3)::before { animation-delay: 1400ms; }
.js .uses .use-panel .out { opacity: 0; transform: translateY(6px); }
.uses.in .use-panel:not([data-off]) .out { animation: arrive var(--t-reveal) var(--e-out) 600ms both; }
.js .uses .use-panel .chain a { transition: border-color var(--t-fast) var(--e-std), transform var(--t-move) var(--e-out); }
.uses.in .use-panel:not([data-off]) .chain li a { animation: chain-lit var(--t-reveal) var(--e-std) both; }
.uses.in .use-panel:not([data-off]) .chain li:nth-child(2) a { animation-delay: 700ms; }
.uses.in .use-panel:not([data-off]) .chain li:nth-child(3) a { animation-delay: 1400ms; }
@media (prefers-reduced-motion: reduce) {
  .js .uses .use-panel .out { opacity: 1; transform: none; }
  .uses .chain::after, .uses .chain li::before, .uses .use-panel .out, .uses .chain li a { animation: none !important; }
}
/* what you skip, driven by scroll: the figure stays in the middle of the screen (sticky, the page still scrolls)
   while --p runs 0 to 1. First the five things are listed plainly; then they are struck through one by one; then
   they close up and the one line lights. The struck items stay readable: a line through, dimmer text. */

.sk0 { --n: 0; }
.sk1 { --n: 1; }
.sk2 { --n: 2; }
.sk3 { --n: 3; }
.sk4 { --n: 4; }

/* the end terminal stays inside the column at any width: long hosts and records wrap instead of widening the page */

/* ===== round 4: headings in four shapes, so the sections do not all open alike =====
   two-tone (the first screen, the signature, the end), one line centred, one line beside its lead (split),
   and a title made of the numbers themselves (platforms) */

/* the signature, shorter: about 400px of scrolling per platform */

/* the envelope, explained, with a pager to press */

/* the example bill: a ledger of five requests, then four short facts in a row */

 
 
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); margin: 0; max-width: 960px; width: 100%; justify-self: center; }
.facts div { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--fg); }
.facts dt { font: var(--t-h4); letter-spacing: var(--ls-h4); }
.facts dd { margin: 0; font: var(--t-ui); color: var(--fg-2); }

/* use cases: one real record under the endpoints */
.sample { margin: var(--s-3) 0 0; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg); overflow: hidden; }
.sample figcaption { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--line-2); font: var(--t-label); color: var(--fg-3); }
.sample figcaption b { color: var(--live); font-weight: 500; }
.rec { padding: var(--s-3) var(--s-4); display: grid; gap: var(--s-2); }
.rec-text { margin: 0; font: var(--t-ui); color: var(--fg); }
.rec-meta { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font: var(--t-label); color: var(--fg-3); }
.rec-meta b { color: var(--fg); font-weight: 500; }
.use-panel:not([data-off]) .sample { animation: arrive var(--t-reveal) var(--e-out) both; }

/* platforms: all of them at once */

/* the comparison's title is a line, not a second heading block */

/* agents: the code on the left (the transcript, then the catalog as it answers), the points and links on the right */
.agents { align-items: start; }
.agent-code { display: grid; gap: var(--s-4); min-width: 0; }
.snip pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: none; color: var(--code-fg); }
.snip .s { color: var(--code-str); } .snip .c { color: var(--code-fg-2); }
.snip .code-head span { font: var(--t-label); color: var(--code-fg-2); }
.agent-side { display: grid; gap: var(--s-5); }

.agent-note { margin: 0; font: var(--t-label); color: var(--fg-3); }

/* the end: a Run button beside Copy */

/* the footer lists every platform, in columns */

/* pricing: digits of one width, separators outside the wheels */

@media (max-width: 1000px) {
  
  
  
  
  
  
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
  
  
  
  
  /* the comparison as one card per row: our mark first, the three others under their names */
  
  
  
  
  
  
  
  
  
  
  
}

/* the lowest price shows over the end of the row on hover, so the name keeps its room */

/* ===== round 5 ===== */
/* two-tone headings are left to the first screen and the end; the rest open with one line, in three ways */

/* the signature's request line: one line, path only, the platform highlighted in place */

@keyframes path-in { from { opacity: 0; } to { opacity: 1; } }

/* the example bill */

@keyframes flag-bad { 0%, 100% { background: transparent; } 40% { background: var(--bad-bg); } }

/* the catalog's numbers open the platforms section */

/* platform tiles: the whole name, wrapping to two lines if it must; count and lowest price on a second line */

/* the comparison by job: what it takes with Silkline, what it takes on your own */

/* pricing: the rules beside the calculator as a plain list */
.rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rules li { padding: var(--s-5); }

/* agents: the code on the left, the words and links on the right, the prompt to copy under the transcript */
.agents { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-8); }
.agent-side { align-content: start; }
.agent-side .t-lead { margin: 0; }
.prompt pre { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--code-fg); max-height: none; }
.prompt .code-head { justify-content: space-between; }
.prompt .code-head span { font: var(--t-label); color: var(--code-fg-2); }

/* questions: three groups side by side, the first of each open */

/* use cases: the panel keeps its height when the choice changes */
.use-panels { min-height: 560px; }
.rec-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* the end, shorter */

.side { text-transform: none; letter-spacing: 0; font: var(--t-label); }

/* the footer: twelve platforms and a link to all */

@media (max-width: 1000px) {
  
  
  
  
  
  
  
  .agents { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .agent-side { order: -1; }
  
  .use-panels { min-height: 0; }
  
}

@media (max-width: 1000px) {
  
  .rules { grid-template-columns: minmax(0, 1fr); }
}

/* the catalog numbers take the width they need, so a long price never runs into its neighbour */

/* ===== round 6: a beat for the second half =====
   bill: contrast ground, narrow centred words, the ledger past the text column (full bleed)
   uses: base ground, panel left and list right
   platforms: band ground, the numbers as the opening, a four-column grid
   replaces: base ground, picture left, words right
   pricing: contrast ground, words left, the calculator right and large
   agents: base ground, centred title, code left and links right
   questions: band ground, title left, one column right
   the end: the request and its answer side by side, full width */

.uses.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
.uses.flip .use-list { order: 2; }
.chain code { overflow-wrap: anywhere; }

.more-pf { display: none; justify-self: center; }

/* sliders: a 4px track, the chosen part in the live colour, an 18px thumb with a hairline */

.agents { margin-top: var(--s-2); }
@keyframes type-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.link { padding-block: var(--s-2); }

 

/* the meta picture in step 3 */
.art-meta .str { fill: var(--code-str); }
.art-meta .hl { fill: var(--lit); }
.js .art-meta .m-l { opacity: 0; transition: opacity var(--t-reveal) var(--e-out); }
.steps.in .art-meta .m-l { opacity: 1; }
.steps.in .art-meta .m2 { transition-delay: 1500ms; } .steps.in .art-meta .m3 { transition-delay: 1650ms; } .steps.in .art-meta .m4 { transition-delay: 1800ms; }
.steps.in .art-meta .m5 { transition-delay: 2000ms; } .steps.in .art-meta .m6 { transition-delay: 2200ms; } .steps.in .art-meta .m7 { transition-delay: 2350ms; }
.steps .art { height: auto; aspect-ratio: 260 / 190; }

@media (max-width: 1000px) {
  
  
  .uses.flip { grid-template-columns: minmax(0, 1fr); }
  .uses.flip .use-list { order: 0; }
  
  
  
  
  
  
  
  
  
  
  
  
  
}
@media (prefers-reduced-motion: reduce) {
  .js .art-meta .m-l { opacity: 1; animation: none; }
  
}

/* ===== round 7 ===== */
/* code boxes, one rule (see home.css): no wrapping, sideways scroll inside the box, request lines end in … */
.prompt pre, .snip pre { white-space: pre; overflow-wrap: normal; overflow-x: auto; scrollbar-width: thin; }

.chain code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }

/* switching platforms in the signature: the old answer leaves at once, the new one fades in briefly; never two at once */

/* step 3: smaller code, inside its frame */
.art-meta .code { font: var(--t-code-s); }

/* the bill: one block with its title; rows entered one by one; $0 is grey, only the 502 is red */

/* use cases: each job says how many endpoints and from what price */
.use { height: auto; min-height: 76px; padding-block: var(--s-3); }
.use .nm { display: grid; gap: 2px; }
.use .nm small { font: var(--t-label); color: var(--fg-3); }
.use-list { align-content: stretch; }

/* the catalog: grouped list on the left, the chosen platform's endpoints on the right */

    

.more-pf { display: none; }
#platforms { padding-bottom: var(--s-8); }

/* agents: the files an agent can read, as three entries */
.agent-files { display: grid; gap: var(--s-2); }
.afile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-3); color: var(--fg); text-decoration: none; transition: border-color var(--t-fast) var(--e-std); }
.afile:hover { border-color: var(--fg-2); }
.afile b { font: var(--t-code); font-weight: 500; }
.afile span { grid-column: 1; font: var(--t-label); color: var(--fg-3); }
.afile .arrow { grid-row: 1 / span 2; grid-column: 2; }

/* questions: on the page's grid; a card of real ways in under the title */

/* the end: a narrower request column, the curl on three lines */

/* the calculator's total keeps its face while it rolls */

/* phones: everything you tap is at least 44px high */
@media (max-width: 720px) {
  .link { min-height: 44px; display: inline-flex; align-items: center; }
  
}

.steps.in .art-meta .m2 { transition-delay: 300ms; } .steps.in .art-meta .m3 { transition-delay: 420ms; } .steps.in .art-meta .m4 { transition-delay: 540ms; }
.steps.in .art-meta .m5 { transition-delay: 700ms; } .steps.in .art-meta .m6 { transition-delay: 860ms; } .steps.in .art-meta .m7 { transition-delay: 980ms; }
@media (max-width: 720px) {
  #prompt-copy { min-height: 44px; display: inline-flex; align-items: center; }
  
}
/* the agent's transcript, line by line (an id outranks the earlier class rules) */
#agent-term .ln { animation: none; }
#agent-term.wait .ln { opacity: 0; }
#agent-term.go .ln { animation: type-in 380ms var(--e-out) both; }
#agent-term.go .ln:nth-child(2) { animation-delay: 420ms; } #agent-term.go .ln:nth-child(3) { animation-delay: 840ms; } #agent-term.go .ln:nth-child(4) { animation-delay: 1260ms; }
#agent-term.go .ln:nth-child(5) { animation-delay: 1680ms; } #agent-term.go .ln:nth-child(6) { animation-delay: 2100ms; }
@media (prefers-reduced-motion: reduce) { #agent-term .ln, #agent-term.wait .ln { opacity: 1; animation: none; } }

/* ===== round 8 ===== */
/* two kinds of boxes: code (never wraps, scrolls sideways) and prose (wraps); nothing is cut without a way to read it */
pre.prose, .prompt pre.prose { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
/* five things: the sentence follows the motion setting */

/* the bill: the two totals on their baselines */

/* use cases: the "you get" line always shows; paths wrap on a phone */
.js .uses .use-panel .out { opacity: 1; transform: none; animation: none; }
.rec-text { display: block; -webkit-line-clamp: unset; }
/* agents: two columns of equal height; the how-to card */
.agents { align-items: stretch; }
.agent-code { align-content: start; }
.agent-code .prompt { flex: 1; }

/* the end: the status line is a block across the answer column */

/* questions: answers readable, an open question keeps its colour */
/* the calculator's requests slider has its marks */
@media (max-width: 1000px) {
  .agent-side { order: 2; }
  .agent-code { order: 1; }
  .chain code { white-space: normal; overflow-wrap: anywhere; overflow: visible; text-overflow: clip; }
  .chain a { grid-template-columns: minmax(0, 1fr) auto; }
  .chain code { grid-column: 1 / -1; grid-row: 2; }
}

/* the end shows its stored answer from the start; Run dims it while sending and brings the answer back in */

 

/* platform rows: the group's drawing in the square (the same for the whole group), the name, the lowest price */

/* rows carry no square: the group's drawing sits once beside its title; a row is the name and its lowest price */

/* ===== round 9 ===== */
/* five things: the rows never move sideways; the figure is shorter, so the words beside it fill its height */

/* the bill: the balance left reads as a number too; no width past its box */

/* the signature: each step shows what changed in the path */

/* questions: smaller question type; the side card stays in view */
/* use cases: the panel follows its content */
.use-panels { min-height: 0; }
/* agents: the prompt folds to four lines; the transcript never wraps (it scrolls) */
pre.prose.folded { max-height: calc(4 * 20px + var(--s-4) * 2); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, var(--opaque) 60%, transparent); mask-image: linear-gradient(180deg, var(--opaque) 60%, transparent); }
.pc-acts { display: inline-flex; gap: var(--s-2); margin-left: auto; }
#agent-term pre { white-space: pre; overflow-x: auto; }
#agent-term .ln { white-space: pre; }
/* the end: its own ground, a band, not the first screen's light */

/* the footer: the platform columns have one width */

/* round 10: fixes only */
/* signature, one column: the path change is its own line under the text (it shared row 3 with the text before) */

/* the bill: nothing flashes when motion is reduced */

/* use cases: the endpoint the record came from keeps its mark; rows of the job list are one height */
@keyframes chain-lit-stay { 0% { border-color: var(--line); } 40%, 100% { border-color: var(--live); } }
.chain li.src a { border-color: var(--live); }
.uses.in .use-panel:not([data-off]) .chain li.src a { animation-name: chain-lit-stay; }
.uses.in .use-panel:not([data-off]) .chain li.src::before { background: var(--live); box-shadow: inset 0 0 0 1px var(--live); }
@media (min-width: 1001px) { .use-list { align-content: start; align-self: start; } .use { height: 76px; } }
/* step 1: the balance bar grows from its own left end */
.art-key .fill { transform-box: fill-box; transform-origin: 0 50%; }
/* reduced motion: the use-case panel and its record appear without arriving */
@media (prefers-reduced-motion: reduce) { .use-panel, .use-panel:not([data-off]) .sample { animation: none; } }
/* panels that take turns in one place lie on each other in one grid cell, the ones not chosen invisible: the place is
   as tall as the tallest panel whatever the data, the language or the width, so changing panel never moves the page */
.use-panels { display: grid; }
.use-panels > .use-panel { grid-area: 1 / 1; }
.use-panel[data-off] { visibility: hidden; }
/* (a panel arrives each time it is chosen: the animation is tied to being on) */
.use-panel { animation: none; }
.use-panel:not([data-off]) { animation: arrive var(--t-move) var(--e-out) both; }
/* five things: the strike is drawn on each line of the words (a background on the inline text, cloned per line), so a
   two-line item is struck through both lines, never between them */

/* the bill: a line not yet entered keeps its place (invisible, so the contrast check never reads a half-shown line);
   the total and balance move with each line entered */

/* the signature's caption: the old one goes at once and the new one fades in, so two never show over each other */

/* a code box that scrolls sideways fades at the edge that has more (home-more.js sets .has-more while there is more
   to the right) */
.has-more { -webkit-mask-image: linear-gradient(90deg, var(--opaque) calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, var(--opaque) calc(100% - 40px), transparent); }
/* one column: the chosen job's name is already on its button right above, so the panel does not show it again */
@media (max-width: 1000px) { .use-panel > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
/* a link in the system prompt breaks where the line is full, like code, not at its hyphen as if it were a word */
#prompt-text .u { word-break: break-all; }
/* step 2: the wire and the request on it are drawn heavier, so the movement reads at 1280 */
.wire { stroke-width: 1.5; }
.art-flow .pkt { r: 4.5px; }
/* phones: the pager bar is two fixed rows (dots and label, then the button), whatever the label and button say */

/* phones: code boxes that scroll sideways show it by their fading edge (.has-more), not by a bar that comes and goes and
   changes the box's height */
@media (max-width: 720px) { .prompt pre, .snip pre, .term.big pre, .demo .json, #agent-term pre { scrollbar-width: none; } }
/* phones: a status line in the questions' card puts its words under its name (the 44px rule above made it a row);
   its live dot's ring stays inside the card's column, as in the footer */

/* a line that says different things in turn (the pager's page label, the end's status) is one grid cell holding what
   it says now and, invisible, each other thing it can say: as tall as the longest of them, whatever is shown */
.pg-label { display: grid; }
.pg-label > * { grid-area: 1 / 1; }
.pg-label > .ph { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .use-panel:not([data-off]) { animation: none; } }
/* signature, one column: every step's title, text and path change lie in the same rows, the steps not chosen invisible,
   so the rows are as tall as the longest step and pressing another platform never moves what is below */

/* the end's request: a long host still fits its column at 1280 (the box keeps 16px inside its edges) */

/* phones: the end starts as far below the questions as every section starts below the one before */

/* ---- the rework of 2026-11-20 ---- */
/* the platforms: one screen of tiles, each a platform, its endpoints and a link to its page */
.plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.plats a { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); min-height: 56px; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg); color: var(--fg); text-decoration: none; transition: border-color var(--t-fast) var(--e-std), background-color var(--t-fast) var(--e-std); }
.plats a:hover { border-color: var(--fg-3); background: var(--bg-1); }
.plats .nm { font: var(--t-btn); min-width: 0; }
.plats .ct { flex: none; font: var(--t-label); color: var(--fg-3); white-space: nowrap; }
.plats .ct b { font-weight: 500; color: var(--fg-2); }
#platforms .more { margin: var(--s-6) 0 0; display: flex; justify-content: center; }
@media (max-width: 720px) { .plats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plats a { flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; } }

/* the comparison table (the owner's version): our column lifted, the others as they are */
.vs-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-4); }
.vs { width: 100%; min-width: 760px; border-collapse: collapse; font: var(--t-ui); }
.vs th, .vs td { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line-2); text-align: center; vertical-align: middle; }
.vs thead th { border-top: 0; font: var(--t-btn); color: var(--fg-2); height: 76px; }
.vs thead th.us { color: var(--fg); }
.vs thead small { display: block; font: var(--t-micro); letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--live); margin-top: 4px; }
:lang(zh) .vs thead small { letter-spacing: 0; }
.vs th[scope="row"] { text-align: left; font: var(--t-body); font-weight: 400; color: var(--fg); width: 30%; }
.vs .us { background: var(--bg-1); box-shadow: inset 1px 0 0 var(--line), inset -1px 0 0 var(--line); }
.vs td small { display: block; font: var(--t-label); color: var(--fg-3); margin-top: 4px; }
.vs .mk.y { color: var(--live); } .vs .mk.n { color: var(--fg-3); } .vs .mk.p { color: var(--fg-2); }
.vs-note { margin: var(--s-5) auto 0; font: var(--t-ui); color: var(--fg-3); max-width: 46rem; text-align: center; }
.vs-wrap.has-more { -webkit-mask-image: linear-gradient(90deg, var(--opaque) calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, var(--opaque) calc(100% - 40px), transparent); }

/* the comparison's last line: pay per record, no subscription, and the way to every price (the calculator is on the
   pricing page) */
.price-line { margin: var(--s-4) auto 0; font: var(--t-body); color: var(--fg-2); text-align: center; }
.price-line .link { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--fg); }

/* the questions: the title and one line beside them */
.faq-side p .link { color: var(--fg); }

/* the end (the owner's version): centred, under the low light */
.close { position: relative; overflow: hidden; border-top: 1px solid var(--line-2); padding: 160px 0; text-align: center; background: var(--bg); }
.close .wrap { position: relative; z-index: 1; display: grid; gap: var(--s-5); justify-items: center; }
.close .t-cta { font: var(--t-cta); letter-spacing: var(--ls-cta); margin: 0; text-wrap: balance; }
.close .t-lead { max-width: 38rem; margin: 0; }
.close .acts { justify-content: center; }
.oneline { display: inline-flex; align-items: center; gap: var(--s-4); max-width: 100%; padding: 6px 6px 6px var(--s-4); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-1); }
.oneline code { font: var(--t-code); color: var(--fg); overflow-x: auto; white-space: nowrap; scrollbar-width: none; min-width: 0; }
@media (max-width: 720px) {
  .close { padding: var(--s-9) 0; }
  .oneline { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; padding: var(--s-3); }
  .oneline .btn { justify-self: start; }
}
/* the table's column names stay one line (the table scrolls sideways on a phone); the end starts as far below the
   questions on a phone as every section does below the one before */
.vs thead th { white-space: nowrap; }
@media (max-width: 720px) { .close { padding: calc(var(--s-9) + var(--s-8)) 0 var(--s-9); } }
:lang(zh) .vs td small { white-space: nowrap; }
/* ---- 2026-11-20, second pass ---- */
/* uses: the job list and the panel are one row of a grid, both stretched to it, the list's six rows sharing its height:
   their bottoms meet whatever the words or the width */
@media (min-width: 1001px) {
  .uses { align-items: stretch; }
  .use-list { align-self: stretch; align-content: stretch; grid-auto-rows: minmax(0, 1fr); }
  .use { height: auto; min-height: 64px; }
  .use-panels { align-self: stretch; }
}
/* the platforms: a set number of columns per width, and the last tile ("all platforms") spans what the row has left */
.plats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.plats .w5-1 { grid-column: span 1; } .plats .w5-2 { grid-column: span 2; } .plats .w5-3 { grid-column: span 3; } .plats .w5-4 { grid-column: span 4; } .plats .w5-5 { grid-column: span 5; }
.plats a.all { justify-content: center; align-items: center; gap: var(--s-2); border-style: dashed; color: var(--fg); }
@media (max-width: 1000px) {
  .plats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plats [class*="w5-"] { grid-column: auto; }
  .plats .w3-1 { grid-column: span 1; } .plats .w3-2 { grid-column: span 2; } .plats .w3-3 { grid-column: span 3; }
}
@media (max-width: 720px) {
  .plats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plats [class*="w3-"] { grid-column: auto; }
  .plats .w2-1 { grid-column: span 1; } .plats .w2-2 { grid-column: span 2; }
  .plats a.all { flex-direction: row; }
}
/* the agent's transcript: as tall as its lines, no empty rows under the last */
#agent-term pre { min-height: 0; }

/* the comparison table on a phone: a line above it says it slides (the fading edge alone was easy to miss), and the
   first column stays put while the others slide under it */
.vs-hint { display: none; margin: 0 0 var(--s-2); font: var(--t-label); color: var(--fg-3); text-align: right; }
@media (max-width: 720px) {
  .vs-hint { display: block; }
  .vs th:first-child, .vs td:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); box-shadow: 1px 0 0 var(--line); }
}

/* phones: a link at the end of an FAQ answer sits in a line of text. As a 44px inline-flex box it pushed that line
   down; it stays inline and a box laid over it is what you tap (the link's own padding plus 6px above and below). */
@media (max-width: 720px) {
  .faq .ans .link { display: inline; min-height: 0; position: relative; }
  .faq .ans .link::after { content: ""; position: absolute; inset: -6px 0; }
}
