Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(marketing): latest homepage, demos, and pricing calculator in apps/marketing (from jacob) (#7331)
teo96190672275f
diff --git a/apps/marketing/README.md b/apps/marketing/README.mdindex 098fbc4e93..887cdc10a5 100644--- a/apps/marketing/README.md+++ b/apps/marketing/README.md@@ -19,6 +19,32 @@ components. Application UI changes must not alter the website.fonts, videos, styling, and other static files.- `scripts/`: public build, prerendering, SEO, and architecture checks.+Email is the visual reference for product pages. Tasks, Channels, Documents,+Agents, Calls, and Reviews use `ProductPage` on top of `FeaturePage`: centered+Slab heroes, a 920px outer feature measure with 24px inset, left-aligned+feature copy, small illustrated navigation, practical FAQs, and the shared+homepage closing CTA. The Email and CRM compositions remain independent.+Focused `ProductDemo` subgraphics also share Email's cool glow, fine dotted+texture, and bottom fade. The fade sits below the content so editors and+reply controls remain readable.++Product copy should name a real mechanism and explain what it enables: CRDT+sync, direct agent edits, indexed email search, bidirectional references, or+channel-based sharing. Verify claims against the implementation. Avoid vague+“context,” “move work forward,” and “all in one place” headlines, demo narration+as feature prose, and unqualified superiority claims. Explain technical terms+once in plain language; keep demo disclosures in captions and relevant FAQs.++Product stories live in their feature's `components/*/*Stories.tsx` files.+They reuse frozen product presentation and local workspace data. Call records+and GitHub review details port the smallest presentation needed from the app;+they do not initialize calls, run checks, post GitHub comments, or merge code.+`createProductWalkthrough` runs once while visible, pauses when the document is+hidden, shows the completed result for reduced motion, and permanently gives+control to the visitor after pointer or keyboard input. Interaction tests cover+that handoff, source links, thread replies, access selection, Sent drafts,+transcript selection, and review filters. All changes stay local.+Use website-owned files or third-party packages declared in this directory's`package.json`. Do not import `apps/web/src`, repository `packages`, app aliasessuch as `@core` or `@queries`, or `@macro-inc/*` workspace packages. Copy the@@ -42,6 +68,12 @@ Local preview data must not be presented as server-backed account state.The preview proceeds from integration selection directly to workspace setup;Back from workspace setup returns to integrations.+The homepage document and version timeline share a single playhead. Verify that+dragging the blue handle restores earlier and later edits, remains paused after+release, and supports arrow keys/Home/End. Repeat with reduced motion, which+starts finished but permits manual scrubbing. Below 768px the existing compact+layout continues to hide the timeline.+## Develop and validateFrom this directory:@@ -109,14 +141,177 @@ To verify the page: filter accounts, search and open an inbox thread, move anupdate to Noise and undo, share the example into the launch channel, and openits linked thread. The composer, sharing, and edits stay local. No demo sendsmail or changes a workspace. Playback pauses offscreen and when the page is-hidden; reduced-motion mode shows the completed share. Test pause/replay and-opening a shared email, plus typing and sending a local channel message.+hidden; reduced-motion mode shows the completed share. The animations run once+without playback controls. Test opening a shared email, plus typing and sending+a local channel message.++The email sharing walkthrough measures its controls to position an animated mouse+pointer. Manual pointer or keyboard interaction stops it. Email, channel, and+new-reply views share a fixed-height viewport with internal scrolling, so the+section below stays in place.The four feature links have inline SVG illustrations. Full app frames use araised rim and a bottom mask into the page background; keep interactive controlsabove the faded tail. `HomepageEmailCompose` uses the frozen app composer chromeon the email page while retaining the existing homepage appearance.+`/crm` follows the same reading width, left-aligned slab headings, glass edges,+and homepage closing animation. `WorkspaceDesktopDemo` supplies the shared Mac+window and desktop background for both email and CRM. CRM demonstrates message-driven+record updates using the shared company UI, company enrichment, an editable customer record, company+mentions in documents and chat, and an agent updating the pipeline. Keep these demos local and check the record interactions+at both desktop and mobile widths.+FAQ answers and the collapsed comparison are rendered in the initial HTML.The comparison uses a native `details` disclosure for both people and crawlers.Retain FAQ class markers so prerendering emits matching FAQPage structured data.++## Blog presentation++`/posts` lists every article as one icon-and-title row. There are no category or+search controls; old `?tag=` links still reach the complete list. Article URLs,+metadata, and the chronological ordering stay unchanged.++`posts-shell.css`, `posts-index.css`, and `post-reading.css` keep the blog aligned+with the homepage: slab titles, monochrome accents, and the onboarding security+section’s Inter reading measure. Comparison FAQs use `PostFaqItem` with native+`details` disclosures; retain its FAQ class markers for prerendered FAQPage data.+Check the index and article layouts at desktop and mobile widths, verify the+full title remains accessible for truncated rows, and exercise FAQ toggles.+++## Interactive sample workspace++The Home and channel composers use atomic local mention tokens. Their presentation+is frozen from `UserMention`, `DocumentMention`, and `MentionsMenu`: short blue user+pills, colored entity icons, underlined reference names, and grouped menu rows.+Verify typing `@`, keyboard and mouse selection, category drilldown, multiple+references, paste, and sending a local channel message. References retain their+formatting after sending; pasted HTML is treated as plain text.++On desktop (800px and wider), the homepage embeds `/demo?embedded=true` at+`#interactive-demo` in a 1200px-max+noisy gradient stage using the feature bubbles’ violet, teal, green, and amber+palette. As the page scrolls, the bubbles converge and fade into the expanding+stage, followed by the workspace. Reduced motion shows the finished state.+Interacting with the frame settles the entrance permanently for that mount.+Embedded mode hides the demo banner; the normal `/demo` route keeps it. Verify+navigation and the mobile sidebar inside the frame, forward/backward scrolling,+and interaction during the reveal. The desktop iframe renders at 85% scale inside+the same frame. The iframe uses native lazy loading.++A benefit carousel fades the live preview into slab-serif headlines. The first+highlight opens an email inside Home’s mixed activity feed; subsequent highlights+show Chat, Docs, CRM, Tasks, and Agents. Arrows, dots, left/right keys, and swiping+the caption select highlights without reloading the frame. Horizontal drags+capture the pointer; vertical gestures keep scrolling the page. There is no autoplay.+The workspace is always interactive. Clicking or typing inside it keeps the fade,+headline, controls, and layout intact. Sidebar navigation updates the active+highlight without overriding the visitor’s navigation. Slab headlines sit directly+below the blue indicator and chevrons, without small category headers. Verify direct+interaction, slide navigation, and reduced motion when changing this section.+Below the carousel, the original open-source section shows GitHub stars, a16z+backing, and ISO/SOC 2/CASA badges. A continuous grainy gradient funnels into the+GitHub mark on scroll, then drains away. Verify the flow in both scroll directions+and after resizing. Reduced motion skips the flow+and shows the finished GitHub treatment.+Below 800px, the homepage keeps the original sequence: feature bubbles, the full+open-source section, then a curved connector into the abbreviated sidebar diagram.+The embedded demo, carousel, liquid transition, and demo launch button do not mount+on mobile. Resize across 800px to verify both compositions and animation cleanup.+The desktop sidebar graphic remains behind `SHOW_SIDEBAR_BREAKDOWN = false` in+`HomepageSections.tsx`.++When that flag is enabled, the Interactive demo button below the sidebar graphic opens `/demo`+in a 90vw × 90dvh modal. The iframe mounts only after activation. Check the+animated 150px connector, traffic-light and top-right close controls, focus+return, and Escape inside the iframe (an inner menu should consume Escape first).+Reduced-motion preferences disable hover transitions and modal animation, and+show the connector fully drawn.++`/demo` provides a session-only workspace with Home, tasks, email, channels, DMs,+documents, a Customers board/list, Calendar, and a scripted agent. It is prerendered for direct links and marked `noindex`;+it is excluded from the sitemap. `/tasks` embeds the same workspace components.++`features/marketing/core/dummy-workspace.ts` owns the sample dataset and+`primitives/createDummyWorkspace.ts` owns local commands. Each mounted workspace+has its own state. Reset restores the fixtures and cancels pending scripted work.+No messages, emails, edits, or invitations reach app services. Refresh discards+changes. Agent replies are scripted, and microphone/file actions in the chat+composer are disabled. Text editors use native editable surfaces with the frozen+app presentation rather than the app's networked editor runtime.++The rail, notebook layout, property pills, property icons, email message cards,+and composer chrome are copied or adapted from the app into this package. Their+source components are recorded alongside the copies. Keep these imports local;+run `bun run check:standalone` when changing them. The frozen composer layout CSS+is unlayered so the injected website reset cannot remove its internal padding.++Browser checks: edit a task's title, status, owner, and checklist; comment and+reopen it; create a task from a channel message; share an email or document into+a channel and open the linked item; reply to email and check Sent; create a new+email; edit a document; search across views; reset. Check the composer with short,+multiline, and wrapped text at desktop and mobile widths. Sending clears and+shrinks it, and Shift+Enter adds a line.++Email rows use the app’s small outlined badges, with seeded tags and Favorites.+Filter with the email sidebar tags or Unread only, and edit an email’s tags in+its details panel. Check that tags survive reopening the email and that filters+combine with account selection and search. Reset restores the seeded inbox.++Documents and tasks have colored tags using the app's tag palette. Use the plus+beside the tags to select or remove demo tags; the body and details panel stay in+sync. Verify that tag changes survive navigating away and reopening the item+within the same session. Refresh or Reset restores the sample tags.++The sample uses the live app's 256px view sidebar, open channel message rows,+centered Home/agent composer, and collapsible detail panels. Customers and Calendar+use fictional company/contact/event fixtures in `core/workspace-fixtures.ts`;+never replace them with private content from reference screenshots.++Additional browser checks: change a company stage and verify its board column;+search/filter the board; edit a calendar event, switch Week/Day and navigate dates;+toggle personal events; reply in a channel/DM; toggle the task/document/company+details panel. A fresh agent conversation shows the centered input. Native+inputs and selects replace networked app editors and property providers.++### Demo visual parity checks++The sample workspace uses the app's frozen `Tabs` for sidebar choices and+`TabsInset` for conversation tabs. Do not substitute one for the other. Marketing+button/input/link defaults must exclude `.dummy-workspace` descendants: they+otherwise override the app's typography. Check computed styles in the signed-in+app and `/demo` at the same viewport before changing presentation.++Verified desktop reference dimensions: sidebar tabs 32px high; inset tab track+30px with 24px labels and 12px text; composer actions 33.75px with 20.625px icons;+task rows 44px with 12px/15px property text and 6px 8px property padding.+Attachment selection in the sample composer keeps filenames only in the local+message; file contents are never uploaded. AI responses remain scripted.++The Home/Agents model picker freezes the production `ModelCatalogPicker` and+catalog helpers under `workspace/frozen/model-picker`. Preserve its searchable+menu, provider icons, selected checkmark, and top-end placement. Its portal+stays inside the website scope; the sample catalog does not call model services.+Verify filtering, selection, and Escape dismissal when changing the picker.++Home item navigation preserves the Home rail/sidebar and opens the selected+task, document, email, or channel in its main pane. The Home breadcrumb returns+to its overview; explicit rail navigation changes sections. Test cross-linked+items as well as Home sidebar items.++Channel replies are grouped under their root with the app's curved reply rail,+inline expansion, and a separate thread composer. Verify that replying to a+thread does not append a new root or post to another channel. Email uses a fixed+breadcrumb/action bar and replies inside the last message card. Expand the+recipient summary to edit To/Cc/Bcc; Enter adds a line and Cmd/Ctrl+Enter sends+to local Sent. Scheduling adds a local Scheduled item without displaying it as+sent in the thread. Discard removes only the unsent local composer.++The rail's New (+) button and `C` open the centered create palette. The palette+uses local supported creation actions, not the signed-in app's providers.+Search filters options; Up/Down changes selection and Enter creates. `/` toggles+search mode, revealing direct creation keys. Escape or clicking outside dismisses+it. `C` is ignored while editing text or while a dialog is open. Section-specific+New task/New email buttons retain their direct creation actions. The dialog portal+mounts inside the workspace so the scoped UI styles and theme remain available.diff --git a/apps/marketing/index.html b/apps/marketing/index.htmlindex fe70d2c38f..1f9a57a05c 100644--- a/apps/marketing/index.html+++ b/apps/marketing/index.html@@ -8,10 +8,10 @@<!-- Default SEO tags. Tags marked data-seo are replaced per-route by theprerender step (scripts/prerender.ts) and updated at runtime bysrc/app/utils/utilSeo.ts. -->- <meta data-seo name="description" content="Macro brings your mail, messages, agents, tasks, calls, docs, and CRM into one interface with shared memory — with AI that separates signal from noise." />+ <meta data-seo name="description" content="Email, messages, tasks, and agents in one inbox. CRDT documents with live agent edits, workspace search and memory, and a CRM built from your email." /><meta data-seo property="og:site_name" content="Macro" /><meta data-seo property="og:title" content="Macro — The Unified System for Work" />- <meta data-seo property="og:description" content="Macro brings your mail, messages, agents, tasks, calls, docs, and CRM into one interface with shared memory — with AI that separates signal from noise." />+ <meta data-seo property="og:description" content="Email, messages, tasks, and agents in one inbox. CRDT documents with live agent edits, workspace search and memory, and a CRM built from your email." /><meta data-seo property="og:type" content="website" /><meta data-seo property="og:image" content="https://macro.com/og-image.jpg" /><meta data-seo name="twitter:card" content="summary_large_image" />@@ -19,7 +19,7 @@<!-- First-paint fonts download in parallel with the JS bundle instead ofafter it executes (the SPA renders no text until then). --><link rel="preload" as="font" type="font/woff2" crossorigin href="/fonts/roboto-slab-variable.woff2" />- <link rel="preload" as="font" type="font/woff2" crossorigin href="/fonts/rajdhani-medium.woff2" />+ <link rel="preload" as="font" type="font/woff2" crossorigin href="/fonts/inter-variable.woff2" /><link rel="preconnect" href="https://www.googletagmanager.com" /><link id="favicon" rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3C/svg%3E"/><script>diff --git a/apps/marketing/public/startups/index.html b/apps/marketing/public/startups/index.htmlnew file mode 100644index 0000000000..d1cc7f4e77--- /dev/null+++ b/apps/marketing/public/startups/index.html@@ -0,0 +1,13 @@+<!doctype html>+<html lang="en">+ <head>+ <meta charset="UTF-8" />+ <meta name="robots" content="noindex, follow" />+ <meta http-equiv="refresh" content="0;url=/" />+ <link rel="canonical" href="https://macro.com/" />+ <title>Macro</title>+ </head>+ <body>+ <a href="/">Continue to Macro</a>+ </body>+</html>diff --git a/apps/marketing/scripts/prerender.ts b/apps/marketing/scripts/prerender.tsindex ddc473b9ad..b5c74db8c4 100644--- a/apps/marketing/scripts/prerender.ts+++ b/apps/marketing/scripts/prerender.ts@@ -54,12 +54,12 @@ const BUILD_DATE = new Date().toISOString().slice(0, 10);// so an unbuilt route 404s), but they set `noindex` and are kept out of the// sitemap — they are steps inside the signup flow, not landing pages.const STATIC_ROUTES = [+ '/demo','/jobs','/terms','/privacy','/dpa','/posts',- '/startups','/tasks','/email','/documents',@@ -80,11 +80,11 @@ const STATIC_ROUTES = [// the build manifest so prerendered pages link their stylesheets up front (no// flash of unstyled content) and preload their chunks.const ROUTE_MODULES: Array<[RegExp, string]> = [+ [/^\/demo$/, 'src/app/routes/RouteDemo.tsx'],[/^\/jobs$/, 'src/app/routes/RouteJobs.tsx'],[/^\/terms$/, 'src/app/routes/RouteTerms.tsx'],[/^\/privacy$/, 'src/app/routes/RoutePrivacy.tsx'],[/^\/dpa$/, 'src/app/routes/RouteDpa.tsx'],- [/^\/startups$/, 'src/app/routes/RouteStartups.tsx'],[/^\/tasks$/, 'src/app/routes/RouteTasks.tsx'],[/^\/email$/, 'src/app/routes/RouteEmail.tsx'],[/^\/documents$/, 'src/app/routes/RouteDocuments.tsx'],@@ -137,7 +137,6 @@ const ROUTE_LABELS: Record<string, string> = {'/privacy': 'Privacy','/dpa': 'Data Processing Agreement','/posts': 'Blog',- '/startups': 'Startups','/tasks': 'Tasks','/email': 'Macro Mail','/documents': 'Documents',@@ -181,8 +180,7 @@ function sitemapHints(route: string): { priority: string; changefreq: string } {return { priority: '0.3', changefreq: 'yearly' };if (route === '/posts' || /^\/posts\/.+$/.test(route))return { priority: '0.6', changefreq: 'weekly' };- if (route === '/jobs' || route === '/startups')- return { priority: '0.7', changefreq: 'monthly' };+ if (route === '/jobs') return { priority: '0.7', changefreq: 'monthly' };// Product/feature pages and pricing.return { priority: '0.8', changefreq: 'monthly' };}@@ -481,9 +479,9 @@ function writeSitemapAndRobots(}const JOURNEY_SEO: PageSeo = {- title: 'Macro — One unified interface for all your work.',+ title: 'Macro — The unified workspace for your company.',description:- 'Your conversations, documents, and tools, together in one workspace. Explore Macro and build a connected home for your team’s work.',+ 'Email, messages, tasks, and agents in one inbox. CRDT documents with live agent edits, workspace search and memory, and a CRM built from your email.',path: '/',};diff --git a/apps/marketing/scripts/prerenderEntry.tsx b/apps/marketing/scripts/prerenderEntry.tsxindex 894a1666c6..d2f564159e 100644--- a/apps/marketing/scripts/prerenderEntry.tsx+++ b/apps/marketing/scripts/prerenderEntry.tsx@@ -89,13 +89,13 @@ export function criticalCss(themeId = 'Macro'): string {// @font-face rules that put them to use are in the bundle, so without// this the hero paints in a fallback serif and reflows on arrival."@font-face{src:url('/fonts/roboto-slab-variable.woff2') format('woff2');font-family:'display';font-weight:100 900;font-display:swap}",- "@font-face{src:url('/fonts/rajdhani-medium.woff2') format('woff2');font-family:'body';font-display:swap}",+ "@font-face{src:url('/fonts/inter-variable.woff2') format('woff2');font-family:'body';font-weight:100 900;font-display:swap}",':root{--page-gutter:24px;--page-max-mobile:560px;--page-max:1000px;--site-scale:1;--ambient-ink:color-mix(in srgb,var(--c1) 25%,transparent);',...colors,'}','@media (max-width:700px){:root{--page-gutter:12px}}','html,body{background-color:var(--b0)}',- "body{margin:0;color:var(--c2);font-family:'body';font-size:16px}",+ "body{margin:0;color:var(--c2);font-family:'body';font-size:14px}",'.ssg-mobile,.ssg-desktop{display:contents}','@media (min-width:700px){.ssg-mobile{display:none}}','@media (max-width:699px){.ssg-desktop{display:none}}',diff --git a/apps/marketing/scripts/verify-seo-live.ts b/apps/marketing/scripts/verify-seo-live.tsindex 7680207c42..57650a8af1 100644--- a/apps/marketing/scripts/verify-seo-live.ts+++ b/apps/marketing/scripts/verify-seo-live.ts@@ -15,6 +15,9 @@ const canonicalOrigin = ().replace(/\/$/, '');const window = new Window();const failures: string[] = [];+const indexedRoutes = baseline.routes.filter(+ ({ path }) => !baseline.retiredPaths.includes(path)+);async function check(route: string,verify: (response: Response, body: string) => void@@ -31,7 +34,7 @@ async function check();}}-for (const previous of baseline.routes) {+for (const previous of indexedRoutes) {await check(previous.path, (response, body) => {assert.equal(response.status,@@ -73,12 +76,35 @@ await check('/robots.txt', (response, body) => {});await check('/sitemap.xml', (response, body) => {assert.equal(response.status, 200);- for (const route of baseline.routes)+ for (const route of indexedRoutes)assert(body.includes(`<loc>${canonicalOrigin}${route.path}</loc>`),`Missing sitemap URL ${route.path}`);+ for (const route of baseline.retiredPaths)+ assert(+ !body.includes(`<loc>${canonicalOrigin}${route}</loc>`),+ `Retired sitemap URL ${route}`+ );});+for (const route of baseline.retiredPaths) {+ await check(route, (response, body) => {+ assert.equal(response.status, 200);+ const doc = new window.DOMParser().parseFromString(body, 'text/html');+ assert.equal(+ doc.querySelector('meta[http-equiv="refresh"]')?.getAttribute('content'),+ '0;url=/',+ 'Missing homepage redirect'+ );+ assert(+ doc+ .querySelector('meta[name="robots"]')+ ?.getAttribute('content')+ ?.includes('noindex'),+ 'Retired route must stay noindex'+ );+ });+}await check('/start', (response, body) => {assert.equal(response.status, 200);assert(body.includes('noindex, follow'), 'Signup flow must stay noindex');@@ -91,5 +117,5 @@ await check('/__seo_missing_page__', (response) => {});assert.equal(failures.length, 0, failures.join('\n'));console.log(- `[seo-live] ${baseline.routes.length} pages, crawler files, signup and HTTP error handling passed at ${origin}`+ `[seo-live] ${indexedRoutes.length} pages, crawler files, signup and HTTP error handling passed at ${origin}`);diff --git a/apps/marketing/scripts/verify-seo.ts b/apps/marketing/scripts/verify-seo.tsindex fd8badf497..58c2d022cf 100644--- a/apps/marketing/scripts/verify-seo.ts+++ b/apps/marketing/scripts/verify-seo.ts@@ -24,7 +24,10 @@ const typesIn = (html: string) =>const linksByRoute = new Map<string, string[]>();const documentsByRoute = new Map<string, ReturnType<typeof parse>>();-for (const previous of baseline.routes) {+const indexedRoutes = baseline.routes.filter(+ ({ path }) => !baseline.retiredPaths.includes(path)+);+for (const previous of indexedRoutes) {assert(routes.includes(previous.path),`Lost indexed route: ${previous.path}`@@ -77,8 +80,15 @@ for (const previous of baseline.routes) {(doc.getElementById('root')?.textContent?.length ?? 0) > 200,`${previous.path}: empty HTML shell`);- if (previous.path !== '/')- assert.equal(doc.title, previous.title, `${previous.path}: title changed`);+ // The copy audit replaces the absolute ‘perfect memory’ claim. Keep the+ // captured baseline intact and require the intentional replacement exactly.+ if (previous.path !== '/') {+ const expectedTitle =+ previous.path === '/calls'+ ? 'Macro Calls — Recordings, Transcripts, and Agent Tools'+ : previous.title;+ assert.equal(doc.title, expectedTitle, `${previous.path}: title changed`);+ }for (const type of previous.schemaTypes)assert(typesIn(html).includes(type),@@ -159,10 +169,33 @@ while (pending.length) {}}}-for (const route of baseline.routes)+for (const route of indexedRoutes)assert(reachable.has(route.path), `Orphaned page: ${route.path}`);const home = parse(htmlFor('/'));+for (const route of baseline.retiredPaths) {+ assert(+ !routes.includes(route),+ `Retired route leaked into sitemap: ${route}`+ );+ const doc = parse(htmlFor(route));+ assert.equal(+ doc.querySelector('meta[http-equiv="refresh"]')?.getAttribute('content'),+ '0;url=/',+ `${route}: missing homepage redirect`+ );+ assert(+ doc+ .querySelector('meta[name="robots"]')+ ?.getAttribute('content')+ ?.includes('noindex'),+ `${route}: retired route must stay noindex`+ );+ assert(+ !home.querySelector(`a[href="${route}"]`),+ `${route}: retired navigation link`+ );+}for (const route of ['/email','/tasks',@@ -182,8 +215,16 @@ for (const route of [`Homepage lacks a crawlable link to ${route}`);}-for (const route of ['/start', '/mobile-signup', '/mobile-signup-sent']) {- assert(!routes.includes(route), `Signup route leaked into sitemap: ${route}`);+for (const route of [+ '/start',+ '/mobile-signup',+ '/mobile-signup-sent',+ '/demo',+]) {+ assert(+ !routes.includes(route),+ `Noindex route leaked into sitemap: ${route}`+ );assert(parse(htmlFor(route)).querySelector('meta[name="robots"]')@@ -222,7 +263,7 @@ assert(`Homepage initial JS exceeds 225 KB gzip: ${bytes}; check for eager demo or analytics imports`);console.log(- `[seo] Preserved ${baseline.routes.length} live URLs, static content, schema, metadata, internal links and crawler rules.`+ `[seo] Preserved ${indexedRoutes.length} live URLs, static content, schema, metadata, internal links and crawler rules.`);console.log(`[seo] Validated ${internalLinks} internal links and ${localAssets} local assets.`diff --git a/apps/marketing/scripts/verify-standalone.test.ts b/apps/marketing/scripts/verify-standalone.test.tsindex 272fdf09d9..ff5770f358 100644--- a/apps/marketing/scripts/verify-standalone.test.ts+++ b/apps/marketing/scripts/verify-standalone.test.ts@@ -38,6 +38,24 @@ afterEach(() => {});describe('standalone website boundary', () => {+ it('allows the owned demo iframe route without exempting image assets or missing routes', () => {+ const { write, inspect } = fixture();+ write('src/main.tsx', 'export const demo = <iframe src="/demo" />;');+ expect(inspect().violations).toHaveLength(1);+ write(+ 'src/app/routes/RouteDemo.tsx',+ 'export const RouteDemo = () => null;'+ );+ expect(inspect().violations).toEqual([]);+ write(+ 'src/main.tsx',+ 'export const demo = <iframe src="/demo?embedded=true" />;'+ );+ expect(inspect().violations).toEqual([]);+ write('src/main.tsx', 'export const image = <img src="/demo" />;');+ expect(inspect().violations).toHaveLength(1);+ });+it('accepts website-owned imports, assets, CSS scans, and declared third-party packages', () => {const { write, inspect } = fixture();write('package.json', '{"dependencies":{"third-party":"1.0.0"}}');diff --git a/apps/marketing/scripts/verify-standalone.ts b/apps/marketing/scripts/verify-standalone.tsindex aefc0ab1b9..8ae1277191 100644--- a/apps/marketing/scripts/verify-standalone.ts+++ b/apps/marketing/scripts/verify-standalone.ts@@ -465,6 +465,16 @@ export function auditStandalone(websiteRoot: string) {: node.initializer;const url = staticString(literal);if (url !== undefined) {+ // The sample workspace is a website-owned client route, not a public asset.+ const element = node.parent.parent;+ const isDemoFrame =+ (ts.isJsxOpeningElement(element) ||+ ts.isJsxSelfClosingElement(element)) &&+ element.tagName.getText(source) === 'iframe' &&+ node.name.getText(source) === 'src' &&+ clean(url) === '/demo' &&+ fs.existsSync(path.join(website, 'src/app/routes/RouteDemo.tsx'));+ if (isDemoFrame) return;if (node.name.getText(source) === 'srcset') {for (const candidate of url.split(','))assetReference(diff --git a/apps/marketing/seo/migration-baseline.json b/apps/marketing/seo/migration-baseline.jsonindex f24f03073d..35f906993a 100644--- a/apps/marketing/seo/migration-baseline.json+++ b/apps/marketing/seo/migration-baseline.json@@ -1,6 +1,7 @@{"source": "https://macro.com/sitemap.xml","capturedAt": "2026-09-23",+ "retiredPaths": ["/startups"],"routes": [{"path": "/",diff --git a/apps/marketing/src/app/components/base/BaseSection.tsx b/apps/marketing/src/app/components/base/BaseSection.tsxindex f11ce1618f..f7b8e825a4 100644--- a/apps/marketing/src/app/components/base/BaseSection.tsx+++ b/apps/marketing/src/app/components/base/BaseSection.tsx@@ -43,7 +43,7 @@ export function BaseSection(props: SectionProps) {'font-size': breakpoint() ? '20px' : '30px','letter-spacing': '-0.02em','font-family': 'display',- 'font-weight': '450',+ 'font-weight': '315',margin: '0',}}>diff --git a/apps/marketing/src/app/components/buttons/ButtonGithubStars.tsx b/apps/marketing/src/app/components/buttons/ButtonGithubStars.tsxindex f7e41c66f6..e16b856219 100644--- a/apps/marketing/src/app/components/buttons/ButtonGithubStars.tsx+++ b/apps/marketing/src/app/components/buttons/ButtonGithubStars.tsx@@ -39,7 +39,7 @@ export function ButtonGithubStars(props: {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': header() ? '14px' : props.mobile ? '16px' : '17px',+ 'font-size': header() ? '14px' : props.mobile ? '16px' : '14px','font-weight': '700',gap: header() ? '6px' : '8px',height: header() ? '30px' : props.mobile ? '46px' : '48px',diff --git a/apps/marketing/src/app/components/buttons/ButtonLaunch.tsx b/apps/marketing/src/app/components/buttons/ButtonLaunch.tsxindex 9b04f0b175..c33f95d59d 100644--- a/apps/marketing/src/app/components/buttons/ButtonLaunch.tsx+++ b/apps/marketing/src/app/components/buttons/ButtonLaunch.tsx@@ -62,15 +62,15 @@ export function ButtonLaunch(props: ButtonLaunchProps) {: '0 18px','font-size': shortcut()? isLarge- ? '20px'+ ? '17px': isSmall? '15px': '16px': isLarge- ? '22px'+ ? '19px': isSmall? '16px'- : '18px',+ : '15px','font-weight': '700','line-height': '1','align-items': 'center',diff --git a/apps/marketing/src/app/components/featureGraphics/AiComposeFigure.tsx b/apps/marketing/src/app/components/featureGraphics/AiComposeFigure.tsxindex 1f10f564e3..520442c87f 100644--- a/apps/marketing/src/app/components/featureGraphics/AiComposeFigure.tsx+++ b/apps/marketing/src/app/components/featureGraphics/AiComposeFigure.tsx@@ -10,7 +10,7 @@ function FigLabel(props: { children: JSX.Element }) {<spanstyle={{color: 'color-mix(in srgb, var(--c4) 60%, transparent)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '11px' : '12px','font-weight': '700','letter-spacing': '0.14em',diff --git a/apps/marketing/src/app/components/featureGraphics/CallsGraphics.tsx b/apps/marketing/src/app/components/featureGraphics/CallsGraphics.tsxindex b23a4eb707..fd3d6622b0 100644--- a/apps/marketing/src/app/components/featureGraphics/CallsGraphics.tsx+++ b/apps/marketing/src/app/components/featureGraphics/CallsGraphics.tsx@@ -44,7 +44,7 @@ const STATUS_ATTENDED = 'var(--a2)';function eyebrowStyle(): JSX.CSSProperties {return {color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': breakpoint() ? '12px' : '16px','letter-spacing': '0.08em','text-transform': 'uppercase',@@ -66,7 +66,7 @@ function _ConnectGoogleButton(props: { buttonName: string; large?: boolean }) {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': mobile() ? '15px' : props.large ? '18px' : '16px',+ 'font-size': mobile() ? '15px' : props.large ? '15px' : '16px','font-weight': '700',gap: '8px',height: mobile() ? '40px' : props.large ? '42px' : '36px',@@ -189,7 +189,7 @@ function _GithubStarButton() {'align-items': 'center',color: 'var(--c1)',display: 'inline-flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '15px' : '16px','font-weight': '700',gap: '5px',@@ -596,7 +596,7 @@ function StatusBadge(props: { status: CallStatus }) {color: color(),flex: 'none','justify-self': 'start',- 'font-family': "'rajdhani', body",+ 'font-family': "'Inter', body",'font-size': '9.5px','font-weight': '700','letter-spacing': '0.07em',@@ -1252,7 +1252,7 @@ export function TranscriptGraphic() {'align-items': 'center',color: 'var(--c4)',display: 'flex',- 'font-family': "'rajdhani', body",+ 'font-family': "'Inter', body",'font-size': '11px','font-weight': '700',gap: '7px',@@ -1603,7 +1603,7 @@ export function CallStageGraphic() {<spanstyle={{color: '#fff',- 'font-family': "'rajdhani', body",+ 'font-family': "'Inter', body",'font-size': '11px','font-weight': '700','letter-spacing': '0.08em',@@ -1912,7 +1912,7 @@ export function SummaryGraphic() {'align-items': 'center',color: 'var(--a0)',display: 'inline-flex',- 'font-family': "'rajdhani', body",+ 'font-family': "'Inter', body",'font-size': '11px','font-weight': '700',gap: '6px',@@ -2403,7 +2403,7 @@ export function SharingGraphic() {'align-items': 'center',color: 'var(--c4)',display: 'flex',- 'font-family': "'rajdhani', body",+ 'font-family': "'Inter', body",'font-size': '10px','font-weight': '700',gap: '8px',@@ -2750,7 +2750,7 @@ function ComparisonCell(props: { value: Cell; macro: boolean }) {<spanstyle={{color: props.macro ? 'var(--a0)' : 'var(--c2)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '13px' : '15px','font-weight': '700','letter-spacing': '0.02em',@@ -2777,7 +2777,7 @@ function _ComparisonTable() {: 'transparent',color: macro ? 'var(--a0)' : 'var(--c2)',display: 'flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '12px' : '15px','font-weight': '700','justify-content': 'center',@@ -3032,7 +3032,7 @@ function _FaqSection(props: { area?: string }) {color: 'var(--c1)','font-family': 'display','font-size': mobile() ? '32px' : breakpoint() ? '38px' : '44px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.1,margin: 0,diff --git a/apps/marketing/src/app/components/featureGraphics/ChannelPreviewGraphic.tsx b/apps/marketing/src/app/components/featureGraphics/ChannelPreviewGraphic.tsxindex 7ff00be8fa..713f1ff220 100644--- a/apps/marketing/src/app/components/featureGraphics/ChannelPreviewGraphic.tsx+++ b/apps/marketing/src/app/components/featureGraphics/ChannelPreviewGraphic.tsx@@ -633,12 +633,8 @@ export function ChannelPreviewGraphic(props: { still?: boolean } = {}) {element; this is the frame it starts from, and what SSR and areader who never scrolls this far get. */color: var(--c4);- /* Cyberreader at its Light 300, the page's own reading face rather- than the docs figure's rajdhani: these labels are prose about- the picture, and at the regular weight they had more presence- than the hairline pointing at them. The two paragraph tiers on- /tasks are set the same way. */- font-family: cyberreader, body;++ font-family: Inter, body;font-weight: 300;/* In stage units, so every clearance measured in stage units holdsat whatever width the figure ends up. */diff --git a/apps/marketing/src/app/components/featureGraphics/ChannelsGraphics.tsx b/apps/marketing/src/app/components/featureGraphics/ChannelsGraphics.tsxindex 47b6da5dad..ec838073d5 100644--- a/apps/marketing/src/app/components/featureGraphics/ChannelsGraphics.tsx+++ b/apps/marketing/src/app/components/featureGraphics/ChannelsGraphics.tsx@@ -60,7 +60,7 @@ const NOTE_VIOLET = 'oklch(from var(--a0) l c 293deg)';function eyebrowStyle(): JSX.CSSProperties {return {color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': breakpoint() ? '12px' : '16px','letter-spacing': '0.08em','text-transform': 'uppercase',@@ -82,7 +82,7 @@ function _ConnectGoogleButton(props: { buttonName: string; large?: boolean }) {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': mobile() ? '15px' : props.large ? '18px' : '16px',+ 'font-size': mobile() ? '15px' : props.large ? '15px' : '16px','font-weight': '700',gap: '8px',height: mobile() ? '40px' : props.large ? '42px' : '36px',@@ -206,7 +206,7 @@ function _GithubStarButton() {'align-items': 'center',color: 'var(--c1)',display: 'inline-flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '15px' : '16px','font-weight': '700',gap: '5px',@@ -1879,7 +1879,7 @@ function ChatHeroMessage(props: {'color-mix(in srgb, var(--a0) 16%, transparent)','border-radius': '5px',color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '10px','font-weight': '700','letter-spacing': '0.06em',@@ -3080,7 +3080,7 @@ export function InboxGraphic() {'border-radius': '5px',color: 'var(--a0)',display: 'inline-flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '11px','font-weight': '700','letter-spacing': '0.06em',@@ -3157,7 +3157,7 @@ export function InboxGraphic() {'border-radius': '5px',color: 'var(--c4)',flex: 'none',- 'font-family': "'rajdhani', body",+ 'font-family': "'Inter', body",'font-size': '10px','font-weight': '700','letter-spacing': '0.06em',@@ -4539,7 +4539,7 @@ function ComparisonCell(props: { value: Cell; macro: boolean }) {<spanstyle={{color: props.macro ? 'var(--a0)' : 'var(--c2)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '13px' : '15px','font-weight': '700','letter-spacing': '0.02em',@@ -4566,7 +4566,7 @@ function _ComparisonTable() {: 'transparent',color: macro ? 'var(--a0)' : 'var(--c2)',display: 'flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '12px' : '15px','font-weight': '700','justify-content': 'center',@@ -4824,7 +4824,7 @@ function _FaqSection(props: { area: string }) {color: 'var(--c1)','font-family': 'display','font-size': mobile() ? '32px' : breakpoint() ? '38px' : '44px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.1,margin: 0,diff --git a/apps/marketing/src/app/components/featureGraphics/CrmGraphics.tsx b/apps/marketing/src/app/components/featureGraphics/CrmGraphics.tsxindex 68689c2d45..23038e487f 100644--- a/apps/marketing/src/app/components/featureGraphics/CrmGraphics.tsx+++ b/apps/marketing/src/app/components/featureGraphics/CrmGraphics.tsx@@ -52,7 +52,7 @@ const CALL_TEAL = 'var(--a3)';function eyebrowStyle(): JSX.CSSProperties {return {color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': breakpoint() ? '12px' : '16px','letter-spacing': '0.08em','text-transform': 'uppercase',@@ -3622,7 +3622,7 @@ function ComparisonCell(props: { value: Cell; macro: boolean }) {<spanstyle={{color: props.macro ? 'var(--a0)' : 'var(--c2)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '13px' : '15px','font-weight': '700','letter-spacing': '0.02em',@@ -3649,7 +3649,7 @@ function _ComparisonTable() {: 'transparent',color: macro ? 'var(--a0)' : 'var(--c2)',display: 'flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '12px' : '15px','font-weight': '700','justify-content': 'center',@@ -3925,7 +3925,7 @@ function _FaqSection() {color: 'var(--c1)','font-family': 'display','font-size': mobile() ? '32px' : breakpoint() ? '38px' : '44px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.1,margin: 0,diff --git a/apps/marketing/src/app/components/featureGraphics/DocumentsGraphics.tsx b/apps/marketing/src/app/components/featureGraphics/DocumentsGraphics.tsxindex 0a7ddf850c..49bb7014c1 100644--- a/apps/marketing/src/app/components/featureGraphics/DocumentsGraphics.tsx+++ b/apps/marketing/src/app/components/featureGraphics/DocumentsGraphics.tsx@@ -77,7 +77,7 @@ function _ConnectGoogleButton(props: { buttonName: string; large?: boolean }) {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': mobile() ? '15px' : props.large ? '18px' : '16px',+ 'font-size': mobile() ? '15px' : props.large ? '15px' : '16px','font-weight': '700',gap: '8px',height: mobile() ? '40px' : props.large ? '42px' : '36px',@@ -201,7 +201,7 @@ export function GithubStarButton() {'align-items': 'center',color: 'var(--c1)',display: 'inline-flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '15px' : '16px','font-weight': '700',gap: '5px',@@ -4556,7 +4556,7 @@ function ComparisonCell(props: { value: Cell; macro: boolean }) {<spanstyle={{color: props.macro ? 'var(--a0)' : 'var(--c2)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '13px' : '15px','font-weight': '700','letter-spacing': '0.02em',@@ -4583,7 +4583,7 @@ function _ComparisonTable() {: 'transparent',color: macro ? 'var(--a0)' : 'var(--c2)',display: 'flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '12px' : '15px','font-weight': '700','justify-content': 'center',@@ -4844,7 +4844,7 @@ function _FaqSection() {style={{'font-family': 'display','font-size': mobile() ? '34px' : '42px',- 'font-weight': '420',+ 'font-weight': '315','letter-spacing': '-0.018em','line-height': 1.1,margin: 0,diff --git a/apps/marketing/src/app/components/featureGraphics/EmailGraphics.tsx b/apps/marketing/src/app/components/featureGraphics/EmailGraphics.tsxindex 3dfcda596d..44b70848b8 100644--- a/apps/marketing/src/app/components/featureGraphics/EmailGraphics.tsx+++ b/apps/marketing/src/app/components/featureGraphics/EmailGraphics.tsx@@ -68,9 +68,6 @@ const _HERO_DEMO_VIDEO_ID = 'tnsxkywzTvY';const mobile = isMobileViewport;-// Faux-app chrome uses a neutral UI sans so the mocks read as real product-// screenshots rather than marketing copy (the marketing type stays rajdhani /-// roboto-slab via the site's 'body' / 'display' families).const appFont ="'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif";@@ -1763,7 +1760,7 @@ function ComparisonCell(props: { value: Cell; macro: boolean }) {<spanstyle={{color: props.macro ? 'var(--a0)' : 'var(--c2)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '13px' : '15px','font-weight': '700','letter-spacing': '0.02em',@@ -1792,7 +1789,7 @@ function _ComparisonTable() {: 'transparent',color: macro ? 'var(--a0)' : 'var(--c2)',display: 'flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '12px' : '15px','font-weight': '700','justify-content': 'center',@@ -1925,7 +1922,7 @@ function _PrimaryCta(props: { buttonName: string; label?: string }) {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': mobile() ? '16px' : '17px',+ 'font-size': mobile() ? '16px' : '14px','font-weight': '700',gap: '8px',height: mobile() ? '46px' : '48px',@@ -2072,7 +2069,7 @@ function _EmailIntro() {style={{'font-family': 'display','font-size': compact() ? '28px' : 'clamp(32px, 4vw, 46px)',- 'font-weight': '420',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.14,margin: '0',@@ -2119,7 +2116,7 @@ function _EmailIntro() {<spanstyle={{color: 'color-mix(in srgb, var(--c4) 60%, transparent)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': compact() ? '11px' : '12px','font-weight': '700','letter-spacing': '0.14em',@@ -3549,8 +3546,8 @@ function BigKey(props: {color: 'var(--c1)',cursor: 'pointer',display: 'inline-grid',- 'font-family': 'rajdhani, body',- 'font-size': mobile() ? '16px' : '18px',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '16px' : '15px','font-weight': '700',height: mobile() ? '42px' : '48px','line-height': 1,@@ -3748,7 +3745,7 @@ function _KeyboardSpeedGraphic() {'border-radius': '999px',color: 'var(--c2)',cursor: 'pointer',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '12px','font-weight': '700','letter-spacing': '0.06em',@@ -3876,7 +3873,7 @@ function _KeyboardSpeedGraphic() {<spanstyle={{color: 'var(--c4)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '12px','font-weight': '700','letter-spacing': '0.08em',diff --git a/apps/marketing/src/app/components/featureGraphics/TasksGraphics.tsx b/apps/marketing/src/app/components/featureGraphics/TasksGraphics.tsxindex 3cd23849cf..f7e4810e62 100644--- a/apps/marketing/src/app/components/featureGraphics/TasksGraphics.tsx+++ b/apps/marketing/src/app/components/featureGraphics/TasksGraphics.tsx@@ -58,7 +58,7 @@ const tasksMotionStyles = `function eyebrowStyle(): JSX.CSSProperties {return {color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': breakpoint() ? '12px' : '16px','letter-spacing': '0.08em','text-transform': 'uppercase',@@ -1311,7 +1311,7 @@ function _CaptureGraphic() {<spanstyle={{color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '12px','font-weight': '700','letter-spacing': '0.08em',@@ -1588,7 +1588,7 @@ export function CaptureTaskGraphic() {<spanstyle={{color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '12px','font-weight': '700',left: 'calc(50% + 15px)',@@ -2862,8 +2862,8 @@ function Keycap(props: { label: string; wide?: boolean }) {'box-sizing': 'border-box',color: 'var(--c1)',display: 'inline-grid',- 'font-family': 'rajdhani, body',- 'font-size': mobile() ? '15px' : '17px',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '15px' : '14px','font-weight': '700',height: mobile() ? '40px' : '48px','letter-spacing': '0.04em',@@ -2922,7 +2922,7 @@ export function KeyboardGraphic(props: { columns?: number } = {}) {<spanstyle={{color: 'var(--c4)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '12px' : '13px','font-weight': '700','letter-spacing': '0.08em',@@ -3086,7 +3086,7 @@ function ComparisonCell(props: { value: Cell; macro: boolean }) {<spanstyle={{color: props.macro ? 'var(--a0)' : 'var(--c2)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '13px' : '15px','font-weight': '700','letter-spacing': '0.02em',@@ -3113,7 +3113,7 @@ function _ComparisonTable() {: 'transparent',color: macro ? 'var(--a0)' : 'var(--c2)',display: 'flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '12px' : '15px','font-weight': '700','justify-content': 'center',@@ -3385,7 +3385,7 @@ function _FaqSection() {color: 'var(--c1)','font-family': 'display','font-size': mobile() ? '32px' : breakpoint() ? '38px' : '44px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.1,margin: 0,@@ -3819,7 +3819,7 @@ export function CreateTaskCreator() {'border-radius': '6px',color: 'var(--c2)',display: 'inline-flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '12px','font-weight': '700',gap: '3px',@@ -5074,7 +5074,7 @@ export function AgentHandoffGraphic() {<spanstyle={{color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '12px','font-weight': '700',left: 'calc(50% + 15px)',diff --git a/apps/marketing/src/app/components/graphics/AiComposeGraphic.tsx b/apps/marketing/src/app/components/graphics/AiComposeGraphic.tsxindex 2a29525ed0..ef43856146 100644--- a/apps/marketing/src/app/components/graphics/AiComposeGraphic.tsx+++ b/apps/marketing/src/app/components/graphics/AiComposeGraphic.tsx@@ -400,7 +400,7 @@ export function AiComposeGraphic(props: { onExpand?: () => void } = {}) {'align-items': 'center',color: 'var(--c4)',display: 'flex',- 'font-family': "'rajdhani', body",+ 'font-family': "'Inter', body",'font-size': '11px','font-weight': '700',gap: '8px',diff --git a/apps/marketing/src/app/components/graphics/IsoLineArt.tsx b/apps/marketing/src/app/components/graphics/IsoLineArt.tsxindex 570a30c115..60c6827f54 100644--- a/apps/marketing/src/app/components/graphics/IsoLineArt.tsx+++ b/apps/marketing/src/app/components/graphics/IsoLineArt.tsx@@ -38,9 +38,6 @@ export function cubeSilhouette();}-// Interior face-division edges. Kept lighter than the vibrant outer silhouette-// but bright enough that the cubes read as see-through wireframes (strokes over-// fills) rather than solid shaded blocks.export const FAINT_EDGE = 'color-mix(in srgb, currentColor 45%, transparent)';export type Vec2 = { x: number; y: number };diff --git a/apps/marketing/src/app/components/graphics/PartnerBadge.tsx b/apps/marketing/src/app/components/graphics/PartnerBadge.tsxindex 1e8963cc0d..9aa389f135 100644--- a/apps/marketing/src/app/components/graphics/PartnerBadge.tsx+++ b/apps/marketing/src/app/components/graphics/PartnerBadge.tsx@@ -87,7 +87,7 @@ export function PartnerBadge() {<textfill="var(--c1)"- font-family="rajdhani, body, sans-serif"+ font-family="Inter, body, sans-serif"font-size="9.2"font-weight="700"letter-spacing="2.4"diff --git a/apps/marketing/src/app/components/graphics/SetupGraphic.css b/apps/marketing/src/app/components/graphics/SetupGraphic.cssindex 8bd3d9d7cf..0065cc308a 100644--- a/apps/marketing/src/app/components/graphics/SetupGraphic.css+++ b/apps/marketing/src/app/components/graphics/SetupGraphic.css@@ -323,7 +323,7 @@}.setup-graphic .supermodule-cta-headline {fill: var(--color-ink);- font-family: rajdhani, body, sans-serif;+ font-family: Inter, body, sans-serif;font-size: 32px;font-weight: 700;letter-spacing: 0.08em;diff --git a/apps/marketing/src/app/components/graphics/SwitchGraphic.tsx b/apps/marketing/src/app/components/graphics/SwitchGraphic.tsxindex dd43f2fe24..e1e747e35d 100644--- a/apps/marketing/src/app/components/graphics/SwitchGraphic.tsx+++ b/apps/marketing/src/app/components/graphics/SwitchGraphic.tsx@@ -87,7 +87,7 @@ const tileStyle = (size: number): JSX.CSSProperties => ({const captionStyle: JSX.CSSProperties = {color: 'var(--c4)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '12px','font-weight': '600','letter-spacing': '0.08em',diff --git a/apps/marketing/src/app/components/sections/AgentsCapabilityGrid.css b/apps/marketing/src/app/components/sections/AgentsCapabilityGrid.cssindex 7172b84b95..f467e4beb7 100644--- a/apps/marketing/src/app/components/sections/AgentsCapabilityGrid.css+++ b/apps/marketing/src/app/components/sections/AgentsCapabilityGrid.css@@ -6,7 +6,7 @@.agents-cap-art { position: relative; width: 100%; }.agents-cap-caption { padding-left: 29px; display: grid; align-content: start; gap: 20px; }.agents-page .agents-cap-caption h2 { display: flex; align-items: center; gap: 10px; margin-left: -29px; font: 700 14px/1.3 'body'; letter-spacing: .07em; text-transform: uppercase; color: var(--c2); }-.agents-cap-number { display: inline-grid; place-items: center; width: 19px; height: 19px; flex: none; border: 1px solid color-mix(in srgb, var(--c4) 42%, transparent); border-radius: 50%; font: 500 11px/1 'rajdhani', 'body'; letter-spacing: 0; }+.agents-cap-number { display: inline-grid; place-items: center; width: 19px; height: 19px; flex: none; border: 1px solid color-mix(in srgb, var(--c4) 42%, transparent); border-radius: 50%; font: 500 11px/1 'Inter', 'body'; letter-spacing: 0; }.agents-page .agents-cap-caption p { color: color-mix(in srgb, var(--c4) 85%, transparent); font: 500 15px/1.5 'body'; max-width: 40ch; }.agents-cap-assignment { width: 116%; margin-left: 5%; mask-image: linear-gradient(to right, transparent, #000 7%, #000 75%, transparent); }.agents-cap-assignment > svg { display: block; width: 100%; height: auto; }diff --git a/apps/marketing/src/app/components/sections/AgentsFeatureGrid.tsx b/apps/marketing/src/app/components/sections/AgentsFeatureGrid.tsxindex cf4ffa084a..c73b978cd8 100644--- a/apps/marketing/src/app/components/sections/AgentsFeatureGrid.tsx+++ b/apps/marketing/src/app/components/sections/AgentsFeatureGrid.tsx@@ -342,7 +342,7 @@ export function AgentsFeatureGrid() {<spanstyle={{color: 'color-mix(in srgb, var(--c4) 60%, transparent)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '11px' : '12px','font-weight': '700','letter-spacing': '0.14em',diff --git a/apps/marketing/src/app/components/sections/CallsFeatureGrid.tsx b/apps/marketing/src/app/components/sections/CallsFeatureGrid.tsxindex f97f94d0b5..0f79d28140 100644--- a/apps/marketing/src/app/components/sections/CallsFeatureGrid.tsx+++ b/apps/marketing/src/app/components/sections/CallsFeatureGrid.tsx@@ -231,7 +231,7 @@ export function CallsFeatureGrid() {<spanstyle={{color: 'color-mix(in srgb, var(--c4) 60%, transparent)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '11px' : '12px','font-weight': '700','letter-spacing': '0.14em',diff --git a/apps/marketing/src/app/components/sections/CallsUiGrid.tsx b/apps/marketing/src/app/components/sections/CallsUiGrid.tsxindex 83c244d8c0..6a510d4255 100644--- a/apps/marketing/src/app/components/sections/CallsUiGrid.tsx+++ b/apps/marketing/src/app/components/sections/CallsUiGrid.tsx@@ -486,7 +486,7 @@ function SummaryCard() {'align-items': 'center',color: 'var(--a0)',display: 'inline-flex',- 'font-family': "'rajdhani', body",+ 'font-family': "'Inter', body",'font-size': '11px','font-weight': 700,gap: '6px',diff --git a/apps/marketing/src/app/components/sections/ChannelsFeatureGrid.tsx b/apps/marketing/src/app/components/sections/ChannelsFeatureGrid.tsxindex 61d9ff4799..3dae71766d 100644--- a/apps/marketing/src/app/components/sections/ChannelsFeatureGrid.tsx+++ b/apps/marketing/src/app/components/sections/ChannelsFeatureGrid.tsx@@ -422,7 +422,7 @@ export function ChannelsFeatureGrid() {<spanstyle={{color: 'color-mix(in srgb, var(--c4) 60%, transparent)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '11px' : '12px','font-weight': '700','letter-spacing': '0.14em',diff --git a/apps/marketing/src/app/components/sections/ComparisonTable.tsx b/apps/marketing/src/app/components/sections/ComparisonTable.tsxindex 414a6944cc..b720bcd531 100644--- a/apps/marketing/src/app/components/sections/ComparisonTable.tsx+++ b/apps/marketing/src/app/components/sections/ComparisonTable.tsx@@ -143,7 +143,7 @@ function PlaceholderLogo(props: { label: string }) {'border-radius': '4px',color: 'var(--c4)',display: 'inline-flex',- 'font-family': "'cyberreader', body",+ 'font-family': "'Inter', body",'font-size': mobile() ? '7px' : '8px',height: mobile() ? '13px' : '15px','justify-content': 'center',@@ -192,7 +192,7 @@ function ComparisonCell(props: {<spanstyle={{color: props.macro ? 'var(--a0)' : 'var(--c2)',- 'font-family': "'cyberreader', body",+ 'font-family': "'Inter', body",'font-size': mobile() ? '10px' : '11px','font-weight': '400','letter-spacing': '0.02em',@@ -305,7 +305,7 @@ export function ComparisonTable(props: ComparisonTableProps) {style={{'box-sizing': 'border-box',display: 'grid',- 'font-family': "'cyberreader', body",+ 'font-family': "'Inter', body",'grid-template-columns': gridTemplate(),'min-width': mobile()? `${props.mobileMinWidth ?? Math.max(480, 132 + columns().length * (props.mobileCellWidth ?? 58))}px`@@ -336,7 +336,7 @@ export function ComparisonTable(props: ComparisonTableProps) {'border-top': `1px solid ${GRID_LINE}`,color: macro() ? 'var(--a0)' : 'var(--c2)',display: 'flex',- 'font-family': "'cyberreader', body",+ 'font-family': "'Inter', body",'font-size': mobile() ? '9px' : '11px','font-weight': '400','justify-content': 'center',@@ -453,7 +453,7 @@ export function ComparisonLegend() {<Show when={mobile()}><spanstyle={{- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '11px','letter-spacing': '0.06em',opacity: 0.6,diff --git a/apps/marketing/src/app/components/sections/CrmFeatureGrid.tsx b/apps/marketing/src/app/components/sections/CrmFeatureGrid.tsxindex 0ab6fe55df..d338c35510 100644--- a/apps/marketing/src/app/components/sections/CrmFeatureGrid.tsx+++ b/apps/marketing/src/app/components/sections/CrmFeatureGrid.tsx@@ -378,7 +378,7 @@ export function CrmFeatureGrid() {<spanstyle={{color: 'color-mix(in srgb, var(--c4) 55%, transparent)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '11px','font-weight': '600','letter-spacing': '0.1em',diff --git a/apps/marketing/src/app/components/sections/DocumentsFeatureGrid.tsx b/apps/marketing/src/app/components/sections/DocumentsFeatureGrid.tsxindex a66bc667bd..f673c57a36 100644--- a/apps/marketing/src/app/components/sections/DocumentsFeatureGrid.tsx+++ b/apps/marketing/src/app/components/sections/DocumentsFeatureGrid.tsx@@ -463,7 +463,7 @@ export function DocumentsFeatureGrid() {<spanstyle={{color: 'color-mix(in srgb, var(--c4) 60%, transparent)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '11px' : '12px','font-weight': '700','letter-spacing': '0.14em',diff --git a/apps/marketing/src/app/components/sections/EmailFeatureFigures.tsx b/apps/marketing/src/app/components/sections/EmailFeatureFigures.tsxindex 1b9aba186b..80e9381492 100644--- a/apps/marketing/src/app/components/sections/EmailFeatureFigures.tsx+++ b/apps/marketing/src/app/components/sections/EmailFeatureFigures.tsx@@ -357,7 +357,7 @@ export function EmailFeatureFigures() {<spanstyle={{color: 'color-mix(in srgb, var(--c4) 60%, transparent)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '11px' : '12px','font-weight': '700','letter-spacing': '0.14em',diff --git a/apps/marketing/src/app/components/sections/EmailFeatureFiguresLarge.tsx b/apps/marketing/src/app/components/sections/EmailFeatureFiguresLarge.tsxindex 61f24fb51d..c190f2d193 100644--- a/apps/marketing/src/app/components/sections/EmailFeatureFiguresLarge.tsx+++ b/apps/marketing/src/app/components/sections/EmailFeatureFiguresLarge.tsx@@ -122,7 +122,7 @@ export function EmailFeatureFiguresLarge() {<spanstyle={{color: 'color-mix(in srgb, var(--c4) 60%, transparent)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '11px' : '12px','font-weight': '700','letter-spacing': '0.14em',diff --git a/apps/marketing/src/app/components/sections/EmailFilteringSection.tsx b/apps/marketing/src/app/components/sections/EmailFilteringSection.tsxindex dea622288c..30299d5e54 100644--- a/apps/marketing/src/app/components/sections/EmailFilteringSection.tsx+++ b/apps/marketing/src/app/components/sections/EmailFilteringSection.tsx@@ -56,7 +56,7 @@ export function EmailFilteringSection(props: { mobile: () => boolean }) {color: 'var(--c1)','font-family': 'display','font-size': mobile() ? '26px' : '42px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.5,margin: 0,@@ -68,7 +68,7 @@ export function EmailFilteringSection(props: { mobile: () => boolean }) {style={{color: 'var(--c4)','font-family': 'body',- 'font-size': mobile() ? '15px' : '24px',+ 'font-size': mobile() ? '15px' : '21px','line-height': 1.5,margin: 0,}}@@ -77,7 +77,7 @@ export function EmailFilteringSection(props: { mobile: () => boolean }) {<spanstyle={{color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','letter-spacing': '0em',}}>diff --git a/apps/marketing/src/app/components/sections/GithubFeatureGrid.tsx b/apps/marketing/src/app/components/sections/GithubFeatureGrid.tsxindex 1194909942..5660afe4a0 100644--- a/apps/marketing/src/app/components/sections/GithubFeatureGrid.tsx+++ b/apps/marketing/src/app/components/sections/GithubFeatureGrid.tsx@@ -397,7 +397,7 @@ export function GithubFeatureGrid() {<spanstyle={{color: 'color-mix(in srgb, var(--c4) 60%, transparent)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '11px' : '12px','font-weight': '500','letter-spacing': '0.14em',diff --git a/apps/marketing/src/app/components/sections/GithubUiGrid.tsx b/apps/marketing/src/app/components/sections/GithubUiGrid.tsxindex 344f1970a6..34dde84468 100644--- a/apps/marketing/src/app/components/sections/GithubUiGrid.tsx+++ b/apps/marketing/src/app/components/sections/GithubUiGrid.tsx@@ -198,7 +198,7 @@ function DiffStat(props: { add: number; del: number; size?: number }) {style={{'align-items': 'center',display: 'inline-flex',- 'font-family': "'rajdhani', body",+ 'font-family': "'Inter', body",'font-size': `${fs}px`,'font-weight': 700,gap: '6px',diff --git a/apps/marketing/src/app/components/sections/HeroEyebrow.tsx b/apps/marketing/src/app/components/sections/HeroEyebrow.tsxindex 0ccb4e8e18..47d2bb4062 100644--- a/apps/marketing/src/app/components/sections/HeroEyebrow.tsx+++ b/apps/marketing/src/app/components/sections/HeroEyebrow.tsx@@ -2,7 +2,7 @@ import type { Accessor } from 'solid-js';import { MacroMarkIcon } from '../graphics/MacroMarkIcon';// The small brand tag that sits above each hero headline — the Macro mark-// followed by the product name in a spaced, uppercase Rajdhani cap. Shared by+// followed by the product name in a spaced, uppercase Inter cap. Shared by// the home hero and every feature page so the label reads identically across// the site (only the `label` text changes per page).export function HeroEyebrow(props: {@@ -15,10 +15,11 @@ export function HeroEyebrow(props: {'align-items': 'center',color: 'var(--a0)',display: 'inline-flex',- 'font-family': 'rajdhani, body',- 'font-size': props.mobile() ? '12px' : '15px',+ 'font-family': 'Inter, body',+ 'font-size': props.mobile() ? '11px' : '12px',gap: props.mobile() ? '7px' : '9px',- 'letter-spacing': '0.14em',+ 'font-weight': '500',+ 'letter-spacing': '0.1em','text-transform': 'uppercase',}}>diff --git a/apps/marketing/src/app/components/sections/HomeDesktopFeatureCarousel.tsx b/apps/marketing/src/app/components/sections/HomeDesktopFeatureCarousel.tsxindex cfca1f5717..2b5eb9b045 100644--- a/apps/marketing/src/app/components/sections/HomeDesktopFeatureCarousel.tsx+++ b/apps/marketing/src/app/components/sections/HomeDesktopFeatureCarousel.tsx@@ -63,8 +63,8 @@ const slides = [},{label: 'Tasks',- copy: 'Super simple task management your team will actually use',- title: ['Super simple task management', 'your team will actually use'],+ copy: 'Tasks from messages and email, assigned to people and agents',+ title: ['Tasks from messages and email,', 'assigned to people and agents'],Icon: IconTasks,iconCaption: 'Tasks',iconViewBox: '0 0 18 12',@@ -72,8 +72,8 @@ const slides = [},{label: 'Agents',- copy: 'Team-level memory across the workspace for agents',- title: ['Team-level memory across', 'the workspace for agents'],+ copy: 'Agents with memory built from your workspace',+ title: ['Agents with memory built', 'from your workspace'],Icon: IconAi,iconCaption: 'Agents',iconViewBox: '0 0 24 16',@@ -511,7 +511,7 @@ export function HomeDesktopFeatureCarousel() {color: 'var(--c1)','font-family': 'display','font-size': '34px',- 'font-weight': '360',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.2,margin: '0',diff --git a/apps/marketing/src/app/components/sections/HomeMobileFeatureCarousel.tsx b/apps/marketing/src/app/components/sections/HomeMobileFeatureCarousel.tsxindex d5422a6146..b3e0678bb6 100644--- a/apps/marketing/src/app/components/sections/HomeMobileFeatureCarousel.tsx+++ b/apps/marketing/src/app/components/sections/HomeMobileFeatureCarousel.tsx@@ -49,8 +49,8 @@ const slides = [},{label: 'Tasks',- copy: 'Super simple task management your team will actually use',- title: ['Super simple task management', 'your team will actually use'],+ copy: 'Tasks from messages and email, assigned to people and agents',+ title: ['Tasks from messages and email,', 'assigned to people and agents'],Icon: IconTasks,iconCaption: 'Tasks',iconViewBox: '0 0 18 12',@@ -58,8 +58,8 @@ const slides = [},{label: 'Agents',- copy: 'Team-level memory across the workspace for agents',- title: ['Team-level memory across', 'the workspace for agents'],+ copy: 'Agents with memory built from your workspace',+ title: ['Agents with memory built', 'from your workspace'],Icon: IconAi,iconCaption: 'Agents',iconViewBox: '0 0 24 16',@@ -67,8 +67,8 @@ const slides = [},{label: 'Calls',- copy: 'Turn every call into team memory',- title: ['Turn every call into', 'team memory'],+ copy: 'Record calls. Search the transcript.',+ title: ['Record calls.', 'Search the transcript.'],Icon: IconCall,iconCaption: 'Calls',iconViewBox: '-1.5 -1.5 18 18',@@ -543,7 +543,7 @@ export function HomeMobileFeatureCarousel() {color: 'var(--c1)','font-family': 'display','font-size': 'clamp(23px, 6.2vw, 28px)',- 'font-weight': '380',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.08,margin: '0',diff --git a/apps/marketing/src/app/components/sections/LoopsFeatureSection.tsx b/apps/marketing/src/app/components/sections/LoopsFeatureSection.tsxindex 3056818132..b502e167c5 100644--- a/apps/marketing/src/app/components/sections/LoopsFeatureSection.tsx+++ b/apps/marketing/src/app/components/sections/LoopsFeatureSection.tsx@@ -51,7 +51,7 @@ export type LoopsFeatureBlock = {graphicTopPadding?: string;/** Place the mobile product link below the hero graphic rather than in the copy block. */mobileExploreBelowGraphic?: boolean;- /** Place the Rajdhani description (and the product link) below the hero graphic on phones. */+ /** Place the Inter description (and the product link) below the hero graphic on phones. */mobileCopyBelowGraphic?: boolean;/** Suppress the wide mobile spotlight when the graphic supplies its own backdrop. */mobileHideSpotlightBackdrop?: boolean;@@ -226,7 +226,7 @@ export function LoopsFeatureSection(props: {style={{color: 'var(--c0)','font-family': 'display',- 'font-weight': '360',+ 'font-weight': '315','letter-spacing': '-0.018em','line-height': 1.1,margin: '0',@@ -240,10 +240,10 @@ export function LoopsFeatureSection(props: {class="loops-stacked-p"style={{color: 'var(--c4)',- 'font-family': 'cyberreader, body',+ 'font-family': 'Inter, body','font-size':props.textLayout === 'stacked-hero' ? '15.5px' : undefined,- 'font-weight': '300',+ 'font-weight': '400','line-height': props.textLayout === 'stacked-hero' ? 1.5 : 1.55,margin: '0','max-width':@@ -298,7 +298,7 @@ export function LoopsFeatureSection(props: {color: 'var(--c0)','font-family': 'display','font-size': splitHeadlineSize,- 'font-weight': '360',+ 'font-weight': '315','grid-column': '1','grid-row': '1','letter-spacing': '-0.018em',@@ -318,9 +318,9 @@ export function LoopsFeatureSection(props: {<pstyle={{color: 'var(--c4)',- 'font-family': 'cyberreader, body',+ 'font-family': 'Inter, body','font-size': splitDescSize,- 'font-weight': '300',+ 'font-weight': '400','grid-column': '2','grid-row': '1','line-height': splitDescLh,@@ -360,7 +360,7 @@ export function LoopsFeatureSection(props: {color: 'var(--c0)','font-family': 'display','font-size': '37.38px',- 'font-weight': '360',+ 'font-weight': '315','letter-spacing': '-0.006em','line-height': 1.25,margin: '0',@@ -375,8 +375,8 @@ export function LoopsFeatureSection(props: {<pstyle={{color: 'var(--c4)',- 'font-family': 'cyberreader',- 'font-size': '18px',+ 'font-family': 'Inter',+ 'font-size': '15px','font-weight': '400','line-height': 1.6,margin: '0',@@ -589,12 +589,12 @@ export function LoopsFeatureSection(props: {class="loops-stacked-p"style={{color: 'var(--c4)',- 'font-family': 'cyberreader, body',+ 'font-family': 'Inter, body','font-size':props.textLayout === 'stacked-hero'? '15.5px': undefined,- 'font-weight': '300',+ 'font-weight': '400','line-height':props.textLayout === 'stacked-hero' ? 1.5 : 1.55,margin: '0',diff --git a/apps/marketing/src/app/components/sections/SectionBento.tsx b/apps/marketing/src/app/components/sections/SectionBento.tsxindex 1d5e8f6477..083097857a 100644--- a/apps/marketing/src/app/components/sections/SectionBento.tsx+++ b/apps/marketing/src/app/components/sections/SectionBento.tsx@@ -98,7 +98,7 @@ function BentoItem(props: {<h3style={{'font-family': 'display',- 'font-weight': '450',+ 'font-weight': '315','font-size': isCompact()? '17px': breakpoint()@@ -196,7 +196,7 @@ export function SectionBento() {style={{'font-family': 'display','font-size': breakpoint() ? '38px' : '40px',- 'font-weight': '400',+ 'font-weight': '315','letter-spacing': '-0.024em',margin: '0',color: 'var(--c2)',diff --git a/apps/marketing/src/app/components/sections/SectionCreate.tsx b/apps/marketing/src/app/components/sections/SectionCreate.tsxindex 13028c58d5..39b7a11fb0 100644--- a/apps/marketing/src/app/components/sections/SectionCreate.tsx+++ b/apps/marketing/src/app/components/sections/SectionCreate.tsx@@ -212,7 +212,7 @@ function AddBox() {><spanstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '14px','line-height': '1',}}@@ -258,7 +258,7 @@ function Avatar(props: { label: string; size?: number }) {'justify-content': 'center',background: palette.accent,color: palette.bg,- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-weight': '700','font-size': `${Math.max(9, size * 0.5)}px`,'text-transform': 'uppercase',@@ -347,7 +347,7 @@ function EmailCard() {<spanstyle={{width: '140px',- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '12px','font-weight': '600','letter-spacing': '2.5px',@@ -382,7 +382,7 @@ function EmailCard() {<spanstyle={{width: '140px',- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '12px','font-weight': '600','letter-spacing': '2.5px',@@ -421,7 +421,7 @@ function EmailCard() {<div style={{ display: 'grid', 'line-height': '1' }}><spanstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '13px','font-weight': '600','letter-spacing': '2px',@@ -432,7 +432,7 @@ function EmailCard() {</span><spanstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '11px','font-weight': '600','letter-spacing': '2px',@@ -444,9 +444,9 @@ function EmailCard() {</div><spanstyle={{- 'font-family': 'Rajdhani, sans-serif',- 'font-size': '36px',- 'font-weight': '300',+ 'font-family': 'Inter, sans-serif',+ 'font-size': '33px',+ 'font-weight': '400','line-height': '0.85',color: palette.text,}}@@ -476,7 +476,7 @@ function EmailCard() {</p><pstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '12px','line-height': '1.4',color: palette.body,@@ -504,7 +504,7 @@ function EmailCard() {<div style={{ display: 'grid', 'line-height': '1' }}><spanstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '13px','font-weight': '600','letter-spacing': '2px',@@ -515,7 +515,7 @@ function EmailCard() {</span><spanstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '11px','font-weight': '600','letter-spacing': '2px',@@ -527,9 +527,9 @@ function EmailCard() {</div><spanstyle={{- 'font-family': 'Rajdhani, sans-serif',- 'font-size': '36px',- 'font-weight': '300',+ 'font-family': 'Inter, sans-serif',+ 'font-size': '33px',+ 'font-weight': '400','line-height': '0.85',color: palette.text,}}@@ -559,7 +559,7 @@ function EmailCard() {</p><pstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '12px','line-height': '1.4',color: palette.body,@@ -624,7 +624,7 @@ function CreateTaskCard() {<CloseGlyph /><pstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '14px','font-weight': '450','letter-spacing': '0.7px',@@ -673,8 +673,8 @@ function CreateTaskCard() {<TaskGlyph /><spanstyle={{- 'font-family': 'Rajdhani, sans-serif',- 'font-size': '18px',+ 'font-family': 'Inter, sans-serif',+ 'font-size': '15px','font-weight': '500',color: palette.text,}}@@ -686,7 +686,7 @@ function CreateTaskCard() {<div style={{ display: 'grid', gap: '8px' }}><pstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '11px','font-weight': '600','letter-spacing': '0.5px',@@ -698,7 +698,7 @@ function CreateTaskCard() {</p><pstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '14px','font-weight': '400','line-height': '1.4',@@ -724,7 +724,7 @@ function CreateTaskCard() {><pstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '11px','font-weight': '600','letter-spacing': '0.5px',@@ -742,7 +742,7 @@ function CreateTaskCard() {<Avatar label="S" /><pstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '11px','font-weight': '400','line-height': '1',@@ -760,7 +760,7 @@ function CreateTaskCard() {<Avatar label="N" /><pstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '11px','font-weight': '400','line-height': '1',@@ -788,7 +788,7 @@ function CreateTaskCard() {><pstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '11px','font-weight': '600','letter-spacing': '0.5px',@@ -803,7 +803,7 @@ function CreateTaskCard() {<CalendarGlyph /><pstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '11px','font-weight': '600','letter-spacing': '0.5px',@@ -830,7 +830,7 @@ function CreateTaskCard() {><pstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '11px','font-weight': '600','letter-spacing': '0.5px',@@ -845,7 +845,7 @@ function CreateTaskCard() {<StatusGlyph /><pstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '11px','font-weight': '600','letter-spacing': '0.5px',@@ -872,7 +872,7 @@ function CreateTaskCard() {><pstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '11px','font-weight': '600','letter-spacing': '0.5px',@@ -896,7 +896,7 @@ function CreateTaskCard() {><pstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '11px','font-weight': '600','letter-spacing': '0.5px',@@ -995,7 +995,7 @@ function MentionRow(props: {/><div style={{ 'padding-top': '10px', color: palette.text }}><span- style={{ 'font-family': 'Rajdhani, sans-serif', 'font-size': '13px' }}+ style={{ 'font-family': 'Inter, sans-serif', 'font-size': '13px' }}>@</span>@@ -1019,7 +1019,7 @@ function MentionRow(props: {</div><spanstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '12px','font-weight': '400','text-transform': 'lowercase',@@ -1031,7 +1031,7 @@ function MentionRow(props: {</div><spanstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '12px','font-weight': '400','text-transform': 'lowercase',@@ -1042,7 +1042,7 @@ function MentionRow(props: {</span><spanstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '12px','font-weight': '400','letter-spacing': '0.04em',@@ -1059,7 +1059,7 @@ function MentionRow(props: {'align-items': 'center',gap: '6px',overflow: 'hidden',- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '16px','font-weight': '400',color: palette.text,@@ -1110,7 +1110,7 @@ function ChannelsCard() {><pstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '14px','font-weight': '450','letter-spacing': '0.7px',@@ -1284,7 +1284,7 @@ function ChannelsCard() {</svg><pstyle={{- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '11px','font-weight': '600','letter-spacing': '0.5px',@@ -1439,7 +1439,7 @@ function CreateGraphic() {left: '50%',transform: 'translateX(-50%)','max-width': '320px',- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '12px','line-height': '1.35','text-align': 'center',@@ -1455,7 +1455,7 @@ function CreateGraphic() {left: '14%',bottom: '0','max-width': '240px',- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '12px','line-height': '1.35','text-align': 'center',@@ -1471,7 +1471,7 @@ function CreateGraphic() {right: '14%',bottom: '0','max-width': '240px',- 'font-family': 'Rajdhani, sans-serif',+ 'font-family': 'Inter, sans-serif','font-size': '12px','line-height': '1.35','text-align': 'center',diff --git a/apps/marketing/src/app/components/sections/SectionCta.tsx b/apps/marketing/src/app/components/sections/SectionCta.tsxindex f36cea55d1..30c3fb32bb 100644--- a/apps/marketing/src/app/components/sections/SectionCta.tsx+++ b/apps/marketing/src/app/components/sections/SectionCta.tsx@@ -19,7 +19,7 @@ export function SectionCta() {'max-width': '730px','line-height': 1.25,'font-family': 'display',- 'font-weight': '450',+ 'font-weight': '315',}}>Designed by engineers obsessed with performance for the kind of people@@ -56,7 +56,7 @@ export function SectionCta() {'letter-spacing': '0.045em','text-transform': 'uppercase',padding: '0 20px',- 'font-size': '18px',+ 'font-size': '15px','font-weight': '700','line-height': '1','align-items': 'center',diff --git a/apps/marketing/src/app/components/sections/SectionDesyncCaseStudy.tsx b/apps/marketing/src/app/components/sections/SectionDesyncCaseStudy.tsxindex 9243e64b23..100482ffde 100644--- a/apps/marketing/src/app/components/sections/SectionDesyncCaseStudy.tsx+++ b/apps/marketing/src/app/components/sections/SectionDesyncCaseStudy.tsx@@ -54,7 +54,7 @@ export function SectionDesyncCaseStudy() {<spanstyle={{color: 'var(--c1)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': breakpoint() ? '12px' : '16px','font-weight': '700','letter-spacing': '0.1em',@@ -69,7 +69,7 @@ export function SectionDesyncCaseStudy() {color: 'var(--c1)','font-family': 'display','font-size': compact() ? '28px' : '34px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.01em','line-height': 1.14,margin: '0',@@ -82,7 +82,7 @@ export function SectionDesyncCaseStudy() {<divstyle={{color: 'var(--c4)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': compact() ? '13px' : '14px','font-weight': '700','letter-spacing': '0.08em',@@ -210,7 +210,7 @@ export function SectionDesyncCaseStudy() {<divstyle={{color: 'var(--c1)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': compact() ? '14px' : '15px','font-weight': '700','letter-spacing': '0.1em',diff --git a/apps/marketing/src/app/components/sections/SectionEngineers.tsx b/apps/marketing/src/app/components/sections/SectionEngineers.tsxindex b8e64d3a07..f3f7741174 100644--- a/apps/marketing/src/app/components/sections/SectionEngineers.tsx+++ b/apps/marketing/src/app/components/sections/SectionEngineers.tsx@@ -5,7 +5,7 @@ export function SectionEngineers() {'font-size': '24px','line-height': 1.25,'font-family': 'display',- 'font-weight': '400',+ 'font-weight': '315',}}>Designed by engineers obsessed with performance{' '}diff --git a/apps/marketing/src/app/components/sections/SectionExtensibility.tsx b/apps/marketing/src/app/components/sections/SectionExtensibility.tsxindex 648a3b3637..6aae66e662 100644--- a/apps/marketing/src/app/components/sections/SectionExtensibility.tsx+++ b/apps/marketing/src/app/components/sections/SectionExtensibility.tsx@@ -46,7 +46,7 @@ export function SectionExtensibility() {style={{'font-family': 'display','font-size': breakpoint() ? '24px' : '32px',- 'font-weight': '450',+ 'font-weight': '315','letter-spacing': '-0.02em','line-height': breakpoint() ? '28px' : '36px',}}@@ -94,7 +94,7 @@ export function SectionExtensibility() {color: 'var(--a0)','font-family': 'display','font-size': '18px',- 'font-weight': '450',+ 'font-weight': '315','letter-spacing': '-0.01em',}}>diff --git a/apps/marketing/src/app/components/sections/SectionFaq.tsx b/apps/marketing/src/app/components/sections/SectionFaq.tsxindex 8f41c1232f..75a4da1047 100644--- a/apps/marketing/src/app/components/sections/SectionFaq.tsx+++ b/apps/marketing/src/app/components/sections/SectionFaq.tsx@@ -62,7 +62,7 @@ export function SectionFaq(props: {color: var(--c1);cursor: default;display: flex;- font-family: 'cyberreader';+ font-family: 'Inter';font-size: 16px;font-weight: 400;gap: 16px;@@ -74,7 +74,7 @@ export function SectionFaq(props: {.faq--embedded .faq__item > summary { padding: 22px 20px; }.faq__item > summary::-webkit-details-marker { display: none; }.faq__item > summary .faq__chevron { color: var(--c4); flex-shrink: 0; transition: transform 220ms ease; }- .faq__answer { color: var(--c4); font-family: 'cyberreader'; font-size: 16px; line-height: 1.6; margin: 0; padding: 0 4px 24px; max-width: 760px; }+ .faq__answer { color: var(--c4); font-family: 'Inter'; font-size: 16px; line-height: 1.6; margin: 0; padding: 0 4px 24px; max-width: 760px; }.faq--embedded .faq__answer { max-width: none; padding: 0 20px 24px; }.faq__answer a { color: var(--a0); text-decoration: none; }.faq__answer code { background: color-mix(in srgb, var(--c4) 12%, transparent); border-radius: 4px; font-size: 13px; padding: 1px 5px; }@@ -100,8 +100,8 @@ export function SectionFaq(props: {<h2style={{color: 'var(--a0)',- 'font-family': 'rajdhani, body',- 'font-size': mobile() ? '26px' : '36px',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '23px' : '33px','font-weight': '700','letter-spacing': '0.08em',margin: 0,diff --git a/apps/marketing/src/app/components/sections/SectionFeatureGrid.tsx b/apps/marketing/src/app/components/sections/SectionFeatureGrid.tsxindex 7e3a08fbce..a33e4ba606 100644--- a/apps/marketing/src/app/components/sections/SectionFeatureGrid.tsx+++ b/apps/marketing/src/app/components/sections/SectionFeatureGrid.tsx@@ -240,7 +240,7 @@ function _QuoteVideo() {<divstyle={{color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': compact() ? '13px' : '14px','font-weight': '700','letter-spacing': '0.08em',@@ -270,7 +270,7 @@ function _QuoteVideo() {<divstyle={{color: 'var(--c4)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': compact() ? '13px' : '14px','font-weight': '700','letter-spacing': '0.08em',@@ -310,7 +310,7 @@ function _QuoteVideo() {<divstyle={{color: 'var(--c1)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': compact() ? '14px' : '15px','font-weight': '700','letter-spacing': '0.1em',@@ -387,7 +387,7 @@ function _QuoteVideo() {color: 'var(--c1)',cursor: 'pointer','font-family': 'body',- 'font-size': '18px',+ 'font-size': '15px',height: '34px','line-height': 1,position: 'absolute',@@ -528,7 +528,7 @@ function _TeamSection() {color: 'var(--b0)',display: 'inline-flex','font-family': 'body',- 'font-size': '18px',+ 'font-size': '15px','font-weight': '700',gap: '8px',height: '34px',@@ -594,7 +594,7 @@ function TeamMemberCard(props: { member: { name: string; tags: string[] } }) {<spanstyle={{color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': breakpoint() ? '12px' : '14px','font-weight': '700','letter-spacing': '0.09em',@@ -610,7 +610,7 @@ function TeamMemberCard(props: { member: { name: string; tags: string[] } }) {'font-family': 'display','font-size':viewportWidth() < 700 ? '30px' : breakpoint() ? '34px' : '30px',- 'font-weight': '430',+ 'font-weight': '315','letter-spacing': '-0.02em','line-height': 1.05,margin: '0',@@ -631,7 +631,7 @@ function TeamMemberCard(props: { member: { name: string; tags: string[] } }) {style={{border: '1px solid var(--b3)',color: 'var(--c2)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '13px','font-weight': '700','letter-spacing': '0.07em',@@ -699,7 +699,7 @@ function ComparisonCard(props: {style={{'font-family': 'display','font-size': viewportWidth() < 700 ? '19px' : '18px',- 'font-weight': '450',+ 'font-weight': '315','line-height': 1.12,margin: '0',}}@@ -811,7 +811,7 @@ function FinalBentoCta() {: compact()? '47px': '51px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.08,margin: 0,@@ -848,7 +848,7 @@ function FinalBentoCta() {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': viewportWidth() < 700 ? '15px' : '18px',+ 'font-size': viewportWidth() < 700 ? '15px' : '15px','font-weight': '700',gap: viewportWidth() < 700 ? '8px' : '10px',height: viewportWidth() < 700 ? '40px' : '42px',@@ -1003,7 +1003,7 @@ function GitHubButton(props: { mobile: boolean; showStars: boolean }) {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': props.mobile ? '18px' : '16px',+ 'font-size': props.mobile ? '15px' : '16px','font-weight': '700',gap: '8px',height: props.mobile ? '38px' : '30px',@@ -1227,7 +1227,7 @@ export function OpenSourceBento() {color: 'var(--c1)','font-family': 'display','font-size': mobile() ? '32px' : '38px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.12,margin: 0,@@ -1277,7 +1277,7 @@ function FeatureEyebrowLink(props: { href: string; children: any }) {'align-items': 'center',color: 'var(--a0)',display: 'inline-flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': breakpoint() ? '12px' : '16px',gap: '8px','letter-spacing': '0.08em',@@ -1443,7 +1443,7 @@ export function SectionFeatureGrid(const _eyebrowStyle = () =>({color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': stacked() ? '12px' : '16px','letter-spacing': '0.08em','text-transform': 'uppercase',@@ -1581,7 +1581,7 @@ export function SectionFeatureGrid(color: 'var(--c1)','font-family': 'display','font-size': mobile() ? '34px' : '44px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.2,margin: 0,@@ -1709,7 +1709,7 @@ export function SectionFeatureGrid(<divstyle={{'color': 'var(--c4)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': viewportWidth() < 700 ? '11px' : '13px','font-weight': '700','letter-spacing': '0.07em',@@ -1759,7 +1759,7 @@ export function SectionFeatureGrid('align-items': 'center',color: 'var(--a0)',display: 'inline-flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': breakpoint() ? '12px' : '16px',gap: '7px','letter-spacing': '0.08em',@@ -1857,7 +1857,7 @@ export function SectionFeatureGrid(><spanstyle={{- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': breakpoint() ? '12px' : '16px',color: 'var(--a0)','letter-spacing': '0.08em',@@ -1928,7 +1928,7 @@ export function SectionFeatureGrid(style={{'font-family': 'display','font-size': mobile() ? '55px' : breakpoint() ? '57px' : '53px',- 'font-weight': mobile() ? '380' : '410',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.08,margin: '0',@@ -1999,7 +1999,7 @@ export function SectionFeatureGrid(cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': mobile() ? '18px' : '16px',+ 'font-size': mobile() ? '15px' : '16px','font-weight': '700',gap: '8px',height: mobile() ? '38px' : '30px',@@ -2115,7 +2115,7 @@ export function SectionFeatureGrid(color: 'var(--c1)',cursor: 'pointer',display: 'grid',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': viewportWidth() < 700 ? '13px' : '15px','font-weight': '700',gap: '8px',@@ -2238,7 +2238,7 @@ export function SectionFeatureGrid(color: 'var(--c1)',cursor: 'pointer','font-family': 'body',- 'font-size': '18px',+ 'font-size': '15px',height: '34px','line-height': 1,position: 'absolute',@@ -2315,7 +2315,7 @@ export function SectionFeatureGrid(: stacked()? '28px': '51px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing':narrowDesktop() || stacked() ? 'normal' : '-0.015em','line-height': narrowDesktop() || stacked() ? 1.12 : 1.08,@@ -2377,7 +2377,7 @@ export function SectionFeatureGrid(display: 'grid','font-family': 'display','font-size': mobile() ? '22px' : '24px',- 'font-weight': '410',+ 'font-weight': '315','grid-template-columns': 'auto minmax(0, 1fr)',gap: '14px','line-height': 1.12,@@ -2388,7 +2388,7 @@ export function SectionFeatureGrid(aria-hidden="true"style={{color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '14px','font-weight': '700','letter-spacing': '0.08em',@@ -2401,7 +2401,7 @@ export function SectionFeatureGrid(style={{color: 'var(--c4)','font-family': 'body',- 'font-size': mobile() ? '19px' : '22px',+ 'font-size': mobile() ? '16px' : '19px','font-weight': '400','line-height': 1.38,margin: 0,@@ -2443,7 +2443,7 @@ export function SectionFeatureGrid('align-items': 'center',color: 'var(--a0)',display: 'inline-flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': breakpoint() ? '12px' : '16px',gap: '7px','letter-spacing': '0.08em',@@ -2677,7 +2677,7 @@ export function SectionFeatureGrid(><spanstyle={{- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': breakpoint() ? '12px' : '16px',color: 'var(--a0)','letter-spacing': '0.08em',@@ -2838,7 +2838,7 @@ export function SectionFeatureGrid(<pstyle={{color: 'var(--c4)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': breakpoint() ? '14px' : '16px','font-weight': '400','letter-spacing': '0.04em',diff --git a/apps/marketing/src/app/components/sections/SectionFeatureLite.tsx b/apps/marketing/src/app/components/sections/SectionFeatureLite.tsxindex a1b1bb2bb9..a46906d713 100644--- a/apps/marketing/src/app/components/sections/SectionFeatureLite.tsx+++ b/apps/marketing/src/app/components/sections/SectionFeatureLite.tsx@@ -487,7 +487,7 @@ export function FeatureLiteCards(props: {<pstyle={{color: 'color-mix(in srgb, var(--c4) 70%, transparent)',- 'font-family': 'rajdhani, body, system-ui, sans-serif',+ 'font-family': 'Inter, body, system-ui, sans-serif','font-size': '14px','font-weight': '600','letter-spacing': '0.12em',@@ -536,7 +536,7 @@ export function FeatureLiteCards(props: {style={{color: 'var(--c2)','font-family': 'body, system-ui, sans-serif',- 'font-size': '18px',+ 'font-size': '15px','font-weight': '700','letter-spacing': '0.07em','line-height': '1.2',@@ -594,7 +594,7 @@ export function FeatureLiteVideoSection(props: {<pstyle={{color: 'color-mix(in srgb, var(--c4) 70%, transparent)',- 'font-family': 'rajdhani, body, system-ui, sans-serif',+ 'font-family': 'Inter, body, system-ui, sans-serif','font-size': '14px','font-weight': '600','letter-spacing': '0.12em',@@ -675,11 +675,7 @@ export function SectionFeatureLite(props: {'font-size': mobile()? 'clamp(38px, 11vw, 52px)': 'clamp(44px, 6vw, 60px)',- // The h1 weight main settled the slab on: the home hero and- // .tasks-h1 both set 360, and this clamp tops out at the same- // 60px they do, so it is the same tier and takes the same- // number rather than a value of its own.- 'font-weight': '360',+ 'font-weight': '315','letter-spacing': 'normal','line-height': '1.08',margin: mobile() ? '16px 0 0' : '18px 0 0',@@ -702,24 +698,10 @@ export function SectionFeatureLite(props: {</h1><pstyle={{- // Main's lead tier, taken whole: cyberreader at its real- // Light 300 -- a discrete file, not a synthesised weight --- // on --c4 at full strength.- //- // The 78% mix belonged to the 600, which was synthetic bold- // over Rajdhani Medium, the only weight that family ships.- // Holding a transparency meant for a bolded face under one- // 300 units lighter would leave the sub too faint to read as- // the headline's second half, so it goes back to the flat- // --c4 that .tasks-lead uses.- //- // 'body' stays behind cyberreader as a fallback: with- // font-display: swap a failed load would otherwise drop to- // the generic sans rather than to Rajdhani.color: 'var(--c4)',- 'font-family': 'cyberreader, body, system-ui, sans-serif',- 'font-size': mobile() ? '17px' : '20px',- 'font-weight': '300',+ 'font-family': 'Inter, body, system-ui, sans-serif',+ 'font-size': mobile() ? '14px' : '17px',+ 'font-weight': '400','line-height': '1.6',margin: '18px 0 0','max-width': '52ch',diff --git a/apps/marketing/src/app/components/sections/SectionFinalCta.tsx b/apps/marketing/src/app/components/sections/SectionFinalCta.tsxindex ab4d98d316..25fe49ea0e 100644--- a/apps/marketing/src/app/components/sections/SectionFinalCta.tsx+++ b/apps/marketing/src/app/components/sections/SectionFinalCta.tsx@@ -89,7 +89,7 @@ export function SectionFinalCta(props: SectionFinalCtaProps) {color: 'var(--c0)',display: 'grid','font-family': 'display',- 'font-weight': '420',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.15,margin: '0',@@ -159,7 +159,7 @@ export function SectionFinalCta(props: SectionFinalCtaProps) {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': '20px',+ 'font-size': '17px','font-weight': '700',gap: '8px',height: '40px',@@ -194,7 +194,7 @@ export function SectionFinalCta(props: SectionFinalCtaProps) {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': '20px',+ 'font-size': '17px','font-weight': '700',height: '40px','justify-content': 'center',diff --git a/apps/marketing/src/app/components/sections/SectionHero.tsx b/apps/marketing/src/app/components/sections/SectionHero.tsxindex 21cd58e8c4..0d54a2641a 100644--- a/apps/marketing/src/app/components/sections/SectionHero.tsx+++ b/apps/marketing/src/app/components/sections/SectionHero.tsx@@ -29,7 +29,7 @@ export function SectionHero() {><spanstyle={{- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': isCompact() ? '10px' : breakpoint() ? '9px' : '16px',color: 'var(--a0)','letter-spacing': '0.08em',@@ -45,7 +45,7 @@ export function SectionHero() {'line-height': 1.1,'font-size': isCompact() ? '31px' : breakpoint() ? '40px' : '52px','font-family': 'display',- 'font-weight': '410',+ 'font-weight': '315',}}>The new office suite.diff --git a/apps/marketing/src/app/components/sections/SectionHomeBlog.tsx b/apps/marketing/src/app/components/sections/SectionHomeBlog.tsxindex 303000a770..f8fd28174f 100644--- a/apps/marketing/src/app/components/sections/SectionHomeBlog.tsx+++ b/apps/marketing/src/app/components/sections/SectionHomeBlog.tsx@@ -335,7 +335,7 @@ export function SectionHomeBlog() {class="home-blog-title"style={{'font-family': 'display',- 'font-weight': '420',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.1,'text-wrap': 'balance',diff --git a/apps/marketing/src/app/components/sections/SectionHomeIntro.tsx b/apps/marketing/src/app/components/sections/SectionHomeIntro.tsxindex d95e08bbd0..84ab282129 100644--- a/apps/marketing/src/app/components/sections/SectionHomeIntro.tsx+++ b/apps/marketing/src/app/components/sections/SectionHomeIntro.tsx@@ -69,8 +69,8 @@ const pillars: Pillar[] = [},{slug: 'shared-memory',- title: 'Shared memory',- body: 'Shared, team-level memory built nightly from your unified workspace.',+ title: 'Workspace memory',+ body: 'Agent memory built from your documents, emails, projects, and conversations.',Graphic: FigDb,},{@@ -367,7 +367,7 @@ export function SectionHomeIntro() {}.home-intro-letter-body,.home-intro-letter-signoff {- font-family: cyberreader;+ font-family: Inter;font-size: 18px;font-weight: 300;line-height: 1.6;diff --git a/apps/marketing/src/app/components/sections/SectionHomeQuote.tsx b/apps/marketing/src/app/components/sections/SectionHomeQuote.tsxindex 0c9cbc4e04..da54667e75 100644--- a/apps/marketing/src/app/components/sections/SectionHomeQuote.tsx+++ b/apps/marketing/src/app/components/sections/SectionHomeQuote.tsx@@ -137,7 +137,7 @@ function QuoteFigure(props: { card: QuoteCard }) {<blockquoteclass="home-quote-card-quote"style={{- 'font-family': 'cyberreader, body',+ 'font-family': 'Inter, body','font-weight': '420','letter-spacing': '-0.018em','line-height': 1.4,@@ -284,7 +284,7 @@ function TweetQuoteCard() {class="home-quote-tweet-quote"style={{color: 'var(--c1)',- 'font-family': 'cyberreader, body',+ 'font-family': 'Inter, body','font-weight': '420','letter-spacing': '-0.014em','line-height': 1.45,@@ -723,7 +723,7 @@ export function SectionHomeQuote(props: { variant?: 'default' | 'migrate' }) {style={{color: 'var(--c1)','font-family': 'body',- 'font-size': '18px',+ 'font-size': '15px','font-weight': '700','line-height': 1.2,}}@@ -748,7 +748,7 @@ export function SectionHomeQuote(props: { variant?: 'default' | 'migrate' }) {class="home-quote-migrate-quote"style={{color: 'var(--c1)',- 'font-family': 'cyberreader, body',+ 'font-family': 'Inter, body','font-weight': '420','letter-spacing': '-0.012em','line-height': 1.45,@@ -828,7 +828,7 @@ export function SectionHomeQuote(props: { variant?: 'default' | 'migrate' }) {color: 'var(--c1)',cursor: 'pointer','font-family': 'body',- 'font-size': '18px',+ 'font-size': '15px',height: '34px','line-height': 1,position: 'absolute',diff --git a/apps/marketing/src/app/components/sections/SectionHomeSimple.tsx b/apps/marketing/src/app/components/sections/SectionHomeSimple.tsxindex f9e01ec4f6..36cb483608 100644--- a/apps/marketing/src/app/components/sections/SectionHomeSimple.tsx+++ b/apps/marketing/src/app/components/sections/SectionHomeSimple.tsx@@ -144,7 +144,7 @@ export function SectionHomeSimple() {<h2style={{color: 'var(--c4)',- 'font-family': 'cyberreader',+ 'font-family': 'Inter','font-size': '15.5px','font-weight': '400','line-height': 1.5,@@ -152,9 +152,9 @@ export function SectionHomeSimple() {'max-width': '578px',}}>- Macro replaces 11+ apps with a single system for the whole- company. Email, team chat, docs, tasks, calendar, CRM and agents- — tied together with team-level memory.+ Emails, messages, tasks, and agent responses in one inbox.+ Documents people and agents can edit live. Search across your+ work, and give agents the tools to change it.</h2>{/* Email capture inline in the hero. Signup itself happens ondesktop, so the phone's job is just to hand us an address —@@ -202,9 +202,9 @@ export function SectionHomeSimple() {ref={heroEntrance('copy')}style={{color: 'var(--c4)',- 'font-family': 'cyberreader',- 'font-size': '18px',- 'font-weight': '300',+ 'font-family': 'Inter',+ 'font-size': '15px',+ 'font-weight': '400','line-height': 1.6,margin: '0','max-width': '750px',@@ -212,9 +212,9 @@ export function SectionHomeSimple() {'text-wrap': 'pretty',}}>- Macro replaces 11+ apps with a single system for the whole- company. Email, team chat, docs, tasks, calendar, CRM and- agents — tied together with team-level memory.+ Emails, messages, tasks, and agent responses in one inbox.+ Documents people and agents can edit live. Search across your+ work, and give agents the tools to change it.</h2></div><div@@ -268,7 +268,7 @@ export function SectionHomeSimple() {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': '20px',+ 'font-size': '17px','font-weight': '700',gap: '8px',height: '40px',@@ -303,7 +303,7 @@ export function SectionHomeSimple() {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': '20px',+ 'font-size': '17px','font-weight': '700',height: '40px','justify-content': 'center',diff --git a/apps/marketing/src/app/components/sections/SectionHomeSocialProof.tsx b/apps/marketing/src/app/components/sections/SectionHomeSocialProof.tsxindex ea2751bf2c..4e54331289 100644--- a/apps/marketing/src/app/components/sections/SectionHomeSocialProof.tsx+++ b/apps/marketing/src/app/components/sections/SectionHomeSocialProof.tsx@@ -97,7 +97,7 @@ export function SectionHomeSocialProof() {<spanstyle={{color: 'color-mix(in srgb, var(--c4) 60%, transparent)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '11px' : '12px','font-weight': '700','letter-spacing': '0.14em',@@ -127,7 +127,7 @@ export function SectionHomeSocialProof() {color: 'color-mix(in srgb, var(--c3) 62%, transparent)','font-family': 'display','font-size': mobile() ? '18px' : '21px',- 'font-weight': '500',+ 'font-weight': '315','letter-spacing': '-0.01em','line-height': 1,'white-space': 'nowrap',@@ -172,7 +172,7 @@ export function SectionHomeSocialProof() {style={{color: 'var(--c2)','font-family': 'body',- 'font-size': mobile() ? '16px' : '17px',+ 'font-size': mobile() ? '16px' : '14px','font-weight': '400','line-height': 1.55,margin: '0',diff --git a/apps/marketing/src/app/components/sections/SectionMigrateComparisons.tsx b/apps/marketing/src/app/components/sections/SectionMigrateComparisons.tsxindex 7fee5f7824..d3217301b9 100644--- a/apps/marketing/src/app/components/sections/SectionMigrateComparisons.tsx+++ b/apps/marketing/src/app/components/sections/SectionMigrateComparisons.tsx@@ -225,7 +225,7 @@ export function SectionMigrateComparisons(props: {style={{'font-family': 'display','font-size': mobile() ? '28px' : '36px',- 'font-weight': '420',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.1,}}diff --git a/apps/marketing/src/app/components/sections/SectionMoreFeatures.tsx b/apps/marketing/src/app/components/sections/SectionMoreFeatures.tsxindex 6b7922f432..a651a401c3 100644--- a/apps/marketing/src/app/components/sections/SectionMoreFeatures.tsx+++ b/apps/marketing/src/app/components/sections/SectionMoreFeatures.tsx@@ -187,7 +187,7 @@ export function SectionMoreFeatures(props: {class="more-features-kicker"style={{color: 'var(--c4)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-weight': '700','letter-spacing': '0.08em',opacity: 0.55,diff --git a/apps/marketing/src/app/components/sections/SectionNewsprint.tsx b/apps/marketing/src/app/components/sections/SectionNewsprint.tsxindex 5c09fd052c..763f2f321f 100644--- a/apps/marketing/src/app/components/sections/SectionNewsprint.tsx+++ b/apps/marketing/src/app/components/sections/SectionNewsprint.tsx@@ -5,7 +5,7 @@ export function SectionNewsprint() {const stacked = () => viewportWidth() < 800;const labelStyle = {- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': viewportWidth() < 700 ? '12px' : '14px','font-weight': '700',color: 'var(--a0)',diff --git a/apps/marketing/src/app/components/sections/SectionPlan.tsx b/apps/marketing/src/app/components/sections/SectionPlan.tsxindex 9b85df322c..4c14fe2927 100644--- a/apps/marketing/src/app/components/sections/SectionPlan.tsx+++ b/apps/marketing/src/app/components/sections/SectionPlan.tsx@@ -37,7 +37,7 @@ export function SectionPlan() {style={{'font-family': 'display','font-size': breakpoint() ? '24px' : '32px',- 'font-weight': '450',+ 'font-weight': '315','letter-spacing': '-0.02em','line-height': breakpoint() ? '28px' : '36px',}}@@ -91,7 +91,7 @@ export function SectionPlan() {color: 'var(--a0)','font-family': 'display','font-size': '14px',- 'font-weight': '500',+ 'font-weight': '315','letter-spacing': '0.04em',}}>@@ -101,7 +101,7 @@ export function SectionPlan() {style={{'font-family': 'display','font-size': breakpoint() ? '20px' : '24px',- 'font-weight': '450',+ 'font-weight': '315','letter-spacing': '-0.02em','line-height': breakpoint() ? '24px' : '28px','max-width': '240px',diff --git a/apps/marketing/src/app/components/sections/SectionProblem.tsx b/apps/marketing/src/app/components/sections/SectionProblem.tsxindex 740234af94..ee973ada44 100644--- a/apps/marketing/src/app/components/sections/SectionProblem.tsx+++ b/apps/marketing/src/app/components/sections/SectionProblem.tsx@@ -28,7 +28,7 @@ export function SectionProblem() {style={{'font-family': 'display','font-size': breakpoint() ? '24px' : '32px',- 'font-weight': '450',+ 'font-weight': '315','letter-spacing': '-0.02em','line-height': breakpoint() ? '28px' : '36px',}}diff --git a/apps/marketing/src/app/components/sections/TasksFeatureCards.tsx b/apps/marketing/src/app/components/sections/TasksFeatureCards.tsxindex 40fb84d548..144612034a 100644--- a/apps/marketing/src/app/components/sections/TasksFeatureCards.tsx+++ b/apps/marketing/src/app/components/sections/TasksFeatureCards.tsx@@ -212,7 +212,7 @@ function TaskFeatureCard(props: {'box-sizing': 'border-box',display: 'inline-flex',flex: 'none',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': compact() ? '11.5px' : '11px','font-variant-numeric': 'tabular-nums',height: compact() ? '20px' : '19px',@@ -427,16 +427,9 @@ export function TasksFeatureCards(props: { cardsOnly?: boolean } = {}) {<pstyle={{color: 'var(--c4)',- // Cyberreader rather than the site's Rajdhani 'body': this is a- // longer read than anything else on the page, and cyberreader —- // a blend of Rajdhani's edge and Inter's readability, used for- // the blog — carries it at length while still sounding like the- // site. It ships as discrete faces at 300/400/700 only (not a- // variable axis), so the 300 below is the real Light file rather- // than a synthesised weight.- 'font-family': 'cyberreader',- 'font-size': mobile() ? '16.5px' : '18px',- 'font-weight': '300',+ 'font-family': 'Inter',+ 'font-size': mobile() ? '14px' : '15px',+ 'font-weight': '400','line-height': 1.6,margin: '0','text-align': 'left',@@ -461,16 +454,9 @@ export function TasksFeatureCards(props: { cardsOnly?: boolean } = {}) {<pstyle={{color: 'var(--c2)',- // Cyberreader rather than the site's Rajdhani 'body': this is a- // longer read than anything else on the page, and cyberreader —- // a blend of Rajdhani's edge and Inter's readability, used for- // the blog — carries it at length while still sounding like the- // site. It ships as discrete faces at 300/400/700 only (not a- // variable axis), so the 300 below is the real Light file rather- // than a synthesised weight.- 'font-family': 'cyberreader',- 'font-size': mobile() ? '16.5px' : '18px',- 'font-weight': '300',+ 'font-family': 'Inter',+ 'font-size': mobile() ? '14px' : '15px',+ 'font-weight': '400','line-height': 1.6,margin: '0','text-align': 'left',diff --git a/apps/marketing/src/app/components/sections/TasksFeatureGrid.tsx b/apps/marketing/src/app/components/sections/TasksFeatureGrid.tsxindex 7e3eb3f94e..2c1b2b76c2 100644--- a/apps/marketing/src/app/components/sections/TasksFeatureGrid.tsx+++ b/apps/marketing/src/app/components/sections/TasksFeatureGrid.tsx@@ -269,7 +269,7 @@ export function TasksFeatureGrid() {<spanstyle={{color: 'color-mix(in srgb, var(--c4) 60%, transparent)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '11px' : '12px','font-weight': '700','letter-spacing': '0.14em',diff --git a/apps/marketing/src/app/components/sections/TasksHero.tsx b/apps/marketing/src/app/components/sections/TasksHero.tsxindex e8a1d3af38..6c27f8bf83 100644--- a/apps/marketing/src/app/components/sections/TasksHero.tsx+++ b/apps/marketing/src/app/components/sections/TasksHero.tsx@@ -42,7 +42,7 @@ export function ConnectGoogleButton(props: {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': props.large ? (mobile() ? '16px' : '17px') : '14px',+ 'font-size': props.large ? (mobile() ? '16px' : '14px') : '14px','font-weight': '700',gap: props.large ? '8px' : '7px',height: props.large ? (mobile() ? '46px' : '48px') : '30px',@@ -114,8 +114,8 @@ function StepNumber(props: { value: number }) {<spanaria-hidden="true"style={{- 'font-family': 'rajdhani, body',- 'font-size': '19px',+ 'font-family': 'Inter, body',+ 'font-size': '16px','font-variant-numeric': 'tabular-nums','font-weight': '700','line-height': 1,@@ -299,7 +299,7 @@ export function TasksHero(props: { onWatchDemo: () => void }) {'align-items': 'center',display: 'flex','font-family': 'body',- 'font-size': mobile() ? '18px' : '20px',+ 'font-size': mobile() ? '15px' : '17px','font-weight': '700',gap: '6px','letter-spacing': '0.035em',@@ -330,7 +330,7 @@ export function TasksHero(props: { onWatchDemo: () => void }) {'align-items': 'center',display: 'flex','font-family': 'body',- 'font-size': mobile() ? '18px' : '20px',+ 'font-size': mobile() ? '15px' : '17px','font-weight': '700',gap: '6px','letter-spacing': '0.035em',@@ -361,7 +361,7 @@ export function TasksHero(props: { onWatchDemo: () => void }) {'align-items': 'center',display: 'flex','font-family': 'body',- 'font-size': mobile() ? '18px' : '20px',+ 'font-size': mobile() ? '15px' : '17px','font-weight': '700',gap: '6px','letter-spacing': '0.035em',diff --git a/apps/marketing/src/app/components/sections/TasksLifecycle.tsx b/apps/marketing/src/app/components/sections/TasksLifecycle.tsxindex 19e7ccd37a..66cae14f98 100644--- a/apps/marketing/src/app/components/sections/TasksLifecycle.tsx+++ b/apps/marketing/src/app/components/sections/TasksLifecycle.tsx@@ -19,32 +19,6 @@ import {} from './TasksLifecycleScene';import '../../routes/RouteTasks.css';-// ----------------------------------------------------------------------------// The lifecycle of a Macro task — one continuous animated scene, driven by a-// clock this section owns.-//-// The scene (TasksLifecycleScene) is a pure function of `t`, milliseconds-// into a CYCLE. This file advances `t` with a single requestAnimationFrame-// loop accumulating real dt (not setInterval, which drifts and keeps running-// in background tabs) and maps `t` onto the four-step stepper: the active-// step is the last phase whose start is behind the clock, and the fill bar is-// how far through that phase the clock is.-//-// Controls. A step click seeks the clock to that phase's start and lets it-// play up to the phase's `rest` -- the frame that stands for the phase -- then-// holds there. Holding at the rest rather than pausing on the spot is the-// point: with an animated scene, "pause where the user clicked" would freeze-// a half-typed sentence or a cursor in mid-air. The play button resumes the-// free-running loop. Reduced motion starts held on the first phase's rest-// frame and makes step clicks jump straight between rest frames; play still-// animates, because it is an explicit choice.-//-// The loop only runs while the frame is on screen (createVisible), and the-// clock starts from 0 when JS arrives so the story begins at the top when the-// section scrolls into view. The server renders PHASES[0].rest -- the issue-// typed and the toggle about to be pressed -- rather than an empty composer.-// ----------------------------------------------------------------------------const mobile = () => viewportWidth() < 700;const compact = () => viewportWidth() < 1000;@@ -307,7 +281,7 @@ export function TasksLifecycle(props: {links will not fit a 320px phone. It ellipsises rather thanpushing the rail into an overflow. */flex: none;- font-family: rajdhani, body;+ font-family: Inter, body;font-size: 12px;font-weight: 700;gap: 0;@@ -637,7 +611,7 @@ export function TasksLifecycle(props: {<spanstyle={{color: 'var(--c4)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '11.5px','font-variant-numeric': 'tabular-nums','font-weight': '700',@@ -652,7 +626,7 @@ export function TasksLifecycle(props: {color: active() === i() ? 'var(--c1)' : 'var(--c2)','font-family': 'display','font-size': '18px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.01em','line-height': 1.15,transition: 'color 160ms ease',diff --git a/apps/marketing/src/app/components/utils/UtilLiveEditor.tsx b/apps/marketing/src/app/components/utils/UtilLiveEditor.tsxindex 42e83bf2f3..f47da0884e 100644--- a/apps/marketing/src/app/components/utils/UtilLiveEditor.tsx+++ b/apps/marketing/src/app/components/utils/UtilLiveEditor.tsx@@ -8,7 +8,7 @@ import {import { isServer } from 'solid-js/web';import './util-live-editor.css';-const rajdhani = "'rajdhani', 'body'";+const bodyFont = "'Inter', 'body'";/** Website-owned editable document: no iframe, app bundle, or authenticated state. */export function LiveDocEditor(props: {@@ -23,7 +23,7 @@ export function LiveDocEditor(props: {onReady?: () => void;}) {if (isServer) return <>{props.fallback()}</>;- const [menu, setMenu] = createSignal<'mention' | 'command' | undefined>();+ const [menu, setMenu] = createSignal<'command' | undefined>();let host: HTMLDivElement | undefined;let editor: HTMLDivElement | undefined;let interacted = false;@@ -68,12 +68,6 @@ export function LiveDocEditor(props: {current?.addRange(selection);}}- function insertMention(text: string) {- restoreSelection();- document.execCommand('insertText', false, text);- setMenu(undefined);- interactedWithDocument();- }function command(value: string) {restoreSelection();if (value === 'bullet') document.execCommand('insertUnorderedList');@@ -93,6 +87,7 @@ export function LiveDocEditor(props: {<divref={host}class="site-live-doc-host"+ data-demo-mentions="on"style={{ background: props.background ?? 'transparent' }}><Show when={props.active} fallback={props.fallback()}>@@ -139,12 +134,12 @@ export function LiveDocEditor(props: {return;}}- if (event.key !== '@' && event.key !== '/') return;+ if (event.key !== '/') return;const current = window.getSelection();if (!current?.rangeCount) return;event.preventDefault();selection = current.getRangeAt(0).cloneRange();- setMenu(event.key === '@' ? 'mention' : 'command');+ setMenu('command');}}><h1>Why Macro Docs?</h1>@@ -176,45 +171,20 @@ export function LiveDocEditor(props: {<divclass="site-live-doc-menu"role="toolbar"- aria-label={- menu() === 'mention' ? 'Insert mention' : 'Document commands'- }+ aria-label="Document commands">- <Show- when={menu() === 'mention'}- fallback={- <>- <button type="button" onClick={() => command('h1')}>- Heading- </button>- <button type="button" onClick={() => command('h2')}>- Subheading- </button>- <button type="button" onClick={() => command('bullet')}>- Bullet list- </button>- <button type="button" onClick={() => command('p')}>- Paragraph- </button>- </>- }- >- <button type="button" onClick={() => insertMention('@Julia')}>- Julia Westphal- </button>- <button- type="button"- onClick={() => insertMention('Q3 launch plan')}- >- Q3 launch plan- </button>- <button- type="button"- onClick={() => insertMention('Prepare the launch checklist')}- >- Prepare the launch checklist- </button>- </Show>+ <button type="button" onClick={() => command('h1')}>+ Heading+ </button>+ <button type="button" onClick={() => command('h2')}>+ Subheading+ </button>+ <button type="button" onClick={() => command('bullet')}>+ Bullet list+ </button>+ <button type="button" onClick={() => command('p')}>+ Paragraph+ </button><buttontype="button"onClick={() => {@@ -293,7 +263,7 @@ export function TryMePointer(props: {color: 'var(--a0)',display: 'block','font-family': 'body',- 'font-size': '18px',+ 'font-size': '15px','font-weight': '700','line-height': 1,transform: 'rotate(-90deg)',@@ -304,8 +274,8 @@ export function TryMePointer(props: {<spanstyle={{color: 'var(--a0)',- 'font-family': rajdhani,- 'font-size': '17px',+ 'font-family': bodyFont,+ 'font-size': '14px','font-weight': '600','letter-spacing': '0.14em','line-height': 1,diff --git a/apps/marketing/src/app/components/utils/UtilPlainText.tsx b/apps/marketing/src/app/components/utils/UtilPlainText.tsxindex f841773fc0..93ff712579 100644--- a/apps/marketing/src/app/components/utils/UtilPlainText.tsx+++ b/apps/marketing/src/app/components/utils/UtilPlainText.tsx@@ -181,7 +181,7 @@ const eyebrowStyle = {'letter-spacing': '0.12em','text-transform': 'uppercase',color: 'var(--color-ink-extra-muted)',- 'font-family': 'Rajdhani',+ 'font-family': 'Inter',};const headingStyles: Record<number, Record<string, string>> = {@@ -256,8 +256,7 @@ export function UtilPlainText(props: {content: string;/** Render `- ` / `1. ` lines as real lists (off by default — see BULLET_RE). */lists?: boolean;- /** Blog-post measure and Cyber Reader. Skips the wordmark, title, and date- * line so the caller can render those in a posts-article header. */+variant?: 'legal' | 'post';}) {const parsed = parseContent(props.content, props.lists ?? false);diff --git a/apps/marketing/src/app/data/featurePages.tsx b/apps/marketing/src/app/data/featurePages.tsxindex 1664a37dc6..d04e1579ae 100644--- a/apps/marketing/src/app/data/featurePages.tsx+++ b/apps/marketing/src/app/data/featurePages.tsx@@ -22,31 +22,31 @@ export const featurePages: FeaturePage[] = [Icon: IconAi,title: 'Agents',href: '/agents',- description: 'AI with your whole workspace as context.',+ description: 'Agents that search, edit, and remember your work.',},{Icon: IconEmail,title: 'Macro Mail',href: '/email',- description: 'A unified inbox, faster than Superhuman.',+ description: 'Fast email search, shared threads, and agent drafts.',},{Icon: IconDocuments,title: 'Documents',href: '/documents',- description: 'Markdown docs, wired into everything.',+ description: 'CRDT documents with offline sync and live agent edits.',},{Icon: IconChannels,title: 'Channels',href: '/channels',- description: 'Team chat, quieter than Slack.',+ description: 'Inline threads, channel sharing, and agent participants.',},{Icon: IconCall,title: 'Calls',href: '/calls',- description: 'Calls with transcripts and team memory.',+ description: 'Recordings and transcripts your agents can read.',},{Icon: IconCompany,@@ -58,7 +58,7 @@ export const featurePages: FeaturePage[] = [Icon: IconTasks,title: 'Tasks',href: '/tasks',- description: 'Lightweight tasks linked to everything.',+ description: 'Tasks from messages, assigned to people and agents.',},{Icon: IconGithub,diff --git a/apps/marketing/src/app/main/App.tsx b/apps/marketing/src/app/main/App.tsxindex 9af1eb8002..5b8bfb87e2 100644--- a/apps/marketing/src/app/main/App.tsx+++ b/apps/marketing/src/app/main/App.tsx@@ -7,7 +7,10 @@ import {on,onCleanup,onMount,+ Show,+ Suspense,} from 'solid-js';+import { DemoMentionMenu } from '../../features/marketing/components/DemoMentionMenu';import { PageVignette } from '../../features/marketing/components/PageVignette';import {applyTheme,@@ -56,9 +59,9 @@ const RouteTest = lazy(() =>);const PostsIndex = lazy(() => import('../../routes/posts/index'));const PostPage = lazy(() => import('../../routes/posts/PostPage'));-const RouteStartups = lazy(() =>- import('../routes/RouteStartups').then((module) => ({- default: module.RouteStartups,+const RouteStartupsRedirect = lazy(() =>+ import('../routes/RouteStartupsRedirect').then((module) => ({+ default: module.RouteStartupsRedirect,})));const RouteTasks = lazy(() =>@@ -66,23 +69,28 @@ const RouteTasks = lazy(() =>default: module.RouteTasks,})));+const RouteDemo = lazy(() => import('../routes/RouteDemo'));const RouteEmail = lazy(() =>import('../routes/RouteEmail').then((module) => ({default: module.RouteEmail,})));const RouteDocuments = lazy(() =>- import('../routes/RouteDocuments').then((module) => ({- default: module.RouteDocuments,- }))+ import('../../features/marketing/views/ProductDocumentsPage').then(+ (module) => ({+ default: module.RouteDocuments,+ })+ ));const RouteChannels = lazy(() =>- import('../routes/RouteChannels').then((module) => ({- default: module.RouteChannels,- }))+ import('../../features/marketing/views/ProductChannelsPage').then(+ (module) => ({+ default: module.RouteChannels,+ })+ ));const RouteCalls = lazy(() =>- import('../routes/RouteCalls').then((module) => ({+ import('../../features/marketing/views/ProductCallsPage').then((module) => ({default: module.RouteCalls,})));@@ -90,14 +98,16 @@ const RouteCrm = lazy(() =>import('../routes/RouteCrm').then((module) => ({ default: module.RouteCrm })));const RouteAgents = lazy(() =>- import('../routes/RouteAgents').then((module) => ({+ import('../../features/marketing/views/ProductAgentsPage').then((module) => ({default: module.RouteAgents,})));const RouteGithub = lazy(() =>- import('../routes/RouteGithub').then((module) => ({- default: module.RouteGithub,- }))+ import('../../features/marketing/views/ProductReviewsPage').then(+ (module) => ({+ default: module.RouteGithub,+ })+ ));const RoutePricing = lazy(() =>import('../routes/RoutePricing').then((module) => ({@@ -174,6 +184,7 @@ const RootLayout: ParentComponent = (props) => {);onMount(() => {+ if (!scrollRef) return;const handleScroll = () => {setHeaderCtaActive(scrollRef.scrollTop >= HEADER_CTA_ACTIVE_SCROLL_THRESHOLD@@ -187,30 +198,40 @@ const RootLayout: ParentComponent = (props) => {return (<>- <div- id="app-scroll-root"- ref={scrollRef}- style={{- 'overscroll-behavior': 'none',- 'box-sizing': 'border-box',- 'scrollbar-width': 'none',- 'justify-items': 'center',- 'overflow-y': 'scroll',- 'overflow-x': 'hidden',- // Viewport units are NOT scaled by the html `zoom` (--site-scale), so- // 100vw would render 10% wider than the screen and shove the centered- // grid content off to the right. Divide by the zoom to land exactly- // on the real viewport.- height: 'calc(100dvh / var(--site-scale, 1))',- display: 'grid',- width: 'calc(100vw / var(--site-scale, 1))',- }}+ <DemoMentionMenu />+ <Show+ when={location.pathname === '/demo'}+ fallback={+ <>+ <div+ id="app-scroll-root"+ ref={scrollRef}+ style={{+ 'overscroll-behavior': 'none',+ 'box-sizing': 'border-box',+ 'scrollbar-width': 'none',+ 'justify-items': 'center',+ 'overflow-y': 'scroll',+ 'overflow-x': 'hidden',+ // Viewport units are NOT scaled by the html `zoom` (--site-scale), so+ // 100vw would render 10% wider than the screen and shove the centered+ // grid content off to the right. Divide by the zoom to land exactly+ // on the real viewport.+ height: 'calc(100dvh / var(--site-scale, 1))',+ display: 'grid',+ width: 'calc(100vw / var(--site-scale, 1))',+ }}+ >+ <BaseHeader ctaActive={headerCtaActive()} />+ <UtilWrap>{props.children}</UtilWrap>+ </div>+ <PageVignette />+ <DialogTheme />+ </>+ }>- <BaseHeader ctaActive={headerCtaActive()} />- <UtilWrap>{props.children}</UtilWrap>- </div>- <PageVignette />- <DialogTheme />+ <Suspense>{props.children}</Suspense>+ </Show></>);};@@ -235,8 +256,9 @@ export const App: Component<{<Route path="/dpa" component={RouteDpa} /><Route path="/posts" component={PostsIndex} /><Route path="/posts/:slug" component={PostPage} />- <Route path="/startups" component={RouteStartups} />+ <Route path="/startups" component={RouteStartupsRedirect} /><Route path="/tasks" component={RouteTasks} />+ <Route path="/demo" component={RouteDemo} /><Route path="/email" component={RouteEmail} /><Route path="/documents" component={RouteDocuments} /><Route path="/channels" component={RouteChannels} />diff --git a/apps/marketing/src/app/main/index.css b/apps/marketing/src/app/main/index.cssindex ca8221deb4..b629d3920c 100644--- a/apps/marketing/src/app/main/index.css+++ b/apps/marketing/src/app/main/index.css@@ -1,31 +1,18 @@-/* First-paint fonts live in public/fonts/ at stable URLs so index.html can- <link rel="preload"> them in parallel with the JS bundle. */+@import '../../styles/fonts.css';++/* Legacy page aliases use the same variable fonts as the homepage. */@font-face {src: url('/fonts/roboto-slab-variable.woff2') format('woff2');font-family: 'display';font-weight: 100 900;font-display: swap;}-@font-face {- src: url('/fonts/rajdhani-medium.woff2') format('woff2');+ src: url('/fonts/inter-variable.woff2') format('woff2');font-family: 'body';+ font-weight: 100 900;font-display: swap;}--/* Rajdhani under its own name. ~146 rules say `font-family: 'rajdhani',- 'body'`, and with no such face declared they fell through to 'body' — the- same file, so it looked right, but it also meant a locally-installed- Rajdhani would win instead. Declaring it pins them to the bundled Medium. */-@font-face {- src: url('/fonts/rajdhani-medium.woff2') format('woff2');- font-family: 'rajdhani';- font-display: swap;-}--/* Neutral UI sans for the faux-app mocks (appFont). Without this the mocks- fall back to the OS system font, whose bold renders far heavier than- Inter's, making 700 read like extrabold. */@font-face {src: url('/fonts/inter-variable.woff2') format('woff2');font-family: 'Inter';@@ -33,29 +20,6 @@font-display: swap;}-/* Cyberreader: a 50/50 blend of Rajdhani's edge and Inter's readability.- Used for the blog (headers + body). */-@font-face {- src: url('/fonts/cyberreader2-regular.woff2') format('woff2');- font-family: 'cyberreader';- font-weight: 400;- font-display: swap;-}--@font-face {- src: url('/fonts/cyberreader2-bold.woff2') format('woff2');- font-family: 'cyberreader';- font-weight: 700;- font-display: swap;-}--@font-face {- src: url('/fonts/cyberreader2-light.woff2') format('woff2');- font-family: 'cyberreader';- font-weight: 300;- font-display: swap;-}-@property --a0l { syntax: "<number>"; inherits: false; initial-value: 0.74; }@property --a0c { syntax: "<number>"; inherits: false; initial-value: 0.16; }@property --a0h { syntax: "<angle>"; inherits: false; initial-value: 56deg; }@@ -197,9 +161,9 @@ html, body, #root, #app-scroll-root { background: #000; }.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }.no-scrollbar::-webkit-scrollbar { display: none; }body{- font-family: 'body';+ font-family: 'Inter Variable', Inter, sans-serif;color: var(--c2);- font-size: 16px;+ font-size: 14px;margin: 0px;}@@ -222,20 +186,20 @@ body{instead). Resetting min-width on structural boxes drops each item's base trackcontribution to 0, so every track fills its definite container, matchingChrome. Scroll strips opt out so their children stay swipeable. */-#app-scroll-root :is(section, div):not(.no-scrollbar, .no-scrollbar *) {+#app-scroll-root :is(section, div):not(.no-scrollbar, .no-scrollbar *, .dummy-workspace, .dummy-workspace *) {min-width: 0;}-input, button{- font-family: 'Courier New', Courier, monospace;+input:not(.dummy-workspace input), button:not(.dummy-workspace button){+ font-family: 'Inter Variable', Inter, sans-serif;color: var(--c4);font-size: 15px;}-input::placeholder{+input:not(.dummy-workspace input)::placeholder{color: oklch(from var(--c4) l c h / 0.6);}-a{+a:not(.dummy-workspace a){transition: color var(--transition);text-decoration: none;color: var(--c2);@@ -280,75 +244,129 @@ a{}}-/* 3D liquid-glass rim — same recipe as the home/partners CTA tray: a 1px- gradient stroke that catches light at the corners, plus inset highlights- so pill buttons read as polished panes rather than flat fills. */-.home-hero-cta,-.base-header-pill-cta,-.base-header-github-stars,-.pricing-cta-button,-.pricing-final-cta,-.feat-lite-cta-primary,-.feat-lite-cta-secondary,-.email-cta-button,-.agents-cta-button,-.crm-cta-button,-.channels-cta-button,-.docs-cta-button,-.docs-final-cta,-.migrate-cta-button,-.tasks-cta-button,-.gh-cta-button,-.calls-cta-button,-.hero-cta-button,-.final-bento-cta-button,-.mobile-signup-submit {- border: 1px solid color-mix(in srgb, var(--b4) 32%, transparent);- box-shadow:- inset 0 1px 0 color-mix(in srgb, var(--c1) 6%, transparent),- inset 0 -1px 0 color-mix(in srgb, var(--b0) 40%, transparent),- 0 14px 32px -22px rgb(0 0 0 / 0.55);- position: relative;+/* Public-page CTAs match the homepage's flat, quiet pills. The legacy+ components still set sizing inline, so these shared rules define the skin. */+:is(+ .home-hero-cta,+ .base-header-pill-cta,+ .base-header-github-stars,+ .pricing-cta-button,+ .pricing-final-cta,+ .feat-lite-cta-primary,+ .feat-lite-cta-secondary,+ .email-cta-button,+ .agents-cta-button,+ .crm-cta-button,+ .channels-cta-button,+ .docs-cta-button,+ .docs-final-cta,+ .migrate-cta-button,+ .tasks-cta-button,+ .gh-cta-button,+ .calls-cta-button,+ .hero-cta-button,+ .final-bento-cta-button,+ .mobile-signup-submit+) {+ border-radius: 999px !important;+ box-shadow: none !important;+ background-image: none !important;+ font-family: 'Inter Variable', Inter, sans-serif !important;+ font-size: 14px !important;+ font-weight: 500 !important;+ letter-spacing: normal !important;+ text-transform: none !important;+ min-height: 40px;+ transform: none !important;+ transition: background-color 160ms ease, color 160ms ease !important;+}+:is(+ .home-hero-cta,+ .base-header-pill-cta,+ .base-header-github-stars,+ .pricing-cta-button,+ .pricing-final-cta,+ .feat-lite-cta-primary,+ .feat-lite-cta-secondary,+ .email-cta-button,+ .agents-cta-button,+ .crm-cta-button,+ .channels-cta-button,+ .docs-cta-button,+ .docs-final-cta,+ .migrate-cta-button,+ .tasks-cta-button,+ .gh-cta-button,+ .calls-cta-button,+ .hero-cta-button,+ .final-bento-cta-button,+ .mobile-signup-submit+)::after,+.home-hero-cta-bar::after {+ content: none;}-.home-hero-cta-bar::after,-.home-hero-cta::after,-.base-header-pill-cta::after,-.base-header-github-stars::after,-.pricing-cta-button::after,-.pricing-final-cta::after,-.feat-lite-cta-primary::after,-.feat-lite-cta-secondary::after,-.email-cta-button::after,-.agents-cta-button::after,-.crm-cta-button::after,-.channels-cta-button::after,-.docs-cta-button::after,-.docs-final-cta::after,-.migrate-cta-button::after,-.tasks-cta-button::after,-.gh-cta-button::after,-.calls-cta-button::after,-.hero-cta-button::after,-.final-bento-cta-button::after,-.mobile-signup-submit::after {- background: linear-gradient(- 135deg,- color-mix(in srgb, var(--c1) 18%, transparent) 0%,- transparent 24%,- transparent 76%,- color-mix(in srgb, var(--c1) 12%, transparent) 100%- );- border-radius: inherit;- content: '';- inset: 0;- -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);- -webkit-mask-composite: xor;- mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);- mask-composite: exclude;- padding: 1px;- pointer-events: none;- position: absolute;+/* Main conversion links use the white Open app treatment. */+a:is(+ .email-cta-button,+ .agents-cta-button,+ .crm-cta-button,+ .channels-cta-button,+ .docs-cta-button,+ .migrate-cta-button,+ .tasks-cta-button,+ .gh-cta-button,+ .calls-cta-button,+ .hero-cta-button,+ .final-bento-cta-button+),+.feat-lite-cta-primary, .docs-final-cta, .pricing-final-cta,+.mobile-signup-submit {+ background-color: var(--c0) !important;+ color: var(--b0) !important;+ border: 1px solid transparent !important;+}++/* Demo actions use the subdued Book demo treatment. */+button:is(+ .email-cta-button,+ .channels-cta-button,+ .docs-cta-button,+ .migrate-cta-button,+ .tasks-cta-button,+ .gh-cta-button,+ .calls-cta-button+),+.feat-lite-cta-secondary {+ background-color: color-mix(in srgb, var(--c0) 6%, var(--b0)) !important;+ border: 1px solid color-mix(in srgb, var(--c0) 10%, transparent) !important;+ color: var(--c3) !important;+}++:is(+ .home-hero-cta,+ .base-header-pill-cta,+ .base-header-github-stars,+ .pricing-cta-button,+ .pricing-final-cta,+ .feat-lite-cta-primary,+ .feat-lite-cta-secondary,+ .email-cta-button,+ .agents-cta-button,+ .crm-cta-button,+ .channels-cta-button,+ .docs-cta-button,+ .docs-final-cta,+ .migrate-cta-button,+ .tasks-cta-button,+ .gh-cta-button,+ .calls-cta-button,+ .hero-cta-button,+ .final-bento-cta-button,+ .mobile-signup-submit+):focus-visible {+ outline: 2px solid var(--c0);+ outline-offset: 3px;}.scene-panel{@@ -395,7 +413,7 @@ a{.lifetime-pricing__header span {color: var(--a0);- font-family: 'rajdhani', 'body';+ font-family: 'Inter', 'body';font-size: 15px;font-weight: 700;letter-spacing: 0.08em;@@ -407,7 +425,7 @@ a{color: var(--c1);font-family: 'display';font-size: clamp(40px, 5vw, 56px);- font-weight: 650;+ font-weight: 315;letter-spacing: -0.035em;line-height: 1.02;margin: 0;@@ -576,7 +594,7 @@ a{color: var(--c0);font-family: 'display';font-size: 52px;- font-weight: 650;+ font-weight: 315;letter-spacing: -0.035em;line-height: 1;}@@ -700,7 +718,7 @@ a{.lifetime-pricing__header span {color: var(--a0);- font-family: 'rajdhani', 'body';+ font-family: 'Inter', 'body';font-size: 16px;font-weight: 700;letter-spacing: 0.1em;@@ -712,7 +730,7 @@ a{color: var(--c1);font-family: 'display';font-size: clamp(34px, 4vw, 46px);- font-weight: 650;+ font-weight: 315;letter-spacing: -0.035em;line-height: 1.06;margin: 0;@@ -796,7 +814,7 @@ a{color: var(--a0);font-family: 'display';font-size: 34px;- font-weight: 650;+ font-weight: 315;line-height: 1;margin: 0;}@@ -813,7 +831,7 @@ a{color: var(--c0);font-family: 'display';font-size: clamp(52px, 6vw, 66px);- font-weight: 650;+ font-weight: 315;letter-spacing: -0.045em;line-height: 1;}@@ -1077,7 +1095,7 @@ a{.lifetime-pricing__header > span {color: var(--a0);- font-family: 'rajdhani', 'body';+ font-family: 'Inter', 'body';font-size: 16px;font-weight: 700;letter-spacing: 0.1em;@@ -1089,7 +1107,7 @@ a{color: var(--c1);font-family: 'display';font-size: 44px;- font-weight: 410;+ font-weight: 315;letter-spacing: -0.015em;line-height: 1.2;margin: 0;@@ -1180,7 +1198,7 @@ a{color: var(--c1);font-family: 'display';font-size: 44px;- font-weight: 410;+ font-weight: 315;letter-spacing: -0.015em;line-height: 1.2;margin: 0;@@ -1306,7 +1324,7 @@ a{.lifetime-pricing__card-top > span {color: var(--a0);display: inline-flex;- font-family: 'rajdhani', 'body';+ font-family: 'Inter', 'body';font-size: 13px;font-weight: 700;letter-spacing: 0.14em;@@ -1327,7 +1345,7 @@ a{background: transparent;border: 0;color: var(--a0);- font-family: 'rajdhani', 'body';+ font-family: 'Inter', 'body';font-size: 13px;font-weight: 700;letter-spacing: 0.14em;@@ -1380,7 +1398,7 @@ a{color: var(--c0);font-family: 'display';font-size: 44px;- font-weight: 410;+ font-weight: 315;letter-spacing: -0.015em;line-height: 1.2;}@@ -1512,7 +1530,7 @@ a{display: grid;font-family: 'display';font-size: 18px;- font-weight: 450;+ font-weight: 315;gap: 24px;grid-template-columns: minmax(0, 1fr) auto;line-height: 1.12;@@ -1703,7 +1721,7 @@ a{.lifetime-pricing__security-copy span {color: var(--a0);- font-family: 'rajdhani', 'body';+ font-family: 'Inter', 'body';font-size: 16px;font-weight: 700;letter-spacing: 0.1em;@@ -1715,7 +1733,7 @@ a{color: var(--c1);font-family: 'display';font-size: clamp(39px, 5vw, 51px);- font-weight: 410;+ font-weight: 315;letter-spacing: -0.015em;line-height: 1.08;margin: 0;diff --git a/apps/marketing/src/app/routes/RouteAgents.css b/apps/marketing/src/app/routes/RouteAgents.cssindex b0a270c614..4db255d238 100644--- a/apps/marketing/src/app/routes/RouteAgents.css+++ b/apps/marketing/src/app/routes/RouteAgents.css@@ -9,7 +9,7 @@.agents-page *, .agents-page *::before, .agents-page *::after { box-sizing: border-box; }.agents-wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 14px; }.agents-page h1, .agents-page h2, .agents-page h3, .agents-page p, .agents-page figure { margin: 0; }-.agents-page h1, .agents-page h2 { font-family: 'display'; font-weight: 380; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }+.agents-page h1, .agents-page h2 { font-family: 'display'; font-weight: 315; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }.agents-page h1 { font-size: clamp(48px, 4.6vw, 60px); }.agents-page h1 em { font-weight: inherit; }.agents-page h2 { font-size: clamp(36px, 3.8vw, 46px); }@@ -24,7 +24,7 @@.agents-secondary span { color: var(--a0); }.agents-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 84px; align-items: center; padding-block: 110px; border-top: 1px solid var(--agents-line); }.agents-copy { max-width: 415px; }-.agents-kicker { display: block; color: var(--agents-dim); font: 600 12px/1.4 'rajdhani', 'body'; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }+.agents-kicker { display: block; color: var(--agents-dim); font: 600 12px/1.4 'Inter', 'body'; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }.agents-copy p { font-size: 18px; line-height: 1.55; color: var(--c4); margin-top: 23px; }.agents-copy p + p { margin-top: 14px; }.agents-text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 14px; color: var(--c2); font-size: 15px; font-weight: 600; text-decoration: none; }diff --git a/apps/marketing/src/app/routes/RouteAgents.tsx b/apps/marketing/src/app/routes/RouteAgents.tsxindex d022ed9e10..8a6b037d81 100644--- a/apps/marketing/src/app/routes/RouteAgents.tsx+++ b/apps/marketing/src/app/routes/RouteAgents.tsx@@ -52,7 +52,7 @@ function ConnectGoogleButton(props: { buttonName: string; large?: boolean }) {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': mobile() ? '15px' : props.large ? '18px' : '16px',+ 'font-size': mobile() ? '15px' : props.large ? '15px' : '16px','font-weight': '700',gap: '8px',height: mobile() ? '40px' : props.large ? '46px' : '40px',@@ -1330,7 +1330,7 @@ function ComparisonCell(props: { value: Cell; macro: boolean }) {<spanstyle={{color: props.macro ? 'var(--a0)' : 'var(--c2)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '13px' : '15px','font-weight': '700','letter-spacing': '0.02em',@@ -1357,7 +1357,7 @@ function ComparisonTable() {: 'transparent',color: macro ? 'var(--a0)' : 'var(--c2)',display: 'flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '12px' : '15px','font-weight': '700','justify-content': 'center',@@ -1500,7 +1500,7 @@ function ComparisonSection() {<spanstyle={{color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '12px' : '16px','letter-spacing': '0.08em','text-transform': 'uppercase',@@ -1513,7 +1513,7 @@ function ComparisonSection() {color: 'var(--c1)','font-family': 'display','font-size': mobile() ? '32px' : '44px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.1,margin: 0,@@ -1575,7 +1575,7 @@ function ComparisonSection() {'align-items': 'center',color: 'var(--c4)',display: 'flex',- 'font-family': "'rajdhani', body",+ 'font-family': "'Inter', body",'font-size': '11px','font-weight': '700',gap: '8px',@@ -1647,7 +1647,7 @@ function ComparisonSection() {<Show when={mobile()}><spanstyle={{- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '11px','letter-spacing': '0.06em',opacity: 0.6,@@ -1692,7 +1692,7 @@ function AgentsFinalCta() {style={{'font-family': 'display','font-size': mobile() ? '38px' : '48px',- 'font-weight': '420',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.08,margin: '0',@@ -1704,7 +1704,7 @@ function AgentsFinalCta() {style={{color: 'var(--c4)','font-family': 'body',- 'font-size': mobile() ? '17px' : '19px',+ 'font-size': mobile() ? '14px' : '16px','font-weight': '400','line-height': 1.55,margin: '0',@@ -1791,7 +1791,7 @@ export const RouteAgents: Component = () => {style={{'font-family': 'display','font-size': mobile() ? 'clamp(44px, 12vw, 60px)' : '52.36px',- 'font-weight': '380',+ 'font-weight': '315','letter-spacing': '-0.012em','line-height': 1.12,margin: '0',@@ -1804,7 +1804,7 @@ export const RouteAgents: Component = () => {style={{color: 'var(--c4)','font-family': 'body',- 'font-size': mobile() ? '16.5px' : '23px',+ 'font-size': mobile() ? '14px' : '20px','font-weight': '400','line-height': 1.5,margin: '0',diff --git a/apps/marketing/src/app/routes/RouteCalls.tsx b/apps/marketing/src/app/routes/RouteCalls.tsxindex 1d5e5291d4..89cba10b64 100644--- a/apps/marketing/src/app/routes/RouteCalls.tsx+++ b/apps/marketing/src/app/routes/RouteCalls.tsx@@ -45,7 +45,7 @@ function ConnectGoogleButton(props: { buttonName: string; large?: boolean }) {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': mobile() ? '15px' : props.large ? '18px' : '16px',+ 'font-size': mobile() ? '15px' : props.large ? '15px' : '16px','font-weight': '700',gap: '8px',height: mobile() ? '40px' : props.large ? '46px' : '40px',@@ -486,7 +486,7 @@ function ComparisonCell(props: { value: Cell; macro: boolean }) {<spanstyle={{color: props.macro ? 'var(--a0)' : 'var(--c2)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '13px' : '15px','font-weight': '700','letter-spacing': '0.02em',@@ -513,7 +513,7 @@ function ComparisonTable() {: 'transparent',color: macro ? 'var(--a0)' : 'var(--c2)',display: 'flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '12px' : '15px','font-weight': '700','justify-content': 'center',@@ -653,7 +653,7 @@ function ComparisonSection() {<spanstyle={{color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '12px' : '16px','letter-spacing': '0.08em','text-transform': 'uppercase',@@ -666,7 +666,7 @@ function ComparisonSection() {color: 'var(--c1)','font-family': 'display','font-size': mobile() ? '32px' : '44px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.1,margin: 0,@@ -728,7 +728,7 @@ function ComparisonSection() {'align-items': 'center',color: 'var(--c4)',display: 'flex',- 'font-family': "'rajdhani', body",+ 'font-family': "'Inter', body",'font-size': '11px','font-weight': '700',gap: '8px',@@ -800,7 +800,7 @@ function ComparisonSection() {<Show when={mobile()}><spanstyle={{- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '11px','letter-spacing': '0.06em',opacity: 0.6,@@ -845,7 +845,7 @@ function CallsFinalCta() {style={{'font-family': 'display','font-size': mobile() ? '38px' : '48px',- 'font-weight': '420',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.08,margin: '0',@@ -857,7 +857,7 @@ function CallsFinalCta() {style={{color: 'var(--c4)','font-family': 'body',- 'font-size': mobile() ? '17px' : '19px',+ 'font-size': mobile() ? '14px' : '16px','font-weight': '400','line-height': 1.55,margin: '0',@@ -945,7 +945,7 @@ export const RouteCalls: Component = () => {style={{'font-family': 'display','font-size': mobile() ? 'clamp(44px, 12vw, 60px)' : '52.36px',- 'font-weight': '380',+ 'font-weight': '315','letter-spacing': '-0.012em','line-height': 1.12,margin: '0',@@ -958,7 +958,7 @@ export const RouteCalls: Component = () => {style={{color: 'var(--c4)','font-family': 'body',- 'font-size': mobile() ? '16.5px' : '23px',+ 'font-size': mobile() ? '14px' : '20px','font-weight': '400','line-height': 1.5,margin: '0',@@ -1124,7 +1124,7 @@ export const RouteCalls: Component = () => {color: 'var(--c1)',cursor: 'pointer','font-family': 'body',- 'font-size': '18px',+ 'font-size': '15px',height: '34px','line-height': 1,position: 'absolute',diff --git a/apps/marketing/src/app/routes/RouteChannels.tsx b/apps/marketing/src/app/routes/RouteChannels.tsxindex 38b0fd5241..fdfaedd3e6 100644--- a/apps/marketing/src/app/routes/RouteChannels.tsx+++ b/apps/marketing/src/app/routes/RouteChannels.tsx@@ -70,7 +70,7 @@ function ConnectGoogleButton(props: { buttonName: string; large?: boolean }) {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': props.large ? (mobile() ? '16px' : '17px') : '14px',+ 'font-size': props.large ? (mobile() ? '16px' : '14px') : '14px','font-weight': '700',gap: props.large ? '8px' : '7px',height: props.large ? (mobile() ? '46px' : '48px') : '30px',@@ -735,9 +735,9 @@ function ChannelsHero(props: { onWatchDemo: () => void }) {<pstyle={{color: 'var(--c4)',- 'font-family': 'cyberreader, body',- 'font-size': mobile() ? '16.5px' : '19px',- 'font-weight': '300',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '14px' : '16px',+ 'font-weight': '400','line-height': 1.6,margin: '0','max-width': mobile() ? '100%' : '64ch',@@ -809,17 +809,17 @@ function ChannelsFounderLetter() {Great teams need great comms.</h2><div style={{ display: 'grid', gap: mobile() ? '18px' : '22px' }}>- {/* Cyberreader rather than the site's Rajdhani `body`: this is a- longer read than anything else on the page, and cyberreader — a- blend of Rajdhani's edge and Inter's readability — is what the+ {/* Inter rather than the site's Inter `body`: this is a+ longer read than anything else on the page, and Inter — a+ blend of Inter's edge and Inter's readability — is what thehome page reaches for at length. It ships as discrete facesrather than a variable axis, so 300 is the real Light file. */}<pstyle={{color: 'var(--c4)',- 'font-family': 'cyberreader, body',- 'font-size': mobile() ? '16.5px' : '18px',- 'font-weight': '300',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '14px' : '15px',+ 'font-weight': '400','line-height': 1.6,margin: '0','text-align': 'left',@@ -843,9 +843,9 @@ function ChannelsFounderLetter() {<pstyle={{color: 'var(--c2)',- 'font-family': 'cyberreader, body',- 'font-size': mobile() ? '16.5px' : '18px',- 'font-weight': '300',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '14px' : '15px',+ 'font-weight': '400','line-height': 1.6,margin: '0','text-align': 'left',@@ -931,9 +931,9 @@ function ChannelsIntegrationHero() {<pstyle={{color: 'var(--c4)',- 'font-family': 'cyberreader, body',- 'font-size': mobile() ? '17px' : '19px',- 'font-weight': '300',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '14px' : '16px',+ 'font-weight': '400','line-height': 1.6,margin: '0','max-width': '44ch',@@ -1428,7 +1428,7 @@ function ChannelsFeatureCards() {<spanstyle={{color: 'color-mix(in srgb, var(--a0) 78%, transparent)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '11px' : '12.5px','font-weight': '700','letter-spacing': '0.18em',@@ -1442,7 +1442,7 @@ function ChannelsFeatureCards() {style={{color: 'var(--c2)','font-family': 'body',- 'font-size': mobile() ? '16px' : '16.5px',+ 'font-size': mobile() ? '16px' : '14px','font-weight': '700','letter-spacing': '0.07em','line-height': 1.2,@@ -1501,7 +1501,7 @@ const slabTitle = (opts?: {'font-size':opts?.size ??(mobile() ? 'clamp(32px, 9vw, 40px)' : 'clamp(40px, 4.2vw, 52px)'),- 'font-weight': opts?.weight ?? '315',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.12,margin: '0',@@ -1585,9 +1585,9 @@ function FeatureSplit(props: {<pstyle={{color: 'var(--c4)',- 'font-family': 'cyberreader, body',- 'font-size': mobile() ? '15.5px' : '17px',- 'font-weight': '300',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '15.5px' : '14px',+ 'font-weight': '400','line-height': 1.55,margin: '0','max-width': '34em',@@ -1739,9 +1739,9 @@ function ChannelsClosingHero() {<pstyle={{color: 'var(--c4)',- 'font-family': 'cyberreader, body',- 'font-size': mobile() ? '16.5px' : '18px',- 'font-weight': '300',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '14px' : '15px',+ 'font-weight': '400',/* Double-leaded, and the break is the one in the markup: twodeliberate lines under the title read as a pair of statementsrather than as a wrapped paragraph. */@@ -1965,9 +1965,9 @@ function ComparisonSection() {<pstyle={{color: 'var(--c4)',- 'font-family': 'cyberreader, body',- 'font-size': mobile() ? '15px' : '17px',- 'font-weight': '300',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '15px' : '14px',+ 'font-weight': '400','line-height': 1.55,margin: '16px auto 0','max-width': '620px',@@ -2023,9 +2023,9 @@ function ChannelsFinalCta() {<pstyle={{color: 'var(--c4)',- 'font-family': 'cyberreader, body',- 'font-size': mobile() ? '17px' : '19px',- 'font-weight': '300',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '14px' : '16px',+ 'font-weight': '400','line-height': 1.6,margin: '0',}}@@ -2242,7 +2242,7 @@ export const RouteChannels: Component = () => {color: 'var(--c1)',cursor: 'pointer','font-family': 'body',- 'font-size': '18px',+ 'font-size': '15px',height: '34px','line-height': 1,position: 'absolute',diff --git a/apps/marketing/src/app/routes/RouteCrm.tsx b/apps/marketing/src/app/routes/RouteCrm.tsxindex 2607941dbd..1b850c4d9a 100644--- a/apps/marketing/src/app/routes/RouteCrm.tsx+++ b/apps/marketing/src/app/routes/RouteCrm.tsx@@ -1,1175 +1,256 @@-import { type Component, createSignal, For, type JSX, Show } from 'solid-js';+import MacroLogo from '@icon/macro-logo.svg';+import { lazy } from 'solid-js';+import { CrmCaptureDemo } from '../../features/marketing/components/crm/CrmCaptureDemo';+import { CrmComparison } from '../../features/marketing/components/crm/CrmComparison';+import { CrmConnectedWorkDemo } from '../../features/marketing/components/crm/CrmConnectedWorkDemo';+import { CrmEnrichmentDemo } from '../../features/marketing/components/crm/CrmEnrichmentDemo';import {- BuildsThemselvesGraphic,- CrmAgentPanel,- DiscussionGraphic,- HeroCompanyWindow,-} from '../components/featureGraphics/CrmGraphics';-import { CrmFeatureGrid } from '../components/sections/CrmFeatureGrid';-import { CrmUiGrid } from '../components/sections/CrmUiGrid';-import { HeroEyebrow } from '../components/sections/HeroEyebrow';+ AgentIllustration,+ CaptureIllustration,+ ContextIllustration,+} from '../../features/marketing/components/crm/CrmFeatureIllustrations';+import { CrmRecordDemo } from '../../features/marketing/components/crm/CrmRecordDemo';import {- HomeAppPreview,- HomeHeroBackdrop,-} from '../components/sections/HomeAppPreview';-import { HomeSectionRule } from '../components/sections/HomeSectionRule';+ DeferredDemo,+ DemoPlaceholder,+} from '../../features/marketing/components/DeferredDemo';import {- type LoopsFeatureBlock,- LoopsFeatureSection,- loopsFeatureHoverStyles,-} from '../components/sections/LoopsFeatureSection';-import { SectionFaq } from '../components/sections/SectionFaq';-import { SectionMoreFeatures } from '../components/sections/SectionMoreFeatures';-import { HeroScaleToFit } from '../components/utils/HeroScaleToFit';-import { viewportWidth } from '../utils/utilBreakpoint';-import { CtaIcon, ctaHref, ctaLabel, handleCtaClick } from '../utils/utilCta';+ FeaturePage,+ FeaturePageCta,+ FeaturePageFaq,+ FeaturePageSection,+} from '../../features/marketing/components/FeaturePage';+import { HomepageClosing } from '../../features/marketing/components/HomepageClosing';+import { HomepageConversation } from '../../features/marketing/components/HomepageConversation';+import { WorkspaceDesktopDemo } from '../../features/marketing/components/WorkspaceDesktopDemo';import { setPageSeo } from '../utils/utilSeo';+import '../../features/marketing/components/crm/crm-page.css';-const mobile = () => viewportWidth() < 700;+const loadPipeline = () =>+ import('../../features/marketing/components/HomepageCrm');+const PipelineDemo = lazy(loadPipeline);-// ----------------------------------------------------------------------------// CTAs-// -----------------------------------------------------------------------------function ConnectGoogleButton(props: { buttonName: string; large?: boolean }) {- return (- <a- href={ctaHref()}- class="crm-cta-button"- onClick={(event) => handleCtaClick(event, props.buttonName)}- style={{- 'align-items': 'center',- 'background-color': 'var(--a0)',- 'border-radius': '999px',- 'box-sizing': 'border-box',- color: 'var(--b0)',- cursor: 'default',- display: 'inline-flex',- 'font-family': 'body',- 'font-size': mobile() ? '15px' : props.large ? '18px' : '16px',- 'font-weight': '700',- gap: '8px',- height: mobile() ? '40px' : props.large ? '46px' : '40px',- 'justify-content': 'center',- 'letter-spacing': '0.045em',- 'line-height': 1,- overflow: 'hidden',- padding: mobile() ? '0 20px' : props.large ? '0 28px' : '0 22px',- 'text-decoration': 'none',- 'text-transform': 'uppercase',- transition: 'transform 160ms ease',- 'white-space': 'nowrap',- width: mobile() ? '100%' : 'max-content',- }}- >- <CtaIcon size={mobile() ? 16 : 15} />- {ctaLabel('Connect with Google')}- </a>- );-}--// ----------------------------------------------------------------------------// Spotlight feature blocks-// -----------------------------------------------------------------------------// Full-bleed spotlight: dimmed HeroCompanyWindow behind + CrmAgentPanel lifted.-function CrmAgentSpotlight() {- const FADE =- 'linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%)';- const compact = () => viewportWidth() < 700;- return (- <Show- when={!compact()}- fallback={- <div style={{ display: 'grid', gap: '20px', width: '100%' }}>- <HeroScaleToFit active designWidth={640}>- <HeroCompanyWindow />- </HeroScaleToFit>- <div style={{ position: 'relative' }}>- <div- aria-hidden="true"- style={{- background:- 'radial-gradient(75% 70% at 50% 42%, color-mix(in srgb, var(--ambient-ink) 10%, transparent) 0%, transparent 74%)',- inset: '-12% -8%',- 'pointer-events': 'none',- position: 'absolute',- 'z-index': 0,- }}- />- <div- style={{- filter: 'drop-shadow(0 24px 48px rgb(0 0 0 / 0.5))',- position: 'relative',- 'z-index': 1,- }}- >- <CrmAgentPanel />- </div>- </div>- </div>- }- >- <div style={{ position: 'relative', width: '100%' }}>- {/* Dimmed company record */}- <div- aria-hidden="true"- style={{- filter: 'saturate(0.9)',- '-webkit-mask-image': FADE,- 'mask-image': FADE,- opacity: '0.45',- 'pointer-events': 'none',- }}- >- <HeroCompanyWindow />- </div>- {/* Progressive blur layers */}- <For- each={[- { blur: 2, from: 18, to: 58 },- { blur: 5, from: 44, to: 82 },- { blur: 11, from: 66, to: 96 },- ]}- >- {(layer) => {- const mask = `linear-gradient(to right, transparent ${layer.from}%, #000 ${layer.to}%)`;- return (- <div- aria-hidden="true"- style={{- 'backdrop-filter': `blur(${layer.blur}px)`,- '-webkit-backdrop-filter': `blur(${layer.blur}px)`,- inset: '0',- '-webkit-mask-image': mask,- 'mask-image': mask,- 'pointer-events': 'none',- position: 'absolute',- }}- />- );- }}- </For>- {/* Lifted agent panel */}- <div- style={{- 'align-items': 'center',- display: 'grid',- inset: '0',- 'justify-items': 'end',- position: 'absolute',- }}- >- <div- style={{- 'max-width': '432px',- 'padding-right': '3%',- position: 'relative',- transform: 'translateY(-20px)',- width: '100%',- }}- >- <div- aria-hidden="true"- style={{- background:- 'radial-gradient(72% 72% at 50% 50%, color-mix(in srgb, var(--ambient-ink) 8%, transparent) 0%, transparent 72%)',- inset: '-16% -12%',- 'pointer-events': 'none',- position: 'absolute',- 'z-index': 0,- }}- />- <div- style={{- filter: 'drop-shadow(0 40px 80px rgb(0 0 0 / 0.55))',- position: 'relative',- 'z-index': 1,- }}- >- <CrmAgentPanel />- </div>- </div>- </div>- </div>- </Show>- );-}--// Generic spotlight: a graphic lifted in front of the dimmed company record.-// `lift` varies where the graphic sits so consecutive sections don't repeat-// the same centered composition (the agent section lifts right).-function CrmSpotlight(props: {- children: JSX.Element;- liftMaxWidth?: string;- lift?: 'center' | 'start';-}) {- const compact = () => mobile();- const lift = () => props.lift ?? 'center';- return (- <Show- when={!compact()}- fallback={- <div- style={{ display: 'grid', 'justify-items': 'center', width: '100%' }}- >- <div- style={{- width: '100%',- 'max-width': props.liftMaxWidth ?? '560px',- }}- >- {props.children}- </div>- </div>- }- >- <div- style={{- display: 'grid',- 'justify-items': 'center',- position: 'relative',- width: '100%',- }}- >- <div- aria-hidden="true"- style={{- filter: 'saturate(0.9)',- '-webkit-mask-image':- 'linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%)',- 'mask-image':- 'linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%)',- 'max-width': '1040px',- opacity: '0.4',- 'pointer-events': 'none',- width: '100%',- }}- >- <HeroCompanyWindow />- </div>- <div- style={{- 'align-items': 'center',- display: 'grid',- inset: '0',- 'justify-items': lift() === 'start' ? 'start' : 'center',- 'padding-left': lift() === 'start' ? 'calc(3% + 24px)' : '0',- position: 'absolute',- }}- >- <div- style={{- 'max-width': props.liftMaxWidth ?? '560px',- position: 'relative',- width: '100%',- }}- >- <div- aria-hidden="true"- style={{- background:- 'radial-gradient(70% 70% at 50% 50%, color-mix(in srgb, var(--ambient-ink) 8%, transparent) 0%, transparent 72%)',- inset: '-14% -10%',- 'pointer-events': 'none',- position: 'absolute',- 'z-index': 0,- }}- />- <div- style={{- filter: 'drop-shadow(0 40px 80px rgb(0 0 0 / 0.55))',- position: 'relative',- 'z-index': 1,- }}- >- {props.children}- </div>- </div>- </div>- </div>- </Show>- );-}--const BuildsSpotlight = () => (- <CrmSpotlight liftMaxWidth="600px">- <BuildsThemselvesGraphic />- </CrmSpotlight>-);-const DiscussionSpotlight = () => (- <CrmSpotlight liftMaxWidth="520px" lift="start">- <DiscussionGraphic />- </CrmSpotlight>-);--const buildsBlock: LoopsFeatureBlock = {- label: 'CRM',- headline: (- <>- Built from your email,- <br />- automatically.- </>- ),- description:- 'Every thread, introduction, and reply creates contacts and companies — no import, no data entry.',- href: 'https://docs.macro.com/product/crm',- heroShot: BuildsSpotlight,- heroBare: true,-};--const discussionBlock: LoopsFeatureBlock = {- label: 'CRM',- headline: (- <>- Full context lives- <br />- on the record.- </>- ),- description:- 'Emails, calls, notes, and tasks thread directly to each contact so nothing gets buried.',- href: 'https://docs.macro.com/product/crm',- heroShot: DiscussionSpotlight,- heroBare: true,-};--const agentBlock: LoopsFeatureBlock = {- label: 'CRM',- headline: (- <>- An agent that keeps- <br />- everything current.- </>- ),- description:- 'Ask about any deal, let the agent patch stale fields, and surface at-risk contacts before you ask.',- href: 'https://docs.macro.com/product/crm',- heroShot: CrmAgentSpotlight,- heroBare: true,-};--// ----------------------------------------------------------------------------// Comparison table-// -----------------------------------------------------------------------------type Cell = boolean | 'partial' | string;--const comparisonColumns = ['Macro', 'Salesforce', 'HubSpot', 'Attio'];--const comparisonRows: { feature: string; cells: [Cell, Cell, Cell, Cell] }[] = [- {- feature: 'Builds itself from your email (no data entry)',- cells: [true, false, 'partial', 'partial'],- },+const faqItems = [{- feature: 'Automatic company enrichment',- cells: [true, 'partial', true, true],+ q: 'How are companies and contacts created?',+ a: 'Macro creates contacts from external email conversations and groups them into companies by email domain. Contacts from the same company stay together, with their first and latest interactions.',},{- feature: 'Discussion threads on every record',- cells: [true, 'partial', 'partial', false],+ q: 'What is automatic enrichment?',+ a: 'Macro adds public company information such as its website, description, industry, location, and size. Your team can add the details specific to your relationship.',},{- feature: '@mention records in docs, tasks & chat',- cells: [true, false, false, false],+ q: 'Can I update records myself?',+ a: 'Yes. Change properties such as the deal stage and owner, and add notes directly to the company record.',},{- feature: 'One customer view across email, calls, docs & tasks',- cells: [true, 'partial', 'partial', false],+ q: 'Where does the team discuss a customer?',+ a: 'Every company and contact has its own discussion thread. Add notes, reply to teammates, and link relevant documents and tasks so the conversation stays with the record.',},{- feature: 'Built-in email, calls, docs & tasks',- cells: [true, 'partial', 'partial', false],+ q: 'Can I mention a company in a document or channel?',+ a: 'Yes. Mention a company or contact to create a link to its record. Sharing follows the record’s access rules and your permission to share it.',},{- feature: 'Agents with full-workspace context',- cells: [true, 'partial', 'partial', 'partial'],+ q: 'What can agents do with the CRM?',+ a: 'Agents can use the customer record and available emails, calls, documents, and tasks to answer questions and update properties. Give the agent a specific request, such as updating the pipeline from your latest sales sync.',},{- feature: 'Unified search across everything',- cells: [true, false, false, false],+ q: 'Is CRM available for my account?',+ a: 'CRM is rolling out. If the Companies view is not visible in your workspace, it may not have reached your account yet. Macro is open source under AGPLv3; the application code being public does not make your customer records public.',},- { feature: 'Open source (AGPLv3)', cells: [true, false, false, false] },- { feature: 'Price / seat / month', cells: ['$40', '$165', '$90', '$34'] },];-function CheckMark() {- return (- <svg- width="16"- height="13"- viewBox="0 0 16 13"- aria-label="Yes"- role="img"- style={{ display: 'block' }}- >- <path- d="M1.5 6.5 L5.8 11 L14.5 1.6"- fill="none"- stroke="var(--a0)"- stroke-width="2.4"- stroke-linecap="round"- stroke-linejoin="round"- />- </svg>- );-}-function PartialMark() {- return (- <span- aria-label="Partial"- role="img"- style={{- 'background-color': 'color-mix(in srgb, var(--c4) 55%, transparent)',- 'border-radius': '999px',- display: 'block',- height: '4px',- width: '14px',- }}- />- );-}-function CrossMark() {- return (- <svg- width="13"- height="13"- viewBox="0 0 13 13"- aria-label="No"- role="img"- style={{ display: 'block', opacity: 0.45 }}- >- <path- d="M2 2 L11 11 M11 2 L2 11"- fill="none"- stroke="var(--c4)"- stroke-width="1.8"- stroke-linecap="round"- />- </svg>- );-}--function ComparisonCell(props: { value: Cell; macro: boolean }) {- const isPrice = () =>- typeof props.value === 'string' && props.value !== 'partial';- return (- <div- style={{- 'align-items': 'center',- display: 'flex',- 'justify-content': 'center',- 'min-height': '22px',- }}- >- <Show- when={isPrice()}- fallback={- <Show- when={props.value === true}- fallback={- <Show when={props.value === 'partial'} fallback={<CrossMark />}>- <PartialMark />- </Show>- }- >- <CheckMark />- </Show>- }- >- <span- style={{- color: props.macro ? 'var(--a0)' : 'var(--c2)',- 'font-family': 'rajdhani, body',- 'font-size': mobile() ? '13px' : '15px',- 'font-weight': '700',- 'letter-spacing': '0.02em',- 'white-space': 'nowrap',- }}- >- {props.value as string}- </span>- </Show>- </div>- );-}--function ComparisonTable() {- const gridTemplate = () =>- mobile()- ? 'minmax(160px, 1.6fr) repeat(4, minmax(58px, 1fr))'- : 'minmax(0, 2.4fr) repeat(4, minmax(0, 1fr))';-- const headerCellStyle = (macro: boolean): JSX.CSSProperties => ({- 'align-items': 'center',- 'background-color': macro- ? 'color-mix(in srgb, var(--a0) 12%, var(--b0))'- : 'transparent',- color: macro ? 'var(--a0)' : 'var(--c2)',- display: 'flex',- 'font-family': 'rajdhani, body',- 'font-size': mobile() ? '12px' : '15px',- 'font-weight': '700',- 'justify-content': 'center',- 'letter-spacing': '0.04em',- 'line-height': 1.1,- padding: mobile() ? '14px 6px' : '18px 12px',- 'text-align': 'center',- 'text-transform': 'uppercase',+export function RouteCrm() {+ setPageSeo({+ title: 'Macro CRM — The Self-Building CRM',+ description:+ 'Build your CRM from email, enrich company records, and keep customer conversations connected to your team’s work. Let agents help update the pipeline.',+ path: '/crm',});-- const rowBorder = '1px solid color-mix(in srgb, var(--c4) 10%, transparent)';- const tableBorder =- '1px solid color-mix(in srgb, var(--c4) 10%, transparent)';-return (- <div- style={{- 'overflow-x': mobile() ? 'auto' : 'visible',- width: '100%',- 'min-width': '0',- 'max-width': '100%',- '-webkit-overflow-scrolling': 'touch',- }}- >- <div- style={{- border: tableBorder,- 'box-sizing': 'border-box',- display: 'grid',- 'grid-template-columns': gridTemplate(),- 'min-width': mobile() ? '520px' : 'auto',- overflow: 'hidden',- }}- >- <div- style={{- 'background-color': 'var(--b0)',- 'border-bottom': rowBorder,- }}+ <FeaturePage>+ <div class="crm-feature-page">+ <header class="crm-page-hero">+ <p class="crm-page-label">+ <MacroLogo aria-hidden="true" />+ <span>Macro CRM</span>+ </p>+ <h1>+ <span>CRM that makes money</span>+ <span>and updates itself.</span>+ </h1>+ <p class="crm-page-description">+ <span>Companies and contacts created from your email.</span>{' '}+ <span>Enriched automatically. Updated by agents.</span>+ </p>+ <FeaturePageCta name="crm_hero_get_started" />+ </header>+ <WorkspaceDesktopDemo+ view="crm"+ label="Try Macro CRM"+ caption="Explore the pipeline. Open a company, update its stage, or add a note."/>- <For each={comparisonColumns}>- {(col, index) => (- <div- style={{- ...headerCellStyle(index() === 0),- 'border-bottom':- index() === 0 ? '1px solid var(--a0)' : rowBorder,- }}- >- {col}- </div>- )}- </For>-- <For each={comparisonRows}>- {(row, rowIndex) => (- <>- <div- style={{- 'align-items': 'center',- 'background-color': 'var(--b0)',- 'border-bottom':- rowIndex() === comparisonRows.length - 1 ? '0' : rowBorder,- color: 'var(--c2)',- display: 'flex',- 'font-size': mobile() ? '13px' : '16px',- 'line-height': 1.25,- padding: mobile() ? '13px 12px 13px 14px' : '15px 20px',- position: mobile() ? 'sticky' : 'static',- left: mobile() ? '0' : 'auto',- 'z-index': mobile() ? 1 : 'auto',- }}- >- {row.feature}- </div>- <For each={row.cells}>- {(cell, cellIndex) => (- <div- style={{- 'align-items': 'center',- 'background-color':- cellIndex() === 0- ? 'color-mix(in srgb, var(--a0) 7%, var(--b0))'- : 'var(--b0)',- 'border-bottom':- rowIndex() === comparisonRows.length - 1- ? '0'- : rowBorder,- 'border-left':- cellIndex() === 0- ? '1px solid color-mix(in srgb, var(--a0) 28%, transparent)'- : '0',- 'border-right':- cellIndex() === 0- ? '1px solid color-mix(in srgb, var(--a0) 28%, transparent)'- : '0',- display: 'flex',- 'justify-content': 'center',- padding: mobile() ? '13px 6px' : '15px 12px',- }}- >- <ComparisonCell value={cell} macro={cellIndex() === 0} />- </div>- )}- </For>- </>- )}- </For>- </div>- </div>- );-}--function ComparisonSection() {- const [expanded, setExpanded] = createSignal(false);- return (- <section- aria-label="How Macro CRM compares"- style={{- 'box-sizing': 'border-box',- display: 'grid',- gap: mobile() ? '28px' : '40px',- 'justify-items': 'center',- 'min-width': '0',- 'padding-block': mobile() ? '56px' : '80px',- 'padding-inline': mobile() ? '18px' : '24px',- width: '100%',- }}- >- <div- style={{- display: 'grid',- gap: '14px',- 'justify-items': 'center',- 'max-width': '720px',- 'text-align': 'center',- }}- >- <span- style={{- color: 'var(--a0)',- 'font-family': 'rajdhani, body',- 'font-size': mobile() ? '12px' : '16px',- 'letter-spacing': '0.08em',- 'text-transform': 'uppercase',- }}- >- The comparison- </span>- <h2- style={{- color: 'var(--c1)',- 'font-family': 'display',- 'font-size': mobile() ? '32px' : '44px',- 'font-weight': '410',- 'letter-spacing': '-0.015em',- 'line-height': 1.1,- margin: 0,- }}- >- Less setup. More signal.- </h2>- <p- style={{- color: 'var(--c4)',- 'font-size': mobile() ? '16px' : '19px',- 'line-height': 1.45,- margin: 0,- 'max-width': '560px',- }}- >- Salesforce and HubSpot need admins to keep data clean. Macro's CRM- maintains itself.- </p>- </div>- <div- style={{- width: '100%',- 'max-width': '920px',- 'min-width': '0',- position: 'relative',- }}- >- <div- style={{- 'max-height': expanded() ? 'none' : mobile() ? '320px' : '420px',- overflow: 'hidden',- }}- >- <ComparisonTable />- </div>- <Show when={!expanded()}>- <button- type="button"- onClick={() => setExpanded(true)}- style={{- 'align-items': 'flex-end',- background:- 'linear-gradient(to bottom, transparent 0, var(--b0) 82%)',- border: '0',- bottom: '0',- cursor: 'pointer',- display: 'flex',- height: '120px',- 'justify-content': 'center',- left: '0',- padding: '0 0 12px',- position: 'absolute',- right: '0',- }}- >- <span- style={{- 'align-items': 'center',- color: 'var(--c4)',- display: 'flex',- 'font-family': "'rajdhani', body",- 'font-size': '11px',- 'font-weight': '700',- gap: '8px',- 'letter-spacing': '0.1em',- 'text-transform': 'uppercase',- }}- >- <span- aria-hidden="true"- style={{- background: 'var(--b3)',- height: '1px',- width: '20px',- }}- />- Show more- <span- aria-hidden="true"- style={{- background: 'var(--b3)',- height: '1px',- width: '20px',- }}- />+ <nav class="crm-feature-links" aria-label="On this page">+ <a href="#crm-from-email">+ <span class="crm-feature-illustration">+ <CaptureIllustration /></span>- </button>- </Show>- </div>- <div- style={{- 'align-items': 'center',- color: 'var(--c4)',- display: 'flex',- 'flex-wrap': 'wrap',- gap: mobile() ? '16px' : '24px',- 'justify-content': 'center',- }}- >- <span- style={{- 'align-items': 'center',- display: 'inline-flex',- 'font-size': '13px',- gap: '8px',- }}- >- <CheckMark /> Full support- </span>- <span- style={{- 'align-items': 'center',- display: 'inline-flex',- 'font-size': '13px',- gap: '8px',- }}- >- <PartialMark /> Partial / limited- </span>- <span- style={{- 'align-items': 'center',- display: 'inline-flex',- 'font-size': '13px',- gap: '8px',- }}+ <span>Updates from conversation</span>+ </a>+ <a href="#crm-context">+ <span class="crm-feature-illustration">+ <ContextIllustration />+ </span>+ <span>Emails and customer records</span>+ </a>+ <a href="#crm-agents">+ <span class="crm-feature-illustration">+ <AgentIllustration />+ </span>+ <span>Agents keep it current</span>+ </a>+ </nav>+ <FeaturePageSection+ id="crm-from-email"+ title="Agents update your customer records."+ description={+ 'Tell an agent what changed in a customer conversation.\nIt can update the owner, deal stage, and notes directly.'+ }>- <CrossMark /> Not available- </span>- <Show when={mobile()}>- <span- style={{- 'font-family': 'rajdhani, body',- 'font-size': '11px',- 'letter-spacing': '0.06em',- opacity: 0.6,- 'text-transform': 'uppercase',- width: '100%',- 'text-align': 'center',- }}- >- Scroll table sideways →- </span>- </Show>- </div>- <SectionFaq items={faqItems} embedded />- </section>- );-}--// ----------------------------------------------------------------------------// FAQ-// -----------------------------------------------------------------------------const faqItems: { q: string; a: JSX.Element }[] = [- {- q: 'Do I have to enter data into the CRM?',- a: (- <>- No, that's the whole point. Because your team's email already flows- through Macro, contact and company records are created and kept up to- date automatically as you work. There's no importer to run and no fields- to type in. Most CRMs die because nobody fills them in. Macro's fills- itself.- </>- ),- },- {- q: 'How are companies and contacts created?',- a: (- <>- When someone on your team emails an external contact, Macro creates a- contact record and groups contacts into companies by email domain, so- everyone <code>@acme.com</code> rolls up to one Acme record. Each- contact tracks its first and last interaction, and generic vendor / tool- domains are filtered out so the CRM stays focused on your actual- customers.- </>- ),- },- {- q: 'What is automatic enrichment?',- a: (- <>- New companies are enriched with public data: name, description, logo,- website, industry, headcount, funding, location, and social links. A- useful record exists the moment the company appears, without anyone- touching it.- </>- ),- },- {- q: 'How do discussion threads work?',- a: (- <>- Every company and contact has its own discussion thread, so deal notes- and context live on the record itself instead of a side channel. Threads- work just like Macro channels, with inline replies, the same rich- editor, and @mentions of people, docs, tasks, and other records.- </>- ),- },- {- q: 'Can I @mention a company or contact elsewhere?',- a: (- <>- Yes. Like everything in Macro, CRM records are blocks. @mention a- company or contact in a doc, task, or channel and it becomes a live,- traceable link. From the record you can see everywhere it's been- referenced across channels, docs, and calls. Note that sharing of CRM- records is controlled by your team, so @mentioning a record doesn't- change who can see it.- </>- ),- },- {- q: 'Can agents use my CRM?',- a: (- <>- Yes. Agents use your CRM as context like the rest of your team memory.- Ask "what's the latest with Hartwell?" and the agent reads the company's- emails, calls, tasks, and docs to answer, instead of you stitching the- story together across tools.- </>- ),- },- {- q: 'Is the CRM available yet, and is it open source?',- a: (- <>- CRM is rolling out now. If you don't see the <strong>Companies</strong>{' '}- view in your workspace yet, it hasn't reached your account. And like the- rest of Macro, it's fully open source under the AGPLv3, not "open core."- To build on Macro under a different license, contact{' '}- <a href="mailto:[email protected]">[email protected]</a>.- </>- ),- },-];--// ----------------------------------------------------------------------------// Final CTA-// -----------------------------------------------------------------------------function CrmFinalCta() {- return (- <section- aria-label="Get started"- style={{- 'align-items': mobile() ? 'start' : 'center',- display: 'grid',- gap: mobile() ? '24px' : '28px',- 'justify-items': mobile() ? 'start' : 'center',- 'text-align': mobile() ? 'left' : 'center',- }}- >- <div- style={{- display: 'grid',- gap: mobile() ? '14px' : '16px',- 'justify-items': mobile() ? 'start' : 'center',- 'max-width': '585px',- }}- >- <h2- style={{- 'font-family': 'display',- 'font-size': mobile() ? '38px' : '48px',- 'font-weight': '420',- 'letter-spacing': '-0.015em',- 'line-height': 1.08,- margin: '0',- }}+ <div class="feature-page-visual crm-scene">+ <CrmCaptureDemo />+ </div>+ <div class="crm-feature-prose">+ <p>+ CRM tools let agents read company records and update their+ properties. Ask Claude to assign an owner, save rollout notes, or+ move a deal to the next stage. The changes appear in the customer+ record and pipeline board. Open the record to review the values or+ edit them yourself.+ </p>+ </div>+ </FeaturePageSection>+ <FeaturePageSection+ id="crm-enrichment"+ title="Company enrichment, automatically."+ description={+ 'Email domains become company records.\nMacro adds available company information from public sources.'+ }>- Your CRM, zero- <br />- maintenance required.- </h2>- <p- style={{- color: 'var(--c4)',- 'font-family': 'body',- 'font-size': mobile() ? '17px' : '19px',- 'font-weight': '400',- 'line-height': 1.55,- margin: '0',- }}+ <div class="feature-page-visual crm-scene">+ <CrmEnrichmentDemo />+ </div>+ <div class="crm-feature-prose">+ <p>+ Macro creates contacts and companies from your email. The sender’s+ domain identifies the company, and enrichment adds available+ details such as its website, industry, location, and size. Your+ team can add its own properties, including deal stage, owner, and+ revenue. Those fields are available in the customer view and to+ agents through CRM tools.+ </p>+ </div>+ </FeaturePageSection>+ <FeaturePageSection+ id="crm-context"+ title="Customer emails in the customer record."+ description={+ 'Open the company to see its contacts, emails, and team discussion.\nRead the original conversation before replying or joining a call.'+ }>- Connect your Google Workspace and Macro builds your company and- contact records from the emails you're already sending — no setup- required.- </p>- </div>- <ConnectGoogleButton buttonName="crm_final_connect_google" large />- </section>- );-}--// ----------------------------------------------------------------------------// Page-// -----------------------------------------------------------------------------export const RouteCrm: Component = () => {- setPageSeo({- title: 'Macro CRM — The Self-Building CRM',- description:- 'Macro CRM builds itself from your email. Contacts, companies, enrichment, discussion threads, and an AI agent that keeps everything current — no data entry required.',- path: '/crm',- });-- return (- <div- lang="en"- style={{- 'background-color': 'var(--b0)',- 'box-sizing': 'border-box',- display: 'grid',- 'grid-template-columns': 'minmax(0, 1fr)',- gap: '0',- 'padding-bottom': mobile() ? '48px' : '64px',- width: '100%',- }}- >- <style>{`- @media (hover) {- .crm-cta-button:hover { transform: scale(1.02); }- }- ${loopsFeatureHoverStyles()}- `}</style>-- {/* Hero */}- <div- style={{- display: 'flow-root',- position: 'relative',- width: '100%',- 'min-width': '0',- }}- >- <HomeHeroBackdrop subtle neutral />-- <section- style={{- 'box-sizing': 'border-box',- display: 'grid',- 'justify-items': mobile() ? 'start' : 'center',- 'padding-bottom': '0',- 'padding-inline': mobile() ? '18px' : '24px',- 'padding-top': mobile() ? '96px' : '128px',- position: 'relative',- 'z-index': 1,- width: '100%',- }}+ <div class="feature-page-visual crm-scene">+ <CrmRecordDemo />+ </div>+ <div class="crm-feature-prose">+ <p>+ Customer records link the company’s contacts and email+ conversations. Each record has a discussion where your team can+ leave notes and @mention related work. An agent can read the+ record and available conversations before answering a question or+ updating a property. People can follow the same links to check its+ sources.+ </p>+ </div>+ </FeaturePageSection>+ <FeaturePageSection+ id="crm-connected-work"+ title="@mention customers in docs and chat."+ description={+ 'A customer’s name becomes a link to its record.\nReference the company in a proposal, task, or channel message.'+ }>- <div- style={{- 'box-sizing': 'border-box',- display: 'grid',- gap: mobile() ? '24px' : '28px',- 'justify-items': mobile() ? 'start' : 'center',- 'max-width': mobile() ? '100%' : '720px',- 'text-align': mobile() ? 'left' : 'center',- width: '100%',- }}- >- <HeroEyebrow label="Macro CRM" mobile={mobile} />- <h1- style={{- 'font-family': 'display',- 'font-size': mobile() ? 'clamp(44px, 12vw, 60px)' : '52.36px',- 'font-weight': '380',- 'letter-spacing': '-0.012em',- 'line-height': 1.12,- margin: '0',- 'white-space': mobile() ? 'normal' : 'nowrap',- }}- >- A CRM that builds itself.- </h1>- <p- style={{- color: 'var(--c4)',- 'font-family': 'body',- 'font-size': mobile() ? '16.5px' : '23px',- 'font-weight': '400',- 'line-height': 1.5,- margin: '0',- 'max-width': mobile() ? '34ch' : '600px',- }}- >- Contacts, companies, enrichment, and deal context — all built from- the emails your team is already sending.+ <div class="feature-page-visual crm-scene">+ <CrmConnectedWorkDemo />+ </div>+ <div class="crm-feature-prose">+ <p>+ Companies and contacts are workspace items you can @mention. Link+ the customer record in a rollout plan, a support request, or a+ team conversation. Opening the reference shows the customer’s+ details and related work. Your team can navigate from the request+ to the relationship it concerns.</p>- <div- style={{- 'align-items': 'center',- display: 'flex',- 'flex-direction': mobile() ? 'column' : 'row',- gap: mobile() ? '12px' : '14px',- 'justify-content': mobile() ? 'flex-start' : 'center',- 'margin-top': mobile() ? '4px' : '8px',- width: mobile() ? '100%' : 'auto',- }}- >- <ConnectGoogleButton buttonName="crm_hero_connect_google" />+ </div>+ </FeaturePageSection>+ <FeaturePageSection+ id="crm-agents"+ title="Update the pipeline with a message."+ description={+ 'Ask an agent to change deal stages from your latest sales conversation.\nThe updates appear directly in the pipeline board.'+ }+ >+ <div class="feature-page-visual crm-scene crm-agent-scene">+ <HomepageConversation+ messages={[+ {+ person: 'valentina',+ text: (+ <>+ <span class="homepage-person-mention">@Claude</span>,+ update the pipeline from our sales sync. Northwind asked+ for a proposal, and Lumen signed.+ </>+ ),+ },+ ]}+ />+ <div class="crm-pipeline-frame glass-input">+ <DeferredDemo+ preload={loadPipeline}+ fallback={+ <DemoPlaceholder label="Agent updates the customer pipeline" />+ }+ >+ <PipelineDemo playbackControls={false} />+ </DeferredDemo></div></div>- </section>-- {/* App-shell preview (collapsible left rail) opened on the CRM section,- matching the other feature-page heroes. */}- <HomeAppPreview- mobile={mobile}- defaultSection="crm"- showStrip={false}- fadeBottom- keepSidebarCollapsed- />- </div>-- <HomeSectionRule />-- {/* 4-tile feature grid */}- <CrmFeatureGrid />-- <HomeSectionRule />-- {/* Builds from email spotlight */}- <div- style={{- 'padding-block': mobile() ? '56px' : '80px',- 'padding-inline': mobile() ? '18px' : '24px',- }}- >- <LoopsFeatureSection- block={buildsBlock}- textLayout="split"- spotlight- spotlightGlow={0}- />- </div>-- <HomeSectionRule />-- {/* Discussion & context spotlight */}- <div- style={{- 'padding-block': mobile() ? '56px' : '80px',- 'padding-inline': mobile() ? '18px' : '24px',- }}- >- <LoopsFeatureSection- block={discussionBlock}- textLayout="split"- spotlight- spotlightGlow={0}- />- </div>-- <HomeSectionRule />-- {/* Agent spotlight */}- <div- style={{- 'padding-block': mobile() ? '56px' : '80px',- 'padding-inline': mobile() ? '18px' : '24px',- }}- >- <LoopsFeatureSection- block={agentBlock}- textLayout="split"- spotlight- spotlightGlow={0}+ <div class="crm-feature-prose">+ <p>+ Tell the agent which customer asked for a proposal and which+ signed. Its CRM tools can read the records and set their stage+ properties. Macro’s MCP tools also expose company records and+ property updates to external agents. The pipeline and customer+ views read those same values.+ </p>+ </div>+ </FeaturePageSection>+ <FeaturePageFaq+ id="crm-faq-title"+ eyebrow="Email, enrichment, and agent tools"+ title="How Macro CRM works."+ introduction={+ <p>+ Company records built from email, enriched from public+ information, and editable by your team and agents.+ </p>+ }+ items={faqItems}/>+ <CrmComparison />+ <HomepageClosing /></div>-- {/* 2×2 bento of CRM UI */}- <CrmUiGrid />-- {/* Comparison */}- <ComparisonSection />-- <HomeSectionRule />-- {/* Final CTA */}- <div- style={{- 'padding-block': mobile() ? '52px' : '68px',- 'padding-inline': mobile() ? '18px' : '24px',- }}- >- <CrmFinalCta />- </div>-- {/* Footer */}- <div- style={{- 'padding-bottom': mobile() ? '40px' : '48px',- 'padding-inline': mobile() ? '18px' : '24px',- }}- >- <SectionMoreFeatures currentPath="/crm" footerOnly />- </div>- </div>+ </FeaturePage>);-};+}diff --git a/apps/marketing/src/app/routes/RouteDemo.tsx b/apps/marketing/src/app/routes/RouteDemo.tsxnew file mode 100644index 0000000000..c5facff5a2--- /dev/null+++ b/apps/marketing/src/app/routes/RouteDemo.tsx@@ -0,0 +1,37 @@+import { useSearchParams } from '@solidjs/router';+import DummyWorkspace from '../../features/marketing/components/workspace/DummyWorkspace';+import palette from '../../styles/dark-theme.css?inline';+import uiStyles from '../../styles/site-ui.css?inline';+import { setPageSeo } from '../utils/utilSeo';+import '../../features/marketing/components/workspace-story.css';++// The signed-in app uses neutral dark surfaces; the marketing palette has a blue tint.+const workspacePalette = palette.replaceAll('0.002 250deg', '0 0deg');++const properties =+ uiStyles.match(/@property[^{}]*\{[^}]*\}/g)?.join('\n') ?? '';+const styles = uiStyles+ .replace(/@(font-face|property)[^{]*\{[^}]*\}/g, '')+ .replaceAll(':root', ':scope');++export default function RouteDemo() {+ const [params] = useSearchParams();+ setPageSeo({+ title: 'Macro — Sample workspace',+ description:+ 'Explore Macro with an interactive sample workspace. All changes stay in this browser session.',+ path: '/demo',+ noindex: true,+ });+ return (+ <main+ class="dummy-route"+ data-theme-light="false"+ data-embedded={params.embedded === 'true'}+ >+ <style>{properties}</style>+ <style>{`@scope (.dummy-route) { ${styles} ${workspacePalette.replaceAll(':root', ':scope')} }`}</style>+ <DummyWorkspace />+ </main>+ );+}diff --git a/apps/marketing/src/app/routes/RouteDocuments.tsx b/apps/marketing/src/app/routes/RouteDocuments.tsxindex cc463ac931..bab6f5d0a2 100644--- a/apps/marketing/src/app/routes/RouteDocuments.tsx+++ b/apps/marketing/src/app/routes/RouteDocuments.tsx@@ -283,7 +283,7 @@ function PowerInSimplicity() {// its own column is the third of those, so it drops from 36/380 to// .tasks-h3's 30/350.'font-size': mobile() ? '23px' : '30px',- 'font-weight': '350',+ 'font-weight': '315','letter-spacing': '-0.01em','line-height': 1.35,// Wide gap under the heading: it reads as a title over a statement@@ -304,13 +304,9 @@ function PowerInSimplicity() {<pstyle={{color: 'var(--c4)',- // 'body' stays behind cyberreader everywhere on this page: with- // font-display: swap a failed load would otherwise drop to the- // generic default instead of to Rajdhani, which is the site's- // voice.- 'font-family': 'cyberreader, body',- 'font-size': mobile() ? '16.5px' : '18px',- 'font-weight': '300',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '14px' : '15px',+ 'font-weight': '400','line-height': 1.6,margin: '0','text-align': 'left',@@ -419,7 +415,7 @@ function _FeatureSplit(props: {style={{'font-family': 'display','font-size': mobile() ? '32px' : '42px',- 'font-weight': '400',+ 'font-weight': '315','letter-spacing': '-0.018em','line-height': 1.1,margin: '0',@@ -432,10 +428,10 @@ function _FeatureSplit(props: {<pstyle={{color: 'var(--c4)',- // rajdhani, as on the email and tasks feature sections — this+ // Inter, as on the email and tasks feature sections — this// page was the only one setting these descriptions in body.- 'font-family': 'rajdhani, body',- 'font-size': mobile() ? '18px' : '21px',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '15px' : '18px','font-weight': '400','line-height': 1.6,margin: '0',@@ -983,34 +979,24 @@ const timelineEase = (t: number) => 1 - (1 - t) ** 5;const pad2 = (n: number) => (n < 10 ? `0${n}` : `${n}`);-/**- * The clock half of the scrubber's label, at a given offset from rest.- *- * Only the clock: the whole sweep is 11 hours inside one day, so the date is- * fixed text in the artwork and nothing here can move it. They are two <text>- * elements at two fixed x's rather than one string, because a centred string- * that changes width drags the date around with the seconds.- *- * Fixed width, three ways, because everything about the shape of this string- * has to stay still while its digits race:- *- * - Tabular figures, set on the element in the SVG. Inter's proportional- * digits are not one width -- measured at 8 units, "1" is 3.254 against- * "0" at 5.047 -- so a timestamp could breathe by 7 units as it counted.- * Tabular puts every digit at 5.189.- * - A padded hour, so 9 -> 10 does not add a character. This is the one- * label on the artwork that is padded, and it is the only one that moves.- * - Anchored at its START, not centred. AM and PM are still not the same- * width (50.314 against 49.899), and left-anchored that difference lands- * on the trailing edge instead of shifting every digit by half of it.- *- * Written out by hand rather than through Date, which would render this in the- * viewer's timezone and quietly move a label the artwork's gridlines fix.- */+/** UTC keeps the artwork clock independent of the viewer's timezone. */+function timelineDate(offset: number) {+ return new Date(+ Date.UTC(+ 2026,+ 7,+ 30,+ 0,+ 0,+ TIMELINE_REST_S + Math.round(offset * TIMELINE_S_PER_UNIT)+ )+ );+}+function timelineStamp(offset: number) {- const total = Math.round(TIMELINE_REST_S + offset * TIMELINE_S_PER_UNIT);- const hour = Math.floor(total / 3600);- return `${pad2(hour % 12 || 12)}:${pad2(Math.floor(total / 60) % 60)}:${pad2(total % 60)} ${hour < 12 ? 'AM' : 'PM'}`;+ const date = timelineDate(offset);+ const hour = date.getUTCHours();+ return `${pad2(hour % 12 || 12)}:${pad2(date.getUTCMinutes())}:${pad2(date.getUTCSeconds())} ${hour < 12 ? 'AM' : 'PM'}`;}/** Where the scrubber is, and how present it is, at a point in the cycle. */@@ -1041,6 +1027,7 @@ export function TimelineArtworkBand(props: {/** A normalized history position, when a caller supplies a scrubber. */position?: number;versionLabel?: string;+ positionRange?: readonly [number, number];}) {const [elapsed, setElapsed] = createSignal(0);// Nothing is written to the artwork until the sweep is actually running, so@@ -1052,7 +1039,15 @@ export function TimelineArtworkBand(props: {const frame = () =>props.position === undefined? timelineFrame(elapsed())- : { offset: (props.position - 1) * TIMELINE_TRAVEL, opacity: 1 };+ : {+ offset: props.positionRange+ ? props.positionRange[0] ++ props.position *+ (props.positionRange[1] - props.positionRange[0]) -+ 793+ : (props.position - 1) * TIMELINE_TRAVEL,+ opacity: 1,+ };// Memoised on the string, so the label is written only on the frames where// it actually reads differently. Once the ease has settled that is a handful// of frames rather than sixty a second.@@ -1063,10 +1058,13 @@ export function TimelineArtworkBand(props: {let root!: HTMLDivElement;let scrub: SVGGElement | null = null;let label: Element | null = null;+ let dateLabel: Element | null = null;onMount(() => {scrub = root.querySelector<SVGGElement>('.docs-timeline-scrub');label = root.querySelector('.docs-timeline-stamp tspan');+ dateLabel =+ scrub?.querySelector('text:not(.docs-timeline-stamp) tspan') ?? null;if (!scrub || !label) return;if (props.position !== undefined) {setRunning(true);@@ -1114,6 +1112,10 @@ export function TimelineArtworkBand(props: {createEffect(() => {const text = stamp();if (running() && label) label.textContent = text;+ if (running() && dateLabel && props.positionRange) {+ const date = timelineDate(frame().offset);+ dateLabel.textContent = `${date.getUTCMonth() === 7 ? 'Aug' : 'Sep'} ${date.getUTCDate()},`;+ }});return (@@ -1157,7 +1159,7 @@ export function TimelineArtworkBand(props: {* baselines then forces the line-height, because the headline has one gap to* cover the description's two:*- * L = 2 x 30.4 + x(cyberreader 19px) - x(display 42px)+ * L = 2 x 30.4 + x(Inter 19px) - x(display 42px)* = 60.8 + 10.66 - 22.19* = 49.27*@@ -1167,8 +1169,8 @@ export function TimelineArtworkBand(props: {* (49.27 - 55) / 2 + (44 - 22.19) = 18.95 against* (30.4 - 25) / 2 + (19 - 10.66) = 11.04.*- * Both constants moved when the subtitle went from rajdhani 21px/1.6 to- * cyberreader 19px/1.6, and they moved in opposite directions: the subtitle's+ * Both constants moved when the subtitle went from Inter 21px/1.6 to+ * Inter 19px/1.6, and they moved in opposite directions: the subtitle's* line-height dropped 3.2px, and the headline covers TWO of its gaps against* one of its own, so L lost 6.4px and gained back the 0.95px the wider face* adds to the x-height. At 49.27 on 42px type the leading is 1.17, tighter@@ -1211,13 +1213,13 @@ function DocsFeatureCopy(props: { block: DocsFeatureBlock }) {* The footer list is the email page's compose-section bullets in* this page's own type, and the swap is not cosmetic: that list is* set in body at 19px/1.45, while DOCS_HEADLINE_NUDGE above aligns- * the headline's x-height top against a FIRST LINE BOX of cyberreader+ * the headline's x-height top against a FIRST LINE BOX of Inter* 19px/1.6. Adopting the other page's font moves that x-top 1.5px* and the headline stops registering against its own subtitle.** So what is borrowed is the form -- an inline mark, a grid ul, one* claim per row -- and the gap that carries it is that list's own,- * scaled from its 19px body to this 19px cyberreader:+ * scaled from its 19px body to this 19px Inter:** gap 9 / 27.55 x 30.4 = 9.9*@@ -1238,7 +1240,7 @@ function DocsFeatureCopy(props: { block: DocsFeatureBlock }) {.docs-note-list {color: var(--c3);display: grid;- font-family: cyberreader, body;+ font-family: Inter, body;font-size: 19px;font-weight: 300;gap: 10px;@@ -1269,9 +1271,9 @@ function DocsFeatureCopy(props: { block: DocsFeatureBlock }) {* 5.7 and 5.1 -- close enough that the dot may as well be a stated* size, and a stated size cannot drift when the type does.*- * The dot keeps its 6px through the move to cyberreader 19px because- * what it is sized against barely moved: rajdhani's x-height at 21px- * is 10.71 and cyberreader's at 19px is 10.66, so the same dot reads+ * The dot keeps its 6px through the move to Inter 19px because+ * what it is sized against barely moved: Inter's x-height at 21px+ * is 10.71 and Inter's at 19px is 10.66, so the same dot reads* at the same weight beside the row.** baseline alignment plus a lift, the same pair the closing figure's@@ -1332,7 +1334,7 @@ function DocsFeatureCopy(props: { block: DocsFeatureBlock }) {'font-family': 'display','font-size': mobile() ? '32px' : '42px',// Main's h2 tier: a section title, same slot as .tasks-h2.- 'font-weight': '380',+ 'font-weight': '315','letter-spacing': '-0.018em','line-height': mobile() ? 1.1 : `${DOCS_HEADLINE_LH}px`,// The nudge is a cross-column correction -- it registers this@@ -1360,18 +1362,9 @@ function DocsFeatureCopy(props: { block: DocsFeatureBlock }) {// with an inline style object. Retype one, retype the other, or// the version-history section stops matching its siblings.color: 'var(--c3)',- // Main's lead tier, at its own size rather than this page's old- // one. 21px was a rajdhani measure, and rajdhani is condensed:- // the same string set in cyberreader runs 14% wider and wrapped- // to FOUR lines in this 430px track, which breaks the two-column- // registration outright -- the headline has one line gap to cover- // the subtitle's, and against three of them the solved- // line-height would be 90px on 42px type. At 19px, which is what- // .tasks-lead sets, it is three lines again and 8px narrower than- // the rajdhani version was, so the column is unchanged.- 'font-family': 'cyberreader, body',- 'font-size': mobile() ? '17px' : '19px',- 'font-weight': '300',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '14px' : '16px',+ 'font-weight': '400','line-height': 1.6,margin: '0','max-width': '430px',@@ -1569,7 +1562,7 @@ function DocsIntegrationHero() {color: 'var(--c1)','font-family': 'display','font-size': mobile() ? '32px' : '42px',- 'font-weight': '380',+ 'font-weight': '315','letter-spacing': '-0.018em',// The bands set their leading in px because their two-column// header registers the headline's x-height against the subtitle's@@ -1587,14 +1580,11 @@ function DocsIntegrationHero() {<pstyle={{color: 'var(--c4)',- 'font-family': 'cyberreader, body',- 'font-size': mobile() ? '17px' : '19px',- 'font-weight': '300',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '14px' : '16px',+ 'font-weight': '400','line-height': 1.6,margin: '0',- // Still 44ch, and the measure grows with the font rather than in- // spite of it: cyberreader's zero is wider, so the same 44ch is- // 507px where rajdhani's was 435. Two lines either way.'max-width': '44ch','text-align': 'left',}}@@ -1723,7 +1713,7 @@ function _LiveEditorSection() {<pstyle={{color: 'color-mix(in srgb, var(--c4) 70%, transparent)',- 'font-family': 'rajdhani, body, system-ui, sans-serif',+ 'font-family': 'Inter, body, system-ui, sans-serif','font-size': '14px','font-weight': '600','letter-spacing': '0.12em',@@ -1852,7 +1842,7 @@ function ComparisonSection() {// Main's h3 tier -- the smaller section title. /tasks sets its own// "How does Macro Tasks stack up?" in .tasks-h3 at 350, which is// this heading in the same slot on the sibling page.- 'font-weight': '350',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.1,margin: 0,@@ -2180,7 +2170,7 @@ const DOCS_HERO_NOTES: DocsHeroNote[] = [{// "anything" italic because it is the load-bearing word: the claim is not// that @ links documents, it is that the set of things it links is not- // enumerated. Rajdhani ships no italic face, so this is a synthesised+ // enumerated. Inter ships no italic face, so this is a synthesised// oblique -- which is why it is one word and not a phrase.label: () => (<>@@ -2254,7 +2244,7 @@ const DHC_ART_H = 500;* yet. None of that applies now.** DHC_LABEL_W is 232 because that is where the longest note stops taking a- * third line. Measured in Rajdhani at the 14-unit size: the first two notes+ * third line. Measured in Inter at the 14-unit size: the first two notes* reach two lines at 164.0 and 164.8 units, but the email note is half again* as long as either and needs 230.3, so it sets the width and the other two* spend their second line ragged and short. If this copy is replaced -- it is@@ -2458,14 +2448,14 @@ function DocsClosingFigure() {}.dhc-note-text {color: var(--dhc-ink);- font-family: rajdhani, body;+ font-family: Inter, body;/* Proportional, so every clearance measured in artwork units holdsat every width. 14 units of 801. */font-size: ${(14 / DHC_ART_W) * 100}cqw;line-height: 1.4;pointer-events: auto;}- /* The page's own eyebrow -- rajdhani 600 at 0.12em, uppercase, the+ /* The page's own eyebrow -- Inter 600 at 0.12em, uppercase, thesame as LIVE DEMO above the demo frame -- restated in artwork unitsso it scales with the figure like everything else here. Neutralrather than accent: it is a category marker sitting over an accent@@ -2482,7 +2472,7 @@ function DocsClosingFigure() {margin-bottom: ${(4 / DHC_ART_W) * 100}cqw;text-transform: uppercase;}- /* Rajdhani has no italic face, so this is the browser's synthesised+ /* Inter has no italic face, so this is the browser's synthesisedoblique. It is legible on one word and gets loose over a phrase,which is the reason the emphasis is kept to one. */.dhc-note-text em { font-style: italic; }@@ -2505,7 +2495,7 @@ function DocsClosingFigure() {align-items: baseline;color: var(--dhc-ink);display: flex;- font-family: rajdhani, body;+ font-family: Inter, body;font-size: 13px;gap: 8px;line-height: 1.45;diff --git a/apps/marketing/src/app/routes/RouteEmail.tsx b/apps/marketing/src/app/routes/RouteEmail.tsxindex 3c296c90ac..12a6394ce5 100644--- a/apps/marketing/src/app/routes/RouteEmail.tsx+++ b/apps/marketing/src/app/routes/RouteEmail.tsx@@ -1,19 +1,15 @@-import { lazy } from 'solid-js';-import {- DeferredDemo,- DemoPlaceholder,-} from '../../features/marketing/components/DeferredDemo';+import MacroLogo from '@icon/macro-logo.svg';+import { EmailAgenticEditingDemo } from '../../features/marketing/components/email/EmailAgenticEditingDemo';+import { EmailAutoTagsDemo } from '../../features/marketing/components/email/EmailAutoTagsDemo';import { EmailComparison } from '../../features/marketing/components/email/EmailComparison';+import { EmailDesktopDemo } from '../../features/marketing/components/email/EmailDesktopDemo';import {AgenticEditingGraphic,+ AutoTagsGraphic,EmailSharingGraphic,- OneInboxGraphic,- SignalNoiseGraphic,+ KeyboardSpeedGraphic,} from '../../features/marketing/components/email/EmailFeatureGraphics';-import {- EmailInboxDemo,- EmailSignalNoiseDemo,-} from '../../features/marketing/components/email/EmailInboxDemo';+import { EmailKeyboardDemo } from '../../features/marketing/components/email/EmailKeyboardDemo';import { EmailSharingDemo } from '../../features/marketing/components/email/EmailSharingDemo';import {FeaturePage,@@ -21,13 +17,9 @@ import {FeaturePageFaq,FeaturePageSection,} from '../../features/marketing/components/FeaturePage';-import { HomepageConversation } from '../../features/marketing/components/HomepageConversation';-import { HomepageMention } from '../../features/marketing/components/HomepageMention';+import { HomepageClosing } from '../../features/marketing/components/HomepageClosing';import { setPageSeo } from '../utils/utilSeo';--const loadEmailCompose = () =>- import('../../features/marketing/components/HomepageEmailCompose');-const HomepageEmailCompose = lazy(loadEmailCompose);+import '../../features/marketing/components/email/email-hero.css';const faqItems = [{@@ -103,158 +95,140 @@ export function RouteEmail() {return (<FeaturePage>- <header class="feature-page-hero">+ <header class="feature-page-hero email-page-hero">+ <p class="email-page-hero-label">+ <MacroLogo aria-hidden="true" />+ <span>Macro Mail</span>+ </p><h1>- Email for humans- <br />- and agents.+ <span>Extremely fast email for</span>+ <span>humans and agents.</span></h1>- <p>- Your accounts in one inbox. Agents to help you write. Your team, with- the full conversation.+ <p class="email-page-hero-description">+ All your accounts in one inbox. Search across them.+ <br class="email-page-hero-break" /> Share threads. Let agents draft+ your replies.</p><FeaturePageCta name="email_hero_get_started" /></header>- <nav class="feature-page-jump-links" aria-label="On this page">- <a href="#inbox">- <OneInboxGraphic />- <span>One inbox</span>+ <EmailDesktopDemo />+ <nav+ class="feature-page-jump-links email-feature-links"+ aria-label="On this page"+ >+ <a href="#auto-tags">+ <AutoTagsGraphic />+ <span>Automatic tags</span>+ </a>+ <a href="#email-sharing">+ <EmailSharingGraphic />+ <span>Share to a channel</span>+ </a>+ <a href="#keyboard-speed">+ <KeyboardSpeedGraphic />+ <span>Superhuman speed</span></a><a href="#agentic-editing"><AgenticEditingGraphic /><span>Agentic editing</span></a>- <a href="#signal-noise">- <SignalNoiseGraphic />- <span>Signal & noise</span>- </a>- <a href="#email-sharing">- <EmailSharingGraphic />- <span>Share with your team</span>- </a></nav><FeaturePageSection- id="inbox"- title="Every account. One inbox."- description="Your work and personal email, together. Find a conversation without switching accounts."+ id="auto-tags"+ title="Your email, automatically tagged."+ description={+ 'Macro tags incoming email by customer, project, or follow-up.\nUse tags to find the related conversations across your accounts.'+ }><div class="feature-page-visual">- <EmailInboxDemo />+ <EmailAutoTagsDemo />+ </div>+ <div class="email-feature-prose">+ <p>+ Automatic tags label incoming messages so you can browse email by+ customer, project, or follow-up. Tags also work on documents, tasks,+ and other workspace items. You can add, remove, or change a tag+ yourself. A thread can have several tags, so it can appear under+ both the customer and the project.+ </p></div>- <p class="feature-page-caption">- Search the inbox, switch accounts, or open a thread.- </p></FeaturePageSection><FeaturePageSection- id="agentic-editing"- title="Agentic editing"- description="Draft and edit with the context of your work. Review every word before it goes out."+ id="email-sharing"+ title="Share an email directly to a channel."+ description={+ 'Share the full email thread with your team.\nFuture replies appear in the shared thread automatically.'+ }>- <div class="feature-page-visual" id="email">- <HomepageConversation- messages={[- {- person: 'jacob',- text: (- <>- <span class="homepage-person-mention">@Claude</span>, draft- a follow-up email based on{' '}- <HomepageMention- kind="calendar"- label="Demo Call Sep 14th"- description="Jacob, Dana, and Julia · Product demo and next steps for Dana’s team."- href="#agentic-editing"- />{' '}- and{' '}- <HomepageMention- kind="call"- label="Demo call transcript"- description="Transcript of the September 14 demo with Dana · Team rollout, sales materials, and follow-up next steps."- href="#agentic-editing"- />- . Include the sales PDF and rollout doc, and cc Julia.- </>- ),- },- ]}- />- <div class="homepage-feature-email">- <DeferredDemo- preload={loadEmailCompose}- fallback={<DemoPlaceholder label="Agent email draft preview" />}- >- <HomepageEmailCompose appChrome />- </DeferredDemo>- </div>+ <div class="feature-page-visual">+ <EmailSharingDemo />+ </div>+ <div class="email-feature-prose">+ <p>+ Choose a channel, add a note, and share the email. Channel members+ can open the original thread, including its messages and+ attachments. New replies update that same thread. Your team can+ leave comments and @mention documents or tasks alongside the+ customer’s email.+ </p></div>- <p class="feature-page-caption">- The agent brings in the context. You edit the draft and decide when to- send.- </p></FeaturePageSection><FeaturePageSection- id="signal-noise"- title="Signal above the noise"- description="Keep important conversations in focus. Give newsletters and automated updates their own space."+ id="keyboard-speed"+ title="Superhuman speed."+ description={+ 'J and K to navigate. E to mark done.\nSearch all your connected accounts from one inbox.'+ }><div class="feature-page-visual">- <EmailSignalNoiseDemo />+ <EmailKeyboardDemo />+ </div>+ <div class="email-feature-prose">+ <p>+ Macro syncs email into its own database and search index. Search and+ agent reading tools work on the indexed messages across your+ connected accounts. J and K move to the next and previous thread. E+ marks the conversation done. Enter opens it, and Esc returns to the+ list. These shortcuts work with a thread open too.+ </p></div>- <p class="feature-page-caption">- You control the split. Move a thread to Noise when it can wait.- </p></FeaturePageSection><FeaturePageSection- id="email-sharing"- title="Bring your team into the thread"- description="Share an email in a channel. Keep the original conversation beside the discussion."+ id="agentic-editing"+ title="Agents draft from your email and docs."+ description={+ 'Ask for a follow-up using the email thread and meeting transcript.\nReview the draft, recipients, and attachments before sending.'+ }><div class="feature-page-visual">- <EmailSharingDemo />+ <EmailAgenticEditingDemo />+ </div>+ <div class="email-feature-prose">+ <p>+ Agents can search past emails and read the documents and calls you+ reference. Ask Claude to write a reply, attach a proposal, and copy+ the people involved. The result is an editable email draft. Change+ the subject or wording, check the recipients, and approve the send+ when you’re ready.+ </p></div>- <p class="feature-page-caption">- Share the example thread, then open it from the channel.- </p></FeaturePageSection><FeaturePageFaqid="email-faq-title"- eyebrow="Your account, explained"- title="Your email. Your permission."+ title="Gmail accounts and agent permissions"introduction={- <>- <p>- Macro connects to your existing Google account. You can read,- organize, and reply to email alongside your team’s work.- </p>- <p>- You approve the connection on Google. Macro does not receive your- Google password. Email agents show you the draft and ask for- approval before sending.- </p>- </>+ <p>+ Macro connects to your existing Google account. You can read,+ organize, and reply to email alongside your team’s work. You approve+ the connection on Google. Macro does not receive your Google+ password. Email agents show you the draft and ask for approval+ before sending.+ </p>}items={faqItems}/><EmailComparison />- <section- class="feature-page-end"- aria-label="Get started with Macro Mail"- >- <h2>- Your inbox,- <br />- connected to your work.- </h2>- <FeaturePageCta name="email_footer_get_started" />- </section>- <footer class="feature-page-footer">- <a href="/">Macro</a>- <a href="/pricing">Pricing</a>- <a href="/migrate">Switching to Macro</a>- <a href="/privacy">Privacy</a>- <a href="https://security.macro.com">Security</a>- <a href="/terms">Terms</a>- </footer>+ <HomepageClosing /></FeaturePage>);}diff --git a/apps/marketing/src/app/routes/RouteGithub.tsx b/apps/marketing/src/app/routes/RouteGithub.tsxindex 3f9c429fb8..891570b91f 100644--- a/apps/marketing/src/app/routes/RouteGithub.tsx+++ b/apps/marketing/src/app/routes/RouteGithub.tsx@@ -71,7 +71,7 @@ const TASK_ORANGE = 'var(--a0)';function eyebrowStyle(): JSX.CSSProperties {return {color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': breakpoint() ? '12px' : '16px','letter-spacing': '0.08em','text-transform': 'uppercase',@@ -93,7 +93,7 @@ function ConnectGoogleButton(props: { buttonName: string; large?: boolean }) {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': mobile() ? '15px' : props.large ? '18px' : '16px',+ 'font-size': mobile() ? '15px' : props.large ? '15px' : '16px','font-weight': '700',gap: '8px',height: mobile() ? '40px' : props.large ? '42px' : '36px',@@ -216,7 +216,7 @@ function GithubStarButton() {'align-items': 'center',color: 'var(--c1)',display: 'inline-flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '15px' : '16px','font-weight': '700',gap: '5px',@@ -576,7 +576,7 @@ function DiffStat(props: {style={{'align-items': 'center',display: 'inline-flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': `${fs}px`,'font-weight': props.weight ?? '700',gap: '6px',@@ -972,7 +972,7 @@ function HeroPrWindow(props: { fill?: boolean }) {'border-radius': '5px',color: 'var(--c2)',display: 'inline-flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '9.5px','font-weight': '500',gap: '4px',@@ -1848,8 +1848,8 @@ function Keycap(props: { label: string }) {color: 'var(--c1)',cursor: 'pointer',display: 'inline-grid',- 'font-family': 'rajdhani, body',- 'font-size': mobile() ? '15px' : '17px',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '15px' : '14px','font-weight': '700',height: mobile() ? '38px' : '44px','line-height': 1,@@ -1899,7 +1899,7 @@ function ReviewCommandGraphic() {<spanstyle={{color: 'var(--c4)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '12px' : '13px','font-weight': '700','letter-spacing': '0.08em',@@ -2322,7 +2322,7 @@ function SyncedCommentsGraphic() {'border-radius': '999px',color: 'var(--a0)',display: 'inline-flex',- 'font-family': "'rajdhani', body",+ 'font-family': "'Inter', body",'font-size': '10.5px','font-weight': '700',gap: '6px',@@ -2975,7 +2975,7 @@ function ComparisonCell(props: { value: Cell; macro: boolean }) {<spanstyle={{color: props.macro ? 'var(--a0)' : 'var(--c2)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '13px' : '15px','font-weight': '700','letter-spacing': '0.02em',@@ -3002,7 +3002,7 @@ function ComparisonTable() {: 'transparent',color: macro ? 'var(--a0)' : 'var(--c2)',display: 'flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '12px' : '15px','font-weight': '700','justify-content': 'center',@@ -3152,7 +3152,7 @@ function ComparisonSection() {color: 'var(--c1)','font-family': 'display','font-size': mobile() ? '32px' : '44px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.1,margin: 0,@@ -3214,7 +3214,7 @@ function ComparisonSection() {'align-items': 'center',color: 'var(--c4)',display: 'flex',- 'font-family': "'rajdhani', body",+ 'font-family': "'Inter', body",'font-size': '11px','font-weight': '700',gap: '8px',@@ -3286,7 +3286,7 @@ function ComparisonSection() {<Show when={mobile()}><spanstyle={{- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '11px','letter-spacing': '0.06em',opacity: 0.6,@@ -3331,7 +3331,7 @@ function GithubFinalCta() {style={{'font-family': 'display','font-size': mobile() ? '38px' : '48px',- 'font-weight': '420',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.08,margin: '0',@@ -3343,7 +3343,7 @@ function GithubFinalCta() {style={{color: 'var(--c4)','font-family': 'body',- 'font-size': mobile() ? '17px' : '19px',+ 'font-size': mobile() ? '14px' : '16px','font-weight': '400','line-height': 1.55,margin: '0',@@ -3471,7 +3471,7 @@ export const RouteGithub: Component = () => {style={{'font-family': 'display','font-size': mobile() ? 'clamp(44px, 12vw, 60px)' : '52.36px',- 'font-weight': '380',+ 'font-weight': '315','letter-spacing': '-0.012em','line-height': 1.12,margin: '0',@@ -3484,7 +3484,7 @@ export const RouteGithub: Component = () => {style={{color: 'var(--c4)','font-family': 'body',- 'font-size': mobile() ? '16.5px' : '23px',+ 'font-size': mobile() ? '14px' : '20px','font-weight': '400','line-height': 1.5,margin: '0',diff --git a/apps/marketing/src/app/routes/RouteHome.tsx b/apps/marketing/src/app/routes/RouteHome.tsxindex 0bcb3c4142..7b5eb97c17 100644--- a/apps/marketing/src/app/routes/RouteHome.tsx+++ b/apps/marketing/src/app/routes/RouteHome.tsx@@ -6,7 +6,7 @@ export const RouteHome: Component = () => {setPageSeo({title: 'Macro — The ultimate workspace',description:- 'Macro replaces 11+ apps with a single system for the whole company. Email, team chat, docs, tasks, calendar, CRM and agents — tied together with team-level memory.',+ 'Email, messages, tasks, and agents in one inbox. CRDT documents with live agent edits, workspace search and memory, and a CRM built from your email.',path: '/',});diff --git a/apps/marketing/src/app/routes/RouteJobs.tsx b/apps/marketing/src/app/routes/RouteJobs.tsxindex 7859088c6f..def36a07c9 100644--- a/apps/marketing/src/app/routes/RouteJobs.tsx+++ b/apps/marketing/src/app/routes/RouteJobs.tsx@@ -9,7 +9,7 @@ const APPLY_EMAIL = '[email protected]';const eyebrowStyle = () =>({color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': viewportWidth() < 700 ? '13px' : '14px','font-weight': '700','letter-spacing': '0.08em',@@ -21,7 +21,7 @@ const eyebrowStyle = () =>const metaStyle = () =>({color: 'var(--c4)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': viewportWidth() < 700 ? '13px' : '14px','font-weight': '700','letter-spacing': '0.08em',@@ -73,7 +73,7 @@ function JobCard(props: JobCardProps) {color: 'var(--c1)','font-family': 'display','font-size': stacked() ? '26px' : '30px',- 'font-weight': '450',+ 'font-weight': '315','letter-spacing': '-0.02em','line-height': 1.1,margin: '0',@@ -106,7 +106,7 @@ function JobCard(props: JobCardProps) {><spanstyle={{- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': stacked() ? '14px' : '15px','font-weight': '700','letter-spacing': '0.1em',@@ -183,7 +183,7 @@ export const RouteJobs: Component = () => {color: 'var(--c1)','font-family': 'display','font-size': breakpoint() ? '38px' : '50px',- 'font-weight': '450',+ 'font-weight': '315','letter-spacing': '-0.035em','line-height': breakpoint() ? 1.04 : 1,margin: '0',diff --git a/apps/marketing/src/app/routes/RouteMigrate.tsx b/apps/marketing/src/app/routes/RouteMigrate.tsxindex 8830443c37..b750b51bfe 100644--- a/apps/marketing/src/app/routes/RouteMigrate.tsx+++ b/apps/marketing/src/app/routes/RouteMigrate.tsx@@ -91,8 +91,8 @@ const columnStyle = (): JSX.CSSProperties => ({const bodyStyle = (): JSX.CSSProperties => ({color: 'var(--c4)',- 'font-family': 'cyberreader, body',- 'font-size': mobile() ? '16.5px' : '18px',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '14px' : '15px','line-height': 1.75,margin: '0','text-wrap': 'pretty',@@ -112,7 +112,7 @@ const pillStyle = (): JSX.CSSProperties => ({color: 'var(--c2)',cursor: 'default',display: 'inline-flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '13px' : '14px','font-weight': '700',gap: '7px',@@ -137,7 +137,7 @@ function ConnectGoogleButton(props: { buttonName: string; large?: boolean }) {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': mobile() ? '15px' : props.large ? '18px' : '16px',+ 'font-size': mobile() ? '15px' : props.large ? '15px' : '16px','font-weight': '750',gap: '8px',height: mobile() ? '40px' : props.large ? '46px' : '40px',@@ -175,7 +175,7 @@ function BookCallButton(props: { large?: boolean }) {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': mobile() ? '15px' : props.large ? '18px' : '16px',+ 'font-size': mobile() ? '15px' : props.large ? '15px' : '16px','font-weight': '700',height: mobile() ? '40px' : props.large ? '46px' : '40px','justify-content': 'center',@@ -235,7 +235,7 @@ function Key(props: { children: JSX.Element }) {border: '1px solid color-mix(in srgb, var(--c4) 22%, transparent)','border-radius': '5px',color: 'var(--c2)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '0.85em','font-weight': '700',padding: '1px 6px',@@ -319,7 +319,7 @@ function SectionHeading(props: {<spanstyle={{color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '12px' : '15px','letter-spacing': '0.08em','text-transform': 'uppercase',@@ -333,7 +333,7 @@ function SectionHeading(props: {color: 'var(--c1)','font-family': 'display','font-size': mobile() ? '30px' : '42px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.1,margin: 0,@@ -428,7 +428,7 @@ function ComparisonCell(props: { value: Cell; macro: boolean }) {<spanstyle={{color: props.macro ? 'var(--a0)' : 'var(--c2)',- 'font-family': "'cyberreader', body",+ 'font-family': "'Inter', body",'font-size': mobile() ? '10px' : '11px','font-weight': '400','letter-spacing': '0.02em',@@ -447,7 +447,7 @@ const compareHeaderStyle = (macro: boolean): JSX.CSSProperties => ({'background-color': 'transparent',color: macro ? 'var(--a0)' : 'var(--c2)',display: 'flex',- 'font-family': "'cyberreader', body",+ 'font-family': "'Inter', body",'font-size': mobile() ? '9px' : '11px','font-weight': '400','justify-content': 'center',@@ -969,7 +969,7 @@ function ComparisonBrandLockup(props: { brand: SwitchBrand }) {color: 'color-mix(in srgb, var(--c4) 42%, transparent)','font-family': 'display','font-size': comparisonMobile() ? '32px' : '42px',- 'font-weight': '300',+ 'font-weight': '315','line-height': 0.65,transform: 'translateY(-5px) scaleY(1.5)',}}@@ -1056,7 +1056,7 @@ function ComparisonGutterLabel(props: { index: string; label: string }) {'align-items': 'center',color: 'color-mix(in srgb, var(--c4) 68%, transparent)',display: comparisonMobile() ? 'none' : 'flex',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '10px','font-weight': '700',gap: '6px',@@ -1120,7 +1120,7 @@ function ToolSectionBlock(props: { section: ToolSection }) {color: 'var(--c1)','font-family': 'display','font-size': comparisonMobile() ? '26px' : '32px',- 'font-weight': '420',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.12,margin: 0,@@ -1163,7 +1163,7 @@ function ToolSectionBlock(props: { section: ToolSection }) {<h4style={{color: 'var(--a0)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': comparisonMobile() ? '13px' : '15px','font-weight': '700','letter-spacing': '0.1em',@@ -1294,7 +1294,7 @@ function WorldTable() {style={{'box-sizing': 'border-box',display: 'grid',- 'font-family': "'cyberreader', body",+ 'font-family': "'Inter', body",'grid-template-columns': gridTemplate(),'min-width': mobile() ? '640px' : '760px',overflow: 'hidden',@@ -1667,7 +1667,7 @@ export const RouteMigrate: Component = () => {}.migrate-case-subtitle {color: var(--c4);- font-family: cyberreader, body;+ font-family: Inter, body;font-size: 16px;line-height: 1.45;margin: 0 0 20px;@@ -1772,7 +1772,7 @@ export const RouteMigrate: Component = () => {}.migrate-case-quote blockquote {color: var(--c1);- font-family: cyberreader, body;+ font-family: Inter, body;font-size: 15px;font-weight: 420;letter-spacing: -0.012em;@@ -1820,7 +1820,7 @@ export const RouteMigrate: Component = () => {}.migrate-case-play span:not(.migrate-case-play-rule) {color: var(--c1);- font-family: rajdhani, body;+ font-family: Inter, body;font-size: 15px;font-weight: 700;letter-spacing: 0.1em;@@ -1894,7 +1894,7 @@ export const RouteMigrate: Component = () => {style={{'font-family': 'display','font-size': mobile() ? 'clamp(42px, 11.5vw, 58px)' : '52.36px',- 'font-weight': '380',+ 'font-weight': '315','letter-spacing': '-0.012em','line-height': 1.12,margin: '0',@@ -1905,8 +1905,8 @@ export const RouteMigrate: Component = () => {<pstyle={{color: 'var(--c4)',- 'font-family': 'cyberreader, body',- 'font-size': mobile() ? '15px' : '18px',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '15px' : '15px','font-weight': '400','line-height': 1.55,margin: '0',@@ -2079,7 +2079,7 @@ export const RouteMigrate: Component = () => {<Show when={mobile()}><spanstyle={{- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '11px','letter-spacing': '0.06em',opacity: 0.6,@@ -2126,7 +2126,7 @@ export const RouteMigrate: Component = () => {style={{'font-family': 'display','font-size': mobile() ? '36px' : '48px',- 'font-weight': '420',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.08,margin: '0',@@ -2137,8 +2137,8 @@ export const RouteMigrate: Component = () => {<pstyle={{color: 'var(--c4)',- 'font-family': 'cyberreader, body',- 'font-size': mobile() ? '17px' : '19px',+ 'font-family': 'Inter, body',+ 'font-size': mobile() ? '14px' : '16px','line-height': 1.55,margin: '0',}}diff --git a/apps/marketing/src/app/routes/RouteMobileSignup.tsx b/apps/marketing/src/app/routes/RouteMobileSignup.tsxindex 8777afb250..2f6fdd5dff 100644--- a/apps/marketing/src/app/routes/RouteMobileSignup.tsx+++ b/apps/marketing/src/app/routes/RouteMobileSignup.tsx@@ -48,7 +48,7 @@ export const RouteMobileSignup: Component = () => {color: 'var(--c0)','font-family': 'display','font-size': mobile() ? 'clamp(38px, 11vw, 48px)' : '48px',- 'font-weight': '380',+ 'font-weight': '315','letter-spacing': '-0.012em','line-height': 1.12,margin: '0',@@ -63,7 +63,7 @@ export const RouteMobileSignup: Component = () => {style={{color: 'var(--c2)','font-family': 'body',- 'font-size': '17px',+ 'font-size': '14px','font-weight': '400','line-height': 1.5,margin: '0',diff --git a/apps/marketing/src/app/routes/RouteMobileSignupSent.tsx b/apps/marketing/src/app/routes/RouteMobileSignupSent.tsxindex df0d931963..ba3b958ee0 100644--- a/apps/marketing/src/app/routes/RouteMobileSignupSent.tsx+++ b/apps/marketing/src/app/routes/RouteMobileSignupSent.tsx@@ -187,7 +187,7 @@ export const RouteMobileSignupSent: Component = () => {color: 'var(--c0)','font-family': 'display','font-size': mobile() ? 'clamp(28px, 7.5vw, 36px)' : '40px',- 'font-weight': '380',+ 'font-weight': '315','letter-spacing': '-0.012em','line-height': 1.22,margin: '0',@@ -199,8 +199,8 @@ export const RouteMobileSignupSent: Component = () => {<pstyle={{color: 'var(--c2)',- 'font-family': 'cyberreader',- 'font-size': '17px',+ 'font-family': 'Inter',+ 'font-size': '14px','font-weight': '400','line-height': 1.5,margin: '0',diff --git a/apps/marketing/src/app/routes/RoutePartnerTerms.css b/apps/marketing/src/app/routes/RoutePartnerTerms.cssindex cf7762b987..73bd547413 100644--- a/apps/marketing/src/app/routes/RoutePartnerTerms.css+++ b/apps/marketing/src/app/routes/RoutePartnerTerms.css@@ -1,6 +1,4 @@-/* Partner terms sit in the blog article chrome (posts-shell / posts-article)- so they share Cyber Reader and the post measure. Headings already carry- their legal numbers, so suppress the FIG-style counters post-body adds. */+.partners-terms-body h2::before,.partners-terms-body h3::before {content: none;@@ -9,7 +7,7 @@.partners-terms-body h4 {color: var(--c0);- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;font-size: 17px;font-weight: 400;letter-spacing: -0.012em;diff --git a/apps/marketing/src/app/routes/RoutePartners.css b/apps/marketing/src/app/routes/RoutePartners.cssindex 957369b62b..283c45994a 100644--- a/apps/marketing/src/app/routes/RoutePartners.css+++ b/apps/marketing/src/app/routes/RoutePartners.css@@ -2,14 +2,14 @@.partners-main { box-sizing:border-box; width:100%; max-width:1040px; margin:auto; padding:128px 32px 64px; }.partners-header { max-width:760px; }.partners-eyebrow { color:var(--a0); font-size:14px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; margin:0 0 20px; }-.partners-header h1 { font-family:display; font-size:clamp(40px,5vw,60px); font-weight:420; letter-spacing:-.025em; line-height:1.1; margin:0 0 24px; max-width:20ch; }+.partners-header h1 { font-family:display; font-size:clamp(40px,5vw,60px); font-weight: 315; letter-spacing:-.025em; line-height:1.1; margin:0 0 24px; max-width:20ch; }.partners-lede { font-size:21px; line-height:1.5; color:var(--c4); max-width:52ch; }.partners-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }.partners-button { align-items:center; display:inline-flex; justify-content:center; min-height:46px; padding:0 24px; border-radius:999px; background:var(--a0); color:var(--b0); font-weight:700; font-size:17px; text-decoration:none; }.partners-button--secondary { background:transparent; border:1px solid color-mix(in srgb,var(--c4) 35%,transparent); color:var(--c1); }.partners-button:hover { transform:translateY(-1px); }.partners-facts { scroll-margin-top:96px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; border-block:1px solid var(--b3); padding:30px 0; margin:48px 0; }-.partners-facts dt { font-family:display; font-size:36px; line-height:1.2; color:var(--c1); }+.partners-facts dt { font-family:display; font-size:36px; line-height:1.2; color:var(--c1); font-weight: 315; }.partners-facts dt span { font-family:body; font-size:18px; color:var(--c4); }.partners-facts dd { font-size:17px; line-height:1.4; color:var(--c4); margin:12px 0 0; max-width:26ch; }.partners-video-frame { aspect-ratio:16/9; position:relative; border-radius:12px; overflow:hidden; border:1px solid var(--b3); }@@ -17,7 +17,7 @@.partners-video-play { position:absolute; inset:0; border:0; display:flex; align-items:end; gap:12px; padding:28px; background:linear-gradient(transparent 45%,rgb(0 0 0 /.7)); color:white; font:600 18px body; cursor:pointer; }.partners-video-play span { color:var(--a0); }.partners-details { display:grid; grid-template-columns:1fr 1.2fr; gap:56px; margin:72px 0; }-.partners-page h2 { font-family:display; font-size:32px; line-height:1.2; font-weight:420; margin:0 0 24px; }+.partners-page h2 { font-family:display; font-size:32px; line-height:1.2; font-weight: 315; margin:0 0 24px; }.partners-details p:not(.partners-eyebrow),.partners-join p { font-size:19px; line-height:1.55; color:var(--c4); margin:0 0 20px; }.partners-details a,.partners-join>a { color:var(--c1); text-underline-offset:4px; }.partners-join { border-top:1px solid var(--b3); padding-top:48px; }diff --git a/apps/marketing/src/app/routes/RoutePartners.tsx b/apps/marketing/src/app/routes/RoutePartners.tsxindex e58f5e25c8..22da3c04d8 100644--- a/apps/marketing/src/app/routes/RoutePartners.tsx+++ b/apps/marketing/src/app/routes/RoutePartners.tsx@@ -122,7 +122,7 @@ function PartnerCtaBar() {cursor: 'default',display: 'inline-flex','font-family': 'body',- 'font-size': compact() ? '15px' : '17px',+ 'font-size': compact() ? '15px' : '14px','font-weight': '700',height: compact() ? '38px' : '40px','justify-content': 'center',@@ -278,7 +278,7 @@ function PartnerAnnouncementPlayer() {<divstyle={{color: 'var(--c1)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': compact() ? '14px' : '15px','font-weight': '700','letter-spacing': '0.1em',@@ -338,7 +338,7 @@ export const RoutePartners: Component = () => {}.posts-article-header .partners-subtitle {color: var(--c4);- font-family: cyberreader, system-ui, sans-serif;+ font-family: Inter, system-ui, sans-serif;font-size: clamp(16px, 1.8vw, 18px);font-weight: 300;letter-spacing: -0.01em;@@ -460,7 +460,7 @@ export const RoutePartners: Component = () => {}.partners-steps {color: var(--c4);- font-family: cyberreader, system-ui, sans-serif;+ font-family: Inter, system-ui, sans-serif;font-size: 17px;font-weight: 300;letter-spacing: -0.01em;@@ -594,11 +594,11 @@ export const RoutePartners: Component = () => {<h2>Why become a Macro partner?</h2><p>- Macro is the first unified workspace that combines docs, tasks,- email, calendar, calls, messaging, CRM, and agents. We prioritize- craft and quality while striving to create the best and most- extensible product on the marketplace. The quality bar we hold for- our software is why our partners refer us to their clients.+ Macro combines docs, tasks, email, calendar, calls, messaging, CRM,+ and agents. Partners can help clients migrate their work, configure+ channel access, and use agents to edit documents and update customer+ records. The code is open source, so you can inspect and extend the+ product you recommend.</p><p>Our product is completely open source and holds an AGPLv3 license.@@ -616,12 +616,10 @@ export const RoutePartners: Component = () => {<h2>Where partners come in.</h2><p>- Most of our partners are system integrators, consultants, or- agencies that spend their days setting up different softwares like- Notion, Linear, and Slack for their clients. As an all-in-one- solution, Macro not only replaces these but helps overburdened- implementors by focusing expertise on a single product. Introducing- Macro to your clients can save you resources and your clients money.+ System integrators, consultants, and agencies help clients set up+ Macro and bring their existing work into it. Email, documents,+ tasks, and customer records use one workspace, with shared+ navigation, search, and agent tools.</p><h2>How to become a partner</h2>diff --git a/apps/marketing/src/app/routes/RoutePricing.tsx b/apps/marketing/src/app/routes/RoutePricing.tsxindex 9ca660c08a..8d131e6c14 100644--- a/apps/marketing/src/app/routes/RoutePricing.tsx+++ b/apps/marketing/src/app/routes/RoutePricing.tsx@@ -1,6 +1,7 @@import { type Component, createSignal, For, type JSX, Show } from 'solid-js';import { isServer } from 'solid-js/web';import markDesyncPlaceholder from '../../assets/mark-desync-placeholder.jpg';+import { SavingsCalculator } from '../../features/marketing/components/pricing/SavingsCalculator';import { HomeSectionRule } from '../components/sections/HomeSectionRule';import { SectionFinalCta } from '../components/sections/SectionFinalCta';import { SectionMoreFeatures } from '../components/sections/SectionMoreFeatures';@@ -29,7 +30,7 @@ const CARD_BORDER = 'color-mix(in srgb, var(--b4) 20%, transparent)';function planEyebrowStyle(): JSX.CSSProperties {return {color: 'var(--c1)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': breakpoint() ? '12px' : '16px','font-weight': '700','letter-spacing': '0.1em',@@ -41,7 +42,7 @@ function planEyebrowStyle(): JSX.CSSProperties {function eyebrowStyle(): JSX.CSSProperties {return {color: 'var(--c1)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': breakpoint() ? '12px' : '16px','font-weight': '700','letter-spacing': '0.1em',@@ -55,7 +56,7 @@ function sectionHeadingStyle(): JSX.CSSProperties {color: 'var(--c1)','font-family': 'display','font-size': mobile() ? '32px' : breakpoint() ? '38px' : '44px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1.1,margin: 0,@@ -114,7 +115,7 @@ function PlanCard(props: {color: 'var(--c0)','font-family': 'display','font-size': mobile() ? '48px' : '52px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.015em','line-height': 1,}}@@ -340,7 +341,7 @@ function ComparisonCell(props: { value: CellValue }) {<spanstyle={{color: 'var(--c2)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': '14px','font-weight': '600',}}@@ -354,7 +355,7 @@ function ComparisonCell(props: { value: CellValue }) {function comparisonPlanHeadingStyle(color: string): JSX.CSSProperties {return {color: color,- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': mobile() ? '12px' : '14px','font-weight': '700','letter-spacing': '0.1em',@@ -521,7 +522,7 @@ function CaseStudyVideo() {color: 'var(--c1)','font-family': 'display','font-size': compact() ? '28px' : '34px',- 'font-weight': '410',+ 'font-weight': '315','letter-spacing': '-0.01em','line-height': 1.14,margin: '0',@@ -534,7 +535,7 @@ function CaseStudyVideo() {<divstyle={{color: 'var(--c4)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': compact() ? '13px' : '14px','font-weight': '700','letter-spacing': '0.08em',@@ -664,7 +665,7 @@ function CaseStudyVideo() {<divstyle={{color: 'var(--c1)',- 'font-family': 'rajdhani, body',+ 'font-family': 'Inter, body','font-size': compact() ? '14px' : '15px','font-weight': '700','letter-spacing': '0.1em',@@ -698,12 +699,10 @@ const faqItems: Array<{ q: string; a: JSX.Element }> = [q: "What's the main purpose of Macro?",a: (<>- To unify everything you do into a single system. Access everything with- one login from one fast, keyboard-driven interface; give your agents- unified context instead of scattering it across Slack, Notion, email,- and drives; and give your team a single source of truth with- best-in-class CRM, ticketing, email, messaging, and docs all under one- roof.+ Macro combines email, chat, documents, tasks, calls, and agents. Read+ them in one inbox, search across the workspace, and use agents to edit+ documents, draft replies, and update tasks. Documents use CRDTs for live+ collaboration and offline sync.</>),},@@ -729,11 +728,10 @@ const faqItems: Array<{ q: string; a: JSX.Element }> = [q: 'How does Macro compare to Superhuman?',a: (<>- Macro Mail is like Superhuman but better: multiple email accounts in one- inbox, and a shared omni-box across messages, email, @mentions, and- tasks. The same j / k / e shortcuts you know are here. Macro Mail- integrates with Gmail directly, so most users find they no longer need- Superhuman.+ Macro Mail uses familiar J / K / E shortcuts, combines your email+ accounts in one inbox, and shares that inbox with messages, @mentions,+ tasks, and agent responses. Agents can search indexed email, draft+ replies, and share threads with your team.</>),},@@ -741,11 +739,10 @@ const faqItems: Array<{ q: string; a: JSX.Element }> = [q: 'How does Macro compare to Slack?',a: (<>- Channels in Macro are quieter and more organized, with the first few- replies shown inline so you rarely need to open a thread. Everything you- @mention is shared with the channel, so access follows the @mention —- add someone and they get context, remove them and they lose it. If you- still need Slack, connect it via MCP.+ Macro Chat shows replies inline and treats conversations as inbox items+ you can mark done. When you can share a document or email thread,+ @mentioning it in a channel grants access to that channel. Agents+ participate in channels and can read the referenced work.</>),},@@ -798,9 +795,10 @@ const faqItems: Array<{ q: string; a: JSX.Element }> = [a: (<>Macro works great solo or as a team, and pricing is the same either way.- Teams add auto-shared email, tasks, and calls without sharing everything- manually, plus team-level memory for your agents across tasks, emails,- docs, and calls. Note there is no free plan for teams.+ Teams share email, tasks, documents, and calls through workspace+ permissions. Agents can search and read the work you have access to, and+ use memory built from your workspace activity. Note there is no free+ plan for teams.</>),},@@ -808,9 +806,10 @@ const faqItems: Array<{ q: string; a: JSX.Element }> = [q: 'How do you use my data?',a: (<>- We make a good product and charge for our hosted version — we are not- interested in your data. See our <a href="/privacy">privacy policy</a>{' '}- and <a href="/terms">terms of service</a> for full details.+ Workspace access follows your sharing permissions. For details on data+ collection, processing, retention, and AI handling, see our{' '}+ <a href="/privacy">privacy policy</a> and{' '}+ <a href="/terms">terms of service</a> for full details.</>),},@@ -913,6 +912,51 @@ function FaqSection() {);}+function SavingsSection() {+ return (+ <section+ aria-labelledby="pricing-savings-title"+ id="savings"+ style={{+ 'box-sizing': 'border-box',+ display: 'grid',+ gap: mobile() ? '24px' : '40px',+ 'justify-items': 'center',+ 'padding-block': mobile() ? '56px' : '80px',+ 'padding-inline': mobile() ? '18px' : '24px',+ width: '100%',+ }}+ >+ <div+ style={{+ display: 'grid',+ gap: '16px',+ 'justify-items': 'center',+ 'text-align': 'center',+ }}+ >+ <span style={eyebrowStyle()}>Calculator</span>+ <h2 id="pricing-savings-title" style={sectionHeadingStyle()}>+ See what you’d save+ </h2>+ <p+ style={{+ color: 'var(--c4)',+ 'font-size': mobile() ? '15px' : '16px',+ 'line-height': 1.6,+ margin: 0,+ 'max-width': '440px',+ 'text-wrap': 'balance',+ }}+ >+ Choose the tools your team pays for today and how many seats you need.+ </p>+ </div>+ <SavingsCalculator />+ </section>+ );+}+function PricingFinalCta() {return (<SectionFinalCta@@ -968,7 +1012,7 @@ export const RoutePricing: Component = () => {style={{'font-family': 'display','font-size': mobile() ? 'clamp(46px, 13vw, 62px)' : '52.36px',- 'font-weight': '380',+ 'font-weight': '315','letter-spacing': '-0.012em','line-height': 1.12,margin: 0,@@ -992,6 +1036,10 @@ export const RoutePricing: Component = () => {<HomeSectionRule />+ <SavingsSection />++ <HomeSectionRule />+<CaseStudyVideo /><HomeSectionRule />diff --git a/apps/marketing/src/app/routes/RouteStartups.css b/apps/marketing/src/app/routes/RouteStartups.cssindex d5e2caaaf6..c7b37577b3 100644--- a/apps/marketing/src/app/routes/RouteStartups.css+++ b/apps/marketing/src/app/routes/RouteStartups.css@@ -1,7 +1,7 @@.startups-page { width:100%; }.startups-main { box-sizing:border-box; max-width:1000px; margin:auto; padding:128px 32px 64px; }.startups-eyebrow { color:var(--a0); text-transform:uppercase; letter-spacing:.1em; font-size:14px; font-weight:600; margin:0 0 20px; }-.startups-main h1 { font-family:display; font-size:clamp(40px,5vw,60px); font-weight:420; line-height:1.1; letter-spacing:-.025em; margin:0 0 24px; }+.startups-main h1 { font-family:display; font-size:clamp(40px,5vw,60px); font-weight: 315; line-height:1.1; letter-spacing:-.025em; margin:0 0 24px; }.startups-intro { color:var(--c4); font-size:22px; line-height:1.5; max-width:42ch; }.startups-apply { display:inline-flex; align-items:center; gap:24px; min-height:48px; padding:0 26px; margin-top:12px; color:var(--b0); background:var(--a0); border-radius:999px; font-size:18px; font-weight:700; text-decoration:none; }.startups-offer { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:48px; border-block:1px solid var(--b3); margin:56px 0 40px; padding:40px 0; }diff --git a/apps/marketing/src/app/routes/RouteStartups.tsx b/apps/marketing/src/app/routes/RouteStartups.tsxindex 36262f2d2f..b4bdc87002 100644--- a/apps/marketing/src/app/routes/RouteStartups.tsx+++ b/apps/marketing/src/app/routes/RouteStartups.tsx@@ -172,7 +172,7 @@ export const RouteStartups: Component = () => {'font-size': breakpoint() ? '38px' : '50px','line-height': breakpoint() ? '1.02' : '0.98','letter-spacing': '-0.035em',- 'font-weight': '450',+ 'font-weight': '315','max-width': '600px',margin: '0',color: 'var(--c1)',diff --git a/apps/marketing/src/app/routes/RouteStartupsRedirect.tsx b/apps/marketing/src/app/routes/RouteStartupsRedirect.tsxindex 46a8849b3b..0c88e5e50d 100644--- a/apps/marketing/src/app/routes/RouteStartupsRedirect.tsx+++ b/apps/marketing/src/app/routes/RouteStartupsRedirect.tsx@@ -1,13 +1,9 @@-import { useNavigate } from '@solidjs/router';import { type Component, onMount } from 'solid-js';-import { RouteHome } from './RouteHome';export const RouteStartupsRedirect: Component = () => {- const navigate = useNavigate();-onMount(() => {- navigate('/#startup-credits', { replace: true });+ window.location.replace('/');});- return <RouteHome />;+ return null;};diff --git a/apps/marketing/src/app/routes/RouteTasks.css b/apps/marketing/src/app/routes/RouteTasks.cssindex 87aa617a35..3110c43742 100644--- a/apps/marketing/src/app/routes/RouteTasks.css+++ b/apps/marketing/src/app/routes/RouteTasks.css@@ -35,38 +35,6 @@}}-/* Prose scale for /tasks.- ---------------------------------------------------------------------------- Three tiers, chosen by what the paragraph sits under rather than by eye. The- page had run 13/15/17/19px all at body/400/--c4, and the split was not by- role: the lifecycle subtitle was 17px while the flexibility subtitle- directly below it was 15px, and both are section subtitles.-- .tasks-lead follows a .tasks-h1 or .tasks-h2- .tasks-sub follows a .tasks-h3- .tasks-caption sits under a graphic or card, with its own small heading-- The two paragraph tiers are set in 'cyberreader' at its Light 300, following- the home page: a blend of Rajdhani's edge and Inter's readability that- carries a sentence or two better than Rajdhani does, while still sounding- like the site. It ships as discrete faces at 300/400/700 only (not a- variable axis), so the 300 is the real Light file rather than a synthesised- weight -- and why these two rules carry their own font-weight instead of- sharing the 400 below.-- .tasks-caption stays on Rajdhani. Cyberreader's advantage is at length, and- a caption has none; at 14-15px the two read about the same and Rajdhani is- the site's voice for a label. Everything else on this page at 16px or under- -- the bento's card descriptions, the grid captions, the lifecycle's phase- blurb -- stays with it for the same reason.-- Measures are deliberately NOT set here. Every instance caps its own line- length against the column it sits in (360px, 520px, 620px, 46ch...), so a- shared max-width would be wrong in most of them.-- The why-we-built-it statement was already in cyberreader, and the FAQ is a- shared component used by other pages; neither is touched here. */-.tasks-lead,.tasks-sub,.tasks-caption {@@ -78,17 +46,17 @@.tasks-lead,.tasks-sub {- font-family: 'cyberreader', 'body';- font-weight: 300;+ font-family: 'Inter', 'body';+ font-weight: 400;}.tasks-lead {- font-size: 19px;+ font-size: 16px;line-height: 1.6;}.tasks-sub {- font-size: 17px;+ font-size: 14px;line-height: 1.55;}@@ -107,7 +75,7 @@- the lifecycle stepper's "01/02/03" are tabular numerals, not labels */.tasks-eyebrow {color: color-mix(in srgb, var(--c4) 62%, transparent);- font-family: 'rajdhani', 'body';+ font-family: 'Inter', 'body';font-size: 12.5px;font-weight: 700;letter-spacing: 0.14em;@@ -116,10 +84,10 @@@media (max-width: 699px) {.tasks-lead {- font-size: 17px;+ font-size: 14px;}.tasks-sub {- font-size: 15px;+ font-size: 14px;}.tasks-caption {font-size: 14px;diff --git a/apps/marketing/src/app/routes/RouteTasks.tsx b/apps/marketing/src/app/routes/RouteTasks.tsxindex 42449a24fe..97651a8e9e 100644--- a/apps/marketing/src/app/routes/RouteTasks.tsx+++ b/apps/marketing/src/app/routes/RouteTasks.tsx@@ -1,1199 +1,248 @@-import { A } from '@solidjs/router';-import { Dynamic, isServer } from 'solid-js/web';-import markDesyncPlaceholder from '../../assets/mark-desync-placeholder.jpg';-import { APP_BASE_URL } from '../utils/utilBaseUrl';-import { breakpoint, viewportWidth } from '../utils/utilBreakpoint';-import { setPageSeo } from '../utils/utilSeo';-import './RouteTasks.css';-import { type Component, createSignal, type JSX, Show } from 'solid-js';-import taskListBgUrl from '../../assets/graphics/tasks-task-list.svg?url';-import LogoAsana from '../../assets/icons/logo-asana.svg';-import LogoClickUp from '../../assets/icons/logo-clickup.svg';-import LogoJira from '../../assets/icons/logo-jira.svg';-import LogoLinear from '../../assets/icons/logo-linear.svg';-import {- type ComparisonColumn,- ComparisonLegend,- type ComparisonRow,- ComparisonTable,-} from '../components/sections/ComparisonTable';-import { HomeSectionRule } from '../components/sections/HomeSectionRule';import {- dataSecurityFaqItem,- type FaqItem,- SectionFaq,-} from '../components/sections/SectionFaq';-import { SectionMoreFeatures } from '../components/sections/SectionMoreFeatures';+ FeaturePageFaq,+ FeaturePageSection,+} from '../../features/marketing/components/FeaturePage';+import { HomepageClosing } from '../../features/marketing/components/HomepageClosing';import {- AgentHandoffAnimated,- ChatIntegrationAnimated,- GuideWorkAnimated,-} from '../components/sections/TasksAnimatedGraphics';-import { TasksAutopilot } from '../components/sections/TasksAutopilot';-import { TasksFeatureCards } from '../components/sections/TasksFeatureCards';-import { TasksFlexibility } from '../components/sections/TasksFlexibility';+ ProductHero,+ ProductPage,+ ProductProse,+} from '../../features/marketing/components/product/ProductPage';import {- ConnectGoogleButton,- TasksHero,-} from '../components/sections/TasksHero';-import { TasksLifecycle } from '../components/sections/TasksLifecycle';--const HERO_DEMO_VIDEO_ID = 'tnsxkywzTvY';-/* The tasks walkthrough on YouTube. Also embedded in the macro-vs-linear post. */-const TASKS_VIDEO_ID = 'gxJquVXRX5A';-/* Desync's case study is a self-hosted mp4, not a YouTube embed. Same- localhost/production split the other pages that use it apply. */-const isLocalhost =- !isServer && ['localhost', '127.0.0.1'].includes(window.location.hostname);-const desyncVideoUrl = isLocalhost- ? '/video/desync.mp4'- : new URL('/video/desync.mp4', APP_BASE_URL).toString();-const mobile = () => viewportWidth() < 700;+ TaskAgentDemo,+ TaskAttentionDemo,+ TaskContextDemo,+ TaskFromChannelDemo,+ TaskFromMessageDemo,+} from '../../features/marketing/components/tasks/TaskStories';+import { WorkspaceDesktopDemo } from '../../features/marketing/components/WorkspaceDesktopDemo';+import { setPageSeo } from '../utils/utilSeo';-const tasksFaq: FaqItem[] = [+const tasksFaq = [{q: 'How is Macro Tasks different from Linear?',a: (<>- Macro Tasks keeps the keyboard-first flow of Linear, including status,- priority, and assignee. Tasks also live alongside email, chat, and docs,- and agents can take on work and close tasks.+ Macro keeps status, priority, assignees, and a keyboard-first workflow+ alongside email, chat, and documents. Tasks stay connected to the+ conversations behind them. Read the{' '}+ <a href="/posts/linear-alternative">Macro and Linear comparison</a>.</>),},{- q: 'Does it integrate with GitHub?',- a: (- <>- Yes. Link a task to a branch or pull request and its status follows the- code. Opening a PR moves the task to In Review; merging it closes the- task.- </>- ),+ q: 'Can I turn a message or email into a task?',+ a: 'Yes. Create a task from a chat message or email and keep it linked to the original conversation. You can also mention the task in documents and channels.',+ },+ {+ q: 'How do I organize my tasks?',+ a: 'Use My Tasks, All Tasks, and Created by me to find the work you need. Set status, priority, and assignees, add tags, and search the task list.',},{- q: 'Can I turn an email or message into a task?',+ q: 'Can agents work on tasks?',a: (<>- Yes. Turn an email or chat message into a task with one keystroke. The- task stays linked to the original thread.+ Assign work to an agent in a conversation. Agents can use the available+ workspace context, update the task, and report back. Coding agents can+ work on a fix and open a pull request. See{' '}+ <a href="/agents">agents in Macro</a>.</>),},{- q: 'What can the agents actually do?',+ q: 'Does Macro integrate with GitHub?',a: (<>- Assign a task to an agent as you would a teammate. It can do the work,- open a pull request, and report back. Agents can also identify duplicate- tasks.+ Yes. Link tasks to branches and pull requests to track the code+ alongside the work. Opening a linked pull request moves the task to In+ Review; merging it completes the task. See the{' '}+ <a href="/github">GitHub integration</a>.</>),},{- q: 'Can non-engineers follow the work?',+ q: 'Can people outside engineering use it?',+ a: 'Yes. Tasks work for launch plans, customer follow-ups, and other team work. Teammates can follow progress alongside their email, chat, and documents.',+ },+ {+ q: 'Is our workspace public because Macro is open source?',a: (<>- Yes. People outside engineering can follow tasks in the workspace they- already use for email and chat.+ No. Open source makes the application code available to inspect. It does+ not make your tasks, messages, or documents public. Access to workspace+ content follows its sharing permissions.</>),},{- q: 'Is Macro open source?',+ q: 'Is there a free plan?',a: (<>- Yes. Macro is open source under the AGPLv3. The code is on{' '}- <a- href="https://github.com/macro-inc/macro"- target="_blank"- rel="noreferrer"- >- GitHub- </a>- .+ Yes. Tasks are included alongside email, chat, documents, and AI. See{' '}+ <a href="/pricing">pricing</a> for current usage limits.</>),},- dataSecurityFaqItem,-];--// ----------------------------------------------------------------------------// Comparison table (Macro vs Linear vs Asana vs Jira vs ClickUp)-// -----------------------------------------------------------------------------const comparisonColumns: ComparisonColumn[] = [- { label: 'Macro' },- { label: 'Linear', logo: LogoLinear },- { label: 'Asana', logo: LogoAsana },- { label: 'Jira', logo: LogoJira },- { label: 'ClickUp', logo: LogoClickUp },-];--const comparisonRows: ComparisonRow[] = [- {- feature: 'Status, priority & assignee',- cells: [true, true, true, true, true],- },- {- feature: 'Create a task from an email',- cells: [true, true, true, true, true],- },- {- feature: 'Keyboard-first workflows',- cells: [true, true, 'partial', 'partial', true],- },- {- feature: 'Custom properties when you want them',- cells: [true, 'partial', true, true, true],- },- {- feature: 'Agents that can complete tasks',- cells: [true, 'partial', true, 'partial', true],- },- {- feature: 'GitHub: branch, PR & merge move the task',- cells: [true, true, false, 'partial', 'partial'],- },- {- feature: '@mention a task in docs & channels',- cells: [true, 'partial', false, false, 'partial'],- },- {- feature: 'Tasks in the same app as email & chat',- cells: [true, false, false, false, true],- },- {- feature: 'Open source (AGPLv3)',- cells: [true, false, false, false, false],- },];-function ComparisonSection() {- return (- <section- aria-label="How Macro Tasks compares"- style={{- 'box-sizing': 'border-box',- display: 'grid',- gap: mobile() ? '14px' : '18px',- 'justify-items': 'center',- 'min-width': '0',- 'padding-block': mobile() ? '56px' : '80px',- 'padding-inline': mobile() ? '18px' : '24px',- width: '100%',- }}- >- <div- style={{- width: '100%',- 'max-width': '920px',- 'text-align': 'center',- 'margin-bottom': mobile() ? '10px' : '18px',- }}- >- <h2 class="tasks-h3">How does Macro Tasks stack up?</h2>- </div>- <div style={{ width: '100%', 'max-width': '980px', 'min-width': '0' }}>- <ComparisonTable columns={comparisonColumns} rows={comparisonRows} />- </div>- <ComparisonLegend />- <SectionFaq items={tasksFaq} embedded maxWidth="980px" />- </section>- );-}--// ----------------------------------------------------------------------------// Split spotlight sections — chat integration + agent handoff. Layout and type-// mirror the email page's "Feature 1.x" FeatureSplit sections.-// -----------------------------------------------------------------------------// Brightens a key word to the full text color inside otherwise-muted body copy.-function Hi(props: { children: JSX.Element }) {- return <span style={{ color: 'var(--c1)' }}>{props.children}</span>;-}--/* Anchor eyebrow at the foot of a split section's copy column, pointing at the- feature's own page. Mirrors FeatureEyebrowLink in SectionFeatureGrid.tsx —- same accent, face, tracking, caps and trailing arrow — which is module-local- there, so it is restated rather than imported.- "Explore" is prefixed here rather than baked into each block's label, so the- data stays the page's own name and the two cannot drift apart. */-function FeatureAnchorEyebrow(props: { label: string; href: string }) {- return (- <A- href={props.href}- class="hover-relaunch"- style={{- 'align-items': 'center',- // Grey at rest rather than accent. These two sit immediately above the- // lifecycle stage, whose frame carries the page's only warm light, and- // two orange links right over it competed with it. .hover-relaunch- // still takes them to --a0 on hover, so the accent now marks the- // affordance instead of being spent on the resting state.- // Pitched just UNDER the body copy beside it (which is --c4), not at- // it: uppercase, tracked and arrow-tailed, this treatment carries- // enough weight of its own that matching the paragraph's lightness- // still read as louder than it. At --c2 it was brighter than the- // paragraph it belongs to, which is what made it pull.- color: 'color-mix(in srgb, var(--c4) 78%, transparent)',- display: 'inline-flex',- 'font-family': 'rajdhani, body',- 'font-size': mobile() ? '12px' : '14px',- gap: '8px',- 'letter-spacing': '0.08em',- 'text-decoration': 'none',- 'text-transform': 'uppercase',- width: 'max-content',- }}- >- Explore {props.label}- <span aria-hidden="true" style={{ 'font-size': '1.05em' }}>- →- </span>- </A>- );-}--type TasksFeatureBlock = {- /** Foot-of-column anchor to the feature's own page. */- anchor?: { label: string; href: string };- label: string;- /** Short slab title. */- headline: JSX.Element;- /** Supporting paragraph beneath the title, in muted body copy. */- description: JSX.Element;- heroShot: Component;-};--// Copy-left / graphic-right feature section, lifted from the email page. On-// desktop (>=1030px) the heading and body sit beside the graphic; at-// medium/narrow it gives way to a simple stacked column (copy above graphic).-function FeatureSplit(props: {- block: TasksFeatureBlock;- reverse?: boolean;- align?: 'center' | 'start';- glow?: 'sm';-}) {- const stacked = () => breakpoint();+export function RouteTasks() {+ setPageSeo({+ title: 'Macro Tasks — Task management that keeps up with your team',+ description:+ 'Track tasks alongside your email, chat, and documents. Create work from conversations, assign people and agents, and follow progress through to a pull request.',+ path: '/tasks',+ });return (- <div- style={{- 'padding-top': mobile() ? '52px' : '84px',- 'padding-bottom': mobile() ? '96px' : '148px',- 'padding-inline': mobile() ? '18px' : '24px',- }}- >+ <ProductPage>+ <ProductHero+ product="Tasks"+ title={['Tasks for your team', 'and your agents.']}+ description={[+ 'Create tasks from messages and email.',+ 'Assign an owner. Let agents update the work.',+ ]}+ cta="tasks_hero_get_started"+ />+ <WorkspaceDesktopDemo+ view="tasks"+ label="Explore Macro Tasks"+ caption="Open a task, change its owner, or add a comment. This sample stays local."+ /><section- aria-label={props.block.label}- style={{- 'align-items': stacked() ? 'start' : (props.align ?? 'center'),- 'box-sizing': 'border-box',- display: 'grid',- // Narrower copy, pushed further from the graphic than the email- // page's 1:1.2 at 56px. Within a 1112px content box these ratios give- // a 410px text column against a 614px graphic — the text was 480px- // before, so it loses 70px of measure and gains 32px of separation.- // Note this takes the column under the paragraph's 460px max-width,- // so on desktop the column governs the measure and that max-width- // only binds once the layout stacks.- gap: stacked() ? '48px' : '88px',- 'grid-template-columns': stacked()- ? 'minmax(0, 1fr)'- : props.reverse- ? 'minmax(0, 1.5fr) minmax(0, 1fr)'- : 'minmax(0, 1fr) minmax(0, 1.5fr)',- margin: '0 auto',- 'max-width': 'var(--page-max)',- width: '100%',- }}- >- {/* Heading + body copy (right column when reversed; always first when- stacked, so copy stays above the graphic on mobile) */}- {/* Title over supporting paragraph, matching the email page's feature- sections exactly — same faces, sizes, weights, tracking, leading,- measure, and the same 14/18px gap between the two. Kept in step with- RouteEmail's FeatureSplit deliberately: these read as the same kind- of section across the two pages. */}- {/* Flex column, not grid, and stretched to the row: that is what lets- the anchor sit on the row's bottom edge via margin-top:auto, which- lines it up with the foot of the graphic beside it. A grid column- cannot do it — align-content:stretch would grow all three rows- instead of pushing the last one down. Stretching is skipped when- stacked, where there is no second column to align to. */}- <div- style={{- 'align-items': 'flex-start',- 'align-self': stacked() ? undefined : 'stretch',- display: 'flex',- 'flex-direction': 'column',- gap: mobile() ? '14px' : '18px',- 'grid-column': stacked() ? undefined : props.reverse ? '2' : '1',- }}- >- <h2 class="tasks-h2" style={{ 'text-align': 'left' }}>- {props.block.headline}- </h2>- <p- class="tasks-lead"- style={{- // Narrower than the email page's 460px, and narrower than the- // column it sits in, so this caps the description's measure- // without shrinking the column further — the title shares that- // column and already wraps tightly at this width.- 'max-width': '360px',- 'text-align': 'left',- // Keeps a lone word off the last line. At this measure the copy- // was breaking to "...leaving the / thread."- 'text-wrap': 'pretty',- }}- >- {props.block.description}- </p>- <Show when={props.block.anchor}>- {(a) => (- <div- style={{- 'margin-top': 'auto',- 'padding-top': mobile() ? '28px' : '36px',- }}- >- <FeatureAnchorEyebrow label={a().label} href={a().href} />- </div>- )}- </Show>- </div>- {/* The section graphic (left column when reversed). The faint task-list- texture is the main treatment, copied from the email page, which has- no glow of its own. An optional small one can sit under it: the- previous version was a large wash that competed with the texture, so- this is opt-in per section rather than standing. */}- <div- style={{- 'grid-column': stacked() ? undefined : props.reverse ? '1' : '2',- 'grid-row': stacked() ? undefined : '1',- position: 'relative',- width: '100%',- }}- >- {/* Optional pool of light, centred behind the chat panel and reaching- the open gap below it only with its tail.-- The chat panel occupies x 4-79%, y 0-72% of this cell, so 40%/40%- is essentially its centre. Most of the glow therefore sits behind- opaque artwork and is never seen directly; what reads is the- spill around the panel's edges and into the uncovered wedge below- it (x 4-35%, y 72-101%). The vertical radius is much larger than- the horizontal so the falloff has room to travel down there- without the core drifting off the panel.-- Dissolve is deliberately long — six stops rather than three, each- step small — so there is no perceptible edge anywhere. Values are- chosen from where they land rather than by eye: 5% at the core- (hidden), ~2.2% at the wedge's upper edge (a lift of about five- levels over the (9,9,9) background), and ~0.3% by its centre. It- genuinely just peeks in.-- Box IS the glow's extent, as elsewhere on this page: left/top are- centre-minus-radius, size is twice the radii, and the gradient is- a plain 50% 50%, so the last stop lands on the box edge and there- is nothing to clip. The box runs above this cell (top -18%), which- is fine — nothing here clips overflow. */}- <Show when={props.glow === 'sm'}>- <div- aria-hidden="true"- style={{- background:- 'radial-gradient(50% 50% at 50% 50%,' +- ' color-mix(in srgb, var(--ambient-ink) 5%, transparent) 0%,' +- ' color-mix(in srgb, var(--ambient-ink) 4.6%, transparent) 22%,' +- ' color-mix(in srgb, var(--ambient-ink) 3.8%, transparent) 40%,' +- ' color-mix(in srgb, var(--ambient-ink) 2.8%, transparent) 56%,' +- ' color-mix(in srgb, var(--ambient-ink) 1.8%, transparent) 70%,' +- ' color-mix(in srgb, var(--ambient-ink) 0.9%, transparent) 84%,' +- ' transparent 100%)',- height: '116%',- left: '2%',- 'pointer-events': 'none',- position: 'absolute',- top: '-18%',- width: '76%',- 'z-index': 0,- }}- />- </Show>- {/* Super-faint task list behind the graphic, the same trick the email- page's feature sections use for their inbox backdrop: a dimmed- copy of a product surface, feathered out radially so it reads as- ambient context rather than a second graphic competing with the- first. Source is the bottom section's task list with its open task- card removed (scripts/splitSvgPanels.ts, children 0-91), so this- shows the list only.-- Loaded as a URL and drawn in an <img> rather than inlined, which- is what RouteEmail does. Inlining it in both sections would put- two copies of the same ids in the document and duplicate ~27K of- markup; as an <img> it is one cached file in its own document. The- cost is that its 34 text nodes cannot see the page's Inter face- and fall back — invisible at this opacity, where the list reads as- texture rather than as type. */}- <img- src={taskListBgUrl}- alt=""- aria-hidden="true"- draggable={false}- style={{- display: 'block',- height: 'auto',- inset: '-14% -20% auto',- // The email page applies opacity 0.45 to its backdrop <img>, but- // its source asset also carries opacity="0.45" on a top-level- // group, so the effective value there is ~0.20. Our task list has- // no baked dimming, so 0.2 is what actually matches — 0.45 would- // have been more than twice as bright as the page being copied.- opacity: 0.2,- 'pointer-events': 'none',- position: 'absolute',- 'user-select': 'none',- width: '140%',- 'z-index': 0,- '-webkit-mask-image':- 'radial-gradient(48% 40% at 50% 34%, #000 60%, transparent 100%)',- 'mask-image':- 'radial-gradient(48% 40% at 50% 34%, #000 60%, transparent 100%)',- }}- />- <div style={{ position: 'relative', 'z-index': 1 }}>- <Dynamic component={props.block.heroShot} />- </div>- </div>- </section>- </div>- );-}--const chatBlock: TasksFeatureBlock = {- label: 'Macro Tasks',- // PLACEHOLDER title — the previous one, pending a snappier replacement.- headline: (- <>- Integrated- <br />- with chat.- </>- ),- description: (- <>- Convert a message to a task, mention it inline, and preview it in the- thread.- </>- ),- heroShot: ChatIntegrationAnimated,- anchor: { label: 'Macro Chat', href: '/channels' },-};--const agentsBlock: TasksFeatureBlock = {- label: 'Macro Tasks',- // PLACEHOLDER title — the previous one, pending a snappier replacement.- headline: (- <>- Tag team- <br />- with agents.- </>- ),- description: (- <>- Hand a task to @Macro in any thread and the agent opens PRs and updates- the status.- </>- ),- heroShot: AgentHandoffAnimated,- anchor: { label: 'Macro Agents', href: '/agents' },-};--// ----------------------------------------------------------------------------// Closing hero — the philosophy line over the full task list + management-// panel illustration.-// -----------------------------------------------------------------------------function TasksGuideHero() {- return (- <section- aria-label="Task management should guide the work"- style={{- 'box-sizing': 'border-box',- display: 'grid',- gap: mobile() ? '40px' : '64px',- 'justify-items': 'center',- margin: '0 auto',- 'max-width': '1160px',- // The bottom glow below runs past this section; clipping the y axis- // cuts it exactly on the rule that closes the section. The same pairing- // the top hero uses, and for the same reason: a calc() mask fitted to- // the section's height drifted, because the height is set by whichever- // child happens to be tallest. overflow-x stays visible so nothing- // squeezes the row horizontally -- only scroll/auto/hidden would coerce- // it, clip does not.- 'overflow-x': 'visible',- 'overflow-y': 'clip',- padding: mobile() ? '72px 18px 64px' : '112px 24px 96px',- position: 'relative',- width: '100%',- }}- >- <div- style={{- display: 'grid',- gap: mobile() ? '28px' : '36px',- 'justify-items': 'start',- 'justify-self': 'start',- }}+ class="tasks-founder-letter"+ aria-labelledby="tasks-founder-title">- <h2- class="tasks-h2"- style={{ 'text-align': 'left', 'text-wrap': 'balance' }}- >- <span style={{ display: 'block' }}>Tasks should guide the work,</span>- <span style={{ display: 'block', 'margin-top': '0.16em' }}>- not be the work.- </span>- </h2>- <p- class="tasks-lead"- style={{ 'max-width': '48ch', 'text-align': 'left' }}- >- Macro Tasks work for <Hi>dynamic teams</Hi>,{' '}- <Hi>highly technical workflows</Hi>, and <Hi>rapid iteration</Hi>.+ <h2 id="tasks-founder-title">Why did we build Macro Tasks?</h2>+ <p>+ Macro Tasks was designed based off our frustration with tools like+ Linear, Notion and Jira... we've tried every task manager and every+ way of using them. None of them helped our team move faster. Each kept+ us organized for a while until they inevitably got stale. The core+ problem is “tracking tasks” felt like busywork to our team. We+ migrated from GitHub Issues to Notion to Linear and nothing seemed to+ make us more organized.+ </p>+ <p>+ Macro Tasks fixes this by tightly co-locating tasks with your team+ chat. Tickets are so easy to create from task messages, and their+ status gets updated automatically so they'll actually get closed.+ After two years of dogfooding it's finally working for us. We hope you+ like it too!</p>- </div>- {/* Illustration: task list window + management panel over a hero glow */}- <div- style={{ 'max-width': '980px', position: 'relative', width: '100%' }}+ <footer>— Jacob Beckerman, CEO and founder of Macro</footer>+ </section>+ <FeaturePageSection+ id="from-conversation"+ title="Turn a message into a task."+ description={+ 'Create a task from a message or email.\nIts source stays linked in both directions.'+ }>- {/* The glow was cut off flat along its top edge. It read- `radial-gradient(58% 64% at 50% 44%)` on a box inset -12% -16%, and- a vertical radius of 64% from a centre at 44% has to reach -20% —- 20% above the box it is painted in, which a background gradient- cannot do. Same failure as the hero glow: the fix is for the layer- to BE the glow's extent rather than a box the gradient overflows.-- Converted without moving the light: the old form's visible extent- (radius x its 75% transparent stop) is radii of 57.4%/59.5% about a- centre at 50%/42.6% of this container, so left/top are- centre-minus-radius, size is twice the radii, and a plain 50% 50%- gradient lands its last stop on the box edge.-- Halved in strength while there — a 13% peak lifted the (9,9,9)- background by 29 levels, which is why it read as a shape rather than- ambient light; 6% lifts it by 13. Six stops so it dissolves. */}- {/* Bottom-emanating glow, the same construction as the top hero's:- source just below the artwork so the light spills down and out- around its lower edge, then gets cut at the section's closing rule.-- Box IS the extent, as everywhere else on this page. Centre is- (50%, 102%) of this container and the radii are 80%/62%, so- left/top = centre - radius (-30%, 40%) and width/height = 2x radius- (160%, 124%), with a plain 50% 50% gradient landing its last stop on- the box edge. Moving the source means moving left/top, not- offsetting the gradient.-- Stops are weighted outward rather than decaying conventionally: the- core sits behind the artwork, so the only band anyone sees is the- outer half, and a normal ramp has already faded to nothing by then.- Peak is 10% against the hero's 14% because this section also carries- the ambient layer below, and the two stack. */}- <div- aria-hidden="true"- style={{- background:- 'radial-gradient(50% 50% at 50% 50%,' +- ' color-mix(in srgb, var(--ambient-ink) 10%, transparent) 0%,' +- ' color-mix(in srgb, var(--ambient-ink) 8.5%, transparent) 30%,' +- ' color-mix(in srgb, var(--ambient-ink) 5.5%, transparent) 55%,' +- ' color-mix(in srgb, var(--ambient-ink) 2.4%, transparent) 78%,' +- ' transparent 100%)',- height: '124%',- left: '-30%',- 'pointer-events': 'none',- position: 'absolute',- top: '40%',- width: '160%',- 'z-index': 0,- }}- />- <div- aria-hidden="true"- style={{- background:- 'radial-gradient(50% 50% at 50% 50%,' +- ' color-mix(in srgb, var(--ambient-ink) 6%, transparent) 0%,' +- ' color-mix(in srgb, var(--ambient-ink) 5.2%, transparent) 24%,' +- ' color-mix(in srgb, var(--ambient-ink) 4%, transparent) 45%,' +- ' color-mix(in srgb, var(--ambient-ink) 2.6%, transparent) 64%,' +- ' color-mix(in srgb, var(--ambient-ink) 1.3%, transparent) 82%,' +- ' transparent 100%)',- height: '119%',- left: '-7.4%',- 'pointer-events': 'none',- position: 'absolute',- top: '-17%',- width: '114.8%',- 'z-index': 0,- }}- />- <div style={{ position: 'relative', 'z-index': 1 }}>- <GuideWorkAnimated />+ <div class="feature-page-visual">+ <TaskFromMessageDemo /></div>- </div>- </section>- );-}--// ----------------------------------------------------------------------------// Case studies — the tasks walkthrough and Desync's story, side by side.-//-// Two different embed kinds deliberately: the walkthrough lives on YouTube-// (same id the macro-vs-linear post uses) and Desync's is a self-hosted mp4-// (public/video/desync.mp4, ~23MB). The mp4 is click-to-play behind its poster-// with preload="metadata", so none of that weight is fetched unless someone-// asks for it; the YouTube frame is lazy for the same reason.-// -----------------------------------------------------------------------------function CaseStudyMedia(props: {- children: JSX.Element;- onClick?: () => void;- interactive?: boolean;-}) {- return (- <div- onClick={props.onClick}- style={{- 'background-color': 'var(--b1)',- border: '1px solid color-mix(in srgb, var(--c1) 12%, transparent)',- 'border-radius': mobile() ? '14px' : '18px',- 'box-shadow':- '0 28px 64px -22px rgb(0 0 0 / 0.66), 0 8px 24px -12px rgb(0 0 0 / 0.5)',- cursor: props.interactive ? 'pointer' : 'default',- overflow: 'hidden',- position: 'relative',- width: '100%',- }}- >- {props.children}- </div>- );-}--function TasksCaseStudies() {- // Stack earlier than the page's 700px mobile break: two 16/9 frames side by- // side get unreadably small before that.- const stackedPair = () => viewportWidth() < 900;- let desyncRef!: HTMLVideoElement;- const [desyncPlaying, setDesyncPlaying] = createSignal(false);- const [tasksVideoOpen, setTasksVideoOpen] = createSignal(false);-- function playDesync() {- desyncRef- .play()- .then(() => setDesyncPlaying(true))- .catch(() => setDesyncPlaying(false));- }-- const caption = (title: string, line: string) => (- <div style={{ display: 'grid', gap: '6px' }}>- <h3- style={{- color: 'var(--c1)',- 'font-family': 'display',- 'font-size': mobile() ? '19px' : '21px',- 'font-weight': '315',- 'letter-spacing': '-0.01em',- 'line-height': 1.2,- margin: 0,- }}- >- {title}- </h3>- <p class="tasks-caption">{line}</p>- </div>- );-- return (- <section- aria-label="Case studies"- style={{- 'box-sizing': 'border-box',- display: 'grid',- gap: mobile() ? '14px' : '18px',- 'justify-items': 'center',- 'padding-block': mobile() ? '56px' : '80px',- 'padding-inline': mobile() ? '18px' : '24px',- position: 'relative',- width: '100%',- // Own stacking context, so the full-bleed wash below (z-index -1)- // stays scoped to this section instead of escaping to the page's- // stacking order and landing behind an unrelated sibling.- 'z-index': 0,- }}- >- {/* A cool grey wash for this section only, sitting between the page's- near-black (--b0, rgb 9/9/9) and #16191F — the panel/pill surface- the task and team graphics on this page are drawn in. Full-bleed via- the same left/margin-left escape HomeSectionRule uses, so the tint- runs edge to edge between the two dividers rather than just behind- the 1080px column.-- Lit from the top divider: a crisp hairline catches the edge like a- lit bezel, and a soft radial bloom (wider than tall, centred on the- seam) spills a few percent of the section's own height downward.- Both are background-image layers stacked over the flat wash color,- not stops inside one gradient, so they never have to fight the base- color for coverage — background-color already paints the full box- on its own. */}- <div- aria-hidden="true"- style={{- 'background-color': 'var(--b0)',- 'background-image':- 'linear-gradient(to bottom, color-mix(in srgb, var(--c1) 16%, transparent) 0, transparent 1px), ' +- 'radial-gradient(70% 22% at 50% 0%, color-mix(in srgb, var(--ambient-ink) 7%, transparent) 0%, color-mix(in srgb, var(--ambient-ink) 1.6%, transparent) 60%, transparent 100%)',- bottom: 0,- left: '50%',- 'margin-left': '-50%',- 'pointer-events': 'none',- position: 'absolute',- top: 0,- width: '100%',- 'z-index': -1,- }}- />- {/* Same type treatment as the comparison section below, but ranged left- over the cards rather than centred. max-width matches the card grid's- 1080px exactly — the section centres both boxes, so equal widths are- what makes the heading share a left edge with the first card. A- narrower box here would centre inside the wider one and sit inset. */}- <div- style={{- 'margin-bottom': mobile() ? '48px' : '80px',- 'max-width': '1080px',- 'text-align': 'left',- width: '100%',- }}- >- {/* Small grey label, not the branded HeroEyebrow (no mark, no- accent color) — this section doesn't need the Macro Tasks tag- again, just a category marker above the slab sentence. */}- <span class="tasks-eyebrow">Case studies</span>- {/* One slab sentence carries the section below the eyebrow. Same- treatment the split sections used before they were replaced:- Roboto Slab is declared 100-900, so 350 is a genuinely- interpolated weight rather than a synthesised one, keeping the slab- character at a sentence's length without a display weight's mass. */}- <h2- class="tasks-h3"- style={{- margin: mobile() ? '10px 0 0' : '12px 0 0',- 'max-width': '20em',- 'text-align': 'left',- 'text-wrap': 'pretty',- }}- >- {/* Explicit space: JSX strips the whitespace either side of the- break, so without it the text reads "teamsthat" to anything- consuming textContent, even though it renders correctly. */}- Hear directly from startup teams that use <br />- Macro Tasks for their work.- </h2>- </div>-- <div- style={{- display: 'grid',- gap: stackedPair() ? '40px' : '32px',- 'grid-template-columns': stackedPair()- ? 'minmax(0, 1fr)'- : 'repeat(2, minmax(0, 1fr))',- 'max-width': '1080px',- width: '100%',- }}+ <ProductProse>+ <p>+ A task can start from a chat message, email, or document checklist.+ References connect it to the original request, and backlinks let you+ navigate back. For a new task, press C then T. Add a title,+ description, and assignee from the keyboard.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="tasks-in-channels"+ title="Send a task right in the channel."+ description={+ 'Write the request, switch on Send as task, and pick an assignee.\nThe task appears in the conversation where your team is working.'+ }>- {/* --- the tasks walkthrough, on YouTube --- */}- <div style={{ display: 'grid', gap: mobile() ? '16px' : '20px' }}>- <CaseStudyMedia- interactive={!tasksVideoOpen()}- onClick={() => setTasksVideoOpen(true)}- >- <Show- when={tasksVideoOpen()}- fallback={- /* Poster-first: YouTube's own thumbnail, so the player only- loads when someone chooses to watch. */- <div- style={{- 'aspect-ratio': '16 / 9',- position: 'relative',- width: '100%',- }}- >- <img- src={`https://i.ytimg.com/vi/${TASKS_VIDEO_ID}/maxresdefault.jpg`}- alt="Tasks on Macro — video thumbnail"- loading="lazy"- style={{- display: 'block',- height: '100%',- 'object-fit': 'cover',- width: '100%',- }}- />- <PlayBadge />- </div>- }- >- <iframe- title="Tasks on Macro"- src={`https://www.youtube.com/embed/${TASKS_VIDEO_ID}?autoplay=1&rel=0`}- allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"- allowfullscreen- loading="lazy"- style={{- 'aspect-ratio': '16 / 9',- border: '0',- display: 'block',- width: '100%',- }}- />- </Show>- </CaseStudyMedia>- {caption(- 'Tasks, on Macro',- 'Why engineers prefer using Macro Tasks.'- )}- </div>-- {/* --- Desync, self-hosted --- */}- <div style={{ display: 'grid', gap: mobile() ? '16px' : '20px' }}>- <CaseStudyMedia- interactive={!desyncPlaying()}- onClick={() => {- if (!desyncPlaying()) playDesync();- }}- >- <video- ref={desyncRef}- controls={desyncPlaying()}- onEnded={() => setDesyncPlaying(false)}- onError={() => setDesyncPlaying(false)}- playsinline- poster={markDesyncPlaceholder}- preload="metadata"- src={desyncVideoUrl}- style={{- 'aspect-ratio': '16 / 9',- background: 'var(--b1)',- display: 'block',- 'object-fit': desyncPlaying() ? 'contain' : 'cover',- width: '100%',- }}- />- <Show when={!desyncPlaying()}>- {/* The poster attribute alone is not enough: once the browser has- a decodable frame it paints that instead, and this video opens- on a dark frame, so the card read as an empty black box. The- other pages that embed this video overlay the placeholder the- same way. */}- <img- src={markDesyncPlaceholder}- alt=""- aria-hidden="true"- style={{- display: 'block',- height: '100%',- inset: '0',- 'object-fit': 'cover',- position: 'absolute',- width: '100%',- }}- />- <PlayBadge />- </Show>- </CaseStudyMedia>- {caption(- 'The Desync study',- "One startup's move to Macro Tasks, and how it changed their workflow."- )}+ <div class="feature-page-visual">+ <TaskFromChannelDemo /></div>- </div>- </section>- );-}--/** Centred play affordance over a poster. */-function PlayBadge() {- return (- <div- aria-hidden="true"- style={{- 'align-items': 'center',- background: 'color-mix(in srgb, var(--b0) 62%, transparent)',- 'backdrop-filter': 'blur(2px)',- border: '1px solid color-mix(in srgb, var(--c1) 34%, transparent)',- 'border-radius': '999px',- display: 'flex',- height: mobile() ? '48px' : '56px',- 'justify-content': 'center',- left: '50%',- 'pointer-events': 'none',- position: 'absolute',- top: '50%',- transform: 'translate(-50%, -50%)',- width: mobile() ? '48px' : '56px',- }}- >- <span- style={{- 'border-bottom': '7px solid transparent',- 'border-left': mobile()- ? '12px solid var(--c1)'- : '14px solid var(--c1)',- 'border-top': '7px solid transparent',- display: 'block',- 'margin-left': '3px',- }}- />- </div>- );-}--// ----------------------------------------------------------------------------// Final CTA-// -----------------------------------------------------------------------------function TasksFinalCta() {- return (- <section- aria-label="Get started"- style={{- 'align-items': mobile() ? 'start' : 'center',- display: 'grid',- gap: mobile() ? '24px' : '28px',- 'justify-items': mobile() ? 'start' : 'center',- 'text-align': mobile() ? 'left' : 'center',- }}- >- <div- style={{- display: 'grid',- gap: mobile() ? '14px' : '16px',- 'justify-items': mobile() ? 'start' : 'center',- 'max-width': '585px',- }}- >- <h2 class="tasks-h2">- Make tasks <br />- work for you.- </h2>- <p class="tasks-lead">- It takes 30 seconds to connect. Your tasks, email, channels, and- agents — all in one shared workspace.- </p>- </div>- <ConnectGoogleButton buttonName="tasks_final_connect_google" large />- </section>- );-}--// ----------------------------------------------------------------------------// Page-// -----------------------------------------------------------------------------export const RouteTasks: Component = () => {- // Mirrors the page's own copy: the title echoes the h1 ("Tasks that keep up- // with your team") while keeping the "task management" phrasing people search- // for, and the description leads with the hero's differentiator rather than- // the feature checklist it used to list. The description is reused verbatim as- // SoftwareApplication.description in the prerendered JSON-LD, so it has to- // read as a product description on its own — see scripts/prerender.ts.- setPageSeo({- title: 'Macro Tasks — Task management that keeps up with your team',- description:- "Tasks that self-update from conversations in your channels, so you don't need a separate task manager — linked to your pull requests and worked by agents.",- path: '/tasks',- });-- const [heroDemoOpen, setHeroDemoOpen] = createSignal(false);-- return (- <div- lang="en"- style={{- 'background-color': 'var(--b0)',- 'box-sizing': 'border-box',- display: 'grid',- 'grid-template-columns': 'minmax(0, 1fr)',- gap: '0',- 'padding-bottom': mobile() ? '48px' : '64px',- width: '100%',- }}- >- <style>{`- svg text {- -webkit-font-smoothing: antialiased;- -moz-osx-font-smoothing: grayscale;+ <ProductProse>+ <p>+ Send a channel message as a task to create the brief and share it in+ one action. Choose an assignee before sending. Teammates can open+ the task from its message to change the status, add a checklist, or+ discuss the request. The task links back to the channel, and the+ assignee receives it in their inbox.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="task-context"+ title="An editable brief with real references."+ description={+ 'Write a Markdown brief and checklist.\n@mention the specification, email, or call that explains the request.'}- @media (hover) {- .tasks-cta-button:hover { transform: scale(1.02); }+ >+ <div class="feature-page-visual">+ <TaskContextDemo />+ </div>+ <ProductProse>+ <p>+ Task descriptions support Markdown and references to workspace+ items. Link the specification, source email, or meeting recording+ directly in the brief. Each task has a discussion for questions and+ updates. Agents can read the brief, follow its references, and+ update the description.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="task-agents"+ title="Agents can update the task."+ description={+ 'Ask an agent to revise the brief or turn meeting notes into a checklist.\nIts edits appear in the task your team uses.'}- `}</style>-- <TasksHero onWatchDemo={() => setHeroDemoOpen(true)} />-- <HomeSectionRule />-- <TasksFeatureCards />-- <HomeSectionRule />-- {/* Case studies — walkthrough + Desync. Sits directly under the bento:- the bento makes the claims, so the two videos are the proof, before- the page goes on to show the mechanics. */}- <TasksCaseStudies />-- <HomeSectionRule />-- {/* Chat integration — copy left, graphic right */}- <FeatureSplit block={chatBlock} align="start" glow="sm" />-- <HomeSectionRule />-- {/* Agent handoff — reversed: graphic left, copy right */}- <FeatureSplit block={agentsBlock} reverse align="start" />-- <HomeSectionRule />-- {/* The lifecycle carousel — one continuous story of a single task. */}- <TasksLifecycle />-- <HomeSectionRule />-- {/* How you drive a task — conversationally in a channel, or over MCP from- a terminal. Sits after the lifecycle (what a task does) and before- autopilot (who it is for). */}- <TasksFlexibility />-- <HomeSectionRule />-- {/* One line over three team boards. */}- <TasksAutopilot />-- <HomeSectionRule />-- {/* Guide-the-work hero — the page's closing beat before the comparison. */}- <TasksGuideHero />-- <HomeSectionRule />-- {/* Comparison */}- <ComparisonSection />-- <HomeSectionRule />-- {/* Final CTA */}- <div- style={{- 'padding-block': mobile() ? '52px' : '68px',- 'padding-inline': mobile() ? '18px' : '24px',- }}>- <TasksFinalCta />- </div>-- {/* Divider + footer */}- <div- style={{- 'padding-bottom': mobile() ? '40px' : '48px',- 'padding-inline': mobile() ? '18px' : '24px',- }}+ <div class="feature-page-visual">+ <TaskAgentDemo />+ </div>+ <ProductProse>+ <p>+ Task tools let agents create work and update descriptions, status,+ priority, and assignees. Ask for a specific change and review it in+ the task. Coding agents can implement a task and open a linked pull+ request. GitHub events move the task into review and mark it+ complete when the code is merged.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="task-list"+ title="My Tasks. All Tasks. Created by me."+ description={+ 'Find your assigned work, browse the team’s tasks, or follow your requests.\nSearch by title and open the brief from the list.'+ }>- <SectionMoreFeatures currentPath="/tasks" footerOnly />- </div>-- <Show when={heroDemoOpen()}>- <div- role="dialog"- aria-modal="true"- aria-label="Macro demo video"- onClick={() => setHeroDemoOpen(false)}- style={{- 'align-items': 'center',- background: 'oklch(from var(--b0) l c h / 0.86)',- display: 'grid',- inset: '0',- 'justify-items': 'center',- padding: mobile() ? '18px' : '42px',- position: 'fixed',- 'z-index': 100,- }}- >- <div- onClick={(event) => event.stopPropagation()}- style={{- background: 'var(--b0)',- border:- '1px solid color-mix(in srgb, var(--c4) 18%, transparent)',- 'border-radius': '12px',- 'box-shadow': '0 28px 90px rgb(0 0 0 / 0.5)',- 'box-sizing': 'border-box',- display: 'grid',- 'max-width': '1040px',- overflow: 'hidden',- position: 'relative',- width: 'min(100%, 1040px)',- }}- >- <button- type="button"- aria-label="Close video"- onClick={() => setHeroDemoOpen(false)}- style={{- background: 'var(--b1)',- border:- '1px solid color-mix(in srgb, var(--c4) 22%, transparent)',- 'border-radius': '999px',- color: 'var(--c1)',- cursor: 'pointer',- 'font-family': 'body',- 'font-size': '18px',- height: '34px',- 'line-height': 1,- position: 'absolute',- right: '12px',- top: '12px',- width: '34px',- 'z-index': 1,- }}- >- X- </button>- <iframe- title="Macro demo video"- src={`https://www.youtube.com/embed/${HERO_DEMO_VIDEO_ID}?autoplay=1&rel=0`}- allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"- allowfullscreen- style={{- 'aspect-ratio': '16 / 9',- background: 'var(--b1)',- border: '0',- display: 'block',- height: 'auto',- 'max-height': 'calc(100vh - 96px)',- width: '100%',- }}- />- </div>+ <div class="feature-page-visual">+ <TaskAttentionDemo /></div>- </Show>- </div>+ <ProductProse>+ <p>+ My Tasks shows your assignments. All Tasks shows the work you can+ access, and Created by me tracks the requests you made. Task+ assignments also arrive in the unified inbox, alongside emails,+ messages, and agent responses. Open one to read the brief or update+ its properties.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageFaq+ id="tasks-faq-title"+ eyebrow="Creation, ownership, and automation"+ title="How Macro Tasks work."+ introduction={+ <p>+ Keyboard-first tasks, bidirectional references, agent tools, and+ GitHub status updates.+ </p>+ }+ items={tasksFaq}+ />+ <HomepageClosing />+ </ProductPage>);-};+}diff --git a/apps/marketing/src/assets/desktop/coastal-dawn.svg b/apps/marketing/src/assets/desktop/coastal-dawn.svgnew file mode 100644index 0000000000..458f5ad937--- /dev/null+++ b/apps/marketing/src/assets/desktop/coastal-dawn.svg@@ -0,0 +1,28 @@+<svg xmlns="http://www.w3.org/2000/svg" width="2000" height="1300" viewBox="0 0 2000 1300" fill="none">+ <defs>+ <linearGradient id="sky" x1="1000" y1="0" x2="1000" y2="1300" gradientUnits="userSpaceOnUse">+ <stop stop-color="#d6d4c9"/><stop offset=".48" stop-color="#e4dbc2"/><stop offset="1" stop-color="#a7b6b5"/>+ </linearGradient>+ <linearGradient id="water" x1="1030" y1="670" x2="950" y2="1300" gradientUnits="userSpaceOnUse">+ <stop stop-color="#c4cecb"/><stop offset="1" stop-color="#7f9d9f"/>+ </linearGradient>+ <linearGradient id="coast" x1="100" y1="600" x2="350" y2="1300" gradientUnits="userSpaceOnUse">+ <stop stop-color="#a3a48d"/><stop offset=".5" stop-color="#828e78"/><stop offset="1" stop-color="#626f65"/>+ </linearGradient>+ <filter id="soft"><feGaussianBlur stdDeviation="14"/></filter>+ <filter id="grain"><feTurbulence type="fractalNoise" baseFrequency=".55" numOctaves="3" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="linear" slope=".12"/></feComponentTransfer><feBlend in="SourceGraphic" mode="soft-light"/></filter>+ </defs>+ <g filter="url(#grain)">+ <path fill="url(#sky)" d="M0 0h2000v1300H0z"/>+ <g filter="url(#soft)">+ <path fill="#b1b8b1" d="m0 608 95-62 97 19 120-124 138 70 131 152 127 28 188 88H0z"/>+ <path fill="#b5b0a2" d="m1290 731 141-70 84-103 87 27 123-167 115 86 160-29v453z"/>+ <path fill="#989f98" d="m1505 829 121-164 92-5 97-85 113 36 72-71v454z"/>+ <path fill="url(#water)" d="M0 779c411-32 778 56 1153-15s605-31 847 18v518H0z"/>+ <path fill="#d9d4bb" opacity=".6" d="M740 904c345-22 716 34 1260-42v38c-520 86-949 55-1260 4Z"/>+ <path fill="url(#coast)" d="M0 625c101 26 180 112 260 130s130 2 207 88c69 79 149 70 258 118s236 120 329 176c-316-23-349-9-515 35S128 1275 0 1300z"/>+ <path fill="#bcc0ac" opacity=".7" d="M0 879c172 10 309 58 446 118s305 61 456 125c-279-17-302-43-475-96S177 969 0 975z"/>+ <path fill="#a7b4b1" opacity=".7" d="M937 1253c305-69 609-76 1063-57v104H796z"/>+ </g>+ </g>+</svg>diff --git a/apps/marketing/src/assets/desktop/gradient-grain.svg b/apps/marketing/src/assets/desktop/gradient-grain.svgnew file mode 100644index 0000000000..3d3cc2e833--- /dev/null+++ b/apps/marketing/src/assets/desktop/gradient-grain.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180" viewBox="0 0 180 180"><filter id="grain"><feTurbulence type="fractalNoise" baseFrequency=".85" numOctaves="3" stitchTiles="stitch"/></filter><path fill="#fff" filter="url(#grain)" opacity=".7" d="M0 0h180v180H0z"/></svg>diff --git a/apps/marketing/src/assets/graphics/docs-timeline.svg b/apps/marketing/src/assets/graphics/docs-timeline.svgindex ba968deffc..ae3b662b8e 100644--- a/apps/marketing/src/assets/graphics/docs-timeline.svg+++ b/apps/marketing/src/assets/graphics/docs-timeline.svg@@ -1 +1 @@-<svg xmlns="http://www.w3.org/2000/svg" width="1211" height="294" fill="none" viewBox="0 0 1211 294"><g clip-path="url(#new-timeline-clip0_932_16759)"><path stroke="#2E2E2E" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5" d="m16 152.011 14.199 42.003c2.028 6.241 9.026 19.027 20.79 20.242h27.384c35.497 0 31.44-116.731 39.046-116.731 7.607 0 5.578 37.279 21.806 37.279 7.606 0 9.127-13.157 17.241-13.157s16.734 19.23 16.734 19.23c6.049 8.678 23.577 21.967 33.975 24.797 5.579 1.518 18.256-4.554 29.412 15.688s19.777 18.218 29.919 18.218h29.919c13.691 0 20.418-13.157 30.932-13.157 10.515 0 11.664 13.157 30.426 13.157 22.19 0 40.061-26.821 55.781-26.821s20.284 29.352 52.738 29.352h97.363c28.904 0 25.861-127.528 39.553-127.528 9.128 0 10.281 84.178 29.919 98.176 3.549 2.53 10.142 7.085 11.663 11.639 1.521 4.555 6.085 6.579 12.677 6.579 6.593 0 6.086-4.554 10.649-4.554 4.564 0 10.649 9.109 18.763 9.109s12.17-9.109 18.256-9.109c6.085 0 12.17 14.608 25.354 14.608 13.185 0 16.735-24.224 28.398-24.224 4.564 0 10.142 5.061 12.17 9.616s5.435 9.109 9.635 9.109c7.606 0 12.677-11.64 15.213-15.182 2.535-3.543 9.635-14.676 18.255-14.676 8.621 0 18.763 12.146 22.313 18.724 3.549 6.579 10.142 16.633 16.227 16.633s11.663-13.09 15.213-20.681 7.606-24.543 14.198-24.543 15.213 37.06 17.749 45.224 7.874 40.552 23.46 40.552h12.036c5.579 0 15.923-6.579 32.962-57.185 9.635-28.591 19.269-61.739 24.847-61.739s13.695 22.267 19.275 43.015c5.57 20.749 12.67 35.357 21.29 35.357s17.75-14.357 22.82-29.79 9.13-26.315 13.69-26.315c6.6 0 9.13 20.242 14.71 32.388s7.61 21.254 21.3 21.254h19.77c2.71-.506 8.93-2.227 12.18-5.061 4.05-3.542 5.57-6.578 11.66-6.578 0 0 3.04.506 7.6 3.542 4.57 3.036 6.6 5.061 9.64 5.061 6.08 0 13.69-12.146 16.73-18.218 3.05-6.073 7.1-15.182 11.16-15.182"/><path fill="#BFBFBF" fill-opacity=".1" d="M30.199 194.344 16 152.225v92.358h1179v-82.209c-4.06 0-8.11 9.135-11.16 15.224-3.04 6.09-10.65 18.269-16.73 18.269-3.04 0-5.07-2.03-9.64-5.075-4.56-3.045-7.6-3.552-7.6-3.552-6.09 0-7.61 3.045-11.66 6.597-3.25 2.842-9.47 4.567-12.18 5.075h-19.77c-13.69 0-15.72-9.135-21.3-21.314s-8.11-32.477-14.71-32.477c-4.56 0-8.62 10.911-13.69 26.388-5.07 15.476-14.2 29.873-22.82 29.873s-15.72-14.649-21.29-35.455c-5.58-20.806-13.696-43.135-19.275-43.135s-15.212 33.24-24.847 61.911c-17.039 50.746-27.383 57.343-32.962 57.343H923.33c-15.586 0-20.925-32.478-23.46-40.664s-11.156-45.35-17.749-45.35-10.649 16.999-14.198 24.611-9.128 20.739-15.213 20.739-12.678-10.082-16.227-16.679c-3.55-6.597-13.692-18.776-22.313-18.776s-15.72 11.164-18.255 14.716c-2.536 3.552-7.607 15.224-15.213 15.224-4.2 0-7.607-4.567-9.635-9.134s-7.606-9.642-12.17-9.642c-11.663 0-15.213 24.291-28.398 24.291-13.184 0-19.269-14.649-25.354-14.649s-10.142 9.134-18.256 9.134-14.199-9.134-18.763-9.134c-4.563 0-4.056 4.567-10.649 4.567s-11.156-2.03-12.677-6.597-8.114-9.135-11.663-11.672c-19.638-14.037-20.791-98.448-29.919-98.448-13.692 0-10.649 127.881-39.554 127.881h-97.362c-32.454 0-37.018-29.433-52.738-29.433s-33.591 26.896-55.781 26.896c-18.762 0-19.911-13.194-30.426-13.194s-17.241 13.194-30.933 13.194h-29.918c-10.142 0-18.763 2.029-29.919-18.269-11.156-20.299-23.833-14.209-29.412-15.731-10.398-2.838-27.926-16.165-33.975-24.866 0 0-8.621-19.284-16.734-19.284s-9.635 13.194-17.241 13.194c-16.228 0-14.199-37.383-21.806-37.383-7.606 0-3.549 117.055-39.046 117.055H50.99c-11.765-1.218-18.763-14.04-20.791-20.299"/><path stroke="#555259" stroke-dasharray="4 4" stroke-opacity=".2" d="M16.5 72v174m0-174v174m0-174v174M97.954 72v174m0-174v174m0-174v174m81.455-174v174m0-174v174m0-174v174m81.455-174v174m0-174v174m0-174v174m81.454-174v174m0-174v174m0-174v174m81.455-174v174m0-174v174m0-174v174m81.454-174v174m0-174v174m0-174v174m81.455-174v174m0-174v174m0-174v174m81.454-174v174m0-174v174m0-174v174m81.455-174v174m0-174v174m0-174v174m81.454-174v174m0-174v174m0-174v174M912.5 72v174m0-174v174m0-174v174m30-174v174m0-174v174m0-174v174m84.33-174v174m0-174v174m0-174v174m84.34-174v174m0-174v174m0-174v174m84.33-174v174m0-174v174m0-174v174"/><path stroke="#8B8B8B" stroke-linecap="round" stroke-width="2" d="M17 103h896m4 0h2m4 0h2m4 0h2m4 0h2m4 0h253"/><!-- The scrubber. TimelineArtworkBand in RouteDocuments.tsx sweeps this group and rewrites .docs-timeline-stamp; without it the artwork renders exactly as it sits here, which is what reduced motion and a never scrolled to band both get. The label is two text elements, not one string: the date is fixed and the clock is fixed width (tabular figures, padded hour), each anchored at its own left edge so neither can be moved by the other changing. Their x values put the pair centred on the diamond at 793: date 29.493 wide, a 2.245 space, clock 50.1, so the pair starts at 793 minus half of 81.845. --><g class="docs-timeline-scrub"><path stroke="#5DA6FF" stroke-width=".5" d="M793 72v174"/><rect width="7" height="7" x="788.057" y="103.007" fill="#5DA6FF" stroke="#060709" rx=".5" transform="rotate(-45 788.057 103.007)"/><text xml:space="preserve" fill="#5DA6FF" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="752.078" y="69.909">Aug 30,</tspan></text><text class="docs-timeline-stamp" xml:space="preserve" fill="#5DA6FF" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre;font-variant-numeric:tabular-nums"><tspan x="783.816" y="69.909">02:11:00 PM</tspan></text></g><path stroke="#8B8B8B" stroke-width=".5" d="M16 155.75h1179"/><rect width="5" height="6" x="666" y="152.5" fill="#FFAE00" rx="2.5"/><rect width="5" height="6" x="689" y="152.5" fill="#FFAE00" rx="2.5"/><rect width="5" height="6" x="741" y="152.5" fill="#FFAE00" rx="2.5"/><rect width="5" height="6" x="995" y="152.5" fill="#FFAE00" rx="2.5"/><rect width="5" height="6" x="1046" y="152.5" fill="#FFAE00" rx="2.5"/><rect width="5" height="6" x="1179" y="152.5" fill="#FFAE00" rx="2.5"/><path stroke="#8B8B8B" stroke-width=".5" d="M16 167.75h1179"/><rect width="5" height="6" x="16" y="164.5" fill="#92C541" rx="2.5"/><rect width="120" height="6" x="21" y="164.5" fill="#92C541" rx="3"/><rect width="5" height="6" x="145" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="150" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="155" y="164.5" fill="#92C541" rx="2.5"/><rect width="100" height="6" x="172" y="164.5" fill="#92C541" rx="3"/><rect width="5" height="6" x="304" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="309" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="330" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="347" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="367" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="394" y="164.5" fill="#92C541" rx="2.5"/><rect width="22" height="6" x="410" y="164.5" fill="#92C541" rx="3"/><rect width="189" height="6" x="437" y="164.5" fill="#92C541" rx="3"/><rect width="5" height="6" x="636" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="659" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="669" y="164.5" fill="#92C541" rx="2.5"/><rect width="40" height="6" x="783" y="164.5" fill="#92C541" rx="3"/><rect width="5" height="6" x="839" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="882" y="164.5" fill="#92C541" rx="2.5"/><rect width="40" height="6" x="965" y="164.5" fill="#92C541" rx="3"/><rect width="5" height="6" x="1021" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="1039" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="1057" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="1107" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="1145" y="164.5" fill="#92C541" rx="2.5"/><path stroke="#8B8B8B" stroke-width=".5" d="M16 179.75h1179"/><rect width="40" height="6" x="316" y="176.5" fill="#D09CF4" rx="3"/><rect width="5" height="6" x="372" y="176.5" fill="#D09CF4" rx="2.5"/><rect width="5" height="6" x="415" y="176.5" fill="#D09CF4" rx="2.5"/><rect width="5" height="6" x="630" y="176.5" fill="#D09CF4" rx="2.5"/><rect width="5" height="6" x="699" y="176.5" fill="#D09CF4" rx="2.5"/><rect width="5" height="6" x="737" y="176.5" fill="#D09CF4" rx="2.5"/><rect width="5" height="6" x="746" y="176.5" fill="#D09CF4" rx="2.5"/><rect width="5" height="6" x="896" y="176.5" fill="#D09CF4" rx="2.5"/><rect width="5" height="6" x="1134" y="176.5" fill="#D09CF4" rx="2.5"/><path stroke="#8B8B8B" stroke-width=".5" d="M16 191.75h1179"/><rect width="5" height="6" x="1116" y="188.5" fill="#A2B2FF" rx="2.5"/><rect width="5" height="6" x="1155" y="188.5" fill="#A2B2FF" rx="2.5"/><path stroke="#8B8B8B" stroke-width=".5" d="M16 203.75h1179"/><rect width="5" height="6" x="884" y="200.5" fill="#FA6B52" rx="2.5"/><path stroke="#8B8B8B" stroke-width=".5" d="M16 215.75h1179"/><rect width="5" height="6" x="849" y="212.5" fill="#5DCEEB" rx="2.5"/><path stroke="#8B8B8B" stroke-width=".5" d="M16 227.75h1179"/><rect width="15" height="6" x="589" y="224.5" fill="#FC8B34" rx="3"/><path stroke="#8B8B8B" stroke-width=".5" d="M16 239.75h1179"/><rect width="5" height="6" x="111" y="236.5" fill="#F091FF" rx="2.5"/><text xml:space="preserve" fill="#8B8B8B" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="823.203" y="253.909">8/31</tspan></text><text xml:space="preserve" fill="#8B8B8B" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="1020.01" y="253.909">9/4</tspan></text><text xml:space="preserve" fill="#8B8B8B" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="849.977" y="253.909">Aug 31, 6:44 PM</tspan></text><text xml:space="preserve" fill="#8B8B8B" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="942.438" y="253.909">Sep 3, 9:05 AM</tspan></text><text xml:space="preserve" fill="#8B8B8B" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="740.562" y="253.909">8/30</tspan></text><text xml:space="preserve" fill="#8B8B8B" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="658.691" y="253.909">8/29</tspan></text><text xml:space="preserve" fill="#8B8B8B" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="576.723" y="253.909">8/28</tspan></text><text xml:space="preserve" fill="#8B8B8B" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="494.902" y="253.909">8/27</tspan></text></g><defs><clipPath id="new-timeline-clip0_932_16759"><path fill="#fff" d="M0 0h1211v294H0z"/></clipPath></defs></svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" width="1211" height="294" fill="none" viewBox="0 0 1211 294"><g clip-path="url(#new-timeline-clip0_932_16759)"><path stroke="#2E2E2E" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5" d="m16 152.011 14.199 42.003c2.028 6.241 9.026 19.027 20.79 20.242h27.384c35.497 0 31.44-116.731 39.046-116.731 7.607 0 5.578 37.279 21.806 37.279 7.606 0 9.127-13.157 17.241-13.157s16.734 19.23 16.734 19.23c6.049 8.678 23.577 21.967 33.975 24.797 5.579 1.518 18.256-4.554 29.412 15.688s19.777 18.218 29.919 18.218h29.919c13.691 0 20.418-13.157 30.932-13.157 10.515 0 11.664 13.157 30.426 13.157 22.19 0 40.061-26.821 55.781-26.821s20.284 29.352 52.738 29.352h97.363c28.904 0 25.861-127.528 39.553-127.528 9.128 0 10.281 84.178 29.919 98.176 3.549 2.53 10.142 7.085 11.663 11.639 1.521 4.555 6.085 6.579 12.677 6.579 6.593 0 6.086-4.554 10.649-4.554 4.564 0 10.649 9.109 18.763 9.109s12.17-9.109 18.256-9.109c6.085 0 12.17 14.608 25.354 14.608 13.185 0 16.735-24.224 28.398-24.224 4.564 0 10.142 5.061 12.17 9.616s5.435 9.109 9.635 9.109c7.606 0 12.677-11.64 15.213-15.182 2.535-3.543 9.635-14.676 18.255-14.676 8.621 0 18.763 12.146 22.313 18.724 3.549 6.579 10.142 16.633 16.227 16.633s11.663-13.09 15.213-20.681 7.606-24.543 14.198-24.543 15.213 37.06 17.749 45.224 7.874 40.552 23.46 40.552h12.036c5.579 0 15.923-6.579 32.962-57.185 9.635-28.591 19.269-61.739 24.847-61.739s13.695 22.267 19.275 43.015c5.57 20.749 12.67 35.357 21.29 35.357s17.75-14.357 22.82-29.79 9.13-26.315 13.69-26.315c6.6 0 9.13 20.242 14.71 32.388s7.61 21.254 21.3 21.254h19.77c2.71-.506 8.93-2.227 12.18-5.061 4.05-3.542 5.57-6.578 11.66-6.578 0 0 3.04.506 7.6 3.542 4.57 3.036 6.6 5.061 9.64 5.061 6.08 0 13.69-12.146 16.73-18.218 3.05-6.073 7.1-15.182 11.16-15.182"/><path fill="#BFBFBF" fill-opacity=".1" d="M30.199 194.344 16 152.225v92.358h1179v-82.209c-4.06 0-8.11 9.135-11.16 15.224-3.04 6.09-10.65 18.269-16.73 18.269-3.04 0-5.07-2.03-9.64-5.075-4.56-3.045-7.6-3.552-7.6-3.552-6.09 0-7.61 3.045-11.66 6.597-3.25 2.842-9.47 4.567-12.18 5.075h-19.77c-13.69 0-15.72-9.135-21.3-21.314s-8.11-32.477-14.71-32.477c-4.56 0-8.62 10.911-13.69 26.388-5.07 15.476-14.2 29.873-22.82 29.873s-15.72-14.649-21.29-35.455c-5.58-20.806-13.696-43.135-19.275-43.135s-15.212 33.24-24.847 61.911c-17.039 50.746-27.383 57.343-32.962 57.343H923.33c-15.586 0-20.925-32.478-23.46-40.664s-11.156-45.35-17.749-45.35-10.649 16.999-14.198 24.611-9.128 20.739-15.213 20.739-12.678-10.082-16.227-16.679c-3.55-6.597-13.692-18.776-22.313-18.776s-15.72 11.164-18.255 14.716c-2.536 3.552-7.607 15.224-15.213 15.224-4.2 0-7.607-4.567-9.635-9.134s-7.606-9.642-12.17-9.642c-11.663 0-15.213 24.291-28.398 24.291-13.184 0-19.269-14.649-25.354-14.649s-10.142 9.134-18.256 9.134-14.199-9.134-18.763-9.134c-4.563 0-4.056 4.567-10.649 4.567s-11.156-2.03-12.677-6.597-8.114-9.135-11.663-11.672c-19.638-14.037-20.791-98.448-29.919-98.448-13.692 0-10.649 127.881-39.554 127.881h-97.362c-32.454 0-37.018-29.433-52.738-29.433s-33.591 26.896-55.781 26.896c-18.762 0-19.911-13.194-30.426-13.194s-17.241 13.194-30.933 13.194h-29.918c-10.142 0-18.763 2.029-29.919-18.269-11.156-20.299-23.833-14.209-29.412-15.731-10.398-2.838-27.926-16.165-33.975-24.866 0 0-8.621-19.284-16.734-19.284s-9.635 13.194-17.241 13.194c-16.228 0-14.199-37.383-21.806-37.383-7.606 0-3.549 117.055-39.046 117.055H50.99c-11.765-1.218-18.763-14.04-20.791-20.299"/><path stroke="#555259" stroke-dasharray="4 4" stroke-opacity=".2" d="M16.5 72v174m0-174v174m0-174v174M97.954 72v174m0-174v174m0-174v174m81.455-174v174m0-174v174m0-174v174m81.455-174v174m0-174v174m0-174v174m81.454-174v174m0-174v174m0-174v174m81.455-174v174m0-174v174m0-174v174m81.454-174v174m0-174v174m0-174v174m81.455-174v174m0-174v174m0-174v174m81.454-174v174m0-174v174m0-174v174m81.455-174v174m0-174v174m0-174v174m81.454-174v174m0-174v174m0-174v174M912.5 72v174m0-174v174m0-174v174m30-174v174m0-174v174m0-174v174m84.33-174v174m0-174v174m0-174v174m84.34-174v174m0-174v174m0-174v174m84.33-174v174m0-174v174m0-174v174"/><path stroke="#8B8B8B" stroke-linecap="round" stroke-width="2" d="M17 103h896m4 0h2m4 0h2m4 0h2m4 0h2m4 0h253"/><!-- The scrubber. TimelineArtworkBand in RouteDocuments.tsx sweeps this group and rewrites .docs-timeline-stamp; without it the artwork renders exactly as it sits here, which is what reduced motion and a never scrolled to band both get. The label is two text elements, not one string: the date is fixed and the clock is fixed width (tabular figures, padded hour), each anchored at its own left edge so neither can be moved by the other changing. Their x values put the pair centred on the handle at 793: date 29.493 wide, a 2.245 space, clock 50.1, so the pair starts at 793 minus half of 81.845. --><g class="docs-timeline-scrub"><path stroke="#5DA6FF" stroke-width=".5" d="M793 72v174"/><rect class="docs-timeline-handle" width="14" height="20" x="786" y="93" fill="#192D47" stroke="#5DA6FF" rx="4"/><path class="docs-timeline-grip" stroke="#8ABDFF" stroke-linecap="round" stroke-width="1.2" d="M791 99v8m4-8v8"/><text xml:space="preserve" fill="#5DA6FF" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="752.078" y="69.909">Aug 30,</tspan></text><text class="docs-timeline-stamp" xml:space="preserve" fill="#5DA6FF" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre;font-variant-numeric:tabular-nums"><tspan x="783.816" y="69.909">02:11:00 PM</tspan></text></g><path stroke="#8B8B8B" stroke-width=".5" d="M16 155.75h1179"/><rect width="5" height="6" x="666" y="152.5" fill="#FFAE00" rx="2.5"/><rect width="5" height="6" x="689" y="152.5" fill="#FFAE00" rx="2.5"/><rect width="5" height="6" x="741" y="152.5" fill="#FFAE00" rx="2.5"/><rect width="5" height="6" x="995" y="152.5" fill="#FFAE00" rx="2.5"/><rect width="5" height="6" x="1046" y="152.5" fill="#FFAE00" rx="2.5"/><rect width="5" height="6" x="1179" y="152.5" fill="#FFAE00" rx="2.5"/><path stroke="#8B8B8B" stroke-width=".5" d="M16 167.75h1179"/><rect width="5" height="6" x="16" y="164.5" fill="#92C541" rx="2.5"/><rect width="120" height="6" x="21" y="164.5" fill="#92C541" rx="3"/><rect width="5" height="6" x="145" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="150" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="155" y="164.5" fill="#92C541" rx="2.5"/><rect width="100" height="6" x="172" y="164.5" fill="#92C541" rx="3"/><rect width="5" height="6" x="304" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="309" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="330" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="347" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="367" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="394" y="164.5" fill="#92C541" rx="2.5"/><rect width="22" height="6" x="410" y="164.5" fill="#92C541" rx="3"/><rect width="189" height="6" x="437" y="164.5" fill="#92C541" rx="3"/><rect width="5" height="6" x="636" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="659" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="669" y="164.5" fill="#92C541" rx="2.5"/><rect width="40" height="6" x="783" y="164.5" fill="#92C541" rx="3"/><rect width="5" height="6" x="839" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="882" y="164.5" fill="#92C541" rx="2.5"/><rect width="40" height="6" x="965" y="164.5" fill="#92C541" rx="3"/><rect width="5" height="6" x="1021" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="1039" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="1057" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="1107" y="164.5" fill="#92C541" rx="2.5"/><rect width="5" height="6" x="1145" y="164.5" fill="#92C541" rx="2.5"/><path stroke="#8B8B8B" stroke-width=".5" d="M16 179.75h1179"/><rect width="40" height="6" x="316" y="176.5" fill="#D09CF4" rx="3"/><rect width="5" height="6" x="372" y="176.5" fill="#D09CF4" rx="2.5"/><rect width="5" height="6" x="415" y="176.5" fill="#D09CF4" rx="2.5"/><rect width="5" height="6" x="630" y="176.5" fill="#D09CF4" rx="2.5"/><rect width="5" height="6" x="699" y="176.5" fill="#D09CF4" rx="2.5"/><rect width="5" height="6" x="737" y="176.5" fill="#D09CF4" rx="2.5"/><rect width="5" height="6" x="746" y="176.5" fill="#D09CF4" rx="2.5"/><rect width="5" height="6" x="896" y="176.5" fill="#D09CF4" rx="2.5"/><rect width="5" height="6" x="1134" y="176.5" fill="#D09CF4" rx="2.5"/><path stroke="#8B8B8B" stroke-width=".5" d="M16 191.75h1179"/><rect width="5" height="6" x="1116" y="188.5" fill="#A2B2FF" rx="2.5"/><rect width="5" height="6" x="1155" y="188.5" fill="#A2B2FF" rx="2.5"/><path stroke="#8B8B8B" stroke-width=".5" d="M16 203.75h1179"/><rect width="5" height="6" x="884" y="200.5" fill="#FA6B52" rx="2.5"/><path stroke="#8B8B8B" stroke-width=".5" d="M16 215.75h1179"/><rect width="5" height="6" x="849" y="212.5" fill="#5DCEEB" rx="2.5"/><path stroke="#8B8B8B" stroke-width=".5" d="M16 227.75h1179"/><rect width="15" height="6" x="589" y="224.5" fill="#FC8B34" rx="3"/><path stroke="#8B8B8B" stroke-width=".5" d="M16 239.75h1179"/><rect width="5" height="6" x="111" y="236.5" fill="#F091FF" rx="2.5"/><text xml:space="preserve" fill="#8B8B8B" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="823.203" y="253.909">8/31</tspan></text><text xml:space="preserve" fill="#8B8B8B" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="1020.01" y="253.909">9/4</tspan></text><text xml:space="preserve" fill="#8B8B8B" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="849.977" y="253.909">Aug 31, 6:44 PM</tspan></text><text xml:space="preserve" fill="#8B8B8B" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="942.438" y="253.909">Sep 3, 9:05 AM</tspan></text><text xml:space="preserve" fill="#8B8B8B" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="740.562" y="253.909">8/30</tspan></text><text xml:space="preserve" fill="#8B8B8B" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="658.691" y="253.909">8/29</tspan></text><text xml:space="preserve" fill="#8B8B8B" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="576.723" y="253.909">8/28</tspan></text><text xml:space="preserve" fill="#8B8B8B" font-family="Inter" font-size="8" letter-spacing="0em" style="white-space:pre"><tspan x="494.902" y="253.909">8/27</tspan></text></g><defs><clipPath id="new-timeline-clip0_932_16759"><path fill="#fff" d="M0 0h1211v294H0z"/></clipPath></defs></svg>\ No newline at end of filediff --git a/apps/marketing/src/assets/posts/macro-vs-linear/task-create-current.webp b/apps/marketing/src/assets/posts/macro-vs-linear/task-create-current.webpnew file mode 100644index 0000000000..8e3f87ffb2Binary files /dev/null and b/apps/marketing/src/assets/posts/macro-vs-linear/task-create-current.webp differdiff --git a/apps/marketing/src/assets/posts/macro-vs-linear/task-detail-current.webp b/apps/marketing/src/assets/posts/macro-vs-linear/task-detail-current.webpnew file mode 100644index 0000000000..14b5a1e287Binary files /dev/null and b/apps/marketing/src/assets/posts/macro-vs-linear/task-detail-current.webp differdiff --git a/apps/marketing/src/components/Header.tsx b/apps/marketing/src/components/Header.tsxindex d3aa7916c9..bd2ce142b1 100644--- a/apps/marketing/src/components/Header.tsx+++ b/apps/marketing/src/components/Header.tsx@@ -4,9 +4,9 @@ import DesignIcon from '../assets/designs/design-icon.svg';export function Header() {const navItemStyle = {- 'font-family': 'Rajdhani',- 'font-size': '18px',- 'font-weight': '700',+ 'font-family': 'Inter',+ 'font-size': '14px',+ 'font-weight': '500','letter-spacing': '0.02em','text-decoration': 'none',color: 'var(--c4)',diff --git a/apps/marketing/src/features/marketing/components/DemoMarkdown.tsx b/apps/marketing/src/features/marketing/components/DemoMarkdown.tsxindex 002c92aa6b..824b909e9c 100644--- a/apps/marketing/src/features/marketing/components/DemoMarkdown.tsx+++ b/apps/marketing/src/features/marketing/components/DemoMarkdown.tsx@@ -1,4 +1,5 @@import { For, Match, Switch } from 'solid-js';+import { DemoMentionText } from './DemoMention';import './demo-markdown.css';/** The sample transcripts only need emphasis, code, headings, and lists.@@ -8,7 +9,7 @@ function Inline(props: { text: string }) {return (<For each={props.text.split(/(\*\*[^*]+\*\*|`[^`]+`)/g)}>{(part) => (- <Switch fallback={part}>+ <Switch fallback={<DemoMentionText text={part} />}><Match when={part.startsWith('**') && part.endsWith('**')}><strong class="font-bold">{part.slice(2, -2)}</strong></Match>diff --git a/apps/marketing/src/features/marketing/components/DemoMention.test.tsx b/apps/marketing/src/features/marketing/components/DemoMention.test.tsxnew file mode 100644index 0000000000..807c54aa37--- /dev/null+++ b/apps/marketing/src/features/marketing/components/DemoMention.test.tsx@@ -0,0 +1,106 @@+import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';+import { afterEach, beforeEach, expect, it, vi } from 'vitest';+import { DemoMentionText, serializeDemoEditor } from './DemoMention';+import { DemoMentionMenu } from './DemoMentionMenu';+import { ChannelComposer } from './email/frozen/ChannelComposer';++beforeEach(() => {+ vi.stubGlobal(+ 'ResizeObserver',+ class {+ observe() {}+ unobserve() {}+ disconnect() {}+ }+ );+ Object.defineProperty(Range.prototype, 'getBoundingClientRect', {+ configurable: true,+ value: () => new DOMRect(),+ });+ Element.prototype.scrollIntoView = vi.fn();+});+afterEach(() => {+ cleanup();+ vi.unstubAllGlobals();+ Reflect.deleteProperty(Range.prototype, 'getBoundingClientRect');+});++function typeAtEnd(editor: HTMLElement, text: string) {+ const node = document.createTextNode(text);+ editor.append(node);+ editor.focus();+ const range = document.createRange();+ range.setStart(node, text.length);+ range.collapse(true);+ window.getSelection()!.removeAllRanges();+ window.getSelection()!.addRange(range);+ fireEvent.input(editor);+}++it('keeps multiple references atomic, formatted, and intact when the message is sent', () => {+ const onSend = vi.fn();+ render(() => (+ <>+ <DemoMentionMenu />+ <div class="workspace-demo">+ <ChannelComposer richMentions label="Message" onSend={onSend} />+ </div>+ </>+ ));+ const editor = screen.getByRole('textbox', { name: 'Message' });+ for (const query of ['@teo', '@q3', '@announcement']) {+ typeAtEnd(editor, query);+ fireEvent.keyDown(editor, { key: 'Enter' });+ expect(onSend).not.toHaveBeenCalled();+ expect(screen.queryByRole('listbox')).toBeNull();+ }+ expect(editor.textContent).toBe(+ '@Teo Q3 launch plan Write the launch announcement '+ );+ expect(editor.querySelectorAll('[contenteditable="false"]')).toHaveLength(3);+ expect(editor.querySelector('.mention-person')?.textContent).toBe('@Teo');+ expect(+ editor.querySelector('.mention-task .demo-mention-status')+ ).toBeTruthy();+ typeAtEnd(editor, 'please review these.');+ expect(screen.queryByRole('listbox')).toBeNull();+ const body = serializeDemoEditor(editor).trim();+ fireEvent.keyDown(editor, { key: 'Enter' });+ expect(onSend).toHaveBeenCalledExactlyOnceWith(body);+ expect(editor.textContent).toBe('');+ const result = render(() => (+ <div class="workspace-demo">+ <DemoMentionText text={body} />+ </div>+ ));+ expect(result.container.querySelectorAll('[data-demo-mention]')).toHaveLength(+ 3+ );+ expect(result.container.textContent).toContain(+ '@Teo Q3 launch plan Write the launch announcement please review these.'+ );+ expect(result.container.textContent).not.toContain('demo-mention:');+});++it('keeps pasted HTML out of the draft and preserves existing mention nodes', () => {+ render(() => (+ <>+ <DemoMentionMenu />+ <div class="workspace-demo">+ <ChannelComposer richMentions onSend={() => {}} />+ </div>+ </>+ ));+ const editor = screen.getByRole('textbox');+ typeAtEnd(editor, '@teo');+ fireEvent.keyDown(editor, { key: 'Enter' });+ fireEvent.paste(editor, {+ clipboardData: {+ getData: (type: string) =>+ type === 'text/plain' ? 'plain text' : '<img src="bad">',+ },+ });+ expect(editor.querySelector('img')).toBeNull();+ expect(editor.querySelector('[data-demo-mention="teo"]')).toBeTruthy();+ expect(editor.textContent).toBe('@Teo plain text');+});diff --git a/apps/marketing/src/features/marketing/components/DemoMention.tsx b/apps/marketing/src/features/marketing/components/DemoMention.tsxnew file mode 100644index 0000000000..e9646030bd--- /dev/null+++ b/apps/marketing/src/features/marketing/components/DemoMention.tsx@@ -0,0 +1,119 @@+import File from '@phosphor/file.svg?raw';+import Hash from '@phosphor/hash.svg?raw';+import ListChecks from '@phosphor/list-checks.svg?raw';+import Sparkle from '@phosphor/sparkle.svg?raw';+import Table from '@phosphor/table.svg?raw';+import { For, Show } from 'solid-js';+import {+ demoMentions,+ type DemoMention as MentionData,+} from '../core/demo-mentions';+import './demo-mentions.css';++const icons = {+ document: File,+ task: ListChecks,+ agent: Sparkle,+ channel: Hash,+ spreadsheet: Table,+ person: '',+};+const label = (item: MentionData) =>+ item.kind === 'person' ? `@${item.shortName ?? item.label}` : item.label;++// Frozen presentation of UserMention and DocumentMention/MentionContainer.+export function DemoMentionIcon(props: { item: MentionData }) {+ return (+ <span+ aria-hidden="true"+ class={`demo-mention-icon mention-${props.item.kind}`}+ innerHTML={icons[props.item.kind]}+ />+ );+}++export function DemoMention(props: { item: MentionData }) {+ return (+ <span+ class={`demo-inline-mention mention-${props.item.kind}`}+ data-demo-mention={props.item.id}+ contentEditable={false}+ title={props.item.label}+ >+ <Show when={props.item.kind !== 'person'}>+ <DemoMentionIcon item={props.item} />+ </Show>+ <span class="demo-mention-name">{label(props.item)}</span>+ <Show when={props.item.kind === 'task'}>+ <span+ class="demo-mention-status"+ data-status={props.item.status}+ aria-label={props.item.status ?? 'Not Started'}+ />+ </Show>+ </span>+ );+}++/** Insert an atomic token, never arbitrary HTML supplied by an editor. */+export function createDemoMentionElement(item: MentionData) {+ const token = document.createElement('span');+ token.className = `demo-inline-mention mention-${item.kind}`;+ token.dataset.demoMention = item.id;+ token.setAttribute('contenteditable', 'false');+ token.title = item.label;+ if (item.kind !== 'person') {+ const icon = document.createElement('span');+ icon.className = `demo-mention-icon mention-${item.kind}`;+ icon.setAttribute('aria-hidden', 'true');+ icon.innerHTML = icons[item.kind];+ token.append(icon);+ }+ const name = document.createElement('span');+ name.className = 'demo-mention-name';+ name.textContent = label(item);+ token.append(name);+ if (item.kind === 'task') {+ const status = document.createElement('span');+ status.className = 'demo-mention-status';+ status.setAttribute('aria-label', item.status ?? 'Not Started');+ status.dataset.status = item.status;+ token.append(status);+ }+ return token;+}++export function serializeDemoEditor(editor: HTMLElement): string {+ const visit = (node: Node): string => {+ if (node instanceof HTMLElement) {+ const item = demoMentions.find(+ (item) => item.id === node.dataset.demoMention+ );+ if (item) return `@[${item.label}](demo-mention:${item.id})`;+ if (node.tagName === 'BR') return '\n';+ const text = Array.from(node.childNodes, visit).join('');+ return ['DIV', 'P'].includes(node.tagName) && node !== editor+ ? `${text}\n`+ : text;+ }+ return node.textContent ?? '';+ };+ return visit(editor).replaceAll('\u00a0', ' ');+}++export function DemoMentionText(props: { text: string }) {+ const parts = () =>+ props.text.split(/(@\[[^\]]*\]\(demo-mention:[\w-]+\))/g).map((text) => {+ const id = /^@\[[^\]]*\]\(demo-mention:([\w-]+)\)$/.exec(text)?.[1];+ return { text, item: demoMentions.find((item) => item.id === id) };+ });+ return (+ <For each={parts()}>+ {(part) => (+ <Show when={part.item} fallback={part.text}>+ {(item) => <DemoMention item={item()} />}+ </Show>+ )}+ </For>+ );+}diff --git a/apps/marketing/src/features/marketing/components/DemoMentionMenu.test.tsx b/apps/marketing/src/features/marketing/components/DemoMentionMenu.test.tsxnew file mode 100644index 0000000000..59255a51cf--- /dev/null+++ b/apps/marketing/src/features/marketing/components/DemoMentionMenu.test.tsx@@ -0,0 +1,192 @@+import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';+import { createSignal } from 'solid-js';+import { afterEach, beforeEach, expect, it, vi } from 'vitest';+import { mentionAtCaret } from '../core/demo-mentions';+import { DemoMentionMenu } from './DemoMentionMenu';++beforeEach(() => {+ vi.stubGlobal(+ 'ResizeObserver',+ class {+ observe() {}+ unobserve() {}+ disconnect() {}+ }+ );+ vi.stubGlobal('fetch', vi.fn());+ Element.prototype.scrollIntoView = vi.fn();+ Object.defineProperty(Range.prototype, 'getBoundingClientRect', {+ configurable: true,+ value: () => new DOMRect(),+ });+});+afterEach(() => {+ cleanup();+ expect(fetch).not.toHaveBeenCalled();+ vi.unstubAllGlobals();+ Reflect.deleteProperty(Range.prototype, 'getBoundingClientRect');+});++function composer() {+ const send = vi.fn();+ let draft!: () => string;+ render(() => {+ const [value, setValue] = createSignal('');+ draft = value;+ return (+ <>+ <DemoMentionMenu />+ <div class="workspace-demo">+ <textarea+ aria-label="Message"+ value={value()}+ onInput={(event) => setValue(event.currentTarget.value)}+ onKeyDown={(event) => {+ if (event.key === 'Enter') send();+ }}+ />+ <input aria-label="Search workspace" />+ </div>+ <input aria-label="Signup email" />+ </>+ );+ });+ const editor = screen.getByRole('textbox', {+ name: 'Message',+ }) as HTMLTextAreaElement;+ editor.focus();+ return { editor, draft: () => draft(), send };+}++it('shows standard groups, filters, and inserts through controlled input without sending', () => {+ const { editor, draft, send } = composer();+ fireEvent.input(editor, { target: { value: 'Please ask @' } });+ expect(screen.getByRole('listbox')).toBeTruthy();+ expect(screen.getByText('People')).toBeTruthy();+ expect(screen.getByText('Documents, Agents, & Tasks')).toBeTruthy();+ expect(screen.getByRole('option', { name: 'launch' })).toBeTruthy();+ fireEvent.input(editor, { target: { value: 'Please ask @julia' } });+ expect(screen.getAllByRole('option')).toHaveLength(1);+ fireEvent.keyDown(editor, { key: 'Enter' });+ expect(draft()).toBe('Please ask @Julia Westphal ');+ expect(send).not.toHaveBeenCalled();+ expect(screen.queryByRole('listbox')).toBeNull();+ fireEvent.input(editor, { target: { value: `${draft()}to review this` } });+ expect(screen.queryByRole('listbox')).toBeNull();+ fireEvent.input(editor, { target: { value: `${draft()} with @cursor` } });+ expect(screen.getByRole('option', { name: 'Cursor' })).toBeTruthy();+ fireEvent.keyDown(editor, { key: 'Tab' });+ expect(draft()).toContain('@Cursor ');+});++it('supports arrow selection, mouse selection, dismissal, and empty results', () => {+ const { editor, draft } = composer();+ fireEvent.input(editor, { target: { value: '@' } });+ fireEvent.keyDown(editor, { key: 'ArrowDown' });+ expect(+ screen.getByRole('option', { name: 'Teo' }).getAttribute('aria-selected')+ ).toBe('true');+ fireEvent.keyDown(editor, { key: 'Escape' });+ expect(screen.queryByRole('listbox')).toBeNull();+ expect(editor.getAttribute('aria-controls')).toBeNull();+ fireEvent.input(editor, { target: { value: '@xyzunknown' } });+ expect(screen.getByText('No matching demo items')).toBeTruthy();+ expect(editor.getAttribute('aria-activedescendant')).toBeNull();+ fireEvent.keyDown(editor, { key: 'Tab' });+ expect(screen.queryByRole('listbox')).toBeNull();+ fireEvent.input(editor, { target: { value: '@checklist' } });+ fireEvent.click(+ screen.getByRole('option', { name: 'Prepare the launch checklist' })+ );+ expect(draft()).toBe('@Prepare the launch checklist ');+});++it('inserts into nested contenteditable markup while preserving surrounding text', () => {+ const input = vi.fn();+ render(() => (+ <>+ <DemoMentionMenu />+ <div class="workspace-demo">+ <div+ contentEditable+ role="textbox"+ aria-label="Document"+ onInput={input}+ >+ <p>+ <strong>Keep this </strong>+ <span>@q3</span> and this.+ </p>+ </div>+ </div>+ </>+ ));+ const editor = screen.getByRole('textbox', { name: 'Document' });+ editor.focus();+ const query = editor.querySelector('span')!.firstChild!;+ const range = document.createRange();+ range.setStart(query, 3);+ range.collapse(true);+ window.getSelection()!.removeAllRanges();+ window.getSelection()!.addRange(range);+ fireEvent.input(editor);+ fireEvent.keyDown(editor, { key: 'Enter' });+ expect(editor.textContent).toBe('Keep this Q3 launch plan and this.');+ expect(+ editor+ .querySelector('[data-demo-mention="plan"]')+ ?.getAttribute('contenteditable')+ ).toBe('false');+ expect(editor.querySelector('.mention-document svg')).toBeTruthy();+ expect(editor.querySelector('strong')?.textContent).toBe('Keep this ');+ expect(input).toHaveBeenCalledTimes(2);+ expect(screen.queryByRole('listbox')).toBeNull();+});++it('leaves search, signup, and ordinary email addresses alone', () => {+ const { editor } = composer();+ fireEvent.input(editor, { target: { value: '[email protected]' } });+ expect(screen.queryByRole('listbox')).toBeNull();+ fireEvent.input(screen.getByRole('textbox', { name: 'Search workspace' }), {+ target: { value: '@' },+ });+ expect(screen.queryByRole('listbox')).toBeNull();+ fireEvent.input(screen.getByRole('textbox', { name: 'Signup email' }), {+ target: { value: '@' },+ });+ expect(screen.queryByRole('listbox')).toBeNull();+ expect(mentionAtCaret('Hi (@Teo', 8)).toEqual({+ start: 4,+ end: 8,+ query: 'Teo',+ });+});++it('supports opted-in legacy demos without changing their style scope', () => {+ render(() => (+ <>+ <DemoMentionMenu />+ <div data-demo-mentions="on">+ <input aria-label="Legacy document" />+ </div>+ </>+ ));+ fireEvent.input(screen.getByRole('textbox'), {+ target: { value: '@metrics' },+ });+ expect(screen.getByRole('option', { name: 'Launch metrics' })).toBeTruthy();+});++it('uses the real menu category drilldown and return behavior', () => {+ const { editor } = composer();+ fireEvent.input(editor, { target: { value: '@' } });+ fireEvent.click(screen.getByRole('button', { name: 'View all (10)' }));+ expect(screen.queryByText('People')).toBeNull();+ expect(screen.getAllByRole('option')).toHaveLength(10);+ fireEvent.click(screen.getByRole('button', { name: '← Back to everything' }));+ expect(screen.getByText('People')).toBeTruthy();+ fireEvent.keyDown(editor, { key: 'ArrowRight' });+ expect(screen.getAllByRole('option')).toHaveLength(5);+ fireEvent.keyDown(editor, { key: 'ArrowLeft' });+ expect(screen.getByText('Channels')).toBeTruthy();+});diff --git a/apps/marketing/src/features/marketing/components/DemoMentionMenu.tsx b/apps/marketing/src/features/marketing/components/DemoMentionMenu.tsxnew file mode 100644index 0000000000..25377e2fb7--- /dev/null+++ b/apps/marketing/src/features/marketing/components/DemoMentionMenu.tsx@@ -0,0 +1,458 @@+import {+ autoUpdate,+ computePosition,+ flip,+ offset,+ shift,+} from '@floating-ui/dom';+import {+ createEffect,+ createSignal,+ createUniqueId,+ For,+ onCleanup,+ onMount,+ Show,+} from 'solid-js';+import { Portal } from 'solid-js/web';+import {+ type DemoMention,+ demoMentions,+ mentionAtCaret,+} from '../core/demo-mentions';+import { createDemoMentionElement, DemoMentionIcon } from './DemoMention';+import './demo-mentions.css';++type Editor = HTMLInputElement | HTMLTextAreaElement | HTMLElement;+type MentionState = {+ editor: Editor;+ text: string;+ start: number;+ end: number;+ query: string;+ range?: Range;+};+const GROUPS = ['People', 'Documents, Agents, & Tasks', 'Channels'] as const;+const groupFor = (item: DemoMention) =>+ item.kind === 'person'+ ? GROUPS[0]+ : item.kind === 'channel'+ ? GROUPS[2]+ : GROUPS[1];++function readEditor(editor: Editor) {+ if (+ editor instanceof HTMLInputElement ||+ editor instanceof HTMLTextAreaElement+ ) {+ return {+ text: editor.value,+ caret: editor.selectionStart ?? editor.value.length,+ };+ }+ const selection = window.getSelection();+ if (!selection?.rangeCount || !editor.contains(selection.anchorNode))+ return undefined;+ if (selection.anchorNode?.parentElement?.closest('[data-demo-mention]'))+ return undefined;+ const range = selection.getRangeAt(0).cloneRange();+ if (!range.collapsed) return undefined;+ const before = range.cloneRange();+ before.selectNodeContents(editor);+ before.setEnd(range.startContainer, range.startOffset);+ return {+ text: editor.textContent ?? '',+ caret: before.toString().length,+ range,+ };+}++function textPoint(editor: HTMLElement, offset: number) {+ const walker = document.createTreeWalker(editor, NodeFilter.SHOW_TEXT);+ let node = walker.nextNode();+ while (node) {+ const length = node.textContent?.length ?? 0;+ if (offset <= length) return { node, offset };+ offset -= length;+ node = walker.nextNode();+ }+ return { node: editor, offset: editor.childNodes.length };+}++/** A single delegated typeahead covers current and dynamically mounted demos. */+export function DemoMentionMenu() {+ const id = createUniqueId();+ const [state, setState] = createSignal<MentionState>();+ const [selected, setSelected] = createSignal(0);+ const [expanded, setExpanded] = createSignal<string>();+ const [position, setPosition] = createSignal({ x: 0, y: 0 });+ let menu!: HTMLDivElement;+ const [menuElement, setMenuElement] = createSignal<HTMLDivElement>();+ let dismissed: { editor: Editor; text: string; caret: number } | undefined;+ let inserted: { editor: Editor; start: number; text: string } | undefined;+ const matching = () =>+ demoMentions.filter((item) =>+ item.label+ .toLowerCase()+ .includes(state()?.query.trim().toLowerCase() ?? '')+ );+ const grouped = () =>+ GROUPS.map((label) => {+ const all = matching().filter((item) => groupFor(item) === label);+ return {+ label,+ all,+ items: state()?.query || expanded() === label ? all : all.slice(0, 3),+ };+ }).filter(+ (group) => group.all.length && (!expanded() || expanded() === group.label)+ );+ const options = () => grouped().flatMap((group) => group.items);+ const close = () => {+ const current = state();+ if (current)+ dismissed = {+ editor: current.editor,+ text: current.text,+ caret: current.end,+ };+ setState(undefined);+ };+ const update = (target: EventTarget | null) => {+ if (!(target instanceof HTMLElement)) return;+ const editor = target.closest<Editor>(+ 'textarea, input, [contenteditable]:not([contenteditable="false"])'+ );+ if (+ !editor?.closest('.workspace-demo, [data-demo-mentions="on"]') ||+ editor.closest('[data-demo-mentions="off"]') ||+ editor.getAttribute('role') === 'combobox' ||+ /search/i.test(editor.getAttribute('aria-label') ?? '') ||+ (editor instanceof HTMLInputElement &&+ !['text', 'email'].includes(editor.type)) ||+ ('readOnly' in editor && (editor.readOnly || editor.disabled))+ ) {+ close();+ return;+ }+ const value = readEditor(editor);+ if (!value) {+ setState(undefined);+ return;+ }+ if (+ dismissed?.editor === editor &&+ dismissed.text === value.text &&+ dismissed.caret === value.caret+ )+ return;+ const match = mentionAtCaret(value.text, value.caret);+ if (!match) {+ setState(undefined);+ return;+ }+ if (value.range) {+ // A completed user token begins with @, but is not a new query. Search+ // only the editable text after it when continuing the sentence.+ for (const token of editor.querySelectorAll('[data-demo-mention]')) {+ const before = document.createRange();+ before.selectNodeContents(editor);+ before.setEndAfter(token);+ const end = before.toString().length;+ if (end <= value.caret && match.start < end) {+ setState(undefined);+ return;+ }+ }+ }+ // A chosen mention is complete: continuing the sentence must not reopen it.+ if (+ inserted?.editor === editor &&+ inserted.start === match.start &&+ value.text.slice(match.start).startsWith(inserted.text) &&+ value.caret >= match.start + inserted.text.length+ ) {+ setState(undefined);+ return;+ }+ if (state()?.editor !== editor || state()?.query !== match.query) {+ setSelected(0);+ setExpanded(undefined);+ }+ setState({ editor, ...value, ...match });+ };+ const choose = (item?: DemoMention) => {+ const current = state();+ if (!current || !item) return;+ const insertion = `@${item.label} `;+ const editor = current.editor;+ inserted = { editor, start: current.start, text: insertion };+ editor.focus();+ if (+ editor instanceof HTMLInputElement ||+ editor instanceof HTMLTextAreaElement+ ) {+ const text =+ editor.value.slice(0, current.start) ++ insertion ++ editor.value.slice(current.end);+ // Use the native setter so controlled demo fields receive the input event.+ const prototype =+ editor instanceof HTMLInputElement+ ? HTMLInputElement.prototype+ : HTMLTextAreaElement.prototype;+ Object.getOwnPropertyDescriptor(prototype, 'value')?.set?.call(+ editor,+ text+ );+ if (editor.type !== 'email')+ editor.setSelectionRange(+ current.start + insertion.length,+ current.start + insertion.length+ );+ } else {+ const range = document.createRange();+ const start = textPoint(editor, current.start);+ const end = textPoint(editor, current.end);+ range.setStart(start.node, start.offset);+ range.setEnd(end.node, end.offset);+ range.deleteContents();+ const token = createDemoMentionElement(item);+ const space = document.createTextNode(' ');+ const fragment = document.createDocumentFragment();+ fragment.append(token, space);+ range.insertNode(fragment);+ range.setStartAfter(space);+ range.collapse(true);+ const selection = window.getSelection();+ selection?.removeAllRanges();+ selection?.addRange(range);+ }+ const value = readEditor(editor);+ if (value) dismissed = { editor, text: value.text, caret: value.caret };+ setState(undefined);+ editor.dispatchEvent(+ new InputEvent('input', {+ bubbles: true,+ inputType: 'insertText',+ data: insertion,+ })+ );+ };+ onMount(() => {+ const input = (event: Event) => update(event.target);+ const selection = () => update(document.activeElement);+ const outside = (event: PointerEvent) => {+ const target = event.target as Node;+ if (!menu?.contains(target) && !state()?.editor.contains(target)) close();+ };+ const key = (event: KeyboardEvent) => {+ if (+ !state() ||+ event.isComposing ||+ event.metaKey ||+ event.ctrlKey ||+ event.altKey+ )+ return;+ if (+ ![+ 'ArrowDown',+ 'ArrowUp',+ 'ArrowLeft',+ 'ArrowRight',+ 'Enter',+ 'Tab',+ 'Escape',+ ].includes(event.key)+ )+ return;+ if (event.shiftKey && event.key === 'Enter') return;+ event.preventDefault();+ event.stopImmediatePropagation();+ if (event.key === 'ArrowLeft') {+ setExpanded(undefined);+ setSelected(0);+ } else if (event.key === 'ArrowRight') {+ const active = options()[selected()];+ if (active) setExpanded(groupFor(active));+ setSelected(0);+ } else if (+ event.key === 'Escape' ||+ (event.key === 'Tab' && event.shiftKey)+ )+ close();+ else if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {+ const count = options().length;+ setSelected(+ count+ ? (selected() + (event.key === 'ArrowDown' ? 1 : count - 1)) % count+ : 0+ );+ menu+ ?.querySelector('[aria-selected="true"]')+ ?.scrollIntoView({ block: 'nearest' });+ } else {+ const active = options()[selected()];+ if (active) choose(active);+ else close();+ }+ };+ document.addEventListener('input', input, true);+ document.addEventListener('focusin', input);+ document.addEventListener('selectionchange', selection);+ document.addEventListener('pointerdown', outside, true);+ document.addEventListener('keydown', key, true);+ onCleanup(() => {+ document.removeEventListener('input', input, true);+ document.removeEventListener('focusin', input);+ document.removeEventListener('selectionchange', selection);+ document.removeEventListener('pointerdown', outside, true);+ document.removeEventListener('keydown', key, true);+ });+ });+ createEffect(() => {+ const current = state();+ if (!current) return;+ const editor = current.editor;+ const previous = [+ 'aria-controls',+ 'aria-expanded',+ 'aria-activedescendant',+ ].map((name) => [name, editor.getAttribute(name)] as const);+ editor.setAttribute('aria-controls', id);+ editor.setAttribute('aria-expanded', 'true');+ const active = options()[selected()];+ if (active)+ editor.setAttribute('aria-activedescendant', `${id}-${active.id}`);+ else editor.removeAttribute('aria-activedescendant');+ onCleanup(() =>+ previous.forEach(([name, value]) =>+ value === null+ ? editor.removeAttribute(name)+ : editor.setAttribute(name, value)+ )+ );+ });+ createEffect(() => {+ const current = state();+ const floating = menuElement();+ if (!current || !floating) return;+ const reference = {+ contextElement: current.editor,+ getBoundingClientRect: () => {+ const rect = current.range?.getBoundingClientRect();+ return rect && (rect.width || rect.height)+ ? rect+ : current.editor.getBoundingClientRect();+ },+ };+ let active = true;+ const reposition = () => {+ void computePosition(reference, floating, {+ strategy: 'fixed',+ placement: 'top-start',+ middleware: [offset(8), flip(), shift({ padding: 12 })],+ }).then(({ x, y }) => {+ if (active) setPosition({ x, y });+ });+ };+ const stop = autoUpdate(current.editor, floating, reposition);+ onCleanup(() => {+ active = false;+ stop();+ });+ });+ return (+ <Show when={state()}>+ <Portal>+ <div class="workspace-demo portal-scope" data-theme="dark">+ <div+ ref={(element) => {+ menu = element;+ setMenuElement(element);+ }}+ class="demo-mention-menu"+ role="listbox"+ aria-label="Mention a demo item"+ id={id}+ style={{ left: `${position().x}px`, top: `${position().y}px` }}+ onPointerDown={(event) => event.preventDefault()}+ onMouseDown={(event) => event.preventDefault()}+ >+ <div class="demo-mention-groups">+ <For each={grouped()}>+ {(group) => (+ <section>+ <div class="demo-mention-heading">+ <span>{group.label}</span>+ <Show when={expanded()}>+ <button+ type="button"+ onClick={() => {+ setExpanded(undefined);+ setSelected(0);+ }}+ >+ ← Back to everything+ </button>+ </Show>+ <Show when={group.all.length > group.items.length}>+ <button+ type="button"+ onClick={() => {+ setExpanded(group.label);+ setSelected(0);+ }}+ >+ View all ({group.all.length})+ </button>+ </Show>+ </div>+ <For each={group.items}>+ {(item) => (+ <button+ type="button"+ role="option"+ id={`${id}-${item.id}`}+ aria-selected={options()[selected()]?.id === item.id}+ class="demo-mention-option"+ onMouseMove={() =>+ setSelected(+ options().findIndex(+ (option) => option.id === item.id+ )+ )+ }+ onClick={() => choose(item)}+ >+ <Show+ when={item.photo}+ fallback={<DemoMentionIcon item={item} />}+ >+ {(photo) => <img src={photo()} alt="" />}+ </Show>+ <span>+ {item.label}+ <Show when={item.detail}>+ <span class="demo-mention-detail">+ {item.detail}+ </span>+ </Show>+ </span>+ </button>+ )}+ </For>+ </section>+ )}+ </For>+ <Show when={!options().length}>+ <p class="demo-mention-empty">No matching demo items</p>+ </Show>+ </div>+ </div>+ </div>+ </Portal>+ </Show>+ );+}diff --git a/apps/marketing/src/features/marketing/components/FeaturePage.tsx b/apps/marketing/src/features/marketing/components/FeaturePage.tsxindex c16078687a..a1fd44f01f 100644--- a/apps/marketing/src/features/marketing/components/FeaturePage.tsx+++ b/apps/marketing/src/features/marketing/components/FeaturePage.tsx@@ -1,6 +1,6 @@import ArrowRight from '@phosphor/arrow-right.svg';import CaretDown from '@phosphor/caret-down.svg';-import { For, type JSX } from 'solid-js';+import { For, type JSX, Show } from 'solid-js';import { ctaHref, handleCtaClick } from '../../../app/utils/utilCta';import palette from '../../../styles/dark-theme.css?inline';import uiStyles from '../../../styles/site-ui.css?inline';@@ -64,7 +64,7 @@ export function FeaturePageSection(props: {/** Same reading measure, quiet rules, and disclosures as onboarding security. */export function FeaturePageFaq(props: {id: string;- eyebrow: string;+ eyebrow?: string;title: string;introduction: JSX.Element;items: readonly { q: string; a: JSX.Element }[];@@ -72,7 +72,9 @@ export function FeaturePageFaq(props: {return (<section class="feature-page-reading" aria-labelledby={props.id}><div class="feature-page-reading-rule" aria-hidden="true" />- <p class="feature-page-eyebrow">{props.eyebrow}</p>+ <Show when={props.eyebrow}>+ <p class="feature-page-eyebrow">{props.eyebrow}</p>+ </Show><h2 id={props.id}>{props.title}</h2><div class="feature-page-prose">{props.introduction}</div><h3>Frequently asked questions</h3>diff --git a/apps/marketing/src/features/marketing/components/HomepageClosing.tsx b/apps/marketing/src/features/marketing/components/HomepageClosing.tsxnew file mode 100644index 0000000000..f235a60b12--- /dev/null+++ b/apps/marketing/src/features/marketing/components/HomepageClosing.tsx@@ -0,0 +1,22 @@+import { onCleanup, onMount } from 'solid-js';+import { animateHomepageCta } from './animateHomepageCta';+import { HomepageReassurance } from './HomepageReassurance';+import './workspace-story.css';++/** The header's app button lands here as the visitor reaches the footer. */+export function HomepageClosing(props: { root?: () => HTMLElement } = {}) {+ let footer!: HTMLElement;+ let destination!: HTMLDivElement;+ onMount(() => {+ onCleanup(+ animateHomepageCta(props.root?.() ?? footer.parentElement!, destination)+ );+ });+ return (+ <footer ref={footer} class="homepage-feature-end workspace-demo">+ <hr class="homepage-closing-rule" />+ <div ref={destination} class="homepage-app-landing" aria-hidden="true" />+ <HomepageReassurance />+ </footer>+ );+}diff --git a/apps/marketing/src/features/marketing/components/HomepageCollaborativeDoc.test.tsx b/apps/marketing/src/features/marketing/components/HomepageCollaborativeDoc.test.tsxnew file mode 100644index 0000000000..cb78941044--- /dev/null+++ b/apps/marketing/src/features/marketing/components/HomepageCollaborativeDoc.test.tsx@@ -0,0 +1,88 @@+import { cleanup, fireEvent, render } from '@solidjs/testing-library';+import { afterEach, beforeEach, expect, it, vi } from 'vitest';+import HomepageCollaborativeDoc from './HomepageCollaborativeDoc';++let intersections: IntersectionObserverCallback[];+let reduced = false;+beforeEach(() => {+ intersections = [];+ reduced = false;+ vi.useFakeTimers();+ vi.stubGlobal('matchMedia', () => ({+ matches: reduced,+ addEventListener() {},+ removeEventListener() {},+ }));+ vi.stubGlobal(+ 'IntersectionObserver',+ class {+ constructor(callback: IntersectionObserverCallback) {+ intersections.push(callback);+ }+ observe() {}+ disconnect() {}+ }+ );+ vi.stubGlobal(+ 'ResizeObserver',+ class {+ observe() {}+ disconnect() {}+ }+ );+});+afterEach(() => {+ cleanup();+ expect(vi.getTimerCount()).toBe(0);+ vi.useRealTimers();+ vi.unstubAllGlobals();+});+function show() {+ for (const callback of intersections)+ callback(+ [{ isIntersecting: true } as IntersectionObserverEntry],+ {} as IntersectionObserver+ );+}++it('restores actual document content in both directions and holds the chosen edit', () => {+ const view = render(() => <HomepageCollaborativeDoc />);+ const slider = view.getByRole('slider', { name: 'Document version history' });+ const scene = view.container.querySelector('.mds')!;+ show();+ fireEvent.input(slider, { target: { value: '1000' } });+ const finished = scene.textContent;+ expect(finished).toContain('Q3 launch plan');+ fireEvent.input(slider, { target: { value: '200' } });+ const earlier = scene.textContent;+ expect(earlier).not.toBe(finished);+ vi.advanceTimersByTime(10000);+ expect(scene.textContent).toBe(earlier);+ fireEvent.input(slider, { target: { value: '1000' } });+ expect(scene.textContent).toBe(finished);+ fireEvent.input(slider, { target: { value: '0' } });+ expect(scene.textContent).not.toContain('Launch owner:');+});++it('pauses autoplay immediately when the handle is grabbed', () => {+ const view = render(() => <HomepageCollaborativeDoc />);+ const slider = view.getByRole('slider') as HTMLInputElement;+ show();+ vi.advanceTimersByTime(2000);+ expect(Number(slider.value)).toBeGreaterThan(0);+ fireEvent.pointerDown(slider);+ const position = slider.value;+ vi.advanceTimersByTime(5000);+ expect(slider.value).toBe(position);+});++it('shows the completed document with reduced motion but still permits scrubbing', () => {+ reduced = true;+ const view = render(() => <HomepageCollaborativeDoc />);+ const slider = view.getByRole('slider') as HTMLInputElement;+ show();+ expect(slider.value).toBe('1000');+ fireEvent.input(slider, { target: { value: '300' } });+ vi.advanceTimersByTime(5000);+ expect(slider.value).toBe('300');+});diff --git a/apps/marketing/src/features/marketing/components/HomepageCollaborativeDoc.tsx b/apps/marketing/src/features/marketing/components/HomepageCollaborativeDoc.tsxindex 3d0d5b0ccf..eeff8b341b 100644--- a/apps/marketing/src/features/marketing/components/HomepageCollaborativeDoc.tsx+++ b/apps/marketing/src/features/marketing/components/HomepageCollaborativeDoc.tsx@@ -1,14 +1,72 @@-import { DocsMarkdownGraphic } from '../../../app/components/featureGraphics/DocsMarkdownScene';+import {+ createEffect,+ createSignal,+ onCleanup,+ onMount,+ untrack,+} from 'solid-js';+import {+ DocsGraphicFrame,+ DocsMarkdownScene,+ REST_T,+} from '../../../app/components/featureGraphics/DocsMarkdownScene';+import { createVisible } from '../../../app/utils/utilVisible';import { HomepageVersionHistory } from './HomepageVersionHistory';import './homepage-collaborative-doc.css';-/** The documents-page document: it types itself, and @ resolves into the workspace. */+/** One playhead drives both Julia's edits and the document history. */export default function HomepageCollaborativeDoc() {+ const [time, setTime] = createSignal(REST_T);+ const [playing, setPlaying] = createSignal(false);+ const [foreground, setForeground] = createSignal(true);+ let root: HTMLDivElement | undefined;+ const visible = createVisible(() => root);+ onMount(() => {+ const motion = window.matchMedia('(prefers-reduced-motion: reduce)');+ if (!motion.matches) {+ setTime(0);+ setPlaying(true);+ }+ const stopForReducedMotion = () => {+ if (motion.matches) setPlaying(false);+ };+ const visibility = () => setForeground(!document.hidden);+ visibility();+ motion.addEventListener('change', stopForReducedMotion);+ document.addEventListener('visibilitychange', visibility);+ onCleanup(() => {+ motion.removeEventListener('change', stopForReducedMotion);+ document.removeEventListener('visibilitychange', visibility);+ });+ });+ createEffect(() => {+ if (!playing() || !visible() || !foreground()) return;+ let last = performance.now();+ let id = 0;+ const tick = (now: number) => {+ const next = Math.min(REST_T, untrack(time) + Math.min(now - last, 64));+ last = now;+ setTime(next);+ if (next === REST_T) setPlaying(false);+ else id = requestAnimationFrame(tick);+ };+ id = requestAnimationFrame(tick);+ onCleanup(() => cancelAnimationFrame(id));+ });return (- <div class="homepage-collaborative-doc">- <DocsMarkdownGraphic />+ <div class="homepage-collaborative-doc" ref={root}>+ <DocsGraphicFrame label="Julia's document edits. Use the version history slider below to move backward or forward through the changes.">+ <DocsMarkdownScene t={time} />+ </DocsGraphicFrame><div class="homepage-doc-timeline">- <HomepageVersionHistory />+ <HomepageVersionHistory+ position={time() / REST_T}+ onPause={() => setPlaying(false)}+ onSeek={(position) => {+ setPlaying(false);+ setTime(position * REST_T);+ }}+ /></div></div>);diff --git a/apps/marketing/src/features/marketing/components/HomepageCrm.tsx b/apps/marketing/src/features/marketing/components/HomepageCrm.tsxindex 02f4514370..e2b1215862 100644--- a/apps/marketing/src/features/marketing/components/HomepageCrm.tsx+++ b/apps/marketing/src/features/marketing/components/HomepageCrm.tsx@@ -47,7 +47,9 @@ function DemoCard(props: { company: Company }) {);}-export default function HomepageCrm() {+export default function HomepageCrm(+ props: { playbackControls?: boolean } = {}+) {const [time, setTime] = createSignal(0);const [paused, setPaused] = createSignal(false);const [visible, setVisible] = createSignal(false);@@ -198,7 +200,7 @@ export default function HomepageCrm() {<span class="homepage-crm-status" role="status">{frame().status}</span>- <Show when={!reduced()}>+ <Show when={!reduced() && props.playbackControls !== false}><div class="flex gap-3 shrink-0"><Show when={!complete()}><buttondiff --git a/apps/marketing/src/features/marketing/components/HomepageDemoCarousel.test.tsx b/apps/marketing/src/features/marketing/components/HomepageDemoCarousel.test.tsxnew file mode 100644index 0000000000..3e7b6740af--- /dev/null+++ b/apps/marketing/src/features/marketing/components/HomepageDemoCarousel.test.tsx@@ -0,0 +1,111 @@+import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';+import { afterEach, beforeEach, expect, it, vi } from 'vitest';+import { HomepageDemoCarousel } from './HomepageDemoCarousel';++let frame: HTMLIFrameElement;+let openView = vi.fn<(label: string | null) => void>();+beforeEach(() => {+ vi.stubGlobal('matchMedia', () => ({ matches: true }));+ frame = document.createElement('iframe');+ document.body.append(frame);+ frame.contentDocument!.body.innerHTML = `<div class="dummy-rail">${['Home', 'Chat', 'Drive', 'Tasks', 'Customers', 'Agents'].map((label) => `<button aria-label="${label}">${label}</button>`).join('')}</div><div class="dummy-sidebar"><button>Next steps for our team</button><button>Fix the deploy pipeline</button></div>`;+ openView = vi.fn();+ frame.contentDocument!.querySelectorAll('button').forEach((button) => {+ button.addEventListener('click', () => openView(button.textContent));+ });+});+afterEach(() => {+ cleanup();+ frame.remove();+ vi.unstubAllGlobals();+});+function mountCarousel() {+ return render(() => <HomepageDemoCarousel frame={() => frame} />);+}+it('starts with the unified Home example and wraps the highlights with keyboard navigation', () => {+ mountCarousel();+ expect(openView.mock.calls.map((call) => call[0])).toEqual([+ 'Home',+ 'Next steps for our team',+ ]);+ fireEvent.click(screen.getByRole('button', { name: 'Previous highlight' }));+ expect(+ screen+ .getByRole('button', { name: 'Show Agents highlight' })+ .getAttribute('aria-pressed')+ ).toBe('true');+ expect(openView).toHaveBeenLastCalledWith('Fix the deploy pipeline');+ fireEvent.keyDown(screen.getByRole('button', { name: 'Next highlight' }), {+ key: 'ArrowRight',+ });+ expect(screen.getByRole('heading').textContent).toContain('One inbox');+});+it('keeps the carousel in place during iframe interaction and cleans up load listeners', () => {+ const view = mountCarousel();+ const heading = screen.getByRole('heading');+ frame.contentDocument!.dispatchEvent(+ new Event('pointerdown', { bubbles: true })+ );+ frame.contentDocument!.dispatchEvent(+ new KeyboardEvent('keydown', { key: 'a', bubbles: true })+ );+ expect(screen.getByRole('heading')).toBe(heading);+ expect(screen.getByRole('button', { name: 'Next highlight' })).toBeTruthy();+ expect(screen.queryByText('Back to highlights')).toBeNull();+ expect(document.querySelector('iframe')).toBe(frame);+ frame+ .contentDocument!.querySelector<HTMLButtonElement>('[aria-label=Chat]')!+ .click();+ expect(screen.getByRole('heading').textContent).toContain(+ 'Agents are first-class participants'+ );+ view.unmount();+ openView.mockClear();+ fireEvent.load(frame);+ expect(openView).not.toHaveBeenCalled();+});++it('captures horizontal drags and ignores vertical or cancelled gestures', () => {+ mountCarousel();+ const pointer = (+ type: string,+ target: Element,+ values: { clientX: number; clientY: number }+ ) => {+ const event = new MouseEvent(type, { bubbles: true, button: 0, ...values });+ Object.defineProperties(event, {+ pointerId: { value: 1 },+ isPrimary: { value: true },+ });+ fireEvent(target, event);+ };+ const carousel = screen.getByRole('region');+ const capture = vi.fn();+ carousel.setPointerCapture = capture;+ const down = {+ pointerId: 1,+ isPrimary: true,+ button: 0,+ clientX: 300,+ clientY: 100,+ };+ pointer('pointerdown', screen.getByRole('heading'), down);+ expect(capture).toHaveBeenCalledWith(1);+ pointer('pointerup', carousel, { ...down, clientX: 200 });+ expect(screen.getByRole('heading').textContent).toContain(+ 'first-class participants'+ );++ pointer('pointerdown', carousel, down);+ pointer('pointerup', carousel, { ...down, clientX: 400 });+ expect(screen.getByRole('heading').textContent).toContain('One inbox');++ pointer('pointerdown', carousel, down);+ pointer('pointerup', carousel, { ...down, clientX: 200, clientY: 250 });+ expect(screen.getByRole('heading').textContent).toContain('One inbox');++ pointer('pointerdown', carousel, down);+ pointer('pointercancel', carousel, down);+ pointer('pointerup', carousel, { ...down, clientX: 200 });+ expect(screen.getByRole('heading').textContent).toContain('One inbox');+});diff --git a/apps/marketing/src/features/marketing/components/HomepageDemoCarousel.tsx b/apps/marketing/src/features/marketing/components/HomepageDemoCarousel.tsxnew file mode 100644index 0000000000..f3fa564437--- /dev/null+++ b/apps/marketing/src/features/marketing/components/HomepageDemoCarousel.tsx@@ -0,0 +1,253 @@+import { createSignal, For, onCleanup, onMount } from 'solid-js';++const SLIDES = [+ {+ label: 'Inbox',+ target: 'Home',+ title: 'One inbox for emails, agents,\ntasks, and messages',+ },+ {+ label: 'Chat',+ target: 'Chat',+ title: 'Agents are first-class participants\nin channels and DMs',+ },+ {+ label: 'Docs',+ target: 'Drive',+ title: 'Agents can edit docs\nas collaborative peers',+ },+ {+ label: 'CRM',+ target: 'Customers',+ title: 'Agents keep deals current\nfrom email and chat',+ },+ {+ label: 'Tasks',+ target: 'Tasks',+ title: 'Tasks from messages and email,\nassigned to people and agents',+ },+ {+ label: 'Agents',+ target: 'Agents',+ title: 'Agents with memory built\nfrom your workspace',+ },+];++function CarouselCaret(props: { direction: 'left' | 'right' }) {+ return (+ <svg aria-hidden="true" width="18" height="18" viewBox="0 0 24 24">+ <path+ d={+ props.direction === 'left'+ ? 'M14.5 5.5 8 12l6.5 6.5'+ : 'M9.5 5.5 16 12l-6.5 6.5'+ }+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+ />+ </svg>+ );+}++/** The live-site highlights over a workspace that is always interactive. */+export function HomepageDemoCarousel(props: {+ frame: () => HTMLIFrameElement;+}) {+ const [active, setActive] = createSignal(0);+ const [ready, setReady] = createSignal(false);+ let document: Document | null = null;+ let transition: Animation | undefined;+ let swipe: { x: number; y: number; pointerId: number } | undefined;+ const slide = () => SLIDES[active()];+ const buttonFor = (target: string) =>+ document?.querySelector<HTMLButtonElement>(+ `.dummy-rail button[aria-label="${target}"]`+ );+ const showView = () => {+ buttonFor(slide().target)?.click();+ // Show an email within Home, keeping its mixed activity sidebar visible.+ if (active() === 0) {+ const email = Array.from(+ document?.querySelectorAll<HTMLButtonElement>(+ '.dummy-sidebar button'+ ) ?? []+ ).find(+ (button) => button.textContent?.trim() === 'Next steps for our team'+ );+ email?.click();+ }+ if (slide().target === 'Drive') {+ Array.from(+ document?.querySelectorAll<HTMLButtonElement>('.dummy-main button') ??+ []+ )+ .find((button) =>+ button.textContent?.trim().startsWith('Q3 launch plan')+ )+ ?.click();+ }+ if (slide().target === 'Tasks') {+ document+ ?.querySelector<HTMLButtonElement>(+ '[aria-label="Open task Write the launch announcement"]'+ )+ ?.click();+ }+ if (slide().target === 'Agents') {+ Array.from(+ document?.querySelectorAll<HTMLButtonElement>(+ '.dummy-sidebar button'+ ) ?? []+ )+ .find(+ (button) => button.textContent?.trim() === 'Fix the deploy pipeline'+ )+ ?.click();+ }+ };+ const select = (index: number) => {+ setActive((index + SLIDES.length) % SLIDES.length);+ showView();+ transition?.cancel();+ if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {+ transition = props.frame().animate([{ opacity: 0.25 }, { opacity: 1 }], {+ duration: 300,+ easing: 'ease-out',+ });+ }+ };++ onMount(() => {+ const frame = props.frame();+ const followNavigation = (event: Event) => {+ const target = event.target as Element | null;+ const button = target?.closest('.dummy-rail button[aria-label]');+ if (!button) return;+ const index = SLIDES.findIndex(+ (item) => item.target === button.getAttribute('aria-label')+ );+ if (index >= 0) setActive(index);+ };+ const observer = new MutationObserver(() => {+ if (!buttonFor('Home')) return;+ observer.disconnect();+ setReady(true);+ showView();+ });+ const attach = () => {+ observer.disconnect();+ document?.removeEventListener('click', followNavigation);+ document = frame.contentDocument;+ document?.addEventListener('click', followNavigation);+ if (buttonFor('Home')) {+ setReady(true);+ showView();+ } else if (document?.body) {+ observer.observe(document.body, { childList: true, subtree: true });+ }+ };+ frame.addEventListener('load', attach);+ attach();+ onCleanup(() => {+ document?.removeEventListener('click', followNavigation);+ observer.disconnect();+ transition?.cancel();+ frame.removeEventListener('load', attach);+ });+ });++ return (+ <div+ class="homepage-demo-carousel"+ aria-roledescription="carousel"+ role="region"+ aria-label="What you can do with Macro"+ onPointerDown={(event) => {+ if (+ !ready() ||+ !event.isPrimary ||+ event.button !== 0 ||+ (event.target as Element).closest('button')+ )+ return;+ swipe = {+ x: event.clientX,+ y: event.clientY,+ pointerId: event.pointerId,+ };+ event.currentTarget.setPointerCapture(event.pointerId);+ }}+ onPointerUp={(event) => {+ if (!swipe || swipe.pointerId !== event.pointerId) return;+ const dx = event.clientX - swipe.x;+ const dy = event.clientY - swipe.y;+ swipe = undefined;+ if (Math.abs(dx) > 48 && Math.abs(dx) > Math.abs(dy) && ready()) {+ select(active() + (dx < 0 ? 1 : -1));+ }+ }}+ onLostPointerCapture={() => {+ swipe = undefined;+ }}+ onPointerCancel={() => {+ swipe = undefined;+ }}+ >+ <div+ class="homepage-demo-slide-controls"+ onKeyDown={(event) => {+ if (+ !ready() ||+ (event.key !== 'ArrowLeft' && event.key !== 'ArrowRight')+ )+ return;+ event.preventDefault();+ select(active() + (event.key === 'ArrowRight' ? 1 : -1));+ }}+ >+ <button+ type="button"+ class="homepage-demo-arrow"+ aria-label="Previous highlight"+ disabled={!ready()}+ onClick={() => select(active() - 1)}+ >+ <CarouselCaret direction="left" />+ </button>+ <For each={SLIDES}>+ {(item, index) => (+ <button+ type="button"+ class="homepage-demo-slide-dot"+ aria-label={`Show ${item.label} highlight`}+ aria-pressed={active() === index()}+ disabled={!ready()}+ onClick={() => select(index())}+ >+ <span />+ </button>+ )}+ </For>+ <button+ type="button"+ class="homepage-demo-arrow"+ aria-label="Next highlight"+ disabled={!ready()}+ onClick={() => select(active() + 1)}+ >+ <CarouselCaret direction="right" />+ </button>+ </div>+ <div+ class="homepage-demo-slide-copy"+ aria-live="polite"+ aria-atomic="true"+ >+ <h2>{slide().title}</h2>+ </div>+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/HomepageEmailCompose.tsx b/apps/marketing/src/features/marketing/components/HomepageEmailCompose.tsxindex c77767d99e..622b531095 100644--- a/apps/marketing/src/features/marketing/components/HomepageEmailCompose.tsx+++ b/apps/marketing/src/features/marketing/components/HomepageEmailCompose.tsx@@ -14,10 +14,14 @@ import './homepage-email-compose.css';/** A frozen website composer. Addresses, attachments, edits, and sends stay local. */export default function HomepageEmailCompose(- props: { appChrome?: boolean } = {}+ props: {+ appChrome?: boolean;+ draft?: { subject: string; to: string; body: string };+ onSend?: (draft: { subject: string; to: string; body: string }) => void;+ } = {}) {const [subject, setSubject] = createSignal(- 'Great meeting you — demo follow-up'+ props.draft?.subject ?? 'Great meeting you — demo follow-up');const [showBcc, setShowBcc] = createSignal(false);const [showFormat, setShowFormat] = createSignal(false);@@ -27,6 +31,9 @@ export default function HomepageEmailCompose(let root: HTMLDivElement | undefined;let body: HTMLDivElement | undefined;let fileInput: HTMLInputElement | undefined;+ const [to, setTo] = createSignal(+ props.draft?.to ?? 'Dana Whitfield <[email protected]>'+ );const disposeMentions: Array<() => void> = [];onCleanup(() => disposeMentions.forEach((dispose) => dispose()));@@ -68,8 +75,17 @@ export default function HomepageEmailCompose(}}}- const generation = createEmailDemoGeneration(() => root, append);- const generating = () => generation.phase() !== 'complete';+ const generation = createEmailDemoGeneration(+ () => (props.draft ? undefined : root),+ append+ );+ const generating = () => !props.draft && generation.phase() !== 'complete';+ const send = () => {+ if (props.onSend) {+ if (!subject().trim() || !to().trim() || !body?.innerText.trim()) return;+ props.onSend({ subject: subject(), to: to(), body: body.innerText });+ } else setSent(true);+ };function addAttachments(files: File[]) {const bytes = [...attachments(), ...files].reduce(@@ -104,7 +120,7 @@ export default function HomepageEmailCompose(!generating()) {event.preventDefault();- setSent(true);+ send();}}}>@@ -153,11 +169,14 @@ export default function HomepageEmailCompose(aria-label={label}value={label === 'To'- ? 'Dana Whitfield <[email protected]>'+ ? to(): label === 'Cc'? 'Julia Westphal <[email protected]>': ''}+ onInput={(event) => {+ if (label === 'To') setTo(event.currentTarget.value);+ }}disabled={generating()}placeholder="Email address"/>@@ -184,7 +203,9 @@ export default function HomepageEmailCompose(aria-label="Email body"aria-multiline="true"aria-disabled={generating()}- />+ >+ {props.draft?.body}+ </div><For each={attachments()}>{(file) => (<div class="homepage-email-attachment">@@ -288,7 +309,7 @@ export default function HomepageEmailCompose(aria-label="Send email"title="Send email"disabled={generating()}- onClick={() => setSent(true)}+ onClick={send}><ArrowUp /></button>@@ -321,7 +342,7 @@ export default function HomepageEmailCompose(appearance="composer"aria-label="Send email"disabled={generating()}- onClick={() => setSent(true)}+ onClick={send}/></Show></div>diff --git a/apps/marketing/src/features/marketing/components/HomepageGithub.tsx b/apps/marketing/src/features/marketing/components/HomepageGithub.tsxnew file mode 100644index 0000000000..b92f22723d--- /dev/null+++ b/apps/marketing/src/features/marketing/components/HomepageGithub.tsx@@ -0,0 +1,152 @@+import { onCleanup, onMount, Show } from 'solid-js';+import {+ ensureGithubStars,+ githubStars,+} from '../../../app/utils/utilGithubStars';+import IconCasa from '../../../assets/designs/design-casa.svg';+import IconIso from '../../../assets/designs/design-iso.svg';+import IconSoc2 from '../../../assets/designs/design-soc2.svg';+import IconGithub from '../../../assets/icons/icon-github.svg';+import LogoA16z from '../../../assets/logos/a16z.svg';+import { animateGithubFlow } from './animateGithubFlow';+import { animateOpenSource } from './animateOpenSource';+import './homepage-github.css';++/** The original open-source proof, fed by the demo's color field. */+export function HomepageGithub(props: { motion?: 'bubbles' } = {}) {+ let section!: HTMLElement;+ onMount(() => {+ ensureGithubStars();+ let scroller = section.parentElement!;+ while (+ scroller.parentElement &&+ !/(auto|scroll)/.test(getComputedStyle(scroller).overflowY)+ ) {+ scroller = scroller.parentElement;+ }+ onCleanup(+ props.motion === 'bubbles'+ ? animateOpenSource(section, scroller)+ : animateGithubFlow(section, scroller)+ );+ });+ return (+ <section+ ref={section}+ class="homepage-open-source"+ aria-labelledby="open-source-title"+ >+ <Show when={props.motion !== 'bubbles'}>+ <svg+ class="homepage-github-flow"+ viewBox="0 0 1200 900"+ preserveAspectRatio="none"+ aria-hidden="true"+ >+ <defs>+ <linearGradient+ id="github-flow-color"+ x1="0"+ y1="0"+ x2="1"+ y2=".65"+ >+ <stop offset="0" stop-color="#635573" />+ <stop offset=".38" stop-color="#266d71" />+ <stop offset=".7" stop-color="#636f46" />+ <stop offset="1" stop-color="#886344" />+ </linearGradient>+ <linearGradient id="github-flow-fade" x1="0" y1="0" x2="0" y2="1">+ <stop offset="0" stop-color="white" stop-opacity="0" />+ <stop offset=".2" stop-color="white" stop-opacity=".35" />+ <stop offset=".65" stop-color="white" />+ <stop offset="1" stop-color="white" stop-opacity=".5" />+ </linearGradient>+ <mask id="github-flow-mask">+ <rect width="1200" height="900" fill="url(#github-flow-fade)" />+ </mask>+ <filter+ id="github-flow-grain"+ x="-10%"+ y="-10%"+ width="120%"+ height="120%"+ >+ <feTurbulence+ type="fractalNoise"+ baseFrequency=".65"+ numOctaves="3"+ stitchTiles="stitch"+ result="noise"+ />+ <feColorMatrix in="noise" type="saturate" values="0" />+ <feBlend in="SourceGraphic" mode="multiply" />+ <feComposite in2="SourceGraphic" operator="in" />+ </filter>+ </defs>+ <g mask="url(#github-flow-mask)">+ <path+ class="homepage-github-liquid"+ fill="url(#github-flow-color)"+ filter="url(#github-flow-grain)"+ />+ <path+ class="homepage-github-current"+ fill="none"+ stroke="#83a6a0"+ stroke-width="1"+ />+ </g>+ </svg>+ </Show>+ <a+ class="homepage-github-link"+ href="https://github.com/macro-inc/macro"+ target="_blank"+ rel="noreferrer"+ aria-label="Explore Macro on GitHub"+ >+ <div class="homepage-github-orbit">+ <div class="homepage-github-mark glass">+ <IconGithub aria-hidden="true" />+ </div>+ </div>+ <span class="homepage-github-stars">+ <Show+ when={githubStars() !== null}+ fallback={<span>Explore the source ↗</span>}+ >+ <span class="homepage-github-star" aria-hidden="true">+ ★+ </span>+ <span>{githubStars()?.toLocaleString('en-US')} stars</span>+ </Show>+ </span>+ </a>+ <h2 id="open-source-title">+ Fully open source.+ <br />+ Yours to build on.+ </h2>+ <p class="homepage-open-source-subtext">+ #1 on GitHub Trending in August.+ <br />+ Read the code. Make it your own.+ </p>+ <div class="homepage-open-source-badges">+ <div class="homepage-open-source-backing">+ <LogoA16z aria-label="Andreessen Horowitz" viewBox="0 0 169 40" />+ <span>Backed by a16z · $30M+ raised</span>+ </div>+ <div class="homepage-open-source-security">+ <div aria-label="Security certifications">+ <IconIso aria-label="ISO 27001" />+ <IconSoc2 aria-label="AICPA SOC 2" />+ <IconCasa aria-label="CASA Tier 2" />+ </div>+ <span>ISO 27001 · SOC 2 · CASA Tier 2</span>+ </div>+ </div>+ </section>+ );+}diff --git a/apps/marketing/src/features/marketing/components/HomepageInteractiveDemo.test.tsx b/apps/marketing/src/features/marketing/components/HomepageInteractiveDemo.test.tsxnew file mode 100644index 0000000000..179c949f21--- /dev/null+++ b/apps/marketing/src/features/marketing/components/HomepageInteractiveDemo.test.tsx@@ -0,0 +1,81 @@+import {+ cleanup,+ fireEvent,+ render,+ screen,+ waitFor,+} from '@solidjs/testing-library';+import { afterEach, beforeEach, expect, it, vi } from 'vitest';+import { HomepageInteractiveDemo } from './HomepageInteractiveDemo';++beforeEach(() => {+ vi.spyOn(window, 'scrollTo').mockImplementation(() => {});+ // JSDOM has no default animation-name; presence detection expects `none`.+ const styles = document.createElement('style');+ styles.textContent = '* { animation-name: none; }';+ styles.id = 'test-animation-default';+ document.head.append(styles);+});+afterEach(() => {+ cleanup();+ document.getElementById('test-animation-default')?.remove();+ vi.restoreAllMocks();+});++it('loads the standalone demo only on demand and restores focus when closed', async () => {+ render(() => <HomepageInteractiveDemo />);+ expect(document.querySelector('iframe')).toBeNull();+ const trigger = screen.getByRole('button', { name: 'Interactive demo' });+ trigger.focus();+ fireEvent.click(trigger);+ await screen.findByRole('dialog', { name: 'Macro · Interactive demo' });+ expect(+ screen.getByTitle('Macro interactive sample workspace').getAttribute('src')+ ).toBe('/demo');+ fireEvent.click(+ screen.getByRole('button', { name: 'Close interactive demo' })+ );+ await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull());+ expect(document.querySelector('iframe')).toBeNull();+ await waitFor(() => expect(document.activeElement).toBe(trigger));+});++it('lets inner controls handle Escape, then closes from inside the frame or the red traffic light', async () => {+ render(() => <HomepageInteractiveDemo />);+ const trigger = screen.getByRole('button', { name: 'Interactive demo' });+ fireEvent.click(trigger);+ const frame = (await screen.findByTitle(+ 'Macro interactive sample workspace'+ )) as HTMLIFrameElement;+ frame.contentDocument!.append(frame.contentDocument!.createElement('html'));+ frame.contentDocument!.documentElement.append(+ frame.contentDocument!.createElement('body')+ );+ fireEvent.load(frame);+ const innerDialog = frame.contentDocument!.createElement('div');+ innerDialog.setAttribute('role', 'dialog');+ frame.contentDocument!.body.append(innerDialog);+ innerDialog.addEventListener('keydown', () => innerDialog.remove());+ innerDialog.dispatchEvent(+ new KeyboardEvent('keydown', { key: 'Escape', bubbles: true })+ );+ await Promise.resolve();+ expect(screen.getByRole('dialog')).toBeTruthy();++ const handled = new KeyboardEvent('keydown', {+ key: 'Escape',+ cancelable: true,+ });+ handled.preventDefault();+ frame.contentDocument!.dispatchEvent(handled);+ expect(screen.getByRole('dialog')).toBeTruthy();+ frame.contentDocument!.dispatchEvent(+ new KeyboardEvent('keydown', { key: 'Escape', bubbles: true })+ );+ await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull());+ fireEvent.click(trigger);+ fireEvent.click(+ await screen.findByRole('button', { name: 'Close demo window' })+ );+ await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull());+});diff --git a/apps/marketing/src/features/marketing/components/HomepageInteractiveDemo.tsx b/apps/marketing/src/features/marketing/components/HomepageInteractiveDemo.tsxnew file mode 100644index 0000000000..bf3023290a--- /dev/null+++ b/apps/marketing/src/features/marketing/components/HomepageInteractiveDemo.tsx@@ -0,0 +1,164 @@+import { Dialog } from '@kobalte/core/dialog';+import X from '@phosphor/x.svg';+import Play from '@phosphor-fill/play-fill.svg';+import { createSignal, onCleanup, onMount, Show } from 'solid-js';+import './homepage-interactive-demo.css';++/** Opens the real standalone sample route, keeping its styles and state isolated. */+export function HomepageInteractiveDemo() {+ const [open, setOpen] = createSignal(false);+ const [loaded, setLoaded] = createSignal(false);+ let host!: HTMLDivElement;+ let path!: SVGPathElement;+ let trigger!: HTMLButtonElement;+ let frameDocument: Document | undefined;+ const onFrameKey = (event: KeyboardEvent) => {+ if (event.key !== 'Escape') return;+ // Capture the layer before its own Escape handler removes it from the DOM.+ const innerLayer = frameDocument?.querySelector(+ '[role="dialog"]:not([data-closed]), [role="alertdialog"]:not([data-closed]), [role="menu"]:not([data-closed]), [role="listbox"]:not([data-closed])'+ );+ if (innerLayer) return;+ const currentDocument = frameDocument;+ queueMicrotask(() => {+ if (!event.defaultPrevented && frameDocument === currentDocument)+ changeOpen(false);+ });+ };+ const releaseFrame = () => {+ frameDocument?.removeEventListener('keydown', onFrameKey, true);+ frameDocument = undefined;+ };+ const changeOpen = (value: boolean) => {+ if (!value) releaseFrame();+ setLoaded(false);+ setOpen(value);+ };+ onCleanup(releaseFrame);++ onMount(() => {+ const anchor = host+ .closest('section')+ ?.querySelector<HTMLElement>('.homepage-sidebar-bottom-anchor');+ if (!anchor) return;+ let scroller = host.parentElement!;+ while (+ scroller.parentElement &&+ !/(auto|scroll)/.test(getComputedStyle(scroller).overflowY)+ )+ scroller = scroller.parentElement;+ const reduced = window.matchMedia('(prefers-reduced-motion: reduce)');+ let start = 0;+ const update = () => {+ const progress = reduced.matches+ ? 1+ : Math.max(0, Math.min(1, (scroller.scrollTop - start) / 150));+ path.style.strokeDashoffset = String(1 - progress);+ };+ const measure = () => {+ const bounds = host.getBoundingClientRect();+ const tip = anchor.getBoundingClientRect();+ const viewport = scroller.getBoundingClientRect();+ const scale = host.clientWidth / bounds.width;+ const x = (tip.left - bounds.left) * scale;+ const y = (tip.top - bounds.top) * scale;+ const center = host.clientWidth / 2;+ path.setAttribute(+ 'd',+ `M${x} ${y} C${x} ${y + 75} ${center} 75 ${center} 150`+ );+ start =+ bounds.top -+ viewport.top ++ scroller.scrollTop -+ scroller.clientHeight * 0.8;+ update();+ };+ const resize = new ResizeObserver(measure);+ resize.observe(host);+ resize.observe(anchor.parentElement!);+ resize.observe(scroller);+ scroller.addEventListener('scroll', update, { passive: true });+ reduced.addEventListener('change', update);+ measure();+ onCleanup(() => {+ resize.disconnect();+ scroller.removeEventListener('scroll', update);+ reduced.removeEventListener('change', update);+ });+ });++ return (+ <div ref={host} class="homepage-interactive-demo">+ <svg class="homepage-demo-connection" fill="none" aria-hidden="true">+ <path ref={path} pathLength="1" />+ </svg>+ <Dialog open={open()} onOpenChange={changeOpen} modal>+ <Dialog.Trigger ref={trigger} class="homepage-demo-launch">+ <span class="homepage-demo-play">+ <Play aria-hidden="true" />+ </span>+ <span class="homepage-demo-label">Interactive demo</span>+ </Dialog.Trigger>+ <Dialog.Portal>+ <Dialog.Overlay class="homepage-demo-overlay" />+ <Dialog.Content+ class="homepage-demo-modal"+ onCloseAutoFocus={(event) => {+ event.preventDefault();+ trigger.focus({ preventScroll: true });+ }}+ >+ <header class="homepage-demo-titlebar">+ <div class="homepage-demo-traffic">+ <Dialog.CloseButton+ class="homepage-demo-red"+ aria-label="Close demo window"+ >+ <X />+ </Dialog.CloseButton>+ <span class="homepage-demo-yellow" aria-hidden="true" />+ <span class="homepage-demo-green" aria-hidden="true" />+ </div>+ <Dialog.Title>Macro · Interactive demo</Dialog.Title>+ <Dialog.CloseButton+ class="homepage-demo-close"+ aria-label="Close interactive demo"+ >+ <X />+ </Dialog.CloseButton>+ </header>+ <Dialog.Description class="homepage-demo-sr-only">+ Explore the sample workspace. Changes stay in this session.+ </Dialog.Description>+ <div class="homepage-demo-frame-wrap">+ <Show when={!loaded()}>+ <div class="homepage-demo-loading" role="status">+ Opening your workspace…+ </div>+ </Show>+ <Show when={open()}>+ <iframe+ src="/demo"+ title="Macro interactive sample workspace"+ class="homepage-demo-frame"+ onLoad={(event) => {+ releaseFrame();+ frameDocument =+ event.currentTarget.contentDocument ?? undefined;+ frameDocument?.addEventListener(+ 'keydown',+ onFrameKey,+ true+ );+ setLoaded(true);+ }}+ />+ </Show>+ </div>+ </Dialog.Content>+ </Dialog.Portal>+ </Dialog>+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/HomepageMobileOpenSource.tsx b/apps/marketing/src/features/marketing/components/HomepageMobileOpenSource.tsxnew file mode 100644index 0000000000..a2ac9b7c6a--- /dev/null+++ b/apps/marketing/src/features/marketing/components/HomepageMobileOpenSource.tsx@@ -0,0 +1,91 @@+import { type JSX, onCleanup, onMount } from 'solid-js';+import { HomepageGithub } from './HomepageGithub';++/** Preserve the original compact story on mobile, without mounting the demo. */+export function HomepageMobileOpenSource(props: { children: JSX.Element }) {+ let connection!: HTMLDivElement;+ let line!: SVGPathElement;++ onMount(() => {+ let scroller: HTMLElement = connection.parentElement!;+ while (+ scroller.parentElement &&+ !/(auto|scroll)/.test(getComputedStyle(scroller).overflowY)+ ) {+ scroller = scroller.parentElement;+ }+ const reduced = window.matchMedia('(prefers-reduced-motion: reduce)');+ const card = connection.querySelector<HTMLElement>(+ '.homepage-sidebar-window'+ )!;+ const anchor = connection.querySelector<HTMLElement>(+ '.homepage-sidebar-line-anchor'+ )!;+ let travel = 1;+ let start = 0;+ let lastProgress = -1;+ const clamp = (value: number) => Math.max(0, Math.min(1, value));+ const update = () => {+ const progress = reduced.matches+ ? 1+ : clamp((scroller.scrollTop - start) / travel);+ if (progress === lastProgress) return;+ lastProgress = progress;+ line.style.strokeDashoffset = `${1 - progress}`;+ };+ const measure = () => {+ const bounds = connection.getBoundingClientRect();+ const tip = anchor.getBoundingClientRect();+ const viewport = scroller.getBoundingClientRect();+ // Cache the document position so scroll never forces layout after the+ // constellation's animation writes earlier in the same event.+ start =+ bounds.top -+ viewport.top ++ scroller.scrollTop -+ scroller.clientHeight * 0.8;+ lastProgress = -1;+ const scale = connection.clientWidth / bounds.width;+ const x = (tip.left - bounds.left) * scale;+ const y = (tip.top - bounds.top) * scale;+ const center = (viewport.left + viewport.width / 2 - bounds.left) * scale;+ const mobile = window.matchMedia('(max-width: 799px)').matches;+ line.setAttribute(+ 'd',+ mobile+ ? `M${center} 0V${y * 0.25}C${center} ${y * 0.65} ${x} ${y * 0.65} ${x} ${y}`+ : `M${x} 0V${y}`+ );+ travel = Math.max(1, y);+ update();+ };+ const resize = new ResizeObserver(measure);+ resize.observe(connection);+ resize.observe(scroller);+ resize.observe(card);+ scroller.addEventListener('scroll', update, { passive: true });+ reduced.addEventListener('change', update);+ measure();+ onCleanup(() => {+ resize.disconnect();+ scroller.removeEventListener('scroll', update);+ reduced.removeEventListener('change', update);+ });+ });++ return (+ <div class="homepage-mobile-story">+ <HomepageGithub motion="bubbles" />+ <div ref={connection} class="homepage-sidebar-connection">+ <svg+ class="homepage-sidebar-connection-line"+ aria-hidden="true"+ fill="none"+ >+ <path ref={line} pathLength="1" />+ </svg>+ {props.children}+ </div>+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/HomepageOpenSource.tsx b/apps/marketing/src/features/marketing/components/HomepageOpenSource.tsxindex e376676ab7..62812dbd0b 100644--- a/apps/marketing/src/features/marketing/components/HomepageOpenSource.tsx+++ b/apps/marketing/src/features/marketing/components/HomepageOpenSource.tsx@@ -1,32 +1,32 @@-import { type JSX, onCleanup, onMount, Show } from 'solid-js';-import {- ensureGithubStars,- githubStars,-} from '../../../app/utils/utilGithubStars';-import IconCasa from '../../../assets/designs/design-casa.svg';-import IconIso from '../../../assets/designs/design-iso.svg';-import IconSoc2 from '../../../assets/designs/design-soc2.svg';-import IconGithub from '../../../assets/icons/icon-github.svg';-import LogoA16z from '../../../assets/logos/a16z.svg';-import { animateOpenSource } from './animateOpenSource';+import { createMediaQuery } from '@solid-primitives/media';+import { createSignal, type JSX, onCleanup, onMount, Show } from 'solid-js';+import { animateDemoEntrance } from './animateDemoEntrance';+import { HomepageDemoCarousel } from './HomepageDemoCarousel';+import { HomepageGithub } from './HomepageGithub';+import { HomepageMobileOpenSource } from './HomepageMobileOpenSource';import './homepage-open-source.css';-/** Open-source proof, connected to the product through native scroll position. */-export function HomepageOpenSource(props: { children: JSX.Element }) {+/** Lead with the live sample workspace; keep open-source proof underneath. */+function DesktopHomepageOpenSource(props: {+ children: JSX.Element;+ showSidebarBreakdown: boolean;+}) {+ const [loaded, setLoaded] = createSignal(false);let section!: HTMLElement;let connection!: HTMLDivElement;+ let frame!: HTMLIFrameElement;let line!: SVGPathElement;onMount(() => {- ensureGithubStars();- let scroller: HTMLElement = connection.parentElement!;+ let scroller: HTMLElement = section.parentElement!;while (scroller.parentElement &&!/(auto|scroll)/.test(getComputedStyle(scroller).overflowY)) {scroller = scroller.parentElement;}- onCleanup(animateOpenSource(section, scroller));+ onCleanup(animateDemoEntrance(section, scroller));+ if (!props.showSidebarBreakdown) return;const reduced = window.matchMedia('(prefers-reduced-motion: reduce)');const card = connection.querySelector<HTMLElement>('.homepage-sidebar-window'@@ -90,68 +90,67 @@ export function HomepageOpenSource(props: { children: JSX.Element }) {<><sectionref={section}- class="homepage-open-source workspace-demo"- aria-labelledby="open-source-title"+ class="homepage-embedded-demo workspace-demo"+ aria-label="Explore Macro interactively"+ id="interactive-demo">- <a- class="homepage-github-link"- href="https://github.com/macro-inc/macro"- target="_blank"- rel="noreferrer"- aria-label="Explore Macro on GitHub"- >- <div class="homepage-github-orbit">- <div class="homepage-github-mark glass">- <IconGithub aria-hidden="true" />+ <div class="homepage-embedded-stage">+ <div class="homepage-embedded-wallpaper">+ <div class="homepage-embedded-window">+ <div class="homepage-embedded-content">+ <Show when={!loaded()}>+ <div class="homepage-embedded-loading" role="status">+ Opening your workspace…+ </div>+ </Show>+ <iframe+ ref={frame}+ src="/demo?embedded=true"+ loading="lazy"+ title="Embedded Macro sample workspace"+ onLoad={() => setLoaded(true)}+ />+ </div></div></div>- <span class="homepage-github-stars">- <Show- when={githubStars() !== null}- fallback={<span>Explore the source ↗</span>}- >- <span class="homepage-github-star" aria-hidden="true">- ★- </span>- <span>{githubStars()?.toLocaleString('en-US')} stars</span>- </Show>- </span>- </a>- <h2 id="open-source-title">- Fully open source.- <br />- Yours to build on.- </h2>- <p class="homepage-open-source-subtext">- #1 on GitHub Trending in August.- <br />- Read the code. Make it your own.- </p>- <div class="homepage-open-source-badges">- <div class="homepage-open-source-backing">- <LogoA16z aria-label="Andreessen Horowitz" viewBox="0 0 169 40" />- <span>Backed by a16z · $30M+ raised</span>- </div>- <div class="homepage-open-source-security">- <div aria-label="Security certifications">- <IconIso aria-label="ISO 27001" />- <IconSoc2 aria-label="AICPA SOC 2" />- <IconCasa aria-label="CASA Tier 2" />- </div>- <span>ISO 27001 · SOC 2 · CASA Tier 2</span>- </div></div>+ <HomepageDemoCarousel frame={() => frame} />+ <HomepageGithub /></section>- <div ref={connection} class="homepage-sidebar-connection">- <svg- class="homepage-sidebar-connection-line"- aria-hidden="true"- fill="none"- >- <path ref={line} pathLength="1" />- </svg>- {props.children}- </div>+ <Show when={props.showSidebarBreakdown}>+ <div ref={connection} class="homepage-sidebar-connection">+ <svg+ class="homepage-sidebar-connection-line"+ aria-hidden="true"+ fill="none"+ >+ <path ref={line} pathLength="1" />+ </svg>+ {props.children}+ </div>+ </Show></>);}++/** Desktop keeps the live workspace; mobile retains the original diagram story. */+export function HomepageOpenSource(props: {+ children: JSX.Element;+ showSidebarBreakdown: boolean;+}) {+ const desktop = createMediaQuery('(min-width: 800px)', true);+ return (+ <Show+ when={desktop()}+ fallback={+ <HomepageMobileOpenSource>{props.children}</HomepageMobileOpenSource>+ }+ >+ <DesktopHomepageOpenSource+ showSidebarBreakdown={props.showSidebarBreakdown}+ >+ {props.children}+ </DesktopHomepageOpenSource>+ </Show>+ );+}diff --git a/apps/marketing/src/features/marketing/components/HomepageSections.tsx b/apps/marketing/src/features/marketing/components/HomepageSections.tsxindex fb5d5cd3da..d6c1267daa 100644--- a/apps/marketing/src/features/marketing/components/HomepageSections.tsx+++ b/apps/marketing/src/features/marketing/components/HomepageSections.tsx@@ -1,9 +1,9 @@import { createMemo, type JSX, lazy, onCleanup, onMount, Show } from 'solid-js';import siteStyles from '../../../app/main/index.css?inline';-import { animateHomepageCta } from './animateHomepageCta';import { DeferredDemo, DemoPlaceholder } from './DeferredDemo';import { HomepageAgentLogos } from './HomepageAgentLogos';import { HomepageBlog } from './HomepageBlog';+import { HomepageClosing } from './HomepageClosing';import {HomepageConversation,type HomepageMessage,@@ -11,11 +11,13 @@ import {import { HomepageFeatureHeading } from './HomepageFeatureHeading';import { HomepageMention } from './HomepageMention';import { HomepageOpenSource } from './HomepageOpenSource';-import { HomepageReassurance } from './HomepageReassurance';import { HomepageSidebar } from './HomepageSidebar';import { HomepageTestimonials } from './HomepageTestimonials';import './workspace-story.css';+// Retain the standalone sidebar breakdown for future use.+const SHOW_SIDEBAR_BREAKDOWN = false;+const loadPullRequest = () => import('./HomepagePullRequest');const loadEmailCompose = () => import('./HomepageEmailCompose');const loadCollaborativeDoc = () => import('./HomepageCollaborativeDoc');@@ -90,10 +92,8 @@ function Feature(props: {export function HomepageSections() {let root!: HTMLDivElement;- let appDestination!: HTMLDivElement;onMount(() => {- onCleanup(animateHomepageCta(root, appDestination));const reduced = window.matchMedia('(prefers-reduced-motion: reduce)');const items = Array.from(root.querySelectorAll<HTMLElement>('.homepage-enter')@@ -144,13 +144,13 @@ export function HomepageSections() {<style>{definitions}</style><style>{`@scope (.homepage-sections) to (.workspace-demo) { ${scopedStyles} }`}</style><div class="homepage-sections-inner">- <HomepageOpenSource>- <HomepageSidebar />+ <HomepageOpenSource showSidebarBreakdown={SHOW_SIDEBAR_BREAKDOWN}>+ <HomepageSidebar showInteractiveDemo={false} /></HomepageOpenSource><Featureid="email"title="Email and chat"- description="A full email client, alongside your team’s conversations, documents, and tasks."+ description="Share live email threads in channels. Ask agents to draft from your emails, documents, and calls."messages={[{person: 'julia',@@ -191,7 +191,7 @@ export function HomepageSections() {<Featureid="documents"title="Documents and tasks"- description="Write together, assign tasks, and link the context behind your work. Keep the plan and the work to ship it in one place."+ description="CRDT documents with live agent edits. Create tasks from messages and link them to the specification."messages={[{person: 'jacob',@@ -220,17 +220,13 @@ export function HomepageSections() {<HomepageCollaborativeDoc /></DeferredDemo></div>- <figcaption>- <span>An audit log for every edit.</span>- Track changes by humans and agents over time.- </figcaption></figure></Feature><Featureid="coding-agents"title="Coding agents"titleAdornment={<HomepageAgentLogos />}- description="Bring your existing agent subs into channels and see the full agent trace inline through to PR."+ description="Use your coding agent subscriptions in channels. Read the diff and follow the task through to a pull request."><DeferredDemopreload={loadPullRequest}@@ -265,7 +261,7 @@ export function HomepageSections() {<Featureid="crm"title="Sales and marketing"- description="CRM, outbound, and marketing automation. Connected across the customer lifecycle."+ description="Companies and contacts created from email. Agents update deal stages and draft customer follow-ups."messages={[{person: 'valentina',@@ -295,15 +291,7 @@ export function HomepageSections() {</Feature><HomepageTestimonials /><HomepageBlog />- <footer class="homepage-feature-end workspace-demo">- <hr class="homepage-closing-rule" />- <div- ref={appDestination}- class="homepage-app-landing"- aria-hidden="true"- />- <HomepageReassurance />- </footer>+ <HomepageClosing root={() => root} /></div></div>);diff --git a/apps/marketing/src/features/marketing/components/HomepageSidebar.tsx b/apps/marketing/src/features/marketing/components/HomepageSidebar.tsxindex a424337cf2..208e839863 100644--- a/apps/marketing/src/features/marketing/components/HomepageSidebar.tsx+++ b/apps/marketing/src/features/marketing/components/HomepageSidebar.tsx@@ -29,6 +29,7 @@ import { Dynamic } from 'solid-js/web';import type { DemoPage } from '../core/workspace-demo';import { createWorkspaceDemo } from '../primitives/createWorkspaceDemo';import { NavGlyph, type NavIcon } from './DemoNavGlyph';+import { HomepageInteractiveDemo } from './HomepageInteractiveDemo';// Keep the unfinished interactive workspace available for a later polish pass.const FULL_DEMO_ENABLED = false;@@ -156,7 +157,7 @@ const CREATE_ITEMS = [] as const;/** A static Home breakdown; the retained full demo has local navigation. */-export function HomepageSidebar() {+export function HomepageSidebar(props: { showInteractiveDemo?: boolean } = {}) {let stage!: HTMLDivElement;let measurePointers = () => {};const demo = createWorkspaceDemo();@@ -286,6 +287,7 @@ export function HomepageSidebar() {}}><span class="homepage-sidebar-line-anchor" aria-hidden="true" />+ <span class="homepage-sidebar-bottom-anchor" aria-hidden="true" /><div class="homepage-sidebar-rail"><Showwhen={expanded()}@@ -518,6 +520,9 @@ export function HomepageSidebar() {</For></div></div>+ <Show when={props.showInteractiveDemo !== false}>+ <HomepageInteractiveDemo />+ </Show><Show when={FULL_DEMO_ENABLED}><divclass="homepage-sidebar-mode"diff --git a/apps/marketing/src/features/marketing/components/HomepageUnification.tsx b/apps/marketing/src/features/marketing/components/HomepageUnification.tsxindex 93bffe3711..d53c5b35ff 100644--- a/apps/marketing/src/features/marketing/components/HomepageUnification.tsx+++ b/apps/marketing/src/features/marketing/components/HomepageUnification.tsx@@ -330,9 +330,9 @@ export function HomepageUnification(<FeatureConstellation expanded /><div class="unification-copy"><div class="unification-before" aria-hidden="true">- One unified interface+ The unified workspace<br />- for all your work.+ for your company.</div><h2 id="unification-heading">Replace 27+ apps@@ -343,11 +343,11 @@ export function HomepageUnification(<span class="unification-subtext-desktop">From email and docs to booking links, databases, and coding agents.<br />- Already connected, with one shared context.+ One search. Bidirectional links. Agent tools across your work.</span><span class="unification-subtext-mobile">From email to docs to booking links, databases, and coding agents.- One shared context.+ One search. Linked work. Agents that can edit it.</span></p></div>diff --git a/apps/marketing/src/features/marketing/components/HomepageVersionHistory.tsx b/apps/marketing/src/features/marketing/components/HomepageVersionHistory.tsxindex 7152c9c49f..4018df9b4a 100644--- a/apps/marketing/src/features/marketing/components/HomepageVersionHistory.tsx+++ b/apps/marketing/src/features/marketing/components/HomepageVersionHistory.tsx@@ -1,9 +1,76 @@+import { createSignal, onCleanup, onMount } from 'solid-js';import { TimelineArtworkBand } from '../../../app/routes/RouteDocuments';-export function HomepageVersionHistory() {+export function HomepageVersionHistory(props: {+ position: number;+ onPause: () => void;+ onSeek: (position: number) => void;+}) {+ let root!: HTMLDivElement;+ const [geometry, setGeometry] = createSignal({+ top: 0,+ left: 0,+ width: 0,+ range: [755, 793] as readonly [number, number],+ });+ onMount(() => {+ const measure = () => {+ const svg = root.querySelector('svg');+ if (!svg) return;+ const bounds = root.getBoundingClientRect();+ const art = svg.getBoundingClientRect();+ if (!art.width || !bounds.width) return;+ const scale = art.width / 1211;+ const left = bounds.width * 0.25;+ const width = bounds.width * 0.5;+ const start = (bounds.left + left - art.left) / scale;+ setGeometry({+ top: art.top - bounds.top + 103 * scale,+ left,+ width,+ range: [start, start + width / scale],+ });+ };+ measure();+ const observer = new ResizeObserver(measure);+ observer.observe(root);+ onCleanup(() => observer.disconnect());+ });return (- <div class="homepage-history">- <TimelineArtworkBand topGap="0px" />+ <div class="homepage-history" ref={root}>+ <TimelineArtworkBand+ topGap="0px"+ position={props.position}+ positionRange={geometry().range}+ />+ <p+ class="homepage-history-caption"+ style={{ top: `${geometry().top}px` }}+ >+ <span>An audit log for every edit.</span>+ Track changes by humans and agents over time.+ </p>+ <input+ class="homepage-history-slider"+ type="range"+ min="0"+ max="1000"+ step="1"+ value={Math.round(props.position * 1000)}+ aria-label="Document version history"+ aria-valuetext={`${Math.round(props.position * 100)}% through Julia's edits`}+ aria-description="Drag to move backward or forward through Julia's edits"+ style={{+ top: `${geometry().top - 22}px`,+ left: `${geometry().left - 22}px`,+ width: `${geometry().width + 44}px`,+ }}+ onPointerDown={props.onPause}+ onKeyDown={props.onPause}+ onInput={(event) =>+ props.onSeek(Number(event.currentTarget.value) / 1000)+ }+ /></div>);}diff --git a/apps/marketing/src/features/marketing/components/SiteHeader.tsx b/apps/marketing/src/features/marketing/components/SiteHeader.tsxindex 028b25c6a2..5252ff1343 100644--- a/apps/marketing/src/features/marketing/components/SiteHeader.tsx+++ b/apps/marketing/src/features/marketing/components/SiteHeader.tsx@@ -6,8 +6,7 @@ const EXPLORE_PAGES = [{ href: '/', label: 'Home' },{ href: '/pricing', label: 'Pricing' },{ href: '/partners', label: 'Partners' },- { href: '/startups', label: 'Startups' },- { href: 'https://cal.com/team/macro/macro-demo-call', label: 'Book demo' },+ { href: 'https://cal.com/team/macro/macro-demo-call', label: 'Talk to us' },];function NavigationGroup(props: {@@ -168,7 +167,7 @@ export function SiteHeader() {target="_blank"rel="noreferrer">- Book demo+ Talk to us</a><aclass="site-nav-start"diff --git a/apps/marketing/src/features/marketing/components/WorkspaceDesktopDemo.tsx b/apps/marketing/src/features/marketing/components/WorkspaceDesktopDemo.tsxnew file mode 100644index 0000000000..61fe939c20--- /dev/null+++ b/apps/marketing/src/features/marketing/components/WorkspaceDesktopDemo.tsx@@ -0,0 +1,65 @@+import { type JSX, lazy, Show } from 'solid-js';+import type { WorkspaceView } from '../core/dummy-workspace';+import { DeferredDemo } from './DeferredDemo';+import './email/email-desktop-demo.css';++const loadWorkspace = () => import('./workspace/DummyWorkspace');+const Workspace = lazy(loadWorkspace);++/** Shared desktop frame around a local, interactive sample workspace. */+export function WorkspaceDesktopDemo(props: {+ view: WorkspaceView;+ label: string;+ caption: string;+ initialDocument?: string;+ children?: JSX.Element;+}) {+ return (+ <section class="email-desktop-demo" aria-label={props.label}>+ <div class="email-desktop-wallpaper">+ <div class="email-desktop-window">+ <div class="email-desktop-titlebar">+ <div class="email-desktop-traffic-lights" aria-hidden="true">+ <span />+ <span />+ <span />+ </div>+ <span>Macro</span>+ <a+ href="/demo"+ target="_blank"+ rel="noreferrer"+ aria-label="Open the sample workspace in a new tab"+ >+ ↗+ </a>+ </div>+ <div class="email-desktop-content">+ <Show+ when={props.children}+ fallback={+ <DeferredDemo+ preload={loadWorkspace}+ fallback={+ <div class="email-desktop-loading" role="status">+ Opening your sample workspace…+ </div>+ }+ >+ <Workspace+ initialView={props.view}+ initialDocument={props.initialDocument}+ embedded+ />+ </DeferredDemo>+ }+ >+ {props.children}+ </Show>+ </div>+ </div>+ </div>+ <p class="email-desktop-caption">{props.caption}</p>+ </section>+ );+}diff --git a/apps/marketing/src/features/marketing/components/agents/AgentStories.tsx b/apps/marketing/src/features/marketing/components/agents/AgentStories.tsxnew file mode 100644index 0000000000..e6762b50f6--- /dev/null+++ b/apps/marketing/src/features/marketing/components/agents/AgentStories.tsx@@ -0,0 +1,307 @@+import FileText from '@phosphor/file-text.svg';+import ListChecks from '@phosphor/list-checks.svg';+import Plus from '@phosphor/plus.svg';+import { createSignal, For, type JSX, Show } from 'solid-js';+import type { DemoAgentMessage } from '../../core/deploy-agent-demo';+import { createDummyWorkspace } from '../../primitives/createDummyWorkspace';+import { createProductWalkthrough } from '../../primitives/createProductWalkthrough';+import { AgentMessage } from '../DemoAgentMessage';+import { ViewShell } from '../DemoWorkspaceChrome';+import { DocumentAgentDemo } from '../documents/DocumentStories';+import { InputActionButton } from '../email/frozen/ActionButton';+import { ChannelComposer } from '../email/frozen/ChannelComposer';+import { HomepageConversation } from '../HomepageConversation';+import HomepageEmailCompose from '../HomepageEmailCompose';+import { ProductDemo } from '../product/ProductPage';+import { ProductWorkspace } from '../product/ProductWorkspace';+import { ModelCatalogPicker } from '../workspace/frozen/model-picker/ModelCatalogPicker';+import { WorkspaceEmail } from '../workspace/WorkspaceEmail';+import '../workspace/dummy-workspace.css';++function message(text: string, user = false): DemoAgentMessage {+ return {+ agentSessionId: 'product-agent-example',+ turn: 0,+ requestId: null,+ pending: false,+ author: user ? { kind: 'user', userId: 'demo-jacob' } : { kind: 'agent' },+ stop: { kind: 'end_turn' },+ parts: [{ kind: 'text', text }],+ };+}++/** Frozen agent conversation, composer, and model picker; no tools or network. */+function AgentSession(props: {+ question: string;+ answer: string;+ result?: JSX.Element;+ onAnswer?: () => void;+ onContext?: () => void;+}) {+ let root!: HTMLDivElement;+ const contextWorkspace = createDummyWorkspace('documents');+ contextWorkspace.open('documents', 'plan');+ const [contextOpen, setContextOpen] = createSignal(false);+ const [stage, setStage] = createSignal(1);+ const [model, setModel] = createSignal('auto');+ const [followups, setFollowups] = createSignal<+ { question: string; answer: string }[]+ >([]);+ const finish = () => {+ props.onAnswer?.();+ setStage(2);+ };+ const playback = createProductWalkthrough({+ root: () => root,+ steps: 3,+ reset: () => {},+ reduced: finish,+ advance: (step) => {+ if (step === 1) setStage(1);+ if (step === 2) finish();+ },+ });+ return (+ <ProductDemo+ ref={(el) => (root = el)}+ label="A specific request in the agent conversation"+ onInteract={playback.pause}+ >+ <Show+ when={contextOpen()}+ fallback={+ <>+ <ViewShell.TopBar>+ <span class="text-sm font-medium">Launch preparation</span>+ <span class="ml-auto text-xs text-ink-extra-muted">+ Sample workspace+ </span>+ </ViewShell.TopBar>+ <div class="dummy-scroll product-agent-log">+ <Show when={stage() > 0}>+ <AgentMessage+ message={message(props.question, true)}+ inFlight={false}+ />+ </Show>+ <Show when={stage() === 2}>+ <AgentMessage+ message={message(props.answer)}+ inFlight={false}+ />+ {props.result}+ </Show>+ <For each={followups()}>+ {(item) => (+ <div class="mt-8">+ <AgentMessage+ message={message(item.question, true)}+ inFlight={false}+ />+ <AgentMessage+ message={message(item.answer)}+ inFlight={false}+ />+ </div>+ )}+ </For>+ </div>+ <div class="dummy-composer sample-chat-composer">+ <ChannelComposer+ agent+ label="Ask sample agent"+ placeholder="Ask about the launch…"+ leadingAction={+ <InputActionButton+ label="Open the launch plan"+ onClick={() => {+ playback.pause();+ if (props.onContext) props.onContext();+ else setContextOpen(true);+ }}+ >+ <Plus />+ </InputActionButton>+ }+ accessory={+ <ModelCatalogPicker+ value={model()}+ options={[+ { id: 'auto', label: 'Auto' },+ { id: 'claude-opus-5', label: 'Opus 5' },+ { id: 'gpt-5', label: 'GPT-5' },+ ]}+ onSelect={setModel}+ ariaLabel="Choose sample model"+ placement="top-end"+ />+ }+ onSend={(question) => {+ playback.pause();+ finish();+ setFollowups((items) => [+ ...items,+ {+ question,+ answer:+ 'In this local example, Teo owns the invite check, Julia owns the announcement, and Jacob owns the final launch checklist. Open the linked work to make changes.',+ },+ ]);+ }}+ />+ </div>+ </>+ }+ >+ <button+ type="button"+ class="px-4 py-2 text-xs text-ink-muted text-left"+ onClick={() => setContextOpen(false)}+ >+ Back to agent conversation+ </button>+ <ProductWorkspace workspace={contextWorkspace} />+ </Show>+ </ProductDemo>+ );+}++export function AgentRequestDemo() {+ return (+ <AgentSession+ question="Which launch tasks still need attention, and who owns each one?"+ answer="Teo is checking the invite handoff. Julia is reviewing the announcement. Jacob’s launch checklist has not started. Check those three items before publishing on Thursday."+ />+ );+}++export function AgentContextDemo() {+ const w = createDummyWorkspace('agents');+ w.setData(+ 'documents',+ (d) => d.id === 'plan',+ 'body',+ '## Thursday’s launch\n\n- Teo: verify the invite flow.\n- Julia: review the announcement.\n- Jacob: confirm the final checklist.'+ );+ const [opened, setOpened] = createSignal(false);+ return (+ <Show+ when={opened()}+ fallback={+ <AgentSession+ question="Read the Q3 launch plan. What needs to happen before Thursday?"+ answer="The plan calls for three checks: Teo verifies the invite flow, Julia reviews the announcement, and Jacob confirms the final checklist. The announcement is the shared draft; keep changes there."+ result={+ <button+ class="dummy-entity-link mt-6"+ type="button"+ onClick={() => {+ w.open('documents', 'plan');+ setOpened(true);+ }}+ >+ <FileText class="size-4 text-document" />+ Q3 launch plan+ </button>+ }+ />+ }+ >+ <ProductDemo label="Read the document used by the agent">+ <ProductWorkspace workspace={w} />+ </ProductDemo>+ </Show>+ );+}++export { DocumentAgentDemo as AgentArtifactDemo };++export function AgentEmailReviewDemo() {+ const [sent, setSent] = createSignal(false);+ const w = createDummyWorkspace('email');+ return (+ <>+ <div class="product-demo-request">+ <HomepageConversation+ messages={[+ {+ person: 'jacob',+ text: '@Claude, draft a follow-up to Dana. Confirm Thursday at 9 and let her know Julia will help with the rollout.',+ },+ ]}+ />+ </div>+ <ProductDemo label="Review and edit an agent’s email draft before sending">+ <ViewShell.TopBar>+ <span class="text-sm font-medium">+ {sent() ? 'Sent to Dana · sample' : 'Draft: Thursday’s rollout'}+ </span>+ </ViewShell.TopBar>+ <div class="dummy-scroll product-email-review">+ <Show+ when={!sent()}+ fallback={<WorkspaceEmail workspace={w} tab="sent" account="all" />}+ >+ <HomepageEmailCompose+ appChrome+ draft={{+ subject: 'Thursday’s rollout',+ to: 'Dana Whitfield <[email protected]>',+ body: 'Hi Dana,\n\nThursday at 9 works for our follow-up. Julia will join us to help your team get started with the rollout.\n\nSee you then,\nJacob',+ }}+ onSend={(draft) => {+ w.sendEmail(draft.subject, draft.body, draft.to);+ w.open('email', w.data.emails[0].id);+ setSent(true);+ }}+ />+ </Show>+ </div>+ </ProductDemo>+ </>+ );+}++export function AgentTaskResultDemo() {+ const w = createDummyWorkspace('agents');+ const [taskId, setTaskId] = createSignal('');+ const [opened, setOpened] = createSignal(false);+ const create = () => {+ if (taskId()) return;+ const task = w.createTask(+ 'Review Thursday’s launch checks',+ 'Confirm the invite flow, announcement, and final checklist before publishing.'+ );+ setTaskId(task);+ w.open('agents', 'launch-status');+ };+ return (+ <Show+ when={opened()}+ fallback={+ <AgentSession+ question="Create a task to review Thursday’s launch checks. Include the invite flow, announcement, and final checklist."+ answer="I created Review Thursday’s launch checks. Open it to assign an owner, set the priority, and add your final checks."+ onAnswer={create}+ result={+ <button+ class="dummy-entity-link mt-6"+ type="button"+ onClick={() => {+ w.open('tasks', taskId());+ setOpened(true);+ }}+ >+ <ListChecks class="size-4 text-task" />+ Review Thursday’s launch checks+ </button>+ }+ />+ }+ >+ <ProductDemo label="Continue with the task in its ordinary task view">+ <ProductWorkspace workspace={w} />+ </ProductDemo>+ </Show>+ );+}diff --git a/apps/marketing/src/features/marketing/components/animateDemoEntrance.ts b/apps/marketing/src/features/marketing/components/animateDemoEntrance.tsnew file mode 100644index 0000000000..770457d770--- /dev/null+++ b/apps/marketing/src/features/marketing/components/animateDemoEntrance.ts@@ -0,0 +1,253 @@+/** Carry the feature bubbles into a grainy color field, then open the workspace. */+export function animateDemoEntrance(+ section: HTMLElement,+ scroller: HTMLElement+) {+ const reduced = window.matchMedia('(prefers-reduced-motion: reduce)');+ let sourceSection = scroller.querySelector('.homepage-unification');+ const target = section.querySelector<HTMLElement>(+ '.homepage-embedded-wallpaper'+ )!;+ const animations: Animation[] = [];+ const sources = new Map<HTMLElement, string>();+ let overlay: HTMLDivElement | undefined;+ let start = 0;+ let distance = 1;+ let prepared = false;+ let lastProgress = -1;+ let traveling = false;+ let engaged = false;++ const clear = () => {+ animations.forEach((animation) => animation.cancel());+ animations.length = 0;+ for (const [source, visibility] of sources)+ source.style.visibility = visibility;+ sources.clear();+ overlay?.remove();+ overlay = undefined;+ prepared = false;+ lastProgress = -1;+ traveling = false;+ };+ const animate = (+ element: Element,+ frames: Keyframe[],+ duration: number,+ delay = 0+ ) => {+ const animation = element.animate(frames, {+ duration,+ delay,+ easing: 'linear',+ fill: 'both',+ });+ animation.pause();+ animation.currentTime = 0;+ animations.push(animation);+ };+ const prepare = () => {+ prepared = true;+ overlay = document.createElement('div');+ overlay.className = 'homepage-demo-travel';+ overlay.setAttribute('aria-hidden', 'true');+ overlay.inert = true;+ section.append(overlay);+ const origin = section.getBoundingClientRect();+ const destination = target.getBoundingClientRect();+ const scale = section.offsetWidth / origin.width;+ const icons =+ sourceSection?.querySelectorAll<HTMLElement>(+ '.feature-flow-icon, .feature-flow-core'+ ) ?? [];+ // Read every source before inserting ghosts or starting animations. Mixing+ // these reads with DOM writes forces a layout for each of the 17 bubbles.+ const snapshots = Array.from(icons, (source) => {+ const styles = getComputedStyle(source);+ const svg = source.querySelector('svg');+ const svgStyles = svg ? getComputedStyle(svg) : undefined;+ return {+ source,+ rect: source.getBoundingClientRect(),+ background: styles.background,+ borderRadius: styles.borderRadius,+ boxShadow: styles.boxShadow,+ color: styles.color,+ svgWidth: svgStyles?.width,+ svgHeight: svgStyles?.height,+ };+ });+ snapshots.forEach(+ ({ source, rect, svgWidth, svgHeight, ...surface }, index) => {+ const ghost = source.cloneNode(true) as HTMLElement;+ ghost.removeAttribute('id');+ ghost+ .querySelectorAll('[id]')+ .forEach((node) => node.removeAttribute('id'));+ Object.assign(ghost.style, {+ position: 'absolute',+ left: `${(rect.left - origin.left) * scale}px`,+ top: `${(rect.top - origin.top) * scale}px`,+ width: `${rect.width * scale}px`,+ height: `${rect.height * scale}px`,+ margin: '0',+ transform: 'none',+ animation: 'none',+ ...surface,+ backdropFilter: 'none',+ willChange: 'transform, opacity',+ visibility: 'visible',+ });+ const ghostSvg = ghost.querySelector('svg');+ if (ghostSvg && svgWidth && svgHeight) {+ ghostSvg.style.width = svgWidth;+ ghostSvg.style.height = svgHeight;+ }+ overlay!.append(ghost);+ sources.set(source, source.style.visibility);+ const dx =+ (destination.left ++ destination.width / 2 -+ rect.left -+ rect.width / 2) *+ scale;+ const dy =+ (destination.top ++ destination.height / 2 -+ rect.top -+ rect.height / 2) *+ scale;+ animate(+ ghost,+ [+ { transform: 'translate(0, 0) scale(1)', opacity: 0, offset: 0 },+ { opacity: 0.75, offset: 0.12 },+ { opacity: 0.45, offset: 0.55 },+ {+ transform: `translate(${dx}px, ${dy}px) scale(.18)`,+ opacity: 0,+ offset: 1,+ },+ ],+ 1100,+ index * (350 / Math.max(1, icons.length - 1))+ );+ }+ );+ animate(+ target,+ [+ { opacity: 0, clipPath: 'inset(42% 46% round 200px)' },+ { opacity: 0.8, clipPath: 'inset(35% 39% round 160px)', offset: 0.2 },+ { opacity: 1, clipPath: 'inset(0% 0% round 10px)' },+ ],+ 850,+ 500+ );+ const window = section.querySelector('.homepage-embedded-window')!;+ animate(+ window,+ [+ { opacity: 0, transform: 'scale(.94)' },+ { opacity: 1, transform: 'scale(1)' },+ ],+ 500,+ 950+ );+ animate(+ section.querySelector('.homepage-demo-carousel')!,+ [{ opacity: 0 }, { opacity: 1 }],+ 250,+ 1200+ );+ };+ const update = () => {+ // A live edit can replace the constellation without remounting this+ // section. Detached sources measure as zero-sized boxes at (0, 0).+ const currentSource = scroller.querySelector('.homepage-unification');+ if (currentSource !== sourceSection) {+ if (sourceSection) resize.unobserve(sourceSection);+ sourceSection = currentSource;+ if (sourceSection) resize.observe(sourceSection);+ measure();+ return;+ }+ if (reduced.matches || engaged) return;+ const progress = Math.max(+ 0,+ Math.min(1, (scroller.scrollTop - start) / distance)+ );+ if (progress === lastProgress) return;+ lastProgress = progress;+ if (!prepared && progress > 0) prepare();+ animations.forEach((animation) => {+ animation.currentTime = progress * 1450;+ });+ if (overlay) overlay.hidden = progress === 0 || progress === 1;+ const active = progress > 0 && progress < 1;+ if (active !== traveling) {+ traveling = active;+ for (const [source, visibility] of sources) {+ source.style.visibility = active ? 'hidden' : visibility;+ }+ }+ };+ const measure = () => {+ clear();+ const viewport = scroller.getBoundingClientRect();+ const top =+ section.getBoundingClientRect().top - viewport.top + scroller.scrollTop;+ const center =+ target.getBoundingClientRect().top -+ viewport.top ++ scroller.scrollTop ++ target.offsetHeight / 2;+ // Start the reveal 100px earlier.+ const advance = 100;+ start = top - scroller.clientHeight * 0.82 - advance;+ // Finish 250px before the workspace reaches the viewport center.+ distance = Math.max(+ 1,+ center - scroller.clientHeight * 0.5 - 150 - advance - start+ );+ update();+ };+ // Once somebody uses the workspace, scrolling must never hide their work.+ const settle = () => {+ engaged = true;+ clear();+ };+ const frame = target.querySelector('iframe');+ let frameDocument: Document | null = null;+ const releaseFrame = () => {+ frameDocument?.removeEventListener('pointerdown', settle);+ frameDocument?.removeEventListener('focusin', settle);+ };+ const attachFrame = () => {+ releaseFrame();+ frameDocument = frame?.contentDocument ?? null;+ frameDocument?.addEventListener('pointerdown', settle);+ frameDocument?.addEventListener('focusin', settle);+ };+ frame?.addEventListener('load', attachFrame);+ attachFrame();+ target.addEventListener('pointerdown', settle);+ section.addEventListener('focusin', settle);+ const resize = new ResizeObserver(measure);+ resize.observe(section);+ resize.observe(scroller);+ if (sourceSection) resize.observe(sourceSection);+ scroller.addEventListener('scroll', update, { passive: true });+ reduced.addEventListener('change', measure);+ measure();+ return () => {+ releaseFrame();+ frame?.removeEventListener('load', attachFrame);+ target.removeEventListener('pointerdown', settle);+ section.removeEventListener('focusin', settle);+ resize.disconnect();+ scroller.removeEventListener('scroll', update);+ reduced.removeEventListener('change', measure);+ clear();+ };+}diff --git a/apps/marketing/src/features/marketing/components/animateGithubFlow.ts b/apps/marketing/src/features/marketing/components/animateGithubFlow.tsnew file mode 100644index 0000000000..1b0c58bddd--- /dev/null+++ b/apps/marketing/src/features/marketing/components/animateGithubFlow.ts@@ -0,0 +1,84 @@+/** Morph a continuous ribbon of the demo gradient into the GitHub mark. */+export function animateGithubFlow(section: HTMLElement, scroller: HTMLElement) {+ const reduced = window.matchMedia('(prefers-reduced-motion: reduce)');+ const stage = section.parentElement!.querySelector<HTMLElement>(+ '.homepage-embedded-wallpaper'+ )!;+ const flow = section.querySelector<SVGSVGElement>('.homepage-github-flow')!;+ const liquid = flow.querySelector<SVGPathElement>('.homepage-github-liquid')!;+ const current = flow.querySelector<SVGPathElement>(+ '.homepage-github-current'+ )!;+ const mark = section.querySelector<HTMLElement>('.homepage-github-mark')!;+ let start = 0;+ let distance = 1;+ let last = -1;+ const clamp = (value: number) => Math.max(0, Math.min(1, value));+ const update = () => {+ const progress = reduced.matches+ ? 1+ : clamp((scroller.scrollTop - start) / distance);+ if (last === progress) return;+ last = progress;+ const gathering = clamp(progress / 0.72);+ const draining = clamp((progress - 0.72) / 0.28);+ const reach = 260 + 640 * (1 - (1 - gathering) ** 3);+ const bend = Math.sin(gathering * Math.PI) * 55;+ const neck = 8 + (1 - gathering) * 36;+ // One curved surface gathers into a narrow neck; it never breaks into particles.+ liquid.setAttribute(+ 'd',+ `M 0 0 C 80 180, ${390 + bend} ${reach * 0.12}, ${460 + bend} ${reach * 0.43} C ${500 + bend} ${reach * 0.64}, ${600 - neck} ${reach * 0.72}, ${600 - neck} ${reach - 55} Q ${600 - neck} ${reach}, 600 ${reach} Q ${600 + neck} ${reach}, ${600 + neck} ${reach - 55} C ${600 + neck} ${reach * 0.7}, ${710 + bend} ${reach * 0.55}, ${760 + bend} ${reach * 0.3} C ${820 + bend} ${reach * 0.1}, 1100 180, 1200 0 Z`+ );+ current.setAttribute(+ 'd',+ `M 1060 0 C 930 180, ${745 + bend} ${reach * 0.12}, ${710 + bend} ${reach * 0.39} S 610 ${reach * 0.76}, 604 ${reach - 20}`+ );+ flow.style.opacity = `${clamp(progress * 4) * (1 - draining ** 3)}`;+ flow.style.maskImage =+ draining > 0+ ? `linear-gradient(to bottom, transparent ${Math.max(0, draining * 100 - 12)}%, black ${draining * 100}%)`+ : 'none';+ const power = clamp((progress - 0.45) / 0.3);+ section.style.setProperty('--github-power', `${power}`);+ section.style.setProperty('--github-scale', `${0.86 + 0.14 * power}`);+ };+ const measure = () => {+ const bounds = section.getBoundingClientRect();+ const source = stage.getBoundingClientRect();+ const target = mark.getBoundingClientRect();+ const viewport = scroller.getBoundingClientRect();+ const scale = section.offsetWidth / bounds.width;+ const top = (source.bottom - 220 - bounds.top) * scale;+ const end = (target.top + target.height / 2 - bounds.top) * scale;+ flow.style.top = `${top}px`;+ flow.style.height = `${Math.max(1, end - top)}px`;+ start =+ source.bottom -+ viewport.top ++ scroller.scrollTop -+ scroller.clientHeight * 0.85;+ distance = Math.max(+ 1,+ target.top ++ target.height / 2 -+ viewport.top ++ scroller.scrollTop -+ scroller.clientHeight * 0.32 -+ start+ );+ last = -1;+ update();+ };+ const resize = new ResizeObserver(measure);+ resize.observe(section.parentElement!);+ resize.observe(scroller);+ scroller.addEventListener('scroll', update, { passive: true });+ reduced.addEventListener('change', measure);+ measure();+ return () => {+ resize.disconnect();+ scroller.removeEventListener('scroll', update);+ reduced.removeEventListener('change', measure);+ };+}diff --git a/apps/marketing/src/features/marketing/components/animateHomepageCta.ts b/apps/marketing/src/features/marketing/components/animateHomepageCta.tsindex e078e62c8e..868f768e8b 100644--- a/apps/marketing/src/features/marketing/components/animateHomepageCta.ts+++ b/apps/marketing/src/features/marketing/components/animateHomepageCta.ts@@ -6,7 +6,7 @@ export function animateHomepageCta(destination: HTMLElement) {const button = root- .closest('.onboarding-flow')+ .closest('.onboarding-flow, #app-scroll-root')?.querySelector<HTMLAnchorElement>('.site-header .site-nav-start');if (!button) return () => {};let scroller = root.parentElement!;diff --git a/apps/marketing/src/features/marketing/components/calls/CallStories.tsx b/apps/marketing/src/features/marketing/components/calls/CallStories.tsxnew file mode 100644index 0000000000..c263462fd3--- /dev/null+++ b/apps/marketing/src/features/marketing/components/calls/CallStories.tsx@@ -0,0 +1,285 @@+import ArrowLeft from '@phosphor/arrow-left.svg';+import PhoneCall from '@phosphor/phone-call.svg';+import Share from '@phosphor/share.svg';+import { Button } from '@ui';+import { createSignal, For, Show } from 'solid-js';+import type { HomepagePersonId } from '../../core/homepage-demo-people';+import { createDummyWorkspace } from '../../primitives/createDummyWorkspace';+import { createProductWalkthrough } from '../../primitives/createProductWalkthrough';+import { ViewShell } from '../DemoWorkspaceChrome';+import { HomepageConversation } from '../HomepageConversation';+import { ProductDemo } from '../product/ProductPage';+import { ProductShareDialog } from '../product/ProductShareDialog';+import { ProductWorkspace } from '../product/ProductWorkspace';+import { PersonIcon } from '../workspace/frozen/TaskProperties';+import '../workspace/dummy-workspace.css';++const transcript: {+ person: HomepagePersonId;+ name: string;+ time: string;+ text: string;+}[] = [+ {+ person: 'jacob',+ name: 'Jacob Beckerman',+ time: '0:12',+ text: 'Let’s confirm the last checks for Thursday’s launch.',+ },+ {+ person: 'teo',+ name: 'Teo Nys',+ time: '0:48',+ text: 'I’ll verify the invite flow before we publish. The handoff needs one final check.',+ },+ {+ person: 'julia',+ name: 'Julia Westphal',+ time: '1:24',+ text: 'I’ll finish the announcement after Teo confirms the invite flow.',+ },+];++/** Presentation from CallRecordingBody and CallTranscript; fictional local data. */+export function ProductCallRecord(props: {+ transcriptOnly?: boolean;+ selected?: string;+ onSelect?: (time: string) => void;+ onBack?: () => void;+ onShare?: () => void;+}) {+ const [localTime, setLocalTime] = createSignal('');+ const [sharing, setSharing] = createSignal(false);+ const selected = () => props.selected ?? localTime();+ return (+ <>+ <ViewShell.TopBar>+ <Show when={props.onBack}>+ <Button+ variant="plain"+ size="icon-sm"+ label="Back to channel calls"+ onClick={props.onBack}+ >+ <ArrowLeft />+ </Button>+ </Show>+ <PhoneCall class="size-4 text-ink-muted" />+ <span class="text-sm font-medium">Launch check-in</span>+ <Button+ variant="plain"+ size="sm"+ class="ml-auto"+ onClick={() => {+ props.onShare?.();+ setSharing(true);+ }}+ >+ <Share class="size-4" />+ Share+ </Button>+ </ViewShell.TopBar>+ <div class="dummy-scroll product-call-body">+ <header>+ <h1>Launch check-in</h1>+ <p>+ Sep 24, 2026 · 9:30 AM <span>·</span> 12m 18s+ </p>+ </header>+ <Show when={!props.transcriptOnly}>+ <section>+ <h3>+ Participants <span>3</span>+ </h3>+ <div class="product-call-participants">+ <For each={['jacob', 'teo', 'julia'] as const}>+ {(person) => (+ <span>+ <PersonIcon person={person} />+ {person}@launch.example+ </span>+ )}+ </For>+ </div>+ </section>+ <section>+ <h3>Summary</h3>+ <p>+ The team confirmed Thursday’s launch. Teo will verify the invite+ flow; Julia will finish the announcement after that check. Jacob+ will review the final checklist before publishing.+ </p>+ </section>+ </Show>+ <section>+ <h3>Transcript</h3>+ <div class="product-call-transcript">+ <For each={transcript}>+ {(segment) => (+ <button+ type="button"+ class="product-call-segment"+ aria-label={`Go to ${segment.time}: ${segment.name}`}+ aria-pressed={selected() === segment.time}+ onClick={() => {+ setLocalTime(segment.time);+ props.onSelect?.(segment.time);+ }}+ >+ <PersonIcon person={segment.person} />+ <span>+ <span class="product-call-speaker">+ {segment.name}+ <span>{segment.time}</span>+ </span>+ <span class="product-call-words">{segment.text}</span>+ </span>+ </button>+ )}+ </For>+ </div>+ </section>+ </div>+ <ProductShareDialog+ open={sharing()}+ title="Launch check-in"+ kind="call"+ onClose={() => setSharing(false)}+ />+ </>+ );+}++export function CallArchiveDemo(props: { animate?: boolean } = {}) {+ let root!: HTMLDivElement;+ const [opened, setOpened] = createSignal(false);+ const playback = createProductWalkthrough({+ root: () => root,+ steps: 3,+ reset: () => {},+ reduced: () => {+ if (props.animate) setOpened(true);+ },+ advance: (s) => {+ if (props.animate && s === 2) setOpened(true);+ },+ });+ return (+ <ProductDemo+ ref={(el) => (root = el)}+ label="Open a call from the channel’s Calls tab"+ onInteract={playback.pause}+ >+ <Show+ when={opened()}+ fallback={+ <>+ <ViewShell.TopBar>+ <span class="text-sm font-medium"># launch</span>+ <span class="ml-4 text-xs text-ink-muted">Messages</span>+ <span class="ml-3 text-xs text-ink-muted">Attachments</span>+ <span class="ml-3 text-xs">Calls</span>+ </ViewShell.TopBar>+ <div class="dummy-scroll product-call-list">+ <p>Channel calls</p>+ <button type="button" onClick={() => setOpened(true)}>+ <PhoneCall class="size-4 text-ink-muted" />+ <span>+ Launch check-in+ <span class="text-xs text-ink-muted">launch · 12m 18s</span>+ </span>+ <span class="product-call-list-people">+ <PersonIcon person="jacob" />+ <PersonIcon person="teo" />+ <PersonIcon person="julia" />+ </span>+ <span>Sep 24</span>+ </button>+ </div>+ </>+ }+ >+ <ProductCallRecord onBack={() => setOpened(false)} />+ </Show>+ </ProductDemo>+ );+}++export function CallTranscriptDemo() {+ let root!: HTMLDivElement;+ const [selected, setSelected] = createSignal('');+ const playback = createProductWalkthrough({+ root: () => root,+ steps: 3,+ reset: () => {},+ reduced: () => setSelected('0:48'),+ advance: (s) => {+ if (s === 2) setSelected('0:48');+ },+ });+ return (+ <ProductDemo+ ref={(el) => (root = el)}+ label="Return to the invite decision in the transcript"+ onInteract={playback.pause}+ >+ <ProductCallRecord+ transcriptOnly+ selected={selected()}+ onSelect={setSelected}+ />+ </ProductDemo>+ );+}++export function CallFollowupDemo() {+ let root!: HTMLDivElement;+ const w = createDummyWorkspace('tasks');+ w.open('tasks', 'invite');+ w.updateTask('invite', { owner: 'teo', status: 'Not Started' });+ const finish = () =>+ w.updateTask('invite', {+ description:+ 'From the launch check-in at 0:48: verify the invite flow before Thursday’s launch. Confirm the handoff before Julia finishes the announcement.',+ owner: 'teo',+ priority: 'High',+ status: 'Not Started',+ });+ const playback = createProductWalkthrough({+ root: () => root,+ steps: 3,+ reset: () => {},+ reduced: finish,+ advance: (s) => {+ if (s === 2) finish();+ },+ });+ return (+ <div ref={root} onPointerDown={playback.pause} onKeyDown={playback.pause}>+ <div class="product-demo-request">+ <HomepageConversation+ messages={[+ {+ person: 'jacob',+ text: '@Claude, use the launch check-in to update Teo’s invite task with the agreement and the next step.',+ },+ ]}+ />+ </div>+ <ProductDemo+ label="Use the call agreement in a task"+ onInteract={playback.pause}+ >+ <ProductWorkspace workspace={w} />+ </ProductDemo>+ </div>+ );+}++export function CallSharingDemo() {+ return (+ <ProductDemo label="Give a teammate access to the call context">+ <ProductCallRecord />+ </ProductDemo>+ );+}diff --git a/apps/marketing/src/features/marketing/components/channels/ChannelStories.tsx b/apps/marketing/src/features/marketing/components/channels/ChannelStories.tsxnew file mode 100644index 0000000000..7aa97bca3b--- /dev/null+++ b/apps/marketing/src/features/marketing/components/channels/ChannelStories.tsx@@ -0,0 +1,177 @@+import Sidebar from '@phosphor/sidebar-simple.svg';+import { createMediaQuery } from '@solid-primitives/media';+import { createSignal, Show } from 'solid-js';+import { createDummyWorkspace } from '../../primitives/createDummyWorkspace';+import { createProductWalkthrough } from '../../primitives/createProductWalkthrough';+import { ProductDemo } from '../product/ProductPage';+import { ProductWorkspace } from '../product/ProductWorkspace';+import { TaskFromMessageDemo } from '../tasks/TaskStories';+import { WorkspaceSidebar } from '../workspace/WorkspaceSidebar';+import '../workspace/dummy-workspace.css';++export { TaskFromMessageDemo as ChannelTaskDemo };++export function ChannelSharedWorkDemo() {+ let root!: HTMLDivElement;+ const w = createDummyWorkspace('messages');+ w.setData('channels', (c) => c.id === 'launch', 'messages', [+ {+ id: 'plan-request',+ person: 'julia',+ body: 'Here’s the Thursday launch plan. Can you check the owners before we share it?',+ time: '9:15 AM',+ documentId: 'plan',+ },+ {+ id: 'plan-reply',+ person: 'teo',+ body: 'I’ll check the invite flow and add the last details there.',+ time: '9:17 AM',+ },+ ]);+ const open = () => w.open('documents', 'plan');+ const playback = createProductWalkthrough({+ root: () => root,+ steps: 3,+ reset: () => {},+ reduced: open,+ advance: (step) => {+ if (step === 2) open();+ },+ });+ return (+ <ProductDemo+ ref={(el) => (root = el)}+ label="Open a document shared in a channel"+ onInteract={playback.pause}+ >+ <ProductWorkspace workspace={w} />+ </ProductDemo>+ );+}++export function ChannelAgentDemo() {+ let root!: HTMLDivElement;+ const w = createDummyWorkspace('messages');+ const initial = [+ {+ id: 'decision',+ person: 'teo' as const,+ body: 'The invite fix is in progress. I’m taking it; Julia has the announcement. The launch is Thursday.',+ time: '9:20 AM',+ },+ {+ id: 'catchup',+ person: 'jacob' as const,+ body: '@Claude, catch me up on the launch decisions and who owns the work.',+ time: '9:28 AM',+ },+ ];+ w.setData('channels', (c) => c.id === 'launch', 'messages', initial);+ const finish = () =>+ w.setData('channels', (c) => c.id === 'launch', 'messages', [+ ...initial,+ {+ id: 'agent-summary',+ person: 'claude',+ body: 'Thursday’s launch is the target. Teo owns the invite fix; Julia owns the announcement. The invite task is still in progress.',+ time: '9:29 AM',+ taskId: 'invite',+ },+ ]);+ const playback = createProductWalkthrough({+ root: () => root,+ steps: 3,+ reset: () => {},+ reduced: finish,+ advance: (s) => {+ if (s === 2) finish();+ },+ });+ return (+ <ProductDemo+ ref={(el) => (root = el)}+ label="Catch up with an agent using the channel context"+ onInteract={playback.pause}+ >+ <ProductWorkspace workspace={w} />+ </ProductDemo>+ );+}++export function ChannelThreadDemo() {+ const w = createDummyWorkspace('messages');+ w.setData('channels', (c) => c.id === 'launch', 'messages', [+ {+ id: 'root',+ person: 'julia',+ body: 'Can we confirm the announcement wording here before publishing?',+ time: '9:30 AM',+ documentId: 'plan',+ },+ {+ id: 'reply-1',+ person: 'teo',+ body: 'Yes. Keep the invite flow in the first paragraph.',+ time: '9:32 AM',+ replyTo: 'root',+ },+ {+ id: 'reply-2',+ person: 'jacob',+ body: 'Agreed. The team should see what changes for them.',+ time: '9:34 AM',+ replyTo: 'root',+ },+ {+ id: 'next',+ person: 'julia',+ body: 'The product demo is ready too. I’ll add it to the launch plan.',+ time: '9:38 AM',+ },+ ]);+ return (+ <ProductDemo label="Expand a thread and reply in place">+ <ProductWorkspace workspace={w} />+ </ProductDemo>+ );+}++export function ChannelNavigationDemo() {+ const [collapsed, setCollapsed] = createSignal(false);+ const mobile = createMediaQuery('(max-width: 699px)');+ const w = createDummyWorkspace('messages');+ return (+ <ProductDemo label="Find channels and direct messages">+ <div class="product-sidebared-scene">+ <Show when={!collapsed()}>+ <WorkspaceSidebar+ workspace={w}+ title="Chat"+ collapse={() => setCollapsed(true)}+ create={() => {}}+ navigate={(view, id) => {+ w.open(view, id);+ if (mobile()) setCollapsed(true);+ }}+ taskFilter="all"+ setTaskFilter={() => {}}+ />+ </Show>+ <div class="dummy-main">+ <Show when={collapsed()}>+ <button+ type="button"+ aria-label="Show chat navigation"+ class="px-4 py-2 text-left"+ onClick={() => setCollapsed(false)}+ >+ <Sidebar class="size-4" />+ </button>+ </Show>+ <ProductWorkspace workspace={w} />+ </div>+ </div>+ </ProductDemo>+ );+}diff --git a/apps/marketing/src/features/marketing/components/crm/CrmCaptureDemo.test.tsx b/apps/marketing/src/features/marketing/components/crm/CrmCaptureDemo.test.tsxnew file mode 100644index 0000000000..a1814abc0f--- /dev/null+++ b/apps/marketing/src/features/marketing/components/crm/CrmCaptureDemo.test.tsx@@ -0,0 +1,136 @@+import { cleanup, fireEvent, render } from '@solidjs/testing-library';+import { afterEach, beforeEach, expect, it, vi } from 'vitest';+import { CrmCaptureDemo } from './CrmCaptureDemo';++let visible: IntersectionObserverCallback;+let reduced = false;+beforeEach(() => {+ vi.useFakeTimers();+ reduced = false;+ vi.stubGlobal('fetch', vi.fn());+ vi.stubGlobal(+ 'ResizeObserver',+ class {+ observe() {}+ disconnect() {}+ }+ );+ vi.spyOn(document, 'hidden', 'get').mockReturnValue(false);+ vi.stubGlobal('matchMedia', () => ({+ matches: reduced,+ addEventListener: vi.fn(),+ removeEventListener: vi.fn(),+ }));+ vi.stubGlobal(+ 'IntersectionObserver',+ class {+ constructor(callback: IntersectionObserverCallback) {+ visible = callback;+ }+ observe() {}+ disconnect() {}+ }+ );+});+afterEach(() => {+ cleanup();+ expect(fetch).not.toHaveBeenCalled();+ vi.clearAllTimers();+ vi.useRealTimers();+ vi.restoreAllMocks();+ vi.unstubAllGlobals();+});+function setVisible(isIntersecting: boolean) {+ visible(+ [{ isIntersecting } as IntersectionObserverEntry],+ {} as IntersectionObserver+ );+}++it('updates the shared company fields from the message and pauses offscreen', () => {+ const view = render(() => <CrmCaptureDemo />);+ const stage = view.getByLabelText('Deal stage') as HTMLSelectElement;+ const owner = view.getByLabelText('Company owner') as HTMLSelectElement;+ const notes = view.getByLabelText(+ 'Company description'+ ) as HTMLTextAreaElement;+ vi.advanceTimersByTime(10000);+ expect(stage.value).toBe('Lead');+ expect(owner.value).toBe('');+ setVisible(true);+ vi.advanceTimersByTime(2800);+ expect(stage.value).toBe('Demo');+ setVisible(false);+ vi.advanceTimersByTime(10000);+ expect(owner.value).toBe('');+ setVisible(true);+ vi.advanceTimersByTime(1400);+ expect(owner.value).toBe('jacob');+ vi.advanceTimersByTime(5600);+ expect(notes.value).toBe(+ 'Demo on Thursday. Alex is leading the rollout for The Meadow.'+ );+ expect(+ view.getByText(+ 'Updated The Meadow: demo stage, assigned to you, and Alex’s role saved in the company notes.'+ )+ ).toBeTruthy();+ expect(+ view.queryByRole('button', { name: /replay|pause|play crm/i })+ ).toBeNull();+ expect(vi.getTimerCount()).toBe(0);+});++it('keeps user edits instead of overwriting them with the walkthrough', () => {+ const view = render(() => <CrmCaptureDemo />);+ setVisible(true);+ vi.advanceTimersByTime(2800);+ const notes = view.getByLabelText(+ 'Company description'+ ) as HTMLTextAreaElement;+ fireEvent.focusIn(notes);+ fireEvent.input(notes, { target: { value: 'My own next steps.' } });+ vi.advanceTimersByTime(20000);+ expect(notes.value).toBe('My own next steps.');+ expect(+ (view.getByLabelText('Company owner') as HTMLSelectElement).value+ ).toBe('');+});++it('shows the completed record immediately with reduced motion', () => {+ reduced = true;+ const view = render(() => <CrmCaptureDemo />);+ setVisible(true);+ expect((view.getByLabelText('Deal stage') as HTMLSelectElement).value).toBe(+ 'Demo'+ );+ expect(+ (view.getByLabelText('Company owner') as HTMLSelectElement).value+ ).toBe('jacob');+ expect(+ (view.getByLabelText('Company description') as HTMLTextAreaElement).value+ ).toBe('Demo on Thursday. Alex is leading the rollout for The Meadow.');+ vi.advanceTimersByTime(10000);+ expect(vi.getTimerCount()).toBe(0);+});++it('opens the linked email and returns to the same customer record', () => {+ const view = render(() => <CrmCaptureDemo />);+ fireEvent.click(+ view.getByRole('button', {+ name: 'Dana Whitfield Next steps for our team 9:41 AM',+ })+ );+ expect(+ view.getByRole('button', { name: 'Back to customer record' })+ ).toBeTruthy();+ expect(+ view.getByRole('heading', { name: 'Next steps for our team' })+ ).toBeTruthy();+ fireEvent.click(+ view.getByRole('button', { name: 'Back to customer record' })+ );+ expect((view.getByLabelText('Company name') as HTMLInputElement).value).toBe(+ 'The Meadow'+ );+});diff --git a/apps/marketing/src/features/marketing/components/crm/CrmCaptureDemo.tsx b/apps/marketing/src/features/marketing/components/crm/CrmCaptureDemo.tsxnew file mode 100644index 0000000000..e102cad2a6--- /dev/null+++ b/apps/marketing/src/features/marketing/components/crm/CrmCaptureDemo.tsx@@ -0,0 +1,183 @@+import ArrowLeft from '@phosphor/arrow-left.svg';+import Cursor from '@phosphor/cursor.svg';+import { Button } from '@ui';+import { createSignal, onCleanup, onMount, Show } from 'solid-js';+import { createDummyWorkspace } from '../../primitives/createDummyWorkspace';+import { createEmailWalkthrough } from '../../primitives/createEmailWalkthrough';+import { HomepageConversation } from '../HomepageConversation';+import { WorkspaceEmail } from '../workspace/WorkspaceEmail';+import '../email/email-demos.css';+import { WorkspaceCompanies } from '../workspace/WorkspaceCompanies';+import '../workspace/dummy-workspace.css';++const description =+ 'Demo on Thursday. Alex is leading the rollout for The Meadow.';++/** The shared /demo company UI, with a local message-driven walkthrough. */+export function CrmCaptureDemo() {+ let root!: HTMLDivElement;+ let record!: HTMLDivElement;+ const workspace = createDummyWorkspace('crm');+ workspace.open('crm', 'meadow');+ workspace.setData('companies', (company) => company.id === 'meadow', {+ stage: 'Lead',+ owner: '',+ description: '',+ revenue: '',+ comments: [],+ });+ const [step, setStep] = createSignal(0);+ const [pointer, setPointer] = createSignal<{ x: number; y: number }>();+ const target = () =>+ step() < 3+ ? 'Deal stage'+ : step() < 4+ ? 'Company owner'+ : 'Company description';+ function positionPointer() {+ const field = record?.querySelector<HTMLElement>(+ `[aria-label="${target()}"]`+ );+ if (+ !playback.playing() ||+ !field ||+ !field.getClientRects().length ||+ step() === 0 ||+ step() >= 7+ ) {+ setPointer(undefined);+ return;+ }+ const bounds = field.getBoundingClientRect();+ const frame = record.getBoundingClientRect();+ setPointer({+ x: bounds.left - frame.left + Math.min(bounds.width - 12, 110),+ y: bounds.top - frame.top + bounds.height / 2,+ });+ }+ function advance(next: number) {+ setStep(next);+ const patch =+ next === 2+ ? { stage: 'Demo' as const }+ : next === 3+ ? { owner: 'jacob' as const }+ : next >= 4+ ? {+ description: description.slice(+ 0,+ next === 4 ? 17 : next === 5 ? 43 : description.length+ ),+ }+ : {};+ workspace.setData('companies', (company) => company.id === 'meadow', patch);+ positionPointer();+ }+ const playback = createEmailWalkthrough({+ root: () => root,+ steps: 7,+ advance,+ reset: () => setStep(0),+ reduced: () => {+ workspace.setData('companies', (company) => company.id === 'meadow', {+ stage: 'Demo',+ owner: 'jacob',+ description,+ });+ setStep(7);+ },+ });+ const takeOver = () => {+ playback.pause();+ setPointer(undefined);+ };+ onMount(() => {+ const observer = new ResizeObserver(positionPointer);+ observer.observe(record);+ onCleanup(() => observer.disconnect());+ });+ return (+ <div+ ref={root}+ class="crm-capture-demo"+ role="group"+ aria-label="Claude updates a customer record from a message"+ >+ <HomepageConversation+ messages={[+ {+ person: 'jacob',+ text: 'Just spoke to Dana at The Meadow. They’re ready for a demo on Thursday. Assign the company to me and note that Alex is leading the rollout.',+ },+ {+ person: 'claude',+ text:+ step() >= 7+ ? 'Updated The Meadow: demo stage, assigned to you, and Alex’s role saved in the company notes.'+ : 'I’ll update the stage, owner, and notes on The Meadow.',+ },+ ]}+ />+ <div+ ref={record}+ class="crm-capture-record crm-record-demo glass-input"+ data-step={step()}+ onPointerDown={takeOver}+ onFocusIn={takeOver}+ >+ <div+ class="dummy-workspace workspace-demo portal-scope"+ data-theme="dark"+ data-embedded="true"+ >+ <div class="dummy-main">+ <Show+ when={workspace.view() === 'crm'}+ fallback={+ <>+ <div class="px-3 pt-2">+ <Button+ variant="plain"+ size="sm"+ onClick={() => workspace.open('crm', 'meadow')}+ >+ <ArrowLeft />+ Back to customer record+ </Button>+ </div>+ <WorkspaceEmail+ workspace={workspace}+ tab="all"+ account="all"+ />+ </>+ }+ >+ <WorkspaceCompanies+ workspace={workspace}+ initialPanelOpen={+ typeof window !== 'undefined' &&+ window.matchMedia('(min-width: 700px)').matches+ }+ />+ </Show>+ </div>+ </div>+ <Show when={pointer()}>+ {(position) => (+ <div+ class="crm-capture-pointer"+ aria-hidden="true"+ style={{+ transform: `translate(${position().x}px, ${position().y}px)`,+ }}+ >+ <Cursor />+ <span>Claude</span>+ </div>+ )}+ </Show>+ </div>+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/crm/CrmComparison.tsx b/apps/marketing/src/features/marketing/components/crm/CrmComparison.tsxnew file mode 100644index 0000000000..c3058a2c47--- /dev/null+++ b/apps/marketing/src/features/marketing/components/crm/CrmComparison.tsx@@ -0,0 +1,66 @@+import CaretDown from '@phosphor/caret-down.svg';+import {+ ComparisonLegend,+ type ComparisonRow,+ ComparisonTable,+} from '../../../../app/components/sections/ComparisonTable';++const comparisonRows: ComparisonRow[] = [+ {+ feature: 'Builds itself from your email (no data entry)',+ cells: [true, false, 'partial', 'partial'],+ },+ {+ feature: 'Automatic company enrichment',+ cells: [true, 'partial', true, true],+ },+ {+ feature: 'Discussion threads on every record',+ cells: [true, 'partial', 'partial', false],+ },+ {+ feature: '@mention records in docs, tasks & chat',+ cells: [true, false, false, false],+ },+ {+ feature: 'One customer view across email, calls, docs & tasks',+ cells: [true, 'partial', 'partial', false],+ },+ {+ feature: 'Built-in email, calls, docs & tasks',+ cells: [true, 'partial', 'partial', false],+ },+ {+ feature: 'Agents with full-workspace context',+ cells: [true, 'partial', 'partial', 'partial'],+ },+ {+ feature: 'Unified search across everything',+ cells: [true, false, false, false],+ },+ { feature: 'Open source (AGPLv3)', cells: [true, false, false, false] },+];++export function CrmComparison() {+ return (+ <details class="feature-page-comparison">+ <summary>+ <span>Compare CRM tools</span>+ <CaretDown aria-hidden="true" />+ </summary>+ <div class="feature-page-comparison-content">+ <ComparisonTable+ columns={['Macro', 'Salesforce', 'HubSpot', 'Attio'].map((label) => ({+ label,+ }))}+ rows={comparisonRows}+ />+ <ComparisonLegend />+ <p>+ Availability varies by product and plan. See{' '}+ <a href="/pricing">Macro pricing</a> for current plans and limits.+ </p>+ </div>+ </details>+ );+}diff --git a/apps/marketing/src/features/marketing/components/crm/CrmConnectedWorkDemo.tsx b/apps/marketing/src/features/marketing/components/crm/CrmConnectedWorkDemo.tsxnew file mode 100644index 0000000000..134decd2ea--- /dev/null+++ b/apps/marketing/src/features/marketing/components/crm/CrmConnectedWorkDemo.tsx@@ -0,0 +1,188 @@+import ArrowUpRight from '@phosphor/arrow-up-right.svg';+import Buildings from '@phosphor/buildings.svg';+import File from '@phosphor/file-text.svg';+import Hash from '@phosphor/hash.svg';+import { createSignal, Show } from 'solid-js';+import { homepagePeople } from '../../core/homepage-demo-people';+import { createEmailWalkthrough } from '../../primitives/createEmailWalkthrough';++/** A company mention opens the same sample record from a plan or a conversation. */+export function CrmConnectedWorkDemo() {+ let root!: HTMLDivElement;+ const [context, setContext] = createSignal<'plan' | 'chat'>('plan');+ const [opened, setOpened] = createSignal(false);+ const [highlighted, setHighlighted] = createSignal(false);+ const playback = createEmailWalkthrough({+ root: () => root,+ steps: 3,+ advance: (step) => {+ setHighlighted(step === 1);+ if (step >= 2) setOpened(true);+ },+ reset: () => {+ setHighlighted(false);+ setOpened(false);+ },+ reduced: () => setOpened(true),+ });+ const changeContext = (value: 'plan' | 'chat') => {+ playback.pause();+ setContext(value);+ setHighlighted(false);+ };+ const openRecord = () => {+ playback.pause();+ setOpened(true);+ setHighlighted(false);+ };+ const mention = () => (+ <button+ type="button"+ class="crm-company-mention"+ data-highlighted={highlighted()}+ aria-label="Open The Meadow customer record"+ aria-controls="crm-linked-record"+ aria-expanded={opened()}+ onClick={openRecord}+ >+ <Buildings />+ The Meadow+ <ArrowUpRight />+ </button>+ );+ return (+ <div+ ref={root}+ class="crm-connected-demo crm-editorial-window glass-input"+ role="group"+ aria-label="A customer record linked from documents and team chat"+ >+ <div+ class="crm-editorial-toolbar crm-context-picker"+ role="group"+ aria-label="Choose a sample context"+ >+ <button+ type="button"+ aria-pressed={context() === 'plan'}+ onClick={() => changeContext('plan')}+ >+ <File />+ Rollout plan+ </button>+ <button+ type="button"+ aria-pressed={context() === 'chat'}+ onClick={() => changeContext('chat')}+ >+ <Hash />+ Customer team+ </button>+ </div>+ <div class="crm-connected-body">+ <div class="crm-linked-context">+ <Show+ when={context() === 'plan'}+ fallback={+ <div class="crm-linked-chat">+ <div class="crm-chat-author">+ <img src={homepagePeople.julia.photo} alt="" />+ <strong>Julia Westphal</strong>+ <span>9:45 AM</span>+ </div>+ <p>+ The rollout plan for {mention()} is ready. Dana will bring+ Alex to Thursday’s walkthrough.+ </p>+ <p>+ Jacob, can you send them the onboarding guide before the call?+ </p>+ <div class="crm-linked-document">+ <File />+ <div>+ <strong>Customer rollout plan</strong>+ <span>Agenda, owners, and next steps</span>+ </div>+ </div>+ </div>+ }+ >+ <span class="crm-document-eyebrow">+ <File />+ Team documents+ </span>+ <h3>Customer rollout plan</h3>+ <p class="crm-plan-company">Customer {mention()}</p>+ <h4>Thursday’s walkthrough</h4>+ <p>+ Dana and Alex are bringing their team into Macro. Start with their+ shared inbox, then walk through the launch workspace.+ </p>+ <h4>Before the call</h4>+ <ul>+ <li>Send the onboarding guide</li>+ <li>Confirm who owns the rollout</li>+ <li>Agree on the first team workflow</li>+ </ul>+ </Show>+ </div>+ <aside+ id="crm-linked-record"+ class="crm-linked-record"+ aria-label="Linked customer record"+ data-open={opened()}+ >+ <Show+ when={opened()}+ fallback={+ <div class="crm-record-invitation">+ <Buildings />+ <p>+ Open the company mention to see the relationship behind the+ work.+ </p>+ </div>+ }+ >+ <div class="crm-linked-record-label">+ <Buildings />+ Customer record+ </div>+ <span class="crm-company-monogram" aria-hidden="true">+ m.+ </span>+ <h3>The Meadow</h3>+ <p class="crm-linked-domain">meadow.example</p>+ <dl>+ <div>+ <dt>Stage</dt>+ <dd>+ <span class="crm-linked-stage-dot" />+ Customer+ </dd>+ </div>+ <div>+ <dt>Owner</dt>+ <dd>+ <img src={homepagePeople.jacob.photo} alt="" />+ Jacob+ </dd>+ </div>+ <div>+ <dt>Last interaction</dt>+ <dd>Today, 9:41 AM</dd>+ </div>+ </dl>+ <h4>People</h4>+ <p>Dana Whitfield</p>+ <p>Alex Chen</p>+ <div class="crm-linked-note">+ <span>Latest team note</span>+ <p>Dana will introduce the rest of the team on Thursday.</p>+ </div>+ </Show>+ </aside>+ </div>+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/crm/CrmContextDemos.test.tsx b/apps/marketing/src/features/marketing/components/crm/CrmContextDemos.test.tsxnew file mode 100644index 0000000000..8700a6a172--- /dev/null+++ b/apps/marketing/src/features/marketing/components/crm/CrmContextDemos.test.tsx@@ -0,0 +1,93 @@+import { cleanup, fireEvent, render, within } from '@solidjs/testing-library';+import { afterEach, beforeEach, expect, it, vi } from 'vitest';+import { CrmConnectedWorkDemo } from './CrmConnectedWorkDemo';+import { CrmEnrichmentDemo } from './CrmEnrichmentDemo';++let visible: IntersectionObserverCallback;+let reduced = false;+beforeEach(() => {+ vi.useFakeTimers();+ reduced = false;+ vi.stubGlobal('fetch', vi.fn());+ vi.spyOn(document, 'hidden', 'get').mockReturnValue(false);+ vi.stubGlobal('matchMedia', () => ({+ matches: reduced,+ addEventListener: vi.fn(),+ removeEventListener: vi.fn(),+ }));+ vi.stubGlobal(+ 'IntersectionObserver',+ class {+ constructor(callback: IntersectionObserverCallback) {+ visible = callback;+ }+ observe() {}+ disconnect() {}+ }+ );+});+afterEach(() => {+ cleanup();+ expect(fetch).not.toHaveBeenCalled();+ vi.clearAllTimers();+ vi.useRealTimers();+ vi.restoreAllMocks();+ vi.unstubAllGlobals();+});+function setVisible(isIntersecting: boolean) {+ visible(+ [{ isIntersecting } as IntersectionObserverEntry],+ {} as IntersectionObserver+ );+}++it('adds enrichment while visible and leaves the completed company information readable', () => {+ const view = render(() => <CrmEnrichmentDemo />);+ vi.advanceTimersByTime(10000);+ expect(view.queryByText('Design services')).toBeNull();+ setVisible(true);+ vi.advanceTimersByTime(2800);+ expect(view.getByText('Design services')).toBeTruthy();+ setVisible(false);+ vi.advanceTimersByTime(10000);+ expect(view.queryByText('24 employees')).toBeNull();+ setVisible(true);+ vi.advanceTimersByTime(2800);+ expect(view.getByText('24 employees')).toBeTruthy();+ expect(view.getByRole('status').textContent).toBe(+ 'Company information added'+ );+ expect(vi.getTimerCount()).toBe(0);+});++it('lets a visitor open the same company from a document and chat without playback taking over', () => {+ const view = render(() => <CrmConnectedWorkDemo />);+ setVisible(true);+ fireEvent.click(view.getByRole('button', { name: 'Customer team' }));+ const record = within(+ view.getByRole('complementary', { name: 'Linked customer record' })+ );+ expect(record.queryByRole('heading', { name: 'The Meadow' })).toBeNull();+ vi.advanceTimersByTime(10000);+ expect(record.queryByRole('heading', { name: 'The Meadow' })).toBeNull();+ fireEvent.click(+ view.getByRole('button', { name: 'Open The Meadow customer record' })+ );+ expect(record.getByRole('heading', { name: 'The Meadow' })).toBeTruthy();+ expect(record.getByText('Dana Whitfield')).toBeTruthy();+ fireEvent.click(view.getByRole('button', { name: 'Rollout plan' }));+ expect(+ view.getByRole('heading', { name: 'Thursday’s walkthrough' })+ ).toBeTruthy();+ expect(record.getByRole('heading', { name: 'The Meadow' })).toBeTruthy();+ expect(vi.getTimerCount()).toBe(0);+});++it('shows both completed examples immediately for reduced motion', () => {+ reduced = true;+ const enrichment = render(() => <CrmEnrichmentDemo />);+ expect(enrichment.getByText('24 employees')).toBeTruthy();+ const linked = render(() => <CrmConnectedWorkDemo />);+ expect(linked.getByRole('heading', { name: 'The Meadow' })).toBeTruthy();+ expect(vi.getTimerCount()).toBe(0);+});diff --git a/apps/marketing/src/features/marketing/components/crm/CrmEnrichmentDemo.tsx b/apps/marketing/src/features/marketing/components/crm/CrmEnrichmentDemo.tsxnew file mode 100644index 0000000000..5f389a675c--- /dev/null+++ b/apps/marketing/src/features/marketing/components/crm/CrmEnrichmentDemo.tsx@@ -0,0 +1,101 @@+import Buildings from '@phosphor/buildings.svg';+import Check from '@phosphor/check.svg';+import Globe from '@phosphor/globe.svg';+import MapPin from '@phosphor/map-pin.svg';+import Users from '@phosphor/users-three.svg';+import { createSignal, For, Show } from 'solid-js';+import { createEmailWalkthrough } from '../../primitives/createEmailWalkthrough';++const companyFacts = [+ { label: 'Website', value: 'meadow.example', icon: Globe },+ { label: 'Industry', value: 'Design services', icon: Buildings },+ { label: 'Headquarters', value: 'Brooklyn, New York', icon: MapPin },+ { label: 'Company size', value: '24 employees', icon: Users },+];++/** Fictional enrichment values arrive on the record, without a live lookup. */+export function CrmEnrichmentDemo() {+ let root!: HTMLDivElement;+ const [revealed, setRevealed] = createSignal(0);+ createEmailWalkthrough({+ root: () => root,+ steps: companyFacts.length,+ advance: setRevealed,+ reset: () => setRevealed(0),+ reduced: () => setRevealed(companyFacts.length),+ });+ return (+ <div+ ref={root}+ class="crm-enrichment-demo crm-editorial-window glass-input"+ role="group"+ aria-label="Company information added from an email domain"+ >+ <div class="crm-editorial-toolbar">+ <Buildings />+ <span>Customers</span>+ <span class="crm-toolbar-divider">/</span>+ <span>The Meadow</span>+ </div>+ <div class="crm-enrichment-body">+ <div class="crm-enrichment-profile">+ <div class="crm-enrichment-mark" aria-hidden="true">+ m.+ </div>+ <h3>The Meadow</h3>+ <span class="crm-enrichment-domain">+ <Globe />+ meadow.example+ </span>+ <p>+ A Brooklyn design studio building brands and digital experiences for+ growing teams.+ </p>+ <div class="crm-enrichment-people">+ <span class="crm-contact-avatar">DW</span>+ <span class="crm-contact-avatar">AC</span>+ <span>Dana and Alex</span>+ </div>+ </div>+ <div class="crm-enrichment-details">+ <h4>Company information</h4>+ <dl>+ <For each={companyFacts}>+ {(fact, index) => (+ <div+ class="crm-enrichment-fact"+ data-revealed={revealed() > index()}+ >+ <dt>+ <fact.icon />+ {fact.label}+ </dt>+ <dd>+ <Show+ when={revealed() > index()}+ fallback={+ <span+ class="crm-enrichment-placeholder"+ aria-label="Looking up company information"+ />+ }+ >+ <span>{fact.value}</span>+ <Check aria-hidden="true" />+ </Show>+ </dd>+ </div>+ )}+ </For>+ </dl>+ <p class="crm-enrichment-status" role="status">+ <span class="crm-sync-dot" />+ {revealed() === companyFacts.length+ ? 'Company information added'+ : 'Finding company information…'}+ </p>+ </div>+ </div>+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/crm/CrmFeatureIllustrations.tsx b/apps/marketing/src/features/marketing/components/crm/CrmFeatureIllustrations.tsxnew file mode 100644index 0000000000..c5dac4fc87--- /dev/null+++ b/apps/marketing/src/features/marketing/components/crm/CrmFeatureIllustrations.tsx@@ -0,0 +1,101 @@+import type { JSX } from 'solid-js';++function Illustration(props: { children: JSX.Element }) {+ return (+ <svg+ viewBox="0 0 240 144"+ fill="none"+ aria-hidden="true"+ class="crm-feature-art"+ >+ <g+ stroke="currentColor"+ stroke-width="1.15"+ stroke-linecap="round"+ stroke-linejoin="round"+ >+ {props.children}+ </g>+ </svg>+ );+}++export function CaptureIllustration() {+ return (+ <Illustration>+ <g opacity=".32">+ <rect x="31" y="29" width="68" height="44" rx="5" />+ <path d="m32 33 33 23 33-23" />+ </g>+ <g opacity=".65" fill="#0a0a0a">+ <rect x="41" y="46" width="68" height="44" rx="5" />+ <path d="m42 50 33 23 33-23" />+ </g>+ <g fill="#111">+ <rect x="51" y="63" width="68" height="44" rx="5" />+ <path d="m52 67 33 23 33-23" />+ </g>+ <path d="M120 86h18q11 0 11-11V61" opacity=".4" stroke-dasharray="2 4" />+ <g fill="#111">+ <rect x="136" y="28" width="75" height="72" rx="7" />+ <path d="M136 47h75" opacity=".4" />+ <circle cx="150" cy="38" r="2" fill="currentColor" stroke="none" />+ <path d="M160 38h30M160 62h36M160 80h25" opacity=".6" />+ <circle cx="149" cy="62" r="4" />+ <circle cx="149" cy="80" r="4" />+ </g>+ <path d="m184 109 5 5 11-12" stroke="#b5cbbb" />+ </Illustration>+ );+}++export function ContextIllustration() {+ return (+ <Illustration>+ <path+ d="M63 48h41M159 89h23M78 114h30"+ opacity=".35"+ stroke-dasharray="2 4"+ />+ <g fill="#0b0b0b" opacity=".6">+ <path d="M31 24h56a5 5 0 0 1 5 5v30a5 5 0 0 1-5 5H56L44 74V64H31a5 5 0 0 1-5-5V29a5 5 0 0 1 5-5Z" />+ <path d="M38 38h40M38 48h27" />+ </g>+ <g fill="#111">+ <rect x="87" y="42" width="80" height="77" rx="7" />+ <circle cx="107" cy="64" r="7" />+ <path d="M124 59h25M124 68h16M101 88h49M101 101h34" opacity=".6" />+ </g>+ <g fill="#111">+ <path d="M166 23h40a5 5 0 0 1 5 5v23a5 5 0 0 1-5 5h-9l-8 8v-8h-23a5 5 0 0 1-5-5V28a5 5 0 0 1 5-5Z" />+ <path d="M173 35h25M173 44h18" opacity=".6" />+ </g>+ <circle cx="190" cy="102" r="10" opacity=".4" />+ <path d="M184 102h12M190 96v12" opacity=".6" />+ </Illustration>+ );+}++export function AgentIllustration() {+ return (+ <Illustration>+ <g opacity=".3">+ <rect x="29" y="29" width="171" height="86" rx="7" />+ <path d="M29 49h171M87 49v66M144 49v66" />+ </g>+ <g fill="#111">+ <rect x="39" y="59" width="38" height="21" rx="4" opacity=".4" />+ <path d="M48 69h17" opacity=".35" />+ <rect x="98" y="59" width="36" height="21" rx="4" />+ <path d="M107 69h17" opacity=".7" />+ <rect x="98" y="88" width="36" height="18" rx="4" opacity=".4" />+ </g>+ <path d="M64 89c-2 18 52 42 109-7" opacity=".5" stroke-dasharray="2 4" />+ <g fill="#171717">+ <rect x="155" y="61" width="36" height="21" rx="4" />+ <path d="m164 71 4 4 9-9" stroke="#b5cbbb" />+ </g>+ <path d="m176 81 4 28 7-8 10 1Z" fill="#c2c2c2" stroke="#c2c2c2" />+ </Illustration>+ );+}diff --git a/apps/marketing/src/features/marketing/components/crm/CrmRecordDemo.tsx b/apps/marketing/src/features/marketing/components/crm/CrmRecordDemo.tsxnew file mode 100644index 0000000000..00de0b8c8b--- /dev/null+++ b/apps/marketing/src/features/marketing/components/crm/CrmRecordDemo.tsx@@ -0,0 +1,10 @@+import DummyWorkspace from '../workspace/DummyWorkspace';++/** The actual sample record, including linked email, discussion, and properties. */+export function CrmRecordDemo() {+ return (+ <div class="crm-record-demo glass-input">+ <DummyWorkspace initialView="crm" initialCompany="meadow" embedded />+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/crm/crm-page.css b/apps/marketing/src/features/marketing/components/crm/crm-page.cssnew file mode 100644index 0000000000..27fa213c62--- /dev/null+++ b/apps/marketing/src/features/marketing/components/crm/crm-page.css@@ -0,0 +1,187 @@+.crm-feature-page { width: 100%; min-width: 0; }+.crm-page-hero { display: flex; flex-direction: column; align-items: center; padding: 132px 24px 64px; text-align: center; }+.crm-page-label { display: flex; align-items: center; justify-content: center; gap: 10px; color: #a3a3a3; font-size: 12px; font-weight: 500; line-height: 18px; letter-spacing: .12em; text-transform: uppercase; }+.crm-page-label > svg { width: 20px; height: 20px; }+.crm-page-hero h1 { margin: 22px 0 24px; font: 315 clamp(44px, 5vw, 72px)/1.06 'Roboto Slab Variable', display, serif; letter-spacing: -.04em; }+.crm-page-hero h1 span { display: block; }+.crm-page-hero h1 span:last-child { color: #b8b8b8; }+.crm-page-description { max-width: 600px; color: #999; font: 400 17px/1.65 'Inter Variable', Inter, sans-serif; text-wrap: pretty; }+.crm-page-description > span { display: block; }+.crm-page-hero .feature-page-cta { margin-top: 28px; }+.crm-feature-links { width: min(872px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }+.crm-feature-links a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #b5b5b5; font-size: 13px; text-align: center; }+.crm-feature-links a:hover { color: #fff; }+.crm-feature-illustration { display: grid; place-items: center; width: 240px; max-width: 100%; height: 150px; position: relative; isolation: isolate; }+.crm-feature-illustration::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(#fff4 .65px, transparent .9px); background-size: 8px 8px; mask-image: radial-gradient(ellipse, #000, transparent 70%); }+.crm-feature-illustration .crm-feature-art { width: 100%; height: 100%; color: #888; transition: color 200ms; }+.crm-feature-links a:hover .crm-feature-art { color: #ccc; }+.crm-feature-page .homepage-feature-heading { width: min(920px, 100%); margin-inline: auto; padding-inline: 24px; text-align: left; }+.crm-feature-page .homepage-feature-title { justify-content: flex-start; }+.crm-feature-page .homepage-section-break { display: block; }+.crm-feature-page .homepage-section-break > span { display: none; }+.crm-feature-page .homepage-section-break p { max-width: 550px; font-size: 17px; line-height: 1.65; margin-inline: 0; white-space: pre-line; text-wrap: wrap; }+#crm-context .homepage-section-break p { max-width: 660px; }+.crm-scene { position: relative; isolation: isolate; padding: 32px 24px 16px; }+.crm-scene::before { content: ''; position: absolute; inset: -24px -20px 0; z-index: -2; pointer-events: none; background: radial-gradient(ellipse at 55% 45%, #b4bedb14, transparent 68%); }+.crm-scene::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(#d0d6e12e .6px, transparent .9px); background-size: 8px 8px; mask-image: radial-gradient(ellipse at 60% 45%, #000, transparent 70%); opacity: .45; }+.crm-feature-prose { width: min(920px, 100%); padding-inline: 24px; margin: 28px auto 0; color: #a3a3a3; font: 400 15px/1.85 'Inter Variable', Inter, sans-serif; }+.crm-feature-prose p + p { margin-top: 18px; }+.crm-feature-page .feature-page-reading { width: min(920px, 100%); }+.crm-feature-page .feature-page-comparison, .crm-feature-page .homepage-feature-end { width: min(872px, calc(100% - 48px)); margin-inline: auto; }+.crm-record-demo { position: relative; overflow: hidden; border-radius: 16px; box-shadow: var(--glass-shadow); }+.crm-record-demo .dummy-workspace[data-embedded=true] { height: 670px; border: 0; border-radius: inherit; box-shadow: none; }+.crm-record-demo .dummy-rail, .crm-record-demo .dummy-sidebar, .crm-record-demo .dummy-banner, .crm-record-demo .dummy-mobile-nav, .crm-record-demo .dummy-restore-sidebar { display: none; }+.crm-record-demo .dummy-workspace .sample-panel-section { border: 0; }+.crm-record-demo .dummy-workspace .sample-panel-section select { border-color: transparent; }+.crm-agent-scene .homepage-conversation { width: 100%; margin-bottom: 40px; }+.crm-pipeline-frame { position: relative; overflow: hidden; border-radius: 16px; background: #121315; box-shadow: var(--glass-shadow); }+.crm-feature-page .homepage-crm .mdf-frame { height: auto; padding: 0; background: transparent; overflow: visible; border-radius: 0; }+.crm-feature-page .homepage-crm .mds-card { height: auto; max-width: none; background: transparent; box-shadow: none; border-radius: 0; }+.crm-feature-page .homepage-crm .mdf-frame::before, .crm-feature-page .homepage-crm .mds-card::before { content: none; }+.crm-feature-page .homepage-crm-footer { border: 0; }+@media (max-width: 699px) {+ .crm-page-hero { padding: 114px 18px 44px; }+ .crm-page-hero h1 { font-size: clamp(28px, 7.8vw, 50px); line-height: 1.1; letter-spacing: -.035em; }+ .crm-page-description { font-size: 15px; max-width: 340px; }+ .crm-page-description > span { display: inline; }+ .crm-feature-links { width: 100%; gap: 8px; }+ .crm-feature-links a { font-size: 11px; }+ .crm-feature-illustration { height: auto; aspect-ratio: 5/3; }+ .crm-feature-page .homepage-feature-heading, .crm-feature-prose { padding-inline: 0; }+ .crm-feature-page .homepage-section-break p { max-width: 100%; font-size: 15px; white-space: normal; text-wrap: pretty; }+ .crm-feature-page .feature-page-comparison, .crm-feature-page .homepage-feature-end { width: 100%; }+ .crm-feature-prose { font-size: 14px; margin-top: 24px; }+ .crm-scene { padding: 24px 0 0; }+ .crm-scene::before { inset: 0; }+ .crm-record-demo .dummy-workspace[data-embedded=true] { height: 640px; }+ .crm-feature-page .homepage-crm-viewport { height: 290px; }+}++/* Keep the record and its properties together on desktop; phones use the full panel. */+@media (min-width: 700px) {+ .crm-record-demo .sample-detail-layout[data-panel-open=true] .sample-details {+ position: static;+ width: 280px;+ min-width: 280px;+ max-width: 280px;+ background: transparent;+ }+}++@media (max-width: 699px) {+ .crm-record-demo [data-view-shell-top-bar] > span.text-ink-muted,+ .crm-record-demo [data-view-shell-top-bar] > span.text-ink-muted + span { display: none; }+}++/* Reuse the app-shaped company page; only the surrounding presentation is styled here. */+.crm-capture-demo .homepage-conversation { width: 100%; margin: 0 0 36px; }+.crm-capture-record { position: relative; }+.crm-capture-pointer { position: absolute; left: 0; top: 0; z-index: 8; pointer-events: none; display: flex; align-items: flex-start; gap: 4px; color: #d4c5b4; transition: transform 650ms cubic-bezier(.2,.8,.2,1); }+.crm-capture-pointer svg { width: 22px; height: 22px; fill: currentColor; filter: drop-shadow(0 1px 2px #0008); }+.crm-capture-pointer span { margin-top: 16px; background: #b6a18b; color: #141211; padding: 2px 7px; border-radius: 5px; font: 500 10px/1.5 'Inter Variable', sans-serif; }+.crm-capture-record[data-step="2"] [aria-label="Deal stage"],+.crm-capture-record[data-step="3"] [aria-label="Company owner"],+.crm-capture-record:is([data-step="4"], [data-step="5"], [data-step="6"]) [aria-label="Company description"] { background: #b6a18b10; box-shadow: 0 0 0 2px #b6a18b35; transition: box-shadow 300ms; }+.crm-contact-avatar { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #b5cbbb13; color: #b9c4bc; font-size: 10px; font-weight: 500; }+.crm-company-monogram { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #b8c5b413; color: #bdc7b9; font: 400 26px 'Roboto Slab Variable', serif; }+.crm-sync-dot { width: 5px; height: 5px; border-radius: 50%; background: #a7b9ad; }+@media (max-width: 699px) {+ .crm-capture-demo .homepage-conversation { margin-bottom: 24px; }+ .crm-capture-pointer { display: none; }+}++/* Detail-focused product scenes share the page's reading measure and glass rim. */+.crm-editorial-window { position: relative; overflow: hidden; border-radius: 16px; color: #d1d2d5; background: linear-gradient(135deg, #1b1c1f, #111214 65%, #0b0c0d); box-shadow: 0 24px 70px #0006; font: 400 14px/1.6 'Inter Variable', Inter, sans-serif; }+.crm-editorial-toolbar { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-bottom: 1px solid #ffffff08; font-size: 11px; color: #979aa0; }+.crm-editorial-toolbar > svg { width: 14px; height: 14px; }+.crm-toolbar-divider { color: #555961; }+.crm-enrichment-body { display: grid; grid-template-columns: 1fr 1.08fr; min-height: 400px; }+.crm-enrichment-profile { padding: 40px; border-right: 1px solid #ffffff06; }+.crm-enrichment-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(145deg, #b5cbbb22, #b5cbbb08); box-shadow: inset 0 1px 0 #b5cbbb1f; color: #c0cdbb; font: 400 42px/1 'Roboto Slab Variable', serif; }+.crm-enrichment-profile h3 { font-size: 26px; font-weight: 500; letter-spacing: -.035em; margin: 18px 0 4px; }+.crm-enrichment-domain { display: flex; align-items: center; gap: 6px; color: #868a91; font-size: 12px; }+.crm-enrichment-domain svg { width: 13px; height: 13px; }+.crm-enrichment-profile > p { max-width: 300px; margin-top: 24px; color: #a1a4ab; font-size: 13px; line-height: 1.85; }+.crm-enrichment-people { display: flex; align-items: center; margin-top: 27px; }+.crm-enrichment-people .crm-contact-avatar { border: 2px solid #1a1b1d; }+.crm-enrichment-people .crm-contact-avatar + .crm-contact-avatar { margin-left: -6px; background: #272b2c; }+.crm-enrichment-people > span:last-child { margin-left: 9px; color: #868a91; font-size: 11px; }+.crm-enrichment-details { padding: 42px 32px 30px; }+.crm-enrichment-details h4 { font-size: 12px; font-weight: 500; margin-bottom: 24px; color: #a3a6ad; }+.crm-enrichment-fact { margin-top: 20px; }+.crm-enrichment-fact dt { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #797e87; }+.crm-enrichment-fact dt svg { width: 12px; height: 12px; }+.crm-enrichment-fact dd { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; padding-left: 19px; font-size: 13px; }+.crm-enrichment-fact dd > svg { width: 12px; height: 12px; color: #9eafa4; }+.crm-enrichment-fact[data-revealed=true] dd { animation: crm-detail-reveal 350ms ease-out both; }+.crm-enrichment-placeholder { width: 70%; height: 7px; border-radius: 6px; background: #ffffff07; }+.crm-enrichment-details .crm-enrichment-status { display: flex; align-items: center; gap: 7px; margin-top: 28px; color: #8fa197; font-size: 10px; }+#crm-enrichment .homepage-section-break p { max-width: 605px; }+#crm-connected-work .homepage-section-break p { max-width: 630px; }+.crm-context-picker { gap: 5px; padding: 8px 18px; }+.crm-context-picker button { display: flex; align-items: center; gap: 7px; border: 0; padding: 6px 10px; background: transparent; border-radius: 6px; color: #777d85; font-size: 11px; }+.crm-context-picker button[aria-pressed=true] { color: #d4d6da; background: #ffffff07; box-shadow: inset 0 1px 0 #ffffff05; }+.crm-context-picker button:hover { color: #e0e1e5; }+.crm-context-picker svg { width: 13px; height: 13px; }+.crm-connected-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 490px; }+.crm-linked-context { padding: 34px 36px 42px; }+.crm-document-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #777d85; }+.crm-document-eyebrow svg { width: 12px; height: 12px; }+.crm-linked-context h3 { margin: 22px 0 16px; font-size: 25px; font-weight: 500; letter-spacing: -.04em; color: #e0e1e5; }+.crm-linked-context h4 { margin: 28px 0 8px; font-size: 13px; font-weight: 500; color: #c3c6cc; }+.crm-linked-context p, .crm-linked-context li { font-size: 13px; line-height: 1.9; color: #9298a1; }+.crm-linked-context .crm-plan-company { display: flex; align-items: center; gap: 12px; font-size: 11px; color: #717782; }+.crm-linked-context ul { padding-left: 18px; margin-top: 8px; }+.crm-company-mention { display: inline-flex; align-items: center; vertical-align: baseline; gap: 5px; padding: 1px 6px; border: 0; border-radius: 5px; color: #c5cfc9; font: inherit; background: #b5cbbb0d; box-shadow: inset 0 -1px 0 #b5cbbb20; transition: background 200ms, box-shadow 200ms; }+.crm-company-mention:hover, .crm-company-mention[data-highlighted=true] { background: #b5cbbb20; box-shadow: 0 0 0 2px #b5cbbb20; }+.crm-company-mention svg { width: 12px; height: 12px; }+.crm-company-mention svg:last-child { width: 10px; height: 10px; color: #8a9a90; }+.crm-linked-record { min-width: 0; padding: 24px; background: #ffffff02; border-left: 1px solid #ffffff08; }+.crm-linked-record[data-open=true] > * { animation: crm-detail-reveal 350ms ease-out both; }+.crm-linked-record-label { display: flex; align-items: center; gap: 6px; color: #858b94; font-size: 10px; margin-bottom: 26px; }+.crm-linked-record-label svg { width: 12px; height: 12px; }+.crm-linked-record h3 { font-size: 20px; font-weight: 500; letter-spacing: -.025em; margin-top: 13px; }+.crm-linked-record .crm-linked-domain { color: #828993; font-size: 11px; margin-top: 2px; }+.crm-linked-record dl { display: grid; gap: 15px; margin-top: 28px; font-size: 11px; }+.crm-linked-record dl > div { display: grid; grid-template-columns: 88px 1fr; gap: 5px; align-items: center; }+.crm-linked-record dt { color: #767e88; }+.crm-linked-record dd { display: flex; align-items: center; gap: 6px; }+.crm-linked-record dd img { width: 17px; height: 17px; border-radius: 50%; object-fit: cover; }+.crm-linked-stage-dot { width: 5px; height: 5px; border-radius: 50%; background: #b1a8c5; }+.crm-linked-record h4 { margin: 26px 0 9px; font-size: 11px; font-weight: 400; color: #767e88; }+.crm-linked-record > p:not(.crm-linked-domain) { font-size: 11px; line-height: 2; }+.crm-linked-note { border-top: 1px solid #ffffff07; margin-top: 25px; padding-top: 17px; }+.crm-linked-note > span { font-size: 10px; color: #727a86; }+.crm-linked-note p { color: #9a9fa7; font-size: 11px; line-height: 1.8; margin-top: 7px; }+.crm-record-invitation { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 55px; color: #626b77; }+.crm-record-invitation svg { width: 24px; height: 24px; }+.crm-record-invitation p { font-size: 12px; line-height: 1.9; max-width: 185px; }+.crm-chat-author { display: flex; align-items: center; gap: 9px; margin: 6px 0 22px; font-size: 12px; }+.crm-chat-author > img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }+.crm-chat-author strong { font-weight: 500; }+.crm-chat-author > span { font-size: 10px; color: #6e7782; }+.crm-linked-chat > p + p { margin-top: 18px; }+.crm-linked-document { display: flex; align-items: center; gap: 12px; margin-top: 24px; border: 1px solid #ffffff0a; border-radius: 10px; padding: 16px; }+.crm-linked-document > svg { width: 20px; height: 20px; color: #8a909b; }+.crm-linked-document strong { display: block; font-weight: 400; font-size: 12px; }+.crm-linked-document span { display: block; font-size: 10px; color: #747d8a; margin-top: 4px; }+@keyframes crm-detail-reveal { from { opacity: .25; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }+@media (max-width: 699px) {+ .crm-enrichment-body { grid-template-columns: 1fr; }+ .crm-enrichment-profile { padding: 26px; border-right: 0; border-bottom: 1px solid #ffffff08; }+ .crm-enrichment-mark { width: 50px; height: 50px; font-size: 32px; border-radius: 12px; }+ .crm-enrichment-profile h3 { font-size: 23px; }+ .crm-enrichment-details { padding: 26px; }+ .crm-enrichment-details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }+ .crm-enrichment-fact { margin: 0; }+ .crm-enrichment-fact dd { font-size: 11px; padding-left: 0; gap: 5px; }+ .crm-connected-body { grid-template-columns: 1fr; }+ .crm-linked-context { padding: 24px; min-height: 430px; }+ .crm-linked-context h3 { font-size: 23px; }+ .crm-linked-record { border-left: 0; border-top: 1px solid #ffffff08; padding: 24px; }+ .crm-linked-record dl > div { grid-template-columns: 120px 1fr; }+ .crm-linked-record .crm-company-monogram { float: left; margin: 0 14px 0 0; }+ .crm-linked-record h3 { margin-top: 0; }+ .crm-record-invitation { padding-block: 15px; }+ .crm-record-invitation p { max-width: 250px; }+}diff --git a/apps/marketing/src/features/marketing/components/demo-mentions.css b/apps/marketing/src/features/marketing/components/demo-mentions.cssnew file mode 100644index 0000000000..652ecfa467--- /dev/null+++ b/apps/marketing/src/features/marketing/components/demo-mentions.css@@ -0,0 +1,87 @@+/* Frozen MentionsMenu Surface, ItemBin, and MentionsMenuItem dimensions. */+.workspace-demo .demo-mention-menu {+ position: fixed;+ z-index: 250;+ width: min(384px, calc(100vw - 24px));+ max-height: min(460px, 70vh);+ display: flex;+ flex-direction: column;+ overflow: hidden;+ padding: 8px 0 6px;+ background: var(--color-menu-glass, #202020);+ color: var(--color-ink, #fff);+ border: 1px solid var(--color-edge-muted, #333);+ border-radius: 12px;+ box-shadow: 0 12px 36px #0006;+ font: 500 14px/20px var(--font-sans, -apple-system, BlinkMacSystemFont, sans-serif);+ text-align: left;+ letter-spacing: normal;+ color-scheme: dark;+}+.workspace-demo .demo-mention-menu,+.workspace-demo .demo-mention-menu * { box-sizing: border-box; }+.workspace-demo .demo-mention-groups { min-height: 0; overflow: auto; scrollbar-width: none; }+.workspace-demo .demo-mention-menu section + section {+ border-top: 1px solid var(--color-edge-muted, #333);+ margin-top: 16px;+ padding-top: 8px;+}+.workspace-demo .demo-mention-heading {+ display: flex;+ justify-content: space-between;+ gap: 8px;+ padding: 0 8px 8px;+ color: var(--color-ink-extra-muted, #888);+ font-size: 12px;+ line-height: 16px;+}+.workspace-demo .demo-mention-heading button { border: 0; background: none; color: inherit; font: inherit; padding: 0; }+.workspace-demo .demo-mention-heading button:hover { color: var(--color-ink); text-decoration: underline; }+.workspace-demo .demo-mention-option {+ display: flex;+ align-items: center;+ gap: 8px;+ width: calc(100% - 12px);+ min-height: 32px;+ margin-inline: 6px;+ padding: 6px;+ border: 0;+ border-radius: 6px;+ background: none;+ color: inherit;+ text-align: left;+ font: inherit;+}+.workspace-demo .demo-mention-option[aria-selected=true] { background: color-mix(in srgb, var(--color-ink, #fff) 5%, transparent); }+.workspace-demo .demo-mention-option img { width: 16px; height: 16px; flex: none; border-radius: 50%; object-fit: cover; }+.workspace-demo .demo-mention-option > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }+.workspace-demo .demo-mention-detail { margin-left: .5em; opacity: .5; }+.workspace-demo .demo-mention-icon { display: inline-flex; width: 16px; height: 16px; flex: none; color: var(--color-ink-muted, #bbb); }+.workspace-demo .demo-mention-icon svg { width: 100%; height: 100%; }+.workspace-demo .demo-mention-icon.mention-document { color: var(--color-note, #b68aff); }+.workspace-demo .demo-mention-icon.mention-task { color: var(--color-task, #37bb72); }+.workspace-demo .demo-mention-icon.mention-agent { color: var(--color-chat, #69cbe0); }+.workspace-demo .demo-mention-icon.mention-spreadsheet { color: var(--color-success, #37bb72); }+.workspace-demo .demo-mention-empty { padding: 8px; color: var(--color-ink-extra-muted, #888); font-weight: 400; }++/* UserMention and DocumentMention/MentionContainer use the editor's font size. */+.workspace-demo .demo-inline-mention { display: inline; white-space: normal; color: inherit; }+.workspace-demo .demo-inline-mention.mention-person {+ padding: 2px;+ border-radius: 6px;+ color: var(--color-accent, #59a8ed);+ background: color-mix(in srgb, var(--color-accent, #59a8ed) 8%, transparent);+ white-space: nowrap;+}+.workspace-demo .demo-inline-mention > .demo-mention-icon { position: relative; top: .125em; width: 1em; height: 1em; margin-inline: 4px; }+.workspace-demo .demo-inline-mention:not(.mention-person) > .demo-mention-name {+ text-decoration: underline;+ text-decoration-color: color-mix(in srgb, currentColor 20%, transparent);+ text-decoration-thickness: max(1px, .1em);+ text-underline-offset: 2px;+}+.workspace-demo .demo-mention-status { display: inline-block; width: .75em; height: .75em; border: 2px solid var(--color-task, #37bb72); border-radius: 50%; margin-left: 4px; }+.workspace-demo .demo-mention-status[data-status='In Review'] { border-color: var(--color-violet); background: conic-gradient(transparent 0 75%, var(--color-violet) 75% 100%); }+.workspace-demo .demo-mention-status[data-status='In Progress'] { border-color: var(--color-orange); background: linear-gradient(90deg, var(--color-orange) 50%, transparent 50%); }+.workspace-demo .demo-mention-editor { white-space: pre-wrap; overflow-wrap: anywhere; }+.workspace-demo .demo-mention-editor:empty::before { content: attr(data-placeholder); color: var(--color-composer-placeholder); pointer-events: none; }diff --git a/apps/marketing/src/features/marketing/components/documents/DocumentStories.tsx b/apps/marketing/src/features/marketing/components/documents/DocumentStories.tsxnew file mode 100644index 0000000000..094840e87c--- /dev/null+++ b/apps/marketing/src/features/marketing/components/documents/DocumentStories.tsx@@ -0,0 +1,170 @@+import ListChecks from '@phosphor/list-checks.svg';+import { createSignal, Show } from 'solid-js';+import { createDummyWorkspace } from '../../primitives/createDummyWorkspace';+import { createProductWalkthrough } from '../../primitives/createProductWalkthrough';+import { HomepageConversation } from '../HomepageConversation';+import { ProductDemo } from '../product/ProductPage';+import { ProductShareDialog } from '../product/ProductShareDialog';+import { ProductWorkspace } from '../product/ProductWorkspace';+import { WorkspaceDocuments } from '../workspace/WorkspaceDocuments';+import '../workspace/dummy-workspace.css';+import '../demo-markdown.css';++const draft =+ '## Thursday’s launch\n\nWe’re introducing the team workspace on Thursday. The invite flow and announcement need a final check.';+const finished =+ '## Thursday’s launch\n\nBring the team’s emails, messages, and tasks into one workspace.\n\n## Before we publish\n\n- Teo: verify the invite flow.\n- Julia: review the announcement.\n- Jacob: confirm the final launch checks.';+function documentWorkspace() {+ const w = createDummyWorkspace('documents');+ w.open('documents', 'plan');+ w.setData('documents', (d) => d.id === 'plan', { body: draft, comments: [] });+ return w;+}++export function DocumentEditingDemo() {+ let root!: HTMLDivElement;+ const w = documentWorkspace();+ const [editing, setEditing] = createSignal(false);+ const finish = () =>+ w.setData('documents', (d) => d.id === 'plan', 'body', finished);+ const playback = createProductWalkthrough({+ root: () => root,+ steps: 3,+ reset: () => {},+ reduced: finish,+ advance: (s) => {+ if (s === 1) setEditing(true);+ if (s === 2) finish();+ if (s === 3) setEditing(false);+ },+ });+ return (+ <ProductDemo+ ref={(el) => (root = el)}+ label="Edit the working launch document"+ action={editing() ? 'document' : undefined}+ onInteract={playback.pause}+ >+ <WorkspaceDocuments workspace={w} />+ </ProductDemo>+ );+}++export function DocumentAgentDemo() {+ let root!: HTMLDivElement;+ const w = documentWorkspace();+ const [editing, setEditing] = createSignal(false);+ const finish = () => {+ w.setData('documents', (d) => d.id === 'plan', 'body', finished);+ setEditing(false);+ };+ const playback = createProductWalkthrough({+ root: () => root,+ steps: 4,+ reset: () => {},+ reduced: finish,+ advance: (s) => {+ if (s === 1) setEditing(true);+ if (s === 2) finish();+ },+ });+ return (+ <div ref={root} onPointerDown={playback.pause} onKeyDown={playback.pause}>+ <div class="product-demo-request">+ <HomepageConversation+ messages={[+ {+ person: 'julia',+ text: '@Claude, make the launch introduction shorter and add a checklist with Teo, Julia, and Jacob’s next steps.',+ },+ ]}+ />+ </div>+ <ProductDemo+ label="An agent edits the same document"+ onInteract={playback.pause}+ action={editing() ? 'document' : undefined}+ >+ <WorkspaceDocuments workspace={w} />+ <Show when={editing()}>+ <div class="product-editing-pointer" aria-hidden="true">+ <svg viewBox="0 0 16 20">+ <path d="M2 1v15l4-4 3 7 3-1-3-7h6Z" fill="currentColor" />+ </svg>+ <span>Claude</span>+ </div>+ </Show>+ </ProductDemo>+ </div>+ );+}++export function DocumentDiscussionDemo() {+ const w = documentWorkspace();+ w.setData('documents', (d) => d.id === 'plan', {+ body: '## Announcement wording\n\nBring your team’s emails, messages, and tasks into one workspace.',+ comments: [+ {+ id: 'wording',+ person: 'teo',+ body: 'Can we make the invite flow explicit? That’s what changes for existing teams.',+ time: '9:40 AM',+ },+ {+ id: 'answer',+ person: 'julia',+ body: 'Yes. I’ll add that in the next paragraph before publishing.',+ time: '9:42 AM',+ },+ ],+ });+ return (+ <ProductDemo label="Discuss the document alongside its content">+ <WorkspaceDocuments workspace={w} />+ </ProductDemo>+ );+}++export function DocumentLinkedTaskDemo() {+ const w = documentWorkspace();+ return (+ <ProductDemo label="Open the task linked to the document">+ <Show+ when={w.contentView() === 'documents'}+ fallback={<ProductWorkspace workspace={w} />}+ >+ <WorkspaceDocuments+ workspace={w}+ relatedContent={+ <div class="mt-6">+ <button+ type="button"+ class="dummy-entity-link"+ onClick={() => w.open('tasks', 'checklist')}+ >+ <ListChecks class="size-4 text-task" />+ Prepare the launch checklist+ </button>+ </div>+ }+ />+ </Show>+ </ProductDemo>+ );+}++/** The native Share flow, isolated from real document access. */+export function DocumentSharingDemo() {+ const w = documentWorkspace();+ const [open, setOpen] = createSignal(false);+ return (+ <ProductDemo label="Share a working document with a teammate">+ <WorkspaceDocuments workspace={w} onShare={() => setOpen(true)} />+ <ProductShareDialog+ open={open()}+ title="Q3 launch plan"+ onClose={() => setOpen(false)}+ />+ </ProductDemo>+ );+}diff --git a/apps/marketing/src/features/marketing/components/email/EmailAgenticEditingDemo.tsx b/apps/marketing/src/features/marketing/components/email/EmailAgenticEditingDemo.tsxnew file mode 100644index 0000000000..4a7384cafe--- /dev/null+++ b/apps/marketing/src/features/marketing/components/email/EmailAgenticEditingDemo.tsx@@ -0,0 +1,37 @@+import { HomepageConversation } from '../HomepageConversation';+import HomepageEmailCompose from '../HomepageEmailCompose';+import { HomepageMention } from '../HomepageMention';+import './email-agentic-editing.css';++/** The homepage conversation and editable draft, kept local to this demo. */+export function EmailAgenticEditingDemo() {+ return (+ <div class="email-editing-stage">+ <HomepageConversation+ messages={[+ {+ person: 'julia',+ text: 'Dana wants to invite her team. Are we still on for Thursday?',+ },+ {+ person: 'jacob',+ text: (+ <>+ <span class="homepage-person-mention">@Claude</span>, draft a+ follow-up email based on{' '}+ <HomepageMention+ kind="call"+ label="Demo call transcript"+ description="The demo with Dana: team rollout, sales materials, and next steps."+ href="#agentic-editing"+ />+ . Include the sales PDF and rollout doc, and cc Julia.+ </>+ ),+ },+ ]}+ />+ <HomepageEmailCompose appChrome />+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/email/EmailAutoTagsDemo.tsx b/apps/marketing/src/features/marketing/components/email/EmailAutoTagsDemo.tsxnew file mode 100644index 0000000000..6e85599ff8--- /dev/null+++ b/apps/marketing/src/features/marketing/components/email/EmailAutoTagsDemo.tsx@@ -0,0 +1,207 @@+import ArrowLeft from '@phosphor/arrow-left.svg';+import Check from '@phosphor/check.svg';+import Tag from '@phosphor/tag.svg';+import X from '@phosphor/x.svg';+import { Button } from '@ui';+import { createSignal, For, Show } from 'solid-js';+import { DocsDemoPointer } from '../../../../app/components/featureGraphics/DocsMarkdownScene';+import {+ type DemoEmail,+ demoEmails,+ type EmailTagId,+ emailTags,+} from '../../core/demo-email';+import { createEmailWalkthrough } from '../../primitives/createEmailWalkthrough';+import { EmailRows } from './frozen/EmailRows';+import { EmailShell } from './frozen/EmailShell';+import { EmailThread } from './frozen/EmailThread';+import './email-feature-demos.css';+import './email-auto-tags-stage.css';++const incoming = demoEmails.slice(0, 4);++export function EmailAutoTagsDemo() {+ let root!: HTMLDivElement;+ const [tags, setTags] = createSignal<Record<string, EmailTagId[]>>({});+ const [selected, setSelected] = createSignal(0);+ const [menu, setMenu] = createSignal(false);+ const [opened, setOpened] = createSignal(false);+ const [step, setStep] = createSignal(0);+ const emails = () =>+ incoming.map((email) => ({ ...email, tags: tags()[email.id] ?? [] }));+ const email = () => emails()[selected()];+ const finish = () => {+ setTags(+ Object.fromEntries(incoming.map((email) => [email.id, email.tags ?? []]))+ );+ setMenu(false);+ setStep(9);+ };+ const playback = createEmailWalkthrough({+ root: () => root,+ steps: 9,+ reset: () => {+ setTags({});+ setSelected(0);+ setMenu(false);+ setOpened(false);+ setStep(0);+ },+ reduced: finish,+ advance: (next) => {+ setStep(next);+ if (next === 9) return finish();+ const index = Math.floor((next - 1) / 2);+ setSelected(index);+ setMenu(next % 2 === 1);+ if (next % 2 === 0)+ setTags((previous) => ({+ ...previous,+ [incoming[index].id]: incoming[index].tags ?? [],+ }));+ },+ });+ const toggleTag = (tag: EmailTagId) => {+ playback.pause();+ const id = email().id;+ const current = tags()[id] ?? [];+ setTags({+ ...tags(),+ [id]: current.includes(tag)+ ? current.filter((value) => value !== tag)+ : [...current, tag],+ });+ };+ const open = (item: DemoEmail) => {+ playback.pause();+ setSelected(incoming.findIndex((email) => email.id === item.id));+ setMenu(false);+ setOpened(true);+ };+ return (+ <div+ ref={root}+ class="email-tags-demo email-feature-demo"+ data-step={step()}+ data-opened={opened()}+ >+ <div class="email-tag-stage">+ <EmailShell label="Automatic email tagging demo" class="glass-input">+ <header class="email-feature-toolbar">+ <Show+ when={opened()}+ fallback={+ <span>+ Signal{' '}+ <span class="email-toolbar-secondary">/ Incoming mail</span>+ </span>+ }+ >+ <Button+ variant="plain"+ size="icon-sm"+ aria-label="Back to incoming email"+ onClick={() => {+ setOpened(false);+ setMenu(false);+ }}+ >+ <ArrowLeft />+ </Button>+ <span class="truncate">{email().subject}</span>+ </Show>+ <span class="email-tag-count" role="status">+ {Object.values(tags()).filter((value) => value.length).length} /{' '}+ {incoming.length} tagged+ </span>+ <Button+ variant="ghost"+ size="sm"+ class="ml-auto"+ aria-label="Edit selected email tags"+ aria-expanded={menu()}+ onClick={() => {+ playback.pause();+ setMenu(!menu());+ }}+ >+ <Tag />+ Tags+ </Button>+ </header>+ <Show+ when={opened()}+ fallback={+ <EmailRows+ emails={emails()}+ selectedId={email().id}+ onOpen={open}+ />+ }+ >+ <EmailThread email={email()} hideHeader hideReply />+ </Show>+ <Show when={menu()}>+ <div+ class="email-auto-tag-menu"+ role="group"+ aria-label={`Tags for ${email().subject}`}+ >+ <div class="email-auto-tag-menu-title">+ <span>Add tags</span>+ <Button+ variant="plain"+ size="icon-sm"+ aria-label="Close tags"+ onClick={() => {+ playback.pause();+ setMenu(false);+ }}+ >+ <X />+ </Button>+ </div>+ <For each={emailTags}>+ {(tag) => (+ <button+ type="button"+ aria-pressed={email().tags.includes(tag.id)}+ onClick={() => toggleTag(tag.id)}+ >+ <span+ class="email-tag-dot"+ style={{ background: tag.color }}+ />+ {tag.label}+ <Show when={email().tags.includes(tag.id)}>+ <Check />+ </Show>+ </button>+ )}+ </For>+ </div>+ </Show>+ <Show when={playback.playing() && !playback.reducedMotion()}>+ <div+ class="email-agent-pointer"+ data-menu={menu()}+ style={{+ '--email-cursor-row': selected(),+ '--email-tag-index': Math.max(+ 0,+ emailTags.findIndex(+ (tag) => tag.id === incoming[selected()].tags?.[0]+ )+ ),+ }}+ aria-hidden="true"+ >+ <DocsDemoPointer />+ <span>Claude</span>+ </div>+ </Show>+ </EmailShell>+ </div>+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/email/EmailComparison.tsx b/apps/marketing/src/features/marketing/components/email/EmailComparison.tsxindex 6f16d2d438..6a2785b280 100644--- a/apps/marketing/src/features/marketing/components/email/EmailComparison.tsx+++ b/apps/marketing/src/features/marketing/components/email/EmailComparison.tsx@@ -40,14 +40,17 @@ const comparisonRows: ComparisonRow[] = [},{ feature: 'Split-screen multitasking', cells: [true, false, true, false] },{- feature: 'AI with your whole workspace as context',+ feature: 'Agents search email, chat, docs & calls',cells: [true, false, false, false],},{feature: '@mention docs, people & tasks',cells: [true, false, false, false],},- { feature: 'Shared team memory', cells: [true, false, false, false] },+ {+ feature: 'Memory built from workspace activity',+ cells: [true, false, false, false],+ },{ feature: 'Open source', cells: [true, false, false, false] },];diff --git a/apps/marketing/src/features/marketing/components/email/EmailDemos.test.tsx b/apps/marketing/src/features/marketing/components/email/EmailDemos.test.tsxindex 978c35b7de..1706c7e74c 100644--- a/apps/marketing/src/features/marketing/components/email/EmailDemos.test.tsx+++ b/apps/marketing/src/features/marketing/components/email/EmailDemos.test.tsx@@ -2,6 +2,7 @@ import { cleanup, fireEvent, render, within } from '@solidjs/testing-library';import { afterEach, beforeEach, expect, it, vi } from 'vitest';import { EmailInboxDemo, EmailSignalNoiseDemo } from './EmailInboxDemo';import { EmailSharingDemo } from './EmailSharingDemo';+import { ChannelComposer } from './frozen/ChannelComposer';let visibility: IntersectionObserverCallback;let reducedMotion = false;@@ -124,7 +125,7 @@ function setVisible(isIntersecting: boolean) {);}-it('pauses playback offscreen, supports pause and replay, and cleans up its timer', () => {+it('pauses playback offscreen and after interaction, and cleans up its timer', () => {const view = render(() => <EmailSharingDemo />);const phase = () =>view.container@@ -141,20 +142,34 @@ it('pauses playback offscreen, supports pause and replay, and cleans up its timesetVisible(true);vi.advanceTimersByTime(1100);expect(phase()).toBe('2');- fireEvent.click(- view.getByRole('button', { name: 'Pause sharing animation' })- );+ fireEvent.click(view.getByRole('button', { name: 'Close share preview' }));vi.advanceTimersByTime(10000);- expect(phase()).toBe('2');- fireEvent.click(view.getByRole('button', { name: 'Replay' }));expect(phase()).toBe('0');- vi.advanceTimersByTime(7450);- expect(phase()).toBe('6');view.unmount();expect(disconnect).toHaveBeenCalled();expect(vi.getTimerCount()).toBe(0);});+it('keeps the live reply in the shared thread and stops at the completed result', () => {+ const view = render(() => <EmailSharingDemo />);+ setVisible(true);+ vi.advanceTimersByTime(10650);+ expect(view.getByText('2 messages · New reply from Dana')).toBeTruthy();+ vi.advanceTimersByTime(30000);+ expect(view.getByText('2 messages · New reply from Dana')).toBeTruthy();+ expect(vi.getTimerCount()).toBe(0);+ fireEvent.click(+ view.getByRole('button', {+ name: 'Open shared email: Next steps for our team',+ })+ );+ expect(view.getByText('Hi Jacob,')).toBeTruthy();+ expect(+ view.getByText(/One more thing: could you include the onboarding guide/)+ ).toBeTruthy();+ expect(view.queryByRole('button', { name: /Play|Pause|Replay/ })).toBeNull();+});+it('shows the shared result without autoplay for reduced motion', () => {reducedMotion = true;const view = render(() => <EmailSharingDemo />);@@ -167,7 +182,6 @@ it('shows the shared result without autoplay for reduced motion', () => {expect(view.queryByRole('button', { name: 'Pause sharing animation' })).toBeNull();- fireEvent.click(view.getByRole('button', { name: 'Replay' }));vi.advanceTimersByTime(10000);expect(view.getByRole('button', {@@ -175,3 +189,42 @@ it('shows the shared result without autoplay for reduced motion', () => {})).toBeTruthy();});++it('keeps local attachment names, permits removal, and clears them after sending', () => {+ const onSend = vi.fn();+ const view = render(() => <ChannelComposer onSend={onSend} />);+ const picker = view.getByLabelText('Choose local attachments');+ fireEvent.change(picker, {+ target: {+ files: [+ new File(['sample'], 'rollout.txt'),+ new File(['sample'], 'notes.txt'),+ ],+ },+ });+ fireEvent.click(+ view.getByRole('button', { name: 'Remove attachment notes.txt' })+ );+ fireEvent.click(view.getByRole('button', { name: 'Send demo message' }));+ expect(onSend).toHaveBeenCalledWith('Attached: rollout.txt');+ expect(+ view.queryByRole('button', { name: 'Remove attachment rollout.txt' })+ ).toBeNull();+ expect(+ view+ .getByRole('button', { name: 'Send demo message' })+ .hasAttribute('disabled')+ ).toBe(true);+});++it('does not send while composing text or inserting a line break', () => {+ const onSend = vi.fn();+ const view = render(() => <ChannelComposer onSend={onSend} />);+ const input = view.getByRole('textbox');+ fireEvent.input(input, { target: { value: 'Ready for review' } });+ fireEvent.keyDown(input, { key: 'Enter', shiftKey: true });+ fireEvent.keyDown(input, { key: 'Enter', isComposing: true });+ expect(onSend).not.toHaveBeenCalled();+ fireEvent.keyDown(input, { key: 'Enter' });+ expect(onSend).toHaveBeenCalledWith('Ready for review');+});diff --git a/apps/marketing/src/features/marketing/components/email/EmailDesktopDemo.tsx b/apps/marketing/src/features/marketing/components/email/EmailDesktopDemo.tsxnew file mode 100644index 0000000000..78a2a9e96c--- /dev/null+++ b/apps/marketing/src/features/marketing/components/email/EmailDesktopDemo.tsx@@ -0,0 +1,11 @@+import { WorkspaceDesktopDemo } from '../WorkspaceDesktopDemo';++export function EmailDesktopDemo() {+ return (+ <WorkspaceDesktopDemo+ view="email"+ label="Try Macro Mail"+ caption="Your inbox, in context. Click around — this workspace is yours to explore."+ />+ );+}diff --git a/apps/marketing/src/features/marketing/components/email/EmailFeatureDemos.test.tsx b/apps/marketing/src/features/marketing/components/email/EmailFeatureDemos.test.tsxnew file mode 100644index 0000000000..f654d11f6c--- /dev/null+++ b/apps/marketing/src/features/marketing/components/email/EmailFeatureDemos.test.tsx@@ -0,0 +1,147 @@+import { cleanup, fireEvent, render, within } from '@solidjs/testing-library';+import { afterEach, beforeEach, expect, it, vi } from 'vitest';+import { EmailAutoTagsDemo } from './EmailAutoTagsDemo';+import { EmailKeyboardDemo } from './EmailKeyboardDemo';++let visible: IntersectionObserverCallback;+let reduced = false;+const disconnect = vi.fn();+beforeEach(() => {+ vi.useFakeTimers();+ reduced = false;+ vi.stubGlobal('fetch', vi.fn());+ vi.spyOn(document, 'hidden', 'get').mockReturnValue(false);+ vi.stubGlobal('matchMedia', () => ({+ matches: reduced,+ addEventListener: vi.fn(),+ removeEventListener: vi.fn(),+ }));+ vi.stubGlobal(+ 'IntersectionObserver',+ class {+ constructor(callback: IntersectionObserverCallback) {+ visible = callback;+ }+ observe() {}+ disconnect = disconnect;+ }+ );+});+afterEach(() => {+ cleanup();+ expect(fetch).not.toHaveBeenCalled();+ vi.clearAllTimers();+ vi.useRealTimers();+ vi.restoreAllMocks();+ vi.unstubAllGlobals();+});+function setVisible(isIntersecting: boolean) {+ visible(+ [{ isIntersecting } as IntersectionObserverEntry],+ {} as IntersectionObserver+ );+}++it('tags incoming mail, pauses offscreen and preserves manual tag edits', () => {+ const view = render(() => <EmailAutoTagsDemo />);+ vi.advanceTimersByTime(3000);+ expect(view.getByText('0 / 4 tagged')).toBeTruthy();+ setVisible(true);+ vi.advanceTimersByTime(2800);+ expect(view.getByText('1 / 4 tagged')).toBeTruthy();+ setVisible(false);+ vi.advanceTimersByTime(5000);+ expect(view.getByText('1 / 4 tagged')).toBeTruthy();+ fireEvent.click(+ view.getByRole('button', { name: 'Read Next steps for our team' })+ );+ fireEvent.click(+ view.getByRole('button', { name: 'Edit selected email tags' })+ );+ const menu = within(+ view.getByRole('group', { name: 'Tags for Next steps for our team' })+ );+ fireEvent.click(menu.getByRole('button', { name: 'Customers' }));+ fireEvent.click(menu.getByRole('button', { name: 'Launch' }));+ expect(+ menu.getByRole('button', { name: 'Customers' }).getAttribute('aria-pressed')+ ).toBe('false');+ expect(+ menu.getByRole('button', { name: 'Launch' }).getAttribute('aria-pressed')+ ).toBe('true');+ setVisible(true);+ vi.advanceTimersByTime(20000);+ expect(+ menu.getByRole('button', { name: 'Launch' }).getAttribute('aria-pressed')+ ).toBe('true');+});++it('navigates with J/K, opens threads and archives the selection through the empty state', () => {+ const view = render(() => <EmailKeyboardDemo />);+ const region = view.getByRole('region', {+ name: 'Try email keyboard shortcuts',+ });+ fireEvent.keyDown(region, { key: 'j' });+ expect(+ view+ .getByRole('button', { name: 'Read Launch announcement' })+ .getAttribute('aria-current')+ ).toBe('true');+ fireEvent.keyDown(region, { key: 'Enter' });+ expect(+ view.getByRole('heading', { name: 'Launch announcement' })+ ).toBeTruthy();+ fireEvent.keyDown(region, { key: 'k' });+ expect(+ view.getByRole('heading', { name: 'Next steps for our team' })+ ).toBeTruthy();+ fireEvent.keyDown(region, { key: 'e' });+ expect(+ view.getByRole('heading', { name: 'Launch announcement' })+ ).toBeTruthy();+ fireEvent.keyDown(region, { key: 'Escape' });+ expect(+ view.queryByRole('button', { name: 'Read Next steps for our team' })+ ).toBeNull();+ for (let count = 0; count < 3; count++)+ fireEvent.keyDown(region, { key: 'e' });+ expect(view.getByText('All caught up.')).toBeTruthy();+ fireEvent.keyDown(region, { key: 'j' });+ expect(view.getByText('All caught up.')).toBeTruthy();+});++it('does not capture page-wide, modified or composing keys', () => {+ const view = render(() => <EmailKeyboardDemo />);+ const region = view.getByRole('region', {+ name: 'Try email keyboard shortcuts',+ });+ fireEvent.keyDown(document.body, { key: 'e' });+ fireEvent.keyDown(region, { key: 'e', metaKey: true });+ fireEvent.keyDown(region, { key: 'e', isComposing: true });+ expect(view.getAllByRole('button', { name: /^Read / })).toHaveLength(4);+});++it('finishes keyboard playback and cleans up its timer', () => {+ const view = render(() => <EmailKeyboardDemo />);+ setVisible(true);+ vi.advanceTimersByTime(1400);+ expect(+ view.getByRole('heading', { name: 'Next steps for our team' })+ ).toBeTruthy();+ vi.advanceTimersByTime(7000);+ expect(view.queryByText('1 archived')).toBeNull();+ expect(view.getAllByRole('button', { name: /^Read / })).toHaveLength(3);+ expect(view.queryByRole('button', { name: /Play|Pause|Replay/ })).toBeNull();+ view.unmount();+ expect(vi.getTimerCount()).toBe(0);+ expect(disconnect).toHaveBeenCalled();+});++it('shows completed tagging without autoplay for reduced motion', () => {+ reduced = true;+ const view = render(() => <EmailAutoTagsDemo />);+ setVisible(true);+ expect(view.getByText('4 / 4 tagged')).toBeTruthy();+ expect(view.queryByRole('button', { name: 'Pause tagging demo' })).toBeNull();+ expect(view.getByText('4 / 4 tagged')).toBeTruthy();+});diff --git a/apps/marketing/src/features/marketing/components/email/EmailFeatureGraphics.tsx b/apps/marketing/src/features/marketing/components/email/EmailFeatureGraphics.tsxindex 506916a0ef..96917d3388 100644--- a/apps/marketing/src/features/marketing/components/email/EmailFeatureGraphics.tsx+++ b/apps/marketing/src/features/marketing/components/email/EmailFeatureGraphics.tsx@@ -1,17 +1,17 @@import type { ParentProps } from 'solid-js';+import './email-feature-graphics.css';-// Small, website-owned line drawings. Decorative: the adjacent link supplies-// the accessible label, and the SVGs need no image request or animation runtime.+/** Decorative artwork; the adjacent link provides the accessible label. */function Graphic(props: ParentProps) {return (<svgclass="email-feature-graphic"- width="160"- height="100"- viewBox="0 0 160 100"+ width="200"+ height="128"+ viewBox="0 0 200 128"fill="none"stroke="currentColor"- stroke-width="1"+ stroke-width="1.25"stroke-linecap="round"stroke-linejoin="round"aria-hidden="true"@@ -24,24 +24,25 @@ function Graphic(props: ParentProps) {export function OneInboxGraphic() {return (<Graphic>- <g opacity=".25">- <path d="m34 31 38-19 45 22-38 19Z" />- <path d="m34 31 38 3 45 0" />- </g>- <g opacity=".5">- <path d="m34 42 38-19 45 22-38 19Z" fill="#080808" />- <path d="m34 42 39 3 44 0M73 45l6 19" />- </g>- <path d="m34 53 38-19 45 22-38 19Z" fill="#0b0b0b" />- <path d="m34 53 39 3 44 0M73 56l6 19" opacity=".8" />- <path- d="m24 60 16-8m70 0 22 11-47 24-61-27v10l61 27 47-24V63"- opacity=".35"+ <rect+ x="74"+ y="35"+ width="64"+ height="44"+ rx="7"+ fill="#111"+ stroke-opacity=".25"/>- <path- d="m24 60 24 11 10-5 25 11 10-5 15 3 24-12M85 87v10"- opacity=".65"+ <rect+ x="62"+ y="47"+ width="64"+ height="44"+ rx="7"+ fill="#171717"+ stroke-opacity=".65"/>+ <path d="m64 51 25 19a8 8 0 0 0 10 0l25-19" stroke-opacity=".85" /></Graphic>);}@@ -49,18 +50,15 @@ export function OneInboxGraphic() {export function AgenticEditingGraphic() {return (<Graphic>- <path d="m37 32 46-22 41 20v47L78 99 37 79Z" opacity=".18" />- <path d="M40 22h65l15 15v47H40Z" fill="#070707" opacity=".65" />- <path d="M105 22v15h15" opacity=".5" />- <path d="M52 38h30M52 48h52M52 58h18" opacity=".4" />- <path d="M78 58h26" opacity=".18" />- <path d="M76 55h30" opacity=".45" />- <path d="M52 69h43" />- <path d="M99 63v12m-2-12h4m-4 12h4" />+ <path d="M65 36 99 17l42 24-34 20Z" fill="#111213" /><path- d="M130 14c0 6-3 9-9 9 6 0 9 3 9 9 0-6 3-9 9-9-6 0-9-3-9-9Z"- opacity=".65"+ d="m65 36 42 25v36L65 72ZM107 61l34-20v36l-34 20"+ stroke="#555a60"/>+ <path d="m79 36 20-11 28 16-20 12Z" stroke="#555a60" />+ <path d="m84 36 13 8m-6-12 18 11m-10-15 19 11" />+ <path d="m116 65 13-8m-13 15 19-11" stroke="#555a60" />+ <path d="m98 43 8 5" stroke="#b6c7bf" stroke-width="2" /></Graphic>);}@@ -68,13 +66,13 @@ export function AgenticEditingGraphic() {export function SignalNoiseGraphic() {return (<Graphic>- <path d="M18 51h124M80 15v70" opacity=".12" />- <g opacity=".2">- <path d="M23 68v7m8-13v20m8-12v6m8-16v24m8-16v8m8-10v14m8-9v5m8-12v17m8-14v9m8-17v25m8-16v8m8-15v21m8-12v6m8-11v15m8-10v5" />- </g>- <path d="M18 49h17c13 0 15-26 27-26s14 37 26 37 14-26 26-26 16 15 28 15" />- <circle cx="62" cy="23" r="2.5" fill="#000" />- <path d="M62 12v-4m-11 5-3-3m25 3 3-3" opacity=".35" />+ <path d="M51 76h98" stroke-opacity=".12" />+ <path+ d="M51 76h17c17 0 17-37 32-37s15 37 32 37h17"+ stroke-opacity=".85"+ />+ <circle cx="100" cy="39" r="10" fill="#0d0d0d" stroke-opacity=".2" />+ <circle cx="100" cy="39" r="3" fill="#deded8" stroke="none" /></Graphic>);}@@ -82,18 +80,36 @@ export function SignalNoiseGraphic() {export function EmailSharingGraphic() {return (<Graphic>- <path d="M25 27h45v31H25Z" fill="#080808" />- <path d="m25 28 22.5 17L70 28M25 58l16-18m29 18L54 40" opacity=".7" />- <path- d="M70 43h9c7 0 10 4 10 10v5c0 6 4 10 10 10h8m-5-5 5 5-5 5"- opacity=".5"- />- <path d="M94 43h45v43H94" opacity=".16" />- <path d="M110 51h29v35h-29" opacity=".5" />- <path d="M117 60h15m-16 8h15m-10-13-3 19m10-19-3 19" />- <circle cx="107" cy="26" r="4" opacity=".45" />- <circle cx="122" cy="26" r="4" opacity=".25" />- <path d="M99 38c0-6 3-8 8-8s8 2 8 8m0-7c8-3 15 0 15 7" opacity=".3" />+ <path d="m48 51 37-21 43 25-37 21Z" fill="#111213" />+ <path d="m48 51 43 25v9L48 60Zm43 25 37-21v9L91 85" stroke="#555a60" />+ <path d="m53 51 34 5 34-1M87 56l4 15" />+ <path d="m109 81 16-9 24 14-16 9Z" fill="#111213" />+ <path d="m109 81 24 14v6l-24-14m24 8 16-9v6l-16 9" stroke="#555a60" />+ <path d="m119 82 12 7m-7-10 12 7m-16 0 11-6m-6 9 11-6" />+ </Graphic>+ );+}++export function AutoTagsGraphic() {+ return (+ <Graphic>+ <path d="m52 56 33-25 57 34-31 19-29-1Z" fill="#111213" />+ <path d="m52 56 30 27 29 1 31-19v7l-31 19-29-1-30-27Z" stroke="#555a60" />+ <ellipse cx="81" cy="51" rx="5" ry="3" />+ <path d="m96 63 8 6 18-10" stroke="#b6c7bf" />+ </Graphic>+ );+}++export function KeyboardSpeedGraphic() {+ return (+ <Graphic>+ <path d="m46 52 24-14 33 19-24 14Z" fill="#111213" />+ <path d="m46 52 33 19v9L46 61Zm33 19 24-14v9L79 80" stroke="#555a60" />+ <path d="m68 47 13 8q5 3 0 6l-3 2" />+ <path d="m104 52 24-14 33 19-24 14Z" fill="#111213" />+ <path d="m104 52 33 19v9l-33-19Zm33 19 24-14v9l-24 14" stroke="#555a60" />+ <path d="m124 47 16 9m-9-5 9-1m-9 1 3 8" /></Graphic>);}diff --git a/apps/marketing/src/features/marketing/components/email/EmailInboxDemo.tsx b/apps/marketing/src/features/marketing/components/email/EmailInboxDemo.tsxindex 5f97bbdb2f..42f29be52a 100644--- a/apps/marketing/src/features/marketing/components/email/EmailInboxDemo.tsx+++ b/apps/marketing/src/features/marketing/components/email/EmailInboxDemo.tsx@@ -3,6 +3,7 @@ import Signal from '@phosphor/wave-sine.svg';import Noise from '@phosphor/waveform.svg';import { Button } from '@ui';import { createSignal, For, lazy, Show, Suspense } from 'solid-js';+import type { EmailTagId } from '../../core/demo-email';import { EmailSharingDemo } from './EmailSharingDemo';import { type DemoEmail, demoEmails } from './email-fixtures';import { EmailRows } from './frozen/EmailRows';@@ -22,6 +23,7 @@ function Inbox(props: { signalNoise?: boolean }) {const [tab, setTab] = createSignal<MailTab>(props.signalNoise ? 'important' : 'all');+ const [tag, setTag] = createSignal<EmailTagId>();const [account, setAccount] = createSignal('all');const [search, setSearch] = createSignal('');const [selected, setSelected] = createSignal<DemoEmail>();@@ -36,7 +38,9 @@ function Inbox(props: { signalNoise?: boolean }) {return ((tab() === 'all' ||(tab() === 'noise' && noise) ||- (tab() === 'important' && !noise)) &&+ (tab() === 'important' && !noise) ||+ (tab() === 'favorites' && email.favorite)) &&+ (!tag() || email.tags?.includes(tag()!)) &&(account() === 'all' || email.account === account()) &&(!unreadOnly() || email.unread) &&`${email.sender} ${email.subject} ${email.snippet}`@@ -47,6 +51,7 @@ function Inbox(props: { signalNoise?: boolean }) {const title = () =>mailTabs.find((item) => item.id === tab())?.label ?? 'Email';const onTab = (next: MailTab) => {+ setTag(undefined);setTab(next);setSelected(undefined);setCompose(false);@@ -65,6 +70,11 @@ function Inbox(props: { signalNoise?: boolean }) {}sidebar={<EmailSidebar+ tag={tag()}+ onTag={(value) => {+ onTab('all');+ setTag(value);+ }}tab={tab()}account={account()}onTab={onTab}diff --git a/apps/marketing/src/features/marketing/components/email/EmailKeyboardDemo.tsx b/apps/marketing/src/features/marketing/components/email/EmailKeyboardDemo.tsxnew file mode 100644index 0000000000..d34c96700a--- /dev/null+++ b/apps/marketing/src/features/marketing/components/email/EmailKeyboardDemo.tsx@@ -0,0 +1,190 @@+import ArrowLeft from '@phosphor/arrow-left.svg';+import Check from '@phosphor/check.svg';+import { Button } from '@ui';+import { createSignal, For, Show } from 'solid-js';+import { demoEmails } from '../../core/demo-email';+import { createEmailWalkthrough } from '../../primitives/createEmailWalkthrough';+import { EmailRows } from './frozen/EmailRows';+import { EmailShell } from './frozen/EmailShell';+import { EmailThread } from './frozen/EmailThread';+import './email-feature-demos.css';+import './email-keyboard-stage.css';++const inbox = demoEmails.slice(0, 4);+type Shortcut = 'j' | 'k' | 'e' | 'Enter' | 'Escape';++export function EmailKeyboardDemo() {+ let root!: HTMLDivElement;+ const [archived, setArchived] = createSignal<string[]>([]);+ const [index, setIndex] = createSignal(0);+ const [opened, setOpened] = createSignal(false);+ const [lastKey, setLastKey] = createSignal<Shortcut>();+ const emails = () => inbox.filter((email) => !archived().includes(email.id));+ const selected = () => emails()[index()];+ const act = (key: Shortcut) => {+ setLastKey(key);+ if (key === 'Escape') return setOpened(false);+ if (!selected()) return;+ if (key === 'j') setIndex(Math.min(index() + 1, emails().length - 1));+ if (key === 'k') setIndex(Math.max(index() - 1, 0));+ if (key === 'Enter') setOpened(true);+ if (key === 'e') {+ setArchived([...archived(), selected().id]);+ setIndex(Math.max(0, Math.min(index(), emails().length - 1)));+ }+ };+ const playback = createEmailWalkthrough({+ root: () => root,+ steps: 6,+ reset: () => {+ setArchived([]);+ setIndex(0);+ setOpened(false);+ setLastKey(undefined);+ },+ reduced: () => {+ setOpened(false);+ setLastKey(undefined);+ },+ advance: (step) =>+ act((['Enter', 'j', 'j', 'k', 'e', 'Escape'] as const)[step - 1]),+ });+ const manual = (key: Shortcut) => {+ playback.pause();+ act(key);+ root.focus({ preventScroll: true });+ };+ const onKeyDown = (event: KeyboardEvent) => {+ if (+ event.altKey ||+ event.metaKey ||+ event.ctrlKey ||+ event.shiftKey ||+ event.isComposing ||+ event.defaultPrevented+ )+ return;+ if (+ event.target instanceof HTMLElement &&+ event.target.closest('input, textarea, select, [contenteditable="true"]')+ )+ return;+ const key = event.key;+ if (+ key !== 'j' &&+ key !== 'k' &&+ key !== 'e' &&+ key !== 'Enter' &&+ key !== 'Escape'+ )+ return;+ // Let native Enter activation work on controls.+ if (+ key === 'Enter' &&+ event.target instanceof HTMLElement &&+ event.target.closest('button, a')+ )+ return;+ event.preventDefault();+ event.stopPropagation();+ manual(key);+ };+ return (+ <div+ ref={root}+ class="email-keyboard-demo email-feature-demo"+ tabIndex={0}+ role="region"+ aria-label="Try email keyboard shortcuts"+ onKeyDown={onKeyDown}+ >+ <div class="email-keyboard-stage">+ <EmailShell label="Keyboard email demo" class="glass-input">+ <header class="email-feature-toolbar">+ <Show when={opened()} fallback={<span>Signal</span>}>+ <Button+ variant="plain"+ size="icon-sm"+ aria-label="Back to demo inbox"+ onClick={() => manual('Escape')}+ >+ <ArrowLeft />+ </Button>+ <span class="truncate">+ Signal{' '}+ <span class="email-toolbar-secondary">+ / {selected()?.subject}+ </span>+ </span>+ </Show>+ <span class="email-toolbar-secondary">+ {emails().length} emails+ </span>+ </header>+ <div class="email-keyboard-content">+ <Show+ when={selected()}+ fallback={+ <div class="email-inbox-clear">+ <Check />+ <h3>All caught up.</h3>+ <p>You’ve archived every email in this demo.</p>+ </div>+ }+ >+ <Show+ when={opened()}+ fallback={+ <EmailRows+ emails={emails()}+ selectedId={selected()?.id}+ onOpen={(email) => {+ setIndex(+ emails().findIndex((item) => item.id === email.id)+ );+ manual('Enter');+ }}+ />+ }+ >+ <EmailThread email={selected()!} hideHeader hideReply />+ </Show>+ </Show>+ </div>+ </EmailShell>+ <div class="email-shortcut-dock" aria-label="Email shortcut controls">+ <For+ each={+ [+ { key: 'j', label: 'Next' },+ { key: 'k', label: 'Previous' },+ { key: 'Enter', label: 'Open' },+ { key: 'e', label: 'Archive' },+ { key: 'Escape', label: 'Inbox' },+ ] as const+ }+ >+ {(shortcut) => (+ <button+ type="button"+ data-active={lastKey() === shortcut.key}+ disabled={!selected()}+ onClick={() => manual(shortcut.key)}+ aria-label={`${shortcut.label} email (${shortcut.key.toUpperCase()})`}+ >+ <kbd>+ {shortcut.key === 'Enter'+ ? '↵'+ : shortcut.key === 'Escape'+ ? 'esc'+ : shortcut.key.toUpperCase()}+ </kbd>+ {shortcut.label}+ </button>+ )}+ </For>+ </div>+ </div>+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/email/EmailSharingDemo.tsx b/apps/marketing/src/features/marketing/components/email/EmailSharingDemo.tsxindex b60b856ade..89cde0ed83 100644--- a/apps/marketing/src/features/marketing/components/email/EmailSharingDemo.tsx+++ b/apps/marketing/src/features/marketing/components/email/EmailSharingDemo.tsx@@ -1,12 +1,10 @@-import ArrowCounterClockwise from '@phosphor/arrow-counter-clockwise.svg';+import Cursor from '@phosphor/cursor.svg';import Envelope from '@phosphor/envelope.svg';import Hash from '@phosphor/hash.svg';import PaperPlane from '@phosphor/paper-plane-tilt.svg';-import Pause from '@phosphor/pause.svg';-import Play from '@phosphor/play.svg';import X from '@phosphor/x.svg';import { Button } from '@ui';-import { createSignal, onCleanup, onMount, Show } from 'solid-js';+import { createEffect, createSignal, onCleanup, onMount, Show } from 'solid-js';import { homepagePeople } from '../../core/homepage-demo-people';import { HomepageConversation } from '../HomepageConversation';import { demoEmails } from './email-fixtures';@@ -14,8 +12,11 @@ import { ChannelComposer } from './frozen/ChannelComposer';import { EmailShell } from './frozen/EmailShell';import { EmailThread } from './frozen/EmailThread';import './email-demos.css';+import './email-sharing-stage.css';-const phaseDuration = [1800, 1100, 1100, 1200, 1600, 650, 5500];+const phaseDuration = [1800, 1100, 1100, 1200, 1600, 650, 3200];+const incomingReply =+ 'One more thing: could you include the onboarding guide? I’ll share it with the team before Thursday.';// The Share form's markup/classes come from TopBar/ShareButton.tsx and// ForwardToChannel.tsx. The animation changes fixture state only; it never@@ -28,7 +29,7 @@ function ShareForm(props: {return (<div class="mail-share-scrim"><div- class="mail-share-form"+ class="mail-share-form glass-input"role="group"aria-label="Share email preview">@@ -46,7 +47,7 @@ function ShareForm(props: {<X /></Button></header>- <div class="flex items-center bg-surface pr-2">+ <div class="flex items-center pr-2"><div class="min-w-0 flex-1 min-h-11 mail-recipient-input"><Showwhen={props.phase >= 3}@@ -102,7 +103,7 @@ function ShareForm(props: {<Buttonvariant={props.phase >= 3 ? 'accent' : 'ghost'}depth={3}- class="rounded-lg border-0"+ class="mail-share-submit rounded-lg border-0"disabled={props.phase < 3}onClick={props.advance}data-active={props.phase === 5}@@ -118,7 +119,7 @@ function ShareForm(props: {);}-function ChannelResult(props: { onOpen: () => void }) {+function ChannelResult(props: { onOpen: () => void; updated: boolean }) {const [messages, setMessages] = createSignal<string[]>([]);return (<div class="mail-channel">@@ -147,21 +148,29 @@ function ChannelResult(props: { onOpen: () => void }) {text: (<>Dana’s ready for Thursday. Here’s the conversation.- <span class="flex flex-row mt-2 gap-2 flex-wrap max-w-full">- <button- type="button"- class="text-ink text-sm border border-edge-muted rounded-xs hover:bg-hover flex flex-row h-6 px-2 justify-center items-center max-w-full"- onClick={props.onOpen}- aria-label="Open shared email: Next steps for our team"- >- <span class="flex justify-start items-center w-3.5 h-3.5 mr-2">- <Envelope />- </span>- <span class="flex-1 text-left leading-5 min-w-0 truncate">- Next steps for our team- </span>- </button>- </span>+ <button+ type="button"+ class="mail-shared-thread glass-input"+ onClick={props.onOpen}+ aria-label="Open shared email: Next steps for our team"+ >+ <span class="mail-shared-thread-label">+ <Envelope class="size-4" /> Email thread <span>Live</span>+ </span>+ <strong>Next steps for our team</strong>+ <span>Dana Whitfield · Jacob Beckerman</span>+ <span class="mail-shared-thread-preview">+ {props.updated+ ? incomingReply+ : 'Thursday at 9 works. Could you share the rollout plan?'}+ </span>+ <span class="mail-shared-thread-footer">+ {props.updated+ ? '2 messages · New reply from Dana'+ : '1 message · Open full thread'}{' '}+ <span aria-hidden="true">↗</span>+ </span>+ </button></>),},@@ -182,8 +191,9 @@ export function EmailSharingDemo(props: { onClose?: () => void } = {}) {const [phase, setPhase] = createSignal(0);const [playing, setPlaying] = createSignal(true);const [opened, setOpened] = createSignal(false);- const [reducedMotion, setReducedMotion] = createSignal(false);let root!: HTMLDivElement;+ let stage!: HTMLDivElement;+ const [pointer, setPointer] = createSignal<{ x: number; y: number }>();let timer: ReturnType<typeof setTimeout> | undefined;let visible = false;let reduced = false;@@ -193,9 +203,11 @@ export function EmailSharingDemo(props: { onClose?: () => void } = {}) {};const schedule = () => {clear();- if (!visible || !playing() || reduced || document.hidden) return;+ if (!visible || !playing() || reduced || document.hidden || phase() >= 7)+ return;timer = setTimeout(() => {- setPhase((phase() + 1) % phaseDuration.length);+ setPhase(phase() + 1);+ if (phase() >= 7) setPlaying(false);schedule();}, phaseDuration[phase()]);};@@ -205,21 +217,49 @@ export function EmailSharingDemo(props: { onClose?: () => void } = {}) {setPhase(next);setOpened(false);};- const replay = () => {- setOpened(false);- setPhase(reduced ? 6 : 0);- setPlaying(!reduced);- schedule();- };onMount(() => {+ function positionPointer() {+ const selectors = [+ '[data-demo-share-trigger]',+ '.mail-recipient-input',+ '.mail-recipient-option',+ '.mail-share-note',+ '.mail-share-note',+ '.mail-share-submit',+ '.mail-shared-thread',+ ];+ const selector = selectors[phase()];+ const target = selector && stage.querySelector<HTMLElement>(selector);+ if (!playing() || !visible || reduced || !target) {+ setPointer(undefined);+ return;+ }+ const bounds = target.getBoundingClientRect();+ const frame = stage.getBoundingClientRect();+ setPointer({+ x: bounds.left - frame.left + Math.min(bounds.width / 2, 100),+ y: bounds.top - frame.top + bounds.height / 2,+ });+ }+ // Measure actual controls so the walkthrough follows mobile and desktop layouts.+ createEffect(() => {+ phase();+ if (!playing()) {+ setPointer(undefined);+ return;+ }+ const frame = requestAnimationFrame(positionPointer);+ onCleanup(() => cancelAnimationFrame(frame));+ });+ const resize = new ResizeObserver(positionPointer);+ resize.observe(stage);const preference = matchMedia('(prefers-reduced-motion: reduce)');const syncPreference = () => {reduced = preference.matches;- setReducedMotion(reduced);if (reduced) {clear();setPlaying(false);- setPhase(6);+ setPhase(7);} else schedule();};syncPreference();@@ -227,6 +267,7 @@ export function EmailSharingDemo(props: { onClose?: () => void } = {}) {([entry]) => {visible = entry.isIntersecting;schedule();+ positionPointer();},{ threshold: 0.2 });@@ -236,70 +277,93 @@ export function EmailSharingDemo(props: { onClose?: () => void } = {}) {onCleanup(() => {clear();observer.disconnect();+ resize.disconnect();preference.removeEventListener('change', syncPreference);document.removeEventListener('visibilitychange', schedule);});});return (<div ref={root} class="mail-sharing-demo" data-phase={phase()}>- <EmailShell- label="Email sharing animation"- channel={phase() === 6 && !opened()}+ <div+ ref={stage}+ class="mail-sharing-stage"+ onPointerDown={() => {+ clear();+ setPlaying(false);+ }}+ onFocusIn={() => {+ clear();+ setPlaying(false);+ }}+ data-result={phase() >= 6 && !opened()}+ data-opened={opened()}>- <Show- when={phase() === 6 && !opened()}- fallback={- <EmailThread- email={demoEmails[0]}- onBack={opened() ? () => setOpened(false) : undefined}- onShare={() => manual(2)}- sharing={phase() === 1}- />- }+ <EmailShell+ class="glass-input"+ label="Email sharing animation"+ channel={phase() >= 6 && !opened()}>- <ChannelResult- onOpen={() => {- clear();- setPlaying(false);- setOpened(true);- }}- />- </Show>- </EmailShell>- <Show when={phase() >= 1 && phase() <= 5}>- <ShareForm- phase={phase()}- advance={() => manual(phase() < 3 ? 3 : 6)}- cancel={() => manual(0)}- />- </Show>- <div class="mail-demo-controls">- <Show when={!reducedMotion()}>- <Button- variant="plain"- size="sm"- aria-label={- playing() ? 'Pause sharing animation' : 'Play sharing animation'+ <Show+ when={phase() >= 6 && !opened()}+ fallback={+ <EmailThread+ email={demoEmails[0]}+ hideReply+ onBack={opened() ? () => setOpened(false) : undefined}+ onShare={() => manual(2)}+ sharing={phase() === 1}+ >+ <Show when={opened() && phase() >= 7}>+ <div class="mail-arrived-reply glass-input">+ <header>+ <strong>Dana Whitfield</strong>+ <span>Just now</span>+ </header>+ <p>{incomingReply}</p>+ </div>+ </Show>+ </EmailThread>}- onClick={() => {- setPlaying(!playing());- schedule();- }}>- <Show when={playing()} fallback={<Play />}>- <Pause />- </Show>- {playing() ? 'Pause' : 'Play'}- </Button>+ <ChannelResult+ updated={phase() >= 7}+ onOpen={() => {+ clear();+ setPlaying(false);+ setOpened(true);+ }}+ />+ </Show>+ </EmailShell>+ <Show when={phase() >= 1 && phase() <= 5}>+ <ShareForm+ phase={phase()}+ advance={() => manual(phase() < 3 ? 3 : 6)}+ cancel={() => manual(0)}+ /></Show>- <Button variant="plain" size="sm" onClick={replay}>- <ArrowCounterClockwise />- Replay- </Button>+ <Show when={playing() && pointer()}>+ {(position) => (+ <div+ class="mail-sharing-pointer"+ data-clicking={phase() === 5}+ aria-hidden="true"+ style={{+ transform: `translate(${position().x}px, ${position().y}px)`,+ }}+ >+ <Cursor />+ </div>+ )}+ </Show>+ </div>+ <div class="mail-demo-controls"><span>- {phase() === 6- ? 'The email is shared in #launch.'- : 'Share an email with a channel.'}+ {phase() >= 7+ ? 'Dana replied. Your whole team is already up to date.'+ : phase() === 6+ ? 'Shared. Open the email right from the channel.'+ : 'Choose #launch, add a note, and share.'}</span><Show when={props.onClose}><Button variant="plain" size="sm" onClick={props.onClose}>diff --git a/apps/marketing/src/features/marketing/components/email/email-agentic-editing.css b/apps/marketing/src/features/marketing/components/email/email-agentic-editing.cssnew file mode 100644index 0000000000..87f8233da7--- /dev/null+++ b/apps/marketing/src/features/marketing/components/email/email-agentic-editing.css@@ -0,0 +1,27 @@+#agentic-editing .homepage-feature-heading { max-width: 920px; margin-inline: auto; padding-inline: 24px; text-align: left; }+#agentic-editing .homepage-feature-title { justify-content: flex-start; }+#agentic-editing .homepage-section-break { display: block; }+#agentic-editing .homepage-section-break > span { display: none; }+#agentic-editing .homepage-section-break p { max-width: 490px; margin-inline: 0; white-space: pre-line; text-wrap: wrap; }++.email-editing-stage { position: relative; isolation: isolate; padding: 24px; }+.email-editing-stage::before {+ content: ''; position: absolute; inset: 0 -24px; z-index: -1; pointer-events: none;+ background: radial-gradient(ellipse at 50% 50%, #a0aabc08, transparent 70%);+}+.email-editing-stage::after {+ content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;+ background-image: radial-gradient(#d0d6e133 .6px, transparent .9px);+ background-size: 8px 8px;+ mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 70%);+ opacity: .16;+}+.email-editing-stage .homepage-conversation { width: 100%; }+.email-editing-stage .homepage-email-body p + p { margin-top: 16px; }++@media (max-width: 699px) {+ #agentic-editing .homepage-feature-heading { padding-inline: 0; }+ #agentic-editing .homepage-section-break p { max-width: 100%; white-space: normal; text-wrap: pretty; }+ .email-editing-stage { padding: 12px 0 0; }+ .email-editing-stage::before { inset: 0; }+}diff --git a/apps/marketing/src/features/marketing/components/email/email-auto-tags-stage.css b/apps/marketing/src/features/marketing/components/email/email-auto-tags-stage.cssnew file mode 100644index 0000000000..63149f6bc2--- /dev/null+++ b/apps/marketing/src/features/marketing/components/email/email-auto-tags-stage.css@@ -0,0 +1,74 @@+/* A flat product scene with a soft background and shared glass edges. */+#auto-tags .homepage-section-break > span { display: none; }+#auto-tags .homepage-section-break { display: block; }+#auto-tags .homepage-feature-heading { max-width: 920px; margin-inline: auto; padding-inline: 24px; text-align: left; }+#auto-tags .homepage-feature-title { justify-content: flex-start; }+#auto-tags .homepage-section-break p { max-width: 580px; margin-inline: 0; white-space: pre-line; text-wrap: wrap; }++.email-tag-stage {+ position: relative;+ isolation: isolate;+ padding: 58px 24px 18px;+}++.email-tag-stage::before {+ content: '';+ position: absolute;+ inset: -48px -64px 0;+ z-index: -2;+ pointer-events: none;+ background: radial-gradient(ellipse at 65% 31%, rgb(144 148 159 / 0.05), transparent 57%), radial-gradient(ellipse at 25% 60%, rgb(106 117 135 / 0.025), transparent 60%);+ mask-image: linear-gradient(transparent, #000 18%, #000 60%, transparent);+}++.email-tag-stage::after {+ content: '';+ position: absolute;+ inset: 0 -24px;+ z-index: -1;+ pointer-events: none;+ background-image: radial-gradient(rgb(208 214 225 / 0.2) 0.6px, transparent 0.9px);+ background-size: 8px 8px;+ mask-image: radial-gradient(ellipse at 63% 34%, #000, transparent 69%);+ opacity: 0.16;+}++.email-tags-demo .mail-app {+ position: relative;+ min-height: 450px;+ overflow: visible;+ border-radius: 12px;+ border: 0;+ background: linear-gradient(145deg, #17181b, #101112 55%);+ box-shadow: var(--glass-shadow);+ transform: none;+ mask-image: linear-gradient(#000 68%, rgb(0 0 0 / 0.65) 84%, transparent 100%);+ -webkit-mask-image: linear-gradient(#000 68%, rgb(0 0 0 / 0.65) 84%, transparent 100%);+}++/* The shared glass utility owns the rim; suppress the old demo outline. */+.email-tags-demo .mail-app::before { content: none; }+.email-tags-demo .mail-app-rail { display: none; }+.email-tags-demo .email-feature-toolbar { height: 62px; padding-inline: 24px; border-bottom: 1px solid rgb(255 255 255 / 0.045); }+.email-tags-demo .mail-rows { padding-top: 18px; }+.email-tags-demo .mail-date-group { padding-bottom: 18px; }+.email-tags-demo .mail-row { min-height: 54px; }+.email-tags-demo .mail-row[aria-current='true'] { background: linear-gradient(100deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.025)); box-shadow: inset 0 1px rgb(255 255 255 / 0.045); }+.email-tags-demo .email-auto-tag-menu { background: #1c1d20; border-color: rgb(255 255 255 / 0.13); box-shadow: 0 24px 50px #0009, 0 1px 0 rgb(255 255 255 / 0.06) inset; }+.email-tags-demo .email-agent-pointer { --c0: #dedbd2; }++.email-tag-count { margin-left: auto; color: #82858a; font-size: 11px; white-space: nowrap; }+.email-tags-demo .mail-demo-controls { margin-top: 18px; }+.email-tags-demo[data-opened='true'] .mail-app { mask-image: none; -webkit-mask-image: none; }++@media (max-width: 699px) {+ #auto-tags .homepage-section-break p { max-width: 100%; white-space: normal; text-wrap: pretty; }+ #auto-tags .homepage-feature-heading { padding-inline: 0; }+ .email-tag-stage { padding: 24px 0 0; }+ .email-tag-stage::before { inset: 0 -12px; }+ .email-tag-stage::after { inset: 0; }+ .email-tags-demo .mail-app { transform: none; min-height: 650px; mask-image: linear-gradient(#000 78%, transparent); -webkit-mask-image: linear-gradient(#000 78%, transparent); }+ .email-tags-demo .mail-row { min-height: 112px; }+ .email-tags-demo .email-feature-toolbar { padding-inline: 14px; }+ .email-tags-demo[data-opened='true'] .mail-app { min-height: 0; }+}diff --git a/apps/marketing/src/features/marketing/components/email/email-demos.css b/apps/marketing/src/features/marketing/components/email/email-demos.cssindex 66b446da71..5e0aa673e8 100644--- a/apps/marketing/src/features/marketing/components/email/email-demos.css+++ b/apps/marketing/src/features/marketing/components/email/email-demos.css@@ -34,7 +34,10 @@.mail-sidebar h3 { margin: 0; }.mail-main { flex: 1; min-width: 0; container: mail-list / inline-size; }.mail-rows { padding-bottom: 28px; }-.mail-row { width: calc(100% - 8px); border: 0; background: transparent; font-family: inherit; margin-bottom: 4px; }+.mail-row { width: calc(100% - 8px); border: 0; background: transparent; font-family: inherit; min-height: 40px; margin-bottom: 0; }+.mail-row:hover { background: var(--color-list-hover, var(--color-active)); }+.mail-row[data-unread=true] .mail-row-content { font-weight: 600; }+.mail-row-narrow .mail-row-tags { margin-top: 5px; }.mail-row:focus-visible { outline: 1px solid var(--color-ink-muted); outline-offset: -1px; }.mail-row.soup-row-wide { --soup-row-padding-l: .5rem; --soup-row-indicator-width: 1rem; --soup-row-column-gap: .5rem; }.mail-date-group { padding: 7px 32px 5px; }diff --git a/apps/marketing/src/features/marketing/components/email/email-desktop-demo.css b/apps/marketing/src/features/marketing/components/email/email-desktop-demo.cssnew file mode 100644index 0000000000..ff4d4d1200--- /dev/null+++ b/apps/marketing/src/features/marketing/components/email/email-desktop-demo.css@@ -0,0 +1,54 @@+.email-desktop-demo {+ --desktop-stage-width: min(1440px, 88vw);+ width: var(--desktop-stage-width);+ margin: 0 calc((100% - var(--desktop-stage-width)) / 2) 88px;+}+.email-desktop-wallpaper {+ padding: clamp(28px, 4.8vw, 76px) clamp(24px, 5.4vw, 88px);+ background-color: #b7bdb1;+ background-image: url('../../../../assets/desktop/coastal-dawn.svg');+ background-position: center;+ background-size: cover;+ border: 1px solid #ffffff20;+ border-radius: 10px;+ overflow: hidden;+}+.email-desktop-window {+ position: relative;+ overflow: hidden;+ border: 1px solid #ffffff25;+ border-radius: 12px;+ background: #101010;+ box-shadow: 0 40px 100px -30px #172222b3, 0 12px 32px #17222250, inset 0 1px 0 #ffffff18;+}+.email-desktop-titlebar {+ position: relative;+ display: flex;+ align-items: center;+ justify-content: center;+ height: 36px;+ border-bottom: 1px solid #ffffff0d;+ color: #a1a1a1;+ background: #151515;+ font: 400 12px/1 -apple-system, BlinkMacSystemFont, sans-serif;+}+.email-desktop-traffic-lights { position: absolute; left: 14px; display: flex; gap: 7px; }+.email-desktop-traffic-lights span { width: 10px; height: 10px; border-radius: 50%; background: #ff6058; box-shadow: inset 0 0 0 1px #00000015; }+.email-desktop-traffic-lights span:nth-child(2) { background: #ffbd2e; }+.email-desktop-traffic-lights span:nth-child(3) { background: #28c840; }+.email-desktop-titlebar a { position: absolute; right: 14px; color: #888; font-size: 17px; text-decoration: none; }+.email-desktop-titlebar a:hover { color: #fff; }+.email-desktop-content { height: clamp(520px, 43vw, 690px); }+.email-desktop-content > [data-deferred-demo] { height: 100%; }+.email-desktop-content .dummy-workspace[data-embedded=true] { height: 100%; border: 0; border-radius: 0; box-shadow: none; }+.email-desktop-content .dummy-banner { display: none; }+.email-desktop-loading { display: grid; place-items: center; height: 100%; color: #888; font-size: 14px; }+.email-desktop-demo .email-desktop-caption { margin-top: 20px; color: #777; font-size: 13px; line-height: 1.5; text-align: center; }+@media (max-width: 699px) {+ .email-desktop-demo { --desktop-stage-width: calc(100vw - 24px); margin-bottom: 52px; }+ .email-desktop-wallpaper { padding: 28px 12px; border-radius: 8px; }+ .email-desktop-window { border-radius: 9px; }+ .email-desktop-content { height: 510px; }+ .email-desktop-content .dummy-sidebar { top: 42px; }+ .email-desktop-demo .email-desktop-caption { max-width: 290px; margin: 16px auto 0; font-size: 12px; }+}diff --git a/apps/marketing/src/features/marketing/components/email/email-feature-demos.css b/apps/marketing/src/features/marketing/components/email/email-feature-demos.cssnew file mode 100644index 0000000000..1122285dab--- /dev/null+++ b/apps/marketing/src/features/marketing/components/email/email-feature-demos.css@@ -0,0 +1,144 @@+@import './email-demos.css';++.feature-page-reading[aria-labelledby='email-faq-title'] {+ width: min(920px, 100%);+}++.feature-page-reading[aria-labelledby='email-faq-title'] + .feature-page-comparison {+ width: min(872px, calc(100% - 48px));+}++@media (max-width: 699px) {+ .feature-page-reading[aria-labelledby='email-faq-title'] + .feature-page-comparison {+ width: 100%;+ }+}++.email-feature-demo .mail-app {+ min-height: 440px;+ mask-image: none;+ -webkit-mask-image: none;+}++.email-feature-demo .mail-main {+ position: relative;+ display: flex;+ flex-direction: column;+}++.email-feature-toolbar {+ display: flex;+ align-items: center;+ gap: 8px;+ height: 58px;+ flex-shrink: 0;+ padding: 0 20px;+ font-size: 14px;+ color: var(--color-ink);+}++.email-feature-toolbar > :last-child {+ margin-left: auto;+ flex-shrink: 0;+}++.email-toolbar-secondary { color: var(--color-ink-extra-muted); }+.email-feature-demo .mail-row { min-height: 52px; }+.email-feature-demo .mail-row[aria-current='true'] { background: var(--color-active); }+.email-feature-demo .mail-rows { padding-top: 16px; }+.email-feature-demo .mail-date-group { padding-bottom: 16px; }++.email-auto-tag-menu {+ position: absolute;+ z-index: 3;+ top: 52px;+ right: 20px;+ width: 214px;+ padding: 6px;+ border-radius: 12px;+ border: 1px solid var(--color-edge-muted);+ background: var(--color-surface-1, #191919);+ box-shadow: 0 12px 40px #0007;+}++.email-auto-tag-menu-title { display: flex; align-items: center; justify-content: space-between; padding-left: 10px; font-size: 12px; color: var(--color-ink-muted); }+.email-auto-tag-menu > button { display: flex; align-items: center; width: 100%; gap: 10px; padding: 9px 10px; border-radius: 6px; text-align: left; font: 400 14px Inter, sans-serif; }+.email-auto-tag-menu > button:hover, .email-auto-tag-menu > button[aria-pressed='true'] { background: var(--color-active); }+.email-auto-tag-menu > button > svg { width: 16px; height: 16px; margin-left: auto; }+.email-tag-dot { width: 8px; height: 8px; border-radius: 50%; }+.email-tag-summary { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 24px; font: 400 12px Inter, sans-serif; color: var(--color-ink-muted); }+.email-tag-summary > svg { width: 16px; height: 16px; }+.email-tag-summary > :last-child { margin-left: auto; white-space: nowrap; }++.email-agent-pointer {+ --c0: #f0eee8;+ position: absolute;+ z-index: 4;+ pointer-events: none;+ top: calc(119px + var(--email-cursor-row) * 52px);+ left: 63%;+ font-size: 20px;+ filter: drop-shadow(0 2px 3px #0006);+ transition: top 650ms ease, left 650ms ease;+}+.email-agent-pointer[data-menu='true'] { top: calc(106px + var(--email-tag-index) * 36px); left: calc(100% - 95px); }+.email-agent-pointer > span { position: absolute; top: 16px; left: 15px; padding: 4px 9px; background: #f0eee8; color: #171717; font: 500 11px Inter, sans-serif; border-radius: 4px 10px 10px; }+.email-keyboard-demo:focus { outline: none; }+.email-keyboard-demo:focus-visible .mail-app { outline: 1px solid var(--color-accent); outline-offset: 4px; }+.email-keyboard-content { flex: 1; min-height: 440px; }+.email-keyboard-demo .mail-thread-body { padding-top: 28px; }+.email-shortcut-dock { display: flex; align-items: center; gap: 8px; padding: 20px; background: var(--color-surface-0); border-top: 1px solid var(--color-edge-muted); }+.email-shortcut-dock > button { display: flex; align-items: center; gap: 8px; border-radius: 8px; padding: 6px; font: 400 12px Inter, sans-serif; color: var(--color-ink-muted); }+.email-shortcut-dock kbd { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 5px; border: 1px solid var(--color-edge); border-radius: 6px; background: var(--color-surface-1); font: 400 12px Inter, sans-serif; box-shadow: 0 2px 0 #0008; }+.email-shortcut-dock > button:hover, .email-shortcut-dock > button[data-active='true'] { background: var(--color-active); color: var(--color-ink); }+.email-shortcut-dock > button[data-active='true'] kbd { color: var(--color-surface-0); background: var(--color-ink); }+.email-shortcut-dock > button:disabled { opacity: .4; }+.email-inbox-clear { display: flex; min-height: 380px; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--color-ink-muted); }+.email-inbox-clear > svg { width: 32px; height: 32px; }+.email-inbox-clear h3 { font: 500 22px Inter, sans-serif; }+.email-inbox-clear p { font: 400 14px Inter, sans-serif; }++@media (max-width: 699px) {+ .email-feature-toolbar { padding-inline: 12px; }+ .email-toolbar-secondary { display: none; }+ .email-feature-demo .mail-app-rail { display: none; }+ .email-feature-demo .mail-row { min-height: 100px; }+ .email-auto-tag-menu { right: 10px; }+ .email-agent-pointer { top: calc(158px + var(--email-cursor-row) * 100px); }+ .email-shortcut-dock { flex-wrap: wrap; padding: 12px 8px; gap: 2px; }+ .email-shortcut-dock > button { gap: 5px; font-size: 11px; }+ .email-shortcut-dock kbd { min-width: 25px; height: 28px; }+ .email-tag-summary { padding: 20px 12px; gap: 6px; font-size: 11px; }+ .email-tag-summary > svg { display: none; }+}+@media (prefers-reduced-motion: reduce) {+ .email-agent-pointer { transition: none; }+}++@media (max-width: 699px) {+ .email-feature-demo .mail-row-narrow .text-right {+ white-space: nowrap;+ padding-right: 8px;+ }+ .email-feature-demo .email-shortcut-dock {+ display: grid;+ grid-template-columns: repeat(4, minmax(0, 1fr));+ }+ .email-feature-demo .email-shortcut-dock > button {+ flex-direction: column;+ justify-content: center;+ font-size: 11px;+ }+}++.email-feature-prose { width: min(920px, 100%); padding-inline: 24px; margin: 28px auto 0; color: #a3a3a3; font: 400 15px/1.85 'Inter Variable', Inter, sans-serif; text-align: left; }+.email-feature-prose p + p { margin-top: 18px; }+@media (max-width: 699px) { .email-feature-prose { padding-inline: 0; font-size: 14px; margin-top: 24px; } }++.feature-page:has([aria-labelledby='email-faq-title']) > .homepage-feature-end {+ width: min(872px, calc(100% - 48px));+ margin-inline: auto;+}+@media (max-width: 699px) {+ .feature-page:has([aria-labelledby='email-faq-title']) > .homepage-feature-end { width: 100%; }+}diff --git a/apps/marketing/src/features/marketing/components/email/email-feature-graphics.css b/apps/marketing/src/features/marketing/components/email/email-feature-graphics.cssnew file mode 100644index 0000000000..3d5f564c85--- /dev/null+++ b/apps/marketing/src/features/marketing/components/email/email-feature-graphics.css@@ -0,0 +1,17 @@+.feature-page .email-feature-links {+ border-block: 0;+ padding-block: 12px 32px;+ grid-template-columns: repeat(4, minmax(0, 1fr));+}+.email-feature-links .email-feature-graphic {+ width: 180px;+ height: 116px;+ max-width: 100%;+ color: #a5abad;+}+.email-feature-links a { gap: 8px; }+@media (max-width: 699px) {+ .feature-page .email-feature-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }+ .email-feature-links a { font-size: 12px; text-align: center; }+ .email-feature-links .email-feature-graphic { width: 130px; height: 94px; }+}diff --git a/apps/marketing/src/features/marketing/components/email/email-fixtures.ts b/apps/marketing/src/features/marketing/components/email/email-fixtures.tsindex f5fc702c4e..dc0ab8a19c 100644--- a/apps/marketing/src/features/marketing/components/email/email-fixtures.ts+++ b/apps/marketing/src/features/marketing/components/email/email-fixtures.ts@@ -1,95 +1 @@-// Demonstration data only; no customer inbox content or app service access.-export type DemoEmail = {- id: string;- sender: string;- subject: string;- snippet: string;- time: string;- account: 'work' | 'personal';- unread?: boolean;- noise?: boolean;- yesterday?: boolean;-};-export const demoEmails: readonly DemoEmail[] = [- {- id: 'dana',- sender: 'Dana Whitfield',- subject: 'Next steps for our team',- snippet: 'Thursday at 9 works. Could you share the rollout plan?',- time: '9:41 AM',- account: 'work',- unread: true,- },- {- id: 'julia',- sender: 'Julia Westphal',- subject: 'Launch announcement',- snippet: 'The first draft is ready for your review.',- time: '9:32 AM',- account: 'work',- unread: true,- },- {- id: 'teo',- sender: 'Teo Nys',- subject: 'Ready for Thursday',- snippet: 'The invite flow is ready. Let’s run through the checklist.',- time: '9:18 AM',- account: 'work',- },- {- id: 'updates',- sender: 'Product updates',- subject: 'September release notes',- snippet: 'See what’s new this month.',- time: '9:02 AM',- account: 'work',- },- {- id: 'design',- sender: 'Design Weekly',- subject: 'This week in design',- snippet: 'A collection of new tools, projects, and ideas.',- time: '8:40 AM',- account: 'personal',- noise: true,- },- {- id: 'meadow',- sender: 'The Meadow',- subject: 'Your table is confirmed',- snippet: 'We look forward to seeing you on Saturday.',- time: 'Sep 14',- account: 'personal',- yesterday: true,- },- {- id: 'plan',- sender: 'Julia, Dana',- subject: 'Team rollout plan',- snippet: 'Here are the next steps we discussed on the call.',- time: 'Sep 14',- account: 'work',- yesterday: true,- },- {- id: 'digest',- sender: 'Engineering Weekly',- subject: 'Your weekly digest',- snippet: 'Updates from the projects you follow.',- time: 'Sep 14',- account: 'work',- noise: true,- yesterday: true,- },- {- id: 'receipt',- sender: 'The Bookshop',- subject: 'Thanks for your order',- snippet: 'Your order is on its way.',- time: 'Sep 14',- account: 'personal',- noise: true,- yesterday: true,- },-];+export { type DemoEmail, demoEmails } from '../../core/demo-email';diff --git a/apps/marketing/src/features/marketing/components/email/email-hero.css b/apps/marketing/src/features/marketing/components/email/email-hero.cssnew file mode 100644index 0000000000..e2a5b6e024--- /dev/null+++ b/apps/marketing/src/features/marketing/components/email/email-hero.css@@ -0,0 +1,83 @@+.feature-page .email-page-hero {+ padding: 132px 24px 64px;+}++.email-page-hero::before {+ display: none;+}++.feature-page .email-page-hero > .email-page-hero-label {+ display: flex;+ align-items: center;+ justify-content: center;+ gap: 10px;+ margin: 0 0 22px;+ color: #a3a3a3;+ font-size: 12px;+ font-weight: 500;+ line-height: 18px;+ letter-spacing: .12em;+ text-transform: uppercase;+}++.email-page-hero-label > svg {+ width: 20px;+ height: 20px;+ flex-shrink: 0;+}++.feature-page .email-page-hero h1 {+ margin: 0 0 24px;+ font-family: 'Roboto Slab Variable', display, serif;+ font-size: clamp(44px, 5vw, 72px);+ font-weight: 315;+ line-height: 1.06;+ letter-spacing: -.04em;+}++.email-page-hero h1 span {+ display: block;+}++.email-page-hero h1 span:last-child {+ color: #b8b8b8;+}++.feature-page .email-page-hero > .email-page-hero-description {+ max-width: 540px;+ color: #999;+ font-size: 17px;+ line-height: 1.65;+ text-wrap: pretty;+}++.email-page-hero .feature-page-cta {+ margin-top: 28px;+ padding-inline: 26px;+}++@media (max-width: 699px) {+ .feature-page .email-page-hero {+ padding: 114px 18px 44px;+ }++ .feature-page .email-page-hero h1 {+ font-size: clamp(34px, 7.8vw, 50px);+ letter-spacing: -.035em;+ line-height: 1.1;+ }++ .feature-page .email-page-hero > .email-page-hero-label {+ margin-bottom: 18px;+ font-size: 11px;+ }++ .feature-page .email-page-hero > .email-page-hero-description {+ max-width: 340px;+ font-size: 15px;+ }++ .email-page-hero-break {+ display: none;+ }+}diff --git a/apps/marketing/src/features/marketing/components/email/email-keyboard-stage.css b/apps/marketing/src/features/marketing/components/email/email-keyboard-stage.cssnew file mode 100644index 0000000000..ba3c2decbb--- /dev/null+++ b/apps/marketing/src/features/marketing/components/email/email-keyboard-stage.css@@ -0,0 +1,44 @@+#keyboard-speed .homepage-feature-heading { max-width: 920px; margin-inline: auto; padding-inline: 24px; text-align: left; }+#keyboard-speed .homepage-feature-title { justify-content: flex-start; }+#keyboard-speed .homepage-section-break { display: block; }+#keyboard-speed .homepage-section-break > span { display: none; }+#keyboard-speed .homepage-section-break p { max-width: 348px; margin-inline: 0; white-space: pre-line; text-wrap: wrap; }++.email-keyboard-stage { position: relative; isolation: isolate; padding: 28px 24px 0; }+.email-keyboard-stage::before { content: ''; position: absolute; inset: -40px -40px 48px; z-index: -2; pointer-events: none; background: radial-gradient(ellipse at 60% 40%, #a6adbb0a, transparent 65%); mask-image: linear-gradient(transparent, #000 20%, #000 65%, transparent); }+.email-keyboard-stage::after { content: ''; position: absolute; inset: -10px 0 48px; z-index: -1; pointer-events: none; background: radial-gradient(#cfd8e32a .6px, transparent .9px) 0 0 / 8px 8px; mask-image: radial-gradient(ellipse at center, #000, transparent 70%); opacity: .16; }+.email-keyboard-stage .mail-app { min-height: 490px; border: 0; border-radius: 12px; background: linear-gradient(145deg, #17181b, #101112 60%); box-shadow: var(--glass-shadow); mask-image: linear-gradient(#000 80%, transparent); -webkit-mask-image: linear-gradient(#000 80%, transparent); }+.email-keyboard-stage .mail-app::before { content: none; }+.email-keyboard-stage .mail-app-rail { display: none; }+.email-keyboard-stage .email-feature-toolbar { height: 62px; padding-inline: 24px; border-bottom: 1px solid #ffffff0b; }+.email-keyboard-stage .email-keyboard-content { min-height: 428px; }+.email-keyboard-stage .mail-thread-body { padding: 28px 32px 72px; }+.email-keyboard-stage .mail-rows { padding: 18px 8px 70px; }+.email-keyboard-stage .mail-row { min-height: 60px; border: 0; border-radius: 12px; transition: background 160ms ease, box-shadow 160ms ease; }+.email-keyboard-stage .mail-row[aria-current='true'] { background: linear-gradient(120deg, #ffffff10, #ffffff04); box-shadow: inset 2px 0 #a8bcae, inset 0 1px #ffffff08; }+.email-keyboard-stage .email-shortcut-dock { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; padding: 8px 0 16px; border: 0; background: transparent; color: #a3a3a3; }+.email-keyboard-stage .email-shortcut-dock > button { flex-direction: row; gap: 8px; padding: 6px; font: 400 12px/1.5 'Inter Variable', Inter, sans-serif; color: #a3a3a3; transition: color 160ms ease; }+.email-keyboard-stage .email-shortcut-dock > button:hover,+.email-keyboard-stage .email-shortcut-dock > button[data-active='true'] { background: transparent; color: #f0f0f0; }+.email-keyboard-stage .email-shortcut-dock kbd { min-width: 36px; height: 36px; border: 0; border-radius: 8px; background: linear-gradient(#242528, #191a1c); box-shadow: inset 0 1px #ffffff24, inset 0 0 0 1px #ffffff09, 0 3px 0 #080809; color: #b9bbc0; transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease; }+.email-keyboard-stage .email-shortcut-dock > button[data-active='true'] kbd { background: #d8e0da; color: #151916; box-shadow: inset 0 1px #ffffff66, 0 1px 0 #080809; }+.email-keyboard-demo > .mail-demo-controls { padding-top: 0; }++@media (max-width: 699px) {+ #keyboard-speed .homepage-section-break p { max-width: 100%; white-space: normal; text-wrap: pretty; }+ #keyboard-speed .homepage-feature-heading { padding-inline: 0; }+ .email-keyboard-stage { padding: 12px 0 0; }+ .email-keyboard-stage::before { inset-inline: 0; }+ .email-keyboard-stage .mail-app { min-height: 600px; }+ .email-keyboard-stage .email-keyboard-content { min-height: 538px; }+ .email-keyboard-stage .mail-row { min-height: 112px; }+ .email-keyboard-stage .mail-thread-body { padding: 24px 14px 72px; }+ .email-keyboard-stage .email-feature-toolbar { padding-inline: 16px; }+ .email-keyboard-stage .email-shortcut-dock { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 2px; }+ .email-keyboard-stage .email-shortcut-dock > button { flex-direction: column; font-size: 10px; padding-inline: 0; }+}+@media (prefers-reduced-motion: reduce) {+ .email-keyboard-stage .mail-row,+ .email-keyboard-stage .email-shortcut-dock > button,+ .email-keyboard-stage .email-shortcut-dock kbd { transition: none; }+}diff --git a/apps/marketing/src/features/marketing/components/email/email-sharing-stage.css b/apps/marketing/src/features/marketing/components/email/email-sharing-stage.cssnew file mode 100644index 0000000000..08bd78f4db--- /dev/null+++ b/apps/marketing/src/features/marketing/components/email/email-sharing-stage.css@@ -0,0 +1,65 @@+/* A readable walkthrough around the interactive product surfaces. */+#email-sharing .homepage-feature-heading { max-width: 920px; margin-inline: auto; padding-inline: 24px; text-align: left; }+#email-sharing .homepage-feature-title { justify-content: flex-start; }+#email-sharing .homepage-section-break { display: block; }+#email-sharing .homepage-section-break > span { display: none; }+#email-sharing .homepage-section-break p { max-width: 632px; margin-inline: 0; white-space: pre-line; text-wrap: wrap; }+.mail-sharing-stage { position: relative; isolation: isolate; padding: 28px 24px 60px; }+.mail-sharing-stage::before { content: ''; position: absolute; inset: -40px -40px 0; z-index: -2; pointer-events: none; background: radial-gradient(ellipse at 60% 40%, #a6adbb0a, transparent 65%); mask-image: linear-gradient(transparent, #000 20%, #000 65%, transparent); }+.mail-sharing-stage::after { content: ''; position: absolute; inset: -10px 0 0; z-index: -1; pointer-events: none; background: radial-gradient(#cfd8e32a .6px, transparent .9px) 0 0 / 8px 8px; mask-image: radial-gradient(ellipse at center, #000, transparent 70%); opacity: .16; }+.mail-sharing-stage .mail-app { height: 560px; min-height: 0; border: 0; border-radius: 12px; background: linear-gradient(145deg, #17181b, #101112 60%); box-shadow: var(--glass-shadow); transform: none; mask-image: linear-gradient(#000 83%, transparent); }+.mail-sharing-stage .mail-app::before { content: none; }+.mail-sharing-stage .mail-app-rail { display: none; }+.mail-sharing-stage .mail-thread-body { padding: 36px 32px 60px; }+.mail-sharing-stage .mail-share-scrim { inset: 28px 24px 60px; align-items: flex-start; padding: 112px 32px 24px; background: #0003; }+.mail-sharing-stage .mail-share-form { width: min(560px, 100%); border: 0; background: linear-gradient(135deg, #232427, #161719 85%); box-shadow: var(--glass-shadow); }+.mail-sharing-stage .mail-channel { height: 100%; min-height: 0; padding-bottom: 62px; }+.mail-sharing-stage .mail-channel > header { border-bottom: 1px solid #ffffff09; }+.mail-sharing-stage .mail-channel-messages { align-items: flex-start; padding: 26px 32px 20px; }+.mail-sharing-stage .mail-channel-messages .homepage-conversation { margin: 0 auto; width: min(660px, 100%); }+.mail-sharing-stage .mail-channel-messages .homepage-message { max-width: 100%; }+.mail-sharing-stage .mail-channel-composer { margin-inline: auto; width: min(724px, 100%); padding: 0 32px; }+.mail-shared-thread { display: flex; flex-direction: column; gap: 7px; width: 100%; min-width: 0; margin-top: 14px; padding: 16px; text-align: left; border: 0; border-radius: 10px; color: #bbbfc4; background: #161719; box-shadow: var(--glass-shadow); font: 400 12px/1.5 var(--font-sans); }+.mail-shared-thread > strong { color: #eee; font-size: 14px; font-weight: 500; }+.mail-shared-thread-label { display: flex; align-items: center; gap: 7px; color: #8c9198; font-size: 10px; }+.mail-shared-thread-label > span { margin-left: auto; color: #a8bcae; }+.mail-shared-thread-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #a1a5ac; }+.mail-shared-thread-footer { display: flex; justify-content: space-between; gap: 12px; color: #a8bcae; font-size: 10px; padding-top: 4px; }+.mail-sharing-stage[data-opened='true'] .mail-app { transform: none; mask-image: none; }+.mail-arrived-reply { margin-top: 18px; border-radius: 14px; padding: 20px; background: #191a1c; box-shadow: var(--glass-shadow); }+.mail-arrived-reply header { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; margin-bottom: 14px; }+.mail-arrived-reply header span { color: #8a8f97; }+.mail-arrived-reply p { font-size: 14px; line-height: 1.65; }+.mail-sharing-demo > .mail-demo-controls { padding-top: 0; margin-top: -16px; }+@media (max-width: 699px) {+ #email-sharing .homepage-section-break p { max-width: 100%; white-space: normal; text-wrap: pretty; }+ #email-sharing .homepage-feature-heading { padding-inline: 0; }+ .mail-sharing-stage { padding: 12px 0 40px; }+ .mail-sharing-stage::before { inset-inline: 0; }+ .mail-sharing-stage .mail-app { transform: none; height: 600px; min-height: 0; }+ .mail-sharing-stage .mail-share-scrim { inset: 12px 0 40px; padding: 108px 10px 10px; }+ .mail-sharing-stage .mail-thread-body { padding: 28px 14px 50px; }+ .mail-sharing-stage .mail-channel { min-height: 0; padding-bottom: 52px; }+ .mail-sharing-stage .mail-channel-messages { padding: 24px 14px 20px; }+ .mail-sharing-stage .mail-channel-messages .homepage-conversation { width: 100%; }+ .mail-sharing-stage .mail-channel-composer { width: 100%; padding: 0 14px; }+}++/* Keep the page geometry constant through sharing, new replies, and local edits. */+.mail-sharing-stage .mail-main,+.mail-sharing-stage .mail-thread { display: flex; flex-direction: column; min-height: 0; height: 100%; }+.mail-sharing-stage .mail-thread-body { width: 100%; margin: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }+.mail-sharing-stage .mail-channel > header,+.mail-sharing-stage .mail-channel-composer { flex-shrink: 0; }+.mail-sharing-stage .mail-channel-messages { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }+.mail-sharing-demo > .mail-demo-controls { height: 48px; padding-inline: 12px; }+.mail-sharing-pointer { position: absolute; top: 0; left: 0; z-index: 8; pointer-events: none; color: #eceeed; transition: transform 650ms cubic-bezier(.2,.8,.2,1); }+.mail-sharing-pointer svg { width: 23px; height: 23px; fill: currentColor; filter: drop-shadow(0 1px 2px #0008); }+.mail-sharing-pointer[data-clicking='true'] svg { animation: mail-pointer-click 650ms ease both; }+@keyframes mail-pointer-click { 55% { transform: scale(.8); } }+@media (max-width: 699px) {+ .mail-sharing-demo > .mail-demo-controls { height: 64px; }+}+@media (prefers-reduced-motion: reduce) {+ .mail-sharing-pointer { display: none; transition: none; }+}diff --git a/apps/marketing/src/features/marketing/components/email/frozen/ChannelComposer.tsx b/apps/marketing/src/features/marketing/components/email/frozen/ChannelComposer.tsxindex 83da107e46..6daf65cd7d 100644--- a/apps/marketing/src/features/marketing/components/email/frozen/ChannelComposer.tsx+++ b/apps/marketing/src/features/marketing/components/email/frozen/ChannelComposer.tsx@@ -1,46 +1,194 @@import Microphone from '@phosphor/microphone.svg';import Paperclip from '@phosphor/paperclip.svg';+import X from '@phosphor/x.svg';import { ComposerSurface, SendButton } from '@ui';-import { createSignal } from 'solid-js';+import {+ createSignal,+ For,+ type JSX,+ onCleanup,+ onMount,+ Show,+} from 'solid-js';+import { serializeDemoEditor } from '../../DemoMention';import { InputActionButton } from './ActionButton';import { Layout } from './ComposerLayout';// The actual ChannelInput layout, ComposerSurface, InputActionButton and// SendAction presentation with a website-local draft instead of app commands.-export function ChannelComposer(props: { onSend: (message: string) => void }) {+export function ChannelComposer(props: {+ onSend: (message: string) => void;+ label?: string;+ placeholder?: string;+ leadingAction?: JSX.Element;+ accessory?: JSX.Element;+ agent?: boolean;+ richMentions?: boolean;+}) {const [draft, setDraft] = createSignal('');+ const [attachments, setAttachments] = createSignal<string[]>([]);+ let filePicker: HTMLInputElement | undefined;+ let input: HTMLTextAreaElement | HTMLDivElement | undefined;+ const resize = () => {+ if (!input) return;+ input.style.height = '24px';+ input.style.height = `${Math.min(input.scrollHeight, 200)}px`;+ };+ onMount(() => {+ const observer = new ResizeObserver(resize);+ if (input?.parentElement) observer.observe(input.parentElement);+ onCleanup(() => observer.disconnect());+ });const send = () => {- if (!draft().trim()) return;- props.onSend(draft().trim());+ if (!draft().trim() && !attachments().length) return;+ props.onSend(+ [draft().trim(), ...attachments().map((name) => `Attached: ${name}`)]+ .filter(Boolean)+ .join('\n')+ );setDraft('');+ if (input?.tagName === 'DIV') input.replaceChildren();+ setAttachments([]);+ queueMicrotask(resize);};return (- <ComposerSurface class="relative">- <Layout oneLineInput={!draft().includes('\n') && draft().length < 70}>+ <ComposerSurface class="relative h-auto">+ <input+ type="file"+ multiple+ hidden+ ref={filePicker}+ aria-label="Choose local attachments"+ onChange={(event) => {+ setAttachments(+ Array.from(event.currentTarget.files ?? [], (file) => file.name)+ );+ event.currentTarget.value = '';+ }}+ />+ <Show when={attachments().length}>+ <div class="flex flex-wrap gap-2 px-3 pt-2">+ <For each={attachments()}>+ {(name) => (+ <button+ type="button"+ class="flex items-center gap-2 rounded-lg border border-edge-muted px-2 py-1 text-xs"+ aria-label={`Remove attachment ${name}`}+ onClick={() =>+ setAttachments((items) =>+ items.filter((item) => item !== name)+ )+ }+ >+ <Paperclip class="size-3" />+ {name}+ <X class="size-3" />+ </button>+ )}+ </For>+ </div>+ </Show>+ <Layout+ data-agent-composer={props.agent || undefined}+ oneLineInput={+ !draft().includes('\n') &&+ (input?.tagName === 'DIV'+ ? (input.textContent?.length ?? 0)+ : draft().length) < 70+ }+ ><Layout.Body><Layout.Editor>- <textarea- class="mail-channel-input"- aria-label="Message #launch"- placeholder="Message #launch"- rows={1}- value={draft()}- onInput={(e) => setDraft(e.currentTarget.value)}- onKeyDown={(e) => {- if (e.key === 'Enter' && !e.shiftKey) {- e.preventDefault();- send();- }- }}- />+ <Show+ when={props.richMentions}+ fallback={+ <textarea+ ref={(element) => {+ input = element;+ }}+ class="mail-channel-input"+ aria-label={props.label ?? 'Message #launch'}+ placeholder={props.placeholder ?? 'Message #launch'}+ rows={1}+ value={draft()}+ onInput={(e) => {+ setDraft(e.currentTarget.value);+ queueMicrotask(resize);+ }}+ onKeyDown={(e) => {+ if (e.key === 'Enter' && !e.shiftKey && !e.isComposing) {+ e.preventDefault();+ send();+ }+ }}+ />+ }+ >+ <div+ ref={(element) => {+ input = element;+ }}+ class="mail-channel-input demo-mention-editor"+ contentEditable+ role="textbox"+ aria-multiline="true"+ aria-label={props.label ?? 'Message #launch'}+ data-placeholder={props.placeholder ?? 'Message #launch'}+ onInput={(event) => {+ setDraft(serializeDemoEditor(event.currentTarget));+ queueMicrotask(resize);+ }}+ onPaste={(event) => {+ event.preventDefault();+ const selection = window.getSelection();+ if (!selection?.rangeCount) return;+ const range = selection.getRangeAt(0);+ if (+ !event.currentTarget.contains(range.commonAncestorContainer)+ )+ return;+ range.deleteContents();+ const text = document.createTextNode(+ event.clipboardData?.getData('text/plain') ?? ''+ );+ range.insertNode(text);+ range.setStartAfter(text);+ range.collapse(true);+ selection.removeAllRanges();+ selection.addRange(range);+ event.currentTarget.dispatchEvent(+ new InputEvent('input', {+ bubbles: true,+ inputType: 'insertFromPaste',+ })+ );+ }}+ onKeyDown={(event) => {+ if (+ event.key === 'Enter' &&+ !event.shiftKey &&+ !event.isComposing+ ) {+ event.preventDefault();+ send();+ }+ }}+ />+ </Show></Layout.Editor></Layout.Body><Layout.ActionsLeft>- <InputActionButton label="Attach files" disabled>- <Paperclip />- </InputActionButton>+ {props.leadingAction ?? (+ <InputActionButton+ label="Attach files"+ onClick={() => filePicker?.click()}+ >+ <Paperclip />+ </InputActionButton>+ )}</Layout.ActionsLeft><Layout.ActionsRight>+ {props.accessory}<InputActionButton label="Dictation" disabled><Microphone /></InputActionButton>@@ -48,7 +196,7 @@ export function ChannelComposer(props: { onSend: (message: string) => void }) {appearance="composer"aria-label="Send demo message"data-input-action="send"- disabled={!draft().trim()}+ disabled={!draft().trim() && !attachments().length}onClick={send}/></Layout.ActionsRight>diff --git a/apps/marketing/src/features/marketing/components/email/frozen/EmailAvatar.tsx b/apps/marketing/src/features/marketing/components/email/frozen/EmailAvatar.tsxnew file mode 100644index 0000000000..118c92a9e7--- /dev/null+++ b/apps/marketing/src/features/marketing/components/email/frozen/EmailAvatar.tsx@@ -0,0 +1,41 @@+import { Show } from 'solid-js';+import aidan from '../../../../../assets/people/aidan.webp';+import mark from '../../../../../assets/people/mark.jpeg';+import panat from '../../../../../assets/people/panat.webp';+import { homepagePeople } from '../../../core/homepage-demo-people';++// Existing website-owned portraits illustrate fictional sample contacts.+const sampleContactPhotos: Record<string, string> = {+ Dana: homepagePeople.valentina.photo,+ Maya: homepagePeople.julia.photo,+ Alex: panat,+ Sam: mark,+ Jamie: aidan,+};+export function EmailAvatar(props: { name: string; class?: string }) {+ const photo = () =>+ Object.values(homepagePeople).find((person) =>+ props.name.startsWith(person.shortName)+ )?.photo ?? sampleContactPhotos[props.name.split(' ')[0]];+ return (+ <Show+ when={photo()}+ fallback={+ <span+ aria-hidden="true"+ class={`inline-flex shrink-0 items-center justify-center rounded-full bg-active text-[10px] text-ink-muted ${props.class ?? 'size-6'}`}+ >+ {props.name.slice(0, 1)}+ </span>+ }+ >+ {(src) => (+ <img+ src={src()}+ alt=""+ class={`shrink-0 rounded-full object-cover ${props.class ?? 'size-6'}`}+ />+ )}+ </Show>+ );+}diff --git a/apps/marketing/src/features/marketing/components/email/frozen/EmailRows.tsx b/apps/marketing/src/features/marketing/components/email/frozen/EmailRows.tsxindex 239a164a76..337328e526 100644--- a/apps/marketing/src/features/marketing/components/email/frozen/EmailRows.tsx+++ b/apps/marketing/src/features/marketing/components/email/frozen/EmailRows.tsx@@ -1,5 +1,7 @@-import Envelope from '@phosphor/envelope-simple.svg';+import Envelope from '@phosphor/envelope-open.svg';+import { Badge } from '@ui/components/Badge';import { For, Show } from 'solid-js';+import { type EmailTagId, emailTags } from '../../../core/demo-email';import { homepagePeople } from '../../../core/homepage-demo-people';import type { DemoEmail } from '../email-fixtures';@@ -21,15 +23,34 @@ export function InboxChip(props: { account: DemoEmail['account'] }) {);}+// The app's TagPill uses the shared small, outlined Badge contract.+export function EmailTags(props: { tags?: readonly EmailTagId[] }) {+ return (+ <span class="mail-row-tags flex items-center gap-1">+ <For each={emailTags.filter((tag) => props.tags?.includes(tag.id))}>+ {(tag) => (+ <Badge variant="outline" size="sm" class="bg-control">+ <span+ class="size-2 rounded-full shrink-0"+ style={{ background: tag.color }}+ />+ {tag.label}+ </Badge>+ )}+ </For>+ </span>+ );+}+function WideRow(props: { email: DemoEmail }) {return (- <div class="mail-row-wide w-full min-h-[inherit] items-center text-sm pl-(--soup-row-padding-l) pr-2 gap-y-2 gap-x-(--soup-row-column-gap) grid grid-rows-[1fr] grid-cols-[var(--soup-row-indicator-width)_1fr_8ch] [--title-width:10rem]">+ <div class="mail-row-wide w-full min-h-[inherit] items-center text-sm pl-(--soup-row-padding-l) pr-2 gap-y-2 gap-x-(--soup-row-column-gap) grid grid-rows-[1fr] grid-cols-[var(--soup-row-indicator-width)_minmax(0,1fr)_auto_8ch] [--title-width:10rem]"><span class="relative size-full grid place-items-center"><Show when={props.email.unread}><span class="size-1.5 rounded-full bg-accent" /></Show></span>- <div class="font-medium truncate items-center gap-2 flex">+ <div class="mail-row-content font-normal truncate items-center gap-2 flex"><Envelope class="size-4 shrink-0 text-ink-muted" /><span class="w-(--title-width) shrink-0 flex items-center gap-2"><span class="truncate max-w-32 flex gap-2 items-center">@@ -40,11 +61,12 @@ function WideRow(props: { email: DemoEmail }) {</span></span><span class="truncate">{props.email.subject}</span>- <span class="text-ink/50 font-medium truncate flex-1">+ <span class="text-ink/50 font-normal truncate flex-1">{props.email.snippet}</span></div>- <span class="text-xs text-right text-ink-extra-muted font-medium">+ <EmailTags tags={props.email.tags} />+ <span class="text-xs text-right text-ink-extra-muted font-normal">{props.email.time}</span></div>@@ -96,6 +118,7 @@ function NarrowRow(props: { email: DemoEmail }) {<span class="text-ink/50 font-medium truncate">{props.email.snippet}</span>+ <EmailTags tags={props.email.tags} /></span></div>);@@ -103,6 +126,7 @@ function NarrowRow(props: { email: DemoEmail }) {export function EmailRows(props: {emails: readonly DemoEmail[];+ selectedId?: string;onOpen: (email: DemoEmail) => void;}) {return (@@ -126,6 +150,10 @@ export function EmailRows(props: {<buttontype="button"class="mail-row soup-row-wide rounded-xl relative flex flex-col py-0.5 min-h-10 mx-1 hover:bg-list-hover text-left text-ink"+ data-unread={!!email.unread}+ aria-current={+ props.selectedId === email.id ? 'true' : undefined+ }onClick={() => props.onOpen(email)}aria-label={`Read ${email.subject}`}>diff --git a/apps/marketing/src/features/marketing/components/email/frozen/EmailShell.tsx b/apps/marketing/src/features/marketing/components/email/frozen/EmailShell.tsxindex 81ca7d7e44..e767d038a6 100644--- a/apps/marketing/src/features/marketing/components/email/frozen/EmailShell.tsx+++ b/apps/marketing/src/features/marketing/components/email/frozen/EmailShell.tsx@@ -1,5 +1,6 @@import Calendar from '@phosphor/calendar-blank.svg';import Chats from '@phosphor/chats.svg';+import Check from '@phosphor/check.svg';import CheckSquare from '@phosphor/check-square.svg';import Clock from '@phosphor/clock.svg';import Envelope from '@phosphor/envelope.svg';@@ -11,16 +12,19 @@ import PaperPlane from '@phosphor/paper-plane-tilt.svg';import Plus from '@phosphor/plus.svg';import Sidebar from '@phosphor/sidebar-simple.svg';import Sparkle from '@phosphor/sparkle.svg';+import Star from '@phosphor/star.svg';import Users from '@phosphor/users-three.svg';import Signal from '@phosphor/wave-sine.svg';import Noise from '@phosphor/waveform.svg';import { For, type JSX, Show } from 'solid-js';+import { type EmailTagId, emailTags } from '../../../core/demo-email';import { homepagePeople } from '../../../core/homepage-demo-people';import { ViewSidebar } from '../../DemoViewSidebar';export type MailTab =| 'important'| 'noise'+ | 'favorites'| 'sent'| 'scheduled'| 'calendar'@@ -31,6 +35,7 @@ export type MailTab =export const mailTabs = [{ id: 'important', label: 'Signal', icon: Signal },{ id: 'noise', label: 'Noise', icon: Noise },+ { id: 'favorites', label: 'Favorites', icon: Star },{ id: 'sent', label: 'Sent', icon: PaperPlane },{ id: 'scheduled', label: 'Scheduled', icon: Clock },{ id: 'calendar', label: 'Calendar', icon: Calendar },@@ -70,6 +75,9 @@ export function EmailSidebar(props: {onTab: (tab: MailTab) => void;onAccount: (account: string) => void;onCompose: () => void;+ onToggleNavigation?: () => void;+ tag?: EmailTagId;+ onTag?: (tag: EmailTagId) => void;}) {return (<ViewSidebar.Root aria-label="Email navigation" class="mail-sidebar">@@ -78,16 +86,13 @@ export function EmailSidebar(props: {<h3 class="text-sm font-semibold tracking-[-0.03em] text-ink"></h3>- <Sidebar class="size-4 text-ink-muted" />+ <ViewSidebar.Control+ label="Collapse email navigation"+ onClick={props.onToggleNavigation}+ >+ <Sidebar class="size-4 text-ink-muted" />+ </ViewSidebar.Control></ViewSidebar.Header>- <ViewSidebar.Primary>- <ViewSidebar.Action onClick={props.onCompose}>- <ViewSidebar.Icon>- <Plus />- </ViewSidebar.Icon>- <span class="truncate">New email</span>- </ViewSidebar.Action>- </ViewSidebar.Primary></header><ViewSidebar.Content class="overflow-visible"><ViewSidebar.Nav aria-label="Inboxes">@@ -96,7 +101,7 @@ export function EmailSidebar(props: {onClick={() => props.onAccount('all')}><ViewSidebar.Icon>- <Envelope />+ <Check class="text-accent" /></ViewSidebar.Icon><span class="truncate">All inboxes</span></ViewSidebar.Item>@@ -124,11 +129,19 @@ export function EmailSidebar(props: {)}</For></ViewSidebar.Nav>+ <div>+ <ViewSidebar.Action onClick={props.onCompose}>+ <ViewSidebar.Icon>+ <Plus />+ </ViewSidebar.Icon>+ <span class="truncate">New email</span>+ </ViewSidebar.Action>+ </div><ViewSidebar.Nav aria-label="Email tabs"><For each={mailTabs}>{(tab) => (<ViewSidebar.Item- active={props.tab === tab.id}+ active={!props.tag && props.tab === tab.id}onClick={() => props.onTab(tab.id)}><ViewSidebar.Icon>@@ -139,23 +152,25 @@ export function EmailSidebar(props: {)}</For></ViewSidebar.Nav>- <div class="mail-tags" aria-hidden="true">- <div class="flex items-center justify-between text-xs text-ink-muted px-2 mb-3">- Tags- <Plus class="size-4" />- </div>- <For each={['Launch', 'Customers', 'Follow up']}>- {(label, i) => (- <div class="flex items-center gap-3 px-3 py-2 text-sm text-ink-muted">- <span- class="size-2 rounded-full"- style={{ background: ['#a99b5b', '#669aba', '#a36b8c'][i()] }}- />- {label}- </div>+ <ViewSidebar.Nav aria-label="Email tags">+ <div class="text-xs text-ink-muted px-2 mb-3">Tags</div>+ <For each={emailTags}>+ {(tag) => (+ <ViewSidebar.Item+ active={props.tag === tag.id}+ onClick={() => props.onTag?.(tag.id)}+ >+ <ViewSidebar.Icon>+ <span+ class="size-2.5 rounded-full"+ style={{ background: tag.color }}+ />+ </ViewSidebar.Icon>+ <span>{tag.label}</span>+ </ViewSidebar.Item>)}</For>- </div>+ </ViewSidebar.Nav></ViewSidebar.Content></ViewSidebar.Root>);@@ -166,10 +181,11 @@ export function EmailShell(props: {sidebar?: JSX.Element;channel?: boolean;label: string;+ class?: string;}) {return (<div- class="mail-app workspace-demo"+ class={`mail-app workspace-demo ${props.class ?? ''}`}data-theme="dark"role="group"aria-label={props.label}diff --git a/apps/marketing/src/features/marketing/components/email/frozen/EmailThread.tsx b/apps/marketing/src/features/marketing/components/email/frozen/EmailThread.tsxindex 4ac9a38582..ad73834a5f 100644--- a/apps/marketing/src/features/marketing/components/email/frozen/EmailThread.tsx+++ b/apps/marketing/src/features/marketing/components/email/frozen/EmailThread.tsx@@ -1,58 +1,73 @@+import ArrowBendUpLeft from '@phosphor/arrow-bend-up-left.svg';import ArrowLeft from '@phosphor/arrow-left.svg';import CaretRight from '@phosphor/caret-right.svg';import Envelope from '@phosphor/envelope.svg';import Link from '@phosphor/link.svg';import Users from '@phosphor/users-three.svg';import { Button } from '@ui';-import { createSignal, Show } from 'solid-js';+import { createSignal, type JSX, Show } from 'solid-js';import { homepagePeople } from '../../../core/homepage-demo-people';import type { DemoEmail } from '../email-fixtures';+import { EmailAvatar } from './EmailAvatar';import { MessageCard } from './MessageCard';// Presentation extracted from EmailDetailView, email-message-top-bar,// EmailMessageView, and bottom-reply-buttons. MessageCard is copied verbatim.export function EmailThread(props: {- email: DemoEmail;+ email: DemoEmail & { body?: string; folder?: string };onBack?: () => void;onShare?: () => void;sharing?: boolean;+ onReply?: () => void;+ hideHeader?: boolean;+ hideReply?: boolean;+ replyContent?: JSX.Element;+ participants?: JSX.Element;+ children?: JSX.Element;}) {const [details, setDetails] = createSignal(false);+ const sent = () => props.email.folder === 'sent';+ const sender = () => (sent() ? 'Jacob Beckerman' : props.email.sender);return (<div class="mail-thread">- <div class="flex h-12 min-w-0 shrink-0 items-center gap-1 px-2 py-3">- <Show when={props.onBack}>- <Button- variant="plain"- size="icon-sm"- aria-label="Back to inbox"- onClick={props.onBack}- >- <ArrowLeft />- </Button>- </Show>- <Envelope class="size-4 shrink-0 text-ink-muted" />- <span class="truncate text-sm font-medium">{props.email.subject}</span>- <div class="ml-auto flex items-center gap-1">- <Button- variant="plain"- size="md"- class="rounded-xl"- onClick={props.onShare}- aria-label="Share email"- data-demo-share-trigger=""- data-active={props.sharing}- >- <Users />- Share- </Button>- <Link class="size-3.5 mx-2 text-ink-muted" aria-hidden="true" />+ <Show when={!props.hideHeader}>+ <div class="flex h-12 min-w-0 shrink-0 items-center gap-1 px-2 py-3">+ <Show when={props.onBack}>+ <Button+ variant="plain"+ size="icon-sm"+ aria-label="Back to inbox"+ onClick={props.onBack}+ >+ <ArrowLeft />+ </Button>+ </Show>+ <Envelope class="size-4 shrink-0 text-ink-muted" />+ <span class="truncate text-sm font-medium">+ {props.email.subject}+ </span>+ <div class="ml-auto flex items-center gap-1">+ <Button+ variant="plain"+ size="md"+ class="rounded-xl"+ onClick={props.onShare}+ aria-label="Share email"+ data-demo-share-trigger=""+ data-active={props.sharing}+ >+ <Users />+ Share+ </Button>+ <Link class="size-3.5 mx-2 text-ink-muted" aria-hidden="true" />+ </div></div>- </div>+ </Show><div class="mail-thread-body"><h3 class="block w-full max-w-full min-w-0 text-pretty font-semibold tracking-tight text-ink leading-snug text-2xl mb-6">{props.email.subject}</h3>+ {props.participants}<MessageCardmessageId={props.email.id}isSelected={false}@@ -61,15 +76,13 @@ export function EmailThread(props: {><div class="flex flex-col min-w-0 gap-2 overflow-hidden"><div class="flex items-center min-h-6 gap-2">- <div class="shrink-0 flex justify-center items-center size-6 rounded-full bg-active text-[10px] text-ink-muted">- {props.email.sender.slice(0, 1)}- </div>+ <EmailAvatar name={sender()} /><div class="flex flex-row w-full min-w-0 flex-1 items-center gap-2 text-sm"><div class="flex flex-row items-center gap-1.5 min-w-0 flex-1">- <span class="text-ink font-medium truncate">- {props.email.sender}+ <span class="text-ink font-medium truncate">{sender()}</span>+ <span class="text-ink-extra-muted/60 shrink-0">+ to {sent() ? props.email.sender : 'me'}</span>- <span class="text-ink-extra-muted/60 shrink-0">to me</span><Buttonvariant="ghost"size="icon-sm"@@ -82,6 +95,16 @@ export function EmailThread(props: {/></Button></div>+ <Show when={props.onReply}>+ <Button+ variant="plain"+ size="icon-sm"+ label="Reply to message"+ onClick={props.onReply}+ >+ <ArrowBendUpLeft />+ </Button>+ </Show><span class="text-ink-extra-muted/60 tabular-nums shrink-0 text-xs">{props.email.time}</span>@@ -89,39 +112,67 @@ export function EmailThread(props: {</div><Show when={details()}><div class="py-3 border-y border-ink-muted/8 text-xs text-ink-muted">- From: {props.email.sender} <[email protected]>+ From: {sender()}<br />- To: Jacob Beckerman <[email protected]>+ To:{' '}+ {sent()+ ? props.email.sender+ : 'Jacob Beckerman <[email protected]>'}</div></Show><div class="mail-message-text text-base text-ink pr-4">- <p>Hi Jacob,</p>- <p>- {props.email.snippet}{' '}- <Show when={props.email.id === 'dana'}>- I’d like to invite the rest of our team.- </Show>- </p>- <p>- Thanks,- <br />- {props.email.sender.split(' ')[0]}- </p>+ <Show+ when={props.email.body}+ fallback={+ <>+ {' '}+ <p>Hi Jacob,</p>+ <p>+ {props.email.snippet}{' '}+ <Show when={props.email.id === 'dana'}>+ I’d like to invite the rest of our team.+ </Show>+ </p>+ <p>+ Thanks,+ <br />+ {props.email.sender.split(' ')[0]}+ </p>+ </>+ }+ >+ {(body) => <p class="whitespace-pre-wrap">{body()}</p>}+ </Show></div></div>- <div class="relative -mx-4 mb-0 border-t border-ink/20 mt-4">- <div class="px-4">- <div class="flex w-full items-center pt-4 gap-2 text-sm text-ink-placeholder">- <img- src={homepagePeople.jacob.photo}- class="size-6 rounded-full"- alt=""- />- <span>Reply...</span>+ <Show when={!props.hideReply}>+ <div class="relative -mx-4 mb-0 border-t border-ink/20 mt-4">+ <div class="px-4">+ <Show+ when={props.replyContent}+ fallback={+ <button+ type="button"+ onClick={props.onReply}+ class="flex w-full items-center pt-4 gap-2 text-sm text-ink-placeholder"+ aria-label="Reply to email"+ >+ <img+ src={homepagePeople.jacob.photo}+ class="size-6 rounded-full"+ alt=""+ />+ <span>Reply...</span>+ </button>+ }+ >+ {props.replyContent}+ </Show></div></div>- </div>+ </Show></MessageCard>+ {props.children}</div></div>);diff --git a/apps/marketing/src/features/marketing/components/email/frozen/Layout.module.css b/apps/marketing/src/features/marketing/components/email/frozen/Layout.module.cssindex 049709bb8d..dd6b0e2d9a 100644--- a/apps/marketing/src/features/marketing/components/email/frozen/Layout.module.css+++ b/apps/marketing/src/features/marketing/components/email/frozen/Layout.module.css@@ -1,77 +1,84 @@-@layer components {- .layout {- display: grid;- grid-template-columns: auto minmax(0, 1fr) auto;- width: 100%;+/* This frozen module is unlayered because the website injects its scoped+ Tailwind base after this stylesheet. Keep the app layout above that reset. */+.layout {+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ width: 100%;- /* Shared with the hidden compact-layout measurement copy. */- &[data-composer-compact='true'] {- grid-template-areas: 'left body right';- align-items: flex-end;- gap: 3.75px;- min-height: 48.75px;- padding: 7.5px;- --input-editor-padding: 4.6875px 3.75px;+ /* Shared with the hidden compact-layout measurement copy. */+ &[data-composer-compact='true'] {+ grid-template-areas: 'left body right';+ align-items: flex-end;+ gap: 3.75px;+ min-height: 48.75px;+ padding: 7.5px;+ --input-editor-padding: 4.6875px 3.75px;- /* On touch this row replaces the CollapsedInput pill, so it keeps the- pill's height, gutter, and gap (h-12.5, px-2, gap-1.5) rather than- growing when the editor takes over. The single line (with the- markdown theme's paragraph margins) is shorter than the row, so the- row centers it instead of padding around it. */- :global(html[data-touch-device='true']) & {- align-items: center;- gap: calc(var(--spacing) * 1.5);- min-height: calc(var(--spacing) * 12.5);- padding: 0 calc(var(--spacing) * 2);- --input-editor-padding: 0 calc(var(--spacing) * 1.5);- }+ /* On touch this row replaces the CollapsedInput pill, so it keeps the+ pill's height, gutter, and gap (h-12.5, px-2, gap-1.5) rather than+ growing when the editor takes over. The single line (with the+ markdown theme's paragraph margins) is shorter than the row, so the+ row centers it instead of padding around it. */+ :global(html[data-touch-device='true']) & {+ align-items: center;+ gap: calc(var(--spacing) * 1.5);+ min-height: calc(var(--spacing) * 12.5);+ padding: 0 calc(var(--spacing) * 2);+ --input-editor-padding: 0 calc(var(--spacing) * 1.5);}+ }- &[data-composer-compact='false'] {- grid-template-areas:- 'body body body'- 'left . right';- align-items: center;+ &[data-composer-compact='false'] {+ grid-template-areas:+ 'body body body'+ 'left . right';+ align-items: center;- :global(html:not([data-touch-device='true'])) & {- row-gap: 3.75px;- padding: 7.5px;- --input-editor-padding: 4.6875px 9.375px;- }+ :global(html:not([data-touch-device='true'])) & {+ row-gap: 3.75px;+ padding: 7.5px;+ --input-editor-padding: 4.6875px 9.375px;+ }- :global(html[data-touch-device='true']) & {- padding-bottom: calc(var(--spacing) * 2);- --input-editor-padding: 0.5rem 0.75rem;+ :global(html[data-touch-device='true']) & {+ padding-bottom: calc(var(--spacing) * 2);+ --input-editor-padding: 0.5rem 0.75rem;- @container (width >= 40rem) {- --input-editor-padding: 0.5rem 0.75rem 1rem;- }+ @container (width >= 40rem) {+ --input-editor-padding: 0.5rem 0.75rem 1rem;+ }- > [data-input-actions-left],- > [data-input-actions-right] {- height: calc(var(--spacing) * 8);- }+ > [data-input-actions-left],+ > [data-input-actions-right] {+ height: calc(var(--spacing) * 8);+ }- > [data-input-actions-left] {- padding-left: calc(var(--spacing) * 2);- }+ > [data-input-actions-left] {+ padding-left: calc(var(--spacing) * 2);+ }- > [data-input-actions-right] {- padding-right: calc(var(--spacing) * 2);- }+ > [data-input-actions-right] {+ padding-right: calc(var(--spacing) * 2);}}}+}- .body {- grid-area: body;- }+.body {+ grid-area: body;+}- .actionsLeft {- grid-area: left;- }+.actionsLeft {+ grid-area: left;+}- .actionsRight {- grid-area: right;- }+.actionsRight {+ grid-area: right;+}++/* AgentChatInput uses the same actions but a wider leading gutter and gap. */+.layout[data-agent-composer][data-composer-compact='true'] {+ gap: 8px;+ padding-left: 12px;+ --input-editor-padding: 4.6875px 0;}diff --git a/apps/marketing/src/features/marketing/components/feature-page.css b/apps/marketing/src/features/marketing/components/feature-page.cssindex 97e8a9c3be..16c526ed50 100644--- a/apps/marketing/src/features/marketing/components/feature-page.css+++ b/apps/marketing/src/features/marketing/components/feature-page.css@@ -13,6 +13,7 @@.feature-page-hero h1 { margin: 18px 0 24px; font: 315 clamp(40px, 5.4vw, 68px)/1.12 'Roboto Slab Variable', display, serif; letter-spacing: -.035em; text-wrap: balance; }.feature-page-hero > p:not(.feature-page-eyebrow) { max-width: 460px; color: #999; font-size: 16px; line-height: 1.8; text-wrap: balance; }.feature-page-cta { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 52px; padding: 14px 25px; border-radius: 999px; background: #fafafa; color: #080808; font-size: 15px; font-weight: 500; line-height: 24px; text-decoration: none; transition: background 180ms; }+.feature-page .feature-page-cta { color: #080808; }.feature-page-cta svg { width: 21px; height: 21px; }.feature-page-cta:hover { background: #ddd; }.feature-page-hero .feature-page-cta { margin-top: 32px; }diff --git a/apps/marketing/src/features/marketing/components/homepage-collaborative-doc.css b/apps/marketing/src/features/marketing/components/homepage-collaborative-doc.cssindex ff2a1f900b..6b15cf1c3d 100644--- a/apps/marketing/src/features/marketing/components/homepage-collaborative-doc.css+++ b/apps/marketing/src/features/marketing/components/homepage-collaborative-doc.css@@ -1,12 +1,15 @@.homepage-collaborative-doc {--history-overlap: 64px;+ position: relative;isolation: isolate;}/* Finish the dissolve before the timeline, leaving its rule on the page background. */.homepage-collaborative-doc > .mdf-frame {height: 600px;- padding-top: 40px;+ max-width: 920px;+ padding: 40px 0 0;+ background: transparent;-webkit-mask-image: linear-gradient(to bottom, #000 36%, rgb(0 0 0 / 30%) 64%, transparent calc(100% - var(--history-overlap)));mask-image: linear-gradient(to bottom, #000 36%, rgb(0 0 0 / 30%) 64%, transparent calc(100% - var(--history-overlap)));}@@ -47,3 +50,120 @@white-space: nowrap;pointer-events: none;}++.homepage-history {+ position: relative;+}++/* A native range handles pointer capture, touch and keyboard scrubbing.+ Its transparent 44px thumb is centered on the SVG grip. */+.homepage-history-slider {+ position: absolute;+ z-index: 1;+ height: 44px;+ margin: 0;+ padding: 0;+ appearance: none;+ background: transparent;+ cursor: ew-resize;+ touch-action: pan-y;+ border-radius: 6px;+}+.homepage-history-slider::-webkit-slider-runnable-track {+ height: 44px;+ background: transparent;+}+.homepage-history-slider::-webkit-slider-thumb {+ appearance: none;+ width: 44px;+ height: 44px;+ background: transparent;+ border: 0;+}+.homepage-history-slider::-moz-range-track {+ height: 44px;+ background: transparent;+}+.homepage-history-slider::-moz-range-thumb {+ width: 44px;+ height: 44px;+ background: transparent;+ border: 0;+}+.homepage-history-slider:focus-visible {+ outline: none;+}++.homepage-history:has(.homepage-history-slider:focus-visible) .docs-timeline-handle {+ stroke: #b7d6ff;+ stroke-width: 1.5;+}++.homepage-history:has(.homepage-history-slider:hover) .docs-timeline-handle {+ fill: #244366;+}++.homepage-collaborative-doc > .mdf-frame::before {+ display: none;+}++/* Use the same charcoal surface and raised rim as the email composer. */+.homepage-collaborative-doc .mds-card {+ max-width: none;+ background: oklch(0.17 0.002 250);+ border-radius: 26.25px;+ box-shadow: 0 10px 40px -8px #0004;+}++.homepage-collaborative-doc .mds-card::before {+ background: linear-gradient(135deg, #ffffff18, transparent 45%) border-box;+ border: 1px solid #ffffff08;+}++.homepage-history-caption {+ position: absolute;+ left: 0;+ width: 20%;+ max-width: 190px;+ margin: 0;+ transform: translateY(-50%);+ background: #000;+ color: var(--color-ink-placeholder);+ font: 400 12px/1.65 'Inter Variable', Inter, sans-serif;+}++.homepage-history-caption > span {+ display: block;+ margin-bottom: 6px;+ color: #aaa;+ font-size: 14px;+}+++/* A diffuse, grainy wash behind the card, with no rectangular backdrop. */+.homepage-collaborative-doc::before,+.homepage-collaborative-doc::after {+ content: '';+ position: absolute;+ z-index: -1;+ top: 0;+ left: 0;+ width: 100%;+ height: 600px;+ pointer-events: none;+ mask-image: radial-gradient(ellipse 66% 52% at 50% 43%, #000 30%, transparent 100%);+}++.homepage-collaborative-doc::before {+ background:+ radial-gradient(ellipse 50% 52% at 20% 30%, rgb(121 108 186 / 16%), transparent 80%),+ radial-gradient(ellipse 48% 60% at 82% 40%, rgb(74 146 144 / 14%), transparent 80%),+ radial-gradient(ellipse 50% 42% at 50% 84%, rgb(139 130 89 / 8%), transparent 80%);+ filter: blur(20px);+}++.homepage-collaborative-doc::after {+ background: url('../../../assets/desktop/gradient-grain.svg') repeat;+ mix-blend-mode: soft-light;+ opacity: .12;+}diff --git a/apps/marketing/src/features/marketing/components/homepage-github.css b/apps/marketing/src/features/marketing/components/homepage-github.cssnew file mode 100644index 0000000000..fa3e3354a7--- /dev/null+++ b/apps/marketing/src/features/marketing/components/homepage-github.css@@ -0,0 +1,43 @@+.homepage-open-source { --graphic-unit: clamp(.72px, min(.095vw, .115svh), 1px); position: relative; isolation: isolate; padding: calc(110 * var(--graphic-unit)) 0 calc(60 * var(--graphic-unit)); text-align: center; color: var(--color-ink); font-family: 'Inter Variable', Inter, sans-serif; }+.homepage-github-link { display: inline-flex; flex-direction: column; align-items: center; color: inherit; text-decoration: none; border-radius: 24px; outline-offset: 8px; }+.homepage-github-orbit { position: relative; display: grid; place-items: center; width: calc(360 * var(--graphic-unit)); height: calc(280 * var(--graphic-unit)); isolation: isolate; }+.homepage-github-orbit::before { content: ''; position: absolute; z-index: -1; width: calc(470 * var(--graphic-unit)); height: calc(470 * var(--graphic-unit)); border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 15px, rgb(255 255 255 / 9%) 15px 16px); mask-image: radial-gradient(circle, #000 15%, transparent 68%); }+.homepage-github-mark { display: grid; place-items: center; width: calc(152 * var(--graphic-unit)); height: calc(152 * var(--graphic-unit)); border-radius: 50%; background: #1e1e1e; box-shadow: 0 0 0 7px #ffffff03; }+.homepage-github-mark svg { width: calc(76 * var(--graphic-unit)); height: calc(76 * var(--graphic-unit)); }+.homepage-github-stars { display: inline-flex; gap: 9px; align-items: center; min-height: 28px; margin-top: -12px; font-size: 17px; color: var(--color-ink-muted); font-variant-numeric: tabular-nums; }+.homepage-github-star { color: #f69232; }+.homepage-github-link:hover .homepage-github-stars { color: var(--color-ink); }+.homepage-open-source h2 { margin: calc(44 * var(--graphic-unit)) 0 0; font-family: 'Roboto Slab Variable', display, serif; font-size: clamp(36px, min(4.5vw, 6.5svh), 60px); font-weight: 315; line-height: 1.12; letter-spacing: -.025em; }+.homepage-open-source-subtext { margin: clamp(20px, 3svh, 30px) 0 0; font-size: clamp(14px, 1.4vw, 17.5px); line-height: 1.8; color: var(--color-ink-muted); }+.homepage-open-source-badges { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 56px); margin: calc(52 * var(--graphic-unit)) auto 0; color: var(--color-ink-extra-muted); }+.homepage-open-source-badges > div { display: flex; flex-direction: column; align-items: center; gap: 14px; }+.homepage-open-source-badges span { font-size: 11px; line-height: 1.5; }+.homepage-open-source-backing > svg { width: 120px; height: 36px; color: var(--color-ink-muted); }+.homepage-open-source-security > div { display: flex; gap: 14px; }+.homepage-open-source-security svg { width: 36px; height: 36px; }+@media (max-width: 767px) {+ .homepage-open-source { padding: 70px 0 44px; }+ .homepage-github-orbit { width: min(300px, 80vw); height: 220px; }+ .homepage-github-orbit::before { width: 350px; height: 350px; }+ .homepage-github-mark { width: 120px; height: 120px; }+ .homepage-github-mark svg { width: 60px; height: 60px; }+ .homepage-open-source h2 { font-size: 36px; margin-top: 32px; }+ .homepage-open-source-subtext { font-size: 14px; margin-top: 24px; }+ .homepage-open-source-badges { gap: 24px; margin-top: 36px; flex-wrap: wrap; }+ .homepage-open-source-badges span { font-size: 10px; }+ .homepage-open-source-backing > svg { width: 100px; }+ .homepage-open-source-security svg { width: 30px; height: 36px; }+}++.homepage-github-link, .homepage-open-source h2, .homepage-open-source-subtext, .homepage-open-source-badges { position: relative; z-index: 3; }+.homepage-open-source { padding-top: 160px; margin-top: 0; }+.homepage-github-flow { position: absolute; left: 0; width: 100%; overflow: visible; pointer-events: none; z-index: -1; filter: blur(24px); }+.homepage-github-liquid { opacity: .12; }+.homepage-github-current { display: none; }+.homepage-github-orbit::after { content: ''; position: absolute; inset: -30px; border-radius: 50%; z-index: -1; background: radial-gradient(ellipse, #658b7718, #43626808 40%, transparent 68%); opacity: var(--github-power, 1); transform: scale(var(--github-scale, 1)); }+.homepage-github-mark { transform: scale(var(--github-scale, 1)); box-shadow: 0 0 0 7px #ffffff03, 0 0 55px #6c857b12; }+@media (max-width: 767px) { .homepage-open-source { padding-top: 120px; } }++.homepage-mobile-story .homepage-open-source { padding: 70px 0 44px; }+.homepage-open-source-travel { position: absolute; inset: 0; z-index: 2; pointer-events: none; }+.homepage-open-source-travel .feature-flow-icon, .homepage-open-source-travel .feature-flow-core { display: grid; place-items: center; }diff --git a/apps/marketing/src/features/marketing/components/homepage-interactive-demo.css b/apps/marketing/src/features/marketing/components/homepage-interactive-demo.cssnew file mode 100644index 0000000000..6e3c5ada11--- /dev/null+++ b/apps/marketing/src/features/marketing/components/homepage-interactive-demo.css@@ -0,0 +1,47 @@+.homepage-interactive-demo { position: relative; padding-top: 150px; text-align: center; }+.homepage-demo-connection { position: absolute; inset: 0 0 auto; width: 100%; height: 150px; overflow: visible; pointer-events: none; }+.homepage-demo-connection path { stroke: rgb(255 255 255 / 42%); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }+/* Keep the label quiet; the play control carries the invitation. */+.homepage-interactive-demo .homepage-demo-launch { display: inline-flex; flex-direction: column; align-items: center; gap: 24px; padding: 0; border: 0; background: transparent; color: #999; font: 400 20px/1.5 'Inter Variable', Inter, sans-serif; cursor: pointer; }+.homepage-demo-play { display: grid; place-items: center; width: 112px; height: 112px; flex-shrink: 0; border-radius: 50%; border: 1px solid #ffffff35; background: linear-gradient(155deg, #2b2b2b, #161616 65%); color: #eee; box-shadow: inset 0 1px 1px #ffffff25, inset 0 -2px 2px #0009, 0 2px 5px #0006; position: relative; transition: transform 220ms ease, border-color 220ms ease, background 220ms ease; }+.homepage-demo-play::before { content: ''; position: absolute; inset: 5px; border: 1px solid #ffffff0e; border-radius: inherit; box-shadow: 0 1px 0 #ffffff08; pointer-events: none; }+.homepage-demo-play svg { width: 36px; height: 36px; margin-left: 5px; }+.homepage-demo-label { transition: color 220ms ease; }+.homepage-demo-launch:hover .homepage-demo-play { transform: translateY(-2px); border-color: #ffffff55; background: linear-gradient(155deg, #333, #1b1b1b 65%); }+.homepage-demo-launch:hover .homepage-demo-label { color: #bbb; }+.homepage-demo-launch:active .homepage-demo-play { transform: scale(.97); }+.homepage-demo-launch:focus-visible { outline: none; }+.homepage-demo-launch:focus-visible .homepage-demo-play { outline: 2px solid #eee; outline-offset: 6px; }+.homepage-demo-overlay { position: fixed; inset: 0; z-index: 10000; background: #000b; backdrop-filter: blur(12px); animation: homepage-demo-fade 180ms ease-out; }+.homepage-demo-modal { position: fixed; z-index: 10001; left: 5vw; top: 5dvh; width: 90vw; height: 90dvh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; border: 1px solid #ffffff30; border-radius: 16px; background: #0f0f0f; color: #eee; box-shadow: inset 0 1px 0 #ffffff25, 0 32px 120px #000c, 0 0 0 1px #000; outline: none; animation: homepage-demo-open 280ms cubic-bezier(.2,.8,.2,1); }+.homepage-demo-titlebar { display: grid; grid-template-columns: 88px 1fr 88px; align-items: center; flex-shrink: 0; height: 48px; padding: 0 16px; background: linear-gradient(#232323, #1a1a1a); border-bottom: 1px solid #ffffff10; }+.homepage-demo-titlebar h2 { margin: 0; text-align: center; font: 500 12px/1.4 'Inter Variable', Inter, sans-serif; color: #aaa; letter-spacing: .01em; }+.homepage-demo-traffic { display: flex; align-items: center; gap: 8px; }+.homepage-demo-traffic > * { display: grid; place-items: center; width: 12px; height: 12px; border: 1px solid #0002; border-radius: 50%; padding: 0; }+.homepage-demo-red { background: #ff5f57; color: #68110c; }+.homepage-demo-red svg { width: 9px; height: 9px; opacity: 0; }+.homepage-demo-red:is(:hover, :focus-visible) svg { opacity: 1; }+.homepage-demo-yellow { background: #febc2e; }+.homepage-demo-green { background: #28c840; }+.homepage-demo-titlebar .homepage-demo-close { justify-self: end; display: grid; place-items: center; width: 30px; height: 30px; padding: 6px; background: #ffffff08; border: 1px solid #ffffff0d; border-radius: 50%; color: #bbb; }+.homepage-demo-close:hover { background: #ffffff18; color: #fff; }+.homepage-demo-close svg { width: 16px; height: 16px; }+.homepage-demo-titlebar button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }+.homepage-demo-frame-wrap { position: relative; flex: 1; min-height: 0; }+.homepage-demo-frame { position: relative; display: block; width: 100%; height: 100%; border: 0; background: #0f0f0f; }+.homepage-demo-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #999; font: 400 14px/1.5 'Inter Variable', sans-serif; }+.homepage-demo-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }+@keyframes homepage-demo-fade { from { opacity: 0; } }+@keyframes homepage-demo-open { from { opacity: 0; transform: translateY(18px) scale(.97); } }+@media (max-width: 599px) {+ .homepage-interactive-demo .homepage-demo-launch { gap: 20px; font-size: 18px; }+ .homepage-demo-play { width: 96px; height: 96px; }+ .homepage-demo-titlebar { padding-inline: 12px; grid-template-columns: 64px 1fr 36px; }+ .homepage-demo-titlebar h2 { font-size: 10px; }+}+@media (prefers-reduced-motion: reduce) {+ .homepage-demo-overlay, .homepage-demo-modal { animation: none; }+ .homepage-demo-play, .homepage-demo-label { transition: none; }+}++.homepage-demo-overlay[data-closed], .homepage-demo-modal[data-closed] { animation: none; }diff --git a/apps/marketing/src/features/marketing/components/homepage-open-source.css b/apps/marketing/src/features/marketing/components/homepage-open-source.cssindex b46438f347..f10860b7ce 100644--- a/apps/marketing/src/features/marketing/components/homepage-open-source.css+++ b/apps/marketing/src/features/marketing/components/homepage-open-source.css@@ -1,38 +1,47 @@-.homepage-open-source { --graphic-unit: clamp(.72px, min(.095vw, .115svh), 1px); position: relative; isolation: isolate; padding: calc(110 * var(--graphic-unit)) 0 calc(60 * var(--graphic-unit)); text-align: center; color: var(--color-ink); font-family: 'Inter Variable', Inter, sans-serif; }-.homepage-github-link { display: inline-flex; flex-direction: column; align-items: center; color: inherit; text-decoration: none; border-radius: 24px; outline-offset: 8px; }-.homepage-github-orbit { position: relative; display: grid; place-items: center; width: calc(360 * var(--graphic-unit)); height: calc(280 * var(--graphic-unit)); isolation: isolate; }-.homepage-github-orbit::before { content: ''; position: absolute; z-index: -1; width: calc(470 * var(--graphic-unit)); height: calc(470 * var(--graphic-unit)); border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 15px, rgb(255 255 255 / 9%) 15px 16px); mask-image: radial-gradient(circle, #000 15%, transparent 68%); }-.homepage-github-mark { display: grid; place-items: center; width: calc(152 * var(--graphic-unit)); height: calc(152 * var(--graphic-unit)); border-radius: 50%; background: #1e1e1e; box-shadow: 0 0 0 7px #ffffff03; }-.homepage-github-mark svg { width: calc(76 * var(--graphic-unit)); height: calc(76 * var(--graphic-unit)); }-.homepage-github-stars { display: inline-flex; gap: 9px; align-items: center; min-height: 28px; margin-top: -12px; font-size: 17px; color: var(--color-ink-muted); font-variant-numeric: tabular-nums; }-.homepage-github-star { color: #f69232; }-.homepage-github-link:hover .homepage-github-stars { color: var(--color-ink); }-.homepage-open-source h2 { margin: calc(44 * var(--graphic-unit)) 0 0; font-family: 'Roboto Slab Variable', display, serif; font-size: clamp(36px, min(4.5vw, 6.5svh), 60px); font-weight: 315; line-height: 1.12; letter-spacing: -.025em; }-.homepage-open-source-subtext { margin: clamp(20px, 3svh, 30px) 0 0; font-size: clamp(14px, 1.4vw, 17.5px); line-height: 1.8; color: var(--color-ink-muted); }-.homepage-open-source-badges { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 56px); margin: calc(52 * var(--graphic-unit)) auto 0; color: var(--color-ink-extra-muted); }-.homepage-open-source-badges > div { display: flex; flex-direction: column; align-items: center; gap: 14px; }-.homepage-open-source-badges span { font-size: 11px; line-height: 1.5; }-.homepage-open-source-backing > svg { width: 120px; height: 36px; color: var(--color-ink-muted); }-.homepage-open-source-security > div { display: flex; gap: 14px; }-.homepage-open-source-security svg { width: 36px; height: 36px; }+.homepage-embedded-demo { position: relative; width: min(1200px, 86vw); margin-left: 50%; transform: translateX(-50%); padding: 176px 0 32px; color: #aaa; font-family: 'Inter Variable', Inter, sans-serif; }+.homepage-embedded-wallpaper { padding: clamp(28px, 4vw, 56px); position: relative; isolation: isolate; background: radial-gradient(ellipse at 8% 20%, #635573 0%, transparent 53%), radial-gradient(ellipse at 72% 0%, #266d71 0%, transparent 55%), radial-gradient(ellipse at 30% 100%, #636f46 0%, transparent 57%), radial-gradient(ellipse at 100% 90%, #886344 0%, transparent 55%), #283f42; border: 0; border-radius: 10px; overflow: hidden; }+.homepage-embedded-window { display: flex; flex-direction: column; height: clamp(600px, 46vw, 680px); overflow: hidden; background: #0f0f0f; border: 1px solid #ffffff25; border-radius: 12px; box-shadow: 0 32px 70px -20px #1b1726b3, 0 10px 24px #0005, inset 0 1px 0 #ffffff18; }+.homepage-embedded-content { --demo-scale: .85; position: relative; flex: 1; min-height: 0; }+.homepage-embedded-content iframe { position: absolute; inset: 0; display: block; width: calc(100% / var(--demo-scale)); height: calc(100% / var(--demo-scale)); transform: scale(var(--demo-scale)); transform-origin: top left; border: 0; background: #0f0f0f; }+.homepage-embedded-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; }+.homepage-embedded-demo a:focus-visible { outline: 2px solid #eee; outline-offset: 6px; border-radius: 3px; }.homepage-sidebar-connection { position: relative; isolation: isolate; padding-top: clamp(140px, 26svh, 260px); }.homepage-sidebar-connection-line { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }.homepage-sidebar-connection-line path { stroke: rgb(255 255 255 / 42%); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }.homepage-sidebar-connection .homepage-sidebar-section { padding-top: 0; }@media (max-width: 767px) {- .homepage-open-source { padding: 70px 0 44px; }- .homepage-github-orbit { width: min(300px, 80vw); height: 220px; }- .homepage-github-orbit::before { width: 350px; height: 350px; }- .homepage-github-mark { width: 120px; height: 120px; }- .homepage-github-mark svg { width: 60px; height: 60px; }- .homepage-open-source h2 { font-size: 36px; margin-top: 32px; }- .homepage-open-source-subtext { font-size: 14px; margin-top: 24px; }- .homepage-open-source-badges { gap: 24px; margin-top: 36px; flex-wrap: wrap; }- .homepage-open-source-badges span { font-size: 10px; }- .homepage-open-source-backing > svg { width: 100px; }- .homepage-open-source-security svg { width: 30px; height: 36px; }+ .homepage-embedded-demo { width: calc(100vw - 24px); padding-top: 136px; }+ .homepage-embedded-wallpaper { padding: 28px 12px; border-radius: 8px; }+ .homepage-embedded-window { height: 590px; border-radius: 9px; }+ .homepage-embedded-content { --demo-scale: 1; }.homepage-sidebar-connection { padding-top: 180px; }}-.homepage-open-source-travel { position: absolute; inset: 0; z-index: 2; pointer-events: none; }-.homepage-github-link, .homepage-open-source h2, .homepage-open-source-subtext, .homepage-open-source-badges { position: relative; z-index: 3; }+.homepage-embedded-wallpaper::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .45; mix-blend-mode: soft-light; background: url('../../../assets/desktop/gradient-grain.svg') repeat; }+.homepage-demo-travel { position: absolute; z-index: 3; inset: 0; pointer-events: none; }+.homepage-demo-travel .feature-flow-icon, .homepage-demo-travel .feature-flow-core { display: grid; place-items: center; }++.homepage-embedded-stage { position: relative; }++.homepage-embedded-stage::after { content: ''; position: absolute; inset: 45% 0 -1px; background: linear-gradient(to bottom, transparent, #0005 35%, #000b 65%, #000 96%); pointer-events: none; transition: opacity 300ms ease; }+.homepage-demo-carousel { position: relative; z-index: 1; margin-top: -120px; text-align: center; touch-action: pan-y; }+.homepage-demo-slide-copy { min-height: 120px; display: grid; justify-items: center; align-content: start; user-select: none; cursor: grab; }+.homepage-demo-slide-copy:active { cursor: grabbing; }+.homepage-demo-slide-copy h2 { margin: 0; max-width: 900px; color: #eee; font-family: 'Roboto Slab Variable', display, serif; font-size: 34px; font-weight: 315; letter-spacing: -.015em; line-height: 1.2; white-space: pre-line; }+.homepage-demo-slide-controls { display: flex; align-items: center; justify-content: center; gap: 0; margin: 0 0 12px; }+.homepage-demo-carousel button { color: #999; background: transparent; border: 0; font: inherit; }+.homepage-demo-carousel button:hover { color: #eee; }+.homepage-demo-carousel button:focus-visible { outline: 2px solid #aaa; outline-offset: 4px; border-radius: 6px; }+.homepage-demo-carousel button:disabled { opacity: .4; }+.homepage-demo-carousel .homepage-demo-arrow { display: grid; place-items: center; width: 42px; height: 36px; }+.homepage-demo-slide-dot { display: grid; place-items: center; width: auto; height: 36px; padding: 0 4px; }+.homepage-demo-slide-dot span { display: block; width: 7px; height: 7px; border-radius: 8px; background: #444; transition: width 200ms ease, background 200ms ease; }+.homepage-demo-slide-dot[aria-pressed=true] span { width: 24px; background: #5da6ff; }+@media (max-width: 767px) {+ .homepage-demo-carousel { margin-top: -80px; padding: 0 12px; }+ .homepage-demo-slide-copy { min-height: 250px; }+ .homepage-demo-slide-copy h2 { font-size: clamp(26px, 6.7vw, 36px); }+}+@media (prefers-reduced-motion: reduce) {+ .homepage-embedded-stage::after, .homepage-demo-slide-dot span { transition: none; }+}diff --git a/apps/marketing/src/features/marketing/components/homepage-scroll-cue.css b/apps/marketing/src/features/marketing/components/homepage-scroll-cue.cssindex 17b90dfb55..d60cd45f64 100644--- a/apps/marketing/src/features/marketing/components/homepage-scroll-cue.css+++ b/apps/marketing/src/features/marketing/components/homepage-scroll-cue.css@@ -16,6 +16,7 @@.ob-welcome:has(.homepage-hero-cta) { --welcome-scale: 1; gap: 24px; }.ob-welcome:has(.homepage-hero-cta) [data-context-scene] { height: clamp(190px, calc(100svh - 540px), 300px); }.ob-welcome:has(.homepage-hero-cta) h1 { font-size: 48px; }+ .ob-welcome:has(.homepage-hero-cta) p[data-welcome-copy] { max-width: 384px; }}@media (max-width: 767px) and (max-height: 800px) {.ob-welcome:has(.homepage-hero-cta) { gap: 24px; }diff --git a/apps/marketing/src/features/marketing/components/homepage-sidebar.css b/apps/marketing/src/features/marketing/components/homepage-sidebar.cssindex 3a39c9381f..2af1468ca7 100644--- a/apps/marketing/src/features/marketing/components/homepage-sidebar.css+++ b/apps/marketing/src/features/marketing/components/homepage-sidebar.css@@ -140,3 +140,5 @@.homepage-sidebar-section[data-demo-expanded=true] .homepage-sidebar-rail { padding-top: 12px; }.homepage-sidebar-section[data-demo-expanded=true][data-main-only=true] .homepage-sidebar-demo-list { visibility: hidden; }.homepage-sidebar-section[data-demo-expanded=true][data-main-only=true] .homepage-sidebar-main { left: 56px; width: calc(var(--workspace-width) - 56px); }++.homepage-sidebar-bottom-anchor { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; }diff --git a/apps/marketing/src/features/marketing/components/homepage-spreadsheet.css b/apps/marketing/src/features/marketing/components/homepage-spreadsheet.cssindex 32924f36ec..87fc3b0863 100644--- a/apps/marketing/src/features/marketing/components/homepage-spreadsheet.css+++ b/apps/marketing/src/features/marketing/components/homepage-spreadsheet.css@@ -36,3 +36,7 @@.homepage-sheet-add-rows { padding: 2px 8px; background: #ffffff08; border: 1px solid #ffffff0d; border-radius: 999px; }.homepage-sheet-notice { margin-left: auto; overflow: hidden; text-overflow: ellipsis; }@media (max-width: 700px) { .homepage-sheet-row-count, .homepage-sheet-add-rows, .homepage-sheet-notice { display: none; } .homepage-sheet-footer > .homepage-sheet-tool:last-child { margin-left: auto; } }+@media (max-width: 767px) {+ .homepage-sheet-editor { overflow: clip; touch-action: pan-y pinch-zoom; }+ .homepage-sheet-toolbar, .homepage-sheet-grid { overflow: clip; overscroll-behavior: auto; }+}diff --git a/apps/marketing/src/features/marketing/components/pricing/SavingsCalculator.tsx b/apps/marketing/src/features/marketing/components/pricing/SavingsCalculator.tsxnew file mode 100644index 0000000000..b96a3df112--- /dev/null+++ b/apps/marketing/src/features/marketing/components/pricing/SavingsCalculator.tsx@@ -0,0 +1,164 @@+import AsanaIcon from '@assets/icons/logo-asana.svg';+import ClickUpIcon from '@assets/icons/logo-clickup.svg';+import JiraIcon from '@assets/icons/logo-jira.svg';+import LinearIcon from '@icon/mcp-linear.svg';+import NotionIcon from '@icon/mcp-notion.svg';+import SlackIcon from '@icon/mcp-slack.svg';+import HubSpotIcon from '@icon/onboarding-hubspot.svg';+import SuperhumanIcon from '@icon/onboarding-superhuman.svg';+import CheckIcon from '@phosphor/check.svg';+// The site has no Salesforce mark; a neutral cloud stands in for it.+import SalesforceIcon from '@phosphor/cloud.svg';+import MinusIcon from '@phosphor/minus.svg';+import PlusIcon from '@phosphor/plus.svg';+import { createSignal, For, type JSX } from 'solid-js';+import { createStore } from 'solid-js/store';+import {+ annualPlanPrice,+ formatUsd,+ initialChoices,+ MAX_SEATS,+ PRICES_CHECKED,+ parseSeats,+ SAVINGS_TOOLS,+ type SavingsToolId,+ summarizeSavings,+} from '../../core/savings-calculator';+import './savings-calculator.css';++const toolIcons: Record<+ SavingsToolId,+ (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element+> = {+ notion: NotionIcon,+ linear: LinearIcon,+ jira: JiraIcon,+ asana: AsanaIcon,+ clickup: ClickUpIcon,+ hubspot: HubSpotIcon,+ salesforce: SalesforceIcon,+ slack: SlackIcon,+ superhuman: SuperhumanIcon,+};++/** Yearly cost of a team's current tools next to Macro's paid plan. */+export function SavingsCalculator() {+ const [choices, setChoices] = createStore(initialChoices());+ const [seats, setSeats] = createSignal(5);+ const summary = () => summarizeSavings(choices, seats());+ const stepSeats = (delta: number) =>+ setSeats((count) => parseSeats(String(count + delta)) ?? count);+ // Picking a plan implies the visitor pays for that tool.+ const choosePlan = (id: SavingsToolId, planId: string) =>+ setChoices(id, { selected: true, planId });++ return (+ <div class="pricing-savings">+ <div class="pricing-savings-body">+ <ul class="pricing-savings-tools" aria-label="Tools you pay for">+ <For each={SAVINGS_TOOLS}>+ {(tool) => {+ const Icon = toolIcons[tool.id];+ const choice = () => choices[tool.id];+ return (+ <li data-selected={choice().selected}>+ <button+ type="button"+ class="pricing-savings-toggle"+ aria-pressed={choice().selected}+ onClick={() =>+ setChoices(tool.id, 'selected', (selected) => !selected)+ }+ >+ <span class="pricing-savings-check" aria-hidden="true">+ <CheckIcon />+ </span>+ <Icon class="pricing-savings-icon" aria-hidden="true" />+ <span class="pricing-savings-name">{tool.name}</span>+ </button>+ <div+ class="pricing-savings-plans"+ role="group"+ aria-label={`${tool.name} plan`}+ >+ <For each={tool.plans}>+ {(plan) => (+ <button+ type="button"+ aria-pressed={+ choice().selected && choice().planId === plan.id+ }+ onClick={() => choosePlan(tool.id, plan.id)}+ >+ {plan.name}+ </button>+ )}+ </For>+ </div>+ <span class="pricing-savings-price">+ {formatUsd(annualPlanPrice(tool, choice().planId))}+ <span>/seat/yr</span>+ </span>+ </li>+ );+ }}+ </For>+ </ul>+ <aside class="pricing-savings-summary">+ <div class="pricing-savings-seats">+ <span id="pricing-savings-seats-label">Seats</span>+ <div class="pricing-savings-stepper">+ <button+ type="button"+ aria-label="Remove a seat"+ disabled={seats() <= 1}+ onClick={() => stepSeats(-1)}+ >+ <MinusIcon aria-hidden="true" />+ </button>+ <input+ type="number"+ inputmode="numeric"+ min="1"+ max={MAX_SEATS}+ value={seats()}+ aria-labelledby="pricing-savings-seats-label"+ onInput={(event) => {+ const next = parseSeats(event.currentTarget.value);+ if (next !== null) setSeats(next);+ }}+ onBlur={(event) => {+ event.currentTarget.value = String(seats());+ }}+ />+ <button+ type="button"+ aria-label="Add a seat"+ disabled={seats() >= MAX_SEATS}+ onClick={() => stepSeats(1)}+ >+ <PlusIcon aria-hidden="true" />+ </button>+ </div>+ </div>+ <div class="pricing-savings-result" aria-live="polite">+ <span>Your current stack</span>+ <strong>{formatUsd(summary().toolsCents)}</strong>+ <span>+ per year for {seats()} {seats() === 1 ? 'seat' : 'seats'}+ </span>+ </div>+ <div class="pricing-savings-macro" aria-live="polite">+ <span>Macro</span>+ <span>{formatUsd(summary().macroCents)} per year</span>+ </div>+ </aside>+ </div>+ <p class="pricing-savings-note">+ Yearly totals use 12 months at the lowest per-seat price on each tool’s+ pricing page in {PRICES_CHECKED}. Macro’s paid plan is $40 per seat a+ month for your first 5 seats, then $80.+ </p>+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/pricing/savings-calculator.css b/apps/marketing/src/features/marketing/components/pricing/savings-calculator.cssnew file mode 100644index 0000000000..20d873c6b1--- /dev/null+++ b/apps/marketing/src/features/marketing/components/pricing/savings-calculator.css@@ -0,0 +1,46 @@+.pricing-savings { --ps-ink: var(--c1); --ps-ink-muted: var(--c4); --ps-ink-faint: color-mix(in srgb, var(--c4) 70%, transparent); --ps-edge: color-mix(in srgb, var(--b4) 70%, transparent); --ps-edge-muted: color-mix(in srgb, var(--b4) 35%, transparent); --ps-surface: var(--b0); --ps-panel: var(--b1); --ps-hover: color-mix(in srgb, var(--c1) 6%, transparent); --ps-active: color-mix(in srgb, var(--c1) 12%, transparent); width: 100%; }+.pricing-savings-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; max-width: 920px; margin: 0 auto; }+.pricing-savings-tools { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }+.pricing-savings-tools > li { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 8px 20px 8px 8px; border: 1px solid var(--ps-edge-muted); border-radius: 16px; background: var(--ps-surface); transition: border-color 180ms ease; }+.pricing-savings-tools > li[data-selected=true] { border-color: color-mix(in srgb, var(--ps-ink) 22%, transparent); }+.pricing-savings-toggle { display: flex; flex: 1; align-items: center; gap: 14px; min-width: 0; align-self: stretch; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ps-ink); font: 500 16px/1.4 Inter, body; text-align: left; }+.pricing-savings-toggle:hover { background: var(--ps-hover); }+.pricing-savings-check { display: grid; flex: none; place-items: center; width: 20px; height: 20px; border: 1px solid var(--ps-edge); border-radius: 6px; color: transparent; transition: background 150ms ease, color 150ms ease; }+.pricing-savings-check svg { width: 14px; height: 14px; }+.pricing-savings-toggle[aria-pressed=true] .pricing-savings-check { border-color: var(--ps-ink); background: var(--ps-ink); color: var(--ps-surface); }+.pricing-savings-icon { flex: none; width: 22px; height: 22px; }+.pricing-savings-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }+.pricing-savings-tools > li[data-selected=false] :is(.pricing-savings-icon, .pricing-savings-name, .pricing-savings-price) { opacity: .45; }+.pricing-savings-plans { display: inline-flex; flex: none; padding: 2px; border: 1px solid var(--ps-edge-muted); border-radius: 999px; }+.pricing-savings-plans button { padding: 4px 12px; border: 0; border-radius: 999px; background: none; color: var(--ps-ink-muted); font: 500 12px/1.5 Inter, body; }+.pricing-savings-plans button:hover { color: var(--ps-ink); }+.pricing-savings-plans button[aria-pressed=true] { background: var(--ps-active); color: var(--ps-ink); }+.pricing-savings-price { flex: none; min-width: 128px; color: var(--ps-ink); font: 500 16px/1.4 Inter, body; font-variant-numeric: tabular-nums; text-align: right; }+.pricing-savings-price span { margin-left: 2px; color: var(--ps-ink-muted); font-size: 12px; font-weight: 400; }+.pricing-savings-summary { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 28px; padding: 28px; border: 1px solid var(--ps-edge-muted); border-radius: 20px; background: var(--ps-panel); }+.pricing-savings-result { display: flex; flex-direction: column; gap: 6px; margin: 0; color: var(--ps-ink-muted); font: 400 14px/1.6 Inter, body; text-wrap: balance; }+.pricing-savings-result strong { margin: 4px 0 2px; overflow-wrap: anywhere; color: var(--ps-ink); font: 315 52px/1.05 display; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }+.pricing-savings-seats { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--ps-edge-muted); color: var(--ps-ink-muted); font: 400 14px/1.5 Inter, body; }+.pricing-savings-stepper { display: inline-flex; align-items: center; padding: 2px; border: 1px solid var(--ps-edge-muted); border-radius: 999px; }+.pricing-savings-stepper button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--ps-ink-muted); }+.pricing-savings-stepper button:hover:not(:disabled) { background: var(--ps-hover); color: var(--ps-ink); }+.pricing-savings-stepper button:disabled { opacity: .3; }+.pricing-savings-stepper svg { width: 14px; height: 14px; }+.pricing-savings-stepper input { width: 56px; border: 0; background: none; color: var(--ps-ink); font: 500 15px/1.5 Inter, body; font-variant-numeric: tabular-nums; text-align: center; appearance: textfield; -moz-appearance: textfield; }+.pricing-savings-stepper input::-webkit-inner-spin-button, .pricing-savings-stepper input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }+.pricing-savings-macro { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--ps-edge-muted); color: var(--ps-ink-muted); font: 400 14px/1.5 Inter, body; }+.pricing-savings-macro span:last-child { color: var(--ps-ink); font-variant-numeric: tabular-nums; }+.pricing-savings-result span:last-child { color: var(--ps-ink-faint); }+.pricing-savings-note { max-width: 560px; margin: 28px auto 0; color: var(--ps-ink-faint); font: 400 12px/1.7 Inter, body; text-align: center; text-wrap: balance; }+.pricing-savings :focus-visible { outline: 2px solid var(--ps-ink-muted); outline-offset: 2px; }+@media (max-width: 767px) {+ .pricing-savings-body { grid-template-columns: minmax(0, 1fr); }+ .pricing-savings-summary { position: static; }+}+@media (max-width: 479px) {+ .pricing-savings-tools > li { flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px 12px 8px; }+ .pricing-savings-toggle { flex-basis: 100%; min-height: 48px; }+ .pricing-savings-plans { margin-left: 12px; }+ .pricing-savings-price { width: auto; margin-left: auto; }+ .pricing-savings-result strong { font-size: 44px; }+}diff --git a/apps/marketing/src/features/marketing/components/product/ProductDemos.test.tsx b/apps/marketing/src/features/marketing/components/product/ProductDemos.test.tsxnew file mode 100644index 0000000000..7f03c90980--- /dev/null+++ b/apps/marketing/src/features/marketing/components/product/ProductDemos.test.tsx@@ -0,0 +1,357 @@+import { cleanup, fireEvent, render, within } from '@solidjs/testing-library';+import { afterEach, beforeEach, expect, it, vi } from 'vitest';+import {+ AgentEmailReviewDemo,+ AgentTaskResultDemo,+} from '../agents/AgentStories';+import { CallTranscriptDemo } from '../calls/CallStories';+import { ChannelThreadDemo } from '../channels/ChannelStories';+import {+ DocumentAgentDemo,+ DocumentSharingDemo,+} from '../documents/DocumentStories';+import {+ ReviewDiscussionDemo,+ ReviewQueueDemo,+} from '../reviews/ReviewStories';+import {+ TaskFromChannelDemo,+ TaskFromMessageDemo,+ TaskOwnershipDemo,+} from '../tasks/TaskStories';++let intersections: IntersectionObserverCallback[];+let motionListeners: (() => void)[];+let reduced = false;+let hidden = false;+beforeEach(() => {+ intersections = [];+ motionListeners = [];+ reduced = false;+ hidden = false;+ vi.useFakeTimers();+ vi.stubGlobal('fetch', vi.fn());+ vi.spyOn(document, 'hidden', 'get').mockImplementation(() => hidden);+ vi.stubGlobal('matchMedia', () => ({+ get matches() {+ return reduced;+ },+ addEventListener: (_: string, callback: () => void) =>+ motionListeners.push(callback),+ removeEventListener: vi.fn(),+ }));+ vi.stubGlobal(+ 'IntersectionObserver',+ class {+ constructor(callback: IntersectionObserverCallback) {+ intersections.push(callback);+ }+ observe() {}+ disconnect() {}+ }+ );+ vi.stubGlobal(+ 'ResizeObserver',+ class {+ observe() {}+ unobserve() {}+ disconnect() {}+ }+ );+});+afterEach(() => {+ cleanup();+ vi.advanceTimersByTime(100);+ expect(fetch).not.toHaveBeenCalled();+ expect(vi.getTimerCount()).toBe(0);+ vi.useRealTimers();+ vi.restoreAllMocks();+ vi.unstubAllGlobals();+});+function visible(value: boolean) {+ for (const callback of intersections)+ callback(+ [{ isIntersecting: value } as IntersectionObserverEntry],+ {} as IntersectionObserver+ );+}+function reduce() {+ reduced = true;+ for (const callback of motionListeners) callback();+}++it('creates the task with the source channel and stops at a useful final state', () => {+ const view = render(() => <TaskFromMessageDemo />);+ vi.advanceTimersByTime(10000);+ expect(+ view.getByRole('button', { name: 'Create task from message' })+ ).toBeTruthy();+ visible(true);+ vi.advanceTimersByTime(2800);+ expect(view.getByRole('textbox', { name: 'New task title' })).toBeTruthy();+ expect(view.queryByRole('textbox', { name: 'Task title' })).toBeNull();+ vi.advanceTimersByTime(4200);+ expect(view.getByRole('textbox', { name: 'Task title' }).textContent).toBe(+ 'Fix the team invite handoff'+ );+ expect(view.getByRole('button', { name: 'From launch' })).toBeTruthy();+ expect(+ view.getAllByRole('button', { name: 'Change assignee' })[0].textContent+ ).toContain('Teo');+ vi.advanceTimersByTime(30000);+ expect(vi.getTimerCount()).toBe(0);+});++it('keeps a visitor’s conversion draft and assignment instead of advancing over it', () => {+ const view = render(() => <TaskFromMessageDemo />);+ fireEvent.click(+ view.getByRole('button', { name: 'Create task from message' })+ );+ const title = view.getByRole('textbox', { name: 'New task title' });+ fireEvent.input(title, {+ target: { value: 'Keep the invited workspace selected' },+ });+ reduce();+ visible(true);+ vi.advanceTimersByTime(30000);+ expect((title as HTMLInputElement).value).toBe(+ 'Keep the invited workspace selected'+ );+ fireEvent.submit(view.getByRole('form', { name: 'Create task preview' }));+ expect(view.getByRole('textbox', { name: 'Task title' }).textContent).toBe(+ 'Keep the invited workspace selected'+ );+ expect(view.getByRole('button', { name: 'From launch' })).toBeTruthy();+ fireEvent.click(view.getByRole('button', { name: '2 Create task' }));+ fireEvent.input(view.getByRole('textbox', { name: 'New task title' }), {+ target: { value: 'Revised invite handoff' },+ });+ fireEvent.submit(view.getByRole('form', { name: 'Create task preview' }));+ expect(view.getByRole('textbox', { name: 'Task title' }).textContent).toBe(+ 'Revised invite handoff'+ );+});++it('sends the new task to its channel and opens the same assigned task from its message', () => {+ const view = render(() => <TaskFromChannelDemo />);+ visible(true);+ vi.advanceTimersByTime(2800);+ expect(+ view+ .getByRole('switch', { name: 'Send as task' })+ .getAttribute('aria-checked')+ ).toBe('true');+ vi.advanceTimersByTime(4200);+ const log = within(view.getByRole('log', { name: 'Channel launch' }));+ fireEvent.click(+ log.getByRole('button', { name: 'Fix the team invite handoff' })+ );+ expect(+ view.getByRole('textbox', { name: 'Task description' }).textContent+ ).toContain('Keep the invited team selected');+ expect(+ view.getAllByRole('button', { name: 'Change assignee' })[0].textContent+ ).toContain('Teo');+ fireEvent.click(view.getByRole('button', { name: 'From launch' }));+ expect(view.getByRole('log', { name: 'Channel launch' })).toBeTruthy();+ vi.advanceTimersByTime(30000);+ expect(vi.getTimerCount()).toBe(0);+});++it('shows a linked result without animation for reduced motion', () => {+ reduced = true;+ const view = render(() => <TaskFromMessageDemo />);+ expect(view.getByRole('button', { name: 'From launch' })).toBeTruthy();+ expect(view.container.querySelector('.task-flow-pointer')).toBeNull();+});++it('pauses offscreen and in a hidden tab, then preserves a visitor’s task edits', () => {+ const view = render(() => <TaskOwnershipDemo />);+ visible(true);+ vi.advanceTimersByTime(1400);+ expect(+ view.getAllByRole('button', { name: 'Change assignee' })[0].textContent+ ).toContain('Teo');+ visible(false);+ vi.advanceTimersByTime(10000);+ expect(+ view.getAllByRole('button', { name: 'Change priority' })[0].textContent+ ).toContain('Low');+ visible(true);+ hidden = true;+ document.dispatchEvent(new Event('visibilitychange'));+ vi.advanceTimersByTime(10000);+ expect(+ view.getAllByRole('button', { name: 'Change priority' })[0].textContent+ ).toContain('Low');+ hidden = false;+ document.dispatchEvent(new Event('visibilitychange'));+ const title = view.getByRole('textbox', { name: 'Task title' });+ fireEvent.keyDown(title, { key: 'ArrowLeft' });+ title.innerText = 'Visitor’s task title';+ fireEvent.blur(title);+ reduce();+ vi.advanceTimersByTime(30000);+ expect(title.textContent).toBe('Visitor’s task title');+ expect(+ view.getAllByRole('button', { name: 'Change priority' })[0].textContent+ ).toContain('Low');+});++it('leaves the document editable and never replaces the visitor’s text', () => {+ const view = render(() => <DocumentAgentDemo />);+ visible(true);+ const body = view.getByRole('textbox', { name: 'Document body' });+ fireEvent.pointerDown(body);+ body.innerHTML = '<p>Our team’s revised launch plan.</p>';+ fireEvent.blur(body);+ reduce();+ vi.advanceTimersByTime(30000);+ expect(body.textContent).toContain('Our team’s revised launch plan.');+ expect(body.textContent).not.toContain('Teo: verify');+});++it('shows the finished document for reduced motion', () => {+ reduced = true;+ const view = render(() => <DocumentAgentDemo />);+ expect(+ view.getByRole('textbox', { name: 'Document body' }).textContent+ ).toContain('Teo: verify the invite flow.');+ vi.advanceTimersByTime(100);+ expect(vi.getTimerCount()).toBe(0);+});++it('shares the document with the chosen access and preserves it when reopened', () => {+ const view = render(() => <DocumentSharingDemo />);+ fireEvent.click(view.getByRole('button', { name: 'Share' }));+ const dialog = within(view.getByRole('dialog'));+ fireEvent.change(dialog.getByLabelText('Email or group'), {+ target: { value: 'teo' },+ });+ fireEvent.change(dialog.getByLabelText('Access level'), {+ target: { value: 'Comment' },+ });+ fireEvent.click(dialog.getByRole('button', { name: 'Share' }));+ const access = view.container.querySelector('.product-share-access')!;+ expect(access.textContent).toContain('Teo Nys');+ expect(access.textContent).toContain('Comment');+ fireEvent.click(dialog.getByRole('button', { name: 'Close sharing' }));+ fireEvent.click(view.getByRole('button', { name: 'Share' }));+ expect(+ view.container.querySelector('.product-share-access')?.textContent+ ).toContain('Comment');+});++it('adds a reply to its original thread rather than a new channel message', () => {+ const view = render(() => <ChannelThreadDemo />);+ fireEvent.click(view.getByRole('button', { name: /2 replies/ }));+ const thread = view.container.querySelector('.sample-channel-thread')!;+ fireEvent.click(+ within(thread as HTMLElement).getAllByRole('button', {+ name: 'Reply to message',+ })[0]+ );+ const input = within(thread as HTMLElement).getByRole('textbox');+ input.textContent = 'Confirmed. Keep the invite flow first.';+ fireEvent.input(input);+ fireEvent.click(+ within(thread as HTMLElement).getByRole('button', {+ name: 'Send demo message',+ })+ );+ expect(+ within(thread as HTMLElement).getByText(+ 'Confirmed. Keep the invite flow first.'+ )+ ).toBeTruthy();+ expect(+ view.container.querySelectorAll('.sample-channel-thread')+ ).toHaveLength(2);+});++it('opens an agent-created task in the ordinary editable task view', () => {+ reduced = true;+ const view = render(() => <AgentTaskResultDemo />);+ fireEvent.click(+ view.getByRole('button', { name: 'Review Thursday’s launch checks' })+ );+ expect(view.getByRole('textbox', { name: 'Task title' }).textContent).toBe(+ 'Review Thursday’s launch checks'+ );+ expect(+ view.getAllByRole('button', { name: 'Change assignee' })[0]+ ).toBeTruthy();+});++it('keeps the edited agent email as the actual Sent artifact', () => {+ const view = render(() => <AgentEmailReviewDemo />);+ const subject = view.getByRole('textbox', { name: 'Subject' });+ fireEvent.input(subject, { target: { value: 'Thursday at 9 — confirmed' } });+ const body = view.getByRole('textbox', { name: 'Email body' });+ body.innerText = 'Thursday at 9 works for our follow-up. Julia will join us.';+ fireEvent.input(body);+ fireEvent.click(view.getByRole('button', { name: 'Send email' }));+ expect(+ view.getByRole('heading', { name: 'Thursday at 9 — confirmed' })+ ).toBeTruthy();+ expect(+ view.getByText('Thursday at 9 works for our follow-up.', { exact: false })+ ).toBeTruthy();+});++it('lets a visitor choose a transcript segment without being moved back by motion', () => {+ const view = render(() => <CallTranscriptDemo />);+ visible(true);+ const segment = view.getByRole('button', {+ name: 'Go to 1:24: Julia Westphal',+ });+ fireEvent.pointerDown(segment);+ fireEvent.click(segment);+ reduce();+ vi.advanceTimersByTime(20000);+ expect(segment.getAttribute('aria-pressed')).toBe('true');+});++it('combines review filters and search, opens the correct item, and preserves the queue', () => {+ const view = render(() => <ReviewQueueDemo />);+ fireEvent.click(view.getByRole('button', { name: 'All reviews' }));+ fireEvent.input(view.getByRole('searchbox'), {+ target: { value: 'announcement' },+ });+ fireEvent.click(+ view.getByRole('button', {+ name: 'Open review: Update the launch announcement',+ })+ );+ expect(+ view.getByRole('heading', { name: 'Update the launch announcement' })+ ).toBeTruthy();+ fireEvent.click(view.getByRole('button', { name: 'Back to reviews' }));+ expect((view.getByRole('searchbox') as HTMLInputElement).value).toBe(+ 'announcement'+ );+ expect(+ view.queryByRole('button', {+ name: 'Open review: Retry transient deploy failures',+ })+ ).toBeNull();+});++it('filters bot messages without removing the human review and its line context', () => {+ const view = render(() => <ReviewDiscussionDemo />);+ fireEvent.click(view.getByRole('checkbox', { name: 'Hide bots (1)' }));+ expect(view.queryByText('Preview available for this branch.')).toBeNull();+ expect(view.getByText('deploy/retry.ts · L6')).toBeTruthy();+ expect(view.getByText(/Only temporary registry failures/)).toBeTruthy();+});++it('keeps a supplied email draft intact for reduced motion', () => {+ reduced = true;+ const view = render(() => <AgentEmailReviewDemo />);+ expect(+ view.getByRole('textbox', { name: 'Email body' }).textContent+ ).toContain('Thursday at 9 works');+ expect(+ view.getByRole('textbox', { name: 'Email body' }).textContent+ ).not.toContain('Macro sales overview');+});diff --git a/apps/marketing/src/features/marketing/components/product/ProductGraphics.tsx b/apps/marketing/src/features/marketing/components/product/ProductGraphics.tsxnew file mode 100644index 0000000000..f9d716a0e2--- /dev/null+++ b/apps/marketing/src/features/marketing/components/product/ProductGraphics.tsx@@ -0,0 +1,91 @@+import type { ParentProps } from 'solid-js';++function Graphic(props: ParentProps) {+ return (+ <svg+ class="email-feature-graphic"+ viewBox="0 0 160 100"+ fill="none"+ stroke="currentColor"+ stroke-width="1"+ stroke-linecap="round"+ stroke-linejoin="round"+ aria-hidden="true"+ >+ {props.children}+ </svg>+ );+}+export function LinkedWorkGraphic() {+ return (+ <Graphic>+ <path d="M20 23h66v39H47L33 73V62H20Z" opacity=".35" />+ <path d="M32 35h41M32 46h25" opacity=".3" />+ <path d="M99 16h23l13 13v50H99Z" opacity=".65" />+ <path d="M122 16v13h13M106 42h20M106 51h20M106 61h12" opacity=".4" />+ <path d="M75 73c14 0 12-24 24-24" />+ <circle cx="99" cy="49" r="2" />+ </Graphic>+ );+}+export function ThreadGraphic() {+ return (+ <Graphic>+ <path d="M35 22h92v23H35Z" opacity=".5" />+ <path d="M48 32h62M48 38h34" opacity=".35" />+ <path d="M42 46v18q0 10 12 10h5" opacity=".6" />+ <rect x="62" y="55" width="65" height="27" rx="7" opacity=".6" />+ <path d="M73 65h43M73 73h30" opacity=".35" />+ <circle cx="42" cy="28" r="3" />+ </Graphic>+ );+}+export function EditingGraphic() {+ return (+ <Graphic>+ <path d="M38 13h70l15 15v58H38Z" opacity=".45" />+ <path d="M108 13v15h15M50 35h52M50 43h33M50 71h53" opacity=".3" />+ <path d="M49 55h38" stroke-width="5" opacity=".15" />+ <path d="M49 55h38M49 62h57" />+ <path d="m91 66 4 13 3-5 6-2Z" fill="#080808" />+ </Graphic>+ );+}+export function ContextGraphic() {+ return (+ <Graphic>+ <path d="M22 25h29v43H22ZM109 25h29v43h-29" opacity=".4" />+ <path d="M29 36h14M29 44h10M116 36h14M116 44h10" opacity=".3" />+ <path d="M52 46h18m20 0h18" opacity=".5" />+ <circle cx="80" cy="46" r="13" opacity=".65" />+ <path d="m74 46 4 4 8-8" />+ </Graphic>+ );+}+export function CallGraphic() {+ return (+ <Graphic>+ <rect x="25" y="20" width="110" height="60" rx="9" opacity=".4" />+ <rect x="35" y="30" width="42" height="31" rx="4" opacity=".55" />+ <rect x="82" y="30" width="42" height="31" rx="4" opacity=".3" />+ <circle cx="56" cy="43" r="5" />+ <path d="M46 57c0-10 20-10 20 0M95 69h18" opacity=".6" />+ <circle cx="50" cy="70" r="3" />+ <circle cx="64" cy="70" r="3" opacity=".4" />+ </Graphic>+ );+}+export function DiffGraphic() {+ return (+ <Graphic>+ <rect x="28" y="17" width="104" height="67" rx="5" opacity=".4" />+ <path d="M28 31h104M79 31v53" opacity=".25" />+ <path+ d="M40 44h27M40 55h20M40 66h26M90 44h27M90 55h20M90 66h26"+ opacity=".6"+ />+ <path d="M37 55h33" stroke-width="8" opacity=".1" />+ <path d="M86 66h36" stroke-width="8" opacity=".2" />+ </Graphic>+ );+}diff --git a/apps/marketing/src/features/marketing/components/product/ProductPage.tsx b/apps/marketing/src/features/marketing/components/product/ProductPage.tsxnew file mode 100644index 0000000000..cecb79ddfe--- /dev/null+++ b/apps/marketing/src/features/marketing/components/product/ProductPage.tsx@@ -0,0 +1,72 @@+import MacroLogo from '@icon/macro-logo.svg';+import type { JSX, ParentProps } from 'solid-js';+import { FeaturePage, FeaturePageCta } from '../FeaturePage';+import '../email/email-hero.css';+import './product-page.css';+import './product-demo-stage.css';++/** Email's approved geometry, scoped to the product-page rollout. */+export function ProductPage(props: ParentProps) {+ return (+ <FeaturePage>+ <div class="product-page">{props.children}</div>+ </FeaturePage>+ );+}++export function ProductHero(props: {+ product: string;+ title: readonly [string, string];+ description: readonly [string, string];+ cta: string;+}) {+ return (+ <header class="feature-page-hero email-page-hero">+ <p class="email-page-hero-label">+ <MacroLogo aria-hidden="true" />+ <span>Macro {props.product}</span>+ </p>+ <h1>+ <span>{props.title[0]}</span>+ <span>{props.title[1]}</span>+ </h1>+ <p class="email-page-hero-description">+ {props.description[0]}+ <br class="email-page-hero-break" /> {props.description[1]}+ </p>+ <FeaturePageCta name={props.cta} />+ </header>+ );+}++export function ProductProse(props: ParentProps) {+ return <div class="product-prose">{props.children}</div>;+}++/** The same glass utility used by email and the homepage composer. */+export function ProductDemo(props: {+ label: string;+ children: JSX.Element;+ ref?: (element: HTMLDivElement) => void;+ onInteract?: () => void;+ action?: string;+}) {+ return (+ <div+ ref={props.ref}+ class="product-demo-stage"+ role="group"+ aria-label={props.label}+ onPointerDown={() => props.onInteract?.()}+ onKeyDown={() => props.onInteract?.()}+ >+ <div+ class="product-demo glass workspace-demo portal-scope dummy-workspace"+ data-theme="dark"+ data-action={props.action}+ >+ <div class="dummy-main">{props.children}</div>+ </div>+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/product/ProductShareDialog.tsx b/apps/marketing/src/features/marketing/components/product/ProductShareDialog.tsxnew file mode 100644index 0000000000..d51b146e5e--- /dev/null+++ b/apps/marketing/src/features/marketing/components/product/ProductShareDialog.tsx@@ -0,0 +1,104 @@+import X from '@phosphor/x.svg';+import { Button } from '@ui';+import { createSignal, createUniqueId, Show } from 'solid-js';+import { PersonIcon } from '../workspace/frozen/TaskProperties';++/** Presentation port of Macro's Share form. Recipients and access stay local. */+export function ProductShareDialog(props: {+ open: boolean;+ title: string;+ kind?: string;+ onClose: () => void;+}) {+ const titleId = createUniqueId();+ const recipientId = createUniqueId();+ const [person, setPerson] = createSignal('');+ const [shared, setShared] = createSignal<{ person: string; level: string }>();+ const [level, setLevel] = createSignal('Edit');+ return (+ <Show when={props.open}>+ <div class="product-share-scrim">+ <div+ class="product-share-form glass-input"+ role="dialog"+ aria-modal="false"+ aria-labelledby={titleId}+ >+ <header>+ <h3 id={titleId}>Share: {props.title}</h3>+ <Button+ variant="plain"+ size="icon-sm"+ label="Close sharing"+ onClick={props.onClose}+ >+ <X />+ </Button>+ </header>+ <div class="product-share-recipient">+ <label for={recipientId}>To:</label>+ <select+ id={recipientId}+ aria-label="Email or group"+ value={person()}+ onChange={(e) => setPerson(e.currentTarget.value)}+ >+ <option value="">Email or group</option>+ <option value="teo">Teo Nys</option>+ <option value="julia">Julia Westphal</option>+ </select>+ <select+ aria-label="Access level"+ value={level()}+ onChange={(e) => setLevel(e.currentTarget.value)}+ >+ <option>Edit</option>+ <option>Comment</option>+ <option>View</option>+ </select>+ </div>+ <textarea+ aria-label="Optional message"+ placeholder="Optional message"+ />+ <div class="product-share-actions">+ <Button variant="plain" size="sm" onClick={props.onClose}>+ Cancel+ </Button>+ <Button+ size="sm"+ disabled={!person()}+ onClick={() => setShared({ person: person(), level: level() })}+ >+ Share+ </Button>+ </div>+ <div class="product-share-access">+ <p>People with access to this {props.kind ?? 'document'}</p>+ <div>+ <PersonIcon person="jacob" />+ <span>Me</span>+ <span>Owner</span>+ </div>+ <Show when={shared()}>+ <div>+ <PersonIcon+ person={shared()?.person === 'teo' ? 'teo' : 'julia'}+ />+ <span>+ {shared()?.person === 'teo' ? 'Teo Nys' : 'Julia Westphal'}+ </span>+ <span>{shared()?.level}</span>+ </div>+ </Show>+ <p class="mt-4">Link sharing scope</p>+ <span>None</span>+ <p class="text-xs text-ink-muted mt-2">+ Only people with access can open this {props.kind ?? 'document'}.+ </p>+ </div>+ </div>+ </div>+ </Show>+ );+}diff --git a/apps/marketing/src/features/marketing/components/product/ProductWorkspace.tsx b/apps/marketing/src/features/marketing/components/product/ProductWorkspace.tsxnew file mode 100644index 0000000000..0fcc9bf5c7--- /dev/null+++ b/apps/marketing/src/features/marketing/components/product/ProductWorkspace.tsx@@ -0,0 +1,28 @@+import { Match, Switch } from 'solid-js';+import type { DummyWorkspace } from '../../primitives/createDummyWorkspace';+import { WorkspaceAgents } from '../workspace/WorkspaceAgents';+import { WorkspaceChannel } from '../workspace/WorkspaceChannel';+import { WorkspaceDocuments } from '../workspace/WorkspaceDocuments';+import { WorkspaceEmail } from '../workspace/WorkspaceEmail';+import { WorkspaceTasks } from '../workspace/WorkspaceTasks';++/** Local linked items open in the same demonstration, just as they do in Home. */+export function ProductWorkspace(props: { workspace: DummyWorkspace }) {+ const w = props.workspace;+ return (+ <Switch fallback={<WorkspaceChannel workspace={w} />}>+ <Match when={w.contentView() === 'documents'}>+ <WorkspaceDocuments workspace={w} />+ </Match>+ <Match when={w.contentView() === 'tasks'}>+ <WorkspaceTasks workspace={w} filter="all" />+ </Match>+ <Match when={w.contentView() === 'agents'}>+ <WorkspaceAgents workspace={w} />+ </Match>+ <Match when={w.contentView() === 'email'}>+ <WorkspaceEmail workspace={w} tab="important" account="all" />+ </Match>+ </Switch>+ );+}diff --git a/apps/marketing/src/features/marketing/components/product/product-demo-stage.css b/apps/marketing/src/features/marketing/components/product/product-demo-stage.cssnew file mode 100644index 0000000000..4071feb140--- /dev/null+++ b/apps/marketing/src/features/marketing/components/product/product-demo-stage.css@@ -0,0 +1,60 @@+/* Email's quiet dot field and cool glow, only around the focused subgraphics.+ The extra tail fades the window into the page without dimming its controls. */+.product-page .feature-page-visual .product-demo-stage {+ --product-demo-height: 580px;+ --product-demo-fade-tail: 84px;+ padding-top: 28px;+}++.product-page .feature-page-visual .product-demo-stage::before {+ inset: -40px -40px 0;+ z-index: -2;+ background:+ radial-gradient(ellipse at 65% 31%, rgb(144 148 159 / 0.13), transparent 57%),+ radial-gradient(ellipse at 25% 60%, rgb(106 117 135 / 0.07), transparent 60%);+ mask-image: linear-gradient(transparent, #000 18%, #000 60%, transparent);+ -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 60%, transparent);+}++.product-page .feature-page-visual .product-demo-stage::after {+ content: '';+ position: absolute;+ inset: -10px -24px 0;+ z-index: -1;+ pointer-events: none;+ background: radial-gradient(rgb(208 214 225 / 0.2) 0.6px, transparent 0.9px) 0 0 / 8px 8px;+ mask-image: radial-gradient(ellipse at 63% 34%, #000, transparent 69%);+ -webkit-mask-image: radial-gradient(ellipse at 63% 34%, #000, transparent 69%);+ opacity: 0.48;+}++.product-page .feature-page-visual .product-demo {+ box-sizing: border-box;+ height: calc(var(--product-demo-height) + var(--product-demo-fade-tail));+ padding-bottom: var(--product-demo-fade-tail);+ background: linear-gradient(145deg, #17181b, #101112 60%);+ mask-image: linear-gradient(+ #000 calc(100% - var(--product-demo-fade-tail)),+ rgb(0 0 0 / 0.65) calc(100% - 32px),+ transparent+ );+ -webkit-mask-image: linear-gradient(+ #000 calc(100% - var(--product-demo-fade-tail)),+ rgb(0 0 0 / 0.65) calc(100% - 32px),+ transparent+ );+}++@media (max-width: 699px) {+ .product-page .feature-page-visual .product-demo-stage {+ --product-demo-height: 620px;+ --product-demo-fade-tail: 64px;+ padding-top: 12px;+ }+ .product-page .feature-page-visual .product-demo-stage::before {+ inset: -18px 0 0;+ }+ .product-page .feature-page-visual .product-demo-stage::after {+ inset-inline: 0;+ }+}diff --git a/apps/marketing/src/features/marketing/components/product/product-page.css b/apps/marketing/src/features/marketing/components/product/product-page.cssnew file mode 100644index 0000000000..3d3c78ed39--- /dev/null+++ b/apps/marketing/src/features/marketing/components/product/product-page.css@@ -0,0 +1,129 @@+.product-page { --product-measure: 920px; width: 100%; }+.product-page .homepage-feature-heading { width: min(var(--product-measure), 100%); margin-inline: auto; padding-inline: 24px; text-align: left; }+.product-page .homepage-feature-title { justify-content: flex-start; }+.product-page .homepage-section-break { display: block; }+.product-page .homepage-section-break > span { display: none; }+.product-page .homepage-section-break p { max-width: 100%; margin-inline: 0; white-space: pre-line; text-wrap: wrap; }+.product-page .feature-page-visual { width: min(872px, calc(100% - 48px)); }+.product-page .feature-page-jump-links { width: min(872px, calc(100% - 48px)); margin-inline: auto; border: 0; padding-block: 12px 32px; }+.product-page .email-feature-graphic { width: 180px; height: 112px; color: #b8b8b3; }+.product-prose { width: min(var(--product-measure), 100%); margin: 28px auto 0; padding-inline: 24px; color: #a3a3a3; font: 400 15px/1.85 'Inter Variable', Inter, sans-serif; }+.product-prose p + p { margin-top: 18px; }+.product-page .feature-page-reading { width: min(var(--product-measure), 100%); }+.product-page .feature-page-reading-rule { display: none; }+.product-page .feature-page-comparison, .product-page > .homepage-feature-end { width: min(872px, calc(100% - 48px)); margin-inline: auto; }+.product-demo-stage { position: relative; isolation: isolate; }+.product-demo-stage::before { content: ''; position: absolute; pointer-events: none; z-index: -1; inset: -24px -32px; background: radial-gradient(#ffffff18 .6px, transparent .6px) 0 0 / 12px 12px; mask-image: radial-gradient(ellipse, #0008, transparent 70%); }+.product-page .product-demo { height: 580px; border-radius: 16px; overflow: hidden; background-color: var(--color-panel); box-shadow: var(--glass-shadow); }+.product-demo > .dummy-main { height: 100%; }+.product-demo .sample-chat-log { padding: 32px; }+.product-demo .sample-message-actions { opacity: 1; }+.product-demo .sample-message-row { margin-bottom: 22px; }+.product-demo .sample-details { display: none; }+.product-demo .sample-detail-layout[data-panel-open=true] .sample-details { display: block; }+.product-demo-request { margin-bottom: 28px; }+.product-demo-request .homepage-conversation { margin-bottom: 0; }+.product-demo-request .homepage-message { max-width: 90%; }+.product-demo-active { outline: 1px solid #ffffff30; outline-offset: 4px; }+.product-demo .dummy-task-row { grid-template-columns: 8px minmax(0, 1fr) 116px 105px 100px; }+.product-demo .dummy-created, .product-demo .dummy-updated { display: none; }+.product-task-filters { display: flex; gap: 8px; padding: 12px 16px 0; }+.product-task-filters button { padding: 6px 10px; border-radius: 8px; font-size: 12px; color: var(--color-ink-muted); }+.product-task-filters button[aria-pressed=true] { background: var(--color-active); color: var(--color-ink); }+@media (max-width: 699px) {+ .product-page { padding-inline: 18px; }+ .product-page .homepage-feature-heading, .product-prose { padding-inline: 0; }+ .product-page .homepage-section-break p { white-space: normal; text-wrap: pretty; }+ .product-page .feature-page-visual, .product-page .feature-page-jump-links, .product-page .feature-page-comparison, .product-page > .homepage-feature-end { width: 100%; }+ .product-page .email-feature-graphic { width: 130px; height: 94px; }+ .product-page .email-desktop-demo { --desktop-stage-width: calc(100vw - 24px); }+ .product-prose { font-size: 14px; }+ .product-page .product-demo { height: 620px; border-radius: 12px; }+ .product-demo .sample-chat-log { padding: 20px 12px; }+ .product-demo .sample-details { position: absolute; inset: 48px 0 0; width: 100%; max-width: none; background: var(--color-panel); z-index: 3; }+ .product-demo .dummy-task-row { grid-template-columns: 6px minmax(0, 1fr) 100px; }+ .product-demo .dummy-task-row > div[role=cell]:nth-of-type(2), .product-demo .dummy-task-row > div[role=cell]:nth-of-type(3), .product-demo .dummy-task-row > [role=columnheader]:nth-of-type(3), .product-demo .dummy-task-row > [role=columnheader]:nth-of-type(4) { display: none; }+ .product-demo [data-view-shell-top-bar] { display: flex; }+ .product-demo .sample-tabs-inset { max-width: 100%; }+}++.product-demo[data-action="assignee"] [aria-label="Change assignee"], .product-demo[data-action="priority"] [aria-label="Change priority"], .product-demo[data-action="status"] [aria-label="Change status"], .product-demo[data-action="create"] [aria-label="Create task from message"] { background: #ffffff25; box-shadow: 0 0 0 3px #ffffff0d; }++.product-page .product-sidebared-scene { display:flex; height:100%; min-height:0; }+.product-sidebared-scene > [data-view-sidebar] { flex:0 0 224px; width:224px; }+.product-sidebared-scene > .dummy-main { flex:1; min-width:0; }+@media(max-width:699px) { .product-sidebared-scene { position:relative; } .product-sidebared-scene > [data-view-sidebar] { position:absolute; inset:0 auto 0 0; width:min(248px, 85%); z-index:3; background:var(--color-panel); box-shadow:16px 0 32px #0006; } }+.product-editing-pointer { position:absolute; top:42%; left:65%; z-index:2; display:flex; align-items:start; gap:3px; color:#a4b9a6; pointer-events:none; }+.product-editing-pointer svg { width:16px; height:20px; }+.product-editing-pointer span { margin-top:14px; padding:2px 7px; border-radius:4px; color:#131713; background:#a4b9a6; font:500 11px/1.4 Inter,sans-serif; }+.product-demo[data-action=document] [aria-label="Document body"] { background:#ffffff06; }+.product-share-scrim { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:#0008; padding:16px; z-index:5; }+.product-share-form { width:min(560px,100%); border-radius:18px; background:var(--color-panel); font-size:14px; overflow:hidden; }+.product-share-form header { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; gap:12px; }+.product-share-form h3 { font:500 14px/1.5 Inter,sans-serif; }+.product-share-recipient { display:flex; align-items:center; gap:8px; padding:12px 18px; background:var(--color-surface-2); }+.product-share-recipient select { min-width:0; background:transparent; color:var(--color-ink); font-size:13px; }+.product-share-recipient select:first-of-type { flex:1; }+.product-share-form textarea { width:100%; padding:14px 18px; background:transparent; min-height:72px; resize:none; }+.product-share-actions { display:flex; justify-content:flex-end; gap:10px; padding:8px 18px 16px; }+.product-share-access { padding:18px; background:var(--color-surface-2); }+.product-share-access > p { font-size:12px; color:var(--color-ink-muted); margin-bottom:12px; }+.product-share-access > div { display:flex; align-items:center; gap:8px; margin-top:10px; }+.product-share-access > div > span:last-child { margin-left:auto; color:var(--color-ink-muted); }+.product-agent-log { padding:36px 40px; flex:1; }+.product-agent-log > [data-agent-message] + [data-agent-message] { margin-top:24px; }+.product-email-review { padding:24px; }+.product-email-review .homepage-email-demo { width:100%; }+@media(max-width:699px) { .product-agent-log { padding:24px 18px; } .product-email-review { padding:12px; } }+.product-page .email-desktop-content .product-demo-stage { height:100%; }+.product-page .email-desktop-content .product-demo { height:100%; border-radius:0; box-shadow:none; }+.product-call-body { padding:36px 40px 48px; }+.product-call-body > header h1 { font:600 24px/1.35 Inter,sans-serif; }+.product-call-body > header p { color:var(--color-ink-muted); margin-top:12px; font-size:13px; }+.product-call-body > header p span { margin:0 6px; }+.product-call-body section { margin-top:28px; }+.product-call-body h3 { font:600 14px/1.5 Inter,sans-serif; margin-bottom:12px; }+.product-call-body h3 > span { font-weight:400; color:var(--color-ink-muted); margin-left:4px; }+.product-call-body section > p { font:400 14px/1.7 Inter,sans-serif; }+.product-call-participants { display:flex; flex-wrap:wrap; gap:14px; }+.product-call-participants > span { display:flex; align-items:center; gap:6px; font-size:12px; }+.product-call-transcript { border:1px solid var(--color-edge-muted); border-radius:6px; padding:8px; }+.product-call-segment { width:100%; display:flex; align-items:flex-start; gap:10px; padding:12px 8px; border-radius:5px; text-align:left; }+.product-call-segment > span { min-width:0; flex:1; }+.product-call-segment[aria-pressed=true] { background:var(--color-active); }+.product-call-speaker { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:13px; font-weight:500; }+.product-call-speaker > span { color:var(--color-ink-muted); font-size:12px; font-weight:400; }+.product-call-words { display:block; font-size:14px; line-height:1.6; margin-top:6px; }+.product-call-list { padding:28px; }+.product-call-list > p { font-size:12px; color:var(--color-ink-muted); margin-bottom:16px; }+.product-call-list > button { display:flex; align-items:center; gap:16px; padding:18px 12px; width:100%; text-align:left; border-radius:8px; }+.product-call-list > button:hover { background:var(--color-hover); }+.product-call-list > button > span:first-of-type { flex:1; min-width:0; font-size:14px; }+.product-call-list > button > span:first-of-type > span { display:block; margin-top:6px; }+.product-call-list > button > span:last-child { color:var(--color-ink-muted); font-size:12px; }+.product-call-list-people { display:flex; gap:4px; }+@media(max-width:699px) { .product-call-body { padding:28px 18px; } .product-call-list { padding:20px 10px; } .product-call-list-people { display:none; } }++.product-pr-body { padding:36px 40px; }+.product-pr-body h1 { font:600 24px/1.4 Inter,sans-serif; }+.product-pr-meta { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 24px; }+.product-pr-meta > span { display:flex; align-items:center; gap:6px; padding:4px 8px; border-radius:999px; background:var(--color-surface); border:1px solid var(--color-edge-muted); font-size:12px; }+.product-pr-meta b { font-weight:400; }+.product-pr-discussion-heading { display:flex; justify-content:space-between; gap:12px; margin-top:32px; font-size:12px; }+.product-pr-discussion-heading button, .product-pr-discussion-heading label { display:flex; align-items:center; gap:6px; }+.product-pr-discussion-heading label { color:var(--color-ink-muted); }+.product-pr-discussion { margin-top:20px; }+.product-pr-discussion .sample-message-row[data-reply=true] { margin-left:20px; border-left:1px solid var(--color-edge-muted); padding-left:14px; }+.product-pr-file { display:inline-block; margin-top:8px; font:400 11px/1.5 monospace; color:var(--color-ink-muted); }+.product-review-queue { padding:24px; }+.product-review-row { width:100%; display:flex; gap:12px; align-items:center; padding:18px 12px; text-align:left; border-radius:8px; }+.product-review-row:hover { background:var(--color-hover); }+.product-review-row > span:first-of-type { flex:1; min-width:0; font-size:14px; }+.product-review-row small { display:block; font-size:12px; color:var(--color-ink-muted); margin-top:6px; }+.product-review-row > span:last-child { display:flex; align-items:center; gap:6px; font-size:12px; }+@media(max-width:699px) { .product-pr-body { padding:28px 18px; } .product-review-queue { padding:20px 10px; } .product-review-row > span:last-child { display:none; } }++.product-pr-body .website-demo-markdown { font:400 14px/1.7 Inter,sans-serif; }+.product-pr-body .website-demo-markdown h2 { font-size:16px; margin:24px 0 8px; }+.product-pr-body .website-demo-markdown p { margin:10px 0 20px; }+.product-email-review:has(.sample-email-thread) { padding:0; }diff --git a/apps/marketing/src/features/marketing/components/reviews/ReviewStories.tsx b/apps/marketing/src/features/marketing/components/reviews/ReviewStories.tsxnew file mode 100644index 0000000000..d2d0144323--- /dev/null+++ b/apps/marketing/src/features/marketing/components/reviews/ReviewStories.tsx@@ -0,0 +1,346 @@+import ArrowLeft from '@phosphor/arrow-left.svg';+import CaretDown from '@phosphor/caret-down.svg';+import GitPullRequest from '@phosphor/git-pull-request.svg';+import { Button } from '@ui';+import { createSignal, For, Show } from 'solid-js';+import type { DemoAgentMessage } from '../../core/deploy-agent-demo';+import { createDummyWorkspace } from '../../primitives/createDummyWorkspace';+import { createProductWalkthrough } from '../../primitives/createProductWalkthrough';+import { AgentMessage } from '../DemoAgentMessage';+import DemoDeployDiff from '../DemoDeployDiff';+import { DemoMarkdown } from '../DemoMarkdown';+import { ViewShell } from '../DemoWorkspaceChrome';+import { SearchBar } from '../email/frozen/SearchBar';+import { ProductDemo } from '../product/ProductPage';+import { MessageRow } from '../workspace/frozen/MessageRow';+import { TaskNotebook } from '../workspace/frozen/TaskNotebook';+import { PersonIcon } from '../workspace/frozen/TaskProperties';+import '../workspace/dummy-workspace.css';++const title = 'Retry transient deploy failures';+const description =+ '## Summary\n\nRetry temporary registry failures with a bounded delay. Permanent failures still stop immediately.\n\n## Review focus\n\nCheck the attempt limit and the permanent-error path in `deploy/retry.ts`. The linked task contains the original deployment report.';++/** PR metadata and read-only GitHub discussion, ported from block-pr. */+function PullRequest(props: {+ onBack?: () => void;+ discussion?: boolean;+ name?: string;+ number?: number;+}) {+ const [expanded, setExpanded] = createSignal(true);+ const [hideBots, setHideBots] = createSignal(false);+ return (+ <>+ <ViewShell.TopBar>+ <Show when={props.onBack}>+ <Button+ variant="plain"+ size="icon-sm"+ label="Back to reviews"+ onClick={props.onBack}+ >+ <ArrowLeft />+ </Button>+ </Show>+ <GitPullRequest class="size-4 text-success" />+ <span class="truncate text-sm font-medium">{props.name ?? title}</span>+ </ViewShell.TopBar>+ <div class="dummy-scroll product-pr-body">+ <h1>{props.name ?? title}</h1>+ <div class="product-pr-meta">+ <span class="text-success">+ <GitPullRequest class="size-3" />+ Open+ </span>+ <span>+ <PersonIcon person={props.number === 483 ? 'julia' : 'teo'} />+ {props.number === 483 ? 'Julia' : 'Teo'}+ </span>+ <span>launch-team/website#{props.number ?? 482}</span>+ <span>+ <b class="text-success">+{props.number === 483 ? 4 : 8}</b>+ <b class="text-failure">−{props.number === 483 ? 2 : 1}</b>+ </span>+ </div>+ <DemoMarkdown+ markdown={+ props.number === 483+ ? '## Summary\n\nUpdate the announcement with Thursday’s launch time and a link to the team workspace.\n\n## Review focus\n\nConfirm the wording with Julia before publishing.'+ : description+ }+ />+ <Show when={props.discussion}>+ <div class="product-pr-discussion-heading">+ <button+ type="button"+ aria-expanded={expanded()}+ onClick={() => setExpanded(!expanded())}+ >+ <CaretDown class="size-3" />+ Discussion+ </button>+ <label>+ <input+ type="checkbox"+ checked={hideBots()}+ onChange={(e) => setHideBots(e.currentTarget.checked)}+ />+ Hide bots (1)+ </label>+ </div>+ <Show when={expanded()}>+ <div class="product-pr-discussion">+ <MessageRow+ message={{+ id: 'review-1',+ person: 'julia',+ time: '10:14 AM',+ body: 'Can we confirm that authentication failures still stop on the first attempt?',+ }}+ >+ <span class="product-pr-file">deploy/retry.ts · L6</span>+ </MessageRow>+ <MessageRow+ message={{+ id: 'review-reply',+ person: 'teo',+ time: '10:18 AM',+ replyTo: 'review-1',+ body: 'Yes. Only temporary registry failures take the retry path; the permanent-error branch still throws.',+ }}+ />+ <Show when={!hideBots()}>+ <MessageRow+ message={{+ id: 'bot',+ person: 'cursor',+ time: '10:20 AM',+ body: 'Preview available for this branch.',+ }}+ />+ </Show>+ </div>+ </Show>+ </Show>+ </div>+ </>+ );+}++export function ReviewQueueDemo(props: { animate?: boolean }) {+ let root!: HTMLDivElement;+ const [opened, setOpened] = createSignal<number>();+ const [query, setQuery] = createSignal('');+ const [filter, setFilter] = createSignal('involving');+ const playback = createProductWalkthrough({+ root: () => root,+ steps: 3,+ reset: () => {},+ reduced: () => {+ if (props.animate) setOpened(482);+ },+ advance: (s) => {+ if (props.animate && s === 2) setOpened(482);+ },+ });+ const rows = [+ { name: title, author: 'teo' as const, number: 482, involving: true },+ {+ name: 'Update the launch announcement',+ author: 'julia' as const,+ number: 483,+ involving: false,+ },+ ];+ return (+ <ProductDemo+ ref={(el) => (root = el)}+ label="Find and open a pull request in Reviews"+ onInteract={playback.pause}+ >+ <Show+ when={opened()}+ fallback={+ <>+ <ViewShell.TopBar>+ <span class="text-sm font-medium">Reviews</span>+ </ViewShell.TopBar>+ <nav class="product-task-filters" aria-label="Review views">+ <button+ type="button"+ aria-pressed={filter() === 'involving'}+ onClick={() => setFilter('involving')}+ >+ Involving me+ </button>+ <button+ type="button"+ aria-pressed={filter() === 'all'}+ onClick={() => setFilter('all')}+ >+ All reviews+ </button>+ </nav>+ <div class="product-review-queue">+ <SearchBar+ label="Search sample reviews"+ placeholder="Search reviews"+ value={query()}+ onValueChange={setQuery}+ />+ <For+ each={rows.filter(+ (r) =>+ (filter() === 'all' || r.involving) &&+ r.name.toLowerCase().includes(query().toLowerCase())+ )}+ >+ {(r) => (+ <button+ class="product-review-row"+ type="button"+ onClick={() => setOpened(r.number)}+ aria-label={`Open review: ${r.name}`}+ >+ <GitPullRequest class="size-4 text-success" />+ <span>+ {r.name}+ <small>launch-team/website · #{r.number}</small>+ </span>+ <span>+ <PersonIcon person={r.author} />+ {r.author === 'teo' ? 'Teo' : 'Julia'}+ </span>+ </button>+ )}+ </For>+ </div>+ </>+ }+ >+ <PullRequest+ name={rows.find((r) => r.number === opened())?.name}+ number={opened()}+ onBack={() => setOpened(undefined)}+ />+ </Show>+ </ProductDemo>+ );+}++export function ReviewDiffDemo() {+ return (+ <ProductDemo label="Inspect an agent’s proposed code change">+ <ViewShell.TopBar>+ <span class="text-sm font-medium">Changes · deploy/retry.ts</span>+ <span class="ml-auto text-xs">+ <span class="text-success">+8</span>{' '}+ <span class="text-failure">−1</span>+ </span>+ </ViewShell.TopBar>+ <div class="dummy-scroll product-pr-body">+ <DemoDeployDiff />+ </div>+ </ProductDemo>+ );+}++export function ReviewDiscussionDemo() {+ return (+ <ProductDemo label="Read the GitHub review discussion and filter bot messages">+ <PullRequest discussion />+ </ProductDemo>+ );+}++export function ReviewAgentDemo() {+ let root!: HTMLDivElement;+ const [finished, setFinished] = createSignal(false);+ const playback = createProductWalkthrough({+ root: () => root,+ steps: 3,+ reset: () => {},+ reduced: () => setFinished(true),+ advance: (s) => {+ if (s === 2) setFinished(true);+ },+ });+ const message = (text: string, user = false): DemoAgentMessage => ({+ agentSessionId: 'review-example',+ turn: 0,+ requestId: null,+ pending: false,+ author: user ? { kind: 'user', userId: 'jacob' } : { kind: 'agent' },+ stop: { kind: 'end_turn' },+ parts: [{ kind: 'text', text }],+ });+ return (+ <ProductDemo+ ref={(el) => (root = el)}+ label="Ask an agent to inspect the retry change"+ onInteract={playback.pause}+ >+ <ViewShell.TopBar>+ <span class="text-sm font-medium">Review deploy retry</span>+ </ViewShell.TopBar>+ <div class="dummy-scroll product-agent-log">+ <AgentMessage+ message={message(+ 'Review this retry change. What stops a permanent failure from being retried?',+ true+ )}+ inFlight={false}+ />+ <Show when={finished()}>+ <AgentMessage+ message={message(+ 'The catch branch throws when the error is not transient. Only temporary failures continue through the bounded retry loop. Inspect that branch before approving the change.'+ )}+ inFlight={false}+ />+ <div class="mt-6">+ <DemoDeployDiff />+ </div>+ </Show>+ </div>+ </ProductDemo>+ );+}++export function ReviewLinkedTaskDemo() {+ const w = createDummyWorkspace('tasks');+ w.open('tasks', 'deploy');+ w.updateTask('deploy', {+ status: 'In Review',+ owner: 'teo',+ description:+ 'Temporary registry failures interrupt deployment. Review the bounded retry change in PR #482 before completing this task.',+ });+ const [opened, setOpened] = createSignal(false);+ return (+ <ProductDemo label="Open a linked pull request from its task">+ <Show+ when={opened()}+ fallback={+ <TaskNotebook+ workspace={w}+ task={w.data.tasks.find((t) => t.id === 'deploy')!}+ relatedContent={+ <button+ type="button"+ class="dummy-entity-link"+ onClick={() => setOpened(true)}+ >+ <GitPullRequest class="size-4 text-success" />+ Retry transient deploy failures · #482+ </button>+ }+ />+ }+ >+ <PullRequest onBack={() => setOpened(false)} />+ </Show>+ </ProductDemo>+ );+}diff --git a/apps/marketing/src/features/marketing/components/site-navigation.css b/apps/marketing/src/features/marketing/components/site-navigation.cssindex 4010e0a37d..0baf43c24d 100644--- a/apps/marketing/src/features/marketing/components/site-navigation.css+++ b/apps/marketing/src/features/marketing/components/site-navigation.css@@ -34,6 +34,8 @@/* The standard one-pixel glass rim, without an extruded base. */.site-nav-start::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, #ffffffb3 0%, #ffffff33 24%, #0000000a 60%, #00000038 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; }.site-nav-start svg { flex-shrink: 0; width: 24px; height: 24px; }+/* Keep the legacy page-wide anchor reset from washing out the white CTA. */+.site-header a.site-nav-start { color: #000; }/* The highlight is clipped to the pill and sits beneath its text and rim. */.site-nav-start, .site-nav-demo { isolation: isolate; }.site-nav-start::before, .site-nav-demo::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 220ms ease; }@@ -55,10 +57,10 @@.site-menu-trigger { width: 54px; height: 54px; margin-inline: -5px; }.site-menu-mark { width: 32px; height: 32px; }.site-header-actions { gap: 8px; }- .site-nav-demo { min-height: 32px; padding: 4px 12px; font-size: 13px; }+ .site-nav-demo { min-height: 40px; padding: 8px 12px; font-size: 13px; }.site-nav-start { min-width: 144px; min-height: 48px; padding: 10px 18px; gap: 12px; font-size: 15px; }.site-nav-start svg { width: 22px; height: 22px; }- .site-header .site-nav-start { min-width: 0; min-height: 32px; padding: 4px 14px; gap: 8px; font-size: 13px; }+ .site-header .site-nav-start { min-width: 0; min-height: 40px; padding: 8px 14px; gap: 8px; font-size: 13px; }.site-header .site-nav-start svg { width: 18px; height: 18px; }.site-menu-panel { grid-template-columns: 1fr 1.2fr; width: calc(100vw - 32px); max-height: calc(100dvh - 96px); padding: 20px 14px; gap: 20px 12px; }.site-menu-group:first-child { grid-row: span 2; }diff --git a/apps/marketing/src/features/marketing/components/tasks/TaskCreationFlow.tsx b/apps/marketing/src/features/marketing/components/tasks/TaskCreationFlow.tsxnew file mode 100644index 0000000000..2e13aa1010--- /dev/null+++ b/apps/marketing/src/features/marketing/components/tasks/TaskCreationFlow.tsx@@ -0,0 +1,382 @@+import Cursor from '@phosphor/cursor.svg';+import Hash from '@phosphor/hash.svg';+import ListChecks from '@phosphor/list-checks.svg';+import { Button } from '@ui';+import {+ createEffect,+ createSignal,+ For,+ onCleanup,+ onMount,+ Show,+} from 'solid-js';+import { createStore } from 'solid-js/store';+import type { WorkspaceTask } from '../../core/dummy-workspace';+import { createDummyWorkspace } from '../../primitives/createDummyWorkspace';+import { createProductWalkthrough } from '../../primitives/createProductWalkthrough';+import { ViewShell } from '../DemoWorkspaceChrome';+import { ProductDemo } from '../product/ProductPage';+import { MessageRow } from '../workspace/frozen/MessageRow';+import {+ TaskOwnerMenu,+ TaskPriorityMenu,+} from '../workspace/frozen/TaskProperties';+import { WorkspaceChannel } from '../workspace/WorkspaceChannel';+import { WorkspaceTasks } from '../workspace/WorkspaceTasks';+import './task-creation-flow.css';++const request =+ 'Keep the invited team selected through sign-up. New and existing accounts should land in the right workspace.';++/** Both paths use the same local task model and the app's message/property presentation. */+export function TaskCreationFlow(props: { fromChannel?: boolean }) {+ let root!: HTMLDivElement;+ let frame!: HTMLDivElement;+ const w = createDummyWorkspace('messages');+ if (props.fromChannel) {+ w.setData('channels', (c) => c.id === 'launch', 'messages', [+ {+ id: 'context',+ person: 'julia',+ body: 'Last pass before Thursday. Can someone take the invite flow?',+ time: '9:16 AM',+ },+ ]);+ }+ const [phase, setPhase] = createSignal(0);+ const [automatic, setAutomatic] = createSignal(true);+ const [taskId, setTaskId] = createSignal<string>();+ const [sendAsTask, setSendAsTask] = createSignal(false);+ const [pointer, setPointer] = createSignal<{ x: number; y: number }>();+ const [draft, setDraft] = createStore<WorkspaceTask>({+ id: 'task-draft',+ title: 'Fix the team invite handoff',+ description: props.fromChannel ? '' : request,+ owner: 'jacob',+ creator: 'jacob',+ priority: 'High',+ status: 'Not Started',+ channel: 'launch',+ tags: ['Launch'],+ steps: [],+ comments: [],+ });+ const create = () => {+ let id = taskId();+ if (!id) {+ id = w.createTask(draft.title, draft.description, 'launch');+ if (props.fromChannel) w.post(draft.description, undefined, id);+ else+ w.setData('channels', (c) => c.id === 'launch', 'messages', [+ {+ id: 'invite-request',+ person: 'julia',+ body: request,+ time: '9:18 AM',+ taskId: id,+ },+ ]);+ setTaskId(id);+ }+ w.updateTask(id, {+ title: draft.title,+ description: draft.description,+ owner: draft.owner,+ priority: draft.priority,+ });+ w.open(+ props.fromChannel ? 'messages' : 'tasks',+ props.fromChannel ? 'launch' : id+ );+ setPhase(5);+ setAutomatic(false);+ };+ const advance = (step: number) => {+ setPhase(step);+ if (step === 1 && props.fromChannel) setDraft('description', request);+ if (step === 2) setSendAsTask(true);+ if (step === 3) setDraft('owner', 'teo');+ if (step === 5) create();+ };+ const playback = createProductWalkthrough({+ root: () => root,+ steps: 5,+ reset: () => {},+ reduced: () => {+ setDraft('owner', 'teo');+ if (props.fromChannel) setDraft('description', request);+ create();+ },+ advance,+ });+ const pause = () => {+ setAutomatic(false);+ playback.pause();+ };+ const select = (step: number) => {+ pause();+ if (step === 5) {+ if (taskId()) {+ w.open(+ props.fromChannel ? 'messages' : 'tasks',+ props.fromChannel ? 'launch' : taskId()+ );+ setPhase(5);+ } else {+ if (props.fromChannel && !draft.description)+ setDraft('description', request);+ create();+ }+ } else {+ setPhase(step);+ if (step >= 2) {+ setSendAsTask(true);+ if (props.fromChannel && !draft.description)+ setDraft('description', request);+ }+ }+ };+ onMount(() => {+ const position = () => {+ const selectors = props.fromChannel+ ? [+ '[aria-label="Channel task message"]',+ '[aria-label="Send as task"]',+ '[aria-label="Change assignee"]',+ '[aria-label="Change assignee"]',+ '[data-task-submit]',+ ]+ : [+ '[aria-label="Create task from message"]',+ '[aria-label="Create task from message"]',+ '[aria-label="New task title"]',+ '[aria-label="Change assignee"]',+ '[data-task-submit]',+ ];+ const selector = selectors[phase()];+ const target = selector+ ? frame.querySelector<HTMLElement>(selector)+ : undefined;+ if (!automatic() || !target) {+ setPointer(undefined);+ return;+ }+ const bounds = target.getBoundingClientRect();+ const parent = frame.getBoundingClientRect();+ setPointer({+ x: bounds.left - parent.left + Math.min(bounds.width / 2, 90),+ y: bounds.top - parent.top + bounds.height / 2,+ });+ };+ createEffect(() => {+ phase();+ automatic();+ const timer = requestAnimationFrame(position);+ onCleanup(() => cancelAnimationFrame(timer));+ });+ const resize = new ResizeObserver(position);+ resize.observe(frame);+ onCleanup(() => resize.disconnect());+ });+ const labels = () =>+ props.fromChannel+ ? ['Write in chat', 'Send as task', 'Assign', 'In the channel']+ : ['The request', 'Create task', 'Assign', 'The task'];+ return (+ <div ref={root} class="task-creation-flow">+ <nav+ class="task-flow-steps"+ aria-label={+ props.fromChannel+ ? 'Channel task creation steps'+ : 'Message conversion steps'+ }+ >+ <For each={[0, 2, 3, 5]}>+ {(step, index) => (+ <button+ type="button"+ aria-pressed={phase() >= step && phase() < [2, 3, 5, 6][index()]}+ onClick={() => select(step)}+ >+ <span>{index() + 1}</span>+ {labels()[index()]}+ </button>+ )}+ </For>+ </nav>+ <div ref={frame} class="task-flow-frame" onFocusIn={pause}>+ <ProductDemo+ label={+ props.fromChannel+ ? 'Send a task directly to a channel'+ : 'Create a task from a channel message'+ }+ onInteract={pause}+ action={phase() === 1 ? 'create' : undefined}+ >+ <Show+ when={phase() < 5}+ fallback={+ <Show+ when={w.contentView() === 'messages'}+ fallback={<WorkspaceTasks workspace={w} filter="all" />}+ >+ <WorkspaceChannel workspace={w} />+ </Show>+ }+ >+ <ViewShell.TopBar>+ <Hash class="size-4" />+ <span class="text-sm font-medium">launch</span>+ </ViewShell.TopBar>+ <div class="sample-chat-log dummy-scroll task-flow-chat">+ <div class="sample-date-divider">+ <span>Today</span>+ </div>+ <MessageRow+ message={{+ id: 'context',+ person: props.fromChannel ? 'julia' : 'teo',+ body: props.fromChannel+ ? 'Last pass before Thursday. Can someone take the invite flow?'+ : 'I can reproduce it. The invite lands in the personal workspace after sign-up.',+ time: '9:16 AM',+ }}+ />+ <Show when={!props.fromChannel}>+ <MessageRow+ message={{+ id: 'invite-request',+ person: 'julia',+ body: request,+ time: '9:18 AM',+ }}+ onTask={() => select(2)}+ />+ </Show>+ </div>+ <Show when={props.fromChannel}>+ <form+ class="task-flow-compose"+ onSubmit={(e) => {+ e.preventDefault();+ pause();+ if (sendAsTask()) create();+ }}+ >+ <textarea+ aria-label="Channel task message"+ placeholder="Write a message to #launch…"+ value={draft.description}+ onInput={(e) => {+ pause();+ setDraft('description', e.currentTarget.value);+ setPhase(Math.max(phase(), 1));+ }}+ />+ <div class="task-flow-compose-actions">+ <button+ type="button"+ role="switch"+ aria-label="Send as task"+ aria-checked={sendAsTask()}+ onClick={() => {+ pause();+ setSendAsTask(!sendAsTask());+ setPhase(2);+ }}+ >+ <ListChecks class="size-4" />+ Send as task+ <span class="task-flow-switch" />+ </button>+ <Show when={sendAsTask()}>+ <TaskOwnerMenu+ task={draft}+ onSave={(owner) => setDraft('owner', owner)}+ />+ </Show>+ <Button+ type="submit"+ data-task-submit+ disabled={!sendAsTask() || !draft.description.trim()}+ variant="accent"+ size="sm"+ >+ Send task+ </Button>+ </div>+ </form>+ </Show>+ <Show when={!props.fromChannel && phase() >= 2}>+ <div class="task-flow-scrim">+ <form+ class="task-flow-draft glass-input"+ aria-label="Create task preview"+ onSubmit={(e) => {+ e.preventDefault();+ pause();+ create();+ }}+ >+ <header>+ <ListChecks class="size-4 text-task" />+ New task <span>From #launch</span>+ </header>+ <input+ aria-label="New task title"+ value={draft.title}+ onInput={(e) => setDraft('title', e.currentTarget.value)}+ />+ <textarea+ aria-label="New task description"+ value={draft.description}+ onInput={(e) =>+ setDraft('description', e.currentTarget.value)+ }+ />+ <div class="task-flow-properties">+ <TaskOwnerMenu+ task={draft}+ onSave={(owner) => setDraft('owner', owner)}+ />+ <TaskPriorityMenu+ task={draft}+ onSave={(priority) => setDraft('priority', priority)}+ />+ </div>+ <footer>+ <Button variant="plain" size="sm" onClick={() => select(0)}>+ Cancel+ </Button>+ <Button+ type="submit"+ variant="accent"+ size="sm"+ data-task-submit+ disabled={!draft.title.trim()}+ >+ Create task+ </Button>+ </footer>+ </form>+ </div>+ </Show>+ </Show>+ </ProductDemo>+ <Show when={automatic() && pointer()}>+ {(p) => (+ <div+ class="task-flow-pointer"+ aria-hidden="true"+ style={{ transform: `translate(${p().x}px, ${p().y}px)` }}+ >+ <Cursor />+ </div>+ )}+ </Show>+ </div>+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/tasks/TaskStories.tsx b/apps/marketing/src/features/marketing/components/tasks/TaskStories.tsxnew file mode 100644index 0000000000..aec082793f--- /dev/null+++ b/apps/marketing/src/features/marketing/components/tasks/TaskStories.tsx@@ -0,0 +1,201 @@+import FileText from '@phosphor/file-text.svg';+import { createSignal, For, Show } from 'solid-js';+import { createDummyWorkspace } from '../../primitives/createDummyWorkspace';+import { createProductWalkthrough } from '../../primitives/createProductWalkthrough';+import { HomepageConversation } from '../HomepageConversation';+import { ProductDemo } from '../product/ProductPage';+import { TaskNotebook } from '../workspace/frozen/TaskNotebook';+import { WorkspaceChannel } from '../workspace/WorkspaceChannel';+import { WorkspaceDocuments } from '../workspace/WorkspaceDocuments';+import { type TaskFilter, WorkspaceTasks } from '../workspace/WorkspaceTasks';+import '../workspace/dummy-workspace.css';+import '../demo-markdown.css';++import { TaskCreationFlow } from './TaskCreationFlow';++export function TaskFromMessageDemo() {+ return <TaskCreationFlow />;+}+export function TaskFromChannelDemo() {+ return <TaskCreationFlow fromChannel />;+}++export function TaskOwnershipDemo() {+ let root!: HTMLDivElement;+ const w = createDummyWorkspace('tasks');+ w.open('tasks', 'checklist');+ w.updateTask('checklist', {+ owner: 'jacob',+ priority: 'Low',+ status: 'Not Started',+ });+ const [action, setAction] = createSignal<string>();+ const playback = createProductWalkthrough({+ root: () => root,+ steps: 4,+ reset: () => {},+ reduced: () =>+ w.updateTask('checklist', {+ owner: 'teo',+ priority: 'High',+ status: 'In Progress',+ }),+ advance: (step) => {+ setAction(['assignee', 'priority', 'status', undefined][step - 1]);+ if (step === 1) w.updateTask('checklist', { owner: 'teo' });+ if (step === 2) w.updateTask('checklist', { priority: 'High' });+ if (step === 3) w.updateTask('checklist', { status: 'In Progress' });+ },+ });+ return (+ <ProductDemo+ ref={(el) => (root = el)}+ label="Assign a task and set its next step"+ action={action()}+ onInteract={playback.pause}+ >+ <WorkspaceTasks workspace={w} filter="all" />+ </ProductDemo>+ );+}++export function TaskContextDemo() {+ const w = createDummyWorkspace('tasks');+ w.open('tasks', 'announcement');+ return (+ <ProductDemo label="Task checklist, linked plan, and discussion">+ <Show+ when={w.contentView() === 'documents'}+ fallback={+ <Show+ when={w.contentView() === 'messages'}+ fallback={+ <TaskNotebook+ workspace={w}+ task={w.data.tasks.find((t) => t.id === 'announcement')!}+ relatedContent={+ <button+ type="button"+ class="dummy-entity-link"+ onClick={() => w.open('documents', 'plan')}+ >+ <FileText class="size-4 text-document" />+ Q3 launch plan+ </button>+ }+ />+ }+ >+ <WorkspaceChannel workspace={w} />+ </Show>+ }+ >+ <WorkspaceDocuments workspace={w} />+ </Show>+ </ProductDemo>+ );+}++export function TaskAttentionDemo() {+ let root!: HTMLDivElement;+ const w = createDummyWorkspace('tasks');+ const [filter, setFilter] = createSignal<TaskFilter>('all');+ const playback = createProductWalkthrough({+ root: () => root,+ steps: 3,+ reset: () => {},+ reduced: () => {+ setFilter('mine');+ w.setQuery('launch');+ },+ advance: (step) => {+ if (step === 1) setFilter('mine');+ if (step === 2) w.setQuery('launch');+ },+ });+ return (+ <ProductDemo+ ref={(el) => (root = el)}+ label="Find your next task"+ onInteract={playback.pause}+ >+ <nav class="product-task-filters" aria-label="Task views">+ <For+ each={+ [+ { id: 'all', label: 'All Tasks' },+ { id: 'mine', label: 'My Tasks' },+ { id: 'created', label: 'Created by me' },+ ] as const+ }+ >+ {(view) => (+ <button+ type="button"+ aria-pressed={filter() === view.id}+ onClick={() => {+ setFilter(view.id);+ w.open('tasks');+ w.setQuery('');+ }}+ >+ {view.label}+ </button>+ )}+ </For>+ </nav>+ <WorkspaceTasks workspace={w} filter={filter()} />+ </ProductDemo>+ );+}++export function TaskAgentDemo() {+ let root!: HTMLDivElement;+ const w = createDummyWorkspace('tasks');+ w.open('tasks', 'announcement');+ w.updateTask('announcement', { status: 'In Progress', comments: [] });+ const finish = () => {+ w.updateTask('announcement', {+ status: 'In Review',+ description:+ 'Draft the Thursday launch announcement. Include the Q3 launch plan, product demo, and the invite checklist.',+ comments: [+ {+ id: 'agent-draft',+ person: 'claude',+ body: 'I added the launch details to the brief. Julia, please review before publishing.',+ time: '9:34 AM',+ },+ ],+ });+ };+ const playback = createProductWalkthrough({+ root: () => root,+ steps: 3,+ reset: () => {},+ reduced: finish,+ advance: (step) => {+ if (step === 2) finish();+ },+ });+ return (+ <div ref={root}>+ <div class="product-demo-request">+ <HomepageConversation+ messages={[+ {+ person: 'julia',+ text: '@Claude, add the launch details to this task and leave the draft ready for my review.',+ },+ ]}+ />+ </div>+ <ProductDemo+ label="An agent prepares a task for human review"+ onInteract={playback.pause}+ >+ <WorkspaceTasks workspace={w} filter="all" />+ </ProductDemo>+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/tasks/TasksComparison.tsx b/apps/marketing/src/features/marketing/components/tasks/TasksComparison.tsxnew file mode 100644index 0000000000..1d875ab98f--- /dev/null+++ b/apps/marketing/src/features/marketing/components/tasks/TasksComparison.tsx@@ -0,0 +1,78 @@+import CaretDown from '@phosphor/caret-down.svg';+import {+ type ComparisonColumn,+ ComparisonLegend,+ type ComparisonRow,+ ComparisonTable,+} from '../../../../app/components/sections/ComparisonTable';+import LogoAsana from '../../../../assets/icons/logo-asana.svg';+import LogoClickUp from '../../../../assets/icons/logo-clickup.svg';+import LogoJira from '../../../../assets/icons/logo-jira.svg';+import LogoLinear from '../../../../assets/icons/logo-linear.svg';++const comparisonColumns: ComparisonColumn[] = [+ { label: 'Macro' },+ { label: 'Linear', logo: LogoLinear },+ { label: 'Asana', logo: LogoAsana },+ { label: 'Jira', logo: LogoJira },+ { label: 'ClickUp', logo: LogoClickUp },+];++const comparisonRows: ComparisonRow[] = [+ {+ feature: 'Status, priority & assignee',+ cells: [true, true, true, true, true],+ },+ {+ feature: 'Create a task from an email',+ cells: [true, true, true, true, true],+ },+ {+ feature: 'Keyboard-first workflows',+ cells: [true, true, 'partial', 'partial', true],+ },+ {+ feature: 'Custom properties when you want them',+ cells: [true, 'partial', true, true, true],+ },+ {+ feature: 'Agents that can complete tasks',+ cells: [true, 'partial', true, 'partial', true],+ },+ {+ feature: 'GitHub: branch, PR & merge move the task',+ cells: [true, true, false, 'partial', 'partial'],+ },+ {+ feature: '@mention a task in docs & channels',+ cells: [true, 'partial', false, false, 'partial'],+ },+ {+ feature: 'Tasks in the same app as email & chat',+ cells: [true, false, false, false, true],+ },+ {+ feature: 'Open source (AGPLv3)',+ cells: [true, false, false, false, false],+ },+];++export function TasksComparison() {+ return (+ <details class="feature-page-comparison">+ <summary>+ <span>Compare task managers</span>+ <CaretDown aria-hidden="true" />+ </summary>+ <div class="feature-page-comparison-content">+ <ComparisonTable columns={comparisonColumns} rows={comparisonRows} />+ <ComparisonLegend />+ <p>+ Read more about{' '}+ <a href="/posts/linear-alternative">Macro and Linear</a>, or see{' '}+ <a href="/pricing">plans and limits</a>.+ </p>+ </div>+ </details>+ );+}diff --git a/apps/marketing/src/features/marketing/components/tasks/TasksDemos.tsx b/apps/marketing/src/features/marketing/components/tasks/TasksDemos.tsxnew file mode 100644index 0000000000..aa5ed54ded--- /dev/null+++ b/apps/marketing/src/features/marketing/components/tasks/TasksDemos.tsx@@ -0,0 +1,12 @@+import DummyWorkspace from '../workspace/DummyWorkspace';++/** The feature sections use the same interactive workspace as /demo. */+export function TasksInboxDemo() {+ return <DummyWorkspace initialView="tasks" embedded />;+}++export function TaskPropertiesDemo() {+ return (+ <DummyWorkspace initialView="tasks" initialTask="announcement" embedded />+ );+}diff --git a/apps/marketing/src/features/marketing/components/tasks/TasksFeatureGraphics.tsx b/apps/marketing/src/features/marketing/components/tasks/TasksFeatureGraphics.tsxnew file mode 100644index 0000000000..184d6b4f2e--- /dev/null+++ b/apps/marketing/src/features/marketing/components/tasks/TasksFeatureGraphics.tsx@@ -0,0 +1,74 @@+import type { ParentProps } from 'solid-js';++function Graphic(props: ParentProps) {+ return (+ <svg+ class="email-feature-graphic"+ viewBox="0 0 160 100"+ fill="none"+ stroke="currentColor"+ stroke-width="1"+ stroke-linecap="round"+ stroke-linejoin="round"+ aria-hidden="true"+ >+ {props.children}+ </svg>+ );+}++export function TaskListGraphic() {+ return (+ <Graphic>+ <path d="M36 20h88v62H36Z" opacity=".45" />+ <path d="M44 12h88v62m-80-54h52" opacity=".18" />+ <path d="M36 36h88" opacity=".25" />+ <path d="m46 47 3 3 5-6m-8 18 3 3 5-6M63 48h43M63 63h30" />+ <path d="M46 76h61" opacity=".2" />+ </Graphic>+ );+}++export function TaskConversationGraphic() {+ return (+ <Graphic>+ <path d="M22 19h66v38H49L34 69V57H22Z" opacity=".4" />+ <path d="M34 31h41M34 42h27" opacity=".3" />+ <path d="M91 42h46v43H91Z" fill="#080808" />+ <path d="m100 55 3 3 5-6M115 55h13M100 68h28M100 77h17" opacity=".65" />+ <path d="M70 71h12m-4-4 4 4-4 4" opacity=".5" />+ </Graphic>+ );+}++export function TaskPropertiesGraphic() {+ return (+ <Graphic>+ <path d="M40 16h71l13 13v56H40Z" opacity=".5" />+ <path d="M111 16v13h13M53 37h45M53 70h52M53 78h36" opacity=".25" />+ <rect x="53" y="48" width="18" height="12" rx="6" />+ <rect x="76" y="48" width="18" height="12" rx="6" opacity=".6" />+ <rect x="99" y="48" width="13" height="12" rx="6" opacity=".35" />+ <path d="m58 54 2 2 4-4" />+ </Graphic>+ );+}++export function TaskAgentsGraphic() {+ return (+ <Graphic>+ <path+ d="M35 31v38c0 8 8 12 16 12h56M109 30v33c0 10-7 18-17 18"+ opacity=".5"+ />+ <circle cx="35" cy="25" r="6" />+ <circle cx="109" cy="24" r="6" opacity=".5" />+ <circle cx="115" cy="81" r="6" />+ <path d="m112 81 2 2 4-4" />+ <path+ d="M70 29c0 12-5 17-17 17 12 0 17 5 17 17 0-12 5-17 17-17-12 0-17-5-17-17Z"+ opacity=".7"+ />+ </Graphic>+ );+}diff --git a/apps/marketing/src/features/marketing/components/tasks/task-creation-flow.css b/apps/marketing/src/features/marketing/components/tasks/task-creation-flow.cssnew file mode 100644index 0000000000..1f1577004b--- /dev/null+++ b/apps/marketing/src/features/marketing/components/tasks/task-creation-flow.css@@ -0,0 +1,32 @@+.task-flow-steps { display: flex; gap: 16px; margin-bottom: 14px; }+.task-flow-steps button { display: flex; align-items: center; gap: 8px; color: #777; font-size: 12px; padding: 8px 0; }+.task-flow-steps button span { border: 1px solid #333; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-size: 10px; }+.task-flow-steps button[aria-pressed=true] { color: #ddd; }+.task-flow-steps button[aria-pressed=true] span { background: #222; border-color: #666; }+.task-flow-frame { position: relative; }+.task-flow-chat { flex: 1; }+.task-flow-scrim { position: absolute; inset: 48px 0 84px; display: grid; place-items: center; padding: 24px; background: #08090bb8; }+.task-flow-draft { width: min(520px, 100%); padding: 20px; border-radius: 14px; background: var(--color-panel); }+.task-flow-draft header { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 26px; }+.task-flow-draft header span { margin-left: auto; font-size: 11px; color: var(--color-ink-muted); }+.task-flow-draft input { display: block; width: 100%; font-size: 22px; font-weight: 600; outline: none; }+.task-flow-draft textarea { width: 100%; min-height: 100px; margin-top: 18px; resize: vertical; font-size: 14px; outline: none; }+.task-flow-properties { display: flex; gap: 8px; margin-top: 16px; }+.task-flow-draft footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 30px; }+.task-flow-compose { margin: 0 24px 32px; padding: 16px; border-radius: 16px; background: var(--color-surface-2); border: 1px solid var(--color-edge-muted); }+.task-flow-compose textarea { width: 100%; min-height: 80px; font-size: 14px; outline: none; resize: none; }+.task-flow-compose-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }+.task-flow-compose-actions > button[role=switch] { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-ink-muted); }+.task-flow-compose-actions > [data-task-submit] { margin-left: auto; }+.task-flow-switch { display: inline-block; width: 24px; height: 14px; border-radius: 8px; background: #444; position: relative; }+.task-flow-switch::after { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #aaa; left: 2px; top: 2px; }+[aria-checked=true] .task-flow-switch { background: #477961; }+[aria-checked=true] .task-flow-switch::after { background: #e1eee6; left: 12px; }+.task-flow-pointer { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 5; color: #fff; filter: drop-shadow(0 2px 3px #0009); transition: transform 500ms ease; }+.task-flow-pointer svg { width: 24px; height: 24px; fill: #161719; stroke: #fff; stroke-width: 1.5; }+.tasks-founder-letter { width: min(872px, 100% - 48px); margin: 76px auto 100px; color: #999; font: 400 15px/1.85 'Inter Variable', Inter, sans-serif; }+.tasks-founder-letter h2 { font-family: 'Roboto Slab Variable', Georgia, serif; font-size: 30px; line-height: 1.3; color: #ddd; margin-bottom: 24px; }+.tasks-founder-letter p + p { margin-top: 18px; }+.tasks-founder-letter footer { color: #ccc; margin-top: 24px; font-size: 13px; }+@media (max-width: 699px) { .task-flow-steps { gap: 8px; justify-content: space-between; } .task-flow-steps button { font-size: 10px; gap: 4px; } .task-flow-steps button span { width: 18px; height: 18px; } .task-flow-scrim { padding: 12px; bottom: 64px; } .task-flow-draft { padding: 16px; } .task-flow-draft input { font-size: 18px; } .task-flow-compose { margin-inline: 12px; } .tasks-founder-letter { width: 100%; margin-block: 54px 76px; font-size: 14px; } }+@media (prefers-reduced-motion: reduce) { .task-flow-pointer { display: none; } }diff --git a/apps/marketing/src/features/marketing/components/tasks/tasks-demos.css b/apps/marketing/src/features/marketing/components/tasks/tasks-demos.cssnew file mode 100644index 0000000000..b163b7b078--- /dev/null+++ b/apps/marketing/src/features/marketing/components/tasks/tasks-demos.css@@ -0,0 +1,79 @@+/* Frozen task sidebar, grid, and markdown detail presentation. */+.task-app { min-height: 560px; mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 64px), transparent 100%); }+.task-main { flex: 1; min-width: 0; padding-bottom: 72px; container: task-list / inline-size; }+.task-app :is(button, input, select) { color: revert-layer; font-size: revert-layer; }+.task-app .mail-sidebar { flex-basis: 208px; width: 208px; }+.task-app .mail-sidebar [data-view-sidebar-content] { gap: 28px; }+.task-sidebar-section { display: grid; gap: 12px; }+.task-sidebar-section > span { padding-inline: 8px; color: var(--color-ink-muted); font-size: 12px; }+.task-tag-dot { width: 8px; height: 8px; border-radius: 50%; background: #a99b5b; margin: 0 8px 0 4px; }+.task-list-toolbar { height: 60px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }+.task-list-toolbar h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.03em; }+.task-list-toolbar > span { font-size: 11px; color: var(--color-ink-extra-muted); }+.task-search { padding: 4px 16px 20px; }+.task-grid { display: grid; grid-template-columns: minmax(0, 1fr) 88px 60px 56px 50px; gap: 8px; align-items: center; padding-inline: 14px; }+.task-list-heading { min-height: 36px; font-size: 10px; font-weight: 500; color: var(--color-ink-extra-muted); }+.task-group-label { display: flex; gap: 8px; align-items: center; padding: 10px 16px; color: var(--color-ink-muted); font-size: 11px; background: var(--color-hover); }+.task-group-label > span { color: var(--color-ink-extra-muted); }+.task-list-row { min-height: 48px; margin-inline: 4px; padding-inline: 10px; border-radius: 10px; }+.task-list-row:hover { background: var(--color-hover); }+.task-list-row > div { min-width: 0; }+.task-title-button { display: flex; align-items: center; gap: 7px; padding: 8px 0; width: 100%; border: 0; background: transparent; text-align: left; font-size: 12px !important; font-weight: 500; }+.task-title-button svg { flex: none; width: 16px; height: 16px; color: var(--color-task); }+.task-title-button > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }+.task-list-status, .task-list-priority { display: flex; align-items: center; gap: 5px; font-size: 10px; }+.task-list-priority { color: var(--color-ink-muted); }+.task-list-status svg, .task-list-priority svg { width: 13px; height: 13px; flex: none; }+.task-list-owner > :first-child { width: 22px; height: 22px; }+.task-list-date { font-size: 10px; color: var(--color-ink-extra-muted); text-align: right; }+.task-mobile-tabs { display: none; }+.task-empty { padding: 30px 16px; color: var(--color-ink-extra-muted); font-size: 12px; }+.task-document-toolbar { display: flex; align-items: center; gap: 8px; padding: 16px; font-size: 11px; min-width: 0; }+.task-document-toolbar > svg { width: 15px; height: 15px; flex: none; }+.task-document-toolbar > span { white-space: nowrap; }+.task-breadcrumb-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }+.task-document { width: min(640px, 100%); margin: 32px auto 0; padding: 0 28px; }+.task-document h3 { font: 600 23px/1.35 var(--font-sans); letter-spacing: -.025em; margin: 0 0 18px; }+.task-property-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }+.task-property-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; border-radius: 999px; padding: 3px 8px; background: var(--color-control); color: var(--color-ink-muted); font-size: 11px; }+.task-property-pill > :is(svg, img) { width: 14px; height: 14px; flex: none; }+.task-property-pill img { border-radius: 50%; }+.task-property-pill select { padding: 0; max-width: 115px; background: transparent; border: none; color: inherit; font: inherit; }+.task-property-pill option { color: var(--color-ink); background: var(--color-panel); }+.task-document-description { margin-top: 24px !important; font-size: 14px; line-height: 1.8; }+.task-source { margin-top: 16px !important; color: var(--color-ink-muted); font-size: 12px; }+.task-checklist { display: grid; gap: 12px; margin-top: 24px; font-size: 13px; }+.task-checklist label { display: flex; align-items: flex-start; gap: 10px; }+.task-checklist input { accent-color: var(--color-success); width: 14px; height: 14px; margin: 3px 0 0; flex: none; }+.task-checklist input:checked + span { color: var(--color-ink-extra-muted); text-decoration: line-through; }+.task-discussion { margin-top: 44px; }+.task-discussion-label { font-size: 11px; color: var(--color-ink-muted); margin-bottom: 14px !important; }+.task-comment { display: flex; gap: 10px; align-items: center; margin: 12px 0; font-size: 13px; }+.task-comment > :first-child { width: 24px; height: 24px; flex: none; }+.tasks-conversation-demo .tlc-frame { background: linear-gradient(to bottom, #181818, #080808) !important; }+.tasks-agent-demo .homepage-conversation { margin-bottom: 32px; }+@container task-list (max-width: 520px) {+ .task-grid { grid-template-columns: minmax(0, 1fr) 40px; gap: 6px; }+ .task-list-heading { display: none; }+ .task-list-row { min-height: 76px; padding-block: 10px; border-bottom: 1px solid var(--color-edge-muted); border-radius: 0; }+ .task-title-button > span { white-space: normal; }+ .task-list-row > div:first-child { grid-column: 1; grid-row: 1; }+ .task-list-owner { grid-column: 2; grid-row: 1 / 3; justify-self: end; }+ .task-list-status { grid-column: 1; grid-row: 2; padding-left: 23px; }+ .task-list-priority, .task-list-date { display: none; }+}+@media (max-width: 699px) {+ .task-app { min-height: 0; }+ .task-mobile-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px 12px; }+ .task-mobile-tabs button { background: transparent; border: 0; border-radius: 8px; color: var(--color-ink-muted); padding: 6px 8px; font-size: 11px; }+ .task-mobile-tabs button[aria-pressed=true] { background: var(--color-active); color: var(--color-ink); }+ .task-document-toolbar { padding-inline: 12px; font-size: 10px; gap: 6px; }+ .task-document { margin-top: 18px; padding-inline: 16px; }+ .task-document h3 { font-size: 20px; }+ .task-property-pills { gap: 6px; }+ .task-document-description { font-size: 13px; }+ .task-tag { display: none; }+ .task-main { padding-bottom: 64px; }+}+.task-new-title { width: 100%; margin-bottom: 18px; background: transparent; border: 0; font: 600 23px/1.35 var(--font-sans) !important; }+.task-new-description { display: block; width: 100%; min-height: 88px; margin-block: 24px 12px; resize: vertical; background: transparent; border: 0; font-size: 14px !important; }diff --git a/apps/marketing/src/features/marketing/components/workspace-story.css b/apps/marketing/src/features/marketing/components/workspace-story.cssindex 55c6f031a2..dbc809d072 100644--- a/apps/marketing/src/features/marketing/components/workspace-story.css+++ b/apps/marketing/src/features/marketing/components/workspace-story.css@@ -58,13 +58,14 @@.homepage-feature-email .homepage-compose-loading { height: var(--homepage-email-height); min-height: var(--homepage-email-height); }.homepage-spreadsheet { display: flex; flex-direction: column; height: 460px; overflow: hidden; border: 1px solid var(--color-edge-muted); border-radius: 16px; background: var(--color-surface); }.homepage-spreadsheet .homepage-compose-status { padding: 16px 20px 0; }-.homepage-doc-history { margin: 0; }-.homepage-doc-history figcaption { max-width: 180px; margin: -42px 0 0 70px; opacity: .7; color: var(--color-ink-placeholder); font: 400 clamp(11px, 3.333vw, 12px)/1.75 'Inter Variable', Inter, sans-serif; text-align: left; text-wrap: pretty; }-.homepage-doc-history figcaption > span { display: block; margin-bottom: 8px; color: var(--color-ink); font-size: 16px; white-space: nowrap; }+.homepage-doc-history { position: relative; margin: 0; }+@media (max-width: 767px) {+ .homepage-doc-history .homepage-doc-timeline { display: none; }+}.homepage-feature-end { position: relative; margin-top: 0; padding: clamp(72px, 12svh, 140px) 0 56px; }.homepage-closing-rule { position: absolute; top: 0; left: 0; width: 100%; margin: 0; border: 0; border-top: 1px solid var(--color-edge-muted); }.homepage-app-landing { height: 200px; }-@media(max-width: 699px) { .homepage-sections-inner { width: calc(100% - 36px); } .homepage-feature { padding: 40px 0; } .homepage-conversation { gap: 24px; margin-bottom: 32px; font-size: 15px; } .homepage-message { max-width: 92%; } .homepage-doc-history figcaption { margin: 0; } }+@media(max-width: 699px) { .homepage-sections-inner { width: calc(100% - 36px); } .homepage-feature { padding: 40px 0; } .homepage-conversation { gap: 24px; margin-bottom: 32px; font-size: 15px; } .homepage-message { max-width: 92%; } }@media (max-width: 699px) {#documents { padding-bottom: 0; }#coding-agents { padding-top: 0; }diff --git a/apps/marketing/src/features/marketing/components/workspace/DummyWorkspace.test.tsx b/apps/marketing/src/features/marketing/components/workspace/DummyWorkspace.test.tsxnew file mode 100644index 0000000000..fd5862702f--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/DummyWorkspace.test.tsx@@ -0,0 +1,113 @@+import {+ cleanup,+ fireEvent,+ render,+ screen,+ within,+} from '@solidjs/testing-library';+import { afterEach, beforeEach, expect, it, vi } from 'vitest';+import DummyWorkspace from './DummyWorkspace';++beforeEach(() => {+ vi.spyOn(window, 'scrollTo').mockImplementation(() => {});+ vi.stubGlobal('PointerEvent', MouseEvent);+ vi.stubGlobal(+ 'ResizeObserver',+ class {+ observe() {}+ unobserve() {}+ disconnect() {}+ }+ );+ vi.stubGlobal('fetch', vi.fn());+});+afterEach(() => {+ cleanup();+ expect(fetch).not.toHaveBeenCalled();+ vi.unstubAllGlobals();+ vi.restoreAllMocks();+});++it('opens the same palette from Search and ⌘K without changing the underlying view', () => {+ render(() => <DummyWorkspace />);+ fireEvent.click(screen.getByRole('button', { name: 'Search workspace' }));+ expect(screen.getByRole('dialog', { name: 'Search workspace' })).toBeTruthy();+ expect(+ screen.getByRole('heading', {+ name: 'What should we work on?',+ hidden: true,+ })+ ).toBeTruthy();+ fireEvent.keyDown(screen.getByRole('combobox'), { key: 'k', metaKey: true });+ expect(screen.queryByRole('dialog')).toBeNull();+ fireEvent.keyDown(document.body, { key: 'k', ctrlKey: true });+ fireEvent.input(screen.getByRole('combobox'), {+ target: { value: 'Q3 launch' },+ });+ fireEvent.keyDown(screen.getByRole('combobox'), { key: 'Enter' });+ expect(screen.queryByRole('dialog')).toBeNull();+ expect(+ within(+ screen.getByRole('complementary', { name: 'Home navigation' })+ ).getByRole('heading', {+ name: 'Home',+ })+ ).toBeTruthy();+ expect(screen.getByRole('button', { name: 'Back to Home' })).toBeTruthy();+});++it('leaves page shortcuts alone when focus is outside an embedded workspace', () => {+ const view = render(() => <DummyWorkspace embedded />);+ fireEvent.keyDown(document.body, { key: 'k', metaKey: true });+ expect(screen.queryByRole('dialog')).toBeNull();+ fireEvent.keyDown(view.getByRole('button', { name: 'Search workspace' }), {+ key: 'k',+ metaKey: true,+ });+ expect(screen.getByRole('dialog', { name: 'Search workspace' })).toBeTruthy();+});++it('opens recent replies and coding sessions inside Home with their actual content', () => {+ render(() => <DummyWorkspace />);+ const home = within(+ screen.getByRole('complementary', { name: 'Home navigation' })+ );+ fireEvent.click(+ home.getByRole('button', { name: 'Teo replied in #engineers' })+ );+ const log = within(screen.getByRole('log', { name: 'Channel engineers' }));+ expect(+ log.getByText(+ /Transient failure, cancellation, and retry-limit checks passed/+ )+ ).toBeTruthy();+ expect(log.getByText('reviewed. ship it')).toBeTruthy();+ fireEvent.click(+ home.getByRole('button', { name: 'Claude Code · Review the invite flow' })+ );+ expect(screen.getByText('#481')).toBeTruthy();+ expect(+ screen.getByText(/Reviewed the invite flow. Existing members now return/)+ ).toBeTruthy();+ expect(home.getByRole('heading', { name: 'Home' })).toBeTruthy();+});++it('clears a thread reply when switching to another conversation', () => {+ render(() => <DummyWorkspace />);+ const home = within(+ screen.getByRole('complementary', { name: 'Home navigation' })+ );+ fireEvent.click(home.getByRole('button', { name: 'agents-team' }));+ fireEvent.click(+ within(screen.getByRole('log')).getAllByRole('button', {+ name: 'Reply to message',+ })[0]+ );+ expect(screen.getByRole('textbox', { name: 'Thread reply' })).toBeTruthy();+ fireEvent.click(home.getByRole('button', { name: 'Julia Westphal' }));+ expect(screen.queryByRole('textbox', { name: 'Thread reply' })).toBeNull();+ expect(screen.getByRole('log', { name: 'Channel dm-julia' })).toBeTruthy();+ expect(+ screen.getByRole('textbox', { name: 'Message #dm-julia' })+ ).toBeTruthy();+});diff --git a/apps/marketing/src/features/marketing/components/workspace/DummyWorkspace.tsx b/apps/marketing/src/features/marketing/components/workspace/DummyWorkspace.tsxnew file mode 100644index 0000000000..405cb33b2c--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/DummyWorkspace.tsx@@ -0,0 +1,533 @@+import ArrowCounterClockwise from '@phosphor/arrow-counter-clockwise.svg';+import ArrowLeft from '@phosphor/arrow-left.svg';+import Buildings from '@phosphor/buildings.svg';+import Calendar from '@phosphor/calendar-blank.svg';+import Chats from '@phosphor/chats-circle.svg';+import Envelope from '@phosphor/envelope.svg';+import FileText from '@phosphor/file-text.svg';+import Folder from '@phosphor/folder-simple.svg';+import Hash from '@phosphor/hash.svg';+import House from '@phosphor/house.svg';+import ListChecks from '@phosphor/list-checks.svg';+import Search from '@phosphor/magnifying-glass.svg';+import Plus from '@phosphor/plus.svg';+import Sidebar from '@phosphor/sidebar-simple.svg';+import Sparkle from '@phosphor/sparkle.svg';+import BuildingsFill from '@phosphor-fill/buildings-fill.svg';+import CalendarFill from '@phosphor-fill/calendar-blank-fill.svg';+import ChatsFill from '@phosphor-fill/chats-circle-fill.svg';+import EnvelopeFill from '@phosphor-fill/envelope-fill.svg';+import FolderFill from '@phosphor-fill/folder-simple-fill.svg';+import HouseFill from '@phosphor-fill/house-fill.svg';+import ListChecksFill from '@phosphor-fill/list-checks-fill.svg';+import SparkleFill from '@phosphor-fill/sparkle-fill.svg';+import { Button } from '@ui';+import {+ createSignal,+ For,+ Match,+ onCleanup,+ onMount,+ Show,+ Switch,+} from 'solid-js';+import type { EmailTagId } from '../../core/demo-email';+import type { WorkspaceView } from '../../core/dummy-workspace';+import { homepagePeople } from '../../core/homepage-demo-people';+import { sampleAgentSessions } from '../../core/workspace-parity-fixtures';+import { createDummyWorkspace } from '../../primitives/createDummyWorkspace';+import { NavGlyph } from '../DemoNavGlyph';+import { EmailSidebar, type MailTab } from '../email/frozen/EmailShell';+import { CreatePalette } from './frozen/CreatePalette';+import { type SearchOption, SearchPalette } from './frozen/SearchPalette';+import { WorkspaceAgents } from './WorkspaceAgents';+import { WorkspaceCalendar } from './WorkspaceCalendar';+import { WorkspaceChannel } from './WorkspaceChannel';+import { WorkspaceCompanies } from './WorkspaceCompanies';+import { WorkspaceDocuments } from './WorkspaceDocuments';+import { WorkspaceEmail } from './WorkspaceEmail';+import { WorkspaceSidebar } from './WorkspaceSidebar';+import { WorkspaceSpreadsheet } from './WorkspaceSpreadsheet';+import { type TaskFilter, WorkspaceTasks } from './WorkspaceTasks';+import '../email/email-demos.css';+import '../demo-markdown.css';+import './dummy-workspace.css';++const NAV = [+ { id: 'home', label: 'Home', icon: House, active: HouseFill },+ { id: 'documents', label: 'Drive', icon: Folder, active: FolderFill },+ { id: 'email', label: 'Email', icon: Envelope, active: EnvelopeFill },+ { id: 'messages', label: 'Chat', icon: Chats, active: ChatsFill },+ { id: 'tasks', label: 'Tasks', icon: ListChecks, active: ListChecksFill },+ { id: 'calendar', label: 'Calendar', icon: Calendar, active: CalendarFill },+ { id: 'agents', label: 'Agents', icon: Sparkle, active: SparkleFill },+ { id: 'crm', label: 'Customers', icon: Buildings, active: BuildingsFill },+] as const;++export default function DummyWorkspace(props: {+ initialView?: WorkspaceView;+ initialTask?: string;+ initialCompany?: string;+ initialDocument?: string;+ embedded?: boolean;+}) {+ let workspaceElement!: HTMLDivElement;+ const w = createDummyWorkspace(props.initialView ?? 'home');+ if (!props.embedded && typeof window !== 'undefined') {+ const companyId = window.location.hash.replace(/^#company-/, '');+ const emailId = window.location.hash.replace(/^#email-/, '');+ if (w.data.emails.some((email) => email.id === emailId))+ w.open('email', emailId);+ if (w.data.companies.some((company) => company.id === companyId))+ w.open('crm', companyId);+ }+ if (props.initialDocument) w.open('documents', props.initialDocument);+ if (props.initialTask) w.open('tasks', props.initialTask);+ if (props.initialCompany) w.open('crm', props.initialCompany);+ const [filter, setFilter] = createSignal<TaskFilter>('all');+ const [mailTab, setMailTab] = createSignal<MailTab>('important');+ const [account, setAccount] = createSignal('all');+ const [mailTag, setMailTag] = createSignal<EmailTagId>();+ const [sidebar, setSidebar] = createSignal(true);+ const [mobileOpen, setMobileOpen] = createSignal(false);+ const [searching, setSearching] = createSignal(false);+ const [creating, setCreating] = createSignal(false);+ onMount(() => {+ const shortcut = (event: KeyboardEvent) => {+ const target = event.target as HTMLElement;+ if (props.embedded && !workspaceElement.contains(target)) return;+ if (+ !event.defaultPrevented &&+ !event.isComposing &&+ !event.repeat &&+ (event.metaKey || event.ctrlKey) &&+ !event.altKey &&+ !event.shiftKey &&+ event.key.toLowerCase() === 'k'+ ) {+ event.preventDefault();+ setCreating(false);+ setSearching(!searching());+ return;+ }+ if (+ event.defaultPrevented ||+ event.isComposing ||+ event.repeat ||+ event.metaKey ||+ event.ctrlKey ||+ event.altKey ||+ event.shiftKey ||+ creating() ||+ searching() ||+ target.closest(+ 'input, textarea, select, [contenteditable], [role="dialog"]'+ )+ )+ return;+ if (event.key.toLowerCase() === 'c') {+ event.preventDefault();+ setCreating(true);+ }+ };+ document.addEventListener('keydown', shortcut);+ onCleanup(() => document.removeEventListener('keydown', shortcut));+ });+ const railView = () => (w.view() === 'spreadsheet' ? 'documents' : w.view());+ const title = () =>+ NAV.find((item) => item.id === railView())?.label ?? 'Workspace';+ const navigate = (view: WorkspaceView, id?: string) => {+ setSearching(false);+ setMobileOpen(false);+ w.openItem(view, id);+ if (view === 'messages' && id) w.setChannel(id);+ };+ function newDocument() {+ const id = crypto.randomUUID();+ w.setData('documents', (docs) => [+ ...docs,+ {+ id,+ title: 'Untitled document',+ body: 'Write something…',+ comments: [],+ },+ ]);+ navigate('documents', id);+ }+ const create = () => {+ if (w.view() === 'crm') w.createCompany();+ else if (w.view() === 'calendar') w.createEvent();+ else if (w.view() === 'email') navigate('email', 'new');+ else if (railView() === 'documents') newDocument();+ else if (w.view() === 'messages') {+ const id = `channel-${w.data.channels.length + 1}`;+ w.setData('channels', (channels) => [...channels, { id, messages: [] }]);+ w.setChannel(id);+ } else w.createTask();+ };+ const searchOptions = (): SearchOption[] => [+ {+ id: 'create',+ title: 'Create',+ category: 'Command',+ icon: Plus,+ shortcut: 'C',+ run: () => setCreating(true),+ },+ ...w.data.channels.map((item) => ({+ id: item.id,+ title: item.person ? homepagePeople[item.person].name : item.id,+ category: item.person ? ('People' as const) : ('Channels' as const),+ icon: item.person ? Chats : Hash,+ run: () => navigate('messages', item.id),+ })),+ ...sampleAgentSessions.map((item) => ({+ id: `agent-${item.id}`,+ title: item.title,+ category: 'Agents' as const,+ icon: Sparkle,+ run: () => navigate('agents', item.id),+ })),+ ...w.data.documents.map((item) => ({+ id: `file-${item.id}`,+ title: item.title,+ category: 'Files' as const,+ icon: FileText,+ run: () =>+ navigate(+ item.kind === 'spreadsheet' ? 'spreadsheet' : 'documents',+ item.id+ ),+ })),+ ...w.data.tasks.map((item) => ({+ id: `task-${item.id}`,+ title: item.title,+ category: 'Tasks' as const,+ icon: ListChecks,+ run: () => navigate('tasks', item.id),+ })),+ ...w.data.emails+ .filter((item) => !item.archived)+ .map((item) => ({+ id: `email-${item.id}`,+ title: item.subject,+ category: 'All' as const,+ icon: Envelope,+ run: () => navigate('email', item.id),+ })),+ ...NAV.map((item) => ({+ id: `go-${item.id}`,+ title: `Go to ${item.label}`,+ category: 'Command' as const,+ icon: item.icon,+ run: () => w.open(item.id),+ })),+ ];+ return (+ <div+ ref={workspaceElement}+ class="dummy-workspace workspace-demo portal-scope"+ data-theme="dark"+ data-embedded={!!props.embedded}+ data-sidebar-open={mobileOpen()}+ >+ <Show when={searching()}>+ <SearchPalette+ mount={workspaceElement}+ options={searchOptions()}+ onClose={() => setSearching(false)}+ />+ </Show>+ <Show when={creating()}>+ <CreatePalette+ mount={workspaceElement}+ onClose={() => setCreating(false)}+ options={[+ {+ label: 'Email',+ key: 'e',+ icon: Envelope,+ run: () => navigate('email', 'new'),+ },+ {+ label: 'Agent',+ key: 'a',+ hint: 'Dedicated Agent Session',+ icon: Sparkle,+ run: () => navigate('agents'),+ },+ { label: 'Document', key: 'd', icon: FileText, run: newDocument },+ {+ label: 'Task',+ key: 't',+ icon: ListChecks,+ run: () => w.createTask(),+ },+ {+ label: 'Message',+ key: 'm',+ hint: 'Quick send message',+ icon: Chats,+ run: () => navigate('messages', w.channel()),+ },+ {+ label: 'Channel',+ key: 'g',+ icon: Hash,+ run: () => {+ const id = `channel-${w.data.channels.length + 1}`;+ w.setData('channels', (channels) => [+ ...channels,+ { id, messages: [] },+ ]);+ w.setChannel(id);+ navigate('messages', id);+ },+ },+ {+ label: 'Company',+ key: 'o',+ icon: Buildings,+ run: () => w.createCompany(),+ },+ {+ label: 'Event',+ key: 'v',+ icon: Calendar,+ run: () => w.createEvent(),+ },+ ]}+ />+ </Show>+ <header class="dummy-banner">+ <span>+ <span class="dummy-status-dot" />+ Launch team{' '}+ <span class="text-ink-extra-muted">· Sample workspace</span>+ </span>+ <div class="flex items-center gap-2">+ <span class="dummy-local-note text-ink-extra-muted">+ Changes stay in this session+ </span>+ <Button+ variant="plain"+ size="sm"+ onClick={() => {+ w.reset();+ setSearching(false);+ setFilter('all');+ setMailTab('important');+ setAccount('all');+ setMobileOpen(false);+ }}+ >+ <ArrowCounterClockwise class="size-3" />+ Reset+ </Button>+ <Show when={props.embedded}>+ <a+ href="/demo"+ class="text-xs text-ink-muted underline underline-offset-4"+ >+ Open workspace+ </a>+ </Show>+ </div>+ </header>+ <div class="dummy-layout">+ <div+ data-ui="sidebar-rail"+ class="dummy-rail relative flex h-full w-14 shrink-0 flex-col items-center gap-1 overflow-hidden border-r border-edge-frame bg-panel px-2 pb-3 pt-2"+ >+ <Button+ size="icon-md"+ class="size-10 rounded-xl"+ label="Create in workspace"+ tooltipPlacement="right"+ tooltipMount={workspaceElement}+ shortcut="C"+ aria-haspopup="dialog"+ onClick={() => setCreating(true)}+ >+ <Plus class="size-5" />+ </Button>+ <Button+ variant="ghost"+ size="icon-md"+ class="size-10 rounded-xl"+ label="Search workspace"+ tooltipPlacement="right"+ tooltipMount={workspaceElement}+ shortcut="⌘ K"+ aria-haspopup="dialog"+ onClick={() => {+ setSearching(!searching());+ }}+ >+ <Search class="size-5" />+ </Button>+ <nav class="shrink-0 pt-4" aria-label="Workspace navigation">+ <ul class="flex flex-col items-center gap-1">+ <For each={NAV}>+ {(item) => (+ <li class="flex">+ <Button+ variant="ghost"+ size="icon-md"+ class={`size-10 rounded-xl ${railView() === item.id ? 'bg-hover text-ink' : ''}`}+ label={item.label}+ tooltipPlacement="right"+ tooltipMount={workspaceElement}+ aria-current={railView() === item.id ? 'page' : undefined}+ onClick={() => {+ setSearching(false);+ setMobileOpen(false);+ w.open(item.id);+ }}+ >+ <NavGlyph+ icon={item.icon}+ iconActive={item.active}+ filled={railView() === item.id}+ class="size-5"+ />+ </Button>+ </li>+ )}+ </For>+ </ul>+ </nav>+ <div class="min-h-0 flex-1" />+ <img+ src={homepagePeople.jacob.photo}+ alt="Jacob Beckerman"+ class="size-8 rounded-full"+ />+ </div>+ <Show when={sidebar()}>+ <div class="dummy-sidebar">+ <Show+ when={w.view() === 'email'}+ fallback={+ <WorkspaceSidebar+ workspace={w}+ title={title()}+ collapse={() => setSidebar(false)}+ create={create}+ navigate={navigate}+ taskFilter={filter()}+ setTaskFilter={setFilter}+ />+ }+ >+ <EmailSidebar+ onToggleNavigation={() => setSidebar(false)}+ tab={mailTab()}+ account={account()}+ tag={mailTag()}+ onTag={(tag) => {+ setMailTag(tag);+ setMailTab('all');+ navigate('email');+ }}+ onTab={(tab) => {+ setMailTag(undefined);+ setMailTab(tab);+ navigate(tab === 'calendar' ? 'calendar' : 'email');+ }}+ onAccount={setAccount}+ onCompose={() => navigate('email', 'new')}+ />+ </Show>+ </div>+ </Show>+ <div class="dummy-main">+ <Show when={props.initialCompany && w.view() !== 'crm'}>+ <div class="px-3 pt-2">+ <Button+ variant="plain"+ size="sm"+ onClick={() => navigate('crm', props.initialCompany)}+ >+ <ArrowLeft />+ Back to customer record+ </Button>+ </div>+ </Show>+ <div class="dummy-mobile-nav">+ <Button+ variant="plain"+ size="icon-sm"+ label="Toggle navigation"+ onClick={() => {+ setSidebar(true);+ setMobileOpen(!mobileOpen());+ }}+ >+ <Sidebar />+ </Button>+ <span class="text-sm">{title()}</span>+ <Button+ variant="plain"+ size="icon-sm"+ label="Create item"+ onClick={() => setCreating(true)}+ >+ <Plus />+ </Button>+ </div>+ <Show when={!sidebar()}>+ <div class="dummy-restore-sidebar">+ <Button+ variant="plain"+ size="icon-sm"+ label="Expand sidebar"+ onClick={() => setSidebar(true)}+ >+ <Sidebar />+ </Button>+ </div>+ </Show>+ <Switch>+ <Match when={w.contentView() === 'tasks'}>+ <WorkspaceTasks workspace={w} filter={filter()} />+ </Match>+ <Match when={w.contentView() === 'email'}>+ <WorkspaceEmail+ workspace={w}+ tag={mailTag()}+ onClearTag={() => setMailTag(undefined)}+ tab={mailTab()}+ account={account()}+ navigationOpen={sidebar()}+ onToggleNavigation={() => setSidebar(!sidebar())}+ />+ </Match>+ <Match when={w.contentView() === 'spreadsheet'}>+ <WorkspaceSpreadsheet workspace={w} />+ </Match>+ <Match when={w.contentView() === 'documents'}>+ <WorkspaceDocuments workspace={w} />+ </Match>+ <Match when={w.contentView() === 'messages'}>+ <WorkspaceChannel workspace={w} />+ </Match>+ <Match when={w.contentView() === 'agents'}>+ <WorkspaceAgents workspace={w} />+ </Match>+ <Match when={w.contentView() === 'home'}>+ <WorkspaceAgents workspace={w} home />+ </Match>+ <Match when={w.contentView() === 'calendar'}>+ <WorkspaceCalendar workspace={w} />+ </Match>+ <Match when={w.contentView() === 'crm'}>+ <WorkspaceCompanies workspace={w} />+ </Match>+ </Switch>+ </div>+ </div>+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/WorkspaceAgents.tsx b/apps/marketing/src/features/marketing/components/workspace/WorkspaceAgents.tsxnew file mode 100644index 0000000000..55724627f1--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/WorkspaceAgents.tsx@@ -0,0 +1,275 @@+import ChatGptIcon from '@icon/openai.svg';+import ClaudeIcon from '@icon/wide-claude.svg';+import CursorIcon from '@icon/wide-cursor-ide.svg';+import GitPull from '@phosphor/git-pull-request.svg';+import Plus from '@phosphor/plus.svg';+import Terminal from '@phosphor/terminal.svg';+import { Button } from '@ui';+import { createSignal, For, Show } from 'solid-js';+import { DEPLOY_PROMPT, DEPLOY_TRACE } from '../../core/deploy-agent-demo';+import { sampleAgentSessions } from '../../core/workspace-parity-fixtures';+import type { DummyWorkspace } from '../../primitives/createDummyWorkspace';+import { AgentMessage } from '../DemoAgentMessage';+import { ViewShell } from '../DemoWorkspaceChrome';+import { InputActionButton } from '../email/frozen/ActionButton';+import { ChannelComposer } from '../email/frozen/ChannelComposer';+import { ModelCatalogPicker } from './frozen/model-picker/ModelCatalogPicker';++const SAMPLE_MODELS = [+ { id: 'auto', label: 'Auto' },+ { id: 'claude-opus-5', label: 'Opus 5' },+ { id: 'gpt-5', label: 'GPT-5' },+];++export function WorkspaceAgents(props: {+ workspace: DummyWorkspace;+ home?: boolean;+}) {+ const w = props.workspace;+ const [model, setModel] = createSignal('auto');+ const session = () =>+ sampleAgentSessions.find((item) => item.id === w.selected());+ const conversation = () => !props.home && !!session();+ const pullRequest = () => {+ const current = session();+ return current && 'pr' in current ? current.pr : undefined;+ };+ const message = (text: string, user = false) => ({+ ...DEPLOY_TRACE,+ author: user+ ? { kind: 'user' as const, userId: 'demo-jacob' }+ : DEPLOY_TRACE.author,+ parts: [{ kind: 'text' as const, text }],+ stop: null,+ });+ const composer = () => (+ <ChannelComposer+ richMentions+ agent+ label="Ask sample agent"+ placeholder={w.busy() ? 'Working…' : 'Ask about your workspace…'}+ leadingAction={+ <InputActionButton+ label="Add workspace context"+ onClick={() => w.openItem('documents')}+ >+ <Plus />+ </InputActionButton>+ }+ accessory={+ <ModelCatalogPicker+ value={model()}+ options={SAMPLE_MODELS}+ onSelect={setModel}+ ariaLabel="Choose sample model"+ placement="top-end"+ triggerClass="h-[33.75px] min-w-0 max-w-full gap-[5.625px] rounded-full border-0 bg-transparent hover:bg-hover px-[7.5px] text-base font-normal text-ink-muted [&_svg]:size-[15px]"+ />+ }+ onSend={(prompt) => {+ w.openItem('agents', 'launch-status');+ w.ask(prompt);+ }}+ />+ );+ return (+ <>+ <ViewShell.TopBar>+ <span class="text-sm font-medium">+ {props.home+ ? ''+ : w.selected() === 'connections'+ ? 'Connections'+ : w.selected() === 'catalog'+ ? 'Agents'+ : conversation()+ ? session()?.title+ : 'New conversation'}+ </span>+ <Show when={conversation() && session()?.runtime !== 'Macro'}>+ <span class="ml-auto flex gap-2 items-center text-xs text-success">+ <GitPull class="size-4" />+ {pullRequest()}+ <span>Open</span>+ </span>+ </Show>+ <span+ class="text-xs text-ink-extra-muted"+ classList={{+ 'ml-auto': !conversation() || !pullRequest(),+ 'ml-4': !!pullRequest(),+ }}+ title="Agent responses use scripted sample data"+ >+ Sample workspace+ </span>+ </ViewShell.TopBar>+ <Show+ when={+ (w.selected() === 'connections' || w.selected() === 'catalog') &&+ !props.home+ }+ fallback={+ <Show+ when={conversation()}+ fallback={+ <div class="sample-agent-empty">+ <div class="sample-agent-start">+ <h1>What should we work on?</h1>+ {composer()}+ <Show when={props.home}>+ <div class="sample-home-suggestions">+ <For+ each={w.data.tasks+ .filter((task) => task.status !== 'Completed')+ .slice(0, 3)}+ >+ {(task) => (+ <button+ type="button"+ onClick={() => w.openItem('tasks', task.id)}+ >+ <span class="truncate">{task.title}</span>+ <span>Open ↗</span>+ </button>+ )}+ </For>+ </div>+ </Show>+ </div>+ </div>+ }+ >+ <div class="dummy-scroll sample-agent-log">+ <Show when={w.selected() === 'deploy'}>+ <div class="mb-8">+ <AgentMessage message={message(DEPLOY_PROMPT, true)} />+ </div>+ <AgentMessage message={DEPLOY_TRACE} inFlight={false} />+ </Show>+ <Show when={w.selected() !== 'deploy' && session()}>+ {(current) => (+ <>+ <div class="mb-8">+ <AgentMessage message={message(current().prompt, true)} />+ </div>+ <AgentMessage+ message={message(current().answer)}+ inFlight={false}+ />+ </>+ )}+ </Show>+ <For each={w.agentReplies()}>+ {(reply) => (+ <div class="mb-8">+ <div class="mb-6">+ <AgentMessage message={message(reply.prompt, true)} />+ </div>+ <AgentMessage+ message={message(reply.answer)}+ inFlight={false}+ />+ </div>+ )}+ </For>+ <Show when={w.busy()}>+ <p class="text-sm text-ink-muted">+ Reviewing sample workspace…+ </p>+ </Show>+ </div>+ <div class="dummy-composer sample-chat-composer">{composer()}</div>+ </Show>+ }+ >+ <Show+ when={w.selected() === 'catalog'}+ fallback={+ <div class="mx-auto max-w-3xl p-8">+ <h1 class="text-2xl font-semibold mb-6">Connections</h1>+ <p class="text-sm text-ink-muted mb-6">+ This sample workspace uses local data. Your accounts are not+ connected.+ </p>+ <For each={['Gmail', 'Google Calendar', 'GitHub', 'Slack']}>+ {(name) => (+ <div class="border-b border-edge-muted py-4 flex justify-between gap-12">+ <span>{name}</span>+ <span class="text-xs text-ink-muted">Sample data</span>+ </div>+ )}+ </For>+ </div>+ }+ >+ <div class="dummy-scroll">+ <div class="sample-agent-catalog">+ <h1 class="text-2xl font-semibold mb-2">Agents</h1>+ <p class="text-sm text-ink-muted leading-6 mb-6">+ Bring your conversations and coding agents into one workspace.+ Choose a sample agent to explore its work.+ </p>+ <div class="rounded-xl bg-surface-2 p-6 mb-8">+ <Terminal class="size-5 mb-4 text-ink-muted" />+ <h2 class="text-xl mb-2">Bring your own agent to Macro.</h2>+ <p class="text-sm text-ink-muted leading-6">+ Your agent, your workspace. Coding sessions, pull requests,+ and conversations stay together.+ </p>+ </div>+ <h2 class="text-sm font-medium mb-3">Team agents</h2>+ <For+ each={[+ {+ name: 'ChatGPT',+ detail:+ 'Workspace assistant · Emails, tasks, and documents',+ id: 'customer-summary',+ icon: ChatGptIcon,+ },+ {+ name: 'Cursor',+ detail: 'Coding agent · launch-team/workspace',+ id: 'deploy',+ icon: CursorIcon,+ },+ {+ name: 'Claude Code',+ detail: 'Coding agent · launch-team/workspace',+ id: 'invite-review',+ icon: ClaudeIcon,+ },+ ]}+ >+ {(agent) => (+ <button+ type="button"+ class="flex items-center gap-4 w-full rounded-xl bg-surface-2 hover:bg-hover p-4 text-left mb-3"+ onClick={() => w.openItem('agents', agent.id)}+ >+ <agent.icon class="size-6 shrink-0 text-ink" />+ <span>+ <span class="text-sm font-medium">{agent.name}</span>+ <span class="block text-xs text-ink-muted mt-1">+ {agent.detail}+ </span>+ </span>+ </button>+ )}+ </For>+ <Button+ variant="plain"+ size="sm"+ onClick={() => w.openItem('agents', 'new')}+ >+ <Plus />+ New conversation+ </Button>+ </div>+ </div>+ </Show>+ </Show>+ </>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/WorkspaceCalendar.tsx b/apps/marketing/src/features/marketing/components/workspace/WorkspaceCalendar.tsxnew file mode 100644index 0000000000..35e6b79bc8--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/WorkspaceCalendar.tsx@@ -0,0 +1,222 @@+import CaretDown from '@phosphor/caret-down.svg';+import CaretLeft from '@phosphor/caret-left.svg';+import CaretRight from '@phosphor/caret-right.svg';+import { Button, Dropdown } from '@ui';+import { For, Show } from 'solid-js';+import {+ sampleToday,+ shiftDate,+ weekDates,+} from '../../core/workspace-fixtures';+import type { DummyWorkspace } from '../../primitives/createDummyWorkspace';+import { ViewShell } from '../DemoWorkspaceChrome';+import { WorkspaceEventDetails } from './WorkspaceEventDetails';++export function MiniCalendar(props: { workspace: DummyWorkspace }) {+ const w = props.workspace;+ const start = () => `${w.calendarDate().slice(0, 7)}-01`;+ const days = () =>+ Array.from({ length: 42 }, (_, i) =>+ shiftDate(start(), i - new Date(`${start()}T12:00:00`).getDay())+ );+ return (+ <div class="sample-mini-calendar">+ <div class="flex items-center justify-between pb-3 text-xs font-semibold">+ <span>{monthLabel(w.calendarDate())}</span>+ <Button+ size="icon-sm"+ variant="plain"+ label="Previous month"+ onClick={() => w.setCalendarDate(shiftDate(start(), -1))}+ >+ <CaretLeft />+ </Button>+ <Button+ size="icon-sm"+ variant="plain"+ label="Next month"+ onClick={() =>+ w.setCalendarDate(shiftDate(start(), 32).slice(0, 7) + '-01')+ }+ >+ <CaretRight />+ </Button>+ </div>+ <div class="sample-mini-days">+ <For each={['S', 'M', 'T', 'W', 'T', 'F', 'S']}>+ {(day) => <span class="text-ink-muted text-[10px]">{day}</span>}+ </For>+ <For each={days()}>+ {(date) => (+ <button+ type="button"+ aria-label={date}+ aria-pressed={date === w.calendarDate()}+ data-muted={date.slice(0, 7) !== start().slice(0, 7)}+ onClick={() => w.setCalendarDate(date)}+ >+ {Number(date.slice(-2))}+ </button>+ )}+ </For>+ </div>+ </div>+ );+}+function monthLabel(date: string) {+ return new Date(`${date}T12:00:00`).toLocaleDateString('en-US', {+ month: 'long',+ year: 'numeric',+ });+}+function timeLabel(hour: number) {+ return `${Math.floor(hour) % 12 || 12}${hour % 1 ? ':30' : ''}${hour >= 12 ? 'pm' : 'am'}`;+}+// CalendarGrid/EventContent geometry and colors frozen into a local week grid.+export function WorkspaceCalendar(props: { workspace: DummyWorkspace }) {+ const w = props.workspace;+ const dates = () =>+ w.calendarMode() === 'Week'+ ? weekDates(w.calendarDate())+ : [w.calendarDate()];+ const selected = () =>+ w.data.events.find((event) => event.id === w.selected());+ const update = (patch: Partial<NonNullable<ReturnType<typeof selected>>>) =>+ w.setData('events', (event) => event.id === w.selected(), patch);+ return (+ <>+ <ViewShell.TopBar>+ <span class="text-sm font-medium">{monthLabel(w.calendarDate())}</span>+ </ViewShell.TopBar>+ <div class="sample-calendar-toolbar">+ <Button+ variant="plain"+ size="sm"+ onClick={() => w.setCalendarDate(sampleToday)}+ >+ Today+ </Button>+ <Dropdown modal={false}>+ <Dropdown.Trigger+ aria-label="Choose calendar view"+ variant="plain"+ size="sm"+ >+ {w.calendarMode()}+ <CaretDown class="size-3" />+ </Dropdown.Trigger>+ <Dropdown.Content portalScope="local">+ <Dropdown.Group>+ <For each={['Week', 'Day'] as const}>+ {(mode) => (+ <Dropdown.Item onSelect={() => w.setCalendarMode(mode)}>+ {mode}+ </Dropdown.Item>+ )}+ </For>+ </Dropdown.Group>+ </Dropdown.Content>+ </Dropdown>+ <Button+ variant="plain"+ size="icon-sm"+ label="Previous period"+ onClick={() =>+ w.setCalendarDate(+ shiftDate(w.calendarDate(), w.calendarMode() === 'Week' ? -7 : -1)+ )+ }+ >+ <CaretLeft />+ </Button>+ <Button+ variant="plain"+ size="icon-sm"+ label="Next period"+ onClick={() =>+ w.setCalendarDate(+ shiftDate(w.calendarDate(), w.calendarMode() === 'Week' ? 7 : 1)+ )+ }+ >+ <CaretRight />+ </Button>+ </div>+ <div class="dummy-scroll sample-calendar">+ <div+ class="sample-calendar-head"+ style={{+ 'grid-template-columns': `48px repeat(${dates().length},minmax(96px,1fr))`,+ }}+ >+ <span />+ <For each={dates()}>+ {(date) => (+ <div data-today={date === sampleToday}>+ <span>+ {new Date(`${date}T12:00:00`).toLocaleDateString('en-US', {+ weekday: 'short',+ })}+ </span>+ <strong>{Number(date.slice(-2))}</strong>+ </div>+ )}+ </For>+ </div>+ <div+ class="sample-calendar-grid"+ style={{+ 'grid-template-columns': `48px repeat(${dates().length},minmax(96px,1fr))`,+ }}+ >+ <div class="sample-time-labels">+ <For each={Array.from({ length: 13 }, (_, i) => i + 8)}>+ {(hour) => <span>{timeLabel(hour)}</span>}+ </For>+ </div>+ <For each={dates()}>+ {(date) => (+ <div class="sample-calendar-day" aria-label={`Events on ${date}`}>+ <For+ each={w.data.events.filter(+ (e) =>+ e.date === date &&+ (w.showPersonal() || e.calendar !== 'personal')+ )}+ >+ {(event) => (+ <button+ type="button"+ class="sample-calendar-event"+ data-personal={event.calendar === 'personal'}+ style={{+ top: `${(event.start - 8) * 64}px`,+ height: `${Math.max(26, event.duration * 64 - 3)}px`,+ }}+ onClick={() => w.open('calendar', event.id)}+ >+ <strong>{event.title}</strong>+ <span>+ {timeLabel(event.start)}–+ {timeLabel(event.start + event.duration)}+ </span>+ </button>+ )}+ </For>+ </div>+ )}+ </For>+ </div>+ </div>+ <Show when={selected()} keyed>+ {(event) => (+ <WorkspaceEventDetails+ event={event}+ onUpdate={update}+ onClose={() => w.open('calendar')}+ />+ )}+ </Show>+ </>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/WorkspaceChannel.tsx b/apps/marketing/src/features/marketing/components/workspace/WorkspaceChannel.tsxnew file mode 100644index 0000000000..14ad0fca32--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/WorkspaceChannel.tsx@@ -0,0 +1,331 @@+import Envelope from '@phosphor/envelope.svg';+import File from '@phosphor/file.svg';+import Hash from '@phosphor/hash.svg';+import ListChecks from '@phosphor/list-checks.svg';+import Phone from '@phosphor/phone.svg';+import Plus from '@phosphor/plus.svg';+import Sparkle from '@phosphor/sparkle.svg';+import { Button } from '@ui';+import { createEffect, createSignal, For, on, Show } from 'solid-js';+import { plainDemoMentions } from '../../core/demo-mentions';+import type { WorkspaceComment } from '../../core/dummy-workspace';+import { homepagePeople } from '../../core/homepage-demo-people';+import type { DummyWorkspace } from '../../primitives/createDummyWorkspace';+import { ViewShell } from '../DemoWorkspaceChrome';+import { ChannelComposer } from '../email/frozen/ChannelComposer';+import { Segments } from './frozen/DetailPanel';+import { MessageRow } from './frozen/MessageRow';++export function WorkspaceChannel(props: { workspace: DummyWorkspace }) {+ const w = props.workspace;+ const channel = () => w.data.channels.find((c) => c.id === w.channel());+ const name = () =>+ channel()?.person ? homepagePeople[channel()!.person!].name : w.channel();+ const [tab, setTab] = createSignal<+ 'Messages' | 'Attachments' | 'Calls' | 'Participants'+ >('Messages');+ const [reply, setReply] = createSignal<string>();+ const [expanded, setExpanded] = createSignal<string[]>([]);+ let log: HTMLDivElement | undefined;+ const messages = () => channel()?.messages ?? [];+ const children = (id: string) => messages().filter((m) => m.replyTo === id);+ const scrollToConversation = (thread?: string) => {+ const channelId = w.channel();+ queueMicrotask(() => {+ if (!log || w.channel() !== channelId) return;+ const anchor = thread+ ? [...log.querySelectorAll<HTMLElement>('[data-thread-id]')].find(+ (element) => element.dataset.threadId === thread+ )+ : undefined;+ log.scrollTop = anchor+ ? log.scrollTop ++ anchor.getBoundingClientRect().top -+ log.getBoundingClientRect().top -+ 16+ : log.scrollHeight;+ });+ };+ createEffect(+ on([w.channel, w.channelThread], ([channelId, thread], previous) => {+ if (channelId !== previous?.[0]) {+ setReply(undefined);+ setExpanded([]);+ setTab('Messages');+ }+ if (thread) {+ setTab('Messages');+ setExpanded((ids) => (ids.includes(thread) ? ids : [...ids, thread]));+ }+ scrollToConversation(thread);+ })+ );+ const startReply = (id: string) => {+ setReply(id);+ setExpanded((ids) => (ids.includes(id) ? ids : [...ids, id]));+ };+ const react = (id: string) =>+ w.setData(+ 'channels',+ (c) => c.id === w.channel(),+ 'messages',+ (m) => m.id === id,+ 'reactions',+ (r) => (r?.length ? [] : ['jacob'])+ );+ const row = (message: WorkspaceComment, rootId = message.id) => (+ <MessageRow+ message={message}+ onReact={() => react(message.id)}+ onReply={() => startReply(rootId)}+ onTask={+ !message.taskId+ ? () => {+ const id = w.createTask(+ plainDemoMentions(message.body).slice(0, 90),+ message.body,+ w.channel()+ );+ w.setData(+ 'channels',+ (c) => c.id === w.channel(),+ 'messages',+ (m) => m.id === message.id,+ 'taskId',+ id+ );+ }+ : undefined+ }+ >+ <Show when={message.emailId}>+ {(id) => (+ <button+ type="button"+ class="dummy-entity-link"+ onClick={() => w.openItem('email', id())}+ >+ <Envelope class="size-4" />+ {w.data.emails.find((e) => e.id === id())?.subject}+ </button>+ )}+ </Show>+ <Show when={message.documentId}>+ {(id) => (+ <button+ type="button"+ class="dummy-entity-link"+ onClick={() => w.openItem('documents', id())}+ >+ <File class="size-4 text-note" />+ {w.data.documents.find((d) => d.id === id())?.title}+ </button>+ )}+ </Show>+ <Show when={message.taskId}>+ {(id) => (+ <button+ type="button"+ class="dummy-entity-link"+ onClick={() => w.openItem('tasks', id())}+ >+ <ListChecks class="size-4 text-task" />+ {w.data.tasks.find((t) => t.id === id())?.title}+ </button>+ )}+ </Show>+ </MessageRow>+ );+ return (+ <>+ <ViewShell.TopBar>+ <Show when={w.view() === 'home'}>+ <button+ type="button"+ class="text-sm text-ink-muted"+ onClick={() => w.open('home')}+ >+ Home+ </button>+ <span class="text-ink-muted px-1">›</span>+ </Show>+ <Show when={channel()?.person} fallback={<Hash class="size-4" />}>+ {(person) => (+ <img+ alt=""+ class="size-5 rounded-full"+ src={homepagePeople[person()].photo}+ />+ )}+ </Show>+ <span class="text-sm font-medium truncate">{name()}</span>+ <Segments+ label="Conversation view"+ items={+ channel()?.person+ ? ['Messages', 'Attachments', 'Calls']+ : ['Messages', 'Attachments', 'Calls', 'Participants']+ }+ value={tab()}+ onChange={(next) => {+ setTab(next);+ if (next === 'Messages') scrollToConversation(w.channelThread());+ }}+ />+ <div class="ml-auto flex items-center gap-1">+ <Button size="sm" variant="plain" onClick={() => setTab('Calls')}>+ <Phone class="size-3" />+ Call+ </Button>+ <Button+ size="sm"+ variant="plain"+ onClick={() => w.openItem('agents')}+ >+ <Sparkle class="size-3" />+ Ask Macro+ </Button>+ </div>+ </ViewShell.TopBar>+ <div+ ref={log}+ class="dummy-scroll sample-chat-log"+ role="log"+ aria-label={`Channel ${w.channel()}`}+ tabIndex={0}+ >+ <Show when={tab() === 'Participants'}>+ <For each={['jacob', 'julia', 'teo'] as const}>+ {(person) => (+ <div class="flex items-center gap-3 py-3">+ <img+ class="size-8 rounded-full"+ alt=""+ src={homepagePeople[person].photo}+ />+ {homepagePeople[person].name}+ </div>+ )}+ </For>+ </Show>+ <Show when={tab() === 'Calls'}>+ <p class="text-sm text-ink-muted text-center py-12">+ No calls in this sample conversation.+ </p>+ </Show>+ <Show when={tab() === 'Attachments'}>+ <For each={messages().filter((m) => m.emailId || m.documentId)}>+ {(message) => row(message)}+ </For>+ <Show when={!messages().some((m) => m.emailId || m.documentId)}>+ <p class="text-sm text-ink-muted text-center py-12">+ No attachments yet.+ </p>+ </Show>+ </Show>+ <Show when={tab() === 'Messages'}>+ <div class="sample-date-divider">+ <span>Today</span>+ </div>+ <For each={messages().filter((m) => !m.replyTo)}>+ {(message) => (+ <div+ class="sample-channel-thread"+ data-thread-id={message.id}+ data-thread-open={+ expanded().includes(message.id) || reply() === message.id+ }+ >+ {row(message)}+ <Show+ when={+ children(message.id).length > 0 || reply() === message.id+ }+ >+ <Show+ when={expanded().includes(message.id)}+ fallback={+ <button+ type="button"+ class="sample-thread-expand"+ onClick={() =>+ setExpanded((ids) => [...ids, message.id])+ }+ >+ {children(message.id).length}{' '}+ {children(message.id).length === 1+ ? 'reply'+ : 'replies'}{' '}+ <span class="text-ink-extra-muted">+ Last reply today+ </span>+ <span>›</span>+ </button>+ }+ >+ <div class="sample-thread-replies">+ <For each={children(message.id)}>+ {(child) => row(child, message.id)}+ </For>+ <Show+ when={reply() === message.id}+ fallback={+ <button+ type="button"+ class="sample-thread-reply-button"+ aria-label="Reply in thread"+ onClick={() => startReply(message.id)}+ >+ <Plus class="size-4" />+ </button>+ }+ >+ <div class="sample-thread-editor">+ <ChannelComposer+ richMentions+ label="Thread reply"+ placeholder={`Reply to ${homepagePeople[message.person].shortName}…`}+ onSend={(body) => {+ w.post(+ body,+ undefined,+ undefined,+ undefined,+ message.id+ );+ setReply(undefined);+ }}+ />+ <Button+ size="sm"+ variant="plain"+ onClick={() => setReply(undefined)}+ >+ Cancel+ </Button>+ </div>+ </Show>+ </div>+ </Show>+ </Show>+ </div>+ )}+ </For>+ </Show>+ </div>+ <Show when={tab() === 'Messages'}>+ <div class="dummy-composer sample-chat-composer">+ <ChannelComposer+ richMentions+ label={`Message #${w.channel()}`}+ placeholder={`Type @ to share with ${channel()?.person ? homepagePeople[channel()!.person!].shortName : `#${name()}`}`}+ onSend={(body) => {+ w.post(body);+ scrollToConversation();+ }}+ />+ </div>+ </Show>+ </>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/WorkspaceCompanies.tsx b/apps/marketing/src/features/marketing/components/workspace/WorkspaceCompanies.tsxnew file mode 100644index 0000000000..295ff5ab91--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/WorkspaceCompanies.tsx@@ -0,0 +1,343 @@+import ArrowLeft from '@phosphor/arrow-left.svg';+import Buildings from '@phosphor/buildings.svg';+import Link from '@phosphor/link.svg';+import { Button } from '@ui';+import { createSignal, For, Show } from 'solid-js';+import {+ type HomepagePersonId,+ homepagePeople,+} from '../../core/homepage-demo-people';+import { type DealStage, dealStages } from '../../core/workspace-fixtures';+import type { DummyWorkspace } from '../../primitives/createDummyWorkspace';+import { ViewShell } from '../DemoWorkspaceChrome';+import { ChannelComposer } from '../email/frozen/ChannelComposer';+import { SearchBar } from '../email/frozen/SearchBar';+import {+ DetailLayout,+ PanelGrid,+ PanelRow,+ PanelSection,+ PanelToggle,+} from './frozen/DetailPanel';+import { MessageRow } from './frozen/MessageRow';++export function WorkspaceCompanies(props: {+ workspace: DummyWorkspace;+ initialPanelOpen?: boolean;+}) {+ const w = props.workspace;+ const selected = () => w.data.companies.find((c) => c.id === w.selected());+ const [panel, setPanel] = createSignal<boolean | undefined>(+ props.initialPanelOpen+ );+ const [contactSearch, setContactSearch] = createSignal('');+ const [copied, setCopied] = createSignal(false);+ const companies = () =>+ w.data.companies.filter(+ (c) =>+ `${c.name} ${c.domain}`+ .toLowerCase()+ .includes(w.query().toLowerCase()) &&+ (w.companyFilter() !== 'My companies' || c.owner === 'jacob') &&+ (w.companyFilter() !== 'Unassigned' || !c.owner) &&+ (w.companyFilter() !== 'Needs follow-up' || c.stage === 'Lead')+ );+ const update = (patch: Partial<NonNullable<ReturnType<typeof selected>>>) =>+ w.setData('companies', (c) => c.id === w.selected(), patch);+ return (+ <Show+ when={selected()}+ fallback={+ <>+ <ViewShell.TopBar>+ <span class="text-sm font-medium">{w.companyFilter()}</span>+ </ViewShell.TopBar>+ <div class="p-4">+ <SearchBar+ label="Search companies"+ placeholder="Search companies"+ value={w.query()}+ onValueChange={w.setQuery}+ class="max-w-md"+ />+ </div>+ <Show+ when={w.companyLayout() === 'Board'}+ fallback={+ <div class="dummy-scroll p-3">+ <For each={companies()}>+ {(c) => (+ <button+ class="sample-company-list"+ type="button"+ onClick={() => w.open('crm', c.id)}+ >+ <Buildings class="size-4" />+ <span>{c.name}</span>+ <span class="ml-auto text-ink-muted">{c.domain}</span>+ <span class="w-24 text-right text-xs">{c.stage}</span>+ </button>+ )}+ </For>+ </div>+ }+ >+ <div class="sample-company-board">+ <For each={dealStages}>+ {(stage) => (+ <section+ aria-label={stage}+ class="sample-company-column"+ onDragOver={(e) => e.preventDefault()}+ onDrop={(e) => {+ e.preventDefault();+ const id = e.dataTransfer?.getData('text/plain');+ if (id)+ w.setData(+ 'companies',+ (c) => c.id === id,+ 'stage',+ stage+ );+ }}+ >+ <h3>+ <span class="sample-stage-dot" data-stage={stage} />+ {stage}+ </h3>+ <For each={companies().filter((c) => c.stage === stage)}>+ {(c) => (+ <button+ draggable+ onDragStart={(e) =>+ e.dataTransfer?.setData('text/plain', c.id)+ }+ type="button"+ class="sample-company-card"+ onClick={() => w.open('crm', c.id)}+ >+ <span class="flex gap-2 items-center">+ <Buildings class="size-4 shrink-0" />+ <strong class="truncate">{c.name}</strong>+ </span>+ <span class="flex gap-2 text-xs text-ink-extra-muted">+ <span class="truncate">{c.domain}</span>+ <span class="ml-auto shrink-0">9:41 AM</span>+ </span>+ </button>+ )}+ </For>+ </section>+ )}+ </For>+ </div>+ </Show>+ </>+ }+ >+ {(company) => (+ <>+ <ViewShell.TopBar>+ <Button+ size="icon-sm"+ variant="plain"+ label="Back to companies"+ onClick={() => w.open('crm')}+ >+ <ArrowLeft />+ </Button>+ <span class="text-sm text-ink-muted">All companies</span>+ <span>›</span>+ <Buildings class="size-4" />+ <span class="truncate text-sm">{company().name}</span>+ <Button+ class="ml-auto"+ size="sm"+ variant="plain"+ onClick={async () => {+ await navigator.clipboard.writeText(+ `${location.origin}/demo#company-${company().id}`+ );+ setCopied(true);+ }}+ >+ <Link />+ {copied() ? 'Copied' : 'Copy link'}+ </Button>+ <PanelToggle open={panel()} onChange={setPanel} />+ </ViewShell.TopBar>+ <DetailLayout+ open={panel()}+ panel={+ <>+ <PanelSection title="Details" open>+ <p class="text-xs text-ink-muted">Domains</p>+ <input+ aria-label="Company domain"+ class="sample-inline-input"+ value={company().domain}+ onInput={(e) => update({ domain: e.currentTarget.value })}+ />+ <p class="text-xs text-ink-muted mt-3">Last interaction</p>+ <p>Today, 9:41 AM</p>+ </PanelSection>+ <PanelSection title="Properties" open>+ <PanelGrid>+ <PanelRow label="Deal Stage">+ <select+ aria-label="Deal stage"+ value={company().stage}+ onChange={(e) =>+ update({ stage: e.currentTarget.value as DealStage })+ }+ >+ <For each={dealStages}>+ {(stage) => <option>{stage}</option>}+ </For>+ </select>+ </PanelRow>+ <PanelRow label="Owner">+ <select+ aria-label="Company owner"+ value={company().owner}+ onChange={(e) =>+ update({+ owner: e.currentTarget.value as+ | HomepagePersonId+ | '',+ })+ }+ >+ <option value="">Unassigned</option>+ <For each={['jacob', 'julia', 'teo'] as const}>+ {(id) => (+ <option value={id}>+ {homepagePeople[id].shortName}+ </option>+ )}+ </For>+ </select>+ </PanelRow>+ <PanelRow label="Revenue">+ <input+ aria-label="Revenue"+ class="sample-inline-input"+ placeholder="Empty"+ value={company().revenue}+ onInput={(e) =>+ update({ revenue: e.currentTarget.value })+ }+ />+ </PanelRow>+ </PanelGrid>+ </PanelSection>+ <PanelSection title="Contacts" open>+ <input+ class="sample-inline-input sample-contact-search"+ aria-label="Search contacts"+ placeholder="Search contacts…"+ value={contactSearch()}+ onInput={(e) => setContactSearch(e.currentTarget.value)}+ />+ <For+ each={company().contacts.filter((c) =>+ `${c.name} ${c.email}`+ .toLowerCase()+ .includes(contactSearch().toLowerCase())+ )}+ >+ {(contact) => (+ <div class="py-2">+ <p>{contact.name}</p>+ <p class="text-xs text-ink-muted">{contact.email}</p>+ </div>+ )}+ </For>+ </PanelSection>+ <PanelSection title="Sharing">+ <p class="text-xs text-ink-muted">+ Visible to your sample workspace.+ </p>+ </PanelSection>+ </>+ }+ >+ <div class="dummy-scroll">+ <div class="mx-auto flex w-full max-w-3xl min-w-0 flex-col gap-6 px-6 pt-12 pb-12">+ <div class="flex items-start gap-3">+ <Buildings class="size-10 shrink-0 text-ink-muted" />+ <div class="min-w-0 flex-1">+ <input+ class="sample-inline-input text-xl font-semibold"+ aria-label="Company name"+ value={company().name}+ onInput={(e) => update({ name: e.currentTarget.value })}+ />+ <textarea+ class="sample-inline-input resize-none text-sm text-ink-muted"+ aria-label="Company description"+ value={company().description}+ onInput={(e) =>+ update({ description: e.currentTarget.value })+ }+ />+ </div>+ </div>+ <details open class="sample-discussion">+ <summary>Discussion</summary>+ <For each={company().comments}>+ {(comment) => <MessageRow message={comment} />}+ </For>+ <ChannelComposer+ label="Comment on company"+ placeholder="Leave a comment…"+ onSend={(body) =>+ update({+ comments: [+ ...company().comments,+ {+ id: crypto.randomUUID(),+ person: 'jacob',+ body,+ time: 'Now',+ },+ ],+ })+ }+ />+ </details>+ <section class="mt-12">+ <h2 class="text-sm mb-6">Emails</h2>+ <For+ each={w.data.emails.filter((e) =>+ company().emailIds.includes(e.id)+ )}+ fallback={+ <p class="text-sm text-ink-muted text-center py-8">+ No email conversations yet.+ </p>+ }+ >+ {(email) => (+ <button+ type="button"+ class="sample-company-list"+ onClick={() => w.open('email', email.id)}+ >+ <span>{email.sender}</span>+ <span class="truncate">{email.subject}</span>+ <span class="ml-auto text-xs text-ink-muted">+ {email.time}+ </span>+ </button>+ )}+ </For>+ </section>+ </div>+ </div>+ </DetailLayout>+ </>+ )}+ </Show>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/WorkspaceDocuments.tsx b/apps/marketing/src/features/marketing/components/workspace/WorkspaceDocuments.tsxnew file mode 100644index 0000000000..69d5034f03--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/WorkspaceDocuments.tsx@@ -0,0 +1,333 @@+import ArrowLeft from '@phosphor/arrow-left.svg';+import Code from '@phosphor/code.svg';+import FileText from '@phosphor/file-text.svg';+import Hash from '@phosphor/hash.svg';+import Shapes from '@phosphor/shapes.svg';+import Share from '@phosphor/share.svg';+import Table from '@phosphor/table.svg';+import { Button } from '@ui';+import { createSignal, For, type JSX, Show } from 'solid-js';+import type { DummyWorkspace } from '../../primitives/createDummyWorkspace';+import { DemoMarkdown } from '../DemoMarkdown';+import { ViewShell } from '../DemoWorkspaceChrome';+import { ChannelComposer } from '../email/frozen/ChannelComposer';+import { SearchBar } from '../email/frozen/SearchBar';+import { DemoTags, TagDot } from './frozen/DemoTags';+import {+ DetailLayout,+ PanelGrid,+ PanelRow,+ PanelSection,+ PanelToggle,+} from './frozen/DetailPanel';+import { PersonIcon } from './frozen/TaskProperties';++// Retain the subset of Markdown represented by the frozen editor presentation.+function markdownFrom(element: HTMLElement): string {+ const inline = (node: Node): string => {+ if (node.nodeType === Node.TEXT_NODE) return node.textContent ?? '';+ const el = node as HTMLElement;+ const content = Array.from(el.childNodes).map(inline).join('');+ if (el.tagName === 'STRONG' || el.tagName === 'B') return `**${content}**`;+ if (el.tagName === 'I' || el.tagName === 'EM') return `*${content}*`;+ if (el.tagName === 'BR') return '\n';+ return content;+ };+ if (!element.children.length) return element.textContent ?? '';+ return Array.from(element.childNodes)+ .map((node) => {+ if (node.nodeType === Node.TEXT_NODE) return node.textContent ?? '';+ const el = node as HTMLElement;+ if (/^H[1-6]$/.test(el.tagName))+ return `${'#'.repeat(Number(el.tagName.slice(1)))} ${inline(el)}`;+ if (el.tagName === 'UL')+ return Array.from(el.children)+ .map(+ (li) =>+ `- ${el.classList.contains('md-check') ? `[${li.classList.contains('checked') ? 'x' : ' '}] ` : ''}${inline(li)}`+ )+ .join('\n');+ return inline(el);+ })+ .join('\n\n');+}++export function WorkspaceDocuments(props: {+ workspace: DummyWorkspace;+ relatedContent?: JSX.Element;+ onShare?: () => void;+}) {+ const w = props.workspace;+ const [panel, setPanel] = createSignal<boolean>();+ const selected = () =>+ w.data.documents.find((doc) => doc.id === w.selected());+ const save = (patch: { title?: string; body?: string; tags?: string[] }) =>+ w.setData('documents', (doc) => doc.id === w.selected(), patch);+ return (+ <Show+ when={selected()}+ fallback={+ <>+ <ViewShell.TopBar>+ <span class="text-sm font-medium">+ {w.view() === 'home' ? 'Home' : w.fileView()}+ </span>+ <Button+ size="sm"+ class="ml-auto"+ onClick={() => {+ const id = crypto.randomUUID();+ w.setData('documents', (docs) => [+ ...docs,+ {+ id,+ title: 'Untitled document',+ body: 'Write something…',+ comments: [],+ },+ ]);+ w.openItem('documents', id);+ }}+ >+ New document+ </Button>+ </ViewShell.TopBar>+ <div class="p-4 max-w-[600px]">+ <SearchBar+ label="Search files"+ placeholder="Search files"+ value={w.query()}+ onValueChange={w.setQuery}+ hotkey="cmd+f"+ />+ </div>+ <div class="dummy-scroll px-2">+ <For+ each={w.data.documents+ .filter(+ (doc) =>+ w.fileView() !== 'Shared with me' || doc.id === 'rollout'+ )+ .filter((doc) =>+ `${doc.title} ${doc.body}`+ .toLowerCase()+ .includes(w.query().toLowerCase())+ )}+ >+ {(doc) => (+ <button+ type="button"+ class="flex items-center gap-3 w-full text-left px-6 min-h-11 rounded-xl hover:bg-list-hover text-sm"+ onClick={() =>+ w.openItem(+ doc.kind === 'spreadsheet' ? 'spreadsheet' : 'documents',+ doc.id+ )+ }+ >+ <Show+ when={doc.kind === 'spreadsheet'}+ fallback={+ <Show+ when={doc.kind === 'canvas'}+ fallback={+ <Show+ when={doc.kind === 'code'}+ fallback={+ <FileText class="size-4 shrink-0 text-[#a17fda]" />+ }+ >+ <Code class="size-4 shrink-0 text-success" />+ </Show>+ }+ >+ <Shapes class="size-4 shrink-0 text-warning" />+ </Show>+ }+ >+ <Table class="size-4 shrink-0 text-success" />+ </Show>+ <span class="truncate flex-1">{doc.title}</span>+ <div class="hidden sm:flex gap-2">+ <For each={doc.tags}>+ {(tag) => (+ <span class="sample-file-tag">+ <TagDot label={tag} />+ {tag}+ </span>+ )}+ </For>+ </div>+ <span class="text-right w-20 shrink-0 text-xs text-ink-extra-muted">+ {doc.updated ?? 'Today'}+ </span>+ </button>+ )}+ </For>+ </div>+ </>+ }+ >+ {(doc) => (+ <>+ <ViewShell.TopBar>+ <Button+ variant="plain"+ size="icon-sm"+ label={w.view() === 'home' ? 'Back to Home' : 'Back to files'}+ onClick={() => w.backToCollection('documents')}+ >+ <ArrowLeft />+ </Button>+ <Show when={w.view() === 'home'}>+ <button+ type="button"+ class="text-sm text-ink-muted"+ onClick={() => w.open('home')}+ >+ Home+ </button>+ <span class="text-ink-muted px-1">›</span>+ </Show>+ <FileText class="size-4 text-document" />+ <span class="text-sm truncate">{doc().title}</span>+ <Button+ size="sm"+ class="ml-auto"+ onClick={() => {+ if (props.onShare) {+ props.onShare();+ return;+ }+ w.post(+ `Shared document: ${doc().title}`,+ undefined,+ undefined,+ doc().id+ );+ w.openItem('messages');+ }}+ >+ <Show when={props.onShare} fallback={<Hash />}>+ <Share />+ </Show>+ {props.onShare ? 'Share' : 'Share in channel'}+ </Button>+ <PanelToggle open={panel()} onChange={setPanel} />+ </ViewShell.TopBar>+ <DetailLayout+ open={panel()}+ panel={+ <>+ <PanelSection title="Actions" open>+ <Button+ size="sm"+ variant="plain"+ onClick={() => w.openItem('agents')}+ >+ ✧ Ask Macro+ </Button>+ </PanelSection>+ <PanelSection title="Details" open>+ <PanelGrid>+ <PanelRow label="Owner">Jacob Beckerman</PanelRow>+ <PanelRow label="Created">Sep 28, 2026</PanelRow>+ <PanelRow label="Last updated">Today</PanelRow>+ </PanelGrid>+ </PanelSection>+ <PanelSection title="Tags" open>+ <DemoTags+ tags={doc().tags ?? []}+ onChange={(tags) => save({ tags })}+ />+ </PanelSection>+ <PanelSection title="Sharing" open>+ <p class="text-xs text-ink-muted">Launch team can edit</p>+ </PanelSection>+ <PanelSection title="References">+ <button+ type="button"+ onClick={() => {+ w.setChannel('launch');+ w.openItem('messages');+ }}+ >+ #launch+ </button>+ </PanelSection>+ <PanelSection title="History">+ Changes stay in this session.+ </PanelSection>+ </>+ }+ >+ <div class="dummy-scroll px-6">+ <div class="mx-auto max-w-3xl pt-12 pb-12">+ <div+ role="textbox"+ aria-label="Document title"+ contentEditable+ class="text-2xl font-semibold outline-none mb-6"+ onBlur={(e) =>+ save({+ title:+ e.currentTarget.innerText.trim() || 'Untitled document',+ })+ }+ >+ {doc().title}+ </div>+ <div class="mb-6">+ <DemoTags+ tags={doc().tags ?? []}+ onChange={(tags) => save({ tags })}+ />+ </div>+ <div+ contentEditable+ role="textbox"+ aria-label="Document body"+ aria-multiline="true"+ class="outline-none text-base"+ onBlur={(e) => {+ const content = e.currentTarget.querySelector<HTMLElement>(+ '.website-demo-markdown'+ );+ save({ body: markdownFrom(content ?? e.currentTarget) });+ }}+ onClick={(e) => {+ const li = (e.target as HTMLElement).closest('li');+ if (li?.parentElement?.classList.contains('md-check')) {+ const bounds = li.getBoundingClientRect();+ if (e.clientX < bounds.left) {+ li.classList.toggle('checked');+ li.classList.toggle('md-strike');+ }+ }+ }}+ >+ <DemoMarkdown markdown={doc().body} />+ </div>+ {props.relatedContent}+ <div class="mt-8 mb-3 text-xs text-ink-muted">Discussion</div>+ <For each={doc().comments}>+ {(comment) => (+ <div class="flex items-start gap-2 mb-4 text-sm">+ <PersonIcon person={comment.person} />+ <p>{comment.body}</p>+ </div>+ )}+ </For>+ <ChannelComposer+ label="Comment on document"+ placeholder="Leave a comment…"+ onSend={(body) => w.comment(doc().id, body, true)}+ />+ </div>+ </div>+ </DetailLayout>+ </>+ )}+ </Show>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/WorkspaceEmail.test.tsx b/apps/marketing/src/features/marketing/components/workspace/WorkspaceEmail.test.tsxnew file mode 100644index 0000000000..444f066251--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/WorkspaceEmail.test.tsx@@ -0,0 +1,105 @@+import {+ cleanup,+ fireEvent,+ render,+ screen,+ within,+} from '@solidjs/testing-library';+import { createSignal } from 'solid-js';+import { afterEach, beforeEach, expect, it, vi } from 'vitest';+import type { EmailTagId } from '../../core/demo-email';+import { createDummyWorkspace } from '../../primitives/createDummyWorkspace';+import { WorkspaceEmail } from './WorkspaceEmail';++beforeEach(() => {+ vi.stubGlobal('PointerEvent', MouseEvent);+ vi.stubGlobal(+ 'ResizeObserver',+ class {+ observe() {}+ unobserve() {}+ disconnect() {}+ }+ );+ vi.stubGlobal('fetch', vi.fn());+});+afterEach(() => {+ cleanup();+ expect(fetch).not.toHaveBeenCalled();+ vi.unstubAllGlobals();+});++it('combines tag, account and search filters without losing unrelated emails', () => {+ let changeAccount!: (value: string) => void;+ let changeTag!: (value: EmailTagId | undefined) => void;+ const view = render(() => {+ const w = createDummyWorkspace('email');+ const [account, setAccount] = createSignal('all');+ const [tag, setTag] = createSignal<EmailTagId>();+ changeAccount = setAccount;+ changeTag = setTag;+ return (+ <WorkspaceEmail workspace={w} tab="all" account={account()} tag={tag()} />+ );+ });+ changeTag('customers');+ expect(view.getAllByRole('button', { name: /^Read / })).toHaveLength(4);+ fireEvent.input(view.getByLabelText('Search email'), {+ target: { value: 'pilot' },+ });+ expect(view.getAllByRole('button', { name: /^Read / })).toHaveLength(1);+ expect(+ view.getByRole('button', { name: 'Read Feedback from the pilot team' })+ ).toBeTruthy();+ changeAccount('personal');+ expect(view.getByText('No matching messages.')).toBeTruthy();+ changeTag(undefined);+ fireEvent.input(view.getByLabelText('Search email'), {+ target: { value: '' },+ });+ expect(view.getAllByRole('button', { name: /^Read / })).toHaveLength(4);+});++it('edits sample tags in the details panel and keeps them after reopening', async () => {+ const view = render(() => (+ <WorkspaceEmail+ workspace={createDummyWorkspace('email')}+ tab="all"+ account="all"+ />+ ));+ fireEvent.click(+ view.getByRole('button', { name: 'Read Next steps for our team' })+ );+ fireEvent.click(view.getByRole('button', { name: 'Toggle email details' }));+ fireEvent.pointerDown(view.getByRole('button', { name: 'Add tags' }), {+ button: 0,+ ctrlKey: false,+ pointerType: 'mouse',+ });+ fireEvent.keyDown(+ await screen.findByRole('menuitemcheckbox', { name: 'Launch' }),+ { key: 'Enter' }+ );+ fireEvent.keyDown(+ screen.getByRole('menuitemcheckbox', { name: 'Customers' }),+ { key: 'Enter' }+ );+ fireEvent.keyDown(screen.getByRole('menu'), { key: 'Escape' });+ fireEvent.click(+ within(view.getByRole('navigation', { name: 'Email location' })).getByRole(+ 'button',+ { name: 'All' }+ )+ );+ const row = view.getByRole('button', {+ name: 'Read Next steps for our team',+ });+ expect(within(row).getAllByText('Launch').length).toBeGreaterThan(0);+ expect(within(row).queryByText('Customers')).toBeNull();+ fireEvent.click(row);+ expect(view.getByRole('button', { name: 'Change tag Launch' })).toBeTruthy();+ expect(+ view.queryByRole('button', { name: 'Change tag Customers' })+ ).toBeNull();+});diff --git a/apps/marketing/src/features/marketing/components/workspace/WorkspaceEmail.tsx b/apps/marketing/src/features/marketing/components/workspace/WorkspaceEmail.tsxnew file mode 100644index 0000000000..126dc0e042--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/WorkspaceEmail.tsx@@ -0,0 +1,447 @@+import CaretDown from '@phosphor/caret-down.svg';+import CaretRight from '@phosphor/caret-right.svg';+import CaretUp from '@phosphor/caret-up.svg';+import Check from '@phosphor/check.svg';+import Envelope from '@phosphor/envelope.svg';+import EnvelopeOpen from '@phosphor/envelope-open.svg';+import Funnel from '@phosphor/funnel-simple.svg';+import Link from '@phosphor/link.svg';+import Sidebar from '@phosphor/sidebar-simple.svg';+import Upload from '@phosphor/upload-simple.svg';+import { Button, Dropdown } from '@ui';+import { createSignal, For, Show } from 'solid-js';+import { type EmailTagId, emailTags } from '../../core/demo-email';+import { homepagePeople } from '../../core/homepage-demo-people';+import type { DummyWorkspace } from '../../primitives/createDummyWorkspace';+import { ViewShell } from '../DemoWorkspaceChrome';+import { EmailAvatar } from '../email/frozen/EmailAvatar';+import { EmailRows } from '../email/frozen/EmailRows';+import { type MailTab, mailTabs } from '../email/frozen/EmailShell';+import { EmailThread } from '../email/frozen/EmailThread';+import { MessageCard } from '../email/frozen/MessageCard';+import { SearchBar } from '../email/frozen/SearchBar';+import HomepageEmailCompose from '../HomepageEmailCompose';+import { DemoTags } from './frozen/DemoTags';+import { DetailLayout, PanelSection } from './frozen/DetailPanel';+import { EmailReply } from './frozen/EmailReply';++export function WorkspaceEmail(props: {+ workspace: DummyWorkspace;+ tab: MailTab;+ account: string;+ tag?: EmailTagId;+ onClearTag?: () => void;+ navigationOpen?: boolean;+ onToggleNavigation?: () => void;+}) {+ const w = props.workspace;+ const [reply, setReply] = createSignal<string>();+ const [panel, setPanel] = createSignal(false);+ const [unreadOnly, setUnreadOnly] = createSignal(false);+ const [copied, setCopied] = createSignal(false);+ const selected = () =>+ w.data.emails.find((email) => email.id === w.selected());+ const title = () =>+ w.view() === 'home'+ ? 'Home'+ : (emailTags.find((tag) => tag.id === props.tag)?.label ??+ mailTabs.find((tab) => tab.id === props.tab)?.label ??+ 'Email');+ const emails = () =>+ w.data.emails.filter(+ (email) =>+ !email.archived &&+ (!props.tag || email.tags?.includes(props.tag)) &&+ (!unreadOnly() || email.unread) &&+ (props.account === 'all' || email.account === props.account) &&+ `${email.sender} ${email.subject} ${email.body}`+ .toLowerCase()+ .includes(w.query().toLowerCase()) &&+ (props.tab === 'all' ||+ (props.tab === 'favorites' && email.favorite) ||+ (props.tab === 'important' &&+ email.folder === 'inbox' &&+ !email.noise) ||+ (props.tab === 'noise' && email.folder === 'inbox' && email.noise) ||+ props.tab === email.folder ||+ (props.tab === 'shared' && !!email.shared))+ );+ const adjacent = (offset: number) => {+ const list = emails();+ const index = list.findIndex((e) => e.id === w.selected());+ const next = list[index + offset];+ if (next) w.openItem('email', next.id);+ };+ const openReply = () => setReply(w.selected());+ const footer = () => (+ <Show+ when={reply() === w.selected()}+ fallback={+ <button+ type="button"+ class="sample-email-reply-placeholder"+ onClick={openReply}+ >+ <img+ src={homepagePeople.jacob.photo}+ class="size-6 rounded-full"+ alt=""+ />+ Reply...+ </button>+ }+ >+ <EmailReply+ to={selected()?.sender ?? ''}+ onDiscard={() => setReply(undefined)}+ onSend={(body, to, schedule, recipients) => {+ const email = selected();+ if (!email) return;+ w.sendEmail(+ `Re: ${email.subject}`,+ body,+ to,+ email.id,+ schedule,+ recipients+ );+ setReply(undefined);+ }}+ />+ </Show>+ );+ return (+ <>+ <ViewShell.TopBar>+ <Show when={!props.navigationOpen}>+ <Button+ size="icon-sm"+ variant="plain"+ label="Toggle email navigation"+ onClick={props.onToggleNavigation}+ >+ <Sidebar />+ </Button>+ </Show>+ <nav+ class="flex items-center gap-2 min-w-0 text-sm"+ aria-label="Email location"+ >+ <button+ type="button"+ class="text-ink-muted"+ onClick={() => w.backToCollection('email')}+ >+ {title()}+ </button>+ <Show when={selected() || w.selected() === 'new'}>+ <CaretRight class="size-3 shrink-0 text-ink-muted" />+ <Envelope class="size-3.5 shrink-0" />+ <span class="truncate font-medium">+ {selected()?.subject ?? 'New email'}+ </span>+ </Show>+ </nav>+ <Show when={selected()}>+ {(email) => (+ <div class="ml-auto shrink-0 flex items-center gap-1">+ <Button+ size="icon-sm"+ variant="plain"+ label="Mark as unread"+ onClick={() => {+ w.setData(+ 'emails',+ (e) => e.id === email().id,+ 'unread',+ true+ );+ w.backToCollection('email');+ }}+ >+ <EnvelopeOpen />+ </Button>+ <Button+ size="icon-sm"+ variant="plain"+ label="Mark done"+ onClick={() => {+ w.setData(+ 'emails',+ (e) => e.id === email().id,+ 'archived',+ true+ );+ w.backToCollection('email');+ }}+ >+ <Check />+ </Button>+ <Button+ size="icon-sm"+ variant="plain"+ label="Previous email"+ disabled={emails().findIndex((e) => e.id === email().id) <= 0}+ onClick={() => adjacent(-1)}+ >+ <CaretUp />+ </Button>+ <Button+ size="icon-sm"+ variant="plain"+ label="Next email"+ disabled={+ emails().findIndex((e) => e.id === email().id) >=+ emails().length - 1+ }+ onClick={() => adjacent(1)}+ >+ <CaretDown />+ </Button>+ <Dropdown modal={false}>+ <Dropdown.Trigger+ size="sm"+ variant="plain"+ aria-label="Share email"+ >+ <Upload class="size-3" />+ Share+ </Dropdown.Trigger>+ <Dropdown.Content portalScope="local">+ <Dropdown.Group>+ <Dropdown.GroupLabel>Share to channel</Dropdown.GroupLabel>+ <For each={w.data.channels.filter((c) => !c.person)}>+ {(channel) => (+ <Dropdown.Item+ onSelect={() => {+ w.setChannel(channel.id);+ w.shareEmail(email().id);+ }}+ >+ #{channel.id}+ </Dropdown.Item>+ )}+ </For>+ </Dropdown.Group>+ </Dropdown.Content>+ </Dropdown>+ <Button+ size="icon-sm"+ variant="plain"+ label={copied() ? 'Link copied' : 'Copy email link'}+ onClick={async () => {+ await navigator.clipboard.writeText(+ `${location.origin}/demo#email-${email().id}`+ );+ setCopied(true);+ }}+ >+ <Link />+ </Button>+ <Button+ size="icon-sm"+ variant="plain"+ label="Toggle email details"+ aria-expanded={panel()}+ onClick={() => setPanel(!panel())}+ >+ <Sidebar />+ </Button>+ </div>+ )}+ </Show>+ </ViewShell.TopBar>+ <Show+ when={w.selected() === 'new'}+ fallback={+ <Show+ when={selected()}+ fallback={+ <>+ <div class="px-4 py-4 flex items-center justify-between gap-3">+ <SearchBar+ label="Search email"+ placeholder="Search email"+ value={w.query()}+ onValueChange={w.setQuery}+ class="max-w-md flex-1"+ hotkey="cmd+f"+ />+ <div class="flex items-center gap-2">+ <Show when={props.tag}>+ <Button+ size="sm"+ variant="plain"+ onClick={props.onClearTag}+ >+ Clear tag+ </Button>+ </Show>+ <Dropdown modal={false}>+ <Dropdown.Trigger+ size="icon-sm"+ variant="plain"+ aria-label="Filter email"+ >+ <Funnel class={unreadOnly() ? 'text-accent' : ''} />+ </Dropdown.Trigger>+ <Dropdown.Content portalScope="local">+ <Dropdown.Item+ onSelect={() => setUnreadOnly(!unreadOnly())}+ >+ <span class="w-4">+ {unreadOnly() && <Check class="size-4" />}+ </span>+ Unread only+ </Dropdown.Item>+ </Dropdown.Content>+ </Dropdown>+ </div>+ </div>+ <div class="dummy-scroll mail-main">+ <EmailRows+ emails={emails()}+ onOpen={(email) => {+ w.setData(+ 'emails',+ (e) => e.id === email.id,+ 'unread',+ false+ );+ w.openItem('email', email.id);+ }}+ />+ </div>+ </>+ }+ >+ {(email) => (+ <DetailLayout+ open={panel()}+ panel={+ <>+ <PanelSection title="Details" open>+ <p class="mb-2">From {email().sender}</p>+ <p class="text-ink-muted text-xs">To Jacob Beckerman</p>+ <Button+ size="sm"+ class="mt-4"+ onClick={() =>+ w.setData(+ 'emails',+ (e) => e.id === email().id,+ 'noise',+ (v) => !v+ )+ }+ >+ Move to {email().noise ? 'Signal' : 'Noise'}+ </Button>+ </PanelSection>+ <PanelSection title="Tags" open>+ <DemoTags+ options={emailTags}+ tags={emailTags+ .filter((tag) => email().tags?.includes(tag.id))+ .map((tag) => tag.label)}+ onChange={(labels) =>+ w.setData(+ 'emails',+ (e) => e.id === email().id,+ 'tags',+ emailTags+ .filter((tag) => labels.includes(tag.label))+ .map((tag) => tag.id)+ )+ }+ />+ </PanelSection>+ </>+ }+ >+ <div class="dummy-scroll sample-email-thread">+ <EmailThread+ hideHeader+ email={email()}+ onReply={openReply}+ hideReply={email().replies.length > 0}+ replyContent={footer()}+ participants={+ <div class="flex gap-2 mb-5 -mt-3 text-xs text-ink-muted">+ <For+ each={[+ ...email()+ .sender.split(',')+ .map((name) => name.trim()),+ 'Jacob',+ ]}+ >+ {(name) => (+ <span class="inline-flex items-center gap-1.5 border border-edge-muted rounded-full px-2 py-1">+ <EmailAvatar name={name} class="size-4" />+ {name}+ </span>+ )}+ </For>+ </div>+ }+ >+ <For each={email().replies}>+ {(message, index) => (+ <div class="mt-2">+ <MessageCard+ messageId={message.id}+ isSelected={false}+ allowHover={false}+ isTouch={false}+ >+ <div class="flex items-center gap-2 text-sm">+ <img+ class="size-6 rounded-full"+ src={homepagePeople.jacob.photo}+ alt=""+ />+ <span>Jacob</span>+ <span class="text-ink-extra-muted">+ to {message.to ?? email().sender}+ </span>+ <span class="ml-auto text-xs text-ink-extra-muted">+ {message.time}+ </span>+ </div>+ <Show when={message.cc || message.bcc}>+ <p class="pt-2 text-xs text-ink-muted">+ {message.cc && `Cc: ${message.cc}`}+ {message.bcc && ` Bcc: ${message.bcc}`}+ </p>+ </Show>+ <p class="py-6 text-[15px] whitespace-pre-wrap">+ {message.body}+ </p>+ <Show when={index() === email().replies.length - 1}>+ <div class="-mx-4 border-t border-ink/20 px-4">+ {footer()}+ </div>+ </Show>+ </MessageCard>+ </div>+ )}+ </For>+ </EmailThread>+ </div>+ </DetailLayout>+ )}+ </Show>+ }+ >+ <div class="dummy-scroll p-4">+ <HomepageEmailCompose+ appChrome+ draft={{ subject: '', to: '', body: '' }}+ onSend={(draft) => w.sendEmail(draft.subject, draft.body, draft.to)}+ />+ </div>+ </Show>+ </>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/WorkspaceEventDetails.test.tsx b/apps/marketing/src/features/marketing/components/workspace/WorkspaceEventDetails.test.tsxnew file mode 100644index 0000000000..c7e48586fb--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/WorkspaceEventDetails.test.tsx@@ -0,0 +1,40 @@+import { cleanup, fireEvent, render } from '@solidjs/testing-library';+import { afterEach, expect, it, vi } from 'vitest';+import { WorkspaceEventDetails } from './WorkspaceEventDetails';++afterEach(cleanup);+it('opens an event summary, exposes editing explicitly, and closes with Escape', () => {+ const update = vi.fn();+ const close = vi.fn();+ const view = render(() => (+ <WorkspaceEventDetails+ event={{+ id: 'launch-review',+ title: 'Launch review',+ date: '2026-09-29',+ start: 13,+ duration: 1,+ calendar: 'work',+ description: 'Review the launch plan.',+ }}+ onUpdate={update}+ onClose={close}+ />+ ));+ expect(view.queryByRole('textbox', { name: 'Event title' })).toBeNull();+ expect(view.getByText('4 attendees')).toBeTruthy();+ fireEvent.click(view.getByRole('button', { name: 'Maybe' }));+ expect(+ view.getByRole('button', { name: 'Maybe' }).getAttribute('aria-pressed')+ ).toBe('true');+ expect(update).not.toHaveBeenCalled();+ fireEvent.click(view.getByRole('button', { name: 'Edit event' }));+ fireEvent.input(view.getByRole('textbox', { name: 'Event title' }), {+ target: { value: 'Launch review — updated' },+ });+ expect(update).toHaveBeenCalledWith({ title: 'Launch review — updated' });+ fireEvent.click(view.getByRole('button', { name: 'Done' }));+ expect(view.queryByRole('textbox', { name: 'Event title' })).toBeNull();+ fireEvent.keyDown(window, { key: 'Escape' });+ expect(close).toHaveBeenCalledOnce();+});diff --git a/apps/marketing/src/features/marketing/components/workspace/WorkspaceEventDetails.tsx b/apps/marketing/src/features/marketing/components/workspace/WorkspaceEventDetails.tsxnew file mode 100644index 0000000000..e8b0e458b5--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/WorkspaceEventDetails.tsx@@ -0,0 +1,194 @@+import Bell from '@phosphor/bell.svg';+import Calendar from '@phosphor/calendar-blank.svg';+import Check from '@phosphor/check.svg';+import Pencil from '@phosphor/pencil-simple.svg';+import TextAlignLeft from '@phosphor/text-align-left.svg';+import User from '@phosphor/user.svg';+import Users from '@phosphor/users-three.svg';+import X from '@phosphor/x.svg';+import { Button } from '@ui';+import { createSignal, For, onCleanup, onMount, Show } from 'solid-js';+import { homepagePeople } from '../../core/homepage-demo-people';+import type { SampleEvent } from '../../core/workspace-fixtures';++function timeLabel(hour: number) {+ return `${Math.floor(hour) % 12 || 12}${hour % 1 ? ':30' : ''}${hour >= 12 ? 'pm' : 'am'}`;+}++/** Calendar event presentation, backed only by the sample workspace. */+export function WorkspaceEventDetails(props: {+ event: SampleEvent;+ onUpdate: (patch: Partial<SampleEvent>) => void;+ onClose: () => void;+}) {+ const [editing, setEditing] = createSignal(false);+ const [response, setResponse] = createSignal('Yes');+ const handleEscape = (event: KeyboardEvent) => {+ if (event.key === 'Escape') props.onClose();+ };+ onMount(() => window.addEventListener('keydown', handleEscape));+ onCleanup(() => window.removeEventListener('keydown', handleEscape));+ return (+ <div class="sample-event-panel" role="dialog" aria-label="Event details">+ <div class="flex justify-end gap-1 mb-1">+ <Button+ size="icon-sm"+ variant="plain"+ label="Edit event"+ onClick={() => setEditing(!editing())}+ >+ <Pencil />+ </Button>+ <Button+ size="icon-sm"+ variant="plain"+ label="Close event"+ onClick={props.onClose}+ >+ <X />+ </Button>+ </div>+ <Show+ when={editing()}+ fallback={+ <>+ <div class="sample-event-detail-row">+ <span+ class="size-2.5 rounded shrink-0 mt-1.5"+ style={{+ 'background-color':+ props.event.calendar === 'personal' ? '#60a5d5' : '#74bcc5',+ }}+ />+ <div>+ <h2 class="text-sm font-semibold">{props.event.title}</h2>+ <p class="text-xs text-ink-muted mt-1">+ {new Date(`${props.event.date}T12:00:00`).toLocaleDateString(+ 'en-US',+ { weekday: 'short', month: 'long', day: 'numeric' }+ )}{' '}+ · {timeLabel(props.event.start)}–+ {timeLabel(props.event.start + props.event.duration)}+ </p>+ </div>+ </div>+ <div class="sample-event-detail-row">+ <TextAlignLeft />+ <p>{props.event.description}</p>+ </div>+ <div class="sample-event-detail-row">+ <Bell />+ <span>10 minutes before</span>+ </div>+ <div class="sample-event-detail-row">+ <Calendar />+ <span>+ {props.event.calendar === 'personal'+ ? '[email protected]'+ : '[email protected]'}+ </span>+ </div>+ <div class="sample-event-detail-row">+ <User />+ <img+ class="size-6 rounded-full"+ src={homepagePeople.jacob.photo}+ alt=""+ />+ <span>+ <span class="block text-[10px] text-ink-extra-muted">+ Organizer+ </span>+ Jacob Beckerman+ </span>+ </div>+ <div class="sample-event-detail-row mt-6">+ <Users />+ <span>4 attendees</span>+ </div>+ <div class="pl-7 pb-4 space-y-3">+ <For each={['jacob', 'julia', 'teo', 'valentina'] as const}>+ {(person) => (+ <div class="flex items-center gap-3 text-xs text-ink-muted">+ <img+ class="size-6 rounded-full"+ src={homepagePeople[person].photo}+ alt=""+ />+ <span class="flex-1">+ {homepagePeople[person].name}+ {person === 'jacob' ? ' (you)' : ''}+ <span class="block text-[10px] text-ink-extra-muted">+ {person === 'jacob' ? 'Organizer' : 'Optional'}+ </span>+ </span>+ <Check class="size-3 text-success" />+ </div>+ )}+ </For>+ </div>+ <div class="sample-event-rsvp">+ <span class="mr-auto">Going?</span>+ <For each={['Yes', 'Maybe', 'No']}>+ {(value) => (+ <button+ type="button"+ aria-pressed={response() === value}+ onClick={() => setResponse(value)}+ >+ {value}+ </button>+ )}+ </For>+ </div>+ </>+ }+ >+ <label>+ Title+ <input+ aria-label="Event title"+ value={props.event.title}+ onInput={(e) => props.onUpdate({ title: e.currentTarget.value })}+ />+ </label>+ <label>+ Date+ <input+ type="date"+ aria-label="Event date"+ value={props.event.date}+ onInput={(e) => props.onUpdate({ date: e.currentTarget.value })}+ />+ </label>+ <label>+ Start+ <select+ aria-label="Event start"+ value={props.event.start}+ onChange={(e) =>+ props.onUpdate({ start: Number(e.currentTarget.value) })+ }+ >+ <For each={Array.from({ length: 25 }, (_, i) => 8 + i / 2)}>+ {(hour) => <option value={hour}>{timeLabel(hour)}</option>}+ </For>+ </select>+ </label>+ <label>+ Description+ <textarea+ aria-label="Event description"+ value={props.event.description}+ onInput={(e) =>+ props.onUpdate({ description: e.currentTarget.value })+ }+ />+ </label>+ <Button size="sm" onClick={() => setEditing(false)}>+ Done+ </Button>+ </Show>+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/WorkspaceHomeFeed.tsx b/apps/marketing/src/features/marketing/components/workspace/WorkspaceHomeFeed.tsxnew file mode 100644index 0000000000..9ef72fba47--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/WorkspaceHomeFeed.tsx@@ -0,0 +1,105 @@+import Reply from '@phosphor/arrow-bend-up-left.svg';+import Envelope from '@phosphor/envelope.svg';+import File from '@phosphor/file.svg';+import Hash from '@phosphor/hash.svg';+import ListChecks from '@phosphor/list-checks.svg';+import Table from '@phosphor/table.svg';+import { For, Show } from 'solid-js';+import { Dynamic } from 'solid-js/web';+import type { WorkspaceView } from '../../core/dummy-workspace';+import { homepagePeople } from '../../core/homepage-demo-people';+import {+ type HomeFeedItem,+ sampleHomeFeed,+} from '../../core/workspace-home-feed';+import { sampleAgentSessions } from '../../core/workspace-parity-fixtures';+import type { DummyWorkspace } from '../../primitives/createDummyWorkspace';+import { ViewSidebar } from '../DemoViewSidebar';+import { ModelIcon } from './frozen/model-picker/ProviderIcon';++export function WorkspaceHomeFeed(props: {+ workspace: DummyWorkspace;+ navigate: (view: WorkspaceView, id?: string) => void;+}) {+ const w = props.workspace;+ const title = (item: HomeFeedItem) =>+ item.title ??+ (item.view === 'tasks'+ ? w.data.tasks.find((task) => task.id === item.id)?.title+ : item.view === 'email'+ ? w.data.emails.find((email) => email.id === item.id)?.subject+ : w.data.documents.find((doc) => doc.id === item.id)?.title);+ const icon = (item: HomeFeedItem) =>+ item.thread+ ? Reply+ : item.view === 'messages'+ ? Hash+ : item.view === 'email'+ ? Envelope+ : item.view === 'tasks'+ ? ListChecks+ : item.view === 'spreadsheet'+ ? Table+ : File;+ const active = (item: HomeFeedItem) =>+ w.contentView() === item.view &&+ (item.view === 'messages'+ ? w.channel() === item.id && w.channelThread() === item.thread+ : w.selected() === item.id);+ return (+ <For each={sampleHomeFeed}>+ {(group) => (+ <section>+ <p class="px-2 text-xs text-ink-muted mb-3">{group.title}</p>+ <ViewSidebar.Nav>+ <For each={group.items}>+ {(item) => (+ <ViewSidebar.Item+ active={active(item)}+ title={title(item)}+ onClick={() => {+ props.navigate(item.view, item.id);+ if (item.view === 'messages') {+ w.setChannel(item.id);+ w.setChannelThread(item.thread);+ }+ }}+ >+ <Show+ when={item.person}+ fallback={+ <ViewSidebar.Icon>+ <Show+ when={item.view === 'agents'}+ fallback={<Dynamic component={icon(item)} />}+ >+ <ModelIcon+ provider={+ sampleAgentSessions.find(+ (session) => session.id === item.id+ )?.provider+ }+ class="size-5 text-ink-muted"+ />+ </Show>+ </ViewSidebar.Icon>+ }+ >+ {(person) => (+ <img+ class="size-5 shrink-0 rounded-full"+ src={homepagePeople[person()].photo}+ alt=""+ />+ )}+ </Show>+ <span class="truncate">{title(item)}</span>+ </ViewSidebar.Item>+ )}+ </For>+ </ViewSidebar.Nav>+ </section>+ )}+ </For>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/WorkspaceSidebar.tsx b/apps/marketing/src/features/marketing/components/workspace/WorkspaceSidebar.tsxnew file mode 100644index 0000000000..29a1ae2814--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/WorkspaceSidebar.tsx@@ -0,0 +1,424 @@+import Calendar from '@phosphor/calendar-blank.svg';+import CheckSquare from '@phosphor/check-square.svg';+import Clock from '@phosphor/clock.svg';+import File from '@phosphor/file.svg';+import Folder from '@phosphor/folder-simple.svg';+import GitPull from '@phosphor/git-pull-request.svg';+import Hash from '@phosphor/hash.svg';+import ListChecks from '@phosphor/list-checks.svg';+import Note from '@phosphor/note-pencil.svg';+import Plugs from '@phosphor/plugs-connected.svg';+import Plus from '@phosphor/plus.svg';+import Sidebar from '@phosphor/sidebar-simple.svg';+import Sparkle from '@phosphor/sparkle.svg';+import Stack from '@phosphor/stack.svg';+import Users from '@phosphor/users-three.svg';+import { TabsInset } from '@ui/components/TabsInset';+import { createSignal, For, type JSX, Match, Show, Switch } from 'solid-js';+import type { WorkspaceView } from '../../core/dummy-workspace';+import { homepagePeople } from '../../core/homepage-demo-people';+import { sampleAgentSessions } from '../../core/workspace-parity-fixtures';+import type { DummyWorkspace } from '../../primitives/createDummyWorkspace';+import { ViewSidebar } from '../DemoViewSidebar';+import { Segments } from './frozen/DetailPanel';+import { ModelIcon } from './frozen/model-picker/ProviderIcon';+import { MiniCalendar } from './WorkspaceCalendar';+import { WorkspaceHomeFeed } from './WorkspaceHomeFeed';+import type { TaskFilter } from './WorkspaceTasks';++function Group(props: { title: string; children: JSX.Element }) {+ return (+ <section>+ <p class="px-2 text-xs text-ink-muted mb-3">{props.title}</p>+ <ViewSidebar.Nav>{props.children}</ViewSidebar.Nav>+ </section>+ );+}+export function WorkspaceSidebar(props: {+ workspace: DummyWorkspace;+ title: string;+ collapse: () => void;+ create: () => void;+ navigate: (view: WorkspaceView, id?: string) => void;+ taskFilter: TaskFilter;+ setTaskFilter: (value: TaskFilter) => void;+}) {+ const w = props.workspace;+ const [chatList, setChatList] = createSignal<'All' | 'Recent'>('All');+ const channel = (id: string) => {+ w.setChannel(id);+ props.navigate('messages', id);+ };+ const taskFilter = (id: TaskFilter) => {+ props.setTaskFilter(id);+ props.navigate('tasks');+ };+ return (+ <ViewSidebar.Root aria-label={`${props.title} navigation`}>+ <ViewSidebar.Header>+ <ViewSidebar.Title>{props.title}</ViewSidebar.Title>+ <ViewSidebar.Control label="Collapse sidebar" onClick={props.collapse}>+ <Sidebar />+ </ViewSidebar.Control>+ </ViewSidebar.Header>+ <Switch+ fallback={+ <ViewSidebar.Primary>+ <ViewSidebar.Action onClick={props.create}>+ <ViewSidebar.Icon>+ <Plus />+ </ViewSidebar.Icon>+ {w.view() === 'tasks'+ ? 'New task'+ : w.view() === 'crm'+ ? 'New company'+ : 'New'}+ </ViewSidebar.Action>+ </ViewSidebar.Primary>+ }+ >+ <Match when={w.view() === 'messages'}>+ <div class="px-4 pb-4">+ <Segments+ sidebar+ label="Chat lists"+ items={['All', 'Recent']}+ value={chatList()}+ onChange={setChatList}+ />+ </div>+ </Match>+ <Match when={w.view() === 'home' || w.view() === 'agents'}>+ <ViewSidebar.Primary>+ <ViewSidebar.Action onClick={() => props.navigate('agents', 'new')}>+ <ViewSidebar.Icon>+ <Plus />+ </ViewSidebar.Icon>+ {w.view() === 'home' ? 'New chat' : 'New conversation'}+ </ViewSidebar.Action>+ </ViewSidebar.Primary>+ </Match>+ </Switch>+ <ViewSidebar.Content>+ <Switch>+ <Match when={w.view() === 'tasks'}>+ <ViewSidebar.Nav>+ <ViewSidebar.Item+ onClick={() => taskFilter('reviews')}+ active={props.taskFilter === 'reviews'}+ >+ <ViewSidebar.Icon>+ <GitPull />+ </ViewSidebar.Icon>+ Reviews+ </ViewSidebar.Item>+ </ViewSidebar.Nav>+ <ViewSidebar.Nav>+ <For+ each={+ [+ { id: 'mine', label: 'My Tasks', icon: CheckSquare },+ { id: 'all', label: 'All Tasks', icon: ListChecks },+ { id: 'created', label: 'Created by me', icon: Note },+ { id: 'Launch', label: 'Projects', icon: Stack },+ ] as const+ }+ >+ {(item) => (+ <ViewSidebar.Item+ active={props.taskFilter === item.id}+ onClick={() => taskFilter(item.id)}+ >+ <ViewSidebar.Icon>+ <item.icon />+ </ViewSidebar.Icon>+ {item.label}+ </ViewSidebar.Item>+ )}+ </For>+ </ViewSidebar.Nav>+ <Group title="Tags">+ <For each={['Launch', 'Product', 'Customers'] as const}>+ {(tag, i) => (+ <ViewSidebar.Item+ active={props.taskFilter === tag}+ onClick={() => taskFilter(tag)}+ >+ <span class="sample-tag-dot" data-color={i()} />+ {tag}+ </ViewSidebar.Item>+ )}+ </For>+ </Group>+ </Match>+ <Match when={w.view() === 'documents' || w.view() === 'spreadsheet'}>+ <ViewSidebar.Nav>+ <For+ each={[+ { label: 'My Files', icon: File },+ { label: 'Recent', icon: Clock },+ { label: 'Shared with me', icon: Users },+ ]}+ >+ {(item) => (+ <ViewSidebar.Item+ active={!w.selected() && w.fileView() === item.label}+ onClick={() => {+ w.setFileView(item.label);+ props.navigate('documents');+ }}+ >+ <ViewSidebar.Icon>+ <item.icon />+ </ViewSidebar.Icon>+ {item.label}+ </ViewSidebar.Item>+ )}+ </For>+ </ViewSidebar.Nav>+ <Group title="Favorites">+ <For each={w.data.documents.slice(0, 3)}>+ {(doc) => (+ <ViewSidebar.Item+ active={w.selected() === doc.id}+ onClick={() => props.navigate('documents', doc.id)}+ >+ <ViewSidebar.Icon>+ <File class="text-document" />+ </ViewSidebar.Icon>+ <span class="truncate">{doc.title}</span>+ </ViewSidebar.Item>+ )}+ </For>+ </Group>+ <Group title="Folders">+ <ViewSidebar.Item+ onClick={() => {+ w.setFileView('My Files');+ props.navigate('documents');+ }}+ >+ <ViewSidebar.Icon>+ <Folder />+ </ViewSidebar.Icon>+ Drive+ </ViewSidebar.Item>+ <ViewSidebar.Item+ onClick={() => {+ w.setFileView('Shared with me');+ props.navigate('documents');+ }}+ >+ <ViewSidebar.Icon>+ <Folder />+ </ViewSidebar.Icon>+ Launch team+ </ViewSidebar.Item>+ </Group>+ </Match>+ <Match when={w.view() === 'messages'}>+ <Show when={chatList() === 'All'}>+ <Group title="Favorites">+ <For+ each={w.data.channels.filter((c) => !c.person).slice(0, 2)}+ >+ {(c) => (+ <ViewSidebar.Item onClick={() => channel(c.id)}>+ <ViewSidebar.Icon>+ <Hash />+ </ViewSidebar.Icon>+ {c.id}+ </ViewSidebar.Item>+ )}+ </For>+ </Group>+ </Show>+ <Group+ title={chatList() === 'All' ? 'Channels' : 'Recent conversations'}+ >+ <For+ each={w.data.channels.filter(+ (c) =>+ !c.person &&+ (chatList() === 'All' ||+ c.id === w.channel() ||+ c.id === 'launch')+ )}+ >+ {(c) => (+ <ViewSidebar.Item+ active={w.channel() === c.id}+ onClick={() => channel(c.id)}+ >+ <ViewSidebar.Icon>+ <Hash />+ </ViewSidebar.Icon>+ {c.id}+ </ViewSidebar.Item>+ )}+ </For>+ </Group>+ <Group title="DMs">+ <For each={w.data.channels.filter((c) => c.person)}>+ {(c) => (+ <ViewSidebar.Item+ active={w.channel() === c.id}+ onClick={() => channel(c.id)}+ >+ <img+ class="size-5 rounded-full"+ src={homepagePeople[c.person!].photo}+ alt=""+ />+ {homepagePeople[c.person!].name}+ </ViewSidebar.Item>+ )}+ </For>+ </Group>+ </Match>+ <Match when={w.view() === 'home'}>+ <WorkspaceHomeFeed workspace={w} navigate={props.navigate} />+ </Match>+ <Match when={w.view() === 'agents'}>+ <ViewSidebar.Nav>+ <ViewSidebar.Item+ active={w.selected() === 'catalog'}+ onClick={() => props.navigate('agents', 'catalog')}+ >+ <ViewSidebar.Icon>+ <Sparkle />+ </ViewSidebar.Icon>+ Agents+ </ViewSidebar.Item>+ <ViewSidebar.Item+ active={w.selected() === 'connections'}+ onClick={() => props.navigate('agents', 'connections')}+ >+ <ViewSidebar.Icon>+ <Plugs />+ </ViewSidebar.Icon>+ Connections+ </ViewSidebar.Item>+ </ViewSidebar.Nav>+ <Group title="Conversations">+ <For each={sampleAgentSessions}>+ {(session) => (+ <ViewSidebar.Item+ class="sample-agent-session"+ active={w.selected() === session.id}+ onClick={() => props.navigate('agents', session.id)}+ >+ <ViewSidebar.Icon>+ <ModelIcon+ provider={session.provider}+ class="size-5 text-ink-muted"+ />+ </ViewSidebar.Icon>+ <span class="min-w-0 flex-1">+ <span class="flex items-center gap-2">+ <span class="truncate flex-1">{session.title}</span>+ <span class="text-[10px] text-ink-extra-muted">+ {session.time}+ </span>+ </span>+ <Show when={'branch' in session}>+ <span class="mt-1 flex items-center gap-1 text-[10px] text-ink-extra-muted min-w-0">+ <GitPull class="size-3 shrink-0 text-success" />+ <span class="text-success">+ {'pr' in session ? session.pr : ''}+ </span>+ <span class="truncate">+ · launch-team/workspace ·{' '}+ {'branch' in session ? session.branch : ''}+ </span>+ </span>+ </Show>+ <span class="sr-only">{session.runtime}</span>+ </span>+ </ViewSidebar.Item>+ )}+ </For>+ </Group>+ </Match>+ <Match when={w.view() === 'crm'}>+ <div class="shrink-0 px-1.5">+ <TabsInset+ aria-label="Company layout"+ fullWidth+ class="h-auto"+ labelClass="py-1.5"+ list={[+ { value: 'Board', label: 'Board' },+ { value: 'List', label: 'List' },+ ]}+ value={w.companyLayout()}+ onChange={(mode) =>+ w.setCompanyLayout(mode === 'List' ? 'List' : 'Board')+ }+ />+ </div>+ <Group title="Views">+ <For+ each={[+ 'All companies',+ 'My companies',+ 'Needs follow-up',+ 'Recently active',+ 'Unassigned',+ ]}+ >+ {(view) => (+ <ViewSidebar.Item+ active={w.companyFilter() === view}+ onClick={() => {+ w.setCompanyFilter(view);+ props.navigate('crm');+ }}+ >+ {view}+ </ViewSidebar.Item>+ )}+ </For>+ </Group>+ </Match>+ <Match when={w.view() === 'calendar'}>+ <MiniCalendar workspace={w} />+ <Group title="Upcoming events">+ <For+ each={w.data.events+ .filter((e) => e.date >= w.calendarDate())+ .slice(0, 4)}+ >+ {(event) => (+ <ViewSidebar.Item+ onClick={() => {+ w.setCalendarDate(event.date);+ props.navigate('calendar', event.id);+ }}+ >+ <span class="sample-tag-dot" />+ <span class="truncate">{event.title}</span>+ </ViewSidebar.Item>+ )}+ </For>+ </Group>+ <Group title="Calendars">+ <div class="flex items-center gap-2 px-2 py-2 text-sm">+ <Calendar class="size-4" />+ </div>+ <label class="flex items-center gap-2 px-2 text-sm">+ <input+ type="checkbox"+ checked={w.showPersonal()}+ onChange={(e) => w.setShowPersonal(e.currentTarget.checked)}+ />+ Personal calendar+ </label>+ </Group>+ </Match>+ </Switch>+ </ViewSidebar.Content>+ </ViewSidebar.Root>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/WorkspaceSpreadsheet.tsx b/apps/marketing/src/features/marketing/components/workspace/WorkspaceSpreadsheet.tsxnew file mode 100644index 0000000000..82ffa6782d--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/WorkspaceSpreadsheet.tsx@@ -0,0 +1,30 @@+import ArrowLeft from '@phosphor/arrow-left.svg';+import Table from '@phosphor/table.svg';+import { Button } from '@ui';+import type { DummyWorkspace } from '../../primitives/createDummyWorkspace';+import { ViewShell } from '../DemoWorkspaceChrome';+import HomepageSpreadsheet from '../HomepageSpreadsheet';++export function WorkspaceSpreadsheet(props: { workspace: DummyWorkspace }) {+ return (+ <>+ <ViewShell.TopBar>+ <Button+ variant="plain"+ size="icon-sm"+ label={+ props.workspace.view() === 'home' ? 'Back to Home' : 'Back to files'+ }+ onClick={() => props.workspace.backToCollection('documents')}+ >+ <ArrowLeft />+ </Button>+ <Table class="size-4 text-success" />+ <span class="text-sm">Customers to reach</span>+ </ViewShell.TopBar>+ <div class="sample-sheet-view">+ <HomepageSpreadsheet />+ </div>+ </>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/WorkspaceTasks.tsx b/apps/marketing/src/features/marketing/components/workspace/WorkspaceTasks.tsxnew file mode 100644index 0000000000..0b67f8bbf8--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/WorkspaceTasks.tsx@@ -0,0 +1,242 @@+import CaretDown from '@phosphor/caret-down.svg';+import FileText from '@phosphor/file-text.svg';+import ListChecks from '@phosphor/list-checks.svg';+import Plus from '@phosphor/plus.svg';+import Table from '@phosphor/table.svg';+import { Button, Dropdown } from '@ui';+import { createSignal, For, Show } from 'solid-js';+import { homepagePeople } from '../../core/homepage-demo-people';+import type { DummyWorkspace } from '../../primitives/createDummyWorkspace';+import { ViewShell } from '../DemoWorkspaceChrome';+import { SearchBar } from '../email/frozen/SearchBar';+import { TaskNotebook } from './frozen/TaskNotebook';+import {+ PersonIcon,+ TaskOwnerMenu,+ TaskPriorityMenu,+ TaskStatusMenu,+} from './frozen/TaskProperties';++export type TaskFilter =+ | 'reviews'+ | 'all'+ | 'mine'+ | 'created'+ | 'Launch'+ | 'Product'+ | 'Customers';++export function WorkspaceTasks(props: {+ workspace: DummyWorkspace;+ filter: TaskFilter;+}) {+ const w = props.workspace;+ const [hideCompleted, setHideCompleted] = createSignal(false);+ const [sort, setSort] = createSignal<'title' | 'status'>('title');+ const selected = () => w.data.tasks.find((task) => task.id === w.selected());+ const tasks = () =>+ w.data.tasks+ .filter(+ (task) =>+ (props.filter === 'all' ||+ (props.filter === 'reviews' && task.status === 'In Review') ||+ (props.filter === 'mine' && task.owner === 'jacob') ||+ (props.filter === 'created' && task.creator === 'jacob') ||+ task.tags.includes(props.filter)) &&+ (!hideCompleted() || task.status !== 'Completed') &&+ `${task.title} ${task.description} ${task.owner}`+ .toLowerCase()+ .includes(w.query().toLowerCase())+ )+ .slice()+ .sort((a, b) => a[sort()].localeCompare(b[sort()]));+ const title = () =>+ props.filter === 'mine'+ ? 'My Tasks'+ : props.filter === 'created'+ ? 'Created by me'+ : props.filter === 'all'+ ? 'All Tasks'+ : props.filter;+ return (+ <Show+ when={selected()}+ fallback={+ <>+ <ViewShell.TopBar>+ <span class="text-sm font-medium">{title()}</span>+ <span class="ml-auto text-xs text-ink-extra-muted">+ {tasks().length} tasks+ </span>+ </ViewShell.TopBar>+ <div class="flex items-center gap-3 px-4 py-4">+ <SearchBar+ label="Search tasks"+ placeholder="Search tasks"+ value={w.query()}+ onValueChange={w.setQuery}+ class="max-w-md flex-1"+ hotkey="cmd+f"+ />+ <Dropdown modal={false}>+ <Dropdown.Trigger aria-label="Task display options" size="sm">+ Display+ <CaretDown />+ </Dropdown.Trigger>+ <Dropdown.Content portalScope="local">+ <Dropdown.Group>+ <Dropdown.CheckboxItem+ checked={hideCompleted()}+ onChange={setHideCompleted}+ >+ Hide completed+ </Dropdown.CheckboxItem>+ <Dropdown.Item onSelect={() => setSort('title')}>+ Sort by title+ </Dropdown.Item>+ <Dropdown.Item onSelect={() => setSort('status')}>+ Sort by status+ </Dropdown.Item>+ </Dropdown.Group>+ </Dropdown.Content>+ </Dropdown>+ </div>+ <div+ class="dummy-scroll dummy-task-list @container/u-list"+ role="table"+ aria-label="Workspace tasks"+ >+ <div class="dummy-task-row text-xs text-ink-extra-muted" role="row">+ <span />+ <span role="columnheader">Task</span>+ <span role="columnheader">Status</span>+ <span role="columnheader">Priority</span>+ <span role="columnheader">Assignees</span>+ <span role="columnheader" class="dummy-created">+ Created by+ </span>+ <span class="text-right dummy-updated" role="columnheader">+ Updated+ </span>+ </div>+ <div class="mx-2 px-2 h-8 rounded-lg bg-hover text-xs text-ink-muted flex items-center gap-2">+ <CaretDown class="size-3" />+ {title()}+ <span class="rounded-full px-1.5 bg-active">+ {tasks().length}+ </span>+ </div>+ <For each={tasks()}>+ {(task) => (+ <div+ class="dummy-task-row group hover:bg-list-hover rounded-xl"+ role="row"+ >+ <span class="size-1.5 rounded-full bg-accent opacity-0 group-hover:opacity-100" />+ <button+ type="button"+ class="flex items-center gap-2 min-w-0 text-left font-medium"+ onClick={() => w.open('tasks', task.id)}+ aria-label={`Open task ${task.title}`}+ >+ <ListChecks class="size-4 shrink-0 text-task" />+ <span class="truncate">{task.title}</span>+ </button>+ <div role="cell">+ <TaskStatusMenu+ inline+ task={task}+ onSave={(status) => w.updateTask(task.id, { status })}+ />+ </div>+ <div role="cell">+ <TaskPriorityMenu+ inline+ task={task}+ onSave={(priority) => w.updateTask(task.id, { priority })}+ />+ </div>+ <div role="cell">+ <TaskOwnerMenu+ inline+ task={task}+ onSave={(owner) => w.updateTask(task.id, { owner })}+ />+ </div>+ <span class="dummy-created flex items-center gap-1.5 text-ink-muted text-xs">+ <PersonIcon person={task.creator} />+ {homepagePeople[task.creator].shortName}+ </span>+ <span class="dummy-updated text-right text-xs text-ink-extra-muted">+ Today+ </span>+ </div>+ )}+ </For>+ <Show when={!tasks().length}>+ <p class="p-8 text-ink-muted text-sm">No matching tasks.</p>+ </Show>+ <Button+ variant="plain"+ size="sm"+ class="m-4"+ onClick={() => w.createTask()}+ >+ <Plus />+ New task+ </Button>+ </div>+ </>+ }+ >+ {(task) => (+ <TaskNotebook+ workspace={w}+ task={task()}+ relatedContent={+ <div class="mt-8 mb-6">+ <h2 class="text-sm font-medium text-ink-muted mb-3">+ Related files+ </h2>+ <div class="flex flex-wrap gap-2">+ <For+ each={w.data.documents.filter(+ (doc) =>+ doc.id === 'plan' ||+ doc.id === 'launch-metrics' ||+ (task().id === 'deploy'+ ? doc.id === 'release-checks'+ : doc.id === 'rollout')+ )}+ >+ {(doc) => (+ <button+ type="button"+ class="flex items-center gap-2 rounded-lg bg-surface-2 hover:bg-hover px-3 py-2 text-sm text-ink-muted"+ onClick={() =>+ w.openItem(+ doc.kind === 'spreadsheet'+ ? 'spreadsheet'+ : 'documents',+ doc.id+ )+ }+ >+ <Show+ when={doc.kind === 'spreadsheet'}+ fallback={<FileText class="size-4 text-document" />}+ >+ <Table class="size-4 text-success" />+ </Show>+ {doc.title}+ </button>+ )}+ </For>+ </div>+ </div>+ }+ />+ )}+ </Show>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/dummy-workspace.css b/apps/marketing/src/features/marketing/components/workspace/dummy-workspace.cssnew file mode 100644index 0000000000..03f5ba3031--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/dummy-workspace.css@@ -0,0 +1,177 @@+/* Layout constants from SidebarRail, ViewSidebar, TaskGridLayout, and Notebook.+ The outer frame is the website's only decorative treatment. */+.dummy-workspace { --sidebar-gutter:.5rem; --sidebar-item-inset:.5rem; --sidebar-icon-slot:1.25rem; --sidebar-icon-size:1rem; --sidebar-control-size:1.5rem; --sidebar-row-height:2rem; --sidebar-row-gap:.125rem; --sidebar-label-gap:.375rem; --sidebar-section-gap:1.5rem; --sidebar-content-inset:1rem; --sidebar-control-overhang:-.125rem; --sidebar-action-inset:.375rem; --sidebar-header-action-inset:.875rem; --font-sans:-apple-system,BlinkMacSystemFont,'Inter Variable',Roboto,'Helvetica Neue',Arial,sans-serif; display:flex; flex-direction:column; height:100%; min-height:0; color:var(--color-ink); background:var(--color-panel); font:400 14px/1.5 var(--font-sans); text-align:left; letter-spacing:normal; }+.dummy-workspace[data-embedded=true] { height:720px; border:1px solid var(--color-edge); border-radius:18px; box-shadow:inset 0 1px 0 #ffffff25,0 12px 48px #0008; overflow:hidden; }+.dummy-banner { flex:none; min-height:36px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:5px 14px; border-bottom:1px solid var(--color-edge-muted); font-size:11px; }+.dummy-banner>span { display:flex; align-items:center; gap:6px; }+.dummy-status-dot { width:5px;height:5px;background:var(--color-accent);border-radius:50%; }+.dummy-layout { display:flex; flex:1; min-height:0; min-width:0; }+.dummy-rail { flex:0 0 56px; }+.dummy-sidebar { width:248px;flex:0 0 248px; border-right:1px solid var(--color-edge-frame); min-height:0; }+.dummy-main { display:flex; flex-direction:column;flex:1;min-width:0;min-height:0;position:relative; }+.dummy-scroll { flex:1;min-height:0;min-width:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--color-edge) transparent; }+.dummy-sidebar [data-view-sidebar-content] {overflow:auto;}+.dummy-task-list {padding:0 4px 24px;}+.dummy-task-row {display:grid;grid-template-columns:16px minmax(0,1fr) 116px 112px 144px 112px 80px;gap:8px;align-items:center;min-height:44px;padding:2px 8px;font-size:14px;line-height:20px;}+.dummy-task-row>div {min-width:0;}+.dummy-check-hit {position:absolute;left:var(--md-marker-left);top:calc(var(--md-marker-center-y) - var(--md-marker-width)/2);width:var(--md-marker-width);height:var(--md-marker-width);opacity:0;}+.dummy-check-hit:focus-visible {opacity:1;outline:2px solid var(--color-accent);outline-offset:3px;background:transparent;}+.dummy-composer {width:min(100%,820px);margin-inline:auto;padding:12px 24px 24px;flex:none;}+.dummy-channel-log {padding:32px 24px 0;}+.dummy-channel-log .homepage-conversation {margin-bottom:8px;font-size:14px;}+.dummy-channel-log .homepage-message {max-width:85%;}+.dummy-channel-item {max-width:760px;margin:0 auto 20px;}+.dummy-message-task {margin-left:42px;}+.dummy-entity-link {display:inline-flex;align-items:center;gap:8px;border:1px solid var(--color-edge-muted);border-radius:6px;padding:2px 8px;margin-top:6px;text-align:left;font-size:15px;line-height:20px;font-weight:400;background:transparent;}+.dummy-email-actions {max-width:850px;margin:auto;}+.dummy-workspace .mail-thread-body {padding-top:32px;padding-bottom:20px;}+.dummy-workspace .homepage-email-demo {--homepage-email-height:480px;}+.dummy-workspace .homepage-email-body {white-space:pre-wrap;}+.dummy-mobile-nav {display:none;}+.dummy-restore-sidebar {position:absolute;top:10px;right:12px;z-index:1;}+.dummy-route {height:100dvh;width:100%;min-width:0;background:var(--color-panel);}+@media(max-width:900px) {.dummy-sidebar{width:200px;flex-basis:200px}.dummy-local-note{display:none}}+@media(max-width:650px) {.dummy-workspace[data-embedded=true]{height:660px}.dummy-rail{flex-basis:44px;width:44px;padding-inline:2px}.dummy-rail [data-button]{width:36px;min-width:36px}.dummy-sidebar{position:absolute;z-index:8;top:78px;bottom:0;left:44px;width:220px;box-shadow:10px 0 30px #0006;display:none}.dummy-workspace[data-sidebar-open=true] .dummy-sidebar{display:block}.dummy-layout{position:relative}.dummy-mobile-nav{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;flex:none;border-bottom:1px solid var(--color-edge-muted)}.dummy-banner{font-size:10px;padding-inline:8px}.dummy-banner>span>span:last-child{display:none}.dummy-main [data-view-shell-top-bar]{padding-left:10px}.dummy-restore-sidebar{display:none}.dummy-composer{padding:12px}.dummy-channel-log{padding:20px 12px}.dummy-channel-log .homepage-message{max-width:100%}.dummy-task-row{gap:4px;font-size:12px}.dummy-workspace .text-2xl{font-size:22px}.dummy-workspace .mail-thread-body{padding-inline:14px}.dummy-sidebar .mail-sidebar{display:flex}.dummy-workspace .homepage-email-fields{padding:0}.dummy-workspace .homepage-email-row{grid-template-columns:48px minmax(0,1fr);font-size:12px}.dummy-workspace .homepage-email-sender{font-size:12px}}++/* Values below mirror SidebarRail, ViewSidebar, channel/Message, SidePanel,+ CompanyKanban and CalendarGrid. All content is owned by the local fixtures. */+.dummy-sidebar {width:256px;flex-basis:256px}+.dummy-banner {background:#000;min-height:34px;color:var(--color-ink-muted)}+.dummy-main {container-type:inline-size;container-name:sample-main}+.sample-detail-layout {display:flex;flex:1;min-height:0;min-width:0;position:relative}+.sample-detail-content {flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}+.sample-details {width:360px;min-width:320px;max-width:380px;padding:8px;overflow:auto;scrollbar-width:thin;flex-shrink:0}+.sample-detail-layout[data-panel-open=false] .sample-details {display:none}+.sample-panel-section {border-radius:12px;background:var(--color-surface-2);margin-bottom:8px;border:1px solid var(--color-edge-muted)}+.sample-panel-section>summary {display:flex;list-style:none;align-items:center;gap:8px;font-size:12px;padding:12px 8px;color:var(--color-ink-muted)}+.sample-panel-section[open]>summary>svg {transform:rotate(90deg)}+.sample-panel-section select {max-width:100%;border-radius:999px;border:1px solid var(--color-edge-muted);background:var(--color-surface-2);font:inherit;padding:2px 6px;color:var(--color-ink)}+.sample-inline-input {width:100%;min-width:0;background:transparent;border:0;color:inherit;outline:none;padding:2px 0}+.sample-inline-input:focus {box-shadow:0 1px 0 var(--color-accent)}+.sample-contact-search {border:1px solid var(--color-edge-muted);border-radius:6px;padding:6px 8px;margin-bottom:6px}+.sample-company-board {flex:1;min-height:0;display:flex;gap:12px;padding:12px;overflow:auto}+.sample-company-column {display:flex;flex-direction:column;flex:1;min-width:224px;padding:0 8px 8px;border-radius:12px;background:color-mix(in srgb,var(--color-surface-2) 30%,transparent)}+.sample-company-column h3 {display:flex;align-items:center;gap:8px;padding:10px 4px;font-size:12px;font-weight:600;color:var(--color-ink-muted)}+.sample-stage-dot {width:9px;height:9px;border-radius:50%;background:var(--color-ink-muted)}+.sample-stage-dot[data-stage=Demo] {background:var(--color-task)}+.sample-stage-dot[data-stage=Customer] {background:var(--color-violet)}+.sample-stage-dot[data-stage=Churned] {background:var(--color-orange)}+.sample-stage-dot[data-stage='No stage'] {border:1px dashed var(--color-ink-muted);background:transparent}+.sample-company-card {display:flex;flex-direction:column;gap:6px;background:var(--color-surface-2);border-radius:8px;padding:10px;margin-bottom:8px;text-align:left;font-size:14px;box-shadow:0 1px 2px #0001;min-width:0}+.sample-company-card:hover {background:var(--color-hover)}+.sample-company-list {display:flex;align-items:center;width:100%;gap:12px;padding:14px 12px;text-align:left;font-size:14px;border-radius:8px}+.sample-company-list:hover {background:var(--color-hover)}+.sample-discussion>summary {font-size:12px;color:var(--color-ink-muted);margin:12px 0}+.sample-message-row {position:relative;display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px;padding:8px;border-radius:6px;margin-bottom:12px}+.sample-message-row:hover {background:color-mix(in srgb,var(--color-hover) 45%,transparent)}+.sample-message-row[data-reply=true] {margin-left:40px;border-left:1px solid var(--color-edge);border-radius:0 0 0 16px;padding-left:16px}+.sample-message-actions {position:absolute;right:8px;top:-18px;border:1px solid var(--color-edge);border-radius:12px;background:var(--color-surface-2);padding:5px;display:flex;gap:8px;opacity:0}+.sample-message-actions button {padding:4px;display:flex;align-items:center}+.sample-message-row:hover .sample-message-actions,.sample-message-row:focus-within .sample-message-actions {opacity:1}+.sample-reaction {display:inline-flex;gap:4px;font-size:12px;border-radius:999px;border:1px solid var(--color-edge);padding:2px 8px;margin-top:8px}+.sample-chat-log {width:100%;max-width:944px;margin:auto;padding:24px 12px 12px}+.sample-chat-composer {width:100%;max-width:944px;padding:12px 12px 10px}+.sample-date-divider {display:flex;align-items:center;gap:12px;font-size:12px;color:var(--color-ink-muted);margin:20px 8px 32px}+.sample-date-divider:before,.sample-date-divider:after {content:'';height:1px;flex:1;background:var(--color-edge)}+.sample-agent-empty {display:flex;flex:1;min-height:0;align-items:center;justify-content:center;padding:40px 24px 14vh}+.sample-agent-start {width:100%;max-width:720px}+.sample-agent-start h1 {font-size:28px;line-height:1.2;letter-spacing:-.02em;font-weight:500;text-align:center;margin-bottom:32px}+.sample-agent-log {width:100%;max-width:940px;margin:auto;padding:32px 24px}+.sample-user-prompt {margin:0 0 28px auto;max-width:85%;width:fit-content;background:var(--color-surface-2);padding:12px 16px;border-radius:24px;font-size:16px}+.sample-home-suggestions {margin:40px 24px -110px;color:var(--color-ink-extra-muted);font-size:14px}+.sample-home-suggestions button {display:flex;gap:16px;width:100%;justify-content:space-between;text-align:left;padding:12px 0}+.sample-home-suggestions button>span:last-child {white-space:nowrap}+.sample-tag-dot {display:inline-block;flex-shrink:0;width:8px;height:8px;border-radius:50%;background:var(--color-accent);margin:0 6px}+.sample-tag-dot[data-color='0'] {background:var(--color-task)}+.sample-tag-dot[data-color='1'] {background:var(--color-violet)}+.sample-mini-days {display:grid;grid-template-columns:repeat(7,1fr);text-align:center;gap:2px;font-size:12px}+.sample-mini-days>button,.sample-mini-days>span {padding:5px 0;border-radius:5px}+.sample-mini-days [aria-pressed=true] {background:var(--color-accent);color:var(--color-panel)}+.sample-mini-days [data-muted=true] {opacity:.3}+.sample-calendar-toolbar {display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:18px 20px}+.sample-calendar-head {display:grid;min-width:720px;padding-top:16px;border-bottom:1px solid var(--color-edge-muted);height:118px}+.sample-calendar-head>div {display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--color-ink-muted);font-size:14px}+.sample-calendar-head strong {font-size:24px;font-weight:400;padding:0 5px;border-radius:5px}+.sample-calendar-head [data-today=true] strong {background:var(--color-accent);color:var(--color-panel)}+.sample-calendar-grid {display:grid;min-width:720px}+.sample-time-labels {display:flex;flex-direction:column;font-size:11px;color:var(--color-ink-muted)}+.sample-time-labels span {height:64px;text-align:center}+.sample-calendar-day {position:relative;height:832px;border-left:1px solid var(--color-edge-muted);background:repeating-linear-gradient(to bottom,var(--color-edge-muted) 0px,var(--color-edge-muted) 1px,transparent 1px,transparent 64px)}+.sample-calendar-event {position:absolute;left:5px;right:6px;display:flex;flex-direction:column;align-items:flex-start;padding:2px 6px;border-radius:4px;background:#36b5c0;color:#093c46;overflow:hidden;text-align:left;font-size:11px;line-height:14px}+.sample-calendar-event[data-personal=true] {background:#68aadd;color:#133b50}+.sample-calendar-event strong {font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}+.sample-event-panel {position:absolute;left:50%;top:96px;transform:translateX(-50%);width:360px;max-width:calc(100% - 32px);max-height:calc(100% - 112px);overflow:auto;background:var(--color-surface-2);border:1px solid var(--color-edge-muted);border-radius:12px;padding:12px 16px 0;box-shadow:0 16px 40px #0006;z-index:10}+.sample-event-panel label {display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--color-ink-muted);margin-bottom:16px}+.sample-event-panel input,.sample-event-panel textarea,.sample-event-panel select {border:1px solid var(--color-edge);border-radius:6px;padding:6px;background:var(--color-panel);color:var(--color-ink);font:inherit}+@container sample-main (max-width:1223px) {.sample-detail-layout[data-panel-open=auto] .sample-details{display:none}.sample-detail-layout[data-panel-open=true] .sample-details{position:absolute;inset:0;width:100%;max-width:none;min-width:0;background:var(--color-panel);z-index:5}.sample-chat-log,.sample-chat-composer{max-width:900px}}+@media(max-width:650px){.dummy-sidebar{width:220px;top:42px}.sample-agent-start h1{font-size:22px}.sample-agent-empty{padding:24px 12px 16vh}.sample-home-suggestions{margin:24px 8px -100px;font-size:12px}.sample-agent-log{padding:20px 12px}.dummy-main [data-view-shell-top-bar] .sample-tabs-inset{display:none}.sample-chat-composer{padding:8px}.sample-company-column{min-width:224px}}++.sample-inline-input[aria-label="Company name"] {font-size:20px;line-height:28px;font-weight:600}+.sample-inline-input[aria-label="Company description"] {font-size:14px;line-height:20px;color:var(--color-ink-muted)}+.sample-message-row p {font-size:16px;line-height:24px}++/* Measured against the signed-in app: task-list/ListPropertyValue and TaskGridLayout. */+.dummy-task-row .sample-list-property {display:inline-flex;width:100%;max-width:100%;min-width:0;height:auto;min-height:0;align-items:center;justify-content:flex-start;gap:4px;overflow:hidden;border:0;border-radius:999px;padding:6px 8px;background:transparent;color:var(--color-ink);font-size:12px;line-height:15px;font-weight:400}+.dummy-task-row .sample-list-property>span {flex:1;min-width:0;text-align:left}+.dummy-task-row .sample-list-property:hover {background:color-mix(in oklch,var(--color-surface-2) 50%,transparent)}+.dummy-task-row[role=row]:first-child {min-height:40px;font-size:12px;font-weight:500}+@container u-list (max-width:1220px) {.dummy-task-row {grid-template-columns:16px minmax(0,1fr) 116px 112px 144px 80px}.dummy-created {display:none}}+@container u-list (max-width:840px) {.dummy-task-row {grid-template-columns:16px minmax(0,1fr) 32px 32px 48px 80px}.dummy-task-row .sample-list-property {padding-inline:4px}.dummy-task-row .sample-list-property>span,.dummy-task-row .sample-list-property>svg:last-child {display:none}.dummy-task-row .sample-list-property>svg:first-child {width:16px;height:16px}.dummy-task-row .sample-list-property>img {width:20px;height:20px}.dummy-task-row[role=row]:first-child>span:nth-child(n+3):not(:last-child){font-size:0}}+@container u-list (max-width:500px) {.dummy-task-row {grid-template-columns:0 minmax(0,1fr) 28px 28px 28px}.dummy-updated {display:none}}++/* Live channel Message/Layout and ThreadReplyRail dimensions. */+.sample-chat-log {padding:0 12px 24px;overscroll-behavior-y:contain}+.sample-chat-log .sample-message-row {padding:10px 8px 0;margin-bottom:0;gap:8px}+.sample-chat-log .sample-message-row p {font-size:15px;line-height:24px;margin-top:2px;margin-bottom:2px}+.sample-channel-thread {position:relative;margin-bottom:24px;isolation:isolate}+.sample-channel-thread[data-thread-open=true]:before {content:'';position:absolute;top:46px;bottom:32px;left:24px;width:1px;background:var(--color-edge);z-index:-1}+.sample-thread-replies {margin-left:40px;position:relative}+.sample-chat-log .sample-thread-replies .sample-message-row {margin-left:0;border:0;border-radius:6px;padding-left:8px;margin-top:8px}+.sample-thread-replies .sample-message-row:before {content:'';position:absolute;left:-16px;top:0;width:16px;height:26px;border-left:1px solid var(--color-edge);border-bottom:1px solid var(--color-edge);border-bottom-left-radius:14px;z-index:-1}+.sample-thread-expand {display:flex;align-items:center;gap:8px;margin:12px 0 0 48px;padding:4px 12px;border:1px solid var(--color-edge);border-radius:999px;color:var(--color-accent);font-size:12px}+.sample-thread-reply-button {display:flex;align-items:center;justify-content:center;margin:16px 0 0 8px;width:32px;height:32px;border:1px solid var(--color-edge);border-radius:50%;color:var(--color-ink-muted)}+.sample-thread-editor {padding:12px 8px 0}+.sample-email-thread .mail-thread-body {max-width:968px;padding:48px 24px}+.sample-email-thread h3 {font-size:24px;line-height:32px;margin-bottom:20px}+.sample-email-reply {padding:0;background:transparent}+.sample-reply-summary {display:flex;align-items:center;gap:8px;width:100%;padding:12px 0;margin-bottom:16px;font-size:14px;color:var(--color-ink-muted)}+.sample-email-reply textarea {display:block;width:100%;min-height:64px;resize:none;border:0;background:transparent;outline:none;color:var(--color-ink);font:400 15px/24px var(--font-sans)}+.sample-email-reply textarea::placeholder {color:var(--color-ink-placeholder)}+.sample-email-reply-placeholder {display:flex;align-items:center;gap:8px;width:100%;padding-top:16px;font-size:14px;color:var(--color-ink-placeholder)}+.sample-reply-fields {padding-top:8px;margin-bottom:16px;font-size:14px}+.sample-reply-fields>div,.sample-reply-fields>label {display:flex;align-items:center;gap:8px;min-height:40px}+.sample-reply-fields>div>span:first-child,.sample-reply-fields>label>span {width:56px;color:var(--color-ink-extra-muted);flex-shrink:0}+.sample-reply-fields input {min-width:0;flex:1;background:transparent;border:0;outline:none;color:var(--color-ink)}+@media(max-width:650px){.sample-email-thread .mail-thread-body{padding:24px 12px}.sample-thread-replies{margin-left:28px}.sample-thread-replies .sample-message-row:before{left:-4px;width:4px}.sample-chat-log .sample-message-row p{font-size:14px}}++/* Launcher.tsx / CommandMenuPrimitives: the portal inherits website tokens. */+.sample-create-palette {background:var(--color-surface-2);color:var(--color-ink);border-radius:24px;overflow:hidden;outline:none}+.sample-create-palette .sample-create-option {border:0;background:transparent;font-family:inherit;line-height:20px}+.sample-create-palette .sample-create-option[aria-selected=true] {background:var(--color-active)}+.sample-create-palette input {box-shadow:none;font-family:inherit}++/* Homepage frame omits demo chrome without changing the workspace controls. */+.dummy-route[data-embedded=true] .dummy-banner { display: none; }+@media (max-width:650px) { .dummy-route[data-embedded=true] .dummy-sidebar { top:42px; } }++.sample-event-detail-row {display:flex;gap:12px;align-items:flex-start;margin:14px 0;font-size:12px;line-height:1.6;color:var(--color-ink-muted)}+.sample-event-detail-row > svg {width:14px;height:14px;flex-shrink:0;margin-top:3px}+.sample-event-rsvp {display:flex;align-items:center;gap:6px;margin:0 -16px;padding:10px 16px;background:var(--color-hover);font-size:12px;color:var(--color-ink-muted)}+.sample-event-rsvp button {padding:3px 12px;border-radius:6px;background:var(--color-active)}+.sample-event-rsvp button[aria-pressed=true] {color:var(--color-ink);background:var(--color-hover)}+.sample-agent-session {height:auto!important;min-height:44px;padding-top:8px!important;padding-bottom:8px!important}+.sample-agent-catalog {max-width:660px;margin:48px auto;padding:16px 24px}+.sample-file-tag {display:flex;align-items:center;gap:5px;border:1px solid var(--color-edge-muted);border-radius:999px;padding:3px 8px;font-size:11px;color:var(--color-ink-muted)}++.sample-sheet-view {flex:1;min-height:0;overflow:hidden}+.sample-sheet-view > * {height:100%;border:0;border-radius:0}++.sample-sheet-view > * {padding-bottom:0}+.sample-sheet-view .homepage-spreadsheet {height:100%;border:0;border-radius:0}+.sample-sheet-view .homepage-compose-status {display:none}+.sample-calendar-head {position:sticky;top:0;background:var(--color-panel);z-index:1}++.sample-sheet-view > * > .pointer-events-none {display:none}++.sample-search-category {border:1px solid transparent;background:transparent;font-family:inherit}+.sample-search-category[aria-checked=true] {border-color:var(--color-edge-muted);background:var(--color-active);color:var(--color-ink)}diff --git a/apps/marketing/src/features/marketing/components/workspace/frozen/CreatePalette.test.tsx b/apps/marketing/src/features/marketing/components/workspace/frozen/CreatePalette.test.tsxnew file mode 100644index 0000000000..b5d4e9f3cd--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/frozen/CreatePalette.test.tsx@@ -0,0 +1,49 @@+import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';+import { afterEach, beforeEach, expect, it, vi } from 'vitest';+import { CreatePalette } from './CreatePalette';++beforeEach(() => {+ vi.spyOn(window, 'scrollTo').mockImplementation(() => {});+});++afterEach(() => {+ cleanup();+ vi.restoreAllMocks();+});++function setup() {+ const email = vi.fn();+ const task = vi.fn();+ const close = vi.fn();+ render(() => (+ <CreatePalette+ mount={document.body}+ onClose={close}+ options={[+ { label: 'Email', key: 'e', icon: () => <svg />, run: email },+ { label: 'Task', key: 't', icon: () => <svg />, run: task },+ ]}+ />+ ));+ return { email, task, close, search: screen.getByRole('combobox') };+}++it('filters options and creates only the selected local item', () => {+ const { task, email, close, search } = setup();+ fireEvent.input(search, { target: { value: 'task' } });+ expect(screen.getAllByRole('option')).toHaveLength(1);+ fireEvent.keyDown(search, { key: 'Enter' });+ expect(task).toHaveBeenCalledOnce();+ expect(email).not.toHaveBeenCalled();+ expect(close).toHaveBeenCalledOnce();+});++it('does not create anything for an empty result set', () => {+ const { task, email, close, search } = setup();+ fireEvent.input(search, { target: { value: 'no such option' } });+ expect(screen.queryAllByRole('option')).toHaveLength(0);+ fireEvent.keyDown(search, { key: 'Enter' });+ expect(task).not.toHaveBeenCalled();+ expect(email).not.toHaveBeenCalled();+ expect(close).not.toHaveBeenCalled();+});diff --git a/apps/marketing/src/features/marketing/components/workspace/frozen/CreatePalette.tsx b/apps/marketing/src/features/marketing/components/workspace/frozen/CreatePalette.tsxnew file mode 100644index 0000000000..f11fca7a28--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/frozen/CreatePalette.tsx@@ -0,0 +1,203 @@+import Search from '@phosphor/magnifying-glass.svg';+import Plus from '@phosphor/plus.svg';+import { Dialog } from '@ui/components/Dialog';+import { ToggleSwitch } from '@ui/components/ToggleSwitch';+import { createSignal, For, type JSX, Show } from 'solid-js';+import { Dynamic } from 'solid-js/web';++export type CreateOption = {+ label: string;+ key: string;+ hint?: string;+ icon: (props: { class?: string }) => JSX.Element;+ run: () => void;+};++/** Launcher / CommandMenuPrimitives presentation, with local demo actions. */+export function CreatePalette(props: {+ options: CreateOption[];+ mount: HTMLElement;+ onClose: () => void;+}) {+ const [searchMode, setSearchMode] = createSignal(true);+ const [query, setQuery] = createSignal('');+ const [selected, setSelected] = createSignal(0);+ let search!: HTMLInputElement;+ let shell!: HTMLDivElement;+ let list!: HTMLDivElement;+ const options = () =>+ props.options.filter((option) =>+ `${option.label} ${option.hint ?? ''}`+ .toLowerCase()+ .includes(query().toLowerCase())+ );+ const run = (option?: CreateOption) => {+ if (!option) return;+ props.onClose();+ option.run();+ };+ const toggle = (enabled: boolean) => {+ setSearchMode(enabled);+ setQuery('');+ setSelected(0);+ queueMicrotask(() => (enabled ? search : shell)?.focus());+ };+ return (+ <Dialog+ mount={props.mount}+ open+ onOpenChange={(open) => !open && props.onClose()}+ onOpenAutoFocus={(event) => {+ event.preventDefault();+ search?.focus();+ }}+ class="sample-create-palette"+ position="top"+ >+ <div+ ref={shell}+ tabindex={-1}+ class="outline-none"+ onKeyDown={(event) => {+ if (+ event.isComposing ||+ event.metaKey ||+ event.ctrlKey ||+ event.altKey+ )+ return;+ if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {+ event.preventDefault();+ const count = options().length;+ setSelected(+ count+ ? (selected() + (event.key === 'ArrowDown' ? 1 : count - 1)) %+ count+ : 0+ );+ list.children[selected()]?.scrollIntoView({ block: 'nearest' });+ } else if (+ event.key === 'Enter' &&+ (event.target === search || event.target === shell)+ ) {+ event.preventDefault();+ run(options()[selected()]);+ } else if (+ event.key === '/' &&+ (event.target === shell || !query())+ ) {+ event.preventDefault();+ toggle(!searchMode());+ } else if (!searchMode() && event.target === shell) {+ const option = props.options.find(+ (item) => item.key === event.key.toLowerCase()+ );+ if (option) {+ event.preventDefault();+ run(option);+ }+ }+ }}+ >+ <Dialog.Title class="sr-only">Create New</Dialog.Title>+ <Dialog.Description class="sr-only">+ Choose what to create in the sample workspace.+ </Dialog.Description>+ <div class="flex items-center gap-3 px-5 py-3 min-h-14">+ <Show+ when={searchMode()}+ fallback={+ <div class="min-w-0 flex flex-1 items-center gap-2 text-ink-muted">+ <Plus class="size-4" />+ <span>Create New</span>+ </div>+ }+ >+ <div class="min-w-0 flex flex-1 items-center gap-2">+ <Search class="size-4 shrink-0 text-ink-extra-muted" />+ <input+ ref={search}+ role="combobox"+ aria-label="Search create options"+ aria-controls="sample-create-options"+ aria-expanded="true"+ aria-autocomplete="list"+ aria-activedescendant={+ options().length ? `sample-create-${selected()}` : undefined+ }+ placeholder="Search create options"+ value={query()}+ class="min-w-0 w-full flex-1 py-0.5 bg-transparent border-0 outline-none text-sm text-ink-muted placeholder:text-ink-placeholder"+ onInput={(event) => {+ setQuery(event.currentTarget.value);+ setSelected(0);+ }}+ />+ </div>+ </Show>+ <ToggleSwitch+ checked={searchMode()}+ onChange={toggle}+ size="xs"+ label={+ <span class="flex items-center gap-1 text-[11px] font-medium text-ink-extra-muted/70">+ Search mode <kbd class="px-2 py-0.5">/</kbd>+ </span>+ }+ labelClass="flex items-center"+ controlClass="bg-ink-extra-muted/25 data-checked:bg-accent"+ class="ml-auto flex-row-reverse gap-1.5"+ />+ </div>+ <div+ ref={list}+ id="sample-create-options"+ role="listbox"+ aria-label="Create options"+ class="max-h-[min(60vh,26rem)] overflow-y-auto p-2"+ >+ <For each={options()}>+ {(option, index) => (+ <button+ type="button"+ role="option"+ id={`sample-create-${index()}`}+ aria-selected={selected() === index()}+ tabindex={-1}+ class="sample-create-option rounded-md w-full flex items-center h-10 px-2 gap-2 text-sm text-left"+ onMouseMove={() => setSelected(index())}+ onClick={() => run(option)}+ >+ <Dynamic+ component={option.icon}+ class="size-4 shrink-0 text-ink-extra-muted"+ />+ <span class="font-medium text-ink">{option.label}</span>+ <Show when={option.hint}>+ <span class="min-w-0 truncate text-ink-extra-muted/70">+ {option.hint}+ </span>+ </Show>+ <Show when={!searchMode()}>+ <kbd class="ml-auto border border-edge-muted rounded-md px-1.5 text-xs text-ink-muted">+ {option.key.toUpperCase()}+ </kbd>+ </Show>+ </button>+ )}+ </For>+ <Show when={!options().length}>+ <p class="p-4 text-center text-sm text-ink-muted">+ No matching create options+ </p>+ </Show>+ </div>+ <div class="flex gap-4 px-5 py-2 border-t border-edge-muted text-xs text-ink-extra-muted/80">+ <span>↑ ↓ Navigate</span>+ <span>↵ Create</span>+ <span>Esc Close</span>+ </div>+ </div>+ </Dialog>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/frozen/DemoTags.tsx b/apps/marketing/src/features/marketing/components/workspace/frozen/DemoTags.tsxnew file mode 100644index 0000000000..322f069d6b--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/frozen/DemoTags.tsx@@ -0,0 +1,91 @@+import Plus from '@phosphor/plus.svg';+import { Dropdown } from '@ui';+import { badgeTriggerClasses } from '@ui/components/Badge';+import { For, type JSX } from 'solid-js';++// Colors from property/tags/tagColors; dot and pill from TagDot / TagPill.+const DEMO_TAGS = [+ { label: 'Launch', color: '#F5D90A' },+ { label: 'Product', color: '#0091FF' },+ { label: 'Customers', color: '#E93D82' },+ { label: 'Design', color: '#8E4EC6' },+ { label: 'Engineering', color: '#46A758' },+ { label: 'Follow up', color: '#F76B15' },+] as const;++export function TagDot(props: {+ label: string;+ options?: readonly { label: string; color: string }[];+}) {+ return (+ <span+ aria-hidden="true"+ data-slot="tag-dot"+ class="inline-block size-2.5 shrink-0 rounded-full"+ style={{+ 'background-color':+ (props.options ?? DEMO_TAGS).find((tag) => tag.label === props.label)+ ?.color ?? '#889096',+ }}+ />+ );+}++export function DemoTags(props: {+ tags: readonly string[];+ options?: readonly { label: string; color: string }[];+ onChange: (tags: string[]) => void;+}) {+ const picker = (label: string, children: JSX.Element) => (+ <Dropdown modal={false}>+ <Dropdown.Trigger+ aria-label={label}+ noTouchResize+ class={badgeTriggerClasses({+ size: 'sm',+ class: 'min-w-0 gap-1.5 border-0 bg-transparent text-ink-muted',+ })}+ >+ {children}+ </Dropdown.Trigger>+ <Dropdown.Content portalScope="local" class="min-w-48">+ <Dropdown.Group>+ <Dropdown.GroupLabel>Tags</Dropdown.GroupLabel>+ <For each={props.options ?? DEMO_TAGS}>+ {(tag) => (+ <Dropdown.CheckboxItem+ checked={props.tags.includes(tag.label)}+ onChange={(checked) =>+ props.onChange(+ checked+ ? [...new Set([...props.tags, tag.label])]+ : props.tags.filter((item) => item !== tag.label)+ )+ }+ >+ <TagDot label={tag.label} options={props.options} />+ {tag.label}+ </Dropdown.CheckboxItem>+ )}+ </For>+ </Dropdown.Group>+ </Dropdown.Content>+ </Dropdown>+ );+ return (+ <div class="flex flex-wrap items-center gap-1" aria-label="Tags">+ <For each={props.tags}>+ {(tag) =>+ picker(+ `Change tag ${tag}`,+ <>+ <TagDot label={tag} options={props.options} />+ <span class="min-w-0 truncate">{tag}</span>+ </>+ )+ }+ </For>+ {picker('Add tags', <Plus class="size-3.5" />)}+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/frozen/DetailPanel.tsx b/apps/marketing/src/features/marketing/components/workspace/frozen/DetailPanel.tsxnew file mode 100644index 0000000000..39e440c5f4--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/frozen/DetailPanel.tsx@@ -0,0 +1,111 @@+import Caret from '@phosphor/caret-right.svg';+import Sidebar from '@phosphor/sidebar-simple.svg';+import { Button, Tabs } from '@ui';+import { TabsInset } from '@ui/components/TabsInset';+import { type JSX, Show } from 'solid-js';++// Frozen from app/side-panel/SidePanel: card padding, grid rows and sizing.+export function PanelSection(props: {+ title: string;+ open?: boolean;+ children: JSX.Element;+}) {+ return (+ <details class="sample-panel-section" open={props.open}>+ <summary>+ <Caret class="size-3" />+ {props.title}+ </summary>+ <div class="px-3 pb-3 text-sm">{props.children}</div>+ </details>+ );+}+export function PanelRow(props: { label: string; children: JSX.Element }) {+ return (+ <>+ <span class="text-ink-muted truncate">{props.label}</span>+ <div class="flex items-center gap-2 min-w-0">{props.children}</div>+ </>+ );+}+export function PanelGrid(props: { children: JSX.Element }) {+ return (+ <div class="grid grid-cols-[96px_1fr] gap-x-3 items-center text-xs auto-rows-[1.75rem]">+ {props.children}+ </div>+ );+}+export function PanelToggle(props: {+ open: boolean | undefined;+ onChange: (open: boolean) => void;+}) {+ return (+ <Button+ variant="plain"+ size="icon-sm"+ label="Toggle details panel"+ aria-expanded={props.open}+ onClick={(e) =>+ props.onChange(+ !(+ props.open ??+ (e.currentTarget.closest('.dummy-main')?.clientWidth ?? 0) >= 1224+ )+ )+ }+ >+ <Sidebar class="size-4" />+ </Button>+ );+}+export function DetailLayout(props: {+ open: boolean | undefined;+ panel: JSX.Element;+ children: JSX.Element;+}) {+ return (+ <div+ class="sample-detail-layout"+ data-panel-open={props.open === undefined ? 'auto' : props.open}+ >+ <div class="sample-detail-content">{props.children}</div>+ <aside aria-label="Details panel" class="sample-details">+ {props.panel}+ </aside>+ </div>+ );+}+export function Segments<T extends string>(props: {+ label: string;+ items: readonly T[];+ value: T;+ onChange: (value: T) => void;+ sidebar?: boolean;+}) {+ const list = () => props.items.map((item) => ({ value: item, label: item }));+ const change = (value: string) => {+ const item = props.items.find((item) => item === value);+ if (item) props.onChange(item);+ };+ return (+ <Show+ when={props.sidebar}+ fallback={+ <TabsInset+ class="sample-tabs-inset"+ aria-label={props.label}+ list={list()}+ value={props.value}+ onChange={change}+ />+ }+ >+ <Tabs+ aria-label={props.label}+ list={list()}+ value={props.value}+ onChange={change}+ />+ </Show>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/frozen/EmailReply.tsx b/apps/marketing/src/features/marketing/components/workspace/frozen/EmailReply.tsxnew file mode 100644index 0000000000..dc64be9c8b--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/frozen/EmailReply.tsx@@ -0,0 +1,212 @@+import CaretRight from '@phosphor/caret-right.svg';+import Clock from '@phosphor/clock.svg';+import Paperclip from '@phosphor/paperclip.svg';+import Trash from '@phosphor/trash.svg';+import { Button, Dropdown, SendButton } from '@ui';+import { createSignal, For, onMount, Show } from 'solid-js';+import { homepagePeople } from '../../../core/homepage-demo-people';++/** Email compose/reply-input presentation with local recipients and no transport. */+export function EmailReply(props: {+ to: string;+ onDiscard: () => void;+ onSend: (+ body: string,+ to: string,+ scheduled: string | undefined,+ recipients: { cc?: string; bcc?: string }+ ) => void;+}) {+ const [body, setBody] = createSignal('');+ const [to, setTo] = createSignal(props.to);+ const [expanded, setExpanded] = createSignal(false);+ const [cc, setCc] = createSignal(false);+ const [bcc, setBcc] = createSignal(false);+ const [ccValue, setCcValue] = createSignal('');+ const [bccValue, setBccValue] = createSignal('');+ const [attachments, setAttachments] = createSignal<string[]>([]);+ const [schedule, setSchedule] = createSignal<string>();+ let editor!: HTMLTextAreaElement;+ let picker!: HTMLInputElement;+ onMount(() => editor.focus());+ const send = () => {+ if (!body().trim() || !to().trim()) return;+ props.onSend(+ [body().trim(), ...attachments().map((name) => `Attached: ${name}`)].join(+ '\n'+ ),+ to(),+ schedule(),+ {+ cc: cc() ? ccValue().trim() : undefined,+ bcc: bcc() ? bccValue().trim() : undefined,+ }+ );+ };+ return (+ <div class="sample-email-reply">+ <Show+ when={expanded()}+ fallback={+ <button+ type="button"+ class="sample-reply-summary"+ onClick={() => setExpanded(true)}+ >+ Replying to {to()}+ <CaretRight class="size-3 ml-auto" />+ </button>+ }+ >+ <div class="sample-reply-fields">+ <div>+ <span>From</span>+ <span class="flex items-center gap-2">+ <img+ alt=""+ class="size-5 rounded-full"+ src={homepagePeople.jacob.photo}+ />+ Jacob Beckerman+ </span>+ <Button size="sm" variant="plain" onClick={() => setCc(!cc())}>+ Cc+ </Button>+ <Button size="sm" variant="plain" onClick={() => setBcc(!bcc())}>+ Bcc+ </Button>+ </div>+ <label>+ <span>To</span>+ <input+ aria-label="Reply recipients"+ value={to()}+ onInput={(e) => setTo(e.currentTarget.value)}+ />+ </label>+ <Show when={cc()}>+ <label>+ <span>Cc</span>+ <input+ aria-label="Reply Cc"+ placeholder="Add recipients"+ value={ccValue()}+ onInput={(e) => setCcValue(e.currentTarget.value)}+ />+ </label>+ </Show>+ <Show when={bcc()}>+ <label>+ <span>Bcc</span>+ <input+ aria-label="Reply Bcc"+ placeholder="Add recipients"+ value={bccValue()}+ onInput={(e) => setBccValue(e.currentTarget.value)}+ />+ </label>+ </Show>+ </div>+ </Show>+ <textarea+ ref={editor}+ aria-label="Email reply"+ placeholder="Reply — @mention to share or cc people"+ value={body()}+ onInput={(e) => {+ setBody(e.currentTarget.value);+ e.currentTarget.style.height = '64px';+ e.currentTarget.style.height = `${Math.max(64, e.currentTarget.scrollHeight)}px`;+ }}+ onKeyDown={(e) => {+ if (e.key === 'Enter' && (e.metaKey || e.ctrlKey) && !e.isComposing) {+ e.preventDefault();+ send();+ }+ }}+ />+ <Show when={attachments().length}>+ <div class="flex gap-2 py-2">+ <For each={attachments()}>+ {(name) => (+ <button+ type="button"+ class="text-xs border border-edge rounded-lg px-2 py-1"+ onClick={() =>+ setAttachments((files) =>+ files.filter((file) => file !== name)+ )+ }+ >+ {name} ×+ </button>+ )}+ </For>+ </div>+ </Show>+ <input+ ref={picker}+ type="file"+ multiple+ hidden+ aria-label="Reply attachments"+ onChange={(e) =>+ setAttachments(+ Array.from(e.currentTarget.files ?? [], (file) => file.name)+ )+ }+ />+ <div class="flex items-center justify-end gap-1 pt-2">+ <Show when={schedule()}>+ <span class="mr-auto text-xs text-ink-muted">{schedule()}</span>+ </Show>+ <Button+ size="icon-composer"+ variant="plain"+ label="Discard reply"+ onClick={props.onDiscard}+ >+ <Trash />+ </Button>+ <Button+ size="icon-composer"+ variant="plain"+ label="Attach to reply"+ onClick={() => picker.click()}+ >+ <Paperclip />+ </Button>+ <Dropdown modal={false}>+ <Dropdown.Trigger+ size="icon-composer"+ variant="plain"+ aria-label="Choose send time"+ >+ <Clock />+ </Dropdown.Trigger>+ <Dropdown.Content portalScope="local">+ <Dropdown.Group>+ <For each={['Send now', 'Tomorrow at 9 AM', 'Monday at 9 AM']}>+ {(option) => (+ <Dropdown.Item+ onSelect={() =>+ setSchedule(option === 'Send now' ? undefined : option)+ }+ >+ {option}+ </Dropdown.Item>+ )}+ </For>+ </Dropdown.Group>+ </Dropdown.Content>+ </Dropdown>+ <SendButton+ appearance="composer"+ aria-label={schedule() ? 'Schedule email reply' : 'Send email reply'}+ disabled={!body().trim() || !to().trim()}+ onClick={send}+ />+ </div>+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/frozen/MessageRow.tsx b/apps/marketing/src/features/marketing/components/workspace/frozen/MessageRow.tsxnew file mode 100644index 0000000000..a8a10e8af5--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/frozen/MessageRow.tsx@@ -0,0 +1,76 @@+import Reply from '@phosphor/arrow-bend-up-left.svg';+import ListChecks from '@phosphor/list-checks.svg';+import { type JSX, Show } from 'solid-js';+import type { WorkspaceComment } from '../../../core/dummy-workspace';+import { homepagePeople } from '../../../core/homepage-demo-people';+import { DemoMentionText } from '../../DemoMention';++// Presentation from channel/Message/Layout, SenderName, Timestamp, Content+// and HoverActions. Callbacks replace the app's channel context and mutations.+export function MessageRow(props: {+ message: WorkspaceComment;+ children?: JSX.Element;+ onReply?: () => void;+ onTask?: () => void;+ onReact?: () => void;+}) {+ return (+ <article class="sample-message-row" data-reply={!!props.message.replyTo}>+ <img+ src={homepagePeople[props.message.person].photo}+ alt=""+ class="size-8 rounded-full object-cover"+ />+ <div class="min-w-0">+ <div class="flex items-baseline gap-1.5">+ <span class="text-sm font-medium">+ {homepagePeople[props.message.person].name}+ </span>+ <span class="text-xs text-ink-extra-muted tabular-nums">+ {props.message.time}+ </span>+ </div>+ <p class="mt-1 text-base whitespace-pre-wrap break-words">+ <DemoMentionText text={props.message.body} />+ </p>+ {props.children}+ <Show when={props.message.reactions?.length}>+ <button class="sample-reaction" type="button" onClick={props.onReact}>+ 👍 {props.message.reactions?.length}+ </button>+ </Show>+ </div>+ <Show when={props.onReact || props.onTask || props.onReply}>+ <div class="sample-message-actions">+ <Show when={props.onReact}>+ <button+ type="button"+ aria-label="Like message"+ onClick={props.onReact}+ >+ 👍+ </button>+ </Show>+ <Show when={props.onReply}>+ <button+ type="button"+ aria-label="Reply to message"+ onClick={props.onReply}+ >+ <Reply class="size-4" />+ </button>+ </Show>+ <Show when={props.onTask}>+ <button+ type="button"+ aria-label="Create task from message"+ onClick={props.onTask}+ >+ <ListChecks class="size-4" />+ </button>+ </Show>+ </div>+ </Show>+ </article>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/frozen/PropertyValueIcon.tsx b/apps/marketing/src/features/marketing/components/workspace/frozen/PropertyValueIcon.tsxnew file mode 100644index 0000000000..7f505fffd7--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/frozen/PropertyValueIcon.tsx@@ -0,0 +1,104 @@+import StatusCanceled from '@assets/icons/square-task-cancelled-circle.svg';+import StatusCreated from '@assets/icons/square-task-created-circle.svg';+import StatusDone from '@assets/icons/square-task-done-circle.svg';+import StatusInProgress from '@assets/icons/square-task-in-progress-circle.svg';+import StatusInReview from '@assets/icons/square-task-in-review-circle.svg';+import PriorityHigh from '@assets/icons/wide-priority-high.svg';+import PriorityLow from '@assets/icons/wide-priority-low.svg';+import PriorityMedium from '@assets/icons/wide-priority-medium.svg';+import PriorityUrgent from '@assets/icons/wide-priority-urgent.svg';+import { type Component, Match, Switch } from 'solid-js';+import { twMerge } from 'tailwind-merge';+import { PROPERTY_OPTION_IDS } from './property-identifiers';++type PropertyValueIconProps = {+ optionId: string;+ class?: string;+};++/** Filled dot used for CRM stage options — colored via `currentColor`. */+const StageDot: Component<{ class?: string }> = (props) => (+ <svg viewBox="0 0 12 12" class={props.class} aria-hidden="true">+ <circle cx="6" cy="6" r="4" fill="currentColor" />+ </svg>+);++const STAGE_DOT_TINTS: Record<string, string> = {+ [PROPERTY_OPTION_IDS.STAGE.LEAD]: 'text-ink-muted',+ [PROPERTY_OPTION_IDS.STAGE.QUALIFIED]: 'text-task',+ [PROPERTY_OPTION_IDS.STAGE.DEMO]: 'text-note',+ [PROPERTY_OPTION_IDS.STAGE.TRIAL]: 'text-alert-ink',+ [PROPERTY_OPTION_IDS.STAGE.NEGOTIATION]: 'text-accent',+ [PROPERTY_OPTION_IDS.STAGE.CUSTOMER]: 'text-success',+ [PROPERTY_OPTION_IDS.STAGE.CHURNED]: 'text-failure-ink',+};++const knownPropertyIds = new Set<string>(+ Object.values(PROPERTY_OPTION_IDS).flatMap((group) => Object.values(group))+);++/**+ * Render appropriate icons for property option values - based on common,+ * hard-coded property option ids.+ *+ * @example+ * ```tsx+ * <PropertyValueIcon+ * optionId={PROPERTY_OPTION_IDS.PRIORITY.HIGH}+ * />+ * ```+ */+export const PropertyValueIcon: Component<PropertyValueIconProps> = (props) => {+ if (!knownPropertyIds.has(props.optionId)) {+ return null;+ }+ return (+ <Switch>+ {/* Priority */}+ <Match when={props.optionId === PROPERTY_OPTION_IDS.PRIORITY.LOW}>+ <PriorityLow+ class={twMerge('size-3', props.class, 'text-ink-extra-muted')}+ />+ </Match>+ <Match when={props.optionId === PROPERTY_OPTION_IDS.PRIORITY.MEDIUM}>+ <PriorityMedium+ class={twMerge('size-3', props.class, 'text-ink-extra-muted')}+ />+ </Match>+ <Match when={props.optionId === PROPERTY_OPTION_IDS.PRIORITY.HIGH}>+ <PriorityHigh+ class={twMerge('size-3', props.class, 'text-ink-extra-muted')}+ />+ </Match>+ <Match when={props.optionId === PROPERTY_OPTION_IDS.PRIORITY.URGENT}>+ <PriorityUrgent class={twMerge('size-3', props.class, 'text-accent')} />+ </Match>++ {/* Status */}+ <Match when={props.optionId === PROPERTY_OPTION_IDS.STATUS.NOT_STARTED}>+ <StatusCreated class={twMerge('size-3', props.class, 'text-task')} />+ </Match>+ <Match when={props.optionId === PROPERTY_OPTION_IDS.STATUS.IN_PROGRESS}>+ <StatusInProgress+ class={twMerge('size-3', props.class, 'text-warning')}+ />+ </Match>+ <Match when={props.optionId === PROPERTY_OPTION_IDS.STATUS.IN_REVIEW}>+ <StatusInReview class={twMerge('size-3', props.class, 'text-note')} />+ </Match>+ <Match when={props.optionId === PROPERTY_OPTION_IDS.STATUS.COMPLETED}>+ <StatusDone class={twMerge('size-3', props.class, 'text-accent')} />+ </Match>+ <Match when={props.optionId === PROPERTY_OPTION_IDS.STATUS.CANCELED}>+ <StatusCanceled+ class={twMerge('size-3', props.class, 'text-ink-muted')}+ />+ </Match>++ {/* CRM stage */}+ <Match when={STAGE_DOT_TINTS[props.optionId]}>+ {(tint) => <StageDot class={twMerge('size-3', props.class, tint())} />}+ </Match>+ </Switch>+ );+};diff --git a/apps/marketing/src/features/marketing/components/workspace/frozen/SearchPalette.test.tsx b/apps/marketing/src/features/marketing/components/workspace/frozen/SearchPalette.test.tsxnew file mode 100644index 0000000000..2d5c883851--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/frozen/SearchPalette.test.tsx@@ -0,0 +1,91 @@+import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';+import { afterEach, beforeEach, expect, it, vi } from 'vitest';+import { SearchPalette } from './SearchPalette';++beforeEach(() => {+ vi.spyOn(window, 'scrollTo').mockImplementation(() => {});+ Object.defineProperty(Element.prototype, 'scrollIntoView', {+ configurable: true,+ value: vi.fn(),+ });+});+afterEach(() => {+ cleanup();+ Reflect.deleteProperty(Element.prototype, 'scrollIntoView');+ vi.restoreAllMocks();+});++it('filters by category and query, then opens the keyboard-selected result', () => {+ const task = vi.fn();+ const agent = vi.fn();+ const close = vi.fn();+ render(() => (+ <SearchPalette+ mount={document.body}+ onClose={close}+ options={[+ {+ id: 'task',+ title: 'Fix deploy',+ category: 'Tasks',+ icon: () => <svg />,+ run: task,+ },+ {+ id: 'agent',+ title: 'Deploy agent',+ category: 'Agents',+ icon: () => <svg />,+ run: agent,+ },+ ]}+ />+ ));+ const input = screen.getByRole('combobox');+ fireEvent.keyDown(input, { key: 'Tab' });+ expect(+ screen.getByRole('radio', { name: 'Command' }).getAttribute('aria-checked')+ ).toBe('true');+ expect(screen.queryAllByRole('option')).toHaveLength(0);+ fireEvent.keyDown(input, { key: 'Enter' });+ expect(close).not.toHaveBeenCalled();+ fireEvent.keyDown(input, { key: 'Tab' });+ fireEvent.input(input, { target: { value: 'deploy' } });+ expect(screen.getAllByRole('option')).toHaveLength(1);+ fireEvent.keyDown(input, { key: 'Enter' });+ expect(agent).toHaveBeenCalledOnce();+ expect(task).not.toHaveBeenCalled();+ expect(close).toHaveBeenCalledOnce();+});++it('moves selection with arrow keys and runs only that result', () => {+ const first = vi.fn();+ const second = vi.fn();+ render(() => (+ <SearchPalette+ mount={document.body}+ onClose={() => {}}+ options={[+ {+ id: 'first',+ title: 'First',+ category: 'Files',+ icon: () => <svg />,+ run: first,+ },+ {+ id: 'second',+ title: 'Second',+ category: 'Files',+ icon: () => <svg />,+ run: second,+ },+ ]}+ />+ ));+ const input = screen.getByRole('combobox');+ fireEvent.keyDown(input, { key: 'ArrowDown' });+ fireEvent.keyDown(input, { key: 'Enter' });+ expect(second).toHaveBeenCalledOnce();+ expect(first).not.toHaveBeenCalled();+});diff --git a/apps/marketing/src/features/marketing/components/workspace/frozen/SearchPalette.tsx b/apps/marketing/src/features/marketing/components/workspace/frozen/SearchPalette.tsxnew file mode 100644index 0000000000..3e50b22579--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/frozen/SearchPalette.tsx@@ -0,0 +1,191 @@+import Search from '@phosphor/magnifying-glass.svg';+import { Dialog } from '@ui/components/Dialog';+import { createSignal, createUniqueId, For, type JSX, Show } from 'solid-js';+import { Dynamic } from 'solid-js/web';++const CATEGORIES = [+ 'All',+ 'Command',+ 'Agents',+ 'Files',+ 'Tasks',+ 'Projects',+ 'Channels',+ 'People',+] as const;+export type SearchOption = {+ id: string;+ title: string;+ category: (typeof CATEGORIES)[number];+ icon: (props: { class?: string }) => JSX.Element;+ run: () => void;+ shortcut?: string;+};++/** The live ⌘K presentation, searching only the local sample workspace. */+export function SearchPalette(props: {+ options: SearchOption[];+ mount: HTMLElement;+ onClose: () => void;+}) {+ const id = createUniqueId();+ const [query, setQuery] = createSignal('');+ const [category, setCategory] =+ createSignal<(typeof CATEGORIES)[number]>('All');+ const [selected, setSelected] = createSignal(0);+ let input!: HTMLInputElement;+ let list!: HTMLDivElement;+ const options = () =>+ props.options.filter(+ (option) =>+ (category() === 'All' || option.category === category()) &&+ option.title.toLowerCase().includes(query().trim().toLowerCase())+ );+ const chooseCategory = (value: (typeof CATEGORIES)[number]) => {+ setCategory(value);+ setSelected(0);+ input.focus();+ };+ const run = (option?: SearchOption) => {+ if (!option) return;+ props.onClose();+ option.run();+ };+ return (+ <Dialog+ mount={props.mount}+ open+ position="top"+ class="sample-create-palette sample-search-palette"+ onOpenChange={(open) => !open && props.onClose()}+ onOpenAutoFocus={(event) => {+ event.preventDefault();+ input.focus();+ }}+ >+ <div+ onKeyDown={(event) => {+ if (+ event.isComposing ||+ event.metaKey ||+ event.ctrlKey ||+ event.altKey+ )+ return;+ if (event.key === 'Tab') {+ event.preventDefault();+ const next =+ (CATEGORIES.indexOf(category()) ++ (event.shiftKey ? CATEGORIES.length - 1 : 1)) %+ CATEGORIES.length;+ chooseCategory(CATEGORIES[next]);+ } else if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {+ event.preventDefault();+ const count = options().length;+ setSelected(+ count+ ? (selected() + (event.key === 'ArrowDown' ? 1 : count - 1)) %+ count+ : 0+ );+ list.children[selected()]?.scrollIntoView({ block: 'nearest' });+ } else if (event.key === 'Enter' && event.target === input) {+ event.preventDefault();+ run(options()[selected()]);+ }+ }}+ >+ <Dialog.Title class="sr-only">Search workspace</Dialog.Title>+ <Dialog.Description class="sr-only">+ Find files, tasks, agents, channels, and people in the sample+ workspace.+ </Dialog.Description>+ <div class="flex items-center gap-3 px-5 py-3 min-h-14 border-b border-edge-muted">+ <Search class="size-4 shrink-0 text-accent" />+ <input+ ref={input}+ role="combobox"+ aria-label="Search workspace"+ aria-controls={`${id}-results`}+ aria-expanded="true"+ aria-autocomplete="list"+ aria-activedescendant={+ options().length ? `${id}-${selected()}` : undefined+ }+ placeholder="Search…"+ class="min-w-0 flex-1 border-0 bg-transparent outline-none text-sm text-ink placeholder:text-ink-placeholder"+ value={query()}+ onInput={(event) => {+ setQuery(event.currentTarget.value);+ setSelected(0);+ }}+ />+ </div>+ <div+ role="radiogroup"+ aria-label="Search category"+ class="flex gap-1 overflow-x-auto px-2 py-2"+ >+ <For each={CATEGORIES}>+ {(value) => (+ <button+ type="button"+ role="radio"+ aria-checked={category() === value}+ tabindex={-1}+ class="sample-search-category shrink-0 rounded-full px-3 py-1.5 text-xs text-ink-muted"+ onClick={() => chooseCategory(value)}+ >+ {value}+ </button>+ )}+ </For>+ </div>+ <div+ ref={list}+ id={`${id}-results`}+ role="listbox"+ aria-label="Search results"+ class="max-h-[min(46vh,22rem)] overflow-y-auto p-2"+ >+ <For each={options()}>+ {(option, index) => (+ <button+ type="button"+ role="option"+ id={`${id}-${index()}`}+ aria-selected={selected() === index()}+ tabindex={-1}+ class="sample-create-option rounded-md w-full flex items-center h-10 px-2 gap-3 text-sm text-left"+ onMouseMove={() => setSelected(index())}+ onClick={() => run(option)}+ >+ <Dynamic+ component={option.icon}+ class="size-4 shrink-0 text-ink-extra-muted"+ />+ <span class="min-w-0 truncate font-medium">{option.title}</span>+ <Show when={option.shortcut}>+ <kbd class="ml-auto text-xs text-ink-extra-muted">+ {option.shortcut}+ </kbd>+ </Show>+ </button>+ )}+ </For>+ </div>+ <Show when={!options().length}>+ <p class="p-6 text-center text-sm text-ink-muted">+ No matching items.+ </p>+ </Show>+ <div class="flex gap-4 px-5 py-3 border-t border-edge-muted text-xs text-ink-extra-muted">+ <span>↑ ↓ Navigate</span>+ <span>↵ Run action</span>+ <span>Tab Category</span>+ <span>Esc Close</span>+ </div>+ </div>+ </Dialog>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/frozen/TaskNotebook.tsx b/apps/marketing/src/features/marketing/components/workspace/frozen/TaskNotebook.tsxnew file mode 100644index 0000000000..8a9762367d--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/frozen/TaskNotebook.tsx@@ -0,0 +1,383 @@+import ArrowLeft from '@phosphor/arrow-left.svg';+import Hash from '@phosphor/hash.svg';+import ListChecks from '@phosphor/list-checks.svg';+import Plus from '@phosphor/plus.svg';+import Trash from '@phosphor/trash.svg';+import { Button, Dropdown } from '@ui';+import { createSignal, For, type JSX, Show } from 'solid-js';+import type { WorkspaceTask } from '../../../core/dummy-workspace';+import { homepagePeople } from '../../../core/homepage-demo-people';+import type { DummyWorkspace } from '../../../primitives/createDummyWorkspace';+import { ViewShell } from '../../DemoWorkspaceChrome';+import { ChannelComposer } from '../../email/frozen/ChannelComposer';+import { DemoTags } from './DemoTags';+import {+ DetailLayout,+ PanelGrid,+ PanelRow,+ PanelSection,+ PanelToggle,+} from './DetailPanel';+import { MessageRow } from './MessageRow';+import {+ PersonIcon,+ TaskOwnerMenu,+ TaskPriorityMenu,+ TaskStatusMenu,+} from './TaskProperties';++/** Notebook / TitleEditor / InlineTaskProperties presentation frozen from+ * block-md. Text editing and save handlers use the dummy workspace model. */+export function TaskNotebook(props: {+ workspace: DummyWorkspace;+ task: WorkspaceTask;+ relatedContent?: JSX.Element;+}) {+ const [panel, setPanel] = createSignal<boolean>();+ const save = (patch: Partial<WorkspaceTask>) =>+ props.workspace.updateTask(props.task.id, patch);+ return (+ <>+ <ViewShell.TopBar>+ <Button+ variant="plain"+ size="icon-sm"+ label={+ props.workspace.view() === 'home' ? 'Back to Home' : 'Back to tasks'+ }+ onClick={() => props.workspace.backToCollection('tasks')}+ >+ <ArrowLeft />+ </Button>+ <span class="text-sm text-ink-muted">+ {props.workspace.view() === 'home' ? 'Home' : 'All Tasks'}+ </span>+ <span class="text-ink-muted mx-1">›</span>+ <ListChecks class="size-4 text-task" />+ <span class="truncate text-sm font-medium">{props.task.title}</span>+ <Dropdown modal={false}>+ <Dropdown.Trigger+ size="icon-sm"+ aria-label="Task actions"+ class="ml-auto"+ >+ ⋯+ </Dropdown.Trigger>+ <Dropdown.Content portalScope="local">+ <Dropdown.Group>+ <Dropdown.Item+ onSelect={() => {+ const source = props.task;+ const id = props.workspace.createTask(+ `${source.title} (copy)`,+ source.description,+ source.channel+ );+ props.workspace.updateTask(id, {+ priority: source.priority,+ owner: source.owner,+ tags: [...source.tags],+ steps: source.steps.map((step) => ({ ...step })),+ });+ }}+ >+ Duplicate task+ </Dropdown.Item>+ <Dropdown.Item+ onSelect={() => {+ props.workspace.setData('tasks', (tasks) =>+ tasks.filter((task) => task.id !== props.task.id)+ );+ props.workspace.backToCollection('tasks');+ }}+ >+ <Trash class="size-3" />+ Delete sample task+ </Dropdown.Item>+ </Dropdown.Group>+ </Dropdown.Content>+ </Dropdown>+ <Button+ size="sm"+ variant="plain"+ onClick={() => {+ props.workspace.post(+ `Shared task: ${props.task.title}`,+ undefined,+ props.task.id+ );+ props.workspace.openItem('messages');+ }}+ >+ Share+ </Button>+ <PanelToggle open={panel()} onChange={setPanel} />+ </ViewShell.TopBar>+ <DetailLayout+ open={panel()}+ panel={+ <>+ <PanelSection title="Actions" open>+ <div class="flex gap-2">+ <Button+ size="sm"+ variant="plain"+ onClick={() => props.workspace.openItem('agents')}+ >+ ✧ Ask Macro+ </Button>+ <Button+ size="sm"+ variant="plain"+ onClick={() =>+ navigator.clipboard.writeText(+ `${props.task.title}\n${props.task.description}`+ )+ }+ >+ Copy as prompt+ </Button>+ </div>+ </PanelSection>+ <PanelSection title="Details" open>+ <PanelGrid>+ <PanelRow label="Owner">+ <PersonIcon person={props.task.creator} />+ {homepagePeople[props.task.creator].name}+ </PanelRow>+ <PanelRow label="Created">Sep 28 at 12:34 PM</PanelRow>+ <PanelRow label="Last updated">Today</PanelRow>+ </PanelGrid>+ </PanelSection>+ <PanelSection title="Tags" open>+ <DemoTags+ tags={props.task.tags}+ onChange={(tags) => save({ tags })}+ />+ </PanelSection>+ <PanelSection title="Properties" open>+ <PanelGrid>+ <PanelRow label="Status">+ <TaskStatusMenu+ task={props.task}+ onSave={(status) => save({ status })}+ />+ </PanelRow>+ <PanelRow label="Priority">+ <TaskPriorityMenu+ task={props.task}+ onSave={(priority) => save({ priority })}+ />+ </PanelRow>+ <PanelRow label="Assignees">+ <TaskOwnerMenu+ task={props.task}+ onSave={(owner) => save({ owner })}+ />+ </PanelRow>+ </PanelGrid>+ </PanelSection>+ <PanelSection title="References">+ <button+ type="button"+ onClick={() => {+ props.workspace.setChannel(props.task.channel);+ props.workspace.openItem('messages');+ }}+ >+ #{props.task.channel}+ </button>+ </PanelSection>+ <PanelSection title="History">+ <p class="text-xs">Changes in this demo stay in this session.</p>+ </PanelSection>+ <PanelSection title="Activity">+ <For+ each={props.workspace.data.activity+ .filter((item) => item.text.includes(props.task.title))+ .slice(0, 5)}+ >+ {(item) => (+ <p class="text-xs mb-2">+ {item.text} · {item.time}+ </p>+ )}+ </For>+ </PanelSection>+ </>+ }+ >+ <div class="dummy-scroll">+ <div class="flex relative text-ink min-h-full min-w-0 isolate px-6">+ <div class="grow basis-0 max-w-3xl pt-12 touch:pt-6 min-w-0 mx-auto pb-12">+ <div class="relative">+ <div+ contentEditable+ role="textbox"+ aria-label="Task title"+ class="ph-no-capture text-2xl font-semibold outline-none"+ onBlur={(e) =>+ save({+ title:+ e.currentTarget.innerText.trim() || 'Untitled task',+ })+ }+ onKeyDown={(e) => {+ if (e.key === 'Enter') {+ e.preventDefault();+ e.currentTarget.blur();+ }+ }}+ >+ {props.task.title}+ </div>+ </div>+ <div class="spacer h-3" />+ <div class="mb-6 flex flex-row flex-wrap items-center gap-2 text-sm empty:hidden">+ <TaskStatusMenu+ task={props.task}+ onSave={(status) => save({ status })}+ />+ <TaskPriorityMenu+ task={props.task}+ onSave={(priority) => save({ priority })}+ />+ <TaskOwnerMenu+ task={props.task}+ onSave={(owner) => save({ owner })}+ />+ <DemoTags+ tags={props.task.tags}+ onChange={(tags) => save({ tags })}+ />+ <Show when={props.task.steps.length}>+ <div+ class="h-6 inline-flex min-w-0 items-center gap-1.5 rounded-full border border-edge-muted bg-surface-2 px-2 py-1 leading-tight text-xs"+ aria-label="Checklist progress"+ >+ <div class="h-1.5 w-14 overflow-hidden rounded-full bg-edge-muted">+ <div+ class="h-full rounded-full bg-accent"+ style={{+ width: `${(props.task.steps.filter((step) => step.done).length / props.task.steps.length) * 100}%`,+ }}+ />+ </div>+ <span class="tabular-nums text-ink-muted">+ {props.task.steps.filter((step) => step.done).length}/+ {props.task.steps.length}+ </span>+ </div>+ </Show>+ </div>+ <div class="website-demo-markdown md text-base">+ <div+ role="textbox"+ aria-label="Task description"+ contentEditable+ class="my-4 first:mt-1.5 last:mb-1.5 md-p text-[1em] whitespace-pre-wrap outline-none"+ onBlur={(e) =>+ save({ description: e.currentTarget.innerText })+ }+ >+ {props.task.description}+ </div>+ <button+ type="button"+ class="my-4 flex items-center gap-1.5 text-sm text-ink-muted"+ onClick={() => {+ props.workspace.setChannel(props.task.channel);+ props.workspace.openItem('messages');+ }}+ >+ From <Hash class="size-4" />+ <span class="underline underline-offset-4">+ {props.task.channel}+ </span>+ </button>+ <ul class="my-4 first:mt-1.5 last:mb-1.5 list-none md-list md-check">+ <For each={props.task.steps}>+ {(step) => (+ <li+ class="my-[0.25em]"+ classList={{+ 'checked md-strike text-ink-extra-muted': step.done,+ }}+ >+ <button+ class="dummy-check-hit"+ type="button"+ role="checkbox"+ aria-checked={step.done}+ aria-label={step.text}+ onClick={() =>+ save({+ steps: props.task.steps.map((item) =>+ item.id === step.id+ ? { ...item, done: !item.done }+ : item+ ),+ })+ }+ />+ <span+ contentEditable+ role="textbox"+ aria-label="Checklist item"+ class="outline-none"+ onBlur={(e) =>+ save({+ steps: props.task.steps.map((item) =>+ item.id === step.id+ ? { ...item, text: e.currentTarget.innerText }+ : item+ ),+ })+ }+ >+ {step.text}+ </span>+ </li>+ )}+ </For>+ </ul>+ <Button+ variant="plain"+ size="sm"+ class="text-ink-extra-muted"+ onClick={() =>+ save({+ steps: [+ ...props.task.steps,+ {+ id: crypto.randomUUID(),+ text: 'New checklist item',+ done: false,+ },+ ],+ })+ }+ >+ <Plus class="size-3" />+ Add checklist item+ </Button>+ </div>+ {props.relatedContent}+ <div class="mt-8 text-xs text-ink-extra-muted mb-3">+ Discussion+ </div>+ <For each={props.task.comments}>+ {(comment) => <MessageRow message={comment} />}+ </For>+ <ChannelComposer+ label="Comment on sample task"+ placeholder="Leave a comment…"+ onSend={(body) => props.workspace.comment(props.task.id, body)}+ />+ </div>+ </div>+ </div>+ </DetailLayout>+ </>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/frozen/TaskProperties.tsx b/apps/marketing/src/features/marketing/components/workspace/frozen/TaskProperties.tsxnew file mode 100644index 0000000000..183e1c3dfe--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/frozen/TaskProperties.tsx@@ -0,0 +1,161 @@+import CursorIcon from '@icon/wide-cursor-ide.svg';+import CaretDown from '@phosphor/caret-down.svg';+import { Dropdown } from '@ui';+import { badgeTriggerClasses } from '@ui/components/Badge';+import { For, type JSX, Show } from 'solid-js';+import type {+ TaskPriority,+ TaskStatus,+ WorkspaceTask,+} from '../../../core/dummy-workspace';+import {+ type HomepagePersonId,+ homepagePeople,+} from '../../../core/homepage-demo-people';+import { PropertyValueIcon } from './PropertyValueIcon';+import { PROPERTY_OPTION_IDS } from './property-identifiers';++export const STATUS_IDS: Record<TaskStatus, string> = {+ 'Not Started': PROPERTY_OPTION_IDS.STATUS.NOT_STARTED,+ 'In Progress': PROPERTY_OPTION_IDS.STATUS.IN_PROGRESS,+ 'In Review': PROPERTY_OPTION_IDS.STATUS.IN_REVIEW,+ Completed: PROPERTY_OPTION_IDS.STATUS.COMPLETED,+ Canceled: PROPERTY_OPTION_IDS.STATUS.CANCELED,+};+export const PRIORITY_IDS: Record<TaskPriority, string> = {+ Low: PROPERTY_OPTION_IDS.PRIORITY.LOW,+ Medium: PROPERTY_OPTION_IDS.PRIORITY.MEDIUM,+ High: PROPERTY_OPTION_IDS.PRIORITY.HIGH,+ Urgent: PROPERTY_OPTION_IDS.PRIORITY.URGENT,+};+export function PersonIcon(props: { person: HomepagePersonId }) {+ return (+ <Show+ when={props.person === 'cursor'}+ fallback={+ <img+ src={homepagePeople[props.person].photo}+ alt=""+ class="size-4 shrink-0 rounded-full object-cover"+ />+ }+ >+ <CursorIcon class="size-4 shrink-0 text-ink" aria-hidden="true" />+ </Show>+ );+}+// InlinePropertyValue / Property.Pill / Property.Caret composition, with the+// app's Badge classes and Dropdown surface. Local commands replace providers.+function PropertyMenu<T extends string>(props: {+ label: string;+ value: T;+ options: readonly T[];+ onSave: (value: T) => void;+ icon: (value: T) => JSX.Element;+ inline?: boolean;+ display?: (value: T) => string;+}) {+ return (+ <Dropdown modal={false}>+ <Dropdown.Trigger+ aria-label={`Change ${props.label}`}+ data-slot="property-pill"+ noTouchResize+ class={+ props.inline+ ? 'sample-list-property'+ : badgeTriggerClasses({+ variant: 'outline',+ size: 'sm',+ class: 'max-w-full text-left bg-surface-2 border-0',+ })+ }+ >+ {props.icon(props.value)}+ <span class="truncate">+ {props.display?.(props.value) ?? props.value}+ </span>+ <CaretDown class="size-3 shrink-0" />+ </Dropdown.Trigger>+ <Dropdown.Content+ depth={3}+ class="max-h-96 overflow-hidden flex flex-col w-56 max-w-70 p-0 text-sm"+ portalScope="local"+ >+ <Dropdown.Group>+ <Dropdown.GroupLabel>{props.label}</Dropdown.GroupLabel>+ <For each={props.options}>+ {(value) => (+ <Dropdown.Item onSelect={() => props.onSave(value)}>+ {props.icon(value)}+ <span>{props.display?.(value) ?? value}</span>+ <span class="ml-auto text-ink-muted">+ {value === props.value ? '✓' : ''}+ </span>+ </Dropdown.Item>+ )}+ </For>+ </Dropdown.Group>+ </Dropdown.Content>+ </Dropdown>+ );+}+export function TaskStatusMenu(props: {+ task: WorkspaceTask;+ onSave: (value: TaskStatus) => void;+ inline?: boolean;+}) {+ return (+ <PropertyMenu+ label="status"+ value={props.task.status}+ options={Object.keys(STATUS_IDS) as TaskStatus[]}+ onSave={props.onSave}+ inline={props.inline}+ icon={(value) => (+ <PropertyValueIcon+ optionId={STATUS_IDS[value]}+ class="size-3 shrink-0"+ />+ )}+ />+ );+}+export function TaskPriorityMenu(props: {+ task: WorkspaceTask;+ onSave: (value: TaskPriority) => void;+ inline?: boolean;+}) {+ return (+ <PropertyMenu+ label="priority"+ value={props.task.priority}+ options={Object.keys(PRIORITY_IDS) as TaskPriority[]}+ onSave={props.onSave}+ inline={props.inline}+ icon={(value) => (+ <PropertyValueIcon+ optionId={PRIORITY_IDS[value]}+ class="size-3 shrink-0"+ />+ )}+ />+ );+}+export function TaskOwnerMenu(props: {+ task: WorkspaceTask;+ onSave: (value: HomepagePersonId) => void;+ inline?: boolean;+}) {+ return (+ <PropertyMenu+ label="assignee"+ value={props.task.owner}+ options={['jacob', 'julia', 'teo', 'valentina', 'claude', 'cursor']}+ display={(value) => homepagePeople[value].shortName}+ onSave={props.onSave}+ inline={props.inline}+ icon={(value) => <PersonIcon person={value} />}+ />+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/frozen/model-picker/ModelCatalogPicker.tsx b/apps/marketing/src/features/marketing/components/workspace/frozen/model-picker/ModelCatalogPicker.tsxnew file mode 100644index 0000000000..eff50b56f5--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/frozen/model-picker/ModelCatalogPicker.tsx@@ -0,0 +1,289 @@+// Frozen from the production ModelCatalogPicker; portals stay inside the website scope.+import CaretDown from '@phosphor/caret-left.svg';+import CaretRight from '@phosphor/caret-right.svg';+import CheckIcon from '@phosphor/check.svg';+import MagnifyingGlassIcon from '@phosphor/magnifying-glass.svg';+import { cn, Dropdown } from '@ui';+import { createMemo, createSignal, For, type JSX, Show } from 'solid-js';+import {+ buildModelCatalog,+ type CatalogModelOption,+ MAX_RECOMMENDED_MODELS,+ matchesModelQuery,+ modelFamilyHint,+ moreModelFamilies,+} from './modelCatalog';+import { ModelIcon } from './ProviderIcon';++type ModelCatalogPickerProps = {+ value: string | null;+ options: CatalogModelOption[];+ onSelect: (id: string) => void;+ disabled?: boolean;+ pending?: boolean;+ triggerLabel?: JSX.Element;+ children?: JSX.Element;+ emptyMessage?: string;+ triggerClass?: string;+ contentClass?: string;+ placeholder?: string;+ searchPlaceholder?: string;+ ariaLabel?: string;+ placement?: 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';+};++function ModelRow(props: {+ option: CatalogModelOption;+ selected: boolean;+ /** Trailing muted text, e.g. the family a search hit belongs to. */+ hint?: string;+ onSelect: () => void;+}) {+ return (+ <Dropdown.Item+ closeOnSelect+ class={cn('h-8 gap-2', props.selected && 'bg-ink/5 text-ink font-medium')}+ title={props.option.description ?? props.option.label}+ onSelect={props.onSelect}+ >+ <ModelIcon model={props.option.id} />+ <span class="min-w-0 flex-1 truncate text-sm">{props.option.label}</span>+ <Show when={props.hint}>+ <span class="shrink-0 text-xs text-ink-extra-muted">{props.hint}</span>+ </Show>+ <Show when={props.selected}>+ <CheckIcon class="size-3.5 shrink-0 text-accent" />+ </Show>+ </Dropdown.Item>+ );+}++/**+ * Kobalte menus still autofocus the collection on a deferred `setTimeout(0)`+ * (`deferAutoFocus` in createSelectableList) after `onOpenAutoFocus` is+ * prevented. A microtask loses that race; wait past the timeout so typing+ * lands in search.+ */+function focusSearchAfterMenuOpen(input: () => HTMLInputElement | undefined) {+ setTimeout(() => {+ const search = input();+ if (search?.isConnected) search.focus();+ });+}++export function ModelCatalogPicker(props: ModelCatalogPickerProps) {+ let searchRef: HTMLInputElement | undefined;++ const selected = () =>+ props.options.find((option) => option.id === props.value) ?? null;+ const displayValue = () => selected()?.label ?? props.placeholder ?? 'Model';++ return (+ <Dropdown placement={props.placement ?? 'top-start'}>+ <Dropdown.Trigger+ variant="ghost"+ size="sm"+ class={cn(+ 'h-9 justify-between rounded-lg border border-edge-muted bg-transparent px-3 text-left text-sm text-ink hover:bg-ink/3',+ props.triggerClass+ )}+ aria-label={props.ariaLabel}+ aria-busy={props.pending || undefined}+ title={displayValue()}+ disabled={props.disabled || props.pending}+ >+ <ModelIcon model={props.value} />+ <span class="min-w-0 flex-1 truncate text-left">+ {props.triggerLabel ?? displayValue()}+ </span>+ <CaretDown class="size-3.5 shrink-0 rotate-[-90deg] opacity-70" />+ </Dropdown.Trigger>+ <Dropdown.Content+ portalScope="local"+ onPointerDown={(event: PointerEvent) => event.stopPropagation()}+ onMouseDown={(event: MouseEvent) => event.stopPropagation()}+ class={cn(+ 'w-72 max-w-[calc(100vw-1rem)] max-h-[min(28rem,var(--kb-popper-content-available-height))] overflow-y-auto overscroll-contain',+ props.contentClass+ )}+ onOpenAutoFocus={(event) => {+ event.preventDefault();+ focusSearchAfterMenuOpen(() => searchRef);+ }}+ >+ <ModelCatalogMenu+ value={props.value}+ options={props.options}+ onSelect={props.onSelect}+ emptyMessage={props.emptyMessage}+ searchPlaceholder={props.searchPlaceholder}+ searchRef={(element) => {+ searchRef = element;+ }}+ >+ {props.children}+ </ModelCatalogMenu>+ </Dropdown.Content>+ </Dropdown>+ );+}++/** Shared searchable catalog, usable inside a root menu or an agent submenu. */+export function ModelCatalogMenu(+ props: Pick<+ ModelCatalogPickerProps,+ | 'value'+ | 'options'+ | 'onSelect'+ | 'emptyMessage'+ | 'searchPlaceholder'+ | 'children'+ > & {+ searchRef?: (element: HTMLInputElement) => void;+ }+) {+ const [query, setQuery] = createSignal('');+ const normalizedQuery = () => query().trim().toLowerCase();+ const filtered = createMemo(() => {+ const currentQuery = normalizedQuery();+ if (!currentQuery) return [];+ return props.options.filter((option) =>+ matchesModelQuery(option, currentQuery)+ );+ });+ const catalog = createMemo(() =>+ props.options.length <= MAX_RECOMMENDED_MODELS+ ? { recommended: props.options, families: [] }+ : buildModelCatalog(props.options, props.value ?? undefined)+ );+ const extraFamilies = createMemo(() => moreModelFamilies(catalog()));+ const extraCount = createMemo(() =>+ extraFamilies().reduce((count, family) => count + family.options.length, 0)+ );++ return (+ <>+ <div class="bg-menu p-1.5">+ <div class="flex items-center gap-2 px-2">+ <MagnifyingGlassIcon+ aria-hidden="true"+ class="size-4 shrink-0 text-ink-extra-muted"+ />+ <input+ ref={props.searchRef}+ aria-label={props.searchPlaceholder ?? 'Search models'}+ placeholder={props.searchPlaceholder ?? 'Search models'}+ value={query()}+ onInput={(event) => setQuery(event.currentTarget.value)}+ onMouseDown={(event: MouseEvent) => event.stopPropagation()}+ onClick={(event) => event.stopPropagation()}+ onKeyDown={(event) => {+ if (event.key !== 'Escape') event.stopPropagation();+ }}+ onKeyUp={(event) => {+ if (event.key !== 'Escape') event.stopPropagation();+ }}+ class="min-w-0 w-full border-0 bg-transparent py-2 text-sm text-ink outline-none placeholder:text-ink-extra-muted"+ />+ </div>+ </div>++ {props.children}+ <Show when={props.options.length === 0}>+ <div class="bg-menu px-3 py-2 text-xs text-ink-muted" role="status">+ {props.emptyMessage ?? 'No models available.'}+ </div>+ </Show>+ <Show+ when={normalizedQuery().length > 0}+ fallback={+ <>+ <Show when={catalog().recommended.length > 0}>+ <Dropdown.Group>+ <Dropdown.GroupLabel>Recommended</Dropdown.GroupLabel>+ <For each={catalog().recommended}>+ {(option) => (+ <ModelRow+ option={option}+ hint={modelFamilyHint(option)}+ selected={option.id === props.value}+ onSelect={() => props.onSelect(option.id)}+ />+ )}+ </For>+ </Dropdown.Group>+ </Show>++ <Show when={extraCount() > 0}>+ <Dropdown.Group>+ <Dropdown.Sub>+ <Dropdown.SubTrigger>+ <span class="truncate">More models</span>+ <span class="flex shrink-0 items-center gap-1 text-xs text-ink-extra-muted">+ {extraCount()}+ <CaretRight class="size-3" />+ </span>+ </Dropdown.SubTrigger>+ <Dropdown.SubContent+ portalScope="local"+ onPointerDown={(event: PointerEvent) =>+ event.stopPropagation()+ }+ onMouseDown={(event: MouseEvent) => event.stopPropagation()}+ class="w-72 max-w-[calc(100vw-1rem)] max-h-[var(--kb-popper-content-available-height)] overflow-y-auto overscroll-contain"+ >+ <Dropdown.Group class="max-h-72 overflow-y-auto overscroll-contain">+ <For each={extraFamilies()}>+ {(family) => (+ <>+ <Show when={family.label}>+ <Dropdown.GroupLabel>+ {family.label}+ </Dropdown.GroupLabel>+ </Show>+ <For each={family.options}>+ {(option) => (+ <ModelRow+ option={option}+ selected={option.id === props.value}+ onSelect={() => props.onSelect(option.id)}+ />+ )}+ </For>+ </>+ )}+ </For>+ </Dropdown.Group>+ </Dropdown.SubContent>+ </Dropdown.Sub>+ </Dropdown.Group>+ </Show>+ </>+ }+ >+ <Dropdown.Group class="max-h-72 overflow-y-auto overscroll-contain">+ <Dropdown.GroupLabel>+ {filtered().length === 1+ ? '1 matching model'+ : `${filtered().length} matching models`}+ </Dropdown.GroupLabel>+ <For each={filtered()}>+ {(option) => (+ <ModelRow+ option={option}+ hint={modelFamilyHint(option)}+ selected={option.id === props.value}+ onSelect={() => props.onSelect(option.id)}+ />+ )}+ </For>+ <Show when={filtered().length === 0}>+ <div class="px-3 py-4 text-sm text-ink-muted">+ No models match that search.+ </div>+ </Show>+ </Dropdown.Group>+ </Show>+ </>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/frozen/model-picker/ProviderIcon.tsx b/apps/marketing/src/features/marketing/components/workspace/frozen/model-picker/ProviderIcon.tsxnew file mode 100644index 0000000000..c47ece93dd--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/frozen/model-picker/ProviderIcon.tsx@@ -0,0 +1,31 @@+import OpenAiIcon from '@icon/openai.svg';+import ClaudeIcon from '@icon/wide-claude.svg';+import CursorIcon from '@icon/wide-cursor-ide.svg';+import SparkleIcon from '@phosphor/sparkle.svg';+import { Match, Switch } from 'solid-js';++/** Production provider glyphs for the local sample catalog. */+export function ModelIcon(props: {+ model?: string | null;+ provider?: 'claude' | 'chatgpt' | 'cursor';+ class?: string;+}) {+ const sizing = () => props.class ?? 'size-4';+ return (+ <Switch fallback={<SparkleIcon class={`shrink-0 ${sizing()}`} />}>+ <Match when={props.provider === 'cursor'}>+ <CursorIcon aria-hidden="true" class={`shrink-0 ${sizing()}`} />+ </Match>+ <Match+ when={props.provider === 'claude' || props.model?.startsWith('claude-')}+ >+ <ClaudeIcon class={`shrink-0 ${sizing()}`} />+ </Match>+ <Match+ when={props.provider === 'chatgpt' || props.model?.startsWith('gpt-')}+ >+ <OpenAiIcon class={`shrink-0 ${sizing()}`} />+ </Match>+ </Switch>+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/frozen/model-picker/modelCatalog.ts b/apps/marketing/src/features/marketing/components/workspace/frozen/model-picker/modelCatalog.tsnew file mode 100644index 0000000000..4e4083f320--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/frozen/model-picker/modelCatalog.ts@@ -0,0 +1,210 @@+export type CatalogModelOption = {+ id: string;+ label: string;+ description?: string;+ /**+ * The heading the harness listed this model under (an ACP select group+ * name). Absent when the harness offered a flat list, in which case the+ * catalog has one unlabelled family.+ */+ group?: string;+};++export type ModelFamily = {+ /** `null` for models the harness did not put under any heading. */+ label: string | null;+ options: CatalogModelOption[];+};++export type ModelCatalog = {+ recommended: CatalogModelOption[];+ families: ModelFamily[];+};++/**+ * The flagship models to feature on the first screen, matched against the+ * label the harness gave them. Product curation, not grouping: which model+ * belongs to which family is the harness's call and arrives on `group`.+ */+const RECOMMENDED_PREFIXES = [+ 'Auto',+ 'Cursor Grok 4.6',+ 'Claude Opus 5',+ 'Claude Sonnet 5',+ 'GPT-5.6 Sol',+ 'Gemini 3.8 Flash',+ 'Codex',+ 'Kimi K3',+] as const;++/** First-screen shortlist size; the rest goes behind More models. */+export const MAX_RECOMMENDED_MODELS = 5;++/** Large third-party catalogs need structure rather than one long flat list. */+export function isLargeModelCatalog(options: readonly CatalogModelOption[]) {+ return options.length > 10;+}++/**+ * A version-looking token: alphanumerics and dots with a digit first or+ * second (`4.6`, `5`, `K3`, `o3`, `R1`), but not `GPT`, `Sol`, or `Mini`.+ */+function isVersionToken(token: string): boolean {+ const [first, second] = token;+ const startsLikeAVersion =+ (first !== undefined && /\d/.test(first)) ||+ (first !== undefined &&+ second !== undefined &&+ /[A-Za-z]/.test(first) &&+ /\d/.test(second));+ return startsLikeAVersion && /^[A-Za-z0-9.]+$/.test(token);+}++/**+ * The family a display name belongs to: the words before its first+ * version-looking token, with `GPT-5.6` split at the hyphen so the version is+ * seen. A name with no version, or one that starts with a version (`Auto`,+ * `o3 Pro`), is its own family.+ *+ * This is the same rule the Cursor ACP agent applies before it sends ACP+ * groups (`CursorModel::family` in `crates/cursor_cloud_agents`). It runs+ * here only for harnesses that sent no groups, so those catalogs read the+ * same way rather than as one long flat list.+ */+export function inferModelFamily(label: string): string {+ const tokens = label+ .split(/\s+/)+ .filter(Boolean)+ .flatMap((token) => {+ const hyphen = token.indexOf('-');+ const afterHyphen = token[hyphen + 1];+ return hyphen > 0 && afterHyphen !== undefined && /\d/.test(afterHyphen)+ ? [token.slice(0, hyphen), token.slice(hyphen + 1)]+ : [token];+ });+ const family: string[] = [];+ for (const token of tokens) {+ if (isVersionToken(token)) break;+ family.push(token);+ }+ if (family.length === 0 || family.length === tokens.length)+ return label.trim();+ return family.join(' ');+}++function bucketBy(+ options: readonly CatalogModelOption[],+ labelOf: (option: CatalogModelOption) => string | null+): ModelFamily[] {+ const families: ModelFamily[] = [];+ for (const option of options) {+ const label = labelOf(option);+ const family = families.find((candidate) => candidate.label === label);+ if (family) family.options.push(option);+ else families.push({ label, options: [option] });+ }+ return families;+}++/**+ * Bucket options under the harness's headings, in the order it listed them.+ * A harness that sent no headings gets them inferred from the names; if that+ * still finds no family with two members, the list stays one unlabelled+ * family rather than gaining a header per model.+ */+function familiesOf(options: readonly CatalogModelOption[]): ModelFamily[] {+ if (options.some((option) => option.group)) {+ return bucketBy(options, (option) => option.group ?? null);+ }+ const inferred = bucketBy(options, (option) =>+ inferModelFamily(option.label)+ );+ return inferred.some((family) => family.options.length > 1)+ ? inferred+ : [{ label: null, options: [...options] }];+}++export function buildModelCatalog(+ options: readonly CatalogModelOption[],+ selectedId?: string | null+): ModelCatalog {+ const families = familiesOf(options);+ const recommended: CatalogModelOption[] = [];+ const recommendedIds = new Set<string>();+ const recommendedLabels = new Set<string>();++ const pushRecommended = (option: CatalogModelOption | undefined) => {+ if (+ !option ||+ recommended.length >= MAX_RECOMMENDED_MODELS ||+ recommendedIds.has(option.id) ||+ recommendedLabels.has(option.label)+ )+ return;+ recommended.push(option);+ recommendedIds.add(option.id);+ recommendedLabels.add(option.label);+ };++ pushRecommended(options.find((option) => option.id === selectedId));+ for (const prefix of RECOMMENDED_PREFIXES) {+ pushRecommended(+ options.find((option) =>+ prefix === 'Codex'+ ? option.label.startsWith(prefix)+ : option.label === prefix || option.label.startsWith(`${prefix} `)+ )+ );+ }+ // A harness whose names the curated list does not know still gets a useful+ // shortlist: the first model of each of its headings, in its own order.+ for (const family of families) {+ pushRecommended(family.options[0]);+ }++ return { recommended, families };+}++/** Family buckets with the first-screen recommended shortlist removed. */+export function moreModelFamilies(catalog: ModelCatalog): ModelFamily[] {+ const recommendedIds = new Set(+ catalog.recommended.map((option) => option.id)+ );+ const recommendedLabels = new Set(+ catalog.recommended.map((option) => option.label)+ );+ return catalog.families+ .map((family) => ({+ label: family.label,+ options: family.options.filter(+ (option) =>+ !recommendedIds.has(option.id) && !recommendedLabels.has(option.label)+ ),+ }))+ .filter((family) => family.options.length > 0);+}++/**+ * The heading to show beside a model: the harness's, or the inferred one when+ * the harness sent none. `undefined` when it would only repeat the label.+ */+export function modelFamilyHint(+ option: CatalogModelOption+): string | undefined {+ const family = option.group ?? inferModelFamily(option.label);+ return family === option.label ? undefined : family;+}++/**+ * Whether a search query hits this model by name, by its heading, or by its+ * id — a name displayed as "Sonnet 5" should still be findable by typing the+ * vendor out of its `anthropic/claude-sonnet-5` slug.+ */+export function matchesModelQuery(option: CatalogModelOption, query: string) {+ const family = option.group ?? inferModelFamily(option.label);+ return (+ option.label.toLowerCase().includes(query) ||+ family.toLowerCase().includes(query) ||+ option.id.toLowerCase().includes(query)+ );+}diff --git a/apps/marketing/src/features/marketing/components/workspace/frozen/property-identifiers.ts b/apps/marketing/src/features/marketing/components/workspace/frozen/property-identifiers.tsnew file mode 100644index 0000000000..f4b6072275--- /dev/null+++ b/apps/marketing/src/features/marketing/components/workspace/frozen/property-identifiers.ts@@ -0,0 +1,47 @@+/** Stable property definition IDs from the backend seed migrations. */+export const SYSTEM_PROPERTY_IDS = {+ ASSIGNEES: '00000001-0000-0000-0000-000000000001',+ STATUS: '00000001-0000-0000-0000-000000000002',+ PRIORITY: '00000001-0000-0000-0000-000000000003',+ DUE_DATE: '00000001-0000-0000-0000-000000000004',+ PARENT_TASK: '00000001-0000-0000-0000-000000000005',+ SUBTASKS: '00000001-0000-0000-0000-000000000006',+ DEPENDS_ON: '00000001-0000-0000-0000-000000000007',+ EFFORT: '00000001-0000-0000-0000-000000000008',+ STORY_POINTS: '00000001-0000-0000-0000-000000000009',+ RELEVANT_DOCUMENTS: '00000001-0000-0000-0000-00000000000a',+ SOURCE: '00000001-0000-0000-0000-00000000000b',+ COMPANIES: '00000001-0000-0000-0000-00000000000c',+ SENDER: '00000001-0000-0000-0000-00000000000d',+ RECIPIENTS: '00000001-0000-0000-0000-00000000000e',+ SUBJECT: '00000001-0000-0000-0000-00000000000f',+ STAGE: '00000001-0000-0000-0000-000000000010',+ COMPANY_OWNER: '00000001-0000-0000-0000-000000000011',+ REVENUE: '00000001-0000-0000-0000-000000000012',+} as const;++/** Stable option IDs, kept independent of UI/block registries for tooling. */+export const PROPERTY_OPTION_IDS = {+ PRIORITY: {+ LOW: '00000001-0000-0000-0003-000000000001',+ MEDIUM: '00000001-0000-0000-0003-000000000002',+ HIGH: '00000001-0000-0000-0003-000000000003',+ URGENT: '00000001-0000-0000-0003-000000000004',+ },+ STATUS: {+ NOT_STARTED: '00000001-0000-0000-0002-000000000001',+ IN_PROGRESS: '00000001-0000-0000-0002-000000000002',+ IN_REVIEW: '00000001-0000-0000-0002-000000000003',+ COMPLETED: '00000001-0000-0000-0002-000000000004',+ CANCELED: '00000001-0000-0000-0002-000000000005',+ },+ STAGE: {+ LEAD: '00000001-0000-0000-0010-000000000001',+ QUALIFIED: '00000001-0000-0000-0010-000000000002',+ DEMO: '00000001-0000-0000-0010-000000000003',+ TRIAL: '00000001-0000-0000-0010-000000000004',+ NEGOTIATION: '00000001-0000-0000-0010-000000000005',+ CUSTOMER: '00000001-0000-0000-0010-000000000006',+ CHURNED: '00000001-0000-0000-0010-000000000007',+ },+} as const;diff --git a/apps/marketing/src/features/marketing/core/demo-email.ts b/apps/marketing/src/features/marketing/core/demo-email.tsnew file mode 100644index 0000000000..43e72a6614--- /dev/null+++ b/apps/marketing/src/features/marketing/core/demo-email.ts@@ -0,0 +1,113 @@+// Demonstration data only; no customer inbox content or app service access.+export const emailTags = [+ { id: 'launch', label: 'Launch', color: '#F5D90A' },+ { id: 'customers', label: 'Customers', color: '#E93D82' },+ { id: 'follow-up', label: 'Follow up', color: '#F76B15' },+ { id: 'product', label: 'Product', color: '#0091FF' },+ { id: 'calendar', label: 'Calendar', color: '#FFC53D' },+] as const;+export type EmailTagId = (typeof emailTags)[number]['id'];+export type DemoEmail = {+ id: string;+ sender: string;+ subject: string;+ snippet: string;+ time: string;+ account: 'work' | 'personal';+ tags?: EmailTagId[];+ favorite?: boolean;+ unread?: boolean;+ noise?: boolean;+ yesterday?: boolean;+};+export const demoEmails: readonly DemoEmail[] = [+ {+ id: 'dana',+ tags: ['customers', 'follow-up'],+ favorite: true,+ sender: 'Dana Whitfield',+ subject: 'Next steps for our team',+ snippet: 'Thursday at 9 works. Could you share the rollout plan?',+ time: '9:41 AM',+ account: 'work',+ unread: true,+ },+ {+ id: 'julia',+ tags: ['launch'],+ sender: 'Julia Westphal',+ subject: 'Launch announcement',+ snippet: 'The first draft is ready for your review.',+ time: '9:32 AM',+ account: 'work',+ unread: true,+ },+ {+ id: 'teo',+ tags: ['product'],+ sender: 'Teo Nys',+ subject: 'Ready for Thursday',+ snippet: 'The invite flow is ready. Let’s run through the checklist.',+ time: '9:18 AM',+ account: 'work',+ },+ {+ id: 'updates',+ tags: ['product'],+ sender: 'Product updates',+ subject: 'September release notes',+ snippet: 'See what’s new this month.',+ time: '9:02 AM',+ account: 'work',+ },+ {+ id: 'design',+ sender: 'Design Weekly',+ subject: 'This week in design',+ snippet: 'A collection of new tools, projects, and ideas.',+ time: '8:40 AM',+ account: 'personal',+ noise: true,+ },+ {+ id: 'meadow',+ tags: ['calendar'],+ sender: 'The Meadow',+ subject: 'Your table is confirmed',+ snippet: 'We look forward to seeing you on Saturday.',+ time: 'Sep 28',+ account: 'personal',+ yesterday: true,+ },+ {+ id: 'plan',+ tags: ['launch', 'customers'],+ favorite: true,+ sender: 'Julia, Dana',+ subject: 'Team rollout plan',+ snippet: 'Here are the next steps we discussed on the call.',+ time: 'Sep 28',+ account: 'work',+ yesterday: true,+ },+ {+ id: 'digest',+ sender: 'Engineering Weekly',+ subject: 'Your weekly digest',+ snippet: 'Updates from the projects you follow.',+ time: 'Sep 28',+ account: 'work',+ noise: true,+ yesterday: true,+ },+ {+ id: 'receipt',+ sender: 'The Bookshop',+ subject: 'Thanks for your order',+ snippet: 'Your order is on its way.',+ time: 'Sep 28',+ account: 'personal',+ noise: true,+ yesterday: true,+ },+];diff --git a/apps/marketing/src/features/marketing/core/demo-mentions.ts b/apps/marketing/src/features/marketing/core/demo-mentions.tsnew file mode 100644index 0000000000..daa1a3ec0a--- /dev/null+++ b/apps/marketing/src/features/marketing/core/demo-mentions.ts@@ -0,0 +1,62 @@+import { homepagePeople } from './homepage-demo-people';++export type DemoMention = {+ id: string;+ label: string;+ kind: 'person' | 'document' | 'task' | 'agent' | 'channel' | 'spreadsheet';+ photo?: string;+ shortName?: string;+ detail?: string;+ status?: 'Not Started' | 'In Progress' | 'In Review';+};++/** The same fictional reference set is available in every writable demo. */+export const demoMentions: DemoMention[] = [+ ...(['julia', 'teo', 'jacob', 'valentina', 'gabriel'] as const).map((id) => ({+ id,+ label: homepagePeople[id].name,+ kind: 'person' as const,+ photo: homepagePeople[id].photo,+ shortName: homepagePeople[id].shortName,+ })),+ { id: 'plan', label: 'Q3 launch plan', kind: 'document' },+ {+ id: 'announcement',+ label: 'Write the launch announcement',+ kind: 'task',+ status: 'In Review',+ },+ { id: 'cursor', label: 'Cursor', kind: 'agent' },+ { id: 'rollout', label: 'Team rollout plan', kind: 'document' },+ {+ id: 'checklist',+ label: 'Prepare the launch checklist',+ kind: 'task',+ status: 'Not Started',+ },+ { id: 'claude', label: 'Claude', kind: 'agent' },+ { id: 'notes', label: 'Demo call notes', kind: 'document' },+ {+ id: 'deploy',+ label: 'Fix the deploy pipeline',+ kind: 'task',+ status: 'In Progress',+ },+ { id: 'customers', label: 'Customers to reach', kind: 'spreadsheet' },+ { id: 'metrics', label: 'Launch metrics', kind: 'spreadsheet' },+ { id: 'launch', label: 'launch', kind: 'channel' },+ { id: 'engineers', label: 'engineers', kind: 'channel' },+ { id: 'product', label: 'product', kind: 'channel' },+];++export function mentionAtCaret(text: string, caret: number) {+ const before = text.slice(0, caret);+ const match = /(?:^|[\s(])@([^@\n]{0,64})$/.exec(before);+ if (!match) return undefined;+ return { start: caret - match[1].length - 1, end: caret, query: match[1] };+}++/** Names for task titles and other plain-text surfaces built from a message. */+export function plainDemoMentions(text: string) {+ return text.replace(/@\[([^\]]*)\]\(demo-mention:[\w-]+\)/g, '$1');+}diff --git a/apps/marketing/src/features/marketing/core/dummy-workspace.ts b/apps/marketing/src/features/marketing/core/dummy-workspace.tsnew file mode 100644index 0000000000..3373c5f37e--- /dev/null+++ b/apps/marketing/src/features/marketing/core/dummy-workspace.ts@@ -0,0 +1,320 @@+import type { DemoEmail } from './demo-email';+import { demoEmails } from './demo-email';+import type { HomepagePersonId } from './homepage-demo-people';+import { sampleWorkspaceChannels } from './workspace-chat-fixtures';+import {+ type SampleCompany,+ type SampleEvent,+ sampleCompanies,+ sampleEvents,+} from './workspace-fixtures';+import { extraWorkspaceDocuments } from './workspace-parity-fixtures';++export type WorkspaceView =+ | 'home'+ | 'tasks'+ | 'email'+ | 'messages'+ | 'documents'+ | 'agents'+ | 'calendar'+ | 'crm'+ | 'spreadsheet';+export type TaskStatus =+ | 'Not Started'+ | 'In Progress'+ | 'In Review'+ | 'Completed'+ | 'Canceled';+export type TaskPriority = 'Low' | 'Medium' | 'High' | 'Urgent';+export type WorkspaceComment = {+ id: string;+ person: HomepagePersonId;+ body: string;+ time: string;+ emailId?: string;+ taskId?: string;+ documentId?: string;+ replyTo?: string;+ reactions?: string[];+};+export type WorkspaceTask = {+ id: string;+ title: string;+ description: string;+ status: TaskStatus;+ priority: TaskPriority;+ owner: HomepagePersonId;+ creator: HomepagePersonId;+ tags: string[];+ channel: string;+ steps: { id: string; text: string; done: boolean }[];+ comments: WorkspaceComment[];+};+export type EmailRecipients = { to?: string; cc?: string; bcc?: string };+export type WorkspaceEmail = DemoEmail &+ EmailRecipients & {+ folder: 'inbox' | 'sent' | 'drafts' | 'scheduled';+ body: string;+ replies: (WorkspaceComment & EmailRecipients)[];+ scheduled?: string;+ shared?: string;+ archived?: boolean;+ };+export type WorkspaceDocument = {+ kind?: 'document' | 'spreadsheet' | 'canvas' | 'code';+ updated?: string;+ tags?: string[];+ id: string;+ title: string;+ body: string;+ comments: WorkspaceComment[];+};+export type DummyData = {+ companies: SampleCompany[];+ events: SampleEvent[];+ tasks: WorkspaceTask[];+ emails: WorkspaceEmail[];+ documents: WorkspaceDocument[];+ channels: {+ id: string;+ person?: HomepagePersonId;+ messages: WorkspaceComment[];+ }[];+ activity: { id: string; text: string; time: string }[];+};++export function dummyData(): DummyData {+ const definitions: [+ string,+ string,+ TaskStatus,+ TaskPriority,+ HomepagePersonId,+ string,+ ][] = [+ [+ 'announcement',+ 'Write the launch announcement',+ 'In Review',+ 'High',+ 'julia',+ 'Prepare the announcement for Thursday’s launch. Link the rollout plan and the product demo.',+ ],+ [+ 'invite',+ 'Fix the team invite handoff',+ 'In Progress',+ 'Urgent',+ 'teo',+ 'Keep the invited team selected through sign-up. New and existing accounts should land in the right workspace.',+ ],+ [+ 'checklist',+ 'Prepare the launch checklist',+ 'Not Started',+ 'High',+ 'jacob',+ 'Confirm the owners, launch date, and final checks for Thursday.',+ ],+ [+ 'follow-up',+ 'Send Dana the rollout plan',+ 'Not Started',+ 'Medium',+ 'jacob',+ 'Share the rollout plan with Dana and confirm the follow-up meeting.',+ ],+ [+ 'deploy',+ 'Fix the deploy pipeline',+ 'In Progress',+ 'High',+ 'cursor',+ 'Investigate the flaky deploy, add regression coverage, and open a pull request for review.',+ ],+ [+ 'demo',+ 'Record the product demo',+ 'Completed',+ 'Medium',+ 'julia',+ 'Record the team workflow for the launch announcement.',+ ],+ [+ 'pricing',+ 'Review the pricing page',+ 'Not Started',+ 'Low',+ 'jacob',+ 'Check the team plan and the questions from our last customer call.',+ ],+ [+ 'release',+ 'Review the deploy pull request',+ 'In Review',+ 'High',+ 'teo',+ 'Review Cursor’s retry changes and run the release checks.',+ ],+ [+ 'support',+ 'Answer onboarding questions',+ 'Not Started',+ 'Medium',+ 'julia',+ 'Respond to the questions from the Meadow team.',+ ],+ [+ 'changelog',+ 'Publish the changelog',+ 'Not Started',+ 'Medium',+ 'teo',+ 'Document the features in this release and link the product demo.',+ ],+ [+ 'design',+ 'Review the mobile navigation',+ 'In Progress',+ 'High',+ 'valentina',+ 'Review touch targets and the task detail on smaller screens.',+ ],+ [+ 'metrics',+ 'Check launch metrics',+ 'Completed',+ 'Low',+ 'jacob',+ 'Compare sign-ups and activation from the previous release.',+ ],+ ];+ return {+ companies: sampleCompanies(),+ events: sampleEvents(),+ tasks: definitions.map(+ ([id, title, status, priority, owner, description], i) => ({+ id,+ title,+ status,+ priority,+ owner,+ description,+ creator: i % 3 === 0 ? 'julia' : 'jacob',+ tags: [i < 6 ? 'Launch' : 'Product'],+ channel: i < 6 ? 'launch' : 'product',+ steps: [+ {+ id: 'review',+ text: 'Review the changes with the team',+ done: status === 'Completed',+ },+ {+ id: 'verify',+ text: 'Verify before Thursday’s launch',+ done: false,+ },+ ],+ comments:+ i === 0+ ? [+ {+ id: 'announcement-comment',+ person: 'julia',+ body: 'The first draft is ready for review.',+ time: '9:32 AM',+ },+ ]+ : [],+ })+ ),+ emails: (+ [+ ...demoEmails,+ {+ id: 'feedback',+ sender: 'Maya Chen',+ subject: 'Feedback from the pilot team',+ snippet:+ 'The shared inbox is already saving us a few hours every week.',+ time: '8:32 AM',+ account: 'work',+ tags: ['customers'],+ },+ {+ id: 'assets',+ sender: 'Julia Westphal',+ subject: 'Final launch assets',+ snippet: 'The new screenshots and product walkthrough are ready.',+ time: '8:10 AM',+ account: 'work',+ tags: ['launch'],+ },+ {+ id: 'research',+ sender: 'Alex Rivera',+ subject: 'Notes from our customer interviews',+ snippet:+ 'I pulled together the themes we heard across the five sessions.',+ time: 'Sep 28',+ account: 'work',+ yesterday: true,+ tags: ['product', 'customers'],+ },+ {+ id: 'coffee',+ sender: 'Sam Parker',+ subject: 'Coffee next week?',+ snippet:+ 'Would love to hear how the launch went. Tuesday works for me.',+ time: 'Sep 28',+ account: 'personal',+ yesterday: true,+ },+ ] satisfies DemoEmail[]+ ).map((email) => ({+ ...email,+ folder: 'inbox',+ body: `Hi Jacob,\n\n${email.snippet}\n\nThanks,\n${email.sender.split(' ')[0]}`,+ replies: [],+ })),+ documents: [+ {+ id: 'plan',+ tags: ['Launch', 'Product'],+ title: 'Q3 launch plan',+ body: 'One shared workspace. One great launch.\n\n## Launch checklist\n\n- [x] Finalize the product story\n- [x] Review the launch announcement\n- [ ] Send the customer email\n- [ ] Publish the changelog\n\n## Owners\n\n**Julia** — announcement and customer email\n**Teo** — deploy and release checks\n**Jacob** — customer conversations',+ comments: [],+ },+ {+ id: 'rollout',+ tags: ['Launch', 'Customers'],+ title: 'Team rollout plan',+ body: '## Setup\n\nConnect your work email, invite your team, and bring your existing documents into Macro.\n\n## Next steps\n\n- Confirm the workspace owner\n- Invite the Meadow team\n- Schedule the Thursday check-in',+ comments: [],+ },+ {+ id: 'notes',+ tags: ['Customers', 'Follow up'],+ title: 'Demo call notes',+ body: '## The Meadow\n\nDana’s team wants email, tasks, and documents in one workspace.\n\n## Follow-up\n\nShare the rollout plan. Julia will help with setup. Thursday at 9 works for the follow-up.',+ comments: [],+ },+ ...extraWorkspaceDocuments(),+ ],+ channels: sampleWorkspaceChannels(),+ activity: [+ {+ id: 'a1',+ text: 'Julia updated Write the launch announcement',+ time: '9:32 AM',+ },+ {+ id: 'a2',+ text: 'Cursor started Fix the deploy pipeline',+ time: '9:30 AM',+ },+ ],+ };+}diff --git a/apps/marketing/src/features/marketing/core/savings-calculator.test.ts b/apps/marketing/src/features/marketing/core/savings-calculator.test.tsnew file mode 100644index 0000000000..4f64365433--- /dev/null+++ b/apps/marketing/src/features/marketing/core/savings-calculator.test.ts@@ -0,0 +1,74 @@+import { describe, expect, it } from 'vitest';+import {+ formatUsd,+ initialChoices,+ macroAnnualCost,+ parseSeats,+ type SavingsToolId,+ summarizeSavings,+ type ToolChoice,+} from './savings-calculator';++const choices = (+ overrides: Partial<Record<SavingsToolId, Partial<ToolChoice>>> = {}+): Record<SavingsToolId, ToolChoice> => {+ const result = initialChoices();+ for (const [id, override] of Object.entries(overrides)) {+ result[id as SavingsToolId] = {+ ...result[id as SavingsToolId],+ ...override,+ };+ }+ return result;+};++const unselected = (...ids: SavingsToolId[]) =>+ Object.fromEntries(ids.map((id) => [id, { selected: false }]));++describe('savings calculator', () => {+ it('multiplies every selected entry plan by seats and months', () => {+ const monthly = 1000 + 1000 + 791 + 1099 + 700 + 700 + 2500 + 725 + 2500;+ expect(summarizeSavings(choices(), 5)).toEqual({+ toolsCents: monthly * 12 * 5,+ macroCents: 4000 * 12 * 5,+ });+ });++ it('uses the chosen plan and skips tools that are not selected', () => {+ const summary = summarizeSavings(+ choices({+ ...unselected(+ 'jira',+ 'asana',+ 'clickup',+ 'hubspot',+ 'salesforce',+ 'slack'+ ),+ notion: { planId: 'business' },+ }),+ 1+ );+ expect(summary.toolsCents).toBe((2000 + 1000 + 2500) * 12);+ });++ it('charges Macro $40 a seat for the first 5 seats, then $80', () => {+ expect(macroAnnualCost(1)).toBe(4000 * 12);+ expect(macroAnnualCost(5)).toBe(4000 * 12 * 5);+ expect(macroAnnualCost(8)).toBe((4000 * 5 + 8000 * 3) * 12);+ });++ it('keeps seats a whole number between 1 and the maximum', () => {+ expect(parseSeats('12')).toBe(12);+ expect(parseSeats('0')).toBe(1);+ expect(parseSeats('-4')).toBe(1);+ expect(parseSeats('999999')).toBe(10_000);+ expect(parseSeats('')).toBeNull();+ });++ it('formats whole dollars without cents', () => {+ expect(formatUsd(14700)).toBe('$147');+ expect(formatUsd(5225)).toBe('$52.25');+ expect(formatUsd(4689000)).toBe('$46,890');+ });+});diff --git a/apps/marketing/src/features/marketing/core/savings-calculator.ts b/apps/marketing/src/features/marketing/core/savings-calculator.tsnew file mode 100644index 0000000000..1c4bc04e76--- /dev/null+++ b/apps/marketing/src/features/marketing/core/savings-calculator.ts@@ -0,0 +1,180 @@+/**+ * Per-seat prices for the pricing-page savings calculator. Prices are stored as+ * published (cents per seat per month) and compared as yearly team totals.+ *+ * Competitor prices are their public per-seat rates billed annually (their+ * lowest advertised price), checked against each pricing page in September+ * 2026. Jira publishes a small-team per-user rate rather than an annual one.+ * Macro's paid plan is $40 per seat for a team's first 5 seats, then $80.+ */+export const MACRO_SEAT_CENTS = 4000;+export const MACRO_EXTRA_SEAT_CENTS = 8000;+export const MACRO_DISCOUNTED_SEATS = 5;+export const MAX_SEATS = 10_000;++export const PRICES_CHECKED = 'September 2026';++export type SavingsPlan = {+ id: string;+ name: string;+ monthlyCents: number;+};++export type SavingsTool = {+ id:+ | 'notion'+ | 'linear'+ | 'jira'+ | 'asana'+ | 'clickup'+ | 'hubspot'+ | 'salesforce'+ | 'slack'+ | 'superhuman';+ name: string;+ plans: readonly [SavingsPlan, SavingsPlan];+};++export type SavingsToolId = SavingsTool['id'];++export const SAVINGS_TOOLS: readonly SavingsTool[] = [+ {+ id: 'notion',+ name: 'Notion',+ plans: [+ { id: 'plus', name: 'Plus', monthlyCents: 1000 },+ { id: 'business', name: 'Business', monthlyCents: 2000 },+ ],+ },+ {+ id: 'linear',+ name: 'Linear',+ plans: [+ { id: 'basic', name: 'Basic', monthlyCents: 1000 },+ { id: 'business', name: 'Business', monthlyCents: 1600 },+ ],+ },+ {+ id: 'jira',+ name: 'Jira',+ plans: [+ { id: 'standard', name: 'Standard', monthlyCents: 791 },+ { id: 'premium', name: 'Premium', monthlyCents: 1454 },+ ],+ },+ {+ id: 'asana',+ name: 'Asana',+ plans: [+ { id: 'starter', name: 'Starter', monthlyCents: 1099 },+ { id: 'advanced', name: 'Advanced', monthlyCents: 2499 },+ ],+ },+ {+ id: 'clickup',+ name: 'ClickUp',+ plans: [+ { id: 'unlimited', name: 'Unlimited', monthlyCents: 700 },+ { id: 'business', name: 'Business', monthlyCents: 1200 },+ ],+ },+ {+ // Sales Hub, HubSpot's per-seat CRM plans.+ id: 'hubspot',+ name: 'HubSpot',+ plans: [+ { id: 'starter', name: 'Starter', monthlyCents: 700 },+ { id: 'professional', name: 'Professional', monthlyCents: 9000 },+ ],+ },+ {+ id: 'salesforce',+ name: 'Salesforce',+ plans: [+ { id: 'starter', name: 'Starter', monthlyCents: 2500 },+ { id: 'pro', name: 'Pro', monthlyCents: 10000 },+ ],+ },+ {+ id: 'slack',+ name: 'Slack',+ plans: [+ { id: 'pro', name: 'Pro', monthlyCents: 725 },+ { id: 'business-plus', name: 'Business+', monthlyCents: 1500 },+ ],+ },+ {+ id: 'superhuman',+ name: 'Superhuman',+ plans: [+ { id: 'starter', name: 'Starter', monthlyCents: 2500 },+ { id: 'business', name: 'Business', monthlyCents: 3300 },+ ],+ },+];++export type ToolChoice = { selected: boolean; planId: string };++/** Yearly cost for the whole team. */+export type SavingsSummary = {+ toolsCents: number;+ macroCents: number;+};++/** Every tool selected, on its entry plan. */+export function initialChoices(): Record<SavingsToolId, ToolChoice> {+ return Object.fromEntries(+ SAVINGS_TOOLS.map((tool) => [+ tool.id,+ { selected: true, planId: tool.plans[0].id },+ ])+ ) as Record<SavingsToolId, ToolChoice>;+}++/** Yearly per-seat price of a tool's plan. */+export function annualPlanPrice(tool: SavingsTool, planId: string): number {+ const plan = tool.plans.find((item) => item.id === planId) ?? tool.plans[0];+ return plan.monthlyCents * 12;+}++/** A whole number of seats between 1 and `MAX_SEATS`, or null if unparseable. */+export function parseSeats(value: string): number | null {+ const seats = Number.parseInt(value, 10);+ if (!Number.isFinite(seats)) return null;+ return Math.min(MAX_SEATS, Math.max(1, seats));+}++/** Yearly cost of Macro's paid plan: $40 a seat for the first 5, then $80. */+export function macroAnnualCost(seats: number): number {+ const discounted = Math.min(seats, MACRO_DISCOUNTED_SEATS);+ const extra = seats - discounted;+ return (discounted * MACRO_SEAT_CENTS + extra * MACRO_EXTRA_SEAT_CENTS) * 12;+}++/** Yearly team cost of the selected tools and of Macro. */+export function summarizeSavings(+ choices: Record<SavingsToolId, ToolChoice>,+ seats: number+): SavingsSummary {+ const perSeatCents = SAVINGS_TOOLS.reduce((total, tool) => {+ const choice = choices[tool.id];+ return choice.selected+ ? total + annualPlanPrice(tool, choice.planId)+ : total;+ }, 0);+ return {+ toolsCents: perSeatCents * seats,+ macroCents: macroAnnualCost(seats),+ };+}++/** `$52.25`, or `$147` when there are no cents. */+export function formatUsd(cents: number): string {+ const dollars = cents / 100;+ return dollars.toLocaleString('en-US', {+ style: 'currency',+ currency: 'USD',+ minimumFractionDigits: Number.isInteger(dollars) ? 0 : 2,+ maximumFractionDigits: 2,+ });+}diff --git a/apps/marketing/src/features/marketing/core/workspace-chat-fixtures.ts b/apps/marketing/src/features/marketing/core/workspace-chat-fixtures.tsnew file mode 100644index 0000000000..506d7b9235--- /dev/null+++ b/apps/marketing/src/features/marketing/core/workspace-chat-fixtures.ts@@ -0,0 +1,1026 @@+import type { DummyData, WorkspaceComment } from './dummy-workspace';+import type { HomepagePersonId } from './homepage-demo-people';++// Fictional conversations inspired by the team's cadence and product topics.+// Links resolve only to sample entities; no private messages or URLs are copied.+function message(+ id: string,+ person: HomepagePersonId,+ time: string,+ body: string,+ extra: Partial<+ Pick<+ WorkspaceComment,+ 'replyTo' | 'reactions' | 'documentId' | 'taskId' | 'emailId'+ >+ > = {}+): WorkspaceComment {+ return { id, person, time, body, ...extra };+}++export function sampleWorkspaceChannels(): DummyData['channels'] {+ return [+ {+ id: 'dm-julia',+ person: 'julia',+ messages: [+ message('julia-coffee', 'julia', '8:12 AM', 'coffee then screenshots?'),+ message('julia-coffee-reply', 'jacob', '8:13 AM', 'yes. give me 10'),+ message(+ 'julia-story',+ 'julia',+ '8:31 AM',+ 'I tried a few versions of the launch copy. The one inbox line is still the clearest.'+ ),+ message(+ 'julia-story-reply',+ 'jacob',+ '8:33 AM',+ 'agree. emails, agents, tasks, messages. just say what it does'+ ),+ message(+ 'julia-cut',+ 'jacob',+ '8:34 AM',+ 'can we cut the paragraph about unlocking productivity lol'+ ),+ message('julia-cut-reply', 'julia', '8:35 AM', 'already gone 😂', {+ reactions: ['jacob'],+ }),+ message(+ 'julia-demo',+ 'julia',+ '9:06 AM',+ 'The recording is ready too. I start in the inbox, open the customer email, then ask Macro to draft the follow-up.'+ ),+ message(+ 'julia-demo-reply',+ 'jacob',+ '9:08 AM',+ 'nice. show the actual edit happening in the doc too'+ ),+ message(+ 'julia-take',+ 'julia',+ '9:10 AM',+ 'That’s in the second take. First take had my calendar notification right in the middle of it'+ ),+ message(+ 'julia-take-reply',+ 'jacob',+ '9:11 AM',+ 'authentic demo experience'+ ),+ message('julia-take-laugh', 'julia', '9:11 AM', 'painfully authentic', {+ reactions: ['jacob'],+ }),+ message(+ 'julia-assets',+ 'julia',+ '9:47 AM',+ 'Final assets are here. The customer example uses Meadow rather than one of the internal threads.',+ { emailId: 'assets' }+ ),+ message(+ 'dm1',+ 'julia',+ '10:43 AM',+ 'copy is ready. can you take one last look at the plan?',+ { documentId: 'plan' }+ ),+ message(+ 'dm2',+ 'jacob',+ '10:45 AM',+ 'looks good. sharing with the team now'+ ),+ message(+ 'julia-mobile',+ 'jacob',+ '11:02 AM',+ 'mobile crop is a little tight. could we give the heading more room?'+ ),+ message(+ 'julia-mobile-reply',+ 'julia',+ '11:07 AM',+ 'Yep. Exporting both sizes again. Keeping the type the same.'+ ),+ message(+ 'julia-lunch',+ 'julia',+ '11:24 AM',+ 'lunch after the check-in?'+ ),+ message(+ 'julia-lunch-reply',+ 'jacob',+ '11:25 AM',+ 'yes pls. i have been staring at this sidebar for too long'+ ),+ ],+ },+ {+ id: 'dm-teo',+ person: 'teo',+ messages: [+ message(+ 'teo-morning',+ 'jacob',+ '8:18 AM',+ 'how’s the invite fix looking?'+ ),+ message(+ 'teo-case',+ 'teo',+ '8:21 AM',+ 'New account works. Existing account was losing the selected team after sign-in.'+ ),+ message(+ 'teo-case-reply',+ 'jacob',+ '8:23 AM',+ 'that’s the one Dana hit right?'+ ),+ message('teo-confirm', 'teo', '8:24 AM', 'Yep. I’ve got a repro now.'),+ message(+ 'teo-test',+ 'teo',+ '8:46 AM',+ 'Added coverage for both paths. Also checked opening the invite in a second tab.'+ ),+ message('teo-test-reply', 'jacob', '8:48 AM', 'nice. thank you'),+ message('dm3', 'teo', '9:18 AM', 'invite flow is ready for review', {+ taskId: 'invite',+ reactions: ['jacob'],+ }),+ message(+ 'teo-review',+ 'jacob',+ '9:31 AM',+ 'tried it with an existing account. landed in the right team'+ ),+ message(+ 'teo-review-reply',+ 'teo',+ '9:32 AM',+ 'Great. I’ll include it in today’s deploy.'+ ),+ message(+ 'teo-agent',+ 'jacob',+ '9:46 AM',+ 'also tried the agent edits on the launch doc. pretty wild seeing it type in the same document'+ ),+ message(+ 'teo-agent-reply',+ 'teo',+ '9:49 AM',+ 'Try editing while it’s running. The CRDT merge is the interesting part.'+ ),+ message(+ 'teo-merge',+ 'jacob',+ '9:54 AM',+ 'yep. changed a heading while it was fixing the bullets. both stayed'+ ),+ message(+ 'teo-merge-reply',+ 'teo',+ '9:55 AM',+ 'That’s the test I wanted. Much better than replacing the whole document.'+ ),+ message(+ 'teo-mobile',+ 'jacob',+ '10:17 AM',+ 'going to dogfood the mobile build on my walk'+ ),+ message(+ 'teo-mobile-reply',+ 'teo',+ '10:18 AM',+ 'Please put bugs in the task, not twelve separate DMs 😂',+ { taskId: 'design' }+ ),+ message('teo-mobile-promise', 'jacob', '10:19 AM', 'no promises', {+ reactions: ['teo'],+ }),+ message(+ 'teo-deploy',+ 'teo',+ '11:12 AM',+ 'Deploy is through. Invite and retry fixes are both in.'+ ),+ message(+ 'teo-deploy-reply',+ 'jacob',+ '11:14 AM',+ 'great. i’ll tell Julia she can record the final take'+ ),+ ],+ },+ {+ id: 'launch',+ messages: [+ message(+ 'launch-morning',+ 'julia',+ '8:15 AM',+ 'morning! final launch pass today. Copy, recording, customer email.'+ ),+ message(+ 'launch-story',+ 'jacob',+ '8:18 AM',+ 'lead with one inbox. people get that immediately'+ ),+ message(+ 'launch-story-reply',+ 'julia',+ '8:20 AM',+ 'Agreed. The agent editing clip comes right after.',+ { replyTo: 'launch-story' }+ ),+ message(+ 'launch-story-confirm',+ 'teo',+ '8:22 AM',+ 'And show the edits in the actual doc, not just the agent saying it finished.',+ { replyTo: 'launch-story', reactions: ['jacob', 'julia'] }+ ),+ message(+ 'launch-record',+ 'julia',+ '8:49 AM',+ 'New recording is up. Shortened the intro and kept the cursor visible this time.',+ { taskId: 'demo' }+ ),+ message(+ 'launch-record-reply',+ 'jacob',+ '8:52 AM',+ 'much better. the first 20 seconds were mostly me waiting for you to click lol',+ { replyTo: 'launch-record' }+ ),+ message(+ 'launch-record-laugh',+ 'julia',+ '8:53 AM',+ 'cinematic suspense',+ { replyTo: 'launch-record', reactions: ['jacob', 'teo'] }+ ),+ message(+ 'launch-assets',+ 'valentina',+ '9:05 AM',+ 'Desktop and mobile exports are ready. I checked the dark backgrounds in both.',+ { documentId: 'design-review' }+ ),+ message(+ 'm1',+ 'julia',+ '9:32 AM',+ 'announcement is ready. one last pass before Thursday?',+ { taskId: 'announcement' }+ ),+ message(+ 'm1-reply',+ 'jacob',+ '9:34 AM',+ 'added the customer example. kept it short',+ { replyTo: 'm1', documentId: 'rollout', reactions: ['julia'] }+ ),+ message(+ 'm1-followup',+ 'teo',+ '9:35 AM',+ 'Reviewed. The checklist is good. Just waiting on the final deploy.',+ { replyTo: 'm1' }+ ),+ message(+ 'm2',+ 'teo',+ '9:36 AM',+ 'Deploy checks look good. Cursor is wrapping up the retry fix.',+ { taskId: 'deploy' }+ ),+ message(+ 'm3',+ 'jacob',+ '9:41 AM',+ 'Dana confirmed Thursday. Sharing the rollout plan here.',+ { documentId: 'rollout' }+ ),+ message(+ 'launch-email',+ 'julia',+ '10:08 AM',+ 'Customer email draft is ready too. Can someone check the meeting time before I schedule it?',+ { emailId: 'dana' }+ ),+ message(+ 'launch-email-reply',+ 'jacob',+ '10:10 AM',+ '9am Thursday. her team is on the west coast',+ { replyTo: 'launch-email' }+ ),+ message(+ 'launch-timezone',+ 'julia',+ '10:11 AM',+ 'thank you. almost did that again',+ { replyTo: 'launch-email', reactions: ['jacob'] }+ ),+ message(+ 'launch-checklist',+ 'teo',+ '10:34 AM',+ 'Last technical checks: existing-account invite, email reply, document sync after going offline.',+ { taskId: 'checklist' }+ ),+ message(+ 'launch-done',+ 'gabriel',+ '10:47 AM',+ 'Checked all three. Offline edits came back correctly on reconnect.'+ ),+ message(+ 'launch-ready',+ 'jacob',+ '11:02 AM',+ 'ok this is looking really good'+ ),+ message(+ 'launch-notes',+ 'teo',+ '11:15 AM',+ 'I’ll publish the changelog once the deploy is through.',+ { taskId: 'changelog' }+ ),+ message(+ 'launch-lunch',+ 'julia',+ '11:28 AM',+ 'then we all go outside for five minutes',+ { reactions: ['jacob', 'teo', 'gabriel'] }+ ),+ ],+ },+ {+ id: 'product',+ messages: [+ message(+ 'product-inbox',+ 'jacob',+ '8:03 AM',+ 'one thing from the customer calls: they like seeing emails and agent updates in the same inbox. let’s make that obvious'+ ),+ message(+ 'product-inbox-reply',+ 'julia',+ '8:08 AM',+ 'Yep. They keep asking if they need to open a separate chat to follow up. Showing it inline helps.',+ { replyTo: 'product-inbox' }+ ),+ message(+ 'product-references',+ 'teo',+ '8:21 AM',+ 'References are now bidirectional for the new agent sessions too. Same behavior as docs.'+ ),+ message(+ 'product-references-reply',+ 'jacob',+ '8:23 AM',+ 'nice. can we show that in the demo?',+ { replyTo: 'product-references' }+ ),+ message(+ 'product-reference-example',+ 'valentina',+ '8:27 AM',+ 'I can use the rollout doc linked from the task. Click back to the discussion from References.',+ { replyTo: 'product-references', documentId: 'rollout' }+ ),+ message(+ 'm4',+ 'valentina',+ '8:50 AM',+ 'Mobile navigation changes are ready. Bigger touch targets, same icons.',+ { taskId: 'design' }+ ),+ message(+ 'product-mobile-reply',+ 'jacob',+ '8:53 AM',+ 'looks cleaner. can you keep the sidebar open when i select a task from Home?',+ { replyTo: 'm4' }+ ),+ message(+ 'product-mobile-fixed',+ 'valentina',+ '9:01 AM',+ 'Yep. Home stays Home; the detail opens beside it.',+ { replyTo: 'm4', reactions: ['jacob'] }+ ),+ message(+ 'product-tags',+ 'julia',+ '9:15 AM',+ 'Do we want the tags visible in the inbox by default? Customers with several accounts seem to use them a lot.'+ ),+ message(+ 'product-tags-reply',+ 'teo',+ '9:19 AM',+ 'Yes, but keep the pills small. Subject should still get most of the row.',+ { replyTo: 'product-tags' }+ ),+ message(+ 'product-search',+ 'gabriel',+ '9:38 AM',+ 'Search results now include the message that matched, not just the channel name. Makes the old conversations much easier to find.'+ ),+ message(+ 'product-search-reply',+ 'jacob',+ '9:41 AM',+ 'this is good. i can never remember which channel something was in',+ { reactions: ['teo', 'julia'] }+ ),+ message(+ 'product-offline',+ 'teo',+ '10:04 AM',+ 'Tested the doc on a train connection. Edits save locally, then sync when the connection comes back.'+ ),+ message(+ 'product-offline-joke',+ 'jacob',+ '10:05 AM',+ 'the train is our most thorough QA engineer',+ { reactions: ['teo', 'valentina'] }+ ),+ message(+ 'product-pricing',+ 'julia',+ '10:31 AM',+ 'Pricing questions from the calls are in this task. Mostly seats and what happens when you connect a second inbox.',+ { taskId: 'pricing' }+ ),+ message(+ 'product-next',+ 'jacob',+ '11:03 AM',+ 'let’s finish the invite and reply flows before adding more stuff'+ ),+ message(+ 'product-next-reply',+ 'teo',+ '11:06 AM',+ 'Agreed. Both are on today’s checklist.'+ ),+ ],+ },+ {+ id: 'customers',+ messages: [+ message(+ 'm5',+ 'julia',+ '8:09 AM',+ 'Meadow is starting the team rollout this week. Dana wants to begin with email and customer follow-ups.',+ { documentId: 'rollout' }+ ),+ message(+ 'customers-rollout-reply',+ 'jacob',+ '8:14 AM',+ 'good. let’s help them connect the second inbox on the call',+ { replyTo: 'm5' }+ ),+ message(+ 'customers-rollout-notes',+ 'julia',+ '8:16 AM',+ 'Added that to the notes. They have a few people sharing customer threads already.',+ { replyTo: 'm5', documentId: 'notes' }+ ),+ message(+ 'customers-feedback',+ 'julia',+ '8:32 AM',+ 'Pilot feedback just came in. They’re using the shared email links in their customer channel instead of forwarding each reply.',+ { emailId: 'feedback' }+ ),+ message(+ 'customers-feedback-reply',+ 'jacob',+ '8:35 AM',+ 'that’s exactly the workflow. new replies just appear in the same thread',+ { replyTo: 'customers-feedback', reactions: ['julia'] }+ ),+ message(+ 'customers-invite',+ 'teo',+ '9:02 AM',+ 'Dana’s invite issue is fixed. Existing members land in the selected team after signing in.',+ { taskId: 'invite' }+ ),+ message(+ 'customers-invite-reply',+ 'julia',+ '9:05 AM',+ 'Thanks. I’ll check it with her before we invite the rest.',+ { replyTo: 'customers-invite' }+ ),+ message(+ 'customers-agenda',+ 'jacob',+ '9:18 AM',+ 'Thursday agenda: connect inbox, invite team, share one email, make one task. should take 15 minutes'+ ),+ message(+ 'customers-agenda-reply',+ 'julia',+ '9:20 AM',+ 'And show how to get back to the email from the task. That was their question last time.'+ ),+ message(+ 'customers-summary',+ 'julia',+ '9:54 AM',+ 'Macro pulled out the open questions from the last call. Seats, shared email access, and importing their existing docs.',+ { documentId: 'notes' }+ ),+ message(+ 'customers-summary-reply',+ 'jacob',+ '9:57 AM',+ 'can it draft the follow-up from those? i’ll review before sending'+ ),+ message(+ 'customers-draft',+ 'julia',+ '10:04 AM',+ 'Yes. Draft is in the thread, with the rollout plan linked.',+ { emailId: 'dana' }+ ),+ message(+ 'customers-research',+ 'valentina',+ '10:26 AM',+ 'Interview notes are here too. A few teams asked for clearer labels on the inbox filters.',+ { emailId: 'research' }+ ),+ message(+ 'customers-research-reply',+ 'jacob',+ '10:29 AM',+ 'let’s use words people already know. important / other is clearer than inventing terminology',+ { replyTo: 'customers-research' }+ ),+ message(+ 'customers-followup',+ 'julia',+ '10:48 AM',+ 'Dana confirmed the time. I’m sending the setup steps ahead of the call.',+ { taskId: 'follow-up' }+ ),+ message('customers-response', 'jacob', '10:50 AM', 'great. thanks'),+ message(+ 'customers-small-win',+ 'julia',+ '11:19 AM',+ 'Small win: they found the rollout plan themselves through the email reference this morning.',+ { reactions: ['jacob', 'teo'] }+ ),+ ],+ },+ {+ id: 'engineers',+ messages: [+ message(+ 'eng-mobile',+ 'jacob',+ '8:02 AM',+ 'hello from the mobile build. going to use this all day and see what breaks'+ ),+ message(+ 'eng-mobile-reply',+ 'teo',+ '8:04 AM',+ 'Please also test going offline. The happy path is the easy bit.',+ { replyTo: 'eng-mobile' }+ ),+ message(+ 'eng-mobile-train',+ 'gabriel',+ '8:07 AM',+ 'The subway will take care of that',+ { replyTo: 'eng-mobile', reactions: ['jacob', 'teo'] }+ ),+ message(+ 'eng-cache',+ 'gabriel',+ '8:29 AM',+ 'Cache change is in. Opening a recent doc doesn’t wait on the network anymore. I checked reload and switching accounts.'+ ),+ message(+ 'eng-cache-reply',+ 'jacob',+ '8:31 AM',+ 'feels way better. the load time was the thing i noticed first'+ ),+ message(+ 'eng-sync',+ 'teo',+ '8:52 AM',+ 'Offline sync check: edited a heading locally while the agent updated the bullets on another client. Both changes survived reconnect.',+ { documentId: 'engineering-plan' }+ ),+ message(+ 'eng-sync-reply',+ 'gabriel',+ '8:56 AM',+ 'Also tried the same paragraph from two tabs. Merge looks correct.',+ { replyTo: 'eng-sync', reactions: ['teo'] }+ ),+ message(+ 'eng-retry',+ 'cursor',+ '9:08 AM',+ 'Retry fix is ready for review. Added checks for transient failures and the retry limit.',+ { taskId: 'deploy' }+ ),+ message(+ 'eng-retry-review',+ 'teo',+ '9:12 AM',+ 'Looking now. Does a canceled run still stop the retry timer?',+ { replyTo: 'eng-retry' }+ ),+ message(+ 'eng-retry-answer',+ 'cursor',+ '9:14 AM',+ 'Yes. Cancellation clears the pending retry. There’s a regression check for that path.',+ { replyTo: 'eng-retry' }+ ),+ message(+ 'eng-invite',+ 'teo',+ '9:27 AM',+ 'Invite handoff fix is also ready. Tested a new account and an existing member.',+ { taskId: 'invite' }+ ),+ message(+ 'eng-invite-reply',+ 'jacob',+ '9:31 AM',+ 'just tried the existing member case. good now',+ { reactions: ['teo'] }+ ),+ message(+ 'eng-release',+ 'gabriel',+ '10:12 AM',+ 'Can we ship the retry fix with this release?',+ { taskId: 'deploy' }+ ),+ message(+ 'eng-reply',+ 'teo',+ '10:19 AM',+ 'Yep. Transient failure, cancellation, and retry-limit checks passed. PR is ready for a final look.',+ { replyTo: 'eng-release' }+ ),+ message(+ 'eng-release-review',+ 'jacob',+ '10:20 AM',+ 'reviewed. ship it',+ { replyTo: 'eng-release', reactions: ['teo', 'gabriel'] }+ ),+ message(+ 'eng-plan',+ 'jacob',+ '10:21 AM',+ 'updated priorities for this week. invite + sync + email replies first',+ { documentId: 'engineering-plan' }+ ),+ message(+ 'eng-doc-link',+ 'gabriel',+ '10:36 AM',+ 'Can someone check the reference panel on an agent session? Should behave exactly like the markdown doc.'+ ),+ message(+ 'eng-doc-link-reply',+ 'teo',+ '10:41 AM',+ 'Checked. The task links back to the conversation and the doc.',+ { replyTo: 'eng-doc-link' }+ ),+ message('eng-deploy', 'teo', '11:03 AM', 'deploy time'),+ message(+ 'eng-deploy-done',+ 'teo',+ '11:12 AM',+ 'Through. If you find something, please drop the repro in the task.',+ { taskId: 'release' }+ ),+ message(+ 'eng-dogfood',+ 'jacob',+ '11:17 AM',+ 'still dogfooding mobile. typing this while walking is the real test',+ { reactions: ['gabriel'] }+ ),+ ],+ },+ {+ id: 'agents-team',+ messages: [+ message(+ 'agents-morning',+ 'teo',+ '8:06 AM',+ 'Testing live edits in docs today. Especially typing while the agent is still editing.'+ ),+ message(+ 'agents-morning-reply',+ 'jacob',+ '8:09 AM',+ 'nice. that’s the part that makes it feel different',+ { replyTo: 'agents-morning' }+ ),+ message(+ 'agents-heading',+ 'gabriel',+ '8:24 AM',+ 'Tried it on the release notes. I changed the title while it rewrote the checklist. Both edits came through.'+ ),+ message(+ 'agents-heading-reply',+ 'teo',+ '8:26 AM',+ 'Good. Can you try disconnecting halfway through as well?',+ { replyTo: 'agents-heading' }+ ),+ message(+ 'agents-offline',+ 'gabriel',+ '8:37 AM',+ 'Yep, worked after reconnect. The local heading stayed and the agent’s bullets merged in.',+ { replyTo: 'agents-heading', reactions: ['jacob', 'teo'] }+ ),+ message(+ 'agents-ui',+ 'jacob',+ '8:51 AM',+ 'the tool activity is still too tall for what it shows. can we make it shorter and just say what it’s doing'+ ),+ message(+ 'agents-ui-reply',+ 'valentina',+ '8:54 AM',+ 'Trying a compact version. One line while running, expandable details underneath.',+ { replyTo: 'agents-ui' }+ ),+ message(+ 'agents-ui-confirm',+ 'teo',+ '8:56 AM',+ 'Prefer that. The channel shouldn’t jump every time a tool finishes.',+ { replyTo: 'agents-ui', reactions: ['jacob'] }+ ),+ message(+ 'agents-search',+ 'julia',+ '9:12 AM',+ 'Asked Macro to find the last Meadow call and draft the follow-up. It found the email too, which is handy.'+ ),+ message(+ 'agents-search-reply',+ 'jacob',+ '9:14 AM',+ 'can you link the rollout plan in the draft?'+ ),+ message(+ 'agents-search-result',+ 'julia',+ '9:18 AM',+ 'Done. It put the meeting questions into the draft and left it for review.',+ { emailId: 'dana' }+ ),+ message(+ 'agents-1',+ 'jacob',+ '9:54 AM',+ 'customer summary is ready. emails, last call, open tasks. actually useful',+ { documentId: 'notes' }+ ),+ message(+ 'agents-2',+ 'julia',+ '10:02 AM',+ 'Using this for Thursday. Saved me digging through the whole thread.',+ { replyTo: 'agents-1' }+ ),+ message(+ 'agents-summary-question',+ 'teo',+ '10:04 AM',+ 'Does it link back to the source email?',+ { replyTo: 'agents-1' }+ ),+ message(+ 'agents-summary-answer',+ 'jacob',+ '10:05 AM',+ 'yes. email and call notes are both linked',+ { replyTo: 'agents-1', reactions: ['teo'] }+ ),+ message(+ 'agents-3',+ 'teo',+ '10:07 AM',+ 'Claude reviewed the invite flow too. Existing-member case looks good.',+ { taskId: 'invite' }+ ),+ message(+ 'agents-cursor',+ 'jacob',+ '10:21 AM',+ '@Cursor take the retry fix through review and update the task when the PR is ready',+ { taskId: 'deploy' }+ ),+ message(+ 'agents-cursor-reply',+ 'cursor',+ '10:24 AM',+ 'PR is ready. The task has the review link and the checks that passed.',+ { replyTo: 'agents-cursor', taskId: 'release' }+ ),+ message(+ 'agents-references',+ 'gabriel',+ '10:43 AM',+ 'References now show where the agent session is mentioned. Same panel as markdown docs.'+ ),+ message(+ 'agents-references-reply',+ 'jacob',+ '10:45 AM',+ 'this is really nice. i keep losing the conversation after the task is done',+ { reactions: ['teo', 'gabriel'] }+ ),+ message(+ 'agents-tools',+ 'teo',+ '11:02 AM',+ 'Next checks: task creation from a thread, editing the brief, and reviewing an email draft before sending.'+ ),+ message(+ 'agents-lunch',+ 'julia',+ '11:23 AM',+ 'can the next tool be getting us lunch'+ ),+ message(+ 'agents-lunch-reply',+ 'jacob',+ '11:24 AM',+ 'finally a useful benchmark',+ { reactions: ['julia', 'teo'] }+ ),+ ],+ },+ {+ id: 'design',+ messages: [+ message(+ 'design-morning',+ 'valentina',+ '8:08 AM',+ 'Trying a few versions of the demo background. Cooler colors, less glow.'+ ),+ message(+ 'design-morning-reply',+ 'jacob',+ '8:12 AM',+ 'yes. keep it subtle. the app should be the thing you look at',+ { replyTo: 'design-morning' }+ ),+ message(+ 'design-noise',+ 'valentina',+ '8:24 AM',+ 'Added a little grain. It helps the gradient feel less flat without drawing an outline around the whole frame.'+ ),+ message(+ 'design-noise-reply',+ 'julia',+ '8:27 AM',+ 'The teal version looks good with the email screenshot.'+ ),+ message(+ 'design-review',+ 'julia',+ '8:44 AM',+ 'Launch assets are in the notes. Can someone check the mobile crops?',+ { documentId: 'design-review' }+ ),+ message(+ 'design-reply',+ 'valentina',+ '9:05 AM',+ 'Checked both sizes. Updated the final screenshots and gave the sidebar more room.',+ { replyTo: 'design-review', reactions: ['julia'] }+ ),+ message(+ 'design-review-second',+ 'jacob',+ '9:08 AM',+ 'much better. the old one felt squeezed',+ { replyTo: 'design-review' }+ ),+ message(+ 'design-tabs',+ 'valentina',+ '9:19 AM',+ 'Matched the tab heights to the app. The sidebar tabs and conversation tabs are different components.'+ ),+ message(+ 'design-tabs-reply',+ 'jacob',+ '9:22 AM',+ 'that was driving me crazy. thank you',+ { reactions: ['valentina'] }+ ),+ message(+ 'design-labels',+ 'julia',+ '9:38 AM',+ 'Do we need labels for every icon outside the demo? Looks a bit busy now.'+ ),+ message(+ 'design-labels-reply',+ 'jacob',+ '9:40 AM',+ 'agree. let’s simplify. people can just use it',+ { replyTo: 'design-labels' }+ ),+ message(+ 'design-labels-result',+ 'valentina',+ '9:51 AM',+ 'Removed the connectors. Tooltips stay on the sidebar icons.',+ { replyTo: 'design-labels', reactions: ['jacob', 'julia'] }+ ),+ message(+ 'design-type',+ 'jacob',+ '10:12 AM',+ 'the heading looks good but the gray copy is a bit loud. can we fade it slightly?'+ ),+ message(+ 'design-type-reply',+ 'valentina',+ '10:18 AM',+ 'Done. Same gray as the previous section. Keeping the heading bright.'+ ),+ message(+ 'design-mobile',+ 'valentina',+ '10:36 AM',+ 'Mobile stays on the smaller sidebar diagram. The full demo is too cramped at that width.',+ { taskId: 'design' }+ ),+ message(+ 'design-mobile-reply',+ 'julia',+ '10:41 AM',+ 'Good call. That also keeps the email section closer to the top.'+ ),+ message(+ 'design-finish',+ 'jacob',+ '11:02 AM',+ 'this feels really nice now. let’s stop touching the gradient before we make it worse lol',+ { reactions: ['julia', 'valentina'] }+ ),+ message(+ 'design-finish-reply',+ 'valentina',+ '11:04 AM',+ 'closing the color picker as we speak'+ ),+ ],+ },+ ];+}diff --git a/apps/marketing/src/features/marketing/core/workspace-fixtures.ts b/apps/marketing/src/features/marketing/core/workspace-fixtures.tsnew file mode 100644index 0000000000..bbb1fb2585--- /dev/null+++ b/apps/marketing/src/features/marketing/core/workspace-fixtures.ts@@ -0,0 +1,186 @@+import type { WorkspaceComment } from './dummy-workspace';+import type { HomepagePersonId } from './homepage-demo-people';++export const dealStages = [+ 'Lead',+ 'Demo',+ 'Customer',+ 'Churned',+ 'No stage',+] as const;+export type DealStage = (typeof dealStages)[number];+export type SampleCompany = {+ id: string;+ name: string;+ domain: string;+ description: string;+ stage: DealStage;+ owner: HomepagePersonId | '';+ revenue: string;+ contacts: { name: string; email: string }[];+ comments: WorkspaceComment[];+ emailIds: string[];+};+export type SampleEvent = {+ id: string;+ title: string;+ date: string;+ start: number;+ duration: number;+ calendar: 'work' | 'personal';+ description: string;+};+export function sampleCompanies(): SampleCompany[] {+ return [+ {+ id: 'meadow',+ name: 'The Meadow',+ domain: 'meadow.example',+ description: 'A shared workspace for the Meadow team.',+ stage: 'Customer',+ owner: 'julia',+ revenue: '12,000',+ contacts: [+ { name: 'Dana Whitfield', email: '[email protected]' },+ { name: 'Alex Chen', email: '[email protected]' },+ ],+ comments: [+ {+ id: 'company-comment',+ person: 'julia',+ body: 'The rollout plan is ready for Thursday. Dana will introduce the rest of the team.',+ time: '9:45 AM',+ },+ ],+ emailIds: ['dana'],+ },+ {+ id: 'northstar',+ name: 'Northstar Design',+ domain: 'northstar.example',+ description: 'Product design and research.',+ stage: 'Lead',+ owner: 'jacob',+ revenue: '',+ contacts: [{ name: 'Jamie Park', email: '[email protected]' }],+ comments: [],+ emailIds: [],+ },+ {+ id: 'orbit',+ name: 'Orbit Labs',+ domain: 'orbit.example',+ description: 'Tools for distributed teams.',+ stage: 'Demo',+ owner: 'teo',+ revenue: '6,000',+ contacts: [],+ comments: [],+ emailIds: [],+ },+ {+ id: 'cedar',+ name: 'Cedar Studio',+ domain: 'cedar.example',+ description: 'Independent creative studio.',+ stage: 'Churned',+ owner: 'jacob',+ revenue: '',+ contacts: [],+ comments: [],+ emailIds: [],+ },+ {+ id: 'fieldwork',+ name: 'Fieldwork',+ domain: 'fieldwork.example',+ description: 'Research that connects people.',+ stage: 'No stage',+ owner: '',+ revenue: '',+ contacts: [],+ comments: [],+ emailIds: [],+ },+ {+ id: 'lumen',+ name: 'Lumen Works',+ domain: 'lumen.example',+ description: 'Software for small businesses.',+ stage: 'No stage',+ owner: '',+ revenue: '',+ contacts: [],+ comments: [],+ emailIds: [],+ },+ ];+}+export const sampleToday = '2026-09-29';+export function sampleEvents(): SampleEvent[] {+ return [+ ...[28, 29, 30].map((day) => ({+ id: `standup-${day}`,+ title: 'Team standup',+ date: `2026-09-${day}`,+ start: 10,+ duration: 0.5,+ calendar: 'work' as const,+ description: 'Share progress and discuss what is next.',+ })),+ {+ id: 'launch-review',+ title: 'Launch review',+ date: sampleToday,+ start: 13,+ duration: 1,+ calendar: 'work',+ description: 'Review the announcement, demo, and rollout plan.',+ },+ {+ id: 'customer-demo',+ title: 'The Meadow · Demo',+ date: '2026-10-01',+ start: 9,+ duration: 1,+ calendar: 'work',+ description: 'Walk Dana and the team through the new workspace.',+ },+ {+ id: 'design-review',+ title: 'Design review',+ date: '2026-09-30',+ start: 15,+ duration: 1,+ calendar: 'work',+ description: 'Review mobile layouts with Valentina.',+ },+ {+ id: 'lunch',+ title: 'Lunch with Julia',+ date: sampleToday,+ start: 12,+ duration: 1,+ calendar: 'personal',+ description: 'Catch up over lunch.',+ },+ {+ id: 'launch',+ title: 'Launch retrospective',+ date: '2026-10-02',+ start: 16,+ duration: 1,+ calendar: 'work',+ description: 'What worked, what we learned, and next steps.',+ },+ ];+}+export function shiftDate(date: string, days: number) {+ const d = new Date(`${date}T12:00:00`);+ d.setDate(d.getDate() + days);+ return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}`;+}+export function weekDates(date: string) {+ const offset = new Date(`${date}T12:00:00`).getDay();+ return Array.from({ length: 7 }, (_, i) => shiftDate(date, i - offset));+}diff --git a/apps/marketing/src/features/marketing/core/workspace-home-feed.ts b/apps/marketing/src/features/marketing/core/workspace-home-feed.tsnew file mode 100644index 0000000000..b472684ef3--- /dev/null+++ b/apps/marketing/src/features/marketing/core/workspace-home-feed.ts@@ -0,0 +1,88 @@+import type { WorkspaceView } from './dummy-workspace';+import type { HomepagePersonId } from './homepage-demo-people';++export type HomeFeedItem = {+ view: WorkspaceView;+ id: string;+ title?: string;+ person?: HomepagePersonId;+ thread?: string;+ coding?: boolean;+};++/** Interleaved recent work, rather than separate inventories of each type. */+export const sampleHomeFeed: { title: string; items: HomeFeedItem[] }[] = [+ {+ title: 'Last hour',+ items: [+ {+ view: 'messages',+ id: 'dm-julia',+ person: 'julia',+ title: 'Julia Westphal',+ },+ {+ view: 'agents',+ id: 'deploy',+ coding: true,+ title: 'Cursor · Fix the deploy pipeline',+ },+ { view: 'messages', id: 'launch', title: 'launch' },+ {+ view: 'messages',+ id: 'engineers',+ thread: 'eng-release',+ title: 'Teo replied in #engineers',+ },+ { view: 'email', id: 'dana' },+ {+ view: 'agents',+ id: 'customer-summary',+ title: 'Summarize customer conversations',+ },+ { view: 'documents', id: 'plan' },+ ],+ },+ {+ title: 'This afternoon',+ items: [+ { view: 'messages', id: 'agents-team', title: 'agents-team' },+ { view: 'tasks', id: 'announcement' },+ {+ view: 'messages',+ id: 'launch',+ thread: 'm1',+ title: 'Julia and Teo in #launch',+ },+ {+ view: 'agents',+ id: 'invite-review',+ coding: true,+ title: 'Claude Code · Review the invite flow',+ },+ { view: 'spreadsheet', id: 'launch-metrics' },+ { view: 'messages', id: 'product', title: 'product' },+ {+ view: 'agents',+ id: 'launch-status',+ title: 'What’s left before launch?',+ },+ { view: 'messages', id: 'dm-teo', person: 'teo', title: 'Teo' },+ { view: 'documents', id: 'rollout' },+ {+ view: 'messages',+ id: 'design',+ thread: 'design-review',+ title: 'Valentina replied in #design',+ },+ { view: 'tasks', id: 'invite' },+ {+ view: 'agents',+ id: 'release-notes',+ coding: true,+ title: 'Cursor · Prepare the release notes',+ },+ { view: 'messages', id: 'customers', title: 'customers' },+ ],+ },+];diff --git a/apps/marketing/src/features/marketing/core/workspace-parity-fixtures.ts b/apps/marketing/src/features/marketing/core/workspace-parity-fixtures.tsnew file mode 100644index 0000000000..e3c3ecd815--- /dev/null+++ b/apps/marketing/src/features/marketing/core/workspace-parity-fixtures.ts@@ -0,0 +1,148 @@+import type { WorkspaceDocument } from './dummy-workspace';++/** Fictional examples, shaped like the mixed files and sessions in Macro. */+export const sampleAgentSessions = [+ {+ id: 'deploy',+ title: 'Fix the deploy pipeline',+ time: '12m',+ runtime: 'Cursor',+ provider: 'cursor',+ branch: 'cursor/deploy-retries',+ pr: '#482',+ prompt: '',+ answer: '',+ },+ {+ id: 'launch-status',+ title: 'Launch workspace',+ time: '1h',+ runtime: 'Macro',+ provider: 'claude',+ prompt: 'What is left before Thursday’s launch?',+ answer:+ 'The announcement and rollout plan are ready for review. The remaining launch tasks are in your task list.',+ },+ {+ id: 'invite-review',+ title: 'Review the team invite flow',+ time: '2h',+ runtime: 'Claude Code',+ provider: 'claude',+ branch: 'claude/team-invites',+ pr: '#481',+ prompt:+ 'Review the team invite flow and check that existing members can accept an invitation.',+ answer:+ 'Reviewed the invite flow. Existing members now return to their workspace, and new members see the setup steps. The changes are ready for review in PR #481.',+ },+ {+ id: 'customer-summary',+ title: 'Summarize customer conversations',+ time: '3h',+ runtime: 'Macro',+ provider: 'chatgpt',+ prompt: 'Summarize the Meadow conversation and suggest next steps.',+ answer:+ 'Dana confirmed the Thursday check-in. Share the team rollout plan, introduce Julia, and confirm the workspace owner before the meeting.',+ },+ {+ id: 'release-notes',+ title: 'Prepare the release notes',+ time: '4h',+ runtime: 'Cursor',+ provider: 'cursor',+ branch: 'cursor/release-notes',+ pr: '#479',+ prompt: 'Draft release notes for the invite and deploy improvements.',+ answer:+ 'The release notes cover simpler team invitations and more reliable deploys. I linked the launch checklist and included the verification results. Ready for your review in PR #479.',+ },+] as const;++export function extraWorkspaceDocuments(): WorkspaceDocument[] {+ return [+ {+ id: 'launch-metrics',+ kind: 'spreadsheet',+ title: 'Customers to reach',+ tags: ['Launch'],+ updated: '11:00 AM',+ body: '',+ comments: [],+ },+ {+ id: 'roadmap',+ title: 'Product roadmap — October',+ tags: ['Product'],+ updated: 'Yesterday',+ body: '## October priorities\n\n- Improve team onboarding\n- Bring customer conversations into one inbox\n- Simplify document sharing\n\n## Next up\n\nCalendar availability and customer follow-up.',+ comments: [],+ },+ {+ id: 'engineering-plan',+ title: 'Engineering priorities',+ tags: ['Engineering'],+ updated: 'Yesterday',+ body: '## This week\n\n- [x] Review deploy retries\n- [ ] Verify team invitations\n- [ ] Publish release notes\n\n## Owners\n\nTeo — release checks\nCursor — deploy reliability',+ comments: [],+ },+ {+ id: 'launch-map',+ kind: 'canvas',+ title: 'Launch — implementation map',+ tags: ['Launch'],+ updated: 'Sep 28',+ body: '## Launch map\n\nProduct story → announcement → customer email → team rollout\n\n## Dependencies\n\nThe deploy and invitation checks must pass before sending the announcement.',+ comments: [],+ },+ {+ id: 'customer-notes',+ title: 'Customer research notes',+ tags: ['Customers'],+ updated: 'Sep 28',+ body: '## What teams want\n\nEmail, documents, tasks, and messages in one place.\n\n## The Meadow\n\nStart with a small team, connect work email, and share the rollout plan.',+ comments: [],+ },+ {+ id: 'announcement-draft',+ title: 'Launch announcement draft',+ tags: ['Launch'],+ updated: 'Sep 28',+ body: '## One shared workspace\n\nYour emails, agents, tasks, and messages, together.\n\nJoin us on Thursday for the launch and a walkthrough with the team.',+ comments: [],+ },+ {+ id: 'design-review',+ title: 'Design review notes',+ tags: ['Design'],+ updated: 'Sep 27',+ body: '## Review\n\n- [x] Check desktop navigation\n- [x] Review email replies\n- [ ] Check mobile layouts\n\nValentina will share the final review with the team.',+ comments: [],+ },+ {+ id: 'release-checks',+ kind: 'code',+ title: 'Deploy retry checks.md',+ tags: ['Engineering'],+ updated: 'Sep 27',+ body: '## Deploy retry checks\n\n- [x] Retry transient registry errors\n- [x] Stop after the retry limit\n- [x] Fail immediately for permanent errors\n\nAll 12 checks pass.',+ comments: [],+ },+ {+ id: 'meeting-notes',+ title: 'Monday team sync',+ updated: 'Sep 27',+ body: '## Team sync\n\nJulia has the announcement ready. Teo is checking the invitation flow. Jacob will follow up with the Meadow team.\n\n## Decisions\n\nKeep Thursday’s launch focused on the shared inbox.',+ comments: [],+ },+ {+ id: 'onboarding',+ title: 'Workspace onboarding guide',+ tags: ['Customers'],+ updated: 'Sep 26',+ body: '## Welcome\n\n1. Connect your work email\n2. Invite your team\n3. Share a document\n4. Create your first task\n\nEverything stays together in your workspace.',+ comments: [],+ },+ ];+}diff --git a/apps/marketing/src/features/marketing/primitives/createDummyWorkspace.test.ts b/apps/marketing/src/features/marketing/primitives/createDummyWorkspace.test.tsnew file mode 100644index 0000000000..af73d7cb3b--- /dev/null+++ b/apps/marketing/src/features/marketing/primitives/createDummyWorkspace.test.ts@@ -0,0 +1,227 @@+import { createRoot } from 'solid-js';+import { afterEach, describe, expect, it, vi } from 'vitest';+import { createDummyWorkspace } from './createDummyWorkspace';++const disposals: (() => void)[] = [];+function setup() {+ return createRoot((dispose) => {+ disposals.push(dispose);+ return createDummyWorkspace();+ });+}+afterEach(() => {+ disposals.splice(0).forEach((dispose) => dispose());+ vi.useRealTimers();+});++describe('sample workspace commands', () => {+ it('opens Home items in place while explicit rail navigation changes sections', () => {+ const w = setup();+ w.openItem('tasks', 'announcement');+ expect(w.view()).toBe('home');+ expect(w.contentView()).toBe('tasks');+ expect(w.selected()).toBe('announcement');+ w.openItem('messages', 'launch');+ expect(w.view()).toBe('home');+ expect(w.contentView()).toBe('messages');+ expect(w.channel()).toBe('launch');+ w.backToCollection('messages');+ expect(w.contentView()).toBe('home');+ expect(w.selected()).toBeUndefined();+ w.open('tasks');+ w.openItem('tasks', 'announcement');+ expect(w.view()).toBe('tasks');+ w.backToCollection('tasks');+ expect(w.view()).toBe('tasks');+ expect(w.selected()).toBeUndefined();+ });++ it('keeps recipients and schedules local without inserting an unsent reply', () => {+ const w = setup();+ w.openItem('email', 'dana');+ const original = w.data.emails.find((email) => email.id === 'dana')!;+ const replies = original.replies.length;+ w.sendEmail(+ 'Re: Next steps',+ 'Scheduled reply',+ 'Dana',+ 'dana',+ 'Tomorrow at 9 AM',+ { cc: '[email protected]' }+ );+ expect(w.data.emails[0]).toMatchObject({+ folder: 'scheduled',+ scheduled: 'Tomorrow at 9 AM',+ to: 'Dana',+ cc: '[email protected]',+ });+ expect(original.replies).toHaveLength(replies);+ w.sendEmail('Re: Next steps', 'Ready now', 'Dana', 'dana', undefined, {+ cc: '[email protected]',+ bcc: '[email protected]',+ });+ expect(+ w.data.emails.find((email) => email.id === 'dana')!.replies.at(-1)+ ).toMatchObject({+ body: 'Ready now',+ to: 'Dana',+ cc: '[email protected]',+ bcc: '[email protected]',+ });+ expect(w.view()).toBe('home');+ expect(w.contentView()).toBe('email');+ expect(w.selected()).toBe('dana');+ });+ it('preserves task edits across views and isolates workspace instances', () => {+ const w = setup();+ const other = setup();+ w.updateTask('announcement', {+ title: 'Review launch',+ status: 'Completed',+ owner: 'teo',+ });+ w.comment('announcement', ' Ready for review ');+ w.open('messages');+ const link = w.data.channels+ .find((item) => item.id === 'launch')+ ?.messages.find((message) => message.id === 'm1')?.taskId;+ w.open('tasks', link);+ const task = w.data.tasks.find((item) => item.id === w.selected());+ expect(task).toMatchObject({+ title: 'Review launch',+ status: 'Completed',+ owner: 'teo',+ });+ expect(task?.comments.at(-1)?.body).toBe('Ready for review');+ expect(other.data.tasks.find((item) => item.id === link)?.title).toBe(+ 'Write the launch announcement'+ );+ });++ it('shares references to the same email and document in the selected channel', () => {+ const w = setup();+ w.setChannel('customers');+ w.shareEmail('dana');+ expect(w.view()).toBe('home');+ expect(w.contentView()).toBe('messages');+ expect(+ w.data.channels.find((item) => item.id === 'customers')?.messages.at(-1)+ ?.emailId+ ).toBe('dana');+ expect(w.data.emails.find((item) => item.id === 'dana')?.shared).toBe(+ 'customers'+ );+ w.post('Rollout plan', undefined, undefined, 'rollout');+ expect(+ w.data.channels.find((item) => item.id === 'customers')?.messages.at(-1)+ ?.documentId+ ).toBe('rollout');+ });++ it('records replies in their thread and Sent, rejecting blank sends', () => {+ const w = setup();+ const count = w.data.emails.length;+ w.sendEmail('Re: Next steps', 'See you Thursday.', 'Dana', 'dana');+ expect(w.data.emails).toHaveLength(count + 1);+ expect(w.data.emails[0]).toMatchObject({+ folder: 'sent',+ body: 'See you Thursday.',+ });+ expect(+ w.data.emails.find((item) => item.id === 'dana')?.replies.at(-1)?.body+ ).toBe('See you Thursday.');+ expect(w.selected()).toBe('dana');+ w.sendEmail('', 'No subject', 'Dana');+ expect(w.data.emails).toHaveLength(count + 1);+ });++ it('scripted agent uses current state and creates an editable task', () => {+ vi.useFakeTimers();+ const w = setup();+ w.updateTask('announcement', {+ title: 'Current launch task',+ status: 'In Progress',+ });+ w.ask('Summarize tasks');+ vi.advanceTimersByTime(450);+ expect(w.agentReplies()[0].answer).toContain('Current launch task');+ w.ask('Create task: Prepare the demo');+ vi.advanceTimersByTime(450);+ expect(w.data.tasks.find((item) => item.id === w.selected())?.title).toBe(+ 'Prepare the demo'+ );+ });++ it('keeps company and calendar edits local and resets the new views', () => {+ const w = setup();+ const other = setup();+ w.createCompany();+ const id = w.selected();+ w.setData('companies', (company) => company.id === id, {+ name: 'Test company',+ stage: 'Demo',+ });+ w.open('home');+ expect(w.data.companies.find((company) => company.id === id)?.stage).toBe(+ 'Demo'+ );+ expect(other.data.companies.some((company) => company.id === id)).toBe(+ false+ );+ w.setCalendarDate('2026-10-02');+ w.createEvent();+ expect(w.data.events.find((event) => event.id === w.selected())?.date).toBe(+ '2026-10-02'+ );+ w.setFileView('Shared with me');+ w.reset();+ expect(w.data.companies.length).toBe(other.data.companies.length);+ expect(w.data.events.length).toBe(other.data.events.length);+ expect(w.fileView()).toBe('My Files');+ expect(w.calendarDate()).toBe('2026-09-29');+ });++ it('keeps replies associated with the original message and channel', () => {+ const w = setup();+ w.setChannel('dm-julia');+ const channel = w.data.channels.find((item) => item.id === 'dm-julia')!;+ w.post(+ 'Ready for review',+ undefined,+ undefined,+ undefined,+ channel.messages[0].id+ );+ expect(channel.messages.at(-1)).toMatchObject({+ body: 'Ready for review',+ replyTo: channel.messages[0].id,+ });+ expect(+ w.data.channels+ .find((item) => item.id === 'launch')+ ?.messages.some((item) => item.body === 'Ready for review')+ ).toBe(false);+ });++ it('reset cancels pending agent work and restores all sample data', () => {+ vi.useFakeTimers();+ const w = setup();+ const count = w.data.tasks.length;+ w.createTask('Temporary');+ w.setChannel('product');+ w.post('Temporary message');+ w.ask('Create task: Late task');+ w.reset();+ vi.advanceTimersByTime(1000);+ expect(w.data.tasks).toHaveLength(count);+ expect(w.agentReplies()).toEqual([]);+ expect(w.channel()).toBe('launch');+ expect(w.view()).toBe('home');+ expect(w.busy()).toBe(false);+ expect(+ w.data.channels+ .find((item) => item.id === 'product')+ ?.messages.some((item) => item.body === 'Temporary message')+ ).toBe(false);+ });+});diff --git a/apps/marketing/src/features/marketing/primitives/createDummyWorkspace.ts b/apps/marketing/src/features/marketing/primitives/createDummyWorkspace.tsnew file mode 100644index 0000000000..3a0ee8a48b--- /dev/null+++ b/apps/marketing/src/features/marketing/primitives/createDummyWorkspace.ts@@ -0,0 +1,303 @@+import { createSignal, onCleanup } from 'solid-js';+import { createStore, produce } from 'solid-js/store';+import {+ dummyData,+ type EmailRecipients,+ type WorkspaceTask,+ type WorkspaceView,+} from '../core/dummy-workspace';+import { type SampleCompany, sampleToday } from '../core/workspace-fixtures';++/** All commands operate on local fixtures. No app providers, queries, or clients. */+export function createDummyWorkspace(initial: WorkspaceView = 'home') {+ const [data, setData] = createStore(dummyData());+ const [view, setView] = createSignal(initial);+ const [homeSurface, setHomeSurface] = createSignal<WorkspaceView>('home');+ const contentView = () => (view() === 'home' ? homeSurface() : view());+ const [selected, setSelected] = createSignal<string>();+ const [channel, setChannel] = createSignal('launch');+ const [channelThread, setChannelThread] = createSignal<string>();+ const [fileView, setFileView] = createSignal('My Files');+ const [query, setQuery] = createSignal('');+ const [companyLayout, setCompanyLayout] = createSignal<'Board' | 'List'>(+ 'Board'+ );+ const [companyFilter, setCompanyFilter] = createSignal('All companies');+ const [calendarDate, setCalendarDate] = createSignal(sampleToday);+ const [calendarMode, setCalendarMode] = createSignal<'Week' | 'Day'>('Week');+ const [showPersonal, setShowPersonal] = createSignal(true);+ const [busy, setBusy] = createSignal(false);+ const [agentReplies, setAgentReplies] = createSignal<+ { prompt: string; answer: string }[]+ >([]);+ let timer: ReturnType<typeof setTimeout> | undefined;+ onCleanup(() => clearTimeout(timer));+ const time = () =>+ new Date().toLocaleTimeString('en-US', {+ hour: 'numeric',+ minute: '2-digit',+ });+ const log = (text: string) =>+ setData('activity', (items) => [+ { id: crypto.randomUUID(), text, time: time() },+ ...items,+ ]);+ function open(next: WorkspaceView, id?: string) {+ setChannelThread(undefined);+ setView(next);+ setHomeSurface('home');+ setSelected(id);+ setQuery('');+ }+ function openItem(next: WorkspaceView, id?: string) {+ setChannelThread(undefined);+ if (view() !== 'home') return open(next, id);+ setHomeSurface(next);+ setSelected(id);+ if (next === 'messages' && id) setChannel(id);+ setQuery('');+ }+ function backToCollection(next: WorkspaceView) {+ open(view() === 'home' ? 'home' : next);+ }+ function updateTask(id: string, patch: Partial<Omit<WorkspaceTask, 'id'>>) {+ const index = data.tasks.findIndex((task) => task.id === id);+ if (index < 0) return;+ setData('tasks', index, patch);+ log(`Jacob updated ${data.tasks[index].title}`);+ }+ function createTask(+ title = 'Untitled task',+ description = '',+ source = channel()+ ) {+ const id = crypto.randomUUID();+ setData('tasks', (tasks) => [+ ...tasks,+ {+ id,+ title: title.trim() || 'Untitled task',+ description,+ status: 'Not Started',+ priority: 'Medium',+ owner: 'jacob',+ creator: 'jacob',+ tags: ['Launch'],+ channel: source,+ steps: [],+ comments: [],+ },+ ]);+ log(`Jacob created ${title}`);+ openItem('tasks', id);+ return id;+ }+ function comment(id: string, body: string, document = false) {+ if (!body.trim()) return;+ const key = document ? 'documents' : 'tasks';+ const index = data[key].findIndex((item) => item.id === id);+ if (index < 0) return;+ const message = {+ id: crypto.randomUUID(),+ person: 'jacob' as const,+ body: body.trim(),+ time: time(),+ };+ setData(key, index, 'comments', (items) => [...items, message]);+ log(`Jacob commented on ${data[key][index].title}`);+ }+ function post(+ body: string,+ emailId?: string,+ taskId?: string,+ documentId?: string,+ replyTo?: string+ ) {+ if (!body.trim()) return;+ const index = data.channels.findIndex((item) => item.id === channel());+ if (index < 0) return;+ setData('channels', index, 'messages', (items) => [+ ...items,+ {+ id: crypto.randomUUID(),+ person: 'jacob' as const,+ body: body.trim(),+ time: time(),+ emailId,+ taskId,+ documentId,+ replyTo,+ },+ ]);+ log(`Jacob posted in #${channel()}`);+ }+ function shareEmail(id: string) {+ const index = data.emails.findIndex((email) => email.id === id);+ if (index < 0) return;+ setData('emails', index, 'shared', channel());+ post(`Shared ${data.emails[index].subject}`, id);+ openItem('messages', channel());+ }+ function sendEmail(+ subject: string,+ body: string,+ to: string,+ replyTo?: string,+ scheduled?: string,+ recipients: EmailRecipients = {}+ ) {+ if (!subject.trim() || !body.trim() || !to.trim()) return;+ if (replyTo && !scheduled) {+ const i = data.emails.findIndex((email) => email.id === replyTo);+ if (i >= 0)+ setData('emails', i, 'replies', (items) => [+ ...items,+ {+ id: crypto.randomUUID(),+ person: 'jacob' as const,+ ...recipients,+ to,+ body,+ time: time(),+ },+ ]);+ }+ setData('emails', (emails) => [+ {+ id: crypto.randomUUID(),+ sender: to,+ ...recipients,+ to,+ scheduled,+ subject,+ snippet: body.slice(0, 100),+ time: time(),+ account: 'work',+ folder: scheduled ? 'scheduled' : 'sent',+ body,+ replies: [],+ },+ ...emails,+ ]);+ log(+ scheduled ? `Scheduled ${subject}: ${scheduled}` : `Jacob sent ${subject}`+ );+ openItem('email', replyTo);+ }+ function ask(prompt: string) {+ if (!prompt.trim() || busy()) return;+ setBusy(true);+ timer = setTimeout(() => {+ const pending = data.tasks.filter(+ (task) => task.status !== 'Completed' && task.status !== 'Canceled'+ );+ const answer = /create|add.*task/i.test(prompt)+ ? (() => {+ createTask(+ prompt.replace(/^.*?task[: ]*/i, '') || 'Review the launch plan',+ 'Created from the sample agent conversation.'+ );+ return 'I created the task in your task list. You can edit its owner, priority, and checklist.';+ })()+ : `There are ${pending.length} open tasks. ${pending+ .slice(0, 3)+ .map(+ (task) =>+ `${task.title} (${task.owner}, ${task.status.toLowerCase()})`+ )+ .join(+ '; '+ )}. The launch plan and shared emails are in this workspace.`;+ setAgentReplies((items) => [...items, { prompt, answer }]);+ setBusy(false);+ log('Macro reviewed the sample workspace');+ }, 450);+ }+ function createCompany() {+ const company: SampleCompany = {+ id: crypto.randomUUID(),+ name: 'Untitled company',+ domain: 'company.example',+ description: '',+ stage: 'No stage',+ owner: 'jacob',+ revenue: '',+ contacts: [],+ comments: [],+ emailIds: [],+ };+ setData('companies', (items) => [...items, company]);+ open('crm', company.id);+ }+ function createEvent() {+ const id = crypto.randomUUID();+ setData('events', (items) => [+ ...items,+ {+ id,+ title: 'New event',+ date: calendarDate(),+ start: 10,+ duration: 1,+ calendar: 'work',+ description: '',+ },+ ]);+ open('calendar', id);+ }+ function reset() {+ clearTimeout(timer);+ setBusy(false);+ setChannel('launch');+ setFileView('My Files');+ setCompanyFilter('All companies');+ setCompanyLayout('Board');+ setCalendarDate(sampleToday);+ setCalendarMode('Week');+ setShowPersonal(true);+ setData(produce((state) => Object.assign(state, dummyData())));+ setAgentReplies([]);+ open(initial);+ }+ return {+ fileView,+ setFileView,+ companyLayout,+ setCompanyLayout,+ companyFilter,+ setCompanyFilter,+ createCompany,+ calendarDate,+ setCalendarDate,+ calendarMode,+ setCalendarMode,+ showPersonal,+ setShowPersonal,+ createEvent,+ data,+ setData,+ view,+ contentView,+ openItem,+ backToCollection,+ selected,+ open,+ channel,+ setChannel,+ channelThread,+ setChannelThread,+ query,+ setQuery,+ updateTask,+ createTask,+ comment,+ post,+ shareEmail,+ sendEmail,+ ask,+ busy,+ agentReplies,+ reset,+ };+}+export type DummyWorkspace = ReturnType<typeof createDummyWorkspace>;diff --git a/apps/marketing/src/features/marketing/primitives/createEmailDemoGeneration.ts b/apps/marketing/src/features/marketing/primitives/createEmailDemoGeneration.tsindex 63a7ce442c..26c6738152 100644--- a/apps/marketing/src/features/marketing/primitives/createEmailDemoGeneration.ts+++ b/apps/marketing/src/features/marketing/primitives/createEmailDemoGeneration.ts@@ -62,6 +62,8 @@ export function createEmailDemoGeneration();};onMount(() => {+ const root = element();+ if (!root) return;reduced = window.matchMedia('(prefers-reduced-motion: reduce)');reduced.addEventListener('change', run);document.addEventListener('visibilitychange', run);@@ -72,8 +74,7 @@ export function createEmailDemoGeneration(},{ threshold: 0.2 });- const root = element();- if (root) observer.observe(root);+ observer.observe(root);run();onCleanup(() => {stop();diff --git a/apps/marketing/src/features/marketing/primitives/createEmailWalkthrough.ts b/apps/marketing/src/features/marketing/primitives/createEmailWalkthrough.tsnew file mode 100644index 0000000000..c1a93e43ef--- /dev/null+++ b/apps/marketing/src/features/marketing/primitives/createEmailWalkthrough.ts@@ -0,0 +1,79 @@+import { createSignal, onCleanup, onMount } from 'solid-js';++/** Finite, visibility-aware playback for the isolated email feature demos. */+export function createEmailWalkthrough(options: {+ root: () => HTMLElement;+ steps: number;+ advance: (step: number) => void;+ reset: () => void;+ reduced: () => void;+}) {+ const [playing, setPlaying] = createSignal(true);+ const [reducedMotion, setReducedMotion] = createSignal(false);+ let step = 0;+ let visible = false;+ let timer: ReturnType<typeof setTimeout> | undefined;+ const clear = () => {+ clearTimeout(timer);+ timer = undefined;+ };+ const pause = () => {+ clear();+ setPlaying(false);+ };+ const schedule = () => {+ clear();+ if (!visible || !playing() || reducedMotion() || document.hidden) return;+ timer = setTimeout(() => {+ options.advance(++step);+ if (step >= options.steps) pause();+ else schedule();+ }, 1400);+ };+ const replay = () => {+ step = 0;+ options.reset();+ if (reducedMotion()) {+ options.reduced();+ return;+ }+ setPlaying(true);+ schedule();+ };+ const toggle = () => {+ if (playing()) pause();+ else if (step >= options.steps) replay();+ else {+ setPlaying(true);+ schedule();+ }+ };+ onMount(() => {+ const media = matchMedia('(prefers-reduced-motion: reduce)');+ const sync = () => {+ setReducedMotion(media.matches);+ if (media.matches) {+ pause();+ options.reduced();+ }+ };+ sync();+ const observer = new IntersectionObserver(+ ([entry]) => {+ visible = entry.isIntersecting;+ schedule();+ },+ { threshold: 0.25 }+ );+ observer.observe(options.root());+ media.addEventListener('change', sync);+ document.addEventListener('visibilitychange', schedule);+ onCleanup(() => {+ clear();+ observer.disconnect();+ media.removeEventListener('change', sync);+ document.removeEventListener('visibilitychange', schedule);+ });+ });+ return { playing, reducedMotion, pause, replay, toggle };+}diff --git a/apps/marketing/src/features/marketing/primitives/createProductWalkthrough.ts b/apps/marketing/src/features/marketing/primitives/createProductWalkthrough.tsnew file mode 100644index 0000000000..78aaf6d84c--- /dev/null+++ b/apps/marketing/src/features/marketing/primitives/createProductWalkthrough.ts@@ -0,0 +1,23 @@+import { createEmailWalkthrough } from './createEmailWalkthrough';++/** A visitor's edits also take precedence over later motion-preference changes. */+export function createProductWalkthrough(+ options: Parameters<typeof createEmailWalkthrough>[0]+) {+ let takenOver = false;+ const playback = createEmailWalkthrough({+ ...options,+ advance: (step) => {+ if (!takenOver) options.advance(step);+ },+ reduced: () => {+ if (!takenOver) options.reduced();+ },+ });+ return {+ pause: () => {+ takenOver = true;+ playback.pause();+ },+ };+}diff --git a/apps/marketing/src/features/marketing/views/ProductAgentsPage.tsx b/apps/marketing/src/features/marketing/views/ProductAgentsPage.tsxnew file mode 100644index 0000000000..55b6211ef8--- /dev/null+++ b/apps/marketing/src/features/marketing/views/ProductAgentsPage.tsx@@ -0,0 +1,267 @@+import ChatGPTIcon from '@icon/openai.svg';+import ClaudeIcon from '@icon/wide-claude.svg';+import CursorIcon from '@icon/wide-cursor-ide.svg';+import { For } from 'solid-js';+import { setPageSeo } from '../../../app/utils/utilSeo';+import HermesIcon from '../assets/hermes.svg';+import OpenClawIcon from '../assets/openclaw.svg';+import {+ AgentArtifactDemo,+ AgentContextDemo,+ AgentEmailReviewDemo,+ AgentRequestDemo,+ AgentTaskResultDemo,+} from '../components/agents/AgentStories';+import { FeaturePageFaq, FeaturePageSection } from '../components/FeaturePage';+import { HomepageClosing } from '../components/HomepageClosing';+import {+ ContextGraphic,+ EditingGraphic,+ LinkedWorkGraphic,+ ThreadGraphic,+} from '../components/product/ProductGraphics';+import {+ ProductHero,+ ProductPage,+ ProductProse,+} from '../components/product/ProductPage';+import { WorkspaceDesktopDemo } from '../components/WorkspaceDesktopDemo';+import './agents-page.css';++const existingAgents = [+ { name: 'Hermes', icon: HermesIcon },+ { name: 'OpenClaw', icon: OpenClawIcon },+ { name: 'ChatGPT', icon: ChatGPTIcon },+ { name: 'Claude', icon: ClaudeIcon },+ { name: 'Cursor', icon: CursorIcon },+];++export function RouteAgents() {+ setPageSeo({+ title: 'Macro Agents — AI With Your Whole Workspace as Context',+ description:+ 'Team-level memory built from email, chat, documents, tasks, and calls. Bring your existing agents, search your workspace, and edit documents live—even when they aren’t open.',+ path: '/agents',+ });+ return (+ <ProductPage>+ <ProductHero+ product="Agents"+ title={['One memory for your team', 'and all its agents.']}+ description={[+ 'Shared memory of what everyone on your team is doing.',+ 'Email, chat, docs, tasks, and calls.',+ ]}+ cta="agents_hero_get_started"+ />+ <WorkspaceDesktopDemo+ view="agents"+ label="Explore Macro Agents"+ caption="Ask about the launch tasks or create a task in this local sample workspace."+ />+ <nav class="feature-page-jump-links" aria-label="On this page">+ <a href="#agent-request">+ <ThreadGraphic />+ <span>Team-level memory</span>+ </a>+ <a href="#agent-context">+ <ContextGraphic />+ <span>Full workspace context</span>+ </a>+ <a href="#agent-edits">+ <EditingGraphic />+ <span>Live document editing</span>+ </a>+ <a href="#existing-agents">+ <LinkedWorkGraphic />+ <span>Bring your agents</span>+ </a>+ </nav>+ <FeaturePageSection+ id="agent-request"+ title="Memory of what your whole team is doing."+ description={+ 'Who owns this project? What did we promise the customer? Who can help?\nYour agents remember the work, the decisions, and the people involved.'+ }+ >+ <div class="feature-page-visual">+ <AgentRequestDemo />+ </div>+ <ProductProse>+ <p>+ Macro builds memory from your team’s emails, channel conversations,+ documents, tasks, and calls. It develops a shared understanding of+ active projects, who is responsible for what, and the decisions your+ team has made. That understanding carries across people, agents, and+ model providers. An agent can identify the right task owner, find+ the person who knows a customer, or pick up work another agent+ started. Search retrieves the latest details, with your sharing+ permissions determining what each agent can access.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="agent-context"+ title="Your entire workspace is context."+ description={+ 'Email, messages, documents, images, PDFs, tasks, and call transcripts.\nOne search tool. Full content. References back to the source.'+ }+ >+ <div class="feature-page-visual">+ <AgentContextDemo />+ </div>+ <ProductProse>+ <p>+ Macro gives agents multimodal context: text, images, files, and the+ transcripts of your team’s calls. Unified search finds related work+ across these sources, and reading tools retrieve the content the+ agent needs to answer or take action. @mention an item to give the+ agent a starting point, or let it find the relevant sources itself.+ Follow the references to inspect the email, document, conversation,+ or task behind its answer.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="existing-agents"+ title="Bring the agents you already use."+ description={+ 'Give your agents tools to read, search, and edit your Macro workspace.\nHermes, OpenClaw, ChatGPT, Claude, and Cursor.'+ }+ >+ <ul class="agents-page-providers" aria-label="Existing agents">+ <For each={existingAgents}>+ {(agent) => (+ <li>+ <span class="agents-page-provider-icon">+ <agent.icon aria-hidden="true" />+ </span>+ <span>{agent.name}</span>+ </li>+ )}+ </For>+ </ul>+ <ProductProse>+ <p>+ Connect an MCP-compatible agent to Macro’s MCP server. It can search+ the workspace, read and edit native documents, and update properties+ using your access permissions. The agent you use for coding can also+ read the brief, check a customer conversation, and update the+ document your team is working on. Macro’s built-in agents also let+ you choose the model. Your team’s memory and workspace tools carry+ across model providers.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="agent-edits"+ title="Agents edit documents—even when they’re closed."+ description={+ 'Ask an agent to update any native Markdown document it has access to.\nIt joins the same live collaboration system as your teammates.'+ }+ >+ <div class="feature-page-visual">+ <AgentArtifactDemo />+ </div>+ <ProductProse>+ <p>+ Agents read the current document and apply edits through Macro’s+ CRDT sync service. A CRDT is a data structure that merges concurrent+ changes, so a person and an agent can write in the same document at+ the same time. The editing tool connects to the document on the+ server. You don’t have to open it or keep an editor tab running.+ When you are in the document, you can watch the agent’s edits arrive+ live and keep writing alongside it. Its changes remain editable by+ your team.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="agent-email-review"+ title="Draft from your actual conversations."+ description={+ 'Ask for a reply using the email thread, meeting transcript, and relevant files.\nReview the recipient, attachments, and wording before sending.'+ }+ >+ <div class="feature-page-visual">+ <AgentEmailReviewDemo />+ </div>+ <ProductProse>+ <p>+ Agents can search past emails, read the thread, and draft with+ information from your documents and calls. They can prepare the+ recipients, subject, body, and requested attachments. The email+ tools ask for confirmation before sending. You can edit the draft+ and check who will receive it before approving the send.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="agent-result"+ title="Agents create real tasks."+ description={+ 'Ask an agent to create a task, assign an owner, or update a brief.\nIts tools make those changes directly in your workspace.'+ }+ >+ <div class="feature-page-visual">+ <AgentTaskResultDemo />+ </div>+ <ProductProse>+ <p>+ Task tools create and update workspace items, including their+ descriptions, status, priority, and assignees. The result opens in+ the task list and can be linked in a document or channel. People and+ agents use the same tasks. Assign the next step, edit the checklist,+ or ask another agent to continue from the brief.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageFaq+ id="agents-faq-title"+ eyebrow="Search, memory, and tools"+ title="How agents work in Macro."+ introduction={+ <p>+ Agents read and change workspace items through tools that follow+ your access permissions.+ </p>+ }+ items={[+ {+ q: 'What does team-level memory include?',+ a: 'Macro builds a shared understanding of projects, responsibilities, and decisions from your team’s email, messages, documents, tasks, and calls. Agents use that memory and search for current details. Access to workspace items still follows your sharing permissions.',+ },+ {+ q: 'What can agents do in Macro?',+ a: 'Agents can search and read your email, chat, docs, tasks, and calls; edit native Markdown documents; create and update tasks; and prepare emails. Available tools and connected accounts determine what each conversation can do.',+ },+ {+ q: 'Can I choose the model?',+ a: 'The agent composer includes a model picker. The available models depend on your account and current product configuration.',+ },+ {+ q: 'Do agents bypass sharing permissions?',+ a: 'No. Workspace tools operate with the permissions of the user who runs the agent.',+ },+ {+ q: 'Does every action require approval?',+ a: 'No. Approval depends on the action and tool. Email tools can ask for confirmation before sending; document edits can appear directly in the working document.',+ },+ {+ q: 'Can I edit the result myself?',+ a: 'Yes. Generated documents and tasks remain ordinary workspace items, and email drafts can be reviewed and edited before sending.',+ },+ {+ q: 'Does a document need to be open for an agent to edit it?',+ a: 'No. Agents edit native Markdown documents through the server’s collaboration service, even when the document is closed. The same CRDT system merges their changes with live edits from people. Uploaded PDFs, images, and other files can be read as sources; direct document editing applies to native Markdown documents.',+ },+ {+ q: 'Can I use Macro with an external agent?',+ a: 'Yes. Macro’s MCP server exposes workspace search, document reading and editing, and property updates to external agents. Tools use your access permissions.',+ },+ ]}+ />+ <HomepageClosing />+ </ProductPage>+ );+}diff --git a/apps/marketing/src/features/marketing/views/ProductCallsPage.tsx b/apps/marketing/src/features/marketing/views/ProductCallsPage.tsxnew file mode 100644index 0000000000..f8af6940c3--- /dev/null+++ b/apps/marketing/src/features/marketing/views/ProductCallsPage.tsx@@ -0,0 +1,185 @@+import { setPageSeo } from '../../../app/utils/utilSeo';+import {+ CallArchiveDemo,+ CallFollowupDemo,+ CallSharingDemo,+ CallTranscriptDemo,+} from '../components/calls/CallStories';+import { FeaturePageFaq, FeaturePageSection } from '../components/FeaturePage';+import { HomepageClosing } from '../components/HomepageClosing';+import {+ CallGraphic,+ ContextGraphic,+ LinkedWorkGraphic,+ ThreadGraphic,+} from '../components/product/ProductGraphics';+import {+ ProductHero,+ ProductPage,+ ProductProse,+} from '../components/product/ProductPage';+import { WorkspaceDesktopDemo } from '../components/WorkspaceDesktopDemo';++export function RouteCalls() {+ setPageSeo({+ title: 'Macro Calls — Recordings, Transcripts, and Agent Tools',+ description:+ 'Browser-based video calls with recordings, speaker transcripts, and summaries. Search the conversation and ask agents to update tasks from the call.',+ path: '/calls',+ });+ return (+ <ProductPage>+ <ProductHero+ product="Calls"+ title={['Record the conversation.', 'Search every word.']}+ description={[+ 'Video calls, transcripts, and summaries.',+ 'Available to your team and your agents.',+ ]}+ cta="calls_hero_get_started"+ />+ <WorkspaceDesktopDemo+ view="messages"+ label="Explore Macro Calls"+ caption="Open the launch check-in to read its summary and transcript. This sample has no live audio or video."+ >+ <CallArchiveDemo />+ </WorkspaceDesktopDemo>+ <nav class="feature-page-jump-links" aria-label="On this page">+ <a href="#call-context">+ <CallGraphic />+ <span>Call records</span>+ </a>+ <a href="#call-transcript">+ <ThreadGraphic />+ <span>Transcripts</span>+ </a>+ <a href="#call-followup">+ <LinkedWorkGraphic />+ <span>Agent tools</span>+ </a>+ <a href="#call-sharing">+ <ContextGraphic />+ <span>Sharing</span>+ </a>+ </nav>+ <FeaturePageSection+ id="call-context"+ title="Call directly from a channel or DM."+ description={+ 'Start a browser-based call where your team is already talking.\nRecorded calls appear in the conversation’s Calls tab.'+ }+ >+ <div class="feature-page-visual">+ <CallArchiveDemo animate />+ </div>+ <ProductProse>+ <p>+ Channel and DM call controls let you start a conversation in the+ browser. Share a call link with someone outside your workspace so+ they can join too. A processed recording has its own workspace+ record with participants, a summary, and a transcript. Open previous+ calls from the channel’s Calls tab.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="call-transcript"+ title="A transcript tied to the recording."+ description={+ 'Read who said what, with timestamps for each segment.\nSelect a line to jump to that moment in the recording.'+ }+ >+ <div class="feature-page-visual">+ <CallTranscriptDemo />+ </div>+ <ProductProse>+ <p>+ The transcript identifies speakers and timestamps their words. It+ gives you a readable record and a direct route back to the audio.+ Search call content through Macro, or ask an agent to read the+ transcript. Summaries give you a quick overview; the original words+ are there when you need the detail.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="call-followup"+ title="Agents can use what was said."+ description={+ 'Ask an agent to read the call and update a task or document.\nMeeting decisions become edits your team can review.'+ }+ >+ <div class="feature-page-visual">+ <CallFollowupDemo />+ </div>+ <ProductProse>+ <p>+ Call-reading tools return the summary and transcript to the agent.+ Task and document tools let it turn those details into a checklist,+ a brief, or an updated task. Ask for a specific follow-up: record an+ owner, add a dependency, or draft an email using the agreement from+ the call. The agent works from the saved record.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="call-sharing"+ title="Share the recording and transcript."+ description={+ 'Give a teammate access to the call record.\nThey can read the summary and replay the conversation.'+ }+ >+ <div class="feature-page-visual">+ <CallSharingDemo />+ </div>+ <ProductProse>+ <p>+ Call records use Macro’s sharing system. Choose a recipient and+ access level, or reference the record in a channel you can share+ with. The recording, summary, and transcript are parts of that+ record. Teammates and agents with access can revisit the discussion.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageFaq+ id="calls-faq-title"+ eyebrow="Recording and transcription"+ title="How Macro Calls work."+ introduction={+ <p>+ Browser-based calls with transcripts, summaries, sharing, and agent+ reading tools.+ </p>+ }+ items={[+ {+ q: 'Can I start a call from a channel?',+ a: 'Yes. Channels and direct conversations include call controls. The marketing previews do not start real calls or request microphone or camera access.',+ },+ {+ q: 'What appears in a call record?',+ a: 'The record can contain participants, a summary, a recording, and a transcript. Availability depends on the call and processing state.',+ },+ {+ q: 'Can I return to a moment in the recording?',+ a: 'When a recording and transcript are available, selecting a transcript segment seeks to its timestamp.',+ },+ {+ q: 'Can agents read the transcript?',+ a: 'Agents have a tool for reading accessible call records, including their summary and transcript. Ask them to find an agreement, update a task, or draft a follow-up from the transcript.',+ },+ {+ q: 'How do I share a call record?',+ a: 'Use the call record’s Share control to grant access. Recipients still need the appropriate permissions to open the record.',+ },+ {+ q: 'Does this demo record me?',+ a: 'No. It uses fictional local call data and contains no live audio or video connection.',+ },+ ]}+ />+ <HomepageClosing />+ </ProductPage>+ );+}diff --git a/apps/marketing/src/features/marketing/views/ProductChannelsPage.tsx b/apps/marketing/src/features/marketing/views/ProductChannelsPage.tsxnew file mode 100644index 0000000000..66d5625e57--- /dev/null+++ b/apps/marketing/src/features/marketing/views/ProductChannelsPage.tsx@@ -0,0 +1,229 @@+import { setPageSeo } from '../../../app/utils/utilSeo';+import {+ ChannelAgentDemo,+ ChannelNavigationDemo,+ ChannelSharedWorkDemo,+ ChannelTaskDemo,+ ChannelThreadDemo,+} from '../components/channels/ChannelStories';+import { FeaturePageFaq, FeaturePageSection } from '../components/FeaturePage';+import { HomepageClosing } from '../components/HomepageClosing';+import {+ LinkedWorkGraphic,+ ThreadGraphic,+} from '../components/product/ProductGraphics';+import {+ ProductHero,+ ProductPage,+ ProductProse,+} from '../components/product/ProductPage';+import {+ TaskAgentsGraphic,+ TaskConversationGraphic,+} from '../components/tasks/TasksFeatureGraphics';+import { WorkspaceDesktopDemo } from '../components/WorkspaceDesktopDemo';++export function RouteChannels() {+ setPageSeo({+ title: 'Macro Chat — Team Chat Wired into Everything',+ description:+ 'Macro Chat combines Slack-speed team chat with inline threads, @mention sharing, a unified inbox, and AI agents — all in one workspace with your email, docs, and tasks.',+ path: '/channels',+ });+ return (+ <ProductPage>+ <ProductHero+ product="Chat"+ title={['Team chat for humans', 'and agents.']}+ description={[+ 'Messages, emails, and tasks in one inbox.',+ '@mention a document to share it with the channel.',+ ]}+ cta="channels_hero_get_started"+ />+ <WorkspaceDesktopDemo+ view="messages"+ label="Explore Macro Chat"+ caption="Open a thread, share a linked item, or reply. Everything here stays in the sample."+ />+ <nav class="feature-page-jump-links" aria-label="On this page">+ <a href="#shared-work">+ <LinkedWorkGraphic />+ <span>Share the work</span>+ </a>+ <a href="#conversation-tasks">+ <TaskConversationGraphic />+ <span>Act on a request</span>+ </a>+ <a href="#channel-agents">+ <TaskAgentsGraphic />+ <span>Bring in an agent</span>+ </a>+ <a href="#channel-threads">+ <ThreadGraphic />+ <span>Keep the thread</span>+ </a>+ </nav>+ <FeaturePageSection+ id="shared-work"+ title="@mention it. Share it."+ description={+ 'Mention a document, task, or email thread in a channel.\nTeammates can open the item directly from the message.'+ }+ >+ <div class="feature-page-visual">+ <ChannelSharedWorkDemo />+ </div>+ <ProductProse>+ <p>+ Macro references are bidirectional. Mention a document in chat, and+ the document links back to that conversation. When you have+ permission to share the item, a channel mention grants access to the+ channel. Shared email threads keep updating as new replies arrive.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="conversation-tasks"+ title="Create a task from a message."+ description={+ 'Turn a request into a task with a description, owner, and priority.\nThe task links back to the message that created it.'+ }+ >+ <div class="feature-page-visual">+ <ChannelTaskDemo />+ </div>+ <ProductProse>+ <p>+ Create a task from a channel message or ask an agent to do it. The+ source remains linked, so the assignee can read the original request+ and replies. Mention the task in another conversation and its+ current status appears in the reference. Open it to update the+ brief, assign someone, or comment.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="channel-agents"+ title="Agents are channel participants."+ description={+ 'Ask an agent in the conversation where the decision happened.\nIt can read messages, open references, and update the work.'+ }+ >+ <div class="feature-page-visual">+ <ChannelAgentDemo />+ </div>+ <ProductProse>+ <p>+ Agents can participate in channels and DMs. @mention an agent with a+ question or instruction and give it the relevant documents, tasks,+ or emails. Workspace tools let it search for an answer, edit a+ document, create a task, or prepare an email. Your team can read the+ request and continue the conversation.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="channel-threads"+ title="Replies stay inline."+ description={+ 'Expand a thread under its original message.\nRead and reply while the rest of the channel stays visible.'+ }+ >+ <div class="feature-page-visual">+ <ChannelThreadDemo />+ </div>+ <ProductProse>+ <p>+ Threads expand in the message flow, with curved rails connecting+ replies to their parent. Questions, answers, reactions, and linked+ work stay readable in order. Collapse a thread when you’re finished.+ The main conversation stays in view while you catch up or write a+ reply.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="channel-navigation"+ title="Chat with an actual inbox."+ description={+ 'Channel messages and DMs arrive alongside emails, tasks, and agent responses.\nMark an item done when you’ve dealt with it.'+ }+ >+ <div class="feature-page-visual">+ <ChannelNavigationDemo />+ </div>+ <ProductProse>+ <p>+ Read and done are separate states. Opening a message marks it read;+ marking it done clears it from your inbox. Leave it there when it+ still needs a response. Use Signal and Noise to prioritize+ conversations, and Recent to return to channels and DMs. The+ Attachments tab collects the items shared in each conversation.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageFaq+ id="channels-faq-title"+ eyebrow="Channels, threads, and sharing"+ title="How Macro Chat works."+ introduction={+ <p>+ An inbox for conversations, inline replies, and channel access for+ shared work.+ </p>+ }+ items={[+ {+ q: 'Can I share documents and email in a channel?',+ a: (+ <>+ Yes. Share or mention a workspace item so teammates can open it+ from the conversation. Access still follows the item’s sharing+ permissions. See <a href="/email">email sharing</a>.+ </>+ ),+ },+ {+ q: 'Can a message become a task?',+ a: (+ <>+ Yes. Create a task from the message and retain the source+ conversation. The assignee can work in{' '}+ <a href="/tasks">the task view</a>.+ </>+ ),+ },+ {+ q: 'Where do replies appear?',+ a: 'Replies stay under their original message. Expand the thread to follow the discussion and reply in place.',+ },+ {+ q: 'Can agents use a channel’s context?',+ a: (+ <>+ Yes. Give an agent a clear question or job with the relevant+ workspace context. See <a href="/agents">agents in Macro</a> for+ concrete examples.+ </>+ ),+ },+ {+ q: 'Will these examples post to my account?',+ a: 'No. These demos use fictional local data. Messages, edits, and task creation never reach your account.',+ },+ {+ q: 'Is there a free plan?',+ a: (+ <>+ Yes. See <a href="/pricing">pricing</a> for current plans and+ limits.+ </>+ ),+ },+ ]}+ />+ <HomepageClosing />+ </ProductPage>+ );+}diff --git a/apps/marketing/src/features/marketing/views/ProductDocumentsPage.tsx b/apps/marketing/src/features/marketing/views/ProductDocumentsPage.tsxnew file mode 100644index 0000000000..c645feb11c--- /dev/null+++ b/apps/marketing/src/features/marketing/views/ProductDocumentsPage.tsx@@ -0,0 +1,225 @@+import { setPageSeo } from '../../../app/utils/utilSeo';+import {+ DocumentAgentDemo,+ DocumentDiscussionDemo,+ DocumentEditingDemo,+ DocumentLinkedTaskDemo,+ DocumentSharingDemo,+} from '../components/documents/DocumentStories';+import { FeaturePageFaq, FeaturePageSection } from '../components/FeaturePage';+import { HomepageClosing } from '../components/HomepageClosing';+import {+ ContextGraphic,+ EditingGraphic,+ LinkedWorkGraphic,+ ThreadGraphic,+} from '../components/product/ProductGraphics';+import {+ ProductHero,+ ProductPage,+ ProductProse,+} from '../components/product/ProductPage';+import { WorkspaceDesktopDemo } from '../components/WorkspaceDesktopDemo';++export function RouteDocuments() {+ setPageSeo({+ title: 'Macro Docs — Markdown Documents, Wired Into Everything',+ description:+ 'Markdown documents built on CRDTs, with offline editing, automatic sync, live agent edits, and bidirectional links to tasks, email, and chat.',+ path: '/documents',+ });+ return (+ <ProductPage>+ <ProductHero+ product="Docs"+ title={['Markdown docs with', 'live agent edits.']}+ description={[+ 'Local-first. Built on CRDTs.',+ 'Write offline. Sync when you’re back.',+ ]}+ cta="documents_hero_get_started"+ />+ <WorkspaceDesktopDemo+ view="documents"+ initialDocument="plan"+ label="Explore Macro Docs"+ caption="Edit the launch plan, leave a comment, or share it in the sample workspace."+ />+ <nav class="feature-page-jump-links" aria-label="On this page">+ <a href="#document-editor">+ <EditingGraphic />+ <span>CRDT editing</span>+ </a>+ <a href="#document-agents">+ <ContextGraphic />+ <span>Ask for an edit</span>+ </a>+ <a href="#document-discussion">+ <ThreadGraphic />+ <span>Comments</span>+ </a>+ <a href="#document-links">+ <LinkedWorkGraphic />+ <span>Bidirectional links</span>+ </a>+ </nav>+ <FeaturePageSection+ id="document-editor"+ title="Built on CRDTs. Ready offline."+ description={+ 'Edits apply locally as you type.\nConcurrent changes merge automatically when you reconnect.'+ }+ >+ <div class="feature-page-visual">+ <DocumentEditingDemo />+ </div>+ <ProductProse>+ <p>+ Macro documents use CRDTs: data structures that merge concurrent+ edits. Your changes are saved locally, and the sync service combines+ them with changes from other editors when you reconnect. The editor+ supports Markdown, headings, lists, and rich @mentions. Local+ snapshots and an edit log let you keep writing through a dropped+ connection.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="document-agents"+ title="Agents edit the live document."+ description={+ 'Ask for a rewrite, a checklist, or a structural change.\nWatch the edit appear in the document you’re already writing.'+ }+ >+ <div class="feature-page-visual">+ <DocumentAgentDemo />+ </div>+ <ProductProse>+ <p>+ Agents use the document’s collaboration system to apply edits+ directly. You can write alongside them and continue editing the+ result. Ask Claude to shorten a section, turn meeting notes into a+ brief, or restructure a draft. The agent reads the document and+ changes its text and formatting in place.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="document-discussion"+ title="Comments belong to the document."+ description={+ 'Ask a question, mention a teammate, and reply in the document’s discussion.\nThe conversation is available to the next editor and to your agents.'+ }+ >+ <div class="feature-page-visual">+ <DocumentDiscussionDemo />+ </div>+ <ProductProse>+ <p>+ Each document has its own discussion. Teammates can leave feedback,+ reply, and @mention the people responsible for a decision. Agents+ can read the discussion as well as the draft. Ask for an edit based+ on the feedback your team has already given.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="document-links"+ title="@mentions link in both directions."+ description={+ 'Mention a task, email, call, or channel inside a document.\nOpen the reference, or follow its backlink to the document.'+ }+ >+ <div class="feature-page-visual">+ <DocumentLinkedTaskDemo />+ </div>+ <ProductProse>+ <p>+ A Macro @mention is a reference to a real workspace item. It shows+ up in the document and in the referenced item’s backlinks, so you+ can navigate in either direction. Link a task to its specification,+ a customer to a proposal, or a call to its meeting notes. People and+ agents can follow those references to read the source.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="document-sharing"+ title="Share through your channels."+ description={+ 'Mention a document in a channel to share it with that team.\nOr choose individual edit, comment, and view access.'+ }+ >+ <div class="feature-page-visual">+ <DocumentSharingDemo />+ </div>+ <ProductProse>+ <p>+ When you have permission to share a document, mentioning it in a+ channel grants access to that channel. Membership determines who can+ open the shared work. Use Share for individual recipients and access+ levels. The document stays live: edits sync to everyone who has+ access.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageFaq+ id="documents-faq-title"+ eyebrow="Under the hood"+ title="Markdown, CRDTs, and agents."+ introduction={+ <p>+ A local-first editor with concurrent editing, rich references, and+ direct agent edits.+ </p>+ }+ items={[+ {+ q: 'What kind of documents can I edit?',+ a: 'Native Macro documents use Markdown and a collaborative editor. They support familiar headings, lists, links, and rich references to workspace items.',+ },+ {+ q: 'Can an agent edit the document directly?',+ a: (+ <>+ Yes. Agents can apply specific edits to native Markdown+ documents. Uploaded files such as PDFs are readable context, but+ are not the same editable document type. See{' '}+ <a href="/agents">agents in Macro</a>.+ </>+ ),+ },+ {+ q: 'Can I link tasks and conversations?',+ a: (+ <>+ Yes. Mention workspace items in a document so people can open+ the related <a href="/tasks">task</a> or{' '}+ <a href="/channels">conversation</a>.+ </>+ ),+ },+ {+ q: 'Can I choose who can edit?',+ a: 'Yes. The Share form lets you choose recipients and access levels. When you have permission to share, a channel @mention can grant access to that channel.',+ },+ {+ q: 'Can I edit offline?',+ a: 'Yes. Native documents save edits locally. CRDT sync merges those edits with concurrent changes from other editors when you reconnect.',+ },+ {+ q: 'Does open source make my documents public?',+ a: (+ <>+ No. The application code is open source; document access follows+ its sharing permissions. See the{' '}+ <a href="/privacy">Privacy Policy</a>.+ </>+ ),+ },+ ]}+ />+ <HomepageClosing />+ </ProductPage>+ );+}diff --git a/apps/marketing/src/features/marketing/views/ProductReviewsPage.tsx b/apps/marketing/src/features/marketing/views/ProductReviewsPage.tsxnew file mode 100644index 0000000000..a9484b0a91--- /dev/null+++ b/apps/marketing/src/features/marketing/views/ProductReviewsPage.tsx@@ -0,0 +1,202 @@+import { setPageSeo } from '../../../app/utils/utilSeo';+import { FeaturePageFaq, FeaturePageSection } from '../components/FeaturePage';+import { HomepageClosing } from '../components/HomepageClosing';+import {+ ContextGraphic,+ DiffGraphic,+ LinkedWorkGraphic,+ ThreadGraphic,+} from '../components/product/ProductGraphics';+import {+ ProductHero,+ ProductPage,+ ProductProse,+} from '../components/product/ProductPage';+import {+ ReviewAgentDemo,+ ReviewDiffDemo,+ ReviewDiscussionDemo,+ ReviewLinkedTaskDemo,+ ReviewQueueDemo,+} from '../components/reviews/ReviewStories';+import { WorkspaceDesktopDemo } from '../components/WorkspaceDesktopDemo';++export function RouteGithub() {+ setPageSeo({+ title: 'Macro Reviews — Review PRs in Your Inbox',+ description:+ 'Find pull requests, read GitHub discussion, inspect agent changes, and connect code review to the task behind the work.',+ path: '/github',+ });+ return (+ <ProductPage>+ <ProductHero+ product="Reviews"+ title={['GitHub pull requests', 'in your inbox.']}+ description={[+ 'Review comments, mentions, and linked tasks.',+ 'Follow the code from request to merge.',+ ]}+ cta="github_hero_get_started"+ />+ <WorkspaceDesktopDemo+ view="tasks"+ label="Explore Macro Reviews"+ caption="Find a pull request and open its details. This interactive example uses fictional reviews."+ >+ <ReviewQueueDemo />+ </WorkspaceDesktopDemo>+ <nav class="feature-page-jump-links" aria-label="On this page">+ <a href="#review-queue">+ <LinkedWorkGraphic />+ <span>Find your review</span>+ </a>+ <a href="#review-diff">+ <DiffGraphic />+ <span>Inspect the change</span>+ </a>+ <a href="#review-discussion">+ <ThreadGraphic />+ <span>Read the discussion</span>+ </a>+ <a href="#review-agent">+ <ContextGraphic />+ <span>Ask a precise question</span>+ </a>+ </nav>+ <FeaturePageSection+ id="review-queue"+ title="Your GitHub review queue, in Macro."+ description={+ 'Find pull requests you authored, commented on, or were mentioned in.\nOpen their descriptions, repositories, and review discussion.'+ }+ >+ <div class="feature-page-visual">+ <ReviewQueueDemo animate />+ </div>+ <ProductProse>+ <p>+ GitHub events bring pull requests into Macro. Involving me collects+ the reviews you participate in, alongside the rest of your work.+ Each pull request retains its author, repository, description, and+ status. Search by title or open the GitHub link for repository+ actions.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="review-diff"+ title="Read the agent’s diff."+ description={+ 'Open Changes in an agent session to inspect its file edits.\nAdded and removed lines show exactly what it proposes.'+ }+ >+ <div class="feature-page-visual">+ <ReviewDiffDemo />+ </div>+ <ProductProse>+ <p>+ Coding agent sessions expose proposed file changes in a diff. You+ can inspect the implementation alongside the prompt and the agent’s+ explanation. A linked pull request opens the GitHub review record.+ Its discussion is available in Macro, with a link to GitHub for the+ repository diff.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="review-discussion"+ title="GitHub comments, with file and line references."+ description={+ 'Read review comments and replies inside the pull request.\nFilter bot messages when you want to focus on the human discussion.'+ }+ >+ <div class="feature-page-visual">+ <ReviewDiscussionDemo />+ </div>+ <ProductProse>+ <p>+ Macro imports GitHub discussion, including review threads and author+ replies. File and line references show which part of the code a+ comment concerns. Comments and mentions appear with the pull request+ in your workspace. You can follow the review while reading the task+ that prompted the change.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="review-agent"+ title="Ask the coding agent about its change."+ description={+ 'Question a retry condition, a dependency, or a behavior in the diff.\nThe agent can explain the implementation using the code in its session.'+ }+ >+ <div class="feature-page-visual">+ <ReviewAgentDemo />+ </div>+ <ProductProse>+ <p>+ The coding session contains the request, proposed changes, and agent+ conversation. Ask about a specific file or branch of the+ implementation and inspect its answer against the diff. Use your+ review to decide the next step: request a revision, run a check, or+ open the pull request on GitHub.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageSection+ id="review-task"+ title="Task status follows the pull request."+ description={+ 'Link a task to the code change that implements it.\nOpening the pull request moves it into review; merging completes it.'+ }+ >+ <div class="feature-page-visual">+ <ReviewLinkedTaskDemo />+ </div>+ <ProductProse>+ <p>+ GitHub events update linked tasks. A new pull request sets In+ Review, and a merge sets Completed. The task keeps its brief, owner,+ and discussion. Open the pull request from the task, or follow the+ reference back to the request behind the code.+ </p>+ </ProductProse>+ </FeaturePageSection>+ <FeaturePageFaq+ id="reviews-faq"+ eyebrow="GitHub events and linked work"+ title="How Reviews works."+ introduction={+ <p>+ Pull requests and review discussion in Macro, with task updates+ driven by GitHub events.+ </p>+ }+ items={[+ {+ q: 'What does Reviews show?',+ a: 'Pull requests with their description, author, repository, status, changes, GitHub discussion, and available check information.',+ },+ {+ q: 'Where can I inspect the diff?',+ a: 'Agent sessions show proposed file changes in their Changes surface. The pull-request view links to GitHub for the repository diff and repository actions.',+ },+ {+ q: 'Can I read GitHub comments in Macro?',+ a: 'Yes. GitHub discussion is imported into the pull-request view, including review comments and replies.',+ },+ {+ q: 'How do pull requests relate to tasks?',+ a: 'Linked pull-request events can move a task into review and complete it when the pull request is merged.',+ },+ {+ q: 'Do these examples use a real repository?',+ a: 'No. They use fictional local data and do not run checks, post comments, or merge changes.',+ },+ ]}+ />+ <HomepageClosing />+ </ProductPage>+ );+}diff --git a/apps/marketing/src/features/marketing/views/agents-page.css b/apps/marketing/src/features/marketing/views/agents-page.cssnew file mode 100644index 0000000000..81870450a8--- /dev/null+++ b/apps/marketing/src/features/marketing/views/agents-page.css@@ -0,0 +1,45 @@+.agents-page-providers {+ display: flex;+ flex-wrap: wrap;+ justify-content: space-between;+ gap: 32px 24px;+ width: min(872px, calc(100% - 48px));+ margin: 40px auto 0;+ padding: 36px 0;+ list-style: none;+ border-block: 1px solid #ffffff14;+ color: #b8b8b3;+ font: 400 15px/1.5 'Inter Variable', Inter, sans-serif;+}++.agents-page-providers li {+ display: flex;+ align-items: center;+ gap: 12px;+}++.agents-page-provider-icon {+ display: grid;+ place-items: center;+ width: 32px;+ height: 36px;+}++.agents-page-provider-icon svg {+ width: 28px;+ height: 28px;+}++.agents-page-providers li:first-child svg {+ width: 18px;+ height: 36px;+}++@media (max-width: 699px) {+ .agents-page-providers {+ width: 100%;+ justify-content: flex-start;+ gap: 24px 32px;+ padding-block: 28px;+ }+}diff --git a/apps/marketing/src/features/setup/components/WelcomeSteps.tsx b/apps/marketing/src/features/setup/components/WelcomeSteps.tsxindex 265168ffbf..11be62b1f4 100644--- a/apps/marketing/src/features/setup/components/WelcomeSteps.tsx+++ b/apps/marketing/src/features/setup/components/WelcomeSteps.tsx@@ -136,16 +136,22 @@ export function WelcomeStep(props: {data-welcome-headingclass="font-[Roboto_Slab_Variable] font-[315] text-4xl leading-[1.12] tracking-tight sm:text-5xl md:text-[60px]">- One unified interface+ The unified workspace<br />- for all your work.+ <span class="inline-block" data-welcome-company>+ for your company.+ </span></h1><pdata-welcome-copy- class="mx-auto max-w-sm text-sm leading-6 text-ink-muted md:max-w-[480px] md:text-[17.5px] md:leading-[30px]"+ class="mx-auto max-w-[288px] text-balance text-[13px] leading-[1.8] text-ink-muted sm:max-w-[384px] md:max-w-[480px] md:text-[clamp(14px,1.4vw,17.5px)]">- Work together with your agents, with every conversation, document, and- tool in one place.+ <span class="md:mx-auto md:block md:w-fit">+ Your email, chat, tasks, docs, agents and CRM+ </span>{' '}+ <span class="md:mx-auto md:block md:w-fit">+ in one tab with team level memory for agents.+ </span></p></div><div@@ -179,19 +185,19 @@ export function IntroductionStep(props: {</div><div class="grid grid-cols-3 gap-4 text-center text-xs leading-5 text-ink-muted"><span>- Bring your tools+ Read your work<br />- <strong class="font-medium text-ink">into one place</strong>+ <strong class="font-medium text-ink">in one inbox</strong></span><span>- Find the context+ Search across<br />- <strong class="font-medium text-ink">behind your work</strong>+ <strong class="font-medium text-ink">email, chat, and docs</strong></span><span>- Move forward+ Give agents<br />- <strong class="font-medium text-ink">with your team</strong>+ <strong class="font-medium text-ink">tools to edit</strong></span></div><ContinueButton label="Set up my workspace" onClick={props.onContinue} />diff --git a/apps/marketing/src/features/setup/components/WorkspaceIntro.tsx b/apps/marketing/src/features/setup/components/WorkspaceIntro.tsxindex 60080a4a0c..06a1261682 100644--- a/apps/marketing/src/features/setup/components/WorkspaceIntro.tsx+++ b/apps/marketing/src/features/setup/components/WorkspaceIntro.tsx@@ -50,8 +50,8 @@ export function WorkspaceIntro(props: {Create your workspace</h1><p class="mt-6 max-w-[460px] font-[Inter_Variable] text-sm leading-6 text-ink-muted sm:text-[15px] [text-wrap:balance]">- Let’s make Macro feel like you, then bring in your calendar, email,- messages and tools together.+ Choose your workspace color. You’ll connect accounts and invite+ teammates when you finish setting up in the app.</p><divclass="relative mt-8 flex h-40 w-full max-w-[400px] items-center justify-center sm:h-44"diff --git a/apps/marketing/src/routes/posts/PostDiagram.css b/apps/marketing/src/routes/posts/PostDiagram.cssindex 07f744596e..3b886748b3 100644--- a/apps/marketing/src/routes/posts/PostDiagram.css+++ b/apps/marketing/src/routes/posts/PostDiagram.css@@ -26,7 +26,7 @@background: color-mix(in srgb, var(--b1) 72%, var(--b0));border: 1px solid color-mix(in srgb, var(--b4) 22%, transparent);border-radius: 14px;- font-family: 'rajdhani', body, system-ui, sans-serif;+ font-family: 'Inter', body, system-ui, sans-serif;padding: 20px clamp(14px, 3vw, 26px) 24px;}diff --git a/apps/marketing/src/routes/posts/PostFaq.tsx b/apps/marketing/src/routes/posts/PostFaq.tsxnew file mode 100644index 0000000000..f8cb5be753--- /dev/null+++ b/apps/marketing/src/routes/posts/PostFaq.tsx@@ -0,0 +1,17 @@+import CaretDownIcon from '@phosphor/caret-down.svg';+import type { JSX } from 'solid-js';++export function PostFaqItem(props: {+ question: string;+ children: JSX.Element;+}) {+ return (+ <details class="post-faq__item">+ <summary>+ <span>{props.question}</span>+ <CaretDownIcon aria-hidden="true" />+ </summary>+ <div class="post-faq__answer">{props.children}</div>+ </details>+ );+}diff --git a/apps/marketing/src/routes/posts/PostPage.tsx b/apps/marketing/src/routes/posts/PostPage.tsxindex fa0e3f1ae4..416fd34fff 100644--- a/apps/marketing/src/routes/posts/PostPage.tsx+++ b/apps/marketing/src/routes/posts/PostPage.tsx@@ -1,3 +1,4 @@+import ArrowLeftIcon from '@phosphor/arrow-left.svg';import { A, useParams } from '@solidjs/router';import { createMemo, createRenderEffect, Show } from 'solid-js';import { Dynamic, isServer } from 'solid-js/web';@@ -5,13 +6,9 @@ import { APP_BASE_URL } from '../../app/utils/utilBaseUrl';import { setPageSeo } from '../../app/utils/utilSeo';import { PostCover } from './PostCover';import { PostsPageTail } from './PostsPageTail';-import {- avoidTitleOrphan,- EXCLUDED_FILTER_TAGS,- formatTagLabel,- getPostBySlug,-} from './registry';+import { avoidTitleOrphan, getPostBySlug } from './registry';import './posts-shell.css';+import './post-reading.css';const MONTHS = ['January',@@ -85,27 +82,9 @@ export default function PostPage() {<article class="posts-shell posts-article posts-article--with-footer"><header class="posts-article-header"><nav class="posts-eyebrow" aria-label="Breadcrumb">- <A href="/posts">Blog</A>- <Show when={e().meta.category ?? e().meta.tags?.[0]}>- {(cat) => {- const tagParam = () => {- const primary = e().meta.tags?.find(- (t) => !EXCLUDED_FILTER_TAGS.has(t.toLowerCase())- );- return primary ?? cat().toLowerCase();- };- return (- <>- <span class="posts-eyebrow-sep">/</span>- <A- href={`/posts?tag=${encodeURIComponent(tagParam())}`}- >- {formatTagLabel(cat())}- </A>- </>- );- }}- </Show>+ <A href="/posts">+ <ArrowLeftIcon aria-hidden="true" /> All posts+ </A></nav><h1 class="posts-title">diff --git a/apps/marketing/src/routes/posts/entries/ai-editing-agents/AiEditingAgents.css b/apps/marketing/src/routes/posts/entries/ai-editing-agents/AiEditingAgents.cssindex 55e62b4c3e..b9157d58a0 100644--- a/apps/marketing/src/routes/posts/entries/ai-editing-agents/AiEditingAgents.css+++ b/apps/marketing/src/routes/posts/entries/ai-editing-agents/AiEditingAgents.css@@ -1,6 +1,6 @@.aie-post {color: var(--c4);- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;}.aie-post,@@ -60,6 +60,6 @@.aie-post code {color: var(--c1);- font-family: 'rajdhani', body, system-ui, sans-serif;+ font-family: 'Inter', body, system-ui, sans-serif;font-size: 0.95em;}diff --git a/apps/marketing/src/routes/posts/entries/code-reviews-report/CodeReviewsReport.css b/apps/marketing/src/routes/posts/entries/code-reviews-report/CodeReviewsReport.cssindex 0928978330..c9313f5cad 100644--- a/apps/marketing/src/routes/posts/entries/code-reviews-report/CodeReviewsReport.css+++ b/apps/marketing/src/routes/posts/entries/code-reviews-report/CodeReviewsReport.css@@ -29,7 +29,7 @@color: var(--crr-text-bright);font-family: 'display', Georgia, serif;font-size: clamp(28px, 4vw, 38px);- font-weight: 430;+ font-weight: 315;letter-spacing: -0.02em;line-height: 1.12;margin: 68px 0 24px;@@ -112,7 +112,7 @@.crr-post .crr-ascii-block pre {color: var(--crr-text-dim);- font-family: 'rajdhani', body, system-ui, sans-serif;+ font-family: 'Inter', body, system-ui, sans-serif;font-size: 14px;line-height: 1.55;margin: 0;@@ -137,7 +137,7 @@.crr-post code {color: var(--crr-text-bright);- font-family: 'rajdhani', body, system-ui, sans-serif;+ font-family: 'Inter', body, system-ui, sans-serif;font-size: 0.95em;}diff --git a/apps/marketing/src/routes/posts/entries/doppler-config/DopplerConfig.css b/apps/marketing/src/routes/posts/entries/doppler-config/DopplerConfig.cssindex 2502a27b70..161cab9f82 100644--- a/apps/marketing/src/routes/posts/entries/doppler-config/DopplerConfig.css+++ b/apps/marketing/src/routes/posts/entries/doppler-config/DopplerConfig.css@@ -1,6 +1,6 @@.dpl-post {color: var(--c4);- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;}.dpl-post,@@ -45,7 +45,7 @@border: 1px solid color-mix(in srgb, var(--b4) 22%, transparent);border-radius: 10px;color: var(--c3);- font-family: 'rajdhani', body, system-ui, sans-serif;+ font-family: 'Inter', body, system-ui, sans-serif;font-size: 14.5px;line-height: 1.8;margin: 26px 0;@@ -56,7 +56,7 @@.dpl-post code {color: var(--c1);- font-family: 'rajdhani', body, system-ui, sans-serif;+ font-family: 'Inter', body, system-ui, sans-serif;font-size: 0.95em;}diff --git a/apps/marketing/src/routes/posts/entries/gmail-rate-limits/GmailRateLimits.css b/apps/marketing/src/routes/posts/entries/gmail-rate-limits/GmailRateLimits.cssindex 875969a718..850dbd60be 100644--- a/apps/marketing/src/routes/posts/entries/gmail-rate-limits/GmailRateLimits.css+++ b/apps/marketing/src/routes/posts/entries/gmail-rate-limits/GmailRateLimits.css@@ -1,6 +1,6 @@.grl-post {color: var(--c4);- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;}.grl-post,@@ -56,6 +56,6 @@.grl-post code {color: var(--c1);- font-family: 'rajdhani', body, system-ui, sans-serif;+ font-family: 'Inter', body, system-ui, sans-serif;font-size: 0.95em;}diff --git a/apps/marketing/src/routes/posts/entries/graphql-cache/GraphqlCache.css b/apps/marketing/src/routes/posts/entries/graphql-cache/GraphqlCache.cssindex b7c5f19d01..5956464499 100644--- a/apps/marketing/src/routes/posts/entries/graphql-cache/GraphqlCache.css+++ b/apps/marketing/src/routes/posts/entries/graphql-cache/GraphqlCache.css@@ -1,6 +1,6 @@.gqc-post {color: var(--c4);- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;}.gqc-post,@@ -45,7 +45,7 @@border: 1px solid color-mix(in srgb, var(--b4) 22%, transparent);border-radius: 10px;color: var(--c3);- font-family: 'rajdhani', body, system-ui, sans-serif;+ font-family: 'Inter', body, system-ui, sans-serif;font-size: 14.5px;line-height: 1.8;margin: 26px 0;diff --git a/apps/marketing/src/routes/posts/entries/macro-vs-clickup/index.tsx b/apps/marketing/src/routes/posts/entries/macro-vs-clickup/index.tsxindex 5ead6051ae..256298aa44 100644--- a/apps/marketing/src/routes/posts/entries/macro-vs-clickup/index.tsx+++ b/apps/marketing/src/routes/posts/entries/macro-vs-clickup/index.tsx@@ -12,6 +12,7 @@ import {type ComparisonRow,ComparisonTable,} from '../../PostComparison';+import { PostFaqItem } from '../../PostFaq';import type { PostMeta } from '../../registry';const EMAIL_VIDEO_ID = 'tnsxkywzTvY';@@ -575,72 +576,78 @@ export default function MacroVsClickUpPost() {clearer foundation.</p>- <h2>FAQ</h2>- <div class="mvn-faq">- <h3>Is Macro better than ClickUp for startups?</h3>- <p>- For most startups, yes. Macro replaces your inbox, chat, docs and- task tracker with one AI-first workspace, so shared context is the- default. ClickUp offers more project-management knobs, but those- knobs are also where small teams lose time — configuring Spaces,- cleaning up views, and teaching new hires which List is current. If- you want everything connected and AI-ready without a heavy admin- burden, Macro is the better place to start.- </p>+ <h2 class="post-faq-title">Frequently asked questions</h2>+ <div class="post-faq">+ <PostFaqItem question="Is Macro better than ClickUp for startups?">+ <p>+ For most startups, yes. Macro replaces your inbox, chat, docs and+ task tracker with one AI-first workspace, so shared context is the+ default. ClickUp offers more project-management knobs, but those+ knobs are also where small teams lose time — configuring Spaces,+ cleaning up views, and teaching new hires which List is current.+ If you want everything connected and AI-ready without a heavy+ admin burden, Macro is the better place to start.+ </p>+ </PostFaqItem>- <h3>Is Macro cheaper than ClickUp?</h3>- <p>- This depends on the plan you choose. ClickUp's base plans cost $10- or $19 per seat per month. To access AI, you have to add another $14- or $33, depending on the features you want. That brings the total- with AI to somewhere between $24 and $52. Macro, meanwhile, costs- $40 per month for everything we offer — including AI — without- sorting which features sit behind which tier.- </p>+ <PostFaqItem question="Is Macro cheaper than ClickUp?">+ <p>+ This depends on the plan you choose. ClickUp's base plans cost $10+ or $19 per seat per month. To access AI, you have to add another+ $14 or $33, depending on the features you want. That brings the+ total with AI to somewhere between $24 and $52. Macro, meanwhile,+ costs $40 per month for everything we offer — including AI —+ without sorting which features sit behind which tier.+ </p>+ </PostFaqItem>- <h3>How do ClickUp and Macro's free plans compare?</h3>- <p>- ClickUp's free plan is built for testing the product. You get- unlimited tasks and members, but storage is capped at 60MB, and you- get limited access to AI tools. Our free plan gives you full- workspace access with a "Sent with Macro" signature and limits on- storage and AI.- </p>+ <PostFaqItem question="How do ClickUp and Macro's free plans compare?">+ <p>+ ClickUp's free plan is built for testing the product. You get+ unlimited tasks and members, but storage is capped at 60MB, and+ you get limited access to AI tools. Our free plan gives you full+ workspace access with a "Sent with Macro" signature and limits on+ storage and AI.+ </p>+ </PostFaqItem>- <h3>Does ClickUp not have email?</h3>- <p>- ClickUp can connect to Gmail or Outlook through integrations, but- that isn't an email client. Teams still need a separate tool for- their actual inbox, which is one more place work can fall out of- sync. Our email client is built into the app itself.- </p>+ <PostFaqItem question="Does ClickUp not have email?">+ <p>+ ClickUp can connect to Gmail or Outlook through integrations, but+ that isn't an email client. Teams still need a separate tool for+ their actual inbox, which is one more place work can fall out of+ sync. Our email client is built into the app itself.+ </p>+ </PostFaqItem>- <h3>Is ClickUp hard to use?</h3>- <p>- "Hard" depends on the team. ClickUp isn't missing documentation or- training — if anything, it needs them, because there's so much to- learn. Power users who enjoy configuring workflows often stick with- it. Teams that want to open the app and move get frustrated by how- many places a simple task can live. Macro is deliberately narrower- so day-to-day use stays fast.- </p>+ <PostFaqItem question="Is ClickUp hard to use?">+ <p>+ "Hard" depends on the team. ClickUp isn't missing documentation or+ training — if anything, it needs them, because there's so much to+ learn. Power users who enjoy configuring workflows often stick+ with it. Teams that want to open the app and move get frustrated+ by how many places a simple task can live. Macro is deliberately+ narrower so day-to-day use stays fast.+ </p>+ </PostFaqItem>- <h3>Is Macro open source?</h3>- <p>- Yes, end to end:{' '}- <a- href="https://github.com/macro-inc/macro"- target="_blank"- rel="noreferrer"- >- github.com/macro-inc/macro- </a>- . Your data stays open and portable and the app is extensible.- ClickUp is closed source.- </p>+ <PostFaqItem question="Is Macro open source?">+ <p>+ Yes, end to end:{' '}+ <a+ href="https://github.com/macro-inc/macro"+ target="_blank"+ rel="noreferrer"+ >+ github.com/macro-inc/macro+ </a>+ . Your data stays open and portable and the app is extensible.+ ClickUp is closed source.+ </p>+ </PostFaqItem></div>- <p>+ <p class="post-footnote">For tasks, GitHub linking, agents and the rest of the workspace, seethe{' '}<a href="https://docs.macro.com" target="_blank" rel="noreferrer">diff --git a/apps/marketing/src/routes/posts/entries/macro-vs-linear/MacroVsLinear.css b/apps/marketing/src/routes/posts/entries/macro-vs-linear/MacroVsLinear.cssnew file mode 100644index 0000000000..71982fdead--- /dev/null+++ b/apps/marketing/src/routes/posts/entries/macro-vs-linear/MacroVsLinear.css@@ -0,0 +1,22 @@+.posts-article .linear-post .mvn-graphic {+ left: 50%;+ position: relative;+ transform: translateX(-50%);+ width: min(920px, calc(100vw - 48px));+}++.linear-post .mvn-graphic-frame {+ background: transparent;+ border-color: #292929;+ border-radius: 12px;+ padding: 0;+}++.linear-post .mvn-graphic-frame::before {+ content: none;+}++.linear-post .mvn-graphic-inner {+ border: 0;+ border-radius: inherit;+}diff --git a/apps/marketing/src/routes/posts/entries/macro-vs-linear/index.tsx b/apps/marketing/src/routes/posts/entries/macro-vs-linear/index.tsxindex 6ea123a0c0..0a25a81139 100644--- a/apps/marketing/src/routes/posts/entries/macro-vs-linear/index.tsx+++ b/apps/marketing/src/routes/posts/entries/macro-vs-linear/index.tsx@@ -1,13 +1,13 @@import { For } from 'solid-js';import '../macro-vs-notion/MacroVsNotion.css';-import { featureNavGlyphs } from '../../../../app/components/graphics/FeatureNavGlyphs';+import './MacroVsLinear.css';import { PhoneFrame } from '../../../../app/components/utils/UtilPhoneFrame';import avatarJacob from '../../../../assets/people/jacob.webp';-import linkedWorkspace from '../../../../assets/posts/macro-vs-linear/linked-workspace.jpg';import taskCreateButton from '../../../../assets/posts/macro-vs-linear/task-create-button.mp4';+import taskCreateCurrent from '../../../../assets/posts/macro-vs-linear/task-create-current.webp';+import taskDetailCurrent from '../../../../assets/posts/macro-vs-linear/task-detail-current.webp';import taskEmailAction from '../../../../assets/posts/macro-vs-linear/task-email-action.png';import taskFromChannel from '../../../../assets/posts/macro-vs-linear/task-from-channel.jpg';-import taskFromEmailModal from '../../../../assets/posts/macro-vs-linear/task-from-email-modal.jpg';import taskFromHuddle from '../../../../assets/posts/macro-vs-linear/task-from-huddle.jpg';import taskGithubPr from '../../../../assets/posts/macro-vs-linear/task-github-pr.jpg';import {@@ -15,6 +15,7 @@ import {ComparisonTable,LinearLogo,} from '../../PostComparison';+import { PostFaqItem } from '../../PostFaq';import type { PostMeta } from '../../registry';const LINEAR_VIDEO_ID = 'nHxqE2mVKrA';@@ -115,31 +116,14 @@ const USER_QUOTES: { name: string; text: string }[] = [},];-/** Small isometric block glyph (reused from the home feature nav) shown above- * a section heading. `route` selects which block composition to draw. */-function SectionGlyph(props: { route: string }) {- const Glyph = featureNavGlyphs[props.route];- return (- <div class="mvn-section-glyph" aria-hidden="true">- {Glyph ? <Glyph height="44px" /> : null}- </div>- );-}-function PostScreenshot(props: {src: string;alt: string;width: number;height: number;- fadeRight?: boolean;}) {return (- <figure- classList={{- 'mvn-graphic': true,- 'mvn-graphic--fade-right': !!props.fadeRight,- }}- >+ <figure class="mvn-graphic"><div class="mvn-graphic-frame"><div class="mvn-graphic-inner"><img@@ -227,7 +211,7 @@ export const postMeta: PostMeta = {subtitle:'Macro is the open source alternative to Linear for fast engineering task management.',date: '2026-06-25',- updated: '2026-07-09',+ updated: '2026-09-25',description:'Macro is the open-source alternative to Linear: fast, keyboard-first task management inside one workspace with email, chat, docs, calls and a CRM, linked to GitHub and a shared team memory.',preview: ARTICLE_PREVIEW,@@ -243,7 +227,7 @@ export const postMeta: PostMeta = {export default function MacroVsLinearPost() {return (- <div class="mvn-post">+ <div class="mvn-post linear-post"><article><p>{ARTICLE_PARAGRAPHS[0]}</p><p>{ARTICLE_PARAGRAPHS[1]}</p>@@ -310,7 +294,7 @@ export default function MacroVsLinearPost() {rows={comparisonRows}/>- <SectionGlyph route="/tasks" />+ <hr class="post-section-rule" aria-hidden="true" /><h2>Task creation: Linear is manual, Macro is automatic</h2><p>Macro and Linear are comparably fast once you are inside the tracker:@@ -349,16 +333,6 @@ export default function MacroVsLinearPost() {Hit <strong>Task</strong> on any email to turn it into a tracked itemwithout leaving your inbox.</p>- <PostScreenshot- src={taskFromEmailModal}- alt="Create task modal opened from an email, with the source thread linked in the description"- width={1024}- height={640}- />- <p class="mvn-figcaption">- The modal opens with the email linked — status, assignee and priority- ready to set, source attached.- </p><h3>From a channel message</h3><p>@@ -400,6 +374,16 @@ export default function MacroVsLinearPost() {create task modal — the same Linear-style speed, without leavingMacro.</p>+ <PostScreenshot+ src={taskCreateCurrent}+ alt="Current Macro create-task dialog with title, description, status, priority, assignee, due date and tags"+ width={840}+ height={366}+ />+ <p class="mvn-figcaption">+ Set the task’s status, priority, assignee and due date in the create+ dialog. Captured from Macro in September 2026.+ </p><h3>From markdown to-dos</h3><p>@@ -425,7 +409,7 @@ export default function MacroVsLinearPost() {assignee, linked to the rest of your workspace.</p>- <SectionGlyph route="/calls" />+ <hr class="post-section-rule" aria-hidden="true" /><h2>Create and assign tasks from standups and huddles</h2><p>A lot of tasks are decided on a call and never make it into a tracker@@ -454,7 +438,7 @@ export default function MacroVsLinearPost() {gets said into assigned tasks when it ends.</p>- <SectionGlyph route="/github" />+ <hr class="post-section-rule" aria-hidden="true" /><h2>Linked to GitHub, both ways</h2><p>For engineering work, Macro tasks link to GitHub bidirectionally and@@ -487,7 +471,7 @@ export default function MacroVsLinearPost() {still a separate thing to check.</p>- <SectionGlyph route="/agents" />+ <hr class="post-section-rule" aria-hidden="true" /><h2>One linked system, one team memory</h2><p>In Linear you link issues to issues, and to PRs and a handful of@@ -498,15 +482,15 @@ export default function MacroVsLinearPost() {workspace becomes context you can navigate in either direction.</p><PostScreenshot- src={linkedWorkspace}- alt="Macro workspace showing tasks in the same app as email, channels, calls and the rest of the sidebar"- width={1024}- height={519}- fadeRight+ src={taskDetailCurrent}+ alt="Current Macro task editor with status, priority, assignee, description, discussion and the shared workspace navigation"+ width={1200}+ height={650}/><p class="mvn-figcaption">- Tasks live in the same app as email, channels, calls and everything- else — one rail, one linked system.+ The current task editor keeps properties, the description and+ discussion together, with the rest of the workspace one click away.+ Captured from Macro in September 2026.</p><p>That web is also how permissions work. Anything you @-mention in a@@ -540,47 +524,51 @@ export default function MacroVsLinearPost() {</For></div>- <h2>FAQ</h2>- <div class="mvn-faq">- <h3>Should I switch from Linear to Macro?</h3>- <p>- If your stack is Linear plus Slack plus email plus docs plus a CRM,- yes — that is five tools that do not share context. Run Macro- alongside Linear for a week, create tasks from your real email and- channels, wire up GitHub, and see how much context-switching- disappears.- </p>+ <h2 class="post-faq-title">Frequently asked questions</h2>+ <div class="post-faq">+ <PostFaqItem question="Should I switch from Linear to Macro?">+ <p>+ If your stack is Linear plus Slack plus email plus docs plus a+ CRM, yes — that is five tools that do not share context. Run Macro+ alongside Linear for a week, create tasks from your real email and+ channels, wire up GitHub, and see how much context-switching+ disappears.+ </p>+ </PostFaqItem>- <h3>When would I keep Linear instead?</h3>- <p>- When you explicitly want standalone issue tracking disconnected from- email, chat, calls and docs — a dedicated tracker tab and- integrations to bridge the gap, rather than one linked workspace.- </p>+ <PostFaqItem question="When would I keep Linear instead?">+ <p>+ When you explicitly want standalone issue tracking disconnected+ from email, chat, calls and docs — a dedicated tracker tab and+ integrations to bridge the gap, rather than one linked workspace.+ </p>+ </PostFaqItem>- <h3>Is Macro open source?</h3>- <p>- Yes, end to end:{' '}- <a- href="https://github.com/macro-inc/macro"- target="_blank"- rel="noreferrer"- >- github.com/macro-inc/macro- </a>- . Your data stays open and portable and the app is extensible.- Linear is closed source.- </p>+ <PostFaqItem question="Is Macro open source?">+ <p>+ Yes, end to end:{' '}+ <a+ href="https://github.com/macro-inc/macro"+ target="_blank"+ rel="noreferrer"+ >+ github.com/macro-inc/macro+ </a>+ . Your data stays open and portable and the app is extensible.+ Linear is closed source.+ </p>+ </PostFaqItem>- <h3>Can I move my Linear issues over?</h3>- <p>- Run Macro alongside Linear while you switch — create tasks from live- email and channels so new work lands in Macro without a big-bang- migration, then bring the rest across as you go.- </p>+ <PostFaqItem question="Can I move my Linear issues over?">+ <p>+ Run Macro alongside Linear while you switch — create tasks from+ live email and channels so new work lands in Macro without a+ big-bang migration, then bring the rest across as you go.+ </p>+ </PostFaqItem></div>- <p>+ <p class="post-footnote">For shortcuts, @mentions, the task component and GitHub integration,see the{' '}<adiff --git a/apps/marketing/src/routes/posts/entries/macro-vs-notion/MacroVsNotion.css b/apps/marketing/src/routes/posts/entries/macro-vs-notion/MacroVsNotion.cssindex 03f8ae60ba..2086772181 100644--- a/apps/marketing/src/routes/posts/entries/macro-vs-notion/MacroVsNotion.css+++ b/apps/marketing/src/routes/posts/entries/macro-vs-notion/MacroVsNotion.css@@ -1,6 +1,6 @@.mvn-post {color: var(--c4);- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;}.mvn-post,@@ -38,7 +38,7 @@.mvn-authors-note-label {color: var(--c2);- font-family: rajdhani, body, system-ui, sans-serif;+ font-family: Inter, body, system-ui, sans-serif;font-size: 13px;font-weight: 700;letter-spacing: 0.08em;@@ -220,7 +220,7 @@.mvn-testimonial figcaption {color: var(--c4);- font-family: rajdhani, body, system-ui, sans-serif;+ font-family: Inter, body, system-ui, sans-serif;font-size: 13px;font-weight: 700;letter-spacing: 0.08em;@@ -266,7 +266,7 @@.mvn-th-brand {align-items: center;display: inline-flex;- font-family: 'rajdhani', body;+ font-family: 'Inter', body;gap: 8px;letter-spacing: 0.04em;text-transform: uppercase;@@ -321,7 +321,7 @@align-items: center;color: var(--c4);display: flex;- font-family: 'rajdhani', body;+ font-family: 'Inter', body;font-size: 11px;font-weight: 700;gap: 8px;diff --git a/apps/marketing/src/routes/posts/entries/macro-vs-notion/index.tsx b/apps/marketing/src/routes/posts/entries/macro-vs-notion/index.tsxindex 6c9b0dd334..dd5e8eb829 100644--- a/apps/marketing/src/routes/posts/entries/macro-vs-notion/index.tsx+++ b/apps/marketing/src/routes/posts/entries/macro-vs-notion/index.tsx@@ -8,6 +8,7 @@ import {ComparisonTable,NotionLogo,} from '../../PostComparison';+import { PostFaqItem } from '../../PostFaq';import type { PostMeta } from '../../registry';const NOTION_VIDEO_ID = 'hyU1XYmxkYM';@@ -409,57 +410,63 @@ export default function MacroVsNotionPost() {work. A unified workspace does.</p>- <h2>FAQ</h2>- <div class="mvn-faq">- <h3>Should I switch from Notion to Macro?</h3>- <p>- If your setup is Notion plus Slack plus a mail client plus a CRM,- yes — that is four tools that do not share context. Run Macro- alongside Notion for a week: move your active docs over, point your- mail and chat at Macro, and keep Notion open for the long-tail- database stuff while you decide what comes across.- </p>+ <h2 class="post-faq-title">Frequently asked questions</h2>+ <div class="post-faq">+ <PostFaqItem question="Should I switch from Notion to Macro?">+ <p>+ If your setup is Notion plus Slack plus a mail client plus a CRM,+ yes — that is four tools that do not share context. Run Macro+ alongside Notion for a week: move your active docs over, point+ your mail and chat at Macro, and keep Notion open for the+ long-tail database stuff while you decide what comes across.+ </p>+ </PostFaqItem>- <h3>When would I keep Notion instead?</h3>- <p>- When deep, endlessly configurable databases are the core of your- work. If everything you do is structured records and custom views,- nothing matches Notion's depth yet — including us — and its template- ecosystem is enormous. For that, Notion is the right call.- </p>+ <PostFaqItem question="When would I keep Notion instead?">+ <p>+ When deep, endlessly configurable databases are the core of your+ work. If everything you do is structured records and custom views,+ nothing matches Notion's depth yet — including us — and its+ template ecosystem is enormous. For that, Notion is the right+ call.+ </p>+ </PostFaqItem>- <h3>How is Macro's editor different from Notion's?</h3>- <p>- Notion resolves edits per block, last-write-wins. Macro treats the- whole document as one CRDT-backed object, which gives you live- collaboration and offline editing without conflicts, and lets an- agent edit with a live cursor instead of handing you a diff. It- feels like you and your collaborator are on the same machine.- </p>+ <PostFaqItem question="How is Macro's editor different from Notion's?">+ <p>+ Notion resolves edits per block, last-write-wins. Macro treats the+ whole document as one CRDT-backed object, which gives you live+ collaboration and offline editing without conflicts, and lets an+ agent edit with a live cursor instead of handing you a diff. It+ feels like you and your collaborator are on the same machine.+ </p>+ </PostFaqItem>- <h3>Is Macro open source?</h3>- <p>- Yes, end to end:{' '}- <a- href="https://github.com/macro-inc/macro"- target="_blank"- rel="noreferrer"- >- github.com/macro-inc/macro- </a>- . Your data stays open and portable and the app is extensible.- Notion is closed source.- </p>+ <PostFaqItem question="Is Macro open source?">+ <p>+ Yes, end to end:{' '}+ <a+ href="https://github.com/macro-inc/macro"+ target="_blank"+ rel="noreferrer"+ >+ github.com/macro-inc/macro+ </a>+ . Your data stays open and portable and the app is extensible.+ Notion is closed source.+ </p>+ </PostFaqItem>- <h3>Can I import my Notion content?</h3>- <p>- You can move your docs and notes into Macro and run both side by- side while you switch, so there is no big-bang migration and nothing- to lose along the way.- </p>+ <PostFaqItem question="Can I import my Notion content?">+ <p>+ You can move your docs and notes into Macro and run both side by+ side while you switch, so there is no big-bang migration and+ nothing to lose along the way.+ </p>+ </PostFaqItem></div>- <p>+ <p class="post-footnote">For the editor, @mentions, collaboration and shortcuts, see the{' '}<ahref="https://docs.macro.com/product/docs"diff --git a/apps/marketing/src/routes/posts/entries/macro-vs-slack/index.tsx b/apps/marketing/src/routes/posts/entries/macro-vs-slack/index.tsxindex 6a1d8c3df8..b3e469cd7a 100644--- a/apps/marketing/src/routes/posts/entries/macro-vs-slack/index.tsx+++ b/apps/marketing/src/routes/posts/entries/macro-vs-slack/index.tsx@@ -14,6 +14,7 @@ import {ComparisonTable,SlackLogo,} from '../../PostComparison';+import { PostFaqItem } from '../../PostFaq';import type { PostMeta } from '../../registry';const SLACK_VIDEO_ID = '1gDOXUxHo0U';@@ -396,48 +397,52 @@ export default function MacroVsSlackPost() {UX, and is a more powerful bedrock for agentic development.</p>- <h2>FAQ</h2>- <div class="mvn-faq">- <h3>Should I switch from Slack to Macro?</h3>- <p>- If your stack is Slack plus email plus a tracker plus docs plus a- CRM, yes — that is five tools that do not share context. Run Macro- alongside Slack for a week, move a few active channels over, and- feel what a real inbox and a Signal/Noise split do to your day.- </p>+ <h2 class="post-faq-title">Frequently asked questions</h2>+ <div class="post-faq">+ <PostFaqItem question="Should I switch from Slack to Macro?">+ <p>+ If your stack is Slack plus email plus a tracker plus docs plus a+ CRM, yes — that is five tools that do not share context. Run Macro+ alongside Slack for a week, move a few active channels over, and+ feel what a real inbox and a Signal/Noise split do to your day.+ </p>+ </PostFaqItem>- <h3>When would I keep Slack instead?</h3>- <p>- When you depend on Slack's enormous app directory or on Slack- Connect channels with external companies. Those ecosystems took- years to build and we will not pretend Macro matches them yet; some- teams keep both during a transition.- </p>+ <PostFaqItem question="When would I keep Slack instead?">+ <p>+ When you depend on Slack's enormous app directory or on Slack+ Connect channels with external companies. Those ecosystems took+ years to build and we will not pretend Macro matches them yet;+ some teams keep both during a transition.+ </p>+ </PostFaqItem>- <h3>Does Macro have huddles or calls?</h3>- <p>- Yes — start a call in any channel or DM like a huddle, or share a- link like Google Meet. Calls run across devices with nothing to- install and are recorded, transcribed and diarized into your team's- shared memory by default.- </p>+ <PostFaqItem question="Does Macro have huddles or calls?">+ <p>+ Yes — start a call in any channel or DM like a huddle, or share a+ link like Google Meet. Calls run across devices with nothing to+ install and are recorded, transcribed and diarized into your+ team's shared memory by default.+ </p>+ </PostFaqItem>- <h3>Is Macro open source?</h3>- <p>- Yes, end to end:{' '}- <a- href="https://github.com/macro-inc/macro"- target="_blank"- rel="noreferrer"- >- github.com/macro-inc/macro- </a>- . Your data stays open and portable and the app is extensible. Slack- is closed source.- </p>+ <PostFaqItem question="Is Macro open source?">+ <p>+ Yes, end to end:{' '}+ <a+ href="https://github.com/macro-inc/macro"+ target="_blank"+ rel="noreferrer"+ >+ github.com/macro-inc/macro+ </a>+ . Your data stays open and portable and the app is extensible.+ Slack is closed source.+ </p>+ </PostFaqItem></div>- <p>+ <p class="post-footnote">For the inbox, Signal and Noise, @mentions and turning messages intotasks, see the{' '}<adiff --git a/apps/marketing/src/routes/posts/entries/macro-vs-superhuman/index.tsx b/apps/marketing/src/routes/posts/entries/macro-vs-superhuman/index.tsxindex 773e346779..d9c242b9cb 100644--- a/apps/marketing/src/routes/posts/entries/macro-vs-superhuman/index.tsx+++ b/apps/marketing/src/routes/posts/entries/macro-vs-superhuman/index.tsx@@ -16,6 +16,7 @@ import {ComparisonTable,SuperhumanLogo,} from '../../PostComparison';+import { PostFaqItem } from '../../PostFaq';import type { PostMeta } from '../../registry';const SUPERHUMAN_VIDEO_ID = 'tnsxkywzTvY';@@ -541,44 +542,49 @@ export default function MacroVsSuperhumanPost() {team half-checks, Macro is built for that instead.</p>- <h2>FAQs</h2>- <div class="mvn-faq">- <h3>Is Macro better than Superhuman?</h3>- <p>- For teams that live across email, chat, and docs, yes. Macro triages- all of it from one inbox with the same shortcuts Superhuman- popularized. For someone whose entire job is answering a single- inbox as fast as possible, Superhuman is still excellent at that one- thing.- </p>-- <h3>Is Macro cheaper than Superhuman?</h3>- <p>- Depends what you're comparing. Macro is $40/seat flat with- everything included. Superhuman's Mail only shows up on the Business- plan, $33/seat/month billed annually ($40 monthly), and that doesn't- include a native chat, docs, or task layer, those are separate- Superhuman products (Grammarly, Docs) with their own limits.- </p>-- <h3>Does Superhuman have team chat or tasks?</h3>- <p>- No. Superhuman's Shared Conversations let you loop teammates into an- email thread, but it's a parallel system, not your team's actual- chat. Macro's channels are native, and emails, docs, and tasks all- live in the same inbox.- </p>-- <h3>Why does Macro's email UI look like Superhuman's?</h3>- <p>- Because we built it that way on purpose. Macro's{' '}- <code>block-email</code> interface is modeled after Superhuman's, we- think they got that part right, and it laid a lot of the groundwork- for what "polished" looks like in email.- </p>+ <h2 class="post-faq-title">Frequently asked questions</h2>+ <div class="post-faq">+ <PostFaqItem question="Is Macro better than Superhuman?">+ <p>+ For teams that live across email, chat, and docs, yes. Macro+ triages all of it from one inbox with the same shortcuts+ Superhuman popularized. For someone whose entire job is answering+ a single inbox as fast as possible, Superhuman is still excellent+ at that one thing.+ </p>+ </PostFaqItem>++ <PostFaqItem question="Is Macro cheaper than Superhuman?">+ <p>+ Depends what you're comparing. Macro is $40/seat flat with+ everything included. Superhuman's Mail only shows up on the+ Business plan, $33/seat/month billed annually ($40 monthly), and+ that doesn't include a native chat, docs, or task layer, those are+ separate Superhuman products (Grammarly, Docs) with their own+ limits.+ </p>+ </PostFaqItem>++ <PostFaqItem question="Does Superhuman have team chat or tasks?">+ <p>+ No. Superhuman's Shared Conversations let you loop teammates into+ an email thread, but it's a parallel system, not your team's+ actual chat. Macro's channels are native, and emails, docs, and+ tasks all live in the same inbox.+ </p>+ </PostFaqItem>++ <PostFaqItem question="Why does Macro's email UI look like Superhuman's?">+ <p>+ Because we built it that way on purpose. Macro's{' '}+ <code>block-email</code> interface is modeled after Superhuman's,+ we think they got that part right, and it laid a lot of the+ groundwork for what "polished" looks like in email.+ </p>+ </PostFaqItem></div>- <p>+ <p class="post-footnote">For keyboard shortcuts, the multi-account inbox, sharing and AIdrafting, see the{' '}<adiff --git a/apps/marketing/src/routes/posts/entries/mfs-sharing/MfsSharing.css b/apps/marketing/src/routes/posts/entries/mfs-sharing/MfsSharing.cssindex f3506a9053..b27e7109c1 100644--- a/apps/marketing/src/routes/posts/entries/mfs-sharing/MfsSharing.css+++ b/apps/marketing/src/routes/posts/entries/mfs-sharing/MfsSharing.css@@ -1,6 +1,6 @@.mfs-post {color: var(--c4);- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;}.mfs-post,@@ -51,7 +51,7 @@border: 1px solid color-mix(in srgb, var(--b4) 22%, transparent);border-radius: 10px;color: var(--c3);- font-family: 'rajdhani', body, system-ui, sans-serif;+ font-family: 'Inter', body, system-ui, sans-serif;font-size: 14.5px;line-height: 1.8;margin: 26px 0;@@ -98,7 +98,7 @@.mfs-table {border-collapse: collapse;- font-family: 'rajdhani', body, system-ui, sans-serif;+ font-family: 'Inter', body, system-ui, sans-serif;font-size: 14px;width: 100%;}@@ -125,7 +125,7 @@.mfs-post code {color: var(--c1);- font-family: 'rajdhani', body, system-ui, sans-serif;+ font-family: 'Inter', body, system-ui, sans-serif;font-size: 0.95em;}diff --git a/apps/marketing/src/routes/posts/entries/why-macro-is-open-source/WhyOpenSource.css b/apps/marketing/src/routes/posts/entries/why-macro-is-open-source/WhyOpenSource.cssindex c2c4f46720..eb685e9283 100644--- a/apps/marketing/src/routes/posts/entries/why-macro-is-open-source/WhyOpenSource.css+++ b/apps/marketing/src/routes/posts/entries/why-macro-is-open-source/WhyOpenSource.css@@ -1,6 +1,6 @@.wos-post {color: var(--c4);- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;}.wos-post,@@ -23,11 +23,6 @@font-weight: 600;}-/* The essay is one long run of paragraphs, so give them a little more air */-.wos-post p {- line-height: 1.75;-}-/* Pointer to the repo the post is about */.wos-post p.wos-repo {background: color-mix(in srgb, var(--b1) 72%, var(--b0));diff --git a/apps/marketing/src/routes/posts/index.tsx b/apps/marketing/src/routes/posts/index.tsxindex 0d67940051..9dfda45c9c 100644--- a/apps/marketing/src/routes/posts/index.tsx+++ b/apps/marketing/src/routes/posts/index.tsx@@ -1,24 +1,12 @@-import { A, useSearchParams } from '@solidjs/router';-import {- createMemo,- createRenderEffect,- createSignal,- For,- Show,-} from 'solid-js';+import ArrowRightIcon from '@phosphor/arrow-right.svg';+import { A } from '@solidjs/router';+import { createRenderEffect, For, Show } from 'solid-js';import { setPageSeo } from '../../app/utils/utilSeo';-import IconSearch from '../../assets/icons/icon-search.svg';import { postGraphics } from './PostGraphics';import { PostsPageTail } from './PostsPageTail';-import {- avoidTitleOrphan,- collectAllTags,- formatTagLabel,- normalizeTag,- postHasTag,- posts,-} from './registry';+import { posts } from './registry';import './posts-shell.css';+import './posts-index.css';const MONTHS_SHORT = ['Jan',@@ -45,139 +33,59 @@ function shortDate(date: string | undefined): string | undefined {}export default function PostsIndex() {- const [searchParams] = useSearchParams<{ tag?: string }>();- const [query, setQuery] = createSignal('');-- const activeTag = createMemo(() => normalizeTag(searchParams.tag ?? ''));- const allTags = createMemo(() => collectAllTags(posts));- const visiblePosts = createMemo(() => {- const tag = activeTag();- const q = query().trim().toLowerCase();- return posts.filter((post) => {- if (tag && !postHasTag(post.meta, tag)) return false;- if (q) {- const hay =- `${post.meta.title} ${post.meta.titleLine2 ?? ''} ${post.meta.preview ?? ''} ${post.meta.description ?? ''} ${(post.meta.tags ?? []).join(' ')}`.toLowerCase();- if (!hay.includes(q)) return false;- }- return true;- });- });-- // Render effect (not createEffect) so it also runs during prerendering.createRenderEffect(() => {- const tag = activeTag();setPageSeo({- title: tag ? `Blog · ${formatTagLabel(tag)} · Macro` : 'Blog · Macro',+ title: 'Blog · Macro',description:'Writing from Macro: notes on product, engineering, management, and the software companies we learn from.',- // Tag filters are views of the same list; canonicalize to /posts.path: '/posts',});});return (<>- <main class="posts-shell posts-index-shell posts-index-shell--with-tail">+ <main class="posts-shell posts-index-shell posts-index-list"><header class="posts-index-hero"><h1>The Macro Blog</h1><p class="posts-index-sub">- Posts from our team about why we build Macro, how we dogfood, and- the engineering behind it.+ Why we build Macro, how we use it, and the engineering behind it.</p></header>- <div class="post-toolbar">- <Show when={allTags().length > 0}>- <nav aria-label="Filter by category" class="post-filter">- <A- class="post-filter-link"- classList={{ 'post-filter-link--active': !activeTag() }}- href="/posts"- >- All- </A>- <For each={allTags()}>- {(tag) => (+ <ul class="post-list" aria-label="All articles">+ <For each={posts}>+ {(post) => {+ const Graphic = postGraphics[post.meta.slug];+ const title = post.meta.titleLine2+ ? `${post.meta.title} ${post.meta.titleLine2}`+ : post.meta.title;+ const date = shortDate(post.meta.date);+ return (+ <li><A- class="post-filter-link"- classList={{- 'post-filter-link--active': activeTag() === tag,- }}- href={- activeTag() === tag- ? '/posts'- : `/posts?tag=${encodeURIComponent(tag)}`- }+ href={`/posts/${post.meta.slug}`}+ class="post-list-link"+ title={title}>- {formatTagLabel(tag)}+ <span class="post-list-icon" aria-hidden="true">+ {Graphic ? <Graphic height="24px" /> : null}+ </span>+ <h2 class="post-list-title">{title}</h2>+ <Show when={date}>+ <time class="post-list-date" dateTime={post.meta.date}>+ {date}+ </time>+ </Show>+ <ArrowRightIcon+ class="post-list-arrow"+ aria-hidden="true"+ /></A>- )}- </For>- </nav>- </Show>-- <label class="post-search">- <IconSearch class="post-search-icon" aria-hidden="true" />- <input- type="search"- placeholder="Search…"- value={query()}- onInput={(e) => setQuery(e.currentTarget.value)}- aria-label="Search posts"- />- </label>- </div>-- <Show- when={visiblePosts().length > 0}- fallback={<p class="post-empty">No posts match your search.</p>}- >- <ul class="post-grid">- <For each={visiblePosts()}>- {(post) => {- const Graphic = postGraphics[post.meta.slug];- const category =- post.meta.category ??- (post.meta.tags?.[0]- ? formatTagLabel(post.meta.tags[0])- : 'Post');- const bylineLead = post.meta.author?.name ?? category;- const date = shortDate(post.meta.date);- return (- <li class="post-card">- <A href={`/posts/${post.meta.slug}`} class="post-card-link">- <div class="post-card-graphic" aria-hidden="true">- {Graphic ? <Graphic height="64px" /> : null}- </div>- <div class="post-card-text">- <h2 class="post-card-title">- {avoidTitleOrphan(- post.meta.titleLine2- ? `${post.meta.title} ${post.meta.titleLine2}`- : post.meta.title- )}- </h2>- <Show when={post.meta.preview ?? post.meta.description}>- <p class="post-card-desc">- {post.meta.preview ?? post.meta.description}- </p>- </Show>- </div>- <div class="post-card-byline">- <span>{bylineLead}</span>- <Show when={date}>- <span class="post-card-dot">·</span>- <span>{date}</span>- </Show>- </div>- </A>- </li>- );- }}- </For>- </ul>- </Show>+ </li>+ );+ }}+ </For>+ </ul></main><PostsPageTail ctaButtonName="blog_index_cta" /></>diff --git a/apps/marketing/src/routes/posts/post-reading.css b/apps/marketing/src/routes/posts/post-reading.cssnew file mode 100644index 0000000000..a1ed6fc4eb--- /dev/null+++ b/apps/marketing/src/routes/posts/post-reading.css@@ -0,0 +1,272 @@+/* Slab headlines and monochrome artwork follow the public homepage. */+.posts-article .posts-title {+ color: var(--post-ink);+ font-family: 'Roboto Slab Variable', display, serif;+ font-size: clamp(36px, 5.4vw, 56px);+ font-weight: 315;+ letter-spacing: -0.035em;+ line-height: 1.16;+ text-wrap: balance;+}++.posts-article .posts-eyebrow a {+ align-items: center;+ color: var(--post-faint);+ display: inline-flex;+ font-size: 12px;+ gap: 8px;+}++.posts-article .posts-eyebrow svg {+ height: 14px;+ width: 14px;+}++.posts-article .posts-lede {+ color: var(--post-muted);+ font: 400 15px/28px 'Inter Variable', Inter, sans-serif;+ max-width: 440px;+}++.posts-article .posts-byline {+ font-family: 'Inter Variable', Inter, sans-serif;+ font-size: 13px;+}++.posts-article .posts-hero-art {+ background: none;+}++.posts-article .post-cover-svg {+ filter: grayscale(1);+}++/* Match the reading scale and FAQ rhythm of OnboardingTrustDetails. */+.posts-article .post-body {+ color: var(--post-muted);+ font-family: 'Inter Variable', Inter, sans-serif;+ font-size: 14px;+ font-weight: 400;+ line-height: 28px;+ max-width: 560px;+}++.posts-article .post-body > div {+ color: inherit;+ font-family: inherit;+}++.posts-article .post-body h2,+.posts-article .post-body h3 {+ color: var(--post-ink);+ font-family: 'Inter Variable', Inter, sans-serif;+ font-weight: 500;+ letter-spacing: -0.025em;+}++.posts-article .post-body h2 {+ font-size: 24px;+ line-height: 32px;+ margin: 80px 0 28px;+}++.posts-article .post-body h3 {+ font-size: 16px;+ letter-spacing: normal;+ line-height: 24px;+ margin: 48px 0 12px;+}++.posts-article .post-body h2::before,+.posts-article .post-body h3::before {+ content: none;+}++.posts-article .post-body p {+ margin-bottom: 20px;+}++.posts-article .post-body a {+ color: inherit;+ text-decoration: underline;+ text-decoration-color: var(--post-faint);+ text-underline-offset: 4px;+}++.posts-article .post-body a:hover {+ color: var(--post-ink);+}++.posts-article .post-body a:focus-visible,+.post-faq__item summary:focus-visible {+ border-radius: 2px;+ outline: 1px solid var(--post-ink);+ outline-offset: 4px;+}++.posts-article .post-section-rule {+ border: 0;+ border-top: 1px solid #292929;+ margin: 80px 0 40px;+ width: 48px;+}++.posts-article .post-section-rule + h2 {+ margin-top: 0;+}++.posts-article .post-body .mvn-testimonial blockquote {+ font-size: inherit;+ line-height: inherit;+}++.posts-article .post-body .mvn-figcaption {+ color: var(--post-faint);+ font-size: 12px;+ line-height: 24px;+ margin: 12px 0 40px;+}++.posts-article .post-body .post-faq-title {+ font-size: 16px;+ letter-spacing: normal;+ line-height: 24px;+ margin: 48px 0 12px;+}++.post-faq {+ border-top: 1px solid var(--post-rule);+ margin-bottom: 32px;+}++.post-faq__item {+ border-bottom: 1px solid var(--post-rule);+}++.post-faq__item summary {+ align-items: flex-start;+ color: var(--post-muted);+ cursor: pointer;+ display: flex;+ font-size: 14px;+ font-weight: 500;+ gap: 20px;+ justify-content: space-between;+ line-height: 24px;+ list-style: none;+ padding: 20px 0;+}++.post-faq__item summary::-webkit-details-marker {+ display: none;+}++.post-faq__item summary:hover {+ color: var(--post-ink);+}++.post-faq__item summary svg {+ color: var(--post-faint);+ flex-shrink: 0;+ height: 16px;+ margin-top: 4px;+ transition: transform 150ms ease;+ width: 16px;+}++.post-faq__item[open] summary svg {+ transform: rotate(180deg);+}++.post-faq__answer {+ padding: 0 24px 24px 0;+}++.posts-article .post-faq__answer p:last-child {+ margin-bottom: 0;+}++.posts-article .post-body .post-footnote {+ color: var(--post-faint);+ font-size: 12px;+ line-height: 24px;+}++@media (min-width: 640px) {+ .posts-article .post-body {+ font-size: 15px;+ }++ .posts-article .post-body h2 {+ font-size: 28px;+ line-height: 36px;+ }++ .posts-article .post-body .post-faq-title {+ font-size: 16px;+ line-height: 24px;+ }+}++@media (prefers-reduced-motion: reduce) {+ .post-faq__item summary svg {+ transition: none;+ }+}++/* Older entries share the same reading styles, including their lead copy. */+.posts-article .post-body [class$="-lede"] {+ color: var(--post-muted);+ font-size: inherit;+ line-height: inherit;+}++.posts-article .post-body [class$="-figcaption"] {+ color: var(--post-faint);+ font-size: 12px;+ line-height: 24px;+}++.posts-article .mvn-section-glyph {+ border-top: 1px solid #292929;+ height: 1px;+ margin: 80px 0 40px;+ width: 48px;+}++.posts-article .mvn-section-glyph svg {+ display: none;+}++.posts-article .mvn-section-glyph + h2 {+ margin-top: 0;+}++.posts-article .mvn-graphic-frame,+.posts-article .aie-shot-frame {+ background: transparent;+ border: 1px solid #292929;+ padding: 0;+}++.posts-article .mvn-graphic-frame::before {+ content: none;+}++.posts-article .mvn-graphic-inner {+ border: 0;+ border-radius: inherit;+}++.posts-article .pdg-diagram {+ font-family: 'Inter Variable', Inter, sans-serif;+}++.posts-article .mvn-authors-note-label {+ color: var(--post-faint);+ font-family: 'Inter Variable', Inter, sans-serif;+ font-size: 12px;+ font-weight: 400;+ letter-spacing: normal;+ text-transform: none;+}diff --git a/apps/marketing/src/routes/posts/posts-index.css b/apps/marketing/src/routes/posts/posts-index.cssnew file mode 100644index 0000000000..b7d1792034--- /dev/null+++ b/apps/marketing/src/routes/posts/posts-index.css@@ -0,0 +1,132 @@+.posts-index-shell.posts-index-list {+ margin-inline: auto;+ max-width: 1000px;+ padding: 144px 24px 80px;+}++.posts-index-list .posts-index-hero {+ padding-bottom: 72px;+ text-align: center;+}++.posts-index-list .posts-index-hero::after {+ content: none;+}++.posts-index-list .posts-index-hero h1 {+ color: var(--post-ink);+ font: 315 clamp(40px, 5.4vw, 68px)/1.12 'Roboto Slab Variable', display, serif;+ letter-spacing: -0.035em;+}++.posts-index-list .posts-index-sub {+ color: var(--post-muted);+ font: 400 15px/28px 'Inter Variable', Inter, sans-serif;+ margin: 24px auto 0;+ max-width: 380px;+ text-wrap: balance;+}++.post-list {+ border-top: 1px solid var(--post-rule);+ list-style: none;+ margin: 0;+ padding: 0;+}++.post-list > li {+ border-bottom: 1px solid var(--post-rule);+}++.posts-index-list a.post-list-link {+ align-items: center;+ color: var(--post-muted);+ display: flex;+ gap: 24px;+ min-height: 80px;+ padding-block: 24px;+ text-decoration: none;+}++.post-list-icon {+ align-items: center;+ display: flex;+ flex: 0 0 28px;+ justify-content: center;+}++.post-list-title {+ color: var(--post-ink);+ flex: 1;+ font: 400 17px/28px 'Inter Variable', Inter, sans-serif;+ margin: 0;+ min-width: 0;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}++.post-list-date {+ color: var(--post-faint);+ flex: none;+ font: 400 12px/24px 'Inter Variable', Inter, sans-serif;+}++.post-list-arrow {+ color: var(--post-faint);+ flex: 0 0 20px;+ height: 20px;+}++.post-list-link:hover :is(.post-list-title, .post-list-arrow) {+ color: var(--post-muted);+}++.post-list-link:focus-visible {+ border-radius: 2px;+ outline: 1px solid var(--post-ink);+ outline-offset: 4px;+}++@media (max-width: 699px) {+ .posts-index-shell.posts-index-list {+ padding: 120px 20px 56px;+ }++ .posts-index-list .posts-index-hero {+ padding-bottom: 48px;+ }++ .posts-index-list .posts-index-sub {+ font-size: 14px;+ max-width: 300px;+ }++ .posts-index-list a.post-list-link {+ gap: 14px;+ min-height: 72px;+ padding-block: 20px;+ }++ .post-list-title {+ font-size: 14px;+ line-height: 24px;+ }++ .post-list-date {+ display: none;+ }++ .post-list-icon {+ flex-basis: 24px;+ }++ .post-list-icon svg {+ max-height: 20px;+ }++ .post-list-arrow {+ flex-basis: 16px;+ height: 16px;+ }+}diff --git a/apps/marketing/src/routes/posts/posts-shell.css b/apps/marketing/src/routes/posts/posts-shell.cssindex d51a94d234..61e4f23157 100644--- a/apps/marketing/src/routes/posts/posts-shell.css+++ b/apps/marketing/src/routes/posts/posts-shell.css@@ -1,7 +1,12 @@.posts-shell {+ --post-ink: #fff;+ --post-muted: #a8a8a8;+ --post-faint: #737373;+ --post-rule: #1c1c1c;+ --a0: var(--post-muted);box-sizing: border-box;- color: var(--c2);- font-family: 'cyberreader', system-ui, sans-serif;+ color: var(--post-muted);+ font-family: 'Inter Variable', Inter, sans-serif;width: 100%;}@@ -56,7 +61,7 @@color: var(--c4);display: flex;flex-wrap: wrap;- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;font-size: 13px;font-weight: 500;gap: 8px;@@ -78,7 +83,7 @@.posts-title {color: var(--c0);- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;font-size: clamp(32px, 5vw, 48px);font-weight: 400;letter-spacing: -0.022em;@@ -133,7 +138,7 @@color: var(--c4);display: flex;flex-wrap: wrap;- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;font-size: 16px;gap: 9px;justify-content: center;@@ -161,7 +166,7 @@.posts-updated {color: var(--c4);- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;font-size: 13px;margin: 10px 0 0;text-align: center;@@ -201,7 +206,7 @@.posts-index-date,.posts-toc-title {color: var(--c4);- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;font-size: 14px;font-weight: 500;letter-spacing: 0.08em;@@ -212,7 +217,7 @@.posts-header-text time {color: var(--a0);display: block;- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;font-size: 15px;font-weight: 500;letter-spacing: 0.08em;@@ -224,7 +229,7 @@.posts-index-hero h1,.posts-shell .posts-index-title {color: var(--c0);- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;font-weight: 400;}@@ -236,7 +241,7 @@.posts-lede {color: var(--c4);- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;font-size: clamp(13px, 1.3vw, 14px);line-height: 1.45;margin: 18px auto 0;@@ -247,7 +252,7 @@.post-body {color: var(--c4);- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;font-size: 17px;line-height: 1.6;margin: 52px auto 0;@@ -266,7 +271,7 @@.post-body h2,.post-body h3 {color: var(--c0);- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;font-weight: 400;letter-spacing: -0.018em;}@@ -343,7 +348,7 @@.post-body code {color: var(--c1);- font-family: 'rajdhani', body, system-ui, sans-serif;+ font-family: 'Inter', body, system-ui, sans-serif;font-size: 0.95em;}@@ -361,7 +366,7 @@border: 1px solid var(--b4);color: var(--c4);display: inline-flex;- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;font-size: 12px;font-weight: 500;letter-spacing: 0.08em;@@ -412,7 +417,7 @@color: var(--c1);font-family: 'display', Georgia, serif;font-size: clamp(38px, 9vw, 56px);- font-weight: 420;+ font-weight: 315;letter-spacing: normal;line-height: 1.12;margin: 0;@@ -428,111 +433,6 @@max-width: 440px;}-/* Toolbar: category filters (left) + search (right) */-.post-toolbar {- align-items: center;- display: flex;- flex-wrap: wrap;- gap: 14px 24px;- justify-content: space-between;- margin-bottom: 54px;- margin-top: 40px;- padding-bottom: 46px;- position: relative;-}--/* Rule under the toolbar. */-.post-toolbar::after {- background: color-mix(in srgb, var(--b4) 22%, transparent);- bottom: 0;- content: '';- height: 1px;- left: 50%;- position: absolute;- transform: translateX(-50%);- width: 100%;-}--.post-filter {- align-items: center;- display: flex;- flex-wrap: wrap;- gap: 10px 20px;- margin: 0;- padding: 0;-}--.posts-shell a.post-filter-link {- color: var(--c4);- font-family: 'rajdhani', 'body', system-ui, sans-serif;- font-size: 15px;- font-weight: 600;- letter-spacing: 0.1em;- text-transform: uppercase;- transition: color 0.15s ease;-}--.posts-shell a.post-filter-link:hover {- color: var(--c2);-}--.posts-shell a.post-filter-link--active {- color: var(--c0);-}--/* Search pill — copied from Linear's openSearchButton */-.post-search {- align-items: center;- background: var(--b2);- border: 0;- border-radius: 100px;- margin-top: -3px;- box-shadow:- inset 0 0 0 1px rgba(255, 255, 255, 0.03),- inset 0 1px 0 0 rgba(255, 255, 255, 0.04),- 0 0 0 1px rgba(0, 0, 0, 0.6),- 0 4px 4px 0 rgba(0, 0, 0, 0.1);- color: var(--c4);- display: flex;- gap: 10px;- height: 40px;- padding: 0 16px;- transition: box-shadow 0.15s ease;- width: 260px;-}--.post-search:focus-within {- box-shadow:- inset 0 1px 0 0 rgba(255, 255, 255, 0.05),- 0 0 0 1px var(--b4),- 0 0 0 3px color-mix(in srgb, var(--c4) 18%, transparent);-}--.post-search-icon {- color: var(--c4);- flex: none;- height: 18px;- width: 18px;-}--.post-search input {- background: transparent;- border: 0;- color: var(--c1);- font-family: 'cyberreader', system-ui, sans-serif;- font-size: 14px;- outline: none;- width: 100%;-}--.post-search input::placeholder {- color: var(--c4);-}--.posts-index-shell .post-grid {- margin-top: 0;-}-/* Cover graphic: the actual "switch to Macro" SVGs (competitor → Macro) */.post-cover {align-items: center;@@ -667,7 +567,7 @@.post-empty {color: var(--c4);- font-family: 'cyberreader', system-ui, sans-serif;+ font-family: 'Inter', system-ui, sans-serif;padding: 24px 0;}@@ -725,14 +625,6 @@}}-@media (max-width: 720px) {- /* Hide the category filters + search on mobile — not needed there and the row- reads awkwardly at narrow widths. Desktop keeps the full toolbar. */- .post-toolbar {- display: none;- }-}-@media (max-width: 720px) {.posts-article {padding: 72px 20px 80px;diff --git a/apps/marketing/src/routes/posts/registry.ts b/apps/marketing/src/routes/posts/registry.tsindex 7fa94553c7..5b32fac666 100644--- a/apps/marketing/src/routes/posts/registry.ts+++ b/apps/marketing/src/routes/posts/registry.ts@@ -1,6 +1,6 @@/*** Posts live in `entries/<folder>/index.tsx` — export `postMeta` + default component.- * Optional `postMeta.tags` (lowercased); filter at `/posts?tag=name`.+ * Optional `postMeta.tags` are normalized metadata; the index shows every post.*/import type { Component } from 'solid-js';diff --git a/apps/marketing/src/ui/components/Badge.tsx b/apps/marketing/src/ui/components/Badge.tsxnew file mode 100644index 0000000000..55b52dea97--- /dev/null+++ b/apps/marketing/src/ui/components/Badge.tsx@@ -0,0 +1,87 @@+import { type ComponentProps, splitProps } from 'solid-js';+import { cn } from '../utils/classname';+import { CONTROL_SIZE_VARIANTS } from '../utils/controlSizes';+import { createVariants, type VariantProps } from '../utils/variants';+import { buttonClasses } from './Button';++/** Canonical variant classes for badges and badge-like elements. */+export const badgeVariants = createVariants(+ cn(+ 'inline-flex shrink-0 items-center justify-center whitespace-nowrap',+ 'rounded-full border border-transparent font-medium',+ '[&_svg]:pointer-events-none [&_svg]:shrink-0'+ ),+ {+ variant: {+ ghost: 'bg-transparent text-ink-muted',+ outline: 'bg-transparent text-ink-muted border-edge-muted',+ },+ size: CONTROL_SIZE_VARIANTS,+ },+ {+ variant: 'ghost',+ size: 'md',+ }+);++/** Variant props inferred from the canonical badge variant definition. */+export type BadgeVariantProps = VariantProps<typeof badgeVariants>;+export type BadgeVariant = NonNullable<BadgeVariantProps['variant']>;+export type BadgeSize = NonNullable<BadgeVariantProps['size']>;++export type BadgeClassOptions = BadgeVariantProps & {+ class?: string;+};++export type BadgeProps = ComponentProps<'span'> & BadgeVariantProps;++/** Returns the canonical classes for a badge-like element. */+export function badgeClasses(options: BadgeClassOptions = {}): string {+ const { variant, size, class: className } = options;+ return cn(badgeVariants({ variant, size }), className, 'rounded-full');+}++/** Returns Button interaction styles with Badge variants, sizes, and shape. */+export function badgeTriggerClasses(options: BadgeClassOptions = {}): string {+ const { variant = 'ghost', size = 'md', class: className } = options;+ return cn(+ buttonClasses({+ variant,+ size,+ noTouchResize: true,+ class: className,+ }),+ 'focus-visible:ring-2 focus-visible:ring-accent/20',+ 'rounded-full'+ );+}++/** A non-interactive label with Button-aligned sizing.+ *+ * @do Keep badge text to a word or two.+ * @do Use `badgeTriggerClasses` when a badge needs to behave like a button.+ * @do Use a palette color for identity (tags, calendars) and a semantic color+ * for state.+ * @dont Do not attach a click handler to `Badge` directly — it renders a+ * `span`.+ * @dont Do not use a badge where a Tooltip would carry the information better.+ */+export function Badge(props: BadgeProps) {+ const [local, others] = splitProps(props, ['variant', 'size', 'class']);+ const variant = () => local.variant ?? 'ghost';+ const size = () => local.size ?? 'md';++ return (+ <span+ data-slot="badge"+ data-variant={variant()}+ data-size={size()}+ class={badgeClasses({+ variant: variant(),+ size: size(),+ class: local.class,+ })}+ {...others}+ />+ );+}diff --git a/apps/marketing/src/ui/components/Button.tsx b/apps/marketing/src/ui/components/Button.tsxindex 10dc04bb69..eb97677a63 100644--- a/apps/marketing/src/ui/components/Button.tsx+++ b/apps/marketing/src/ui/components/Button.tsx@@ -85,6 +85,7 @@ export type ButtonProps = ButtonRootProps<'button'> &ComponentProps<'button'> & {depth?: 0 | 1 | 2 | 3 | 4;tooltipPlacement?: Placement;+ tooltipMount?: HTMLElement;/*** Stretch the button (and, when a tooltip wraps it, the tooltip's trigger* wrapper) to fill the available width. Without this the tooltip wrapper is@@ -159,6 +160,7 @@ function isIconSize(size: ButtonSize): boolean {export const Button = (props: ButtonProps) => {const [local, others] = splitProps(props, ['tooltipPlacement',+ 'tooltipMount','children','tooltip','variant',@@ -231,6 +233,7 @@ export const Button = (props: ButtonProps) => {hotkey={local.hotkey}shortcut={local.shortcut}placement={placement()}+ mount={local.tooltipMount}label={label()}disabled={local.tooltipDisabled}>diff --git a/apps/marketing/src/ui/components/Dialog.tsx b/apps/marketing/src/ui/components/Dialog.tsxindex 3fe26fe2de..d2e54a4c9b 100644--- a/apps/marketing/src/ui/components/Dialog.tsx+++ b/apps/marketing/src/ui/components/Dialog.tsx@@ -12,6 +12,7 @@ const DIALOG_HANDOFF_WINDOW_MS = 180;let openDialogCount = 0;let lastAllDialogsClosedAt = Number.NEGATIVE_INFINITY;export type DialogProps = {+ mount?: HTMLElement;onEscapeKeyDown?: (event: KeyboardEvent) => void;onCloseAutoFocus?: (event: Event) => void;onOpenAutoFocus?: (event: Event) => void;@@ -69,7 +70,7 @@ export function Dialog(props: DialogProps) {return (<KobalteDialog onOpenChange={props.onOpenChange} open={props.open} modal>- <KobalteDialog.Portal>+ <KobalteDialog.Portal mount={props.mount}><KobalteDialog.Overlayclass={cn(// Every floating dialog dims the page behind it with the accentdiff --git a/apps/marketing/src/ui/components/TabsInset.tsx b/apps/marketing/src/ui/components/TabsInset.tsxnew file mode 100644index 0000000000..2befe86008--- /dev/null+++ b/apps/marketing/src/ui/components/TabsInset.tsx@@ -0,0 +1,99 @@+// Frozen from lib/core/component/TabsInset; presentation and keyboard behavior preserved.++import {+ SegmentedControl as KSegmentedControl,+ type SegmentedControlRootProps,+} from '@kobalte/core/segmented-control';+import { For, type JSX, splitProps } from 'solid-js';+import { isTouchDevice } from '../platform';+import { cn } from '../utils/classname';+import { Layer } from './Layer';++type TabItem = {+ value: string;+ label: string | JSX.Element;+};++type TabsInsetProps = {+ list: TabItem[];+ value?: string;+ defaultValue?: string;+ class?: string;+ trackClass?: string;+ itemClass?: string;+ labelClass?: string;+ depth?: 0 | 1 | 2 | 3 | 4;+ fullWidth?: boolean;+} & Omit<SegmentedControlRootProps, 'defaultValue'>;++export const TabsInset = (props: TabsInsetProps) => {+ const [local, rootProps] = splitProps(props, [+ 'list',+ 'value',+ 'defaultValue',+ 'disabled',+ 'class',+ 'trackClass',+ 'itemClass',+ 'labelClass',+ 'depth',+ 'fullWidth',+ ]);++ // The track sits at the control's depth (matching the panel it's on); the+ // checked item is elevated two steps above it so the active pill still reads+ // as raised regardless of the panel depth.+ const trackDepth = () => local.depth ?? 0;+ const itemDepth = () => Math.min(4, trackDepth() + 2) as 0 | 1 | 2 | 3 | 4;++ return (+ <KSegmentedControl+ value={local.value}+ defaultValue={local.defaultValue ?? local.list[0]?.value}+ disabled={local.disabled}+ {...rootProps}+ class={cn(+ 'h-full flex items-center',+ local.fullWidth && 'w-full',+ local.class+ )}+ >+ <Layer depth={trackDepth()}>+ <div+ class={cn(+ 'relative flex items-center border border-edge-muted bg-surface rounded-full p-0.5 has-focus-visible:ring-2 has-focus-visible:ring-accent/20',+ local.fullWidth && 'w-full',+ local.trackClass+ )}+ >+ <For each={local.list}>+ {(item) => (+ <Layer depth={itemDepth()}>+ <KSegmentedControl.Item+ value={item.value}+ disabled={local.disabled}+ class={cn(local.fullWidth && 'flex-1', local.itemClass)}+ >+ <KSegmentedControl.ItemInput class="absolute inset-0 pointer-events-none" />+ <KSegmentedControl.ItemLabel+ class={cn(+ 'flex items-center px-3 py-1 text-xs font-medium data-checked:ring data-checked:ring-edge-muted ring-inset rounded-full text-ink-extra-muted hover:text-ink data-checked:bg-surface data-checked:text-ink data-checked:shadow-[0_1px_2px_rgba(0,0,0,0.06)]',+ local.fullWidth && 'w-full justify-center',+ local.labelClass+ )}+ onPointerDown={(e) => {+ if (isTouchDevice()) e.preventDefault();+ }}+ onClick={() => rootProps.onChange?.(item.value)}+ >+ {item.label}+ </KSegmentedControl.ItemLabel>+ </KSegmentedControl.Item>+ </Layer>+ )}+ </For>+ </div>+ </Layer>+ </KSegmentedControl>+ );+};diff --git a/apps/marketing/src/ui/components/ToggleSwitch.tsx b/apps/marketing/src/ui/components/ToggleSwitch.tsxnew file mode 100644index 0000000000..e5ce5c93e8--- /dev/null+++ b/apps/marketing/src/ui/components/ToggleSwitch.tsx@@ -0,0 +1,125 @@+import { Switch as KobalteSwitch } from '@kobalte/core/switch';+import type { JSX } from 'solid-js';+import { createSignal, onCleanup, Show, splitProps } from 'solid-js';+import { cn } from '../utils/classname';++export type ToggleSwitchProps = {+ onChange?: (checked: boolean) => void;+ defaultChecked?: boolean;+ labelClass?: string;+ label?: JSX.Element;+ disabled?: boolean;+ checked?: boolean;+ /** Visual size. `sm` (default) is the compact toolbar size; `md` is larger,+ * used in settings rows. */+ size?: 'xs' | 'sm' | 'md';+ class?: string;+ controlClass?: string;+};++const SWITCH_SIZES = {+ xs: {+ control: 'h-3.5 w-5.5',+ thumb: 'top-0.5 left-0.5 h-2.5',+ stretched: 'w-3 data-checked:translate-x-1.5',+ normal: 'w-2.5 data-checked:translate-x-2',+ },+ sm: {+ control: 'h-4 w-6',+ thumb: 'top-0.5 left-0.5 h-3',+ stretched: 'w-4 data-checked:translate-x-1',+ normal: 'w-3 data-checked:translate-x-2',+ },+ md: {+ control: 'h-5 w-9',+ thumb: 'top-0.5 left-0.5 h-4',+ stretched: 'w-5 data-checked:translate-x-3',+ normal: 'w-4 data-checked:translate-x-4',+ },+} as const;++/**+ * An on/off switch for a setting that applies immediately. If the change+ * needs a save step, use a Checkbox instead.+ *+ * @do Use a switch only when the change takes effect immediately.+ * @do Label the setting in its on-state ("Read receipts", not "Disable read+ * receipts").+ * @do Use `size="md"` in settings and `size="sm"` in toolbars.+ * @dont Do not put a switch in a form that has a Save button — use a Checkbox.+ * @dont Do not pair a switch with an on/off text label; the control already+ * says it.+ */+export const ToggleSwitch = (props: ToggleSwitchProps): JSX.Element => {+ const [local, others] = splitProps(props, [+ 'defaultChecked',+ 'labelClass',+ 'onChange',+ 'disabled',+ 'checked',+ 'class',+ 'controlClass',+ 'label',+ 'size',+ ]);+ const sizing = () => SWITCH_SIZES[local.size ?? 'sm'];+ const [isStretched, setIsStretched] = createSignal(false);+ let stretchTimeout: ReturnType<typeof setTimeout> | undefined;++ const triggerStretch = () => {+ setIsStretched(true);+ if (stretchTimeout) clearTimeout(stretchTimeout);+ stretchTimeout = setTimeout(() => setIsStretched(false), 75);+ };++ const handleChange = (checked: boolean) => {+ triggerStretch();+ local.onChange?.(checked);+ };++ // Kobalte's switch root is an inert div — only the control and the label+ // toggle. Forward clicks that land on the root itself (its padding/gap) to+ // the hidden input so the whole component is one hit target.+ const handleRootClick = (event: MouseEvent) => {+ if (event.target !== event.currentTarget) return;+ (event.currentTarget as HTMLElement).querySelector('input')?.click();+ };++ onCleanup(() => {+ if (stretchTimeout) clearTimeout(stretchTimeout);+ });++ return (+ <KobalteSwitch+ class={cn('inline-flex items-center gap-2', local.class)}+ defaultChecked={local.defaultChecked}+ onChange={handleChange}+ disabled={local.disabled}+ checked={local.checked}+ onClick={handleRootClick}+ {...others}+ >+ <KobalteSwitch.Input class="sr-only" />+ <KobalteSwitch.Control+ class={cn(+ 'relative rounded-full bg-ink-muted/40 transition-colors duration-100 data-checked:bg-accent',+ sizing().control,+ local.controlClass+ )}+ >+ <KobalteSwitch.Thumb+ class={cn(+ 'absolute rounded-full bg-surface transition-all duration-100 ease-in-out',+ sizing().thumb,+ isStretched() ? sizing().stretched : sizing().normal+ )}+ />+ </KobalteSwitch.Control>+ <Show when={local.label != null}>+ <KobalteSwitch.Label class={cn(local.labelClass)}>+ {local.label}+ </KobalteSwitch.Label>+ </Show>+ </KobalteSwitch>+ );+};diff --git a/apps/marketing/src/ui/components/Tooltip.tsx b/apps/marketing/src/ui/components/Tooltip.tsxindex 2e52400251..b3a7a97837 100644--- a/apps/marketing/src/ui/components/Tooltip.tsx+++ b/apps/marketing/src/ui/components/Tooltip.tsx@@ -10,6 +10,7 @@ export function Tooltip(placement?: Placement;as?: 'div' | 'span';class?: string;+ mount?: HTMLElement;hotkey?: string | string[];shortcut?: string | string[];}>@@ -28,14 +29,21 @@ export function Tooltip(>{props.children}</KTooltip.Trigger>- <KTooltip.Portal>+ <KTooltip.Portal mount={props.mount}><KTooltip.Content class="z-tool-tip"><Surfacedepth={3}hideBorder- class="flex items-center justify-center rounded-lg bg-tooltip p-2 text-xs text-ink-muted wrap-break-word"+ class="flex items-center justify-center gap-2 rounded-lg bg-tooltip p-2 text-xs text-ink-muted wrap-break-word">{props.label}+ <Show when={props.shortcut}>+ <kbd class="text-ink-extra-muted font-sans">+ {Array.isArray(props.shortcut)+ ? props.shortcut.join(' ')+ : props.shortcut}+ </kbd>+ </Show></Surface></KTooltip.Content></KTooltip.Portal>