/* Agents (/what-jinn-can-do/agents), on top of the feature kit's sheet (pages/feature.css; round two U16, spec
   docs/site-relaunch/round-two/specs/agents.md). Only what the Agents page has and the kit does not. Every rule sits
   under an `fp-` class the kit or this page prints, so the four Agents sub-pages, which load the same stylesheet list
   and print no `fp-` class, are not touched. */

/* 2. desktop with motion: the kit stacks the stations with a negative bottom margin, which lets the last one stay pinned
   up to a screen past the end of the list and paint over what follows (here the run's caption). The last station keeps
   no negative margin, so it scrolls away with the list. */
@media (min-width: 861px) {
  .fp-run.is-stepping .fp-station:last-child { margin-bottom: 0; }
}
/* the voice answer (station two) is the longest recorded answer; between the phone layout and wide screens the frame is
   narrower than the picture is tall, so its type tightens a step to fit whole instead of scrolling inside the frame */
@media (min-width: 861px) and (max-width: 1199px) {
  .fp-run.is-stepping .fp-session__answer { font-size: .86rem; line-height: 1.45; gap: 7px; }
  .fp-run.is-stepping .fp-session__answer table { font-size: .8rem; }
  .fp-run.is-stepping .fp-session__answer th, .fp-run.is-stepping .fp-session__answer td { padding: 4px 8px 4px 0; }
}

/* 5. What an agent can read: the list has no piece beside it, so it takes the width in two columns.
   Build six part two R1 (Sarah MFS60JyL47CX): the kit's amber side bars go (each stretched down the tallest row of its
   line); a hairline over each row instead, rows sized to their own words. From 1200 the heading and the docs link hold a
   left column, as Writing's under-the-hood band does, the rows two-up on the right, the benchmark note under both. */
.fp-features__solo .fp-copy { max-width: none; }
.fp-features__solo .fp-rows { align-items: start; }
.fp-features__solo .fp-rows li { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--rule); min-width: 0; }
@media (min-width: 861px) {
  .fp-features__solo .fp-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); row-gap: 28px; }
}
@media (min-width: 1200px) {
  .fp-features__solo .fp-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); grid-template-rows: auto auto auto 1fr auto; column-gap: clamp(48px, 6vw, 96px); align-items: start; }
  .fp-features__solo .fp-copy > .label { grid-column: 1; grid-row: 1; }
  .fp-features__solo .fp-copy > h2 { grid-column: 1; grid-row: 2; }
  .fp-features__solo .fp-copy > .fp-more { grid-column: 1; grid-row: 3; }
  .fp-features__solo .fp-copy > .fp-rows { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
  .fp-features__solo .fp-copy > .fp-note { grid-column: 2; grid-row: 5; }
}
/* the skills row: the install command as a code chip, the catalog link beside it (spec L4) */
.fp-features .fp-skills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; font-weight: 700; }
.fp-features .fp-skills code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; font-weight: 400; color: var(--fg); background: #fbfaf7; border: 1px solid var(--rule); border-radius: 6px; padding: 3px 8px; overflow-wrap: anywhere; }
.fp-features__solo .fp-rows + .fp-note { max-width: 72ch; margin-top: 22px; }

/* 6. the doors: the Compare door carries the table, so it takes the whole row under the other three.
   Build six part two R1 (Sarah 6gXSXOGgVSJj): the Compare door prints last, so the three short doors share the first row
   and the table closes the band, framed as Writing frames its comparison. */
.fp-doors__list li:has(> .fp-table) { grid-column: 1 / -1; gap: 18px; }
.fp-doors__list .fp-table { margin-top: 0; }
@media (min-width: 861px) {
  .fp-doors__list[data-n="4"]:has(.fp-table) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.fp-doors .fp-head { margin-bottom: clamp(20px, 3vw, 36px); }
.fp-doors__list li:has(> .fp-table) { margin-top: clamp(12px, 2vw, 24px); padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); box-shadow: 0 10px 30px rgba(17, 22, 39, .06); }
.fp-doors__list li:has(> .fp-table) > .tcta { margin-top: 4px; }
@media (min-width: 861px) {
  .fp-doors__list .fp-table thead th[scope="col"]:nth-child(2) { box-shadow: inset 0 -2px 0 var(--amber); }
}
/* below 861 the kit draws each table row as its own card, so the door drops its frame (no card inside a card) */
@media (max-width: 860px) {
  .fp-doors__list li:has(> .fp-table) { padding: 22px 0 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; box-shadow: none; }
}
/* the table: Jinn is the first column here, so it carries the weight (the kit bolds the last one) */
.fp-table:has(td[data-th="Jinn"]:first-of-type) td:last-child { font-family: inherit; font-weight: inherit; }
.fp-table td[data-th="Jinn"]:first-of-type { font-family: var(--head); font-weight: 700; }

/* 7. the price: the live page's four rows as small cards (the kit's plans band has no price rows) */
.fp-prices { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fp-prices li { display: grid; align-content: start; gap: 6px; background: #fffdf8; border: 1px solid var(--rule); border-radius: 10px; padding: 18px 18px 16px; }
.fp-prices h3 { margin: 0; font-family: var(--ui); font-size: .95rem; font-weight: 700; color: var(--ink-2); }
.fp-prices .fp-prices__amt { margin: 0; font-family: var(--head); font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.05; white-space: nowrap; }
@media (min-width: 861px) {
  .fp-prices { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
.fp-plans .fp-prices + .fp-note { margin: 16px 0 20px; }
/* the directory line under the connect door (spec L6) */
.fp-plans .fp-directory { margin: 14px 0 0; }

/* Build six part two R1 (Sarah MFS60JyL47CX): under the table, the plan notes on the left and the promise with its
   connect door on the right; then the For AI Agents link beside Wire, over a hairline. */
.fp-plans .fp-plans__after { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 72px); margin-top: 20px; align-items: start; }
.fp-plans .fp-plans__after > * { min-width: 0; }
.fp-plans .fp-plans__notes > p:first-child, .fp-plans .fp-plans__trust > p:first-child { margin-top: 0; }
.fp-plans .fp-plans__trust { padding: clamp(18px, 2.4vw, 26px); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.fp-plans .fp-plans__trust > .fp-note:first-child { color: var(--fg); }
.fp-plans .fp-plans__trust .doors { margin-top: 16px; }
@media (min-width: 861px) {
  .fp-plans .fp-plans__after { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.fp-plans .fp-plans__for { display: flex; align-items: center; flex-wrap: wrap; gap: 12px clamp(20px, 3vw, 36px); margin-top: clamp(32px, 4vw, 52px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--rule); }
.fp-plans .fp-plans__crew { flex: none; display: grid; justify-items: center; gap: 6px; margin: 0; }
.fp-plans .fp-plans__crew .uwee { width: clamp(104px, 10vw, 140px); }
.fp-plans .fp-plans__crew figcaption { font-family: var(--ui); font-size: .84rem; font-weight: 700; text-align: center; color: var(--ink); }
.fp-plans .fp-plans__for-words { flex: 1 1 260px; min-width: 0; }
.fp-plans .fp-plans__for-words > .fp-note { margin-top: 0; font-family: var(--head); font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.3; color: var(--fg); }
.fp-plans .fp-plans__for-words > .fp-more { margin-top: 10px; }
/* FIX-8 (post-walk): on a phone Wire wraps above his words, and his centred portrait sat over a left-aligned caption
   and line; there the portrait and caption take the words' left edge. */
@media (max-width: 600px) {
  .fp-plans .fp-plans__crew { justify-items: start; }
  .fp-plans .fp-plans__crew figcaption { text-align: left; }
}

/* Build six part two R1 (Sarah MFS60JyL47CX): the connection. The words on the left; the two code steps in one dark
   panel on the right (the code blocks paint with var(--card), so the panel sets it); the diagram and links under both. */
.fp-connection .fp-connect { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px clamp(36px, 5vw, 72px); align-items: start; margin-bottom: clamp(36px, 5vw, 60px); }
.fp-connection .fp-connect > * { min-width: 0; }
.fp-connection .fp-connect__words > h2 { margin-top: 0; }
.fp-connection .fp-connect__words code { overflow-wrap: anywhere; }
.fp-connection .fp-connect__code { --card: var(--navy-2); --fg: var(--on-dark); --muted: var(--on-dark-2); --rule: rgba(238, 242, 249, .16); padding: clamp(16px, 2.4vw, 28px); border-radius: var(--radius); background: var(--navy); color: var(--on-dark); box-shadow: var(--shadow); }
.fp-connection .fp-connect__code > p { margin: 0 0 2px; font-family: var(--ui); font-size: .9rem; font-weight: 700; color: var(--on-dark-2); }
.fp-connection .fp-connect__code > pre + p { margin-top: 18px; }
@media (min-width: 1024px) {
  .fp-connection .fp-connect { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

/* Build five U5a (Sarah's preview comments on this page, 2026-11-13). */
/* uy2HPKbSgl4u: the proposal heading breaks after "suggest." at every width (two block lines; one sentence to a reader) */
.fp-propose__line { display: block; }
/* 59Ouw_pzg8lD: Pockets larger, standing above the "Suggested" column head (top right of the table), not beside the
   last row; on phones he stands above the stacked rows. The kit prints him after the table, so the order moves here. */
.fp-propose #propose-build { display: flex; flex-direction: column; }
.fp-propose #propose-build > .kit-build__carry { order: -1; margin: 0 0 4px; justify-content: flex-end; }
.fp-propose #propose-build > .kit-build__carry .kit-uwee { width: clamp(156px, 13vw, 208px); }
/* Build eight P4 (wvFgy5reS5Wk): larger, the pose with the pen in his pocket, his name and title under him */
.fp-propose #propose-build > .kit-build__carry { flex-direction: column; align-items: flex-end; gap: 4px; }
.fp-propose #propose-build > .kit-build__carry .fp-propose__role { max-width: 14em; text-align: right; }
/* his name and title arrive with him: hidden while the build is armed, in with his picture as it plays (kit.css hides
   and moves only the img; unarmed, under reduced motion and without script, the caption simply shows) */
.fp-propose #propose-build[data-kit-state="armed"] > .kit-build__carry .fp-propose__role { opacity: 0; }
.fp-propose #propose-build[data-kit-state="playing"] > .kit-build__carry .fp-propose__role { animation: kit-enter 240ms var(--ease) var(--kit-delay, 0ms) both; }
@media (min-width: 861px) {
  /* the caption runs short on the left, so he can stand down level with it instead of over an empty row */
  .fp-propose #propose-build > .kit-build__carry { margin: 0 clamp(0px, 2vw, 24px) -34px 0; }
}
/* FIX-8 (post-walk): from 861 he stood in a row of his own between the brand label and the table (about 150px of
   blank with him alone at right). He now stands at the band's top right, level with the heading, and the table
   follows the brand label. The row labels get a column of their own width with a gap, and the values a size at which
   the longest list ("..., weight loss, cheap") holds one line, so "cheap" no longer wraps alone. */
@media (min-width: 861px) {
  .fp-propose > .wrap { position: relative; }
  .fp-propose #propose-build { position: static; }
  .fp-propose #propose-build > .kit-build__carry { position: absolute; top: 0; right: clamp(0px, 2vw, 24px); margin: 0; }
  .fp-propose > .wrap > h2 { padding-right: clamp(180px, 17vw, 250px); }
  /* build eight P4: larger, with his name and title under him, he is taller than the heading and the brand label, so
     the table starts lower and his caption ends just above the "Suggested" head (measured 861 to 1680: 11 to 39px clear) */
  .fp-propose #propose-build > .kit-build__table { margin-top: 58px; }
  .fp-propose .kit-build__table th[scope="row"] { width: 12em; padding-right: clamp(16px, 2vw, 28px); white-space: nowrap; }
  .fp-propose .kit-build__table td { padding-right: clamp(16px, 2vw, 28px); font-size: clamp(1rem, 1.25vw, 1.15rem); }
}
/* P13 (W6): the free line, while the starter switch is on. Build nine (Sarah V3X-eZ6zBbTb): under the first door, outside the
   card, so the three cards keep one height; column one of row two (the cards auto-place around it), so a phone prints it
   right under the first card too. */
.fp-doors__list li.fp-doors__note { grid-column: 1; grid-row: 2; display: block; padding: 0; border: 0; }
.fp-doors__list .fp-doors__free { margin: 0; font-family: var(--ui); font-size: .9rem; font-weight: 400; line-height: 1.45; color: var(--muted); }

/* Build five close: the longer opening (W13) ran a few pixels past the painted sign at laptop widths and on a 390 phone.
   The sentence and actions step down one size at 861 to 1360, and the phone words take a little more of the sign.
   The hero prints no fp- class, so each rule is tied to this page by its own .fp-propose band. */
@media (min-width: 861px) and (max-width: 1360px) and (min-aspect-ratio: 6/5) {
  :root:has(.fp-propose) #hero.ah .ah__sentence { margin-bottom: clamp(8px, 3.4cqh, 16px); font-size: clamp(.86rem, min(3.9cqw, 4.2cqh), 1.15rem); line-height: 1.38; }
  :root:has(.fp-propose) #hero.ah .ah__words > .hero-status, :root:has(.fp-propose) #hero.ah .ah__words > .kicker, :root:has(.fp-propose) #hero.ah .ah__words > .label { margin-bottom: clamp(5px, 2.2cqh, 12px); }
  :root:has(.fp-propose) #hero.ah .ah__words > .doors { gap: 6px 14px; font-size: .86rem; }
  :root:has(.fp-propose) #hero.ah .ah__words > .doors .btn { padding: .5em 1em; font-size: inherit; }
  :root:has(.fp-propose) #hero.ah .ah__words > .doors .tcta { font-size: inherit; }
}
@media (max-width: 560px) {
  :root:has(.fp-propose) #hero.ah .ah__words > .hero-status, :root:has(.fp-propose) #hero.ah .ah__words > .kicker, :root:has(.fp-propose) #hero.ah .ah__words > .label { margin-bottom: 4px; }
  :root:has(.fp-propose) #hero.ah .ah__sentence { margin-bottom: 8px; }
  :root:has(.fp-propose) #hero.ah .ah__words > .doors { gap: 4px 14px; }
}
@media (max-width: 480px) {
  :root:has(.fp-propose) #hero.ah .ah__words { inset: 2.5% 4.5%; }
}

/* Build six part two FIX-2. Watch it work: from 1100 the kit stacks the three steps in one cell, so the band kept the
   height of the longest recorded answer (step two) under every step and left a blank of about 190px under step one,
   then 120px of its own padding over the next band's 120px. The kit stacks on purpose: its one automatic pass through
   the steps must not move the page under a reader. So the stacking stays, and the film sets each step's height: the
   recorded session beside it takes no height of its own and, when the answer runs longer than the film (step two), it
   scrolls inside its own frame, as a chat window does, with a soft shadow at the edge that has more. Every word stays.
   The seam between the two bands closes to one step of air. */
@media (min-width: 1100px) {
  .fp-run#watch .fp-stage__panel > .fp-station__piece--frame { grid-row: 1 / span 4; display: flex; flex-direction: column; height: 0; min-height: 100%; }
  .fp-run#watch .fp-stage__panel > .fp-station__piece--frame > :not(.fp-frame--session) { flex: none; }
  .fp-run#watch .fp-stage__panel .fp-frame--session {
    flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    background:
      linear-gradient(#fff 30%, rgba(255, 255, 255, 0)) center top / 100% 36px no-repeat local,
      linear-gradient(rgba(255, 255, 255, 0), #fff 70%) center bottom / 100% 36px no-repeat local,
      radial-gradient(farthest-side at 50% 0, rgba(17, 22, 39, .16), rgba(17, 22, 39, 0)) center top / 100% 12px no-repeat scroll,
      radial-gradient(farthest-side at 50% 100%, rgba(17, 22, 39, .16), rgba(17, 22, 39, 0)) center bottom / 100% 12px no-repeat scroll,
      #fff;
  }
}
/* FIX-8 (post-walk): under 1100 the kit drops the steps not on show (display: none), so the band changed height with
   every step (1024: 1391 / 1607 / 1311px; 390: 1193 / 1479 / 1136px) and the page below jumped when a reader, or the
   automatic pass, changed step. Here the three steps stay stacked in one cell under 1100 too, as the kit does from
   1100 (the ones not on show stay invisible and out of reach), so the band holds the tallest step's height; and step
   two's long answer is capped so that height stays close to the other two, scrolling inside its frame with the same
   shadow cue as from 1100. Every word stays. */
@media (max-width: 1099px) {
  .fp-run#watch .kit-stage[data-kit-live] .kit-stage__panel[data-kit-off] { display: grid; }
  .fp-run#watch .fp-stage__panel .fp-frame--session {
    max-height: 440px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    background:
      linear-gradient(#fff 30%, rgba(255, 255, 255, 0)) center top / 100% 36px no-repeat local,
      linear-gradient(rgba(255, 255, 255, 0), #fff 70%) center bottom / 100% 36px no-repeat local,
      radial-gradient(farthest-side at 50% 0, rgba(17, 22, 39, .16), rgba(17, 22, 39, 0)) center top / 100% 12px no-repeat scroll,
      radial-gradient(farthest-side at 50% 100%, rgba(17, 22, 39, .16), rgba(17, 22, 39, 0)) center bottom / 100% 12px no-repeat scroll,
      #fff;
  }
}
@media (min-width: 861px) and (max-width: 1099px) { .fp-run#watch .fp-stage__panel .fp-frame--session { max-height: 340px; } }
/* FIX-8: the scrolling answer is a focusable region (agents.ts); its ring shows on keyboard focus only */
.fp-run#watch .fp-frame--session[tabindex]:focus-visible { outline: 2px solid var(--amber-ink); outline-offset: 3px; }
.fp-run#watch { padding-bottom: clamp(40px, 5vw, 64px); }
.fp-run#watch + .fp-connection { padding-top: clamp(40px, 5vw, 64px); }

/* FIX-2: how an agent reaches your brand, the row of four plain boxes. Each step becomes a card numbered in order (the
   number is decoration only, read as nothing), the arrows sit on the cards' middle, and the last step, your brand's
   record, is the dark card the path arrives at. Words and links unchanged. */
.fp-connection #ag-pipe .kit-build__list { counter-reset: ag-pipe; }
.fp-connection #ag-pipe .dp-pipe__step { counter-increment: ag-pipe; display: grid; gap: 10px; align-content: start; box-sizing: border-box; padding: 16px 18px 18px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--card); box-shadow: 0 10px 30px rgba(17, 22, 39, .06); }
.fp-connection #ag-pipe .dp-pipe__step::before { content: counter(ag-pipe, decimal-leading-zero); content: counter(ag-pipe, decimal-leading-zero) / ""; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--amber-ink); }
.fp-connection #ag-pipe .dp-pipe__label { font-size: 1rem; }
.fp-connection #ag-pipe .dp-pipe__label a { color: var(--fg, var(--ink)); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.fp-connection #ag-pipe .kit-build__step:last-child .dp-pipe__step { border-color: var(--navy); background: var(--navy); box-shadow: var(--shadow); }
.fp-connection #ag-pipe .kit-build__step:last-child .dp-pipe__step::before { color: var(--amber-hi); }
.fp-connection #ag-pipe .kit-build__step:last-child .dp-pipe__label a { color: var(--on-dark); }
@media (min-width: 721px) {
  .fp-connection #ag-pipe .kit-build__step { align-items: stretch; }
  .fp-connection #ag-pipe .dp-pipe__step { min-height: 100%; }
  .fp-connection #ag-pipe .dp-arrow { top: calc(50% - 7px); }
}

/* FIX-2: the three short doors as crew cards (the overview near the top stays the text index of the same pages). Each
   opens on the crew member who leads the page it goes to, standing on a cream ground with name and title beneath;
   the whole card is the link's target. The Compare door keeps its table and frame. */
.fp-doors__list li.fp-door { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 0 0 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); overflow: hidden; box-shadow: 0 10px 30px rgba(17, 22, 39, .06); }
.fp-doors__list .fp-door__crew { display: grid; justify-items: center; align-content: end; gap: 8px; margin: 0 0 4px; padding: clamp(18px, 2vw, 26px) 16px 14px; background: var(--cream, var(--paper)); border-bottom: 1px solid var(--rule); }
.fp-doors__list .fp-door__uwee { width: clamp(132px, 11vw, 168px); }
.fp-doors__list .fp-door__uwee img { aspect-ratio: 1; object-fit: contain; object-position: 50% 100%; }
.fp-doors__list .fp-door__crew figcaption { font-family: var(--ui); font-size: .84rem; font-weight: 700; line-height: 1.3; text-align: center; color: var(--ink); }
.fp-doors__list li.fp-door > p, .fp-doors__list li.fp-door > .tcta { margin-inline: clamp(16px, 1.6vw, 22px); }
.fp-doors__list li.fp-door > .tcta { align-self: flex-start; margin-top: auto; text-wrap: pretty; } /* the card is a column so every link sits at its foot */
/* FIX-13b (second look): "See how an agent reads your brand" needs about 326px on one line; the card gives it 304 to
   325 at 1100-1279 and 1440, where `pretty` still left "brand" alone on the second line. A link that wraps now breaks
   into even lines; one that fits stays one line. */
.fp-doors__list li.fp-door > .tcta { text-wrap: balance; }
.fp-doors__list li.fp-door > .tcta::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.fp-doors__list li.fp-door:focus-within { outline: 2px solid var(--amber); outline-offset: 3px; }
.fp-doors__list li.fp-door > .tcta:focus-visible { outline: none; }
@media (min-width: 861px) {
  .fp-doors__list[data-n="4"]:has(.fp-door) { row-gap: clamp(20px, 2.4vw, 32px); }
}
@media (max-width: 860px) {
  .fp-doors__list:has(.fp-door) { gap: 16px; }
  .fp-doors__list .fp-door__uwee { width: 132px; }
  /* site.css makes a.tcta inline-flex here for its 44px row; once the words wrap the arrow stood alone at the far edge */
  .fp-doors__list li.fp-door > a.tcta { display: inline-block; }
}
