The Open Standard for Generative UI
Restructure the home page around the three OpenUI products (#1095)
Parikshit Deshmukh0232e260b114
diff --git a/docs/app/(home)/benchmarks/BenchmarksContent.tsx b/docs/app/(home)/benchmarks/BenchmarksContent.tsxindex 1141a7e53..6d6fa8321 100644--- a/docs/app/(home)/benchmarks/BenchmarksContent.tsx+++ b/docs/app/(home)/benchmarks/BenchmarksContent.tsx@@ -348,13 +348,13 @@ export function BenchmarksContent() {</div><CloudCtaSection- title="Improve your Generative UI reliability with OpenUI Cloud."+ title="Improve your Generative UI reliability with OpenUI Gateway."primary={{- label: "Get OpenUI Cloud",+ label: "Get OpenUI Gateway",href: "https://console.thesys.dev/keys",external: true,}}- secondary={{ label: "Learn more", href: "/docs/openui-cloud" }}+ secondary={{ label: "Learn more", href: "/cloud/gateway" }}/></VizSkin></main>diff --git a/docs/app/(home)/cloud/CloudCodeBlock.module.css b/docs/app/(home)/cloud/CloudCodeBlock.module.cssindex ca371cded..e73099bb6 100644--- a/docs/app/(home)/cloud/CloudCodeBlock.module.css+++ b/docs/app/(home)/cloud/CloudCodeBlock.module.css@@ -1,17 +1,30 @@.panel {overflow: hidden;- min-height: 360px;+ min-height: var(--cloud-code-min-height, 420px);border: 1px solid var(--openui-border-default);border-radius: 20px;background: var(--openui-foreground);+ animation: codePanelIn 220ms ease-out both;+}++@keyframes codePanelIn {+ from {+ opacity: 0.65;+ transform: translateY(4px);+ }++ to {+ opacity: 1;+ transform: translateY(0);+ }}.code {margin: 0;overflow-x: auto;- padding: 40px 0;+ padding: 48px 0;font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;- font-size: 15px;+ font-size: 16px;line-height: 1.7;text-align: left;}@@ -19,13 +32,13 @@.codeLine {display: block;min-width: max-content;- padding: 0 40px;+ padding: 0 48px;white-space: pre;}.changedLine {border-left: 3px solid #22c55e;- padding-left: 37px;+ padding-left: 45px;background: rgb(34 197 94 / 14%);}@@ -38,3 +51,9 @@display: none;}}++@media (prefers-reduced-motion: reduce) {+ .panel {+ animation: none;+ }+}diff --git a/docs/app/(home)/cloud/CloudCodeBlock.tsx b/docs/app/(home)/cloud/CloudCodeBlock.tsxindex 41976221f..3a840db2a 100644--- a/docs/app/(home)/cloud/CloudCodeBlock.tsx+++ b/docs/app/(home)/cloud/CloudCodeBlock.tsx@@ -5,7 +5,16 @@ import { Highlight, themes } from "prism-react-renderer";import { useEffect, useState } from "react";import styles from "./CloudCodeBlock.module.css";-export function CloudCodeBlock({ code }: { code: string }) {+/* `highlightLines` are 0-based indices into the trimmed source. It defaults to+ the single line Cloud's integration section has always marked, so existing+ callers keep their highlight without passing anything. */+export function CloudCodeBlock({+ code,+ highlightLines = [4],+}: {+ code: string;+ highlightLines?: number[];+}) {const { resolvedTheme } = useTheme();const [mounted, setMounted] = useState(false);@@ -30,7 +39,9 @@ export function CloudCodeBlock({ code }: { code: string }) {<spankey={lineIndex}{...getLineProps({ line })}- className={`${styles.codeLine} ${lineIndex === 4 ? styles.changedLine : ""}`}+ className={`${styles.codeLine} ${+ highlightLines.includes(lineIndex) ? styles.changedLine : ""+ }`}>{line.map((token, tokenIndex) => (<span key={tokenIndex} {...getTokenProps({ token })} />diff --git a/docs/app/(home)/cloud/CloudCtaSection.tsx b/docs/app/(home)/cloud/CloudCtaSection.tsxindex c974f1ca1..ccba93d2d 100644--- a/docs/app/(home)/cloud/CloudCtaSection.tsx+++ b/docs/app/(home)/cloud/CloudCtaSection.tsx@@ -10,8 +10,8 @@ interface CtaAction {export function CloudCtaSection({title = "Turn your OpenUI application into a production-grade experience.",- primary = { label: "Get API Key", href: "https://console.thesys.dev/keys", external: true },- secondary = { label: "Talk to our team", href: "https://zcal.co/t/thesys/demo", external: true },+ primary = { label: "Get API key", href: "https://console.thesys.dev/keys", external: true },+ secondary = { label: "Book a demo", href: "https://zcal.co/t/thesys/demo", external: true },}: {title?: string;primary?: CtaAction;diff --git a/docs/app/(home)/cloud/CloudIntegrationSection.module.css b/docs/app/(home)/cloud/CloudIntegrationSection.module.cssindex 853e49b26..6fc659e93 100644--- a/docs/app/(home)/cloud/CloudIntegrationSection.module.css+++ b/docs/app/(home)/cloud/CloudIntegrationSection.module.css@@ -7,7 +7,7 @@.inner {display: flex;align-items: stretch;- gap: 120px;+ gap: 72px;width: 100%;max-width: 1200px;margin-inline: auto;@@ -23,7 +23,14 @@text-align: left;}+.intro {+ display: flex;+ flex-direction: column;+ gap: 20px;+}+.title {+ max-width: 460px;margin: 0;color: var(--openui-text-neutral-primary);font-family: "Inter Display", sans-serif;@@ -33,6 +40,21 @@letter-spacing: var(--home-title-tracking);}+.title[data-size="medium"] {+ font-size: var(--home-title-medium-size);+}++.description {+ max-width: 460px;+ margin: 0;+ color: var(--openui-text-neutral-secondary);+ font-family: var(--home-font-text);+ font-size: var(--home-body-size);+ font-weight: var(--home-body-weight);+ line-height: var(--home-body-leading);+ text-wrap: pretty;+}+.stepper {display: flex;flex-direction: column;@@ -84,6 +106,10 @@font-size: 13px;font-weight: 500;line-height: 1;+ transition:+ border-color 160ms ease,+ background-color 160ms ease,+ color 160ms ease;}.stepContent {@@ -131,11 +157,15 @@line-height: var(--home-body-leading);}+.integrationAction {+ margin-top: 24px;+}+.codeColumn {display: flex;box-sizing: border-box;- flex: 0 0 600px;- width: 600px;+ flex: 0 0 640px;+ width: 640px;max-width: 100%;}@@ -293,6 +323,14 @@gap: 32px;}+ .stepper[data-interactive="true"][data-step-count="2"] {+ height: 248px;+ }++ .stepper[data-interactive="true"][data-step-count="3"] {+ height: 312px;+ }+.title {font-size: 28px;}@@ -334,3 +372,10 @@font-size: 17px;}}++@media (prefers-reduced-motion: reduce) {+ .stepper[data-interactive="true"] .step[data-active="true"]:not(:last-child)::after,+ .stepper[data-interactive="true"] .stepDescription {+ animation: none;+ }+}diff --git a/docs/app/(home)/cloud/CloudIntegrationSection.tsx b/docs/app/(home)/cloud/CloudIntegrationSection.tsxindex 6104692b9..3d3ce1ccf 100644--- a/docs/app/(home)/cloud/CloudIntegrationSection.tsx+++ b/docs/app/(home)/cloud/CloudIntegrationSection.tsx@@ -1,6 +1,9 @@+"use client";++import { Button } from "@/components/button";import { ArrowUpRight } from "lucide-react";import Image from "next/image";-import { Button } from "@/components/button";+import { type ReactNode } from "react";import { CloudCodeBlock } from "./CloudCodeBlock";import styles from "./CloudIntegrationSection.module.css";@@ -44,50 +47,111 @@ const CUSTOMERS = [},] as const;-export function CloudIntegrationSection() {+export type CloudIntegrationStep = {+ title: string;+ description: string;+ href?: string;+};++export function CloudIntegrationSetup({+ title,+ titleId,+ description,+ steps,+ code,+ codeLabel,+ action,+ highlightLines,+ titleSize = "default",+}: {+ title: ReactNode;+ titleId?: string;+ description?: ReactNode;+ steps: CloudIntegrationStep[];+ code: string;+ codeLabel: string;+ action?: { label: string; href: string };+ highlightLines?: number[];+ titleSize?: "default" | "medium";+}) {return (- <section className={styles.section} aria-labelledby="cloud-integration-title">- <div className={styles.inner}>- <div className={styles.content}>- <h2 id="cloud-integration-title" className={styles.title}>- Switch to OpenUI <span className={styles.cloudTag}>Cloud</span>- <br />- in seconds+ <div className={styles.inner}>+ <div className={styles.content}>+ <div className={styles.intro}>+ <h2 id={titleId} className={styles.title} data-size={titleSize}>+ {title}</h2>- <ol className={styles.stepper} aria-label="Upgrade to OpenUI Cloud">- <li className={styles.step}>- <span className={styles.stepMarker}>1</span>- <div className={styles.stepContent}>- <a- className={styles.stepLink}- href="https://console.thesys.dev/keys"- target="_blank"- rel="noreferrer"- >- Generate an API Key- <ArrowUpRight size={16} strokeWidth={2} aria-hidden="true" />- </a>- <p className={styles.stepDescription}>- Create a Cloud API key from the OpenUI console.- </p>- </div>- </li>- <li className={styles.step}>- <span className={styles.stepMarker}>2</span>+ {description ? <p className={styles.description}>{description}</p> : null}+ </div>+ <ol className={styles.stepper} aria-label={codeLabel}>+ {steps.map((step, index) => (+ <li className={styles.step} key={step.title}>+ <span className={styles.stepMarker}>{index + 1}</span><div className={styles.stepContent}>- <span className={styles.stepTitle}>Update your base URL</span>- <p className={styles.stepDescription}>- Point your OpenAI-compatible client to the OpenUI Cloud endpoint.- </p>+ {step.href ? (+ <a+ className={styles.stepLink}+ href={step.href}+ target="_blank"+ rel="noreferrer"+ >+ {step.title}+ <ArrowUpRight size={16} strokeWidth={2} aria-hidden="true" />+ </a>+ ) : (+ <span className={styles.stepTitle}>{step.title}</span>+ )}+ <p className={styles.stepDescription}>{step.description}</p></div></li>- </ol>- </div>+ ))}+ </ol>+ {action ? (+ <div className={styles.integrationAction}>+ <Button href={action.href} text={action.label} variant="tertiary" />+ </div>+ ) : null}+ </div>- <div className={styles.codeColumn} aria-label="OpenUI Cloud client configuration">- <CloudCodeBlock code={CLIENT_EXAMPLE} />- </div>+ <div+ className={styles.codeColumn}+ id={`${titleId ?? "cloud-integration"}-code`}+ aria-label={codeLabel}+ >+ <CloudCodeBlock code={code} highlightLines={highlightLines} /></div>+ </div>+ );+}++export function CloudIntegrationSection() {+ const steps: CloudIntegrationStep[] = [+ {+ title: "Generate an API Key",+ description: "Create a Cloud API key from the OpenUI console.",+ href: "https://console.thesys.dev/keys",+ },+ {+ title: "Update your base URL",+ description: "Point your OpenAI-compatible client to the OpenUI Cloud endpoint.",+ },+ ];++ return (+ <section className={styles.section} aria-labelledby="cloud-integration-title">+ <CloudIntegrationSetup+ title={+ <>+ Switch to OpenUI <span className={styles.cloudTag}>Cloud</span>+ <br />+ in seconds+ </>+ }+ titleId="cloud-integration-title"+ steps={steps}+ code={CLIENT_EXAMPLE}+ codeLabel="Upgrade to OpenUI Cloud"+ /><div className={styles.customers}><h2 className={styles.customersTitle}>diff --git a/docs/app/(home)/cloud/ComparisonSection.module.css b/docs/app/(home)/cloud/ComparisonSection.module.cssindex fbfb7d5d2..bb26fac1a 100644--- a/docs/app/(home)/cloud/ComparisonSection.module.css+++ b/docs/app/(home)/cloud/ComparisonSection.module.css@@ -20,10 +20,13 @@margin-inline: auto;}-.title {+.titleGroup {flex: 0 0 360px;width: 360px;max-width: 360px;+}++.title {margin: 0;padding-top: 8px;color: var(--openui-text-neutral-primary);@@ -35,6 +38,49 @@text-align: left;}+.description {+ margin: 24px 0 0;+ color: var(--openui-text-neutral-secondary);+ font-family: var(--home-font-text);+ font-size: var(--home-lead-size);+ font-weight: var(--home-lead-weight);+ line-height: var(--home-lead-leading);+ text-wrap: pretty;+}++.tableColumn {+ flex: 1 1 auto;+ min-width: 0;+}++.inner[data-layout="stacked"] {+ flex-direction: column;+ gap: 48px;+}++.inner[data-layout="stacked"] .titleGroup {+ display: grid;+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);+ align-items: start;+ gap: 72px;+ flex: 0 0 auto;+ width: 100%;+ max-width: none;+}++.inner[data-layout="stacked"] .title {+ padding-top: 0;+ text-wrap: balance;+}++.inner[data-layout="stacked"] .description {+ margin: 0;+}++.inner[data-layout="stacked"] .tableColumn {+ width: 100%;+}+.mobileTitleBreak {display: none;}@@ -67,9 +113,10 @@gap: 48px;}- .title {+ .titleGroup {flex: 0 0 auto;width: auto;+ max-width: none;}}@@ -87,6 +134,11 @@width: calc(100% - 32px);}+ .inner[data-layout="stacked"] .titleGroup {+ grid-template-columns: minmax(0, 1fr);+ gap: 24px;+ }+.title {font-size: 28px;}diff --git a/docs/app/(home)/cloud/ComparisonSection.tsx b/docs/app/(home)/cloud/ComparisonSection.tsxindex 84b401327..f868f0777 100644--- a/docs/app/(home)/cloud/ComparisonSection.tsx+++ b/docs/app/(home)/cloud/ComparisonSection.tsx@@ -1,4 +1,5 @@import { MarketingTable } from "@/components/marketing-table";+import type { ReactNode } from "react";import styles from "./ComparisonSection.module.css";const COMPARISON_ROWS = [@@ -42,63 +43,92 @@ function CloudCheckmark() {);}-export function ComparisonSection() {+export function ComparisonShell({+ title,+ titleId,+ description,+ children,+ layout = "split",+}: {+ title: ReactNode;+ titleId: string;+ description?: ReactNode;+ children: ReactNode;+ layout?: "split" | "stacked";+}) {return (- <section className={styles.section} aria-labelledby="cloud-comparison-title">+ <section className={styles.section} aria-labelledby={titleId}><div className={styles.separator} aria-hidden="true" />- <div className={styles.inner}>- <h2 id="cloud-comparison-title" className={styles.title}>+ <div className={styles.inner} data-layout={layout}>+ <div className={styles.titleGroup}>+ <h2 id={titleId} className={styles.title}>+ {title}+ </h2>+ {description ? <p className={styles.description}>{description}</p> : null}+ </div>+ <div className={styles.tableColumn}>{children}</div>+ </div>+ </section>+ );+}++export function ComparisonSection() {+ return (+ <ComparisonShell+ titleId="cloud-comparison-title"+ title={+ <>Purpose<br className={styles.titleBreak} /> built for<br className={styles.mobileTitleBreak} /> production use-cases- </h2>-- <MarketingTable edgeToEdgeMobile>- <colgroup>- <col className={styles.capabilityColumn} />- <col />- <col />- </colgroup>- <thead>- <tr>- <th scope="col">Capability</th>- <th scope="col">OpenUI OSS</th>- <th scope="col">OpenUI Cloud</th>- </tr>- </thead>- <tbody>- {COMPARISON_ROWS.map(([capability, oss, cloud]) => (- <tr key={capability}>- <th scope="row">{capability}</th>- <td- className={- oss === "Manage yourself" ||- oss === "Implement yourself" ||- oss === "Basic components included"- ? styles.selfManaged- : undefined- }- >- {capability === "OpenUI Lang" ? (- <span className={styles.checkedValue}>- <CloudCheckmark />- <span>{oss}</span>- </span>- ) : (- oss- )}- </td>- <td>+ </>+ }+ >+ <MarketingTable edgeToEdgeMobile>+ <colgroup>+ <col className={styles.capabilityColumn} />+ <col />+ <col />+ </colgroup>+ <thead>+ <tr>+ <th scope="col">Capability</th>+ <th scope="col">OpenUI OSS</th>+ <th scope="col">OpenUI Cloud</th>+ </tr>+ </thead>+ <tbody>+ {COMPARISON_ROWS.map(([capability, oss, cloud]) => (+ <tr key={capability}>+ <th scope="row">{capability}</th>+ <td+ className={+ oss === "Manage yourself" ||+ oss === "Implement yourself" ||+ oss === "Basic components included"+ ? styles.selfManaged+ : undefined+ }+ >+ {capability === "OpenUI Lang" ? (<span className={styles.checkedValue}><CloudCheckmark />- <span>{cloud}</span>+ <span>{oss}</span></span>- </td>- </tr>- ))}- </tbody>- </MarketingTable>- </div>- </section>+ ) : (+ oss+ )}+ </td>+ <td>+ <span className={styles.checkedValue}>+ <CloudCheckmark />+ <span>{cloud}</span>+ </span>+ </td>+ </tr>+ ))}+ </tbody>+ </MarketingTable>+ </ComparisonShell>);}diff --git a/docs/app/(home)/cloud/EnterpriseSection.module.css b/docs/app/(home)/cloud/EnterpriseSection.module.cssindex 1769ce162..4077d28da 100644--- a/docs/app/(home)/cloud/EnterpriseSection.module.css+++ b/docs/app/(home)/cloud/EnterpriseSection.module.css@@ -28,25 +28,9 @@}.link {- display: inline-flex;- align-items: center;- gap: 4px;- color: var(--openui-text-neutral-secondary);font-family: var(--home-font-display);font-size: var(--home-body-size);line-height: 1.3;- text-decoration: none;- transition: color 160ms ease;-}--.link:hover {- color: var(--openui-text-neutral-primary);-}--.link:focus-visible {- border-radius: 3px;- outline: 2px solid currentColor;- outline-offset: 4px;}@media (max-width: 767px) {diff --git a/docs/app/(home)/cloud/EnterpriseSection.tsx b/docs/app/(home)/cloud/EnterpriseSection.tsxindex 1ea61fe07..0e60f94de 100644--- a/docs/app/(home)/cloud/EnterpriseSection.tsx+++ b/docs/app/(home)/cloud/EnterpriseSection.tsx@@ -1,5 +1,4 @@-import { ArrowRight } from "lucide-react";-import Link from "next/link";+import { ExternalTextLink } from "../components/ExternalTextLink/ExternalTextLink";import {FeatureGridSection,type GridFeature,@@ -41,20 +40,34 @@ const ENTERPRISE_FEATURES: GridFeature[] = [},];-export function EnterpriseSection() {+export function EnterpriseSection({+ title = "Built for production-scale enterprise use",+ titleId = "enterprise-section-title",+ features = ENTERPRISE_FEATURES,+ linkLabel = "View trust centre",+ className,+}: {+ title?: string;+ titleId?: string;+ features?: GridFeature[];+ linkLabel?: string;+ className?: string;+} = {}) {return (- <section className={styles.section} aria-labelledby="enterprise-section-title">+ <section+ className={[styles.section, className].filter(Boolean).join(" ")}+ aria-labelledby={titleId}+ ><div className={styles.header}>- <h2 id="enterprise-section-title" className={styles.title}>- Built for production-scale enterprise use+ <h2 id={titleId} className={styles.title}>+ {title}</h2>- <Link className={styles.link} href="https://trust.thesys.dev/" target="_blank" rel="noopener noreferrer">- View trust center- <ArrowRight aria-hidden="true" size={16} strokeWidth={2} />- </Link>+ <ExternalTextLink className={styles.link} href="https://trust.thesys.dev/">+ {linkLabel}+ </ExternalTextLink></div><FeatureGridSection- features={ENTERPRISE_FEATURES}+ features={features}showHeader={false}showCompat={false}showBottomSeparator={false}diff --git a/docs/app/(home)/cloud/FeaturesSection.module.css b/docs/app/(home)/cloud/FeaturesSection.module.cssindex 33f45a8ab..aa7d42433 100644--- a/docs/app/(home)/cloud/FeaturesSection.module.css+++ b/docs/app/(home)/cloud/FeaturesSection.module.css@@ -32,6 +32,11 @@object-fit: cover;}+.featureImagePlaceholder {+ border: 1px solid var(--openui-border-default);+ background: var(--home-color-surface-soft);+}+.featureImageDark {display: none;}diff --git a/docs/app/(home)/cloud/FeaturesSection.tsx b/docs/app/(home)/cloud/FeaturesSection.tsxindex 38f5ed7ee..94d1473a2 100644--- a/docs/app/(home)/cloud/FeaturesSection.tsx+++ b/docs/app/(home)/cloud/FeaturesSection.tsx@@ -39,11 +39,13 @@ function FeatureCopy({headline,description,docsHref,+ ctaText = "Read docs",}: {title: string;headline: ReactNode;- description: string;- docsHref: string;+ description: ReactNode;+ docsHref?: string;+ ctaText?: string;}) {return (<div className={styles.content}>@@ -53,95 +55,122 @@ function FeatureCopy({</div><div className={styles.bodyGroup}><p className={styles.body}>{description}</p>- <Button href={docsHref} text="Read docs" variant="tertiary" />+ {docsHref ? <Button href={docsHref} text={ctaText} variant="tertiary" /> : null}</div></div>);}+export function CloudFeatureCard({+ image,+ imageDark,+ imageAlt,+ title,+ headline,+ description,+ docsHref,+ ctaText,+ imageFirst = true,+ unoptimized = false,+}: {+ image?: string;+ imageDark?: string;+ imageAlt?: string;+ title: string;+ headline: ReactNode;+ description: ReactNode;+ docsHref?: string;+ ctaText?: string;+ imageFirst?: boolean;+ unoptimized?: boolean;+}) {+ const artwork =+ image && imageDark ? (+ <>+ <Image+ className={`${styles.featureImage} ${styles.featureImageLight}`}+ src={image}+ alt={imageAlt ?? ""}+ width={720}+ height={400}+ unoptimized={unoptimized}+ />+ <Image+ className={`${styles.featureImage} ${styles.featureImageDark}`}+ src={imageDark}+ alt=""+ aria-hidden="true"+ width={720}+ height={400}+ unoptimized={unoptimized}+ />+ </>+ ) : (+ <div+ className={`${styles.featureImage} ${styles.featureImagePlaceholder}`}+ aria-hidden="true"+ />+ );++ const copy = (+ <FeatureCopy+ title={title}+ headline={headline}+ description={description}+ docsHref={docsHref}+ ctaText={ctaText}+ />+ );++ return (+ <article className={styles.card}>+ {imageFirst ? artwork : copy}+ {imageFirst ? copy : artwork}+ </article>+ );+}+export function FeaturesSection() {return (<><section className={styles.section} aria-label="OpenUI Cloud features">- <article className={styles.card}>- <Image- className={`${styles.featureImage} ${styles.featureImageLight}`}- src="/openui-cloud/validation.svg"- alt="OpenUI Cloud validating and correcting model output"- width={720}- height={400}- />- <Image- className={`${styles.featureImage} ${styles.featureImageDark}`}- src="/openui-cloud/validation-dark.svg"- alt=""- aria-hidden="true"- width={720}- height={400}- />- <FeatureCopy- title="Reliability"- headline="Broken model output shouldn’t become broken UI"- description="Every response is validated against your component library and corrected in the streaming path, not as a retry your user waits through."- docsHref="https://www.openui.com/docs/openui-cloud/production-readiness"- />- </article>+ <CloudFeatureCard+ image="/openui-cloud/validation.svg"+ imageDark="/openui-cloud/validation-dark.svg"+ imageAlt="OpenUI Cloud validating and correcting model output"+ title="Reliability"+ headline="Broken model output shouldn’t become broken UI"+ description="Every response is validated against your component library and corrected in the streaming path, not as a retry your user waits through."+ docsHref="https://www.openui.com/docs/openui-cloud/production-readiness"+ />- <article className={styles.card}>- <FeatureCopy- title="Managed model access"- headline={- <>- Every model.- <br />- One API.- </>- }- description="Access leading models across providers through a single API. OpenUI Cloud handles fallbacks when a model or provider becomes unavailable."- docsHref="https://www.openui.com/docs/openui-cloud/production-readiness"- />- <Image- className={`${styles.featureImage} ${styles.featureImageLight}`}- src="/openui-cloud/llm-gateway.svg"- alt="OpenUI Cloud routing requests across model providers"- width={720}- height={400}- />- <Image- className={`${styles.featureImage} ${styles.featureImageDark}`}- src="/openui-cloud/llm-gateway-dark.svg"- alt=""- aria-hidden="true"- width={720}- height={400}- />- </article>+ <CloudFeatureCard+ image="/openui-cloud/llm-gateway.svg"+ imageDark="/openui-cloud/llm-gateway-dark.svg"+ imageAlt="OpenUI Cloud routing requests across model providers"+ title="Managed model access"+ headline={+ <>+ Every model.+ <br />+ One API.+ </>+ }+ description="Access leading models across providers through a single API. OpenUI Cloud handles fallbacks when a model or provider becomes unavailable."+ docsHref="https://www.openui.com/docs/openui-cloud/production-readiness"+ imageFirst={false}+ />- <article className={styles.card}>- <Image- className={`${styles.featureImage} ${styles.featureImageLight}`}- src="/openui-cloud/reports&presentation.png?v=20260723-1444"- alt="OpenUI Cloud reports and presentation artifacts"- width={720}- height={400}- unoptimized- />- <Image- className={`${styles.featureImage} ${styles.featureImageDark}`}- src="/openui-cloud/reports&presentations-dark.png"- alt=""- aria-hidden="true"- width={720}- height={400}- unoptimized- />- <FeatureCopy- title="Live & Static Artifacts"- headline="Generate more than chat responses"- description="Turn model output into complete, polished artifacts, from interactive dashboards and reports to polished & editable presentations & reports."- docsHref="https://www.openui.com/docs/openui-cloud/build/slides"- />- </article>+ <CloudFeatureCard+ image="/openui-cloud/reports&presentation.png?v=20260723-1444"+ imageDark="/openui-cloud/reports&presentations-dark.png"+ imageAlt="OpenUI Cloud reports and presentation artifacts"+ title="Live & Static Artifacts"+ headline="Generate more than chat responses"+ description="Turn model output into complete, polished artifacts, from interactive dashboards and reports to polished & editable presentations & reports."+ docsHref="https://www.openui.com/docs/openui-cloud/build/slides"+ unoptimized+ /></section><div className={styles.supportingFeatures}>diff --git a/docs/app/(home)/cloud/ListSection.tsx b/docs/app/(home)/cloud/ListSection.tsxnew file mode 100644index 000000000..c97b60d7a--- /dev/null+++ b/docs/app/(home)/cloud/ListSection.tsx@@ -0,0 +1,50 @@+import type { ReactNode } from "react";+import styles from "./sections.module.css";++export interface ListSectionItem {+ term: string;+ description: ReactNode;+}++/* Three of the Gateway sections are the same shape — a heading, an optional+ lead, a list of term/description rows, and sometimes a closing line. They+ share this component rather than three near-identical files, so a change to+ the row rhythm lands in one place. */+export function ListSection({+ id,+ title,+ lead,+ items,+ closer,+ tight = false,+}: {+ id: string;+ title: string;+ lead?: ReactNode;+ items: ListSectionItem[];+ closer?: ReactNode;+ tight?: boolean;+}) {+ return (+ <section+ className={`${styles.section} ${tight ? styles.sectionTight : ""}`}+ aria-labelledby={id}+ >+ <h2 id={id} className={styles.heading}>+ {title}+ </h2>+ {lead ? <p className={styles.lead}>{lead}</p> : null}++ <ul className={styles.rows}>+ {items.map((item) => (+ <li className={styles.row} key={item.term}>+ <span className={styles.term}>{item.term}</span>+ <p className={styles.desc}>{item.description}</p>+ </li>+ ))}+ </ul>++ {closer ? <p className={styles.closer}>{closer}</p> : null}+ </section>+ );+}diff --git a/docs/app/(home)/cloud/gateway/FailureBreakdown.module.css b/docs/app/(home)/cloud/gateway/FailureBreakdown.module.cssnew file mode 100644index 000000000..3943c04e9--- /dev/null+++ b/docs/app/(home)/cloud/gateway/FailureBreakdown.module.css@@ -0,0 +1,181 @@+figure.figure {+ gap: 20px;+ margin: 72px 0 0;+ padding: 0;+ border-radius: 0;+ background: transparent;+}++.failureFill {+ background-image: url("./assets/failure-root.svg");+}++.referenceFill {+ background-image: url("./assets/failure-reference.svg");+}++.argumentFill {+ background-image: url("./assets/failure-arguments.svg");+}++.truncationFill {+ background-color: #b9b9b9;+ background-image: repeating-linear-gradient(+ 135deg,+ rgba(255, 255, 255, 0.52) 0 4px,+ transparent 4px 9px+ );+}++:global(.dark) .truncationFill,+:global([data-theme="dark"]) .truncationFill {+ background-color: #696969;+ background-image: repeating-linear-gradient(+ 135deg,+ rgba(255, 255, 255, 0.22) 0 4px,+ transparent 4px 9px+ );+}++.bar {+ display: grid;+ height: clamp(64px, 7vw, 88px);+}++.segment {+ grid-row: 1 / -1;+ min-width: 0;+ background-size: 100% 100%;+ background-repeat: no-repeat;+}++/* The Figma textures include a 3px light separator at their right edge. It is+ intentional on the light canvas but reads as a white glitch on black. A+ tiny dark-mode overscan clips that baked edge without changing the segment+ proportions or the hatch scale perceptibly. */+:global([data-theme="dark"]) .segment:not(:last-child) {+ background-size: calc(100% + 4px) 100%;+}++.segment:last-child {+ border: 0;+}++.connectors {+ position: relative;+ height: 72px;+}++.horizontalConnectors,+.verticalConnectors {+ position: absolute;+ inset: 0;+ width: 100%;+ height: 100%;+ fill: none;+ stroke: color-mix(in srgb, var(--openui-text-neutral-primary) 32%, transparent);+ stroke-width: 1.25px;+ stroke-dasharray: 1 5;+ stroke-linecap: round;+ stroke-linejoin: round;+ overflow: visible;+}++.verticalConnectors {+ display: none;+}++.labels {+ display: grid;+ min-height: 91px;+ grid-template-columns: repeat(4, minmax(0, 1fr));+ margin: 0;+ padding: 0;+ list-style: none;+}++.label {+ display: flex;+ flex-direction: column;+ align-items: flex-start;+ gap: 8px;+ min-width: 0;+ padding: 12px 16px 0 0;+ font-family: var(--home-font-mono);+ text-align: left;+}++.share {+ color: var(--openui-text-neutral-primary);+ font-size: 21px;+ font-weight: 500;+ line-height: 25.5px;+}++.family {+ color: var(--openui-text-neutral-secondary);+ font-size: var(--home-body-size);+ line-height: var(--home-body-leading);+ text-wrap: wrap;+}++/* Rotate the same proportional bar on small screens. Labels have their own+ equal-height rows, so neither the 4% slice nor long text can cause overlaps. */+@media (max-width: 639px) {+ figure.figure {+ margin-top: 48px;+ }++ .chartBody {+ display: grid;+ grid-template-columns: 48px 40px minmax(0, 1fr);+ }++ .bar {+ height: auto;+ }++ .segment {+ grid-column: 1 / -1;+ grid-row: auto;+ min-height: 0;+ border-inline-end: 0;+ border-bottom: 3px solid var(--openui-background);+ }++ .connectors {+ height: auto;+ }++ .horizontalConnectors {+ display: none;+ }++ .verticalConnectors {+ display: block;+ }++ .labels {+ grid-template-columns: minmax(0, 1fr);+ grid-template-rows: repeat(4, minmax(88px, 1fr));+ }++ .label {+ align-items: flex-start;+ justify-content: center;+ gap: 4px;+ padding: 12px 0 12px 12px;+ text-align: left;+ }++ .share {+ width: 3.25ch;+ text-align: right;+ font-variant-numeric: tabular-nums;+ }++ .family {+ max-width: none;+ text-wrap: pretty;+ }+}diff --git a/docs/app/(home)/cloud/gateway/FailureBreakdown.tsx b/docs/app/(home)/cloud/gateway/FailureBreakdown.tsxnew file mode 100644index 000000000..50fa45129--- /dev/null+++ b/docs/app/(home)/cloud/gateway/FailureBreakdown.tsx@@ -0,0 +1,98 @@+import chartStyles from "@/components/charts/viz.module.css";+import { failureTaxonomy } from "@/lib/benchmark-data";+import styles from "./FailureBreakdown.module.css";++// Exact chart textures exported from the reviewed Figma design.+const fills = [+ styles.failureFill,+ styles.referenceFill,+ styles.argumentFill,+ styles.truncationFill,+];++const total = failureTaxonomy.reduce((sum, entry) => sum + entry.share, 0);+const categories = failureTaxonomy.map((entry, index) => ({+ ...entry,+ label: entry.family.replace(/\s*\(.*\)\s*$/, ""),+ midpoint:+ ((failureTaxonomy.slice(0, index).reduce((sum, item) => sum + item.share, 0) ++ entry.share / 2) /+ total) *+ 1000,+ labelPosition: (index / failureTaxonomy.length) * 1000,+ mobileLabelPosition: ((index + 0.5) / failureTaxonomy.length) * 1000,+}));++export function FailureBreakdown() {+ return (+ <figure+ className={`${chartStyles.viz} ${styles.figure}`}+ aria-label="Failure categories as a percentage of failed generations"+ >+ <div className={styles.chartBody}>+ <div+ className={styles.bar}+ style={{+ gridTemplateColumns: categories.map((entry) => `${entry.share}fr`).join(" "),+ gridTemplateRows: categories.map((entry) => `${entry.share}fr`).join(" "),+ }}+ aria-hidden="true"+ >+ {categories.map((entry, index) => (+ <span key={entry.family} className={`${styles.segment} ${fills[index]}`} />+ ))}+ </div>++ {/* Ordered anchors and equal-size label slots keep the connectors from+ crossing, even when a segment is too small to contain its label. */}+ <div className={styles.connectors} aria-hidden="true">+ <svg+ className={styles.horizontalConnectors}+ viewBox="0 0 1000 72"+ preserveAspectRatio="none"+ >+ {categories.map((entry, index) => (+ <path+ key={entry.family}+ d={`M ${entry.midpoint} 0 V ${18 + index * 12} H ${entry.labelPosition} V 72`}+ vectorEffect="non-scaling-stroke"+ />+ ))}+ </svg>+ <svg+ className={styles.verticalConnectors}+ viewBox="0 0 64 1000"+ preserveAspectRatio="none"+ >+ {categories.map((entry, index) => (+ <path+ key={entry.family}+ d={`M 0 ${entry.midpoint} H ${12 + index * 12} V ${entry.mobileLabelPosition} H 64`}+ vectorEffect="non-scaling-stroke"+ />+ ))}+ </svg>+ </div>++ <ul className={styles.labels}>+ {categories.map((entry) => (+ <li key={entry.family} className={styles.label}>+ <span className={styles.share}>{entry.share}%</span>+ <span className={styles.family}>+ {entry.label === "Enum, type and argument errors" ? (+ <>+ Enum, type and+ <br />+ argument errors+ </>+ ) : (+ entry.label+ )}+ </span>+ </li>+ ))}+ </ul>+ </div>+ </figure>+ );+}diff --git a/docs/app/(home)/cloud/gateway/FaqSection.tsx b/docs/app/(home)/cloud/gateway/FaqSection.tsxnew file mode 100644index 000000000..52cd8f6a3--- /dev/null+++ b/docs/app/(home)/cloud/gateway/FaqSection.tsx@@ -0,0 +1,75 @@+import {+ FaqSection as MarketingFaqSection,+ type MarketingFaq,+} from "../../sections/FaqSection/FaqSection";++const FAQS: MarketingFaq[] = [+ {+ question: "Do I need OpenUI Gateway to use OpenUI?",+ answer: [+ "No. OpenUI works without Gateway. You can call any supported LLM directly and use generatePrompt to create the system prompt.",+ "For production applications, OpenUI Gateway adds validation and automatic corrections for generated UI, model routing, and provider fallbacks through an OpenAI-compatible API.",+ ],+ },+ {+ question: "What happens to my data?",+ answer: [+ "Your data is not used to train models, except with free models. Chat Completions requests have zero data retention by default on paid models.",+ ],+ },+ {+ question: "Can I use my existing OpenAI or Anthropic credits?",+ answer: [+ "Yes. Bring your own key (BYOK) to use your existing OpenAI or Anthropic credits and commitments. BYOK carries no platform fee.",+ ],+ },+ {+ question: "I already use open-source OpenUI. How do I add Gateway?",+ answer: [+ "Create a Gateway API key, update your base URL and model, and enable Gateway in your prompt. The integration guide covers the full setup.",+ "You can also give the setup prompt to your coding agent or book a call for help.",+ ],+ },+ {+ question: "Can I use OpenUI Gateway with Portkey or another gateway?",+ answer: [+ "Yes. Configure OpenUI Gateway as an OpenAI-compatible endpoint behind Portkey or any other OpenAI-compatible gateway.",+ ],+ },+ {+ question: "Will my cache configuration work?",+ answer: ["Yes. OpenUI Gateway honors your upstream cache configuration."],+ },+ {+ question: "Which model handles corrections, and are they billed separately?",+ answer: [+ "Corrections use a dedicated model tuned for low latency, which we continue to improve. All correction calls are included in your plan and are not billed separately.",+ ],+ },+ {+ question: "Do I need OpenUI Observability with Gateway?",+ answer: [+ "No. OpenUI Gateway and OpenUI Observability work independently. Gateway does not require Observability.",+ "We recommend using both. Gateway makes generated UI more reliable. Observability shows what users experienced and whether it worked.",+ ],+ },+];++export function FaqSection() {+ return (+ <MarketingFaqSection+ faqs={FAQS}+ titleId="gateway-faq"+ firstOpen+ contact={+ <>+ Have another question? Join our{" "}+ <a href="https://discord.com/invite/Pbv5PsqUSv" target="_blank" rel="noopener noreferrer">+ Discord+ </a>+ .+ </>+ }+ />+ );+}diff --git a/docs/app/(home)/cloud/gateway/GatewayDiagram.module.css b/docs/app/(home)/cloud/gateway/GatewayDiagram.module.cssnew file mode 100644index 000000000..339c1f744--- /dev/null+++ b/docs/app/(home)/cloud/gateway/GatewayDiagram.module.css@@ -0,0 +1,236 @@+.stage {+ --diagram-surface: color-mix(in srgb, var(--openui-text-neutral-primary) 4%, transparent);+ --diagram-raised: var(--openui-foreground);+ --diagram-border: color-mix(in srgb, var(--openui-text-neutral-primary) 12%, transparent);+ --diagram-muted: var(--openui-text-neutral-secondary);++ box-sizing: border-box;+ display: grid;+ grid-template-columns: minmax(12rem, 0.9fr) 3.5rem minmax(17rem, 1.18fr) 3.5rem minmax(12rem, 0.9fr);+ grid-template-rows: 1fr auto;+ align-items: center;+ width: 100%;+ min-height: 430px;+ padding: clamp(1.5rem, 4vw, 3rem);+ border: 1px solid var(--diagram-border);+ border-radius: 24px;+ background: var(--openui-foreground);+ color: var(--openui-text-neutral-primary);+ font-family: var(--home-font-text);+}++.streamColumn,+.gatewayColumn,+.resultColumn { min-width: 0; }++.columnLabel,+.gatewayHeader,+.failureLabel,+.successLabel,+.patchLabel,+.filterRow { display: flex; align-items: center; }++.columnLabel {+ gap: 0.55rem;+ margin-bottom: 0.75rem;+ font-family: var(--home-font-display);+ font-size: 0.9rem;+ font-weight: 550;+}++.codeWindow,+.gatewayColumn,+.resultWindow {+ border: 1px solid var(--diagram-border);+ border-radius: 16px;+ background: var(--diagram-surface);+}++.codeWindow { min-height: 218px; padding: 1rem; }++.windowDots { display: flex; gap: 0.3rem; margin-bottom: 1rem; }+.windowDots i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--diagram-border); }++.codeWindow code {+ display: block;+ padding: 0.34rem 0.45rem;+ overflow: hidden;+ color: var(--diagram-muted);+ font-family: var(--font-geist-mono, monospace);+ font-size: clamp(0.6rem, 0.85vw, 0.74rem);+ text-overflow: ellipsis;+ white-space: nowrap;+}++.codeWindow .invalidLine {+ border-left: 2px solid #dc3f48;+ background: color-mix(in srgb, #dc3f48 10%, transparent);+ color: #dc3f48;+}++.failureLabel,+.successLabel {+ gap: 0.4rem;+ width: fit-content;+ margin-top: 0.7rem;+ font-size: 0.74rem;+}++.failureLabel { color: #dc3f48; }+.successLabel { color: #07864d; }++.okIcon,+.errorIcon {+ display: inline-grid;+ flex: none;+ width: 1.15rem;+ height: 1.15rem;+ place-items: center;+ border-radius: 50%;+ color: #fff;+}++.okIcon { background: #07864d; }+.errorIcon { background: #dc3f48; }++.flowArrow {+ position: relative;+ display: flex;+ justify-content: flex-end;+ color: var(--diagram-muted);+}++.flowArrow::before {+ position: absolute;+ top: 50%;+ right: 0.8rem;+ left: 0;+ height: 1px;+ background: var(--diagram-border);+ content: "";+}++.flowArrow svg { position: relative; }++.gatewayColumn {+ overflow: hidden;+ background: var(--diagram-raised);+ box-shadow: 0 14px 40px color-mix(in srgb, #000 7%, transparent);+}++.gatewayHeader {+ gap: 0.7rem;+ padding: 1rem;+ border-bottom: 1px solid var(--diagram-border);+}++.gatewayHeader > span:nth-child(2) {+ display: flex;+ min-width: 0;+ flex: 1;+ flex-direction: column;+ gap: 0.12rem;+}++.gatewayHeader strong { font-family: var(--home-font-display); font-size: 0.92rem; font-weight: 550; }+.gatewayHeader small { color: var(--diagram-muted); font-size: 0.7rem; }++.gatewayMark {+ display: grid;+ width: 2rem;+ height: 2rem;+ place-items: center;+ border-radius: 9px;+ background: var(--openui-text-neutral-primary);+ color: var(--openui-foreground);+ font-family: var(--home-font-display);+ font-size: 0.75rem;+ font-weight: 600;+}++.checkList {+ display: grid;+ grid-template-columns: repeat(3, minmax(0, 1fr));+ gap: 0.45rem;+ padding: 0.75rem;+}++.checkList > span {+ display: flex;+ min-width: 0;+ flex-direction: column;+ gap: 0.45rem;+ padding: 0.65rem;+ border: 1px solid var(--diagram-border);+ border-radius: 9px;+ background: var(--diagram-surface);+}++.checkList b { font-size: clamp(0.58rem, 0.78vw, 0.68rem); font-weight: 520; line-height: 1.25; }++.patch {+ margin: 0 0.75rem 0.75rem;+ padding: 0.75rem;+ border-left: 2px solid #dc3f48;+ border-radius: 0 8px 8px 0;+ background: var(--diagram-surface);+}++.patchLabel { gap: 0.45rem; margin-bottom: 0.55rem; font-size: 0.7rem; font-weight: 520; }+.patch code { display: block; font-family: var(--font-geist-mono, monospace); font-size: clamp(0.58rem, 0.76vw, 0.68rem); line-height: 1.6; }+.patch del { color: #dc3f48; text-decoration: none; }+.patch ins { color: #07864d; text-decoration: none; }++.resultWindow { min-height: 218px; padding: 1rem; }+.metric { display: flex; flex-direction: column; gap: 0.12rem; }+.metric small,+.filterRow span { color: var(--diagram-muted); font-size: 0.66rem; }+.metric strong { font-family: var(--home-font-display); font-size: 1.2rem; }++.chart {+ position: relative;+ height: 90px;+ margin-top: 0.75rem;+ overflow: hidden;+ border-radius: 8px;+ background: linear-gradient(to bottom, transparent, color-mix(in srgb, #2589ff 7%, transparent));+}++.chart span { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 28px, var(--diagram-border) 29px); }+.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }+.chart path { fill: none; stroke: #2589ff; stroke-width: 2; vector-effect: non-scaling-stroke; }++.filterRow { justify-content: space-between; margin-top: 0.7rem; padding-top: 0.65rem; border-top: 1px solid var(--diagram-border); }+.filterRow b { font-size: 0.68rem; font-weight: 520; }++.timeline {+ position: relative;+ grid-column: 1 / -1;+ display: grid;+ grid-template-columns: repeat(3, 1fr);+ gap: 1rem;+ margin-top: 1.75rem;+ padding-top: 0.85rem;+ color: var(--diagram-muted);+ font-size: 0.67rem;+}++.timeline::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: var(--diagram-border); content: ""; }+.timeline span { position: relative; display: flex; align-items: center; gap: 0.4rem; }+.timeline span:nth-child(2) { justify-content: center; }+.timeline span:nth-child(3) { justify-content: flex-end; }+.timeline i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--diagram-muted); }+.timeline .repairMoment { color: #dc3f48; }+.timeline .repairMoment i { background: #dc3f48; }++@media (max-width: 1023px) {+ .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 1rem; }+ .flowArrow { width: 3rem; justify-self: center; transform: rotate(90deg); }+ .timeline { grid-column: 1; }+}++@media (max-width: 600px) {+ .stage { min-height: 0; padding: 1rem; border-radius: 16px; }+ .codeWindow, .resultWindow { min-height: 190px; }+ .timeline { display: none; }+}diff --git a/docs/app/(home)/cloud/gateway/GatewayDiagram.tsx b/docs/app/(home)/cloud/gateway/GatewayDiagram.tsxnew file mode 100644index 000000000..5d9226b34--- /dev/null+++ b/docs/app/(home)/cloud/gateway/GatewayDiagram.tsx@@ -0,0 +1,140 @@+import {+ ArrowRight,+ ChartLine,+ Check,+ Code,+ ShieldCheck,+ Wrench,+ X,+} from "@phosphor-icons/react/dist/ssr";+import styles from "./GatewayDiagram.module.css";++function StateIcon({ ok }: { ok: boolean }) {+ return (+ <span className={ok ? styles.okIcon : styles.errorIcon} aria-hidden="true">+ {ok ? <Check size={12} weight="bold" /> : <X size={12} weight="bold" />}+ </span>+ );+}++export function GatewayDiagram() {+ return (+ <div+ className={styles.stage}+ role="img"+ aria-label="Gateway detects an invalid series reference in a streaming chart component, repairs only that chunk, and lets the valid interface continue rendering."+ >+ <div className={styles.streamColumn}>+ <div className={styles.columnLabel}>+ <Code size={18} weight="light" />+ <span>Model stream</span>+ </div>+ <div className={styles.codeWindow}>+ <div className={styles.windowDots} aria-hidden="true">+ <i />+ <i />+ <i />+ </div>+ <code><Dashboard></code>+ <code> <Metric value="$2.15M" /></code>+ <code className={styles.invalidLine}>+ <LineChart series="revenue" />+ </code>+ <code> <Select action="filter" /></code>+ <code></Dashboard></code>+ </div>+ <span className={styles.failureLabel}>+ <StateIcon ok={false} />+ Invalid reference+ </span>+ </div>++ <span className={styles.flowArrow} aria-hidden="true">+ <ArrowRight size={18} weight="bold" />+ </span>++ <div className={styles.gatewayColumn}>+ <div className={styles.gatewayHeader}>+ <span className={styles.gatewayMark}>O</span>+ <span>+ <strong>OpenUI Gateway</strong>+ <small>Checks each streamed node</small>+ </span>+ <ShieldCheck size={20} weight="light" />+ </div>+ <div className={styles.checkList}>+ <span>+ <StateIcon ok />+ <b>Component exists</b>+ </span>+ <span>+ <StateIcon ok={false} />+ <b>Reference resolves</b>+ </span>+ <span>+ <StateIcon ok />+ <b>Arguments match</b>+ </span>+ </div>+ <div className={styles.patch}>+ <div className={styles.patchLabel}>+ <Wrench size={16} weight="light" />+ Repair only the invalid chunk+ </div>+ <code>+ <del>series="revenue"</del>+ </code>+ <code>+ <ins>series={revenue}</ins>+ </code>+ </div>+ </div>++ <span className={styles.flowArrow} aria-hidden="true">+ <ArrowRight size={18} weight="bold" />+ </span>++ <div className={styles.resultColumn}>+ <div className={styles.columnLabel}>+ <ChartLine size={18} weight="light" />+ <span>Interface keeps rendering</span>+ </div>+ <div className={styles.resultWindow}>+ <div className={styles.metric}>+ <small>Revenue</small>+ <strong>$2.15M</strong>+ </div>+ <div className={styles.chart} aria-hidden="true">+ <span />+ <svg viewBox="0 0 280 100" preserveAspectRatio="none">+ <path d="M0 76 C42 68 55 43 94 50 S146 72 180 45 S235 37 280 16" />+ </svg>+ </div>+ <div className={styles.filterRow}>+ <span>Region</span>+ <b>All regions</b>+ </div>+ </div>+ <span className={styles.successLabel}>+ <StateIcon ok />+ Valid UI delivered+ </span>+ </div>++ <div className={styles.timeline} aria-hidden="true">+ <span>+ <i />+ Stream starts+ </span>+ <span className={styles.repairMoment}>+ <i />+ Invalid chunk repaired+ </span>+ <span>+ <i />+ Stream continues+ </span>+ </div>+ </div>+ );+}diff --git a/docs/app/(home)/cloud/gateway/GatewayPlans.module.css b/docs/app/(home)/cloud/gateway/GatewayPlans.module.cssnew file mode 100644index 000000000..6d4fa4af5--- /dev/null+++ b/docs/app/(home)/cloud/gateway/GatewayPlans.module.css@@ -0,0 +1,85 @@+/* The detailed pricing-page variant keeps the Gateway card's material and+ type scale. Shared rows align its prices, descriptions, and actions. */+.grid {+ align-items: stretch;+}++.card {+ display: grid;+ grid-template-rows: subgrid;+ grid-row: span 3;+ row-gap: 0;+}++.detailed .header {+ gap: 0;+}++.header h3 {+ margin-bottom: 24px;+}++.cadence {+ display: block;+ margin-top: 8px;+ color: var(--openui-text-neutral-secondary);+ font-size: var(--home-label-size);+ line-height: var(--home-body-leading);+}++.description {+ margin: 24px 0 0;+ color: var(--openui-text-neutral-secondary);+ font-size: var(--home-body-size);+ line-height: var(--home-body-leading);+}++.features {+ display: flex;+ flex-direction: column;+ gap: 16px;+ margin: 0;+ padding: 24px;+ list-style: none;+ font-size: var(--home-body-size);+ line-height: var(--home-body-leading);+}++.features li {+ display: flex;+ align-items: flex-start;+ gap: 8px;+}++.features svg {+ flex: none;+ margin-top: 3px;+ color: var(--openui-text-neutral-secondary);+}++.action {+ min-width: 0;+ padding: 8px 24px 24px;+}++.cta {+ width: 100%;+ min-width: 0;+ justify-content: space-between;+}++@media (max-width: 767px) {+ .detailed .grid {+ grid-template-columns: none;+ }++ .card {+ display: flex;+ flex-direction: column;+ grid-row: auto;+ }++ .cadence[aria-hidden="true"] {+ display: none;+ }+}diff --git a/docs/app/(home)/cloud/gateway/GatewayPlans.tsx b/docs/app/(home)/cloud/gateway/GatewayPlans.tsxnew file mode 100644index 000000000..419f98c0f--- /dev/null+++ b/docs/app/(home)/cloud/gateway/GatewayPlans.tsx@@ -0,0 +1,126 @@+"use client";++import { ArrowUpRight, Check } from "lucide-react";+import { useId, useState } from "react";+import { BevelButton } from "../../components/Button/BevelButton";+import { GATEWAY_PLANS } from "./gateway-plans";+import details from "./GatewayPlans.module.css";+import styles from "./sections.module.css";++const STRIP = ["Free models available", "Zero data retention available"];+const formatPrice = (price: number) =>+ new Intl.NumberFormat("en-US", {+ style: "currency",+ currency: "USD",+ maximumFractionDigits: 0,+ }).format(price);++/** Same plans, billing control, and card styling on both pricing surfaces. */+export function GatewayPlans({ detailed = false }: { detailed?: boolean }) {+ const [annualBilling, setAnnualBilling] = useState(true);+ const id = useId();++ return (+ <div className={detailed ? details.detailed : undefined}>+ <div className={styles.pricingToolbar}>+ <div className={styles.pricingControls}>+ <button+ className={styles.billingToggle}+ type="button"+ role="switch"+ aria-label="Annual billing"+ aria-checked={annualBilling}+ onClick={() => setAnnualBilling((current) => !current)}+ >+ <span className={styles.billingTrack} aria-hidden="true" />+ <span>Annual billing</span>+ </button>+ <span className={styles.billingSaving}>Save up to 20%</span>+ </div>+ <ul className={styles.priceStrip}>+ {STRIP.map((item) => (+ <li key={item}>{item}</li>+ ))}+ </ul>+ </div>+ <div className={styles.pricingPanel}>+ <p className={styles.pricingCaption} aria-live="polite">+ Gateway plans.{" "}+ {annualBilling+ ? "Annual billing selected; prices shown per month."+ : "Monthly billing selected."}+ </p>+ <div className={`${styles.planGrid} ${detailed ? details.grid : ""}`}>+ {GATEWAY_PLANS.map((plan) => {+ const price = annualBilling ? plan.annualMonthly : plan.monthly;+ return (+ <article+ className={`${styles.planCard} ${detailed ? details.card : ""}`}+ key={plan.name}+ aria-labelledby={`${id}-${plan.name}`}+ >+ <div className={`${styles.planHeader} ${detailed ? details.header : ""}`}>+ <h3 id={`${id}-${plan.name}`} className={styles.planName}>+ {plan.name}+ </h3>+ <span className={styles.planPrice}>+ {price === null ? "Custom" : price === 0 ? "$0" : `${formatPrice(price)}/mo`}+ </span>+ {price !== null && price > 0 ? (+ <span className={detailed ? details.cadence : styles.pricingCaption}>+ {annualBilling+ ? `${formatPrice(price * 12)} billed annually`+ : "Billed monthly"}+ </span>+ ) : detailed ? (+ <span className={details.cadence} aria-hidden="true">+ + </span>+ ) : null}+ {detailed && <p className={details.description}>{plan.description}</p>}+ </div>+ {detailed ? (+ <>+ <ul className={details.features}>+ {plan.features.map((feature) => (+ <li key={feature}>+ <Check size={16} strokeWidth={1.75} aria-hidden="true" />+ <span>{feature}</span>+ </li>+ ))}+ </ul>+ <div className={details.action}>+ <BevelButton+ className={details.cta}+ href={plan.href}+ external+ variant="primary"+ label={plan.cta}+ badge={<ArrowUpRight size={16} strokeWidth={2.25} />}+ />+ </div>+ </>+ ) : (+ <dl className={styles.planFeatures}>+ <div>+ <dt>API calls/month</dt>+ <dd>{plan.calls}</dd>+ </div>+ <div>+ <dt>Overage</dt>+ <dd>{plan.overage}</dd>+ </div>+ <div>+ <dt>Includes</dt>+ <dd>{plan.note}</dd>+ </div>+ </dl>+ )}+ </article>+ );+ })}+ </div>+ </div>+ </div>+ );+}diff --git a/docs/app/(home)/cloud/gateway/IntegrateSection.tsx b/docs/app/(home)/cloud/gateway/IntegrateSection.tsxnew file mode 100644index 000000000..58c8da161--- /dev/null+++ b/docs/app/(home)/cloud/gateway/IntegrateSection.tsx@@ -0,0 +1,49 @@+import { CloudIntegrationSetup, type CloudIntegrationStep } from "../CloudIntegrationSection";+import styles from "./sections.module.css";++const STEPS: CloudIntegrationStep[] = [+ {+ title: "Generate an API key",+ description: "Create a Gateway key in the OpenUI console.",+ href: "https://console.thesys.dev/keys",+ },+ {+ title: "Update your base URL and model",+ description:+ "Use the Gateway endpoint as your base URL and choose any model string from models.dev.",+ },+ {+ title: "Enable Gateway in your prompt",+ description: "Include your component schema so Gateway can validate each response.",+ },+];++const GATEWAY_EXAMPLE = `const client = new OpenAI({+ apiKey: process.env.THESYS_API_KEY,+ baseURL: "https://api.thesys.dev/v1/embed",+});++const response = await client.chat.completions.create({+ model: "openai/gpt-5",+ messages: [+ { role: "system", content: generatePrompt({ thesys: true }) },+ ...messages,+ ],+});`;++export function IntegrateSection() {+ return (+ <section className={styles.adoptionSection} aria-labelledby="gateway-integrate">+ <CloudIntegrationSetup+ title="Adopt it by changing your base URL"+ titleId="gateway-integrate"+ steps={STEPS}+ code={GATEWAY_EXAMPLE}+ highlightLines={[2, 6, 8]}+ codeLabel="OpenUI Gateway client configuration"+ action={{ label: "Read integration guide", href: "/docs/openui-cloud/get-started" }}+ titleSize="medium"+ />+ </section>+ );+}diff --git a/docs/app/(home)/cloud/gateway/PricingSection.tsx b/docs/app/(home)/cloud/gateway/PricingSection.tsxnew file mode 100644index 000000000..e81bd923e--- /dev/null+++ b/docs/app/(home)/cloud/gateway/PricingSection.tsx@@ -0,0 +1,30 @@+import { GatewayPlans } from "./GatewayPlans";+import styles from "./sections.module.css";++export function PricingSection() {+ return (+ <div className={styles.pricingBand}>+ <section+ className={`${styles.section} ${styles.pricingSection}`}+ aria-labelledby="gateway-pricing"+ >+ <div className={styles.sectionLockup}>+ <div>+ <h2 id="gateway-pricing" className={styles.heading}>+ Built to scale+ <br />+ with your usage+ </h2>+ </div>+ <p className={styles.lead}>+ Each plan includes monthly API calls and all correction calls. Every response uses an+ API call plus LLM tokens. Tokens are billed separately at model provider rates.+ </p>+ </div>+ <div className={styles.diagram}>+ <GatewayPlans />+ </div>+ </section>+ </div>+ );+}diff --git a/docs/app/(home)/cloud/gateway/RepairSection.tsx b/docs/app/(home)/cloud/gateway/RepairSection.tsxnew file mode 100644index 000000000..18308e4c3--- /dev/null+++ b/docs/app/(home)/cloud/gateway/RepairSection.tsx@@ -0,0 +1,114 @@+import { production } from "@/lib/benchmark-data";+import Image from "next/image";+import { ExternalTextLink } from "../../components/ExternalTextLink/ExternalTextLink";+import {+ FeatureGridSection,+ type GridFeature,+} from "../../sections/FeatureGridSection/FeatureGridSection";+import { GatewayReliabilityDashboardIllustration } from "../../sections/ProductIllustrations/ProductIllustrations";+import styles from "./sections.module.css";++const STACK_FEATURES: GridFeature[] = [+ {+ icon: "chart",+ title: "No token markup",+ description: "Tokens are billed at model providers’ standard rates.",+ },+ {+ icon: "cloud",+ title: "OpenAI-compatible",+ description: "Chat Completions and Responses endpoints work with your existing SDKs.",+ },+ {+ icon: "key",+ title: "Bring your own API keys",+ description:+ "Use your existing OpenAI, Anthropic, or Google Vertex credentials and commitments.",+ },+ {+ icon: "handshake",+ title: "Works with other gateways",+ description: "Run Gateway behind Portkey or any other OpenAI-compatible gateway.",+ },+ {+ icon: "database",+ title: "Keep your cache setup",+ description: "Your existing upstream cache configuration continues to work.",+ },+ {+ icon: "signal",+ title: "Broad model support",+ description: (+ <>+ Use models listed on{" "}+ <ExternalTextLink href="https://models.dev">models.dev</ExternalTextLink>, with more+ available through{" "}+ <ExternalTextLink href="https://openrouter.ai">OpenRouter</ExternalTextLink>.+ </>+ ),+ },+];++/* The answer to the section above, and only that. It states the outcome and the+ one reason a general-purpose gateway cannot reach it; how the repair is built+ — the parser, the validator, the model that patches the node — is a docs+ concern and used to live here at three times this length.++ The heading mirrors WhySection's: that one names the failure, this one names+ what happens to it. Self-contained on purpose — people land here from anchors+ and scrolls, so it cannot lean on the section above for its subject. */+export function RepairSection() {+ return (+ <section+ className={`${styles.section} ${styles.repairSection}`}+ aria-labelledby="gateway-repair"+ >+ <div className={styles.sectionLockup}>+ <div>+ <h2 id="gateway-repair" className={styles.heading}>+ Fix invalid output before users see it+ </h2>+ </div>+ <p className={styles.lead}>+ Every response is validated against your component library. Invalid ones are repaired in+ the streaming path. Over {Math.floor(100 - production.userVisibleShare)}% render+ successfully.+ </p>+ </div>++ <div className={`${styles.diagram} ${styles.repairIllustrationSpace}`}>+ <GatewayReliabilityDashboardIllustration />+ </div>++ <aside className={styles.customerQuote}>+ <p className={styles.quoteSentence}>+ <a+ className={styles.quoteBrand}+ href="https://www.thesys.dev/customers/entelligence"+ target="_blank"+ rel="noreferrer"+ >+ <span className={styles.quoteLogo}>+ <Image src="/logos/entelligence-mark.svg" alt="" width={32} height={32} />+ </span>+ <span className={styles.quoteCompany}>Entelligence</span>+ </a>{" "}+ <span className={styles.quoteCopy}>+ uses Gateway to catch invalid model output and keep Ask Ellie dependable in production.+ </span>+ </p>+ </aside>++ <div className={styles.repairGrid}>+ <FeatureGridSection+ features={STACK_FEATURES}+ showHeader={false}+ showCompat={false}+ showBottomSeparator={false}+ flushSectionPadding+ flushOuterCards+ />+ </div>+ </section>+ );+}diff --git a/docs/app/(home)/cloud/gateway/SecuritySection.tsx b/docs/app/(home)/cloud/gateway/SecuritySection.tsxnew file mode 100644index 000000000..901e33b74--- /dev/null+++ b/docs/app/(home)/cloud/gateway/SecuritySection.tsx@@ -0,0 +1,57 @@+import { ExternalTextLink } from "../../components/ExternalTextLink/ExternalTextLink";+import type { GridFeature } from "../../sections/FeatureGridSection/FeatureGridSection";+import { EnterpriseSection } from "../EnterpriseSection";++const FEATURES: GridFeature[] = [+ {+ icon: "shield",+ title: "Zero data retention",+ description: "Chat Completions requests have zero data retention by default on paid models.",+ },+ {+ icon: "database",+ title: "No training on your data",+ description: "Your data is not used for training, except with free models.",+ },+ {+ icon: "shield",+ title: "Compliance",+ description: (+ <>+ GDPR, SOC 2, and ISO 27001 details are available in the{" "}+ <ExternalTextLink href="https://trust.thesys.dev">Trust centre</ExternalTextLink>.+ </>+ ),+ },+ {+ icon: "cloud",+ title: "Provider fallbacks",+ description:+ "If a provider is unavailable, Gateway serves the same model through another provider.",+ },+ {+ icon: "pulse",+ title: "Service uptime",+ description: (+ <>+ View current and historical uptime on our{" "}+ <ExternalTextLink href="https://status.thesys.dev">service status page</ExternalTextLink>.+ </>+ ),+ },+ {+ icon: "devices",+ title: "Private deployment",+ description: "Self-hosting and VPC deployments are available on Scale.",+ },+];++export function SecuritySection() {+ return (+ <EnterpriseSection+ title="Built for enterprise requirements"+ titleId="gateway-security"+ features={FEATURES}+ />+ );+}diff --git a/docs/app/(home)/cloud/gateway/UsageSection.tsx b/docs/app/(home)/cloud/gateway/UsageSection.tsxnew file mode 100644index 000000000..102e02aee--- /dev/null+++ b/docs/app/(home)/cloud/gateway/UsageSection.tsx@@ -0,0 +1,22 @@+import { CloudFeatureCard } from "../FeaturesSection";+import cloudStyles from "../FeaturesSection.module.css";+import styles from "./sections.module.css";++export function UsageSection() {+ return (+ <section+ className={`${cloudStyles.section} ${styles.usageSection}`}+ aria-label="Gateway usage, cost, and correction reporting"+ >+ <CloudFeatureCard+ image="/images/gateway/usage-light.png"+ imageDark="/images/gateway/usage-dark.png"+ imageAlt="Gateway activity dashboard showing requests, token volume, estimated cost, and usage by model"+ title="Usage, cost, and corrections"+ headline="in a single view"+ description="See usage and costs across generation and delivery, along with how often Gateway repairs invalid output."+ unoptimized+ />+ </section>+ );+}diff --git a/docs/app/(home)/cloud/gateway/WhySection.tsx b/docs/app/(home)/cloud/gateway/WhySection.tsxnew file mode 100644index 000000000..62c698bdb--- /dev/null+++ b/docs/app/(home)/cloud/gateway/WhySection.tsx@@ -0,0 +1,39 @@+import { production } from "@/lib/benchmark-data";+import { FailureBreakdown } from "./FailureBreakdown";+import styles from "./sections.module.css";++export function WhySection() {+ return (+ <section className={`${styles.section} ${styles.problemSection}`} aria-labelledby="gateway-why">+ <div className={`${styles.sectionLockup} ${styles.problemLockup}`}>+ <div>+ <h2 id="gateway-why" className={styles.heading}>+ {production.triggerRate}% of UI generations fail silently in production+ </h2>+ </div>+ <p className={styles.lead}>+ Every failed generation still returns 200. Based on 1,285 production failures observed+ over 15 days.+ </p>+ </div>++ <FailureBreakdown />++ <div className={styles.problemConclusion}>+ <p className={styles.lead}>+ OpenUI matches or beats Google A2UI and Vercel json-render on structural validity, with+ about half the tokens and streaming time. Better models reduce the error rate. None get it+ to zero+ </p>+ <div className={styles.linkRow}>+ <a className={styles.link} href="/benchmarks?view=formats">+ Compare formats →+ </a>+ <a className={styles.link} href="/benchmarks">+ Compare models →+ </a>+ </div>+ </div>+ </section>+ );+}diff --git a/docs/app/(home)/cloud/gateway/assets/failure-arguments.svg b/docs/app/(home)/cloud/gateway/assets/failure-arguments.svgnew file mode 100644index 000000000..aad7d6341--- /dev/null+++ b/docs/app/(home)/cloud/gateway/assets/failure-arguments.svg@@ -0,0 +1,17 @@+<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="181.758" height="88" viewBox="0 0 181.758 88" fill="none" xmlns="http://www.w3.org/2000/svg">+<g id="16% — Enum, type and argument errors">+<g clip-path="url(#clip0_0_7)">+<mask id="path-1-inside-1_0_7" fill="white">+<path d="M0 0H181.758V88H0V0Z"/>+</mask>+<path d="M0 0H181.758V88H0V0Z" fill="#9A9A9A"/>+<path id="Benchmark hatch" d="M-100 88L-12 0H-6.34315L-94.3431 88H-100ZM-87.2721 88L0.727921 0H6.38477L-81.6152 88H-87.2721ZM-74.5442 88L13.4558 0H19.1127L-68.8873 88H-74.5442ZM-61.8162 88L26.1838 0H31.8406L-56.1594 88H-61.8162ZM-49.0883 88L38.9117 0H44.5685L-43.4315 88H-49.0883ZM-36.3604 88L51.6396 0H57.2965L-30.7035 88H-36.3604ZM-23.6325 88L64.3675 0H70.0244L-17.9756 88H-23.6325ZM-10.9045 88L77.0955 0H82.7523L-5.24769 88H-10.9045ZM1.82338 88L89.8234 0H95.4802L7.48023 88H1.82338ZM14.5513 88L102.551 0H108.208L20.2082 88H14.5513ZM27.2792 88L115.279 0H120.936L32.9361 88H27.2792ZM40.0071 88L128.007 0H133.664L45.664 88H40.0071ZM52.7351 88L140.735 0H146.392L58.3919 88H52.7351ZM65.463 88L153.463 0H159.12L71.1198 88H65.463ZM78.1909 88L166.191 0H171.848L83.8478 88H78.1909ZM90.9188 88L178.919 0H184.576L96.5757 88H90.9188ZM103.647 88L191.647 0H197.304L109.304 88H103.647ZM116.375 88L204.375 0H210.032L122.032 88H116.375ZM129.103 88L217.103 0H222.759L134.759 88H129.103ZM141.831 88L229.831 0H235.487L147.487 88H141.831ZM154.558 88L242.558 0H248.215L160.215 88H154.558ZM167.286 88L255.286 0H260.943L172.943 88H167.286ZM180.014 88L268.014 0H273.671L185.671 88H180.014ZM192.742 88L280.742 0H286.399L198.399 88H192.742ZM205.47 88L293.47 0H299.127L211.127 88H205.47ZM218.198 88L306.198 0H311.855L223.855 88H218.198ZM230.926 88L318.926 0H324.583L236.583 88H230.926ZM243.654 88L331.654 0H337.311L249.311 88H243.654ZM256.382 88L344.382 0H350.039L262.039 88H256.382ZM269.11 88L357.11 0H362.767L274.767 88H269.11Z" fill="#C0C0C0"/>+</g>+<path d="M181.758 0H178.758V88H181.758H184.758V0H181.758Z" fill="#F5F5F5" mask="url(#path-1-inside-1_0_7)"/>+</g>+<defs>+<clipPath id="clip0_0_7">+<path d="M0 0H181.758V88H0V0Z" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/docs/app/(home)/cloud/gateway/assets/failure-reference.svg b/docs/app/(home)/cloud/gateway/assets/failure-reference.svgnew file mode 100644index 000000000..ce5b3aede--- /dev/null+++ b/docs/app/(home)/cloud/gateway/assets/failure-reference.svg@@ -0,0 +1,17 @@+<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="408.961" height="88" viewBox="0 0 408.961 88" fill="none" xmlns="http://www.w3.org/2000/svg">+<g id="36% — Reference graph">+<g clip-path="url(#clip0_0_10)">+<mask id="path-1-inside-1_0_10" fill="white">+<path d="M0 0H408.961V88H0V0Z"/>+</mask>+<path d="M0 0H408.961V88H0V0Z" fill="#252525"/>+<path id="Benchmark hatch" d="M-100 88L-12 0H-6.34315L-94.3431 88H-100ZM-87.2721 88L0.727921 0H6.38477L-81.6152 88H-87.2721ZM-74.5442 88L13.4558 0H19.1127L-68.8873 88H-74.5442ZM-61.8162 88L26.1838 0H31.8406L-56.1594 88H-61.8162ZM-49.0883 88L38.9117 0H44.5685L-43.4315 88H-49.0883ZM-36.3604 88L51.6396 0H57.2965L-30.7035 88H-36.3604ZM-23.6325 88L64.3675 0H70.0244L-17.9756 88H-23.6325ZM-10.9045 88L77.0955 0H82.7523L-5.24769 88H-10.9045ZM1.82338 88L89.8234 0H95.4802L7.48023 88H1.82338ZM14.5513 88L102.551 0H108.208L20.2082 88H14.5513ZM27.2792 88L115.279 0H120.936L32.9361 88H27.2792ZM40.0071 88L128.007 0H133.664L45.664 88H40.0071ZM52.7351 88L140.735 0H146.392L58.3919 88H52.7351ZM65.463 88L153.463 0H159.12L71.1198 88H65.463ZM78.1909 88L166.191 0H171.848L83.8478 88H78.1909ZM90.9188 88L178.919 0H184.576L96.5757 88H90.9188ZM103.647 88L191.647 0H197.304L109.304 88H103.647ZM116.375 88L204.375 0H210.032L122.032 88H116.375ZM129.103 88L217.103 0H222.759L134.759 88H129.103ZM141.831 88L229.831 0H235.487L147.487 88H141.831ZM154.558 88L242.558 0H248.215L160.215 88H154.558ZM167.286 88L255.286 0H260.943L172.943 88H167.286ZM180.014 88L268.014 0H273.671L185.671 88H180.014ZM192.742 88L280.742 0H286.399L198.399 88H192.742ZM205.47 88L293.47 0H299.127L211.127 88H205.47ZM218.198 88L306.198 0H311.855L223.855 88H218.198ZM230.926 88L318.926 0H324.583L236.583 88H230.926ZM243.654 88L331.654 0H337.311L249.311 88H243.654ZM256.382 88L344.382 0H350.039L262.039 88H256.382ZM269.11 88L357.11 0H362.767L274.767 88H269.11ZM281.838 88L369.838 0H375.495L287.495 88H281.838ZM294.566 88L382.566 0H388.222L300.222 88H294.566ZM307.294 88L395.294 0H400.95L312.95 88H307.294ZM320.021 88L408.021 0H413.678L325.678 88H320.021ZM332.749 88L420.749 0H426.406L338.406 88H332.749ZM345.477 88L433.477 0H439.134L351.134 88H345.477ZM358.205 88L446.205 0H451.862L363.862 88H358.205ZM370.933 88L458.933 0H464.59L376.59 88H370.933ZM383.661 88L471.661 0H477.318L389.318 88H383.661ZM396.389 88L484.389 0H490.046L402.046 88H396.389ZM409.117 88L497.117 0H502.774L414.774 88H409.117ZM421.845 88L509.845 0H515.502L427.502 88H421.845ZM434.573 88L522.573 0H528.23L440.23 88H434.573ZM447.301 88L535.301 0H540.958L452.958 88H447.301ZM460.029 88L548.029 0H553.685L465.685 88H460.029ZM472.756 88L560.756 0H566.413L478.413 88H472.756ZM485.484 88L573.484 0H579.141L491.141 88H485.484ZM498.212 88L586.212 0H591.869L503.869 88H498.212Z" fill="#4A4A4A"/>+</g>+<path d="M408.961 0H405.961V88H408.961H411.961V0H408.961Z" fill="#F5F5F5" mask="url(#path-1-inside-1_0_10)"/>+</g>+<defs>+<clipPath id="clip0_0_10">+<path d="M0 0H408.961V88H0V0Z" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/docs/app/(home)/cloud/gateway/assets/failure-root.svg b/docs/app/(home)/cloud/gateway/assets/failure-root.svgnew file mode 100644index 000000000..6d12d3739--- /dev/null+++ b/docs/app/(home)/cloud/gateway/assets/failure-root.svg@@ -0,0 +1,17 @@+<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="499.836" height="88" viewBox="0 0 499.836 88" fill="none" xmlns="http://www.w3.org/2000/svg">+<g id="44% — No valid root">+<g clip-path="url(#clip0_0_12)">+<mask id="path-1-inside-1_0_12" fill="white">+<path d="M0 0H499.836V88H0V0Z"/>+</mask>+<path d="M0 0H499.836V88H0V0Z" fill="#DB2525"/>+<path id="Benchmark hatch" d="M-100 88L-12 0H-6.34315L-94.3431 88H-100ZM-87.2721 88L0.727921 0H6.38477L-81.6152 88H-87.2721ZM-74.5442 88L13.4558 0H19.1127L-68.8873 88H-74.5442ZM-61.8162 88L26.1838 0H31.8406L-56.1594 88H-61.8162ZM-49.0883 88L38.9117 0H44.5685L-43.4315 88H-49.0883ZM-36.3604 88L51.6396 0H57.2965L-30.7035 88H-36.3604ZM-23.6325 88L64.3675 0H70.0244L-17.9756 88H-23.6325ZM-10.9045 88L77.0955 0H82.7523L-5.24769 88H-10.9045ZM1.82338 88L89.8234 0H95.4802L7.48023 88H1.82338ZM14.5513 88L102.551 0H108.208L20.2082 88H14.5513ZM27.2792 88L115.279 0H120.936L32.9361 88H27.2792ZM40.0071 88L128.007 0H133.664L45.664 88H40.0071ZM52.7351 88L140.735 0H146.392L58.3919 88H52.7351ZM65.463 88L153.463 0H159.12L71.1198 88H65.463ZM78.1909 88L166.191 0H171.848L83.8478 88H78.1909ZM90.9188 88L178.919 0H184.576L96.5757 88H90.9188ZM103.647 88L191.647 0H197.304L109.304 88H103.647ZM116.375 88L204.375 0H210.032L122.032 88H116.375ZM129.103 88L217.103 0H222.759L134.759 88H129.103ZM141.831 88L229.831 0H235.487L147.487 88H141.831ZM154.558 88L242.558 0H248.215L160.215 88H154.558ZM167.286 88L255.286 0H260.943L172.943 88H167.286ZM180.014 88L268.014 0H273.671L185.671 88H180.014ZM192.742 88L280.742 0H286.399L198.399 88H192.742ZM205.47 88L293.47 0H299.127L211.127 88H205.47ZM218.198 88L306.198 0H311.855L223.855 88H218.198ZM230.926 88L318.926 0H324.583L236.583 88H230.926ZM243.654 88L331.654 0H337.311L249.311 88H243.654ZM256.382 88L344.382 0H350.039L262.039 88H256.382ZM269.11 88L357.11 0H362.767L274.767 88H269.11ZM281.838 88L369.838 0H375.495L287.495 88H281.838ZM294.566 88L382.566 0H388.222L300.222 88H294.566ZM307.294 88L395.294 0H400.95L312.95 88H307.294ZM320.021 88L408.021 0H413.678L325.678 88H320.021ZM332.749 88L420.749 0H426.406L338.406 88H332.749ZM345.477 88L433.477 0H439.134L351.134 88H345.477ZM358.205 88L446.205 0H451.862L363.862 88H358.205ZM370.933 88L458.933 0H464.59L376.59 88H370.933ZM383.661 88L471.661 0H477.318L389.318 88H383.661ZM396.389 88L484.389 0H490.046L402.046 88H396.389ZM409.117 88L497.117 0H502.774L414.774 88H409.117ZM421.845 88L509.845 0H515.502L427.502 88H421.845ZM434.573 88L522.573 0H528.23L440.23 88H434.573ZM447.301 88L535.301 0H540.958L452.958 88H447.301ZM460.029 88L548.029 0H553.685L465.685 88H460.029ZM472.756 88L560.756 0H566.413L478.413 88H472.756ZM485.484 88L573.484 0H579.141L491.141 88H485.484ZM498.212 88L586.212 0H591.869L503.869 88H498.212ZM510.94 88L598.94 0H604.597L516.597 88H510.94ZM523.668 88L611.668 0H617.325L529.325 88H523.668ZM536.396 88L624.396 0H630.053L542.053 88H536.396ZM549.124 88L637.124 0H642.781L554.781 88H549.124ZM561.852 88L649.852 0H655.509L567.509 88H561.852ZM574.58 88L662.58 0H668.237L580.237 88H574.58ZM587.308 88L675.308 0H680.965L592.965 88H587.308Z" fill="#E66767"/>+</g>+<path d="M499.836 0H496.836V88H499.836H502.836V0H499.836Z" fill="#F5F5F5" mask="url(#path-1-inside-1_0_12)"/>+</g>+<defs>+<clipPath id="clip0_0_12">+<path d="M0 0H499.836V88H0V0Z" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/docs/app/(home)/cloud/gateway/gateway-plans.ts b/docs/app/(home)/cloud/gateway/gateway-plans.tsnew file mode 100644index 000000000..755d4d9ed--- /dev/null+++ b/docs/app/(home)/cloud/gateway/gateway-plans.ts@@ -0,0 +1,75 @@+// Shared with the Gateway landing page. Rates are monthly equivalents;+// annual billing is selected by default on both pages.+export const GATEWAY_PLANS = [+ {+ name: "Free",+ monthly: 0,+ annualMonthly: 0,+ calls: "3K",+ overage: "—",+ note: "Bring your own LLM key",+ description: "For individuals exploring OpenUI Cloud with core limits.",+ features: [+ "3K API calls per month",+ "Bring your own LLM key",+ "Style customizations and popular LLM support",+ "Discord community support",+ ],+ cta: "Get started for free",+ href: "https://console.thesys.dev/keys",+ },+ {+ name: "Build",+ monthly: 59,+ annualMonthly: 49,+ calls: "25K",+ overage: "$0.002/call",+ note: "Email support",+ description: "For small teams shipping their first AI features.",+ features: [+ "Everything in Free",+ "25K API calls per month",+ "$0.002 per call after",+ "Higher request priority and rate limits",+ "Email support",+ ],+ cta: "Generate API key",+ href: "https://console.thesys.dev/keys",+ },+ {+ name: "Grow",+ monthly: 599,+ annualMonthly: 499,+ calls: "500K",+ overage: "$0.001/call",+ note: "SSO/SAML, priority support",+ description: "For businesses scaling production AI workloads.",+ features: [+ "Everything in Build",+ "500K API calls per month",+ "$0.001 per call after",+ "Highest request priority and rate limits",+ "Priority support and solutions engineering",+ "SSO/SAML",+ ],+ cta: "Generate API key",+ href: "https://console.thesys.dev/keys",+ },+ {+ name: "Scale",+ monthly: null,+ annualMonthly: null,+ calls: "Custom",+ overage: "—",+ note: "Self-hosting and VPC, SLAs",+ description: "For enterprises needing control over infrastructure, data, and models.",+ features: [+ "Everything in Grow",+ "Self-hosting or VPC deployment",+ "Custom rate limits and usage controls",+ "Compliance, SLAs, and support guarantees",+ ],+ cta: "Contact sales",+ href: "https://zcal.co/t/thesys/demo",+ },+] as const;diff --git a/docs/app/(home)/cloud/gateway/page.module.css b/docs/app/(home)/cloud/gateway/page.module.cssnew file mode 100644index 000000000..1da1dc320--- /dev/null+++ b/docs/app/(home)/cloud/gateway/page.module.css@@ -0,0 +1,155 @@+/* Hero lockup only. The sections below the hero share sections.module.css, so+ this file stays the page's own typography and nothing else. The lockup is the+ one Cloud and Observability use, with the product name in the tag. */+.titleBlock {+ display: flex;+ flex-direction: column;+ align-items: flex-start;+ gap: 20px;+}++.eyebrow {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ margin-left: 2px;+ font-size: 20px;+ font-weight: 500;+ line-height: 1;+ letter-spacing: normal;+}++.cloudTag {+ display: inline-flex;+ align-items: center;+ margin-top: -3px;+ padding: 2px 6px 3px;+ border: 1px solid currentColor;+ border-radius: 5px;+ font-size: 17px;+ line-height: 1;+ vertical-align: middle;+}++.title {+ display: block;+ font-size: 60px;+ font-weight: 600;+ line-height: 1.15;+ text-wrap: balance;+}++.subtitle {+ display: block;+ flex: 0 0 400px;+ width: 400px;+ max-width: 400px;+ margin-top: 40px;+ margin-left: auto;+ padding-top: 12px;+ font-size: 22px;+ font-weight: var(--home-heading-weight);+ line-height: var(--home-lead-leading);+ letter-spacing: var(--home-heading-tracking);+ text-wrap: balance;+}++.ctaGroup {+ display: flex;+ align-items: center;+ flex-wrap: wrap;+ gap: 12px;+}++.heroArtSpace {+ overflow: hidden;+ width: 100%;+ aspect-ratio: 1280 / 520;+ border: 1px solid var(--home-hairline);+ border-radius: 24px;+ background: var(--home-color-surface-soft);+}++.problemBand,+.repairBand {+ width: 100%;+ background: var(--openui-background);+}++.problemBand {+ background: linear-gradient(to bottom, var(--openui-foreground), var(--openui-background) 10rem);+}++[data-theme="dark"] .problemBand,+[data-theme="dark"] .repairBand {+ background: #000;+}++.usageBand {+ width: 100%;+ padding-block: 160px;+ background: var(--openui-foreground);+}++.faqContactLink {+ color: var(--openui-text-neutral-primary);+ text-decoration: none;+ border-bottom: 1px solid currentColor;+}++.faqContactLink:hover {+ opacity: 0.7;+}++@media (max-width: 899.98px) {+ .title {+ font-size: inherit;+ }++ .subtitle {+ margin-top: 0;+ padding-top: 0;+ }++ .ctaGroup {+ flex-direction: column;+ width: 320px;+ max-width: 100%;+ }++ .heroArtSpace {+ aspect-ratio: 390 / 620;+ }+}++@media (max-width: 1023.98px) {+ .usageBand {+ padding-block: 112px;+ }+}++@media (max-width: 767px) {+ .titleBlock {+ align-items: center;+ gap: 12px;+ }++ .subtitle {+ flex: 0 1 auto;+ width: 100%;+ max-width: none;+ margin-left: 0;+ font-size: 18px;+ font-weight: 500;+ line-height: 1.2;+ letter-spacing: normal;+ }++ .heroArtSpace {+ border-radius: 16px;+ }++ .usageBand {+ padding-block: 96px;+ }+}diff --git a/docs/app/(home)/cloud/gateway/page.tsx b/docs/app/(home)/cloud/gateway/page.tsxnew file mode 100644index 000000000..bbe68e287--- /dev/null+++ b/docs/app/(home)/cloud/gateway/page.tsx@@ -0,0 +1,125 @@+import { ArrowUpRight } from "lucide-react";+import type { Metadata } from "next";+import { BevelButton } from "../../components/Button/BevelButton";+import styles from "../../page.module.css";+import { Footer } from "../../sections/Footer/Footer";+import { HeroSection } from "../../sections/HeroSection/HeroSection";+import { GatewayReliabilityIllustration } from "../../sections/ProductIllustrations/ProductIllustrations";+import { CloudCtaSection } from "../CloudCtaSection";+import { FaqSection } from "./FaqSection";+import { IntegrateSection } from "./IntegrateSection";+import gatewayStyles from "./page.module.css";+import { PricingSection } from "./PricingSection";+import { RepairSection } from "./RepairSection";+import sectionStyles from "./sections.module.css";+import { SecuritySection } from "./SecuritySection";+import { UsageSection } from "./UsageSection";+import { WhySection } from "./WhySection";++export const metadata: Metadata = {+ title: { absolute: "OpenUI Gateway | Production reliability for Generative UI" },+ description:+ "An OpenAI-compatible API that validates model output against your component library and repairs it as it streams.",+ alternates: { canonical: "/cloud/gateway" },+ openGraph: {+ title: "OpenUI Gateway | Production reliability for Generative UI",+ description:+ "Add production reliability to OpenUI with validation, streaming repair, model routing, and provider fallbacks through an OpenAI-compatible API.",+ url: "/cloud/gateway",+ type: "website",+ },+};++export default function GatewayPage() {+ return (+ <div className={styles.page}>+ <div className={styles.heroShell}>+ <HeroSection+ align="left"+ desktopFromTablet+ title={+ <span className={gatewayStyles.titleBlock}>+ <span className={gatewayStyles.eyebrow}>+ OpenUI <span className={gatewayStyles.cloudTag}>Gateway</span>+ </span>+ <span className={gatewayStyles.title}>Production reliability for OpenUI</span>+ </span>+ }+ subtitle={+ <span className={gatewayStyles.subtitle}>+ An OpenAI-compatible API that validates and repairs model output against your+ component library as it streams.+ </span>+ }+ smallSubtitle+ tightDesktopSpacing={false}+ splitLockup+ flushInnerInlinePadding+ commandSlot={+ <div className={gatewayStyles.ctaGroup}>+ <BevelButton+ href="https://console.thesys.dev/keys"+ external+ variant="primary"+ label="Get API key"+ badge={<ArrowUpRight size={16} strokeWidth={2.25} />}+ />+ <BevelButton+ href="https://zcal.co/t/thesys/demo"+ external+ variant="secondary"+ label="Book a demo"+ badge={<ArrowUpRight size={16} strokeWidth={2.25} />}+ />+ </div>+ }+ showPlaygroundButton={false}+ showGitHubBanner={false}+ showTagline={false}+ desktopPreviewSlot={+ <div className={gatewayStyles.heroArtSpace}>+ <GatewayReliabilityIllustration />+ </div>+ }+ mobilePreviewSlot={+ <div className={gatewayStyles.heroArtSpace}>+ <GatewayReliabilityIllustration />+ </div>+ }+ />+ </div>++ <main>+ <div className={gatewayStyles.problemBand}>+ <WhySection />+ </div>+ <div className={gatewayStyles.repairBand}>+ <RepairSection />+ </div>+ <IntegrateSection />+ <div className={gatewayStyles.usageBand}>+ <UsageSection />+ </div>+ <SecuritySection />+ <PricingSection />+ <div className={sectionStyles.faqBand}>+ <FaqSection />+ </div>+ <CloudCtaSection+ title="Run OpenUI in production."+ primary={{+ label: "Get API key",+ href: "https://console.thesys.dev/keys",+ external: true,+ }}+ secondary={{+ label: "Book a demo",+ href: "https://zcal.co/t/thesys/demo",+ external: true,+ }}+ />+ </main>+ <Footer />+ </div>+ );+}diff --git a/docs/app/(home)/cloud/gateway/sections.module.css b/docs/app/(home)/cloud/gateway/sections.module.cssnew file mode 100644index 000000000..5f9b15be0--- /dev/null+++ b/docs/app/(home)/cloud/gateway/sections.module.css@@ -0,0 +1,539 @@+.section {+ box-sizing: border-box;+ width: 100%;+ max-width: var(--home-container-max);+ margin-inline: auto;+ padding-inline: var(--home-section-padding-inline);+}++.problemSection {+ padding-block: 160px;+}++.repairSection {+ padding-bottom: 160px;+}++.sectionLockup {+ display: grid;+ grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);+ align-items: start;+ gap: clamp(2rem, 7vw, 7.5rem);+}++.eyebrow {+ margin: 0 0 1rem;+ color: var(--openui-text-neutral-secondary);+ font-family: var(--home-font-text);+ font-size: 1rem;+ font-weight: 500;+ line-height: 1;+}++.heading {+ max-width: 14ch;+ margin: 0;+ color: var(--openui-text-neutral-primary);+ font-family: var(--home-font-display);+ font-size: var(--home-title-size);+ font-weight: var(--home-title-weight);+ line-height: var(--home-title-leading);+ letter-spacing: var(--home-title-tracking);+ text-wrap: balance;+}++.lead {+ margin: 0;+ color: var(--openui-text-neutral-secondary);+ font-family: var(--home-font-text);+ font-size: var(--home-lead-size);+ font-weight: var(--home-lead-weight);+ line-height: var(--home-lead-leading);+ text-wrap: pretty;+}++.linkRow {+ display: flex;+ flex-wrap: wrap;+ gap: 0.75rem 1.5rem;+ margin-top: 1.5rem;+}++.link {+ color: var(--openui-text-neutral-primary);+ font-family: var(--home-font-text);+ font-size: var(--home-body-size);+ line-height: var(--home-body-leading);+ text-decoration: none;+ border-bottom: 1px solid currentColor;+}++.link:hover {+ opacity: 0.7;+}++.problemLockup .heading {+ max-width: 501px;+}++.problemConclusion {+ box-sizing: border-box;+ width: 100%;+ margin-top: 56px;+ padding: 6px 0 6px 16px;+ border-left: 2px solid color-mix(in srgb, var(--openui-text-neutral-primary) 80%, transparent);+}++.problemConclusion .linkRow {+ margin-top: 18px;+}++.problemConclusion .link {+ padding-bottom: 7px;+ border-bottom: 0;+}++.problemConclusion .link:hover {+ text-decoration: underline;+}++.diagram {+ margin-top: 72px;+}++.repairIllustrationSpace {+ display: flex;+ min-height: 0;+ aspect-ratio: 2272 / 1064;+ border: 0;+ border-radius: 24px;+ background: transparent;+}++/* Compact light customer proof: logo mark, company, then the original claim. */+.customerQuote {+ box-sizing: border-box;+ width: 100%;+ margin-top: 24px;+ padding: 14px 16px;+ border: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 8%, transparent);+ border-radius: 14px;+ background: var(--openui-foreground);+ color: var(--openui-text-neutral-primary);+}++.quoteSentence {+ margin: 0;+ font-family: var(--home-font-text);+ font-size: var(--home-lead-size);+ font-weight: var(--home-lead-weight);+ line-height: var(--home-lead-leading);+ text-wrap: pretty;+}++.quoteBrand {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ color: inherit;+ text-decoration: none;+ vertical-align: middle;+}++.quoteLogo {+ display: inline-flex;+ overflow: hidden;+ align-items: center;+ justify-content: flex-start;+ width: clamp(2.25rem, 3vw, 2.5rem);+ height: clamp(2.25rem, 3vw, 2.5rem);+ border-radius: 10px;+ background: #4a612c;+}++.quoteLogo img {+ width: 100%;+ height: 100%;+}++.quoteCompany {+ font: inherit;+ font-weight: 500;+ white-space: nowrap;+}++.quoteCopy {+ color: var(--openui-text-neutral-secondary);+ font: inherit;+}++.repairGrid {+ margin-top: 56px;+}++.adoptionSection {+ --cloud-code-min-height: 448px;++ width: 100%;+ padding-block: 60px;+ background: linear-gradient(to bottom, var(--openui-background), var(--openui-foreground));+}++section.usageSection {+ margin: 0 auto;+}++.pricingBand {+ width: 100%;+ padding-top: 160px;+ background: var(--openui-foreground);+}++.pricingToolbar {+ display: flex;+ justify-content: space-between;+ align-items: center;+ flex-wrap: wrap;+ gap: 12px 24px;+ padding-inline: 8px;+ margin-bottom: 20px;+}++/* The Figma pricing body reserves 636px including its 72px top gap. */+.pricingSection > .diagram {+ min-height: 564px;+}++.pricingControls {+ display: flex;+ justify-content: flex-end;+ align-items: center;+ flex-wrap: wrap;+ gap: 12px;+}++.billingToggle {+ display: inline-flex;+ align-items: center;+ gap: 10px;+ min-height: 44px;+ padding: 0;+ border: 0;+ background: transparent;+ color: var(--openui-text-neutral-primary);+ font-family: var(--home-font-text);+ font-size: var(--home-body-size);+ line-height: var(--home-body-leading);+ cursor: pointer;+}++.billingTrack {+ position: relative;+ box-sizing: border-box;+ width: 40px;+ height: 24px;+ border: 1px solid var(--openui-border-interactive);+ border-radius: 999px;+ background: var(--openui-highlight-subtle);+ transition:+ background-color 160ms ease,+ border-color 160ms ease;+}++.billingTrack::after {+ position: absolute;+ top: 3px;+ left: 3px;+ width: 16px;+ height: 16px;+ border-radius: 50%;+ background: var(--openui-text-neutral-secondary);+ content: "";+ transition:+ transform 160ms ease,+ background-color 160ms ease;+}++.billingToggle[aria-checked="true"] .billingTrack {+ border-color: var(--openui-text-neutral-primary);+ background: var(--openui-text-neutral-primary);+}++.billingToggle[aria-checked="true"] .billingTrack::after {+ background: var(--openui-foreground);+ transform: translateX(16px);+}++.billingToggle:focus-visible {+ border-radius: 4px;+ outline: 2px solid var(--openui-text-neutral-primary);+ outline-offset: 4px;+}++.billingSaving {+ color: var(--openui-text-neutral-secondary);+ font-family: var(--home-font-text);+ font-size: var(--home-body-size);+ line-height: var(--home-body-leading);+}++.pricingCaption {+ position: absolute;+ width: 1px;+ height: 1px;+ overflow: hidden;+ clip-path: inset(50%);+ white-space: nowrap;+}++.priceStrip {+ display: flex;+ flex-wrap: wrap;+ gap: 12px;+ margin: 0;+ padding: 0;+ color: var(--openui-text-neutral-secondary);+ font-family: var(--home-font-text);+ font-size: var(--home-body-size);+ line-height: var(--home-body-leading);+ list-style: none;+}++.priceStrip li {+ display: inline-flex;+ align-items: center;+ box-sizing: border-box;+ min-height: 36px;+ padding: 8px 14px;+ border: 1px solid var(--openui-border-default);+ border-radius: 999px;+ background: var(--openui-highlight-subtle);+ color: var(--openui-text-neutral-primary);+ line-height: 1.2;+}++.priceStrip li:first-child {+ min-width: 184px;+}++.priceStrip li:last-child {+ min-width: 233px;+}++.planName,+.planPrice {+ display: block;+ margin: 0;+ font-family: var(--home-font-display);+ font-size: var(--home-heading-size);+ font-weight: var(--home-heading-weight);+ line-height: var(--home-heading-leading);+ letter-spacing: var(--home-heading-tracking);+}++.planPrice {+ color: var(--openui-text-neutral-primary);+ font-variant-numeric: tabular-nums;+}++.planGrid {+ display: grid;+ grid-template-columns: repeat(4, minmax(0, 1fr));+ gap: 12px;+ align-items: start;+}++.planCard {+ min-width: 0;+ overflow: hidden;+ border-radius: 24px;+ background: var(--openui-background);+ color: var(--openui-text-neutral-primary);+ font-family: var(--home-font-text);+}++.planHeader {+ display: flex;+ flex-direction: column;+ gap: 24px;+ padding: 24px;+ border-bottom: 1px solid var(--home-hairline);+}++.planHeader > .planName,+.planHeader > .planPrice {+ min-height: 29px;+}++.planFeatures {+ display: grid;+ gap: 24px;+ margin: 0;+ padding: 24px;+ font-size: var(--home-body-size);+ line-height: var(--home-body-leading);+}++.planFeatures div {+ display: grid;+ gap: 8px;+ min-height: 53px;+}++.planFeatures dt {+ color: var(--openui-text-neutral-secondary);+}++.planFeatures dd {+ margin: 0;+}++.faqBand {+ box-sizing: border-box;+ width: 100%;+ padding: 160px var(--home-section-padding-inline);+ background: var(--openui-foreground);+}++.faqBand > section {+ margin-top: 0;+}++@media (max-width: 1279px) {+ .adoptionSection > div {+ width: calc(100% - 64px);+ }+}++@media (max-width: 1023px) {+ .repairIllustrationSpace {+ min-height: 0;+ }++ .pricingSection > .diagram {+ min-height: 0;+ }+ .planGrid {+ grid-template-columns: repeat(2, minmax(0, 1fr));+ }+ .problemSection {+ padding-block: 112px;+ }++ .repairSection {+ padding-bottom: 112px;+ }++ .pricingBand {+ padding-top: 112px;+ }++ .sectionLockup {+ grid-template-columns: minmax(0, 1fr);+ }++ .problemLockup {+ grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);+ gap: 40px;+ }++ .faqBand {+ padding-block: 112px;+ }+}++@media (max-width: 767px) {+ .repairIllustrationSpace {+ min-height: 0;+ aspect-ratio: 4 / 2.4;+ border-radius: 16px;+ }++ .pricingControls {+ justify-content: flex-start;+ }++ .planGrid {+ grid-template-columns: none;+ grid-auto-columns: clamp(16rem, 76vw, 18.5rem);+ grid-auto-flow: column;+ justify-content: start;+ overflow-x: auto;+ overscroll-behavior-inline: contain;+ padding-bottom: 8px;+ scroll-padding-inline: 2px;+ scroll-snap-type: inline mandatory;+ scrollbar-width: none;+ -webkit-overflow-scrolling: touch;+ }++ .planGrid::-webkit-scrollbar {+ display: none;+ }++ .planCard {+ scroll-snap-align: start;+ scroll-snap-stop: always;+ }++ .problemSection {+ padding-block: 96px;+ }++ .repairSection {+ padding-bottom: 96px;+ }++ .pricingBand {+ padding-top: 96px;+ }++ .sectionLockup {+ gap: 1.5rem;+ }++ .heading {+ max-width: none;+ }++ .diagram {+ margin-top: 48px;+ }++ .customerQuote {+ padding: 12px 14px;+ border-radius: 16px;+ }++ .problemLockup {+ grid-template-columns: minmax(0, 1fr);+ gap: 24px;+ }++ .problemConclusion {+ margin-top: 40px;+ }++ .quoteLogo {+ border-radius: 9px;+ }++ .repairGrid {+ margin-top: 40px;+ }++ .faqBand {+ padding: 96px 24px;+ }++ .adoptionSection > div {+ width: calc(100% - 32px);+ }+}++@media (prefers-reduced-motion: reduce) {+ .billingTrack,+ .billingTrack::after {+ transition: none;+ }+}diff --git a/docs/app/(home)/cloud/observability/CloudCtaSection.module.css b/docs/app/(home)/cloud/observability/CloudCtaSection.module.cssindex a3af569a8..b9e9dd20c 100644--- a/docs/app/(home)/cloud/observability/CloudCtaSection.module.css+++ b/docs/app/(home)/cloud/observability/CloudCtaSection.module.css@@ -1,6 +1,6 @@.section {width: 100%;- padding: 120px var(--home-section-padding-inline) 0;+ padding: var(--observability-section-gap, 160px) var(--home-section-padding-inline) 0;background: var(--openui-foreground);}@@ -14,9 +14,38 @@margin-inline: auto;}-.title {+.copy {flex: 1 1 auto;min-width: 0;+}++.note {+ margin: 0.75rem 0 0;+ font-size: 1.0625rem;+ line-height: 1.5;+ color: var(--openui-text-neutral-secondary);+}++.pricingLink {+ color: var(--openui-text-neutral-primary);+ text-decoration: none;+ border-bottom: 1px solid currentColor;+ padding-bottom: 1px;+}++.pricingLink:hover {+ opacity: 0.7;+}++.accessNote {+ margin: 0;+ color: var(--openui-text-neutral-secondary);+ font-size: 0.875rem;+ line-height: 1.5;+}++.title {+ min-width: 0;max-width: 40rem;margin: 0;color: var(--openui-text-neutral-primary);@@ -25,37 +54,41 @@font-weight: var(--home-title-weight);line-height: var(--home-title-leading);letter-spacing: var(--home-title-tracking);+ text-wrap: balance;}.actions {display: flex;flex: 0 0 auto;- align-items: center;+ flex-direction: column;+ align-items: flex-start;gap: 12px;}+.formTitle {+ margin: 0;+ color: var(--openui-text-neutral-primary);+ font-family: var(--home-font-display);+ font-size: var(--home-heading-size);+ font-weight: var(--home-heading-weight);+ line-height: var(--home-heading-leading);+ letter-spacing: var(--home-heading-tracking);+}+.separator {width: 100%;max-width: 1200px;height: 1px;- margin: 120px auto 0;+ margin: var(--observability-section-gap, 160px) auto 0;background: var(--home-hairline);}@media (max-width: 1023px) {- .section {- padding-top: 96px;- }-.inner {flex-direction: column;align-items: flex-start;gap: 32px;}-- .separator {- margin-top: 96px;- }}@media (max-width: 767px) {@@ -66,6 +99,7 @@.actions {flex-direction: column;+ align-items: center;width: 100%;max-width: 320px;}diff --git a/docs/app/(home)/cloud/observability/CloudCtaSection.tsx b/docs/app/(home)/cloud/observability/CloudCtaSection.tsxindex 893f74b9a..52cbf5482 100644--- a/docs/app/(home)/cloud/observability/CloudCtaSection.tsx+++ b/docs/app/(home)/cloud/observability/CloudCtaSection.tsx@@ -5,13 +5,23 @@ export function CloudCtaSection() {return (<section className={styles.section} aria-labelledby="cloud-cta-title"><div className={styles.inner}>- <h2 id="cloud-cta-title" className={styles.title}>- Join waitlist for early access.- </h2>+ <div className={styles.copy}>+ <h2 id="cloud-cta-title" className={styles.title}>+ See your agent through your users’ eyes+ </h2>+ <p className={styles.note}>See what works, what’s missing, and what to build next.</p>+ </div>{/* The same capture as the hero, so the page opens and closes on theone action. */}<div className={styles.actions}>+ <h3 className={styles.formTitle}>Join the waitlist</h3><EarlyAccessForm />+ <p className={styles.accessNote}>+ Free during early access.{" "}+ <a className={styles.pricingLink} href="/pricing">+ View pricing+ </a>+ </p></div></div><div className={styles.separator} aria-hidden="true" />diff --git a/docs/app/(home)/cloud/observability/EarlyAccessForm.tsx b/docs/app/(home)/cloud/observability/EarlyAccessForm.tsxindex 8af7b0f89..10d623b08 100644--- a/docs/app/(home)/cloud/observability/EarlyAccessForm.tsx+++ b/docs/app/(home)/cloud/observability/EarlyAccessForm.tsx@@ -8,7 +8,7 @@ import styles from "./page.module.css";twice, short enough that it is gone by the time you scroll. */const NOTICE_MS = 4000;-const SUCCESS = "We have added you to the Waitlist.";+const SUCCESS = "You’re on the waitlist.";const OFFLINE = "Could not reach the server. Please try again.";const FALLBACK = "Something went wrong. Please try again.";@@ -86,7 +86,7 @@ export function EarlyAccessForm() {name="email"value={email}onChange={(event) => setEmail(event.target.value)}- placeholder="Enter Work Email"+ placeholder="Enter your work email"autoComplete="email"required/>@@ -97,14 +97,14 @@ export function EarlyAccessForm() {<buttonclassName={`${styles.emailSubmit} ${typing ? styles.emailSubmitLabelled : ""}`.trim()}type="submit"- aria-label="Get Early Access"+ aria-label="Join the waitlist"/* Guards the double-submit; the label does not change, so the controlkeeps its width while the request is in flight. */disabled={status === "pending"}><ArrowRight className={styles.emailSubmitIcon} size={18} weight="bold" /><span className={styles.emailSubmitLabel} aria-hidden={!typing}>- <span className={styles.emailSubmitText}>Get Early Access</span>+ <span className={styles.emailSubmitText}>Join the waitlist</span></span></button></form>diff --git a/docs/app/(home)/cloud/observability/FaqSection.tsx b/docs/app/(home)/cloud/observability/FaqSection.tsxnew file mode 100644index 000000000..16e74cce1--- /dev/null+++ b/docs/app/(home)/cloud/observability/FaqSection.tsx@@ -0,0 +1,71 @@+import {+ FaqSection as MarketingFaqSection,+ type MarketingFaq,+} from "../../sections/FaqSection/FaqSection";+import styles from "../../sections/FaqSection/FaqSection.module.css";++const FAQS: MarketingFaq[] = [+ {+ question: "How is OpenUI Observability different from tracing tools?",+ answer: [+ "Tracing tools show how your agent ran. OpenUI Observability shows what users experienced, including generated UI, interactions, errors, corrections, and fallbacks.",+ "They work together. Export flagged responses as eval cases to tools such as Braintrust or LangSmith.",+ ],+ },+ {+ question: "What does the SDK capture?",+ answer: [+ "The SDK captures events from OpenUI when rendering settles, including timestamps, update counts, error counts, and error details such as code, source, and component.",+ "Full capture includes the generated response and is enabled by default. Minimal capture excludes response content and error messages.",+ ],+ },+ {+ question: "Can I control what data is sent?",+ answer: [+ "Yes. Choose minimal capture to send metadata without generated responses. Use the beforeSend hook to edit or drop events before they’re sent to OpenUI Observability.",+ ],+ },+ {+ question: "Is the frontend API key safe to expose?",+ answer: [+ "Yes. Frontend API keys are publishable and designed for use in browser code, like an analytics key.",+ ],+ },+ {+ question: "What does OpenUI Observability cost?",+ answer: [+ "OpenUI Observability is free during early access. Pricing will be published before paid access begins.",+ ],+ },+ {+ question: "Do I need OpenUI Gateway?",+ answer: [+ "No. OpenUI Observability and OpenUI Gateway work independently.",+ "We recommend using both. Gateway makes generated UI more reliable. Observability shows what users experienced and whether it worked.",+ ],+ },+];++export function FaqSection() {+ return (+ <MarketingFaqSection+ faqs={FAQS}+ titleId="observability-faq"+ firstOpen+ contact={+ <>+ Have another question? Join our{" "}+ <a+ className={styles.noteLink}+ href="https://discord.com/invite/Pbv5PsqUSv"+ target="_blank"+ rel="noopener noreferrer"+ >+ Discord+ </a>+ .+ </>+ }+ />+ );+}diff --git a/docs/app/(home)/cloud/observability/FeatureMockups.module.css b/docs/app/(home)/cloud/observability/FeatureMockups.module.cssnew file mode 100644index 000000000..aefe48271--- /dev/null+++ b/docs/app/(home)/cloud/observability/FeatureMockups.module.css@@ -0,0 +1,1108 @@+.canvas {+ display: flex;+ flex: 0 1 720px;+ align-self: center;+ align-items: flex-end;+ justify-content: center;+ min-width: 0;+ padding: 28px 28px 0;+ overflow: hidden;+ aspect-ratio: 720 / 400;+ border-radius: 24px;+ background: color-mix(in srgb, var(--openui-text-neutral-primary) 3%, var(--openui-background));+ color: var(--openui-text-neutral-primary);+ font-family: var(--home-font-text);+}++.window {+ position: relative;+ width: 100%;+ height: 100%;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 12%, transparent);+ border-bottom: 0;+ border-radius: 18px 18px 0 0;+ background: var(--openui-foreground);+ box-shadow: 0 16px 44px color-mix(in srgb, #000 8%, transparent);+}++.consoleNav {+ display: flex;+ align-items: center;+ gap: 18px;+ height: 38px;+ padding: 0 14px;+ border-bottom: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 10%, transparent);+ color: var(--openui-text-neutral-secondary);+ font-size: 9px;+}++.consoleMark {+ display: grid;+ width: 20px;+ height: 20px;+ place-items: center;+ border-radius: 6px;+ background: var(--openui-text-neutral-primary);+ color: var(--openui-foreground);+ font-size: 8px;+ font-weight: 600;+}++.activeNav {+ color: var(--openui-text-neutral-primary);+ font-weight: 600;+}++.triageBody {+ display: grid;+ grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);+ height: calc(100% - 38px);+}++.reviewList {+ min-width: 0;+ padding: 16px;+ border-right: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 10%, transparent);+}++.reviewHeader,+.reviewHeader > span,+.reviewHeader button,+.monthRow,+.reviewItems article,+.drawerTopline,+.openSession,+.sessionHeader,+.sessionHeader > span,+.sessionHeader button,+.responsePanel > span,+.detailTabs,+.evalToast,+.selectedAction {+ display: flex;+ align-items: center;+}++.reviewHeader {+ justify-content: space-between;+}+.reviewHeader > span {+ gap: 6px;+}+.reviewHeader strong {+ font-family: var(--home-font-display);+ font-size: 17px;+ font-weight: 580;+}+.reviewHeader i {+ padding: 2px 5px;+ border-radius: 999px;+ background: color-mix(in srgb, var(--openui-text-neutral-primary) 7%, transparent);+ color: var(--openui-text-neutral-secondary);+ font-size: 8px;+ font-style: normal;+}++.reviewHeader button,+.sessionHeader button {+ gap: 4px;+ padding: 5px 7px;+ border: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 12%, transparent);+ border-radius: 7px;+ background: transparent;+ color: inherit;+ font: inherit;+ font-size: 8px;+}++.monthRow {+ justify-content: space-between;+ margin: 12px 0 7px;+ padding: 6px 8px;+ border-radius: 6px;+ background: color-mix(in srgb, var(--openui-text-neutral-primary) 5%, transparent);+ color: var(--openui-text-neutral-secondary);+ font-size: 8px;+}++.reviewItems {+ display: flex;+ flex-direction: column;+ gap: 6px;+}+.reviewItems article {+ position: relative;+ display: grid;+ grid-template-columns: auto 1fr auto;+ gap: 5px 7px;+ padding: 9px;+ border: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 9%, transparent);+ border-radius: 8px;+ background: color-mix(in srgb, var(--openui-text-neutral-primary) 2%, transparent);+}++.reviewItems .selectedReview {+ border-color: color-mix(in srgb, #d99b31 48%, transparent);+ background: color-mix(in srgb, #d99b31 8%, transparent);+}++.issueBadge {+ display: inline-flex;+ align-items: center;+ gap: 3px;+ width: fit-content;+ padding: 2px 4px;+ border-radius: 4px;+ background: color-mix(in srgb, #d99b31 14%, transparent);+ color: #a56b00;+ font-size: 7px;+}++.reviewItems strong {+ grid-column: 1 / 3;+ font-size: 9px;+ font-weight: 540;+}+.reviewItems small {+ grid-column: 1 / 3;+ color: var(--openui-text-neutral-secondary);+ font-size: 7px;+}+.reviewItems svg {+ grid-column: 3;+ grid-row: 1 / 4;+ align-self: center;+ color: var(--openui-text-neutral-secondary);+}++.issueDrawer {+ min-width: 0;+ padding: 18px;+}+.drawerTopline {+ justify-content: space-between;+ color: var(--openui-text-neutral-secondary);+ font-size: 8px;+}+.highBadge {+ padding: 3px 6px;+ border-radius: 999px;+ background: color-mix(in srgb, #dc3f48 10%, transparent);+ color: #dc3f48;+}+.issueDrawer h3 {+ margin: 12px 0 7px;+ font-family: var(--home-font-display);+ font-size: 15px;+ font-weight: 580;+ line-height: 1.2;+}+.issueSummary {+ margin: 0;+ color: var(--openui-text-neutral-secondary);+ font-size: 8px;+ line-height: 1.45;+}++.evidenceGrid {+ display: grid;+ grid-template-columns: repeat(2, minmax(0, 1fr));+ gap: 7px;+ margin-top: 13px;+}++.evidenceGrid div,+.reviewerNote {+ padding: 9px;+ border: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 9%, transparent);+ border-radius: 8px;+ background: color-mix(in srgb, var(--openui-text-neutral-primary) 3%, transparent);+}++.evidenceGrid small,+.reviewerNote small {+ color: var(--openui-text-neutral-secondary);+ font-size: 7px;+}+.evidenceGrid p,+.reviewerNote p {+ margin: 5px 0 0;+ font-size: 8px;+ line-height: 1.35;+}+.reviewerNote {+ margin-top: 7px;+ border-left: 2px solid #d99b31;+}+.drawerFooter {+ display: flex;+ align-items: center;+ justify-content: space-between;+ margin-top: 10px;+ color: var(--openui-text-neutral-secondary);+ font-size: 7px;+}+.drawerFooter b {+ color: var(--openui-text-neutral-primary);+ font-weight: 600;+}+.openSession {+ gap: 5px;+ padding: 0;+ border: 0;+ background: transparent;+ color: var(--openui-text-neutral-primary);+ font: inherit;+ font-size: 8px;+ font-weight: 550;+}++/* Evals is intentionally a full product surface rather than an invented+ marketing card. It reuses the console's quiet sidebar, dense data rows and+ contextual right drawer, then adds only the controls the proposed workflow+ needs. */+.evalWindow {+ display: flex;+ flex-direction: column;+ background: color-mix(in srgb, var(--openui-background) 94%, var(--openui-text-neutral-primary));+}++.productTopbar {+ display: flex;+ height: 34px;+ flex: none;+ align-items: center;+ justify-content: space-between;+ padding: 0 12px;+ border-bottom: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 8%, transparent);+ background: var(--openui-foreground);+ color: var(--openui-text-neutral-secondary);+ font-size: 7px;+}++.productTopbar strong {+ color: var(--openui-text-neutral-primary);+ font-weight: 560;+}+.topbarActions {+ display: flex;+ align-items: center;+ gap: 5px;+}+.topbarActions button {+ padding: 4px 6px;+ border: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 10%, transparent);+ border-radius: 6px;+ background: transparent;+ color: var(--openui-text-neutral-primary);+ font: inherit;+}+.topbarActions i {+ display: grid;+ width: 19px;+ height: 19px;+ place-items: center;+ border-radius: 5px;+ background: #eee8ff;+ color: #6e56cf;+ font-size: 7px;+ font-style: normal;+}++.productBody {+ display: grid;+ min-height: 0;+ flex: 1;+ grid-template-columns: 112px minmax(0, 1fr);+}+.productSidebar {+ display: flex;+ min-width: 0;+ flex-direction: column;+ gap: 2px;+ padding: 9px 7px;+ border-right: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 8%, transparent);+ background: var(--openui-foreground);+ color: var(--openui-text-neutral-secondary);+ font-size: 7px;+}++.appSwitcher,+.sidebarItem,+.sidebarActive {+ display: flex;+ min-width: 0;+ height: 20px;+ align-items: center;+ gap: 5px;+ padding: 0 7px;+ border-radius: 5px;+ white-space: nowrap;+}++.appSwitcher {+ margin-bottom: 3px;+ border: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 10%, transparent);+ color: var(--openui-text-neutral-primary);+ font-weight: 540;+}+.appSwitcher > span {+ color: #6e56cf;+}+.appSwitcher small {+ margin-left: auto;+ color: var(--openui-text-neutral-secondary);+}+.productSidebar > p {+ margin: 7px 7px 1px;+ color: color-mix(in srgb, var(--openui-text-neutral-secondary) 70%, transparent);+ font-size: 6px;+}+.sidebarItem small,+.sidebarActive small {+ margin-left: auto;+}+.sidebarActive {+ background: color-mix(in srgb, var(--openui-text-neutral-primary) 7%, transparent);+ color: var(--openui-text-neutral-primary);+ font-weight: 580;+}+.sidebarActive::before {+ width: 3px;+ height: 3px;+ border-radius: 50%;+ background: #6e56cf;+ content: "";+}++.evalsMain {+ min-width: 0;+ padding: 11px 13px 0;+ overflow: hidden;+}+.evalsHeading {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+}+.evalsHeading h3 {+ margin: 0;+ font-family: var(--home-font-display);+ font-size: 16px;+ font-weight: 590;+ line-height: 1;+}+.evalsHeading p {+ margin: 4px 0 0;+ color: var(--openui-text-neutral-secondary);+ font-size: 7px;+}+.runButton {+ display: inline-flex;+ align-items: center;+ gap: 5px;+ padding: 6px 9px;+ border: 0;+ border-radius: 7px;+ background: var(--openui-text-neutral-primary);+ color: var(--openui-foreground);+ font: inherit;+ font-size: 7px;+ font-weight: 570;+}++.evalMetrics {+ display: grid;+ grid-template-columns: repeat(4, minmax(0, 1fr));+ gap: 5px;+ margin-top: 9px;+}+.evalMetrics > span {+ display: flex;+ min-width: 0;+ flex-direction: column;+ gap: 2px;+ padding: 6px 8px;+ border: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 8%, transparent);+ border-radius: 7px;+ background: var(--openui-foreground);+}+.evalMetrics b {+ font-size: 9px;+ font-weight: 570;+}+.evalMetrics small {+ color: var(--openui-text-neutral-secondary);+ font-size: 6px;+}+.evalMetrics .regressionCount {+ color: #dc3f48;+}++.evalWorkspace {+ display: grid;+ min-height: 0;+ height: 232px;+ grid-template-columns: minmax(0, 1.35fr) minmax(190px, 0.65fr);+ margin-top: 7px;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 9%, transparent);+ border-radius: 8px 8px 0 0;+ background: var(--openui-foreground);+}++.evalList {+ min-width: 0;+ border-right: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 9%, transparent);+}+.evalToolbar {+ display: grid;+ grid-template-columns: 1.25fr 1fr 0.65fr;+ gap: 4px;+ padding: 6px;+ border-bottom: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 8%, transparent);+}+.evalToolbar button,+.evalToolbar > span {+ display: flex;+ min-width: 0;+ height: 20px;+ align-items: center;+ gap: 4px;+ padding: 0 6px;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 9%, transparent);+ border-radius: 5px;+ background: transparent;+ color: var(--openui-text-neutral-secondary);+ font: inherit;+ font-size: 6px;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.evalToolbar button:first-child {+ color: var(--openui-text-neutral-primary);+}+.evalTableHeader,+.evalRow,+.evalRowSelected {+ display: grid;+ grid-template-columns: minmax(0, 1.65fr) 0.55fr 0.52fr 0.35fr;+ align-items: center;+}+.evalTableHeader {+ height: 20px;+ padding: 0 7px;+ color: var(--openui-text-neutral-secondary);+ font-size: 5px;+ text-transform: uppercase;+ letter-spacing: 0.04em;+}+.evalRow,+.evalRowSelected {+ min-height: 40px;+ padding: 0 7px;+ border-top: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 7%, transparent);+ font-size: 6px;+}+.evalRowSelected {+ background: color-mix(in srgb, #6e56cf 8%, transparent);+ box-shadow: inset 2px 0 #6e56cf;+}+.evalRow > span,+.evalRowSelected > span {+ display: flex;+ min-width: 0;+ flex-direction: column;+ gap: 2px;+}+.evalRow b,+.evalRowSelected b {+ overflow: hidden;+ font-size: 7px;+ font-weight: 560;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.evalRow small,+.evalRowSelected small {+ overflow: hidden;+ color: var(--openui-text-neutral-secondary);+ font-size: 5.5px;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.evalRow i,+.evalRowSelected i {+ width: fit-content;+ padding: 2px 4px;+ border-radius: 999px;+ font-size: 5.5px;+ font-style: normal;+}+.evalRow i[data-result="Failed"],+.evalRowSelected i[data-result="Failed"] {+ background: color-mix(in srgb, #dc3f48 10%, transparent);+ color: #dc3f48;+}+.evalRow i[data-result="Passed"],+.evalRowSelected i[data-result="Passed"] {+ background: color-mix(in srgb, #07864d 10%, transparent);+ color: #07864d;+}+.evalRow i[data-result="Not run"],+.evalRowSelected i[data-result="Not run"] {+ background: color-mix(in srgb, var(--openui-text-neutral-primary) 6%, transparent);+ color: var(--openui-text-neutral-secondary);+}++.evalDetail {+ min-width: 0;+ padding: 9px;+}+.evalDetailTop,+.evalDetailTop > span,+.runComparison,+.historyButton {+ display: flex;+ align-items: center;+}+.evalDetailTop {+ justify-content: space-between;+}+.evalDetailTop > span {+ gap: 5px;+}+.evalDetailTop i {+ padding: 2px 5px;+ border-radius: 999px;+ background: color-mix(in srgb, #dc3f48 10%, transparent);+ color: #dc3f48;+ font-size: 5.5px;+ font-style: normal;+}+.evalDetailTop small,+.evalSource {+ color: var(--openui-text-neutral-secondary);+ font-size: 5.5px;+}+.evalDetail h4 {+ margin: 7px 0 3px;+ font-size: 10px;+ font-weight: 580;+ line-height: 1.2;+}+.evalSource {+ margin: 0;+}+.evalContext {+ margin-top: 8px;+ padding: 7px;+ border-radius: 6px;+ background: color-mix(in srgb, var(--openui-text-neutral-primary) 4%, transparent);+}+.evalContext small {+ color: var(--openui-text-neutral-secondary);+ font-size: 5px;+ text-transform: uppercase;+ letter-spacing: 0.035em;+}+.evalContext p {+ margin: 2px 0 6px;+ font-size: 6px;+ line-height: 1.35;+}+.evalContext p:last-child {+ margin-bottom: 0;+}+.runComparison {+ gap: 5px;+ margin-top: 7px;+}+.runComparison > span {+ display: flex;+ min-width: 0;+ flex: 1;+ flex-direction: column;+ gap: 1px;+ padding: 5px;+ border: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 8%, transparent);+ border-radius: 5px;+}+.runComparison small {+ color: var(--openui-text-neutral-secondary);+ font-size: 5px;+}+.runComparison b {+ font-size: 7px;+ font-weight: 570;+}+.runComparison i {+ color: #dc3f48;+ font-size: 5px;+ font-style: normal;+}+.runComparison span:last-child i {+ color: #07864d;+}+.historyButton {+ gap: 4px;+ margin-top: 7px;+ padding: 0;+ border: 0;+ background: transparent;+ color: var(--openui-text-neutral-primary);+ font: inherit;+ font-size: 6px;+ font-weight: 550;+}++.sessionHeader {+ justify-content: space-between;+ height: 44px;+ padding: 0 14px;+ border-bottom: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 10%, transparent);+}++.sessionHeader > span {+ min-width: 0;+ gap: 5px;+}+.sessionHeader strong {+ overflow: hidden;+ font-size: 10px;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.sessionHeader small {+ color: var(--openui-text-neutral-secondary);+ font-size: 8px;+ white-space: nowrap;+}++.sessionBody {+ display: grid;+ grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);+ height: calc(100% - 82px);+}++.replayPane {+ min-width: 0;+ padding: 15px;+ border-right: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 10%, transparent);+}+.agentBubble,+.userBubble {+ width: fit-content;+ max-width: 86%;+ margin: 0;+ padding: 7px 9px;+ border-radius: 7px;+ font-size: 8px;+ line-height: 1.35;+}+.agentBubble {+ background: color-mix(in srgb, var(--openui-text-neutral-primary) 5%, transparent);+}+.userBubble {+ margin: 9px 0 9px auto;+ background: #eee8ff;+ color: #6e56cf;+}++.responsePanel {+ padding: 9px;+ border-radius: 8px;+ background: color-mix(in srgb, var(--openui-text-neutral-primary) 4%, transparent);+}+.responsePanel > span {+ justify-content: space-between;+ font-size: 7px;+}+.responsePanel strong {+ font-size: 8px;+}+.revenueChart {+ position: relative;+ height: 75px;+ margin-top: 6px;+ overflow: hidden;+}+.revenueChart i {+ position: absolute;+ inset: 0;+ background: repeating-linear-gradient(+ to bottom,+ transparent 0 23px,+ color-mix(in srgb, var(--openui-text-neutral-primary) 8%, transparent) 24px+ );+}+.revenueChart svg {+ position: absolute;+ inset: 0;+ width: 100%;+ height: 100%;+}+.revenueChart path {+ fill: none;+ stroke: #2589ff;+ stroke-width: 2;+ vector-effect: non-scaling-stroke;+}++.detailsPane {+ min-width: 0;+ padding: 12px;+}+.detailTabs {+ gap: 10px;+ padding-bottom: 9px;+ border-bottom: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 9%, transparent);+ color: var(--openui-text-neutral-secondary);+ font-size: 7px;+}+.detailTabs strong {+ color: var(--openui-text-neutral-primary);+}+.summaryStats {+ display: grid;+ grid-template-columns: repeat(2, minmax(0, 1fr));+ margin-top: 10px;+ border: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 9%, transparent);+ border-radius: 8px;+}+.summaryStats span {+ display: flex;+ min-width: 0;+ flex-direction: column;+ gap: 2px;+ padding: 9px;+}+.summaryStats span:nth-child(odd) {+ border-right: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 9%, transparent);+}+.summaryStats span:nth-child(-n + 2) {+ border-bottom: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 9%, transparent);+}+.summaryStats b {+ font-size: 10px;+ font-weight: 550;+}+.summaryStats small {+ color: var(--openui-text-neutral-secondary);+ font-size: 7px;+}+.summaryStats .errorCount {+ color: #dc3f48;+}++.actionMenu {+ position: absolute;+ top: 68px;+ right: 14px;+ z-index: 2;+ display: flex;+ width: 156px;+ flex-direction: column;+ padding: 6px;+ border: 1px solid color-mix(in srgb, var(--openui-text-neutral-primary) 12%, transparent);+ border-radius: 10px;+ background: var(--openui-foreground);+ box-shadow: 0 12px 34px color-mix(in srgb, #000 16%, transparent);+ font-size: 8px;+}++.actionMenu > span {+ padding: 7px 8px;+ border-radius: 6px;+}+.selectedAction {+ gap: 6px;+ background: color-mix(in srgb, var(--openui-text-neutral-primary) 7%, transparent);+ font-weight: 550;+}++.evalToast {+ position: absolute;+ right: 20px;+ bottom: 16px;+ z-index: 3;+ gap: 6px;+ padding: 8px 10px;+ border: 1px solid color-mix(in srgb, #07864d 24%, transparent);+ border-radius: 8px;+ background: var(--openui-foreground);+ box-shadow: 0 10px 28px color-mix(in srgb, #000 12%, transparent);+ font-size: 7px;+}++.evalToast > span {+ display: grid;+ width: 16px;+ height: 16px;+ place-items: center;+ border-radius: 50%;+ background: #07864d;+ color: #fff;+}+.evalToast strong {+ font-weight: 600;+}++@media (max-width: 1023px) {+ .canvas {+ flex: 0 0 auto;+ width: 100%;+ height: auto;+ }+}++@media (max-width: 767px) {+ .canvas {+ padding: 14px 12px 0;+ border-radius: 12px;+ }+ .window {+ border-radius: 11px 11px 0 0;+ }+ .consoleNav {+ gap: 8px;+ height: 28px;+ padding-inline: 8px;+ font-size: 5px;+ }+ .consoleMark {+ width: 14px;+ height: 14px;+ border-radius: 4px;+ font-size: 5px;+ }+ .triageBody {+ height: calc(100% - 28px);+ }+ .reviewList,+ .issueDrawer {+ padding: 8px;+ }+ .reviewHeader strong {+ font-size: 10px;+ }+ .reviewHeader button,+ .sessionHeader button {+ padding: 3px 4px;+ font-size: 5px;+ }+ .reviewItems article {+ padding: 5px;+ }+ .reviewItems strong,+ .issueDrawer p,+ .evidenceGrid p,+ .reviewerNote p {+ font-size: 5px;+ }+ .reviewItems small,+ .issueBadge,+ .drawerTopline,+ .evidenceGrid small,+ .reviewerNote small,+ .openSession {+ font-size: 4px;+ }+ .issueDrawer h3 {+ margin-top: 6px;+ font-size: 8px;+ }+ .evidenceGrid {+ gap: 3px;+ margin-top: 6px;+ }+ .evidenceGrid div,+ .reviewerNote {+ padding: 5px;+ }+ .sessionHeader {+ height: 32px;+ padding-inline: 8px;+ }+ .sessionHeader strong {+ font-size: 6px;+ }+ .sessionHeader small {+ font-size: 5px;+ }+ .sessionBody {+ height: calc(100% - 60px);+ }+ .replayPane,+ .detailsPane {+ padding: 7px;+ }+ .agentBubble,+ .userBubble {+ padding: 4px;+ font-size: 5px;+ }+ .responsePanel {+ padding: 5px;+ }+ .revenueChart {+ height: 40px;+ }+ .actionMenu {+ top: 46px;+ right: 8px;+ width: 94px;+ padding: 3px;+ font-size: 5px;+ }+ .actionMenu > span {+ padding: 4px;+ }+ .evalToast {+ right: 8px;+ bottom: 7px;+ padding: 4px 6px;+ font-size: 4px;+ }++ .productTopbar {+ height: 24px;+ padding-inline: 6px;+ font-size: 4px;+ }+ .topbarActions button {+ padding: 2px 3px;+ }+ .topbarActions i {+ width: 12px;+ height: 12px;+ font-size: 4px;+ }+ .productBody {+ grid-template-columns: 68px minmax(0, 1fr);+ }+ .productSidebar {+ gap: 0;+ padding: 4px 3px;+ font-size: 4px;+ }+ .appSwitcher,+ .sidebarItem,+ .sidebarActive {+ height: 12px;+ gap: 2px;+ padding-inline: 3px;+ border-radius: 3px;+ }+ .productSidebar > p {+ margin: 3px 3px 0;+ font-size: 3px;+ }+ .evalsMain {+ padding: 5px 6px 0;+ }+ .evalsHeading h3 {+ font-size: 9px;+ }+ .evalsHeading p,+ .runButton {+ font-size: 4px;+ }+ .runButton {+ gap: 2px;+ padding: 3px 4px;+ border-radius: 4px;+ }+ .evalMetrics {+ gap: 2px;+ margin-top: 4px;+ }+ .evalMetrics > span {+ gap: 0;+ padding: 3px 4px;+ border-radius: 4px;+ }+ .evalMetrics b {+ font-size: 5px;+ }+ .evalMetrics small {+ font-size: 3px;+ }+ .evalWorkspace {+ height: 138px;+ grid-template-columns: minmax(0, 1.3fr) minmax(105px, 0.7fr);+ margin-top: 3px;+ border-radius: 5px 5px 0 0;+ }+ .evalToolbar {+ gap: 2px;+ padding: 3px;+ }+ .evalToolbar button,+ .evalToolbar > span {+ height: 12px;+ padding-inline: 3px;+ font-size: 3px;+ }+ .evalTableHeader {+ height: 12px;+ padding-inline: 4px;+ font-size: 3px;+ }+ .evalRow,+ .evalRowSelected {+ min-height: 24px;+ padding-inline: 4px;+ font-size: 3px;+ }+ .evalRow b,+ .evalRowSelected b {+ font-size: 4px;+ }+ .evalRow small,+ .evalRowSelected small,+ .evalRow i,+ .evalRowSelected i {+ font-size: 3px;+ }+ .evalDetail {+ padding: 5px;+ }+ .evalDetail h4 {+ margin-top: 3px;+ font-size: 5px;+ }+ .evalDetailTop i,+ .evalDetailTop small,+ .evalSource {+ font-size: 3px;+ }+ .evalContext {+ margin-top: 3px;+ padding: 3px;+ }+ .evalContext small {+ font-size: 2.5px;+ }+ .evalContext p {+ margin-block: 1px 3px;+ font-size: 3px;+ }+ .runComparison {+ gap: 2px;+ margin-top: 3px;+ }+ .runComparison > span {+ padding: 2px;+ }+ .runComparison small,+ .runComparison i,+ .historyButton {+ font-size: 2.5px;+ }+ .runComparison b {+ font-size: 3.5px;+ }+}diff --git a/docs/app/(home)/cloud/observability/FeatureMockups.tsx b/docs/app/(home)/cloud/observability/FeatureMockups.tsxnew file mode 100644index 000000000..e97354617--- /dev/null+++ b/docs/app/(home)/cloud/observability/FeatureMockups.tsx@@ -0,0 +1,259 @@+import {+ ArrowRight,+ ClockCounterClockwise,+ DotsThree,+ FunnelSimple,+ MagnifyingGlass,+ Play,+ WarningCircle,+} from "@phosphor-icons/react/dist/ssr";+import styles from "./FeatureMockups.module.css";++const REVIEW_ITEMS = [+ { title: "Total should match finance", meta: "High · Data", selected: true },+ { title: "Small regions need a minimum bar height", meta: "Low · UI", selected: false },+ { title: "Export to PDF is still missing", meta: "High · Missing", selected: false },+] as const;++function ConsoleNav({ active }: { active: "Review" | "Sessions" }) {+ return (+ <div className={styles.consoleNav}>+ <span className={styles.consoleMark}>O</span>+ <span className={active === "Sessions" ? styles.activeNav : undefined}>Sessions</span>+ <span>Users</span>+ <span>Insights</span>+ <span className={active === "Review" ? styles.activeNav : undefined}>Review</span>+ </div>+ );+}++export function TriageMockup() {+ return (+ <div+ className={styles.canvas}+ aria-label="The Review queue with a production issue selected for triage"+ >+ <div className={styles.window}>+ <ConsoleNav active="Review" />+ <div className={styles.triageBody}>+ <section className={styles.reviewList}>+ <div className={styles.reviewHeader}>+ <span>+ <strong>Review</strong>+ <i>20</i>+ </span>+ <button type="button" tabIndex={-1}>+ <FunnelSimple size={14} /> Recency+ </button>+ </div>+ <p className={styles.monthRow}>+ July 2026 <span>12</span>+ </p>+ <div className={styles.reviewItems}>+ {REVIEW_ITEMS.map((item) => (+ <article+ className={item.selected ? styles.selectedReview : undefined}+ key={item.title}+ >+ <span className={styles.issueBadge}>+ <WarningCircle size={11} weight="fill" />+ Issue+ </span>+ <strong>{item.title}</strong>+ <small>{item.meta}</small>+ <ArrowRight size={13} aria-hidden="true" />+ </article>+ ))}+ </div>+ </section>++ <section className={styles.issueDrawer}>+ <div className={styles.drawerTopline}>+ <span>Issue overview</span>+ <span className={styles.highBadge}>High</span>+ </div>+ <h3>Total should match finance</h3>+ <p className={styles.issueSummary}>+ The card reads $2.15M while the finance dashboard shows $2.19M for the same range.+ </p>+ <div className={styles.evidenceGrid}>+ <div>+ <small>User asked</small>+ <p>Show revenue for the last six months.</p>+ </div>+ <div>+ <small>User saw</small>+ <p>$2.15M total with no mismatch warning.</p>+ </div>+ </div>+ <div className={styles.reviewerNote}>+ <small>Expected behaviour</small>+ <p>Use the finance total and keep the chart range unchanged.</p>+ </div>+ <div className={styles.drawerFooter}>+ <span>+ <b>8</b> related occurrences+ </span>+ <button className={styles.openSession} type="button" tabIndex={-1}>+ Open session <ArrowRight size={13} />+ </button>+ </div>+ </section>+ </div>+ </div>+ </div>+ );+}++export function EvalsMockup() {+ return (+ <div className={styles.canvas} aria-label="The Evals product page with a failed case selected">+ <div className={`${styles.window} ${styles.evalWindow}`}>+ <header className={styles.productTopbar}>+ <span>+ <strong>OpenUI Cloud</strong> by Thesys+ </span>+ <span className={styles.topbarActions}>+ <button type="button" tabIndex={-1}>+ Help+ </button>+ <button type="button" tabIndex={-1}>+ Docs ↗+ </button>+ <i>PA</i>+ </span>+ </header>++ <div className={styles.productBody}>+ <aside className={styles.productSidebar}>+ <div className={styles.appSwitcher}>+ <span>▦</span> My Analytics app <small>⌄</small>+ </div>+ <span className={styles.sidebarItem}>Home</span>+ <p>Observe</p>+ {["Sessions", "Users", "Insights", "Review", "Evals"].map((item) => (+ <span+ className={item === "Evals" ? styles.sidebarActive : styles.sidebarItem}+ key={item}+ >+ {item}+ {item === "Review" && <small>20</small>}+ </span>+ ))}+ <p>Debug</p>+ <span className={styles.sidebarItem}>Reliability</span>+ <span className={styles.sidebarItem}>Performance</span>+ </aside>++ <main className={styles.evalsMain}>+ <div className={styles.evalsHeading}>+ <span>+ <h3>Evals</h3>+ <p>Catch regressions before they reach users.</p>+ </span>+ <button className={styles.runButton} type="button" tabIndex={-1}>+ <Play size={10} weight="fill" /> Run evals+ </button>+ </div>++ <div className={styles.evalMetrics}>+ <span>+ <b>24</b>+ <small>Cases</small>+ </span>+ <span>+ <b>87.5%</b>+ <small>Pass rate</small>+ </span>+ <span>+ <b className={styles.regressionCount}>3</b>+ <small>Regressions</small>+ </span>+ <span>+ <b>8m ago</b>+ <small>Last run</small>+ </span>+ </div>++ <div className={styles.evalWorkspace}>+ <section className={styles.evalList}>+ <div className={styles.evalToolbar}>+ <button type="button" tabIndex={-1}>+ Production dashboards (July)⌄+ </button>+ <span>+ <MagnifyingGlass size={10} /> Search cases+ </span>+ <button type="button" tabIndex={-1}>+ All status⌄+ </button>+ </div>+ <div className={styles.evalTableHeader}>+ <span>Eval</span>+ <span>Source</span>+ <span>Result</span>+ <span>Last run</span>+ </div>+ {[+ ["Finance total matches source", "Session", "Failed", "8m"],+ ["Regional breakdown is included", "Review", "Passed", "8m"],+ ["Export follows on-screen filters", "Session", "Passed", "1d"],+ ["Small regions remain readable", "Review", "Not run", "—"],+ ].map(([name, source, result, time], index) => (+ <article+ className={index === 0 ? styles.evalRowSelected : styles.evalRow}+ key={name}+ >+ <span>+ <b>{name}</b>+ <small>+ {index === 0 ? "Added from Olivia’s session" : "Production case"}+ </small>+ </span>+ <small>{source}</small>+ <i data-result={result}>{result}</i>+ <small>{time}</small>+ </article>+ ))}+ </section>++ <aside className={styles.evalDetail}>+ <div className={styles.evalDetailTop}>+ <span>+ <i>Failed</i>+ <small>EV-024</small>+ </span>+ <DotsThree size={14} />+ </div>+ <h4>Finance total matches source</h4>+ <p className={styles.evalSource}>From West Coast renewal-risk dashboard ↗</p>+ <div className={styles.evalContext}>+ <small>User asked</small>+ <p>Show revenue for the last six months.</p>+ <small>Expected behaviour</small>+ <p>Use the finance total and preserve the selected date range.</p>+ </div>+ <div className={styles.runComparison}>+ <span>+ <small>Production</small>+ <b>$2.15M</b>+ <i>Failed</i>+ </span>+ <ArrowRight size={11} />+ <span>+ <small>Prompt v14</small>+ <b>$2.19M</b>+ <i>Passed</i>+ </span>+ </div>+ <button className={styles.historyButton} type="button" tabIndex={-1}>+ <ClockCounterClockwise size={10} /> View run history+ </button>+ </aside>+ </div>+ </main>+ </div>+ </div>+ </div>+ );+}diff --git a/docs/app/(home)/cloud/observability/FeaturesSection.module.css b/docs/app/(home)/cloud/observability/FeaturesSection.module.cssindex 52122a840..c8687658c 100644--- a/docs/app/(home)/cloud/observability/FeaturesSection.module.css+++ b/docs/app/(home)/cloud/observability/FeaturesSection.module.css@@ -1,13 +1,29 @@.section {display: flex;flex-direction: column;- gap: 160px;+ gap: var(--observability-section-gap, 160px);width: 100%;max-width: 1200px;- /* Symmetric now. Cloud leaves the bottom at 0 because its capability strip- follows and supplies the separation; with that strip gone the last card ran- straight into the CTA. */- margin: 160px auto;+ /* The next section owns its top space, so margins do not double the gap. */+ margin: var(--observability-section-gap, 160px) auto 0;+ padding-bottom: var(--observability-section-gap, 160px);+}++.header {+ width: 100%;+ max-width: 46rem;+ margin-inline: auto;+ text-align: center;+}++.header h2 {+ scroll-margin-top: 112px;+}++.featureList {+ display: flex;+ flex-direction: column;+ gap: var(--observability-section-gap, 160px);}.card {@@ -113,11 +129,6 @@}@media (max-width: 1023px) {- .section {- gap: 96px;- margin-top: 96px;- }-.card {flex-direction: column;gap: 32px;@@ -142,13 +153,30 @@}@media (max-width: 767px) {+ .captionBreak {+ display: none;+ }+.section {width: calc(100% - 32px);}.featureImage {order: -1;+ aspect-ratio: 4 / 3;border-radius: 12px;+ object-fit: cover;+ }++ .featureImageTriage {+ /* The review drawer is the triage story; keep it readable rather than+ shrinking the entire 1440px console into a phone-width slot. */+ object-position: 72% center;+ }++ .featureImageEvals {+ /* Keeps the selected case and its run history in the crop. */+ object-position: 58% center;}.content {@@ -165,3 +193,40 @@[data-theme="dark"] .featurePlaceholder {background: rgba(255, 255, 255, 0.05);}++/* Stand-in for a step whose screenshot pair has not been made. Mirrors+ .featureImage's box exactly so the row keeps its proportions; delete these+ rules once every step has art. */+.shotPlaceholder {+ display: flex;+ flex: 0 1 720px;+ align-self: center;+ align-items: center;+ justify-content: center;+ min-width: 0;+ padding: clamp(1.5rem, 4vw, 3rem);+ aspect-ratio: 720 / 400;+ border: 1px dashed var(--openui-border-subtle, rgba(10, 10, 10, 0.28));+ border-radius: 24px;+}++[data-theme="dark"] .shotPlaceholder {+ border-color: rgba(255, 255, 255, 0.22);+}++.shotPlaceholderLabel {+ max-width: 28rem;+ margin: 0;+ font-size: 0.9375rem;+ line-height: 1.6;+ text-align: center;+ color: var(--openui-text-neutral-secondary);+}++@media (max-width: 1023px) {+ .shotPlaceholder {+ flex: 0 0 auto;+ width: 100%;+ height: auto;+ }+}diff --git a/docs/app/(home)/cloud/observability/FeaturesSection.tsx b/docs/app/(home)/cloud/observability/FeaturesSection.tsxindex 5ad195130..9e30c9b32 100644--- a/docs/app/(home)/cloud/observability/FeaturesSection.tsx+++ b/docs/app/(home)/cloud/observability/FeaturesSection.tsx@@ -1,5 +1,6 @@import Image from "next/image";import type { ReactNode } from "react";+import { SectionHeader } from "../../components/SectionHeader/SectionHeader";import styles from "./FeaturesSection.module.css";/* No docs to point at yet, so the copy column ends at the body text. Cloud's@@ -27,25 +28,49 @@ function FeatureCopy({);}-/* Authored at 1440x800 and declared at half that, so the pair is sharp on a- retina screen while occupying the 720x400 slot the layout expects. */-function FeatureShot({ shot, alt }: { shot: string; alt: string }) {+/* Each pair is exported at least at 2× and rendered into the 720×400 slot, so+ the UI copy stays crisp on retina screens without shipping oversized images. */+function FeatureShot({ shot, alt }: { shot?: string; alt: string }) {+ /* PLACEHOLDER — a step whose art has not been made yet. Dashed rather than a+ filled panel so it reads as missing rather than as a design choice, and+ sized to the same 720x400 slot so the layout does not move when the real+ pair lands. */+ if (!shot) {+ return (+ <div className={styles.shotPlaceholder} aria-hidden="true">+ <p className={styles.shotPlaceholderLabel}>{alt}</p>+ </div>+ );+ }++ const focalClass = shot.startsWith("triage")+ ? styles.featureImageTriage+ : shot.startsWith("evals")+ ? styles.featureImageEvals+ : "";+return (<><Image- className={`${styles.featureImage} ${styles.featureImageLight}`}+ className={`${styles.featureImage} ${styles.featureImageLight} ${focalClass}`.trim()}src={`/openui-observability/${shot}-light.webp`}alt={alt}width={720}height={400}+ quality={95}+ unoptimized+ sizes="(max-width: 767px) calc(100vw - 32px), 720px"/><Image- className={`${styles.featureImage} ${styles.featureImageDark}`}+ className={`${styles.featureImage} ${styles.featureImageDark} ${focalClass}`.trim()}src={`/openui-observability/${shot}-dark.webp`}alt=""aria-hidden="true"width={720}height={400}+ quality={95}+ unoptimized+ sizes="(max-width: 767px) calc(100vw - 32px), 720px"/></>);@@ -56,61 +81,102 @@ type Feature = {headline: ReactNode;description: string;/* Basename under /public/openui-observability/, which the light and dark- files hang off. */- shot: string;+ files hang off. Omitted while a step's art is still to be made. */+ shot?: string;};+/* One loop, in order: see it, find the ones worth seeing, mark what is wrong,+ stop it recurring. Read as four steps rather than four capabilities, so each+ one hands to the next and the last leaves the product entirely.++ Timeline folded into step one — following the journey is part of seeing what+ the user saw, not a separate screen. Insights folded into step two as a single+ clause: the demand signal comes from the same view you triage in, and giving+ it its own step would break the loop. */const FEATURES: Feature[] = [{title: "Session replay",shot: "session-replay",- headline: "See every session as it happened",+ headline: (+ <>+ See exactly+ <br />+ what users saw+ </>+ ),description:- "Replay conversations with the exact generative UI your users saw, not just the text behind it.",+ "Replay conversations with the generated UI your users saw, not just the response text. Follow queries, actions, generated interface changes, and responses in order.",},{- title: "Annotations",- shot: "annotations",- headline: "Turn sessions into feedback",+ title: "Triage",+ shot: "triage-figma",+ headline: (+ <>+ Find the sessions+ <br />+ worth opening+ </>+ ),description:- "Annotate responses, add comments, assign severity, and share feedback with your dev team right where the issue happened.",+ "Review issues by severity, compare what users asked with what they saw, and check related occurrences before opening a session.",},{- title: "Timeline",- shot: "timeline",- headline: "Understand the journey at a glance",+ title: "Annotations",+ shot: "annotations",+ headline: (+ <>+ Turn bad responses+ <br />+ into feedback+ </>+ ),description:- "Follow a simplified timeline of queries, actions, responses, and issues without digging through complex traces.",+ "Annotate the exact response, set severity, and share it with the session attached. Your team can investigate without reproducing the issue.",},{- title: "Insights",- shot: "insights",- headline: "Learn what users want next",+ title: "Evals",+ shot: "evals-figma",+ headline: "Catch repeat issues before users do",description:- "See the skills users rely on most, what\u2019s missing, and which new demands are starting to emerge.",+ "Turn production failures into repeatable evals, rerun them after changes, and catch regressions before they reach users.",},];export function FeaturesSection() {return (- <section className={styles.section} aria-label="Features">- {FEATURES.map((feature, index) => (- /* Alternating sides, as on Cloud: art leads the odd cards, copy the- even ones, so the page does not read as one column. */- <article key={feature.title} className={styles.card}>- {index % 2 === 0 ? (- <>- <FeatureShot shot={feature.shot} alt={`${feature.title} in OpenUI Observability`} />- <FeatureCopy {...feature} />- </>- ) : (+ <section className={styles.section} aria-labelledby="observability-features">+ <header className={styles.header}>+ <SectionHeader+ titleId="observability-features"+ title="Product analytics for AI agents"+ subtitle="not just traces"+ caption={<>- <FeatureCopy {...feature} />- <FeatureShot shot={feature.shot} alt={`${feature.title} in OpenUI Observability`} />+ Connect each response to what users saw, <br className={styles.captionBreak} />+ what they did, and whether it met their needs.</>- )}- </article>- ))}+ }+ />+ </header>+ <div className={styles.featureList}>+ {FEATURES.map((feature, index) => (+ /* Alternating sides, as on Cloud: art leads the odd cards, copy the+ even ones, so the page does not read as one column. */+ <article key={feature.title} className={styles.card}>+ {index % 2 === 0 ? (+ <>+ <FeatureShot shot={feature.shot} alt={`${feature.title} in OpenUI Observability`} />+ <FeatureCopy {...feature} />+ </>+ ) : (+ <>+ <FeatureCopy {...feature} />+ <FeatureShot shot={feature.shot} alt={`${feature.title} in OpenUI Observability`} />+ </>+ )}+ </article>+ ))}+ </div></section>);}diff --git a/docs/app/(home)/cloud/observability/IntegrateSection.tsx b/docs/app/(home)/cloud/observability/IntegrateSection.tsxnew file mode 100644index 000000000..4ab733414--- /dev/null+++ b/docs/app/(home)/cloud/observability/IntegrateSection.tsx@@ -0,0 +1,42 @@+import { CloudIntegrationSetup, type CloudIntegrationStep } from "../CloudIntegrationSection";+import styles from "./page.module.css";++/* Both steps stay open beside the final two-line setup. Verified against+ packages/observability-cloud: the package name, `init`, and the `pk-th-…`+ key format all come from+ CloudObservabilityOptions rather than from the brief, which named the package+ two different ways. */+const OBSERVABILITY_EXAMPLE = `import * as Observability from "@openuidev/observability-cloud";++Observability.init({ apiKey: "pk-th-…" });`;++const STEPS: CloudIntegrationStep[] = [+ {+ title: "Generate a frontend API key",+ description:+ "Create a publishable key in the OpenUI console. It’s safe to use in browser code.",+ href: "https://console.thesys.dev/client-api-keys",+ },+ {+ title: "Initialize the SDK",+ description:+ "Add it once in your root layout to collect OpenUI render events. No tracking code needed in your components.",+ },+];++export function IntegrateSection() {+ return (+ <section className={styles.integrationSection} aria-labelledby="observability-integrate">+ <CloudIntegrationSetup+ title="Set up in two lines"+ titleId="observability-integrate"+ description="Keep your agent framework and backend. The SDK captures events OpenUI already emits as it renders."+ steps={STEPS}+ code={OBSERVABILITY_EXAMPLE}+ highlightLines={[0, 2]}+ codeLabel="OpenUI Observability client configuration"+ titleSize="medium"+ />+ </section>+ );+}diff --git a/docs/app/(home)/cloud/observability/TraceGapDiagram.module.css b/docs/app/(home)/cloud/observability/TraceGapDiagram.module.cssnew file mode 100644index 000000000..35055d220--- /dev/null+++ b/docs/app/(home)/cloud/observability/TraceGapDiagram.module.css@@ -0,0 +1,348 @@+.diagram {+ --trace-surface: color-mix(in srgb, var(--openui-text-neutral-primary) 4%, transparent);+ --trace-surface-strong: color-mix(in srgb, var(--openui-text-neutral-primary) 6%, transparent);+ --trace-border: color-mix(in srgb, var(--openui-text-neutral-primary) 10%, transparent);++ margin: 0;+ color: var(--openui-text-neutral-primary);+ font-family: var(--home-font-text);+ font-size: var(--home-body-size);+ line-height: var(--home-body-leading);+}++.conversation {+ display: grid;+ grid-template-columns: repeat(3, minmax(0, 1fr));+ gap: 40px;+ margin: 0;+ padding: 0;+ list-style: none;+}++.message {+ position: relative;+ display: flex;+ align-items: center;+ gap: 12px;+ min-width: 0;+}++.avatar {+ display: flex;+ flex-shrink: 0;+ overflow: hidden;+ align-items: center;+ justify-content: center;+ width: 40px;+ height: 40px;+ border-radius: 50%;+ border: 1px solid var(--trace-border);+ background: var(--trace-surface);+}++.avatar img {+ object-fit: cover;+}++.agentAvatar {+ border: 1px solid var(--openui-border-default);+ background: var(--home-surface-ink);+}++.bubble {+ flex: 1;+ min-width: 0;+ min-height: 56px;+ box-sizing: border-box;+ margin: 0;+ padding: 14px 18px;+ border: 1px solid var(--trace-border);+ border-radius: 16px;+ background: var(--trace-surface);+}++.bubble strong {+ font-weight: 600;+}++.agentBubble {+ background: var(--trace-surface-strong);+}++.arrow {+ position: absolute;+ top: 50%;+ right: -35px;+ color: var(--openui-text-neutral-secondary);+ transform: translateY(-50%);+}++/* The same response is read two ways: technical completion on the left,+ the unresolved user outcome on the right. The status badges make the+ contradiction legible before the viewer reads any row copy. */+.comparison {+ display: grid;+ grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);+ align-items: stretch;+ gap: 12px;+ width: 100%;+ margin-top: 56px;+}++.panel {+ position: relative;+ display: flex;+ min-width: 0;+ flex-direction: column;+ gap: 24px;+ padding: 24px 24px 28px;+ border: 1px solid var(--trace-border);+ border-radius: 20px;+ background: var(--trace-surface);+}++.outcomePanel {+ border-color: var(--trace-border);+ background: #fff;+}++:global(.dark) .outcomePanel,+:global([data-theme="dark"]) .outcomePanel {+ background: var(--trace-surface);+}++.panelHeader {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 20px;+ min-height: 64px;+}++.panelHeader > div {+ min-width: 0;+}++.panelLabel {+ display: block;+ margin-bottom: 8px;+ color: var(--openui-text-neutral-secondary);+ font-family: var(--home-font-mono);+ font-size: var(--home-label-size);+ font-weight: var(--home-label-weight);+ line-height: 1;+ letter-spacing: 0.04em;+ text-transform: uppercase;+}++.panelHeader h3 {+ max-width: 18ch;+ margin: 0;+ font-family: var(--home-font-display);+ font-size: var(--home-heading-size);+ font-weight: var(--home-heading-weight);+ line-height: var(--home-heading-leading);+ letter-spacing: var(--home-heading-tracking);+ text-wrap: balance;+}++.resultBadge {+ display: inline-flex;+ flex: none;+ align-items: center;+ min-height: 28px;+ padding: 5px 10px;+ border-radius: 999px;+ color: #fff;+ font-family: var(--home-font-text);+ font-size: var(--home-label-size);+ font-weight: 500;+ line-height: 1;+ white-space: nowrap;+}++.passedBadge {+ background: #049156;+}++.failedBadge {+ background: #b91c1c;+}++.checklist {+ display: grid;+ grid-template-rows: repeat(3, minmax(min-content, 1fr));+ flex: 1;+ gap: 0;+ margin: 0;+ padding: 0;+ list-style: none;+}++.checklist li {+ display: flex;+ align-items: center;+ gap: 16px;+ min-width: 0;+ padding-block: 14px;+ border-top: 1px solid var(--home-hairline);+}++.checkCopy {+ flex: 1;+ min-width: 0;+}++.checkCopy > span {+ display: block;+ margin-bottom: 3px;+ font-family: var(--home-font-display);+ font-weight: var(--home-heading-weight);+}++.checkCopy p {+ margin: 0;+ color: var(--openui-text-neutral-secondary);+}++.statusIcon {+ flex-shrink: 0;+ width: 24px;+ height: 24px;+}++.failure {+ color: var(--openui-text-danger-primary);+ border-color: color-mix(in srgb, #b91c1c 20%, transparent);+ background: color-mix(in srgb, #b91c1c 6%, var(--trace-surface));+}++.notEqual {+ position: relative;+ display: flex;+ align-items: center;+ justify-content: center;+ color: var(--openui-text-neutral-primary);+}++.notEqual::before,+.notEqual::after {+ position: absolute;+ left: 50%;+ width: 1px;+ height: calc(50% - 34px);+ background: var(--home-hairline);+ content: "";+}++.notEqual::before {+ top: 0;+}++.notEqual::after {+ bottom: 0;+}++.notEqual svg {+ position: relative;+ z-index: 1;+ box-sizing: content-box;+ padding: 12px;+ border: 1px solid var(--trace-border);+ border-radius: 50%;+ background: var(--openui-background);+}++@media (max-width: 1023px) {+ .conversation {+ gap: 32px;+ }++ .bubble {+ padding: 12px 16px;+ }++ .arrow {+ right: -27px;+ }++ .comparison {+ grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);+ gap: 10px;+ }++ .panel {+ padding: 24px 20px 28px;+ }++ .panelHeader {+ flex-direction: column;+ gap: 12px;+ }+}++@media (max-width: 767px) {+ .conversation {+ grid-template-columns: minmax(0, 1fr);+ gap: 32px;+ }++ .arrow {+ top: auto;+ right: auto;+ bottom: -27px;+ left: calc(50% - 10px);+ transform: rotate(90deg);+ }++ .comparison {+ grid-template-columns: minmax(0, 1fr);+ gap: 16px;+ margin-top: 48px;+ }++ .panel {+ gap: 24px;+ padding: 20px;+ }++ .panelHeader {+ min-height: 0;+ }++ .notEqual {+ height: 52px;+ }++ .notEqual::before,+ .notEqual::after {+ top: 50%;+ width: calc(50% - 34px);+ height: 1px;+ }++ .notEqual::before {+ right: auto;+ left: 0;+ }++ .notEqual::after {+ right: 0;+ left: auto;+ }++ .notEqual svg {+ width: 24px;+ height: 24px;+ padding: 10px;+ }++ .checklist {+ display: flex;+ flex-direction: column;+ }++ .checklist li {+ padding-block: 16px;+ }+}diff --git a/docs/app/(home)/cloud/observability/TraceGapDiagram.tsx b/docs/app/(home)/cloud/observability/TraceGapDiagram.tsxnew file mode 100644index 000000000..d382770cb--- /dev/null+++ b/docs/app/(home)/cloud/observability/TraceGapDiagram.tsx@@ -0,0 +1,121 @@+import { ArrowRight, EqualNot } from "lucide-react";+import Image from "next/image";+import agentLogo from "./assets/trace-agent.svg";+import failedStatus from "./assets/trace-fail.svg";+import passedStatus from "./assets/trace-pass.svg";+import userAvatar from "./assets/trace-user.png";+import styles from "./TraceGapDiagram.module.css";++const TRACE_STEPS = [+ { title: "Tool calls succeeded", description: "Every call completed" },+ { title: "The model responded", description: "No generation errors" },+ { title: "The request completed", description: "Response returned 200" },+];++const BLIND_SPOTS = [+ {+ title: "Did the user get what they needed?",+ description: "The trace looks successful even when the answer is useless",+ },+ {+ title: "What did the user actually experience?",+ description: "It records the response, not the UI they saw or how they used it",+ },+ {+ title: "What should we build next?",+ description: "Errors and latency don’t show what users tried to do but couldn’t",+ },+];++function StatusMark({ failed = false }: { failed?: boolean }) {+ return (+ <Image+ src={failed ? failedStatus : passedStatus}+ className={styles.statusIcon}+ width={24}+ height={24}+ alt={failed ? "Not captured" : "Passed"}+ />+ );+}++export function TraceGapDiagram() {+ return (+ <figure+ className={styles.diagram}+ aria-label="A successful trace does not mean a successful outcome"+ >+ <ol className={styles.conversation} aria-label="A conversation with an unmet user goal">+ <li className={styles.message} aria-label="User query">+ <div className={styles.avatar} aria-hidden="true">+ <Image src={userAvatar} width={40} height={40} alt="" />+ </div>+ <p className={styles.bubble}>+ Compare revenue by <strong>region.</strong>+ </p>+ <ArrowRight className={styles.arrow} size={20} strokeWidth={1.5} aria-hidden="true" />+ </li>+ <li className={styles.message} aria-label="Agent response">+ <div className={`${styles.avatar} ${styles.agentAvatar}`}>+ <Image src={agentLogo} width={24} height={24} alt="OpenUI" />+ </div>+ <p className={`${styles.bubble} ${styles.agentBubble}`}>Revenue is up 17% this month.</p>+ <ArrowRight className={styles.arrow} size={20} strokeWidth={1.5} aria-hidden="true" />+ </li>+ <li className={styles.message} aria-label="User follow-up">+ <div className={styles.avatar} aria-hidden="true">+ <Image src={userAvatar} width={40} height={40} alt="" />+ </div>+ <p className={`${styles.bubble} ${styles.failure}`}>+ But which <strong>region</strong> is driving it?+ </p>+ </li>+ </ol>+ <div className={styles.comparison} aria-label="Technical success compared with user failure">+ <div className={`${styles.panel} ${styles.tracePanel}`}>+ <div className={styles.panelHeader}>+ <div>+ <span className={styles.panelLabel}>Execution</span>+ <h3>Tracing says everything worked</h3>+ </div>+ <span className={`${styles.resultBadge} ${styles.passedBadge}`}>All checks passed</span>+ </div>+ <ol className={styles.checklist} aria-label="Passed trace checks">+ {TRACE_STEPS.map((step) => (+ <li key={step.title}>+ <div className={styles.checkCopy}>+ <span>{step.title}</span>+ <p>{step.description}</p>+ </div>+ <StatusMark />+ </li>+ ))}+ </ol>+ </div>+ <div className={styles.notEqual} role="img" aria-label="does not mean">+ <EqualNot size={36} strokeWidth={1.5} aria-hidden="true" />+ </div>+ <div className={`${styles.panel} ${styles.outcomePanel}`}>+ <div className={styles.panelHeader}>+ <div>+ <span className={styles.panelLabel}>User outcome</span>+ <h3>But tracing can’t tell you…</h3>+ </div>+ <span className={`${styles.resultBadge} ${styles.failedBadge}`}>Not captured</span>+ </div>+ <ul className={styles.checklist} aria-label="User outcomes not captured by trace status">+ {BLIND_SPOTS.map((point) => (+ <li key={point.title}>+ <div className={styles.checkCopy}>+ <span>{point.title}</span>+ <p>{point.description}</p>+ </div>+ <StatusMark failed />+ </li>+ ))}+ </ul>+ </div>+ </div>+ </figure>+ );+}diff --git a/docs/app/(home)/cloud/observability/WhySection.module.css b/docs/app/(home)/cloud/observability/WhySection.module.cssnew file mode 100644index 000000000..f665c9bcc--- /dev/null+++ b/docs/app/(home)/cloud/observability/WhySection.module.css@@ -0,0 +1,22 @@+.section {+ margin-block: var(--observability-section-gap, 160px) 0;+}++.heading {+ max-width: 22ch;+ scroll-margin-top: 96px;+}++.comparison {+ margin-top: 88px;+}++@media (max-width: 767px) {+ .heading {+ max-width: none;+ }++ .comparison {+ margin-top: 48px;+ }+}diff --git a/docs/app/(home)/cloud/observability/WhySection.tsx b/docs/app/(home)/cloud/observability/WhySection.tsxnew file mode 100644index 000000000..e1ed699ed--- /dev/null+++ b/docs/app/(home)/cloud/observability/WhySection.tsx@@ -0,0 +1,25 @@+import layout from "../gateway/sections.module.css";+import { TraceGapDiagram } from "./TraceGapDiagram";+import styles from "./WhySection.module.css";++export function WhySection() {+ return (+ <section className={`${layout.section} ${styles.section}`} aria-labelledby="observability-why">+ <div className={layout.sectionLockup}>+ <h2 id="observability-why" className={`${layout.heading} ${styles.heading}`}>+ A successful trace+ <br />+ can still fail the user.+ </h2>+ <p className={layout.lead}>+ Tracing was built for services, where requests either succeed or fail. It shows what your+ agent did, not whether the user’s goal was met.+ </p>+ </div>++ <div className={styles.comparison}>+ <TraceGapDiagram />+ </div>+ </section>+ );+}diff --git a/docs/app/(home)/cloud/observability/assets/outcome-connector.svg b/docs/app/(home)/cloud/observability/assets/outcome-connector.svgnew file mode 100644index 000000000..e4bafaa24--- /dev/null+++ b/docs/app/(home)/cloud/observability/assets/outcome-connector.svg@@ -0,0 +1,3 @@+<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="293.332" height="82.3323" viewBox="0 0 293.332 82.3323" fill="none" xmlns="http://www.w3.org/2000/svg">+<path id="Vector" d="M292.666 0.666146V40.9161H0.666146V81.6661" stroke="#030303" stroke-opacity="0.32" stroke-width="1.33229" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="1.07 5.33"/>+</svg>diff --git a/docs/app/(home)/cloud/observability/assets/trace-agent.svg b/docs/app/(home)/cloud/observability/assets/trace-agent.svgnew file mode 100644index 000000000..fa4d3b1b0--- /dev/null+++ b/docs/app/(home)/cloud/observability/assets/trace-agent.svg@@ -0,0 +1,15 @@+<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="22.262" height="22.078" viewBox="0 0 22.262 22.078" fill="none" xmlns="http://www.w3.org/2000/svg">+<g id="logomark">+<path id="Vector" d="M12.3309 18.1019C12.3524 15.8991 11.7939 14.1077 11.0835 14.1008C10.3731 14.0939 9.7797 15.874 9.75822 18.0768C9.73665 20.2796 10.2951 22.0711 11.0055 22.078C11.716 22.0849 12.3094 20.3048 12.3309 18.1019Z" fill="white"/>+<path id="Vector_2" d="M8.21014 17.6017C9.41932 15.7602 9.91807 13.9513 9.32422 13.5613C8.73031 13.1714 7.26868 14.3481 6.05956 16.1895C4.85038 18.031 4.3516 19.8399 4.94548 20.2299C5.53936 20.6198 7.00096 19.4431 8.21014 17.6017Z" fill="white"/>+<path id="Vector_3" d="M5.00959 14.9596C7.02244 14.0643 8.42005 12.8123 8.13127 12.1632C7.84255 11.514 5.97679 11.7136 3.96397 12.6089C1.95116 13.5042 0.553529 14.7563 0.842273 15.4054C1.13101 16.0546 2.9968 15.855 5.00959 14.9596Z" fill="white"/>+<path id="Vector_4" d="M7.88968 10.3427C7.99777 9.64051 6.32032 8.79961 4.14304 8.46448C1.96569 8.12935 0.113021 8.42695 0.00494272 9.12913C-0.103135 9.83131 1.57431 10.6722 3.75163 11.0073C5.92891 11.3425 7.78162 11.0449 7.88968 10.3427Z" fill="white"/>+<path id="Vector_5" d="M8.67148 8.67004C9.14197 8.13772 8.18524 6.52351 6.53455 5.06467C4.88389 3.6058 3.16435 2.85472 2.69386 3.38707C2.22337 3.91942 3.1801 5.53363 4.83079 6.99247C6.48148 8.45134 8.20102 9.20239 8.67148 8.67004Z" fill="white"/>+<path id="Vector_6" d="M10.2287 7.6924C10.9123 7.49896 10.9802 5.62375 10.3804 3.50404C9.78063 1.38432 8.74017 -0.177233 8.05656 0.01621C7.37295 0.209656 7.30503 2.08483 7.90482 4.20457C8.50464 6.32425 9.54507 7.88584 10.2287 7.6924Z" fill="white"/>+<path id="Vector_7" d="M14.4559 4.27054C15.0974 2.16307 15.0665 0.286897 14.3868 0.0800108C13.7071 -0.126878 12.6361 1.41386 11.9946 3.52135C11.3531 5.62879 11.384 7.50499 12.0637 7.71187C12.7434 7.91875 13.8144 6.37804 14.4559 4.27054Z" fill="white"/>+<path id="Vector_8" d="M17.4768 7.1182C19.1557 5.69188 20.1438 4.09672 19.6838 3.55528C19.2238 3.01384 17.4899 3.7312 15.811 5.15746C14.1321 6.58378 13.1441 8.17897 13.604 8.72041C14.064 9.26185 15.7979 8.54452 17.4768 7.1182Z" fill="white"/>+<path id="Vector_9" d="M18.4752 11.1479C20.6587 10.8558 22.3524 10.0482 22.2581 9.34396C22.164 8.6398 20.3175 8.30578 18.134 8.59786C15.9505 8.88997 14.2568 9.69763 14.351 10.4018C14.4452 11.106 16.2917 11.4401 18.4752 11.1479Z" fill="white"/>+<path id="Vector_10" d="M21.2919 15.6067C21.5934 14.9634 20.2208 13.6841 18.226 12.7492C16.2313 11.8143 14.3698 11.5781 14.0683 12.2214C13.7668 12.8647 15.1395 14.144 17.1342 15.0789C19.129 16.0137 20.9905 16.25 21.2919 15.6067Z" fill="white"/>+<path id="Vector_11" d="M17.0958 20.3534C17.6973 19.9753 17.2342 18.1569 16.0617 16.2919C14.889 14.427 13.4509 13.2217 12.8494 13.5999C12.248 13.978 12.711 15.7965 13.8836 17.6614C15.0562 19.5264 16.4944 20.7316 17.0958 20.3534Z" fill="white"/>+</g>+</svg>diff --git a/docs/app/(home)/cloud/observability/assets/trace-connector.svg b/docs/app/(home)/cloud/observability/assets/trace-connector.svgnew file mode 100644index 000000000..840b5c67b--- /dev/null+++ b/docs/app/(home)/cloud/observability/assets/trace-connector.svg@@ -0,0 +1,3 @@+<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="308.332" height="82.3323" viewBox="0 0 308.332 82.3323" fill="none" xmlns="http://www.w3.org/2000/svg">+<path id="Vector" d="M307.666 0.666146V40.9161H0.666146V81.6661" stroke="#030303" stroke-opacity="0.32" stroke-width="1.33229" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="1.07 5.33"/>+</svg>diff --git a/docs/app/(home)/cloud/observability/assets/trace-fail.svg b/docs/app/(home)/cloud/observability/assets/trace-fail.svgnew file mode 100644index 000000000..b3b9ae5cf--- /dev/null+++ b/docs/app/(home)/cloud/observability/assets/trace-fail.svg@@ -0,0 +1,11 @@+<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">+<g id="Icon" clip-path="url(#clip0_0_13)">+<path id="Vector" d="M24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24C18.6274 24 24 18.6274 24 12Z" fill="#B91C1C"/>+<path id="Vector_2" d="M7.8 7.8L16.2 16.2M16.2 7.8L7.8 16.2" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>+</g>+<defs>+<clipPath id="clip0_0_13">+<rect width="24" height="24" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/docs/app/(home)/cloud/observability/assets/trace-pass.svg b/docs/app/(home)/cloud/observability/assets/trace-pass.svgnew file mode 100644index 000000000..fc6a3f6ae--- /dev/null+++ b/docs/app/(home)/cloud/observability/assets/trace-pass.svg@@ -0,0 +1,11 @@+<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">+<g id="Icon" clip-path="url(#clip0_0_10)">+<path id="Vector" d="M24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24C18.6274 24 24 18.6274 24 12Z" fill="#049156"/>+<path id="Vector_2" d="M17.6002 7.8L9.90019 15.5L6.4002 12" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>+</g>+<defs>+<clipPath id="clip0_0_10">+<rect width="24" height="24" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/docs/app/(home)/cloud/observability/assets/trace-user.png b/docs/app/(home)/cloud/observability/assets/trace-user.pngnew file mode 100644index 000000000..61dc70b63Binary files /dev/null and b/docs/app/(home)/cloud/observability/assets/trace-user.png differdiff --git a/docs/app/(home)/cloud/observability/page.module.css b/docs/app/(home)/cloud/observability/page.module.cssindex 6c29b853d..2e038eef4 100644--- a/docs/app/(home)/cloud/observability/page.module.css+++ b/docs/app/(home)/cloud/observability/page.module.css@@ -25,14 +25,14 @@}/* Both hero lockups render this same title node, so the break is switched off- by default and only enabled at the width where the desktop hero takes over- (HeroSection swaps at min-width: 1024px). Below that the title wraps on its+ by default and only enabled at the width where this page's desktop hero takes+ over. Below that the title wraps on itsown and a hard break would land in the wrong place. */.titleBreak {display: none;}-@media (min-width: 1024px) {+@media (min-width: 900px) {.titleBreak {display: inline;}@@ -103,6 +103,50 @@height: auto;}+.sectionRhythm {+ /* One shared measure keeps feature, setup, trust and FAQ boundaries from+ accumulating unrelated one-off margins. */+ --observability-section-gap: 160px;+}++.integrationSection {+ width: 100%;+ padding-block: var(--observability-section-gap);+ /* Setup stays on the same surface as the feature flow and owns equal space+ above and below its content. */+ background: var(--openui-foreground);+}++.faqBand {+ padding: var(--observability-section-gap) var(--home-section-padding-inline);+}++.faqBand > section {+ margin-top: 0;+}++@media (max-width: 1279px) {+ .integrationSection > div {+ width: calc(100% - 64px);+ }+}++@media (max-width: 1023px) {+ .sectionRhythm {+ --observability-section-gap: 96px;+ }+}++@media (max-width: 767px) {+ .integrationSection {+ --cloud-code-min-height: 240px;+ }++ .integrationSection > div {+ width: calc(100% - 32px);+ }+}+.heroImageDark {display: none;}@@ -115,7 +159,7 @@display: block;}-@media (max-width: 1023px) {+@media (max-width: 899px) {.title {font-size: inherit;}diff --git a/docs/app/(home)/cloud/observability/page.tsx b/docs/app/(home)/cloud/observability/page.tsxindex e0ab4636c..a64837f84 100644--- a/docs/app/(home)/cloud/observability/page.tsx+++ b/docs/app/(home)/cloud/observability/page.tsx@@ -1,16 +1,52 @@import type { Metadata } from "next";import Image from "next/image";+import { ExternalTextLink } from "../../components/ExternalTextLink/ExternalTextLink";import styles from "../../page.module.css";+import type { GridFeature } from "../../sections/FeatureGridSection/FeatureGridSection";import { Footer } from "../../sections/Footer/Footer";-import { HeroSection, Tagline } from "../../sections/HeroSection/HeroSection";+import { HeroSection } from "../../sections/HeroSection/HeroSection";+import { EnterpriseSection } from "../EnterpriseSection";import { CloudCtaSection } from "./CloudCtaSection";import { EarlyAccessForm } from "./EarlyAccessForm";+import { FaqSection } from "./FaqSection";import { FeaturesSection } from "./FeaturesSection";+import { IntegrateSection } from "./IntegrateSection";import cloudStyles from "./page.module.css";+import { WhySection } from "./WhySection";++/* Three rows, not seven. An earlier version walked through capture modes, the+ beforeSend hook and sampling one at a time, which is a docs page wearing a+ marketing page's clothes. What a reader needs here is that it is secure,+ compliant, and that they decide what is sent; the API that makes the third+ one true belongs in the SDK reference. */+const TRUST_ITEMS: GridFeature[] = [+ {+ icon: "key",+ title: "Control what you send",+ description:+ "Choose metadata-only capture to keep generated responses in the browser. Edit or drop events before they’re sent.",+ },+ {+ icon: "shield",+ title: "No training on your data",+ description:+ "Your data is not used to train models. Self-hosting and VPC deployments are available on Scale.",+ },+ {+ icon: "database",+ title: "Compliance",+ description: (+ <>+ GDPR, SOC 2, and ISO 27001 details are available in the{" "}+ <ExternalTextLink href="https://trust.thesys.dev">Trust centre</ExternalTextLink>.+ </>+ ),+ },+];export const metadata: Metadata = {- title: "OpenUI Observability - User insights for AI agents",- description: "Understand what users need, where your agent falls short, and what to build next.",+ title: "OpenUI Observability - User analytics for AI agents",+ description: "See what users saw and did, where your agent fell short, and what to build next.",alternates: { canonical: "/cloud/observability" },};@@ -27,9 +63,10 @@ export const metadata: Metadata = {export default function ObservabilityPage() {return (<div className={styles.page}>- <div className={styles.heroShell}>+ <div className={`${styles.heroShell} ${cloudStyles.sectionRhythm}`}><HeroSectionalign="left"+ desktopFromTablettitle={<span className={cloudStyles.titleBlock}>{/* The same lockup Cloud uses, with the product name in the tag. */}@@ -39,14 +76,14 @@ export default function ObservabilityPage() {{/* The break is real markup but only takes effect on the desktoplockup; the mobile one shares this node and wraps on its own. */}<span className={cloudStyles.title}>- User insights <br className={cloudStyles.titleBreak} />+ User analytics <br className={cloudStyles.titleBreak} />for AI agents</span></span>}subtitle={<span className={cloudStyles.subtitle}>- Understand what users need, where your agent falls short, and what to build next.+ See what users saw and did, where your agent fell short, and what to build next.</span>}smallSubtitle@@ -65,6 +102,7 @@ export default function ObservabilityPage() {alt="OpenUI Observability insights preview"width={1280}height={600}+ unoptimizedpriority/><Image@@ -74,6 +112,7 @@ export default function ObservabilityPage() {aria-hidden="true"width={1280}height={600}+ unoptimizedpriority/></>@@ -86,6 +125,7 @@ export default function ObservabilityPage() {alt="OpenUI Observability insights preview"width={924}height={1040}+ unoptimizedpriority/><Image@@ -95,20 +135,29 @@ export default function ObservabilityPage() {aria-hidden="true"width={924}height={1040}+ unoptimizedpriority/></>}/>- {/* The large centred statement. */}- <Tagline>- Product Analytics that goes beyond traces.- <br />- For Product teams and SMEs.- </Tagline>-+ {/* Problem, then the features that answer it, then what it costs to adopt+ and what it costs you in data — the Gateway page's spine. */}+ <WhySection /><FeaturesSection />+ <IntegrateSection />++ <EnterpriseSection+ titleId="observability-trust"+ title="Secure, compliant, and under your control"+ className={cloudStyles.trustSection}+ features={TRUST_ITEMS}+ />++ <div className={cloudStyles.faqBand}>+ <FaqSection />+ </div><CloudCtaSection /></div><Footer />diff --git a/docs/app/(home)/cloud/page.tsx b/docs/app/(home)/cloud/page.tsxindex d3249a939..481b77995 100644--- a/docs/app/(home)/cloud/page.tsx+++ b/docs/app/(home)/cloud/page.tsx@@ -1,3 +1,11 @@+/* UNREACHABLE. next.config.mjs redirects /cloud to the home page, and a redirect+ wins over a route, so nothing here renders — editing it changes no live page.++ The file is kept, rather than deleted, as the source to mine while the home+ page absorbs the cloud pitch: the section order below is the argument /cloud+ used to make. Delete it, and any section beside it that nothing else imports,+ once that move is finished. CloudFeatureMarquee and CloudCtaSection are NOT+ only used here — the chat upgrade sheet and the benchmarks page import them. */import { ArrowUpRight } from "lucide-react";import type { Metadata } from "next";import Image from "next/image";@@ -72,14 +80,14 @@ export default function OpenUICloudPage() {href="https://console.thesys.dev/keys"externalvariant="primary"- label="Get API Key"+ label="Get API key"badge={<ArrowUpRight size={16} strokeWidth={2.25} />}/><BevelButtonhref="https://zcal.co/t/thesys/demo"externalvariant="secondary"- label="Get a demo"+ label="Book a demo"badge={<ArrowUpRight size={16} strokeWidth={2.25} />}/></div>diff --git a/docs/app/(home)/cloud/sections.module.css b/docs/app/(home)/cloud/sections.module.cssnew file mode 100644index 000000000..68f01d1fb--- /dev/null+++ b/docs/app/(home)/cloud/sections.module.css@@ -0,0 +1,355 @@+/* One stylesheet for every section below the Gateway hero. They share a spine —+ 1200px measure, the same heading scale, the same vertical rhythm — so keeping+ the rules in one file is what stops eight sections from drifting apart. */+.section {+ width: 100%;+ max-width: 1200px;+ margin: 120px auto;+ padding-inline: clamp(1.25rem, 5vw, 3rem);+}++/* Half the usual gap, for a section that continues the one above it rather than+ opening a new subject (the compatibility strip after the dashboards). */+.sectionTight {+ margin-top: 80px;+}++.heading {+ margin: 0;+ font-size: clamp(2rem, 4vw, 2.75rem);+ font-weight: 600;+ line-height: 1.15;+ letter-spacing: -0.02em;+ color: var(--openui-text-neutral-primary);+ text-wrap: balance;+}++.lead {+ max-width: 44rem;+ margin: 1.25rem 0 0;+ font-size: 1.125rem;+ line-height: 1.6;+ color: var(--openui-text-neutral-secondary);+ text-wrap: pretty;+}++.link {+ display: inline-flex;+ align-items: center;+ gap: 6px;+ margin-top: 1.25rem;+ font-size: 1.0625rem;+ color: var(--openui-text-neutral-primary);+ text-decoration: none;+ border-bottom: 1px solid currentColor;+ padding-bottom: 2px;+ width: fit-content;+}++.link:hover {+ opacity: 0.7;+}++/* ---- Definition rows: a short term against a longer description. Used by the+ failure taxonomy, the three repair layers, and the plain feature lists. ---- */+.rows {+ display: grid;+ gap: 0;+ margin: 2.5rem 0 0;+ padding: 0;+ list-style: none;+}++.row {+ display: flex;+ align-items: baseline;+ gap: clamp(1rem, 4vw, 3rem);+ padding: 1.25rem 0;+ border-top: 1px solid var(--openui-border-subtle, rgba(10, 10, 10, 0.12));+}++.row:last-child {+ border-bottom: 1px solid var(--openui-border-subtle, rgba(10, 10, 10, 0.12));+}++[data-theme="dark"] .row {+ border-top-color: rgba(255, 255, 255, 0.14);+}++[data-theme="dark"] .row:last-child {+ border-bottom-color: rgba(255, 255, 255, 0.14);+}++/* Wide enough for "36%" and for "Correction" without wrapping either. */+.term {+ flex: 0 0 auto;+ min-width: 8.5rem;+ font-size: 1.0625rem;+ font-weight: 600;+ color: var(--openui-text-neutral-primary);+}++.desc {+ flex: 1 1 auto;+ margin: 0;+ font-size: 1.0625rem;+ line-height: 1.55;+ color: var(--openui-text-neutral-secondary);+ text-wrap: pretty;+}++/* The paragraph that closes a section, set slightly larger than the rows above+ it because it carries the point they were building to. */+.closer {+ max-width: 44rem;+ margin: 2.5rem 0 0;+ font-size: 1.125rem;+ line-height: 1.6;+ color: var(--openui-text-neutral-secondary);+ text-wrap: pretty;+}++.code {+ margin-top: 2.5rem;+}++.note {+ margin: 1.25rem 0 0;+ font-size: 0.9375rem;+ line-height: 1.55;+ color: var(--openui-text-neutral-secondary);+}++.proof {+ margin-top: 3.5rem;+}++/* ---- Pricing ---- */+.priceStrip {+ display: flex;+ flex-wrap: wrap;+ gap: 0.5rem 1.5rem;+ margin: 2rem 0 0;+ padding: 0;+ list-style: none;+ font-size: 0.9375rem;+ color: var(--openui-text-neutral-secondary);+}++.tableWrap {+ margin-top: 2.5rem;+}++.traceTable th:first-child {+ width: 28%;+}++.planName {+ font-weight: 600;+ color: var(--openui-text-neutral-primary);+}++.planPrice {+ display: block;+ margin-top: 2px;+ font-size: 0.875rem;+ font-weight: 400;+ color: var(--openui-text-neutral-secondary);+}++/* ---- FAQ ---- */+.faqList {+ margin-top: 2.5rem;+ border-top: 1px solid var(--openui-border-subtle, rgba(10, 10, 10, 0.12));+}++[data-theme="dark"] .faqList {+ border-top-color: rgba(255, 255, 255, 0.14);+}++.faqItem {+ border-bottom: 1px solid var(--openui-border-subtle, rgba(10, 10, 10, 0.12));+}++[data-theme="dark"] .faqItem {+ border-bottom-color: rgba(255, 255, 255, 0.14);+}++.faqQuestion {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 1.5rem;+ padding: 1.375rem 0;+ font-size: 1.0625rem;+ font-weight: 500;+ color: var(--openui-text-neutral-primary);+ cursor: pointer;+ list-style: none;+}++.faqQuestion::-webkit-details-marker {+ display: none;+}++.faqMarker {+ flex: 0 0 auto;+ font-size: 1.25rem;+ line-height: 1;+ color: var(--openui-text-neutral-secondary);+}++.faqItem[open] .faqMarker {+ transform: rotate(45deg);+}++.faqAnswer {+ padding-bottom: 1.5rem;+}++.faqAnswer p {+ max-width: 48rem;+ margin: 0 0 0.75rem;+ font-size: 1rem;+ line-height: 1.6;+ color: var(--openui-text-neutral-secondary);+}++.faqAnswer p:last-child {+ margin-bottom: 0;+}++@media (max-width: 767px) {+ .section {+ margin: 80px auto;+ }++ .row {+ flex-direction: column;+ gap: 0.375rem;+ }++ .term {+ min-width: 0;+ }+}++/* An anchor sitting inside a .term, which is already bold and coloured. Without+ this it would pick up the document's default link colour and break the row. */+.termLink {+ color: inherit;+ text-decoration: none;+ border-bottom: 1px solid currentColor;+ padding-bottom: 1px;+}++.termLink:hover {+ opacity: 0.7;+}++/* A row of sibling links under a lead, for a claim that cites more than one+ place. Sits tighter than a lone .link because it is a pair, not a CTA. */+.linkRow {+ display: flex;+ flex-wrap: wrap;+ align-items: center;+ gap: 0.5rem 1.5rem;+ margin-top: 1.25rem;+}++.linkRow .link {+ margin-top: 0;+}++/* The one measured number a section is built around, set between the lead and+ the rows that break it down. */+.stat {+ margin: 2.5rem 0 0;+ font-size: clamp(1.25rem, 2.5vw, 1.625rem);+ font-weight: 600;+ line-height: 1.3;+ letter-spacing: -0.01em;+ color: var(--openui-text-neutral-primary);+}++/* Scaffolding for artwork that has not been made yet. Deliberately plain and+ obviously unfinished — a dashed box reads as "missing" at a glance, where a+ filled grey panel would read as a design decision. Replace the whole block+ with the image when the diagram lands, and delete these rules with it. */+.artPlaceholder {+ display: flex;+ align-items: center;+ justify-content: center;+ margin-top: 2.5rem;+ padding: clamp(1.5rem, 4vw, 3rem);+ /* Matches the feature art elsewhere on the site (720 × 400), so the section+ keeps its height when the real diagram replaces this. */+ aspect-ratio: 720 / 400;+ border: 1px dashed var(--openui-border-subtle, rgba(10, 10, 10, 0.28));+ border-radius: 24px;+}++[data-theme="dark"] .artPlaceholder {+ border-color: rgba(255, 255, 255, 0.22);+}++.artPlaceholderLabel {+ max-width: 34rem;+ margin: 0;+ font-size: 0.9375rem;+ line-height: 1.6;+ text-align: center;+ color: var(--openui-text-neutral-secondary);+ text-wrap: pretty;+}++/* ---- Stepper: the definition rows above, but each step can carry its own code+ block underneath. Separate from .rows because the border logic moves to the+ step wrapper once a row is no longer a single line. ---- */+.steps {+ margin: 2.5rem 0 0;+ padding: 0;+ list-style: none;+}++.step {+ padding: 1.5rem 0;+ border-top: 1px solid var(--openui-border-subtle, rgba(10, 10, 10, 0.12));+}++.step:last-child {+ border-bottom: 1px solid var(--openui-border-subtle, rgba(10, 10, 10, 0.12));+}++[data-theme="dark"] .step {+ border-top-color: rgba(255, 255, 255, 0.14);+}++[data-theme="dark"] .step:last-child {+ border-bottom-color: rgba(255, 255, 255, 0.14);+}++.stepHead {+ display: flex;+ align-items: baseline;+ gap: clamp(1rem, 4vw, 3rem);+}++/* Indented to start where the descriptions start, so the code reads as part of+ the step rather than as a new section. The inline size matches .term's+ min-width plus the head's gap. */+.stepCode {+ margin-top: 1.25rem;+ margin-left: calc(8.5rem + clamp(1rem, 4vw, 3rem));+}++@media (max-width: 767px) {+ .stepHead {+ flex-direction: column;+ gap: 0.375rem;+ }++ .stepCode {+ margin-left: 0;+ }+}diff --git a/docs/app/(home)/components/AgentPicker/AgentPicker.module.css b/docs/app/(home)/components/AgentPicker/AgentPicker.module.cssnew file mode 100644index 000000000..ea480f051--- /dev/null+++ b/docs/app/(home)/components/AgentPicker/AgentPicker.module.css@@ -0,0 +1,227 @@+/* A row of circular agent buttons carrying the site's bevel. Only the first is+ visible at rest; the rest sit under it, out of flow, so revealing them never+ reflows the row around it. */+.picker {+ --agent-size: 3rem;+ --agent-gap: 0.5rem;+ --agent-stride: calc(var(--agent-size) + var(--agent-gap));++ /* The bevel tokens live on the home page's theme, so they are undefined in the+ site header and the buttons there would come out flat and transparent. Pinned+ locally, the same way GitHubButton does it, so the circles carry the bevel+ wherever they are used. */+ --home-surface-ink: #0a0a0a;+ --home-surface-raised: #f7f7f8;+ --home-bevel:+ inset 0 2px 1px -0.5px rgba(255, 255, 255, 1), inset 0 -3px 6px -1px rgba(0, 0, 0, 0.1);+ --home-bevel-on-dark:+ inset 0 7px 12px -6px rgba(255, 255, 255, 0.16), inset 0 -5px 8px -2px rgba(0, 0, 0, 0.6);++ position: relative;+ display: flex;+ align-items: center;+ gap: var(--agent-gap);+ flex-shrink: 0;+}++/* Matches the compact GitHub button in the header. */+.pickerCompact {+ --agent-size: 2.5rem;+}++.option {+ position: relative;+ display: grid;+ place-items: center;+ flex-shrink: 0;+ width: var(--agent-size);+ height: var(--agent-size);+ padding: 0;+ border: 1px solid rgba(0, 0, 0, 0.08);+ border-radius: var(--openui-radius-full);+ background: var(--home-surface-raised);+ box-shadow: var(--home-bevel);+ color: var(--openui-text-neutral-primary);+ cursor: pointer;+}++[data-theme="dark"] .option {+ border-color: rgba(255, 255, 255, 0.1);+ background: var(--home-surface-ink);+ box-shadow: var(--home-bevel-on-dark);+}++/* Sized as a fraction of the circle rather than in rem, so the compact variant+ is an exact scale-down of the full-size one rather than its own proportions.+ 20/48 and 26/48 are the full-size measurements. */+/* Tooltip. Held back behind a delay, so sweeping the pointer across the row on+ the way somewhere else never leaves a trail of labels. It goes away at once on+ leaving: the delay is only on the way in. */+.option::after {+ content: attr(data-tip);+ position: absolute;+ top: calc(100% + 0.5rem);+ left: 50%;+ z-index: 3;+ padding: 0.25rem 0.5rem;+ /* Sits with the page rather than against it: light on light, dark on dark. The+ colours are pinned rather than taken from --openui-text-neutral-primary,+ which the home theme holds at near-black on both themes. */+ border: 1px solid rgba(0, 0, 0, 0.08);+ border-radius: 0.375rem;+ background: #ffffff;+ box-shadow:+ 0 4px 10px -6px rgba(10, 10, 10, 0.24),+ 0 1px 3px -2px rgba(10, 10, 10, 0.12);+ color: #17171b;+ font-family: var(--home-font-text, "Inter", sans-serif);+ font-size: 0.75rem;+ line-height: 1.4;+ white-space: nowrap;+ pointer-events: none;+ opacity: 0;+ transform: translate(-50%, -0.25rem);+ transition:+ opacity 0.12s ease,+ transform 0.12s ease;+}++[data-theme="dark"] .option::after {+ border-color: rgba(255, 255, 255, 0.1);+ background: #1c1c1f;+ box-shadow:+ 0 4px 10px -6px rgba(0, 0, 0, 0.8),+ 0 1px 3px -2px rgba(0, 0, 0, 0.6);+ color: rgba(255, 255, 255, 0.92);+}++.option:hover::after,+.option:focus-visible::after {+ opacity: 1;+ transform: translate(-50%, 0);+ transition-delay: 0.5s;+}++.mark {+ width: calc(var(--agent-size) * 0.4167);+ height: calc(var(--agent-size) * 0.4167);+ object-fit: contain;+ transition: transform 0.15s ease;+}++/* Scaled rather than resized, so the mark grows without nudging the circle. */+.option:hover .mark {+ transform: scale(1.15);+}++/* OpenAI's mark is drawn small inside its own box, so it needs a nudge to carry+ the same weight as Claude's and Cursor's. */+.markWide {+ width: calc(var(--agent-size) * 0.5417);+ height: calc(var(--agent-size) * 0.5417);+}++/* Cursor's and Codex's marks are drawn in near-black and would disappear on the+ dark page, so those are knocked out to white. Claude's carries its own colour,+ so it is left alone on both themes. */+[data-theme="dark"] .markInvert {+ filter: brightness(0) invert(1);+}++/* Reveal. Only where there is a pointer to hover with: without one the extras+ would be unreachable, so they simply stay out. */+@media (hover: hover) {+ /* Bridges the gaps between the circles once they are out. Without it the+ pointer leaves the picker's box the moment it crosses a gap, and the row+ collapses before it can be reached. Left unpositioned in the stacking order+ so it sits, and hit-tests, below the buttons and never swallows a click. */+ .picker::after {+ content: "";+ position: absolute;+ top: 0;+ left: 0;+ width: var(--agent-size);+ height: 100%;+ transition: width 0.18s cubic-bezier(0.22, 1, 0.36, 1);+ }++ .pickerLeft::after {+ left: auto;+ right: 0;+ }++ .picker:hover::after,+ .picker:focus-within::after {+ width: calc(2 * var(--agent-stride) + var(--agent-size));+ }++ /* The anchor stays above the two that slide out from under it, and both stay+ above the bridge. */+ .picker > .option {+ position: relative;+ z-index: 2;+ }++ .picker > .option:nth-child(2),+ .picker > .option:nth-child(3) {+ position: absolute;+ top: 0;+ z-index: 1;+ opacity: 0;+ pointer-events: none;+ /* Swift: they start tucked under the anchor and travel out to their own+ place. */+ transition:+ transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),+ opacity 0.12s ease;+ }++ .picker > .option:nth-child(2) {+ left: var(--agent-stride);+ transform: translateX(calc(-1 * var(--agent-stride)));+ }++ .picker > .option:nth-child(3) {+ left: calc(2 * var(--agent-stride));+ transform: translateX(calc(-2 * var(--agent-stride)));+ }++ /* Mirrored: the row grows back towards the left instead. */+ .pickerLeft > .option:nth-child(2) {+ left: auto;+ right: var(--agent-stride);+ transform: translateX(var(--agent-stride));+ }++ .pickerLeft > .option:nth-child(3) {+ left: auto;+ right: calc(2 * var(--agent-stride));+ transform: translateX(calc(2 * var(--agent-stride)));+ }++ .picker:hover > .option:nth-child(2),+ .picker:focus-within > .option:nth-child(2),+ .picker:hover > .option:nth-child(3),+ .picker:focus-within > .option:nth-child(3) {+ opacity: 1;+ pointer-events: auto;+ transform: translateX(0);+ }++ /* The outer one trails the inner one, so they cascade rather than move as a+ block. */+ .picker:hover > .option:nth-child(3),+ .picker:focus-within > .option:nth-child(3) {+ transition-delay: 0.04s;+ }+}++@media (prefers-reduced-motion: reduce) {+ .picker > .option {+ transition: opacity 0.12s ease;+ }++ .option:hover .mark {+ transform: none;+ }+}diff --git a/docs/app/(home)/components/AgentPicker/AgentPicker.tsx b/docs/app/(home)/components/AgentPicker/AgentPicker.tsxnew file mode 100644index 000000000..b97a1de38--- /dev/null+++ b/docs/app/(home)/components/AgentPicker/AgentPicker.tsx@@ -0,0 +1,141 @@+"use client";++import { copyText } from "@/lib/copy-text";+import { Check } from "lucide-react";+import { useEffect, useRef, useState } from "react";+import styles from "./AgentPicker.module.css";++// Coding agents the create flow can install the OpenUI skill for. The first one+// is the anchor: it is always visible, and the rest slide out from under it.+// `slug` is the CLI's --agent-name value. `wideMark` is for marks drawn small in+// their own box, which need a nudge to sit at the same visual weight as the+// rest. `invertOnDark` is for marks drawn in near-black, which would disappear+// on the dark page; marks with colour of their own keep it on both themes.+/* What each agent button puts on the clipboard. A prompt to paste into an+ agent, not a shell command: it is copied verbatim, with nothing appended. */+export const AGENT_SETUP_PROMPT =+ "Visit OpenUI.com/docs and set up my first Generative UI agent using the recommended OpenUI stack.";++export const AGENTS = [+ {+ id: "claude",+ label: "Claude",+ mark: "https://cdn.simpleicons.org/claude",+ wideMark: false,+ invertOnDark: false,+ },+ {+ id: "cursor",+ label: "Cursor",+ mark: "https://cdn.simpleicons.org/cursor",+ wideMark: false,+ invertOnDark: true,+ },+ {+ id: "codex",+ label: "Codex",+ mark: "/brand-icons/openai.svg",+ wideMark: true,+ invertOnDark: true,+ },+] as const;++const COPY_FEEDBACK_MS = 1800;++function AgentButton({+ agent,+ command,+ onCopy,+}: {+ agent: (typeof AGENTS)[number];+ command: string;+ onCopy?: (command: string) => void;+}) {+ const [copied, setCopied] = useState(false);+ const resetTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);++ useEffect(() => {+ return () => {+ if (resetTimeoutRef.current) {+ clearTimeout(resetTimeoutRef.current);+ }+ };+ }, []);++ const handleClick = async () => {+ if (!(await copyText(command))) return;+ onCopy?.(command);+ setCopied(true);+ if (resetTimeoutRef.current) {+ clearTimeout(resetTimeoutRef.current);+ }+ resetTimeoutRef.current = setTimeout(() => setCopied(false), COPY_FEEDBACK_MS);+ };++ return (+ <button+ type="button"+ onClick={handleClick}+ className={styles.option}+ aria-label={`Copy the setup prompt for ${agent.label}`}+ /* data-tip rather than title: the styled tooltip below reads it, and the+ native one would otherwise show up alongside it. aria-label already+ carries the accessible name. */+ data-tip="Copy prompt"+ >+ {copied ? (+ <Check size={18} strokeWidth={2.5} aria-hidden="true" />+ ) : (+ // eslint-disable-next-line @next/next/no-img-element+ <img+ className={`${styles.mark} ${agent.wideMark ? styles.markWide : ""} ${+ agent.invertOnDark ? styles.markInvert : ""+ }`+ .replace(/\s+/g, " ")+ .trim()}+ src={agent.mark}+ alt=""+ aria-hidden="true"+ width={20}+ height={20}+ />+ )}+ </button>+ );+}++/**+ * A row of circular agent buttons. Only the first is visible at rest; hovering+ * the group slides the others out from under it, to the right by default or to+ * the left where the row sits against the edge of its container.+ *+ * Driven by CSS :hover rather than state, so the extras stay out while the+ * pointer is on them (hover propagates from a descendant to its ancestor).+ */+export function AgentPicker({+ command,+ className = "",+ direction = "right",+ compact = false,+ onCopy,+}: {+ command: string;+ className?: string;+ direction?: "left" | "right";+ compact?: boolean;+ onCopy?: (command: string) => void;+}) {+ return (+ <div+ className={`${styles.picker} ${direction === "left" ? styles.pickerLeft : ""} ${+ compact ? styles.pickerCompact : ""+ } ${className}`+ .replace(/\s+/g, " ")+ .trim()}+ >+ {AGENTS.map((agent) => (+ <AgentButton key={agent.id} agent={agent} command={command} onCopy={onCopy} />+ ))}+ </div>+ );+}diff --git a/docs/app/(home)/components/ExternalTextLink/ExternalTextLink.module.css b/docs/app/(home)/components/ExternalTextLink/ExternalTextLink.module.cssnew file mode 100644index 000000000..d58a7ff3b--- /dev/null+++ b/docs/app/(home)/components/ExternalTextLink/ExternalTextLink.module.css@@ -0,0 +1,37 @@+.link[href] {+ display: inline-flex;+ align-items: baseline;+ gap: 0.2em;+ border-radius: 3px;+ color: var(--openui-text-neutral-primary);+ font-weight: inherit;+ text-decoration: none;+ transition: background-color 160ms ease;+}++.label {+ text-decoration: none;+}++.arrow {+ position: relative;+ top: 0.08em;+ flex: 0 0 auto;+ width: 0.8em;+ height: 0.8em;+}++.link:hover {+ background-color: color-mix(in srgb, currentColor 6%, transparent);+}++.link:focus-visible {+ outline: 2px solid currentColor;+ outline-offset: 4px;+}++@media (prefers-reduced-motion: reduce) {+ .link {+ transition: none;+ }+}diff --git a/docs/app/(home)/components/ExternalTextLink/ExternalTextLink.tsx b/docs/app/(home)/components/ExternalTextLink/ExternalTextLink.tsxnew file mode 100644index 000000000..de23ec857--- /dev/null+++ b/docs/app/(home)/components/ExternalTextLink/ExternalTextLink.tsx@@ -0,0 +1,25 @@+import { ArrowUpRight } from "lucide-react";+import type { ReactNode } from "react";+import styles from "./ExternalTextLink.module.css";++export function ExternalTextLink({+ href,+ children,+ className,+}: {+ href: string;+ children: ReactNode;+ className?: string;+}) {+ return (+ <a+ className={[styles.link, className].filter(Boolean).join(" ")}+ href={href}+ target="_blank"+ rel="noopener noreferrer"+ >+ <span className={styles.label}>{children}</span>+ <ArrowUpRight className={styles.arrow} aria-hidden="true" size={14} strokeWidth={1.75} />+ </a>+ );+}diff --git a/docs/app/(home)/components/MobileAccordion/useSingleOpenAccordion.ts b/docs/app/(home)/components/MobileAccordion/useSingleOpenAccordion.tsindex 259561617..87f74c400 100644--- a/docs/app/(home)/components/MobileAccordion/useSingleOpenAccordion.ts+++ b/docs/app/(home)/components/MobileAccordion/useSingleOpenAccordion.ts@@ -1,6 +1,6 @@"use client";-import { useCallback, useState, type KeyboardEvent } from "react";+import { useCallback, useState, type KeyboardEvent, type MouseEvent } from "react";/*** Props the hook hands to each accordion row. This is the EXACT attribute set@@ -13,7 +13,7 @@ export interface AccordionToggleProps {role: "button";tabIndex: 0;"aria-expanded": boolean;- onClick: () => void;+ onClick: (event: MouseEvent) => void;onKeyDown: (event: KeyboardEvent) => void;}@@ -40,10 +40,7 @@ export interface UseSingleOpenAccordion {export function useSingleOpenAccordion(): UseSingleOpenAccordion {const [openIndex, setOpenIndex] = useState<number | null>(null);- const isOpen = useCallback(- (index: number) => openIndex === index,- [openIndex],- );+ const isOpen = useCallback((index: number) => openIndex === index, [openIndex]);const getToggleProps = useCallback((index: number): AccordionToggleProps => {@@ -54,8 +51,18 @@ export function useSingleOpenAccordion(): UseSingleOpenAccordion {role: "button",tabIndex: 0,"aria-expanded": open,- onClick: toggle,+ onClick: (event: MouseEvent) => {+ // Embedded links keep their own navigation and must not collapse the row.+ if (+ event.target instanceof Element &&+ event.target.closest("a, button, input, select, textarea")+ ) {+ return;+ }+ toggle();+ },onKeyDown: (event: KeyboardEvent) => {+ if (event.target !== event.currentTarget) return;if (event.key === "Enter" || event.key === " ") {event.preventDefault();toggle();diff --git a/docs/app/(home)/components/ProofLine/ProofLine.module.css b/docs/app/(home)/components/ProofLine/ProofLine.module.cssnew file mode 100644index 000000000..f6786cda8--- /dev/null+++ b/docs/app/(home)/components/ProofLine/ProofLine.module.css@@ -0,0 +1,48 @@+.line {+ display: flex;+ align-items: center;+ gap: 16px;+ width: 100%;+ /* Wraps to two rows on narrow screens, where a wordmark plus a full sentence+ has no chance of sharing a line. */+ flex-wrap: wrap;+}++.markLink {+ display: inline-flex;+ text-decoration: none;+}++.logo {+ height: 1.75rem;+ width: auto;+ flex: 0 0 auto;+ /* Same silhouette as LogoStrip: the marks are multi-coloured at rest and+ would pull focus from the claim beside them. */+ opacity: 0.65;+ filter: brightness(0);+}++[data-theme="dark"] .logo {+ filter: brightness(0) invert(1);+}++.markLink:hover .logo,+.markLink:focus-visible .logo {+ opacity: 1;+}++.claim {+ flex: 1 1 20rem;+ margin: 0;+ font-size: 1.0625rem;+ line-height: 1.5;+ color: var(--openui-text-neutral-secondary);+ text-wrap: pretty;+}++@media (min-width: 768px) {+ .logo {+ height: 2rem;+ }+}diff --git a/docs/app/(home)/components/ProofLine/ProofLine.tsx b/docs/app/(home)/components/ProofLine/ProofLine.tsxnew file mode 100644index 000000000..7b1eed664--- /dev/null+++ b/docs/app/(home)/components/ProofLine/ProofLine.tsx@@ -0,0 +1,47 @@+import type { ReactNode } from "react";+import styles from "./ProofLine.module.css";++export interface ProofLineProps {+ /* A monochrome customer logo from /public/logos, given the same silhouette+ treatment LogoStrip uses so the two read as the same family. */+ logoSrc: string;+ /* The customer's name. Every logo in /public/logos is a wordmark, so this is+ the image's alt text rather than a second visible label — writing the name+ again beside the mark would say it twice. */+ company: string;+ /* The claim, with the company name left out: the wordmark opens the line and+ the sentence continues from it ("<mark> shipped X to do Y"). */+ children: ReactNode;+ /* Optional link on the mark, for customers happy to be linked. */+ href?: string;+}++/* One line of customer proof, sized to sit under a section rather than beside+ it. Deliberately not a section of its own: it carries no heading, takes the+ width of whatever hosts it, and stays quiet enough to follow a feature block+ without interrupting the page's rhythm. */+export function ProofLine({ logoSrc, company, children, href }: ProofLineProps) {+ const mark = (+ <img+ className={styles.logo}+ src={logoSrc}+ alt={company}+ width={160}+ height={48}+ loading="lazy"+ />+ );++ return (+ <aside className={styles.line}>+ {href ? (+ <a className={styles.markLink} href={href} target="_blank" rel="noreferrer">+ {mark}+ </a>+ ) : (+ mark+ )}+ <p className={styles.claim}>{children}</p>+ </aside>+ );+}diff --git a/docs/app/(home)/components/SectionHeader/SectionHeader.module.css b/docs/app/(home)/components/SectionHeader/SectionHeader.module.cssindex f4b8589ab..17198603c 100644--- a/docs/app/(home)/components/SectionHeader/SectionHeader.module.css+++ b/docs/app/(home)/components/SectionHeader/SectionHeader.module.css@@ -45,9 +45,8 @@color: var(--openui-text-neutral-secondary);}-/* Cloud .subtitle L51-60: dark tone => margin-top + dimmed white. */+/* The Cloud tone changes color, not the shared title/subtitle spacing. */.subtitle[data-tone="dark"] {- margin: 0.5rem 0 0;color: rgba(255, 255, 255, 0.45);}@@ -69,3 +68,11 @@line-height: var(--home-body-leading);color: var(--openui-text-neutral-secondary);}++.caption[data-tone="dark"] {+ color: rgba(255, 255, 255, 0.6);+}++[data-theme="dark"] .caption[data-tone="dark"] {+ color: rgba(10, 10, 10, 0.6);+}diff --git a/docs/app/(home)/components/SectionHeader/SectionHeader.tsx b/docs/app/(home)/components/SectionHeader/SectionHeader.tsxindex 7afe33e34..866671def 100644--- a/docs/app/(home)/components/SectionHeader/SectionHeader.tsx+++ b/docs/app/(home)/components/SectionHeader/SectionHeader.tsx@@ -20,7 +20,7 @@ export interface SectionHeaderProps {caption?: ReactNode;/*** light (default) | dark. dark = Cloud (white title /- * rgba(255,255,255,0.45) subtitle + subtitle margin-top 0.5rem).+ * rgba(255,255,255,0.45) subtitle with the same shared spacing).*/tone?: SectionHeaderTone;/**@@ -57,7 +57,11 @@ export function SectionHeader({{subtitle}</p>)}- {caption != null && <p className={styles.caption}>{caption}</p>}+ {caption != null && (+ <p className={styles.caption} data-tone={toneAttr}>+ {caption}+ </p>+ )}{children}</>);diff --git a/docs/app/(home)/components/StackChip/StackChip.module.css b/docs/app/(home)/components/StackChip/StackChip.module.cssindex e38a8ae66..3367ed5f6 100644--- a/docs/app/(home)/components/StackChip/StackChip.module.css+++ b/docs/app/(home)/components/StackChip/StackChip.module.css@@ -151,3 +151,47 @@white-space: nowrap;color: var(--openui-text-neutral-primary);}++/* Logo-only variant for diagrams; regular chips keep their existing sizing. */+.chipIconOnly {+ width: var(--stack-logo-size, 44px);+ height: var(--stack-logo-size, 44px);+ padding: 0;+ border: 0;+ background: transparent;+}++.chipIconOnly .badge {+ width: var(--stack-logo-size, 44px);+ height: var(--stack-logo-size, 44px);+}++.chipIconOnly .badgeImage,+.chipIconOnly .iconSvg,+.chipIconOnly .mascotSvg {+ width: 24px;+ height: 24px;+}++.chipIconOnly .badgeImage[src*="xai"] {+ width: 20px;+ height: 20px;+}++.chipIconOnly .badgeText,+.chipIconOnly .moreIcon {+ font-size: 20px;+}++.chipIconOnly .badgeBlack .badgeText {+ color: var(--openui-text-white);+}++.chipIconOnly .chipLabel {+ position: absolute;+ width: 1px;+ height: 1px;+ overflow: hidden;+ clip-path: inset(50%);+ white-space: nowrap;+}diff --git a/docs/app/(home)/components/StackChip/StackChip.tsx b/docs/app/(home)/components/StackChip/StackChip.tsxindex a52e7b2a2..67d8998fa 100644--- a/docs/app/(home)/components/StackChip/StackChip.tsx+++ b/docs/app/(home)/components/StackChip/StackChip.tsx@@ -37,11 +37,7 @@ interface MoreStackChip extends StackChipBase {}export type StackChipItem =- | ImageStackChip- | VectorStackChip- | MascotStackChip- | TextStackChip- | MoreStackChip;+ ImageStackChip | VectorStackChip | MascotStackChip | TextStackChip | MoreStackChip;function ChipIcon({ item }: { item: StackChipItem }) {const iconId = useId();@@ -100,10 +96,19 @@ function ChipIcon({ item }: { item: StackChipItem }) {}}-export function StackChip({ item, dense = false }: { item: StackChipItem; dense?: boolean }) {+export function StackChip({+ item,+ dense = false,+ iconOnly = false,+}: {+ item: StackChipItem;+ dense?: boolean;+ iconOnly?: boolean;+}) {const chipClassName = [styles.chip,dense ? styles.chipDense : "",+ iconOnly ? styles.chipIconOnly : "",item.isBlurred ? styles.chipBlurred : "",].filter(Boolean)diff --git a/docs/app/(home)/layout.tsx b/docs/app/(home)/layout.tsxindex b88e7e3f0..a77e60164 100644--- a/docs/app/(home)/layout.tsx+++ b/docs/app/(home)/layout.tsx@@ -5,6 +5,9 @@ import { Navbar } from "./sections/Navbar/Navbar";export default function Layout({ children }: { children: React.ReactNode }) {return (<WebsiteThemeProvider>+ {process.env.NODE_ENV === "development" ? (+ <script src="https://mcp.figma.com/mcp/html-to-design/capture.js" async />+ ) : null}<Navbar /><div className="homeTheme">{children}</div></WebsiteThemeProvider>diff --git a/docs/app/(home)/page.module.css b/docs/app/(home)/page.module.cssindex d8588216b..cae907cfe 100644--- a/docs/app/(home)/page.module.css+++ b/docs/app/(home)/page.module.css@@ -7,6 +7,9 @@}.heroShell {+ /* The tagline used to close this block out; with it hidden the logo strip sat+ flush against the content section below. */+ padding-bottom: clamp(3rem, 6vw, 5rem);background: var(--openui-foreground);}@@ -22,10 +25,24 @@);}+/* The Lang band sits straight in the shell, which has no gutters of its own,+ so it gets the same inline padding the other sections apply themselves. */+.langBand {+ box-sizing: border-box;+ width: 100%;+ /* Mirrors CloudSection's .inner, so the Lang band lines up with the Gateway+ and Observability bands below it rather than sitting 40px wider. */+ max-width: var(--home-container-max);+ margin-inline: auto;+ padding-inline: clamp(1.25rem, 4vw, 2.5rem);+}++/* NB: both breakpoints below override this gap, so editing it here has no+ visible effect. Change the media queries instead. */.contentShell {display: flex;flex-direction: column;- gap: 7.5rem;+ gap: 5rem;padding-block: 8rem;}@@ -35,7 +52,7 @@@media (min-width: 768px) {.contentShell {- gap: 15rem;+ gap: 5.5rem;}.contentShellTight {@@ -58,6 +75,11 @@margin-top: 0;}+.faqBand {+ box-sizing: border-box;+ width: 100%;+}+/* Mobile-only: tighten the vertical rhythm so the page isn't sparse on phones. */@media (max-width: 767px) {.contentSection {@@ -68,6 +90,10 @@gap: 7rem;padding-block: 4rem;}++ .faqBand {+ padding-inline: 1.25rem;+ }}/* Dark mode: mirror light mode. The top of the page is black (light mode = white),@@ -87,4 +113,3 @@#000);}-diff --git a/docs/app/(home)/page.tsx b/docs/app/(home)/page.tsxindex 52b7e82cf..8163e267c 100644--- a/docs/app/(home)/page.tsx+++ b/docs/app/(home)/page.tsx@@ -1,15 +1,18 @@import type { Metadata } from "next";+import { AGENT_SETUP_PROMPT, AgentPicker } from "./components/AgentPicker/AgentPicker";import styles from "./page.module.css";import { CloudBanner } from "./sections/CloudBanner/CloudBanner";import { CloudSection } from "./sections/CloudSection/CloudSection";+import { FaqSection } from "./sections/FaqSection/FaqSection";import { FeatureGridSection } from "./sections/FeatureGridSection/FeatureGridSection";import { Footer } from "./sections/Footer/Footer";-import { HeroSection, Tagline } from "./sections/HeroSection/HeroSection";+import { HeroSection } from "./sections/HeroSection/HeroSection";import { LogoStrip } from "./sections/LogoStrip/LogoStrip";+import { OpenSourceIllustration } from "./sections/ProductIllustrations/ProductIllustrations";+import { ProductSection } from "./sections/ProductSection/ProductSection";+import { LANG_PRODUCT } from "./sections/ProductSection/products";import { ShiroPeek } from "./sections/ShiroPeek/ShiroPeek";-import { StackDiagramSection } from "./sections/StackDiagramSection/StackDiagramSection";import { TweetWallSection } from "./sections/TweetWallSection/TweetWallSection";-import { UseCasesSection } from "./sections/UseCasesSection/UseCasesSection";export const metadata: Metadata = {alternates: {@@ -23,29 +26,42 @@ export default function HomePage() {<div className={styles.heroShell}><HeroSectionalign="left"+ desktopFromTabletsubtitle="Open Standard for Generative UI"showPlaygroundButton={false}showTagline={false}+ commandTrailing={<AgentPicker command={AGENT_SETUP_PROMPT} />}/* No GitHub CTA in the hero on either breakpoint: the header carriesthe star count already. Dropping githubRepoUrl takes the desktopbutton; the mobile banner defaults on, so it is turned off here. */showGitHubBanner={false}/><LogoStrip />- <Tagline />+ {/* Tagline hidden for now; restore this line to bring it back. */}</div>- {/* The diagram opens the content band, so the page gradient starts here- rather than at the use cases below it. */}+ {/* The Lang band opens the content section, so the page gradient starts+ here rather than at the feature grid below it. */}<div className={styles.contentSection}>- <StackDiagramSection /><div className={styles.contentShell}>- <UseCasesSection />- <FeatureGridSection />+ <div className={styles.langBand}>+ <ProductSection {...LANG_PRODUCT} art={<OpenSourceIllustration />} fullBleedArt />+ </div>+ {/* The benchmark header and the compatibility band, without the feature+ grid that used to sit between them. */}+ {/* No compatFirst: the benchmark claim leads and the compatibility band+ follows it, so the page proves the point before saying what it+ works with. The grid runs on its own six features — Live data and+ Cross-platform are only stated here. */}+ <FeatureGridSection gridFirst showHeaderSeparator={false} showBottomSeparator={false} />+<div className={styles.cloudGroup}><ShiroPeek /><CloudSection /></div><TweetWallSection />+ <div className={styles.faqBand}>+ <FaqSection />+ </div></div></div><Footer />diff --git a/docs/app/(home)/pricing/page.module.css b/docs/app/(home)/pricing/page.module.cssnew file mode 100644index 000000000..d0582f87b--- /dev/null+++ b/docs/app/(home)/pricing/page.module.css@@ -0,0 +1,147 @@+/* Page composition only: type, cards, buttons, and grid rules are shared. */+.hero {+ padding-bottom: 96px;+}++.softBand {+ background: var(--openui-background);+}++.productSection {+ padding-block: 160px;+}++.compactProductSection {+ padding-block: 112px;+}++.productLead {+ display: flex;+ flex-direction: column;+ align-items: flex-start;+ gap: 24px;+}++.productSupport,+.supporting {+ padding-top: 44px;+}++.productSupport {+ display: flex;+ flex-direction: column;+ align-items: flex-start;+ gap: 28px;+}++.gatewayTitle {+ max-width: 20ch;+ scroll-margin-top: 120px;+}++.priceNote,+.freeModelNote {+ font-family: var(--home-font-text);+ font-size: var(--home-body-size);+ line-height: var(--home-body-leading);+ color: var(--openui-text-neutral-secondary);+}++.priceNote {+ margin: 20px 0 0;+}++.productChips {+ display: flex;+ flex-wrap: wrap;+ gap: 12px;+ margin: 0;+ padding: 0;+ list-style: none;+ font-family: var(--home-font-text);+ font-size: var(--home-body-size);+ line-height: var(--home-body-leading);+}++.productChips li {+ display: inline-flex;+ align-items: center;+ min-height: 36px;+ padding: 8px 14px;+ border: 1px solid var(--openui-border-default);+ border-radius: 999px;+ background: var(--openui-highlight-subtle);+ color: var(--openui-text-neutral-primary);+ line-height: 1.2;+}++.billingDetails {+ margin-top: 72px;+}++.freeModelNote {+ margin: 32px 0 0;+ padding-top: 24px;+ border-top: 1px solid var(--home-hairline);+}++.faqBand {+ padding-block: 112px 160px;+}++@media (max-width: 1023px) {+ .hero .titleBlock {+ align-items: center;+ }++ .hero {+ padding-bottom: 72px;+ }++ .productSection {+ padding-block: 112px;+ }++ .compactProductSection {+ padding-block: 88px;+ }++ .productSupport,+ .supporting {+ padding-top: 0;+ }++ .faqBand {+ padding-block: 72px 112px;+ }+}++@media (max-width: 767px) {+ .hero {+ padding-bottom: 64px;+ }++ .productSection {+ padding-block: 96px;+ }++ .compactProductSection {+ padding-block: 72px;+ }++ .productLead {+ gap: 20px;+ }++ .productSupport {+ gap: 24px;+ }++ .billingDetails {+ margin-top: 48px;+ }++ .faqBand {+ padding-block: 48px 96px;+ }+}diff --git a/docs/app/(home)/pricing/page.tsx b/docs/app/(home)/pricing/page.tsxnew file mode 100644index 000000000..6fe59b0d2--- /dev/null+++ b/docs/app/(home)/pricing/page.tsx@@ -0,0 +1,236 @@+import { ArrowRight } from "lucide-react";+import type { Metadata } from "next";+import { GatewayPlans } from "../cloud/gateway/GatewayPlans";+import heroStyles from "../cloud/gateway/page.module.css";+import layout from "../cloud/gateway/sections.module.css";+import { BevelButton } from "../components/Button/BevelButton";+import pageStyles from "../page.module.css";+import { FaqSection, type MarketingFaq } from "../sections/FaqSection/FaqSection";+import {+ FeatureGridSection,+ type GridFeature,+} from "../sections/FeatureGridSection/FeatureGridSection";+import { Footer } from "../sections/Footer/Footer";+import { HeroSection } from "../sections/HeroSection/HeroSection";+import { ProductLabel } from "../sections/ProductSection/ProductSection";+import styles from "./page.module.css";++export const metadata: Metadata = {+ title: "OpenUI Pricing",+ description:+ "OpenUI is MIT licensed and free forever. Add OpenUI Gateway for production reliability and OpenUI Observability for agent product analytics.",+ alternates: { canonical: "/pricing" },+};++const BILLING_DETAILS: GridFeature[] = [+ {+ icon: "chart",+ title: "No markup on LLMs",+ description:+ "Tokens are billed separately from API calls at provider list prices. Bring your own OpenAI, Anthropic, or Google keys if you prefer.",+ },+ {+ icon: "shield",+ title: "Repair is included",+ description:+ "Validation and correction calls are part of your Gateway plan and are not billed separately.",+ },+ {+ icon: "database",+ title: "Zero data retention available",+ description: "Zero data retention is available on paid models when you need it.",+ },+];++// Existing answers from the homepage and product FAQs; no new pricing policy.+const PRICING_FAQS: MarketingFaq[] = [+ {+ question: "Is OpenUI free and open source?",+ answer: [+ "Yes. OpenUI is fully open source and works with your own models, infrastructure, components, and design system.",+ "OpenUI Gateway and OpenUI Observability are managed services for teams running Generative UI in production.",+ ],+ },+ {+ question: "Which model handles corrections, and are they billed separately?",+ answer: [+ "Corrections use a dedicated model tuned for low latency, which we continue to improve. All correction calls are included in your plan and are not billed separately.",+ ],+ },+ {+ question: "What does OpenUI Observability cost?",+ answer: [+ "OpenUI Observability is free during early access. Pricing will be published before paid access begins.",+ ],+ },+ {+ question: "Do I need both Gateway and Observability?",+ answer: [+ "No. They work independently.",+ "We recommend using both. Gateway makes generated UI more reliable. Observability shows what users experienced and whether it worked.",+ ],+ },+];++function ProductChips({ points }: { points: string[] }) {+ return (+ <ul className={styles.productChips}>+ {points.map((point) => (+ <li key={point}>{point}</li>+ ))}+ </ul>+ );+}++export default function PricingPage() {+ return (+ <div className={pageStyles.page}>+ <main>+ <div className={styles.hero}>+ <HeroSection+ align="left"+ title={+ <span className={`${heroStyles.titleBlock} ${styles.titleBlock}`}>+ <span className={heroStyles.eyebrow}>Pricing</span>+ <span className={heroStyles.title}>+ Three ways+ <br />+ to use OpenUI.+ </span>+ </span>+ }+ subtitle={+ <span className={heroStyles.subtitle}>+ Start with the open-source framework. Add Gateway for reliable production use and+ Observability to understand what your users experience.+ </span>+ }+ smallSubtitle+ tightDesktopSpacing={false}+ splitLockup+ flushInnerInlinePadding+ showCommand={false}+ showPreview={false}+ showPlaygroundButton={false}+ showGitHubBanner={false}+ showTagline={false}+ />+ </div>++ <div className={styles.softBand}>+ <section+ id="open-source-pricing"+ className={`${layout.section} ${styles.productSection} ${styles.compactProductSection}`}+ aria-labelledby="open-source-title"+ >+ <div className={layout.sectionLockup}>+ <div className={styles.productLead}>+ <ProductLabel name="OpenUI" tag="Open source" />+ <h2 id="open-source-title" className={layout.heading}>+ Generative UI,+ <br />+ free by design.+ </h2>+ <BevelButton+ href="/docs/openui-lang"+ variant="primary"+ label="Get started"+ badge={<ArrowRight size={16} />}+ />+ </div>+ <div className={styles.productSupport}>+ <p className={layout.lead}>+ Build agent-driven interfaces with any model, backend framework, client, or design+ system. Run it wherever you want with no usage limits from us.+ </p>+ <ProductChips+ points={["Open source forever", "Self-host anywhere", "Bring your whole stack"]}+ />+ </div>+ </div>+ </section>+ </div>++ <section+ className={`${layout.section} ${styles.productSection}`}+ aria-labelledby="gateway-plans"+ >+ <div className={layout.sectionLockup}>+ <div className={styles.productLead}>+ <ProductLabel name="OpenUI" tag="Gateway" />+ <h2 id="gateway-plans" className={`${layout.heading} ${styles.gatewayTitle}`}>+ Reliability for production+ <br />+ Generative UI.+ </h2>+ </div>+ <div className={styles.supporting}>+ <p className={layout.lead}>+ Validate and repair model output before it reaches users, with provider fallbacks,+ usage dashboards, and one OpenAI-compatible endpoint.+ </p>+ <p className={styles.priceNote}>From $0 per month</p>+ </div>+ </div>++ <div className={layout.diagram}>+ <GatewayPlans detailed />+ </div>+ <div className={styles.billingDetails}>+ <FeatureGridSection+ features={BILLING_DETAILS}+ showHeader={false}+ showCompat={false}+ showBottomSeparator={false}+ flushOuterCards+ flushSectionPadding+ mobileAccordion={false}+ />+ </div>+ <p className={styles.freeModelNote}>+ API calls are included in each plan. LLM tokens are billed separately at provider rates.+ Annual billing saves up to 20%. Free models have zero LLM cost and may use data for+ training.+ </p>+ </section>++ <div className={styles.softBand}>+ <section+ id="observability-pricing"+ className={`${layout.section} ${styles.productSection} ${styles.compactProductSection}`}+ aria-labelledby="observability-pricing-title"+ >+ <div className={layout.sectionLockup}>+ <div className={styles.productLead}>+ <ProductLabel name="OpenUI" tag="Observability" />+ <h2 id="observability-pricing-title" className={layout.heading}>+ Free while in early access.+ </h2>+ <BevelButton+ href="/cloud/observability"+ variant="primary"+ label="Join the waitlist"+ badge={<ArrowRight size={16} />}+ />+ </div>+ <div className={styles.productSupport}>+ <p className={layout.lead}>+ See what users saw, find the sessions worth opening, and turn problematic+ responses into feedback and evals.+ </p>+ <ProductChips+ points={["Session replay", "AI-assisted triage", "Feedback into evals"]}+ />+ </div>+ </div>+ </section>+ </div>++ <div className={`${layout.section} ${styles.faqBand}`}>+ <FaqSection faqs={PRICING_FAQS} titleId="pricing-faq" />+ </div>+ </main>+ <Footer />+ </div>+ );+}diff --git a/docs/app/(home)/sections/CloudSection/CloudSection.module.css b/docs/app/(home)/sections/CloudSection/CloudSection.module.cssindex c2c83d5e3..877a164b7 100644--- a/docs/app/(home)/sections/CloudSection/CloudSection.module.css+++ b/docs/app/(home)/sections/CloudSection/CloudSection.module.css@@ -2,10 +2,12 @@.section {width: 100%;background: #000;- padding-block: clamp(4rem, 7vw, 6.5rem);+ padding-top: clamp(4rem, 7vw, 6.5rem);+ /* Deeper than the top: the band ends on a row of cards, which needs more room+ before the page returns to its light background. */+ padding-bottom: clamp(5.5rem, 10vw, 9.5rem);color: #fff;}-.inner {box-sizing: border-box;max-width: var(--home-container-max);@@ -13,158 +15,6 @@padding-inline: clamp(1.25rem, 4vw, 2.5rem);}-.header {- display: flex;- flex-direction: column;- align-items: center;- max-width: 46rem;- margin: 0 auto clamp(3rem, 6vw, 4.5rem);- text-align: center;-}--.titleTag {- display: inline-flex;- align-items: center;- /* Slightly smaller so the boxed word lines up with the cap height of "OpenUI" */- font-size: 0.78em;- line-height: 1;- padding: 0.18em 0.36em;- border: 1.5px solid rgba(255, 255, 255, 0.85);- border-radius: 0.34em;- /* Nudge up so the box reads as centered on the caps of "OpenUI" */- vertical-align: middle;- position: relative;- top: -0.06em;-}--/* Primary and secondary CTAs under the subtitle. */-.headerCtas {- display: flex;- flex-wrap: wrap;- justify-content: center;- gap: 0.75rem;- margin-top: 2rem;-}--.grid {- display: grid;- grid-template-columns: 1fr;- gap: 0.5rem;-}--/* Each feature is a card with a subtle fill (no stroke). */-.feature {- /* Named so the artwork panel can cancel it and run to the card's edges. */- --card-pad: clamp(1.5rem, 2vw, 2rem);-- display: flex;- flex-direction: column;- gap: 0.875rem;- padding: var(--card-pad);- border-radius: 16px;- background: rgba(255, 255, 255, 0.05);-}--.icon {- display: inline-flex;- margin-bottom: 1rem;- color: rgba(255, 255, 255, 0.24);-}--/* Artwork panel for the cards that lead the grid. Off by default: on a phone- the card collapses to an icon + title row, which a panel would break. It is- switched on with the wide layout below. */-.shot {- display: none;-}--.shotImage {- position: absolute;- inset: 0;- width: 100%;- height: 100%;- object-fit: cover;-}--/* This band runs opposite to the page: black by default, light in dark mode. So- the tile is chosen to suit the CARD, which means the pairing reads inverted- against every other light/dark swap on the site. */-.shotOnLight {- display: none;-}--[data-theme="dark"] .shotOnDark {- display: none;-}--[data-theme="dark"] .shotOnLight {- display: block;-}--@media (min-width: 768px) {- .shot {- position: relative;- display: block;- /* Pulled most of the way out to the card's edges, keeping a slim inset. The- full card padding read as a second frame around a tile that already has- its own margins; none at all read as a banner. */- margin: calc(0.75rem - var(--card-pad)) calc(0.75rem - var(--card-pad)) 1.25rem;- /* The tiles' own ratio, so nothing is cropped. */- aspect-ratio: 720 / 400;- overflow: hidden;- border-radius: 12px;- }-- /* The panel already says what the glyph would, so the glyph steps aside. */- .feature:has(.shot) .icon {- display: none;- }-}--.featureTitle {- margin: 0;- font-family: var(--home-font-display);- font-size: var(--home-heading-size);- font-weight: var(--home-heading-weight);- line-height: var(--home-heading-leading);- letter-spacing: var(--home-heading-tracking);- color: #fff;-}--.featureDescription {- margin: 0;- font-size: var(--home-body-size);- line-height: var(--home-body-leading);- color: rgba(255, 255, 255, 0.5);-}--/* Mobile-only expand affordance; hidden on desktop. */-.chevron {- display: none;-}--/* Single-row auto-scrolling marquee of all feature chips below the grid. */-.ticker {- position: relative;- width: 100%;- margin-top: clamp(1.25rem, 3vw, 2rem);- padding-bottom: clamp(1.5rem, 3vw, 2.5rem);- overflow: hidden;- -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);- mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);-}--.tickerTrack {- display: flex;- width: max-content;- will-change: transform;- animation: cloudMarquee 90s linear infinite;-}--.tickerTrack:hover {- animation-play-state: paused;-}-@keyframes cloudMarquee {from {transform: translateX(0);@@ -174,75 +24,30 @@}}-@media (prefers-reduced-motion: reduce) {- .ticker {- overflow-x: auto;- }-- .tickerTrack {- animation: none;- }-}-/* Closing contact CTA below the ticker. */+/* The two product bands. Only the space between them lives here; .header's+ bottom margin and .contact's top margin bound the group. */+.products {+ display: flex;+ flex-direction: column;+ gap: clamp(7rem, 14vw, 13rem);+}.contact {display: flex;flex-direction: column;align-items: center;gap: 1.5rem;- margin-top: clamp(3rem, 6vw, 4.5rem);+ /* On top of the section's own padding, so this block sits clear of both the+ band's top edge and the product bands beneath it. */+ margin-top: clamp(1.5rem, 3vw, 3rem);+ margin-bottom: clamp(6rem, 12vw, 11rem);text-align: center;}-/* Same type treatment as the embedded "Works with any LLM…" compat title. */-.contactText {- margin: 0;+/* Typography and caption spacing come from the benchmark's SectionHeader. */+.contactHeading {+ width: 100%;max-width: 46rem;- font-family: var(--home-font-display);- font-size: var(--home-heading-size);- font-weight: var(--home-heading-weight);- line-height: var(--home-heading-leading);- letter-spacing: var(--home-heading-tracking);- color: #fff;-}--/* Plain-text chips separated by a centered dot. */-.tag {- flex: 0 0 auto;- display: inline-flex;- align-items: center;- font-size: 0.8125rem;- line-height: 1.2;- color: rgba(255, 255, 255, 0.35);- white-space: nowrap;-}--.tag:not(:last-child)::after {- content: "•";- margin-inline: 0.75rem;- color: rgba(255, 255, 255, 0.16);-}--@media (min-width: 768px) {- /* The wide card's slot is twice as wide, so its artwork runs flatter than the- 720x400 tiles rather than towering over the row: 720x190 CSS px, drawn at- 1440x380 for 2x. */- .featureWide .shot {- aspect-ratio: 1440 / 380;- }-}--@media (min-width: 1024px) {- .grid {- grid-template-columns: repeat(3, 1fr);- gap: 0.5rem;- }-- /* Reliability leads the top row two columns wide, so the row reads 2 + 1- rather than three equal tiles. */- .featureWide {- grid-column: span 2;- }}/* Mobile-only: match the feature-grid structure (borderless rows, title left,@@ -251,117 +56,6 @@.section {padding-block: 3.5rem;}-- .header {- margin-bottom: 2.5rem;- }-- .headerCtas {- width: 100%;- flex-direction: column;- align-items: center;- }-- .grid {- gap: 0;- }-- .feature {- position: relative;- display: grid;- grid-template-columns: auto 1fr auto;- column-gap: 0.75rem;- row-gap: 0;- align-items: center;- padding: 1.25rem 0;- background: none;- border-radius: 0;- cursor: pointer;- -webkit-tap-highlight-color: transparent;- }-- /* Separator runs edge to edge and fades out on the left. */- .feature:not(:first-child)::before {- content: "";- position: absolute;- top: 0;- inset-inline: -1.25rem;- height: 1px;- background: linear-gradient(to right, transparent, var(--home-border-on-dark) 15%);- }-- /* Icon tile (dark variant of the stepper tile). */- .icon {- grid-column: 1;- grid-row: 1;- display: inline-flex;- align-items: center;- justify-content: center;- align-self: center;- justify-self: start;- width: 1.375rem;- height: 1.375rem;- margin-bottom: 0;- border: 1px solid var(--home-border-on-dark);- border-radius: 0.4rem;- background: rgba(255, 255, 255, 0.06);- color: rgba(255, 255, 255, 0.6);- }-- .icon svg {- width: 0.875rem;- height: 0.875rem;- }-- .featureTitle {- grid-column: 2;- grid-row: 1;- text-wrap: balance;- }-- .chevron {- grid-column: 3;- grid-row: 1;- display: inline-flex;- align-items: center;- justify-content: center;- color: rgba(255, 255, 255, 0.4);- transition: transform 0.2s ease;- }-- .feature[data-open] .chevron {- transform: rotate(180deg);- }-- /* Collapsed by default; tap a row to fluidly reveal its description. The- grid-template-rows 0fr->1fr trick animates to the content's natural height. */- .featureDescription {- grid-column: 2;- grid-row: 2;- display: grid;- grid-template-rows: 0fr;- max-width: 16rem;- text-wrap: pretty;- transition: grid-template-rows 0.32s ease;- }-- .featureDescriptionInner {- overflow: hidden;- min-height: 0;- }-- .feature[data-open] .featureDescription {- grid-template-rows: 1fr;- }-- /* Gap only when open, so the collapsed 0fr row closes fully (no residual). */- .feature[data-open] .featureDescriptionInner {- padding-top: 0.375rem;- }-- .contactText {- text-wrap: balance;- }}/* ------------------------------------------------------------------ */@@ -378,22 +72,6 @@background: #f4f4f5;color: #0a0a0a;}--[data-theme="dark"] .titleTag {- border-color: rgba(0, 0, 0, 0.85);-}--/* The CTAs flip tone so they read on the inverted light surface. */-[data-theme="dark"] .headerPrimaryCta {- background: #0a0a0a;- border-color: rgba(255, 255, 255, 0.2);- box-shadow: var(--home-bevel-on-dark);- color: #fff;- --bevel-badge-bg: #fff;- --bevel-badge-fg: #0a0a0a;-}--[data-theme="dark"] .headerSecondaryCta,[data-theme="dark"] .contactCta {background: var(--home-surface-raised);border-color: rgba(0, 0, 0, 0.08);@@ -402,59 +80,138 @@--bevel-badge-bg: #0a0a0a;--bevel-badge-fg: #fff;}+.observabilityBand {+ display: grid;+ grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);+ align-items: stretch;+ gap: clamp(2.5rem, 5vw, 3.75rem);+ margin-top: clamp(8rem, 15vw, 10.75rem);+ scroll-margin-top: 112px;+}-/* White cards with a soft, diffuse shadow and no stroke. */-[data-theme="dark"] .feature {- background: #fff;- box-shadow:- 0 1px 3px rgba(0, 0, 0, 0.02),- 0 6px 20px rgba(0, 0, 0, 0.05);+.observabilityCopy {+ display: flex;+ flex-direction: column;+ justify-content: space-between;+ gap: 3rem;+ min-width: 0;+ min-height: 20rem;}-[data-theme="dark"] .icon {- color: rgba(0, 0, 0, 0.4);+.observabilityLead {+ display: flex;+ flex-direction: column;+ align-items: flex-start;+ gap: 1.25rem;}-[data-theme="dark"] .featureTitle {- color: #0a0a0a;+.observabilityTitle,+.observabilityDescription {+ margin: 0;}-[data-theme="dark"] .featureDescription {- color: rgba(0, 0, 0, 0.55);+.observabilityEyebrow {+ margin-bottom: 0;+}++.observabilityTitle {+ max-width: 20ch;+ font-family: var(--home-font-display);+ font-size: clamp(1.75rem, 3vw, 2.5rem);+ font-weight: var(--home-title-weight);+ line-height: 1.1;+ letter-spacing: -0.02em;+ text-wrap: balance;+}++.observabilityDescription {+ max-width: 29rem;+ font-family: var(--home-font-text);+ font-size: 1.0625rem;+ line-height: 1.5;+ color: rgba(255, 255, 255, 0.5);+ text-wrap: pretty;}-[data-theme="dark"] .chevron {- color: rgba(0, 0, 0, 0.4);+.observabilityCta {+ margin-top: 0.25rem;}-[data-theme="dark"] .tag {- color: rgba(0, 0, 0, 0.45);+.observabilityStage {+ display: flex;+ align-items: flex-end;+ justify-content: center;+ overflow: hidden;+ min-width: 0;+ min-height: 0;+ aspect-ratio: 583 / 365;+ border: 0;+ border-radius: 24px;+ background: transparent;}-[data-theme="dark"] .tag:not(:last-child)::after {- color: rgba(0, 0, 0, 0.16);+.observabilityImage {+ display: block;+ width: 100%;+ height: 100%;+ object-fit: cover;+ object-position: center;}-[data-theme="dark"] .contactText {- color: #0a0a0a;+.observabilityImageLight {+ display: none;+}++.observabilityImageDark {+ display: block;+}++[data-theme="dark"] .observabilityStage {+ background: transparent;+}++[data-theme="dark"] .observabilityDescription {+ color: rgba(10, 10, 10, 0.5);+}++[data-theme="dark"] .observabilityImageLight {+ display: block;+}++[data-theme="dark"] .observabilityImageDark {+ display: none;+}++@media (max-width: 1023px) {+ .observabilityBand {+ grid-template-columns: minmax(0, 1fr);+ gap: 2.5rem;+ margin-top: 7rem;+ }++ .observabilityCopy {+ gap: 2rem;+ min-height: 0;+ }++ .observabilityStage {+ min-height: 0;+ aspect-ratio: 583 / 365;+ }}-/* Mobile-only: the feature becomes a borderless grid row, so re-tune the- inverted separator and icon tile for the light background. */@media (max-width: 767px) {- [data-theme="dark"] .feature {- background: none;- border: none;- box-shadow: none;+ .observabilityBand {+ gap: 2rem;+ margin-top: 5.5rem;}- [data-theme="dark"] .feature:not(:first-child)::before {- background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.09) 15%);+ .observabilityStage {+ aspect-ratio: 4 / 3;+ border-radius: 18px;}- [data-theme="dark"] .icon {- background: #fff;- border-color: rgba(0, 0, 0, 0.08);- color: rgba(0, 0, 0, 0.55);+ .observabilityImage {+ object-position: 51% center;}}diff --git a/docs/app/(home)/sections/CloudSection/CloudSection.tsx b/docs/app/(home)/sections/CloudSection/CloudSection.tsxindex 7b8590274..05f62ddd1 100644--- a/docs/app/(home)/sections/CloudSection/CloudSection.tsx+++ b/docs/app/(home)/sections/CloudSection/CloudSection.tsx@@ -1,218 +1,90 @@-"use client";--import {- ArrowRight,- ArrowUpRight,- Browsers,- Palette,- PaperPlaneRight,- Presentation,- SealCheck,- ShieldCheck,- type Icon,-} from "@phosphor-icons/react";+/* ssr entry: this is a server component now that the grid's accordion is gone. */+import { ArrowRight } from "@phosphor-icons/react/dist/ssr";import Image from "next/image";import { BevelButton } from "../../components/Button/BevelButton";-import { ExpandChevron } from "../../components/ExpandChevron";-import { useSingleOpenAccordion } from "../../components/MobileAccordion/useSingleOpenAccordion";import { SectionHeader } from "../../components/SectionHeader/SectionHeader";+import { ProductLabel, ProductSection } from "../ProductSection/ProductSection";+import { GATEWAY_PRODUCT } from "../ProductSection/products";import styles from "./CloudSection.module.css";export const CLOUD_SECTION_ID = "openui-cloud";-/* Reliability leads the grid two columns wide, with Reports beside it carrying- the one piece of artwork — the capability worth showing rather than naming.- Everything below is an icon + title line. The icon stays on every row for- phones, where each card collapses to that line.-- `light` and `dark` name the page theme each tile was drawn for, matching how- FeaturesSection labels them. Which one this band shows is inverted; see the- stylesheet. */-const FEATURES: {- Icon: Icon;- image?: { light: string; dark: string };- wide?: boolean;- title: string;- description: string;- tags: string[];-}[] = [- {- Icon: SealCheck,- /* Spans two columns on desktop, so its artwork is drawn wider and flatter- than the other tiles — see the wide-card override in the stylesheet. */- wide: true,- image: {- light: "/openui-cloud/reliability.svg",- dark: "/openui-cloud/reliability-dark.svg",- },- title: "Reliability",- description:- "Every response is checked against your component library and corrected mid-stream, before it can render as broken UI. Track render success, errors, and what shipped across your deployment.",- tags: [- "Error correction",- "Model normalization",- "Render success rates",- "Error frequency",- "Audit trail",- ],- },- {- Icon: Presentation,- image: {- /* No ?v= cache-buster like FeaturesSection carries: next/image rejects a- query string unless images.localPatterns allows one, and this is a new- reference with no cached copy to bust. */- light: "/openui-cloud/reports&presentation.png",- dark: "/openui-cloud/reports&presentations-dark.png",- },- title: "Reports and Slides Generation",- description:- "Generate static artifacts like slides and reports, and live artifacts like dashboards and pages.",- tags: [- "Template support",- "Editable text and charts",- "Editable layouts",- "Export as PPTX",- "Export as PDF",- ],- },- {- Icon: ShieldCheck,- title: "Model & provider resilience",- description:- "Keep generated UI working across model quirks, upgrades, slowdowns, and provider failures.",- tags: ["Version pinning", "Rollbacks", "Provider fallbacks"],- },- {- Icon: Browsers,- title: "Production-grade rendering",- description:- "Tested, responsive components that render consistently across browsers, devices, and screen sizes.",- tags: [- "Pre-tested components",- "Cross-browser compatibility",- "Built-in accessibility",- "Responsive by default",- ],- },- {- Icon: Palette,- title: "Bring your design system",- description:- "Apply your fonts, colors, spacing, and component styles across every generated interface.",- tags: ["Design tokens", "Typography", "Component variants", "Brand configurations"],- },-];--const CHIPS = FEATURES.flatMap((feature) => feature.tags);-export function CloudSection() {- // Mobile-only: all rows collapsed by default; one expands at a time and the- // open one can be tapped to collapse.- const accordion = useSingleOpenAccordion();-return (- <section id={CLOUD_SECTION_ID} className={styles.section}>+ <section id={CLOUD_SECTION_ID} className={styles.section} aria-labelledby="openui-cloud-title"><div className={styles.inner}>- <div className={styles.header}>- <SectionHeader- tone="dark"- title={- <>- Introducing OpenUI <span className={styles.titleTag}>Cloud</span>- </>- }- subtitle="Production-ready Generative UI"- >- <div className={styles.headerCtas}>- <BevelButton- className={styles.headerPrimaryCta}- href="/compare"- label="Try Demo"- badge={<ArrowRight size={16} weight="bold" />}+ <div className={styles.contact}>+ <ProductLabel name="OpenUI" tag="Cloud" />+ <div className={styles.contactHeading}>+ <SectionHeader+ titleId="openui-cloud-title"+ title="Production reliability"+ subtitle="and user insights"+ tone="dark"+ />+ </div>+ </div>++ {/* Wrapped rather than spaced by the bands themselves: .header and+ .contact already supply the outer margins, so only the gap between+ the two needs stating, and ProductSection stays free of layout it+ would carry into every other place it is used. */}+ <div className={styles.products}>+ <ProductSection {...GATEWAY_PRODUCT} />+ </div>++ <div id="openui-observability-card" className={styles.observabilityBand}>+ <div className={styles.observabilityCopy}>+ <div className={styles.observabilityLead}>+ <ProductLabel+ name="OpenUI"+ tag="Observability"+ className={styles.observabilityEyebrow}/>+ <h3 className={styles.observabilityTitle}>+ Understand how users experience your agent+ </h3><BevelButton+ className={styles.observabilityCta}variant="dark"- className={styles.headerSecondaryCta}- href="/docs/agent/getting-started/openui-cloud"- label="View Documentation"- badge={<ArrowUpRight size={16} weight="bold" />}+ href="/cloud/observability"+ label="Join the waitlist"+ badge={<ArrowRight size={16} weight="bold" />}/></div>- </SectionHeader>- </div>-- <div className={styles.grid}>- {FEATURES.map(({ Icon, image, wide, title, description }, index) => {- return (- <div- className={`${styles.feature} ${wide ? styles.featureWide : ""}`.trim()}- key={index}- {...accordion.getToggleProps(index)}- >- {image && (- /* Both tiles ship; CSS picks one. Decorative either way: the- title and description already carry the meaning. */- <span className={styles.shot} aria-hidden="true">- <Image- className={`${styles.shotImage} ${styles.shotOnDark}`}- src={image.dark}- alt=""- width={720}- height={400}- loading="lazy"- />- <Image- className={`${styles.shotImage} ${styles.shotOnLight}`}- src={image.light}- alt=""- width={720}- height={400}- loading="lazy"- />- </span>- )}- {!wide && (- <span className={styles.icon} aria-hidden="true">- <Icon size={28} weight="light" />- </span>- )}- <h3 className={styles.featureTitle}>{title}</h3>- <ExpandChevron className={styles.chevron} />- <p className={styles.featureDescription}>- <span className={styles.featureDescriptionInner}>{description}</span>- </p>- </div>- );- })}- </div>-- <div className={styles.ticker}>- <div className={styles.tickerTrack}>- {[...CHIPS, ...CHIPS].map((tag, index) => (- <span- className={styles.tag}- key={index}- aria-hidden={index >= CHIPS.length || undefined}- >- {tag}- </span>- ))}+ <p className={styles.observabilityDescription}>+ See what users saw, find issues and unmet needs, and turn failed responses into+ feedback and evals.+ </p>+ </div>+ <div+ className={styles.observabilityStage}+ role="img"+ aria-label="OpenUI Observability showing user insights, a generated interface session, and review feedback"+ >+ <Image+ className={`${styles.observabilityImage} ${styles.observabilityImageLight}`}+ src="/openui-illustrations/home-observability-light.webp"+ alt=""+ aria-hidden="true"+ width={1166}+ height={730}+ quality={95}+ unoptimized+ sizes="(max-width: 1023px) calc(100vw - 80px), 520px"+ />+ <Image+ className={`${styles.observabilityImage} ${styles.observabilityImageDark}`}+ src="/openui-illustrations/home-observability-dark.webp"+ alt=""+ aria-hidden="true"+ width={1166}+ height={730}+ quality={95}+ unoptimized+ sizes="(max-width: 1023px) calc(100vw - 80px), 520px"+ /></div>- </div>-- <div className={styles.contact}>- <p className={styles.contactText}>- Want to learn more, or need hands-on engineering support?- </p>- <BevelButton- variant="dark"- className={styles.contactCta}- external- href="https://zcal.co/t/thesys/demo"- label="Talk to our team"- badge={<PaperPlaneRight size={16} weight="bold" />}- /></div></div></section>diff --git a/docs/app/(home)/sections/CompatibilitySection/CompatibilityDiagram.module.css b/docs/app/(home)/sections/CompatibilitySection/CompatibilityDiagram.module.cssnew file mode 100644index 000000000..0ead964ec--- /dev/null+++ b/docs/app/(home)/sections/CompatibilitySection/CompatibilityDiagram.module.css@@ -0,0 +1,476 @@+.diagram {+ --stack-logo-size: 40px;+ position: relative;+ /* The source artwork is a 1280px frame. Letting it grow beyond that frame+ stretched the curves and pushed the outer marks into the viewport edges. */+ width: min(100vw, 80rem);+ height: clamp(480px, 47.8125vw, 612px);+ overflow: hidden;+ color: var(--openui-text-neutral-primary);+}++.network {+ position: absolute;+ inset: 0;+ display: block;+ width: 100%;+ height: 100%;+ /* End each rail beneath the center of its outermost logo so no stroke is+ visible beyond the final circle. */+ clip-path: inset(0 24px);+ pointer-events: none;+}++.mobileNetwork {+ display: none;+}++.rails path {+ fill: none;+ stroke: color-mix(in srgb, var(--openui-text-neutral-primary) 16%, transparent);+ stroke-width: 1px;+}++.pulses path {+ fill: none;+ stroke: #0040ff;+ stroke-width: 1.4px;+ stroke-linecap: round;+ stroke-dasharray: 0.014 0.986;+ filter: drop-shadow(0 0 1.5px rgb(0 64 255 / 0.42));+ animation: connectorPulse 6.2s linear infinite;+ animation-delay: var(--pulse-delay, 0s);+}++@keyframes connectorPulse {+ from {+ stroke-dashoffset: 1;+ }++ to {+ stroke-dashoffset: 0;+ }+}++@keyframes mobileLogoCycle {+ 0%,+ 38% {+ opacity: 1;+ transform: scale(1);+ }++ 44%,+ 94% {+ opacity: 0;+ transform: scale(0.84);+ }++ 100% {+ opacity: 1;+ transform: scale(1);+ }+}++@keyframes mobileLogoSingleCycle {+ 0%,+ 18% {+ opacity: 1;+ transform: scale(1);+ }++ 22%,+ 97% {+ opacity: 0;+ transform: scale(0.84);+ }++ 100% {+ opacity: 1;+ transform: scale(1);+ }+}++.card {+ position: absolute;+ z-index: 3;+ top: 50%;+ left: 50%;+ display: flex;+ align-items: center;+ justify-content: center;+ padding: 8px;+ transform: translate(-50%, -50%);+ border: 1px solid rgb(255 255 255 / 0.52);+ border-radius: 20px;+ background: rgb(255 255 255 / 0.3);+ box-shadow:+ inset 0 1px 0 rgb(255 255 255 / 0.72),+ 0 8px 24px rgb(10 10 10 / 0.05);+ -webkit-backdrop-filter: blur(12px) saturate(118%);+ backdrop-filter: blur(12px) saturate(118%);+}++.cardInner {+ position: relative;+ display: flex;+ align-items: center;+ justify-content: center;+ padding: 11px 19px;+ border: 1px solid rgb(0 0 0 / 0.08);+ border-radius: 16px;+ background: #f7f7f8;+ box-shadow:+ inset 0 2px 1px rgb(255 255 255),+ inset 0 -3px 6px rgb(0 0 0 / 0.04);+}++[data-theme="dark"] .card {+ border-color: rgb(255 255 255 / 0.1);+ background: rgb(24 24 24 / 0.46);+ box-shadow:+ inset 0 1px 0 rgb(255 255 255 / 0.1),+ 0 10px 28px rgb(0 0 0 / 0.18);+}++[data-theme="dark"] .cardInner {+ border-color: rgb(255 255 255 / 0.11);+ background: #181818;+ box-shadow:+ inset 0 2px 1px rgb(255 255 255 / 0.08),+ inset 0 -3px 6px rgb(0 0 0 / 0.28);+}++.cardInner h2 {+ margin: 0;+ scroll-margin-top: 300px;+ font-family: var(--home-font-mono, "Geist Mono", monospace);+ font-size: 1rem;+ font-weight: 500;+ line-height: 1.7875;+ letter-spacing: -0.2px;+ text-transform: uppercase;+ white-space: nowrap;+}++.branch {+ position: absolute;+ z-index: 2;+ inset: 0;+ pointer-events: none;+}++.category {+ position: absolute;+ /* Each label sits directly over its connector, masking the rail beneath it. */+ top: 27.124%;+ left: 32.93%;+ transform: translate(-50%, -50%);+ margin: 0;+ padding: 8px 14px;+ border: 1px solid var(--openui-border-default);+ border-radius: var(--openui-radius-full);+ background: var(--openui-foreground);+ font-family: var(--home-font-text);+ font-size: 0.9375rem;+ font-weight: 500;+ line-height: 1.4;+ white-space: nowrap;+}++.branch[data-side="right"] .category {+ top: 27.124%;+ left: 67.7%;+}++.branch[data-row="bottom"] .category {+ top: 72.876%;+ left: 31.8%;+}++.branch[data-side="right"][data-row="bottom"] .category {+ top: 72.876%;+ left: 68.5%;+}++.logos {+ position: absolute;+ /* 166 / 612 is the exact top-rail center in the SVG viewBox. */+ top: 27.124%;+ left: 24px;+ display: flex;+ width: 274px;+ align-items: center;+ justify-content: space-between;+ margin: 0;+ padding: 0;+ transform: translateY(-50%);+ list-style: none;+ pointer-events: auto;+}++.branch[data-side="right"] .logos {+ right: 24px;+ left: auto;+}++.branch[data-row="bottom"] .logos {+ /* 446 / 612 is the exact bottom-rail center in the SVG viewBox. */+ top: 72.876%;+}++.logos li {+ position: relative;+ display: flex;+ flex: 0 0 auto;+ align-items: center;+ justify-content: center;+ border-radius: var(--openui-radius-full);+ background: var(--openui-foreground);+}++:global(.dark) .logos li,+:global([data-theme="dark"]) .logos li {+ background: var(--openui-text-white);+}++@media (hover: hover) and (pointer: fine) {+ .logos li::after {+ position: absolute;+ z-index: 6;+ bottom: calc(100% + 8px);+ left: 50%;+ padding: 5px 8px;+ transform: translate(-50%, 3px);+ border: 1px solid var(--openui-border-default);+ border-radius: 6px;+ background: var(--openui-text-neutral-primary);+ box-shadow: 0 6px 18px rgb(0 0 0 / 0.1);+ color: var(--openui-foreground);+ content: attr(data-tooltip);+ font-family: var(--home-font-text);+ font-size: 0.6875rem;+ font-weight: 500;+ line-height: 1.25;+ opacity: 0;+ pointer-events: none;+ transition:+ opacity 120ms ease,+ transform 120ms ease;+ white-space: nowrap;+ }++ .logos li:hover::after,+ .logos li:focus-visible::after {+ transform: translate(-50%, 0);+ opacity: 1;+ }++ .branch[data-side="left"] .logos li:first-child::after {+ left: 0;+ transform: translate(0, 3px);+ }++ .branch[data-side="left"] .logos li:first-child:hover::after,+ .branch[data-side="left"] .logos li:first-child:focus-visible::after {+ transform: translate(0, 0);+ }++ .branch[data-side="right"] .logos li:last-child::after {+ right: 0;+ left: auto;+ transform: translate(0, 3px);+ }++ .branch[data-side="right"] .logos li:last-child:hover::after,+ .branch[data-side="right"] .logos li:last-child:focus-visible::after {+ transform: translate(0, 0);+ }+}++@media (max-width: 767px) {+ .diagram {+ --stack-logo-size: 28px;+ left: auto;+ width: 100%;+ height: 420px;+ transform: none;+ }++ .network {+ clip-path: inset(0 8px);+ }++ .desktopNetwork {+ display: none;+ }++ .mobileNetwork {+ display: block;+ }++ .card {+ padding: 6px;+ border-radius: 17px;+ }++ .cardInner {+ padding: 9px 14px;+ border-radius: 13px;+ }++ .cardInner h2 {+ scroll-margin-top: 140px;+ font-size: 0.75rem;+ line-height: 1.6;+ letter-spacing: -0.1px;+ }++ .category {+ max-width: 7.5rem;+ padding: 6px 9px;+ overflow: hidden;+ font-size: 0.72rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }++ .branch[data-side="left"] .category {+ left: 37%;+ }++ .branch[data-side="right"] .category {+ left: 63%;+ }++ .branch[data-side="left"][data-row="top"] .category,+ .branch[data-side="left"][data-row="top"] .logos {+ top: 22.619%;+ }++ .branch[data-side="right"][data-row="top"] .category,+ .branch[data-side="right"][data-row="top"] .logos {+ top: 34.524%;+ }++ .branch[data-side="left"][data-row="bottom"] .category,+ .branch[data-side="left"][data-row="bottom"] .logos {+ top: 65.476%;+ }++ .branch[data-side="left"][data-row="bottom"] .category {+ left: 37%;+ }++ .branch[data-side="right"][data-row="bottom"] .category,+ .branch[data-side="right"][data-row="bottom"] .logos {+ top: 77.381%;+ }++ .branch[data-side="right"][data-row="bottom"] .category {+ left: 63%;+ }++ .logos {+ width: 64px;+ height: var(--stack-logo-size);+ }++ .branch[data-side="left"] .logos {+ right: auto;+ left: 8px;+ }++ .branch[data-side="right"] .logos {+ right: 8px;+ left: auto;+ }++ .logos li {+ position: absolute;+ top: 0;+ opacity: 0;+ animation: mobileLogoCycle 8s ease-in-out infinite;+ animation-delay: var(--mobile-cycle-offset, 0s);+ }++ .logos li:nth-child(odd) {+ left: 0;+ }++ .logos li:nth-child(even) {+ left: 36px;+ }++ .logos li:nth-child(n + 3) {+ animation-delay: calc(var(--mobile-cycle-offset, 0s) - 4s);+ }++ .branch[data-row="bottom"] {+ --mobile-cycle-offset: -1s;+ }++ .branch[data-side="right"][data-row="top"] {+ --mobile-cycle-offset: -2s;+ }++ .branch[data-side="right"][data-row="bottom"] {+ --mobile-cycle-offset: -3s;+ }+}++@media (max-width: 380px) {+ .cardInner h2 {+ font-size: 0.68rem;+ letter-spacing: 0.015em;+ }++ .category {+ max-width: 6.75rem;+ font-size: 0.68rem;+ }+}++@media (max-width: 359px) {+ .logos {+ width: var(--stack-logo-size);+ }++ .logos li,+ .logos li:nth-child(even) {+ left: 0;+ animation-name: mobileLogoSingleCycle;+ }++ .logos li:nth-child(2) {+ animation-delay: calc(var(--mobile-cycle-offset, 0s) - 2s);+ }++ .logos li:nth-child(3) {+ animation-delay: calc(var(--mobile-cycle-offset, 0s) - 4s);+ }++ .logos li:nth-child(4) {+ animation-delay: calc(var(--mobile-cycle-offset, 0s) - 6s);+ }+}++@media (prefers-reduced-motion: reduce) {+ .pulses path {+ animation: none;+ stroke-dashoffset: 0.45;+ }++ .logos li {+ animation: none;+ }++ @media (max-width: 767px) {+ .logos li:nth-child(-n + 2) {+ opacity: 1;+ }++ .logos li:nth-child(n + 3) {+ display: none;+ }+ }+}diff --git a/docs/app/(home)/sections/CompatibilitySection/CompatibilityDiagram.tsx b/docs/app/(home)/sections/CompatibilitySection/CompatibilityDiagram.tsxnew file mode 100644index 000000000..29fce8603--- /dev/null+++ b/docs/app/(home)/sections/CompatibilitySection/CompatibilityDiagram.tsx@@ -0,0 +1,106 @@+import { useId, type CSSProperties } from "react";+import { StackChip, type StackChipItem } from "../../components/StackChip/StackChip";+import styles from "./CompatibilityDiagram.module.css";++type StackGroup = { label: string; items: StackChipItem[] };++const CONNECTORS = [+ "M640 306H528C477 306 446 279 446 235C446 195 418 166 376 166H0",+ "M640 306H528C477 306 446 333 446 377C446 417 418 446 376 446H0",+ "M640 306H752C803 306 834 279 834 235C834 195 862 166 904 166H1280",+ "M640 306H752C803 306 834 333 834 377C834 417 862 446 904 446H1280",+];++// Mobile uses four staggered rails rather than forcing both sides onto the+// same two rows. This keeps the category chips and rotating logos legible in+// the narrow composition while retaining the same center-in / center-out flow.+const MOBILE_CONNECTORS = [+ "M180 210H156C142 210 136 198 136 180C136 132 122 95 94 95H0",+ "M180 210H156C142 210 136 222 136 240C136 260 122 275 94 275H0",+ "M180 210H204C218 210 224 198 224 180C224 160 238 145 266 145H360",+ "M180 210H204C218 210 224 222 224 240C224 288 238 325 266 325H360",+];++export function CompatibilityDiagram({ groups }: { groups: StackGroup[] }) {+ const id = useId();++ return (+ <div className={styles.diagram}>+ <svg+ className={`${styles.network} ${styles.desktopNetwork}`}+ viewBox="0 0 1280 612"+ preserveAspectRatio="none"+ aria-hidden="true"+ >+ <g className={styles.rails}>+ {CONNECTORS.map((path) => (+ <path key={path} d={path} vectorEffect="non-scaling-stroke" />+ ))}+ </g>+ <g className={styles.pulses}>+ {CONNECTORS.map((path, index) => (+ <path+ key={path}+ d={path}+ pathLength="1"+ vectorEffect="non-scaling-stroke"+ style={{ "--pulse-delay": `${index * -1.4}s` } as CSSProperties}+ />+ ))}+ </g>+ </svg>++ <svg+ className={`${styles.network} ${styles.mobileNetwork}`}+ viewBox="0 0 360 420"+ preserveAspectRatio="none"+ aria-hidden="true"+ >+ <g className={styles.rails}>+ {MOBILE_CONNECTORS.map((path) => (+ <path key={path} d={path} vectorEffect="non-scaling-stroke" />+ ))}+ </g>+ <g className={styles.pulses}>+ {MOBILE_CONNECTORS.map((path, index) => (+ <path+ key={path}+ d={path}+ pathLength="1"+ vectorEffect="non-scaling-stroke"+ style={{ "--pulse-delay": `${index * -1.4}s` } as CSSProperties}+ />+ ))}+ </g>+ </svg>++ <div className={styles.card}>+ <div className={styles.cardInner}>+ <h2 id="favorite-stack-title">Works with any stack</h2>+ </div>+ </div>++ {groups.map((group, index) => (+ <div+ key={group.label}+ className={styles.branch}+ data-side={index < 2 ? "left" : "right"}+ data-row={index % 2 === 0 ? "top" : "bottom"}+ role="group"+ aria-labelledby={`${id}-${index}`}+ >+ <h3 id={`${id}-${index}`} className={styles.category}>+ {group.label}+ </h3>+ <ul className={styles.logos}>+ {group.items.slice(0, 4).map((item) => (+ <li key={item.name} data-tooltip={item.name} tabIndex={0}>+ <StackChip item={{ ...item, isBlurred: false }} iconOnly />+ </li>+ ))}+ </ul>+ </div>+ ))}+ </div>+ );+}diff --git a/docs/app/(home)/sections/CompatibilitySection/CompatibilitySection.module.css b/docs/app/(home)/sections/CompatibilitySection/CompatibilitySection.module.cssindex 776aa601a..ee905c213 100644--- a/docs/app/(home)/sections/CompatibilitySection/CompatibilitySection.module.css+++ b/docs/app/(home)/sections/CompatibilitySection/CompatibilitySection.module.css@@ -1,6 +1,7 @@.section {width: 100%;padding-inline: var(--home-section-padding-inline);+ overflow: hidden;}.container {@@ -79,38 +80,29 @@gap: 0.375rem;}+/* Was display:none. The rows showed a line of logos with nothing naming what+ they were, so neither someone skimming nor an agent parsing the page could+ tell the model row from the design-library one. The label is the claim; the+ logos underneath are the evidence for it. */.label {- display: none;-}--.chipsViewport {- position: relative;- width: 100%;- overflow: hidden;- -webkit-mask-image: linear-gradient(- to right,- transparent 0%,- #000 8%,- #000 92%,- transparent 100%- );- mask-image: linear-gradient(- to right,- transparent 0%,- #000 8%,- #000 92%,- transparent 100%- );+ display: block;+ font-family: var(--home-font-text);+ font-size: 0.9375rem;+ font-weight: 500;+ line-height: 1.4;+ color: var(--openui-text-neutral-primary);}+/* Wraps in place. This used to be a fixed-width track slid by rAF behind a+ masked viewport; with the animation gone the row simply lays out and wraps,+ and .chipsViewport is no longer rendered. */.chips {display: flex;- width: max-content;+ width: 100%;flex-direction: row;- flex-wrap: nowrap;+ flex-wrap: wrap;align-items: center;gap: 0.5rem;- will-change: transform;}.chipRow {@@ -214,22 +206,4 @@.section[data-variant="embedded"] .chips {gap: 0.375rem;}-- /* Fade the chips towards the screen edges. */- .section[data-variant="embedded"] .chipsViewport {- -webkit-mask-image: linear-gradient(- to right,- transparent,- #000 8%,- #000 92%,- transparent- );- mask-image: linear-gradient(- to right,- transparent,- #000 8%,- #000 92%,- transparent- );- }}diff --git a/docs/app/(home)/sections/CompatibilitySection/CompatibilitySection.tsx b/docs/app/(home)/sections/CompatibilitySection/CompatibilitySection.tsxindex e31d8e56f..b36ee0ce8 100644--- a/docs/app/(home)/sections/CompatibilitySection/CompatibilitySection.tsx+++ b/docs/app/(home)/sections/CompatibilitySection/CompatibilitySection.tsx@@ -1,13 +1,8 @@"use client";import svgPaths from "@/imports/svg-urruvoh2be";-import { Stack } from "@phosphor-icons/react";-import { useEffect, useRef, type ReactNode } from "react";-import {- StackChip,- stackChipStyles,- type StackChipItem,-} from "../../components/StackChip/StackChip";+import { stackChipStyles, type StackChipItem } from "../../components/StackChip/StackChip";+import { CompatibilityDiagram } from "./CompatibilityDiagram";import styles from "./CompatibilitySection.module.css";interface StackRow {@@ -15,21 +10,11 @@ interface StackRow {items: StackChipItem[];}-const MARQUEE_COPIES = 3;-const MARQUEE_SPEED = 0.2;--function createMoreChip(): StackChipItem {- return {- name: "+ more",- iconKind: "more",- badgeClassName: stackChipStyles.badgeMore,- isBlurred: true,- };-}-+/* Keep the four existing compatibility groups and their supported integrations+ together; every branch uses this same source at every screen size. */const STACK_ROWS: StackRow[] = [{- label: "All LLMs",+ label: "LLM",items: [{name: "OpenAI",@@ -73,11 +58,99 @@ const STACK_ROWS: StackRow[] = [iconColor: "ffffff",badgeClassName: stackChipStyles.badgeDeepSeek,},- createMoreChip(),],},{- label: "Any UI Library",+ label: "Backend",+ items: [+ {+ name: "Cursor",+ iconKind: "image",+ localSrc: "/brand-icons/cursor.svg",+ iconColor: "000000",+ badgeClassName: `${stackChipStyles.badgeWhite} ${stackChipStyles.badgeWithBorder}`,+ },+ {+ name: "LangChain",+ iconKind: "image",+ slug: "langchain",+ iconColor: "ffffff",+ badgeClassName: stackChipStyles.badgeLangChain,+ },+ {+ name: "CrewAI",+ iconKind: "image",+ slug: "crewai",+ iconColor: "ffffff",+ badgeClassName: stackChipStyles.badgeCrewAi,+ },+ {+ name: "OpenAI Agents SDK",+ iconKind: "image",+ localSrc: "/brand-icons/openai.svg",+ iconColor: "000000",+ badgeClassName: `${stackChipStyles.badgeWhite} ${stackChipStyles.badgeWithBorder}`,+ },+ {+ name: "Anthropic Agents SDK",+ iconKind: "image",+ slug: "anthropic",+ iconColor: "ffffff",+ badgeClassName: stackChipStyles.badgeAnthropic,+ },+ ],+ },+ {+ /* Where it renders. Every entry is a package we publish (react-lang,+ vue-lang, svelte-lang, react-email) or a listed integration — no Flutter+ and no direct native, which A2UI has and we do not. */+ label: "Client",+ items: [+ {+ name: "React",+ iconKind: "image",+ slug: "react",+ iconColor: "000000",+ badgeClassName: `${stackChipStyles.badgeWhite} ${stackChipStyles.badgeWithBorder}`,+ },+ {+ name: "Vue",+ iconKind: "image",+ slug: "vuedotjs",+ iconColor: "ffffff",+ badgeClassName: stackChipStyles.badgeBlack,+ },+ {+ name: "Svelte",+ iconKind: "image",+ slug: "svelte",+ iconColor: "ffffff",+ badgeClassName: stackChipStyles.badgeBlack,+ },+ {+ name: "React Native",+ iconKind: "image",+ slug: "react",+ iconColor: "000000",+ badgeClassName: `${stackChipStyles.badgeWhite} ${stackChipStyles.badgeWithBorder}`,+ },+ {+ name: "Lynx",+ iconKind: "image",+ localSrc: "/integration-logos/lynx.svg",+ iconColor: "ffffff",+ badgeClassName: `${stackChipStyles.badgeWhite} ${stackChipStyles.badgeWithBorder}`,+ },+ {+ name: "Email",+ iconKind: "text",+ iconText: "@",+ badgeClassName: stackChipStyles.badgeBlack,+ },+ ],+ },+ {+ label: "Design library",items: [{name: "OpenUI Design system",@@ -116,101 +189,11 @@ const STACK_ROWS: StackRow[] = [iconText: "B",badgeClassName: stackChipStyles.badgeBaseUi,},- createMoreChip(),- ],- },- {- label: "Any Framework",- items: [- {- name: "Vercel AI SDK",- iconKind: "image",- slug: "vercel",- iconColor: "ffffff",- badgeClassName: stackChipStyles.badgeBlack,- },- {- name: "LangChain",- iconKind: "image",- slug: "langchain",- iconColor: "ffffff",- badgeClassName: stackChipStyles.badgeLangChain,- },- {- name: "CrewAI",- iconKind: "image",- slug: "crewai",- iconColor: "ffffff",- badgeClassName: stackChipStyles.badgeCrewAi,- },- {- name: "OpenAI Agents SDK",- iconKind: "image",- localSrc: "/brand-icons/openai.svg",- iconColor: "000000",- badgeClassName: `${stackChipStyles.badgeWhite} ${stackChipStyles.badgeWithBorder}`,- },- {- name: "Anthropic Agents SDK",- iconKind: "image",- slug: "anthropic",- iconColor: "ffffff",- badgeClassName: stackChipStyles.badgeAnthropic,- },- createMoreChip(),],},];-export function CompatibilitySection({- title,- description,- embedded = false,-}: { title?: ReactNode; description?: ReactNode; embedded?: boolean } = {}) {- const trackRefs = useRef<(HTMLDivElement | null)[]>([]);-- useEffect(() => {- const tracks = trackRefs.current.filter(- (track): track is HTMLDivElement => track !== null,- );- if (tracks.length === 0) return;-- let frameId = 0;- const offsets = tracks.map(() => 0);- const initialized = tracks.map(() => false);-- const tick = () => {- tracks.forEach((track, i) => {- const loopWidth = track.scrollWidth / MARQUEE_COPIES;- if (loopWidth > 0) {- // Alternate direction: even rows scroll right-to-left, odd rows left-to-right.- const direction = i % 2 === 0 ? -1 : 1;- if (!initialized[i]) {- offsets[i] = direction > 0 ? -loopWidth : 0;- initialized[i] = true;- }- offsets[i] += MARQUEE_SPEED * direction;- if (offsets[i] <= -loopWidth) {- offsets[i] += loopWidth;- } else if (offsets[i] >= 0) {- offsets[i] -= loopWidth;- }- track.style.transform = `translateX(${offsets[i]}px)`;- }- });- frameId = window.requestAnimationFrame(tick);- };-- frameId = window.requestAnimationFrame(tick);-- return () => {- window.cancelAnimationFrame(frameId);- tracks.forEach((track) => {- track.style.transform = "";- });- };- }, []);-+export function CompatibilitySection({ embedded = false }: { embedded?: boolean } = {}) {return (<sectionclassName={styles.section}@@ -219,53 +202,7 @@ export function CompatibilitySection({><div className={styles.container}><div className={styles.stack}>- <header className={styles.header}>- <span className={styles.titleIcon} aria-hidden="true">- <Stack size={18} weight="light" />- </span>- <div className={styles.headerText}>- <h2 id="favorite-stack-title" className={styles.title}>- {title ?? (- <>- Works with your stack.- <br />- <span className={styles.titleAccent}>Any LLM, UI library, and framework.</span>- </>- )}- </h2>- {description && <p className={styles.description}>{description}</p>}- </div>- </header>-- <div className={styles.rows}>- {STACK_ROWS.map((row, rowIndex) => {- const visibleItems = row.items.filter((item) => !item.isBlurred);- const loopedItems = Array.from({ length: MARQUEE_COPIES }, (_, copyIndex) =>- visibleItems.map((item, itemIndex) => ({- item,- key: `${row.label}-${itemIndex}-${copyIndex}`,- })),- ).flat();-- return (- <div key={row.label} className={styles.row}>- <span className={styles.label}>{row.label}</span>- <div className={styles.chipsViewport}>- <div- ref={(el) => {- trackRefs.current[rowIndex] = el;- }}- className={styles.chips}- >- {loopedItems.map(({ item, key }) => (- <StackChip key={key} item={item} dense={embedded} />- ))}- </div>- </div>- </div>- );- })}- </div>+ <CompatibilityDiagram groups={STACK_ROWS} /></div></div></section>diff --git a/docs/app/(home)/sections/CompatibilitySection/assets/stack-connector.svg b/docs/app/(home)/sections/CompatibilitySection/assets/stack-connector.svgnew file mode 100644index 000000000..2cdbaff71--- /dev/null+++ b/docs/app/(home)/sections/CompatibilitySection/assets/stack-connector.svg@@ -0,0 +1,5 @@+<svg preserveAspectRatio="none" overflow="visible" style="display: block;" width="720" height="210" viewBox="0 0 720 210" fill="none" xmlns="http://www.w3.org/2000/svg">+<g id="Icon">+<path id="Vector" d="M0 46L480 46C499.2 46 508.8 57.3333 508.8 80V146C508.8 167.333 515.2 178 528 178H720" stroke="#030303" stroke-opacity="0.12" stroke-width="1.09545"/>+</g>+</svg>diff --git a/docs/app/(home)/sections/FaqSection/FaqSection.module.css b/docs/app/(home)/sections/FaqSection/FaqSection.module.cssnew file mode 100644index 000000000..36e13644e--- /dev/null+++ b/docs/app/(home)/sections/FaqSection/FaqSection.module.css@@ -0,0 +1,220 @@+/* Colour through tokens so the one set of rules serves both themes. */+.section {+ --faq-text: var(--openui-text-neutral-primary);+ --faq-muted: var(--openui-text-neutral-secondary);+ --faq-surface: #fff;+ --faq-border: rgba(10, 10, 10, 0.035);++ display: grid;+ grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);+ align-items: start;+ gap: clamp(2rem, 5vw, 5rem);+ /* On top of the content shell's own gap: the FAQ closes the page and wants+ more separation from the wall of tweets above it. */+ margin-top: clamp(3rem, 6vw, 5.5rem);+ width: 100%;+ max-width: var(--home-container-max);+ margin-inline: auto;+ color: var(--faq-text);+}++[data-theme="dark"] .section {+ --faq-surface: rgba(255, 255, 255, 0.042);+ --faq-border: rgba(255, 255, 255, 0.04);+}++/* ---- Left column ---- */+.lead {+ display: flex;+ flex-direction: column;+ gap: 1rem;+ /* Holds beside the list while it scrolls on tall viewports. */+ position: sticky;+ top: 7rem;+}++.title {+ margin: 0;+ font-family: var(--home-font-display);+ font-size: clamp(1.75rem, 3vw, 2.5rem);+ font-weight: var(--home-title-weight);+ line-height: 1.1;+ letter-spacing: -0.02em;+ text-wrap: balance;+}++.note {+ max-width: 26ch;+ margin: 0;+ font-family: var(--home-font-text);+ font-size: 1rem;+ line-height: 1.55;+ color: var(--faq-muted);+ text-wrap: pretty;+}++.noteLink,+.note a {+ color: var(--faq-text);+ text-decoration: none;+ border-bottom: 1px solid currentColor;+}++.noteLink:hover,+.note a:hover {+ opacity: 0.7;+}++/* ---- Right column ---- */+.list {+ display: flex;+ flex-direction: column;+ gap: 0.75rem;+}++.item {+ --faq-card-padding-block: clamp(1rem, 1.6vw, 1.5rem);+ --faq-card-padding-inline: clamp(1.125rem, 1.8vw, 1.75rem);++ overflow: hidden;+ padding: 0;+ border: 1px solid var(--faq-border);+ border-radius: 16px;+ background: var(--faq-surface);+ transition:+ border-color 180ms ease,+ background-color 180ms ease,+ transform 180ms ease;+}++.item:hover,+.item:focus-within {+ border-color: var(--openui-border-interactive);+}++.item:active {+ transform: translateY(1px);+}++.question {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1.5rem;+ width: 100%;+ box-sizing: border-box;+ padding: var(--faq-card-padding-block) var(--faq-card-padding-inline);+ cursor: pointer;+ list-style: none;+ transition: color 180ms ease;+}++.item[open] .question {+ padding-bottom: 0.75rem;+}++/* Safari draws its own triangle without this. */+.question::-webkit-details-marker {+ display: none;+}++.questionText {+ font-family: var(--home-font-display);+ font-size: clamp(1rem, 1.3vw, 1.125rem);+ font-weight: var(--home-heading-weight);+ line-height: 1.4;+ letter-spacing: var(--home-heading-tracking);+ text-wrap: pretty;+}++/* ---- Plus / minus ---- */+.marker {+ position: relative;+ flex: none;+ width: 14px;+ height: 14px;+ /* Nudged onto the first line's optical centre. */+ margin-top: 5px;+ color: var(--faq-muted);+}++.marker::before,+.marker::after {+ content: "";+ position: absolute;+ inset: 50% 0 auto;+ height: 1.5px;+ border-radius: 2px;+ background: currentColor;+ transform: translateY(-50%);+ transition: transform 0.22s cubic-bezier(0.45, 0.05, 0.15, 1);+}++/* The upright bar, rotated into place and flattened away when open. */+.marker::after {+ transform: translateY(-50%) rotate(90deg);+}++.item[open] .marker::after {+ transform: translateY(-50%) rotate(90deg) scaleX(0);+}++/* ---- Answer ---- */+.answer {+ display: flex;+ flex-direction: column;+ gap: 0.875rem;+ margin: 0;+ padding: 0 var(--faq-card-padding-inline) var(--faq-card-padding-block);+}++.item[open] .answer {+ animation: faqAnswerIn 220ms ease-out both;+}++@keyframes faqAnswerIn {+ from {+ opacity: 0;+ transform: translateY(-4px);+ }++ to {+ opacity: 1;+ transform: translateY(0);+ }+}++.paragraph {+ margin: 0;+ font-family: var(--home-font-text);+ font-size: 0.9375rem;+ line-height: 1.6;+ color: var(--faq-muted);+ text-wrap: pretty;+}++@media (prefers-reduced-motion: reduce) {+ .item,+ .question,+ .marker::before,+ .marker::after,+ .item[open] .answer {+ animation: none;+ transition-duration: 0.01s;+ }+}++@media (max-width: 900px) {+ .section {+ grid-template-columns: minmax(0, 1fr);+ gap: 2rem;+ }++ .lead {+ position: static;+ }++ .note {+ max-width: none;+ }+}diff --git a/docs/app/(home)/sections/FaqSection/FaqSection.tsx b/docs/app/(home)/sections/FaqSection/FaqSection.tsxnew file mode 100644index 000000000..855ccb9a3--- /dev/null+++ b/docs/app/(home)/sections/FaqSection/FaqSection.tsx@@ -0,0 +1,138 @@+import type { ReactNode } from "react";+import styles from "./FaqSection.module.css";++export type MarketingFaq = {+ question: string;+ /* One entry per paragraph. */+ answer: string[];+};++const FAQS: MarketingFaq[] = [+ {+ question: "What should I use to build a Generative UI app?",+ answer: [+ "Start with OpenUI, the free and open-source framework for Generative UI.",+ "For production, we recommend adding OpenUI Gateway for reliability and OpenUI Observability for monitoring and product analytics.",+ ],+ },+ {+ /* Asked because people keep reading the hero screenshot as the whole+ product. Stated plainly and near the top: the misunderstanding is common+ enough that it is worth its own question rather than a clause elsewhere. */+ question: "Is OpenUI only for chat?",+ answer: [+ "No. OpenUI renders whatever interface a response describes: dashboards, forms, tables, charts, and complete application screens, not only messages in a chat thread.",+ "The same response renders through React, Vue, Svelte, React Native, email, or a plain script tag.",+ ],+ },+ {+ question: "Is OpenUI free and open source?",+ answer: [+ "Yes. OpenUI is fully open source and works with your own models, infrastructure, components, and design system.",+ "OpenUI Gateway and OpenUI Observability are managed services for teams running Generative UI in production.",+ ],+ },+ {+ question: "Do I need OpenUI Gateway to use OpenUI?",+ answer: [+ "No. You can call any supported LLM directly.",+ "For production applications, OpenUI Gateway adds validation and automatic corrections for generated UI, model routing, and provider fallbacks through an OpenAI-compatible API.",+ "You can usually adopt it by changing your base URL and model configuration.",+ ],+ },+ {+ /* The same answer both product pages give, so the advice does not change+ with the door you came in through. */+ question: "Do I need both Gateway and Observability?",+ answer: [+ "No. They work independently.",+ "We recommend using both. Gateway makes generated UI more reliable. Observability shows what users experienced and whether it worked.",+ ],+ },+ {+ question: "Can OpenUI work with my existing stack?",+ answer: [+ "Yes. OpenUI works with your existing LLMs, agent frameworks, design systems, and infrastructure.",+ "You can bring your own OpenAI, Anthropic, or Google keys, use custom component libraries, and run OpenUI Gateway behind other OpenAI-compatible gateways such as Portkey.",+ ],+ },+ {+ question: "How is Thesys related to OpenUI?",+ answer: [+ "Thesys is the company behind OpenUI, much like Vercel is the company behind Next.js.",+ "Thesys maintains the open-source OpenUI framework and operates OpenUI Cloud.",+ ],+ },+];++/* Closing FAQ. Title and contact note on the left, the questions on the right.+ *+ * Built on <details>, not a JS accordion, for two reasons: every answer is in+ * the markup whether or not it is open, so crawlers and coding agents reading+ * the page get the full text even while every item is collapsed; and it keeps+ * working with no JavaScript.+ */+export function FaqSection({+ faqs = FAQS,+ title = "Frequently asked questions",+ titleId = "faq-title",+ contact,+ firstOpen = false,+}: {+ faqs?: MarketingFaq[];+ title?: string;+ titleId?: string;+ contact?: ReactNode;+ firstOpen?: boolean;+} = {}) {+ return (+ <section className={styles.section} aria-labelledby={titleId}>+ <div className={styles.lead}>+ <h2 id={titleId} className={styles.title}>+ {title}+ </h2>+ <p className={styles.note}>+ {contact ?? (+ <>+ Have another question? Join our{" "}+ <a+ className={styles.noteLink}+ href="https://discord.com/invite/Pbv5PsqUSv"+ target="_blank"+ rel="noopener noreferrer"+ >+ Discord+ </a>+ .+ </>+ )}+ </p>+ </div>++ <div className={styles.list}>+ {faqs.map(({ question, answer }, index) => (+ <details+ className={styles.item}+ key={question}+ name={`${titleId}-accordion`}+ open={firstOpen && index === 0}+ >+ <summary className={styles.question}>+ <span className={styles.questionText}>{question}</span>+ {/* Two bars making a plus; the upright one collapses when open,+ leaving a minus. */}+ <span className={styles.marker} aria-hidden="true" />+ </summary>+ <div className={styles.answer}>+ {answer.map((paragraph) => (+ <p className={styles.paragraph} key={paragraph}>+ {paragraph}+ </p>+ ))}+ </div>+ </details>+ ))}+ </div>+ </section>+ );+}diff --git a/docs/app/(home)/sections/FeatureGridSection/FeatureGridSection.module.css b/docs/app/(home)/sections/FeatureGridSection/FeatureGridSection.module.cssindex 7fa42abe4..804f51c61 100644--- a/docs/app/(home)/sections/FeatureGridSection/FeatureGridSection.module.css+++ b/docs/app/(home)/sections/FeatureGridSection/FeatureGridSection.module.css@@ -3,9 +3,13 @@padding: 0 var(--home-section-padding-inline);}+.section.sectionFlushPadding {+ padding-inline: 0;+}+.header {max-width: 46rem;- margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);+ margin: 0 auto clamp(1.25rem, 2.5vw, 2rem);text-align: center;}@@ -99,12 +103,29 @@color: var(--openui-text-neutral-secondary);}+.featureDescription a {+ color: inherit;+ text-underline-offset: 3px;+}+/* Mobile-only expand affordance; hidden on desktop. */.chevron {display: none;}/* Horizontal separator below the grid; the grid's vertical lines meet it. */+/* Space in place of a rule when the compatibility band leads the section, and+ the breathing room above the header that follows it. */+.compatLead {+ margin-bottom: clamp(4.5rem, 9vw, 8rem);+}++/* Same job as .compatLead, for the grid when it runs above the header: without+ it the last row of cards butts straight into "Renders 3x faster". */+.gridLead {+ margin-bottom: clamp(4.5rem, 9vw, 8rem);+}+.separator {width: 100%;max-width: 75rem;@@ -297,6 +318,14 @@}}+/* Nested flush grids keep their content aligned with the parent illustration+ while the desktop columns are stacked. Mobile already removes card padding. */+@media (min-width: 768px) and (max-width: 1023px) {+ .sectionFlushPadding .gridFlushOuterCards > .feature {+ padding-inline: 0;+ }+}+/* Mobile-only: smaller header headings + compact feature rows. */@media (max-width: 767px) {/* Section separators run edge to edge and fade out on the left, matching the@@ -436,6 +465,24 @@padding-top: 0.375rem;}+ .sectionStatic .feature {+ cursor: default;+ }++ .sectionStatic .chevron {+ display: none;+ }++ .sectionStatic .featureDescription {+ grid-column: 2 / -1;+ grid-template-rows: 1fr;+ max-width: none;+ }++ .sectionStatic .featureDescriptionInner {+ padding-top: 0.375rem;+ }+@media (prefers-reduced-motion: reduce) {.featureDescription {transition: none;diff --git a/docs/app/(home)/sections/FeatureGridSection/FeatureGridSection.tsx b/docs/app/(home)/sections/FeatureGridSection/FeatureGridSection.tsxindex 1577c5f47..871045290 100644--- a/docs/app/(home)/sections/FeatureGridSection/FeatureGridSection.tsx+++ b/docs/app/(home)/sections/FeatureGridSection/FeatureGridSection.tsx@@ -28,7 +28,7 @@ export type GridFeature = {Icon?: Icon;icon?: GridFeatureIcon;title: string;- description: string;+ description: ReactNode;};const FEATURES: GridFeature[] = [@@ -41,7 +41,8 @@ const FEATURES: GridFeature[] = [{Icon: Devices,title: "Cross-platform",- description: "One spec renders natively to React, React Native, Vue, and more.",+ description:+ "One response renders through React, Vue, Svelte, React Native, email, or a plain script tag.",},{Icon: Broadcast,@@ -51,7 +52,8 @@ const FEATURES: GridFeature[] = [{Icon: CursorClick,title: "Interactive",- description: "Reactive state, inputs, and actions wired straight to your tools.",+ description:+ "Connect inputs and actions to your tools, with UI that updates as users interact.",},{Icon: ShieldCheck,@@ -84,22 +86,33 @@ export function FeatureGridSection({features = FEATURES,lead,showHeader = true,+ showHeaderSeparator = true,showCompat = true,+ compatFirst = false,+ gridFirst = false,header,showBottomSeparator = true,fadeColumnLines = false,showTopSeparator = false,flushOuterCards = false,+ flushSectionPadding = false,balanceLastRow = false,desktopColumns = 3,+ mobileAccordion = true,}: {features?: GridFeature[];/** Optional content rendered as the first cell in the feature grid. */lead?: ReactNode;/** The benchmark header + CTA (OpenUI-specific). Off for sub-product pages. */showHeader?: boolean;+ /** The rule under that header. Off when there is no grid for it to divide. */+ showHeaderSeparator?: boolean;/** The "Works with your stack" compatibility band (OpenUI-specific). */showCompat?: boolean;+ /** Put that band above the header instead of below the grid. */+ compatFirst?: boolean;+ /** Render the feature grid above the benchmark header instead of below it. */+ gridFirst?: boolean;/** Custom headline above the grid (with a separator below it), e.g. a page tagline. */header?: ReactNode;/** The full-width separator at the very bottom of the section (default on). */@@ -110,35 +123,90 @@ export function FeatureGridSection({showTopSeparator?: boolean;/** Remove the outside padding from the edge cells in a two-row, three-column grid. */flushOuterCards?: boolean;+ /** Remove this section's page gutter when it is nested inside an already padded section. */+ flushSectionPadding?: boolean;/** Let the final two cards split the full grid width evenly. */balanceLastRow?: boolean;/** Number of columns used by the feature grid on desktop. */desktopColumns?: 3 | 4;+ /** Keep short, essential descriptions visible without tapping on mobile. */+ mobileAccordion?: boolean;} = {}) {// Mobile-only: all rows collapsed by default; one expands at a time and the// open one can be tapped to collapse. Desktop ignores this (CSS shows all).const accordion = useSingleOpenAccordion();+ const compatBand = showCompat ? (+ <div className={styles.compat}>+ <CompatibilitySection embedded />+ </div>+ ) : null;++ const gridBlock = (+ <div+ className={`${styles.grid} ${fadeColumnLines ? styles.gridFadeLines : ""} ${+ features.length <= desktopColumns ? styles.gridSingleRow : ""+ } ${flushOuterCards ? styles.gridFlushOuterCards : ""} ${+ balanceLastRow ? styles.gridBalancedLastRow : ""+ } ${desktopColumns === 4 ? styles.gridFourColumns : ""}`.trim()}+ >+ {lead && <div className={styles.lead}>{lead}</div>}+ {features.map(({ Icon, icon, title, description }, index) => {+ const FeatureIcon = Icon ?? (icon ? FEATURE_ICONS[icon] : undefined);++ return (+ <div+ className={`${styles.feature} ${FeatureIcon ? "" : styles.featureWithPlaceholder}`.trim()}+ key={title}+ {...(mobileAccordion ? accordion.getToggleProps(index) : {})}+ >+ <span+ className={`${styles.icon} ${FeatureIcon ? "" : styles.iconPlaceholder}`.trim()}+ aria-hidden="true"+ >+ {FeatureIcon && <FeatureIcon size={28} weight="light" />}+ </span>+ <h3 className={styles.featureTitle}>{title}</h3>+ <ExpandChevron className={styles.chevron} />+ <p className={styles.featureDescription}>+ <span className={styles.featureDescriptionInner}>{description}</span>+ </p>+ </div>+ );+ })}+ </div>+ );+return (- <section className={styles.section}>+ <section+ className={`${styles.section} ${flushSectionPadding ? styles.sectionFlushPadding : ""} ${!mobileAccordion ? styles.sectionStatic : ""}`.trim()}+ >+ {gridFirst && <div className={styles.gridLead}>{gridBlock}</div>}+ {compatFirst && compatBand && (+ /* No rule here: the space below the band separates it from the header,+ which reads quieter than a line across the page. */+ <div className={styles.compatLead}>{compatBand}</div>+ )}{showHeader && (<><div className={styles.header}><SectionHeadertitle="Renders 3x faster"subtitle="with 67% fewer tokens"- caption="when compared to JSON-Render"+ caption="when compared to JSON based formats"><div className={styles.ctaWrap}><BevelButton- href="/docs/openui-lang/benchmarks"+ /* The format view, not the model board: this claim is about how OpenUI+ compares with other formats, and the chart reads that param on load. */+ href="/benchmarks?view=formats"label="View benchmarks"badge={<ArrowUpRight size={16} weight="bold" />}/></div></SectionHeader></div>- <div className={styles.separator} />+ {showHeaderSeparator && <div className={styles.separator} />}</>)}{header && (@@ -148,55 +216,11 @@ export function FeatureGridSection({</>)}{showTopSeparator && <div className={styles.separator} />}- <div- className={`${styles.grid} ${fadeColumnLines ? styles.gridFadeLines : ""} ${- features.length <= desktopColumns ? styles.gridSingleRow : ""- } ${flushOuterCards ? styles.gridFlushOuterCards : ""} ${- balanceLastRow ? styles.gridBalancedLastRow : ""- } ${desktopColumns === 4 ? styles.gridFourColumns : ""- }`.trim()}- >- {lead && <div className={styles.lead}>{lead}</div>}- {features.map(({ Icon, icon, title, description }, index) => {- const FeatureIcon = Icon ?? (icon ? FEATURE_ICONS[icon] : undefined);-- return (- <div- className={`${styles.feature} ${FeatureIcon ? "" : styles.featureWithPlaceholder}`.trim()}- key={title}- {...accordion.getToggleProps(index)}- >- <span- className={`${styles.icon} ${FeatureIcon ? "" : styles.iconPlaceholder}`.trim()}- aria-hidden="true"- >- {FeatureIcon && <FeatureIcon size={28} weight="light" />}- </span>- <h3 className={styles.featureTitle}>{title}</h3>- <ExpandChevron className={styles.chevron} />- <p className={styles.featureDescription}>- <span className={styles.featureDescriptionInner}>{description}</span>- </p>- </div>- );- })}- </div>- {showCompat && (+ {!gridFirst && gridBlock}+ {!compatFirst && compatBand && (<><div className={styles.separator} />- <div className={styles.compat}>- <CompatibilitySection- embedded- title="OpenUI works with any stack"- description={- <>- OpenUI works with any LLM, UI library, and agent framework.{" "}- <br className={styles.compatDescBreak} />- Add generative UI without changing your stack.- </>- }- />- </div>+ {compatBand}</>)}{showBottomSeparator && <div className={`${styles.separator} ${styles.separatorBottom}`} />}diff --git a/docs/app/(home)/sections/HeroSection/HeroSection.module.css b/docs/app/(home)/sections/HeroSection/HeroSection.module.cssindex 9c8823fe7..89e214a16 100644--- a/docs/app/(home)/sections/HeroSection/HeroSection.module.css+++ b/docs/app/(home)/sections/HeroSection/HeroSection.module.css@@ -1122,6 +1122,49 @@}}+/* Product and homepage heroes still have enough horizontal room in the+ 900–1023px range. Keep their desktop lockup and use a narrower, inset+ illustration instead of falling into the tall phone composition. */+@media (min-width: 900px) and (max-width: 1023px) {+ .desktopFromTablet .npmDesktopLabel {+ display: inline-block;+ vertical-align: middle;+ }++ .desktopFromTablet .npmMobileLabel,+ .desktopFromTablet .mobileHero {+ display: none;+ }++ .desktopFromTablet .desktopHero {+ position: relative;+ display: block;+ width: 100%;+ padding: 4rem 1.5rem 0;+ }++ .desktopFromTablet .desktopHeroInnerLeft {+ padding-block: 4rem 2.5rem;+ }++ .desktopFromTablet .desktopHeroLockupSplit {+ gap: 24px;+ }++ .desktopFromTablet .previewSection {+ margin-top: 2rem;+ }++ .desktopFromTablet .previewDesktopOnly {+ display: flex;+ }++ .desktopFromTablet .previewFrame {+ width: calc(100% - 3rem);+ max-width: 56rem;+ }+}+/* ── Responsive: desktop (≥1024px) ── */@media (min-width: 1024px) {diff --git a/docs/app/(home)/sections/HeroSection/HeroSection.tsx b/docs/app/(home)/sections/HeroSection/HeroSection.tsxindex 43b5d6737..28569ee76 100644--- a/docs/app/(home)/sections/HeroSection/HeroSection.tsx+++ b/docs/app/(home)/sections/HeroSection/HeroSection.tsx@@ -315,12 +315,14 @@ function DesktopHero({secondaryCommand,secondaryCommandLabel,commandSlot,+ commandTrailing,compact,align,smallSubtitle,tightDesktopSpacing,splitLockup,flushInnerInlinePadding,+ showCommand,showPlaygroundButton,githubRepoUrl,githubButtonLabel,@@ -332,12 +334,15 @@ function DesktopHero({secondaryCommand?: string;secondaryCommandLabel?: string;commandSlot?: ReactNode;+ /* Rendered beside the command button, inside its row. */+ commandTrailing?: ReactNode;compact: boolean;align: "center" | "left";smallSubtitle: boolean;tightDesktopSpacing: boolean;splitLockup: boolean;flushInnerInlinePadding: boolean;+ showCommand: boolean;showPlaygroundButton: boolean;githubRepoUrl?: string;githubButtonLabel?: string;@@ -383,19 +388,24 @@ function DesktopHero({} ${isLeft ? styles.desktopCtaStackLeft : ""}`.trim()}>{isLeft && githubRepoUrl && <DesktopGithubStarButton href={githubRepoUrl} />}- <div className={styles.commandGroup}>- {commandSlot ? (- commandSlot- ) : (- <div className={styles.commandItem}>- {commandVariants(command).length > 0 ? (- <CommandDropdownButton command={command} variants={commandVariants(command)} />- ) : (- <NpmButton command={command} />- )}- </div>- )}- </div>+ {showCommand && (+ <div className={styles.commandGroup}>+ {commandSlot ? (+ commandSlot+ ) : (+ <div className={styles.commandItem}>+ {commandVariants(command).length > 0 ? (+ <CommandDropdownButton command={command} variants={commandVariants(command)} />+ ) : (+ <NpmButton command={command} />+ )}+ </div>+ )}+ {/* Sits inside the command group so it lines up with the command+ rather than with the CTA stack around it. */}+ {commandTrailing}+ </div>+ )}{showPlaygroundButton && <DesktopPlaygroundButton />}{!isLeft && githubRepoUrl && (<DesktopGithubButton href={githubRepoUrl} label={githubButtonLabel} />@@ -419,8 +429,10 @@ function MobileHero({secondaryCommand,secondaryCommandLabel,commandSlot,+ commandTrailing,compact,smallSubtitle,+ showCommand,showPlaygroundButton,showGitHubBanner,githubRepoUrl,@@ -431,6 +443,7 @@ function MobileHero({mobileImageHeight,mobileImageCropTopPercent = 0,mobilePreviewSlot,+ showPreview,}: {theme: HeroTheme;title: ReactNode;@@ -440,8 +453,11 @@ function MobileHero({secondaryCommand?: string;secondaryCommandLabel?: string;commandSlot?: ReactNode;+ /* Rendered beside the command button, inside its row. */+ commandTrailing?: ReactNode;compact: boolean;smallSubtitle: boolean;+ showCommand: boolean;showPlaygroundButton: boolean;showGitHubBanner: boolean;githubRepoUrl?: string;@@ -452,6 +468,7 @@ function MobileHero({mobileImageHeight?: number;mobileImageCropTopPercent?: number;mobilePreviewSlot?: ReactNode;+ showPreview: boolean;}) {const [platform, setPlatform] = useState<CommandPlatform>("macos");const activeCommand = platform === "windows" && secondaryCommand ? secondaryCommand : command;@@ -504,46 +521,51 @@ function MobileHero({{showGitHubBanner && (<GitHubBanner href={githubRepoUrl} className={styles.mobileCtaButtonWidth} />)}- <div className={styles.commandGroup}>- {commandSlot ? (- commandSlot- ) : (- <>- <CommandTabs- platform={platform}- setPlatform={setPlatform}- secondaryCommand={secondaryCommand}- />- <div className={styles.commandItem}>- <NpmButton className={styles.mobileCtaButtonWidth} command={activeCommand} />- </div>- </>- )}- </div>+ {showCommand && (+ <div className={styles.commandGroup}>+ {commandSlot ? (+ commandSlot+ ) : (+ <>+ <CommandTabs+ platform={platform}+ setPlatform={setPlatform}+ secondaryCommand={secondaryCommand}+ />+ <div className={styles.commandItem}>+ <NpmButton className={styles.mobileCtaButtonWidth} command={activeCommand} />+ </div>+ </>+ )}+ {commandTrailing}+ </div>+ )}{showPlaygroundButton && <MobilePlaygroundButton className={styles.mobileCtaButtonWidth} />}</div>{/* Mobile hero image */}- <div- className={`${styles.mobileIllustrationViewport} ${- mobileImageOverride ? styles.mobileIllustrationViewportFramed : ""- } ${mobilePreviewSlot ? styles.mobileIllustrationViewportSlot : ""}`.trim()}- style={viewportStyle}- >- {mobilePreviewSlot ?? (- <img- src={mobileHeroImage}- alt={mobileImageAlt ?? "OpenUI mobile hero preview"}- width={naturalWidth}- height={naturalHeight}- className={styles.mobileIllustrationImage}- style={imageStyle}- loading="eager"- decoding="async"- fetchPriority="high"- />- )}- </div>+ {showPreview && (+ <div+ className={`${styles.mobileIllustrationViewport} ${+ mobileImageOverride ? styles.mobileIllustrationViewportFramed : ""+ } ${mobilePreviewSlot ? styles.mobileIllustrationViewportSlot : ""}`.trim()}+ style={viewportStyle}+ >+ {mobilePreviewSlot ?? (+ <img+ src={mobileHeroImage}+ alt={mobileImageAlt ?? "OpenUI mobile hero preview"}+ width={naturalWidth}+ height={naturalHeight}+ className={styles.mobileIllustrationImage}+ style={imageStyle}+ loading="eager"+ decoding="async"+ fetchPriority="high"+ />+ )}+ </div>+ )}</div>);}@@ -640,12 +662,14 @@ export function HeroSection({secondaryCommand,secondaryCommandLabel,commandSlot,+ commandTrailing,compact = false,align = "center",smallSubtitle = false,tightDesktopSpacing,splitLockup = false,flushInnerInlinePadding = false,+ showCommand = true,showPlaygroundButton = true,desktopPreviewImage,desktopPreviewImageDark,@@ -654,6 +678,7 @@ export function HeroSection({desktopPreviewImageHeight,desktopPreviewSlot,widePreview = false,+ showPreview = true,showTagline = true,tagline,taglineCompact = false,@@ -667,6 +692,7 @@ export function HeroSection({mobilePreviewImageHeight,mobilePreviewImageCropTopPercent,mobilePreviewSlot,+ desktopFromTablet = false,}: {title?: ReactNode;subtitle?: ReactNode;@@ -676,6 +702,8 @@ export function HeroSection({secondaryCommandLabel?: string;/** Replaces the default command pill with a custom node (e.g. the OpenClaw split button). */commandSlot?: ReactNode;+ /* Rendered beside the command button, inside its row. */+ commandTrailing?: ReactNode;compact?: boolean;/** Horizontal alignment of the desktop hero content (default "center"). */align?: "center" | "left";@@ -687,6 +715,8 @@ export function HeroSection({splitLockup?: boolean;/** Remove horizontal padding from the desktop hero's inner container. */flushInnerInlinePadding?: boolean;+ /** Hide the primary command area on editorial or text-only pages. */+ showCommand?: boolean;showPlaygroundButton?: boolean;desktopPreviewImage?: string;/** Dark-theme variant of the desktop preview image (falls back to the light one). */@@ -697,6 +727,8 @@ export function HeroSection({/** Replaces the desktop hero screenshot with custom preview content. */desktopPreviewSlot?: ReactNode;widePreview?: boolean;+ /** Hide the illustration for text-only pages, such as pricing. */+ showPreview?: boolean;showTagline?: boolean;tagline?: ReactNode;taglineCompact?: boolean;@@ -716,6 +748,8 @@ export function HeroSection({mobilePreviewImageCropTopPercent?: number;/** Replaces the mobile hero screenshot with custom preview content. */mobilePreviewSlot?: ReactNode;+ /** Keep the desktop hero composition through the intermediate tablet range. */+ desktopFromTablet?: boolean;} = {}) {const { resolvedTheme } = useTheme();const [mounted, setMounted] = useState(false);@@ -724,7 +758,9 @@ export function HeroSection({const resolvedTightDesktopSpacing = tightDesktopSpacing ?? smallSubtitle;return (- <section className={styles.section}>+ <section+ className={`${styles.section} ${desktopFromTablet ? styles.desktopFromTablet : ""}`.trim()}+ ><DesktopHerotitle={title}subtitle={subtitle}@@ -733,12 +769,14 @@ export function HeroSection({secondaryCommand={secondaryCommand}secondaryCommandLabel={secondaryCommandLabel}commandSlot={commandSlot}+ commandTrailing={commandTrailing}compact={compact}align={align}smallSubtitle={smallSubtitle}tightDesktopSpacing={resolvedTightDesktopSpacing}splitLockup={splitLockup}flushInnerInlinePadding={flushInnerInlinePadding}+ showCommand={showCommand}showPlaygroundButton={showPlaygroundButton}githubRepoUrl={githubRepoUrl}githubButtonLabel={githubButtonLabel}@@ -752,8 +790,10 @@ export function HeroSection({secondaryCommand={secondaryCommand}secondaryCommandLabel={secondaryCommandLabel}commandSlot={commandSlot}+ commandTrailing={commandTrailing}compact={compact}smallSubtitle={smallSubtitle}+ showCommand={showCommand}showPlaygroundButton={showPlaygroundButton}showGitHubBanner={showGitHubBanner}githubRepoUrl={githubRepoUrl}@@ -764,7 +804,9 @@ export function HeroSection({mobileImageHeight={mobilePreviewImageHeight}mobileImageCropTopPercent={mobilePreviewImageCropTopPercent}mobilePreviewSlot={mobilePreviewSlot}+ showPreview={showPreview}/>+ {showPreview && (<PreviewImagetheme={theme}desktopImageOverride={desktopPreviewImage}@@ -775,6 +817,7 @@ export function HeroSection({widePreview={widePreview}desktopPreviewSlot={desktopPreviewSlot}/>+ )}{showTagline && <Tagline compact={taglineCompact}>{tagline}</Tagline>}</section>);diff --git a/docs/app/(home)/sections/ProductIllustrations/OpenSourceIllustration.module.css b/docs/app/(home)/sections/ProductIllustrations/OpenSourceIllustration.module.cssnew file mode 100644index 000000000..385d581c6--- /dev/null+++ b/docs/app/(home)/sections/ProductIllustrations/OpenSourceIllustration.module.css@@ -0,0 +1,43 @@+.art {+ position: relative;+ width: 100%;+ height: 100%;+ overflow: hidden;+}++.image {+ object-fit: cover;+ object-position: center;+}++.imageDark {+ display: none;+}++[data-theme="dark"] .imageLight,+.artDark .imageLight {+ display: none;+}++[data-theme="dark"] .imageDark,+.artDark .imageDark {+ display: block;+}++[data-theme="dark"] .artLight .imageLight,+.artLight .imageLight {+ display: block;+}++[data-theme="dark"] .artLight .imageDark,+.artLight .imageDark {+ display: none;+}++@media (max-width: 767px) {+ .image {+ /* The desktop frame is intentionally wide. This crop keeps both the+ generated trip UI and the OpenUI Lang panel legible on a phone. */+ object-position: 52% center;+ }+}diff --git a/docs/app/(home)/sections/ProductIllustrations/OpenSourceIllustration.tsx b/docs/app/(home)/sections/ProductIllustrations/OpenSourceIllustration.tsxnew file mode 100644index 000000000..1e418efcb--- /dev/null+++ b/docs/app/(home)/sections/ProductIllustrations/OpenSourceIllustration.tsx@@ -0,0 +1,34 @@+import Image from "next/image";+import styles from "./OpenSourceIllustration.module.css";++/** Final homepage Open Source artwork from the paired Figma frames. */+export function OpenSourceIllustration({ theme }: { theme?: "light" | "dark" } = {}) {+ return (+ <div+ className={`${styles.art} ${theme === "light" ? styles.artLight : ""} ${theme === "dark" ? styles.artDark : ""}`.trim()}+ role="img"+ aria-label="OpenUI Lang code generating a trip-planning interface"+ >+ <Image+ className={`${styles.image} ${styles.imageLight}`}+ src="/openui-illustrations/home-open-source-light.webp"+ alt=""+ aria-hidden="true"+ fill+ quality={95}+ unoptimized+ sizes="(max-width: 767px) calc(100vw - 32px), 1200px"+ />+ <Image+ className={`${styles.image} ${styles.imageDark}`}+ src="/openui-illustrations/home-open-source-dark.webp"+ alt=""+ aria-hidden="true"+ fill+ quality={95}+ unoptimized+ sizes="(max-width: 767px) calc(100vw - 32px), 1200px"+ />+ </div>+ );+}diff --git a/docs/app/(home)/sections/ProductIllustrations/ProductIllustrations.module.css b/docs/app/(home)/sections/ProductIllustrations/ProductIllustrations.module.cssnew file mode 100644index 000000000..008ba673f--- /dev/null+++ b/docs/app/(home)/sections/ProductIllustrations/ProductIllustrations.module.css@@ -0,0 +1,2448 @@+.canvas {+ --ill-surface: color-mix(in srgb, currentColor 5%, transparent);+ --ill-raised: color-mix(in srgb, currentColor 8%, transparent);+ --ill-border: color-mix(in srgb, currentColor 13%, transparent);+ --ill-muted: color-mix(in srgb, currentColor 55%, transparent);++ box-sizing: border-box;+ display: grid;+ grid-template-columns: minmax(10rem, 0.78fr) 3rem minmax(15rem, 1.16fr) 3rem minmax(12rem, 0.94fr);+ align-items: center;+ width: 100%;+ height: 100%;+ padding: clamp(1rem, 3vw, 2.75rem);+ color: inherit;+ font-family: var(--home-font-text);+}++.canvas p,+.canvas strong,+.canvas small,+.canvas code {+ margin: 0;+}++.promptCard,+.streamCard,+.interfaceCard,+.modelCard,+.gatewayCard,+.reliableCard {+ box-sizing: border-box;+ border: 1px solid var(--ill-border);+ border-radius: 18px;+ background: var(--ill-surface);+}++.promptCard {+ display: flex;+ align-items: flex-start;+ gap: 0.75rem;+ padding: 1rem;+}++.promptCard p {+ color: var(--ill-muted);+ font-size: clamp(0.72rem, 1vw, 0.9rem);+ line-height: 1.45;+}++.avatar,+.productMark {+ display: grid;+ flex: none;+ width: 1.8rem;+ height: 1.8rem;+ place-items: center;+ border: 1px solid var(--ill-border);+ border-radius: 9px;+ font-family: var(--home-font-display);+ font-size: 0.72rem;+ font-weight: 600;+}++.productMark {+ border-color: var(--ps-mark-bg);+ background: var(--ps-mark-bg);+ color: var(--ps-mark-fg);+}++.connector {+ position: relative;+ display: flex;+ justify-content: flex-end;+ color: var(--ill-muted);+}++.connector::before {+ position: absolute;+ top: 50%;+ right: 0.7rem;+ left: 0;+ height: 1px;+ background: var(--ill-border);+ content: "";+}++.connector svg {+ position: relative;+}++.streamCard,+.gatewayCard {+ padding: 0.85rem;+}++.cardTopline,+.interfaceHeader,+.providerDots,+.delivered {+ display: flex;+ align-items: center;+}++.cardTopline {+ gap: 0.6rem;+}++.cardTopline strong {+ font-family: var(--home-font-display);+ font-size: clamp(0.78rem, 1.2vw, 1rem);+ font-weight: 550;+}++.livePill,+.filterChip,+.streamStatus,+.delivered {+ border: 1px solid var(--ill-border);+ border-radius: 999px;+ color: var(--ill-muted);+ font-size: clamp(0.55rem, 0.8vw, 0.7rem);+ line-height: 1;+}++.livePill {+ margin-left: auto;+ padding: 0.3rem 0.45rem;+}++.tokenStack {+ display: flex;+ flex-direction: column;+ gap: 0.45rem;+ margin-top: 0.85rem;+}++.tokenStack code,+.modelCard code,+.patchRow code {+ font-family: var(--font-geist-mono, monospace);+ font-size: clamp(0.55rem, 0.8vw, 0.72rem);+}++.tokenStack code {+ padding: 0.42rem 0.55rem;+ border-radius: 7px;+ background: var(--ill-raised);+ color: var(--ill-muted);+}++.tokenStack code:nth-child(2),+.tokenStack code:nth-child(3) {+ color: currentColor;+}++.libraryRow {+ display: flex;+ flex-wrap: wrap;+ gap: 0.35rem;+ margin-top: 0.75rem;+}++.libraryRow span {+ padding: 0.3rem 0.45rem;+ border: 1px solid var(--ill-border);+ border-radius: 999px;+ color: var(--ill-muted);+ font-size: clamp(0.5rem, 0.72vw, 0.64rem);+}++.interfaceCard {+ padding: 0.9rem;+}++.interfaceHeader {+ justify-content: space-between;+ gap: 0.75rem;+}++.interfaceHeader > span:first-child {+ display: flex;+ flex-direction: column;+ gap: 0.15rem;+}++.interfaceHeader small,+.miniMetric span {+ color: var(--ill-muted);+ font-size: clamp(0.55rem, 0.8vw, 0.68rem);+}++.interfaceHeader strong,+.miniMetric strong {+ font-family: var(--home-font-display);+ font-size: clamp(0.86rem, 1.4vw, 1.2rem);+}++.filterChip {+ padding: 0.38rem 0.52rem;+}++.chart {+ position: relative;+ height: clamp(3rem, 7vw, 5rem);+ margin-top: 0.75rem;+ overflow: hidden;+ border-radius: 8px;+ background: linear-gradient(to bottom, transparent, var(--ill-surface));+}++.chartGrid {+ position: absolute;+ inset: 0;+ background: repeating-linear-gradient(to bottom, transparent 0 22px, var(--ill-border) 23px);+}++.chart svg {+ position: absolute;+ inset: 0;+ width: 100%;+ height: 100%;+ overflow: visible;+}++.chart path {+ fill: none;+ stroke: #2589ff;+ stroke-width: 2;+ vector-effect: non-scaling-stroke;+}++.tableRows {+ display: flex;+ flex-direction: column;+ margin-top: 0.55rem;+}++.tableRows span {+ display: grid;+ grid-template-columns: 6px 1fr auto;+ align-items: center;+ gap: 0.4rem;+ padding-block: 0.35rem;+ border-top: 1px solid var(--ill-border);+ color: var(--ill-muted);+ font-size: clamp(0.5rem, 0.75vw, 0.65rem);+}++.tableRows i {+ width: 5px;+ height: 5px;+ border-radius: 50%;+ background: #2589ff;+}++.tableRows b {+ color: currentColor;+ font-weight: 500;+}++.modelCard,+.reliableCard {+ padding: 1rem;+}++.providerDots {+ gap: 0.35rem;+ margin: 1rem 0 0.7rem;+}++.providerDots span {+ width: 1.45rem;+ height: 1.45rem;+ border: 1px solid var(--ill-border);+ border-radius: 50%;+ background: var(--ill-raised);+}++.providerDots span:nth-child(1) {+ background: #111;+}+.providerDots span:nth-child(2) {+ background: #d97757;+}+.providerDots span:nth-child(3) {+ background: #4285f4;+}++.modelCard code {+ display: block;+ padding: 0.42rem 0.5rem;+ color: var(--ill-muted);+}++.modelCard .badChunk {+ border-left: 2px solid #e5484d;+ background: color-mix(in srgb, #e5484d 10%, transparent);+ color: #e5484d;+}++.streamStatus {+ display: inline-flex;+ margin-top: 0.7rem;+ padding: 0.35rem 0.5rem;+}++.reliabilitySteps {+ display: grid;+ grid-template-columns: repeat(3, minmax(0, 1fr));+ gap: 0.45rem;+ margin-top: 0.85rem;+}++.reliabilitySteps > span {+ display: flex;+ min-width: 0;+ flex-direction: column;+ gap: 0.25rem;+ padding: 0.65rem;+ border: 1px solid var(--ill-border);+ border-radius: 9px;+ background: var(--ill-surface);+}++.reliabilitySteps b {+ font-size: clamp(0.6rem, 0.86vw, 0.75rem);+ font-weight: 550;+}++.reliabilitySteps i,+.reliabilitySteps em,+.reliabilitySteps small {+ align-self: flex-start;+ color: var(--ill-muted);+ font-size: clamp(0.5rem, 0.72vw, 0.62rem);+ font-style: normal;+}++.reliabilitySteps i {+ display: grid;+ width: 1rem;+ height: 1rem;+ place-items: center;+ border-radius: 50%;+ background: #049156;+ color: #fff;+}++.reliabilitySteps i svg {+ width: 0.65rem;+}++.repairStep {+ box-shadow: inset 0 2px 0 #e5484d;+}++.patchRow {+ display: grid;+ grid-template-columns: 1fr 1fr;+ gap: 0.4rem;+ margin-top: 0.55rem;+}++.patchRow code {+ padding: 0.5rem;+ border-radius: 7px;+ background: color-mix(in srgb, #e5484d 9%, transparent);+ color: #e5484d;+}++.patchRow code:last-child {+ background: color-mix(in srgb, #049156 10%, transparent);+ color: #049156;+}++.successDot {+ width: 0.55rem;+ height: 0.55rem;+ margin-left: auto;+ border-radius: 50%;+ background: #049156;+}++.miniMetric {+ display: flex;+ flex-direction: column;+ gap: 0.18rem;+ margin-top: 1rem;+}++.miniBars {+ display: flex;+ align-items: flex-end;+ gap: 0.35rem;+ height: clamp(2.75rem, 6vw, 4.25rem);+ margin-top: 0.6rem;+}++.miniBars i {+ flex: 1;+ border-radius: 4px 4px 1px 1px;+ background: color-mix(in srgb, #2589ff 55%, transparent);+}++.miniBars i:nth-child(1) {+ height: 44%;+}+.miniBars i:nth-child(2) {+ height: 68%;+}+.miniBars i:nth-child(3) {+ height: 56%;+}+.miniBars i:nth-child(4) {+ height: 84%;+}+.miniBars i:nth-child(5) {+ height: 100%;+}++.delivered {+ gap: 0.3rem;+ width: fit-content;+ margin-top: 0.65rem;+ padding: 0.35rem 0.48rem;+ color: #049156;+}++@media (max-width: 767px) {+ .canvas {+ grid-template-columns: minmax(4.8rem, 0.8fr) 1.4rem minmax(7.6rem, 1.2fr) 1.4rem minmax(+ 5.6rem,+ 0.9fr+ );+ padding: 0.65rem;+ }++ .connector svg {+ width: 11px;+ }+ .connector::before {+ right: 0.45rem;+ }+ .promptCard,+ .modelCard,+ .reliableCard {+ padding: 0.55rem;+ border-radius: 10px;+ }+ .streamCard,+ .gatewayCard,+ .interfaceCard {+ padding: 0.5rem;+ border-radius: 10px;+ }+ .avatar,+ .productMark {+ width: 1.2rem;+ height: 1.2rem;+ border-radius: 5px;+ font-size: 0.5rem;+ }+ .promptCard {+ gap: 0.4rem;+ }+ .libraryRow,+ .providerDots,+ .delivered,+ .tableRows {+ display: none;+ }+ .reliabilitySteps > span {+ padding: 0.35rem;+ }+ .reliabilitySteps svg {+ width: 12px;+ height: 12px;+ }+ .patchRow {+ grid-template-columns: 1fr;+ }+ .patchRow code:first-child {+ display: none;+ }+}++/* -------------------------------------------------------------------------- */+/* Gateway: real OpenUI Lang, the exact inline patch, then the rendered UI. */+/* -------------------------------------------------------------------------- */+.technicalGateway {+ --gateway-canvas: var(--ps-surface, var(--openui-foreground));+ --gateway-panel: color-mix(in srgb, currentColor 3.8%, var(--gateway-canvas));+ --gateway-raised: color-mix(in srgb, currentColor 5.8%, var(--gateway-canvas));+ --gateway-border: var(+ --ps-border,+ color-mix(in srgb, var(--openui-text-neutral-primary) 10%, transparent)+ );+ --gateway-muted: var(--ps-muted, var(--openui-text-neutral-secondary));+ --gateway-error: #ff5c5c;+ --gateway-error-bg: color-mix(in srgb, var(--gateway-error) 10%, transparent);+ --gateway-success: #38c280;+ --gateway-success-bg: color-mix(in srgb, var(--gateway-success) 10%, transparent);+ --gateway-signal: #3978ff;++ box-sizing: border-box;+ display: grid;+ grid-template-columns: minmax(0, 280px) 64px minmax(0, 336px) 64px minmax(0, 280px);+ align-items: center;+ justify-content: center;+ width: 100%;+ height: 100%;+ min-height: 360px;+ padding: clamp(24px, 4.2vw, 48px);+ overflow: hidden;+ border-radius: inherit;+ background: var(--gateway-canvas);+ color: var(--ps-text, var(--openui-text-neutral-primary));+ font-family: var(--home-font-mono);+}++.technicalGateway *,+.technicalGateway *::before,+.technicalGateway *::after {+ box-sizing: border-box;+}++.technicalGateway b,+.technicalGateway strong,+.technicalGateway p,+.technicalGateway small,+.technicalGateway code,+.technicalGateway em,+.technicalGateway mark {+ margin: 0;+}++.technicalPanel {+ display: flex;+ min-width: 0;+ height: 297px;+ flex-direction: column;+ gap: 16px;+ padding: 20px;+ overflow: hidden;+ border: 1px solid var(--gateway-border);+ border-radius: 16px;+ background: var(--gateway-panel);+}++.repairPanel {+ border-color: color-mix(in srgb, var(--gateway-signal) 55%, var(--gateway-border));+}++.technicalHeader,+.streamingDots,+.streamError,+.detectedError,+.patchStatus,+.revenueTitle {+ display: flex;+ align-items: center;+}++.technicalHeader {+ min-height: 20px;+ justify-content: space-between;+ gap: 12px;+ color: currentColor;+ font-size: 11px;+ line-height: 1;+ letter-spacing: 0.015em;+}++.streamingDots {+ gap: 4px;+ padding: 5px 7px;+ border-radius: 999px;+ background: var(--gateway-raised);+}++.streamingDots i {+ width: 4px;+ height: 4px;+ border-radius: 50%;+ background: var(--gateway-signal);+ animation: gatewayStreamDot 1.2s ease-in-out infinite;+}++.streamingDots i:nth-child(2) {+ animation-delay: 120ms;+}++.streamingDots i:nth-child(3) {+ animation-delay: 240ms;+}++@keyframes gatewayStreamDot {+ 0%,+ 70%,+ 100% {+ opacity: 0.35;+ }++ 35% {+ opacity: 1;+ }+}++.openuiCode {+ display: flex;+ min-width: 0;+ flex: 1;+ flex-direction: column;+ justify-content: center;+ gap: 3px;+ padding: 11px 12px;+ overflow: hidden;+ border: 1px solid var(--gateway-border);+ border-radius: 10px;+ background: var(--gateway-raised);+}++.openuiCode code {+ display: block;+ min-width: 0;+ overflow: hidden;+ color: var(--gateway-muted);+ font-family: inherit;+ font-size: 9px;+ font-style: normal;+ line-height: 1.55;+ text-overflow: ellipsis;+ white-space: nowrap;+}++.openuiCode b {+ color: currentColor;+ font-weight: 500;+}++.openuiCode em {+ color: #ce8d49;+ font-style: normal;+}++.openuiCode .codeIndent {+ padding-left: 14px;+}++.openuiCode .invalidCode {+ margin-inline: -5px;+ padding: 2px 5px 2px 19px;+ border-left: 2px solid var(--gateway-error);+ background: var(--gateway-error-bg);+ color: color-mix(in srgb, var(--gateway-error) 78%, currentColor);+}++.openuiCode mark {+ border-radius: 2px;+ background: color-mix(in srgb, var(--gateway-error) 14%, transparent);+ color: var(--gateway-error);+}++.streamError,+.detectedError {+ gap: 10px;+ border: 1px solid color-mix(in srgb, var(--gateway-error) 60%, transparent);+ border-radius: 10px;+ background: var(--gateway-error-bg);+ color: var(--gateway-error);+}++.streamError {+ min-height: 50px;+ padding: 9px 11px;+}++.streamError > span:last-child,+.detectedError > span:last-child,+.patchStatus > span:last-child {+ display: flex;+ min-width: 0;+ flex-direction: column;+ gap: 4px;+}++.streamError b,+.detectedError b,+.patchStatus b {+ font-size: 9px;+ font-weight: 500;+ line-height: 1;+}++.streamError code,+.detectedError code {+ overflow: hidden;+ color: inherit;+ font-family: inherit;+ font-size: 9px;+ line-height: 1.25;+ text-overflow: ellipsis;+ white-space: nowrap;+}++.errorState,+.checkState {+ display: grid;+ flex: 0 0 24px;+ width: 24px;+ height: 24px;+ place-items: center;+ border: 1px solid currentColor;+ border-radius: 50%;+}++.errorState {+ color: var(--gateway-error);+}++.checkState {+ color: var(--gateway-success);+}++.latencyBadge,+.validBadge {+ padding: 4px 7px;+ border-radius: 999px;+ font-size: 8px;+ line-height: 1;+}++.latencyBadge {+ border: 1px solid var(--gateway-border);+ color: var(--gateway-muted);+}++.detectedError {+ min-height: 63px;+ padding: 11px 13px;+}++.repairDirection {+ height: 18px;+ padding-left: 8px;+ color: var(--gateway-muted);+ font-family: var(--home-font-text);+ font-size: 18px;+ line-height: 1;+}++.inlinePatch {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ gap: 5px 10px;+ min-height: 102px;+ padding: 11px 13px;+ border: 1px solid color-mix(in srgb, var(--gateway-success) 60%, transparent);+ border-radius: 10px;+ background: var(--gateway-success-bg);+}++.patchStatus {+ grid-column: 1 / -1;+ gap: 10px;+ color: var(--gateway-success);+}++.patchStatus small {+ color: color-mix(in srgb, var(--gateway-success) 72%, var(--gateway-muted));+ font-size: 8px;+ line-height: 1.2;+}++.inlinePatch code {+ min-width: 0;+ overflow: hidden;+ font-family: inherit;+ font-size: 9px;+ line-height: 1.35;+ text-overflow: ellipsis;+ white-space: nowrap;+}++.removedCode {+ color: var(--gateway-error);+}++.addedCode {+ color: var(--gateway-success);+ text-align: right;+}++.flowConnector {+ position: relative;+ display: flex;+ min-width: 0;+ align-items: center;+ justify-content: flex-end;+ gap: 4px;+ color: var(--gateway-muted);+}++.flowConnector::before {+ position: absolute;+ right: 7px;+ left: 0;+ height: 1px;+ background: var(--gateway-border);+ content: "";+}++.flowConnector span {+ position: absolute;+ bottom: calc(50% + 10px);+ left: 50%;+ color: var(--gateway-muted);+ font-size: 7px;+ line-height: 1;+ transform: translateX(-50%);+ white-space: nowrap;+}++.flowConnector i,+.flowConnector b {+ position: relative;+ z-index: 1;+}++.flowConnector i {+ width: 4px;+ height: 4px;+ border-radius: 50%;+ background: var(--gateway-signal);+}++.flowConnector i:first-of-type {+ animation: gatewaySignal 2.2s linear infinite;+}++.flowConnector b {+ padding-left: 2px;+ background: var(--gateway-canvas);+ color: var(--gateway-muted);+ font-family: var(--home-font-text);+ font-size: 13px;+ font-weight: 400;+}++@keyframes gatewaySignal {+ 0% {+ opacity: 0.25;+ transform: translateX(-18px);+ }++ 45% {+ opacity: 1;+ }++ 100% {+ opacity: 0.25;+ transform: translateX(0);+ }+}++.revenueCard {+ display: flex;+ flex: 1;+ flex-direction: column;+ gap: 10px;+ padding: 13px;+ border: 1px solid var(--gateway-border);+ border-radius: 11px;+ background: var(--gateway-raised);+}++.revenueTitle {+ justify-content: space-between;+ gap: 12px;+ font-family: var(--home-font-text);+}++.revenueTitle > span {+ display: flex;+ min-width: 0;+ flex-direction: column;+ gap: 2px;+}++.revenueTitle b,+.revenueTitle strong {+ color: currentColor;+ font-size: 10px;+ font-weight: 550;+}++.revenueTitle small,+.revenueCard p {+ color: var(--gateway-muted);+ font-size: 8px;+ line-height: 1.3;+}++.validBadge {+ background: var(--gateway-success-bg);+ color: var(--gateway-success);+}++.technicalChart {+ position: relative;+ height: 105px;+ overflow: hidden;+ border-radius: 6px;+}++.technicalChartGrid {+ position: absolute;+ inset: 0;+ background: repeating-linear-gradient(to bottom, transparent 0 25px, var(--gateway-border) 26px);+}++.technicalChart svg {+ position: absolute;+ inset: 0;+ width: 100%;+ height: 100%;+}++.chartArea {+ fill: color-mix(in srgb, var(--gateway-success) 11%, transparent);+}++.chartLine {+ fill: none;+ stroke: var(--gateway-success);+ stroke-width: 2;+ vector-effect: non-scaling-stroke;+}++.revenueCard p {+ font-family: var(--home-font-text);+}++@media (max-width: 900px) {+ .technicalGateway {+ grid-template-columns: minmax(0, 0.9fr) 34px minmax(0, 1.05fr) 34px minmax(0, 0.9fr);+ padding: 24px;+ }++ .technicalPanel {+ height: 270px;+ gap: 12px;+ padding: 14px;+ }++ .openuiCode code,+ .streamError code,+ .detectedError code,+ .inlinePatch code {+ font-size: 8px;+ }++ .flowConnector span {+ display: none;+ }+}++@media (max-width: 767px) {+ .technicalGateway {+ grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1.06fr) 20px minmax(0, 1fr);+ min-height: 0;+ padding: 12px;+ }++ .technicalPanel {+ height: 176px;+ gap: 7px;+ padding: 8px;+ border-radius: 9px;+ }++ .technicalHeader {+ min-height: 12px;+ font-size: 6px;+ }++ .streamingDots,+ .latencyBadge {+ display: none;+ }++ .openuiCode {+ gap: 1px;+ padding: 6px;+ border-radius: 6px;+ }++ .openuiCode code {+ font-size: 5px;+ line-height: 1.45;+ }++ .openuiCode .codeIndent {+ padding-left: 6px;+ }++ .openuiCode .invalidCode {+ padding-left: 11px;+ }++ .streamError {+ min-height: 33px;+ gap: 5px;+ padding: 5px;+ border-radius: 6px;+ }++ .errorState,+ .checkState {+ flex-basis: 13px;+ width: 13px;+ height: 13px;+ }++ .errorState svg,+ .checkState svg {+ width: 7px;+ height: 7px;+ }++ .streamError b,+ .detectedError b,+ .patchStatus b {+ font-size: 5px;+ }++ .streamError code,+ .detectedError code,+ .inlinePatch code,+ .patchStatus small {+ font-size: 4.5px;+ }++ .detectedError {+ min-height: 38px;+ gap: 5px;+ padding: 6px;+ border-radius: 6px;+ }++ .repairDirection {+ height: 10px;+ padding-left: 3px;+ font-size: 10px;+ }++ .inlinePatch {+ min-height: 68px;+ gap: 3px 4px;+ padding: 6px;+ border-radius: 6px;+ }++ .patchStatus {+ gap: 5px;+ }++ .flowConnector {+ gap: 2px;+ }++ .flowConnector i {+ width: 2px;+ height: 2px;+ }++ .flowConnector i:nth-of-type(3),+ .flowConnector i:nth-of-type(4) {+ display: none;+ }++ .flowConnector b {+ font-size: 8px;+ }++ .revenueCard {+ gap: 5px;+ padding: 6px;+ border-radius: 6px;+ }++ .revenueTitle {+ gap: 4px;+ }++ .revenueTitle b,+ .revenueTitle strong {+ font-size: 5.5px;+ }++ .revenueTitle small,+ .revenueCard p,+ .validBadge {+ font-size: 4.5px;+ }++ .validBadge {+ padding: 2px 4px;+ }++ .technicalChart {+ height: 72px;+ }+}++@media (prefers-reduced-motion: reduce) {+ .streamingDots i,+ .flowConnector i:first-of-type {+ animation: none;+ }+}++/* -------------------------------------------------------------------------- */+/* Gateway: invalid nodes enter, Gateway repairs them, valid UI leaves. */+/* -------------------------------------------------------------------------- */+.gatewayFlow {+ --flow-canvas: var(--ps-surface, var(--openui-foreground));+ --flow-panel: color-mix(in srgb, currentColor 3.8%, var(--flow-canvas));+ --flow-raised: color-mix(in srgb, currentColor 6%, var(--flow-canvas));+ --flow-border: var(+ --ps-border,+ color-mix(in srgb, var(--openui-text-neutral-primary) 11%, transparent)+ );+ --flow-text: var(--ps-text, var(--openui-text-neutral-primary));+ --flow-muted: var(--ps-muted, var(--openui-text-neutral-secondary));+ --flow-valid: #32bd78;+ --flow-invalid: #ff5c5c;++ box-sizing: border-box;+ display: grid;+ grid-template-columns:+ minmax(148px, 190px) minmax(96px, 1fr) minmax(184px, 220px)+ minmax(96px, 1fr) minmax(166px, 212px);+ align-items: center;+ justify-content: center;+ width: 100%;+ height: 100%;+ min-height: 360px;+ padding: clamp(28px, 4vw, 48px);+ overflow: hidden;+ border-radius: inherit;+ background: var(--flow-canvas);+ color: var(--flow-text);+ font-family: var(--home-font-mono);+}++.gatewayFlow *,+.gatewayFlow *::before,+.gatewayFlow *::after {+ box-sizing: border-box;+}++.gatewayFlow b,+.gatewayFlow p,+.gatewayFlow small {+ margin: 0;+}++.responseNode,+.gatewayNode,+.uiNode {+ position: relative;+ z-index: 2;+ min-width: 0;+ overflow: hidden;+ border: 1px solid var(--flow-border);+ border-radius: 14px;+ background: var(--flow-panel);+}++.responseNode {+ display: flex;+ height: 212px;+ flex-direction: column;+ padding: 16px;+}++.flowNodeHeader {+ display: flex;+ min-width: 0;+ align-items: center;+ justify-content: space-between;+ gap: 10px;+ color: var(--flow-muted);+ font-size: 9px;+ letter-spacing: 0.08em;+ line-height: 1;+ white-space: nowrap;+}++.flowNodeHeader > span:first-child {+ color: var(--flow-text);+ font-weight: 600;+}++.responseLines {+ display: flex;+ flex: 1;+ flex-direction: column;+ justify-content: center;+ gap: 13px;+ padding: 8px 0 4px;+}++.responseLines i {+ display: block;+ width: 100%;+ height: 6px;+ border-radius: 1px;+ background: color-mix(in srgb, var(--flow-text) 18%, transparent);+}++.responseLines i:nth-child(2) {+ width: 76%;+}++.responseLines i:nth-child(3) {+ width: 90%;+}++.responseLines i:nth-child(4) {+ width: 62%;+}++.responseLines i:nth-child(5) {+ width: 82%;+}++.responseLines i[data-invalid="true"] {+ background: repeating-linear-gradient(+ 135deg,+ var(--flow-invalid) 0 2px,+ color-mix(in srgb, var(--flow-invalid) 38%, transparent) 2px 4px+ );+}++.invalidNodeLabel {+ display: flex;+ align-items: center;+ gap: 7px;+ color: var(--flow-muted);+ font-family: var(--home-font-text);+ font-size: 10px;+ white-space: nowrap;+}++.invalidNodeLabel i,+.repairSignal i,+.dotRail i {+ display: block;+ flex: none;+ border-radius: 50%;+}++.invalidNodeLabel i {+ width: 7px;+ height: 7px;+ background: var(--flow-invalid);+}++.streamBundle {+ position: relative;+ z-index: 1;+ display: flex;+ min-width: 0;+ flex-direction: column;+ gap: 16px;+}++.streamBundle > span {+ color: var(--flow-muted);+ font-size: 8px;+ letter-spacing: 0.11em;+ line-height: 1;+ text-align: center;+ white-space: nowrap;+}++.streamBundle > div {+ display: flex;+ flex-direction: column;+ gap: 24px;+}++.dotRail {+ position: relative;+ display: flex;+ width: calc(100% + 2px);+ height: 8px;+ align-items: center;+ justify-content: space-around;+ margin-inline: -1px;+}++.dotRail::before {+ position: absolute;+ top: 50%;+ right: 0;+ left: 0;+ height: 1px;+ background: repeating-linear-gradient(to right, var(--flow-border) 0 3px, transparent 3px 7px);+ content: "";+}++.dotRail i {+ position: relative;+ z-index: 1;+ width: 7px;+ height: 7px;+ outline: 3px solid var(--flow-canvas);+ background: var(--flow-valid);+ animation: gateway-node-pulse 2.8s ease-in-out infinite;+ animation-delay: calc(var(--dot-index) * 90ms);+}++.dotRail i[data-tone="invalid"] {+ background: var(--flow-invalid);+}++.validStream .dotRail::before {+ background: repeating-linear-gradient(+ to right,+ color-mix(in srgb, var(--flow-valid) 44%, transparent) 0 3px,+ transparent 3px 7px+ );+}++.gatewayNode {+ display: flex;+ height: 244px;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ gap: 20px;+ padding: 20px;+ border-color: color-mix(in srgb, var(--flow-text) 23%, var(--flow-border));+ background: var(--flow-raised);+}++.gatewayStamp {+ padding: 7px 10px;+ border-radius: 5px;+ background: var(--flow-text);+ color: var(--flow-canvas);+ font-size: 10px;+ font-weight: 600;+ letter-spacing: 0.07em;+ line-height: 1;+ white-space: nowrap;+}++.repairSignal {+ display: grid;+ grid-template-columns: 32px 1fr 32px;+ width: 100%;+ align-items: center;+ color: var(--flow-muted);+}++.repairSignal i {+ width: 18px;+ height: 18px;+ justify-self: center;+ box-shadow: 0 0 0 7px color-mix(in srgb, currentColor 9%, transparent);+}++.repairSignal i[data-tone="invalid"] {+ background: var(--flow-invalid);+ color: var(--flow-invalid);+}++.repairSignal i[data-tone="valid"] {+ background: var(--flow-valid);+ color: var(--flow-valid);+}++.repairSignal span {+ position: relative;+ overflow: hidden;+ color: transparent;+}++.repairSignal span::before {+ position: absolute;+ top: 50%;+ right: 0;+ left: 0;+ height: 1px;+ background: repeating-linear-gradient(to right, var(--flow-border) 0 3px, transparent 3px 7px);+ content: "";+}++.repairSignal span::after {+ position: absolute;+ top: calc(50% - 3px);+ right: 0;+ width: 7px;+ height: 7px;+ border-top: 1px solid var(--flow-muted);+ border-right: 1px solid var(--flow-muted);+ content: "";+ transform: rotate(45deg);+}++.gatewayResult {+ display: grid;+ width: 100%;+ grid-template-columns: 1fr 1fr;+ border-block: 1px solid var(--flow-border);+}++.gatewayResult > span {+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 4px;+ padding: 11px 4px;+}++.gatewayResult > span + span {+ border-left: 1px solid var(--flow-border);+}++.gatewayResult b {+ font-size: 19px;+ font-weight: 500;+ line-height: 1;+}++.gatewayResult > span:first-child b {+ color: var(--flow-invalid);+}++.gatewayResult > span:last-child b {+ color: var(--flow-valid);+}++.gatewayResult small,+.gatewayMethod {+ color: var(--flow-muted);+ font-size: 7px;+ letter-spacing: 0.1em;+ line-height: 1;+ white-space: nowrap;+}++.uiNode {+ display: flex;+ height: 212px;+ flex-direction: column;+ gap: 15px;+ padding: 16px;+}++.uiGrowth {+ color: var(--flow-valid) !important;+}++.uiMetric {+ display: flex;+ flex: 1;+ flex-direction: column;+ justify-content: space-between;+ gap: 10px;+ padding: 12px;+ border: 1px solid var(--flow-border);+ border-radius: 9px;+ background: color-mix(in srgb, var(--flow-text) 2.5%, transparent);+}++.uiMetric > span {+ display: flex;+ align-items: baseline;+ justify-content: space-between;+ gap: 8px;+}++.uiMetric small {+ color: var(--flow-muted);+ font-family: var(--home-font-text);+ font-size: 9px;+}++.uiMetric b {+ font-family: var(--home-font-text);+ font-size: 13px;+ font-weight: 600;+}++.miniChart {+ height: 68px;+ border-bottom: 1px solid var(--flow-border);+}++.miniChart svg {+ display: block;+ width: 100%;+ height: 100%;+}++.miniChartArea {+ fill: color-mix(in srgb, var(--flow-valid) 10%, transparent);+}++.miniChartLine {+ fill: none;+ stroke: var(--flow-valid);+ stroke-width: 1.5;+ vector-effect: non-scaling-stroke;+}++.uiNode p {+ color: var(--flow-muted);+ font-family: var(--home-font-text);+ font-size: 9px;+ line-height: 1.35;+}++@keyframes gateway-node-pulse {+ 0%,+ 100% {+ opacity: 0.45;+ transform: scale(0.88);+ }+ 45%,+ 65% {+ opacity: 1;+ transform: scale(1);+ }+}++@media (max-width: 900px) {+ .gatewayFlow {+ grid-template-columns:+ minmax(118px, 160px) minmax(56px, 1fr) minmax(156px, 190px)+ minmax(56px, 1fr) minmax(132px, 170px);+ padding: 24px;+ }++ .responseNode,+ .uiNode {+ height: 190px;+ }++ .gatewayNode {+ height: 224px;+ }++ .streamBundle > span {+ display: none;+ }+}++@media (max-width: 767px) {+ .gatewayFlow {+ grid-template-columns: 70px minmax(24px, 1fr) 106px minmax(24px, 1fr) 78px;+ min-height: 0;+ padding: 12px 10px;+ }++ .responseNode,+ .uiNode {+ height: 148px;+ padding: 8px;+ border-radius: 8px;+ }++ .flowNodeHeader {+ font-size: 5px;+ }++ .flowNodeHeader > span + span,+ .invalidNodeLabel,+ .uiNode p {+ display: none;+ }++ .responseLines {+ gap: 8px;+ }++ .responseLines i {+ height: 4px;+ }++ .streamBundle {+ gap: 0;+ }++ .streamBundle > div {+ gap: 14px;+ }++ .dotRail {+ height: 5px;+ }++ .dotRail i {+ width: 4px;+ height: 4px;+ outline-width: 2px;+ }++ .dotRail i:nth-child(even) {+ display: none;+ }++ .gatewayNode {+ height: 166px;+ gap: 12px;+ padding: 10px;+ border-radius: 10px;+ }++ .gatewayStamp {+ padding: 5px 6px;+ font-size: 6px;+ }++ .repairSignal {+ grid-template-columns: 20px 1fr 20px;+ }++ .repairSignal i {+ width: 10px;+ height: 10px;+ box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 9%, transparent);+ }++ .gatewayResult > span {+ gap: 3px;+ padding: 7px 2px;+ }++ .gatewayResult b {+ font-size: 12px;+ }++ .gatewayResult small,+ .gatewayMethod {+ font-size: 4.5px;+ }++ .uiNode {+ gap: 8px;+ }++ .uiMetric {+ gap: 5px;+ padding: 6px;+ border-radius: 6px;+ }++ .uiMetric > span {+ display: block;+ }++ .uiMetric small {+ display: block;+ font-size: 5px;+ }++ .uiMetric b {+ display: block;+ margin-top: 2px;+ font-size: 7px;+ }++ .miniChart {+ height: 70px;+ }+}++@media (prefers-reduced-motion: reduce) {+ .dotRail i {+ animation: none;+ }+}++/* -------------------------------------------------------------------------- */+/* Figma reliability dashboard pair, shared by Gateway page and home. */+/* -------------------------------------------------------------------------- */+.reliabilityDashboardIllustration {+ position: relative;+ width: 100%;+ height: 100%;+ overflow: hidden;+ border-radius: inherit;+}++.reliabilityDashboardImage {+ display: block;+ width: 100%;+ height: 100%;+ object-fit: cover;+ object-position: center;+}++.reliabilityDashboardImageDark {+ display: none;+}++:global(.dark) .reliabilityDashboardImageLight,+:global([data-theme="dark"]) .reliabilityDashboardImageLight {+ display: none;+}++:global(.dark) .reliabilityDashboardImageDark,+:global([data-theme="dark"]) .reliabilityDashboardImageDark {+ display: block;+}++.reliabilityDashboardIllustrationInverted .reliabilityDashboardImageLight {+ display: none;+}++.reliabilityDashboardIllustrationInverted .reliabilityDashboardImageDark {+ display: block;+}++:global(.dark) .reliabilityDashboardIllustrationInverted .reliabilityDashboardImageLight,+:global([data-theme="dark"])+ .reliabilityDashboardIllustrationInverted+ .reliabilityDashboardImageLight {+ display: block;+}++:global(.dark) .reliabilityDashboardIllustrationInverted .reliabilityDashboardImageDark,+:global([data-theme="dark"])+ .reliabilityDashboardIllustrationInverted+ .reliabilityDashboardImageDark {+ display: none;+}++/* -------------------------------------------------------------------------- */+/* Gateway hero: whole model responses are checked, fixed, and delivered. */+/* -------------------------------------------------------------------------- */+.responseFlowHero {+ --response-canvas: #f5f5f5;+ --response-text: var(--ps-text, var(--openui-text-neutral-primary));+ --response-muted: var(--ps-muted, var(--openui-text-neutral-secondary));+ --response-border: color-mix(in srgb, var(--response-text) 11%, transparent);+ --response-panel: color-mix(in srgb, var(--response-text) 3.5%, var(--response-canvas));+ --response-raised: color-mix(in srgb, var(--response-text) 5.5%, var(--response-canvas));+ --response-valid: #20b968;+ --response-error: #ff5159;+ --response-reference: #ff8851;+ --response-type: var(--response-error);++ position: relative;+ box-sizing: border-box;+ width: 100%;+ height: 100%;+ min-height: 360px;+ overflow: hidden;+ border-radius: inherit;+ background: var(--response-canvas);+ color: var(--response-text);+ font-family: var(--home-font-mono);+ isolation: isolate;+}++:global(.dark) .responseFlowHero,+:global([data-theme="dark"]) .responseFlowHero {+ --response-canvas: #151515;+}++.responseFlowHero *,+.responseFlowHero *::before,+.responseFlowHero *::after {+ box-sizing: border-box;+}++.responseFlowHero b,+.responseFlowHero small {+ margin: 0;+}++.gatewayPaths {+ position: absolute;+ z-index: 0;+ inset: 0;+ display: block;+ width: 100%;+ height: 100%;+ overflow: visible;+}++.gatewayPathsMobile {+ display: none;+}++.gatewayPaths > path {+ fill: none;+ stroke: color-mix(in srgb, var(--response-text) 22%, transparent);+ stroke-width: 1.1;+ stroke-dasharray: 1.35 5;+ stroke-linecap: round;+ vector-effect: non-scaling-stroke;+}++:global(.dark) .gatewayPaths > path,+:global([data-theme="dark"]) .gatewayPaths > path {+ stroke: color-mix(in srgb, var(--response-text) 12%, transparent);+}++.incomingResponse,+.validatedResponse {+ filter: drop-shadow(0 0 1.5px color-mix(in srgb, currentColor 18%, transparent));+}++.incomingResponse > *,+.validatedResponse {+ fill: currentColor;+}++.incomingResponse[data-tone="valid"],+.validatedResponse {+ color: var(--response-valid);+}++.incomingResponse[data-tone="root"] {+ color: var(--response-error);+}++.incomingResponse[data-tone="reference"] {+ color: var(--response-reference);+}++.incomingResponse[data-tone="type"] {+ color: var(--response-type);+}++.modelOutputLabel {+ position: absolute;+ z-index: 2;+ bottom: 22px;+ left: 22px;+ display: flex;+ flex-direction: column;+ align-items: flex-start;+ gap: 6px;+ padding: 10px 12px;+ border: 0;+ border-radius: 10px;+ background: color-mix(in srgb, var(--response-canvas) 86%, transparent);+ box-shadow: 0 10px 30px color-mix(in srgb, var(--response-text) 5%, transparent);+ backdrop-filter: blur(10px);+ text-align: left;+}++.modelOutputLabel span {+ font-size: 10px;+ font-weight: 600;+ letter-spacing: 0.08em;+ line-height: 1;+}++.modelOutputLabel small {+ color: var(--response-muted);+ font-family: var(--home-font-text);+ font-size: 10px;+ line-height: 1;+}++.responseGatewayNode {+ position: absolute;+ z-index: 4;+ top: 34.6%;+ left: 23.83%;+ display: flex;+ width: 20.55%;+ min-width: 228px;+ height: 30.8%;+ min-height: 160px;+ flex-direction: column;+ gap: 4px;+ padding: 6px;+ overflow: hidden;+ border: 1px solid #303030;+ border-radius: 20px;+ background: #080808;+ box-shadow:+ 0 20px 50px rgba(0, 0, 0, 0.2),+ 0 0 0 1px color-mix(in srgb, var(--response-text) 5%, transparent);+ color: #fff;+}++.gatewayHeader {+ display: flex;+ min-height: 31px;+ align-items: center;+ justify-content: space-between;+ gap: 8px;+ padding: 7px 8px 8px;+ font-size: 11px;+ font-weight: 600;+ letter-spacing: 0.055em;+ line-height: 14px;+ white-space: nowrap;+}++.fixedCount {+ display: flex;+ align-items: center;+ gap: 4px;+ font-weight: 600;+}++.fixedCount small {+ color: rgba(255, 255, 255, 0.62);+ font-size: 8px;+ letter-spacing: 0.08em;+}++.gatewayMetrics {+ display: grid;+ flex: 1;+ grid-template-rows: repeat(3, 1fr);+ padding: 7px 12px;+ border-radius: 7px 7px 14px 14px;+ background: #1b1b1b;+}++.gatewayMetric {+ display: grid;+ min-width: 0;+ grid-template-columns: 16px minmax(0, 1fr) auto;+ align-items: center;+ gap: 9px;+ color: #d5d5d5;+}++.gatewayMetric + .gatewayMetric {+ border-top: 1px solid rgba(255, 255, 255, 0.07);+}++.gatewayMetric > i {+ position: relative;+ width: 16px;+ height: 16px;+ border-radius: 50%;+ background: rgba(255, 255, 255, 0.08);+}++.gatewayMetric > i::before {+ position: absolute;+ top: 4px;+ left: 4px;+ width: 8px;+ height: 5px;+ border-bottom: 1.5px solid currentColor;+ border-left: 1.5px solid currentColor;+ content: "";+ transform: rotate(-45deg);+}++.gatewayMetric[data-tone="neutral"] > i {+ color: #d5d5d5;+}++.gatewayMetric[data-tone="error"] > i,+.gatewayMetric[data-tone="error"] > b {+ color: var(--response-error);+}++.gatewayMetric[data-tone="valid"] > i,+.gatewayMetric[data-tone="valid"] > b,+.gatewayMetric[data-tone="valid"] .slotViewport {+ color: #43ee98;+}++.gatewayMetric > span:nth-child(2) {+ overflow: hidden;+ font-family: var(--home-font-text);+ font-size: 9px;+ font-weight: 500;+ letter-spacing: 0.045em;+ text-overflow: ellipsis;+ white-space: nowrap;+}++.gatewayMetric > b {+ font-family: var(--home-font-text);+ font-size: 11px;+ font-weight: 500;+}++.slotViewport {+ display: inline-block;+ width: 3ch;+ height: 14px;+ overflow: hidden;+ color: inherit;+ font-family: var(--home-font-mono);+ font-size: 11px;+ line-height: 14px;+ text-align: right;+ vertical-align: bottom;+}++.slotTrack {+ display: flex;+ flex-direction: column;+ animation: gateway-slot-roll 6.6s steps(5, end) infinite;+ will-change: transform;+}++.slotTrack b {+ display: block;+ height: 14px;+ flex: 0 0 14px;+ font: inherit;+ line-height: 14px;+}++@keyframes gateway-slot-roll {+ 0%,+ 10% {+ transform: translateY(0);+ }+ 82%,+ 100% {+ transform: translateY(-70px);+ }+}++.renderedInterface {+ position: absolute;+ z-index: 3;+ top: 6.2%;+ left: 52.8%;+ display: block;+ width: 44.7%;+ height: 87.6%;+ padding: 0;+ overflow: hidden;+ border: 0;+ border-radius: 24px;+ background: transparent;+ box-shadow: none;+}++.renderedInterface img {+ display: block;+ width: calc(100% + 6px);+ max-width: none;+ height: calc(100% + 5px);+ margin: -3px 0 0 -3px;+ -webkit-mask-image: linear-gradient(to bottom, #000 0 80.5%, transparent 100%);+ mask-image: linear-gradient(to bottom, #000 0 80.5%, transparent 100%);+ object-fit: contain;+}++.renderedInterfaceDark {+ display: none !important;+}++:global(.dark) .renderedInterfaceLight,+:global([data-theme="dark"]) .renderedInterfaceLight {+ display: none;+}++:global(.dark) .renderedInterfaceDark,+:global([data-theme="dark"]) .renderedInterfaceDark {+ display: block !important;+}++.renderedInterface header,+.renderedInterface header > span,+.retentionCard > span,+.distributionCard > span {+ display: flex;+}++.renderedInterface header {+ align-items: center;+ justify-content: space-between;+}++.renderedInterface header > span,+.retentionCard > span,+.distributionCard > span {+ flex-direction: column;+ gap: 4px;+}++.renderedInterface header b {+ font-size: 13px;+ font-weight: 600;+}++.renderedInterface header small,+.retentionCard small,+.distributionCard small,+.interfaceMetrics > div > small {+ color: var(--response-muted);+ font-size: 9px;+ line-height: 1.2;+}++.renderedInterface header > i {+ width: 8px;+ height: 8px;+ border-radius: 50%;+ background: var(--response-valid);+ box-shadow: 0 0 0 5px color-mix(in srgb, var(--response-valid) 12%, transparent);+}++.interfaceMetrics {+ display: grid;+ grid-template-columns: repeat(3, minmax(0, 1fr));+ gap: 8px;+}++.interfaceMetrics > div {+ display: flex;+ min-width: 0;+ height: 76px;+ flex-direction: column;+ justify-content: flex-end;+ gap: 5px;+ padding: 10px;+ border: 1px solid var(--response-border);+ border-radius: 10px;+ background: var(--response-raised);+}++.interfaceMetrics > div > span {+ display: flex;+ align-items: baseline;+ gap: 5px;+}++.interfaceMetrics b {+ overflow: hidden;+ font-size: 12px;+ font-weight: 500;+ text-overflow: ellipsis;+ white-space: nowrap;+}++.interfaceMetrics > div > span small {+ color: var(--response-valid);+ font-size: 7px;+}++.interfaceCharts {+ display: grid;+ min-height: 0;+ flex: 1;+ grid-template-columns: 1.35fr 0.8fr;+ gap: 8px;+}++.retentionCard,+.distributionCard {+ display: flex;+ min-width: 0;+ flex-direction: column;+ padding: 12px;+ overflow: hidden;+ border: 1px solid var(--response-border);+ border-radius: 10px;+ background: color-mix(in srgb, var(--response-text) 1.8%, transparent);+}++.retentionCard b,+.distributionCard b {+ font-size: 9px;+ font-weight: 600;+}++.retentionCard svg {+ width: 100%;+ min-height: 0;+ flex: 1;+ margin-top: 18px;+ overflow: visible;+ border-bottom: 1px solid var(--response-border);+}++.retentionArea {+ fill: color-mix(in srgb, var(--response-valid) 16%, transparent);+}++.retentionLine {+ fill: none;+ stroke: var(--response-valid);+ stroke-width: 1.5;+ vector-effect: non-scaling-stroke;+}++.donut {+ width: min(126px, 82%);+ aspect-ratio: 1;+ margin: auto;+ border-radius: 50%;+ background: conic-gradient(#3878ee 0 44%, #6794ee 44% 73%, #a4bdf0 73% 100%);+ mask: radial-gradient(circle at center, transparent 0 45%, #000 46%);+}++@media (max-width: 899.98px) {+ .responseFlowHero {+ min-height: 0;+ }++ .responseFlowHero::before {+ position: absolute;+ z-index: 1;+ top: 0;+ right: 0;+ left: 0;+ height: 17%;+ background: linear-gradient(to bottom, var(--response-canvas) 18%, transparent 100%);+ content: "";+ pointer-events: none;+ }++ .gatewayPathsDesktop {+ display: none;+ }++ .gatewayPathsMobile {+ display: block;+ }++ .modelOutputLabel {+ top: 22px;+ bottom: auto;+ left: 22px;+ }++ .responseGatewayNode {+ top: 33.9%;+ left: 17%;+ width: 66%;+ min-width: 0;+ height: 24.5%;+ min-height: 0;+ border-radius: 16px;+ }++ .renderedInterface {+ top: 61%;+ left: 8%;+ width: 84%;+ height: 43%;+ border-radius: 18px;+ }+}++@media (max-width: 767px) {+ .modelOutputLabel {+ top: 16px;+ bottom: auto;+ left: 12px;+ gap: 3px;+ padding: 7px 8px;+ border-radius: 7px;+ }++ .modelOutputLabel span {+ font-size: 7px;+ }++ .modelOutputLabel small {+ max-width: 110px;+ font-size: 7px;+ white-space: normal;+ }++ .responseGatewayNode {+ top: 33.9%;+ left: 14%;+ width: 72%;+ min-width: 0;+ height: 24.5%;+ min-height: 0;+ gap: 2px;+ padding: 4px;+ border-radius: 11px;+ }++ .gatewayHeader {+ min-height: 22px;+ padding: 4px;+ font-size: 8px;+ line-height: 10px;+ }++ .fixedCount {+ gap: 2px;+ }++ .fixedCount small {+ font-size: 5px;+ }++ .gatewayMetrics {+ padding: 3px 5px;+ border-radius: 5px 5px 8px 8px;+ }++ .gatewayMetric {+ grid-template-columns: 11px minmax(0, 1fr) auto;+ gap: 4px;+ }++ .gatewayMetric > i {+ width: 11px;+ height: 11px;+ }++ .gatewayMetric > i::before {+ top: 3px;+ left: 3px;+ width: 6px;+ height: 4px;+ border-width: 0 0 1px 1px;+ }++ .gatewayMetric > span:nth-child(2) {+ font-size: 6.5px;+ }++ .gatewayMetric > b {+ font-size: 8px;+ }++ .slotViewport,+ .slotTrack b {+ height: 10px;+ flex-basis: 10px;+ font-size: 8px;+ line-height: 10px;+ }++ @keyframes gateway-slot-roll {+ 0%,+ 10% {+ transform: translateY(0);+ }+ 82%,+ 100% {+ transform: translateY(-50px);+ }+ }++ .renderedInterface {+ top: 61%;+ left: 6%;+ width: 88%;+ height: 43%;+ border-radius: 12px;+ }++ .renderedInterface header b {+ font-size: 6px;+ }++ .renderedInterface header small,+ .retentionCard small,+ .distributionCard small,+ .interfaceMetrics > div > small {+ font-size: 4.5px;+ }++ .renderedInterface header > i {+ width: 4px;+ height: 4px;+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--response-valid) 12%, transparent);+ }++ .interfaceMetrics {+ grid-template-columns: 1fr 1fr;+ gap: 4px;+ }++ .interfaceMetrics > div {+ height: 37px;+ gap: 2px;+ padding: 5px;+ border-radius: 5px;+ }++ .interfaceMetrics > div:nth-child(3) {+ display: none;+ }++ .interfaceMetrics b {+ font-size: 5px;+ }++ .interfaceMetrics > div > span small {+ font-size: 3.5px;+ }++ .interfaceCharts {+ grid-template-columns: 1fr;+ gap: 0;+ }++ .retentionCard {+ padding: 6px;+ border-radius: 5px;+ }++ .retentionCard b {+ font-size: 5px;+ }++ .retentionCard svg {+ margin-top: 7px;+ }++ .distributionCard {+ display: none;+ }+}++@media (prefers-reduced-motion: reduce) {+ .incomingResponse,+ .validatedResponse {+ display: none;+ }++ .slotTrack {+ animation: none;+ transform: translateY(-70px);+ }+}++@media (max-width: 767px) and (prefers-reduced-motion: reduce) {+ .slotTrack {+ transform: translateY(-50px);+ }+}diff --git a/docs/app/(home)/sections/ProductIllustrations/ProductIllustrations.tsx b/docs/app/(home)/sections/ProductIllustrations/ProductIllustrations.tsxnew file mode 100644index 000000000..b73e11f5b--- /dev/null+++ b/docs/app/(home)/sections/ProductIllustrations/ProductIllustrations.tsx@@ -0,0 +1,248 @@+import Image from "next/image";+import styles from "./ProductIllustrations.module.css";++export { OpenSourceIllustration } from "./OpenSourceIllustration";++export function GatewayReliabilityDashboardIllustration({+ inverted = false,+ alt = "OpenUI Gateway reliability dashboard showing successful renders, errors, sanitizer triggers, and model fallbacks",+}: {+ inverted?: boolean;+ alt?: string;+}) {+ return (+ <div+ className={`${styles.reliabilityDashboardIllustration} ${+ inverted ? styles.reliabilityDashboardIllustrationInverted : ""+ }`.trim()}+ >+ <Image+ className={`${styles.reliabilityDashboardImage} ${styles.reliabilityDashboardImageLight}`}+ src="/images/gateway/[email protected]"+ alt={alt}+ width={3408}+ height={1596}+ unoptimized+ />+ <Image+ className={`${styles.reliabilityDashboardImage} ${styles.reliabilityDashboardImageDark}`}+ src="/images/gateway/[email protected]"+ alt=""+ aria-hidden="true"+ width={3408}+ height={1596}+ unoptimized+ />+ </div>+ );+}++type ResponseTone = "valid" | "root" | "reference" | "type";++const responseLanes = [+ {+ path: "M -28 96 H 86 C 118 96 126 106 142 128 S 170 160 198 160 H 218 C 244 160 246 190 266 204 S 290 218 305 222",+ },+ {+ path: "M -28 176 H 92 C 126 176 132 188 150 206 S 178 226 206 226 H 226 C 252 226 268 238 305 242",+ },+ { path: "M -28 260 H 110 C 144 260 152 244 178 244 H 208 C 234 244 254 260 305 260" },+ {+ path: "M -28 344 H 92 C 126 344 132 332 150 314 S 178 294 206 294 H 226 C 252 294 268 282 305 280",+ },+ {+ path: "M -28 424 H 86 C 118 424 126 414 142 392 S 170 360 198 360 H 218 C 244 360 246 330 266 316 S 290 302 305 300",+ },+] as const;++const validatedLanes = [+ { path: "M 568 236 H 606 C 642 236 642 186 676 186 H 1120" },+ { path: "M 568 260 H 624 C 648 260 654 260 676 260 H 1120" },+ { path: "M 568 284 H 606 C 642 284 642 334 676 334 H 1120" },+] as const;++const mobileResponseLanes = [+ { path: "M 42 -24 V 34 C 42 74 76 76 76 112 C 76 150 116 160 154 210" },+ { path: "M 116 -24 V 54 C 116 88 142 96 142 128 C 142 164 166 176 176 210" },+ { path: "M 195 -24 V 210" },+ { path: "M 274 -24 V 54 C 274 88 248 96 248 128 C 248 164 224 176 214 210" },+ { path: "M 348 -24 V 34 C 348 74 314 76 314 112 C 314 150 274 160 236 210" },+] as const;++const mobileValidatedLanes = [+ { path: "M 160 362 V 382 C 160 404 128 406 128 434 V 640" },+ { path: "M 195 362 V 640" },+ { path: "M 230 362 V 382 C 230 404 262 406 262 434 V 640" },+] as const;++const incomingResponses: Array<{ lane: number; delay: number; tone: ResponseTone }> = [+ { lane: 0, delay: -0.2, tone: "valid" },+ { lane: 0, delay: -2.4, tone: "root" },+ { lane: 0, delay: -4.6, tone: "valid" },+ { lane: 1, delay: -0.8, tone: "reference" },+ { lane: 1, delay: -3, tone: "valid" },+ { lane: 1, delay: -5.2, tone: "type" },+ { lane: 2, delay: -1.4, tone: "type" },+ { lane: 2, delay: -3.6, tone: "valid" },+ { lane: 2, delay: -5.8, tone: "root" },+ { lane: 3, delay: -2, tone: "valid" },+ { lane: 3, delay: -4.2, tone: "reference" },+ { lane: 3, delay: -6.4, tone: "valid" },+ { lane: 4, delay: -0.5, tone: "valid" },+ { lane: 4, delay: -2.7, tone: "root" },+ { lane: 4, delay: -4.9, tone: "valid" },+];++const validatedResponses = incomingResponses.map((_, index) => ({+ lane: index % validatedLanes.length,+ delay: -index * 0.44,+}));++const slotValues = {+ fixed: ["08", "09", "10", "11", "12", "13"],+ checked: ["143", "144", "145", "146", "147", "148"],+ delivered: ["143", "144", "145", "146", "147", "148"],+};++export function GatewayReliabilityIllustration() {+ return (+ <div+ className={styles.responseFlowHero}+ role="img"+ aria-label="Model output streams fifteen complete responses through OpenUI Gateway. Gateway checks every response, fixes four kinds of output errors, and delivers the same fifteen valid responses to a rendered analytics interface."+ >+ <ResponsePaths />+ <ResponsePaths mobile />++ <div className={styles.modelOutputLabel} aria-hidden="true">+ <span>MODEL OUTPUT</span>+ <small>Each marker is one response</small>+ </div>++ <div className={styles.responseGatewayNode} aria-hidden="true">+ <div className={styles.gatewayHeader}>+ <span>OPENUI GATEWAY</span>+ <span className={styles.fixedCount}>+ <Slot values={slotValues.fixed} />+ <small>FIXED</small>+ </span>+ </div>+ <div className={styles.gatewayMetrics}>+ <GatewayMetric label="RESPONSES CHECKED" values={slotValues.checked} tone="neutral" />+ <GatewayMetric label="ERROR TYPES FIXED" value="4" tone="error" />+ <GatewayMetric label="RESPONSES DELIVERED" values={slotValues.delivered} tone="valid" />+ </div>+ </div>++ <div className={styles.renderedInterface} aria-hidden="true">+ <Image+ className={styles.renderedInterfaceLight}+ src="/images/gateway/[email protected]"+ alt=""+ width={1716}+ height={1367}+ unoptimized+ />+ <Image+ className={styles.renderedInterfaceDark}+ src="/images/gateway/[email protected]"+ alt=""+ width={1716}+ height={1367}+ unoptimized+ />+ </div>+ </div>+ );+}++function ResponsePaths({ mobile = false }: { mobile?: boolean }) {+ const incomingLanes = mobile ? mobileResponseLanes : responseLanes;+ const outgoingLanes = mobile ? mobileValidatedLanes : validatedLanes;++ return (+ <svg+ className={`${styles.gatewayPaths} ${+ mobile ? styles.gatewayPathsMobile : styles.gatewayPathsDesktop+ }`}+ viewBox={mobile ? "0 0 390 620" : "0 0 1280 520"}+ preserveAspectRatio="none"+ aria-hidden="true"+ >+ {incomingLanes.map((lane, index) => (+ <path d={lane.path} key={`incoming-line-${index}`} />+ ))}+ {outgoingLanes.map((lane, index) => (+ <path d={lane.path} key={`outgoing-line-${index}`} />+ ))}+ {incomingResponses.map((response, index) => (+ <g+ className={styles.incomingResponse}+ data-tone={response.tone}+ key={`incoming-response-${index}`}+ >+ <ResponseMarker tone={response.tone} />+ <animateMotion+ begin={`${response.delay}s`}+ dur="6.6s"+ path={incomingLanes[response.lane].path}+ repeatCount="indefinite"+ />+ </g>+ ))}+ {validatedResponses.map((response, index) => (+ <circle className={styles.validatedResponse} key={`validated-response-${index}`} r="4.5">+ <animateMotion+ begin={`${response.delay}s`}+ dur="6.6s"+ path={outgoingLanes[response.lane].path}+ repeatCount="indefinite"+ />+ </circle>+ ))}+ </svg>+ );+}++function Slot({ values }: { values: string[] }) {+ return (+ <span className={styles.slotViewport}>+ <span className={styles.slotTrack}>+ {values.map((value) => (+ <b key={value}>{value}</b>+ ))}+ </span>+ </span>+ );+}++function GatewayMetric({+ label,+ value,+ values,+ tone,+}: {+ label: string;+ value?: string;+ values?: string[];+ tone: "neutral" | "error" | "valid";+}) {+ return (+ <div className={styles.gatewayMetric} data-tone={tone}>+ <i />+ <span>{label}</span>+ {values ? <Slot values={values} /> : <b>{value}</b>}+ </div>+ );+}++function ResponseMarker({ tone }: { tone: ResponseTone }) {+ if (tone === "root") {+ return (+ <path d="M 0 -6 Q .8 -6 1.25 -5.2 L 6 3.8 Q 6.5 5 5.1 5 H -5.1 Q -6.5 5 -6 3.8 L -1.25 -5.2 Q -.8 -6 0 -6 Z" />+ );+ }+ if (tone === "reference") return <rect x="-5" y="-5" width="10" height="10" rx="2" />;+ if (tone === "type") return <circle r="5" />;+ return <circle r="5" />;+}diff --git a/docs/app/(home)/sections/ProductSection/ProductSection.module.css b/docs/app/(home)/sections/ProductSection/ProductSection.module.cssnew file mode 100644index 000000000..c2060c6ff--- /dev/null+++ b/docs/app/(home)/sections/ProductSection/ProductSection.module.css@@ -0,0 +1,325 @@+/* One product band. Colour comes from two token sets: the light tone reads the+ site theme, the dark tone pins itself, because it sits on the Cloud band's+ black in either theme. Every rule below styles through these, so the two+ tones never need parallel rules. */+.product {+ --ps-text: var(--openui-text-neutral-primary);+ --ps-muted: var(--openui-text-neutral-secondary);+ --ps-mark-bg: #0a0a0a;+ --ps-mark-fg: #fff;+ /* One fill and one edge for the stage, the cards and the icon tiles, so the+ band reads as a single material. */+ --ps-surface: #fff;+ --ps-border: rgba(10, 10, 10, 0.035);++ display: flex;+ flex-direction: column;+ /* Matches the gap the cards use between each other, so the band's vertical+ rhythm is the same measure as its horizontal one. Change both together. */+ gap: 0.875rem;+ width: 100%;+ /* Caps its own measure so the three bands line up whether the host is the+ home content shell or the Cloud band's inner. Gutters stay the host's job,+ matching how the other home sections split it. */+ max-width: var(--home-container-max);+ margin-inline: auto;+ color: var(--ps-text);+}++[data-theme="dark"] .product {+ --ps-surface: rgba(255, 255, 255, 0.042);+ --ps-border: rgba(255, 255, 255, 0.04);+ --ps-mark-bg: #fff;+ --ps-mark-fg: #0a0a0a;+}++/* Pinned rather than theme-derived: on a light page this tone sits on black. */+.onDark {+ --ps-text: #fff;+ --ps-muted: rgba(255, 255, 255, 0.6);+ --ps-surface: rgba(255, 255, 255, 0.042);+ --ps-border: rgba(255, 255, 255, 0.04);+ --ps-mark-bg: #fff;+ --ps-mark-fg: #0a0a0a;+}++/* ---- Lockup ---- */+.lockup {+ /* The band's single gap keeps stage and cards tight together; the copy above+ wants more air than that, so this tops up only the lockup-to-stage+ boundary rather than loosening the whole rhythm. */+ margin-bottom: clamp(0.75rem, 2vw, 1.75rem);+ display: grid;+ grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);+ align-items: start;+ gap: clamp(1.5rem, 4vw, 4rem);+}++.lead {+ display: flex;+ flex-direction: column;+ align-items: flex-start;+ gap: 1.25rem;+}++.eyebrow {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ margin: 0;+ font-family: var(--home-font-text);+ font-size: 16px;+ font-weight: 500;+ line-height: 1;+}++/* The outlined chip from the Cloud hero, not the nav's solid status tag: it+ reads as part of the product name rather than as a badge stuck to it. Sized+ just under the eyebrow and drawn in currentColor, so it inverts with the+ band's tone for free. */+.eyebrowTag {+ display: inline-flex;+ align-items: center;+ /* Optically centres the chip against the cap height beside it. */+ margin-top: -2px;+ padding: 2px 6px 3px;+ border: 1px solid currentColor;+ border-radius: 5px;+ font-family: var(--home-font-text);+ font-size: 14px;+ font-weight: 500;+ line-height: 1;+ vertical-align: middle;+}++.headline {+ max-width: 20ch;+ margin: 0;+ /* Same display face and weight the section headings use. Only the size is+ local, because a band heading sits below them in the hierarchy. */+ font-family: var(--home-font-display);+ font-size: clamp(1.75rem, 3vw, 2.5rem);+ font-weight: var(--home-title-weight);+ line-height: 1.1;+ letter-spacing: -0.02em;+ text-wrap: balance;+}++.description {+ margin: 0;+ /* Optically aligned with the headline rather than the eyebrow above it. */+ padding-top: clamp(0.5rem, 3vw, 3.25rem);+ font-family: var(--home-font-text);+ font-size: 1.0625rem;+ line-height: 1.55;+ color: var(--ps-muted);+ text-wrap: pretty;+}++.ctas {+ display: flex;+ flex-wrap: wrap;+ gap: 0.75rem;+ margin-top: 0.25rem;+}++/* ---- Stage ---- */+.stage {+ position: relative;+ display: flex;+ align-items: center;+ justify-content: center;+ overflow: hidden;+ width: 100%;+ /* 16/9 with the height at 70%. */+ aspect-ratio: var(--product-stage-aspect, 16 / 6.3);+ padding: clamp(0.375rem, 0.7vw, 0.625rem);+ border: 1px solid var(--ps-border);+ border-radius: 20px;+ background: var(--ps-surface);+}++/* Some final illustrations already contain their own app frame. Nesting those+ inside the default stage inset creates a conspicuous double border, so they+ crop directly to the section bounds instead. */+.stageFullBleed {+ padding: 0;+ border: 0;+ border-radius: 24px;+ background: transparent;+}++.stageImage {+ width: 100%;+ height: 100%;+ object-fit: cover;+ border-radius: 12px;+}++.stageDark {+ display: none;+}++[data-theme="dark"] .stageLight {+ display: none;+}++[data-theme="dark"] .stageDark {+ display: block;+}++/* The dark band shows the dark artwork on either page theme. */+.onDark .stageLight {+ display: none;+}++.onDark .stageDark {+ display: block;+}++/* ---- Cards ---- */+.cards {+ display: grid;+ grid-template-columns: repeat(4, minmax(0, 1fr));+ gap: 0.875rem;+}++.card {+ display: flex;+ flex-direction: column;+ gap: 0.5rem;+ padding: clamp(0.75rem, 1vw, 1rem);+ border: 1px solid var(--ps-border);+ border-radius: 16px;+ background: var(--ps-surface);+}++.cardIcon {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 2.25rem;+ height: 2.25rem;+ margin-bottom: 0.125rem;+ border: 1px solid var(--ps-border);+ border-radius: 12px;+ color: var(--ps-text);+}++.cardTitle {+ margin: 0;+ font-family: var(--home-font-display);+ font-size: var(--home-heading-size);+ font-weight: var(--home-heading-weight);+ letter-spacing: var(--home-heading-tracking);+ line-height: 1.3;+}++.cardDescription {+ margin: 0;+ font-family: var(--home-font-text);+ font-size: 0.875rem;+ line-height: 1.5;+ color: var(--ps-muted);+ text-wrap: pretty;+}++/* ---- Narrower ---- */+@media (max-width: 1023px) {+ .cards {+ grid-template-columns: repeat(2, minmax(0, 1fr));+ }+}++@media (max-width: 767px) {+ .lockup {+ grid-template-columns: minmax(0, 1fr);+ gap: 0.75rem;+ }++ .description {+ padding-top: 0;+ }++ .headline {+ max-width: none;+ }++ .stage {+ /* Taller than the desktop ratio, which gets too thin at phone width. */+ aspect-ratio: var(--product-stage-mobile-aspect, 4 / 2.4);+ border-radius: 16px;+ }++ .cards {+ grid-template-columns: none;+ grid-auto-columns: clamp(15.5rem, 76vw, 18rem);+ grid-auto-flow: column;+ justify-content: start;+ overflow-x: auto;+ overscroll-behavior-inline: contain;+ padding-bottom: 0.25rem;+ scroll-padding-inline: 0.125rem;+ scroll-snap-type: inline mandatory;+ scrollbar-width: none;+ -webkit-overflow-scrolling: touch;+ }++ .cards::-webkit-scrollbar {+ display: none;+ }++ .card {+ scroll-snap-align: start;+ scroll-snap-stop: always;+ }++ /* The buttons go full width on phones, so stack them rather than wrapping. */+ .ctas {+ flex-direction: column;+ align-self: stretch;+ }+}++/* ---- The dark tone inverts with the page ----+ CloudSection's own .section flips from #000 to #f4f4f5 under a dark theme, so+ a band sitting on it has to flip too. Without this the band keeps white text+ and white fills on a light ground and disappears. */+[data-theme="dark"] .onDark {+ --ps-text: #0a0a0a;+ --ps-muted: rgba(10, 10, 10, 0.6);+ --ps-surface: #fff;+ --ps-border: rgba(10, 10, 10, 0.035);+ --ps-mark-bg: #0a0a0a;+ --ps-mark-fg: #fff;+}++/* The band is light here, so it wants the light artwork. */+[data-theme="dark"] .onDark .stageLight {+ display: block;+}++[data-theme="dark"] .onDark .stageDark {+ display: none;+}++/* The buttons use the theme-independent variants for this tone, which means+ they do not invert on their own. Same declarations CloudSection applied to+ its own CTAs before they moved here. */+[data-theme="dark"] .onDark .primaryCta {+ border-color: rgba(255, 255, 255, 0.2);+ background: #0a0a0a;+ box-shadow: var(--home-bevel-on-dark);+ color: #fff;+ --bevel-badge-bg: #fff;+ --bevel-badge-fg: #0a0a0a;+}++[data-theme="dark"] .onDark .secondaryCta {+ border-color: rgba(0, 0, 0, 0.08);+ background: var(--home-surface-raised);+ box-shadow: var(--home-bevel);+ color: #0a0a0a;+ --bevel-badge-bg: #0a0a0a;+ --bevel-badge-fg: #fff;+}diff --git a/docs/app/(home)/sections/ProductSection/ProductSection.tsx b/docs/app/(home)/sections/ProductSection/ProductSection.tsxnew file mode 100644index 000000000..3bf3a2627--- /dev/null+++ b/docs/app/(home)/sections/ProductSection/ProductSection.tsx@@ -0,0 +1,189 @@+/* Icons come from the ssr entry so this stays a server component; the type+ comes from the main entry, which is the only one that exports it. A+ type-only import is erased at build, so it pulls in no client code. */+import type { Icon } from "@phosphor-icons/react";+import { ArrowRight, ArrowUpRight } from "@phosphor-icons/react/dist/ssr";+import Image from "next/image";+import type { CSSProperties, ReactNode } from "react";+import { BevelButton } from "../../components/Button/BevelButton";+import styles from "./ProductSection.module.css";++export type ProductCard = {+ Icon: Icon;+ title: string;+ description: string;+};++/** Shared OpenUI wordmark and outlined product-name chip. */+export function ProductLabel({+ name,+ tag,+ className,+}: {+ name: string;+ tag?: string;+ className?: string;+}) {+ return (+ <p className={`${styles.eyebrow} ${className ?? ""}`.trim()}>+ {name}+ {tag ? (+ <>+ {" "}+ <span className={styles.eyebrowTag}>{tag}</span>+ </>+ ) : null}+ </p>+ );+}++export type ProductSectionProps = {+ /* Product name, and an optional chip beside it: "OpenUI Lang" + "Open+ Source". Omit the tag for a band that needs no qualifier. */+ name: string;+ tag?: string;+ headline: ReactNode;+ description: string;+ /* Optional: a band with nothing to try yet shows only the docs link. */+ primaryCta?: { label: string; href: string; external?: true };+ secondaryCta: { label: string; href: string; external?: true };+ /* "light" sits on the page background and follows the site theme. "dark" sits+ on the black Cloud band, which is black on either theme, so its buttons use+ the theme-independent variants instead of the adaptive ones. */+ tone?: "light" | "dark";+ /* Basename under /public, which -light and -dark hang off. Until the artwork+ exists the stage renders its brief instead, at the same aspect ratio, so+ dropping the images in later changes nothing about the layout. */+ shot?: string;+ /* A code-native illustration can replace the image pair while retaining the+ same stage, spacing and responsive behaviour. */+ art?: ReactNode;+ /* Let artwork that already includes its own frame crop directly to the+ section bounds instead of nesting it inside the shared inset stage. */+ fullBleedArt?: boolean;+ /* Optional artwork-specific ratios. Desktop exports can stay canonical;+ mobile uses a controlled center crop instead of squeezing the frame. */+ stageAspectRatio?: string;+ stageMobileAspectRatio?: string;+ cards: ProductCard[];+};++/* One product band: a split lockup, two calls to action, a wide visual, then+ the capabilities as a row of cards.+ *+ * Deliberately one component rather than three copies. Lang, Gateway and+ * Observability differ only in copy and tone, and a shared shape is what makes+ * them read as three of the same thing rather than three separate pitches.+ */+export function ProductSection({+ name,+ tag,+ headline,+ description,+ primaryCta,+ secondaryCta,+ tone = "light",+ shot,+ art,+ fullBleedArt = false,+ stageAspectRatio,+ stageMobileAspectRatio,+ cards,+}: ProductSectionProps) {+ const primaryVariant = tone === "dark" ? "light" : "primary";+ const secondaryVariant = tone === "dark" ? "dark" : "secondary";++ return (+ <section className={`${styles.product} ${tone === "dark" ? styles.onDark : ""}`.trim()}>+ <div className={styles.lockup}>+ <div className={styles.lead}>+ <ProductLabel name={name} tag={tag} />+ <h3 className={styles.headline}>{headline}</h3>+ <div className={styles.ctas}>+ {primaryCta && (+ <BevelButton+ className={styles.primaryCta}+ variant={primaryVariant}+ href={primaryCta.href}+ label={primaryCta.label}+ external={primaryCta.external}+ badge={+ primaryCta.external ? (+ <ArrowUpRight size={16} weight="bold" />+ ) : (+ <ArrowRight size={16} weight="bold" />+ )+ }+ />+ )}+ <BevelButton+ className={styles.secondaryCta}+ variant={secondaryVariant}+ href={secondaryCta.href}+ label={secondaryCta.label}+ external={secondaryCta.external}+ badge={+ secondaryCta.external ? (+ <ArrowUpRight size={16} weight="bold" />+ ) : (+ <ArrowRight size={16} weight="bold" />+ )+ }+ />+ </div>+ </div>+ {/* Opposite the headline on desktop, beneath it on a phone: the same+ split the page hero uses. */}+ <p className={styles.description}>{description}</p>+ </div>++ <div+ className={`${styles.stage} ${fullBleedArt ? styles.stageFullBleed : ""}`.trim()}+ style={+ {+ "--product-stage-aspect": stageAspectRatio,+ "--product-stage-mobile-aspect": stageMobileAspectRatio,+ } as CSSProperties+ }+ >+ {art ??+ (shot ? (+ <>+ <Image+ className={`${styles.stageImage} ${styles.stageLight}`}+ src={`${shot}-light.webp`}+ alt=""+ aria-hidden="true"+ width={1280}+ height={720}+ loading="lazy"+ />+ <Image+ className={`${styles.stageImage} ${styles.stageDark}`}+ src={`${shot}-dark.webp`}+ alt=""+ aria-hidden="true"+ width={1280}+ height={720}+ loading="lazy"+ />+ </>+ ) : null)}+ </div>++ {cards.length > 0 && (+ <div className={styles.cards}>+ {cards.map(({ Icon: CardIcon, title, description: cardCopy }) => (+ <div className={styles.card} key={title}>+ <span className={styles.cardIcon} aria-hidden="true">+ <CardIcon size={20} weight="light" />+ </span>+ <h4 className={styles.cardTitle}>{title}</h4>+ <p className={styles.cardDescription}>{cardCopy}</p>+ </div>+ ))}+ </div>+ )}+ </section>+ );+}diff --git a/docs/app/(home)/sections/ProductSection/products.ts b/docs/app/(home)/sections/ProductSection/products.tsnew file mode 100644index 000000000..8823b3418--- /dev/null+++ b/docs/app/(home)/sections/ProductSection/products.ts@@ -0,0 +1,132 @@+import {+ ArrowsClockwise,+ ArrowsLeftRight,+ CursorClick,+ Key,+ MagnifyingGlass,+ PlayCircle,+ WarningDiamond,+ Wrench,+} from "@phosphor-icons/react/dist/ssr";+import { createElement } from "react";+import { GatewayReliabilityDashboardIllustration } from "../ProductIllustrations/ProductIllustrations";+import type { ProductSectionProps } from "./ProductSection";++/* The product bands, in the order the page tells them: what OpenUI is, then+ the hosted thing built on it.++ OBSERVABILITY_PRODUCT is still defined but no longer rendered: while it is in+ early access the home page gives it a line rather than a band. Its props are+ kept here so promoting it back is a one-line change in CloudSection.+ *+ * ARTWORK PENDING. None of the three has a `shot` yet, so each stage renders+ * empty, holding its space. Add the images to /public and set `shot` to their+ * basename (minus -light/-dark.webp); nothing else needs to change.+ *+ * What each visual should show:+ * Lang a prompt transforming into OpenUI Lang, then into a rich+ * interactive interface+ * Gateway code switching the OpenAI baseURL to OpenUI Gateway, the+ * request flowing through Route, Validate, Correct, Fallback,+ * Model+ * Observability the OpenUI Console: a generated UI session on one side, its+ * events, interactions, errors and insights on the other+ *+ * Homepage labels use the same outlined product-name chips as the product pages.+ *+ * HREFS: Gateway points at its own page. Observability's still points at the+ * nearest real destination; repoint it if that band comes back. */++export const LANG_PRODUCT: ProductSectionProps = {+ /* "OpenUI", not "OpenUI Lang": the language/runtime split is a distinction the+ docs make and the marketing pages do not. The const keeps its name because+ it is internal. */+ name: "OpenUI",+ tag: "Open Source",+ /* Keep the performance claim qualitative here. The benchmark fold directly+ below carries the supporting numbers and comparison details. */+ headline: "A framework for agent-driven interfaces.",+ description:+ "Make your AI agents stream live charts, forms, cards, tables, and dashboards faster, with fewer tokens.",+ secondaryCta: { label: "View docs", href: "/docs/openui-lang" },+ tone: "light",+ /* No cards. Interactive, Bring your UI library, Safe by default and Stream UI+ live all moved to the feature grid directly below this band, which states+ them once alongside Live data and Cross-platform. */+ cards: [],+};++export const GATEWAY_PRODUCT: ProductSectionProps = {+ name: "OpenUI",+ tag: "Gateway",+ headline: "Production reliability for OpenUI",+ description:+ "An OpenAI-compatible API that validates and repairs model output against your component library as it streams.",+ primaryCta: {+ label: "Get API key",+ href: "https://console.thesys.dev/keys",+ external: true,+ },+ secondaryCta: { label: "Learn more", href: "/cloud/gateway" },+ tone: "dark",+ art: createElement(GatewayReliabilityDashboardIllustration, { inverted: true }),+ fullBleedArt: true,+ stageAspectRatio: "2272 / 1064",+ stageMobileAspectRatio: "4 / 3",+ cards: [+ {+ Icon: ArrowsLeftRight,+ title: "OpenAI-compatible",+ description: "Chat Completions and Responses endpoints work with your existing SDKs.",+ },+ {+ Icon: Wrench,+ title: "Fix invalid output",+ description:+ "Invalid output is repaired in the streaming path, not through a retry your user waits for.",+ },+ {+ Icon: ArrowsClockwise,+ title: "Provider fallbacks",+ description:+ "If a provider is unavailable, Gateway serves the same model through another provider.",+ },+ {+ Icon: Key,+ title: "Bring your keys",+ description:+ "Use your existing OpenAI, Anthropic, or Google Vertex credentials and commitments. Or use OpenUI-managed credits.",+ },+ ],+};++export const OBSERVABILITY_PRODUCT: ProductSectionProps = {+ name: "OpenUI Observability",+ headline: "Product analytics for Generative UI.",+ description:+ "See what your agent generated, what users experienced, and where your product needs to improve.",+ secondaryCta: { label: "View docs", href: "/docs/agent/getting-started/openui-cloud" },+ tone: "dark",+ cards: [+ {+ Icon: PlayCircle,+ title: "Replay sessions",+ description: "See the exact UI and interactions your users experienced.",+ },+ {+ Icon: WarningDiamond,+ title: "Track every failure",+ description: "Capture errors, corrections, fallbacks, and failed generations.",+ },+ {+ Icon: CursorClick,+ title: "Understand users",+ description: "See what people use, where they struggle, and what works.",+ },+ {+ Icon: MagnifyingGlass,+ title: "Find what\u2019s missing",+ description: "Surface unmet needs, emerging demand, and opportunities to improve.",+ },+ ],+};diff --git a/docs/app/(home)/sections/TweetWallSection/TweetWallSection.module.css b/docs/app/(home)/sections/TweetWallSection/TweetWallSection.module.cssindex d43901817..555e539d9 100644--- a/docs/app/(home)/sections/TweetWallSection/TweetWallSection.module.css+++ b/docs/app/(home)/sections/TweetWallSection/TweetWallSection.module.css@@ -1,5 +1,8 @@.section {width: min(100%, var(--home-container-wide));+ /* On top of the content shell's own gap: this follows the black Cloud band+ and needs more room than a gap between two light sections. */+ margin-top: clamp(3rem, 6vw, 5.5rem);margin-inline: auto;padding-inline: 1.25rem;box-sizing: border-box;diff --git a/docs/app/(home)/sections/TweetWallSection/TweetWallStats.tsx b/docs/app/(home)/sections/TweetWallSection/TweetWallStats.tsxindex e421cc505..9e8b16831 100644--- a/docs/app/(home)/sections/TweetWallSection/TweetWallStats.tsx+++ b/docs/app/(home)/sections/TweetWallSection/TweetWallStats.tsx@@ -28,7 +28,7 @@ export function TweetWallStats() {<span className={styles.statChip}><NpmMark /><span className={styles.statText}>- <span className={styles.statNumber}>1 Million+</span>{" "}+ <span className={styles.statNumber}>3 Million+</span>{" "}<span className={styles.statLabel}>downloads across all packages</span></span></span>diff --git a/docs/app/(home)/sections/UseCasesSection/UseCasesSection.module.css b/docs/app/(home)/sections/UseCasesSection/UseCasesSection.module.cssdeleted file mode 100644index c34d7ff0d..000000000--- a/docs/app/(home)/sections/UseCasesSection/UseCasesSection.module.css+++ /dev/null@@ -1,37 +0,0 @@-.useCases {- display: flex;- flex-direction: column;- align-items: center;- gap: 2.5rem;- width: 100%;- max-width: 75rem;- margin-inline: auto;- padding-inline: 1.25rem;-}--.header {- display: flex;- flex-direction: column;- align-items: center;- gap: 0.875rem;- width: 100%;-}--.description {- margin: 0;- max-width: 30rem;- color: var(--openui-text-neutral-secondary);- font-size: var(--home-lead-size);- font-weight: var(--home-lead-weight);- line-height: var(--home-lead-leading);- text-align: center;- text-wrap: balance;-}--/* Mobile-only: clean type scale (section title + content) and tighter layout. */-@media (max-width: 767px) {- .useCases {- gap: 1.75rem;- padding-inline: 1rem;- }-}diff --git a/docs/app/(home)/sections/UseCasesSection/UseCasesSection.tsx b/docs/app/(home)/sections/UseCasesSection/UseCasesSection.tsxdeleted file mode 100644index e32ed78ab..000000000--- a/docs/app/(home)/sections/UseCasesSection/UseCasesSection.tsx+++ /dev/null@@ -1,22 +0,0 @@-import { AgentSteps } from "../../agent-interface/AgentSteps";-import { SectionHeader } from "../../components/SectionHeader/SectionHeader";-import styles from "./UseCasesSection.module.css";--/* Anchor: the CloudBanner waits for this section before appearing. */-export const USE_CASES_SECTION_ID = "use-cases";--export function UseCasesSection() {- return (- <section id={USE_CASES_SECTION_ID} className={styles.useCases}>- <div className={styles.header}>- <SectionHeader title="Generative UI for every use case">- <p className={styles.description}>- From dashboards to support to dev tools, OpenUI renders the- interface your users need.- </p>- </SectionHeader>- </div>- <AgentSteps autoAdvance variant="useCases" />- </section>- );-}diff --git a/docs/app/sitemap.ts b/docs/app/sitemap.tsindex be1d8a040..1f8d37e96 100644--- a/docs/app/sitemap.ts+++ b/docs/app/sitemap.ts@@ -3,7 +3,6 @@ import { integrations } from "./(home)/integrations/data";const STATIC_PATHS = ["/",- "/cloud","/demos","/compare","/lab",diff --git a/docs/components/site-marketing-header.module.css b/docs/components/site-marketing-header.module.cssindex f9b9b2660..017a59d6b 100644--- a/docs/components/site-marketing-header.module.css+++ b/docs/components/site-marketing-header.module.css@@ -8,7 +8,6 @@.desktopActions {display: none;align-items: center;- gap: 0.5rem;}.hamburgerIcon {diff --git a/docs/components/site-marketing-header.tsx b/docs/components/site-marketing-header.tsxindex 155f7f3f7..409853620 100644--- a/docs/components/site-marketing-header.tsx+++ b/docs/components/site-marketing-header.tsx@@ -15,7 +15,7 @@ import { ArrowRight, ChevronDown } from "lucide-react";import { AnimatePresence, motion } from "motion/react";import { useTheme } from "next-themes";import Link from "next/link";-import { useCallback, useEffect, useState, type ReactNode } from "react";+import { useCallback, useEffect, useState } from "react";import styles from "./site-marketing-header.module.css";type ThemeToggleConfig = {@@ -26,7 +26,6 @@ type ThemeToggleConfig = {type SiteMarketingHeaderProps = {borderMode?: "always" | "scroll";- extraActions?: ReactNode;themeToggle?: ThemeToggleConfig | null;brandVariant?: LogoVariant;};@@ -64,7 +63,7 @@ function HamburgerIcon({ isOpen }: { isOpen: boolean }) {as scattered top-level links; it is a real menu now, so it arrives with therest.- The Open source / Managed split is flattened away. It divides three links, and+ The Open source / Cloud split is flattened away. It divides three links, andtwo heading rows to separate them costs more than it explains at tray width. */function MobileMenu({ onClose }: { onClose: () => void }) {const leafItems = PRIMARY_SITE_NAV_ITEMS.filter(@@ -215,7 +214,6 @@ function MobileMenu({ onClose }: { onClose: () => void }) {export function SiteMarketingHeader({borderMode = "scroll",- extraActions,themeToggle,brandVariant,}: SiteMarketingHeaderProps) {@@ -262,11 +260,7 @@ export function SiteMarketingHeader({brandVariant={resolvedBrandVariant}center={<SitePrimaryNav />}end={- // No theme toggle on desktop: the footer's own control owns theme- // switching now. The mobile menu below keeps one, since the footer is- // a long scroll away on a phone.<div className={styles.desktopActions}>- {extraActions}<GitHubButtonvariant="desktopGlow"compactdiff --git a/docs/components/site-primary-nav.tsx b/docs/components/site-primary-nav.tsxindex 82d933183..6a0b8bd26 100644--- a/docs/components/site-primary-nav.tsx+++ b/docs/components/site-primary-nav.tsx@@ -10,6 +10,7 @@ import {ChartPieSlice,ChatCenteredText,Code,+ CreditCard,DeviceMobileCamera,MagnifyingGlass,Monitor,@@ -124,12 +125,12 @@ export const PRIMARY_SITE_NAV_ITEMS: NavItem[] = [],},{- label: "Managed",+ label: "Cloud",children: [{- title: "OpenUI Cloud",- description: "Production agent interfaces, hosted and managed.",- href: "/cloud",+ title: "Gateway",+ description: "One endpoint for generative UI across every model.",+ href: "/cloud/gateway",},{title: "Observability",@@ -232,6 +233,12 @@ export const PRIMARY_SITE_NAV_ITEMS: NavItem[] = [href: "/benchmarks",icon: PresentationChart,},+ {+ title: "Pricing",+ description: "OpenUI, Gateway, and Observability pricing",+ href: "/pricing",+ icon: CreditCard,+ },{title: "Blogs",description:diff --git a/docs/generated/chat-system-prompt.spec.json b/docs/generated/chat-system-prompt.spec.jsonnew file mode 100644index 000000000..a2710918c--- /dev/null+++ b/docs/generated/chat-system-prompt.spec.json@@ -0,0 +1,2633 @@+{+ "root": "Card",+ "components": {+ "Card": {+ "signature": "Card(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | ListBlock | FollowUpBlock | SectionBlock | Tabs | Carousel)[])",+ "description": "Vertical container for all content in a chat response. Children stack top to bottom automatically."+ },+ "CardHeader": {+ "signature": "CardHeader(title?: string, subtitle?: string)",+ "description": "Header with optional title and subtitle"+ },+ "TextContent": {+ "signature": "TextContent(text: string, size?: \"small\" | \"default\" | \"large\" | \"small-heavy\" | \"large-heavy\")",+ "description": "Text block. Supports markdown. Optional size: \"small\" | \"default\" | \"large\" | \"small-heavy\" | \"large-heavy\"."+ },+ "MarkDownRenderer": {+ "signature": "MarkDownRenderer(textMarkdown: string, variant?: \"clear\" | \"card\" | \"sunk\")",+ "description": "Renders markdown text with optional container variant"+ },+ "Callout": {+ "signature": "Callout(variant: \"info\" | \"warning\" | \"error\" | \"success\" | \"neutral\", title: string, description: string, visible?: $binding<boolean>)",+ "description": "Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false."+ },+ "TextCallout": {+ "signature": "TextCallout(variant?: \"neutral\" | \"info\" | \"warning\" | \"success\" | \"danger\", title?: string, description?: string)",+ "description": "Text callout with variant, title, and description"+ },+ "Image": {+ "signature": "Image(alt: string, src?: string)",+ "description": "Image with alt text and optional URL"+ },+ "ImageBlock": {+ "signature": "ImageBlock(src: string, alt?: string)",+ "description": "Image block with loading state"+ },+ "ImageGallery": {+ "signature": "ImageGallery(images: {src: string, alt?: string, details?: string}[])",+ "description": "Gallery grid of images with modal preview"+ },+ "CodeBlock": {+ "signature": "CodeBlock(language: string, codeString: string)",+ "description": "Syntax-highlighted code block"+ },+ "Separator": {+ "signature": "Separator(orientation?: \"horizontal\" | \"vertical\", decorative?: boolean)",+ "description": "Visual divider between content sections"+ },+ "Table": {+ "signature": "Table(columns: Col[])",+ "description": "Data table — column-oriented. Each Col holds its own data array."+ },+ "Col": {+ "signature": "Col(label: string, data: any, type?: \"string\" | \"number\" | \"action\")",+ "description": "Column definition — holds label + data array"+ },+ "BarChart": {+ "signature": "BarChart(labels: string[], series: Series[], variant?: \"grouped\" | \"stacked\", xLabel?: string, yLabel?: string)",+ "description": "Vertical bars; use for comparing values across categories with one or more series"+ },+ "LineChart": {+ "signature": "LineChart(labels: string[], series: Series[], variant?: \"linear\" | \"natural\" | \"step\", xLabel?: string, yLabel?: string)",+ "description": "Lines over categories; use for trends and continuous data over time"+ },+ "AreaChart": {+ "signature": "AreaChart(labels: string[], series: Series[], variant?: \"linear\" | \"natural\" | \"step\", xLabel?: string, yLabel?: string)",+ "description": "Filled area under lines; use for cumulative totals or volume trends over time"+ },+ "RadarChart": {+ "signature": "RadarChart(labels: string[], series: Series[])",+ "description": "Spider/web chart; use for comparing multiple variables across one or more entities"+ },+ "HorizontalBarChart": {+ "signature": "HorizontalBarChart(labels: string[], series: Series[], variant?: \"grouped\" | \"stacked\", xLabel?: string, yLabel?: string)",+ "description": "Horizontal bars; prefer when category labels are long or for ranked lists"+ },+ "Series": {+ "signature": "Series(category: string, values: number[])",+ "description": "One data series"+ },+ "PieChart": {+ "signature": "PieChart(labels: string[], values: number[], variant?: \"pie\" | \"donut\", appearance?: \"circular\" | \"semiCircular\")",+ "description": "Circular slices; use plucked arrays: PieChart(data.categories, data.values)"+ },+ "RadialChart": {+ "signature": "RadialChart(labels: string[], values: number[])",+ "description": "Radial bars; use plucked arrays: RadialChart(data.categories, data.values)"+ },+ "SingleStackedBarChart": {+ "signature": "SingleStackedBarChart(labels: string[], values: number[])",+ "description": "Single horizontal stacked bar; use plucked arrays: SingleStackedBarChart(data.categories, data.values)"+ },+ "Slice": {+ "signature": "Slice(category: string, value: number)",+ "description": "One slice with label and numeric value"+ },+ "ScatterChart": {+ "signature": "ScatterChart(datasets: ScatterSeries[], xLabel?: string, yLabel?: string)",+ "description": "X/Y scatter plot; use for correlations, distributions, and clustering"+ },+ "ScatterSeries": {+ "signature": "ScatterSeries(name: string, points: Point[])",+ "description": "Named dataset"+ },+ "Point": {+ "signature": "Point(x: number, y: number, z?: number)",+ "description": "Data point with numeric coordinates"+ },+ "Form": {+ "signature": "Form(name: string, buttons: Buttons, fields?: FormControl[])",+ "description": "Form container with fields and explicit action buttons"+ },+ "FormControl": {+ "signature": "FormControl(label: string, input: Input | TextArea | Select | DatePicker | Slider | CheckBoxGroup | RadioGroup, hint?: string)",+ "description": "Field with label, input component, and optional hint text"+ },+ "Label": {+ "signature": "Label(text: string)",+ "description": "Text label"+ },+ "Input": {+ "signature": "Input(name: string, placeholder?: string, type?: \"text\" | \"email\" | \"password\" | \"number\" | \"url\", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)",+ "description": ""+ },+ "TextArea": {+ "signature": "TextArea(name: string, placeholder?: string, rows?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)",+ "description": ""+ },+ "Select": {+ "signature": "Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>, size?: \"small\" | \"medium\" | \"large\")",+ "description": ""+ },+ "SelectItem": {+ "signature": "SelectItem(value: string, label: string)",+ "description": "Option for Select"+ },+ "DatePicker": {+ "signature": "DatePicker(name: string, mode?: \"single\" | \"range\", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<any>)",+ "description": ""+ },+ "Slider": {+ "signature": "Slider(name: string, variant: \"continuous\" | \"discrete\", min: number, max: number, step?: number, defaultValue?: number[], label?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<number[]>)",+ "description": "Numeric slider input; supports continuous and discrete (stepped) variants"+ },+ "CheckBoxGroup": {+ "signature": "CheckBoxGroup(name: string, items: CheckBoxItem[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<Record<string, boolean>>)",+ "description": ""+ },+ "CheckBoxItem": {+ "signature": "CheckBoxItem(label: string, description: string, name: string, defaultChecked?: boolean)",+ "description": ""+ },+ "RadioGroup": {+ "signature": "RadioGroup(name: string, items: RadioItem[], defaultValue?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)",+ "description": ""+ },+ "RadioItem": {+ "signature": "RadioItem(label: string, description: string, value: string)",+ "description": ""+ },+ "SwitchGroup": {+ "signature": "SwitchGroup(name: string, items: SwitchItem[], variant?: \"clear\" | \"card\" | \"sunk\", value?: $binding<Record<string, boolean>>)",+ "description": "Group of switch toggles"+ },+ "SwitchItem": {+ "signature": "SwitchItem(label?: string, description?: string, name: string, defaultChecked?: boolean)",+ "description": "Individual switch toggle"+ },+ "Button": {+ "signature": "Button(label: string, action?: ActionExpression, variant?: \"primary\" | \"secondary\" | \"tertiary\", type?: \"normal\" | \"destructive\", size?: \"extra-small\" | \"small\" | \"medium\" | \"large\")",+ "description": "Clickable button"+ },+ "Buttons": {+ "signature": "Buttons(buttons: Button[], direction?: \"row\" | \"column\")",+ "description": "Group of Button components. direction: \"row\" (default) | \"column\"."+ },+ "ListBlock": {+ "signature": "ListBlock(items: ListItem[], variant?: \"number\" | \"image\")",+ "description": "A list of items with number or image indicators. Each item can optionally have an action."+ },+ "ListItem": {+ "signature": "ListItem(title: string, subtitle?: string, image?: {src: string, alt: string}, actionLabel?: string, action?: ActionExpression)",+ "description": "Item in a ListBlock — displays a title with an optional subtitle and image. When action is provided, the item becomes clickable."+ },+ "FollowUpBlock": {+ "signature": "FollowUpBlock(items: FollowUpItem[])",+ "description": "List of clickable follow-up suggestions placed at the end of a response"+ },+ "FollowUpItem": {+ "signature": "FollowUpItem(text: string)",+ "description": "Clickable follow-up suggestion — when clicked, sends text as user message"+ },+ "SectionBlock": {+ "signature": "SectionBlock(sections: SectionItem[], isFoldable?: boolean)",+ "description": "Collapsible accordion sections. Auto-opens sections as they stream in. Use SectionItem for each section."+ },+ "SectionItem": {+ "signature": "SectionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | ListBlock | FollowUpBlock)[])",+ "description": "Section with a label and collapsible content — used inside SectionBlock"+ },+ "Tabs": {+ "signature": "Tabs(items: TabItem[])",+ "description": "Tabbed container"+ },+ "TabItem": {+ "signature": "TabItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[])",+ "description": "value is unique id, trigger is tab label, content is array of components"+ },+ "Accordion": {+ "signature": "Accordion(items: AccordionItem[])",+ "description": "Collapsible sections"+ },+ "AccordionItem": {+ "signature": "AccordionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[])",+ "description": "value is unique id, trigger is section title"+ },+ "Steps": {+ "signature": "Steps(items: StepsItem[])",+ "description": "Step-by-step guide"+ },+ "StepsItem": {+ "signature": "StepsItem(title: string, details: string)",+ "description": "title and details text for one step"+ },+ "Carousel": {+ "signature": "Carousel(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[][], variant?: \"card\" | \"sunk\")",+ "description": "Horizontal scrollable carousel"+ },+ "TagBlock": {+ "signature": "TagBlock(tags: string[])",+ "description": "tags is an array of strings"+ },+ "Tag": {+ "signature": "Tag(text: string, icon?: string, size?: \"sm\" | \"md\" | \"lg\", variant?: \"neutral\" | \"info\" | \"success\" | \"warning\" | \"danger\")",+ "description": "Styled tag/badge with optional icon and variant"+ }+ },+ "componentGroups": [+ {+ "name": "Content",+ "components": [+ "CardHeader",+ "TextContent",+ "MarkDownRenderer",+ "Callout",+ "TextCallout",+ "Image",+ "ImageBlock",+ "ImageGallery",+ "CodeBlock",+ "Separator"+ ]+ },+ {+ "name": "Tables",+ "components": [+ "Table",+ "Col"+ ]+ },+ {+ "name": "Charts (2D)",+ "components": [+ "BarChart",+ "LineChart",+ "AreaChart",+ "RadarChart",+ "HorizontalBarChart",+ "Series"+ ]+ },+ {+ "name": "Charts (1D)",+ "components": [+ "PieChart",+ "RadialChart",+ "SingleStackedBarChart",+ "Slice"+ ]+ },+ {+ "name": "Charts (Scatter)",+ "components": [+ "ScatterChart",+ "ScatterSeries",+ "Point"+ ]+ },+ {+ "name": "Forms",+ "components": [+ "Form",+ "FormControl",+ "Label",+ "Input",+ "TextArea",+ "Select",+ "SelectItem",+ "DatePicker",+ "Slider",+ "CheckBoxGroup",+ "CheckBoxItem",+ "RadioGroup",+ "RadioItem",+ "SwitchGroup",+ "SwitchItem"+ ],+ "notes": [+ "- Define EACH FormControl as its own reference — do NOT inline all controls in one array.",+ "- NEVER nest Form inside Form.",+ "- Form requires explicit buttons. Always pass a Buttons(...) reference as the third Form argument.",+ "- rules is an optional object: { required: true, email: true, min: 8, maxLength: 100 }",+ "- The renderer shows error messages automatically — do NOT generate error text in the UI"+ ]+ },+ {+ "name": "Buttons",+ "components": [+ "Button",+ "Buttons"+ ]+ },+ {+ "name": "Lists & Follow-ups",+ "components": [+ "ListBlock",+ "ListItem",+ "FollowUpBlock",+ "FollowUpItem"+ ],+ "notes": [+ "- Use ListBlock with ListItem references for numbered, clickable lists.",+ "- Use FollowUpBlock with FollowUpItem references at the end of a response to suggest next actions.",+ "- Clicking a ListItem or FollowUpItem sends its text to the LLM as a user message.",+ "- Example: list = ListBlock([item1, item2]) item1 = ListItem(\"Option A\", \"Details about A\")"+ ]+ },+ {+ "name": "Sections",+ "components": [+ "SectionBlock",+ "SectionItem"+ ],+ "notes": [+ "- SectionBlock renders collapsible accordion sections that auto-open as they stream.",+ "- Each section needs a unique `value` id, a `trigger` label, and a `content` array.",+ "- Example: sections = SectionBlock([s1, s2]) s1 = SectionItem(\"intro\", \"Introduction\", [content1])",+ "- Set isFoldable=false to render sections as flat headers instead of accordion."+ ]+ },+ {+ "name": "Layout",+ "components": [+ "Tabs",+ "TabItem",+ "Accordion",+ "AccordionItem",+ "Steps",+ "StepsItem",+ "Carousel"+ ],+ "notes": [+ "- Use Tabs to present alternative views — each TabItem has a value id, trigger label, and content array.",+ "- Carousel takes an array of slides, where each slide is an array of content: carousel = Carousel([[t1, img1], [t2, img2]])",+ "- IMPORTANT: Every slide in a Carousel must have the same structure — same component types in the same order.",+ "- For image carousels use: [[title, image, description, tags], ...] — every slide must follow this exact pattern.",+ "- Use real, publicly accessible image URLs (e.g. https://picsum.photos/seed/KEYWORD/800/500). Never hallucinate image URLs."+ ]+ },+ {+ "name": "Data Display",+ "components": [+ "TagBlock",+ "Tag"+ ]+ }+ ],+ "schema": {+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "type": "object",+ "properties": {+ "Card": {+ "$ref": "#/$defs/Card"+ },+ "CardHeader": {+ "$ref": "#/$defs/CardHeader"+ },+ "TextContent": {+ "$ref": "#/$defs/TextContent"+ },+ "MarkDownRenderer": {+ "$ref": "#/$defs/MarkDownRenderer"+ },+ "Callout": {+ "$ref": "#/$defs/Callout"+ },+ "TextCallout": {+ "$ref": "#/$defs/TextCallout"+ },+ "Image": {+ "$ref": "#/$defs/Image"+ },+ "ImageBlock": {+ "$ref": "#/$defs/ImageBlock"+ },+ "ImageGallery": {+ "$ref": "#/$defs/ImageGallery"+ },+ "CodeBlock": {+ "$ref": "#/$defs/CodeBlock"+ },+ "Separator": {+ "$ref": "#/$defs/Separator"+ },+ "Table": {+ "$ref": "#/$defs/Table"+ },+ "Col": {+ "$ref": "#/$defs/Col"+ },+ "BarChart": {+ "$ref": "#/$defs/BarChart"+ },+ "LineChart": {+ "$ref": "#/$defs/LineChart"+ },+ "AreaChart": {+ "$ref": "#/$defs/AreaChart"+ },+ "RadarChart": {+ "$ref": "#/$defs/RadarChart"+ },+ "HorizontalBarChart": {+ "$ref": "#/$defs/HorizontalBarChart"+ },+ "Series": {+ "$ref": "#/$defs/Series"+ },+ "PieChart": {+ "$ref": "#/$defs/PieChart"+ },+ "RadialChart": {+ "$ref": "#/$defs/RadialChart"+ },+ "SingleStackedBarChart": {+ "$ref": "#/$defs/SingleStackedBarChart"+ },+ "Slice": {+ "$ref": "#/$defs/Slice"+ },+ "ScatterChart": {+ "$ref": "#/$defs/ScatterChart"+ },+ "ScatterSeries": {+ "$ref": "#/$defs/ScatterSeries"+ },+ "Point": {+ "$ref": "#/$defs/Point"+ },+ "Form": {+ "$ref": "#/$defs/Form"+ },+ "FormControl": {+ "$ref": "#/$defs/FormControl"+ },+ "Label": {+ "$ref": "#/$defs/Label"+ },+ "Input": {+ "$ref": "#/$defs/Input"+ },+ "TextArea": {+ "$ref": "#/$defs/TextArea"+ },+ "Select": {+ "$ref": "#/$defs/Select"+ },+ "SelectItem": {+ "$ref": "#/$defs/SelectItem"+ },+ "DatePicker": {+ "$ref": "#/$defs/DatePicker"+ },+ "Slider": {+ "$ref": "#/$defs/Slider"+ },+ "CheckBoxGroup": {+ "$ref": "#/$defs/CheckBoxGroup"+ },+ "CheckBoxItem": {+ "$ref": "#/$defs/CheckBoxItem"+ },+ "RadioGroup": {+ "$ref": "#/$defs/RadioGroup"+ },+ "RadioItem": {+ "$ref": "#/$defs/RadioItem"+ },+ "SwitchGroup": {+ "$ref": "#/$defs/SwitchGroup"+ },+ "SwitchItem": {+ "$ref": "#/$defs/SwitchItem"+ },+ "Button": {+ "$ref": "#/$defs/Button"+ },+ "Buttons": {+ "$ref": "#/$defs/Buttons"+ },+ "ListBlock": {+ "$ref": "#/$defs/ListBlock"+ },+ "ListItem": {+ "$ref": "#/$defs/ListItem"+ },+ "FollowUpBlock": {+ "$ref": "#/$defs/FollowUpBlock"+ },+ "FollowUpItem": {+ "$ref": "#/$defs/FollowUpItem"+ },+ "SectionBlock": {+ "$ref": "#/$defs/SectionBlock"+ },+ "SectionItem": {+ "$ref": "#/$defs/SectionItem"+ },+ "Tabs": {+ "$ref": "#/$defs/Tabs"+ },+ "TabItem": {+ "$ref": "#/$defs/TabItem"+ },+ "Accordion": {+ "$ref": "#/$defs/Accordion"+ },+ "AccordionItem": {+ "$ref": "#/$defs/AccordionItem"+ },+ "Steps": {+ "$ref": "#/$defs/Steps"+ },+ "StepsItem": {+ "$ref": "#/$defs/StepsItem"+ },+ "Carousel": {+ "$ref": "#/$defs/Carousel"+ },+ "TagBlock": {+ "$ref": "#/$defs/TagBlock"+ },+ "Tag": {+ "$ref": "#/$defs/Tag"+ }+ },+ "required": [+ "Card",+ "CardHeader",+ "TextContent",+ "MarkDownRenderer",+ "Callout",+ "TextCallout",+ "Image",+ "ImageBlock",+ "ImageGallery",+ "CodeBlock",+ "Separator",+ "Table",+ "Col",+ "BarChart",+ "LineChart",+ "AreaChart",+ "RadarChart",+ "HorizontalBarChart",+ "Series",+ "PieChart",+ "RadialChart",+ "SingleStackedBarChart",+ "Slice",+ "ScatterChart",+ "ScatterSeries",+ "Point",+ "Form",+ "FormControl",+ "Label",+ "Input",+ "TextArea",+ "Select",+ "SelectItem",+ "DatePicker",+ "Slider",+ "CheckBoxGroup",+ "CheckBoxItem",+ "RadioGroup",+ "RadioItem",+ "SwitchGroup",+ "SwitchItem",+ "Button",+ "Buttons",+ "ListBlock",+ "ListItem",+ "FollowUpBlock",+ "FollowUpItem",+ "SectionBlock",+ "SectionItem",+ "Tabs",+ "TabItem",+ "Accordion",+ "AccordionItem",+ "Steps",+ "StepsItem",+ "Carousel",+ "TagBlock",+ "Tag"+ ],+ "additionalProperties": false,+ "$defs": {+ "Card": {+ "type": "object",+ "properties": {+ "children": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/TextContent"+ },+ {+ "$ref": "#/$defs/MarkDownRenderer"+ },+ {+ "$ref": "#/$defs/CardHeader"+ },+ {+ "$ref": "#/$defs/Callout"+ },+ {+ "$ref": "#/$defs/TextCallout"+ },+ {+ "$ref": "#/$defs/CodeBlock"+ },+ {+ "$ref": "#/$defs/Image"+ },+ {+ "$ref": "#/$defs/ImageBlock"+ },+ {+ "$ref": "#/$defs/ImageGallery"+ },+ {+ "$ref": "#/$defs/Separator"+ },+ {+ "$ref": "#/$defs/HorizontalBarChart"+ },+ {+ "$ref": "#/$defs/RadarChart"+ },+ {+ "$ref": "#/$defs/PieChart"+ },+ {+ "$ref": "#/$defs/RadialChart"+ },+ {+ "$ref": "#/$defs/SingleStackedBarChart"+ },+ {+ "$ref": "#/$defs/ScatterChart"+ },+ {+ "$ref": "#/$defs/AreaChart"+ },+ {+ "$ref": "#/$defs/BarChart"+ },+ {+ "$ref": "#/$defs/LineChart"+ },+ {+ "$ref": "#/$defs/Table"+ },+ {+ "$ref": "#/$defs/TagBlock"+ },+ {+ "$ref": "#/$defs/Form"+ },+ {+ "$ref": "#/$defs/Buttons"+ },+ {+ "$ref": "#/$defs/Steps"+ },+ {+ "$ref": "#/$defs/ListBlock"+ },+ {+ "$ref": "#/$defs/FollowUpBlock"+ },+ {+ "$ref": "#/$defs/SectionBlock"+ },+ {+ "$ref": "#/$defs/Tabs"+ },+ {+ "$ref": "#/$defs/Carousel"+ }+ ]+ }+ }+ },+ "required": [+ "children"+ ],+ "additionalProperties": false,+ "description": "Vertical container for all content in a chat response. Children stack top to bottom automatically."+ },+ "TextContent": {+ "type": "object",+ "properties": {+ "text": {+ "type": "string"+ },+ "size": {+ "type": "string",+ "enum": [+ "small",+ "default",+ "large",+ "small-heavy",+ "large-heavy"+ ]+ }+ },+ "required": [+ "text"+ ],+ "additionalProperties": false,+ "description": "Text block. Supports markdown. Optional size: \"small\" | \"default\" | \"large\" | \"small-heavy\" | \"large-heavy\"."+ },+ "MarkDownRenderer": {+ "type": "object",+ "properties": {+ "textMarkdown": {+ "type": "string"+ },+ "variant": {+ "type": "string",+ "enum": [+ "clear",+ "card",+ "sunk"+ ]+ }+ },+ "required": [+ "textMarkdown"+ ],+ "additionalProperties": false,+ "description": "Renders markdown text with optional container variant"+ },+ "CardHeader": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string"+ },+ "subtitle": {+ "type": "string"+ }+ },+ "additionalProperties": false,+ "description": "Header with optional title and subtitle"+ },+ "Callout": {+ "type": "object",+ "properties": {+ "variant": {+ "type": "string",+ "enum": [+ "info",+ "warning",+ "error",+ "success",+ "neutral"+ ]+ },+ "title": {+ "type": "string"+ },+ "description": {+ "type": "string"+ },+ "visible": {+ "type": "boolean"+ }+ },+ "required": [+ "variant",+ "title",+ "description"+ ],+ "additionalProperties": false,+ "description": "Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false."+ },+ "TextCallout": {+ "type": "object",+ "properties": {+ "variant": {+ "type": "string",+ "enum": [+ "neutral",+ "info",+ "warning",+ "success",+ "danger"+ ]+ },+ "title": {+ "type": "string"+ },+ "description": {+ "type": "string"+ }+ },+ "additionalProperties": false,+ "description": "Text callout with variant, title, and description"+ },+ "CodeBlock": {+ "type": "object",+ "properties": {+ "language": {+ "type": "string"+ },+ "codeString": {+ "type": "string"+ }+ },+ "required": [+ "language",+ "codeString"+ ],+ "additionalProperties": false,+ "description": "Syntax-highlighted code block"+ },+ "Image": {+ "type": "object",+ "properties": {+ "alt": {+ "type": "string"+ },+ "src": {+ "type": "string"+ }+ },+ "required": [+ "alt"+ ],+ "additionalProperties": false,+ "description": "Image with alt text and optional URL"+ },+ "ImageBlock": {+ "type": "object",+ "properties": {+ "src": {+ "type": "string"+ },+ "alt": {+ "type": "string"+ }+ },+ "required": [+ "src"+ ],+ "additionalProperties": false,+ "description": "Image block with loading state"+ },+ "ImageGallery": {+ "type": "object",+ "properties": {+ "images": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "src": {+ "type": "string"+ },+ "alt": {+ "type": "string"+ },+ "details": {+ "type": "string"+ }+ },+ "required": [+ "src"+ ],+ "additionalProperties": false+ }+ }+ },+ "required": [+ "images"+ ],+ "additionalProperties": false,+ "description": "Gallery grid of images with modal preview"+ },+ "Separator": {+ "type": "object",+ "properties": {+ "orientation": {+ "type": "string",+ "enum": [+ "horizontal",+ "vertical"+ ]+ },+ "decorative": {+ "type": "boolean"+ }+ },+ "additionalProperties": false,+ "description": "Visual divider between content sections"+ },+ "HorizontalBarChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "series": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Series"+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "grouped",+ "stacked"+ ]+ },+ "xLabel": {+ "type": "string"+ },+ "yLabel": {+ "type": "string"+ }+ },+ "required": [+ "labels",+ "series"+ ],+ "additionalProperties": false,+ "description": "Horizontal bars; prefer when category labels are long or for ranked lists"+ },+ "Series": {+ "type": "object",+ "properties": {+ "category": {+ "type": "string"+ },+ "values": {+ "type": "array",+ "items": {+ "type": "number"+ }+ }+ },+ "required": [+ "category",+ "values"+ ],+ "additionalProperties": false,+ "description": "One data series"+ },+ "RadarChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "series": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Series"+ }+ }+ },+ "required": [+ "labels",+ "series"+ ],+ "additionalProperties": false,+ "description": "Spider/web chart; use for comparing multiple variables across one or more entities"+ },+ "PieChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "values": {+ "type": "array",+ "items": {+ "type": "number"+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "pie",+ "donut"+ ]+ },+ "appearance": {+ "type": "string",+ "enum": [+ "circular",+ "semiCircular"+ ]+ }+ },+ "required": [+ "labels",+ "values"+ ],+ "additionalProperties": false,+ "description": "Circular slices; use plucked arrays: PieChart(data.categories, data.values)"+ },+ "RadialChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "values": {+ "type": "array",+ "items": {+ "type": "number"+ }+ }+ },+ "required": [+ "labels",+ "values"+ ],+ "additionalProperties": false,+ "description": "Radial bars; use plucked arrays: RadialChart(data.categories, data.values)"+ },+ "SingleStackedBarChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "values": {+ "type": "array",+ "items": {+ "type": "number"+ }+ }+ },+ "required": [+ "labels",+ "values"+ ],+ "additionalProperties": false,+ "description": "Single horizontal stacked bar; use plucked arrays: SingleStackedBarChart(data.categories, data.values)"+ },+ "ScatterChart": {+ "type": "object",+ "properties": {+ "datasets": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/ScatterSeries"+ }+ },+ "xLabel": {+ "type": "string"+ },+ "yLabel": {+ "type": "string"+ }+ },+ "required": [+ "datasets"+ ],+ "additionalProperties": false,+ "description": "X/Y scatter plot; use for correlations, distributions, and clustering"+ },+ "ScatterSeries": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "points": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Point"+ }+ }+ },+ "required": [+ "name",+ "points"+ ],+ "additionalProperties": false,+ "description": "Named dataset"+ },+ "Point": {+ "type": "object",+ "properties": {+ "x": {+ "type": "number"+ },+ "y": {+ "type": "number"+ },+ "z": {+ "type": "number"+ }+ },+ "required": [+ "x",+ "y"+ ],+ "additionalProperties": false,+ "description": "Data point with numeric coordinates"+ },+ "AreaChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "series": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Series"+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "linear",+ "natural",+ "step"+ ]+ },+ "xLabel": {+ "type": "string"+ },+ "yLabel": {+ "type": "string"+ }+ },+ "required": [+ "labels",+ "series"+ ],+ "additionalProperties": false,+ "description": "Filled area under lines; use for cumulative totals or volume trends over time"+ },+ "BarChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "series": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Series"+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "grouped",+ "stacked"+ ]+ },+ "xLabel": {+ "type": "string"+ },+ "yLabel": {+ "type": "string"+ }+ },+ "required": [+ "labels",+ "series"+ ],+ "additionalProperties": false,+ "description": "Vertical bars; use for comparing values across categories with one or more series"+ },+ "LineChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "series": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Series"+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "linear",+ "natural",+ "step"+ ]+ },+ "xLabel": {+ "type": "string"+ },+ "yLabel": {+ "type": "string"+ }+ },+ "required": [+ "labels",+ "series"+ ],+ "additionalProperties": false,+ "description": "Lines over categories; use for trends and continuous data over time"+ },+ "Table": {+ "type": "object",+ "properties": {+ "columns": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Col"+ }+ }+ },+ "required": [+ "columns"+ ],+ "additionalProperties": false,+ "description": "Data table — column-oriented. Each Col holds its own data array."+ },+ "Col": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "data": {},+ "type": {+ "type": "string",+ "enum": [+ "string",+ "number",+ "action"+ ]+ }+ },+ "required": [+ "label",+ "data"+ ],+ "additionalProperties": false,+ "description": "Column definition — holds label + data array"+ },+ "TagBlock": {+ "type": "object",+ "properties": {+ "tags": {+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ },+ "required": [+ "tags"+ ],+ "additionalProperties": false,+ "description": "tags is an array of strings"+ },+ "Form": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "buttons": {+ "$ref": "#/$defs/Buttons"+ },+ "fields": {+ "default": [],+ "type": "array",+ "items": {+ "$ref": "#/$defs/FormControl"+ }+ }+ },+ "required": [+ "name",+ "buttons",+ "fields"+ ],+ "additionalProperties": false,+ "description": "Form container with fields and explicit action buttons"+ },+ "Buttons": {+ "type": "object",+ "properties": {+ "buttons": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Button"+ }+ },+ "direction": {+ "type": "string",+ "enum": [+ "row",+ "column"+ ]+ }+ },+ "required": [+ "buttons"+ ],+ "additionalProperties": false,+ "description": "Group of Button components. direction: \"row\" (default) | \"column\"."+ },+ "Button": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "action": {},+ "variant": {+ "type": "string",+ "enum": [+ "primary",+ "secondary",+ "tertiary"+ ]+ },+ "type": {+ "type": "string",+ "enum": [+ "normal",+ "destructive"+ ]+ },+ "size": {+ "type": "string",+ "enum": [+ "extra-small",+ "small",+ "medium",+ "large"+ ]+ }+ },+ "required": [+ "label"+ ],+ "additionalProperties": false,+ "description": "Clickable button"+ },+ "FormControl": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "input": {+ "anyOf": [+ {+ "$ref": "#/$defs/Input"+ },+ {+ "$ref": "#/$defs/TextArea"+ },+ {+ "$ref": "#/$defs/Select"+ },+ {+ "$ref": "#/$defs/DatePicker"+ },+ {+ "$ref": "#/$defs/Slider"+ },+ {+ "$ref": "#/$defs/CheckBoxGroup"+ },+ {+ "$ref": "#/$defs/RadioGroup"+ }+ ]+ },+ "hint": {+ "type": "string"+ }+ },+ "required": [+ "label",+ "input"+ ],+ "additionalProperties": false,+ "description": "Field with label, input component, and optional hint text"+ },+ "Input": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "placeholder": {+ "type": "string"+ },+ "type": {+ "type": "string",+ "enum": [+ "text",+ "email",+ "password",+ "number",+ "url"+ ]+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "value": {+ "type": "string"+ }+ },+ "required": [+ "name"+ ],+ "additionalProperties": false+ },+ "TextArea": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "placeholder": {+ "type": "string"+ },+ "rows": {+ "type": "number"+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "value": {+ "type": "string"+ }+ },+ "required": [+ "name"+ ],+ "additionalProperties": false+ },+ "Select": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/SelectItem"+ }+ },+ "placeholder": {+ "type": "string"+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "value": {+ "type": "string"+ },+ "size": {+ "type": "string",+ "enum": [+ "small",+ "medium",+ "large"+ ]+ }+ },+ "required": [+ "name",+ "items"+ ],+ "additionalProperties": false+ },+ "SelectItem": {+ "type": "object",+ "properties": {+ "value": {+ "type": "string"+ },+ "label": {+ "type": "string"+ }+ },+ "required": [+ "value",+ "label"+ ],+ "additionalProperties": false,+ "description": "Option for Select"+ },+ "DatePicker": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "mode": {+ "type": "string",+ "enum": [+ "single",+ "range"+ ]+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "value": {}+ },+ "required": [+ "name"+ ],+ "additionalProperties": false+ },+ "Slider": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "variant": {+ "type": "string",+ "enum": [+ "continuous",+ "discrete"+ ]+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "step": {+ "type": "number"+ },+ "defaultValue": {+ "type": "array",+ "items": {+ "type": "number"+ }+ },+ "label": {+ "type": "string"+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "value": {+ "type": "array",+ "items": {+ "type": "number"+ }+ }+ },+ "required": [+ "name",+ "variant",+ "min",+ "max"+ ],+ "additionalProperties": false,+ "description": "Numeric slider input; supports continuous and discrete (stepped) variants"+ },+ "CheckBoxGroup": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/CheckBoxItem"+ }+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "value": {+ "type": "object",+ "propertyNames": {+ "type": "string"+ },+ "additionalProperties": {+ "type": "boolean"+ }+ }+ },+ "required": [+ "name",+ "items"+ ],+ "additionalProperties": false+ },+ "CheckBoxItem": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "description": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "defaultChecked": {+ "type": "boolean"+ }+ },+ "required": [+ "label",+ "description",+ "name"+ ],+ "additionalProperties": false+ },+ "RadioGroup": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/RadioItem"+ }+ },+ "defaultValue": {+ "type": "string"+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "value": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "items"+ ],+ "additionalProperties": false+ },+ "RadioItem": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "description": {+ "type": "string"+ },+ "value": {+ "type": "string"+ }+ },+ "required": [+ "label",+ "description",+ "value"+ ],+ "additionalProperties": false+ },+ "Steps": {+ "type": "object",+ "properties": {+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/StepsItem"+ }+ }+ },+ "required": [+ "items"+ ],+ "additionalProperties": false,+ "description": "Step-by-step guide"+ },+ "StepsItem": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string"+ },+ "details": {+ "type": "string"+ }+ },+ "required": [+ "title",+ "details"+ ],+ "additionalProperties": false,+ "description": "title and details text for one step"+ },+ "ListBlock": {+ "type": "object",+ "properties": {+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/ListItem"+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "number",+ "image"+ ]+ }+ },+ "required": [+ "items"+ ],+ "additionalProperties": false,+ "description": "A list of items with number or image indicators. Each item can optionally have an action."+ },+ "ListItem": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string"+ },+ "subtitle": {+ "type": "string"+ },+ "image": {+ "type": "object",+ "properties": {+ "src": {+ "type": "string"+ },+ "alt": {+ "type": "string"+ }+ },+ "required": [+ "src",+ "alt"+ ],+ "additionalProperties": false+ },+ "actionLabel": {+ "type": "string"+ },+ "action": {}+ },+ "required": [+ "title"+ ],+ "additionalProperties": false,+ "description": "Item in a ListBlock — displays a title with an optional subtitle and image. When action is provided, the item becomes clickable."+ },+ "FollowUpBlock": {+ "type": "object",+ "properties": {+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/FollowUpItem"+ }+ }+ },+ "required": [+ "items"+ ],+ "additionalProperties": false,+ "description": "List of clickable follow-up suggestions placed at the end of a response"+ },+ "FollowUpItem": {+ "type": "object",+ "properties": {+ "text": {+ "type": "string"+ }+ },+ "required": [+ "text"+ ],+ "additionalProperties": false,+ "description": "Clickable follow-up suggestion — when clicked, sends text as user message"+ },+ "SectionBlock": {+ "type": "object",+ "properties": {+ "sections": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/SectionItem"+ }+ },+ "isFoldable": {+ "type": "boolean"+ }+ },+ "required": [+ "sections"+ ],+ "additionalProperties": false,+ "description": "Collapsible accordion sections. Auto-opens sections as they stream in. Use SectionItem for each section."+ },+ "SectionItem": {+ "type": "object",+ "properties": {+ "value": {+ "type": "string"+ },+ "trigger": {+ "type": "string"+ },+ "content": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/TextContent"+ },+ {+ "$ref": "#/$defs/MarkDownRenderer"+ },+ {+ "$ref": "#/$defs/CardHeader"+ },+ {+ "$ref": "#/$defs/Callout"+ },+ {+ "$ref": "#/$defs/TextCallout"+ },+ {+ "$ref": "#/$defs/CodeBlock"+ },+ {+ "$ref": "#/$defs/Image"+ },+ {+ "$ref": "#/$defs/ImageBlock"+ },+ {+ "$ref": "#/$defs/ImageGallery"+ },+ {+ "$ref": "#/$defs/Separator"+ },+ {+ "$ref": "#/$defs/HorizontalBarChart"+ },+ {+ "$ref": "#/$defs/RadarChart"+ },+ {+ "$ref": "#/$defs/PieChart"+ },+ {+ "$ref": "#/$defs/RadialChart"+ },+ {+ "$ref": "#/$defs/SingleStackedBarChart"+ },+ {+ "$ref": "#/$defs/ScatterChart"+ },+ {+ "$ref": "#/$defs/AreaChart"+ },+ {+ "$ref": "#/$defs/BarChart"+ },+ {+ "$ref": "#/$defs/LineChart"+ },+ {+ "$ref": "#/$defs/Table"+ },+ {+ "$ref": "#/$defs/TagBlock"+ },+ {+ "$ref": "#/$defs/Form"+ },+ {+ "$ref": "#/$defs/Buttons"+ },+ {+ "$ref": "#/$defs/Steps"+ },+ {+ "$ref": "#/$defs/ListBlock"+ },+ {+ "$ref": "#/$defs/FollowUpBlock"+ }+ ]+ }+ }+ },+ "required": [+ "value",+ "trigger",+ "content"+ ],+ "additionalProperties": false,+ "description": "Section with a label and collapsible content — used inside SectionBlock"+ },+ "Tabs": {+ "type": "object",+ "properties": {+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/TabItem"+ }+ }+ },+ "required": [+ "items"+ ],+ "additionalProperties": false,+ "description": "Tabbed container"+ },+ "TabItem": {+ "type": "object",+ "properties": {+ "value": {+ "type": "string"+ },+ "trigger": {+ "type": "string"+ },+ "content": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/TextContent"+ },+ {+ "$ref": "#/$defs/MarkDownRenderer"+ },+ {+ "$ref": "#/$defs/CardHeader"+ },+ {+ "$ref": "#/$defs/Callout"+ },+ {+ "$ref": "#/$defs/TextCallout"+ },+ {+ "$ref": "#/$defs/CodeBlock"+ },+ {+ "$ref": "#/$defs/Image"+ },+ {+ "$ref": "#/$defs/ImageBlock"+ },+ {+ "$ref": "#/$defs/ImageGallery"+ },+ {+ "$ref": "#/$defs/Separator"+ },+ {+ "$ref": "#/$defs/HorizontalBarChart"+ },+ {+ "$ref": "#/$defs/RadarChart"+ },+ {+ "$ref": "#/$defs/PieChart"+ },+ {+ "$ref": "#/$defs/RadialChart"+ },+ {+ "$ref": "#/$defs/SingleStackedBarChart"+ },+ {+ "$ref": "#/$defs/ScatterChart"+ },+ {+ "$ref": "#/$defs/AreaChart"+ },+ {+ "$ref": "#/$defs/BarChart"+ },+ {+ "$ref": "#/$defs/LineChart"+ },+ {+ "$ref": "#/$defs/Table"+ },+ {+ "$ref": "#/$defs/TagBlock"+ },+ {+ "$ref": "#/$defs/Form"+ },+ {+ "$ref": "#/$defs/Buttons"+ },+ {+ "$ref": "#/$defs/Steps"+ }+ ]+ }+ }+ },+ "required": [+ "value",+ "trigger",+ "content"+ ],+ "additionalProperties": false,+ "description": "value is unique id, trigger is tab label, content is array of components"+ },+ "Carousel": {+ "type": "object",+ "properties": {+ "children": {+ "type": "array",+ "items": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/TextContent"+ },+ {+ "$ref": "#/$defs/MarkDownRenderer"+ },+ {+ "$ref": "#/$defs/CardHeader"+ },+ {+ "$ref": "#/$defs/Callout"+ },+ {+ "$ref": "#/$defs/TextCallout"+ },+ {+ "$ref": "#/$defs/CodeBlock"+ },+ {+ "$ref": "#/$defs/Image"+ },+ {+ "$ref": "#/$defs/ImageBlock"+ },+ {+ "$ref": "#/$defs/ImageGallery"+ },+ {+ "$ref": "#/$defs/Separator"+ },+ {+ "$ref": "#/$defs/HorizontalBarChart"+ },+ {+ "$ref": "#/$defs/RadarChart"+ },+ {+ "$ref": "#/$defs/PieChart"+ },+ {+ "$ref": "#/$defs/RadialChart"+ },+ {+ "$ref": "#/$defs/SingleStackedBarChart"+ },+ {+ "$ref": "#/$defs/ScatterChart"+ },+ {+ "$ref": "#/$defs/AreaChart"+ },+ {+ "$ref": "#/$defs/BarChart"+ },+ {+ "$ref": "#/$defs/LineChart"+ },+ {+ "$ref": "#/$defs/Table"+ },+ {+ "$ref": "#/$defs/TagBlock"+ },+ {+ "$ref": "#/$defs/Form"+ },+ {+ "$ref": "#/$defs/Buttons"+ },+ {+ "$ref": "#/$defs/Steps"+ }+ ]+ }+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "card",+ "sunk"+ ]+ }+ },+ "required": [+ "children"+ ],+ "additionalProperties": false,+ "description": "Horizontal scrollable carousel"+ },+ "Slice": {+ "type": "object",+ "properties": {+ "category": {+ "type": "string"+ },+ "value": {+ "type": "number"+ }+ },+ "required": [+ "category",+ "value"+ ],+ "additionalProperties": false,+ "description": "One slice with label and numeric value"+ },+ "Label": {+ "type": "object",+ "properties": {+ "text": {+ "type": "string"+ }+ },+ "required": [+ "text"+ ],+ "additionalProperties": false,+ "description": "Text label"+ },+ "SwitchGroup": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/SwitchItem"+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "clear",+ "card",+ "sunk"+ ]+ },+ "value": {+ "type": "object",+ "propertyNames": {+ "type": "string"+ },+ "additionalProperties": {+ "type": "boolean"+ }+ }+ },+ "required": [+ "name",+ "items"+ ],+ "additionalProperties": false,+ "description": "Group of switch toggles"+ },+ "SwitchItem": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "description": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "defaultChecked": {+ "type": "boolean"+ }+ },+ "required": [+ "name"+ ],+ "additionalProperties": false,+ "description": "Individual switch toggle"+ },+ "Accordion": {+ "type": "object",+ "properties": {+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/AccordionItem"+ }+ }+ },+ "required": [+ "items"+ ],+ "additionalProperties": false,+ "description": "Collapsible sections"+ },+ "AccordionItem": {+ "type": "object",+ "properties": {+ "value": {+ "type": "string"+ },+ "trigger": {+ "type": "string"+ },+ "content": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/TextContent"+ },+ {+ "$ref": "#/$defs/MarkDownRenderer"+ },+ {+ "$ref": "#/$defs/CardHeader"+ },+ {+ "$ref": "#/$defs/Callout"+ },+ {+ "$ref": "#/$defs/TextCallout"+ },+ {+ "$ref": "#/$defs/CodeBlock"+ },+ {+ "$ref": "#/$defs/Image"+ },+ {+ "$ref": "#/$defs/ImageBlock"+ },+ {+ "$ref": "#/$defs/ImageGallery"+ },+ {+ "$ref": "#/$defs/Separator"+ },+ {+ "$ref": "#/$defs/HorizontalBarChart"+ },+ {+ "$ref": "#/$defs/RadarChart"+ },+ {+ "$ref": "#/$defs/PieChart"+ },+ {+ "$ref": "#/$defs/RadialChart"+ },+ {+ "$ref": "#/$defs/SingleStackedBarChart"+ },+ {+ "$ref": "#/$defs/ScatterChart"+ },+ {+ "$ref": "#/$defs/AreaChart"+ },+ {+ "$ref": "#/$defs/BarChart"+ },+ {+ "$ref": "#/$defs/LineChart"+ },+ {+ "$ref": "#/$defs/Table"+ },+ {+ "$ref": "#/$defs/TagBlock"+ },+ {+ "$ref": "#/$defs/Form"+ },+ {+ "$ref": "#/$defs/Buttons"+ },+ {+ "$ref": "#/$defs/Steps"+ }+ ]+ }+ }+ },+ "required": [+ "value",+ "trigger",+ "content"+ ],+ "additionalProperties": false,+ "description": "value is unique id, trigger is section title"+ },+ "Tag": {+ "type": "object",+ "properties": {+ "text": {+ "type": "string"+ },+ "icon": {+ "type": "string"+ },+ "size": {+ "type": "string",+ "enum": [+ "sm",+ "md",+ "lg"+ ]+ },+ "variant": {+ "type": "string",+ "enum": [+ "neutral",+ "info",+ "success",+ "warning",+ "danger"+ ]+ }+ },+ "required": [+ "text"+ ],+ "additionalProperties": false,+ "description": "Styled tag/badge with optional icon and variant"+ }+ }+ }+}diff --git a/docs/generated/chat-system-prompt.txt b/docs/generated/chat-system-prompt.txtindex cbd28d059..dfca18958 100644--- a/docs/generated/chat-system-prompt.txt+++ b/docs/generated/chat-system-prompt.txt@@ -7,7 +7,7 @@ You are an AI assistant that responds using openui-lang, a declarative UI langua3. Expressions are: strings ("..."), numbers, booleans (true/false), null, arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)4. Use references for readability: define `name = ...` on one line, then use `name` later5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.-6. Arguments are POSITIONAL (order matters, not names). Write `Stack([children], "row", "l")` NOT `Stack([children], direction: "row", gap: "l")` — colon syntax is NOT supported and silently breaks+6. Arguments are POSITIONAL (order matters, not names). Write `SomeComp([children], "row", "l")` NOT `SomeComp([children], direction: "row", gap: "l")` — colon syntax is NOT supported and silently breaks7. Optional arguments can be omitted from the end- Strings use double quotes with backslash escaping@@ -201,7 +201,6 @@ msgField = FormControl("Message", TextArea("message", "Tell us more...", 4, { rebtns = Buttons([Button("Submit", Action([@ToAssistant("Submit")]), "primary")])## Important Rules-- When asked about data, generate realistic/plausible data- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)## Final Verification@@ -209,6 +208,7 @@ Before finishing, walk your output and verify:1. root = Card(...) is the FIRST line (for optimal streaming).2. Every referenced name is defined. Every defined name (other than root) is reachable from root.+- When asked about data, generate realistic/plausible data- Every response is a single Card(children) — children stack vertically automatically. No layout params are needed on Card.- Card is the only layout container. Do NOT use Stack. Use Tabs to switch between sections, Carousel for horizontal scroll.- Use FollowUpBlock at the END of a Card to suggest what the user can do or ask next.diff --git a/docs/generated/playground-component-spec.json b/docs/generated/playground-component-spec.jsonindex 08a82553d..4c0a02ca4 100644--- a/docs/generated/playground-component-spec.json+++ b/docs/generated/playground-component-spec.json@@ -1,2434 +1,1747 @@{- "root": "Stack",- "components": {+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "type": "object",+ "properties": {"Card": {- "signature": "Card(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | Tabs | Carousel | Stack)[], variant?: \"card\" | \"sunk\" | \"clear\", direction?: \"row\" | \"column\", gap?: \"none\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"2xl\", align?: \"start\" | \"center\" | \"end\" | \"stretch\" | \"baseline\", justify?: \"start\" | \"center\" | \"end\" | \"between\" | \"around\" | \"evenly\", wrap?: boolean)",- "description": "Styled container. variant: \"card\" (default, elevated) | \"sunk\" (recessed) | \"clear\" (transparent). Always full width. Accepts all Stack flex params (default: direction \"column\"). Cards flex to share space in row/wrap layouts."+ "$ref": "#/$defs/Card"},"CardHeader": {- "signature": "CardHeader(title?: string, subtitle?: string)",- "description": "Header with optional title and subtitle"+ "$ref": "#/$defs/CardHeader"},"TextContent": {- "signature": "TextContent(text: string, size?: \"small\" | \"default\" | \"large\" | \"small-heavy\" | \"large-heavy\")",- "description": "Text block. Supports markdown. Optional size: \"small\" | \"default\" | \"large\" | \"small-heavy\" | \"large-heavy\"."+ "$ref": "#/$defs/TextContent"},"MarkDownRenderer": {- "signature": "MarkDownRenderer(textMarkdown: string, variant?: \"clear\" | \"card\" | \"sunk\")",- "description": "Renders markdown text with optional container variant"+ "$ref": "#/$defs/MarkDownRenderer"},"Callout": {- "signature": "Callout(variant: \"info\" | \"warning\" | \"error\" | \"success\" | \"neutral\", title: string, description: string, visible?: $binding<boolean>)",- "description": "Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false."+ "$ref": "#/$defs/Callout"},"TextCallout": {- "signature": "TextCallout(variant?: \"neutral\" | \"info\" | \"warning\" | \"success\" | \"danger\", title?: string, description?: string)",- "description": "Text callout with variant, title, and description"+ "$ref": "#/$defs/TextCallout"},"Image": {- "signature": "Image(alt: string, src?: string)",- "description": "Image with alt text and optional URL"+ "$ref": "#/$defs/Image"},"ImageBlock": {- "signature": "ImageBlock(src: string, alt?: string)",- "description": "Image block with loading state"+ "$ref": "#/$defs/ImageBlock"},"ImageGallery": {- "signature": "ImageGallery(images: {src: string, alt?: string, details?: string}[])",- "description": "Gallery grid of images with modal preview"+ "$ref": "#/$defs/ImageGallery"},"CodeBlock": {- "signature": "CodeBlock(language: string, codeString: string)",- "description": "Syntax-highlighted code block"+ "$ref": "#/$defs/CodeBlock"},"Table": {- "signature": "Table(columns: Col[])",- "description": "Data table — column-oriented. Each Col holds its own data array."+ "$ref": "#/$defs/Table"},"Col": {- "signature": "Col(label: string, data: any, type?: \"string\" | \"number\" | \"action\")",- "description": "Column definition — holds label + data array"+ "$ref": "#/$defs/Col"},"BarChart": {- "signature": "BarChart(labels: string[], series: Series[], variant?: \"grouped\" | \"stacked\", xLabel?: string, yLabel?: string)",- "description": "Vertical bars; use for comparing values across categories with one or more series"+ "$ref": "#/$defs/BarChart"},"LineChart": {- "signature": "LineChart(labels: string[], series: Series[], variant?: \"linear\" | \"natural\" | \"step\", xLabel?: string, yLabel?: string)",- "description": "Lines over categories; use for trends and continuous data over time"+ "$ref": "#/$defs/LineChart"},"AreaChart": {- "signature": "AreaChart(labels: string[], series: Series[], variant?: \"linear\" | \"natural\" | \"step\", xLabel?: string, yLabel?: string)",- "description": "Filled area under lines; use for cumulative totals or volume trends over time"+ "$ref": "#/$defs/AreaChart"},"RadarChart": {- "signature": "RadarChart(labels: string[], series: Series[])",- "description": "Spider/web chart; use for comparing multiple variables across one or more entities"+ "$ref": "#/$defs/RadarChart"},"HorizontalBarChart": {- "signature": "HorizontalBarChart(labels: string[], series: Series[], variant?: \"grouped\" | \"stacked\", xLabel?: string, yLabel?: string)",- "description": "Horizontal bars; prefer when category labels are long or for ranked lists"+ "$ref": "#/$defs/HorizontalBarChart"},"Series": {- "signature": "Series(category: string, values: number[])",- "description": "One data series"+ "$ref": "#/$defs/Series"},"PieChart": {- "signature": "PieChart(labels: string[], values: number[], variant?: \"pie\" | \"donut\", appearance?: \"circular\" | \"semiCircular\")",- "description": "Circular slices; use plucked arrays: PieChart(data.categories, data.values)"+ "$ref": "#/$defs/PieChart"},"RadialChart": {- "signature": "RadialChart(labels: string[], values: number[])",- "description": "Radial bars; use plucked arrays: RadialChart(data.categories, data.values)"+ "$ref": "#/$defs/RadialChart"},"SingleStackedBarChart": {- "signature": "SingleStackedBarChart(labels: string[], values: number[])",- "description": "Single horizontal stacked bar; use plucked arrays: SingleStackedBarChart(data.categories, data.values)"+ "$ref": "#/$defs/SingleStackedBarChart"},"Slice": {- "signature": "Slice(category: string, value: number)",- "description": "One slice with label and numeric value"+ "$ref": "#/$defs/Slice"},"ScatterChart": {- "signature": "ScatterChart(datasets: ScatterSeries[], xLabel?: string, yLabel?: string)",- "description": "X/Y scatter plot; use for correlations, distributions, and clustering"+ "$ref": "#/$defs/ScatterChart"},"ScatterSeries": {- "signature": "ScatterSeries(name: string, points: Point[])",- "description": "Named dataset"+ "$ref": "#/$defs/ScatterSeries"},"Point": {- "signature": "Point(x: number, y: number, z?: number)",- "description": "Data point with numeric coordinates"+ "$ref": "#/$defs/Point"},"Form": {- "signature": "Form(name: string, buttons: Buttons, fields?: FormControl[])",- "description": "Form container with fields and explicit action buttons"+ "$ref": "#/$defs/Form"},"FormControl": {- "signature": "FormControl(label: string, input: Input | TextArea | Select | DatePicker | Slider | CheckBoxGroup | RadioGroup, hint?: string)",- "description": "Field with label, input component, and optional hint text"+ "$ref": "#/$defs/FormControl"},"Label": {- "signature": "Label(text: string)",- "description": "Text label"+ "$ref": "#/$defs/Label"},"Input": {- "signature": "Input(name: string, placeholder?: string, type?: \"text\" | \"email\" | \"password\" | \"number\" | \"url\", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)",- "description": ""+ "$ref": "#/$defs/Input"},"TextArea": {- "signature": "TextArea(name: string, placeholder?: string, rows?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)",- "description": ""+ "$ref": "#/$defs/TextArea"},"Select": {- "signature": "Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>, size?: \"small\" | \"medium\" | \"large\")",- "description": ""+ "$ref": "#/$defs/Select"},"SelectItem": {- "signature": "SelectItem(value: string, label: string)",- "description": "Option for Select"+ "$ref": "#/$defs/SelectItem"},"DatePicker": {- "signature": "DatePicker(name: string, mode?: \"single\" | \"range\", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<any>)",- "description": ""+ "$ref": "#/$defs/DatePicker"},"Slider": {- "signature": "Slider(name: string, variant: \"continuous\" | \"discrete\", min: number, max: number, step?: number, defaultValue?: number[], label?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<number[]>)",- "description": "Numeric slider input; supports continuous and discrete (stepped) variants"+ "$ref": "#/$defs/Slider"},"CheckBoxGroup": {- "signature": "CheckBoxGroup(name: string, items: CheckBoxItem[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<Record<string, boolean>>)",- "description": ""+ "$ref": "#/$defs/CheckBoxGroup"},"CheckBoxItem": {- "signature": "CheckBoxItem(label: string, description: string, name: string, defaultChecked?: boolean)",- "description": ""+ "$ref": "#/$defs/CheckBoxItem"},"RadioGroup": {- "signature": "RadioGroup(name: string, items: RadioItem[], defaultValue?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)",- "description": ""+ "$ref": "#/$defs/RadioGroup"},"RadioItem": {- "signature": "RadioItem(label: string, description: string, value: string)",- "description": ""+ "$ref": "#/$defs/RadioItem"},"SwitchGroup": {- "signature": "SwitchGroup(name: string, items: SwitchItem[], variant?: \"clear\" | \"card\" | \"sunk\", value?: $binding<Record<string, boolean>>)",- "description": "Group of switch toggles"+ "$ref": "#/$defs/SwitchGroup"},"SwitchItem": {- "signature": "SwitchItem(label?: string, description?: string, name: string, defaultChecked?: boolean)",- "description": "Individual switch toggle"+ "$ref": "#/$defs/SwitchItem"},"Button": {- "signature": "Button(label: string, action?: ActionExpression, variant?: \"primary\" | \"secondary\" | \"tertiary\", type?: \"normal\" | \"destructive\", size?: \"extra-small\" | \"small\" | \"medium\" | \"large\")",- "description": "Clickable button"+ "$ref": "#/$defs/Button"},"Buttons": {- "signature": "Buttons(buttons: Button[], direction?: \"row\" | \"column\")",- "description": "Group of Button components. direction: \"row\" (default) | \"column\"."+ "$ref": "#/$defs/Buttons"},"Stack": {- "signature": "Stack(children: any[], direction?: \"row\" | \"column\", gap?: \"none\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"2xl\", align?: \"start\" | \"center\" | \"end\" | \"stretch\" | \"baseline\", justify?: \"start\" | \"center\" | \"end\" | \"between\" | \"around\" | \"evenly\", wrap?: boolean)",- "description": "Flex container. direction: \"row\"|\"column\" (default \"column\"). gap: \"none\"|\"xs\"|\"s\"|\"m\"|\"l\"|\"xl\"|\"2xl\" (default \"m\"). align: \"start\"|\"center\"|\"end\"|\"stretch\"|\"baseline\". justify: \"start\"|\"center\"|\"end\"|\"between\"|\"around\"|\"evenly\"."+ "$ref": "#/$defs/Stack"},"Tabs": {- "signature": "Tabs(items: TabItem[])",- "description": "Tabbed container"+ "$ref": "#/$defs/Tabs"},"TabItem": {- "signature": "TabItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[])",- "description": "value is unique id, trigger is tab label, content is array of components"+ "$ref": "#/$defs/TabItem"},"Accordion": {- "signature": "Accordion(items: AccordionItem[])",- "description": "Collapsible sections"+ "$ref": "#/$defs/Accordion"},"AccordionItem": {- "signature": "AccordionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[])",- "description": "value is unique id, trigger is section title"+ "$ref": "#/$defs/AccordionItem"},"Steps": {- "signature": "Steps(items: StepsItem[])",- "description": "Step-by-step guide"+ "$ref": "#/$defs/Steps"},"StepsItem": {- "signature": "StepsItem(title: string, details: string)",- "description": "title and details text for one step"+ "$ref": "#/$defs/StepsItem"},"Carousel": {- "signature": "Carousel(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[][], variant?: \"card\" | \"sunk\")",- "description": "Horizontal scrollable carousel"+ "$ref": "#/$defs/Carousel"},"Separator": {- "signature": "Separator(orientation?: \"horizontal\" | \"vertical\", decorative?: boolean)",- "description": "Visual divider between content sections"+ "$ref": "#/$defs/Separator"},"TagBlock": {- "signature": "TagBlock(tags: string[])",- "description": "tags is an array of strings"+ "$ref": "#/$defs/TagBlock"},"Tag": {- "signature": "Tag(text: string, icon?: string, size?: \"sm\" | \"md\" | \"lg\", variant?: \"neutral\" | \"info\" | \"success\" | \"warning\" | \"danger\")",- "description": "Styled tag/badge with optional icon and variant"+ "$ref": "#/$defs/Tag"},"Modal": {- "signature": "Modal(title: string, open?: $binding<boolean>, children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[], size?: \"sm\" | \"md\" | \"lg\")",- "description": "Modal dialog. open is a reactive $boolean binding — set to true to open, X/Escape/backdrop auto-closes. Put Form with buttons inside children."+ "$ref": "#/$defs/Modal"}},- "componentGroups": [- {- "name": "Layout",- "components": [- "Stack",- "Tabs",- "TabItem",- "Accordion",- "AccordionItem",- "Steps",- "StepsItem",- "Carousel",- "Separator",- "Modal"- ],- "notes": [- "- For grid-like layouts, use Stack with direction \"row\" and wrap set to true.",- "- Prefer justify \"start\" (or omit justify) with wrap=true for stable columns instead of uneven gutters.",- "- Use nested Stacks when you need explicit rows/sections.",- "- Show/hide sections: $editId != \"\" ? Card([editForm]) : null",- "- Modal: Modal(\"Title\", $showModal, [content]) — $showModal is boolean, X/Escape auto-closes. Put Form with its own buttons inside children.",- "- Use Tabs for alternative views (chart types, data sections) — no $variable needed",- "- Shared filter across Tabs: same $days binding in Query args works across all TabItems"- ]- },- {- "name": "Content",- "components": [- "Card",- "CardHeader",- "TextContent",- "MarkDownRenderer",- "Callout",- "TextCallout",- "Image",- "ImageBlock",- "ImageGallery",- "CodeBlock"- ],- "notes": [- "- Use Cards to group related KPIs or sections. Stack with direction \"row\" for side-by-side layouts.",- "- Success toast: Callout(\"success\", \"Saved\", \"Done.\", $showSuccess) — use @Set($showSuccess, true) in save action, auto-dismisses after 3s. For errors: result.status == \"error\" ? Callout(\"error\", \"Failed\", result.error) : null",- "- KPI card: Card([TextContent(\"Label\", \"small\"), TextContent(\"\" + @Count(@Filter(data.rows, \"field\", \"==\", \"value\")), \"large-heavy\")])"- ]- },- {- "name": "Tables",- "components": [- "Table",- "Col"- ],- "notes": [- "- Table is COLUMN-oriented: Table([Col(\"Label\", dataArray), Col(\"Count\", countArray, \"number\")]). Use array pluck for data: data.rows.fieldName",- "- Col data can be component arrays for styled cells: Col(\"Status\", @Each(data.rows, \"item\", Tag(item.status, null, \"sm\", item.status == \"open\" ? \"success\" : \"danger\")))",- "- Row actions: Col(\"Actions\", @Each(data.rows, \"t\", Button(\"Edit\", Action([@Set($showEdit, true), @Set($editId, t.id)]))))",- "- Sortable: sorted = @Sort(data.rows, $sortField, \"desc\"). Bind $sortField to Select. Use sorted.fieldName for Col data",- "- Searchable: filtered = @Filter(data.rows, \"title\", \"contains\", $search). Bind $search to Input",- "- Chain sort + filter: filtered = @Filter(...) then sorted = @Sort(filtered, ...) — use sorted for both Table and Charts",- "- Empty state: @Count(data.rows) > 0 ? Table([...]) : TextContent(\"No data yet\")"- ]- },- {- "name": "Charts (2D)",- "components": [- "BarChart",- "LineChart",- "AreaChart",- "RadarChart",- "HorizontalBarChart",- "Series"- ],- "notes": [- "- Charts accept column arrays: LineChart(labels, [Series(\"Name\", values)]). Use array pluck: LineChart(data.rows.day, [Series(\"Views\", data.rows.views)])",- "- Use Cards to wrap charts with CardHeader for titled sections",- "- Chart + Table from same source: use @Sort or @Filter result for both LineChart and Table Col data",- "- Multiple chart views: use Tabs — Tabs([TabItem(\"line\", \"Line\", [LineChart(...)]), TabItem(\"bar\", \"Bar\", [BarChart(...)])])"- ]- },- {- "name": "Charts (1D)",- "components": [- "PieChart",- "RadialChart",- "SingleStackedBarChart",- "Slice"- ],- "notes": [- "- PieChart and BarChart need NUMBERS, not objects. For list data, use @Count(@Filter(...)) to aggregate:",- "- PieChart from list: `PieChart([\"Low\", \"Med\", \"High\"], [@Count(@Filter(data.rows, \"priority\", \"==\", \"low\")), @Count(@Filter(data.rows, \"priority\", \"==\", \"medium\")), @Count(@Filter(data.rows, \"priority\", \"==\", \"high\"))], \"donut\")`",- "- KPI from count: `TextContent(\"\" + @Count(@Filter(data.rows, \"status\", \"==\", \"open\")), \"large-heavy\")`"- ]- },- {- "name": "Charts (Scatter)",- "components": [- "ScatterChart",- "ScatterSeries",- "Point"- ]- },- {- "name": "Forms",- "components": [- "Form",- "FormControl",- "Label",- "Input",- "TextArea",- "Select",- "SelectItem",- "DatePicker",- "Slider",- "CheckBoxGroup",- "CheckBoxItem",- "RadioGroup",- "RadioItem",- "SwitchGroup",- "SwitchItem"+ "required": [+ "Card",+ "CardHeader",+ "TextContent",+ "MarkDownRenderer",+ "Callout",+ "TextCallout",+ "Image",+ "ImageBlock",+ "ImageGallery",+ "CodeBlock",+ "Table",+ "Col",+ "BarChart",+ "LineChart",+ "AreaChart",+ "RadarChart",+ "HorizontalBarChart",+ "Series",+ "PieChart",+ "RadialChart",+ "SingleStackedBarChart",+ "Slice",+ "ScatterChart",+ "ScatterSeries",+ "Point",+ "Form",+ "FormControl",+ "Label",+ "Input",+ "TextArea",+ "Select",+ "SelectItem",+ "DatePicker",+ "Slider",+ "CheckBoxGroup",+ "CheckBoxItem",+ "RadioGroup",+ "RadioItem",+ "SwitchGroup",+ "SwitchItem",+ "Button",+ "Buttons",+ "Stack",+ "Tabs",+ "TabItem",+ "Accordion",+ "AccordionItem",+ "Steps",+ "StepsItem",+ "Carousel",+ "Separator",+ "TagBlock",+ "Tag",+ "Modal"+ ],+ "additionalProperties": false,+ "$defs": {+ "Card": {+ "type": "object",+ "properties": {+ "children": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/TextContent"+ },+ {+ "$ref": "#/$defs/MarkDownRenderer"+ },+ {+ "$ref": "#/$defs/CardHeader"+ },+ {+ "$ref": "#/$defs/Callout"+ },+ {+ "$ref": "#/$defs/TextCallout"+ },+ {+ "$ref": "#/$defs/CodeBlock"+ },+ {+ "$ref": "#/$defs/Image"+ },+ {+ "$ref": "#/$defs/ImageBlock"+ },+ {+ "$ref": "#/$defs/ImageGallery"+ },+ {+ "$ref": "#/$defs/Separator"+ },+ {+ "$ref": "#/$defs/HorizontalBarChart"+ },+ {+ "$ref": "#/$defs/RadarChart"+ },+ {+ "$ref": "#/$defs/PieChart"+ },+ {+ "$ref": "#/$defs/RadialChart"+ },+ {+ "$ref": "#/$defs/SingleStackedBarChart"+ },+ {+ "$ref": "#/$defs/ScatterChart"+ },+ {+ "$ref": "#/$defs/AreaChart"+ },+ {+ "$ref": "#/$defs/BarChart"+ },+ {+ "$ref": "#/$defs/LineChart"+ },+ {+ "$ref": "#/$defs/Table"+ },+ {+ "$ref": "#/$defs/TagBlock"+ },+ {+ "$ref": "#/$defs/Form"+ },+ {+ "$ref": "#/$defs/Buttons"+ },+ {+ "$ref": "#/$defs/Steps"+ },+ {+ "$ref": "#/$defs/Tabs"+ },+ {+ "$ref": "#/$defs/Carousel"+ },+ {+ "$ref": "#/$defs/Stack"+ }+ ]+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "card",+ "sunk",+ "clear"+ ]+ },+ "direction": {+ "type": "string",+ "enum": [+ "row",+ "column"+ ]+ },+ "gap": {+ "type": "string",+ "enum": [+ "none",+ "xs",+ "s",+ "m",+ "l",+ "xl",+ "2xl"+ ]+ },+ "align": {+ "type": "string",+ "enum": [+ "start",+ "center",+ "end",+ "stretch",+ "baseline"+ ]+ },+ "justify": {+ "type": "string",+ "enum": [+ "start",+ "center",+ "end",+ "between",+ "around",+ "evenly"+ ]+ },+ "wrap": {+ "type": "boolean"+ }+ },+ "required": [+ "children"],- "notes": [- "- For Form fields, define EACH FormControl as its own reference — do NOT inline all controls in one array. This allows progressive field-by-field streaming.",- "- NEVER nest Form inside Form — each Form should be a standalone container.",- "- Form requires explicit buttons. Always pass a Buttons(...) reference as the third Form argument.",- "- rules is an optional object: {required: true, email: true, minLength: 8, maxLength: 100}",- "- Available rules: required, email, min, max, minLength, maxLength, pattern, url, numeric",- "- The renderer shows error messages automatically — do NOT generate error text in the UI",- "- Conditional fields: $country == \"US\" ? stateField : $country == \"UK\" ? postcodeField : addressField",- "- Edit form in Modal: Modal(\"Edit\", $showEdit, [Form(\"edit\", Buttons([saveBtn, cancelBtn]), [fields...])]). Save button should include @Set($showEdit, false) to close modal."- ]- },- {- "name": "Buttons",- "components": [- "Button",- "Buttons"+ "additionalProperties": false,+ "description": "Styled container. variant: \"card\" (default, elevated) | \"sunk\" (recessed) | \"clear\" (transparent). Always full width. Accepts all Stack flex params (default: direction \"column\"). Cards flex to share space in row/wrap layouts."+ },+ "TextContent": {+ "type": "object",+ "properties": {+ "text": {+ "type": "string"+ },+ "size": {+ "type": "string",+ "enum": [+ "small",+ "default",+ "large",+ "small-heavy",+ "large-heavy"+ ]+ }+ },+ "required": [+ "text"],- "notes": [- "- Toggle in @Each: @Each(rows, \"t\", Button(t.status == \"open\" ? \"Close\" : \"Reopen\", Action([...])))"- ]- },- {- "name": "Data Display",- "components": [- "TagBlock",- "Tag"+ "additionalProperties": false,+ "description": "Text block. Supports markdown. Optional size: \"small\" | \"default\" | \"large\" | \"small-heavy\" | \"large-heavy\"."+ },+ "MarkDownRenderer": {+ "type": "object",+ "properties": {+ "textMarkdown": {+ "type": "string"+ },+ "variant": {+ "type": "string",+ "enum": [+ "clear",+ "card",+ "sunk"+ ]+ }+ },+ "required": [+ "textMarkdown"],- "notes": [- "- Color-mapped Tag: Tag(value, null, \"sm\", value == \"high\" ? \"danger\" : value == \"medium\" ? \"warning\" : \"neutral\")"- ]- }- ],- "schema": {- "$schema": "https://json-schema.org/draft/2020-12/schema",- "type": "object",- "properties": {- "Card": {- "$ref": "#/$defs/Card"- },- "CardHeader": {- "$ref": "#/$defs/CardHeader"- },- "TextContent": {- "$ref": "#/$defs/TextContent"- },- "MarkDownRenderer": {- "$ref": "#/$defs/MarkDownRenderer"- },- "Callout": {- "$ref": "#/$defs/Callout"+ "additionalProperties": false,+ "description": "Renders markdown text with optional container variant"+ },+ "CardHeader": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string"+ },+ "subtitle": {+ "type": "string"+ }},- "TextCallout": {- "$ref": "#/$defs/TextCallout"+ "additionalProperties": false,+ "description": "Header with optional title and subtitle"+ },+ "Callout": {+ "type": "object",+ "properties": {+ "variant": {+ "type": "string",+ "enum": [+ "info",+ "warning",+ "error",+ "success",+ "neutral"+ ]+ },+ "title": {+ "type": "string"+ },+ "description": {+ "type": "string"+ },+ "visible": {+ "type": "boolean"+ }+ },+ "required": [+ "variant",+ "title",+ "description"+ ],+ "additionalProperties": false,+ "description": "Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false."+ },+ "TextCallout": {+ "type": "object",+ "properties": {+ "variant": {+ "type": "string",+ "enum": [+ "neutral",+ "info",+ "warning",+ "success",+ "danger"+ ]+ },+ "title": {+ "type": "string"+ },+ "description": {+ "type": "string"+ }},- "Image": {- "$ref": "#/$defs/Image"+ "additionalProperties": false,+ "description": "Text callout with variant, title, and description"+ },+ "CodeBlock": {+ "type": "object",+ "properties": {+ "language": {+ "type": "string"+ },+ "codeString": {+ "type": "string"+ }},- "ImageBlock": {- "$ref": "#/$defs/ImageBlock"+ "required": [+ "language",+ "codeString"+ ],+ "additionalProperties": false,+ "description": "Syntax-highlighted code block"+ },+ "Image": {+ "type": "object",+ "properties": {+ "alt": {+ "type": "string"+ },+ "src": {+ "type": "string"+ }},- "ImageGallery": {- "$ref": "#/$defs/ImageGallery"+ "required": [+ "alt"+ ],+ "additionalProperties": false,+ "description": "Image with alt text and optional URL"+ },+ "ImageBlock": {+ "type": "object",+ "properties": {+ "src": {+ "type": "string"+ },+ "alt": {+ "type": "string"+ }},- "CodeBlock": {- "$ref": "#/$defs/CodeBlock"+ "required": [+ "src"+ ],+ "additionalProperties": false,+ "description": "Image block with loading state"+ },+ "ImageGallery": {+ "type": "object",+ "properties": {+ "images": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "src": {+ "type": "string"+ },+ "alt": {+ "type": "string"+ },+ "details": {+ "type": "string"+ }+ },+ "required": [+ "src"+ ],+ "additionalProperties": false+ }+ }},- "Table": {- "$ref": "#/$defs/Table"+ "required": [+ "images"+ ],+ "additionalProperties": false,+ "description": "Gallery grid of images with modal preview"+ },+ "Separator": {+ "type": "object",+ "properties": {+ "orientation": {+ "type": "string",+ "enum": [+ "horizontal",+ "vertical"+ ]+ },+ "decorative": {+ "type": "boolean"+ }},- "Col": {- "$ref": "#/$defs/Col"+ "additionalProperties": false,+ "description": "Visual divider between content sections"+ },+ "HorizontalBarChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "series": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Series"+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "grouped",+ "stacked"+ ]+ },+ "xLabel": {+ "type": "string"+ },+ "yLabel": {+ "type": "string"+ }},- "BarChart": {- "$ref": "#/$defs/BarChart"+ "required": [+ "labels",+ "series"+ ],+ "additionalProperties": false,+ "description": "Horizontal bars; prefer when category labels are long or for ranked lists"+ },+ "Series": {+ "type": "object",+ "properties": {+ "category": {+ "type": "string"+ },+ "values": {+ "type": "array",+ "items": {+ "type": "number"+ }+ }},- "LineChart": {- "$ref": "#/$defs/LineChart"+ "required": [+ "category",+ "values"+ ],+ "additionalProperties": false,+ "description": "One data series"+ },+ "RadarChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "series": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Series"+ }+ }},- "AreaChart": {- "$ref": "#/$defs/AreaChart"+ "required": [+ "labels",+ "series"+ ],+ "additionalProperties": false,+ "description": "Spider/web chart; use for comparing multiple variables across one or more entities"+ },+ "PieChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "values": {+ "type": "array",+ "items": {+ "type": "number"+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "pie",+ "donut"+ ]+ },+ "appearance": {+ "type": "string",+ "enum": [+ "circular",+ "semiCircular"+ ]+ }+ },+ "required": [+ "labels",+ "values"+ ],+ "additionalProperties": false,+ "description": "Circular slices; use plucked arrays: PieChart(data.categories, data.values)"+ },+ "RadialChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "values": {+ "type": "array",+ "items": {+ "type": "number"+ }+ }},- "RadarChart": {- "$ref": "#/$defs/RadarChart"+ "required": [+ "labels",+ "values"+ ],+ "additionalProperties": false,+ "description": "Radial bars; use plucked arrays: RadialChart(data.categories, data.values)"+ },+ "SingleStackedBarChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "values": {+ "type": "array",+ "items": {+ "type": "number"+ }+ }},- "HorizontalBarChart": {- "$ref": "#/$defs/HorizontalBarChart"+ "required": [+ "labels",+ "values"+ ],+ "additionalProperties": false,+ "description": "Single horizontal stacked bar; use plucked arrays: SingleStackedBarChart(data.categories, data.values)"+ },+ "ScatterChart": {+ "type": "object",+ "properties": {+ "datasets": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/ScatterSeries"+ }+ },+ "xLabel": {+ "type": "string"+ },+ "yLabel": {+ "type": "string"+ }},- "Series": {- "$ref": "#/$defs/Series"- },- "PieChart": {- "$ref": "#/$defs/PieChart"- },- "RadialChart": {- "$ref": "#/$defs/RadialChart"- },- "SingleStackedBarChart": {- "$ref": "#/$defs/SingleStackedBarChart"- },- "Slice": {- "$ref": "#/$defs/Slice"- },- "ScatterChart": {- "$ref": "#/$defs/ScatterChart"- },- "ScatterSeries": {- "$ref": "#/$defs/ScatterSeries"- },- "Point": {- "$ref": "#/$defs/Point"- },- "Form": {- "$ref": "#/$defs/Form"- },- "FormControl": {- "$ref": "#/$defs/FormControl"- },- "Label": {- "$ref": "#/$defs/Label"- },- "Input": {- "$ref": "#/$defs/Input"- },- "TextArea": {- "$ref": "#/$defs/TextArea"- },- "Select": {- "$ref": "#/$defs/Select"- },- "SelectItem": {- "$ref": "#/$defs/SelectItem"- },- "DatePicker": {- "$ref": "#/$defs/DatePicker"- },- "Slider": {- "$ref": "#/$defs/Slider"- },- "CheckBoxGroup": {- "$ref": "#/$defs/CheckBoxGroup"- },- "CheckBoxItem": {- "$ref": "#/$defs/CheckBoxItem"- },- "RadioGroup": {- "$ref": "#/$defs/RadioGroup"- },- "RadioItem": {- "$ref": "#/$defs/RadioItem"- },- "SwitchGroup": {- "$ref": "#/$defs/SwitchGroup"- },- "SwitchItem": {- "$ref": "#/$defs/SwitchItem"- },- "Button": {- "$ref": "#/$defs/Button"- },- "Buttons": {- "$ref": "#/$defs/Buttons"- },- "Stack": {- "$ref": "#/$defs/Stack"- },- "Tabs": {- "$ref": "#/$defs/Tabs"- },- "TabItem": {- "$ref": "#/$defs/TabItem"- },- "Accordion": {- "$ref": "#/$defs/Accordion"- },- "AccordionItem": {- "$ref": "#/$defs/AccordionItem"- },- "Steps": {- "$ref": "#/$defs/Steps"- },- "StepsItem": {- "$ref": "#/$defs/StepsItem"- },- "Carousel": {- "$ref": "#/$defs/Carousel"- },- "Separator": {- "$ref": "#/$defs/Separator"- },- "TagBlock": {- "$ref": "#/$defs/TagBlock"- },- "Tag": {- "$ref": "#/$defs/Tag"- },- "Modal": {- "$ref": "#/$defs/Modal"- }- },- "required": [- "Card",- "CardHeader",- "TextContent",- "MarkDownRenderer",- "Callout",- "TextCallout",- "Image",- "ImageBlock",- "ImageGallery",- "CodeBlock",- "Table",- "Col",- "BarChart",- "LineChart",- "AreaChart",- "RadarChart",- "HorizontalBarChart",- "Series",- "PieChart",- "RadialChart",- "SingleStackedBarChart",- "Slice",- "ScatterChart",- "ScatterSeries",- "Point",- "Form",- "FormControl",- "Label",- "Input",- "TextArea",- "Select",- "SelectItem",- "DatePicker",- "Slider",- "CheckBoxGroup",- "CheckBoxItem",- "RadioGroup",- "RadioItem",- "SwitchGroup",- "SwitchItem",- "Button",- "Buttons",- "Stack",- "Tabs",- "TabItem",- "Accordion",- "AccordionItem",- "Steps",- "StepsItem",- "Carousel",- "Separator",- "TagBlock",- "Tag",- "Modal"- ],- "additionalProperties": false,- "$defs": {- "Card": {- "type": "object",- "properties": {- "children": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/TextContent"- },- {- "$ref": "#/$defs/MarkDownRenderer"- },- {- "$ref": "#/$defs/CardHeader"- },- {- "$ref": "#/$defs/Callout"- },- {- "$ref": "#/$defs/TextCallout"- },- {- "$ref": "#/$defs/CodeBlock"- },- {- "$ref": "#/$defs/Image"- },- {- "$ref": "#/$defs/ImageBlock"- },- {- "$ref": "#/$defs/ImageGallery"- },- {- "$ref": "#/$defs/Separator"- },- {- "$ref": "#/$defs/HorizontalBarChart"- },- {- "$ref": "#/$defs/RadarChart"- },- {- "$ref": "#/$defs/PieChart"- },- {- "$ref": "#/$defs/RadialChart"- },- {- "$ref": "#/$defs/SingleStackedBarChart"- },- {- "$ref": "#/$defs/ScatterChart"- },- {- "$ref": "#/$defs/AreaChart"- },- {- "$ref": "#/$defs/BarChart"- },- {- "$ref": "#/$defs/LineChart"- },- {- "$ref": "#/$defs/Table"- },- {- "$ref": "#/$defs/TagBlock"- },- {- "$ref": "#/$defs/Form"- },- {- "$ref": "#/$defs/Buttons"- },- {- "$ref": "#/$defs/Steps"- },- {- "$ref": "#/$defs/Tabs"- },- {- "$ref": "#/$defs/Carousel"- },- {- "$ref": "#/$defs/Stack"- }- ]- }- },- "variant": {- "type": "string",- "enum": [- "card",- "sunk",- "clear"- ]- },- "direction": {- "type": "string",- "enum": [- "row",- "column"- ]- },- "gap": {- "type": "string",- "enum": [- "none",- "xs",- "s",- "m",- "l",- "xl",- "2xl"- ]- },- "align": {- "type": "string",- "enum": [- "start",- "center",- "end",- "stretch",- "baseline"- ]- },- "justify": {- "type": "string",- "enum": [- "start",- "center",- "end",- "between",- "around",- "evenly"- ]- },- "wrap": {- "type": "boolean"- }+ "required": [+ "datasets"+ ],+ "additionalProperties": false,+ "description": "X/Y scatter plot; use for correlations, distributions, and clustering"+ },+ "ScatterSeries": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"},- "required": [- "children"- ],- "additionalProperties": false,- "id": "Card",- "description": "Styled container. variant: \"card\" (default, elevated) | \"sunk\" (recessed) | \"clear\" (transparent). Always full width. Accepts all Stack flex params (default: direction \"column\"). Cards flex to share space in row/wrap layouts."- },- "TextContent": {- "type": "object",- "properties": {- "text": {- "type": "string"- },- "size": {- "type": "string",- "enum": [- "small",- "default",- "large",- "small-heavy",- "large-heavy"- ]+ "points": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Point"}- },- "required": [- "text"- ],- "additionalProperties": false,- "id": "TextContent",- "description": "Text block. Supports markdown. Optional size: \"small\" | \"default\" | \"large\" | \"small-heavy\" | \"large-heavy\"."+ }},- "MarkDownRenderer": {- "type": "object",- "properties": {- "textMarkdown": {- "type": "string"- },- "variant": {- "type": "string",- "enum": [- "clear",- "card",- "sunk"- ]- }+ "required": [+ "name",+ "points"+ ],+ "additionalProperties": false,+ "description": "Named dataset"+ },+ "Point": {+ "type": "object",+ "properties": {+ "x": {+ "type": "number"},- "required": [- "textMarkdown"- ],- "additionalProperties": false,- "id": "MarkDownRenderer",- "description": "Renders markdown text with optional container variant"- },- "CardHeader": {- "type": "object",- "properties": {- "title": {- "type": "string"- },- "subtitle": {- "type": "string"- }+ "y": {+ "type": "number"},- "additionalProperties": false,- "id": "CardHeader",- "description": "Header with optional title and subtitle"+ "z": {+ "type": "number"+ }},- "Callout": {- "type": "object",- "properties": {- "variant": {- "type": "string",- "enum": [- "info",- "warning",- "error",- "success",- "neutral"- ]- },- "title": {- "type": "string"- },- "description": {+ "required": [+ "x",+ "y"+ ],+ "additionalProperties": false,+ "description": "Data point with numeric coordinates"+ },+ "AreaChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {"type": "string"- },- "visible": {- "type": "boolean"}},- "required": [- "variant",- "title",- "description"- ],- "additionalProperties": false,- "id": "Callout",- "description": "Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false."- },- "TextCallout": {- "type": "object",- "properties": {- "variant": {- "type": "string",- "enum": [- "neutral",- "info",- "warning",- "success",- "danger"- ]- },- "title": {- "type": "string"- },- "description": {- "type": "string"+ "series": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Series"}},- "additionalProperties": false,- "id": "TextCallout",- "description": "Text callout with variant, title, and description"+ "variant": {+ "type": "string",+ "enum": [+ "linear",+ "natural",+ "step"+ ]+ },+ "xLabel": {+ "type": "string"+ },+ "yLabel": {+ "type": "string"+ }},- "CodeBlock": {- "type": "object",- "properties": {- "language": {- "type": "string"- },- "codeString": {+ "required": [+ "labels",+ "series"+ ],+ "additionalProperties": false,+ "description": "Filled area under lines; use for cumulative totals or volume trends over time"+ },+ "BarChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {"type": "string"}},- "required": [- "language",- "codeString"- ],- "additionalProperties": false,- "id": "CodeBlock",- "description": "Syntax-highlighted code block"- },- "Image": {- "type": "object",- "properties": {- "alt": {- "type": "string"- },- "src": {- "type": "string"+ "series": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Series"}},- "required": [- "alt"- ],- "additionalProperties": false,- "id": "Image",- "description": "Image with alt text and optional URL"+ "variant": {+ "type": "string",+ "enum": [+ "grouped",+ "stacked"+ ]+ },+ "xLabel": {+ "type": "string"+ },+ "yLabel": {+ "type": "string"+ }},- "ImageBlock": {- "type": "object",- "properties": {- "src": {- "type": "string"- },- "alt": {+ "required": [+ "labels",+ "series"+ ],+ "additionalProperties": false,+ "description": "Vertical bars; use for comparing values across categories with one or more series"+ },+ "LineChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {"type": "string"}},- "required": [- "src"- ],- "additionalProperties": false,- "id": "ImageBlock",- "description": "Image block with loading state"- },- "ImageGallery": {- "type": "object",- "properties": {- "images": {- "type": "array",- "items": {- "type": "object",- "properties": {- "src": {- "type": "string"- },- "alt": {- "type": "string"- },- "details": {- "type": "string"- }- },- "required": [- "src"- ],- "additionalProperties": false- }+ "series": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Series"}},- "required": [- "images"- ],- "additionalProperties": false,- "id": "ImageGallery",- "description": "Gallery grid of images with modal preview"- },- "Separator": {- "type": "object",- "properties": {- "orientation": {- "type": "string",- "enum": [- "horizontal",- "vertical"- ]- },- "decorative": {- "type": "boolean"- }+ "variant": {+ "type": "string",+ "enum": [+ "linear",+ "natural",+ "step"+ ]},- "additionalProperties": false,- "id": "Separator",- "description": "Visual divider between content sections"+ "xLabel": {+ "type": "string"+ },+ "yLabel": {+ "type": "string"+ }},- "HorizontalBarChart": {- "type": "object",- "properties": {- "labels": {- "type": "array",- "items": {- "type": "string"- }- },- "series": {- "type": "array",- "items": {- "$ref": "#/$defs/Series"- }- },- "variant": {- "type": "string",- "enum": [- "grouped",- "stacked"- ]- },- "xLabel": {- "type": "string"- },- "yLabel": {- "type": "string"+ "required": [+ "labels",+ "series"+ ],+ "additionalProperties": false,+ "description": "Lines over categories; use for trends and continuous data over time"+ },+ "Table": {+ "type": "object",+ "properties": {+ "columns": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Col"}- },- "required": [- "labels",- "series"- ],- "additionalProperties": false,- "id": "HorizontalBarChart",- "description": "Horizontal bars; prefer when category labels are long or for ranked lists"+ }},- "Series": {- "type": "object",- "properties": {- "category": {+ "required": [+ "columns"+ ],+ "additionalProperties": false,+ "description": "Data table — column-oriented. Each Col holds its own data array."+ },+ "Col": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "data": {},+ "type": {+ "type": "string",+ "enum": [+ "string",+ "number",+ "action"+ ]+ }+ },+ "required": [+ "label",+ "data"+ ],+ "additionalProperties": false,+ "description": "Column definition — holds label + data array"+ },+ "TagBlock": {+ "type": "object",+ "properties": {+ "tags": {+ "type": "array",+ "items": {"type": "string"- },- "values": {- "type": "array",- "items": {- "type": "number"- }}+ }+ },+ "required": [+ "tags"+ ],+ "additionalProperties": false,+ "description": "tags is an array of strings"+ },+ "Form": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "buttons": {+ "$ref": "#/$defs/Buttons"},- "required": [- "category",- "values"- ],- "additionalProperties": false,- "id": "Series",- "description": "One data series"+ "fields": {+ "default": [],+ "type": "array",+ "items": {+ "$ref": "#/$defs/FormControl"+ }+ }},- "RadarChart": {- "type": "object",- "properties": {- "labels": {- "type": "array",- "items": {- "type": "string"- }- },- "series": {- "type": "array",- "items": {- "$ref": "#/$defs/Series"- }+ "required": [+ "name",+ "buttons",+ "fields"+ ],+ "additionalProperties": false,+ "description": "Form container with fields and explicit action buttons"+ },+ "Buttons": {+ "type": "object",+ "properties": {+ "buttons": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Button"}},- "required": [- "labels",- "series"- ],- "additionalProperties": false,- "id": "RadarChart",- "description": "Spider/web chart; use for comparing multiple variables across one or more entities"- },- "PieChart": {- "type": "object",- "properties": {- "labels": {- "type": "array",- "items": {- "type": "string"+ "direction": {+ "type": "string",+ "enum": [+ "row",+ "column"+ ]+ }+ },+ "required": [+ "buttons"+ ],+ "additionalProperties": false,+ "description": "Group of Button components. direction: \"row\" (default) | \"column\"."+ },+ "Button": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "action": {},+ "variant": {+ "type": "string",+ "enum": [+ "primary",+ "secondary",+ "tertiary"+ ]+ },+ "type": {+ "type": "string",+ "enum": [+ "normal",+ "destructive"+ ]+ },+ "size": {+ "type": "string",+ "enum": [+ "extra-small",+ "small",+ "medium",+ "large"+ ]+ }+ },+ "required": [+ "label"+ ],+ "additionalProperties": false,+ "description": "Clickable button"+ },+ "FormControl": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "input": {+ "anyOf": [+ {+ "$ref": "#/$defs/Input"+ },+ {+ "$ref": "#/$defs/TextArea"+ },+ {+ "$ref": "#/$defs/Select"+ },+ {+ "$ref": "#/$defs/DatePicker"+ },+ {+ "$ref": "#/$defs/Slider"+ },+ {+ "$ref": "#/$defs/CheckBoxGroup"+ },+ {+ "$ref": "#/$defs/RadioGroup"}- },- "values": {- "type": "array",- "items": {+ ]+ },+ "hint": {+ "type": "string"+ }+ },+ "required": [+ "label",+ "input"+ ],+ "additionalProperties": false,+ "description": "Field with label, input component, and optional hint text"+ },+ "Input": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "placeholder": {+ "type": "string"+ },+ "type": {+ "type": "string",+ "enum": [+ "text",+ "email",+ "password",+ "number",+ "url"+ ]+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {"type": "number"+ },+ "pattern": {+ "type": "string"}},- "variant": {- "type": "string",- "enum": [- "pie",- "donut"- ]- },- "appearance": {- "type": "string",- "enum": [- "circular",- "semiCircular"- ]- }+ "additionalProperties": false},- "required": [- "labels",- "values"- ],- "additionalProperties": false,- "id": "PieChart",- "description": "Circular slices; use plucked arrays: PieChart(data.categories, data.values)"+ "value": {+ "type": "string"+ }},- "RadialChart": {- "type": "object",- "properties": {- "labels": {- "type": "array",- "items": {+ "required": [+ "name"+ ],+ "additionalProperties": false+ },+ "TextArea": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "placeholder": {+ "type": "string"+ },+ "rows": {+ "type": "number"+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {"type": "string"}},- "values": {- "type": "array",- "items": {- "type": "number"- }- }+ "additionalProperties": false},- "required": [- "labels",- "values"- ],- "additionalProperties": false,- "id": "RadialChart",- "description": "Radial bars; use plucked arrays: RadialChart(data.categories, data.values)"+ "value": {+ "type": "string"+ }},- "SingleStackedBarChart": {- "type": "object",- "properties": {- "labels": {- "type": "array",- "items": {+ "required": [+ "name"+ ],+ "additionalProperties": false+ },+ "Select": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/SelectItem"+ }+ },+ "placeholder": {+ "type": "string"+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {"type": "string"}},- "values": {- "type": "array",- "items": {- "type": "number"- }- }+ "additionalProperties": false+ },+ "value": {+ "type": "string"+ },+ "size": {+ "type": "string",+ "enum": [+ "small",+ "medium",+ "large"+ ]+ }+ },+ "required": [+ "name",+ "items"+ ],+ "additionalProperties": false+ },+ "SelectItem": {+ "type": "object",+ "properties": {+ "value": {+ "type": "string"},- "required": [- "labels",- "values"- ],- "additionalProperties": false,- "id": "SingleStackedBarChart",- "description": "Single horizontal stacked bar; use plucked arrays: SingleStackedBarChart(data.categories, data.values)"+ "label": {+ "type": "string"+ }},- "ScatterChart": {- "type": "object",- "properties": {- "datasets": {- "type": "array",- "items": {- "$ref": "#/$defs/ScatterSeries"+ "required": [+ "value",+ "label"+ ],+ "additionalProperties": false,+ "description": "Option for Select"+ },+ "DatePicker": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "mode": {+ "type": "string",+ "enum": [+ "single",+ "range"+ ]+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {+ "type": "string"}},- "xLabel": {- "type": "string"- },- "yLabel": {- "type": "string"- }+ "additionalProperties": false},- "required": [- "datasets"- ],- "additionalProperties": false,- "id": "ScatterChart",- "description": "X/Y scatter plot; use for correlations, distributions, and clustering"+ "value": {}},- "ScatterSeries": {- "type": "object",- "properties": {- "name": {- "type": "string"- },- "points": {- "type": "array",- "items": {- "$ref": "#/$defs/Point"- }- }+ "required": [+ "name"+ ],+ "additionalProperties": false+ },+ "Slider": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"},- "required": [- "name",- "points"- ],- "additionalProperties": false,- "id": "ScatterSeries",- "description": "Named dataset"- },- "Point": {- "type": "object",- "properties": {- "x": {- "type": "number"- },- "y": {- "type": "number"- },- "z": {+ "variant": {+ "type": "string",+ "enum": [+ "continuous",+ "discrete"+ ]+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "step": {+ "type": "number"+ },+ "defaultValue": {+ "type": "array",+ "items": {"type": "number"}},- "required": [- "x",- "y"- ],- "additionalProperties": false,- "id": "Point",- "description": "Data point with numeric coordinates"- },- "AreaChart": {- "type": "object",- "properties": {- "labels": {- "type": "array",- "items": {+ "label": {+ "type": "string"+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {"type": "string"}},- "series": {- "type": "array",- "items": {- "$ref": "#/$defs/Series"- }- },- "variant": {- "type": "string",- "enum": [- "linear",- "natural",- "step"- ]- },- "xLabel": {- "type": "string"- },- "yLabel": {- "type": "string"- }+ "additionalProperties": false},- "required": [- "labels",- "series"- ],- "additionalProperties": false,- "id": "AreaChart",- "description": "Filled area under lines; use for cumulative totals or volume trends over time"+ "value": {+ "type": "array",+ "items": {+ "type": "number"+ }+ }},- "BarChart": {- "type": "object",- "properties": {- "labels": {- "type": "array",- "items": {+ "required": [+ "name",+ "variant",+ "min",+ "max"+ ],+ "additionalProperties": false,+ "description": "Numeric slider input; supports continuous and discrete (stepped) variants"+ },+ "CheckBoxGroup": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/CheckBoxItem"+ }+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {"type": "string"}},- "series": {- "type": "array",- "items": {- "$ref": "#/$defs/Series"- }- },- "variant": {- "type": "string",- "enum": [- "grouped",- "stacked"- ]- },- "xLabel": {+ "additionalProperties": false+ },+ "value": {+ "type": "object",+ "propertyNames": {"type": "string"},- "yLabel": {- "type": "string"+ "additionalProperties": {+ "type": "boolean"}- },- "required": [- "labels",- "series"- ],- "additionalProperties": false,- "id": "BarChart",- "description": "Vertical bars; use for comparing values across categories with one or more series"+ }},- "LineChart": {- "type": "object",- "properties": {- "labels": {- "type": "array",- "items": {- "type": "string"- }- },- "series": {- "type": "array",- "items": {- "$ref": "#/$defs/Series"- }- },- "variant": {- "type": "string",- "enum": [- "linear",- "natural",- "step"- ]- },- "xLabel": {- "type": "string"- },- "yLabel": {- "type": "string"- }+ "required": [+ "name",+ "items"+ ],+ "additionalProperties": false+ },+ "CheckBoxItem": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"},- "required": [- "labels",- "series"- ],- "additionalProperties": false,- "id": "LineChart",- "description": "Lines over categories; use for trends and continuous data over time"- },- "Table": {- "type": "object",- "properties": {- "columns": {- "type": "array",- "items": {- "$ref": "#/$defs/Col"- }- }+ "description": {+ "type": "string"},- "required": [- "columns"- ],- "additionalProperties": false,- "id": "Table",- "description": "Data table — column-oriented. Each Col holds its own data array."- },- "Col": {- "type": "object",- "properties": {- "label": {- "type": "string"- },- "data": {},- "type": {- "type": "string",- "enum": [- "string",- "number",- "action"- ]+ "name": {+ "type": "string"+ },+ "defaultChecked": {+ "type": "boolean"+ }+ },+ "required": [+ "label",+ "description",+ "name"+ ],+ "additionalProperties": false+ },+ "RadioGroup": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/RadioItem"}},- "required": [- "label",- "data"- ],- "additionalProperties": false,- "id": "Col",- "description": "Column definition — holds label + data array"- },- "TagBlock": {- "type": "object",- "properties": {- "tags": {- "type": "array",- "items": {+ "defaultValue": {+ "type": "string"+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {"type": "string"}- }- },- "required": [- "tags"- ],- "additionalProperties": false,- "id": "TagBlock",- "description": "tags is an array of strings"- },- "Form": {- "type": "object",- "properties": {- "name": {- "type": "string"},- "buttons": {- "$ref": "#/$defs/Buttons"- },- "fields": {- "default": [],- "type": "array",- "items": {- "$ref": "#/$defs/FormControl"- }- }+ "additionalProperties": false},- "required": [- "name",- "buttons",- "fields"- ],- "additionalProperties": false,- "id": "Form",- "description": "Form container with fields and explicit action buttons"+ "value": {+ "type": "string"+ }},- "Buttons": {- "type": "object",- "properties": {- "buttons": {- "type": "array",- "items": {- "$ref": "#/$defs/Button"- }- },- "direction": {- "type": "string",- "enum": [- "row",- "column"- ]+ "required": [+ "name",+ "items"+ ],+ "additionalProperties": false+ },+ "RadioItem": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "description": {+ "type": "string"+ },+ "value": {+ "type": "string"+ }+ },+ "required": [+ "label",+ "description",+ "value"+ ],+ "additionalProperties": false+ },+ "Steps": {+ "type": "object",+ "properties": {+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/StepsItem"}+ }+ },+ "required": [+ "items"+ ],+ "additionalProperties": false,+ "description": "Step-by-step guide"+ },+ "StepsItem": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string"},- "required": [- "buttons"- ],- "additionalProperties": false,- "id": "Buttons",- "description": "Group of Button components. direction: \"row\" (default) | \"column\"."+ "details": {+ "type": "string"+ }},- "Button": {- "type": "object",- "properties": {- "label": {- "type": "string"- },- "action": {},- "variant": {- "type": "string",- "enum": [- "primary",- "secondary",- "tertiary"- ]- },- "type": {- "type": "string",- "enum": [- "normal",- "destructive"- ]- },- "size": {- "type": "string",- "enum": [- "extra-small",- "small",- "medium",- "large"- ]+ "required": [+ "title",+ "details"+ ],+ "additionalProperties": false,+ "description": "title and details text for one step"+ },+ "Tabs": {+ "type": "object",+ "properties": {+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/TabItem"}- },- "required": [- "label"- ],- "additionalProperties": false,- "id": "Button",- "description": "Clickable button"+ }},- "FormControl": {- "type": "object",- "properties": {- "label": {- "type": "string"- },- "input": {+ "required": [+ "items"+ ],+ "additionalProperties": false,+ "description": "Tabbed container"+ },+ "TabItem": {+ "type": "object",+ "properties": {+ "value": {+ "type": "string"+ },+ "trigger": {+ "type": "string"+ },+ "content": {+ "type": "array",+ "items": {"anyOf": [{- "$ref": "#/$defs/Input"+ "$ref": "#/$defs/TextContent"},{- "$ref": "#/$defs/TextArea"+ "$ref": "#/$defs/MarkDownRenderer"},{- "$ref": "#/$defs/Select"+ "$ref": "#/$defs/CardHeader"},{- "$ref": "#/$defs/DatePicker"+ "$ref": "#/$defs/Callout"},{- "$ref": "#/$defs/Slider"+ "$ref": "#/$defs/TextCallout"},{- "$ref": "#/$defs/CheckBoxGroup"+ "$ref": "#/$defs/CodeBlock"},{- "$ref": "#/$defs/RadioGroup"- }- ]- },- "hint": {- "type": "string"- }- },- "required": [- "label",- "input"- ],- "additionalProperties": false,- "id": "FormControl",- "description": "Field with label, input component, and optional hint text"- },- "Input": {- "type": "object",- "properties": {- "name": {- "type": "string"- },- "placeholder": {- "type": "string"- },- "type": {- "type": "string",- "enum": [- "text",- "email",- "password",- "number",- "url"- ]- },- "rules": {- "type": "object",- "properties": {- "required": {- "type": "boolean"- },- "email": {- "type": "boolean"+ "$ref": "#/$defs/Image"},- "url": {- "type": "boolean"- },- "numeric": {- "type": "boolean"- },- "min": {- "type": "number"- },- "max": {- "type": "number"- },- "minLength": {- "type": "number"- },- "maxLength": {- "type": "number"- },- "pattern": {- "type": "string"- }- },- "additionalProperties": false- },- "value": {- "type": "string"- }- },- "required": [- "name"- ],- "additionalProperties": false,- "id": "Input"- },- "TextArea": {- "type": "object",- "properties": {- "name": {- "type": "string"- },- "placeholder": {- "type": "string"- },- "rows": {- "type": "number"- },- "rules": {- "type": "object",- "properties": {- "required": {- "type": "boolean"- },- "email": {- "type": "boolean"- },- "url": {- "type": "boolean"- },- "numeric": {- "type": "boolean"- },- "min": {- "type": "number"- },- "max": {- "type": "number"- },- "minLength": {- "type": "number"- },- "maxLength": {- "type": "number"- },- "pattern": {- "type": "string"- }- },- "additionalProperties": false- },- "value": {- "type": "string"- }- },- "required": [- "name"- ],- "additionalProperties": false,- "id": "TextArea"- },- "Select": {- "type": "object",- "properties": {- "name": {- "type": "string"- },- "items": {- "type": "array",- "items": {- "$ref": "#/$defs/SelectItem"- }- },- "placeholder": {- "type": "string"- },- "rules": {- "type": "object",- "properties": {- "required": {- "type": "boolean"- },- "email": {- "type": "boolean"- },- "url": {- "type": "boolean"- },- "numeric": {- "type": "boolean"- },- "min": {- "type": "number"- },- "max": {- "type": "number"- },- "minLength": {- "type": "number"- },- "maxLength": {- "type": "number"- },- "pattern": {- "type": "string"- }- },- "additionalProperties": false- },- "value": {- "type": "string"- },- "size": {- "type": "string",- "enum": [- "small",- "medium",- "large"- ]- }- },- "required": [- "name",- "items"- ],- "additionalProperties": false,- "id": "Select"- },- "SelectItem": {- "type": "object",- "properties": {- "value": {- "type": "string"- },- "label": {- "type": "string"- }- },- "required": [- "value",- "label"- ],- "additionalProperties": false,- "id": "SelectItem",- "description": "Option for Select"- },- "DatePicker": {- "type": "object",- "properties": {- "name": {- "type": "string"- },- "mode": {- "type": "string",- "enum": [- "single",- "range"- ]- },- "rules": {- "type": "object",- "properties": {- "required": {- "type": "boolean"- },- "email": {- "type": "boolean"- },- "url": {- "type": "boolean"- },- "numeric": {- "type": "boolean"- },- "min": {- "type": "number"- },- "max": {- "type": "number"- },- "minLength": {- "type": "number"- },- "maxLength": {- "type": "number"- },- "pattern": {- "type": "string"- }- },- "additionalProperties": false- },- "value": {}- },- "required": [- "name"- ],- "additionalProperties": false,- "id": "DatePicker"- },- "Slider": {- "type": "object",- "properties": {- "name": {- "type": "string"- },- "variant": {- "type": "string",- "enum": [- "continuous",- "discrete"- ]- },- "min": {- "type": "number"- },- "max": {- "type": "number"- },- "step": {- "type": "number"- },- "defaultValue": {- "type": "array",- "items": {- "type": "number"- }- },- "label": {- "type": "string"- },- "rules": {- "type": "object",- "properties": {- "required": {- "type": "boolean"- },- "email": {- "type": "boolean"- },- "url": {- "type": "boolean"- },- "numeric": {- "type": "boolean"- },- "min": {- "type": "number"- },- "max": {- "type": "number"- },- "minLength": {- "type": "number"- },- "maxLength": {- "type": "number"- },- "pattern": {- "type": "string"- }- },- "additionalProperties": false- },- "value": {- "type": "array",- "items": {- "type": "number"- }- }- },- "required": [- "name",- "variant",- "min",- "max"- ],- "additionalProperties": false,- "id": "Slider",- "description": "Numeric slider input; supports continuous and discrete (stepped) variants"- },- "CheckBoxGroup": {- "type": "object",- "properties": {- "name": {- "type": "string"- },- "items": {- "type": "array",- "items": {- "$ref": "#/$defs/CheckBoxItem"- }- },- "rules": {- "type": "object",- "properties": {- "required": {- "type": "boolean"+ {+ "$ref": "#/$defs/ImageBlock"},- "email": {- "type": "boolean"+ {+ "$ref": "#/$defs/ImageGallery"},- "url": {- "type": "boolean"+ {+ "$ref": "#/$defs/Separator"},- "numeric": {- "type": "boolean"+ {+ "$ref": "#/$defs/HorizontalBarChart"},- "min": {- "type": "number"+ {+ "$ref": "#/$defs/RadarChart"},- "max": {- "type": "number"+ {+ "$ref": "#/$defs/PieChart"},- "minLength": {- "type": "number"+ {+ "$ref": "#/$defs/RadialChart"},- "maxLength": {- "type": "number"+ {+ "$ref": "#/$defs/SingleStackedBarChart"},- "pattern": {- "type": "string"- }- },- "additionalProperties": false- },- "value": {- "type": "object",- "propertyNames": {- "type": "string"- },- "additionalProperties": {- "type": "boolean"- }- }- },- "required": [- "name",- "items"- ],- "additionalProperties": false,- "id": "CheckBoxGroup"- },- "CheckBoxItem": {- "type": "object",- "properties": {- "label": {- "type": "string"- },- "description": {- "type": "string"- },- "name": {- "type": "string"- },- "defaultChecked": {- "type": "boolean"- }- },- "required": [- "label",- "description",- "name"- ],- "additionalProperties": false,- "id": "CheckBoxItem"- },- "RadioGroup": {- "type": "object",- "properties": {- "name": {- "type": "string"- },- "items": {- "type": "array",- "items": {- "$ref": "#/$defs/RadioItem"- }- },- "defaultValue": {- "type": "string"- },- "rules": {- "type": "object",- "properties": {- "required": {- "type": "boolean"+ {+ "$ref": "#/$defs/ScatterChart"},- "email": {- "type": "boolean"+ {+ "$ref": "#/$defs/AreaChart"},- "url": {- "type": "boolean"+ {+ "$ref": "#/$defs/BarChart"},- "numeric": {- "type": "boolean"+ {+ "$ref": "#/$defs/LineChart"},- "min": {- "type": "number"+ {+ "$ref": "#/$defs/Table"},- "max": {- "type": "number"+ {+ "$ref": "#/$defs/TagBlock"},- "minLength": {- "type": "number"+ {+ "$ref": "#/$defs/Form"},- "maxLength": {- "type": "number"+ {+ "$ref": "#/$defs/Buttons"},- "pattern": {- "type": "string"- }- },- "additionalProperties": false- },- "value": {- "type": "string"- }- },- "required": [- "name",- "items"- ],- "additionalProperties": false,- "id": "RadioGroup"- },- "RadioItem": {- "type": "object",- "properties": {- "label": {- "type": "string"- },- "description": {- "type": "string"- },- "value": {- "type": "string"- }- },- "required": [- "label",- "description",- "value"- ],- "additionalProperties": false,- "id": "RadioItem"- },- "Steps": {- "type": "object",- "properties": {- "items": {- "type": "array",- "items": {- "$ref": "#/$defs/StepsItem"- }- }- },- "required": [- "items"- ],- "additionalProperties": false,- "id": "Steps",- "description": "Step-by-step guide"- },- "StepsItem": {- "type": "object",- "properties": {- "title": {- "type": "string"- },- "details": {- "type": "string"- }- },- "required": [- "title",- "details"- ],- "additionalProperties": false,- "id": "StepsItem",- "description": "title and details text for one step"- },- "Tabs": {- "type": "object",- "properties": {- "items": {- "type": "array",- "items": {- "$ref": "#/$defs/TabItem"- }- }- },- "required": [- "items"- ],- "additionalProperties": false,- "id": "Tabs",- "description": "Tabbed container"- },- "TabItem": {- "type": "object",- "properties": {- "value": {- "type": "string"- },- "trigger": {- "type": "string"- },- "content": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/TextContent"- },- {- "$ref": "#/$defs/MarkDownRenderer"- },- {- "$ref": "#/$defs/CardHeader"- },- {- "$ref": "#/$defs/Callout"- },- {- "$ref": "#/$defs/TextCallout"- },- {- "$ref": "#/$defs/CodeBlock"- },- {- "$ref": "#/$defs/Image"- },- {- "$ref": "#/$defs/ImageBlock"- },- {- "$ref": "#/$defs/ImageGallery"- },- {- "$ref": "#/$defs/Separator"- },- {- "$ref": "#/$defs/HorizontalBarChart"- },- {- "$ref": "#/$defs/RadarChart"- },- {- "$ref": "#/$defs/PieChart"- },- {- "$ref": "#/$defs/RadialChart"- },- {- "$ref": "#/$defs/SingleStackedBarChart"- },- {- "$ref": "#/$defs/ScatterChart"- },- {- "$ref": "#/$defs/AreaChart"- },- {- "$ref": "#/$defs/BarChart"- },- {- "$ref": "#/$defs/LineChart"- },- {- "$ref": "#/$defs/Table"- },- {- "$ref": "#/$defs/TagBlock"- },- {- "$ref": "#/$defs/Form"- },- {- "$ref": "#/$defs/Buttons"- },- {- "$ref": "#/$defs/Steps"- }- ]- }- }- },- "required": [- "value",- "trigger",- "content"- ],- "additionalProperties": false,- "id": "TabItem",- "description": "value is unique id, trigger is tab label, content is array of components"- },- "Carousel": {- "type": "object",- "properties": {- "children": {- "type": "array",- "items": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/TextContent"- },- {- "$ref": "#/$defs/MarkDownRenderer"- },- {- "$ref": "#/$defs/CardHeader"- },- {- "$ref": "#/$defs/Callout"- },- {- "$ref": "#/$defs/TextCallout"- },- {- "$ref": "#/$defs/CodeBlock"- },- {- "$ref": "#/$defs/Image"- },- {- "$ref": "#/$defs/ImageBlock"- },- {- "$ref": "#/$defs/ImageGallery"- },- {- "$ref": "#/$defs/Separator"- },- {- "$ref": "#/$defs/HorizontalBarChart"- },- {- "$ref": "#/$defs/RadarChart"- },- {- "$ref": "#/$defs/PieChart"- },- {- "$ref": "#/$defs/RadialChart"- },- {- "$ref": "#/$defs/SingleStackedBarChart"- },- {- "$ref": "#/$defs/ScatterChart"- },- {- "$ref": "#/$defs/AreaChart"- },- {- "$ref": "#/$defs/BarChart"- },- {- "$ref": "#/$defs/LineChart"- },- {- "$ref": "#/$defs/Table"- },- {- "$ref": "#/$defs/TagBlock"- },- {- "$ref": "#/$defs/Form"- },- {- "$ref": "#/$defs/Buttons"- },- {- "$ref": "#/$defs/Steps"- }- ]+ {+ "$ref": "#/$defs/Steps"}- }- },- "variant": {- "type": "string",- "enum": [- "card",- "sunk"- ]- }- },- "required": [- "children"- ],- "additionalProperties": false,- "id": "Carousel",- "description": "Horizontal scrollable carousel"- },- "Stack": {- "type": "object",- "properties": {- "children": {- "type": "array",- "items": {}- },- "direction": {- "type": "string",- "enum": [- "row",- "column"- ]- },- "gap": {- "type": "string",- "enum": [- "none",- "xs",- "s",- "m",- "l",- "xl",- "2xl"- ]- },- "align": {- "type": "string",- "enum": [- "start",- "center",- "end",- "stretch",- "baseline"- ]- },- "justify": {- "type": "string",- "enum": [- "start",- "center",- "end",- "between",- "around",- "evenly"- ]- },- "wrap": {- "type": "boolean"- }- },- "required": [- "children"- ],- "additionalProperties": false,- "id": "Stack",- "description": "Flex container. direction: \"row\"|\"column\" (default \"column\"). gap: \"none\"|\"xs\"|\"s\"|\"m\"|\"l\"|\"xl\"|\"2xl\" (default \"m\"). align: \"start\"|\"center\"|\"end\"|\"stretch\"|\"baseline\". justify: \"start\"|\"center\"|\"end\"|\"between\"|\"around\"|\"evenly\"."- },- "Slice": {- "type": "object",- "properties": {- "category": {- "type": "string"- },- "value": {- "type": "number"- }- },- "required": [- "category",- "value"- ],- "additionalProperties": false,- "id": "Slice",- "description": "One slice with label and numeric value"- },- "Label": {- "type": "object",- "properties": {- "text": {- "type": "string"- }- },- "required": [- "text"- ],- "additionalProperties": false,- "id": "Label",- "description": "Text label"- },- "SwitchGroup": {- "type": "object",- "properties": {- "name": {- "type": "string"- },- "items": {- "type": "array",- "items": {- "$ref": "#/$defs/SwitchItem"- }- },- "variant": {- "type": "string",- "enum": [- "clear",- "card",- "sunk"]- },- "value": {- "type": "object",- "propertyNames": {- "type": "string"- },- "additionalProperties": {- "type": "boolean"- }}- },- "required": [- "name",- "items"- ],- "additionalProperties": false,- "id": "SwitchGroup",- "description": "Group of switch toggles"+ }},- "SwitchItem": {- "type": "object",- "properties": {- "label": {- "type": "string"- },- "description": {- "type": "string"- },- "name": {- "type": "string"- },- "defaultChecked": {- "type": "boolean"- }- },- "required": [- "name"- ],- "additionalProperties": false,- "id": "SwitchItem",- "description": "Individual switch toggle"- },- "Accordion": {- "type": "object",- "properties": {- "items": {- "type": "array",- "items": {- "$ref": "#/$defs/AccordionItem"- }- }- },- "required": [- "items"- ],- "additionalProperties": false,- "id": "Accordion",- "description": "Collapsible sections"- },- "AccordionItem": {- "type": "object",- "properties": {- "value": {- "type": "string"- },- "trigger": {- "type": "string"- },- "content": {+ "required": [+ "value",+ "trigger",+ "content"+ ],+ "additionalProperties": false,+ "description": "value is unique id, trigger is tab label, content is array of components"+ },+ "Carousel": {+ "type": "object",+ "properties": {+ "children": {+ "type": "array",+ "items": {"type": "array","items": {"anyOf": [@@ -2508,155 +1821,416 @@}}},- "required": [- "value",- "trigger",- "content"- ],- "additionalProperties": false,- "id": "AccordionItem",- "description": "value is unique id, trigger is section title"+ "variant": {+ "type": "string",+ "enum": [+ "card",+ "sunk"+ ]+ }+ },+ "required": [+ "children"+ ],+ "additionalProperties": false,+ "description": "Horizontal scrollable carousel"+ },+ "Stack": {+ "type": "object",+ "properties": {+ "children": {+ "type": "array",+ "items": {}+ },+ "direction": {+ "type": "string",+ "enum": [+ "row",+ "column"+ ]+ },+ "gap": {+ "type": "string",+ "enum": [+ "none",+ "xs",+ "s",+ "m",+ "l",+ "xl",+ "2xl"+ ]+ },+ "align": {+ "type": "string",+ "enum": [+ "start",+ "center",+ "end",+ "stretch",+ "baseline"+ ]+ },+ "justify": {+ "type": "string",+ "enum": [+ "start",+ "center",+ "end",+ "between",+ "around",+ "evenly"+ ]+ },+ "wrap": {+ "type": "boolean"+ }},- "Tag": {- "type": "object",- "properties": {- "text": {- "type": "string"- },- "icon": {- "type": "string"- },- "size": {- "type": "string",- "enum": [- "sm",- "md",- "lg"- ]- },- "variant": {- "type": "string",- "enum": [- "neutral",- "info",- "success",- "warning",- "danger"- ]- }+ "required": [+ "children"+ ],+ "additionalProperties": false,+ "description": "Flex container. direction: \"row\"|\"column\" (default \"column\"). gap: \"none\"|\"xs\"|\"s\"|\"m\"|\"l\"|\"xl\"|\"2xl\" (default \"m\"). align: \"start\"|\"center\"|\"end\"|\"stretch\"|\"baseline\". justify: \"start\"|\"center\"|\"end\"|\"between\"|\"around\"|\"evenly\"."+ },+ "Slice": {+ "type": "object",+ "properties": {+ "category": {+ "type": "string"},- "required": [- "text"- ],- "additionalProperties": false,- "id": "Tag",- "description": "Styled tag/badge with optional icon and variant"+ "value": {+ "type": "number"+ }},- "Modal": {- "type": "object",- "properties": {- "title": {+ "required": [+ "category",+ "value"+ ],+ "additionalProperties": false,+ "description": "One slice with label and numeric value"+ },+ "Label": {+ "type": "object",+ "properties": {+ "text": {+ "type": "string"+ }+ },+ "required": [+ "text"+ ],+ "additionalProperties": false,+ "description": "Text label"+ },+ "SwitchGroup": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/SwitchItem"+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "clear",+ "card",+ "sunk"+ ]+ },+ "value": {+ "type": "object",+ "propertyNames": {"type": "string"},- "open": {+ "additionalProperties": {"type": "boolean"- },- "children": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/$defs/TextContent"- },- {- "$ref": "#/$defs/MarkDownRenderer"- },- {- "$ref": "#/$defs/CardHeader"- },- {- "$ref": "#/$defs/Callout"- },- {- "$ref": "#/$defs/TextCallout"- },- {- "$ref": "#/$defs/CodeBlock"- },- {- "$ref": "#/$defs/Image"- },- {- "$ref": "#/$defs/ImageBlock"- },- {- "$ref": "#/$defs/ImageGallery"- },- {- "$ref": "#/$defs/Separator"- },- {- "$ref": "#/$defs/HorizontalBarChart"- },- {- "$ref": "#/$defs/RadarChart"- },- {- "$ref": "#/$defs/PieChart"- },- {- "$ref": "#/$defs/RadialChart"- },- {- "$ref": "#/$defs/SingleStackedBarChart"- },- {- "$ref": "#/$defs/ScatterChart"- },- {- "$ref": "#/$defs/AreaChart"- },- {- "$ref": "#/$defs/BarChart"- },- {- "$ref": "#/$defs/LineChart"- },- {- "$ref": "#/$defs/Table"- },- {- "$ref": "#/$defs/TagBlock"- },- {- "$ref": "#/$defs/Form"- },- {- "$ref": "#/$defs/Buttons"- },- {- "$ref": "#/$defs/Steps"- }- ]- }- },- "size": {- "type": "string",- "enum": [- "sm",- "md",- "lg"+ }+ }+ },+ "required": [+ "name",+ "items"+ ],+ "additionalProperties": false,+ "description": "Group of switch toggles"+ },+ "SwitchItem": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "description": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "defaultChecked": {+ "type": "boolean"+ }+ },+ "required": [+ "name"+ ],+ "additionalProperties": false,+ "description": "Individual switch toggle"+ },+ "Accordion": {+ "type": "object",+ "properties": {+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/AccordionItem"+ }+ }+ },+ "required": [+ "items"+ ],+ "additionalProperties": false,+ "description": "Collapsible sections"+ },+ "AccordionItem": {+ "type": "object",+ "properties": {+ "value": {+ "type": "string"+ },+ "trigger": {+ "type": "string"+ },+ "content": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/TextContent"+ },+ {+ "$ref": "#/$defs/MarkDownRenderer"+ },+ {+ "$ref": "#/$defs/CardHeader"+ },+ {+ "$ref": "#/$defs/Callout"+ },+ {+ "$ref": "#/$defs/TextCallout"+ },+ {+ "$ref": "#/$defs/CodeBlock"+ },+ {+ "$ref": "#/$defs/Image"+ },+ {+ "$ref": "#/$defs/ImageBlock"+ },+ {+ "$ref": "#/$defs/ImageGallery"+ },+ {+ "$ref": "#/$defs/Separator"+ },+ {+ "$ref": "#/$defs/HorizontalBarChart"+ },+ {+ "$ref": "#/$defs/RadarChart"+ },+ {+ "$ref": "#/$defs/PieChart"+ },+ {+ "$ref": "#/$defs/RadialChart"+ },+ {+ "$ref": "#/$defs/SingleStackedBarChart"+ },+ {+ "$ref": "#/$defs/ScatterChart"+ },+ {+ "$ref": "#/$defs/AreaChart"+ },+ {+ "$ref": "#/$defs/BarChart"+ },+ {+ "$ref": "#/$defs/LineChart"+ },+ {+ "$ref": "#/$defs/Table"+ },+ {+ "$ref": "#/$defs/TagBlock"+ },+ {+ "$ref": "#/$defs/Form"+ },+ {+ "$ref": "#/$defs/Buttons"+ },+ {+ "$ref": "#/$defs/Steps"+ }+ ]+ }+ }+ },+ "required": [+ "value",+ "trigger",+ "content"+ ],+ "additionalProperties": false,+ "description": "value is unique id, trigger is section title"+ },+ "Tag": {+ "type": "object",+ "properties": {+ "text": {+ "type": "string"+ },+ "icon": {+ "type": "string"+ },+ "size": {+ "type": "string",+ "enum": [+ "sm",+ "md",+ "lg"+ ]+ },+ "variant": {+ "type": "string",+ "enum": [+ "neutral",+ "info",+ "success",+ "warning",+ "danger"+ ]+ }+ },+ "required": [+ "text"+ ],+ "additionalProperties": false,+ "description": "Styled tag/badge with optional icon and variant"+ },+ "Modal": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string"+ },+ "open": {+ "type": "boolean"+ },+ "children": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/TextContent"+ },+ {+ "$ref": "#/$defs/MarkDownRenderer"+ },+ {+ "$ref": "#/$defs/CardHeader"+ },+ {+ "$ref": "#/$defs/Callout"+ },+ {+ "$ref": "#/$defs/TextCallout"+ },+ {+ "$ref": "#/$defs/CodeBlock"+ },+ {+ "$ref": "#/$defs/Image"+ },+ {+ "$ref": "#/$defs/ImageBlock"+ },+ {+ "$ref": "#/$defs/ImageGallery"+ },+ {+ "$ref": "#/$defs/Separator"+ },+ {+ "$ref": "#/$defs/HorizontalBarChart"+ },+ {+ "$ref": "#/$defs/RadarChart"+ },+ {+ "$ref": "#/$defs/PieChart"+ },+ {+ "$ref": "#/$defs/RadialChart"+ },+ {+ "$ref": "#/$defs/SingleStackedBarChart"+ },+ {+ "$ref": "#/$defs/ScatterChart"+ },+ {+ "$ref": "#/$defs/AreaChart"+ },+ {+ "$ref": "#/$defs/BarChart"+ },+ {+ "$ref": "#/$defs/LineChart"+ },+ {+ "$ref": "#/$defs/Table"+ },+ {+ "$ref": "#/$defs/TagBlock"+ },+ {+ "$ref": "#/$defs/Form"+ },+ {+ "$ref": "#/$defs/Buttons"+ },+ {+ "$ref": "#/$defs/Steps"+ }]}},- "required": [- "title",- "children"- ],- "additionalProperties": false,- "id": "Modal",- "description": "Modal dialog. open is a reactive $boolean binding — set to true to open, X/Escape/backdrop auto-closes. Put Form with buttons inside children."- }+ "size": {+ "type": "string",+ "enum": [+ "sm",+ "md",+ "lg"+ ]+ }+ },+ "required": [+ "title",+ "children"+ ],+ "additionalProperties": false,+ "description": "Modal dialog. open is a reactive $boolean binding — set to true to open, X/Escape/backdrop auto-closes. Put Form with buttons inside children."}}}diff --git a/docs/generated/playground-system-prompt.spec.json b/docs/generated/playground-system-prompt.spec.jsonnew file mode 100644index 000000000..74bfb45ed--- /dev/null+++ b/docs/generated/playground-system-prompt.spec.json@@ -0,0 +1,2608 @@+{+ "root": "Stack",+ "components": {+ "Card": {+ "signature": "Card(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | Tabs | Carousel | Stack)[], variant?: \"card\" | \"sunk\" | \"clear\", direction?: \"row\" | \"column\", gap?: \"none\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"2xl\", align?: \"start\" | \"center\" | \"end\" | \"stretch\" | \"baseline\", justify?: \"start\" | \"center\" | \"end\" | \"between\" | \"around\" | \"evenly\", wrap?: boolean)",+ "description": "Styled container. variant: \"card\" (default, elevated) | \"sunk\" (recessed) | \"clear\" (transparent). Always full width. Accepts all Stack flex params (default: direction \"column\"). Cards flex to share space in row/wrap layouts."+ },+ "CardHeader": {+ "signature": "CardHeader(title?: string, subtitle?: string)",+ "description": "Header with optional title and subtitle"+ },+ "TextContent": {+ "signature": "TextContent(text: string, size?: \"small\" | \"default\" | \"large\" | \"small-heavy\" | \"large-heavy\")",+ "description": "Text block. Supports markdown. Optional size: \"small\" | \"default\" | \"large\" | \"small-heavy\" | \"large-heavy\"."+ },+ "MarkDownRenderer": {+ "signature": "MarkDownRenderer(textMarkdown: string, variant?: \"clear\" | \"card\" | \"sunk\")",+ "description": "Renders markdown text with optional container variant"+ },+ "Callout": {+ "signature": "Callout(variant: \"info\" | \"warning\" | \"error\" | \"success\" | \"neutral\", title: string, description: string, visible?: $binding<boolean>)",+ "description": "Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false."+ },+ "TextCallout": {+ "signature": "TextCallout(variant?: \"neutral\" | \"info\" | \"warning\" | \"success\" | \"danger\", title?: string, description?: string)",+ "description": "Text callout with variant, title, and description"+ },+ "Image": {+ "signature": "Image(alt: string, src?: string)",+ "description": "Image with alt text and optional URL"+ },+ "ImageBlock": {+ "signature": "ImageBlock(src: string, alt?: string)",+ "description": "Image block with loading state"+ },+ "ImageGallery": {+ "signature": "ImageGallery(images: {src: string, alt?: string, details?: string}[])",+ "description": "Gallery grid of images with modal preview"+ },+ "CodeBlock": {+ "signature": "CodeBlock(language: string, codeString: string)",+ "description": "Syntax-highlighted code block"+ },+ "Table": {+ "signature": "Table(columns: Col[])",+ "description": "Data table — column-oriented. Each Col holds its own data array."+ },+ "Col": {+ "signature": "Col(label: string, data: any, type?: \"string\" | \"number\" | \"action\")",+ "description": "Column definition — holds label + data array"+ },+ "BarChart": {+ "signature": "BarChart(labels: string[], series: Series[], variant?: \"grouped\" | \"stacked\", xLabel?: string, yLabel?: string)",+ "description": "Vertical bars; use for comparing values across categories with one or more series"+ },+ "LineChart": {+ "signature": "LineChart(labels: string[], series: Series[], variant?: \"linear\" | \"natural\" | \"step\", xLabel?: string, yLabel?: string)",+ "description": "Lines over categories; use for trends and continuous data over time"+ },+ "AreaChart": {+ "signature": "AreaChart(labels: string[], series: Series[], variant?: \"linear\" | \"natural\" | \"step\", xLabel?: string, yLabel?: string)",+ "description": "Filled area under lines; use for cumulative totals or volume trends over time"+ },+ "RadarChart": {+ "signature": "RadarChart(labels: string[], series: Series[])",+ "description": "Spider/web chart; use for comparing multiple variables across one or more entities"+ },+ "HorizontalBarChart": {+ "signature": "HorizontalBarChart(labels: string[], series: Series[], variant?: \"grouped\" | \"stacked\", xLabel?: string, yLabel?: string)",+ "description": "Horizontal bars; prefer when category labels are long or for ranked lists"+ },+ "Series": {+ "signature": "Series(category: string, values: number[])",+ "description": "One data series"+ },+ "PieChart": {+ "signature": "PieChart(labels: string[], values: number[], variant?: \"pie\" | \"donut\", appearance?: \"circular\" | \"semiCircular\")",+ "description": "Circular slices; use plucked arrays: PieChart(data.categories, data.values)"+ },+ "RadialChart": {+ "signature": "RadialChart(labels: string[], values: number[])",+ "description": "Radial bars; use plucked arrays: RadialChart(data.categories, data.values)"+ },+ "SingleStackedBarChart": {+ "signature": "SingleStackedBarChart(labels: string[], values: number[])",+ "description": "Single horizontal stacked bar; use plucked arrays: SingleStackedBarChart(data.categories, data.values)"+ },+ "Slice": {+ "signature": "Slice(category: string, value: number)",+ "description": "One slice with label and numeric value"+ },+ "ScatterChart": {+ "signature": "ScatterChart(datasets: ScatterSeries[], xLabel?: string, yLabel?: string)",+ "description": "X/Y scatter plot; use for correlations, distributions, and clustering"+ },+ "ScatterSeries": {+ "signature": "ScatterSeries(name: string, points: Point[])",+ "description": "Named dataset"+ },+ "Point": {+ "signature": "Point(x: number, y: number, z?: number)",+ "description": "Data point with numeric coordinates"+ },+ "Form": {+ "signature": "Form(name: string, buttons: Buttons, fields?: FormControl[])",+ "description": "Form container with fields and explicit action buttons"+ },+ "FormControl": {+ "signature": "FormControl(label: string, input: Input | TextArea | Select | DatePicker | Slider | CheckBoxGroup | RadioGroup, hint?: string)",+ "description": "Field with label, input component, and optional hint text"+ },+ "Label": {+ "signature": "Label(text: string)",+ "description": "Text label"+ },+ "Input": {+ "signature": "Input(name: string, placeholder?: string, type?: \"text\" | \"email\" | \"password\" | \"number\" | \"url\", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)",+ "description": ""+ },+ "TextArea": {+ "signature": "TextArea(name: string, placeholder?: string, rows?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)",+ "description": ""+ },+ "Select": {+ "signature": "Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>, size?: \"small\" | \"medium\" | \"large\")",+ "description": ""+ },+ "SelectItem": {+ "signature": "SelectItem(value: string, label: string)",+ "description": "Option for Select"+ },+ "DatePicker": {+ "signature": "DatePicker(name: string, mode?: \"single\" | \"range\", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<any>)",+ "description": ""+ },+ "Slider": {+ "signature": "Slider(name: string, variant: \"continuous\" | \"discrete\", min: number, max: number, step?: number, defaultValue?: number[], label?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<number[]>)",+ "description": "Numeric slider input; supports continuous and discrete (stepped) variants"+ },+ "CheckBoxGroup": {+ "signature": "CheckBoxGroup(name: string, items: CheckBoxItem[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<Record<string, boolean>>)",+ "description": ""+ },+ "CheckBoxItem": {+ "signature": "CheckBoxItem(label: string, description: string, name: string, defaultChecked?: boolean)",+ "description": ""+ },+ "RadioGroup": {+ "signature": "RadioGroup(name: string, items: RadioItem[], defaultValue?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)",+ "description": ""+ },+ "RadioItem": {+ "signature": "RadioItem(label: string, description: string, value: string)",+ "description": ""+ },+ "SwitchGroup": {+ "signature": "SwitchGroup(name: string, items: SwitchItem[], variant?: \"clear\" | \"card\" | \"sunk\", value?: $binding<Record<string, boolean>>)",+ "description": "Group of switch toggles"+ },+ "SwitchItem": {+ "signature": "SwitchItem(label?: string, description?: string, name: string, defaultChecked?: boolean)",+ "description": "Individual switch toggle"+ },+ "Button": {+ "signature": "Button(label: string, action?: ActionExpression, variant?: \"primary\" | \"secondary\" | \"tertiary\", type?: \"normal\" | \"destructive\", size?: \"extra-small\" | \"small\" | \"medium\" | \"large\")",+ "description": "Clickable button"+ },+ "Buttons": {+ "signature": "Buttons(buttons: Button[], direction?: \"row\" | \"column\")",+ "description": "Group of Button components. direction: \"row\" (default) | \"column\"."+ },+ "Stack": {+ "signature": "Stack(children: any[], direction?: \"row\" | \"column\", gap?: \"none\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"2xl\", align?: \"start\" | \"center\" | \"end\" | \"stretch\" | \"baseline\", justify?: \"start\" | \"center\" | \"end\" | \"between\" | \"around\" | \"evenly\", wrap?: boolean)",+ "description": "Flex container. direction: \"row\"|\"column\" (default \"column\"). gap: \"none\"|\"xs\"|\"s\"|\"m\"|\"l\"|\"xl\"|\"2xl\" (default \"m\"). align: \"start\"|\"center\"|\"end\"|\"stretch\"|\"baseline\". justify: \"start\"|\"center\"|\"end\"|\"between\"|\"around\"|\"evenly\"."+ },+ "Tabs": {+ "signature": "Tabs(items: TabItem[])",+ "description": "Tabbed container"+ },+ "TabItem": {+ "signature": "TabItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[])",+ "description": "value is unique id, trigger is tab label, content is array of components"+ },+ "Accordion": {+ "signature": "Accordion(items: AccordionItem[])",+ "description": "Collapsible sections"+ },+ "AccordionItem": {+ "signature": "AccordionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[])",+ "description": "value is unique id, trigger is section title"+ },+ "Steps": {+ "signature": "Steps(items: StepsItem[])",+ "description": "Step-by-step guide"+ },+ "StepsItem": {+ "signature": "StepsItem(title: string, details: string)",+ "description": "title and details text for one step"+ },+ "Carousel": {+ "signature": "Carousel(children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[][], variant?: \"card\" | \"sunk\")",+ "description": "Horizontal scrollable carousel"+ },+ "Separator": {+ "signature": "Separator(orientation?: \"horizontal\" | \"vertical\", decorative?: boolean)",+ "description": "Visual divider between content sections"+ },+ "TagBlock": {+ "signature": "TagBlock(tags: string[])",+ "description": "tags is an array of strings"+ },+ "Tag": {+ "signature": "Tag(text: string, icon?: string, size?: \"sm\" | \"md\" | \"lg\", variant?: \"neutral\" | \"info\" | \"success\" | \"warning\" | \"danger\")",+ "description": "Styled tag/badge with optional icon and variant"+ },+ "Modal": {+ "signature": "Modal(title: string, open?: $binding<boolean>, children: (TextContent | MarkDownRenderer | CardHeader | Callout | TextCallout | CodeBlock | Image | ImageBlock | ImageGallery | Separator | HorizontalBarChart | RadarChart | PieChart | RadialChart | SingleStackedBarChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps)[], size?: \"sm\" | \"md\" | \"lg\")",+ "description": "Modal dialog. open is a reactive $boolean binding — set to true to open, X/Escape/backdrop auto-closes. Put Form with buttons inside children."+ }+ },+ "componentGroups": [+ {+ "name": "Layout",+ "components": [+ "Stack",+ "Tabs",+ "TabItem",+ "Accordion",+ "AccordionItem",+ "Steps",+ "StepsItem",+ "Carousel",+ "Separator",+ "Modal"+ ],+ "notes": [+ "- For grid-like layouts, use Stack with direction \"row\" and wrap set to true.",+ "- Prefer justify \"start\" (or omit justify) with wrap=true for stable columns instead of uneven gutters.",+ "- Use nested Stacks when you need explicit rows/sections.",+ "- Show/hide sections: $editId != \"\" ? Card([editForm]) : null",+ "- Modal: Modal(\"Title\", $showModal, [content]) — $showModal is boolean, X/Escape auto-closes. Put Form with its own buttons inside children.",+ "- Use Tabs for alternative views (chart types, data sections) — no $variable needed",+ "- Shared filter across Tabs: same $days binding in Query args works across all TabItems"+ ]+ },+ {+ "name": "Content",+ "components": [+ "Card",+ "CardHeader",+ "TextContent",+ "MarkDownRenderer",+ "Callout",+ "TextCallout",+ "Image",+ "ImageBlock",+ "ImageGallery",+ "CodeBlock"+ ],+ "notes": [+ "- Use Cards to group related KPIs or sections. Stack with direction \"row\" for side-by-side layouts.",+ "- Success toast: Callout(\"success\", \"Saved\", \"Done.\", $showSuccess) — use @Set($showSuccess, true) in save action, auto-dismisses after 3s. For errors: result.status == \"error\" ? Callout(\"error\", \"Failed\", result.error) : null",+ "- KPI card: Card([TextContent(\"Label\", \"small\"), TextContent(\"\" + @Count(@Filter(data.rows, \"field\", \"==\", \"value\")), \"large-heavy\")])"+ ]+ },+ {+ "name": "Tables",+ "components": [+ "Table",+ "Col"+ ],+ "notes": [+ "- Table is COLUMN-oriented: Table([Col(\"Label\", dataArray), Col(\"Count\", countArray, \"number\")]). Use array pluck for data: data.rows.fieldName",+ "- Col data can be component arrays for styled cells: Col(\"Status\", @Each(data.rows, \"item\", Tag(item.status, null, \"sm\", item.status == \"open\" ? \"success\" : \"danger\")))",+ "- Row actions: Col(\"Actions\", @Each(data.rows, \"t\", Button(\"Edit\", Action([@Set($showEdit, true), @Set($editId, t.id)]))))",+ "- Sortable: sorted = @Sort(data.rows, $sortField, \"desc\"). Bind $sortField to Select. Use sorted.fieldName for Col data",+ "- Searchable: filtered = @Filter(data.rows, \"title\", \"contains\", $search). Bind $search to Input",+ "- Chain sort + filter: filtered = @Filter(...) then sorted = @Sort(filtered, ...) — use sorted for both Table and Charts",+ "- Empty state: @Count(data.rows) > 0 ? Table([...]) : TextContent(\"No data yet\")"+ ]+ },+ {+ "name": "Charts (2D)",+ "components": [+ "BarChart",+ "LineChart",+ "AreaChart",+ "RadarChart",+ "HorizontalBarChart",+ "Series"+ ],+ "notes": [+ "- Charts accept column arrays: LineChart(labels, [Series(\"Name\", values)]). Use array pluck: LineChart(data.rows.day, [Series(\"Views\", data.rows.views)])",+ "- Use Cards to wrap charts with CardHeader for titled sections",+ "- Chart + Table from same source: use @Sort or @Filter result for both LineChart and Table Col data",+ "- Multiple chart views: use Tabs — Tabs([TabItem(\"line\", \"Line\", [LineChart(...)]), TabItem(\"bar\", \"Bar\", [BarChart(...)])])"+ ]+ },+ {+ "name": "Charts (1D)",+ "components": [+ "PieChart",+ "RadialChart",+ "SingleStackedBarChart",+ "Slice"+ ],+ "notes": [+ "- PieChart and BarChart need NUMBERS, not objects. For list data, use @Count(@Filter(...)) to aggregate:",+ "- PieChart from list: `PieChart([\"Low\", \"Med\", \"High\"], [@Count(@Filter(data.rows, \"priority\", \"==\", \"low\")), @Count(@Filter(data.rows, \"priority\", \"==\", \"medium\")), @Count(@Filter(data.rows, \"priority\", \"==\", \"high\"))], \"donut\")`",+ "- KPI from count: `TextContent(\"\" + @Count(@Filter(data.rows, \"status\", \"==\", \"open\")), \"large-heavy\")`"+ ]+ },+ {+ "name": "Charts (Scatter)",+ "components": [+ "ScatterChart",+ "ScatterSeries",+ "Point"+ ]+ },+ {+ "name": "Forms",+ "components": [+ "Form",+ "FormControl",+ "Label",+ "Input",+ "TextArea",+ "Select",+ "SelectItem",+ "DatePicker",+ "Slider",+ "CheckBoxGroup",+ "CheckBoxItem",+ "RadioGroup",+ "RadioItem",+ "SwitchGroup",+ "SwitchItem"+ ],+ "notes": [+ "- For Form fields, define EACH FormControl as its own reference — do NOT inline all controls in one array. This allows progressive field-by-field streaming.",+ "- NEVER nest Form inside Form — each Form should be a standalone container.",+ "- Form requires explicit buttons. Always pass a Buttons(...) reference as the third Form argument.",+ "- rules is an optional object: {required: true, email: true, minLength: 8, maxLength: 100}",+ "- Available rules: required, email, min, max, minLength, maxLength, pattern, url, numeric",+ "- The renderer shows error messages automatically — do NOT generate error text in the UI",+ "- Conditional fields: $country == \"US\" ? stateField : $country == \"UK\" ? postcodeField : addressField",+ "- Edit form in Modal: Modal(\"Edit\", $showEdit, [Form(\"edit\", Buttons([saveBtn, cancelBtn]), [fields...])]). Save button should include @Set($showEdit, false) to close modal."+ ]+ },+ {+ "name": "Buttons",+ "components": [+ "Button",+ "Buttons"+ ],+ "notes": [+ "- Toggle in @Each: @Each(rows, \"t\", Button(t.status == \"open\" ? \"Close\" : \"Reopen\", Action([...])))"+ ]+ },+ {+ "name": "Data Display",+ "components": [+ "TagBlock",+ "Tag"+ ],+ "notes": [+ "- Color-mapped Tag: Tag(value, null, \"sm\", value == \"high\" ? \"danger\" : value == \"medium\" ? \"warning\" : \"neutral\")"+ ]+ }+ ],+ "schema": {+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "type": "object",+ "properties": {+ "Card": {+ "$ref": "#/$defs/Card"+ },+ "CardHeader": {+ "$ref": "#/$defs/CardHeader"+ },+ "TextContent": {+ "$ref": "#/$defs/TextContent"+ },+ "MarkDownRenderer": {+ "$ref": "#/$defs/MarkDownRenderer"+ },+ "Callout": {+ "$ref": "#/$defs/Callout"+ },+ "TextCallout": {+ "$ref": "#/$defs/TextCallout"+ },+ "Image": {+ "$ref": "#/$defs/Image"+ },+ "ImageBlock": {+ "$ref": "#/$defs/ImageBlock"+ },+ "ImageGallery": {+ "$ref": "#/$defs/ImageGallery"+ },+ "CodeBlock": {+ "$ref": "#/$defs/CodeBlock"+ },+ "Table": {+ "$ref": "#/$defs/Table"+ },+ "Col": {+ "$ref": "#/$defs/Col"+ },+ "BarChart": {+ "$ref": "#/$defs/BarChart"+ },+ "LineChart": {+ "$ref": "#/$defs/LineChart"+ },+ "AreaChart": {+ "$ref": "#/$defs/AreaChart"+ },+ "RadarChart": {+ "$ref": "#/$defs/RadarChart"+ },+ "HorizontalBarChart": {+ "$ref": "#/$defs/HorizontalBarChart"+ },+ "Series": {+ "$ref": "#/$defs/Series"+ },+ "PieChart": {+ "$ref": "#/$defs/PieChart"+ },+ "RadialChart": {+ "$ref": "#/$defs/RadialChart"+ },+ "SingleStackedBarChart": {+ "$ref": "#/$defs/SingleStackedBarChart"+ },+ "Slice": {+ "$ref": "#/$defs/Slice"+ },+ "ScatterChart": {+ "$ref": "#/$defs/ScatterChart"+ },+ "ScatterSeries": {+ "$ref": "#/$defs/ScatterSeries"+ },+ "Point": {+ "$ref": "#/$defs/Point"+ },+ "Form": {+ "$ref": "#/$defs/Form"+ },+ "FormControl": {+ "$ref": "#/$defs/FormControl"+ },+ "Label": {+ "$ref": "#/$defs/Label"+ },+ "Input": {+ "$ref": "#/$defs/Input"+ },+ "TextArea": {+ "$ref": "#/$defs/TextArea"+ },+ "Select": {+ "$ref": "#/$defs/Select"+ },+ "SelectItem": {+ "$ref": "#/$defs/SelectItem"+ },+ "DatePicker": {+ "$ref": "#/$defs/DatePicker"+ },+ "Slider": {+ "$ref": "#/$defs/Slider"+ },+ "CheckBoxGroup": {+ "$ref": "#/$defs/CheckBoxGroup"+ },+ "CheckBoxItem": {+ "$ref": "#/$defs/CheckBoxItem"+ },+ "RadioGroup": {+ "$ref": "#/$defs/RadioGroup"+ },+ "RadioItem": {+ "$ref": "#/$defs/RadioItem"+ },+ "SwitchGroup": {+ "$ref": "#/$defs/SwitchGroup"+ },+ "SwitchItem": {+ "$ref": "#/$defs/SwitchItem"+ },+ "Button": {+ "$ref": "#/$defs/Button"+ },+ "Buttons": {+ "$ref": "#/$defs/Buttons"+ },+ "Stack": {+ "$ref": "#/$defs/Stack"+ },+ "Tabs": {+ "$ref": "#/$defs/Tabs"+ },+ "TabItem": {+ "$ref": "#/$defs/TabItem"+ },+ "Accordion": {+ "$ref": "#/$defs/Accordion"+ },+ "AccordionItem": {+ "$ref": "#/$defs/AccordionItem"+ },+ "Steps": {+ "$ref": "#/$defs/Steps"+ },+ "StepsItem": {+ "$ref": "#/$defs/StepsItem"+ },+ "Carousel": {+ "$ref": "#/$defs/Carousel"+ },+ "Separator": {+ "$ref": "#/$defs/Separator"+ },+ "TagBlock": {+ "$ref": "#/$defs/TagBlock"+ },+ "Tag": {+ "$ref": "#/$defs/Tag"+ },+ "Modal": {+ "$ref": "#/$defs/Modal"+ }+ },+ "required": [+ "Card",+ "CardHeader",+ "TextContent",+ "MarkDownRenderer",+ "Callout",+ "TextCallout",+ "Image",+ "ImageBlock",+ "ImageGallery",+ "CodeBlock",+ "Table",+ "Col",+ "BarChart",+ "LineChart",+ "AreaChart",+ "RadarChart",+ "HorizontalBarChart",+ "Series",+ "PieChart",+ "RadialChart",+ "SingleStackedBarChart",+ "Slice",+ "ScatterChart",+ "ScatterSeries",+ "Point",+ "Form",+ "FormControl",+ "Label",+ "Input",+ "TextArea",+ "Select",+ "SelectItem",+ "DatePicker",+ "Slider",+ "CheckBoxGroup",+ "CheckBoxItem",+ "RadioGroup",+ "RadioItem",+ "SwitchGroup",+ "SwitchItem",+ "Button",+ "Buttons",+ "Stack",+ "Tabs",+ "TabItem",+ "Accordion",+ "AccordionItem",+ "Steps",+ "StepsItem",+ "Carousel",+ "Separator",+ "TagBlock",+ "Tag",+ "Modal"+ ],+ "additionalProperties": false,+ "$defs": {+ "Card": {+ "type": "object",+ "properties": {+ "children": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/TextContent"+ },+ {+ "$ref": "#/$defs/MarkDownRenderer"+ },+ {+ "$ref": "#/$defs/CardHeader"+ },+ {+ "$ref": "#/$defs/Callout"+ },+ {+ "$ref": "#/$defs/TextCallout"+ },+ {+ "$ref": "#/$defs/CodeBlock"+ },+ {+ "$ref": "#/$defs/Image"+ },+ {+ "$ref": "#/$defs/ImageBlock"+ },+ {+ "$ref": "#/$defs/ImageGallery"+ },+ {+ "$ref": "#/$defs/Separator"+ },+ {+ "$ref": "#/$defs/HorizontalBarChart"+ },+ {+ "$ref": "#/$defs/RadarChart"+ },+ {+ "$ref": "#/$defs/PieChart"+ },+ {+ "$ref": "#/$defs/RadialChart"+ },+ {+ "$ref": "#/$defs/SingleStackedBarChart"+ },+ {+ "$ref": "#/$defs/ScatterChart"+ },+ {+ "$ref": "#/$defs/AreaChart"+ },+ {+ "$ref": "#/$defs/BarChart"+ },+ {+ "$ref": "#/$defs/LineChart"+ },+ {+ "$ref": "#/$defs/Table"+ },+ {+ "$ref": "#/$defs/TagBlock"+ },+ {+ "$ref": "#/$defs/Form"+ },+ {+ "$ref": "#/$defs/Buttons"+ },+ {+ "$ref": "#/$defs/Steps"+ },+ {+ "$ref": "#/$defs/Tabs"+ },+ {+ "$ref": "#/$defs/Carousel"+ },+ {+ "$ref": "#/$defs/Stack"+ }+ ]+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "card",+ "sunk",+ "clear"+ ]+ },+ "direction": {+ "type": "string",+ "enum": [+ "row",+ "column"+ ]+ },+ "gap": {+ "type": "string",+ "enum": [+ "none",+ "xs",+ "s",+ "m",+ "l",+ "xl",+ "2xl"+ ]+ },+ "align": {+ "type": "string",+ "enum": [+ "start",+ "center",+ "end",+ "stretch",+ "baseline"+ ]+ },+ "justify": {+ "type": "string",+ "enum": [+ "start",+ "center",+ "end",+ "between",+ "around",+ "evenly"+ ]+ },+ "wrap": {+ "type": "boolean"+ }+ },+ "required": [+ "children"+ ],+ "additionalProperties": false,+ "description": "Styled container. variant: \"card\" (default, elevated) | \"sunk\" (recessed) | \"clear\" (transparent). Always full width. Accepts all Stack flex params (default: direction \"column\"). Cards flex to share space in row/wrap layouts."+ },+ "TextContent": {+ "type": "object",+ "properties": {+ "text": {+ "type": "string"+ },+ "size": {+ "type": "string",+ "enum": [+ "small",+ "default",+ "large",+ "small-heavy",+ "large-heavy"+ ]+ }+ },+ "required": [+ "text"+ ],+ "additionalProperties": false,+ "description": "Text block. Supports markdown. Optional size: \"small\" | \"default\" | \"large\" | \"small-heavy\" | \"large-heavy\"."+ },+ "MarkDownRenderer": {+ "type": "object",+ "properties": {+ "textMarkdown": {+ "type": "string"+ },+ "variant": {+ "type": "string",+ "enum": [+ "clear",+ "card",+ "sunk"+ ]+ }+ },+ "required": [+ "textMarkdown"+ ],+ "additionalProperties": false,+ "description": "Renders markdown text with optional container variant"+ },+ "CardHeader": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string"+ },+ "subtitle": {+ "type": "string"+ }+ },+ "additionalProperties": false,+ "description": "Header with optional title and subtitle"+ },+ "Callout": {+ "type": "object",+ "properties": {+ "variant": {+ "type": "string",+ "enum": [+ "info",+ "warning",+ "error",+ "success",+ "neutral"+ ]+ },+ "title": {+ "type": "string"+ },+ "description": {+ "type": "string"+ },+ "visible": {+ "type": "boolean"+ }+ },+ "required": [+ "variant",+ "title",+ "description"+ ],+ "additionalProperties": false,+ "description": "Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false."+ },+ "TextCallout": {+ "type": "object",+ "properties": {+ "variant": {+ "type": "string",+ "enum": [+ "neutral",+ "info",+ "warning",+ "success",+ "danger"+ ]+ },+ "title": {+ "type": "string"+ },+ "description": {+ "type": "string"+ }+ },+ "additionalProperties": false,+ "description": "Text callout with variant, title, and description"+ },+ "CodeBlock": {+ "type": "object",+ "properties": {+ "language": {+ "type": "string"+ },+ "codeString": {+ "type": "string"+ }+ },+ "required": [+ "language",+ "codeString"+ ],+ "additionalProperties": false,+ "description": "Syntax-highlighted code block"+ },+ "Image": {+ "type": "object",+ "properties": {+ "alt": {+ "type": "string"+ },+ "src": {+ "type": "string"+ }+ },+ "required": [+ "alt"+ ],+ "additionalProperties": false,+ "description": "Image with alt text and optional URL"+ },+ "ImageBlock": {+ "type": "object",+ "properties": {+ "src": {+ "type": "string"+ },+ "alt": {+ "type": "string"+ }+ },+ "required": [+ "src"+ ],+ "additionalProperties": false,+ "description": "Image block with loading state"+ },+ "ImageGallery": {+ "type": "object",+ "properties": {+ "images": {+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "src": {+ "type": "string"+ },+ "alt": {+ "type": "string"+ },+ "details": {+ "type": "string"+ }+ },+ "required": [+ "src"+ ],+ "additionalProperties": false+ }+ }+ },+ "required": [+ "images"+ ],+ "additionalProperties": false,+ "description": "Gallery grid of images with modal preview"+ },+ "Separator": {+ "type": "object",+ "properties": {+ "orientation": {+ "type": "string",+ "enum": [+ "horizontal",+ "vertical"+ ]+ },+ "decorative": {+ "type": "boolean"+ }+ },+ "additionalProperties": false,+ "description": "Visual divider between content sections"+ },+ "HorizontalBarChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "series": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Series"+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "grouped",+ "stacked"+ ]+ },+ "xLabel": {+ "type": "string"+ },+ "yLabel": {+ "type": "string"+ }+ },+ "required": [+ "labels",+ "series"+ ],+ "additionalProperties": false,+ "description": "Horizontal bars; prefer when category labels are long or for ranked lists"+ },+ "Series": {+ "type": "object",+ "properties": {+ "category": {+ "type": "string"+ },+ "values": {+ "type": "array",+ "items": {+ "type": "number"+ }+ }+ },+ "required": [+ "category",+ "values"+ ],+ "additionalProperties": false,+ "description": "One data series"+ },+ "RadarChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "series": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Series"+ }+ }+ },+ "required": [+ "labels",+ "series"+ ],+ "additionalProperties": false,+ "description": "Spider/web chart; use for comparing multiple variables across one or more entities"+ },+ "PieChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "values": {+ "type": "array",+ "items": {+ "type": "number"+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "pie",+ "donut"+ ]+ },+ "appearance": {+ "type": "string",+ "enum": [+ "circular",+ "semiCircular"+ ]+ }+ },+ "required": [+ "labels",+ "values"+ ],+ "additionalProperties": false,+ "description": "Circular slices; use plucked arrays: PieChart(data.categories, data.values)"+ },+ "RadialChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "values": {+ "type": "array",+ "items": {+ "type": "number"+ }+ }+ },+ "required": [+ "labels",+ "values"+ ],+ "additionalProperties": false,+ "description": "Radial bars; use plucked arrays: RadialChart(data.categories, data.values)"+ },+ "SingleStackedBarChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "values": {+ "type": "array",+ "items": {+ "type": "number"+ }+ }+ },+ "required": [+ "labels",+ "values"+ ],+ "additionalProperties": false,+ "description": "Single horizontal stacked bar; use plucked arrays: SingleStackedBarChart(data.categories, data.values)"+ },+ "ScatterChart": {+ "type": "object",+ "properties": {+ "datasets": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/ScatterSeries"+ }+ },+ "xLabel": {+ "type": "string"+ },+ "yLabel": {+ "type": "string"+ }+ },+ "required": [+ "datasets"+ ],+ "additionalProperties": false,+ "description": "X/Y scatter plot; use for correlations, distributions, and clustering"+ },+ "ScatterSeries": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "points": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Point"+ }+ }+ },+ "required": [+ "name",+ "points"+ ],+ "additionalProperties": false,+ "description": "Named dataset"+ },+ "Point": {+ "type": "object",+ "properties": {+ "x": {+ "type": "number"+ },+ "y": {+ "type": "number"+ },+ "z": {+ "type": "number"+ }+ },+ "required": [+ "x",+ "y"+ ],+ "additionalProperties": false,+ "description": "Data point with numeric coordinates"+ },+ "AreaChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "series": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Series"+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "linear",+ "natural",+ "step"+ ]+ },+ "xLabel": {+ "type": "string"+ },+ "yLabel": {+ "type": "string"+ }+ },+ "required": [+ "labels",+ "series"+ ],+ "additionalProperties": false,+ "description": "Filled area under lines; use for cumulative totals or volume trends over time"+ },+ "BarChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "series": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Series"+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "grouped",+ "stacked"+ ]+ },+ "xLabel": {+ "type": "string"+ },+ "yLabel": {+ "type": "string"+ }+ },+ "required": [+ "labels",+ "series"+ ],+ "additionalProperties": false,+ "description": "Vertical bars; use for comparing values across categories with one or more series"+ },+ "LineChart": {+ "type": "object",+ "properties": {+ "labels": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "series": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Series"+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "linear",+ "natural",+ "step"+ ]+ },+ "xLabel": {+ "type": "string"+ },+ "yLabel": {+ "type": "string"+ }+ },+ "required": [+ "labels",+ "series"+ ],+ "additionalProperties": false,+ "description": "Lines over categories; use for trends and continuous data over time"+ },+ "Table": {+ "type": "object",+ "properties": {+ "columns": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Col"+ }+ }+ },+ "required": [+ "columns"+ ],+ "additionalProperties": false,+ "description": "Data table — column-oriented. Each Col holds its own data array."+ },+ "Col": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "data": {},+ "type": {+ "type": "string",+ "enum": [+ "string",+ "number",+ "action"+ ]+ }+ },+ "required": [+ "label",+ "data"+ ],+ "additionalProperties": false,+ "description": "Column definition — holds label + data array"+ },+ "TagBlock": {+ "type": "object",+ "properties": {+ "tags": {+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ },+ "required": [+ "tags"+ ],+ "additionalProperties": false,+ "description": "tags is an array of strings"+ },+ "Form": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "buttons": {+ "$ref": "#/$defs/Buttons"+ },+ "fields": {+ "default": [],+ "type": "array",+ "items": {+ "$ref": "#/$defs/FormControl"+ }+ }+ },+ "required": [+ "name",+ "buttons",+ "fields"+ ],+ "additionalProperties": false,+ "description": "Form container with fields and explicit action buttons"+ },+ "Buttons": {+ "type": "object",+ "properties": {+ "buttons": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/Button"+ }+ },+ "direction": {+ "type": "string",+ "enum": [+ "row",+ "column"+ ]+ }+ },+ "required": [+ "buttons"+ ],+ "additionalProperties": false,+ "description": "Group of Button components. direction: \"row\" (default) | \"column\"."+ },+ "Button": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "action": {},+ "variant": {+ "type": "string",+ "enum": [+ "primary",+ "secondary",+ "tertiary"+ ]+ },+ "type": {+ "type": "string",+ "enum": [+ "normal",+ "destructive"+ ]+ },+ "size": {+ "type": "string",+ "enum": [+ "extra-small",+ "small",+ "medium",+ "large"+ ]+ }+ },+ "required": [+ "label"+ ],+ "additionalProperties": false,+ "description": "Clickable button"+ },+ "FormControl": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "input": {+ "anyOf": [+ {+ "$ref": "#/$defs/Input"+ },+ {+ "$ref": "#/$defs/TextArea"+ },+ {+ "$ref": "#/$defs/Select"+ },+ {+ "$ref": "#/$defs/DatePicker"+ },+ {+ "$ref": "#/$defs/Slider"+ },+ {+ "$ref": "#/$defs/CheckBoxGroup"+ },+ {+ "$ref": "#/$defs/RadioGroup"+ }+ ]+ },+ "hint": {+ "type": "string"+ }+ },+ "required": [+ "label",+ "input"+ ],+ "additionalProperties": false,+ "description": "Field with label, input component, and optional hint text"+ },+ "Input": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "placeholder": {+ "type": "string"+ },+ "type": {+ "type": "string",+ "enum": [+ "text",+ "email",+ "password",+ "number",+ "url"+ ]+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "value": {+ "type": "string"+ }+ },+ "required": [+ "name"+ ],+ "additionalProperties": false+ },+ "TextArea": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "placeholder": {+ "type": "string"+ },+ "rows": {+ "type": "number"+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "value": {+ "type": "string"+ }+ },+ "required": [+ "name"+ ],+ "additionalProperties": false+ },+ "Select": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/SelectItem"+ }+ },+ "placeholder": {+ "type": "string"+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "value": {+ "type": "string"+ },+ "size": {+ "type": "string",+ "enum": [+ "small",+ "medium",+ "large"+ ]+ }+ },+ "required": [+ "name",+ "items"+ ],+ "additionalProperties": false+ },+ "SelectItem": {+ "type": "object",+ "properties": {+ "value": {+ "type": "string"+ },+ "label": {+ "type": "string"+ }+ },+ "required": [+ "value",+ "label"+ ],+ "additionalProperties": false,+ "description": "Option for Select"+ },+ "DatePicker": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "mode": {+ "type": "string",+ "enum": [+ "single",+ "range"+ ]+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "value": {}+ },+ "required": [+ "name"+ ],+ "additionalProperties": false+ },+ "Slider": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "variant": {+ "type": "string",+ "enum": [+ "continuous",+ "discrete"+ ]+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "step": {+ "type": "number"+ },+ "defaultValue": {+ "type": "array",+ "items": {+ "type": "number"+ }+ },+ "label": {+ "type": "string"+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "value": {+ "type": "array",+ "items": {+ "type": "number"+ }+ }+ },+ "required": [+ "name",+ "variant",+ "min",+ "max"+ ],+ "additionalProperties": false,+ "description": "Numeric slider input; supports continuous and discrete (stepped) variants"+ },+ "CheckBoxGroup": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/CheckBoxItem"+ }+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "value": {+ "type": "object",+ "propertyNames": {+ "type": "string"+ },+ "additionalProperties": {+ "type": "boolean"+ }+ }+ },+ "required": [+ "name",+ "items"+ ],+ "additionalProperties": false+ },+ "CheckBoxItem": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "description": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "defaultChecked": {+ "type": "boolean"+ }+ },+ "required": [+ "label",+ "description",+ "name"+ ],+ "additionalProperties": false+ },+ "RadioGroup": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/RadioItem"+ }+ },+ "defaultValue": {+ "type": "string"+ },+ "rules": {+ "type": "object",+ "properties": {+ "required": {+ "type": "boolean"+ },+ "email": {+ "type": "boolean"+ },+ "url": {+ "type": "boolean"+ },+ "numeric": {+ "type": "boolean"+ },+ "min": {+ "type": "number"+ },+ "max": {+ "type": "number"+ },+ "minLength": {+ "type": "number"+ },+ "maxLength": {+ "type": "number"+ },+ "pattern": {+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ "value": {+ "type": "string"+ }+ },+ "required": [+ "name",+ "items"+ ],+ "additionalProperties": false+ },+ "RadioItem": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "description": {+ "type": "string"+ },+ "value": {+ "type": "string"+ }+ },+ "required": [+ "label",+ "description",+ "value"+ ],+ "additionalProperties": false+ },+ "Steps": {+ "type": "object",+ "properties": {+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/StepsItem"+ }+ }+ },+ "required": [+ "items"+ ],+ "additionalProperties": false,+ "description": "Step-by-step guide"+ },+ "StepsItem": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string"+ },+ "details": {+ "type": "string"+ }+ },+ "required": [+ "title",+ "details"+ ],+ "additionalProperties": false,+ "description": "title and details text for one step"+ },+ "Tabs": {+ "type": "object",+ "properties": {+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/TabItem"+ }+ }+ },+ "required": [+ "items"+ ],+ "additionalProperties": false,+ "description": "Tabbed container"+ },+ "TabItem": {+ "type": "object",+ "properties": {+ "value": {+ "type": "string"+ },+ "trigger": {+ "type": "string"+ },+ "content": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/TextContent"+ },+ {+ "$ref": "#/$defs/MarkDownRenderer"+ },+ {+ "$ref": "#/$defs/CardHeader"+ },+ {+ "$ref": "#/$defs/Callout"+ },+ {+ "$ref": "#/$defs/TextCallout"+ },+ {+ "$ref": "#/$defs/CodeBlock"+ },+ {+ "$ref": "#/$defs/Image"+ },+ {+ "$ref": "#/$defs/ImageBlock"+ },+ {+ "$ref": "#/$defs/ImageGallery"+ },+ {+ "$ref": "#/$defs/Separator"+ },+ {+ "$ref": "#/$defs/HorizontalBarChart"+ },+ {+ "$ref": "#/$defs/RadarChart"+ },+ {+ "$ref": "#/$defs/PieChart"+ },+ {+ "$ref": "#/$defs/RadialChart"+ },+ {+ "$ref": "#/$defs/SingleStackedBarChart"+ },+ {+ "$ref": "#/$defs/ScatterChart"+ },+ {+ "$ref": "#/$defs/AreaChart"+ },+ {+ "$ref": "#/$defs/BarChart"+ },+ {+ "$ref": "#/$defs/LineChart"+ },+ {+ "$ref": "#/$defs/Table"+ },+ {+ "$ref": "#/$defs/TagBlock"+ },+ {+ "$ref": "#/$defs/Form"+ },+ {+ "$ref": "#/$defs/Buttons"+ },+ {+ "$ref": "#/$defs/Steps"+ }+ ]+ }+ }+ },+ "required": [+ "value",+ "trigger",+ "content"+ ],+ "additionalProperties": false,+ "description": "value is unique id, trigger is tab label, content is array of components"+ },+ "Carousel": {+ "type": "object",+ "properties": {+ "children": {+ "type": "array",+ "items": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/TextContent"+ },+ {+ "$ref": "#/$defs/MarkDownRenderer"+ },+ {+ "$ref": "#/$defs/CardHeader"+ },+ {+ "$ref": "#/$defs/Callout"+ },+ {+ "$ref": "#/$defs/TextCallout"+ },+ {+ "$ref": "#/$defs/CodeBlock"+ },+ {+ "$ref": "#/$defs/Image"+ },+ {+ "$ref": "#/$defs/ImageBlock"+ },+ {+ "$ref": "#/$defs/ImageGallery"+ },+ {+ "$ref": "#/$defs/Separator"+ },+ {+ "$ref": "#/$defs/HorizontalBarChart"+ },+ {+ "$ref": "#/$defs/RadarChart"+ },+ {+ "$ref": "#/$defs/PieChart"+ },+ {+ "$ref": "#/$defs/RadialChart"+ },+ {+ "$ref": "#/$defs/SingleStackedBarChart"+ },+ {+ "$ref": "#/$defs/ScatterChart"+ },+ {+ "$ref": "#/$defs/AreaChart"+ },+ {+ "$ref": "#/$defs/BarChart"+ },+ {+ "$ref": "#/$defs/LineChart"+ },+ {+ "$ref": "#/$defs/Table"+ },+ {+ "$ref": "#/$defs/TagBlock"+ },+ {+ "$ref": "#/$defs/Form"+ },+ {+ "$ref": "#/$defs/Buttons"+ },+ {+ "$ref": "#/$defs/Steps"+ }+ ]+ }+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "card",+ "sunk"+ ]+ }+ },+ "required": [+ "children"+ ],+ "additionalProperties": false,+ "description": "Horizontal scrollable carousel"+ },+ "Stack": {+ "type": "object",+ "properties": {+ "children": {+ "type": "array",+ "items": {}+ },+ "direction": {+ "type": "string",+ "enum": [+ "row",+ "column"+ ]+ },+ "gap": {+ "type": "string",+ "enum": [+ "none",+ "xs",+ "s",+ "m",+ "l",+ "xl",+ "2xl"+ ]+ },+ "align": {+ "type": "string",+ "enum": [+ "start",+ "center",+ "end",+ "stretch",+ "baseline"+ ]+ },+ "justify": {+ "type": "string",+ "enum": [+ "start",+ "center",+ "end",+ "between",+ "around",+ "evenly"+ ]+ },+ "wrap": {+ "type": "boolean"+ }+ },+ "required": [+ "children"+ ],+ "additionalProperties": false,+ "description": "Flex container. direction: \"row\"|\"column\" (default \"column\"). gap: \"none\"|\"xs\"|\"s\"|\"m\"|\"l\"|\"xl\"|\"2xl\" (default \"m\"). align: \"start\"|\"center\"|\"end\"|\"stretch\"|\"baseline\". justify: \"start\"|\"center\"|\"end\"|\"between\"|\"around\"|\"evenly\"."+ },+ "Slice": {+ "type": "object",+ "properties": {+ "category": {+ "type": "string"+ },+ "value": {+ "type": "number"+ }+ },+ "required": [+ "category",+ "value"+ ],+ "additionalProperties": false,+ "description": "One slice with label and numeric value"+ },+ "Label": {+ "type": "object",+ "properties": {+ "text": {+ "type": "string"+ }+ },+ "required": [+ "text"+ ],+ "additionalProperties": false,+ "description": "Text label"+ },+ "SwitchGroup": {+ "type": "object",+ "properties": {+ "name": {+ "type": "string"+ },+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/SwitchItem"+ }+ },+ "variant": {+ "type": "string",+ "enum": [+ "clear",+ "card",+ "sunk"+ ]+ },+ "value": {+ "type": "object",+ "propertyNames": {+ "type": "string"+ },+ "additionalProperties": {+ "type": "boolean"+ }+ }+ },+ "required": [+ "name",+ "items"+ ],+ "additionalProperties": false,+ "description": "Group of switch toggles"+ },+ "SwitchItem": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"+ },+ "description": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "defaultChecked": {+ "type": "boolean"+ }+ },+ "required": [+ "name"+ ],+ "additionalProperties": false,+ "description": "Individual switch toggle"+ },+ "Accordion": {+ "type": "object",+ "properties": {+ "items": {+ "type": "array",+ "items": {+ "$ref": "#/$defs/AccordionItem"+ }+ }+ },+ "required": [+ "items"+ ],+ "additionalProperties": false,+ "description": "Collapsible sections"+ },+ "AccordionItem": {+ "type": "object",+ "properties": {+ "value": {+ "type": "string"+ },+ "trigger": {+ "type": "string"+ },+ "content": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/TextContent"+ },+ {+ "$ref": "#/$defs/MarkDownRenderer"+ },+ {+ "$ref": "#/$defs/CardHeader"+ },+ {+ "$ref": "#/$defs/Callout"+ },+ {+ "$ref": "#/$defs/TextCallout"+ },+ {+ "$ref": "#/$defs/CodeBlock"+ },+ {+ "$ref": "#/$defs/Image"+ },+ {+ "$ref": "#/$defs/ImageBlock"+ },+ {+ "$ref": "#/$defs/ImageGallery"+ },+ {+ "$ref": "#/$defs/Separator"+ },+ {+ "$ref": "#/$defs/HorizontalBarChart"+ },+ {+ "$ref": "#/$defs/RadarChart"+ },+ {+ "$ref": "#/$defs/PieChart"+ },+ {+ "$ref": "#/$defs/RadialChart"+ },+ {+ "$ref": "#/$defs/SingleStackedBarChart"+ },+ {+ "$ref": "#/$defs/ScatterChart"+ },+ {+ "$ref": "#/$defs/AreaChart"+ },+ {+ "$ref": "#/$defs/BarChart"+ },+ {+ "$ref": "#/$defs/LineChart"+ },+ {+ "$ref": "#/$defs/Table"+ },+ {+ "$ref": "#/$defs/TagBlock"+ },+ {+ "$ref": "#/$defs/Form"+ },+ {+ "$ref": "#/$defs/Buttons"+ },+ {+ "$ref": "#/$defs/Steps"+ }+ ]+ }+ }+ },+ "required": [+ "value",+ "trigger",+ "content"+ ],+ "additionalProperties": false,+ "description": "value is unique id, trigger is section title"+ },+ "Tag": {+ "type": "object",+ "properties": {+ "text": {+ "type": "string"+ },+ "icon": {+ "type": "string"+ },+ "size": {+ "type": "string",+ "enum": [+ "sm",+ "md",+ "lg"+ ]+ },+ "variant": {+ "type": "string",+ "enum": [+ "neutral",+ "info",+ "success",+ "warning",+ "danger"+ ]+ }+ },+ "required": [+ "text"+ ],+ "additionalProperties": false,+ "description": "Styled tag/badge with optional icon and variant"+ },+ "Modal": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string"+ },+ "open": {+ "type": "boolean"+ },+ "children": {+ "type": "array",+ "items": {+ "anyOf": [+ {+ "$ref": "#/$defs/TextContent"+ },+ {+ "$ref": "#/$defs/MarkDownRenderer"+ },+ {+ "$ref": "#/$defs/CardHeader"+ },+ {+ "$ref": "#/$defs/Callout"+ },+ {+ "$ref": "#/$defs/TextCallout"+ },+ {+ "$ref": "#/$defs/CodeBlock"+ },+ {+ "$ref": "#/$defs/Image"+ },+ {+ "$ref": "#/$defs/ImageBlock"+ },+ {+ "$ref": "#/$defs/ImageGallery"+ },+ {+ "$ref": "#/$defs/Separator"+ },+ {+ "$ref": "#/$defs/HorizontalBarChart"+ },+ {+ "$ref": "#/$defs/RadarChart"+ },+ {+ "$ref": "#/$defs/PieChart"+ },+ {+ "$ref": "#/$defs/RadialChart"+ },+ {+ "$ref": "#/$defs/SingleStackedBarChart"+ },+ {+ "$ref": "#/$defs/ScatterChart"+ },+ {+ "$ref": "#/$defs/AreaChart"+ },+ {+ "$ref": "#/$defs/BarChart"+ },+ {+ "$ref": "#/$defs/LineChart"+ },+ {+ "$ref": "#/$defs/Table"+ },+ {+ "$ref": "#/$defs/TagBlock"+ },+ {+ "$ref": "#/$defs/Form"+ },+ {+ "$ref": "#/$defs/Buttons"+ },+ {+ "$ref": "#/$defs/Steps"+ }+ ]+ }+ },+ "size": {+ "type": "string",+ "enum": [+ "sm",+ "md",+ "lg"+ ]+ }+ },+ "required": [+ "title",+ "children"+ ],+ "additionalProperties": false,+ "description": "Modal dialog. open is a reactive $boolean binding — set to true to open, X/Escape/backdrop auto-closes. Put Form with buttons inside children."+ }+ }+ }+}diff --git a/docs/generated/playground-system-prompt.txt b/docs/generated/playground-system-prompt.txtindex e16a602fc..9f4fba843 100644--- a/docs/generated/playground-system-prompt.txt+++ b/docs/generated/playground-system-prompt.txt@@ -7,7 +7,7 @@ You are an AI assistant that responds using openui-lang, a declarative UI langua3. Expressions are: strings ("..."), numbers, booleans (true/false), null, arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)4. Use references for readability: define `name = ...` on one line, then use `name` later5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.-6. Arguments are POSITIONAL (order matters, not names). Write `Stack([children], "row", "l")` NOT `Stack([children], direction: "row", gap: "l")` — colon syntax is NOT supported and silently breaks+6. Arguments are POSITIONAL (order matters, not names). Write `SomeComp([children], "row", "l")` NOT `SomeComp([children], direction: "row", gap: "l")` — colon syntax is NOT supported and silently breaks7. Optional arguments can be omitted from the end- Strings use double quotes with backslash escaping@@ -195,7 +195,6 @@ reactContent = [TextContent("React is a library by Meta for building UIs."), CalvueContent = [TextContent("Vue is a progressive framework by Evan You."), Callout("success", "Tip", "Vue has a gentle learning curve.")]## Important Rules-- When asked about data, generate realistic/plausible data- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)## Final Verificationdiff --git a/docs/next.config.mjs b/docs/next.config.mjsindex 4c256fe37..97f8d0dbd 100644--- a/docs/next.config.mjs+++ b/docs/next.config.mjs@@ -9,6 +9,12 @@ const withMDX = createMDX();/** @type {import('next').NextConfig} */const config = {serverExternalPackages: ["@takumi-rs/image-response"],+ images: {+ /* Dense product screenshots contain small UI text and one-pixel rules.+ Keep the default for general imagery, but allow the illustration pair+ components to request a sharper responsive derivative. */+ qualities: [75, 95],+ },turbopack: {root: dirname(dirname(__dirname)),},@@ -29,6 +35,15 @@ const config = {},async redirects() {return [+ // /cloud was the OpenUI Cloud product page; its pitch now lives on the+ // home page, and the managed products have pages of their own. Temporary+ // while the marketing restructure settles — make it permanent once the+ // home page has actually absorbed the cloud sections.+ {+ source: "/cloud",+ destination: "/",+ permanent: false,+ },{source: "/AGENTS.md",destination: "/",diff --git a/docs/public/brand-icons/cursor.svg b/docs/public/brand-icons/cursor.svgnew file mode 100644index 000000000..d5a4395e5--- /dev/null+++ b/docs/public/brand-icons/cursor.svg@@ -0,0 +1,4 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="400 395 167 190" fill="none">+ <title>Cursor</title>+ <path fill="#26251E" d="M563.463 439.971 487.344 396.057a7.91 7.91 0 0 0-7.905 0l-76.116 43.914A6.64 6.64 0 0 0 400 445.723v88.553a6.64 6.64 0 0 0 3.323 5.753l76.12 43.914a7.91 7.91 0 0 0 7.904 0l76.119-43.914a6.64 6.64 0 0 0 3.324-5.753v-88.553a6.64 6.64 0 0 0-3.324-5.752h-.003Zm-4.782 9.302-73.482 127.178c-.496.857-1.808.507-1.808-.485v-83.275a4.68 4.68 0 0 0-2.333-4.039l-72.171-41.636c-.857-.496-.507-1.807.486-1.807h146.964c2.087 0 3.391 2.261 2.348 4.067h-.004v-.003Z"/>+</svg>diff --git a/docs/public/images/gateway/[email protected] b/docs/public/images/gateway/[email protected]new file mode 100644index 000000000..277d3a556Binary files /dev/null and b/docs/public/images/gateway/[email protected] differdiff --git a/docs/public/images/gateway/[email protected] b/docs/public/images/gateway/[email protected]new file mode 100644index 000000000..935f32f1bBinary files /dev/null and b/docs/public/images/gateway/[email protected] differdiff --git a/docs/public/images/gateway/[email protected] b/docs/public/images/gateway/[email protected]new file mode 100644index 000000000..a0e679bceBinary files /dev/null and b/docs/public/images/gateway/[email protected] differdiff --git a/docs/public/images/gateway/[email protected] b/docs/public/images/gateway/[email protected]new file mode 100644index 000000000..104b9ef2dBinary files /dev/null and b/docs/public/images/gateway/[email protected] differdiff --git a/docs/public/images/gateway/usage-dark.png b/docs/public/images/gateway/usage-dark.pngnew file mode 100644index 000000000..37dbced19Binary files /dev/null and b/docs/public/images/gateway/usage-dark.png differdiff --git a/docs/public/images/gateway/usage-light.png b/docs/public/images/gateway/usage-light.pngnew file mode 100644index 000000000..ab70ec7aaBinary files /dev/null and b/docs/public/images/gateway/usage-light.png differdiff --git a/docs/public/logos/entelligence-mark.svg b/docs/public/logos/entelligence-mark.svgnew file mode 100644index 000000000..c32f61bd1--- /dev/null+++ b/docs/public/logos/entelligence-mark.svg@@ -0,0 +1,3 @@+<svg width="32" height="32" viewBox="0 0 31 48" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path fill-rule="evenodd" clip-rule="evenodd" d="M9.80371 25.4756C10.4658 27.9322 12.7084 29.7398 15.374 29.7402V32.498C11.2077 32.4384 7.75532 29.4362 7 25.4756H9.80371ZM20.8936 25.7275H10.1055V22.4658H20.8936V25.7275ZM15.5 15.1895C19.7223 15.1896 23.2366 18.2139 24 22.2139H20.8721C20.1287 19.8865 17.9488 18.2004 15.375 18.2002C12.8009 18.2002 10.6204 19.8863 9.87695 22.2139H7C7.76322 18.2139 11.2777 15.1896 15.5 15.1895Z" fill="white"/>+</svg>diff --git a/docs/public/openui-illustrations/home-observability-dark.webp b/docs/public/openui-illustrations/home-observability-dark.webpnew file mode 100644index 000000000..4d203de80Binary files /dev/null and b/docs/public/openui-illustrations/home-observability-dark.webp differdiff --git a/docs/public/openui-illustrations/home-observability-light.webp b/docs/public/openui-illustrations/home-observability-light.webpnew file mode 100644index 000000000..d5cb7fc2eBinary files /dev/null and b/docs/public/openui-illustrations/home-observability-light.webp differdiff --git a/docs/public/openui-illustrations/home-open-source-dark.webp b/docs/public/openui-illustrations/home-open-source-dark.webpnew file mode 100644index 000000000..79fe3a63dBinary files /dev/null and b/docs/public/openui-illustrations/home-open-source-dark.webp differdiff --git a/docs/public/openui-illustrations/home-open-source-light.webp b/docs/public/openui-illustrations/home-open-source-light.webpnew file mode 100644index 000000000..ccf4f24bbBinary files /dev/null and b/docs/public/openui-illustrations/home-open-source-light.webp differdiff --git a/docs/public/openui-observability/evals-figma-dark.webp b/docs/public/openui-observability/evals-figma-dark.webpnew file mode 100644index 000000000..2fad1406cBinary files /dev/null and b/docs/public/openui-observability/evals-figma-dark.webp differdiff --git a/docs/public/openui-observability/evals-figma-light.webp b/docs/public/openui-observability/evals-figma-light.webpnew file mode 100644index 000000000..ca9499354Binary files /dev/null and b/docs/public/openui-observability/evals-figma-light.webp differdiff --git a/docs/public/openui-observability/timeline-dark.webp b/docs/public/openui-observability/timeline-dark.webpdeleted file mode 100644index cb7ad2665..000000000Binary files a/docs/public/openui-observability/timeline-dark.webp and /dev/null differdiff --git a/docs/public/openui-observability/timeline-light.webp b/docs/public/openui-observability/timeline-light.webpdeleted file mode 100644index 493b43fd7..000000000Binary files a/docs/public/openui-observability/timeline-light.webp and /dev/null differdiff --git a/docs/public/openui-observability/triage-figma-dark.webp b/docs/public/openui-observability/triage-figma-dark.webpnew file mode 100644index 000000000..7cc84650aBinary files /dev/null and b/docs/public/openui-observability/triage-figma-dark.webp differdiff --git a/docs/public/openui-observability/triage-figma-light.webp b/docs/public/openui-observability/triage-figma-light.webpnew file mode 100644index 000000000..8dbf578acBinary files /dev/null and b/docs/public/openui-observability/triage-figma-light.webp differ