Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

Shorten the landing page with a lazy rotating feature gallery (#1131)

Gustavo Ye4ba74eb1d159
diff --git a/DESIGN.md b/DESIGN.md
index 24e86d15a..646fd5c37 100644
--- a/DESIGN.md
+++ b/DESIGN.md
@@ -191,9 +191,9 @@ State must be *visible*, and it must come from tokens — not ad-hoc tweaks. Eve
### Landing testimonials
-A landing-only extension of the inherited green/CRT world, immediately before the FAQ. This record describes `landing-testimonials.tsx`, its CSS module, and the shared MessageAuthorLine and Avatar primitives; it does not establish a new global direction.
+A landing-only extension of the inherited green/CRT world, immediately after the Hero and before the interactive workspace. This record describes `landing-testimonials.tsx`, its CSS module, and the shared MessageAuthorLine and Avatar primitives; it does not establish a new global direction.
-**Palette and type.** Transparent message rows use the landing background and text tokens; handles, source icons and avatar fallback initials use landing muted text. Hover and keyboard focus add the landing surface tint. The CRT heading keeps its regular weight, fluid display size (`clamp(3rem, 4.6vw, 5rem)`), tight leading (0.98) and tracking (-0.025em). Native author names are semibold (15px); handles are subordinate (12px). Quotes use the inherited sans family (15px, line-height 1.375), preserve line breaks and wrap long words.
+**Palette and type.** Transparent message rows sit on the alternate landing section background between the pale Hero and workspace, and use landing text tokens; handles, source icons and avatar fallback initials use landing muted text. Hover and keyboard focus add the landing surface tint. The CRT heading keeps its regular weight, fluid display size (`clamp(3rem, 4.6vw, 5rem)`), tight leading (0.98) and tracking (-0.025em). Native author names are semibold (15px); handles are subordinate (12px). Quotes use the inherited sans family (15px, line-height 1.375), preserve line breaks and wrap long words.
**Layout and shape.** The introduction follows the inherited content width and page gutter. Two full-width clipped lanes carry unboxed rows with round large avatars (40px), an avatar-to-body gap (8px), and no fixed post height. Rows are 360px wide with 40px spacing; below 640px, widths fit within the viewport with 48px clearance and spacing becomes 24px. Lane spacing changes from 32px to 24px at the same boundary. The whole row is a source anchor with 8px interaction padding, a small corner radius (4px) and a minimum target height (44px). There are no resting card surfaces, card borders or shadows.
@@ -275,3 +275,9 @@ Words are part of the interface. They should sound like the brand: **warm, sharp
- Production loading has no QA hold switch or test-only URL controls.
- The mobile landing Bot log retains 8px of visible paper below its content: 16px content padding minus its 8px paper inset.
+
+### Landing feature gallery
+
+The public landing keeps Hero → testimonials → interactive workspace → feature gallery → FAQ → closing CTA. The workspace invitation uses the existing VT323 display scale: “Try it. Imagine your team and friends here.”
+
+The gallery preserves the green landing tokens, DM Sans copy and existing feature animations. Five wrapping, 44px-minimum tabs select one concise heading, one short description, one CTA and one media scene. The gallery reuses the original side-by-side PC composition and natural mobile flow without fixed-height empty stages. Identity keeps its full-width composition; setup retains its dark surface. The selected scene loads after first entering view and stays mounted offscreen to preserve its layout; changing tabs unmounts the old scene. Rotation waits at least 15 seconds and a complete scene cycle; hover, focus, manual selection, hidden document and reduced motion pause it. The explicit pause/resume button controls rotation. Arrow keys, Home and End navigate the tabs. Tabs use the 639px mobile breakpoint. Scene layout follows the actual media width: below 700px (1040px for the identity composition including its profile), render original content at native text size without scaling or cropping a desktop canvas. The scenes retain the same timeline and product components. Content determines their height.
diff --git a/src/web/src/components/home/deferred-landing-media.tsx b/src/web/src/components/home/deferred-landing-media.tsx
index a87d666bd..b8a64b46b 100644
--- a/src/web/src/components/home/deferred-landing-media.tsx
+++ b/src/web/src/components/home/deferred-landing-media.tsx
@@ -8,9 +8,8 @@ import styles from "./deferred-landing-media.module.css"
const Shell = lazy(() => import("./landing-shell-motion").then((module) => ({ default: module.LandingShellMotion })))
const Mobile = lazy(() => import("./landing-shell-motion").then((module) => ({ default: module.LandingMobileChatMotion })))
-const Profile = lazy(() => import("./landing-profile-content"))
-class MediaFallback extends Component<{ children: ReactNode; fallback: ReactNode }, { failed: boolean }> {
+export class MediaFallback extends Component<{ children: ReactNode; fallback: ReactNode }, { failed: boolean }> {
state = { failed: false }
static getDerivedStateFromError() { return { failed: true } }
render() { return this.state.failed ? this.props.fallback : this.props.children }
@@ -78,7 +77,3 @@ export function DeferredShellMotion(props: ComponentProps<typeof LandingShellMot
export function DeferredMobileChatMotion(props: { beat: number }) {
return <DeferredLandingMedia poster="/landing/posters/mobile.webp" darkPoster="/landing/posters/mobile-dark.webp" width={390} height={788}><Mobile {...props} /></DeferredLandingMedia>
}
-
-export function DeferredProfileCard() {
- return <DeferredLandingMedia poster="/landing/posters/profile.webp" darkPoster="/landing/posters/profile-dark.webp" width={300} height={308} alt="Maya — Free for dinner. I keep the same account, identity, and relationships across every room."><Profile /></DeferredLandingMedia>
-}
diff --git a/src/web/src/components/home/landing-content.test.ts b/src/web/src/components/home/landing-content.test.ts
index 4a0530ad9..d79b47f42 100644
--- a/src/web/src/components/home/landing-content.test.ts
+++ b/src/web/src/components/home/landing-content.test.ts
@@ -37,12 +37,9 @@ describe("landing content contract", () => {
it("puts social product proof before machine and provider ownership", () => {
expect(LANDING_SECTION_ORDER).toEqual([
"hero",
- "product-proof",
- "identity",
- "continuity",
- "reach",
- "ownership",
"testimonials",
+ "workspace",
+ "features",
"faq",
"closing",
])
@@ -161,7 +158,7 @@ describe("landing content contract", () => {
expect(pairMachineSource).toContain('headingAs = "h3"')
})
- it("keeps one H1 and includes the testimonials in the eight-H2 homepage outline", () => {
+ it("keeps one H1 and includes the testimonials in the shorter homepage outline", () => {
const root = webRoot()
const landingPageSource = readFileSync(path.join(root, "src/components/home/landing-page.tsx"), "utf8")
const heroSource = readFileSync(path.join(root, "src/components/home/hero-section.tsx"), "utf8")
@@ -169,7 +166,7 @@ describe("landing content contract", () => {
const testimonialsSource = readFileSync(path.join(root, "src/components/home/landing-testimonials.tsx"), "utf8")
expect(heroSource.match(/<h1\b/g)).toHaveLength(1)
- expect(landingPageSource.match(/<h2\b/g)).toHaveLength(6)
+ expect(landingPageSource.match(/<h2\b/g)).toHaveLength(1)
expect(faqSource.match(/<h2\b/g)).toHaveLength(1)
expect(testimonialsSource.match(/<h2\b/g)).toHaveLength(1)
expect(landingPageSource.indexOf("<LandingTestimonials />")).toBeLessThan(landingPageSource.indexOf("<HomepageFaq />"))
@@ -201,7 +198,7 @@ describe("landing content contract", () => {
const ogRoute = readFileSync(path.join(root, "src/app/og/route.tsx"), "utf8")
const ogRenderer = readFileSync(path.join(root, "src/app/_og/render-og-image.tsx"), "utf8")
const publicLayout = readFileSync(path.join(root, "src/components/public-layout.tsx"), "utf8")
- const landingPageSource = readFileSync(path.join(root, "src/components/home/landing-page.tsx"), "utf8")
+ const landingPageSource = ["landing-page.tsx", "landing-feature-gallery.tsx", "landing-feature-scene.tsx"].map(file => readFileSync(path.join(root, "src/components/home", file), "utf8")).join("\n")
const landingContentSource = readFileSync(path.join(root, "src/components/home/landing-content.ts"), "utf8")
const landingStyles = readFileSync(path.join(root, "src/components/home/landing-page.module.css"), "utf8")
const motionStyles = readFileSync(path.join(root, "src/components/home/landing-shell-motion.module.css"), "utf8")
@@ -401,23 +398,19 @@ describe("landing content contract", () => {
expect(landingPageSource).not.toContain("anyone")
expect(landingPageSource).not.toContain("subscriptions")
expect(normalizedLandingPageSource).toContain(
- "Connect the agent you already use. It runs on your computer with your project, tools, and configured access.",
+ "Connect the agent you already use, running on your computer with your projects and tools.",
)
expect(landingPageSource).not.toContain("NOT ANOTHER")
expect(landingPageSource).not.toContain("leaves the terminal")
expect(landingPageSource).not.toContain("Your agent gets a name")
- expect(landingPageSource).toContain("AI agent collaboration")
expect(landingPageSource).toContain("Let teammates talk to your agent.")
expect(normalizedLandingPageSource).toContain(
- "Coordinate multi-agent workflows in one conversation. Ask for a preview, request changes, and review results with your team.",
+ "Ask for a preview, request changes, and review results in one conversation.",
)
expect(landingPageSource).toContain('data-testid="landing-runtime-badges"')
- expect(landingPageSource).toContain("A familiar face")
expect(landingPageSource).toContain("A companion of your own.")
expect(landingPageSource).not.toContain("One persistent identity across rooms")
expect(readFileSync(path.join(root, "src/components/home/landing-profile-content.tsx"), "utf8")).toContain("I keep the same account, identity, and relationships across every room.")
- expect(landingPageSource).toContain("styles.sectionLead")
- expect(landingPageSource).toContain('<p className={styles.sectionMuted}>{LANDING_CONTINUITY.kicker}</p>')
expect(landingPageSource).toContain("InteractiveIdentityProfileCard")
expect(readFileSync(path.join(root, "src/components/home/landing-profile-content.tsx"), "utf8")).toContain('name: "Maya"')
expect(readFileSync(path.join(root, "src/components/home/landing-profile-content.tsx"), "utf8")).toContain('userId: "maya"')
@@ -426,7 +419,7 @@ describe("landing content contract", () => {
expect(landingPageSource).toContain("IdentityProof")
expect(landingPageSource).toContain('data-testid="landing-identity-proof"')
expect(landingPageSource).toContain('data-testid="landing-identity-motion"')
- expect(landingPageSource).toContain('<LandingShellMotion scene="identity" />')
+ expect(landingPageSource).toContain('<LandingShellMotion scene="identity" compact={compact} />')
expect(landingPageSource).not.toContain('<ProductScene scene="spaces" />')
expect(landingPageSource).toContain("ResizeObserver")
expect(landingPageSource).toContain("--identity-card-fit-scale")
@@ -455,7 +448,6 @@ describe("landing content contract", () => {
expect(landingStyles).toContain("inset: -72px")
expect(landingStyles).toContain("perspective: 900px")
expect(landingStyles).toContain("prefers-reduced-motion: reduce")
- expect(landingPageSource).toContain("styles.productLayout")
expect(landingPageSource).not.toContain("PaletteSwitcher")
expect(landingStyles).toMatch(/\.page:global\(\.landing\)\s*\{[\s\S]*?--landing-bg: #f4f9e9;/)
expect(landingStyles).toMatch(/\.page:global\(\.landing\)\s*\{[\s\S]*?--landing-accent: #356f95;/)
@@ -467,11 +459,10 @@ describe("landing content contract", () => {
expect(landingStyles).not.toContain("#5b6b60")
expect(landingStyles).toContain("--landing-section-bg")
expect(landingStyles.match(/--tw-blob-theme:/g)).toHaveLength(1)
- expect(landingPageSource).toContain('<ProductScene scene="server" />')
- expect(landingPageSource).toContain('<LandingShellMotion scene="identity" />')
- expect(landingPageSource).toContain('<ProductScene scene="machine" />')
- expect(landingPageSource).toContain('<LandingShellMotion scene="continuity" />')
- expect(landingPageSource.match(/className=\{styles\.productLayout\}/g)).toHaveLength(3)
+ expect(landingPageSource).toContain('<ProductScene scene="server" compact={compact} />')
+ expect(landingPageSource).toContain('<LandingShellMotion scene="identity" compact={compact} />')
+ expect(landingPageSource).toContain('<ProductScene scene="machine" compact={compact} />')
+ expect(landingPageSource).toContain('<LandingShellMotion scene="continuity" compact={compact} />')
expect(landingPageSource).not.toContain("IdentityTimeline")
expect(shellSource).toContain("continuity-frontend-design")
expect(shellSource).toContain("I’ll check the page with Shelly")
@@ -485,10 +476,9 @@ describe("landing content contract", () => {
)
expect(landingPageSource).not.toContain("ProductGallery")
expect(landingPageSource).not.toContain("storyTabs")
- expect(landingPageSource).toContain("Away from your desk")
expect(landingPageSource).toContain("Check in from your phone.")
expect(normalizedLandingPageSource).toContain(
- "Read updates and give the next instruction wherever you are. Keep your agent’s computer online.",
+ "Read updates and give the next instruction. Keep your agent’s computer online.",
)
expect(reachSource).toContain('data-slot="laptop-mockup-card"')
expect(reachSource).toContain('data-variant="starlight"')
@@ -521,9 +511,7 @@ describe("landing content contract", () => {
expect(reachStyles).toMatch(/\.laptopBase\s*\{[\s\S]*?linear-gradient/)
expect(reachMockupLicense).toContain("Copyright (c) 2026 Bidyut Kundu")
expect(footerSource).toContain("BRAND_SLOGAN")
- expect(landingPageSource).toContain("Use your existing setup")
expect(landingPageSource).toContain("Keep your existing setup.")
- expect(landingPageSource).toContain("styles.ownershipDescription")
expect(landingPageSource).not.toContain("The runtime and workspace stay on your paired machine")
expect(`${landingPageSource} ${landingContentSource.split("export const HOME_FAQS")[0]}`.replace(LANDING_HERO.subline, "")).not.toMatch(/\bplaces?\b/i)
expect(landingPageSource).not.toContain("stay in touch")
diff --git a/src/web/src/components/home/landing-content.ts b/src/web/src/components/home/landing-content.ts
index 75c5b9c46..c8f85c24e 100644
--- a/src/web/src/components/home/landing-content.ts
+++ b/src/web/src/components/home/landing-content.ts
@@ -6,17 +6,7 @@ export const LANDING_META_TITLE = "Alook | Multi-Agent Collaboration for Team an
export const LANDING_META_DESCRIPTION =
"Bring Claude Code and Codex agents into shared chats with Alook. Coordinate multi-agent workflows, share context, and review work with your team."
-export const LANDING_SECTION_ORDER = [
- "hero",
- "product-proof",
- "identity",
- "continuity",
- "reach",
- "ownership",
- "testimonials",
- "faq",
- "closing",
-] as const
+export const LANDING_SECTION_ORDER = ["hero", "testimonials", "workspace", "features", "faq", "closing"] as const
export const LANDING_HERO = {
headline: BRAND_SLOGAN,
diff --git a/src/web/src/components/home/landing-feature-gallery.dom.test.tsx b/src/web/src/components/home/landing-feature-gallery.dom.test.tsx
new file mode 100644
index 000000000..ed1f28e40
--- /dev/null
+++ b/src/web/src/components/home/landing-feature-gallery.dom.test.tsx
@@ -0,0 +1,105 @@
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"
+import { act, fireEvent, render, screen } from "@/test/react-dom-harness"
+import { LandingFeatureGallery } from "./landing-feature-gallery"
+import { sceneDurationMs } from "./landing-shell-motion-timeline"
+
+vi.mock("./landing-feature-scene", () => ({ default: ({ feature }: { feature: string }) => <div data-testid="active-feature">{feature}</div> }))
+vi.mock("@/lib/analytics", () => ({ trackLandingCtaClicked: vi.fn() }))
+let intersect: IntersectionObserverCallback
+let reduced = false
+const disconnect = vi.fn()
+
+beforeEach(() => {
+ vi.useFakeTimers()
+ reduced = false
+ vi.stubGlobal("IntersectionObserver", class {
+ constructor(callback: IntersectionObserverCallback) { intersect = callback }
+ observe() {}
+ disconnect = disconnect
+ })
+ vi.stubGlobal("matchMedia", vi.fn((media: string) => ({ media, matches: reduced, addEventListener() {}, removeEventListener() {} })))
+})
+afterEach(() => { vi.useRealTimers(); vi.unstubAllGlobals() })
+
+async function show(visible = true) {
+ await act(async () => { intersect([{ isIntersecting: visible, intersectionRatio: visible ? 1 : 0 } as IntersectionObserverEntry], {} as IntersectionObserver) })
+}
+async function advance(time = 30000) { await act(async () => { vi.advanceTimersByTime(time) }) }
+
+describe("feature gallery", () => {
+ it("loads only after entering view and keeps the selected layout offscreen", async () => {
+ const view = render(<LandingFeatureGallery isLoggedIn={false} />)
+ expect(screen.queryByTestId("active-feature")).toBeNull()
+ await show()
+ expect(screen.getByTestId("active-feature")).toHaveTextContent("product")
+ fireEvent.click(screen.getByRole("tab", { name: "Your agent" }))
+ expect(screen.getAllByTestId("active-feature")).toHaveLength(1)
+ expect(screen.getByTestId("active-feature")).toHaveTextContent("identity")
+ await show(false)
+ expect(screen.getByTestId("active-feature")).toHaveTextContent("identity")
+ view.unmount()
+ expect(disconnect).toHaveBeenCalled()
+ })
+
+ it("rotates after the scene cycle, pauses on hover, and stops after manual selection", async () => {
+ render(<LandingFeatureGallery isLoggedIn={false} />)
+ await show()
+ await advance(Math.max(15000, sceneDurationMs("server") + 1500) - 1)
+ expect(screen.getByRole("tab", { selected: true })).toHaveTextContent("Collaborate")
+ await advance(1)
+ expect(screen.getByRole("tab", { selected: true })).toHaveTextContent("Your agent")
+ fireEvent.mouseEnter(screen.getByRole("region"))
+ await advance()
+ expect(screen.getByRole("tab", { selected: true })).toHaveTextContent("Your agent")
+ fireEvent.mouseLeave(screen.getByRole("region"))
+ fireEvent.click(screen.getByRole("tab", { name: "On your phone" }))
+ await advance()
+ expect(screen.getByRole("tab", { selected: true })).toHaveTextContent("On your phone")
+ fireEvent.click(screen.getByRole("button", { name: "Resume feature rotation" }))
+ await advance()
+ expect(screen.getByRole("tab", { selected: true })).toHaveTextContent("Your setup")
+ })
+
+ it("supports arrow keys and routes the selected CTA for signed-in users", async () => {
+ render(<LandingFeatureGallery isLoggedIn />)
+ await show()
+ const tab = screen.getByRole("tab", { name: "Collaborate" })
+ fireEvent.keyDown(tab, { key: "End" })
+ expect(screen.getByRole("tab", { name: "Your setup" })).toHaveFocus()
+ expect(screen.getByRole("link")).toHaveAttribute("href", "/c/me")
+ fireEvent.keyDown(screen.getByRole("tab", { name: "Your setup" }), { key: "ArrowRight" })
+ expect(tab).toHaveFocus()
+ await advance()
+ expect(tab).toHaveAttribute("aria-selected", "true")
+ })
+
+ it("pauses in a hidden document and clears timers on unmount", async () => {
+ const view = render(<LandingFeatureGallery isLoggedIn={false} />)
+ await show()
+ Object.defineProperty(document, "visibilityState", { configurable: true, value: "hidden" })
+ fireEvent(document, new Event("visibilitychange"))
+ await advance()
+ expect(screen.getByRole("tab", { selected: true })).toHaveTextContent("Collaborate")
+ expect(screen.getByTestId("active-feature")).toHaveTextContent("product")
+ Object.defineProperty(document, "visibilityState", { configurable: true, value: "visible" })
+ fireEvent(document, new Event("visibilitychange"))
+ await act(async () => {})
+ fireEvent.click(screen.getByRole("button", { name: "Pause feature rotation" }))
+ await advance()
+ expect(screen.getByRole("tab", { selected: true })).toHaveTextContent("Collaborate")
+ view.unmount()
+ expect(vi.getTimerCount()).toBe(0)
+ })
+
+ it("does not rotate for reduced motion or while hidden", async () => {
+ reduced = true
+ render(<LandingFeatureGallery isLoggedIn={false} />)
+ await show()
+ await advance()
+ expect(screen.getByRole("tab", { selected: true })).toHaveTextContent("Collaborate")
+ expect(screen.queryByRole("button", { name: "Pause feature rotation" })).toBeNull()
+ await show(false)
+ await advance()
+ expect(screen.getByTestId("active-feature")).toHaveTextContent("product")
+ })
+})
diff --git a/src/web/src/components/home/landing-feature-gallery.module.css b/src/web/src/components/home/landing-feature-gallery.module.css
new file mode 100644
index 000000000..43a87963e
--- /dev/null
+++ b/src/web/src/components/home/landing-feature-gallery.module.css
@@ -0,0 +1,181 @@
+.section {
+ --gallery-ink: var(--landing-text);
+ --gallery-muted: var(--landing-text-muted);
+ --gallery-surface: var(--landing-section-bg);
+ padding: clamp(88px, 9vw, 128px) var(--landing-page-gutter);
+ background: var(--gallery-surface);
+ color: var(--gallery-ink);
+ scroll-margin-top: 72px;
+}
+.dark {
+ --gallery-ink: var(--landing-phosphor);
+ --gallery-muted: color-mix(in oklch, var(--landing-phosphor), var(--landing-crt-bg) 20%);
+ --gallery-surface: var(--landing-crt-bg);
+}
+.container {
+ max-width: var(--landing-content-max);
+ margin-inline: auto;
+}
+.controls {
+ display: flex;
+ align-items: flex-start;
+ gap: 16px;
+ margin-bottom: 48px;
+}
+.tabs {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ flex: 1;
+}
+.tabs button, .rotation {
+ min-height: 44px;
+ padding: 8px 16px;
+ border: 1px solid transparent;
+ border-radius: var(--radius-md);
+ color: var(--gallery-muted);
+ font-family: var(--font-sans);
+ font-size: 15px;
+ cursor: pointer;
+ transition: background 150ms ease-out, color 150ms ease-out;
+}
+.tabs button:hover, .rotation:hover {
+ background: color-mix(in oklch, var(--gallery-ink), transparent 92%);
+ color: var(--gallery-ink);
+}
+.tabs button[aria-selected="true"] {
+ background: var(--gallery-ink);
+ color: var(--gallery-surface);
+}
+.tabs button:focus-visible, .rotation:focus-visible {
+ outline: 2px solid var(--gallery-ink);
+ outline-offset: 4px;
+}
+.rotation {
+ width: 44px;
+ padding: 0;
+ display: grid;
+ place-items: center;
+ flex-shrink: 0;
+}
+.panel {
+ display: grid;
+ grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
+ align-items: center;
+ gap: clamp(48px, 6vw, 88px);
+}
+.copy h2 {
+ max-width: 760px;
+ font-family: var(--font-crt);
+ font-size: clamp(3rem, 3.8vw, 4rem);
+ font-weight: 400;
+ line-height: 0.92;
+ letter-spacing: -0.025em;
+ text-wrap: balance;
+}
+.copy p {
+ max-width: 48ch;
+ margin-top: 24px;
+ color: var(--gallery-muted);
+ font-size: 1rem;
+ line-height: 1.7;
+}
+.stage {
+ min-width: 0;
+ display: flex;
+ flex-direction: column;
+ gap: 24px;
+}
+.identity {
+ grid-template-columns: 1fr;
+ gap: 40px;
+}
+.identity .identityMedia {
+ padding: 0;
+ border: 0;
+ background: transparent;
+ box-shadow: none;
+}
+.identity .compactIdentity {
+ grid-template-columns: 300px minmax(0, 1fr);
+ align-items: center;
+}
+.compactIdentity .profileCard {
+ position: relative;
+ top: auto;
+ left: auto;
+ width: min(300px, 100%);
+ margin-inline: auto;
+ transform: none;
+}
+.identity .copy {
+ width: 100%;
+ max-width: 1040px;
+ margin-inline: auto;
+}
+.identity .copy p {
+ max-width: 62ch;
+}
+.poster {
+ width: 100%;
+ max-width: 1120px;
+ align-self: center;
+ height: auto;
+ border-radius: var(--radius-lg);
+}
+.runtimeBadges {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 12px 20px;
+ color: var(--gallery-ink);
+ font-family: var(--font-sans);
+ font-size: 14px;
+}
+.runtimeBadges > span {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+}
+@media (max-width: 819px) {
+ .panel {
+ grid-template-columns: 1fr;
+ gap: 40px;
+ }
+}
+@media (max-width: 719px) {
+ .identity .compactIdentity {
+ grid-template-columns: 1fr;
+ gap: 32px;
+ }
+}
+@media (max-width: 639px) {
+ .section {
+ padding: 64px 24px;
+ }
+ .controls {
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-bottom: 32px;
+ }
+ .tabs {
+ display: contents;
+ }
+ .rotation {
+ margin-left: auto;
+ }
+ .tabs button {
+ padding-inline: 8px;
+ font-size: 14px;
+ }
+ .copy h2 {
+ font-size: 3rem;
+ }
+ .copy p {
+ margin-top: 20px;
+ }
+}
+@media (prefers-reduced-motion: reduce) {
+ .tabs button, .rotation {
+ transition: none;
+ }
+}
diff --git a/src/web/src/components/home/landing-feature-gallery.tsx b/src/web/src/components/home/landing-feature-gallery.tsx
new file mode 100644
index 000000000..13d7f2705
--- /dev/null
+++ b/src/web/src/components/home/landing-feature-gallery.tsx
@@ -0,0 +1,127 @@
+"use client"
+
+import { lazy, Suspense, useEffect, useRef, useState, type ReactNode, type KeyboardEvent } from "react"
+import { Pause, Play } from "lucide-react"
+import { tid } from "@/lib/community/testids"
+import { MediaFallback } from "./deferred-landing-media"
+import { trackLandingCtaClicked } from "@/lib/analytics"
+import { sceneDurationMs, type LandingScene } from "./landing-shell-motion-timeline"
+import styles from "./landing-feature-gallery.module.css"
+import mediaStyles from "./deferred-landing-media.module.css"
+import pageStyles from "./landing-page.module.css"
+
+const FeatureScene = lazy(() => import("./landing-feature-scene"))
+const features: { id: string; tab: string; title: string; description: string; cta: string; scene: LandingScene }[] = [
+ { id: "product", tab: "Collaborate", title: "Let teammates talk to your agent.", description: "Ask for a preview, request changes, and review results in one conversation.", cta: "Share your agent", scene: "server" },
+ { id: "identity", tab: "Your agent", title: "A companion of your own.", description: "Your agent belongs to you. Bring them along to any room or team you join.", cta: "Invite your agent", scene: "identity" },
+ { id: "continuity", tab: "Keep context", title: "Pick up where you left off.", description: "Your agent uses earlier conversations and saved notes to bring back an update.", cta: "Start a task", scene: "continuity" },
+ { id: "reach", tab: "On your phone", title: "Check in from your phone.", description: "Read updates and give the next instruction. Keep your agent’s computer online.", cta: "Work anywhere", scene: "server" },
+ { id: "ownership", tab: "Your setup", title: "Keep your existing setup.", description: "Connect the agent you already use, running on your computer with your projects and tools.", cta: "Connect your agent", scene: "machine" },
+]
+
+export function LandingFeatureGallery({ isLoggedIn }: { isLoggedIn: boolean }) {
+ const [selected, setSelected] = useState(0)
+ const [visible, setVisible] = useState(false)
+ const [loadedFeature, setLoadedFeature] = useState<string | null>(null)
+ const [paused, setPaused] = useState(false)
+ const [hovered, setHovered] = useState(false)
+ const [focused, setFocused] = useState(false)
+ const [reduced, setReduced] = useState(true)
+ const [documentVisible, setDocumentVisible] = useState(true)
+ const [mediaReady, setMediaReady] = useState(false)
+ const section = useRef<HTMLDivElement>(null)
+ const tabs = useRef<(HTMLButtonElement | null)[]>([])
+ const current = features[selected]
+
+ useEffect(() => {
+ const element = section.current
+ if (!element) return
+ if (!("IntersectionObserver" in window)) { setVisible(true); return }
+ const observer = new IntersectionObserver(([entry]) => setVisible(Boolean(entry?.isIntersecting && entry.intersectionRatio >= 0.3)), { threshold: 0.3 })
+ observer.observe(element)
+ return () => observer.disconnect()
+ }, [])
+
+ useEffect(() => {
+ if (visible) setLoadedFeature(current.id)
+ }, [visible, current.id])
+
+ useEffect(() => {
+ const query = window.matchMedia("(prefers-reduced-motion: reduce)")
+ const syncMotion = () => setReduced(query.matches)
+ const syncVisibility = () => setDocumentVisible(document.visibilityState !== "hidden")
+ syncMotion()
+ syncVisibility()
+ query.addEventListener("change", syncMotion)
+ document.addEventListener("visibilitychange", syncVisibility)
+ return () => {
+ query.removeEventListener("change", syncMotion)
+ document.removeEventListener("visibilitychange", syncVisibility)
+ }
+ }, [])
+
+ useEffect(() => {
+ if (!visible || !documentVisible || reduced || paused || hovered || focused || !mediaReady) return
+ const timer = window.setTimeout(() => {
+ setMediaReady(false)
+ setSelected(index => (index + 1) % features.length)
+ }, Math.max(15000, sceneDurationMs(current.scene) + 1500))
+ return () => window.clearTimeout(timer)
+ }, [visible, documentVisible, reduced, paused, hovered, focused, mediaReady, current.scene])
+
+ function select(index: number) {
+ setPaused(true)
+ if (index !== selected) setMediaReady(false)
+ setSelected(index)
+ }
+
+ function navigate(event: KeyboardEvent<HTMLButtonElement>, index: number) {
+ const next = event.key === "ArrowRight" ? (index + 1) % features.length
+ : event.key === "ArrowLeft" ? (index + features.length - 1) % features.length
+ : event.key === "Home" ? 0 : event.key === "End" ? features.length - 1 : null
+ if (next === null) return
+ event.preventDefault()
+ select(next)
+ tabs.current[next]?.focus()
+ }
+
+ return <section id="product" className={`${styles.section} ${current.id === "ownership" ? styles.dark : ""}`} aria-label="Explore Alook features"
+ onMouseEnter={() => setHovered(true)} onMouseLeave={() => setHovered(false)}
+ onFocusCapture={() => setFocused(true)} onBlurCapture={event => { if (!event.currentTarget.contains(event.relatedTarget)) setFocused(false) }}>
+ <div className={styles.container} data-testid={tid.landingMainContainer}>
+ <div className={styles.controls}>
+ <div className={styles.tabs} role="tablist" aria-label="Features">
+ {features.map((feature, index) => <button key={feature.id} ref={element => { tabs.current[index] = element }}
+ id={`feature-tab-${feature.id}`} type="button" role="tab" aria-selected={selected === index}
+ aria-controls="feature-panel" tabIndex={selected === index ? 0 : -1}
+ onClick={() => select(index)} onKeyDown={event => navigate(event, index)}>{feature.tab}</button>)}
+ </div>
+ {!reduced && <button type="button" className={styles.rotation} aria-label={paused ? "Resume feature rotation" : "Pause feature rotation"}
+ onClick={() => setPaused(value => !value)}>{paused ? <Play size={18} /> : <Pause size={18} />}</button>}
+ </div>
+ <div id="feature-panel" role="tabpanel" aria-labelledby={`feature-tab-${current.id}`} className={`${styles.panel} ${current.id === "identity" ? styles.identity : ""}`}>
+ <div className={styles.copy}>
+ <h2>{current.title}</h2>
+ <p>{current.description}</p>
+ <a href={isLoggedIn ? "/c/me" : "/sign-in"} className={pageStyles.sectionCta}
+ data-testid={`landing-section-cta-${current.id}`}
+ onClick={() => trackLandingCtaClicked({ cta_name: `${current.id}_${isLoggedIn ? "open_app" : "get_started"}` })}>{current.cta}</a>
+ </div>
+ <div ref={section} className={styles.stage}>
+ {loadedFeature === current.id ? <MediaFallback key={current.id} fallback={<FeaturePoster scene={current.scene} />}><Suspense fallback={<FeaturePoster scene={current.scene} />}>
+ <SceneReady key={current.id} onReady={setMediaReady}><FeatureScene feature={current.id} container={section.current} /></SceneReady>
+ </Suspense></MediaFallback> : <FeaturePoster scene={current.scene} />}
+ </div>
+ </div>
+ </div>
+ </section>
+}
+
+function SceneReady({ onReady, children }: { onReady: (ready: boolean) => void; children: ReactNode }) {
+ useEffect(() => { onReady(true); return () => onReady(false) }, [onReady])
+ return children
+}
+
+function FeaturePoster({ scene }: { scene: LandingScene }) {
+ return <div className={styles.poster}>{[false, true].map(dark => <img key={String(dark)} className={dark ? mediaStyles.darkPoster : mediaStyles.lightPoster} src={`/landing/posters/${scene}${dark ? "-dark" : ""}.webp`} width={1120} height={660} loading="lazy" alt="" />)}</div>
+}
diff --git a/src/web/src/components/home/landing-feature-scene.tsx b/src/web/src/components/home/landing-feature-scene.tsx
new file mode 100644
index 000000000..01502b173
--- /dev/null
+++ b/src/web/src/components/home/landing-feature-scene.tsx
@@ -0,0 +1,186 @@
+"use client"
+
+import { lazy, useEffect, useRef, useState, type PointerEvent as ReactPointerEvent } from "react"
+import { ProviderLogo } from "@/components/provider-logo"
+import { LandingReachMotion } from "./landing-reach-motion"
+const LandingShellMotion = lazy(() => import("./landing-shell-motion").then(module => ({ default: module.LandingShellMotion })))
+const ProfileCard = lazy(() => import("./landing-profile-content"))
+import { LANDING_GALLERY, LANDING_MACHINE_INTRO, LANDING_PROVIDERS } from "./landing-content"
+import styles from "./landing-page.module.css"
+import galleryStyles from "./landing-feature-gallery.module.css"
+
+function ProductScene({ scene, compact }: { scene: (typeof LANDING_GALLERY)[number]["scene"]; compact?: boolean }) {
+ const story = LANDING_GALLERY.find((item) => item.scene === scene)
+
+ if (!story) return null
+
+ return (
+ <figure className={styles.sceneFigure} data-testid={`landing-scene-${scene}`}>
+ <div className={styles.galleryFrame} role="img" aria-label={story.label}>
+ <LandingShellMotion
+ scene={story.scene}
+ compact={compact}
+ machineIntroDescription={LANDING_MACHINE_INTRO}
+ />
+ </div>
+ </figure>
+ )
+}
+
+function ContinuityTimeline({ compact }: { compact: boolean }) {
+ return (
+ <div className={styles.timelineBoard} data-testid="landing-identity-timeline">
+ <div className={styles.galleryFrame} role="img" aria-label="Alli follows one request through a DM, Studio, and Home">
+ <LandingShellMotion scene="continuity" compact={compact} />
+ </div>
+ </div>
+ )
+}
+
+function RuntimeBadges() {
+ return (
+ <div
+ className={galleryStyles.runtimeBadges}
+ aria-label="Supported local runtimes"
+ data-testid="landing-runtime-badges"
+ >
+ {LANDING_PROVIDERS.map((provider) => (
+ <span key={provider.id}>
+ <ProviderLogo provider={provider.id} className="size-4" />
+ {provider.label}
+ </span>
+ ))}
+ </div>
+ )
+}
+
+function InteractiveIdentityProfileCard() {
+ const tiltRef = useRef<HTMLDivElement>(null)
+
+ const resetTilt = () => {
+ const element = tiltRef.current
+ if (!element) return
+ element.dataset.tilting = "false"
+ element.style.setProperty("--card-rotate-x", "0deg")
+ element.style.setProperty("--card-rotate-y", "0deg")
+ element.style.setProperty("--card-scale", "1")
+ element.style.setProperty("--card-light-opacity", "0")
+ element.style.setProperty("--card-shadow-x", "0px")
+ element.style.setProperty("--card-shadow-y", "20px")
+ }
+
+ const tiltCard = (event: ReactPointerEvent<HTMLDivElement>) => {
+ if (event.pointerType === "touch") return
+ const element = tiltRef.current
+ if (!element) return
+
+ const bounds = element.getBoundingClientRect()
+ const x = Math.min(1, Math.max(0, (event.clientX - bounds.left) / bounds.width))
+ const y = Math.min(1, Math.max(0, (event.clientY - bounds.top) / bounds.height))
+
+ element.dataset.tilting = "true"
+ element.style.setProperty("--card-rotate-x", `${(0.5 - y) * 14}deg`)
+ element.style.setProperty("--card-rotate-y", `${(x - 0.5) * 18}deg`)
+ element.style.setProperty("--card-scale", "1.015")
+ element.style.setProperty("--card-light-x", `${x * 100}%`)
+ element.style.setProperty("--card-light-y", `${y * 100}%`)
+ element.style.setProperty("--card-light-opacity", "0.72")
+ element.style.setProperty("--card-shadow-x", `${(0.5 - x) * 24}px`)
+ element.style.setProperty("--card-shadow-y", `${20 + y * 16}px`)
+ }
+
+ return (
+ <div
+ ref={tiltRef}
+ className={`${styles.identityProfileCard} ${galleryStyles.profileCard}`}
+ onPointerMove={tiltCard}
+ onPointerLeave={resetTilt}
+ onPointerCancel={resetTilt}
+ data-testid="landing-identity-card-tilt"
+ >
+ <span className={styles.identityProfileCardSensor} aria-hidden="true" />
+ <div className={styles.identityProfileCardSurface}>
+ <ProfileCard />
+ </div>
+ </div>
+ )
+}
+
+function IdentityProof({ compact }: { compact: boolean }) {
+ const layoutRef = useRef<HTMLDivElement>(null)
+ const cardSlotRef = useRef<HTMLDivElement>(null)
+ const sceneSlotRef = useRef<HTMLDivElement>(null)
+
+ useEffect(() => {
+ const layout = layoutRef.current
+ const cardSlot = cardSlotRef.current
+ const sceneSlot = sceneSlotRef.current
+ const card = cardSlot?.querySelector<HTMLElement>("[data-testid='landing-identity-card-tilt']")
+
+ if (!layout || !cardSlot || !sceneSlot || !card) return
+
+ let frame = 0
+
+ const fitCard = () => {
+ cancelAnimationFrame(frame)
+ frame = requestAnimationFrame(() => {
+ const cardSlotBounds = cardSlot.getBoundingClientRect()
+ const sceneBounds = sceneSlot.getBoundingClientRect()
+ const sideBySide =
+ sceneBounds.left > cardSlotBounds.left &&
+ Math.abs(sceneBounds.top - cardSlotBounds.top) < 2
+ const scale = sideBySide && !compact
+ ? Math.min(1.08, Math.max(0.5, sceneBounds.height / card.offsetHeight))
+ : 1
+
+ layout.style.setProperty("--identity-card-fit-scale", scale.toFixed(4))
+ })
+ }
+
+ const observer = new ResizeObserver(fitCard)
+ observer.observe(layout)
+ observer.observe(card)
+ observer.observe(sceneSlot)
+ fitCard()
+
+ return () => {
+ cancelAnimationFrame(frame)
+ observer.disconnect()
+ }
+ }, [compact])
+
+ return (
+ <div ref={layoutRef} className={`${styles.identityMediaLayout} ${galleryStyles.identityMedia} ${compact ? galleryStyles.compactIdentity : ""}`} data-testid="landing-identity-proof">
+ <div ref={cardSlotRef} className={styles.identityCardSlot}>
+ <InteractiveIdentityProfileCard />
+ </div>
+ <div ref={sceneSlotRef} className={styles.identitySceneSlot}>
+ <div
+ className={styles.galleryFrame}
+ role="img"
+ aria-label="Maya keeps one identity across Studio, Home, and Game Night"
+ data-testid="landing-identity-motion"
+ >
+ <LandingShellMotion scene="identity" compact={compact} />
+ </div>
+ </div>
+ </div>
+ )
+}
+
+export default function LandingFeatureScene({ feature, container }: { feature: string; container: HTMLDivElement | null }) {
+ const [compact, setCompact] = useState(false)
+ useEffect(() => {
+ if (!container) return
+ const sync = () => setCompact(container.getBoundingClientRect().width < (feature === "identity" ? 1040 : 700))
+ sync()
+ const observer = new ResizeObserver(sync)
+ observer.observe(container)
+ return () => observer.disconnect()
+ }, [container, feature])
+ if (feature === "identity") return <IdentityProof compact={compact} />
+ if (feature === "continuity") return <ContinuityTimeline compact={compact} />
+ if (feature === "reach") return compact ? <ProductScene scene="server" compact /> : <LandingReachMotion />
+ if (feature === "ownership") return <><ProductScene scene="machine" compact={compact} /><RuntimeBadges /></>
+ return <ProductScene scene="server" compact={compact} />
+}
diff --git a/src/web/src/components/home/landing-interactive-demo.tsx b/src/web/src/components/home/landing-interactive-demo.tsx
index 9aaaa04a1..8566233f2 100644
--- a/src/web/src/components/home/landing-interactive-demo.tsx
+++ b/src/web/src/components/home/landing-interactive-demo.tsx
@@ -15,6 +15,7 @@ export function LandingInteractiveDemo({ heroReady }: { heroReady: boolean }) {
return () => window.removeEventListener("message", receive)
}, [])
return <section id="workspace" className={styles.section} aria-label="Explore Alook" data-testid="landing-interactive-section">
+ <h2 className={styles.demoHeading}>Try it. Imagine your team and friends here.</h2>
<div className={styles.frame} aria-busy={!ready}>
{!ready && <LandingWorkspaceSkeleton />}
{heroReady && <iframe ref={frame} src="/demo" title="Alook workspace" className={styles.workspace} aria-hidden={!ready} tabIndex={ready ? undefined : -1} style={{ opacity: ready ? 1 : 0 }} />}
diff --git a/src/web/src/components/home/landing-interactive-shell.module.css b/src/web/src/components/home/landing-interactive-shell.module.css
index d9dd009cc..8267a82b6 100644
--- a/src/web/src/components/home/landing-interactive-shell.module.css
+++ b/src/web/src/components/home/landing-interactive-shell.module.css
@@ -58,3 +58,6 @@
:global(html):has(.previewRoot) :global(.chat-composer .tiptap p),
:global(html):has(.previewRoot) :global(.chat-composer .tiptap li),
:global(html):has(.previewRoot) :global(.chat-placeholder-overlay) { line-height: 1.5rem; }
+
+.demoHeading { max-width: 1080px; margin: 32px auto 48px; color: var(--landing-text); font-family: var(--font-crt); font-size: clamp(3rem, 4.6vw, 5rem); font-weight: 400; letter-spacing: -0.025em; line-height: 0.98; text-wrap: balance; }
+@media (max-width: 639px) { .demoHeading { margin: 24px 12px 32px; font-size: 2.75rem; } }
diff --git a/src/web/src/components/home/landing-page.render.test.ts b/src/web/src/components/home/landing-page.render.test.ts
index 14d73fadc..82283d398 100644
--- a/src/web/src/components/home/landing-page.render.test.ts
+++ b/src/web/src/components/home/landing-page.render.test.ts
@@ -22,12 +22,7 @@ vi.mock("./landing-shell-motion", async () => {
describe("landing identity profile preview", () => {
it("renders the static Maya profile without consulting live profile state", () => {
const markup = renderToStaticMarkup(createElement(LandingPage, { isLoggedIn: false }))
- const identityCard = markup.match(
- /data-testid="landing-identity-card-tilt"[\s\S]*?data-testid="landing-identity-motion"/,
- )?.[0]
-
- expect(identityCard).toBeDefined()
- expect(identityCard).toContain("/landing/posters/profile.webp")
+ expect(markup).not.toContain("landing-identity-card-tilt")
const profile = renderToStaticMarkup(createElement(LandingProfileContent))
expect(profile).toContain("Maya")
expect(profile).toContain("Free for dinner")
@@ -63,12 +58,12 @@ const LANDING_PROFILE_ABOUT =
"I keep the same account, identity, and relationships across every room."
describe("landing section calls to action", () => {
- it.each([false, true])("routes all five section CTAs for signed-in=%s", (isLoggedIn) => {
+ it.each([false, true])("routes the selected feature CTA for signed-in=%s", (isLoggedIn) => {
const markup = renderToStaticMarkup(createElement(LandingPage, { isLoggedIn }))
const links = [...markup.matchAll(/<a\b[^>]*data-testid="landing-section-cta-([^"]+)"[^>]*>([\s\S]*?)<\/a>/g)]
- expect(links.map((match) => match[1])).toEqual(["product", "identity", "continuity", "reach", "ownership"])
+ expect(links.map((match) => match[1])).toEqual(["product"])
const labels = links.map((match) => match[2])
- expect(new Set(labels).size).toBe(5)
+ expect(new Set(labels).size).toBe(1)
for (const link of links) {
expect(link[0]).toContain(`href="${isLoggedIn ? "/c/me" : "/sign-in"}"`)
expect(link[2].trim().split(/\s+/).length).toBeLessThanOrEqual(3)
@@ -82,7 +77,8 @@ describe("standalone interactive second screen", () => {
expect(markup.indexOf('id="workspace"')).toBeLessThan(markup.indexOf('id="product"'))
expect(markup).not.toContain('src="/demo"')
expect(markup).toContain("Loading Alook workspace")
- expect(markup).toContain('data-testid="landing-scene-server"')
+ expect(markup).toContain("/landing/posters/server.webp")
+ expect(markup.indexOf('id="testimonials"')).toBeLessThan(markup.indexOf('id="workspace"'))
expect(markup).not.toContain("Reset demo")
expect(markup).not.toContain("Sample conversations")
})
diff --git a/src/web/src/components/home/landing-page.tsx b/src/web/src/components/home/landing-page.tsx
index 31b6fb081..8df18a054 100644
--- a/src/web/src/components/home/landing-page.tsx
+++ b/src/web/src/components/home/landing-page.tsx
@@ -1,211 +1,28 @@
"use client"
import Image from "next/image"
-import { useCallback, useEffect, useRef, useState, type PointerEvent as ReactPointerEvent } from "react"
+import { useCallback, useState } from "react"
import { LANDING_HUMAN_AVATARS } from "./landing-human-avatars"
import { GeneratedAvatar } from "@/components/avatar"
-import { ProviderLogo } from "@/components/provider-logo"
import { HeroSection } from "./hero-section"
import { HeroAvatarSwarm } from "./hero-avatar-swarm"
import { HomepageFaq } from "./homepage-faq"
import { LandingTestimonials } from "./landing-testimonials"
-import { LandingReachMotion } from "./landing-reach-motion"
-import { DeferredShellMotion as LandingShellMotion, DeferredProfileCard } from "./deferred-landing-media"
+import { LandingFeatureGallery } from "./landing-feature-gallery"
import { MarketingNav } from "./marketing-nav"
import { LandingInteractiveDemo } from "./landing-interactive-demo"
import { LandingFooter } from "./landing-footer"
-import {
- LANDING_CONTINUITY,
- LANDING_GALLERY,
- LANDING_HERO,
- LANDING_MACHINE_INTRO,
- LANDING_PROVIDERS,
-} from "./landing-content"
+import { LANDING_HERO } from "./landing-content"
import styles from "./landing-page.module.css"
import { trackLandingCtaClicked } from "@/lib/analytics"
import { tid } from "@/lib/community/testids"
-function SectionCta({ isLoggedIn, section, children }: {
- isLoggedIn: boolean
- section: string
- children: React.ReactNode
-}) {
- return (
- <a
- href={isLoggedIn ? "/c/me" : "/sign-in"}
- className={styles.sectionCta}
- data-testid={`landing-section-cta-${section}`}
- onClick={() => trackLandingCtaClicked({ cta_name: `${section}_${isLoggedIn ? "open_app" : "get_started"}` })}
- >
- {children}
- </a>
- )
-}
-
-function ProductScene({ scene }: { scene: (typeof LANDING_GALLERY)[number]["scene"] }) {
- const story = LANDING_GALLERY.find((item) => item.scene === scene)
-
- if (!story) return null
-
- return (
- <figure className={styles.sceneFigure} data-testid={`landing-scene-${scene}`}>
- <div className={styles.galleryFrame} role="img" aria-label={story.label}>
- <LandingShellMotion
- scene={story.scene}
- machineIntroDescription={LANDING_MACHINE_INTRO}
- />
- </div>
- </figure>
- )
-}
-
-function ContinuityTimeline() {
- return (
- <div className={styles.timelineBoard} data-testid="landing-identity-timeline">
- <div className={styles.galleryFrame} role="img" aria-label="Alli follows one request through a DM, Studio, and Home">
- <LandingShellMotion scene="continuity" />
- </div>
- </div>
- )
-}
-
-function RuntimeBadges() {
- return (
- <div
- className={styles.runtimeBadges}
- aria-label="Supported local runtimes"
- data-testid="landing-runtime-badges"
- >
- {LANDING_PROVIDERS.map((provider) => (
- <span key={provider.id}>
- <ProviderLogo provider={provider.id} className="size-4" />
- {provider.label}
- </span>
- ))}
- </div>
- )
-}
-
const CLOSING_COMPANIONS = [
{ seed: "Maya", className: styles.closingCompanionLeft },
{ seed: "Alli", className: styles.closingCompanionTop },
{ seed: "Gus", className: styles.closingCompanionRight },
] as const
-function InteractiveIdentityProfileCard() {
- const tiltRef = useRef<HTMLDivElement>(null)
-
- const resetTilt = () => {
- const element = tiltRef.current
- if (!element) return
- element.dataset.tilting = "false"
- element.style.setProperty("--card-rotate-x", "0deg")
- element.style.setProperty("--card-rotate-y", "0deg")
- element.style.setProperty("--card-scale", "1")
- element.style.setProperty("--card-light-opacity", "0")
- element.style.setProperty("--card-shadow-x", "0px")
- element.style.setProperty("--card-shadow-y", "20px")
- }
-
- const tiltCard = (event: ReactPointerEvent<HTMLDivElement>) => {
- if (event.pointerType === "touch") return
- const element = tiltRef.current
- if (!element) return
-
- const bounds = element.getBoundingClientRect()
- const x = Math.min(1, Math.max(0, (event.clientX - bounds.left) / bounds.width))
- const y = Math.min(1, Math.max(0, (event.clientY - bounds.top) / bounds.height))
-
- element.dataset.tilting = "true"
- element.style.setProperty("--card-rotate-x", `${(0.5 - y) * 14}deg`)
- element.style.setProperty("--card-rotate-y", `${(x - 0.5) * 18}deg`)
- element.style.setProperty("--card-scale", "1.015")
- element.style.setProperty("--card-light-x", `${x * 100}%`)
- element.style.setProperty("--card-light-y", `${y * 100}%`)
- element.style.setProperty("--card-light-opacity", "0.72")
- element.style.setProperty("--card-shadow-x", `${(0.5 - x) * 24}px`)
- element.style.setProperty("--card-shadow-y", `${20 + y * 16}px`)
- }
-
- return (
- <div
- ref={tiltRef}
- className={styles.identityProfileCard}
- onPointerMove={tiltCard}
- onPointerLeave={resetTilt}
- onPointerCancel={resetTilt}
- data-testid="landing-identity-card-tilt"
- >
- <span className={styles.identityProfileCardSensor} aria-hidden="true" />
- <div className={styles.identityProfileCardSurface}>
- <DeferredProfileCard />
- </div>
- </div>
- )
-}
-
-function IdentityProof() {
- const layoutRef = useRef<HTMLDivElement>(null)
- const cardSlotRef = useRef<HTMLDivElement>(null)
- const sceneSlotRef = useRef<HTMLDivElement>(null)
-
- useEffect(() => {
- const layout = layoutRef.current
- const cardSlot = cardSlotRef.current
- const sceneSlot = sceneSlotRef.current
- const card = cardSlot?.querySelector<HTMLElement>("[data-testid='landing-identity-card-tilt']")
-
- if (!layout || !cardSlot || !sceneSlot || !card) return
-
- let frame = 0
-
- const fitCard = () => {
- cancelAnimationFrame(frame)
- frame = requestAnimationFrame(() => {
- const cardSlotBounds = cardSlot.getBoundingClientRect()
- const sceneBounds = sceneSlot.getBoundingClientRect()
- const sideBySide =
- sceneBounds.left > cardSlotBounds.left &&
- Math.abs(sceneBounds.top - cardSlotBounds.top) < 2
- const scale = sideBySide
- ? Math.min(1.08, Math.max(0.5, sceneBounds.height / card.offsetHeight))
- : 1
-
- layout.style.setProperty("--identity-card-fit-scale", scale.toFixed(4))
- })
- }
-
- const observer = new ResizeObserver(fitCard)
- observer.observe(layout)
- observer.observe(card)
- observer.observe(sceneSlot)
- fitCard()
-
- return () => {
- cancelAnimationFrame(frame)
- observer.disconnect()
- }
- }, [])
-
- return (
- <div ref={layoutRef} className={styles.identityMediaLayout} data-testid="landing-identity-proof">
- <div ref={cardSlotRef} className={styles.identityCardSlot}>
- <InteractiveIdentityProfileCard />
- </div>
- <div ref={sceneSlotRef} className={styles.identitySceneSlot}>
- <div
- className={styles.galleryFrame}
- role="img"
- aria-label="Maya keeps one identity across Studio, Home, and Game Night"
- data-testid="landing-identity-motion"
- >
- <LandingShellMotion scene="identity" />
- </div>
- </div>
- </div>
- )
-}
-
export function LandingPage({ isLoggedIn }: { isLoggedIn: boolean }) {
const [heroReady, setHeroReady] = useState(false)
const handleHeroReady = useCallback(() => setHeroReady(true), [])
@@ -226,7 +43,7 @@ export function LandingPage({ isLoggedIn }: { isLoggedIn: boolean }) {
onReady={handleHeroReady}
staticPaper
desktopSplit
- nextSectionId="workspace"
+ nextSectionId="testimonials"
isLoggedIn={isLoggedIn}
headline={(
<>
@@ -252,90 +69,11 @@ export function LandingPage({ isLoggedIn }: { isLoggedIn: boolean }) {
backgroundDecoration={<HeroAvatarSwarm />}
/>
- <LandingInteractiveDemo heroReady={heroReady} />
-
- <section id="product" tabIndex={-1} className={styles.productSection} data-testid="landing-product-proof">
- <div className={styles.productLayout} data-testid={tid.landingMainContainer}>
- <div className={styles.sectionIntro}>
- <div className={styles.sectionLead}>
- <p className={styles.sectionMuted}>AI agent collaboration</p>
- <h2>Let teammates talk to your agent.</h2>
- </div>
- <p>
- Coordinate multi-agent workflows in one conversation. Ask for a preview, request changes, and review results with your team.
- </p>
- <SectionCta isLoggedIn={isLoggedIn} section="product">Share your agent</SectionCta>
- </div>
- <ProductScene scene="server" />
- </div>
- </section>
-
- <section id="identity" className={styles.identitySection}>
- <div className={styles.identityLayout}>
- <div className={styles.sectionIntro}>
- <div className={styles.sectionLead}>
- <p className={styles.sectionMuted}>A familiar face</p>
- <h2>A companion of your own.</h2>
- </div>
- <p>
- Your agent belongs to you. Bring them along to any room or team you join.
- </p>
- <SectionCta isLoggedIn={isLoggedIn} section="identity">Invite your agent</SectionCta>
- </div>
- <IdentityProof />
- </div>
- </section>
-
- <section id="continuity" className={styles.timelineSection}>
- <div className={styles.productLayout}>
- <div className={styles.sectionIntro}>
- <div className={styles.sectionLead}>
- <p className={styles.sectionMuted}>{LANDING_CONTINUITY.kicker}</p>
- <h2>{LANDING_CONTINUITY.headline}</h2>
- </div>
- <p>{LANDING_CONTINUITY.description}</p>
- <SectionCta isLoggedIn={isLoggedIn} section="continuity">Start a task</SectionCta>
- </div>
- <ContinuityTimeline />
- </div>
- </section>
-
- <section id="reach" className={styles.reachSection} data-testid="landing-reach">
- <div className={styles.productLayout}>
- <div className={styles.sectionIntro}>
- <div className={styles.sectionLead}>
- <p className={styles.sectionMuted}>Away from your desk</p>
- <h2>Check in from your phone.</h2>
- </div>
- <p>
- Read updates and give the next instruction wherever you are. Keep your agent’s computer online.
- </p>
- <SectionCta isLoggedIn={isLoggedIn} section="reach">Work anywhere</SectionCta>
- </div>
- <LandingReachMotion />
- </div>
- </section>
+ <LandingTestimonials />
- <section id="ownership" className={styles.ownershipSection}>
- <div className={styles.ownershipInner}>
- <div className={styles.ownershipCopy}>
- <p className={styles.darkMuted}>Use your existing setup</p>
- <h2>Keep your existing setup.</h2>
- <p className={styles.ownershipDescription}>
- Connect the agent you already use. It runs on your computer with your project, tools, and configured access.
- </p>
- <SectionCta isLoggedIn={isLoggedIn} section="ownership">Connect your agent</SectionCta>
- <div className={styles.runtimeGroup}>
- <RuntimeBadges />
- </div>
- </div>
- <div className={styles.ownershipVisual}>
- <ProductScene scene="machine" />
- </div>
- </div>
- </section>
+ <LandingInteractiveDemo heroReady={heroReady} />
- <LandingTestimonials />
+ <LandingFeatureGallery isLoggedIn={isLoggedIn} />
<HomepageFaq />
diff --git a/src/web/src/components/home/landing-reach-motion.module.css b/src/web/src/components/home/landing-reach-motion.module.css
index 910b3fd6e..a740455b1 100644
--- a/src/web/src/components/home/landing-reach-motion.module.css
+++ b/src/web/src/components/home/landing-reach-motion.module.css
@@ -166,7 +166,7 @@
transform: translateX(-50%);
}
-@media (max-width: 720px) {
+@media (max-width: 639px) {
.stage {
display: flex;
height: auto;
diff --git a/src/web/src/components/home/landing-shell-motion.module.css b/src/web/src/components/home/landing-shell-motion.module.css
index 50cf58992..f7fab1c6a 100644
--- a/src/web/src/components/home/landing-shell-motion.module.css
+++ b/src/web/src/components/home/landing-shell-motion.module.css
@@ -427,3 +427,19 @@
align-self: flex-end;
}
}
+
+.compactStage {
+ --motion-sheet-width: calc(100% - 16px);
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+ min-width: 0;
+ overflow: hidden;
+ pointer-events: none;
+ background: var(--background);
+ color: var(--foreground);
+}
+.compactStage > div {
+ flex: 0 0 auto;
+}
diff --git a/src/web/src/components/home/landing-shell-motion.render.test.ts b/src/web/src/components/home/landing-shell-motion.render.test.ts
index 76c6247e6..9d26ce40a 100644
--- a/src/web/src/components/home/landing-shell-motion.render.test.ts
+++ b/src/web/src/components/home/landing-shell-motion.render.test.ts
@@ -59,6 +59,19 @@ describe("landing community preview rendering", () => {
},
)
+ it.each([
+ ["server", "The headline is hard to read on my phone"],
+ ["machine", "Machines"],
+ ["identity", "Maya"],
+ ["continuity", "Saturday at six works"],
+ ] as const)("renders readable compact %s content without the desktop camera", (scene, content) => {
+ const markup = renderToStaticMarkup(createElement(LandingShellMotion, { scene, compact: true, beat: SCENE_MAX_BEAT[scene] }))
+ expect(markup).toContain(content)
+ expect(markup).toContain('class="compactStage"')
+ expect(markup).not.toContain("data-camera-scale")
+ expect(markup).not.toContain("Unknown")
+ })
+
it.each(ALL_SCENES)("renders the final %s scene without unresolved fixture identities", (scene) => {
const markup = renderToStaticMarkup(createElement(LandingShellMotion, {
scene,
diff --git a/src/web/src/components/home/landing-shell-motion.tsx b/src/web/src/components/home/landing-shell-motion.tsx
index 109605c4f..de7b2357a 100644
--- a/src/web/src/components/home/landing-shell-motion.tsx
+++ b/src/web/src/components/home/landing-shell-motion.tsx
@@ -653,6 +653,7 @@ export function LandingShellMotion({
machineIntroDescription,
overviewDetails = false,
beat: controlledBeat,
+ compact = false,
children,
dms,
activeDm,
@@ -663,6 +664,7 @@ export function LandingShellMotion({
machineIntroDescription?: string
overviewDetails?: boolean
beat?: number
+ compact?: boolean
children?: ReactNode
dms?: DM[]
activeDm?: string
@@ -733,6 +735,20 @@ export function LandingShellMotion({
cameraReady ? cursor : null,
)
+ if (compact) return (
+ <div ref={playbackRef} className={styles.root}>
+ <div ref={stageRef} className={styles.compactStage} data-layout="compact" data-testid="landing-motion-stage" data-scene={scene} data-beat={snapshot.beat} aria-hidden>
+ <CommunityPreviewProfileOwner profiles={LANDING_PREVIEW_PROFILES}>
+ <QueryClientProvider client={queryClient}>
+ <CommunityDbProvider registry={registry}>
+ <PrototypeSceneContent scene={scene} snapshot={visualSnapshot} machineIntroDescription={machineIntroDescription} overviewDetails={overviewDetails} compact />
+ </CommunityDbProvider>
+ </QueryClientProvider>
+ </CommunityPreviewProfileOwner>
+ </div>
+ </div>
+ )
+
return (
<div ref={playbackRef} className={styles.root}>
<div
@@ -943,21 +959,7 @@ function PrototypeShell({
key={`content-${scene}-${room ?? "default"}`}
className={`flex min-w-0 flex-1 flex-col bg-background ${styles.sceneEnter}`}
>
- {children ?? <>
- {scene === "server" && (
- <ServerScene snapshot={snapshot} showTypingPill={overviewDetails} />
- )}
- {scene === "machine" && (
- <MachineScene
- snapshot={snapshot}
- introDescription={machineIntroDescription}
- />
- )}
- {scene === "provider" && <ProviderScene snapshot={snapshot} />}
- {scene === "spaces" && <SpacesScene snapshot={snapshot} />}
- {scene === "identity" && <IdentityScene snapshot={snapshot} />}
- {scene === "continuity" && <ContinuityScene snapshot={snapshot} />}
- </>}
+ {children ?? <PrototypeSceneContent scene={scene} snapshot={snapshot} machineIntroDescription={machineIntroDescription} overviewDetails={overviewDetails} />}
</div>
</div>
</AppSurface>
@@ -969,6 +971,21 @@ function PrototypeShell({
)
}
+function PrototypeSceneContent({ scene, snapshot, machineIntroDescription, overviewDetails, compact = false }: {
+ scene: LandingScene
+ snapshot: SceneSnapshot
+ machineIntroDescription?: string
+ overviewDetails: boolean
+ compact?: boolean
+}) {
+ if (scene === "server") return <ServerScene snapshot={snapshot} showTypingPill={overviewDetails} />
+ if (scene === "machine") return <MachineScene snapshot={snapshot} introDescription={machineIntroDescription} compact={compact} />
+ if (scene === "provider") return <ProviderScene snapshot={snapshot} />
+ if (scene === "spaces") return <SpacesScene snapshot={snapshot} />
+ if (scene === "identity") return <IdentityScene snapshot={snapshot} />
+ return <ContinuityScene snapshot={snapshot} />
+}
+
export function landingChannelTreeScopeKey({
scene,
room,
@@ -1554,9 +1571,11 @@ export function PrototypeComposer({
function MachineScene({
snapshot,
introDescription,
+ compact = false,
}: {
snapshot: SceneSnapshot
introDescription?: string
+ compact?: boolean
}) {
const online = snapshot.machineState === "online" || snapshot.machineState === "bot-born"
const pairOpen = snapshot.pairSheet !== "closed"
@@ -1569,7 +1588,7 @@ function MachineScene({
data-visible={!online}
className={`${styles.stateLayer} flex min-w-0 flex-col`}
>
- <div className="flex flex-1 flex-col items-center justify-center gap-4 p-12 text-center">
+ <div className={`flex flex-1 flex-col items-center justify-center gap-4 text-center ${compact ? "p-4" : "p-12"}`}>
<div className="w-full max-w-70 overflow-hidden rounded-xl">
<div className="aspect-200/130 w-full">
<ConnectTile idPrefix="landing-motion-connect" />
@@ -1603,9 +1622,9 @@ function MachineScene({
<div
data-visible={online}
- className={`${styles.stateLayer} flex min-w-0 flex-col gap-6 overflow-hidden p-6`}
+ className={`${styles.stateLayer} flex min-w-0 flex-col gap-6 overflow-hidden ${compact ? "p-4" : "p-6"}`}
>
- <header className="flex items-center justify-between">
+ <header className={`flex ${compact ? "flex-col items-start gap-4" : "items-center justify-between"}`}>
<div>
<div className="font-heading text-xl font-medium leading-[1.15] tracking-[-0.015em] text-foreground">
Machines
diff --git a/src/web/src/components/home/landing-testimonials.module.css b/src/web/src/components/home/landing-testimonials.module.css
index cd5b10214..f66aab480 100644
--- a/src/web/src/components/home/landing-testimonials.module.css
+++ b/src/web/src/components/home/landing-testimonials.module.css
@@ -1,6 +1,6 @@
.section {
padding-block: clamp(72px, 9vw, 128px);
- background: var(--landing-bg);
+ background: var(--landing-section-bg, var(--landing-surface));
color: var(--landing-text);
scroll-margin-top: 72px;
}
diff --git a/src/web/src/lib/community/testids.ts b/src/web/src/lib/community/testids.ts
index 09b0b866f..f5a58ca08 100644
--- a/src/web/src/lib/community/testids.ts
+++ b/src/web/src/lib/community/testids.ts
@@ -161,6 +161,8 @@ export const tid = {
landingFooterSlogan: "landing-footer-slogan",
landingFooterNavigation: "landing-footer-navigation",
landingFooterSocial: "landing-footer-social",
+ landingMotionStage: "landing-motion-stage",
+ landingIdentityCardTilt: "landing-identity-card-tilt",
landingMobileMotionStage: "landing-mobile-motion-stage",
homeButton: "community-home-button",
alookLogo: "community-alook-logo",
diff --git a/src/web/src/test/e2e-ui/19-marketing-seo.spec.ts b/src/web/src/test/e2e-ui/19-marketing-seo.spec.ts
index 8d23efe2b..73d202305 100644
--- a/src/web/src/test/e2e-ui/19-marketing-seo.spec.ts
+++ b/src/web/src/test/e2e-ui/19-marketing-seo.spec.ts
@@ -156,10 +156,12 @@ test("homepage keeps Tutorials in the footer and collapses mobile header links",
})
test("desktop landing keeps the embedded phone Back control on true mobile geometry", async ({ page }) => {
- await page.setViewportSize({ width: 1280, height: 900 })
+ await page.setViewportSize({ width: 1440, height: 900 })
await page.emulateMedia({ reducedMotion: "reduce" })
await page.goto("/")
+ await page.getByRole("tab", { name: "On your phone" }).click()
+ await page.getByRole("tabpanel").locator(":scope > div").last().scrollIntoViewIfNeeded()
await page.locator('[data-slot="phone-mockup-card"]').scrollIntoViewIfNeeded()
const stage = page.getByTestId(tid.landingMobileMotionStage)
await stage.scrollIntoViewIfNeeded()
@@ -281,3 +283,92 @@ for (const width of [1440, 390]) {
await expect.poll(contactLayout).toEqual(direct)
})
}
+
+
+test("landing gallery preserves order, responsive geometry, and keyboard selection", async ({ page }) => {
+ await page.emulateMedia({ reducedMotion: "reduce" })
+ for (const width of [1440, 1024, 820, 768, 640, 639, 390, 320]) {
+ await page.setViewportSize({ width, height: 900 })
+ await page.goto("/")
+ const order = await page.locator("#testimonials, #workspace, #product").evaluateAll(elements => elements.map(element => element.id))
+ expect(order).toEqual(["testimonials", "workspace", "product"])
+ await expect(page.getByRole("heading", { name: "Try it. Imagine your team and friends here." })).toHaveCount(1)
+ const tabs = page.getByRole("tablist", { name: "Features" }).getByRole("tab")
+ await tabs.first().scrollIntoViewIfNeeded()
+ await expect(tabs).toHaveCount(5)
+ for (const tab of await tabs.all()) {
+ await tab.click()
+ await expect(tab).toHaveAttribute("aria-selected", "true")
+ await expect(page.getByRole("tabpanel")).toHaveCount(1)
+ const bounds = await tab.boundingBox()
+ expect(bounds!.height).toBeGreaterThanOrEqual(44)
+ expect(bounds!.x).toBeGreaterThanOrEqual(0)
+ expect(bounds!.x + bounds!.width).toBeLessThanOrEqual(width)
+ expect(await page.evaluate(() => document.documentElement.scrollWidth)).toBeLessThanOrEqual(width)
+ const stage = page.getByRole("tabpanel").locator(":scope > div").last()
+ await stage.scrollIntoViewIfNeeded()
+ await expect(stage.locator(":scope > figure, :scope > div[aria-label], :scope > div:has([role=img])").first()).toBeVisible()
+ if (width <= 639) {
+ const media = stage.locator(":scope > figure, :scope > div[aria-label], :scope > div:has([role=img])").first()
+ const mediaBounds = await media.boundingBox()
+ const ctaBounds = await page.getByRole("tabpanel").getByRole("link").boundingBox()
+ expect(mediaBounds!.y - ctaBounds!.y - ctaBounds!.height, JSON.stringify({ width, tab: await tab.textContent() })).toBeLessThanOrEqual(140)
+ }
+ if (width <= 1024) {
+ await expect(stage.getByTestId(tid.landingMotionStage)).toHaveAttribute("data-layout", "compact")
+ if (await stage.getByTestId(tid.landingIdentityCardTilt).count()) {
+ await expect(stage.getByTestId(tid.landingIdentityCardTilt)).toHaveCSS("transform", "none")
+ }
+ const paragraphs = stage.locator('div[data-visible="true"] p:visible')
+ if (await paragraphs.count()) {
+ const text = await paragraphs.last().evaluate((element, motionStageId) => {
+ const box = element.getBoundingClientRect()
+ const frame = element.closest(`div[data-testid="${motionStageId}"]`)!.getBoundingClientRect()
+ return { size: parseFloat(getComputedStyle(element).fontSize), left: box.left - frame.left, right: box.right - frame.right, bottom: box.bottom - frame.bottom, overflow: element.scrollWidth - element.clientWidth }
+ }, tid.landingMotionStage)
+ expect(text.size).toBeGreaterThanOrEqual(14)
+ expect(text.left).toBeGreaterThanOrEqual(0)
+ expect(text.right).toBeLessThanOrEqual(1)
+ expect(text.overflow).toBeLessThanOrEqual(1)
+ expect(text.bottom).toBeLessThanOrEqual(1)
+ }
+ }
+ const geometry = await stage.evaluate(element => {
+ const box = element.getBoundingClientRect()
+ return { top: box.top + window.scrollY, height: box.height, children: [...element.children].map(child => {
+ const rect = child.getBoundingClientRect()
+ return { top: rect.top - box.top, bottom: rect.bottom - box.top }
+ }) }
+ })
+ expect(geometry.children.every(child => child.top >= -1 && child.bottom <= geometry.height + 1), JSON.stringify({ width, tab: await tab.textContent(), geometry })).toBe(true)
+ }
+ await tabs.last().press("Home")
+ await expect(tabs.first()).toBeFocused()
+ await expect(tabs.first()).toHaveAttribute("aria-selected", "true")
+ }
+})
+
+
+test("landing gallery mobile playback keeps full-size readable messages", async ({ page }) => {
+ await page.setViewportSize({ width: 390, height: 844 })
+ await page.emulateMedia({ reducedMotion: "no-preference" })
+ await page.goto("/", { waitUntil: "networkidle" })
+ const stage = page.getByRole("tabpanel").locator(":scope > div").last()
+ await stage.scrollIntoViewIfNeeded()
+ const motion = stage.getByTestId(tid.landingMotionStage)
+ await motion.scrollIntoViewIfNeeded()
+ await expect.poll(async () => Number(await motion.getAttribute("data-beat"))).toBeGreaterThanOrEqual(3)
+ const paragraph = stage.locator('div[data-visible="true"] p:visible').first()
+ const geometry = await paragraph.evaluate(element => {
+ let scale = 1
+ for (let parent = element.parentElement; parent; parent = parent.parentElement) {
+ const transform = getComputedStyle(parent).transform
+ if (transform !== "none") scale *= new DOMMatrix(transform).a
+ }
+ return { scale, size: parseFloat(getComputedStyle(element).fontSize), overflow: element.scrollWidth - element.clientWidth }
+ })
+ expect(geometry.scale).toBeGreaterThanOrEqual(0.99)
+ expect(geometry.scale).toBeLessThanOrEqual(1.01)
+ expect(geometry.size).toBeGreaterThanOrEqual(14)
+ expect(geometry.overflow).toBeLessThanOrEqual(1)
+})
diff --git a/src/web/src/test/e2e-ui/65-analytics-document-boundary.spec.ts b/src/web/src/test/e2e-ui/65-analytics-document-boundary.spec.ts
index 5bdad2fc2..aa9eb9723 100644
--- a/src/web/src/test/e2e-ui/65-analytics-document-boundary.spec.ts
+++ b/src/web/src/test/e2e-ui/65-analytics-document-boundary.spec.ts
@@ -146,7 +146,11 @@ for (const signedIn of [false, true]) {
else if (section === "nav") {
await page.locator(".hero-section").evaluate(hero => window.scrollTo(0, hero.getBoundingClientRect().bottom + window.scrollY + 1))
link = page.locator(`.marketing-nav a[href="${destination}"]`)
- } else link = page.getByTestId(section === "closing" ? "landing-closing-open" : `landing-section-cta-${section}`)
+ } else {
+ const featureTabs: Record<string, string> = { product: "Collaborate", identity: "Your agent", continuity: "Keep context", reach: "On your phone", ownership: "Your setup" }
+ if (featureTabs[section]) await page.getByRole("tab", { name: featureTabs[section], exact: true }).click()
+ link = page.getByTestId(section === "closing" ? "landing-closing-open" : `landing-section-cta-${section}`)
+ }
await expect(link).toHaveAttribute("href", destination)
await expectNativeEntry(page, link, destination, section === "closing")
}