/* FX · MOTION-2. Every animated rule hangs off html.fx (set by fx.js). Without JS or with reduced motion nothing here
   hides or moves anything. transform / opacity only. */
html.fx { scroll-behavior: smooth; }
/* staged below-the-fold blocks (fx.js never stages what is already on screen) */
.fx .fx-r { opacity: 0; transform: translateY(10px); }
.fx .fx-r.fx-in { opacity: 1; transform: none; transition: opacity .36s cubic-bezier(.2,.7,.2,1), transform .36s cubic-bezier(.2,.7,.2,1); }
/* rows and cells inside a revealed block arrive one after another */
.fx .fx-r :is(tbody tr, .landing-availability > div, .landing-models > article) { opacity: 0; transform: translateY(6px); }
.fx .fx-r.fx-in :is(tbody tr, .landing-availability > div, .landing-models > article) { opacity: 1; transform: none; transition: opacity .32s ease-out calc(.12s + var(--i, 0) * 45ms), transform .32s cubic-bezier(.2,.7,.2,1) calc(.12s + var(--i, 0) * 45ms); }
/* a live value that changed (Ready → Busy, 1,204 → 1,304) settles instead of snapping; the number itself is ticked by fx.js */
.fx .landing-availability strong { display: inline-block; font-variant-numeric: tabular-nums; }
.fx .fx-swap { animation: fx-swap .45s ease-out; }
@keyframes fx-swap { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: none; } }
/* hover / focus on every interactive: lift, not glow */
.fx .landing-primary { transition: transform .16s cubic-bezier(.2,.7,.2,1), box-shadow .16s; }
.fx .landing-primary:hover, .fx .landing-primary:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 20px -10px var(--accent); }
.fx .landing-link { transition: text-underline-offset .16s, color .16s; }
.fx .landing-link:hover, .fx .landing-link:focus-visible { text-underline-offset: 6px; }
.fx .landing-models-table tbody tr { transition: background-color .16s; }
.fx .landing-models-table tbody tr:hover { background-color: rgba(255,255,255,.045); }
.fx .landing-models-table td a, .fx .landing-models-table th a { transition: color .16s; }
/* page arrival on api.agi.diy: full-document navigations between its pages get a cross-document View Transition
   (same-origin, Chrome/Safari; others simply load); client-side route changes get a 240 ms entrance on <main> */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
.fx main.fx-arrive { animation: fx-arrive .24s ease-out both; }
@keyframes fx-arrive { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.fx { scroll-behavior: auto; }
  .fx .fx-r, .fx .fx-r * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fx .fx-swap, .fx main, .fx main.fx-arrive { animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
/* /docs teaching figures (web/components/fx/docfig.ts). The markup is the final frame; the draw runs once on reveal. */
.fx-fig { margin: 20px 0 8px; overflow-x: auto; } /* phones scroll the drawing instead of shrinking its labels */
.fx-fig svg { display: block; width: 100%; height: auto; min-width: 520px; max-width: 640px; overflow: visible; }
.fx-fig svg text { font-size: 12px; line-height: 1; } /* the article's CSS size would override the SVG attribute */
.fx-fig .k rect, .fx-fig .box { fill: none; stroke: var(--muted); stroke-width: 1; }
.fx-fig .box { stroke: var(--fg); }
.fx-fig .k .s { stroke: var(--fg); stroke-width: 2; }
.fx-fig .t { fill: var(--fg); } .fx-fig .m { fill: var(--muted); } .fx-fig .acc { fill: var(--accent); }
.fx-fig .z { stroke: var(--line); stroke-width: 1; }
.fx-fig .rail { fill: none; stroke: var(--fg); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fx-fig .arrow { fill: var(--fg); }
.fx-fig .pkt { fill: var(--accent); opacity: 0; }
.fx-fig .chunk line { stroke: var(--fg); stroke-width: 1; opacity: .85; }
.fx-fig .chunk, .fx-fig .bar { transform: scaleX(1); transform-box: fill-box; transform-origin: 0 50%; }
.fx-fig .bar { fill: var(--fg); } .fx-fig .bar.g { fill: var(--accent); }
.fx .fx-fig.fx-r { transform: none; } /* the figure fades in with its section; the drawing below is its own motion */
.fx .fx-fig.fx-in .r1 { animation: fx-draw .5s ease-out .15s both; }
.fx .fx-fig.fx-in .r2 { animation: fx-draw .5s ease-out .95s both; }
.fx .fx-fig.fx-in .r3 { animation: fx-draw .7s ease-out 1.8s both; }
.fx .fx-fig.fx-in .p1 { animation: fx-pkt .5s linear .15s both; --dx: 110px; }
.fx .fx-fig.fx-in .p2 { animation: fx-pkt .5s linear .95s both; --dx: 104px; }
.fx .fx-fig-billing.fx-in .p1 { --dx: 78px; }
.fx .fx-fig.fx-in .box { animation: fx-pulse .6s ease-out .65s both; }
.fx .fx-fig.fx-in .chunk { animation: fx-grow .8s cubic-bezier(.2,.7,.2,1) 1.1s both; }
.fx .fx-fig-billing.fx-in .chunk { animation-delay: .1s; }
.fx .fx-fig.fx-in .b1 { animation: fx-grow .7s cubic-bezier(.2,.7,.2,1) .6s both; }
.fx .fx-fig.fx-in .b2 { animation: fx-grow .7s cubic-bezier(.2,.7,.2,1) .9s both; }
@keyframes fx-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fx-pkt { from { opacity: 1; transform: translateX(0); } 90% { opacity: 1; } to { opacity: 0; transform: translateX(var(--dx)); } }
@keyframes fx-pulse { from { stroke: var(--accent); } to { stroke: var(--fg); } }
@keyframes fx-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .fx .fx-fig * { animation: none !important; } }
/* Hero fold (MOTION-2 deliverable 1): on a wide screen the statement keeps its full width, and the lede sits beside the
   scope + actions instead of above them, so the recorded-call figure that follows starts on the first screen
   (section title ~600 px at 1440 instead of 692). Phones keep the single column. No copy changes; DOM order unchanged. */
@media (min-width: 1100px) {
  /* main.revamp-landing: one class more than landing.css, because on api.agi.diy the layout's CSS (this file) is
     emitted BEFORE the page's landing.css and would otherwise lose on order */
  main.revamp-landing .landing-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto; column-gap: 64px; row-gap: 20px; align-items: start; }
  main.revamp-landing .landing-hero > h1 { grid-column: 1 / -1; grid-row: 1; margin-bottom: 4px; }
  main.revamp-landing .landing-hero > .landing-lede { grid-column: 1; grid-row: 2 / 4; }
  main.revamp-landing .landing-hero > .landing-scope { grid-column: 2; grid-row: 2; }
  main.revamp-landing .landing-hero > .landing-actions { grid-column: 2; grid-row: 3; }
  main.revamp-landing .landing-hero > .landing-price { grid-column: 1 / -1; grid-row: 4; }
  main.revamp-landing .landing-hero + :is(.m-loop, .m-mount) { margin-top: -56px; } /* DESIGN D1: −56 (was −40) + padding-top 40 put the recorded run's title at ≈516 px and its stage on the first screen */
  main.revamp-landing { padding-top: 40px; } /* api.agi.diy wraps the figure in .m-mount */
}
