@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
astro 1,370 lines 44.7 KB
Raw
1 ---
2 import Marketing from "../layouts/Marketing.astro";
3 import CodeBlock from "../components/marketing/CodeBlock.astro";
4 import Button from "../components/marketing/Button.astro";
5 import ProviderMark from "../components/marketing/ProviderMark.astro";
6 import HeroBgGraph from "../components/marketing/HeroBgGraph.astro";
7 import Yantra from "../brand/Yantra.astro";
8 import DevTuiTerminal from "../components/marketing-islands/DevTuiTerminal.tsx";
9 import HeroHosts from "../components/marketing-islands/HeroHosts.tsx";
10 import { HOSTS, hostSource } from "../components/marketing-islands/heroHosts";
11 import { installSpec } from "../../plugins/preview-install.ts";
12 import Sentiment from "../components/marketing/Sentiment.astro";
13 import AlchemicalDivider from "../components/marketing/AlchemicalDivider.astro";
14 import TestTerminal from "../components/marketing-islands/TestTerminal.tsx";
15 import PRLifecycle from "../components/marketing-islands/PRLifecycle.tsx";
16 import PreviewComment from "../components/marketing-islands/PreviewComment.tsx";
17 import TypePolicy from "../components/marketing-islands/TypePolicy.tsx";
18 import ObservabilityDash from "../components/marketing-islands/ObservabilityDash.tsx";
19 import CopyForAgent from "../components/marketing-islands/CopyForAgent.tsx";
20 import PhotosLayers from "../components/marketing-islands/PhotosLayers.tsx";
21
22 const alchemySpec = installSpec("alchemy");
23
24 // The hero terminal covers the code card's empty bottom-right corner: it
25 // starts below the last line that reaches TERM_COL, so no code is hidden.
26 // The code changes per host, so measure every host's version.
27 const TERM_COL = 44;
28 const HOST_LINES = HOSTS.map((h) => hostSource(h.values).split("\n"));
29 const TERM_LINE = Math.max(
30 ...HOST_LINES.map(
31 (lines) => lines.findLastIndex((l) => l.trimEnd().length > TERM_COL - 2) + 1,
32 ),
33 );
34 const STACK_WIDTH = Math.max(...HOST_LINES.flat().map((l) => l.length));
35 // Cropped to the comment logic inside the Stack.
36 const PREVIEW_SRC = `const api = yield* Api;
37 const pr = yield* Config.option(Config.Int("PULL_REQUEST"));
38 const sha = yield* Config.String("GITHUB_SHA");
39
40 if (Option.isSome(pr)) {
41 yield* GitHub.Comment("Preview", {
42 owner: "acme",
43 repository: "my-app",
44 issueNumber: pr.value,
45 body: Output.interpolate\`Preview: \${api.url} (\${sha})\`,
46 allowDelete: true,
47 });
48 }`;
49 // The GitHub.Comment block, highlighted in the snippet above.
50 const PREVIEW_COMMENT_LINES: [number, number][] = [[6, 12]];
51
52 // The vertical track beside the sections that walk the full picture.
53 const RAIL = [
54 {
55 label: "Your machine",
56 steps: [
57 { id: "loop-edit", title: "edit" },
58 { id: "loop-types", title: "type-check" },
59 { id: "loop-local", title: "test, emulated" },
60 { id: "loop-live", title: "test, live" },
61 ],
62 },
63 { label: "CI/CD", steps: [{ id: "loop-pr", title: "preview per PR" }] },
64 { label: "Production", steps: [{ id: "loop-prod", title: "monitoring" }] },
65 ];
66 const railKicker = (id: string) => {
67 const group = RAIL.find((g) => g.steps.some((s) => s.id === id))!;
68 return `${group.label} · ${group.steps.find((s) => s.id === id)!.title}`;
69 };
70
71 const TEST_SRC = `const { test, beforeAll, afterAll, deploy, destroy } = Test.make({
72 providers: Cloudflare.providers(),
73 dev: !!process.env.LOCAL, // emulated, or the real cloud
74 });
75
76 const stack = beforeAll(deploy(Stack)); // its own stage
77 afterAll(destroy(Stack));
78
79 test("PUT + GET round-trips through R2", Effect.gen(function* () {
80 const { url } = yield* stack;
81 const res = yield* HttpClient.get(\`\${url}/object/hello.txt\`);
82 expect(yield* res.text).toBe("hi!");
83 }));`;
84
85 /** The app's layers, bottom-up, and what the Photos module owns in each. */
86 const PYRAMID = [
87 { layer: "Infrastructure", slice: "Photos bucket" },
88 { layer: "Configuration & policies", slice: "read/write binding" },
89 { layer: "APIs & business logic", slice: "upload()" },
90 { layer: "Frontend", slice: "upload button" },
91 ];
92
93 const VITE_SRC = `import Api from "./src/api.ts";
94
95 export default Alchemy.Stack(
96 "my-app",
97 { providers: Cloudflare.providers() },
98 Effect.gen(function* () {
99 // backend: a Cloudflare Worker, run locally in workerd
100 const api = yield* Api;
101 // frontend: a Vite app that calls it
102 const web = yield* Cloudflare.Website.Vite("Web", {
103 env: { VITE_API_URL: api.url },
104 });
105 return { web: web.url, api: api.url };
106 }),
107 );`;
108
109 // Marks render monochrome (inheriting the label color) and take on the
110 // official brand hue only on hover. `color` values are verified against
111 // svgl.app's SVGs; Prisma swaps to its multi-color mark instead.
112 const PROVIDERS = [
113 { label: "Cloudflare", icon: "Cloudflare", href: "/cloudflare", color: "#f4811f" },
114 { label: "AWS", icon: "AWS", href: "/aws", color: "#ff9900" },
115 { label: "Hetzner", icon: "Hetzner", href: "/hetzner", color: "#d50c2d" },
116 { label: "Fly", icon: "Fly", href: "/fly", color: "#996bec" },
117 { label: "Railway", icon: "Railway", href: "/railway" },
118 { label: "Neon", icon: "Neon", href: "/neon", color: "#37c38f" },
119 { label: "PlanetScale", icon: "PlanetScale", href: "/planetscale" },
120 { label: "Prisma", icon: "Prisma", iconHover: "PrismaColor", href: "/prisma" },
121 { label: "Docker", icon: "Docker", href: "/docker", color: "#008fe2" },
122 { label: "Stripe", icon: "Stripe", href: "/stripe", color: "#533afd" },
123 { label: "GitHub", icon: "GitHub", href: "/github" },
124 { label: "Axiom", icon: "Axiom", href: "/axiom" },
125 ];
126
127 ---
128
129 <Marketing
130 title="Alchemy · the tightest feedback loop from edit to production"
131 description="Cloud programs composed from Layers: type-checked, emulated locally, tested live, and deployed per pull request."
132 >
133 <!-- Hero + marquee fill the first screen so the marquee lands just above the fold. -->
134 <div class="v2-fold">
135 <!-- ───────────────── HERO ───────────────── -->
136 <section class="alc-hero v2-hero" style="padding:20px 32px 16px;">
137 <HeroBgGraph />
138 <button type="button" class="v2-motion-toggle" id="motion-toggle" aria-pressed="false">
139 <span class="v2-motion-toggle__label">Pause motion</span>
140 </button>
141 <div class="v2-hero__grid">
142 <div class="v2-hero__copy">
143 <div class="alc-hero__inner">
144 <Yantra class="alc-hero__mark v2-hero__mark" size={42} />
145 <h1
146 data-copy
147 class="alc-hero__title"
148 id="hero-h1"
149 style="font-size:clamp(38px,3.65vw,52px);"
150 >
151 The tightest feedback loop from edit to production
152 </h1>
153 <p
154 data-copy
155 class="alc-hero__subtitle"
156 id="hero-sub"
157 style="font-size:clamp(17px,2.2vw,22px);max-width:560px;"
158 >
159 Cloud programs composed from Layers: type-checked, emulated locally, tested live, and deployed per pull request.
160 </p>
161 <div class="alc-hero__cta">
162 <Button variant="primary" icon="arrow" href="/getting-started">
163 <span data-copy>Start your project</span>
164 </Button>
165 <Button variant="secondary" href="#agent-prompt">
166 <span data-copy>Build it with your agent</span>
167 <span class="v2-hero__cta-arrow" aria-hidden="true">&darr;</span>
168 </Button>
169 </div>
170 </div>
171 </div>
172 <div
173 class="v2-hero__visual"
174 aria-hidden="true"
175 style={`--term-line:${TERM_LINE};--term-col:${TERM_COL}ch;--code-cols:${STACK_WIDTH + 1}ch`}
176 >
177 <HeroHosts client:load />
178 </div>
179 </div>
180 </section>
181
182 <!-- ───────────────── PROVIDER MARQUEE ───────────────── -->
183 <div class="v2-marquee" aria-label="Supported cloud providers">
184 <div class="v2-marquee__track">
185 {
186 /* Four copies so the -50% loop shift always lands on an identical
187 frame with content still covering viewports up to ~2 copies wide.
188 Two copies leave a blank tail on screens wider than one copy. */
189 [0, 1, 2, 3].map((dup) => (
190 <ul class="v2-marquee__group" aria-hidden={dup > 0}>
191 {PROVIDERS.map((p) => (
192 <li>
193 <a
194 class="v2-marquee__item"
195 href={p.href}
196 tabindex={dup > 0 ? -1 : undefined}
197 style={"color" in p ? `--brand:${p.color}` : undefined}
198 >
199 <span
200 class:list={[
201 "v2-marquee__mark",
202 "iconHover" in p && "v2-marquee__mark--swap",
203 ]}
204 >
205 <ProviderMark name={p.icon} size={17} />
206 </span>
207 {"iconHover" in p && (
208 <span class="v2-marquee__mark v2-marquee__mark--hover">
209 <ProviderMark name={p.iconHover} size={17} />
210 </span>
211 )}
212 {p.label}
213 </a>
214 </li>
215 ))}
216 </ul>
217 ))
218 }
219 </div>
220 </div>
221 </div>
222
223 <script>
224 // WCAG 2.2.2: the hero rings and the provider marquee move on their
225 // own, so offer a way to stop them. Remembered across visits.
226 const KEY = "alc-motion-paused";
227 const btn = document.getElementById("motion-toggle")!;
228 const label = btn.querySelector(".v2-motion-toggle__label")!;
229 const apply = (paused: boolean) => {
230 document.documentElement.classList.toggle("alc-motion-paused", paused);
231 btn.setAttribute("aria-pressed", String(paused));
232 label.textContent = paused ? "Play motion" : "Pause motion";
233 window.dispatchEvent(new Event("alc-motion-change"));
234 };
235 apply(localStorage.getItem(KEY) === "1");
236 btn.addEventListener("click", () => {
237 const paused = !document.documentElement.classList.contains("alc-motion-paused");
238 localStorage.setItem(KEY, paused ? "1" : "0");
239 apply(paused);
240 });
241 </script>
242
243 <div class="v2-scroll-hint" id="scroll-hint" aria-hidden="true">
244 <svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6" /></svg>
245 </div>
246 <script>
247 // Only while scrolled to the top, and only when the hero + marquee fit
248 // on screen (the chevron sits in the gap below the marquee).
249 const hint = document.getElementById("scroll-hint")!;
250 const fold = document.querySelector<HTMLElement>(".v2-fold")!;
251 const sync = () =>
252 hint.classList.toggle(
253 "is-hidden",
254 scrollY > 4 || fold.getBoundingClientRect().bottom > innerHeight + 1,
255 );
256 addEventListener("scroll", sync, { passive: true });
257 addEventListener("resize", sync);
258 sync();
259 </script>
260
261 <!-- ───────────────── THE FULL PICTURE ───────────────── -->
262 <AlchemicalDivider variant="dot" class="v2-divider" />
263 <section class="v2-section v2-pat-1 v2-overview">
264 <div class="v2-container">
265 <h2 class="v2-h2" data-copy>Every step is optimized</h2>
266 <p class="v2-lede" data-copy>
267 Iterate on your machine and then let CI deploy a preview, test it, and ship it on merge. The type checker answers in milliseconds, emulated tests in seconds, and the real cloud in about 20 seconds.
268 </p>
269 <p class="v2-overview__source">
270 <a
271 href="https://github.com/alchemy-run/alchemy/tree/main/examples/cloudflare-preview-benchmark"
272 target="_blank"
273 rel="noopener"
274 >
275 <span data-copy>See the example app and benchmark on GitHub</span>
276 <span aria-hidden="true">&rarr;</span>
277 </a>
278 </p>
279 <PRLifecycle client:visible />
280 </div>
281 </section>
282
283 <nav class="v2-rail" aria-label="From an edit to production">
284 <span class="v2-rail__track" aria-hidden="true"><span class="v2-rail__fill"></span></span>
285 {RAIL.map((group) => (
286 <div class="v2-rail__group">
287 <span class="v2-rail__label">{group.label}</span>
288 <ol class="v2-rail__steps">
289 {group.steps.map((step) => (
290 <li>
291 <a class="v2-rail__step" href={`#${step.id}`} data-rail={step.id}>
292 <span class="v2-rail__dot" aria-hidden="true"></span>
293 {step.title}
294 </a>
295 </li>
296 ))}
297 </ol>
298 </div>
299 ))}
300 </nav>
301 <script>
302 // Light the rail's step for the section in the middle of the viewport,
303 // fill the track up to it, and show the rail only while those sections
304 // are on screen.
305 const rail = document.querySelector<HTMLElement>(".v2-rail")!;
306 const sections = [
307 ...document.querySelectorAll<HTMLElement>("[data-rail-section]"),
308 ];
309 const links = new Map(
310 [...rail.querySelectorAll<HTMLAnchorElement>("[data-rail]")].map((a) => [
311 a.dataset.rail!,
312 a,
313 ]),
314 );
315 const syncRail = () => {
316 const mid = innerHeight * 0.45;
317 const start = sections[0]!.getBoundingClientRect();
318 const end = sections[sections.length - 1]!.getBoundingClientRect();
319 rail.classList.toggle("is-shown", start.top < mid && end.bottom > mid);
320 const current =
321 sections.findLast((el) => el.getBoundingClientRect().top < mid) ??
322 sections[0]!;
323 let reached = true;
324 for (const [id, a] of links) {
325 a.classList.toggle("is-current", id === current.id);
326 a.classList.toggle("is-done", reached && id !== current.id);
327 if (id === current.id) reached = false;
328 }
329 // One track from the first dot to the last, filled to the current one.
330 const dots = [...rail.querySelectorAll<HTMLElement>(".v2-rail__dot")];
331 const top = rail.getBoundingClientRect().top;
332 const center = (el: HTMLElement) => {
333 const r = el.getBoundingClientRect();
334 return r.top + r.height / 2 - top;
335 };
336 const first = center(dots[0]!);
337 const track = rail.querySelector<HTMLElement>(".v2-rail__track")!;
338 track.style.top = `${first}px`;
339 track.style.height = `${center(dots[dots.length - 1]!) - first}px`;
340 const at = links.get(current.id)!.querySelector<HTMLElement>(".v2-rail__dot")!;
341 track.style.setProperty("--fill", `${center(at) - first}px`);
342 };
343 addEventListener("scroll", syncRail, { passive: true });
344 addEventListener("resize", syncRail);
345 syncRail();
346 </script>
347
348
349 <!-- ───────────────── EDIT ───────────────── -->
350 <AlchemicalDivider variant="line" class="v2-divider" />
351 <section class="v2-section v2-pat-2 v2-feature" id="loop-edit" data-rail-section>
352 <div class="v2-container">
353 <p class="v2-kicker">{railKicker("loop-edit")}</p>
354 <h2 class="v2-h2" data-copy>Infrastructure is part of your application</h2>
355 <p class="v2-lede" data-copy>
356 Other IaC tools split an app into two programs, but every feature you build crosses that line. In Alchemy, a Layer owns its infrastructure and service implementation so that features can be decomposed.
357 </p>
358 <div class="v2-split v2-split--center">
359 <figure class="v2-pyramid" aria-label="The Photos module spans every layer of the app">
360 <div class="v2-pyramid__stack">
361 <span class="v2-pyramid__module" data-copy>PHOTOS MODULE</span>
362 <ol class="v2-pyramid__layers">
363 {PYRAMID.map((row, i) => (
364 <li class="v2-pyramid__layer" style={`--w:${100 - i * 12}%`}>
365 <span class="v2-pyramid__name" data-copy>{row.layer}</span>
366 <span class="v2-pyramid__slice" data-copy>{row.slice}</span>
367 </li>
368 ))}
369 </ol>
370 </div>
371 <span class="v2-pyramid__cut" aria-hidden="true"></span>
372 <span class="v2-pyramid__program v2-pyramid__program--above" data-copy>runtime program</span>
373 <span class="v2-pyramid__program v2-pyramid__program--below" data-copy>infrastructure program</span>
374 </figure>
375 <PhotosLayers client:visible />
376 </div>
377 </div>
378 </section>
379
380 <!-- ───────────────── TYPE-CHECK ───────────────── -->
381 <AlchemicalDivider variant="triangle" class="v2-divider" />
382 <section class="v2-section v2-pat-3 v2-feature" id="loop-types" data-rail-section>
383 <div class="v2-container">
384 <p class="v2-kicker">{railKicker("loop-types")}</p>
385 <h2 class="v2-h2" data-copy>Type checking proves your infra is correct</h2>
386 <p class="v2-lede" data-copy>
387 Each Layer declares what it needs in its type: the resources it creates, the access it grants, and the services it calls. Leave one out and the program doesn't compile, so a broken stack fails in your editor in milliseconds, before anything deploys.
388 </p>
389 <TypePolicy client:visible />
390 </div>
391 </section>
392
393 <!-- ───────────────── EMULATED ───────────────── -->
394 <AlchemicalDivider variant="square" class="v2-divider" />
395 <section class="v2-section v2-pat-4 v2-feature" id="loop-local" data-rail-section>
396 <div class="v2-container">
397 <p class="v2-kicker">{railKicker("loop-local")}</p>
398 <h2 class="v2-h2" data-copy>Get fast feedback with local emulation</h2>
399 <p class="v2-lede" data-copy>
400 <code class="alc-code-inline">alchemy dev</code> runs Workers, Durable Objects, queues and buckets on emulated services on your machine, and the frontend reloads as you type. Set <code class="alc-code-inline">dev: true</code> in a test and the same suite runs against those services in seconds, with nothing deployed.
401 </p>
402 <div class="v2-split">
403 <CodeBlock filename="alchemy.run.ts" code={VITE_SRC} compact />
404 <DevTuiTerminal client:visible />
405 </div>
406 </div>
407 </section>
408
409 <!-- ───────────────── TESTED LIVE ───────────────── -->
410 <AlchemicalDivider variant="pentagon" class="v2-divider" />
411 <section class="v2-section v2-pat-5 v2-feature" id="loop-live" data-rail-section>
412 <div class="v2-container">
413 <p class="v2-kicker">{railKicker("loop-live")}</p>
414 <h2 class="v2-h2" data-copy>Test a live deployment when ready to PR</h2>
415 <p class="v2-lede" data-copy>
416 Once it works locally, run the same test without <code class="alc-code-inline">LOCAL=1</code>. It deploys the app to a stage of its own, runs against real Workers, buckets and permissions, and destroys the stage afterwards, in about 20 seconds.
417 </p>
418 <div class="v2-split">
419 <CodeBlock filename="test/api.test.ts" code={TEST_SRC} compact />
420 <TestTerminal client:visible />
421 </div>
422 </div>
423 </section>
424
425 <!-- ───────────────── PER PULL REQUEST ───────────────── -->
426 <AlchemicalDivider variant="hexagon" class="v2-divider" />
427 <section class="v2-section v2-pat-6 v2-feature" id="loop-pr" data-rail-section>
428 <div class="v2-container">
429 <p class="v2-kicker">{railKicker("loop-pr")}</p>
430 <h2 class="v2-h2" data-copy>Deploy a preview stage in CI before merging</h2>
431 <p class="v2-lede" data-copy>
432 CI deploys each pull request to its own stage, runs the same tests, and comments a link to try it. The comment is a resource in the same program, so it is updated on every push and deleted with the preview. Merging deploys to production.
433 </p>
434 <div class="v2-split v2-split--preview">
435 <CodeBlock
436 filename="alchemy.run.ts"
437 code={PREVIEW_SRC}
438 compact
439 highlight={PREVIEW_COMMENT_LINES}
440 />
441 <PreviewComment client:visible />
442 </div>
443 </div>
444 </section>
445
446 <!-- ───────────────── OBSERVABILITY ───────────────── -->
447 <AlchemicalDivider variant="heptagon" class="v2-divider" />
448 <section class="v2-section v2-pat-1 v2-feature" id="loop-prod" data-rail-section>
449 <div class="v2-container">
450 <p class="v2-kicker">{railKicker("loop-prod")}</p>
451 <h2 class="v2-h2" data-copy>Disciplined monitoring on Day 1</h2>
452 <p class="v2-lede" data-copy>
453 Provide one Layer and every request is traced and logged with OpenTelemetry from the first deploy. Its datasets, dashboards and alert monitors are resources in the same program, so monitoring ships with the app. Swap the Layer to send telemetry to a different platform.
454 </p>
455 <ObservabilityDash client:visible />
456 </div>
457 </section>
458
459 <!-- ───────────────── SENTIMENT ───────────────── -->
460 <AlchemicalDivider variant="octagon" class="v2-divider" />
461 <section class="v2-section v2-pat-2" aria-labelledby="sentiment-h">
462 <div class="v2-container">
463 <h2 class="v2-h2" id="sentiment-h" data-copy>Loved by the people shipping with it</h2>
464 <p class="v2-lede" data-copy>
465 What builders say after putting Alchemy in front of their agents,
466 their Cloudflare apps, and their production infrastructure.
467 </p>
468 <Sentiment />
469 </div>
470 </section>
471
472 <!-- ───────────────── GET STARTED ───────────────── -->
473 <AlchemicalDivider variant="circle" class="v2-divider" />
474 <section class="v2-section v2-pat-3 v2-section--last">
475 <div class="v2-container">
476 <h2 class="v2-h2" data-copy>Get started.</h2>
477 <ol class="v2-steps">
478 <li class="v2-steps__inline">
479 <span class="v2-steps__label" data-copy>Install</span>
480 <code class="v2-steps__code">pnpm add {alchemySpec} effect</code>
481 </li>
482 <li id="agent-prompt">
483 <span class="v2-steps__label" data-copy>Paste this into your coding agent</span>
484 <CopyForAgent client:load />
485 </li>
486 <li class="v2-steps__inline">
487 <span class="v2-steps__label" data-copy>Ship</span>
488 <code class="v2-steps__code">pnpm alchemy deploy</code>
489 </li>
490 </ol>
491 <div class="v2-cta-buttons">
492 <Button variant="secondary" icon="arrow" href="/getting-started">
493 <span data-copy>Read the tutorial</span>
494 </Button>
495 <Button
496 variant="ghost"
497 icon="github"
498 href="https://github.com/alchemy-run/alchemy"
499 >
500 <span data-copy>GitHub</span>
501 </Button>
502 </div>
503 </div>
504 </section>
505 </Marketing>
506
507 <style>
508 /* ---------- first screen: hero + marquee, fold just below the marquee ---------- */
509 .v2-fold {
510 display: flex;
511 flex-direction: column;
512 /* 64px sticky header, ~32px of the next section peeking below the marquee. */
513 min-height: max(620px, calc(100svh - 64px - 32px));
514 }
515 .v2-fold > .v2-hero {
516 flex: 1;
517 display: flex;
518 flex-direction: column;
519 justify-content: center;
520 }
521 .v2-fold > .v2-hero > .v2-hero__grid {
522 width: 100%;
523 }
524 /* Bottom-left, under the copy column, where nothing else sits; at the
525 top right it collided with the host reel. */
526 .v2-motion-toggle {
527 position: absolute;
528 left: 20px;
529 bottom: 12px;
530 z-index: 3;
531 padding: 4px 10px;
532 border: 1px solid var(--alc-hairline-2);
533 border-radius: 999px;
534 background: color-mix(in srgb, var(--alc-bg) 70%, transparent);
535 color: var(--alc-fg-3);
536 font: 500 12px var(--alc-font-sans);
537 cursor: pointer;
538 min-height: 24px;
539 }
540 .v2-motion-toggle:hover {
541 color: var(--alc-fg-1);
542 border-color: var(--alc-hairline-3);
543 }
544 .v2-motion-toggle:focus-visible {
545 outline: 2px solid var(--alc-accent);
546 outline-offset: 2px;
547 }
548 /* Nothing moves under reduced motion, so the control isn't needed. */
549 @media (prefers-reduced-motion: reduce) {
550 .v2-motion-toggle {
551 display: none;
552 }
553 }
554 .v2-scroll-hint {
555 position: fixed;
556 left: 50%;
557 bottom: 6px;
558 z-index: 5;
559 translate: -50% 0;
560 color: var(--alc-fg-2);
561 opacity: 0.35;
562 pointer-events: none;
563 transition: opacity 300ms ease;
564 animation: v2-scroll-hint-pulse 2.2s ease-in-out infinite;
565 }
566 .v2-scroll-hint svg {
567 display: block;
568 }
569 .v2-scroll-hint.is-hidden {
570 opacity: 0;
571 animation: none;
572 }
573 @keyframes v2-scroll-hint-pulse {
574 0%,
575 100% {
576 opacity: 0.15;
577 transform: translateY(-3px);
578 }
579 50% {
580 opacity: 0.45;
581 transform: translateY(2px);
582 }
583 }
584 @media (prefers-reduced-motion: reduce) {
585 .v2-scroll-hint {
586 animation: none;
587 }
588 }
589
590 /* ---------- hero: copy left, deploy visual right ---------- */
591 .v2-hero__grid {
592 position: relative;
593 z-index: 1;
594 max-width: 1300px;
595 margin: 0 auto;
596 display: grid;
597 /* Wide enough for the headline to set in two lines at its size. */
598 grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
599 gap: 48px;
600 align-items: center;
601 }
602 .v2-hero__copy :global(.alc-hero__inner) {
603 text-align: left;
604 margin: 0;
605 }
606 /* Shrink-wrap the mark so its box center is the glyph center: the
607 background graph measures this element to place its vanishing point. */
608 .v2-hero__copy :global(.alc-hero__mark) {
609 width: fit-content;
610 margin: 0 0 22px;
611 }
612 .v2-hero__copy :global(.alc-hero__title) {
613 text-wrap: balance;
614 margin-bottom: 18px;
615 }
616 .v2-hero__copy :global(.alc-hero__subtitle) {
617 margin-inline: 0;
618 }
619 .v2-hero__copy :global(.alc-hero__cta) {
620 justify-content: flex-start;
621 }
622 /* Hero CTAs use the logo's colors: the leaf-green mark for the main
623 action, and the terracotta dot as the secondary action's accent. */
624 .v2-hero__copy :global(.alc-btn--primary) {
625 background: var(--alc-accent-deep);
626 color: var(--alc-bg);
627 }
628 .v2-hero__copy :global(.alc-btn--primary:hover) {
629 background: var(--alc-accent-bright);
630 }
631 .v2-hero__copy :global(.alc-btn--secondary) {
632 padding: 10px 18px;
633 background: color-mix(in srgb, var(--alc-bg) 60%, transparent);
634 border-color: var(--alc-hairline-3);
635 }
636 .v2-hero__copy :global(.alc-btn--secondary:hover) {
637 border-color: var(--alc-terracotta);
638 }
639 :global([data-theme="dark"]) .v2-hero__cta-arrow {
640 color: var(--alc-terracotta-deep);
641 }
642 .v2-hero__cta-arrow {
643 color: #7a3a18;
644 }
645 /* The terminal sits over the code card's empty bottom-right corner.
646 --term-line / --term-col come from the host sources (see TERM_LINE) and are
647 in the code font's units (11px mono, 1.65 line-height). */
648 .v2-hero__visual {
649 --code-lh: 18.15px;
650 --code-header: 36px;
651 /* Code and terminal share one grid cell, so the box grows to fit the
652 terminal's overhang below the code card. */
653 display: grid;
654 /* A fixed-width column, so the terminal's percentage width resolves
655 against the column and stays put while its content changes. */
656 grid-template-columns: minmax(0, 1fr);
657 align-items: start;
658 justify-items: start;
659 text-align: left;
660 font-family: var(--alc-font-mono);
661 font-size: 11px;
662 }
663 /* The host reel spans the code card's width, edge to edge. */
664 .v2-hero__visual :global(.v2-hero__reel) {
665 grid-area: 1 / 1;
666 width: calc(34px + var(--code-cols));
667 max-width: 100%;
668 justify-content: space-between;
669 }
670 .v2-hero__visual :global(.v2-hero__code .alc-code-block__pre) {
671 font-size: 11px;
672 line-height: 1.65;
673 }
674 .v2-hero__visual :global(.v2-hero__code),
675 .v2-hero__visual :global(.v2-hero__term) {
676 grid-area: 2 / 1;
677 }
678 .v2-hero__visual :global(.v2-hero__code) {
679 width: calc(34px + var(--code-cols));
680 max-width: 100%;
681 }
682 .v2-hero__visual :global(.v2-hero__term) {
683 position: relative;
684 margin-top: calc(var(--code-header) + 12px + var(--term-line) * var(--code-lh) + 8px);
685 margin-left: calc(16px + var(--term-col));
686 z-index: 1;
687 /* Roomier than the longest deploy line (47 chars at 12.5px), capped so
688 it never overhangs the column by more than 24px. */
689 width: min(470px, calc(100% - 16px - var(--term-col) + 24px));
690 box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
691 border-radius: 10px;
692 }
693 /* The section-wide halo assumed centered copy; the copy column carries
694 its own below. */
695 .v2-hero::after {
696 background: none;
697 }
698 .v2-hero__copy {
699 position: relative;
700 }
701 /* Fades the rings behind the headline and subtitle so they stay
702 readable; the mark sits near the edge so the rings still read as
703 emanating from it. */
704 .v2-hero__copy::before {
705 content: "";
706 position: absolute;
707 inset: -60px -160px -90px -160px;
708 z-index: -1;
709 pointer-events: none;
710 /* Same stops as the original centered hero's halo (.alc-hero::after),
711 centered on the headline + subtitle. */
712 background: radial-gradient(
713 closest-side at 50% 62%,
714 color-mix(in srgb, var(--alc-bg) 98%, transparent) 0%,
715 color-mix(in srgb, var(--alc-bg) 94%, transparent) 50%,
716 color-mix(in srgb, var(--alc-bg) 68%, transparent) 78%,
717 transparent 100%
718 );
719 }
720 /* Below this the right column is too narrow for the terminal to overlap
721 the code, so the hero stacks. */
722 @media (max-width: 1260px) {
723 .v2-hero__grid {
724 grid-template-columns: minmax(0, 1fr);
725 gap: 40px;
726 }
727 .v2-hero__visual {
728 max-width: 700px;
729 }
730 }
731 @media (max-width: 760px) {
732 .v2-hero__visual {
733 justify-items: stretch;
734 }
735 /* Phones show the cycling code (compact form) and drop the deploy
736 terminal, which has no room to overlap it. */
737 .v2-hero__visual :global(.v2-hero__code) {
738 width: auto;
739 }
740 .v2-hero__visual :global(.v2-hero__reel) {
741 width: auto;
742 justify-content: flex-start;
743 }
744 .v2-hero__visual :global(.v2-hero__term) {
745 display: none;
746 }
747 /* The copy fills the screen width here, so the desktop halo can't fade
748 the rings at its edges. A blurred veil covering the whole copy block
749 keeps the white text readable over the animation. */
750 .v2-hero__copy::before {
751 inset: -28px -32px;
752 background: color-mix(in srgb, var(--alc-bg) 68%, transparent);
753 -webkit-backdrop-filter: blur(4px);
754 backdrop-filter: blur(4px);
755 -webkit-mask-image: radial-gradient(
756 farthest-side at 50% 50%,
757 #000 72%,
758 transparent 100%
759 );
760 mask-image: radial-gradient(
761 farthest-side at 50% 50%,
762 #000 72%,
763 transparent 100%
764 );
765 }
766 /* Equal-width, stacked CTAs. */
767 .v2-hero__copy :global(.alc-hero__cta) {
768 flex-direction: column;
769 align-items: stretch;
770 max-width: 340px;
771 }
772 .v2-hero__copy :global(.alc-hero__cta .alc-btn) {
773 justify-content: center;
774 }
775 /* Stacked, the bottom-left spot falls on the code card. */
776 .v2-motion-toggle {
777 left: auto;
778 right: 16px;
779 bottom: auto;
780 top: 12px;
781 }
782 }
783
784 .v2-container {
785 max-width: 1080px;
786 margin: 0 auto;
787 }
788
789 #agent-prompt {
790 scroll-margin-top: 96px;
791 }
792
793 /* ---------- provider marquee ---------- */
794 .v2-marquee {
795 overflow: hidden;
796 border-top: 1px solid var(--alc-hairline);
797 padding: 14px 0;
798 -webkit-mask-image: linear-gradient(
799 to right,
800 transparent,
801 #000 8%,
802 #000 92%,
803 transparent
804 );
805 mask-image: linear-gradient(
806 to right,
807 transparent,
808 #000 8%,
809 #000 92%,
810 transparent
811 );
812 }
813 .v2-marquee__track {
814 display: flex;
815 width: max-content;
816 animation: v2-marquee-scroll 72s linear infinite;
817 }
818 .v2-marquee:hover .v2-marquee__track,
819 .v2-marquee:focus-within .v2-marquee__track,
820 :global(html.alc-motion-paused) .v2-marquee__track {
821 animation-play-state: paused;
822 }
823 .v2-marquee__group {
824 display: flex;
825 align-items: center;
826 list-style: none;
827 margin: 0;
828 padding: 0;
829 }
830 .v2-marquee__item {
831 display: inline-flex;
832 align-items: center;
833 gap: 8px;
834 padding: 4px 26px;
835 font-family: var(--alc-font-mono);
836 font-size: 12.5px;
837 letter-spacing: 0.08em;
838 text-transform: uppercase;
839 white-space: nowrap;
840 color: var(--alc-fg-2);
841 text-decoration: none;
842 transition: color 120ms ease;
843 }
844 .v2-marquee__item:hover {
845 color: var(--alc-fg-1);
846 }
847 .v2-marquee__mark {
848 display: inline-flex;
849 align-items: center;
850 /* Optical correction: the labels are uppercase-only, so their visual
851 mass sits above the flex-centered midline; drop the mark to match. */
852 transform: translateY(0.5px);
853 }
854 /* Monochrome at rest; brand color only under the cursor. Prisma swaps
855 between its mono and multi-color marks instead of tinting. */
856 .v2-marquee__item:hover .v2-marquee__mark {
857 color: var(--brand, currentColor);
858 }
859 .v2-marquee__mark--hover {
860 display: none;
861 }
862 .v2-marquee__item:hover .v2-marquee__mark--hover {
863 display: inline-flex;
864 }
865 .v2-marquee__item:hover .v2-marquee__mark--swap {
866 display: none;
867 }
868 .v2-marquee__item :global(svg) {
869 display: block;
870 flex: none;
871 opacity: 0.9;
872 }
873 @keyframes v2-marquee-scroll {
874 from {
875 transform: translateX(0);
876 }
877 to {
878 transform: translateX(-50%);
879 }
880 }
881 @media (prefers-reduced-motion: reduce) {
882 .v2-marquee__track {
883 animation: none;
884 }
885 .v2-marquee {
886 overflow-x: auto;
887 }
888 }
889
890 /* ---------- sections ---------- */
891 .v2-section {
892 padding: 80px 32px;
893 }
894 /* Sections are separated by the original site's geometric dividers:
895 triangle → square → pentagon → hexagon → circle, down the page. */
896 :global(.v2-divider) {
897 margin: 0 auto;
898 }
899 /* A very faint, static echo of the hero's ring geometry behind each
900 section, alternating sides. Masked so it takes the theme's text color.
901 Clipped horizontally only, so a pattern spills into the neighboring
902 sections instead of being cropped; without a per-section stacking
903 context it stays behind their content too. */
904 .v2-section {
905 position: relative;
906 overflow-x: clip;
907 }
908 /* One stacking context for all sections: patterns (z-index -1) paint above
909 the body background but below every section's content. Clipped so the
910 last section's pattern stops at the footer. */
911 :global(main) {
912 isolation: isolate;
913 overflow: clip;
914 }
915 .v2-section::before {
916 content: "";
917 position: absolute;
918 top: 50%;
919 right: -380px;
920 z-index: -1;
921 width: 1000px;
922 height: 1000px;
923 translate: 0 -50%;
924 pointer-events: none;
925 background: var(--alc-fg-1);
926 opacity: 0.045;
927 mask: var(--pattern) center / contain no-repeat;
928 -webkit-mask: var(--pattern) center / contain no-repeat;
929 }
930 /* A different Sri Yantra motif per section. */
931 .v2-pat-1 { --pattern: url("/patterns/yantra-1.svg"); }
932 .v2-pat-2 { --pattern: url("/patterns/yantra-2.svg"); }
933 .v2-pat-3 { --pattern: url("/patterns/yantra-3.svg"); }
934 .v2-pat-4 { --pattern: url("/patterns/yantra-4.svg"); }
935 .v2-pat-5 { --pattern: url("/patterns/yantra-5.svg"); }
936 .v2-pat-6 { --pattern: url("/patterns/yantra-6.svg"); }
937 .v2-pat-2::before,
938 .v2-pat-4::before,
939 .v2-pat-6::before {
940 right: auto;
941 left: -380px;
942 }
943 .v2-section--last {
944 padding-bottom: 96px;
945 }
946 .v2-h2 {
947 font-family: var(--alc-font-serif);
948 font-size: clamp(30px, 4.5vw, 40px);
949 line-height: 1.1;
950 letter-spacing: -0.01em;
951 font-weight: 500;
952 color: var(--alc-fg-1);
953 margin: 0 0 14px;
954 }
955 .v2-h3 {
956 font-family: var(--alc-font-serif);
957 font-size: clamp(24px, 3.5vw, 31px);
958 line-height: 1.15;
959 letter-spacing: -0.01em;
960 font-weight: 500;
961 color: var(--alc-fg-1);
962 margin: 8px 0 12px;
963 }
964 .v2-lede {
965 font-size: 16px;
966 line-height: 1.65;
967 color: var(--alc-fg-2);
968 max-width: 680px;
969 margin: 0 0 28px;
970 text-wrap: balance;
971 }
972
973 .v2-split {
974 display: grid;
975 grid-template-columns: 1fr 1fr;
976 gap: 24px;
977 align-items: start;
978 }
979 /* Grid items default to min-width:auto, so a long unwrappable terminal
980 line would stretch its column as the animation plays. Clamp both
981 columns to the track size; overflow stays inside the card. */
982 .v2-split > :global(*) {
983 min-width: 0;
984 }
985 /* Astro hoists a client:visible loader <script> next to the first such
986 island; as a grid child it would otherwise render as text. */
987 .v2-split > :global(script) {
988 display: none !important;
989 }
990 /* Side-by-side cards always match heights: every row item stretches, the
991 island wrappers pass that height down, and the shorter card's body
992 grows (a terminal keeps its designed minimum). Stacked on narrow
993 screens, each card keeps its own height. */
994 @media (min-width: 901px) {
995 .v2-split {
996 align-items: stretch;
997 }
998 .v2-split > :global(*),
999 .v2-split :global(astro-island),
1000 .v2-split :global(astro-island > div) {
1001 display: flex;
1002 flex-direction: column;
1003 }
1004 .v2-split :global(astro-island > div),
1005 .v2-split :global(.alc-code-block),
1006 .v2-split :global(.alc-term) {
1007 flex: 1;
1008 }
1009 .v2-split :global(.alc-code-block__pre),
1010 .v2-split :global(.alc-term__body) {
1011 flex: 1;
1012 }
1013 .v2-split :global(.alc-term__body) {
1014 height: auto !important;
1015 }
1016 }
1017 @media (max-width: 900px) {
1018 .v2-split {
1019 grid-template-columns: 1fr;
1020 }
1021 }
1022
1023 /* ---------- the full picture (PR lifecycle overview) ---------- */
1024 .v2-overview {
1025 border-top: none;
1026 padding-top: 72px;
1027 }
1028 .v2-overview__source {
1029 margin: -14px 0 24px;
1030 font-size: 14px;
1031 }
1032 .v2-overview__source a {
1033 display: inline-flex;
1034 gap: 6px;
1035 color: var(--alc-fg-2);
1036 text-decoration: underline;
1037 text-decoration-color: var(--alc-hairline-3);
1038 text-underline-offset: 3px;
1039 }
1040 .v2-overview__source a:hover {
1041 color: var(--alc-fg-1);
1042 text-decoration-color: currentColor;
1043 }
1044
1045 /* ---------- modules: the app's layers, cut by a feature ---------- */
1046 .v2-split--center {
1047 align-items: center !important;
1048 }
1049 .v2-pyramid {
1050 /* Band height and gap; the cut sits between the 2nd and 3rd bands. */
1051 --band: 58px;
1052 --gap: 6px;
1053 --cut: calc(2 * var(--band) + 1.5 * var(--gap));
1054 position: relative;
1055 margin: 0;
1056 }
1057 .v2-pyramid__stack {
1058 --slice-left: 46%;
1059 --slice-width: 34%;
1060 position: relative;
1061 width: 76%;
1062 padding-top: 30px;
1063 }
1064 /* The module: one column through every band. */
1065 .v2-pyramid__stack::after {
1066 content: "";
1067 position: absolute;
1068 top: 26px;
1069 bottom: -4px;
1070 left: var(--slice-left);
1071 width: var(--slice-width);
1072 border: 1.5px solid var(--alc-accent);
1073 border-radius: var(--alc-radius);
1074 background: color-mix(in srgb, var(--alc-accent) 10%, transparent);
1075 pointer-events: none;
1076 }
1077 .v2-pyramid__module {
1078 position: absolute;
1079 top: 0;
1080 left: var(--slice-left);
1081 width: var(--slice-width);
1082 text-align: center;
1083 font-family: var(--alc-font-mono);
1084 font-size: 12px;
1085 letter-spacing: 0.08em;
1086 text-transform: uppercase;
1087 white-space: nowrap;
1088 color: var(--alc-accent-text);
1089 }
1090 .v2-pyramid__layers {
1091 list-style: none;
1092 margin: 0;
1093 padding: 0;
1094 display: flex;
1095 flex-direction: column-reverse;
1096 gap: var(--gap);
1097 }
1098 .v2-pyramid__layer {
1099 position: relative;
1100 min-height: var(--band);
1101 display: flex;
1102 align-items: center;
1103 }
1104 .v2-pyramid__layer::before {
1105 content: "";
1106 position: absolute;
1107 inset: 0 calc((100% - var(--w)) / 2);
1108 border: 1px solid var(--alc-hairline-3);
1109 border-radius: var(--alc-radius);
1110 background: color-mix(in srgb, var(--alc-bg) 85%, transparent);
1111 }
1112 .v2-pyramid__name {
1113 position: relative;
1114 margin-left: calc((100% - var(--w)) / 2);
1115 padding: 0 12px;
1116 max-width: calc(var(--slice-left) - (100% - var(--w)) / 2);
1117 font-size: 14px;
1118 font-weight: 600;
1119 line-height: 1.25;
1120 color: var(--alc-fg-1);
1121 }
1122 .v2-pyramid__slice {
1123 position: absolute;
1124 inset: 0 auto 0 var(--slice-left);
1125 width: var(--slice-width);
1126 display: flex;
1127 align-items: center;
1128 justify-content: center;
1129 text-align: center;
1130 padding: 0 6px;
1131 font-family: var(--alc-font-mono);
1132 font-size: 12.5px;
1133 color: var(--alc-fg-1);
1134 }
1135 .v2-pyramid__cut {
1136 position: absolute;
1137 left: 0;
1138 right: 0;
1139 bottom: var(--cut);
1140 border-top: 1.5px dashed var(--alc-fg-2);
1141 }
1142 .v2-pyramid__program {
1143 position: absolute;
1144 right: 0;
1145 width: 22%;
1146 font-size: 12px;
1147 line-height: 1.3;
1148 color: var(--alc-fg-2);
1149 }
1150 .v2-pyramid__program--above {
1151 bottom: calc(var(--cut) + 8px);
1152 }
1153 .v2-pyramid__program--below {
1154 top: calc(100% - var(--cut) + 8px);
1155 }
1156 @media (max-width: 480px) {
1157 .v2-pyramid__name {
1158 font-size: 12px;
1159 padding: 0 8px;
1160 }
1161 .v2-pyramid__slice {
1162 font-size: 11px;
1163 }
1164 }
1165
1166 /* One card, as wide as one column of a split. */
1167 .v2-split--narrow {
1168 grid-template-columns: minmax(0, 720px);
1169 }
1170 @media (min-width: 901px) {
1171 .v2-split--preview {
1172 grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
1173 }
1174 }
1175
1176 /* ---------- the rail: where each section sits in the full picture ---------- */
1177 .v2-rail {
1178 position: fixed;
1179 top: 50%;
1180 left: max(16px, calc((100vw - 1080px) / 2 - 176px));
1181 z-index: 5;
1182 display: flex;
1183 flex-direction: column;
1184 gap: 18px;
1185 width: 150px;
1186 translate: -8px -50%;
1187 opacity: 0;
1188 pointer-events: none;
1189 transition:
1190 opacity 240ms ease,
1191 translate 240ms ease;
1192 }
1193 .v2-rail.is-shown {
1194 opacity: 1;
1195 translate: 0 -50%;
1196 pointer-events: auto;
1197 }
1198 .v2-rail__label {
1199 display: block;
1200 margin-bottom: 8px;
1201 padding-left: 21px;
1202 font-family: var(--alc-font-mono);
1203 font-size: 10.5px;
1204 letter-spacing: 0.1em;
1205 text-transform: uppercase;
1206 color: var(--alc-fg-2);
1207 }
1208 .v2-rail__steps {
1209 list-style: none;
1210 margin: 0;
1211 padding: 0;
1212 }
1213 .v2-rail__step {
1214 position: relative;
1215 display: flex;
1216 align-items: center;
1217 gap: 12px;
1218 padding: 5px 0;
1219 font-size: 13.5px;
1220 color: var(--alc-fg-2);
1221 text-decoration: none;
1222 transition: color 160ms ease;
1223 }
1224 .v2-rail__step:hover {
1225 color: var(--alc-fg-1);
1226 }
1227 /* One track behind every dot; the fill grows to the current step. */
1228 .v2-rail__track {
1229 position: absolute;
1230 left: 4px;
1231 width: 1px;
1232 background: var(--alc-hairline-3);
1233 }
1234 .v2-rail__fill {
1235 display: block;
1236 width: 100%;
1237 height: var(--fill, 0px);
1238 background: var(--alc-accent);
1239 transition: height 240ms ease;
1240 }
1241 .v2-rail__dot {
1242 position: relative;
1243 z-index: 1;
1244 }
1245 .v2-rail__dot {
1246 flex: none;
1247 width: 9px;
1248 height: 9px;
1249 border-radius: 50%;
1250 border: 1px solid var(--alc-hairline-3);
1251 background: var(--alc-bg);
1252 transition:
1253 background 160ms ease,
1254 border-color 160ms ease,
1255 box-shadow 160ms ease;
1256 }
1257 .v2-rail__step.is-done .v2-rail__dot {
1258 border-color: var(--alc-accent);
1259 background: var(--alc-accent);
1260 }
1261 .v2-rail__step.is-current {
1262 color: var(--alc-fg-1);
1263 font-weight: 600;
1264 }
1265 .v2-rail__step.is-current .v2-rail__dot {
1266 border-color: var(--alc-accent);
1267 background: var(--alc-accent);
1268 box-shadow: 0 0 0 4px color-mix(in srgb, var(--alc-accent) 25%, transparent);
1269 }
1270 /* Without room beside the content, each section names its step instead. */
1271 .v2-kicker {
1272 margin: 0 0 10px;
1273 font-family: var(--alc-font-mono);
1274 font-size: 11px;
1275 letter-spacing: 0.1em;
1276 text-transform: uppercase;
1277 color: var(--alc-accent-text);
1278 }
1279 @media (min-width: 1440px) {
1280 .v2-kicker {
1281 display: none;
1282 }
1283 }
1284 @media (max-width: 1439px) {
1285 .v2-rail {
1286 display: none;
1287 }
1288 }
1289
1290 /* ---------- feature sections ---------- */
1291 .v2-feature .v2-h2 {
1292 margin-bottom: 12px;
1293 }
1294
1295 @media (max-width: 640px) {
1296 .v2-section {
1297 padding-left: 20px;
1298 padding-right: 20px;
1299 }
1300 }
1301
1302 /* ---------- get started ---------- */
1303 .v2-steps {
1304 list-style: none;
1305 counter-reset: step;
1306 margin: 32px 0 0;
1307 padding: 0;
1308 display: flex;
1309 flex-direction: column;
1310 gap: 28px;
1311 max-width: 720px;
1312 }
1313 .v2-steps li {
1314 counter-increment: step;
1315 position: relative;
1316 padding-left: 44px;
1317 }
1318 .v2-steps li::before {
1319 content: counter(step);
1320 position: absolute;
1321 left: 0;
1322 top: 0;
1323 width: 28px;
1324 height: 28px;
1325 border-radius: 50%;
1326 border: 1px solid var(--alc-hairline-3);
1327 color: var(--alc-fg-1);
1328 font-family: var(--alc-font-mono);
1329 font-size: 13px;
1330 display: flex;
1331 align-items: center;
1332 justify-content: center;
1333 }
1334 .v2-steps__label {
1335 display: block;
1336 font-weight: 600;
1337 color: var(--alc-fg-1);
1338 margin-bottom: 8px;
1339 }
1340 .v2-steps__code {
1341 display: inline-block;
1342 font-family: var(--alc-font-mono);
1343 font-size: 14px;
1344 background: var(--alc-bg-code);
1345 color: var(--alc-fg-invert);
1346 padding: 10px 16px;
1347 border-radius: var(--alc-radius);
1348 }
1349 /* One-command steps: label and command share the number's row. */
1350 .v2-steps__inline {
1351 display: flex;
1352 align-items: center;
1353 flex-wrap: wrap;
1354 gap: 6px 12px;
1355 min-height: 28px;
1356 }
1357 .v2-steps__inline .v2-steps__label {
1358 margin-bottom: 0;
1359 }
1360 .v2-steps__inline .v2-steps__code {
1361 font-size: 13px;
1362 padding: 3px 10px;
1363 border-radius: 6px;
1364 }
1365 .v2-cta-buttons {
1366 display: flex;
1367 gap: 12px;
1368 margin-top: 40px;
1369 }
1370 </style>