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): add /tour landing page for Instagram ads (#7334)
juliaweste2c40c0c1eaa
diff --git a/apps/marketing/README.md b/apps/marketing/README.mdindex 887cdc10a5..84cdfaa5c4 100644--- a/apps/marketing/README.md+++ b/apps/marketing/README.md@@ -166,6 +166,21 @@ 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.+## Paid-social landing page++`/tour` (`features/marketing/views/SalesPage.tsx`) is the Instagram ad landing+page. It is prerendered, `noindex`, out of the sitemap, and not linked from the+navigation. It has four parts, top to bottom: the homepage hero markup+(`WelcomeStep` with `ContextScene`), the expanded `FeatureConstellation`, a+savings calculator, and an inline cal.com booker for the Macro demo call.++`core/sales-savings.ts` reduces the pricing calculator to one plan tier for all+tools and reads prices from `core/savings-calculator.ts`; update prices there,+not on the page. "Book a demo" buttons scroll to the booker, which loads+`embed.js` only as the visitor approaches it and appends Meta attribution to+the booking. Verify at phone width: no horizontal scroll, calculator steppers+and toggles, and that the booker loads.+## Blog presentation`/posts` lists every article as one icon-and-title row. There are no category ordiff --git a/apps/marketing/scripts/prerender.ts b/apps/marketing/scripts/prerender.tsindex b5c74db8c4..548b4f99e0 100644--- a/apps/marketing/scripts/prerender.ts+++ b/apps/marketing/scripts/prerender.ts@@ -69,6 +69,7 @@ const STATIC_ROUTES = ['/agents','/github','/pricing',+ '/tour','/partners','/partners/terms','/migrate',@@ -94,6 +95,7 @@ const ROUTE_MODULES: Array<[RegExp, string]> = [[/^\/agents$/, 'src/app/routes/RouteAgents.tsx'],[/^\/github$/, 'src/app/routes/RouteGithub.tsx'],[/^\/pricing$/, 'src/app/routes/RoutePricing.tsx'],+ [/^\/tour$/, 'src/features/marketing/views/SalesPage.tsx'],[/^\/partners$/, 'src/app/routes/RoutePartners.tsx'],[/^\/partners\/terms$/, 'src/app/routes/RoutePartnerTerms.tsx'],[/^\/migrate$/, 'src/app/routes/RouteMigrate.tsx'],@@ -146,6 +148,7 @@ const ROUTE_LABELS: Record<string, string> = {'/agents': 'Agents','/github': 'GitHub','/pricing': 'Pricing',+ '/tour': 'Macro tour','/partners': 'Partner Program','/partners/terms': 'Partner Program Terms','/migrate': 'Switch your startup to Macro',diff --git a/apps/marketing/src/app/main/App.tsx b/apps/marketing/src/app/main/App.tsxindex 5b8bfb87e2..816dabbc8d 100644--- a/apps/marketing/src/app/main/App.tsx+++ b/apps/marketing/src/app/main/App.tsx@@ -114,6 +114,11 @@ const RoutePricing = lazy(() =>default: module.RoutePricing,})));+const RouteTour = lazy(() =>+ import('../../features/marketing/views/SalesPage').then((module) => ({+ default: module.RouteTour,+ }))+);const RoutePartners = lazy(() =>import('../routes/RoutePartners').then((module) => ({default: module.RoutePartners,@@ -267,6 +272,8 @@ export const App: Component<{<Route path="/agents" component={RouteAgents} /><Route path="/github" component={RouteGithub} /><Route path="/pricing" component={RoutePricing} />+ {/* Paid-social landing page: noindex and kept out of the nav. */}+ <Route path="/tour" component={RouteTour} />{/* Partner program: the landing page and its full program terms. */}<Route path="/partners" component={RoutePartners} /><Route path="/partners/terms" component={RoutePartnerTerms} />diff --git a/apps/marketing/src/features/marketing/components/pricing/SavingsCalculator.tsx b/apps/marketing/src/features/marketing/components/pricing/SavingsCalculator.tsxindex b96a3df112..19d05b48b1 100644--- a/apps/marketing/src/features/marketing/components/pricing/SavingsCalculator.tsx+++ b/apps/marketing/src/features/marketing/components/pricing/SavingsCalculator.tsx@@ -26,7 +26,7 @@ import {} from '../../core/savings-calculator';import './savings-calculator.css';-const toolIcons: Record<+export const toolIcons: Record<SavingsToolId,(props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element> = {diff --git a/apps/marketing/src/features/marketing/components/sales/DemoBookingEmbed.tsx b/apps/marketing/src/features/marketing/components/sales/DemoBookingEmbed.tsxnew file mode 100644index 0000000000..637fea4999--- /dev/null+++ b/apps/marketing/src/features/marketing/components/sales/DemoBookingEmbed.tsx@@ -0,0 +1,113 @@+import { onCleanup, onMount } from 'solid-js';+import { buildCalSlugWithAttribution } from '../../../../app/utils/utilAnalytic';+import { DEMO_BOOKING_URL } from '../../../../app/utils/utilCta';++type CalApi = ((...args: unknown[]) => void) & {+ loaded?: boolean;+ ns?: Record<string, (...args: unknown[]) => void>;+ q?: unknown[];+};++const NAMESPACE = 'macro-demo';+const CAL_SCRIPT = 'https://app.cal.com/embed/embed.js';+// The homepage's white primary button.+const BRAND = '#fafafa';++const calThemeVars = {+ 'cal-bg': '#0c0c0c',+ 'cal-bg-emphasis': '#1a1a1a',+ 'cal-bg-subtle': '#141414',+ 'cal-bg-muted': '#141414',+ 'cal-bg-inverted': '#f5f5f5',+ 'cal-border': '#ffffff1a',+ 'cal-border-default': '#ffffff1a',+ 'cal-border-emphasis': '#ffffff40',+ 'cal-border-subtle': '#ffffff14',+ 'cal-border-booker': '#ffffff1a',+ 'cal-border-booker-width': '1px',+ 'cal-brand': BRAND,+ 'cal-brand-emphasis': '#ffffff',+ 'cal-brand-text': '#000',+ 'cal-text': '#d4d4d4',+ 'cal-text-emphasis': '#fff',+ 'cal-text-muted': '#8a8a8a',+ 'cal-text-subtle': '#a3a3a3',+} as const;++/** cal.com's documented loader: queues calls until embed.js arrives. */+function loadCal(): CalApi {+ const w = window as unknown as { Cal?: CalApi };+ if (w.Cal) return w.Cal;+ const push = (target: { q?: unknown[] }, args: unknown) => {+ target.q = target.q || [];+ target.q.push(args);+ };+ const cal: CalApi = (...args: unknown[]) => {+ if (!cal.loaded) {+ cal.ns = {};+ cal.q = cal.q || [];+ document.head.appendChild(document.createElement('script')).src =+ CAL_SCRIPT;+ cal.loaded = true;+ }+ if (args[0] === 'init') {+ const api: CalApi = (...apiArgs: unknown[]) => push(api, apiArgs);+ const namespace = args[1];+ if (typeof namespace === 'string') {+ cal.ns![namespace] = cal.ns![namespace] || api;+ push(cal.ns![namespace] as CalApi, args);+ push(cal, ['initNamespace', namespace]);+ } else {+ push(cal, args);+ }+ return;+ }+ push(cal, args);+ };+ w.Cal = cal;+ return cal;+}++/**+ * Inline cal.com booker for the Macro demo call. Loads embed.js only once the+ * visitor nears it, so the ad landing page's first paint stays light.+ */+export function DemoBookingEmbed(props: { id: string }) {+ let host!: HTMLDivElement;+ onMount(() => {+ const start = () => {+ const cal = loadCal();+ cal('init', NAMESPACE, { origin: 'https://app.cal.com' });+ const api = cal.ns?.[NAMESPACE];+ api?.('inline', {+ elementOrSelector: `#${props.id}`,+ config: {+ layout: 'month_view',+ theme: 'dark',+ useSlotsViewOnSmallScreen: 'true',+ },+ calLink: buildCalSlugWithAttribution(+ new URL(DEMO_BOOKING_URL).pathname.slice(1)+ ),+ });+ api?.('ui', {+ theme: 'dark',+ layout: 'month_view',+ hideEventTypeDetails: false,+ styles: { branding: { brandColor: BRAND } },+ cssVarsPerTheme: { light: calThemeVars, dark: calThemeVars },+ });+ };+ const observer = new IntersectionObserver(+ (entries) => {+ if (!entries.some((entry) => entry.isIntersecting)) return;+ observer.disconnect();+ start();+ },+ { rootMargin: '1200px 0px' }+ );+ observer.observe(host);+ onCleanup(() => observer.disconnect());+ });+ return <div ref={host} id={props.id} class="sales-booking-embed" />;+}diff --git a/apps/marketing/src/features/marketing/components/sales/SalesCalculator.tsx b/apps/marketing/src/features/marketing/components/sales/SalesCalculator.tsxnew file mode 100644index 0000000000..d52ac83597--- /dev/null+++ b/apps/marketing/src/features/marketing/components/sales/SalesCalculator.tsx@@ -0,0 +1,173 @@+import CheckIcon from '@phosphor/check.svg';+import MinusIcon from '@phosphor/minus.svg';+import PlusIcon from '@phosphor/plus.svg';+import { createSignal, For, Show } from 'solid-js';+import {+ formatWholeUsd,+ SALES_DEFAULT_SEATS,+ SALES_DEFAULT_TIER,+ SALES_HEADLINE_TOOLS,+ type SalesTier,+ salesSavings,+ tierMonthlyCents,+ tierPlan,+} from '../../core/sales-savings';+import {+ MAX_SEATS,+ PRICES_CHECKED,+ parseSeats,+ SAVINGS_TOOLS,+ type SavingsToolId,+} from '../../core/savings-calculator';+import { toolIcons } from '../pricing/SavingsCalculator';+import './sales-calculator.css';++const TIERS: readonly { id: SalesTier; label: string }[] = [+ { id: 'starter', label: 'Cheapest plans' },+ { id: 'business', label: 'Business plans' },+];++/** Thumb-sized version of the pricing calculator for the ad landing page. */+export function SalesCalculator(props: { onBook: () => void }) {+ const [seats, setSeats] = createSignal(SALES_DEFAULT_SEATS);+ const [tier, setTier] = createSignal<SalesTier>(SALES_DEFAULT_TIER);+ const [selected, setSelected] =+ createSignal<readonly SavingsToolId[]>(SALES_HEADLINE_TOOLS);+ const result = () => salesSavings(selected(), seats(), tier());+ const isSelected = (id: SavingsToolId) => selected().includes(id);+ const toggle = (id: SavingsToolId) =>+ setSelected((ids) =>+ ids.includes(id) ? ids.filter((item) => item !== id) : [...ids, id]+ );+ const stepSeats = (delta: number) =>+ setSeats((count) => parseSeats(String(count + delta)) ?? count);++ return (+ <div class="sales-calc">+ <div class="sales-calc-controls glass">+ <div class="sales-calc-row">+ <span id="sales-calc-seats-label" class="sales-calc-label">+ People on your team+ </span>+ <div class="sales-calc-stepper">+ <button+ type="button"+ aria-label="Remove a person"+ 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="sales-calc-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 person"+ disabled={seats() >= MAX_SEATS}+ onClick={() => stepSeats(1)}+ >+ <PlusIcon aria-hidden="true" />+ </button>+ </div>+ </div>+ <div+ class="sales-calc-tiers"+ role="group"+ aria-label="Plan you pay for"+ >+ <For each={TIERS}>+ {(option) => (+ <button+ type="button"+ aria-pressed={tier() === option.id}+ onClick={() => setTier(option.id)}+ >+ {option.label}+ </button>+ )}+ </For>+ </div>+ <p class="sales-calc-label">Tap everything you pay for</p>+ <ul class="sales-calc-tools" aria-label="Tools you pay for">+ <For each={SAVINGS_TOOLS}>+ {(tool) => {+ const Icon = toolIcons[tool.id];+ return (+ <li>+ <button+ type="button"+ aria-pressed={isSelected(tool.id)}+ aria-label={`${tool.name} ${tierPlan(tool, tier()).name}`}+ onClick={() => toggle(tool.id)}+ >+ <span class="sales-calc-check" aria-hidden="true">+ <CheckIcon />+ </span>+ <Icon class="sales-calc-icon" aria-hidden="true" />+ <span class="sales-calc-name">{tool.name}</span>+ <span class="sales-calc-price">+ {formatWholeUsd(tierMonthlyCents(tool, tier()))}+ </span>+ </button>+ </li>+ );+ }}+ </For>+ </ul>+ </div>+ <div class="sales-calc-result glass" aria-live="polite">+ <div class="sales-calc-lines">+ <p>+ <span>What you pay now</span>+ <s>{formatWholeUsd(result().toolsCents)}/yr</s>+ </p>+ <p>+ <span>Macro</span>+ <strong>{formatWholeUsd(result().macroCents)}/yr</strong>+ </p>+ </div>+ <Show+ when={result().savedCents > 0}+ fallback={+ <p class="sales-calc-even">+ Macro replaces all of it for{' '}+ {formatWholeUsd(result().macroCents / seats() / 12)} a person per+ month.+ </p>+ }+ >+ <p class="sales-calc-saved">+ <span>You save</span>+ <strong>{formatWholeUsd(result().savedCents)}</strong>+ <span>every year</span>+ </p>+ </Show>+ <button+ type="button"+ class="site-nav-start homepage-hero-cta"+ onClick={() => props.onBook()}+ >+ Book a demo+ </button>+ </div>+ <p class="sales-calc-note">+ Monthly per-seat prices, billed yearly, from each tool’s pricing page in{' '}+ {PRICES_CHECKED}. Macro is $40 a seat per month for your first 5 seats,+ then $80.+ </p>+ </div>+ );+}diff --git a/apps/marketing/src/features/marketing/components/sales/sales-calculator.css b/apps/marketing/src/features/marketing/components/sales/sales-calculator.cssnew file mode 100644index 0000000000..0ba391c5d6--- /dev/null+++ b/apps/marketing/src/features/marketing/components/sales/sales-calculator.css@@ -0,0 +1,48 @@+/* Homepage palette: ink on black, hairline edges, glass panels, slab numerals. */+.sales-calc { display: grid; gap: 16px; width: 100%; font-family: 'Inter Variable', Inter, sans-serif; }+.sales-calc-controls, .sales-calc-result { border-radius: 24px; background: var(--color-panel); }+.sales-calc-controls { display: grid; gap: 18px; padding: 20px 16px; }+.sales-calc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }+.sales-calc-label { color: var(--color-ink-muted); font-size: 14px; line-height: 1.5; }+.sales-calc-stepper { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--color-edge-muted); border-radius: 999px; }+.sales-calc-stepper button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--color-ink-muted); }+.sales-calc-stepper button:disabled { opacity: .3; }+.sales-calc-stepper svg { width: 16px; height: 16px; }+.sales-calc-stepper input { width: 52px; border: 0; background: none; color: var(--color-ink); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: center; appearance: textfield; -moz-appearance: textfield; }+.sales-calc-stepper input::-webkit-inner-spin-button, .sales-calc-stepper input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }+.sales-calc-tiers { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--color-edge-muted); border-radius: 999px; }+.sales-calc-tiers button { min-height: 40px; border: 0; border-radius: 999px; background: none; color: var(--color-ink-muted); font-size: 14px; font-weight: 500; }+.sales-calc-tiers button[aria-pressed=true] { background: var(--color-active); color: var(--color-ink); }+.sales-calc-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }+.sales-calc-tools button { display: grid; grid-template-columns: 18px 20px minmax(0, 1fr); align-items: center; gap: 2px 8px; width: 100%; min-height: 60px; padding: 10px 12px; border: 1px solid var(--color-edge-muted); border-radius: 16px; background: none; color: var(--color-ink); text-align: left; transition: border-color 150ms, background 150ms; }+.sales-calc-tools button[aria-pressed=true] { border-color: color-mix(in srgb, var(--color-ink) 24%, transparent); background: var(--color-hover); }+.sales-calc-tools button[aria-pressed=false] :is(.sales-calc-icon, .sales-calc-name, .sales-calc-price) { opacity: .45; }+.sales-calc-check { grid-area: 1 / 1; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--color-edge); border-radius: 5px; color: transparent; }+.sales-calc-check svg { width: 12px; height: 12px; }+.sales-calc-tools button[aria-pressed=true] .sales-calc-check { border-color: var(--color-ink); background: var(--color-ink); color: #000; }+.sales-calc-icon { grid-area: 1 / 2; width: 20px; height: 20px; }+.sales-calc-name { grid-area: 1 / 3; overflow: hidden; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }+.sales-calc-price { grid-area: 2 / 3; color: var(--color-ink-muted); font-size: 12px; font-variant-numeric: tabular-nums; }+.sales-calc-price::after { content: '/seat/mo'; }+.sales-calc-result { display: grid; gap: 20px; padding: 24px 20px; }+.sales-calc-lines { display: grid; gap: 10px; }+.sales-calc-lines p { display: flex; justify-content: space-between; gap: 12px; color: var(--color-ink-muted); font-size: 14px; font-variant-numeric: tabular-nums; }+.sales-calc-lines s { text-decoration-color: color-mix(in srgb, var(--color-ink) 50%, transparent); }+.sales-calc-lines strong { color: var(--color-ink); font-weight: 500; }+.sales-calc-saved { display: grid; justify-items: center; gap: 4px; padding-top: 20px; border-top: 1px solid var(--color-edge-muted); color: var(--color-ink-muted); font-size: 14px; text-align: center; }+.sales-calc-saved strong { color: var(--color-ink); font: 315 clamp(48px, 14vw, 64px)/1.1 'Roboto Slab Variable', display, serif; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }+.sales-calc-even { padding-top: 20px; border-top: 1px solid var(--color-edge-muted); color: var(--color-ink-muted); font-size: 15px; line-height: 1.6; text-align: center; text-wrap: balance; }+.sales-calc-result .homepage-hero-cta { width: 100%; color: #000; }+/* Beats `.feature-page p { margin: 0 }` without !important. */+.sales-calc .sales-calc-note { max-width: 520px; margin: 8px auto 0; color: var(--color-ink-placeholder); font-size: 12px; line-height: 1.7; text-align: center; text-wrap: balance; }+@media (min-width: 760px) {+ .sales-calc { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 20px; }+ .sales-calc-controls { padding: 24px; }+ .sales-calc-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }+ .sales-calc-result { padding: 28px; }+ .sales-calc-note { grid-column: 1 / -1; }+}+@media (hover: hover) {+ .sales-calc-tools button:hover { border-color: var(--color-edge); }+ .sales-calc-tiers button:hover, .sales-calc-stepper button:hover:not(:disabled) { color: var(--color-ink); }+}diff --git a/apps/marketing/src/features/marketing/core/sales-savings.test.ts b/apps/marketing/src/features/marketing/core/sales-savings.test.tsnew file mode 100644index 0000000000..4c251aabc7--- /dev/null+++ b/apps/marketing/src/features/marketing/core/sales-savings.test.ts@@ -0,0 +1,45 @@+import { describe, expect, it } from 'vitest';+import {+ formatWholeUsd,+ SALES_HEADLINE_TOOLS,+ salesSavings,+ salesTool,+ tierMonthlyCents,+} from './sales-savings';++describe('sales savings', () => {+ it('prices the headline stack on business plans', () => {+ const perSeat = SALES_HEADLINE_TOOLS.reduce(+ (total, id) => total + tierMonthlyCents(salesTool(id), 'business'),+ 0+ );+ // Notion $20 + Linear $16 + Superhuman $33 + Slack Business+ $15.+ expect(perSeat).toBe(8400);+ });++ it('compares a five-seat team with Macro', () => {+ expect(salesSavings(SALES_HEADLINE_TOOLS, 5, 'business')).toEqual({+ toolsCents: 504_000,+ macroCents: 240_000,+ savedCents: 264_000,+ });+ });++ it('uses entry plans on the starter tier', () => {+ // Notion $10 + Linear $10 + Superhuman $25 + Slack Pro $7.25.+ expect(salesSavings(SALES_HEADLINE_TOOLS, 1, 'starter').toolsCents).toBe(+ 62_700+ );+ });++ it('never reports negative savings', () => {+ const result = salesSavings(['notion'], 3, 'starter');+ expect(result.toolsCents).toBeLessThan(result.macroCents);+ expect(result.savedCents).toBe(0);+ });++ it('formats whole dollars', () => {+ expect(formatWholeUsd(264_000)).toBe('$2,640');+ expect(formatWholeUsd(62_750)).toBe('$628');+ });+});diff --git a/apps/marketing/src/features/marketing/core/sales-savings.ts b/apps/marketing/src/features/marketing/core/sales-savings.tsnew file mode 100644index 0000000000..b17a3867a4--- /dev/null+++ b/apps/marketing/src/features/marketing/core/sales-savings.ts@@ -0,0 +1,77 @@+import {+ annualPlanPrice,+ macroAnnualCost,+ SAVINGS_TOOLS,+ type SavingsTool,+ type SavingsToolId,+} from './savings-calculator';++/**+ * The `/tour` ad landing page simplifies the pricing calculator: one plan tier+ * for every tool instead of a plan per tool. Prices come from+ * `savings-calculator.ts`, so both pages quote the same numbers.+ */+export type SalesTier = 'starter' | 'business';++/** The tools the page leads with; the rest of the calculator's tools start off. */+export const SALES_HEADLINE_TOOLS: readonly SavingsToolId[] = [+ 'notion',+ 'linear',+ 'superhuman',+ 'slack',+];++export const SALES_DEFAULT_SEATS = 5;+export const SALES_DEFAULT_TIER: SalesTier = 'business';++export function salesTool(id: SavingsToolId): SavingsTool {+ const tool = SAVINGS_TOOLS.find((item) => item.id === id);+ if (!tool) throw new Error(`Unknown savings tool: ${id}`);+ return tool;+}++/** Each tool lists its entry plan first and its business plan second. */+export function tierPlan(tool: SavingsTool, tier: SalesTier) {+ return tool.plans[tier === 'starter' ? 0 : 1];+}++/** Per-seat monthly price, in cents, of a tool on the chosen tier. */+export function tierMonthlyCents(tool: SavingsTool, tier: SalesTier): number {+ return tierPlan(tool, tier).monthlyCents;+}++export type SalesSavings = {+ /** Yearly cost of the selected tools for the whole team. */+ toolsCents: number;+ /** Yearly cost of Macro's paid plan for the whole team. */+ macroCents: number;+ /** Yearly difference; zero when Macro costs the same or more. */+ savedCents: number;+};++export function salesSavings(+ selected: readonly SavingsToolId[],+ seats: number,+ tier: SalesTier+): SalesSavings {+ const perSeatCents = selected.reduce((total, id) => {+ const tool = salesTool(id);+ return total + annualPlanPrice(tool, tierPlan(tool, tier).id);+ }, 0);+ const toolsCents = perSeatCents * seats;+ const macroCents = macroAnnualCost(seats);+ return {+ toolsCents,+ macroCents,+ savedCents: Math.max(0, toolsCents - macroCents),+ };+}++/** `$2,640`: the page rounds totals to whole dollars. */+export function formatWholeUsd(cents: number): string {+ return Math.round(cents / 100).toLocaleString('en-US', {+ style: 'currency',+ currency: 'USD',+ maximumFractionDigits: 0,+ });+}diff --git a/apps/marketing/src/features/marketing/views/SalesPage.tsx b/apps/marketing/src/features/marketing/views/SalesPage.tsxnew file mode 100644index 0000000000..a410fc14bc--- /dev/null+++ b/apps/marketing/src/features/marketing/views/SalesPage.tsx@@ -0,0 +1,152 @@+import { handleDemoClick } from '../../../app/utils/utilCta';+import { setPageSeo } from '../../../app/utils/utilSeo';+import { FeatureConstellation } from '../../setup/components/FeatureOverview';+import { WelcomeStep } from '../../setup/components/WelcomeSteps';+import { FeaturePage } from '../components/FeaturePage';+import { DemoBookingEmbed } from '../components/sales/DemoBookingEmbed';+import { SalesCalculator } from '../components/sales/SalesCalculator';+import { formatWholeUsd } from '../core/sales-savings';+import { MACRO_SEAT_CENTS } from '../core/savings-calculator';+import '../components/homepage-scroll-cue.css';+import '../components/homepage-unification.css';+import '../components/workspace-story.css';+import './sales-page.css';++/** `OnboardingShell`'s palette, which the homepage hero is drawn in. */+const SHELL_PALETTE = {+ '--color-surface': '#000',+ '--color-ink': '#fff',+ '--color-ink-muted': '#a8a8a8',+ '--color-ink-extra-muted': '#737373',+ '--color-edge': '#292929',+ '--color-edge-muted': '#1c1c1c',+ '--color-accent': 'var(--color-ink)',+};++/** Section heading in the "Replace 27+ apps" format from `HomepageUnification`. */+function TourHeading(props: {+ id: string;+ title: string;+ description: string;+}) {+ return (+ <div class="unification-copy tour-heading" style={SHELL_PALETTE}>+ <h2 id={props.id}>{props.title}</h2>+ <p class="unification-subtext">{props.description}</p>+ </div>+ );+}++/** Every demo CTA scrolls to the inline booker instead of leaving the page. */+function bookDemo(buttonName: string) {+ handleDemoClick(buttonName);+ document+ .getElementById('book')+ ?.scrollIntoView({ behavior: 'smooth', block: 'start' });+}++export function RouteTour() {+ setPageSeo({+ title: 'Macro — Email, Docs, Tasks, and Agents in One App',+ description:+ 'Replace Notion, Linear, and Superhuman with one workspace for email, chat, documents, tasks, CRM, and agents. Book a demo.',+ path: '/tour',+ noindex: true,+ });++ return (+ <FeaturePage>+ <div class="homepage-sections tour-page">+ <div class="homepage-sections-inner">+ {/* The homepage hero inside `OnboardingShell`'s palette and card. */}+ <div class="tour-hero" style={SHELL_PALETTE}>+ <div class="w-full sm:max-w-xl md:max-w-[720px]">+ <WelcomeStep+ onContinue={() => {}}+ title={+ <>+ Replace Notion, Linear,+ <br />+ and Superhuman.+ </>+ }+ description={`Email, chat, documents, tasks, CRM, and agents in one workspace, from ${formatWholeUsd(MACRO_SEAT_CENTS)} a seat.`}+ action={+ <div class="homepage-hero-action mt-6 flex justify-center pb-5">+ <a+ class="site-nav-start homepage-hero-cta tour-cta"+ href="#book"+ onClick={(event) => {+ event.preventDefault();+ bookDemo('tour_hero_book_demo');+ }}+ >+ Book a demo+ </a>+ </div>+ }+ />+ </div>+ </div>++ {/* The homepage's `HomepageUnification` section, without its+ hero-to-section scroll animation. */}+ <section+ class="homepage-unification tour-constellation"+ aria-labelledby="unification-heading"+ style={SHELL_PALETTE}+ >+ <FeatureConstellation expanded />+ <div class="unification-copy">+ <h2 id="unification-heading">+ Replace 27+ apps+ <br />+ with a single system.+ </h2>+ <p class="unification-subtext">+ <span class="unification-subtext-desktop">+ From email and docs to booking links, databases, and coding+ agents.+ <br />+ 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 search. Linked work. Agents that can edit it.+ </span>+ </p>+ </div>+ </section>++ <section+ id="savings"+ class="homepage-feature tour-section"+ aria-labelledby="savings-title"+ >+ <TourHeading+ id="savings-title"+ title="One subscription instead of many."+ description="Choose your team size and the tools you pay for today. Every Macro plan includes every module."+ />+ <SalesCalculator+ onBook={() => bookDemo('tour_calculator_book_demo')}+ />+ </section>++ <section+ id="book"+ class="homepage-feature tour-section tour-booking"+ aria-labelledby="book-title"+ >+ <TourHeading+ id="book-title"+ title="See Macro with your team’s work."+ description="A 30-minute call with our CEO or a member of our team. Pick a time below."+ />+ <DemoBookingEmbed id="tour-booking" />+ </section>+ </div>+ </div>+ </FeaturePage>+ );+}diff --git a/apps/marketing/src/features/marketing/views/sales-page.css b/apps/marketing/src/features/marketing/views/sales-page.cssnew file mode 100644index 0000000000..86d2529e71--- /dev/null+++ b/apps/marketing/src/features/marketing/views/sales-page.css@@ -0,0 +1,28 @@+/* /tour: Instagram ad landing page built from homepage parts. Only spacing the+ homepage lacks outside its own shell, and the booker frame, live here. */+.tour-page :is(h1, h2, h3) { margin: 0; }+/* The homepage hero and constellation sit in OnboardingShell, which uses the+ site's system font stack; .homepage-sections and .feature-page would+ otherwise give them slab and Inter. */+.tour-hero, .tour-constellation .feature-flow, .tour-page .unification-subtext { font-family: -apple-system, BlinkMacSystemFont, "Inter Variable", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }+.feature-page .tour-cta { color: #000; }+/* `.feature-page p` also cancels the hero subtitle's `mx-auto` centering. */+.feature-page .tour-hero p[data-welcome-copy] { margin-inline: auto; }+/* `.feature-page p` resets margins; restore homepage-unification.css spacing. */+.feature-page .tour-page .unification-subtext { margin: 24px 0 0; }+@media (min-width: 768px) { .feature-page .tour-page .unification-subtext { margin-top: clamp(20px, 3svh, 30px); } }+/* Later sections reuse the unification heading; it sits above content instead+ of below the constellation. */+.unification-copy.tour-heading { margin: 0 auto 48px; }+/* OnboardingShell's hero frame: a centered card in the first viewport. */+.tour-hero { display: flex; align-items: center; justify-content: center; min-height: 100svh; padding: 96px 0 40px; }+/* OnboardingShell's tile entrance, which also centers each logo on its point. */+@keyframes tour-orbit-in { from { opacity: 0; transform: translate(-50%, -40%) scale(.8); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }+.tour-hero .ob-orbit-tile { animation: tour-orbit-in 900ms cubic-bezier(.22,1,.36,1) both; }+@media (prefers-reduced-motion: reduce) { .tour-hero .ob-orbit-tile { animation-duration: .01ms; } }+/* Linear sits on the inner ring on the homepage; out here it stops competing+ with the Macro mark. Overrides ContextScene's inline position. */+.tour-hero [data-constellation-tool=Linear] { left: 88% !important; top: 95% !important; width: calc(44px * var(--welcome-scale, 1)) !important; height: calc(44px * var(--welcome-scale, 1)) !important; }+.tour-section { scroll-margin-top: 80px; }+.tour-booking { display: flex; flex-direction: column; align-items: center; padding-bottom: 0; }+.sales-booking-embed { width: 100%; max-width: 760px; min-height: 560px; overflow: hidden; border-radius: 24px; background: var(--color-panel); }diff --git a/apps/marketing/src/features/setup/components/WelcomeSteps.tsx b/apps/marketing/src/features/setup/components/WelcomeSteps.tsxindex 11be62b1f4..0f74c25de4 100644--- a/apps/marketing/src/features/setup/components/WelcomeSteps.tsx+++ b/apps/marketing/src/features/setup/components/WelcomeSteps.tsx@@ -126,6 +126,9 @@ export function ContextScene(props: { unified?: boolean } = {}) {export function WelcomeStep(props: {onContinue: () => void;action?: JSX.Element;+ /** Landing pages that reuse the homepage hero supply their own copy. */+ title?: JSX.Element;+ description?: JSX.Element;}) {return (<div class="ob-welcome relative isolate flex flex-col items-center gap-7 overflow-x-clip [overflow-clip-margin:200px] text-center md:[--welcome-scale:1.25] md:gap-[35px] md:[overflow-clip-margin:250px]">@@ -136,22 +139,30 @@ 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]">- The unified workspace- <br />- <span class="inline-block" data-welcome-company>- for your company.- </span>+ {props.title ?? (+ <>+ The unified workspace+ <br />+ <span class="inline-block" data-welcome-company>+ for your company.+ </span>+ </>+ )}</h1><pdata-welcome-copyclass="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)]">- <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>+ {props.description ?? (+ <>+ <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