/* "Pick your assistant. Sign in free." (round four U2; lib/site/parts/agent-onboarding.ts; drawing
   docs/site-relaunch/round-four/specs/agent-onboarding-o2.jpg). Site tokens only; the card white, the label greens and
   ambers and the ask's well are the drawing's own values. The still (no script) shows the whole prompt: the fixed
   height, the inner scroll and the fade apply only under [data-ao-live], which the part's script sets. */

.ao { --ao-card: #fffdf8; --ao-well: var(--paper-2, #ece7dc); }
.ao--block { display: flex; flex-direction: column; }

.ao .ao__k { margin: 0 0 14px; font-family: var(--ui); font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--amber-ink); }
.ao h2 { margin: 0 0 .35em; }
.ao .ao__lead { margin: 0 0 6px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.ao .ao__record { margin: 0 0 28px; font-size: 1rem; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }

/* The three doors. */
.ao__doors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
/* The starter switch off: the coding agents' door does not print, so two doors share the row. */
.ao__doors.ao__doors--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ao__door { background: var(--ao-card); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0; box-shadow: 0 6px 22px rgba(17, 22, 39, .08); }
.ao__door > p { margin: 0; font-size: .98rem; line-height: 1.5; max-width: none; color: var(--ink); }
.ao__dh { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ao .ao__dh h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 1.9vw, 1.65rem); line-height: 1.15; letter-spacing: -.005em; }

/* The door labels: their own small labels, not site status chips. */
.ao__tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-family: var(--ui); font-size: .84rem; font-weight: 600; line-height: 1.3; }
.ao__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ao__tag--ok { background: #d9efe3; color: var(--viridian); }
.ao__tag--ok::before { background: var(--viridian); }
.ao__tag--soon { background: #f7e7bd; color: var(--amber-ink); }
.ao__tag--soon::before { background: var(--amber); box-shadow: 0 0 0 4px rgba(232, 147, 12, .25); }

.ao__door .ao__go { margin-top: auto; }
.ao__door > .ao__tag--soon { margin-top: auto; }
.ao .ao__t { font-family: var(--ui); font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.ao .ao__t:hover { color: var(--amber-ink); }

/* Copy buttons (hidden until the script reveals them). */
.ao__copy { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(21, 23, 28, .22); background: transparent; color: var(--ink); font-family: var(--ui); font-size: .86rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ao__copy:hover { background: rgba(21, 23, 28, .06); }
.ao__copy:focus-visible, .ao__scroll:focus-visible, .ao a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.ao__copy[hidden] { display: none; }

/* The ChatGPT address: a small code chip with its copy button, wrapping inside the card. */
.ao__addr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; }
.ao__addr code { min-width: 0; max-width: 100%; overflow-wrap: anywhere; font: 500 .82rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--ao-well); color: var(--ink); border-radius: var(--radius-sm); padding: 7px 10px; }

/* The setup prompt box. */
.ao__prompt { position: relative; align-self: stretch; min-width: 0; background: var(--navy); border-radius: 16px; overflow: hidden; }
.ao__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.ao__bar-t { font-family: var(--ui); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-2); }
.ao__prompt .ao__copy { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.ao__prompt .ao__copy:hover { background: var(--amber-hover); border-color: var(--amber-hover); }
.ao__scroll { border-radius: 0 0 16px 16px; }
/* The box clips its overflow, so the scroller's focus ring sits inside it. */
.ao__scroll:focus-visible { outline-offset: -3px; }
.ao__scroll pre { margin: 0; padding: 4px 16px 18px; white-space: pre-wrap; word-break: break-word; font: 400 .8rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--on-dark); }
.ao__scroll code { font: inherit; color: inherit; background: none; padding: 0; }
.ao__prompt[data-ao-live] .ao__scroll { height: 210px; overflow-y: auto; }
.ao__prompt[data-ao-live]::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(rgba(17, 22, 39, 0), var(--navy)); pointer-events: none; opacity: 1; transition: opacity .2s var(--ease); }
.ao__prompt[data-ao-live][data-ao-end]::after { opacity: 0; }

/* Then ask it this, with Plug. */
.ao__ask { margin-top: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; background: var(--ao-card); border-radius: var(--radius); padding: 16px 22px 16px 14px; box-shadow: 0 6px 22px rgba(17, 22, 39, .08); }
.ao__plug { display: block; width: 116px; height: auto; }
.ao__ask-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.ao .ao__ask-h { margin: 0; font-family: var(--ui); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.ao__q { align-self: stretch; display: flex; align-items: flex-start; gap: 10px; background: var(--ao-well); border-radius: var(--radius-sm); padding: 12px 14px; }
.ao__q p { flex: 1 1 auto; min-width: 0; margin: 0; max-width: none; font: 400 .9rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }

/* build nine (Sarah YWrE4mOLo5lD): the line spans the content block above it (was 64ch); the part is shared, so /get-started too */
.ao .ao__fine { margin: 22px 0 0; font-size: .95rem; line-height: 1.5; color: var(--ink-3); max-width: none; }
.ao .ao__fine a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .ao__prompt[data-ao-live]::after { transition: none; }
}

/* Tablets: the three doors stay side by side, with a little less padding so the buttons keep to one line. */
@media (min-width: 721px) and (max-width: 1080px) {
  .ao__doors { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; }
  .ao__door { padding: 18px 16px; }
  .ao__door .ao__go { align-self: stretch; justify-content: center; text-align: center; padding-inline: 12px; font-size: .88rem; }
}

/* Phones: one column, in the spec's order (Claude, the prompt, ChatGPT, the ask). */
@media (max-width: 720px) {
  .ao__doors, .ao__doors.ao__doors--two { grid-template-columns: 1fr; gap: 14px; }
  .ao__door { padding: 18px; }
  .ao__copy { min-height: 44px; }
  .ao__prompt[data-ao-live] .ao__scroll { height: 240px; }
  .ao__ask { grid-template-columns: 1fr; gap: 10px; padding: 16px 18px; }
  .ao__plug { width: 88px; }
  .ao__q { flex-direction: column; }
}

/* Build five U5a (Sarah evwH4aBcEz0W): the day-one list under the first ask. Printed only when a page passes `tryAsks`
   (the Agents page); Home and Get Started print no `ao__try`, so nothing here reaches them.
   Build six part two R1: each ask is its own well, the same well as the first ask, with the plan it needs and a copy
   button at its foot; the wells share a row on wide screens and stack on phones. */
.ao__try { align-self: stretch; margin-top: 6px; }
.ao .ao__try-h { margin: 0 0 8px; font-family: var(--ui); font-size: .9rem; font-weight: 700; line-height: 1.3; }
.ao__try-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.ao__try-list .ao__try-item { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-width: 0; max-width: none; margin: 0; background: var(--ao-well); border-radius: var(--radius-sm); padding: 12px 14px; }
.ao .ao__try-q { margin: 0; max-width: none; font: 400 .88rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); overflow-wrap: anywhere; }
.ao__try-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 36px; }
.ao .ao__try-plan { margin: 0; font-family: var(--ui); font-size: .82rem; font-weight: 700; line-height: 1.3; color: var(--ink-2); }
.ao__try-foot .ao__copy { margin-left: auto; }

/* Build six part two R1 (Sarah m_DgRchwiZj5): Plug beside the docs page's connection heading (agents-docs.ts prints the
   row and the figure). The docs page loads this sheet and may print no `fp-` class, so the rule lives here. Build eight
   P4 (61zmzx6rLMqh): the compare page prints the same row for Pop, through `agentsHostRow` in agent-onboarding.ts. The heading keeps its column; Plug stands to its right and steps under it on phones. */
.ao-host-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.ao-host-row > .sp-head { flex: 1 1 420px; margin-bottom: 0; }
.ao-host { flex: none; margin: 0 0 0 auto; display: grid; justify-items: center; gap: 6px; }
.ao-host .uwee { width: clamp(112px, 13vw, 168px); }
.ao-host figcaption { font-family: var(--ui); font-size: .84rem; font-weight: 700; line-height: 1.3; text-align: center; color: var(--ink); }
@media (max-width: 720px) {
  .ao-host { margin-left: 0; }
}
/* from 1024 up the prose block puts its head in the left column (sub-page.css), so Plug stands under the heading there */
@media (min-width: 1024px) {
  .sp-depth--prose .ao-host-row { flex-direction: column; align-items: flex-start; gap: 28px; margin-bottom: 0; position: sticky; top: 140px; }
  .sp-depth--prose .ao-host-row > .sp-head { flex: none; }
  .sp-depth--prose .ao-host { margin: 0; }
  .sp-depth--prose .ao-host .uwee { width: clamp(150px, 13vw, 184px); }
}

/* Build eight P4 (opZSgQDvXpdn, 5XubDAq6Cz01): a crew member under a quote bubble with her words, in a navy table's copy
   column on the compare and how pages (`agentsSays`). The bubble keeps the site's one look (relaunch.css), a little
   wider so her sentence sets in fewer lines; the name and title take the ground's own text color (--fg), so they
   read on navy as on paper. */
.ao-says { width: fit-content; max-width: 100%; margin: 4px 0 clamp(24px, 3vw, 36px); display: grid; justify-items: center; gap: 6px; }
[data-site] .ao-says .ao-says__bubble { max-width: 24ch; margin: 0 0 8px; }
.ao-says .uwee { width: clamp(112px, 11vw, 148px); }
.ao-says figcaption { font-family: var(--ui); font-size: .84rem; font-weight: 700; line-height: 1.3; text-align: center; color: var(--fg); }

/* Build eight P4 (7qssn1XpTN4u): on the Agents page the fine print ("Other ways in: ...") sets at the lead's size
   ("... Plug does the connecting."). Only the Agents page prints the try list, so Home and Get Started keep theirs. */
.ao:has(.ao__try) .ao__fine { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }

/* FIX-8 (post-walk, the docs page's demo request): the kit's Copy button hung under the dark code box with a gap, a
   loose pill on the cream (worst on a phone). Here it joins the box as a tab of the same dark at its lower right.
   The docs page is the only page that loads this sheet with a copy block in #demo (agents.css may style only fp- classes); the box keeps its square corner only while the button shows. */
/* Build nine (Sarah Z8EYiF0kEsBF): the button stands apart from the box (10px under it, its own full pill, every corner of
   the box rounded), and keeps the box's dark so it never reads as a loose outline on the cream. */
.sp-depth#demo .kit-copy { gap: 10px; }
.sp-depth#demo .kit-copy > .kit-copy__btn { min-height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--navy); color: var(--on-dark); }
.sp-depth#demo .kit-copy > .kit-copy__btn:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Build six part two FIX-9 (walk audA, item 6): the demo token request ran 569px of text in a 358px box on a phone, cut
   off with no sign it scrolled; it wraps at its spaces now, so the whole command shows. Display only: Copy still copies
   the code element's text, unchanged. */
.sp-depth#demo [data-kit-copy]:not([data-protected]) .kit-copy__pre { white-space: pre-wrap; overflow-wrap: anywhere; }
