/* Agent-flow pages (18/11/2026): /mcp-server/proxies/ and /serp-api/google/ai-overview/. Built by agent-flow-pages-build.mjs.
   Hero: the layout and colours of hero B (/residential-proxies/hero-b/hero-b.css: black band, white h1, soft grey copy,
   the site's own .btn-cta, not recoloured). The scene on the right plays the real flow of the page: the agent asks,
   the tool call goes out, the answer comes back. CSS only, opacity and transform only (no layout shift), every line
   has its box from the first paint; prefers-reduced-motion shows the finished session, still.
   Everything is scoped under #afh (hero) and #afb (body): the light theme recolours headings inside <main> with
   selectors stronger than a class. */
#afh{--af-soft:#C9D1E3;--af-dim:#96A1BA;--af-hair:rgba(255,255,255,.16);--af-cycle:10s;position:relative;margin:0;padding:0;max-width:none;background:#000;color:#fff;overflow:hidden;font-family:var(--font-body,'Inter',system-ui,sans-serif);text-align:left}
#afh *{box-sizing:border-box}
#afh .afh-in{max-width:1288px;margin:0 auto;padding:16px 24px 40px;display:grid;grid-template-columns:minmax(0,46%) minmax(0,54%);column-gap:28px;align-items:center}
#afh .afh-copy{min-width:0;padding:22px 0 8px}
#afh .afh-crumbs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px;font-size:14px;line-height:1.3;color:var(--af-dim)}
#afh .afh-crumbs a{position:relative;color:var(--af-dim);text-decoration:none}
#afh .afh-crumbs a::after{content:"";position:absolute;inset:-13px -6px}
#afh .afh-crumbs a:hover{color:#fff;text-decoration:underline}
#afh .afh-crumbs [aria-current]{color:#fff;font-weight:500}
#afh .afh-eyebrow{margin:0 0 12px;font:600 15px/1.35 var(--font-body,'Inter',sans-serif);color:var(--af-soft)}
#afh h1{margin:0;font:700 clamp(34px,3.7vw,50px)/1.06 var(--font-head,'Sora',system-ui,sans-serif);letter-spacing:-.035em;color:#fff;text-wrap:balance}
#afh .afh-lead{margin:18px 0 0;max-width:60ch;font-size:18px;line-height:1.6;color:var(--af-soft)}
#afh .afh-lead code,#afh .afh-tile code{font:500 .9em/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#fff;background:rgba(255,255,255,.08);padding:2px 6px;border-radius:6px}
#afh .afh-cta-row{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 0}
#afh .afh-btn{display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:0 28px;border-radius:999px;font:600 17px/1 var(--font-body,'Inter',sans-serif);white-space:nowrap;text-decoration:none;transition:transform .15s ease,border-color .15s ease}
#afh .afh-btn:hover{transform:translateY(-1px)}
#afh .afh-ghost{border:1px solid rgba(255,255,255,.34);color:#fff;background:transparent}
#afh .afh-ghost:hover{border-color:rgba(255,255,255,.7)}
#afh a:focus-visible{outline:2px solid #fff;outline-offset:3px}
#afh .afh-trust{margin:14px 0 0;font-size:15px;line-height:1.45;color:var(--af-dim)}

/* the scene: one agent session, three steps */
#afh .afh-scene{min-width:0;margin:0;padding:22px 0 8px}
#afh .afh-steps{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px;padding:0;list-style:none}
#afh .afh-steps li{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--af-hair);font:500 13.5px/1 var(--font-body,'Inter',sans-serif);color:var(--af-dim);animation:afh-step var(--af-cycle) linear infinite}
#afh .afh-steps li b{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:rgba(255,255,255,.1);font:700 11px/1 var(--font-body,'Inter',sans-serif);color:#fff}
#afh .afh-steps li:nth-child(2){animation-name:afh-step2}
#afh .afh-steps li:nth-child(3){animation-name:afh-step3}
#afh .afh-term{position:relative;border-radius:20px;border:1px solid rgba(255,255,255,.14);background:#0B1020;box-shadow:0 30px 70px -30px rgba(0,0,0,.9);overflow:hidden}
#afh .afh-bar{display:flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-bottom:1px solid rgba(255,255,255,.08);font:500 13px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#B8C9C1}
#afh .afh-bar i{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.18)}
#afh .afh-bar span{margin-left:6px}
#afh .afh-body{display:grid;gap:12px;padding:16px}
#afh .afh-row{margin:0;border-radius:14px;padding:12px 14px;font:500 13.5px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#C9D3E8;white-space:pre-wrap;overflow-wrap:anywhere;animation:afh-in2 var(--af-cycle) ease infinite}
#afh .afh-ask{justify-self:end;max-width:88%;background:#1B2236;font-family:var(--font-body,'Inter',sans-serif);font-size:15px;color:#fff;animation-name:afh-in1}
#afh .afh-call{background:rgba(75,63,214,.18);border:1px solid rgba(140,130,255,.35)}
#afh .afh-out{background:rgba(52,211,153,.08);border:1px solid rgba(52,211,153,.32);animation-name:afh-in3}
#afh .afh-k{display:flex;align-items:center;gap:8px;margin:0 0 6px;font:600 12px/1 var(--font-body,'Inter',sans-serif);letter-spacing:.02em;color:var(--af-soft)}
#afh .afh-k em{font-style:normal;color:#fff}
#afh .afh-run,#afh .afh-ok{position:relative;width:12px;height:12px;flex:none}
#afh .afh-run{border-radius:50%;border:2px solid rgba(255,255,255,.25);border-top-color:#fff;animation:afh-spin .9s linear infinite,afh-runvis var(--af-cycle) linear infinite}
#afh .afh-ok{margin-left:-20px;border-radius:50%;background:#34d399;animation:afh-okvis var(--af-cycle) linear infinite}
#afh .afh-dim{color:#8792AD}
#afh .afh-str{color:#9FE8C8}
#afh .afh-key{color:#B9B2FF}
#afh .afh-cap{margin:12px 2px 0;font-size:14px;line-height:1.5;color:var(--af-dim)}

/* the session plays once per cycle: ask (0%), tool call (22%), answer (48%), hold, fade, restart */
@keyframes afh-in1{0%{opacity:0;transform:translateY(8px)}5%,90%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes afh-in2{0%,20%{opacity:0;transform:translateY(8px)}26%,90%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes afh-in3{0%,46%{opacity:0;transform:translateY(8px)}52%,90%{opacity:1;transform:none}97%,100%{opacity:0;transform:none}}
@keyframes afh-step{0%,21%{color:#fff;border-color:rgba(255,255,255,.6)}22%,100%{color:var(--af-dim);border-color:var(--af-hair)}}
@keyframes afh-step2{0%,21%{color:var(--af-dim);border-color:var(--af-hair)}22%,47%{color:#fff;border-color:rgba(255,255,255,.6)}48%,100%{color:var(--af-dim);border-color:var(--af-hair)}}
@keyframes afh-step3{0%,47%{color:var(--af-dim);border-color:var(--af-hair)}48%,92%{color:#fff;border-color:rgba(52,211,153,.8)}93%,100%{color:var(--af-dim);border-color:var(--af-hair)}}
@keyframes afh-spin{to{transform:rotate(360deg)}}
@keyframes afh-runvis{0%,47%{opacity:1}48%,100%{opacity:0}}
@keyframes afh-okvis{0%,47%{opacity:0}48%,100%{opacity:1}}

/* four tiles and the numbers row, as in hero B */
#afh .afh-tiles{grid-column:1/3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:30px 0 0}
#afh .afh-tile{margin:0;padding:18px;border-radius:18px;border:1px solid rgba(255,255,255,.12);background:#070A12}
#afh .afh-tt{margin:0 0 8px;font:600 16px/1.3 var(--font-head,'Sora',sans-serif);color:#fff}
#afh .afh-t{margin:0;font-size:15px;line-height:1.55;color:var(--af-soft)}
#afh .afh-stats{grid-column:1/3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:30px 0 0;padding:26px 0 0;border-top:1px solid var(--af-hair)}
#afh .afh-stats div{margin:0}
#afh .afh-stats dt{font:700 clamp(26px,2.6vw,36px)/1.05 var(--font-head,'Sora',sans-serif);letter-spacing:-.03em;color:#fff;font-variant-numeric:tabular-nums}
#afh .afh-stats dd{margin:6px 0 0;font-size:15px;line-height:1.45;color:var(--af-soft)}
#afh .afh-stats a{color:inherit;text-decoration:underline;text-decoration-color:rgba(255,255,255,.35);text-underline-offset:3px}

@media (max-width:980px){
  #afh .afh-in{grid-template-columns:minmax(0,1fr);padding:12px 16px 32px}
  #afh .afh-tiles{grid-column:1;grid-template-columns:repeat(2,minmax(0,1fr))}
  #afh .afh-stats{grid-column:1;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  #afh h1{font-size:32px}
  #afh .afh-lead{font-size:17px}
  #afh .afh-btn{width:100%}
  #afh .afh-tiles{grid-template-columns:minmax(0,1fr)}
  #afh .afh-row{font-size:12.5px}
  #afh .afh-ask{max-width:100%;font-size:14.5px}
}
@media (prefers-reduced-motion:reduce){
  #afh .afh-row,#afh .afh-steps li,#afh .afh-run,#afh .afh-ok{animation:none!important}
  #afh .afh-row{opacity:1;transform:none}
  #afh .afh-run{display:none}
  #afh .afh-ok{margin-left:0;opacity:1}
  #afh .afh-btn{transition:none}
}

/* body: the fresh light theme, one column of reading width, cards, tables, dark code */
#afb{--af-ink:#0E1220;--af-body:#3A4256;--af-muted:#5A6377;--af-line:rgba(14,18,32,.09);--af-violet:#4B3FD6;background:var(--bg,#F6F7FB);color:var(--af-body);font-family:var(--font-body,'Inter',system-ui,sans-serif)}
#afb *{box-sizing:border-box}
#afb .afb-sec{max-width:1120px;margin:0 auto;padding:56px 24px 0}
#afb .afb-sec:last-child{padding-bottom:72px}
#afb .afb-kick{margin:0 0 10px;font:600 13px/1 var(--font-body,'Inter',sans-serif);letter-spacing:.06em;text-transform:uppercase;color:var(--af-violet)}
#afb h2{margin:0 0 14px;max-width:30ch;font:700 clamp(26px,2.6vw,36px)/1.15 var(--font-head,'Sora',sans-serif);letter-spacing:-.03em;color:var(--af-ink);text-wrap:balance}
#afb h3{margin:26px 0 8px;font:600 19px/1.35 var(--font-head,'Sora',sans-serif);letter-spacing:-.01em;color:var(--af-ink)}
#afb p,#afb li{max-width:72ch;font-size:17px;line-height:1.7;color:var(--af-body)}
#afb p{margin:0 0 14px}
#afb ul,#afb ol{margin:0 0 14px;padding-left:22px}
#afb a{color:var(--af-violet);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
#afb a:hover{text-decoration-thickness:2px}
#afb strong{color:var(--af-ink)}
#afb code{font:500 .88em/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--af-ink);background:#EEEBFF;padding:2px 6px;border-radius:6px;overflow-wrap:anywhere}
#afb .afb-by{margin:0 0 18px;font-size:15px;color:var(--af-muted)}
#afb .afb-by a{color:inherit}
#afb .afb-toc{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0;padding:16px 20px;border:1px solid var(--af-line);border-radius:16px;background:#fff;list-style:none}
#afb .afb-toc li{font-size:15px;line-height:1.4}
#afb .afb-toc a{text-decoration:none}
#afb .afb-card{margin:22px 0 0;padding:22px 24px;border-radius:20px;background:#fff;border:1px solid var(--af-line);box-shadow:0 1px 2px rgba(14,18,32,.04),0 14px 38px -22px rgba(14,18,32,.16)}
#afb .afb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0 0}
#afb .afb-grid .afb-card{margin:0}
#afb .afb-card h3{margin-top:0}
#afb .afb-card p:last-child{margin-bottom:0}
#afb .afb-tw{margin:22px 0 0;overflow-x:auto;border-radius:18px;border:1px solid var(--af-line);background:#fff}
#afb table{width:100%;border-collapse:collapse;font-size:15.5px;line-height:1.55}
#afb caption{padding:14px 18px 0;text-align:left;font-weight:600;color:var(--af-ink)}
#afb th,#afb td{padding:12px 18px;text-align:left;vertical-align:top;border-bottom:1px solid var(--af-line)}
#afb thead th{font:600 13.5px/1.3 var(--font-body,'Inter',sans-serif);color:var(--af-muted);background:#FAFAFD}
#afb tbody tr:last-child td{border-bottom:0}
#afb td code{white-space:nowrap}
#afb .afb-code{margin:18px 0 0;border-radius:18px;background:#0B1020;box-shadow:0 1px 2px rgba(14,18,32,.06),0 30px 70px -30px rgba(14,18,32,.45);overflow:hidden}
#afb .afb-code p{margin:0;padding:10px 16px;max-width:none;border-bottom:1px solid rgba(255,255,255,.08);font:500 13px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#B8C9C1}
#afb .afb-code pre{margin:0;padding:16px;overflow-x:auto;font:500 13.5px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#C9D3E8;white-space:pre-wrap;overflow-wrap:anywhere}
#afb .afb-code code{background:none;padding:0;color:inherit;font:inherit;white-space:inherit}
#afb .afb-note{margin:12px 0 0;font-size:15px;color:var(--af-muted)}
#afb .afb-faq h3{margin-top:28px}
#afb .afb-final{margin:0;padding:34px;border-radius:24px;background:#0B1020;color:#C9D3E8}
#afb .afb-final h2{color:#fff}
#afb .afb-final p{color:#C9D3E8}
#afb .afb-final .btn-cta{display:inline-flex;align-items:center;min-height:52px;padding:0 26px;border-radius:11px;font-weight:600;text-decoration:none;--accent:#34d399;--accent-ink:#052e20;background:#34d399;color:#052e20}
#afb .afb-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 22px;margin:0;padding:0;list-style:none}
#afb .afb-links li{font-size:16px}
@media (max-width:760px){
  #afb .afb-sec{padding:44px 16px 0}
  #afb .afb-grid,#afb .afb-links{grid-template-columns:minmax(0,1fr)}
  #afb td code{white-space:normal}
  #afb .afb-final{padding:24px}
}
