/* ANS brand: paper #FFF5DE, ink #0D0D0D, cobalt #2348DE — sampled from the
   brand files. Light on paper, dark on ink; always follows the device.
   Paperclip-punk structure (after agents.cloudflare.com): a 1px frame, faint
   dot grid, corner brackets, pills. Lines are neutral; cobalt is kept for the
   primary action, links, the ANSwer side and our note. */
:root {
  --bg: #FFF5DE;
  --card: #FFFAEE;
  --fg: #0D0D0D;
  --body: #48433A;
  --muted: #645E51;
  --line: #CFC6B0;
  --soft: #E6DCC4;
  --dot: #E0D5BA;
  --cobalt: #2348DE;
  --link: #2348DE;
  --tint: #E3EBFE;
  --tint-fg: #1129A5;
  --ok: #1F7A3E;
  --ok-bg: #E3F1E6;
  --no: #B4312D;
  --no-bg: #FCE5E2;
  --on-cobalt: #FFF5DE;
  --cobalt-edge: #12278A;
  --key-edge: #0D0D0D;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0D0D;
    --card: #141210;
    --fg: #FFF5DE;
    --body: #CFC6B0;
    --muted: #A8A08D;
    --line: #3A362F;
    --soft: #26231F;
    --dot: #23201C;
    --link: #6992FC;
    --tint: #0E1B5E;
    --tint-fg: #C6D7FE;
    --ok: #6CCB8B;
    --ok-bg: #11301D;
    --no: #F0877D;
    --no-bg: #3A1513;
    --key-edge: #A8A08D;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html {
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 16px 16px;
  color: var(--fg);
}
body { margin: 0; font: 16px/1.6 var(--sans); }
a { color: var(--link); }
button { font: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono, .kicker, code, pre { font-family: var(--mono); }
.muted { color: var(--muted); }
.kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; }

/* The frame: two rails down the page, hairlines across between sections. */
.frame { max-width: 1240px; margin: 0 auto; min-height: 100vh; background: var(--bg); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.frame > * { border-bottom: 1px solid var(--line); }
.frame > .foot { border-bottom: 0; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; }
.logo img { display: block; width: 78px; height: auto; }
.nav { display: flex; gap: 4px; margin-right: auto; margin-left: 20px; }
.nav a { color: var(--body); text-decoration: none; font-size: 14px; font-weight: 500; padding: 5px 12px; border-radius: 999px; }
.nav a:hover { color: var(--fg); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 720px) { .top { flex-wrap: wrap; } .nav { order: 3; width: 100%; margin: 4px 0 0; overflow-x: auto; } }
.cmd { display: flex; align-items: center; gap: 8px; min-width: 0; border: 0; background: none; color: var(--fg); padding: 4px 0; }
.cmd code { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.cmd .mcp-url { color: var(--muted); }
.cmd .copy { color: var(--muted); font-size: 14px; }
.cmd:hover .copy, .cmd.done .copy { color: var(--link); }

/* The keycap (after cbapp's): a face on a darker skirt. The face lifts on hover
   and presses flat on click; transforms only, so the layout never moves. The
   primary keycap is cobalt in both themes. */
.pill { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--key-edge); background: var(--card); color: var(--fg); padding: 8px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none; box-shadow: 0 4px 0 0 var(--key-edge); margin-bottom: 4px; transition: transform 120ms ease, box-shadow 120ms ease; }
.pill.primary { background: var(--cobalt); border-color: var(--cobalt-edge); color: #FFF5DE; box-shadow: 0 4px 0 0 var(--cobalt-edge); }
@media (prefers-reduced-motion: no-preference) {
  .pill:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--key-edge); }
  .pill.primary:hover { box-shadow: 0 6px 0 0 var(--cobalt-edge); }
  .pill:active { transform: translateY(4px); box-shadow: 0 0 0 0 var(--key-edge); }
  .pill.primary:active { box-shadow: 0 0 0 0 var(--cobalt-edge); }
}
.pill.small { padding: 5px 14px; font-size: 14px; border-radius: 8px; box-shadow: 0 3px 0 0 var(--key-edge); margin-bottom: 3px; }
.pill.small.primary { box-shadow: 0 3px 0 0 var(--cobalt-edge); }
.pill:disabled { opacity: .5; cursor: progress; transform: none; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.hero { padding: 36px 24px 32px; text-align: center; }
h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.02em; margin: 0 auto; font-weight: 700; text-wrap: balance; max-width: 22ch; }
h1 em { font-weight: 700; }
.lede { color: var(--body); font-size: 16px; margin: 10px auto 0; max-width: 60ch; }
.ask { display: flex; gap: 10px; max-width: 640px; margin: 20px auto 0; align-items: center; }
.ask input { flex: 1; min-width: 0; font: 17px var(--sans); padding: 11px 18px; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 10px; }
.ask input:focus { border-color: var(--fg); outline: none; }
@media (max-width: 640px) { .ask { flex-wrap: wrap; } .ask input { flex-basis: 100%; } }
.examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px auto 0; max-width: 720px; }
.examples button { border: 1px dashed var(--line); background: transparent; padding: 3px 12px; font-size: 13px; color: var(--body); border-radius: 999px; }
.examples button:hover { border-style: solid; border-color: var(--fg); color: var(--fg); }

/* Panes: two columns sharing one seam, labelled by a pill on the seam. */
.panes { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.seam { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: 1fr 1fr; z-index: 1; font-size: 13px; font-weight: 500; }
.seam span { text-align: center; white-space: nowrap; padding: 3px 14px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.seam span:first-child { border-radius: 999px 0 0 999px; border-right: 0; }
.seam span.on { border-radius: 0 999px 999px 0; background: var(--cobalt); border-color: var(--cobalt); color: var(--on-cobalt); }
.corner { position: absolute; top: 14px; width: 28px; height: 28px; border: 0 solid var(--line); pointer-events: none; }
.corner.tl { left: 12px; border-top-width: 1px; border-left-width: 1px; }
.corner.tr { right: 12px; border-top-width: 1px; border-right-width: 1px; }
.pane { display: flex; flex-direction: column; min-height: 460px; min-width: 0; }
.pane + .pane { border-left: 1px solid var(--line); }
.pane > header { padding: 36px 28px 12px; }
.pane h2 { font-size: 18px; margin: 0 0 8px; line-height: 1.25; }
.pane.answer h2 { color: var(--link); }
@media (max-width: 860px) {
  .panes { grid-template-columns: minmax(0, 1fr); }
  .pane + .pane { border-left: 0; border-top: 1px solid var(--line); }
}
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ticks li { font: 500 12px var(--mono); padding: 1px 9px 1px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.ticks li::before { content: "–"; display: inline-block; width: 1.2em; }
.ticks li.yes { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok); }
.ticks li.yes::before { content: "✓"; }
.ticks li.no { border-style: dashed; }
.ticks li.no::before { content: "✗"; }

.stream { padding: 8px 28px 20px; flex: 1; overflow-wrap: anywhere; }
.stream .empty { color: var(--muted); }
.ask-bubble { position: relative; margin: 4px 14px 18px auto; width: fit-content; max-width: 85%; padding: 10px 16px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; font-size: 15px; }
.ask-bubble::after { content: ""; position: absolute; right: -9px; bottom: 10px; width: 14px; height: 14px; background: var(--card); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: skewY(40deg) rotate(-45deg); }
.prose p { margin: 0 0 12px; }
.prose h4 { font-size: 17px; margin: 18px 0 6px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin-bottom: 4px; }
.status { font: 13px var(--mono); color: var(--muted); margin: 0 0 12px; }
.status::after { content: "…"; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.error { color: var(--no); font-weight: 500; }

/* An action bubble: one stage of tool calls between two pieces of text. */
.act { margin: 0 0 16px; }
.stage { border: 1px solid var(--line); background: var(--card); border-radius: 12px; }
.group { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 10px; padding: 8px 12px; }
.group + .group { border-top: 1px dashed var(--soft); }
.glabel { font-weight: 500; font-size: 14px; white-space: nowrap; }
.glabel .count { font: 12px var(--mono); color: var(--muted); margin-left: 4px; }
.group.answer .glabel { color: var(--link); }
.strip { display: flex; justify-content: flex-end; gap: 6px; padding: 2px 4px 4px 0; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 24px); -webkit-mask-image: linear-gradient(to right, transparent, #000 24px); }
.gsum { grid-column: 1 / -1; font: 12px var(--mono); color: var(--muted); }

/* A chip: the site's icon (or the tool's), with a ✓/✗ in its corner. */
.chip { position: relative; flex: none; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--soft); background: var(--bg); border-radius: 6px; color: var(--muted); }
.chip .ico { display: grid; place-items: center; width: 14px; height: 14px; }
.chip .ico img, .chip .ico svg, .chip .ico picture { display: block; width: 14px; height: 14px; border-radius: 3px; }
.chip .glyph { font: 600 10px/1 var(--mono); }
.chip .badge { position: absolute; right: -5px; bottom: -5px; min-width: 12px; height: 12px; border-radius: 999px; font: 700 8px/12px var(--sans); font-style: normal; text-align: center; color: var(--bg); box-shadow: 0 0 0 1.5px var(--card); }
.chip .badge:empty { display: none; }
.chip.ok .badge { background: var(--ok); }
.chip.fail .badge { background: var(--no); }
.chip.wait { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.chip.new { animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.fav { display: block; width: 14px; height: 14px; border-radius: 3px; }
.fav.letter { display: grid; place-items: center; background: var(--soft); font: 600 9px/1 var(--mono); color: var(--muted); }

/* The sources dropdown, hooked under the card. */
.sources { position: relative; margin: 2px 0 0 14px; padding-left: 22px; }
.sources > summary { list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0 4px; cursor: pointer; }
.sources > summary::-webkit-details-marker { display: none; }
.hook { position: absolute; left: 0; top: -2px; width: 16px; height: 22px; border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); border-bottom-left-radius: 10px; }
.verb { font-weight: 500; font-size: 14px; }
.favs { display: flex; gap: 6px; padding: 2px 4px 4px 0; }
.scount { font: 12px var(--mono); color: var(--muted); }
.scount .good { color: var(--ok); }
.scount .bad { color: var(--no); }
.open { margin-left: auto; font: 500 12px var(--mono); padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); white-space: nowrap; }
.sources > summary:hover .open { border-color: var(--fg); }
.chev { display: inline-block; transition: transform .15s; }
.sources[open] .chev { transform: rotate(180deg); }
.srcbody { margin: 6px 0 4px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; max-height: 520px; overflow: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px dashed var(--soft); }
.legend .how { font: 11px var(--mono); color: var(--muted); margin-left: auto; }
.call > header { display: flex; gap: 8px; align-items: baseline; padding: 10px 14px 4px; font-size: 13px; color: var(--muted); }
.call .q { color: var(--fg); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call .res { margin-left: auto; font: 11px var(--mono); white-space: nowrap; }
.rows { list-style: none; margin: 0; padding: 0 6px 6px; }
.rows a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 5px 8px; border-radius: 8px; color: var(--fg); text-decoration: none; font-size: 14px; }
.rows a:hover { background: var(--soft); }
.rows .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .h { font: 12px var(--mono); color: var(--muted); max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font: 500 11px var(--mono); padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.newsroom { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok); }
.tag.state, .tag.failed { background: var(--no-bg); border-color: var(--no-bg); color: var(--no); }
@media (max-width: 1100px) { .rows .h { display: none; } }

/* Our note: what the answer actually stood on. Ours, not Claude's. */
.note { margin: 6px 0 4px; padding: 12px 16px; border: 1px solid var(--cobalt); background: var(--tint); color: var(--tint-fg); border-radius: 12px; }
.note .who { display: flex; align-items: center; gap: 8px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.note .who img { height: 11px; width: auto; }
.note b { display: block; font-size: 16px; line-height: 1.35; color: var(--fg); }
.note.bad b::before { content: "✗ "; color: var(--no); }
.note.good b::before { content: "✓ "; color: var(--ok); }
.note span { font-size: 14px; }

.meta { padding: 10px 28px; border-top: 1px dashed var(--line); font: 12px var(--mono); color: var(--muted); min-height: 38px; }

/* Hover detail for a chip. */
.tip { position: fixed; z-index: 10; max-width: 340px; padding: 8px 10px; background: var(--fg); color: var(--bg); font-size: 13px; line-height: 1.4; border-radius: 8px; pointer-events: none; }
.tip code { display: block; font-size: 12px; opacity: .75; margin-bottom: 2px; }

/* Inner pages and their blocks. */
.page { padding: 40px 28px 32px; }
.ph { text-align: left; margin: 6px 0 10px; max-width: none; }
.block { padding: 40px 28px; }
.block h3 { font-size: 26px; line-height: 1.2; margin: 6px 0 8px; letter-spacing: -.01em; }
.block .muted { max-width: 72ch; }
.small { font-size: 14px; }
.shot { margin: 20px 0; border: 1px solid var(--line); background: var(--card); }
.shot img { display: block; width: 100%; height: auto; }
cite { display: block; font: normal 12px var(--mono); color: var(--muted); margin-top: 4px; }
.findings { margin: 20px 0 0; padding-left: 22px; display: grid; gap: 14px; max-width: 80ch; }
.findings li { color: var(--body); }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.person { padding: 20px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.person b { font-size: 20px; }
.person span { color: var(--body); }
.sheet .cmd { width: 100%; justify-content: space-between; background: var(--card); border: 1px solid var(--line); padding: 10px 12px; border-radius: 8px; text-align: left; }
.sheet .cmd code { max-width: none; white-space: normal; word-break: break-all; }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 20px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.num { padding: 18px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.num b { font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.num span { color: var(--body); font-size: 14px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; }

.sheet { max-width: 640px; width: calc(100% - 32px); border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 24px; border-radius: 14px; }
.sheet::backdrop { background: rgb(13 13 13 / .5); }
.sheet h3 { font-size: 22px; margin: 4px 0 10px; }
.sheet h4 { margin: 20px 0 6px; }
.sheet .close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--fg); }
.sheet pre { background: var(--card); border: 1px solid var(--line); padding: 10px 12px; overflow-x: auto; font-size: 13px; white-space: pre-wrap; word-break: break-all; border-radius: 8px; }
.sheet ol { padding-left: 22px; }

/* The landing page (ANS-31): pictures first, one line per section. */
.landing h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -.015em; margin: 6px 0 10px; font-weight: 700; text-wrap: balance; max-width: 30ch; }
.land-hero { padding: 64px 24px 40px; }
.land-hero h1 { font-size: clamp(40px, 6.5vw, 76px); margin-top: 10px; }
.land-hero .lede { font-size: 18px; }
.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }

/* A product shot in a window: a bar, then the picture cut to its top and faded out. */
.window { margin: 0; position: relative; background: var(--card); }
.frame > .window { padding: 28px 28px 0; background: transparent; }
.window .bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--card); font-size: 12px; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line); }
.crop { height: clamp(320px, 46vw, 600px); overflow: hidden; border: 1px solid var(--line); background: var(--bg); -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.crop img { display: block; width: 100%; height: auto; }
/* The sources picture opens at the two source lists, not the page top. */
.crop.sources { height: clamp(300px, 42vw, 560px); border-radius: 12px; margin-top: 22px; }
.crop.sources img { margin-top: -21%; }
.window figcaption { display: flex; justify-content: center; gap: 10px 22px; flex-wrap: wrap; padding: 14px 0 22px; font-size: 13px; color: var(--muted); }
.window figcaption .on { color: var(--link); }

/* How it works: three nodes and the way back. */
.flow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(90px, .6fr) minmax(0, 1fr) minmax(90px, .6fr) minmax(0, 1.2fr); align-items: center; margin-top: 28px; }
.node { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 30px 16px 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.node .tag { position: absolute; top: -11px; left: 14px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.node.on { background: var(--cobalt); border-color: var(--cobalt-edge); box-shadow: 0 4px 0 0 var(--cobalt-edge); align-items: center; text-align: center; }
.node.on .tag { color: var(--link); border-color: var(--cobalt); }
.node .mark { width: 96px; height: auto; }
.node .sub { color: #FFF5DE; font-size: 13px; opacity: .85; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 13px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.chips .more { border-style: dashed; color: var(--muted); }
.said { font-size: 15px; line-height: 1.45; color: var(--body); }
.said b { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.arrow { position: relative; height: 1px; background: var(--fg); margin: 0 8px; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4.5px solid transparent; border-left: 7px solid var(--fg); border-right: 0; }
.arrow span { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: max-content; max-width: 140px; text-align: center; font: 11px/1.3 var(--mono); color: var(--muted); }
.back { position: relative; margin: 26px 0 0; height: 30px; border: 1px dashed var(--line); border-top: 0; border-radius: 0 0 14px 14px; margin-left: 10%; margin-right: 10%; }
.back::before { content: ""; position: absolute; left: -5px; top: -8px; border: 5px solid transparent; border-bottom: 8px solid var(--line); border-top: 0; }
.back span { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); padding: 0 10px; background: var(--bg); font-size: 12px; color: var(--ok); white-space: nowrap; }
@media (max-width: 860px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .arrow { width: 1px; height: 54px; margin: 0 auto; }
  .arrow::after { right: -4px; top: auto; bottom: -1px; border: 4.5px solid transparent; border-top: 7px solid var(--fg); border-bottom: 0; }
  .arrow span { left: 14px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .back { display: none; }
}


/* Install: the URL to copy, then three steps as keys. */
.cmd.well { width: 100%; max-width: 640px; justify-content: space-between; margin: 18px 0; background: var(--card); border: 1px solid var(--line); padding: 12px 12px 12px 16px; border-radius: 10px; }
.cmd.well code { max-width: none; font-size: 15px; color: var(--fg); }
.cmd.well .copy { font: 600 13px var(--sans); color: var(--fg); padding: 3px 10px; border: 2px solid var(--key-edge); border-radius: 7px; box-shadow: 0 2px 0 0 var(--key-edge); }
.cmd.well.done .copy { color: var(--ok); }
.steps3 { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; max-width: 900px; }
.steps3 li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 14px; color: var(--body); }
.steps3 b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--key-edge); border-radius: 8px; box-shadow: 0 3px 0 0 var(--key-edge); font: 600 14px var(--mono); color: var(--fg); background: var(--bg); }
.linkish { border: 0; background: none; padding: 0; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* Demo and deck, side by side. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 22px 22px 18px; }
.card h3 { font-size: 22px; line-height: 1.25; margin: 6px 0 16px; }
.card p { margin: 0; }

.landing .people { border: 0; gap: 16px; margin-top: 14px; }
.landing .person { flex-direction: row; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.landing .person div { display: flex; flex-direction: column; }
.mono-badge { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 10px; background: var(--cobalt); color: #FFF5DE; font: 600 18px var(--mono); box-shadow: 0 4px 0 0 var(--cobalt-edge); border: 2px solid var(--cobalt-edge); }

/* The demo's door: an access code for visitors without a key link. */
.door { max-width: 460px; margin: 14vh auto 40px; padding: 32px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-align: center; }
.door-logo img { display: block; width: 78px; height: auto; margin: 0 auto 18px; }
.door h1 { font-size: 28px; margin: 6px 0 8px; }
.door-form { display: flex; gap: 10px; margin: 20px 0 6px; align-items: flex-start; }
.door-form input[name="k"] { flex: 1; min-width: 0; font: 16px var(--mono); padding: 10px 14px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 10px; }
.door-form input[name="k"]:focus { border-color: var(--fg); outline: none; }
.door-wrong { color: var(--no); font-size: 14px; margin: 8px 0 0; }
@media (max-width: 480px) { .door-form { flex-direction: column; align-items: stretch; } }

/* The model picker (ANS-32): a listbox, so each model shows its provider's icon. */
.ask .model { position: relative; flex: none; }
.model-btn { display: flex; align-items: center; gap: 8px; font: 500 14px var(--sans); color: var(--fg); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 34px 9px 12px; white-space: nowrap; }
.model-btn:hover, .model-btn[aria-expanded="true"] { border-color: var(--fg); }
.model-btn:disabled { opacity: .5; cursor: progress; }
.mi { width: 20px; height: 20px; border-radius: 5px; background: #fff; padding: 2px; flex: none; }
.model-list { position: absolute; z-index: 5; top: calc(100% + 6px); right: 0; min-width: 100%; margin: 0; padding: 4px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgb(13 13 13 / .12); }
.model-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 7px; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.model-list li:hover, .model-list li:focus { background: var(--soft); outline: none; }
.model-list li[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 640px) { .ask .model { flex: 1; } .model-btn { width: 100%; } }
