/*
 * The Web agent's landing (LAND-2, Anand, 22 Oct 26): the hero's sample Website page. index.html holds the colour and
 * type tokens, the header, the hero's layout and Fly's presenter inline (the first paint); this file is the panel on the
 * right, a sample of the owner's Website page in the Fly app: the site the agent builds (its blocks stack into a home
 * page), the box an owner types a change into, the monthly check, where the site ranks on Google, an article waiting
 * for a yes, and the outcome strip under it. Every colour is a token of index.html's theme blocks; only the sample
 * photo keeps literal colours, as on /gbp-growth-agent.
 */
.stage{position:relative}
.panel{position:relative;display:flex;flex-direction:column;height:clamp(440px,calc(330px + 19vw),620px);background:var(--card);border:1px solid var(--line);border-radius:24px;box-shadow:0 1px 3px rgba(var(--shadow-rgb),.1),0 30px 60px -30px rgba(var(--shadow-rgb),.34);overflow:hidden}
.p-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}
.p-title{display:inline-flex;align-items:center;gap:8px;min-width:0;font:var(--sans-weight-ui) 15px/1.2 var(--sans);white-space:nowrap}
.p-title svg{width:18px;height:18px;flex:none;color:var(--violet-2)}
.pass{display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 12px 0 10px;border-radius:999px;background:var(--violet-soft);color:var(--violet-2);font-size:14px;font-weight:600;white-space:nowrap;transform-origin:left center}
.pass::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--violet)}
.pass.live{background:var(--green-soft);color:var(--green-ink)}
.pass.live::before{background:var(--green)}
.sample{display:inline-flex;align-items:center;height:28px;padding:0 11px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--ink-2);font-size:14px;white-space:nowrap}
.win{position:relative;flex:1;min-height:0;overflow:hidden}
.win::after{content:'';position:absolute;left:0;right:0;bottom:0;height:24px;background:linear-gradient(transparent,var(--card));pointer-events:none;z-index:4}
.body{position:relative;padding:12px 18px 30px}
.row{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;padding:14px 0;border-top:1px solid var(--line);font-size:15px;line-height:1.45}
.row.first{padding-top:2px;border-top:0}
.ic{display:grid;place-items:center;width:28px;height:22px;color:var(--ink-2)}
.ic svg{width:20px;height:20px}
.swap{display:grid}
.swap>*{grid-area:1/1;min-width:0}
.ph-t{color:var(--ink-2)}
.rh{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px}
.rh b{font-weight:var(--sans-weight-ui)}
.chipk{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 10px 0 8px;border-radius:999px;font-size:14px;font-weight:600;line-height:1;white-space:nowrap}
.chipk svg{width:14px;height:14px;flex:none}
.chipk.g{background:var(--green-soft);color:var(--green-ink)}
.chipk.y{background:var(--stamp-bg);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--yellow)}
.chipk.v{background:var(--violet-soft);color:var(--violet-2)}
.stamps{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;min-height:26px}
.stamps>*{transform-origin:left center}
.nw{white-space:nowrap}

/* the site the agent builds: a small browser whose page fills block by block (header, hero, services, reviews, hours) */
.mini{position:relative;margin-top:8px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--paper)}
.mini-bar{display:flex;align-items:center;gap:5px;height:28px;padding:0 10px;border-bottom:1px solid var(--line);background:var(--surface)}
.mini-bar>i{flex:none;width:7px;height:7px;border-radius:50%;background:var(--line)}
.mini-url{flex:1;min-width:0;display:flex;align-items:center;gap:5px;height:19px;margin-left:6px;padding:0 8px;border-radius:10px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line);font:600 12.5px/1 var(--sans);color:var(--ink-2);white-space:nowrap;overflow:hidden}
.mini-url svg{width:11px;height:11px;flex:none;color:var(--green-ink)}
.mini-pg{position:relative;display:grid;gap:8px;padding:10px}
.mini-none{position:absolute;inset:10px;display:flex;align-items:center;justify-content:center;border:1.5px dashed var(--line);border-radius:10px;color:var(--ink-2);font-size:14px}
.blk{position:relative;z-index:1}
.b-hd{display:flex;align-items:center;gap:7px;font:var(--sans-weight-ui) 13px/1.2 var(--sans)}
.b-hd>i{flex:none;width:16px;height:16px;border-radius:50%;background:linear-gradient(135deg,var(--violet),var(--orange))}
.b-hd>em{margin-left:auto;display:inline-flex;align-items:center;height:20px;padding:0 9px;border-radius:999px;background:var(--violet-2);color:var(--white);font:700 11.5px/1 var(--sans);font-style:normal}
.b-hero{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:10px;align-items:center;padding:10px;border-radius:10px;background:var(--surface)}
.b-hero b{display:block;font:var(--display-weight) calc(15px * var(--display-scale) + 2px)/1.2 var(--serif);letter-spacing:var(--display-tracking);color:var(--ink)}
.b-hero span{display:block;margin-top:4px;font-size:12.5px;line-height:1.35;color:var(--ink-2)}
.b-ph{position:relative;height:62px;border-radius:9px;overflow:hidden}
.b-ph i{position:absolute;inset:0;background:radial-gradient(circle at 37% 46%,#F8BFD0 0 11px,transparent 12px),radial-gradient(circle at 63% 46%,#FFF0C9 0 11px,transparent 12px),radial-gradient(circle at 50% 28%,#B98A68 0 10px,transparent 11px),linear-gradient(160deg,#FFF8EF,#F2E2D0)}
.b-svc{display:grid}
.b-svc .svc{grid-area:1/1;display:flex;flex-wrap:wrap;gap:5px}
.b-svc i{display:inline-flex;align-items:center;height:22px;padding:0 9px;border:1px solid var(--line);border-radius:999px;background:var(--card);font:600 11.5px/1 var(--sans);font-style:normal;color:var(--ink)}
.b-svc i.hot{background:var(--violet-soft);border-color:var(--violet-line);color:var(--violet-2)}
.b-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.b-two{padding-top:8px;border-top:1px solid var(--line)}
.b-two>div{padding:0 2px;font-size:12.5px;line-height:1.3;color:var(--ink-2)}
.b-two b{display:block;font-size:12px;font-weight:var(--sans-weight-ui);color:var(--ink)}
.stars{letter-spacing:1px;color:var(--yellow-ink)}

/* an owner's change, typed into the box the Website page gives it */
.cbox{position:relative;display:grid;margin-top:8px;padding:9px 12px;border-radius:12px;min-height:42px}
/* only the words share the one grid cell: an absolutely placed grid child would measure from that cell, not the box */
.cbox>.c-ghost,.cbox>.c-text{grid-area:1/1}
.c-ghost{visibility:hidden}
.c-bg{position:absolute;inset:0;border-radius:12px;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--violet-line)}
.c-slot{position:absolute;inset:0;display:flex;align-items:center;padding:0 12px;border:1.5px dashed var(--line);border-radius:12px;color:var(--ink-2)}
.c-text{position:relative;z-index:1}
.is-typing::after{content:'';display:inline-block;width:2px;height:1em;margin-left:2px;vertical-align:-2px;background:var(--violet-2);animation:caret .8s steps(1) infinite}
@keyframes caret{50%{opacity:0}}

/* the monthly check: a score ring and its three parts */
.chk{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;align-items:center;margin-top:8px}
.ring{position:relative;width:64px;height:64px}
.ring svg{display:block;width:100%;height:100%}
.ring .rbg{stroke:var(--ring-track)}
.ring .rfg{stroke:var(--green)}
.ring b{position:absolute;inset:0;display:grid;place-items:center;font:var(--sans-weight-ui) 19px/1 var(--sans);font-variant-numeric:tabular-nums}
.kbars{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.kbars li{display:grid;grid-template-columns:96px minmax(0,1fr) 26px;gap:8px;align-items:center;font-size:13px;color:var(--ink-2)}
.kbars li>span{position:relative;height:6px;border-radius:3px;background:var(--track);overflow:hidden}
.kbars li>span i{position:absolute;inset:0;border-radius:3px;background:var(--blue);transform-origin:0 50%}
.kbars li:nth-child(2)>span i{background:var(--green)}
.kbars li:nth-child(3)>span i{background:var(--yellow)}
.kbars li>b{font-weight:600;color:var(--ink);text-align:right;font-variant-numeric:tabular-nums}

/* where the site ranks on Google: eight weeks of one search */
.rk{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;margin-top:8px}
.rk svg{display:block;width:100%;height:58px;overflow:visible}
.rk .grid{stroke:var(--line);stroke-width:1}
.rk .ln{fill:none;stroke:var(--green);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1px 1px}
.rk .dt{fill:var(--green);stroke:var(--card);stroke-width:2}
.rk-n{display:grid;justify-items:end;gap:2px;font-size:13px;color:var(--ink-2);white-space:nowrap}
.rk-n b{font:var(--sans-weight-ui) 24px/1 var(--sans);color:var(--ink);font-variant-numeric:tabular-nums}

/* an article, waiting for the owner's yes, then live */
.acard{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:center;margin-top:8px}
.a-pic{position:relative;height:64px;border:3px solid transparent;border-bottom-width:18px;border-radius:9px;background:radial-gradient(circle at 76% 36%,#FFE08A 0 5px,rgba(255,200,90,.45) 6px 13px,transparent 14px) padding-box,linear-gradient(135deg,#3B1747 0%,#7A2457 55%,#C4553A 100%) padding-box,linear-gradient(135deg,#8157DD 0%,#B563BF 48%,#F29A38 100%) border-box}
[data-region="intl"] .a-pic{background:radial-gradient(circle at 76% 36%,#FFE08A 0 5px,rgba(255,200,90,.45) 6px 13px,transparent 14px) padding-box,linear-gradient(135deg,#0E5A3A 0%,#2C7A4B 42%,#B3261E 100%) padding-box,linear-gradient(135deg,#8157DD 0%,#B563BF 48%,#F29A38 100%) border-box}
.a-meta b{display:block;font-weight:600;line-height:1.3}
.a-meta span{display:block;margin-top:2px;font-size:13.5px;color:var(--ink-2)}

/* Fly, the spark: placed by the timeline in stage coordinates */
.spark{position:absolute;left:0;top:0;width:0;height:0;z-index:6;pointer-events:none}
.spark .dot,.spark .ring2{position:absolute;left:-7px;top:-7px;width:14px;height:14px;border-radius:50%}
.spark .dot{background:var(--violet);box-shadow:0 0 0 3px rgba(var(--violet-rgb),.25),0 3px 10px rgba(var(--glow-rgb),.5)}
.spark .ring2{border:2px solid var(--violet)}
.spark .tail{position:absolute;left:0;top:-2px;width:46px;height:4px;border-radius:4px;background:linear-gradient(90deg,rgba(var(--violet-rgb),.9),transparent);transform-origin:0 50%;opacity:0}
.spark .tag{position:absolute;left:13px;top:-10px;height:20px;padding:0 8px;border-radius:999px;background:var(--violet);color:var(--white);font:600 14px/20px var(--sans);white-space:nowrap;opacity:0}
/* the tag's word is drawn, not written (as on /gbp-growth-agent): the spark is decoration, aria-hidden */
.spark .tag::before{content:'Fly'}
.spark.tag-l .tag{left:auto;right:13px}

/* the outcome strip */
.strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.oc{position:relative;padding:11px 12px 9px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.oc .bar{position:relative;display:block;height:4px;margin-bottom:9px;border-radius:4px;background:var(--track);overflow:hidden}
.oc .bar i{position:absolute;inset:0;border-radius:4px}
.oc.b .bar i{background:var(--blue)}.oc.g .bar i{background:var(--green)}.oc.r .bar i{background:var(--red)}.oc.y .bar i{background:var(--yellow)}
.ow{display:block;font:var(--sans-weight-ui) 15px/1.2 var(--sans);color:var(--ink-2)}
.oc.b .ow{color:var(--blue-ink)}.oc.g .ow{color:var(--green-ink)}.oc.r .ow{color:var(--red-ink)}.oc.y .ow{color:var(--yellow-ink)}
.ov{display:block;margin-top:2px;font-size:14px;color:var(--ink-2);white-space:nowrap}
.ov b{margin-right:4px;font:var(--sans-weight-ui) 23px/1.2 var(--sans);color:var(--ink-2);font-variant-numeric:tabular-nums}
.oc.on .ov b{color:var(--ink)}

@media (min-width:761px) and (max-width:1100px){.kbars li{grid-template-columns:80px minmax(0,1fr) 26px}}
@media (max-width:760px){
  .panel{height:min(48vh,410px);height:min(48svh,410px)}
  .body{padding:10px 14px 30px}
  .p-bar{padding:10px 12px}
  .row{grid-template-columns:24px minmax(0,1fr);gap:10px;font-size:14px}
  .ic{width:24px}
  .b-hero{grid-template-columns:minmax(0,1fr) 78px;padding:8px}
  .b-ph{height:54px}
  .acard{grid-template-columns:78px minmax(0,1fr)}
  .a-pic{height:56px}
  .kbars li{grid-template-columns:86px minmax(0,1fr) 24px;font-size:12.5px}
  .strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ov b{font-size:22px}
}
@media (max-width:400px){.b-two{grid-template-columns:minmax(0,1fr)}.b-two>div+div{display:none}.chk{grid-template-columns:56px minmax(0,1fr);gap:10px}.ring{width:56px;height:56px}}
@media (max-width:380px){.p-title span{display:none}}
@media (prefers-reduced-motion:reduce){.is-typing::after{animation:none}}
