Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
chore: remove narrating homepage comments
Richie McIlroya87c7c8b8abd
diff --git a/apps/web/app/(site)/Navbar.tsx b/apps/web/app/(site)/Navbar.tsxindex 4be8a0f9a..5b4b38704 100644--- a/apps/web/app/(site)/Navbar.tsx+++ b/apps/web/app/(site)/Navbar.tsx@@ -9,11 +9,6 @@ interface NavbarProps {stars?: string;}-/**- * Flat, full-bleed header: logo and links on the left, a text link plus an- * outlined and a filled action on the right. It sits flush at the top of the- * viewport so page content passes underneath it rather than around a pill.- */export const Navbar = ({ stars }: NavbarProps) => {return (<NavbarFrame>diff --git a/apps/web/components/pages/HomeTwo/Eyebrow.tsx b/apps/web/components/pages/HomeTwo/Eyebrow.tsxindex 1db56a17e..8d66078c1 100644--- a/apps/web/components/pages/HomeTwo/Eyebrow.tsx+++ b/apps/web/components/pages/HomeTwo/Eyebrow.tsx@@ -2,11 +2,6 @@ import { classNames } from "@cap/utils/helpers";import type { ReactNode } from "react";import { EYEBROW, INK } from "./theme";-/**- * 12px uppercase mono eyebrow with a small accent square, the way Intercom- * marks its sections. `color` covers the dark band; `accent` picks up the- * section's mode hue.- */export const Eyebrow = ({children,accent = "#8DBCF0",diff --git a/apps/web/components/pages/HomeTwo/Faq.tsx b/apps/web/components/pages/HomeTwo/Faq.tsxindex 0e802b8d8..9e49716a3 100644--- a/apps/web/components/pages/HomeTwo/Faq.tsx+++ b/apps/web/components/pages/HomeTwo/Faq.tsx@@ -2,11 +2,6 @@ import { homepageCopy } from "@/data/homepage-copy";import { Eyebrow } from "./Eyebrow";import { BODY_TEXT, H_SECTION, MODE_THEME } from "./theme";-/**- * The homepage FAQ, same questions and answers, rebuilt as hairline rows with- * a plus that turns into a minus. Plain `details` elements, so it opens with- * no JavaScript and stays keyboard native.- */export const Faq = () => (<section className="px-5 py-20 lg:py-28"><div className="mx-auto grid max-w-[1100px] gap-12 lg:grid-cols-[minmax(0,340px)_minmax(0,1fr)] lg:gap-20">diff --git a/apps/web/components/pages/HomeTwo/Features.tsx b/apps/web/components/pages/HomeTwo/Features.tsxindex f83da626f..e9aa410b8 100644--- a/apps/web/components/pages/HomeTwo/Features.tsx+++ b/apps/web/components/pages/HomeTwo/Features.tsx@@ -22,12 +22,6 @@ import {type ModeKey,} from "./theme";-/**- * The homepage's "built for how you actually work" grid, in the new type and- * colour system. Same eight promises, one accent per card so the row reads in- * the four mode hues rather than one flat block.- */-type Feature = {title: string;body: string;diff --git a/apps/web/components/pages/HomeTwo/Hero.tsx b/apps/web/components/pages/HomeTwo/Hero.tsxindex 2bd1fa1e7..ca4928592 100644--- a/apps/web/components/pages/HomeTwo/Hero.tsx+++ b/apps/web/components/pages/HomeTwo/Hero.tsx@@ -81,7 +81,6 @@ const WindowsGlyph = ({ className }: { className?: string }) => (</svg>);-/** Small muted link to /download for the platforms not shown on the button. */const AltIcon = ({label,children,@@ -101,8 +100,7 @@ const AltIcon = ({export const Hero = () => {const { platform, isIntel } = useDetectPlatform();- // Default the display to macOS while detection resolves (same pattern as- // the live homepage Header): majority platform, identical button size.+const displayPlatform = platform ?? "macos";const isWindows = displayPlatform === "windows";const isLinux = displayPlatform === "linux";@@ -112,10 +110,6 @@ export const Hero = () => {: getDownloadUrl(displayPlatform, isIntel);return (- // On desktop the hero takes the fold minus the laptop's peek and centres- // itself in it, so the space above and below the block stays even instead- // of piling up under the buttons. Capped, because on a tall monitor a- // viewport-tall hero just reads as a hole.<section className="relative px-5 pb-12 pt-12 sm:pt-14 md:pb-4 md:pt-[56px]"><spandata-header-sentinel@@ -162,8 +156,7 @@ export const Hero = () => {)}Download free for {platformName}</Link>- {/* Scrolls to the demo AND starts the tour, so the click has an- unmistakable payoff instead of landing on an idle laptop. */}+<buttontype="button"onClick={() => {diff --git a/apps/web/components/pages/HomeTwo/HeroHeadline.tsx b/apps/web/components/pages/HomeTwo/HeroHeadline.tsxindex b9aa16177..db75bb43b 100644--- a/apps/web/components/pages/HomeTwo/HeroHeadline.tsx+++ b/apps/web/components/pages/HomeTwo/HeroHeadline.tsx@@ -10,31 +10,11 @@ import {import { MacCursor, WindowsCursor } from "./cursors";import { H_HERO, INK, MODE_THEME, type ModeKey } from "./theme";-/**- * The hero headline is a three-slot machine: capture verb, middle beat,- * payoff. The slots keep their rhythm while the words are revised, so one- * sentence re-reads as a different mode.- *- * Record. Edit. Share. (at rest)- * Record. Stop. Instant Share. (Instant)- * Record. Edit. Export. (Studio)- * Screenshot. Beautify. Paste. (Screenshot)- *- * Nothing moves on its own: the mode bar sits above the line from the first- * paint with a cursor leaning in beside it, and you click a mode to watch- * the line get revised. The revision is staged like an edit on paper: a rule- * strikes through the word in the incoming mode's colour, the struck word- * lifts away, and the replacement rises into the gap while the slot width- * glides so the line re-centres. Words that survive the change are never- * struck, so you see exactly what the mode changes, which is why Studio only- * crosses out the last word.- */-type SlideKey = ModeKey | "all";type Slide = {key: SlideKey;- /** [capture, middle, payoff] */+words: [string, string, string];};@@ -45,12 +25,11 @@ const SLIDES: Slide[] = [{ key: "screenshot", words: ["Screenshot.", "Beautify.", "Paste."] },];-/** The cursor's one line: it invites the click, then retires once you take it. */const NUDGE = "Click me \u{1F440}";const NUDGE_TOUCH = "Tap me \u{1F440}";const TOUCH_QUERY = "(max-width: 767px)";const TYPE_MS = 26;-/** The cursor leans in first, then starts talking. */+const NUDGE_AT = 520;const TYPE_AT = NUDGE_AT + 260;@@ -73,25 +52,20 @@ const PILL_ICON = {screenshot: ScreenshotIcon,} as const;-/* --------------------------------------------------------------- timing -- */--/** Per-slot head start, so the revision runs left to right down the line. */const SLOT_DELAY = [0, 120, 240];-/** Rule sweeps across the word. */+const STRIKE_MS = 260;-/** Beat where the struck word just sits there, crossed out. */+const HOLD_MS = 110;-/** Struck word (and its rule) lift away. */+const LIFT_MS = 260;-/** Replacement rises in, overlapping the lift so the two read as one move. */+const RISE_MS = 520;const LIFT_AT = STRIKE_MS + HOLD_MS;const RISE_AT = LIFT_AT + 150;const WIDTH_AT = LIFT_AT + 60;-/* ------------------------------------------------------------------ slot -- */-type Departing = { text: string; color: string; id: number };type Swap = { text: string; gen: number; from: Departing | null };@@ -104,9 +78,9 @@ const Slot = ({animate,}: {text: string;- /** Ink for most slots, the mode's colour for the payoff. */+color: string;- /** Colour of the cross-out rule: the incoming mode's. */+strike: string;delay: number;animate: boolean;@@ -121,15 +95,14 @@ const Slot = ({gen: 0,from: null,}));- // Holds the colour the slot was painted in for the word now leaving.+const paintedColor = useRef(color);if (swap.text !== text) {setSwap({text,gen: swap.gen + 1,- // A word that survives the mode change is never struck out: it just- // stays put while its neighbours are revised around it.+from: animate? { text: swap.text, color: paintedColor.current, id: swap.gen + 1 }: null,@@ -183,7 +156,6 @@ const Slot = ({transitionDelay: `${delay + WIDTH_AT}ms`,}}>- {/* Sets the slot's height and its natural (target) width. */}<span ref={ghostRef} className="ht-slot-ghost" aria-hidden="true">{text}</span>@@ -220,8 +192,6 @@ const Slot = ({);};-/* -------------------------------------------------------------- headline -- */-export const HeroHeadline = () => {const { platform } = useDetectPlatform();const [index, setIndex] = useState(0);@@ -231,8 +201,6 @@ export const HeroHeadline = () => {const [asked, setAsked] = useState(true);const [reduced, setReduced] = useState(false);- // Match the download button: assume macOS while detection resolves, so the- // arrow never swaps shape under the reader.const Arrow = platform === "windows" ? WindowsCursor : MacCursor;useEffect(() => {@@ -243,8 +211,6 @@ export const HeroHeadline = () => {return () => query.removeEventListener("change", sync);}, []);- // The cursor leans in, then types its line. Reduced motion gets both at- // once, already finished.useEffect(() => {const text = window.matchMedia(TOUCH_QUERY).matches ? NUDGE_TOUCH : NUDGE;setNudgeText(text);@@ -275,11 +241,9 @@ export const HeroHeadline = () => {const theme = slide.key === "all" ? null : MODE_THEME[slide.key];const accent = theme ? theme.glyph : INK;- // Clicking the mode you're already on puts the plain line back, so you can- // always see what Cap changed.const pick = (target: number) => {setIndex((current) => (current === target ? 0 : target));- // The cursor and its bubble have done their job the moment you click.+setAsked(false);};@@ -318,9 +282,6 @@ export const HeroHeadline = () => {})}</div>- {/* Nothing cycles on its own, so the cursor is what says the line is- yours to change. It retires as soon as you take it up on the- offer. */}<spanaria-hidden="true"className={`ht-nudge ${nudge && asked ? "is-on" : ""}`}@@ -392,8 +353,7 @@ const CSS = `}.ht-layer > span { position: relative; display: inline-block; }-/* The cross-out rule, drawn through the x-height and running a hair past- the word at both ends the way a pen would. */+.ht-strike {position: absolute;left: -0.04em;@@ -417,7 +377,7 @@ const CSS = `.ht-out { animation: ht-out ${LIFT_MS}ms cubic-bezier(0.4, 0, 0.75, 0.2) both; }.ht-in { animation: ht-in ${RISE_MS}ms cubic-bezier(0.18, 0.9, 0.22, 1) both; }-/* Caret for the nudge as it types itself out. */+.ht-caret {display: inline-block;width: 1.5px;@@ -429,8 +389,7 @@ const CSS = `}@keyframes ht-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }-/* The cursor leaning in beside the mode bar. Hidden on phones, where there- is no room beside a wrapped bar and no cursor to speak of on touch. */+.ht-nudge {display: block;position: absolute;@@ -449,8 +408,7 @@ const CSS = `opacity: 1;transform: translate3d(0, 0, 0) scale(1);}-/* Bubble and cursor sit side by side, the tail on the bubble's right edge- reaching across the gap to the arrow. */+.ht-nudge-float {display: flex;align-items: flex-start;@@ -471,10 +429,7 @@ const CSS = `height: auto;filter: drop-shadow(0 2px 5px rgba(17, 17, 17, 0.28));}-/* An iMessage bubble sitting to the left of the cursor with its tail aimed- back at it. The mode bar and the page behind it are all white, so the chip- needs its own colour to land, and it stays a size under the mode toggles- (13px) so it reads as an aside rather than a fourth control. */+.ht-nudge-chip {position: relative;display: block;diff --git a/apps/web/components/pages/HomeTwo/LoomBridge.tsx b/apps/web/components/pages/HomeTwo/LoomBridge.tsxindex a977c4a85..2d36f4cb0 100644--- a/apps/web/components/pages/HomeTwo/LoomBridge.tsx+++ b/apps/web/components/pages/HomeTwo/LoomBridge.tsx@@ -11,11 +11,6 @@ import {MODE_THEME,} from "./theme";-/**- * The Loom-switcher bridge. The comparison cluster is the best-converting- * message on the site, so it earns a dedicated moment on the homepage:- * one-click library import plus the standing MIGRATE20 offer.- */export const LoomBridge = () => (<section className="px-5 pb-4 pt-2"><divdiff --git a/apps/web/components/pages/HomeTwo/ModeWalkthrough.tsx b/apps/web/components/pages/HomeTwo/ModeWalkthrough.tsxindex 98589a32e..91f5274ab 100644--- a/apps/web/components/pages/HomeTwo/ModeWalkthrough.tsx+++ b/apps/web/components/pages/HomeTwo/ModeWalkthrough.tsx@@ -50,10 +50,6 @@ type Step = {Icon: ComponentType<{ className?: string }>;};-/**- * Static cards for the stacked fallback (mobile, and anyone who prefers- * reduced motion). The pinned experience is the DesktopDemo.- */const STEPS: Step[] = [{key: "instant",@@ -161,8 +157,6 @@ const StackedSteps = ({ className }: { className?: string }) => (</div>);-/* -------------------------------------------------------------------------- */-export const ModeWalkthrough = () => {// `false` on the server and on the first client render, so the markup the// server produced (CSS-driven responsive split) hydrates identically.diff --git a/apps/web/components/pages/HomeTwo/Pricing.tsx b/apps/web/components/pages/HomeTwo/Pricing.tsxindex d07399931..71f01200e 100644--- a/apps/web/components/pages/HomeTwo/Pricing.tsx+++ b/apps/web/components/pages/HomeTwo/Pricing.tsx@@ -20,15 +20,8 @@ import {type ModeTheme,} from "./theme";-/**- * The homepage's two plans in the new system. Prices come from the shared- * pricing copy so the page can never drift from /pricing; the checkout itself- * still lives there, so both actions link out rather than mounting Stripe.- */-const { commercial, pro, subtitle, lovedBy } = homepageCopy.pricing;-/** Sentence case and plain punctuation, the house voice on this page. */const BLURB = {commercial:"A commercial licence for the Cap desktop app, with unlimited local recording and editing.",diff --git a/apps/web/components/pages/HomeTwo/Testimonials.tsx b/apps/web/components/pages/HomeTwo/Testimonials.tsxindex 96429f02f..2cf5e091a 100644--- a/apps/web/components/pages/HomeTwo/Testimonials.tsx+++ b/apps/web/components/pages/HomeTwo/Testimonials.tsx@@ -5,13 +5,6 @@ import { testimonials } from "@/data/testimonials";import { Eyebrow } from "./Eyebrow";import { BODY_TEXT, BTN_SECONDARY, H_SECTION, MODE_THEME } from "./theme";-/**- * The homepage's wall of quotes, straightened out: real cards in a masonry- * column instead of a rotated scatter, so the type stays on the same grid as- * the rest of the page. Steven Tey is deliberately absent, he leads the- * ownership section above.- */-const PICKS = ["Olivia","CJ",diff --git a/apps/web/components/pages/HomeTwo/Workflow.tsx b/apps/web/components/pages/HomeTwo/Workflow.tsxindex 8549d228a..716f92275 100644--- a/apps/web/components/pages/HomeTwo/Workflow.tsx+++ b/apps/web/components/pages/HomeTwo/Workflow.tsx@@ -20,12 +20,6 @@ import {type ModeTheme,} from "./theme";-/**- * The modes, explained side by side. What happens after you press record- * depends entirely on which mode you picked, so each card walks its own- * capture-to-shared path instead of pretending there is one workflow.- */-type Mode = {key: ModeKey;name: string;diff --git a/apps/web/components/pages/HomeTwo/cursors.tsx b/apps/web/components/pages/HomeTwo/cursors.tsxindex d13b1c2e0..6772f3594 100644--- a/apps/web/components/pages/HomeTwo/cursors.tsx+++ b/apps/web/components/pages/HomeTwo/cursors.tsx@@ -38,7 +38,6 @@ export const WindowsCursor = ({ className }: CursorProps) => (</svg>);-/** Aspect ratio of each pointer, so a caller can size by width alone. */export const CURSOR_RATIO = { macos: 17 / 24, windows: 18 / 25 } as const;export const PlatformCursor = ({diff --git a/apps/web/components/pages/HomeTwo/demo/CapEditorWindow.tsx b/apps/web/components/pages/HomeTwo/demo/CapEditorWindow.tsxindex 8047d0e05..51f231fd5 100644--- a/apps/web/components/pages/HomeTwo/demo/CapEditorWindow.tsx+++ b/apps/web/components/pages/HomeTwo/demo/CapEditorWindow.tsx@@ -37,12 +37,6 @@ import { TrafficLights, WindowsCaptionControls } from "./chrome";import { useVideoAttrs, VIDEO_POSTERS } from "./media";import { useIsWindowsDemo } from "./platform";-/**- * Shell replica of the Cap desktop editor (light theme, 1275×800 native- * layout scaled to fit). Layout, colours and copy mirror- * apps/desktop/src/routes/editor/*.- */-const C = {gray1: "#fcfcfc",gray2: "#f9f9f9",@@ -145,7 +139,6 @@ const SliderRow = ({ fill, anchor }: { fill: number; anchor?: string }) => (</div>);-/** Little sidebar tab. */const Tab = ({icon,selected,@@ -176,7 +169,6 @@ const Tab = ({</span>);-/** Deterministic mic waveform for the clip segment. */const WAVE_HEIGHTS = Array.from({ length: 90 }, (_, i) => {const a = Math.sin(i * 0.55) * 0.5 + 0.5;const b = Math.sin(i * 1.7 + 2) * 0.5 + 0.5;@@ -185,7 +177,6 @@ const WAVE_HEIGHTS = Array.from({ length: 90 }, (_, i) => {export type EditorUi = {visible: boolean;- /** Which wallpaper swatch is active (the visitor clicks them). */bgIndex: number;playing: boolean;padding?: number;@@ -252,11 +243,8 @@ export const CapEditorWindow = ({}}><div className="flex h-full w-full flex-col">- {/* ------------------------------------------------- header (56px) */}<div className="flex h-14 shrink-0 items-center"><div className="flex items-center gap-2 px-4">- {/* macOS overlay traffic lights; on Windows the caption- controls sit at the far right of the header instead. */}{isWindows ? null : <TrafficLights className="mr-3" />}<EditorButton><CapTrash className="size-5" />@@ -333,14 +321,11 @@ export const CapEditorWindow = ({</div></div>- {/* --------------------------------------------------- content row */}<div className="flex min-h-0 flex-1 px-2">- {/* Player card */}<divclassName="flex min-w-0 flex-1 flex-col overflow-hidden rounded-xl border"style={{ borderColor: C.gray3, background: C.gray1 }}>- {/* player toolbar */}<div className="flex items-center justify-between p-3"><div className="flex items-center gap-3"><EditorButton className="w-28">@@ -388,7 +373,6 @@ export const CapEditorWindow = ({</div></div>- {/* canvas */}<div className="relative min-h-0 flex-1 px-4 pb-2"><divclassName="relative mx-auto h-full overflow-hidden"@@ -447,7 +431,6 @@ export const CapEditorWindow = ({</div></div>- {/* transport bar */}<div className="relative flex items-center p-5"><div className="flex flex-1 items-center"><span@@ -518,7 +501,6 @@ export const CapEditorWindow = ({</div></div>- {/* resize handle strip */}<divclassName="flex h-4 flex-col items-center justify-center gap-0.5 border-t"style={{@@ -537,7 +519,6 @@ export const CapEditorWindow = ({</div></div>- {/* Config sidebar */}<divclassName="ml-2 flex w-[416px] shrink-0 flex-col overflow-hidden rounded-xl border"style={{ borderColor: C.gray3, background: C.gray1 }}@@ -655,13 +636,11 @@ export const CapEditorWindow = ({</div></div>- {/* ------------------------------------------------------ timeline */}<divdata-demo-anchor="editor-timeline"className="relative shrink-0 px-4 pt-8"style={{ height: 236 }}>- {/* minimap */}<divclassName="absolute left-32 right-4 top-3 h-3 rounded-full"style={{ background: "rgba(217,217,217,0.35)" }}@@ -676,7 +655,6 @@ export const CapEditorWindow = ({</div><div className="flex gap-2">- {/* gutter */}<div className="flex w-[104px] shrink-0 flex-col justify-end pb-1"><spanclassName="flex h-8 w-full items-center justify-center gap-1.5 rounded-lg text-[0.6875rem] font-medium text-white"@@ -691,7 +669,6 @@ export const CapEditorWindow = ({<LucideChevronDown className="size-2.5 text-white/70" /></span></div>- {/* ruler */}<divclassName="relative h-8 flex-1 text-xs"style={{ color: C.gray9 }}@@ -709,7 +686,6 @@ export const CapEditorWindow = ({</div></div>- {/* video track */}<div className="mt-2 flex gap-2"><divclassName="flex h-[52px] w-[104px] shrink-0 flex-col items-center justify-center gap-1 rounded-xl text-white"@@ -738,7 +714,6 @@ export const CapEditorWindow = ({<span className="ml-1 rounded bg-white/15 px-1">1x</span></span></div>- {/* mic waveform */}<div className="absolute inset-x-0 bottom-0 flex h-3 items-end gap-px px-1">{WAVE_HEIGHTS.map((h, i) => (<span@@ -756,7 +731,6 @@ export const CapEditorWindow = ({</div></div>- {/* zoom track */}<div className="mt-2 flex gap-2"><divclassName="flex h-[52px] w-[104px] shrink-0 flex-col items-center justify-center gap-1 rounded-xl text-white"@@ -807,7 +781,6 @@ export const CapEditorWindow = ({</div></div>- {/* playhead */}<divref={playheadRef}className="pointer-events-none absolute bottom-2 top-6 will-change-transform"diff --git a/apps/web/components/pages/HomeTwo/demo/CapRecorderWindow.tsx b/apps/web/components/pages/HomeTwo/demo/CapRecorderWindow.tsxindex 6810acaad..22655f11b 100644--- a/apps/web/components/pages/HomeTwo/demo/CapRecorderWindow.tsx+++ b/apps/web/components/pages/HomeTwo/demo/CapRecorderWindow.tsx@@ -27,28 +27,15 @@ import {import { TrafficLights, WindowsCaptionControls } from "./chrome";import { useIsWindowsDemo } from "./platform";-/**- * Pixel replica of the Cap desktop recorder window (compact 330×395 layout,- * light theme) — markup and values mirror- * apps/desktop/src/routes/(window-chrome)/new-main/index.tsx and friends.- * In the interactive demo the controls are real buttons: the mode pills,- * Display tile, and camera row report clicks up to the orchestrator, and- * hover states (including the mode hovercards) come from the visitor's own- * pointer.- */-export type RecorderMode = "instant" | "studio";export type RecorderUi = {visible: boolean;mode: RecorderMode;- /** Display target selected (blue state on the Display tile). */displaySelected: boolean;- /** Camera row populated + On pill. */cameraOn: boolean;};-/* Desktop palette (Radix light values used by the app). */const C = {gray1: "#fcfcfc",gray2: "#f9f9f9",@@ -287,7 +274,6 @@ export const CapRecorderWindow = ({boxShadow: "0 28px 80px rgba(0,0,0,0.26), 0 4px 18px rgba(0,0,0,0.1)",}}>- {/* Titlebar */}<divclassName="flex h-9 w-full shrink-0 items-center border-b"style={{@@ -295,8 +281,6 @@ export const CapRecorderWindow = ({borderColor: "rgba(0,0,0,0.08)",}}>- {/* macOS: close + zoom only, the way the recorder ships. Windows- puts its caption controls at the far end instead. */}{isWindows ? null : (<TrafficLightssize={14}@@ -333,9 +317,7 @@ export const CapRecorderWindow = ({{isWindows ? <WindowsCaptionControls className="h-9" /> : null}</div>- {/* Body */}<div className="flex min-h-0 flex-1 flex-col gap-2 px-[13px] pb-[8px]">- {/* Logo row + mode selector */}<div className="mb-[6px] mt-[16px] flex items-center justify-between"><div className="flex items-center space-x-1"><CapLogoFull className="h-auto w-[92px]" />@@ -399,7 +381,6 @@ export const CapRecorderWindow = ({/></ModeButton>- {/* Mode hovercard (bottom-end, gutter 12) */}<divclassName={classNames("pointer-events-none absolute right-0 top-[calc(100%+12px)] z-20 transition-[opacity,transform] duration-150",@@ -439,7 +420,6 @@ export const CapRecorderWindow = ({</div></div>- {/* Capture targets */}<div className="flex w-full flex-col gap-2 text-xs"><div className="flex w-full flex-row items-stretch gap-2"><TargetTile@@ -471,7 +451,6 @@ export const CapRecorderWindow = ({</div></div>- {/* Device rows */}<div className="space-y-2"><DeviceRowicon={<CapCamera className="size-4" />}diff --git a/apps/web/components/pages/HomeTwo/demo/CapShareWindow.tsx b/apps/web/components/pages/HomeTwo/demo/CapShareWindow.tsxindex 2d40ca7a5..5d17c2425 100644--- a/apps/web/components/pages/HomeTwo/demo/CapShareWindow.tsx+++ b/apps/web/components/pages/HomeTwo/demo/CapShareWindow.tsx@@ -8,11 +8,6 @@ import { TrafficLights, WindowsCaptionControls } from "./chrome";import { useVideoAttrs, VIDEO_POSTERS } from "./media";import { useIsWindowsDemo } from "./platform";-/**- * A browser window showing the Cap share page an instant recording produces —- * the payoff shot for Instant Mode: paste the link, viewers watch and comment- * in the browser. The reaction pills are live so the visitor can leave one.- */export const CapShareWindow = ({visible,width,@@ -57,7 +52,6 @@ export const CapShareWindow = ({boxShadow: "0 28px 80px rgba(0,0,0,0.28), 0 4px 18px rgba(0,0,0,0.1)",}}>- {/* browser chrome */}<divclassName="flex h-11 shrink-0 items-center gap-3 border-b px-3.5"style={{ background: "#f6f7f9", borderColor: "rgba(0,0,0,0.07)" }}@@ -129,7 +123,6 @@ export const CapShareWindow = ({)}</div>- {/* share page */}<div className="flex min-h-0 flex-1 flex-col"><div className="flex items-center gap-2.5 px-5 pb-3 pt-4"><CapLogoMark className="size-7" />@@ -150,7 +143,6 @@ export const CapShareWindow = ({</span></div>- {/* player */}<div className="relative mx-5 overflow-hidden rounded-xl bg-black"><videoref={videoRef}@@ -161,7 +153,6 @@ export const CapShareWindow = ({playsInline{...screenVideo}/>- {/* player controls */}<divclassName="absolute inset-x-0 bottom-0 flex items-center gap-3 px-4 pb-2.5 pt-8 text-white"style={{@@ -179,7 +170,6 @@ export const CapShareWindow = ({</div></div>- {/* reactions + comment */}<div className="flex min-h-0 flex-1 flex-col gap-3 px-5 py-4"><divdata-demo-anchor="share-reactions"diff --git a/apps/web/components/pages/HomeTwo/demo/CapSurfaces.tsx b/apps/web/components/pages/HomeTwo/demo/CapSurfaces.tsxindex 907fac617..85576b285 100644--- a/apps/web/components/pages/HomeTwo/demo/CapSurfaces.tsx+++ b/apps/web/components/pages/HomeTwo/demo/CapSurfaces.tsx@@ -24,19 +24,6 @@ import {import { useVideoAttrs, VIDEO_POSTERS } from "./media";import { OS_FONT, useIsWindowsDemo } from "./platform";-/**- * The Cap surfaces that float on the desktop while recording: the in-progress- * toolbar (320×150 host window, 296×40 visible bar), the circular camera- * preview window, the target-select overlay panels, and the macOS- * notification Cap fires when an instant link lands on the clipboard.- * All values mirror in-progress-recording.tsx / camera.tsx /- * target-select-overlay.tsx in apps/desktop. In the interactive demo the- * controls are live: stop/pause/restart work, and the notification opens the- * share page.- */--/* ------------------------------------------------------ recording toolbar -- */-const ToolButton = ({label,onClick,@@ -93,7 +80,6 @@ export const RecordingToolbar = ({}}><div className="flex flex-1 flex-row justify-between p-1">- {/* Stop button with timer */}<buttontype="button"data-demo-anchor="toolbar-stop"@@ -111,7 +97,6 @@ export const RecordingToolbar = ({</span></button>- {/* Icon cluster */}<divdata-demo-anchor="toolbar-tools"className="flex items-center gap-1"@@ -153,7 +138,6 @@ export const RecordingToolbar = ({</div></div>- {/* Drag handle */}<divclassName="flex items-center border-l p-1"style={{ borderColor: "#e0e0e0" }}@@ -164,8 +148,6 @@ export const RecordingToolbar = ({</div>);-/* --------------------------------------------------- camera preview window -- */-export const CameraWindow = ({visible,videoRef,@@ -207,8 +189,6 @@ export const CameraWindow = ({);};-/* --------------------------------------------------- target select overlay -- */-const GLASS: React.CSSProperties = {background: "rgba(252,252,252,0.82)",border: "1px solid rgba(32,32,32,0.1)",@@ -373,8 +353,6 @@ export const TargetOverlayPanel = ({);};-/* -------------------------------------------------------- link notification -- */-export const LinkNotification = ({visible,onOpen,diff --git a/apps/web/components/pages/HomeTwo/demo/DesktopDemo.tsx b/apps/web/components/pages/HomeTwo/demo/DesktopDemo.tsxindex ea40bdebb..afbe89cf5 100644--- a/apps/web/components/pages/HomeTwo/demo/DesktopDemo.tsx+++ b/apps/web/components/pages/HomeTwo/demo/DesktopDemo.tsx@@ -47,28 +47,8 @@ const MemoizedEditorWindow = memo(CapEditorWindow);const MemoizedShareWindow = memo(CapShareWindow);const MemoizedContentWindow = memo(ContentWindow);-/**- * The interactive "see how it works" demo: a macOS desktop inside a laptop- * mockup, with the real Cap windows recreated 1:1 — and this time the- * visitor drives. Every control in the story is a live button: pick Instant- * mode, choose the display, start and stop a real (fake) recording, open the- * link notification, flip to Studio, turn the camera on, restyle the editor- * background, hit Export. A guide bubble explains each step, a pulsing- * beacon + spotlight mark the next click, and "i" hotspots open short- * explainers on the parts worth poking at. Off-script clicks that would- * break the story get a friendly nudge; harmless ones (camera toggle,- * pausing the recording, any wallpaper, reactions) just work.- */--/* ------------------------------------------------------------ stage layout -- */-const STAGE_W = 1360;-/**- * The laptop is one fixed logical canvas, uniformly scaled to fit. The- * screen is 1360×850; windows live in a 1360×794 layer under the 28px- * menu bar so the POS coordinates below stay screen-relative.- */const LAPTOP = {w: 1470,h: 920,@@ -101,7 +81,6 @@ const POS = {*/const WIN_NOTIFICATION_TOP = LAPTOP.screenH - 28 - 48 - 16 - 112;-/** Idle "attract" state: the recorder sits centred, like the app just opened. */const IDLE_RECORDER = { left: (STAGE_W - 330) / 2, top: 185 };const clamp = (v: number, lo: number, hi: number) =>@@ -112,8 +91,6 @@ const formatClock = (totalSeconds: number) => {return `${Math.floor(s / 60)}:${String(s % 60).padStart(2, "0")}`;};-/* ------------------------------------------------------------------- state -- */-type Stage =| "recorder"| "overlay"@@ -123,7 +100,6 @@ type Stage =| "done";type DemoState = {- /** Current tour step; TOTAL_STEPS means the demo is finished. */step: number;stage: Stage;mode: RecorderMode;@@ -135,7 +111,7 @@ type DemoState = {bgIndex: number;paused: boolean;editorPlaying: boolean;- /** Story history, so free play can never strand the tour. */+r1Started: boolean;r1Stopped: boolean;shareSeen: boolean;@@ -143,7 +119,7 @@ type DemoState = {r2Stopped: boolean;swatched: boolean;interacted: boolean;- /** Bumped when a click lands somewhere the story can't go yet. */+nudge: number;};@@ -168,7 +144,6 @@ type Action =const TOTAL_STEPS = 13;-/** Per-step "you're done" checks; free play can satisfy several at once. */const STEP_DONE: ((s: DemoState) => boolean)[] = [(s) => s.mode === "instant",(s) => s.displaySelected,@@ -213,7 +188,6 @@ const INITIAL: DemoState = {nudge: 0,};-/** Entry states for the phase pills. */const PHASE_STATES: DemoState[] = [INITIAL,{@@ -252,8 +226,7 @@ const reducer = (s: DemoState, a: Action): DemoState => {case "mode": {if (s.stage !== "recorder" && s.stage !== "overlay") return miss(s);if (a.mode === s.mode) return s;- // Keep the story sound: Instant belongs to the first act, Studio to- // the second. Early flips get a nudge instead of a broken narrative.+const allowed = a.mode === "instant" ? s.step < 6 : s.step >= 6;if (!allowed) return miss(s);return advance({ ...s, mode: a.mode, interacted: true });@@ -378,47 +351,107 @@ const reducer = (s: DemoState, a: Action): DemoState => {}};-/* -------------------------------------------------------------------- tour -- */-type TourStep = {text: string;- /** Objective target: the spotlight + beacon land on this anchor. */+anchor?: string;- /** Spotlight padding around the target, content px. */+pad?: number;- /** Skip the dim for free-play moments (recording). */+dim?: boolean;- /** Bubble centre, screen-space; parked beside the action, never on it. */+bx: number;by: number;- /** Steps with no natural click get an explicit continue button. */+continueLabel?: string;};-// biome-ignore format: keep one step per lineconst TOUR: TourStep[] = [- { text: "Select Instant Mode to record and share a video.", anchor: "mode-instant", bx: 640, by: 420 },- { text: "Click Display to record the whole screen.", anchor: "target-display", bx: 620, by: 480 },+ {+ text: "Select Instant Mode to record and share a video.",+ anchor: "mode-instant",+ bx: 640,+ by: 420,+ },+ {+ text: "Click Display to record the whole screen.",+ anchor: "target-display",+ bx: 620,+ by: 480,+ },{ text: "Click Start Recording.", anchor: "overlay-start", bx: 360, by: 645 },- { text: "Cap uploads while you record. Click Stop to finish.", anchor: "toolbar-stop", dim: false, bx: 400, by: 550 },- { text: "Cap copies a share link when you stop. Click the notification to open the video.", anchor: "notification", bx: 800, by: 170 },- { text: "Viewers can watch, comment, and react in their browser.", anchor: "share-window", pad: 6, bx: 1180, by: 400, continueLabel: "Try Studio Mode" },- { text: "Select Studio Mode to edit a recording before sharing it.", anchor: "mode-studio", bx: 640, by: 420 },- { text: "Turn on the camera to record yourself alongside your screen.", anchor: "row-camera", bx: 600, by: 645 },- { text: "Click Display to select your screen.", anchor: "target-display", bx: 620, by: 480 },- { text: "Studio saves the recording on your computer. Click Start Recording.", anchor: "overlay-start", bx: 360, by: 645 },- { text: "Click Stop to open your recording in the editor.", anchor: "toolbar-stop", dim: false, bx: 400, by: 550 },- { text: "Choose a wallpaper to change the video's background.", anchor: "editor-swatches", bx: 620, by: 620 },- { text: "Click Export to finish the demo. In Cap, you can save a video file or share a link.", anchor: "editor-export", bx: 860, by: 230 },+ {+ text: "Cap uploads while you record. Click Stop to finish.",+ anchor: "toolbar-stop",+ dim: false,+ bx: 400,+ by: 550,+ },+ {+ text: "Cap copies a share link when you stop. Click the notification to open the video.",+ anchor: "notification",+ bx: 800,+ by: 170,+ },+ {+ text: "Viewers can watch, comment, and react in their browser.",+ anchor: "share-window",+ pad: 6,+ bx: 1180,+ by: 400,+ continueLabel: "Try Studio Mode",+ },+ {+ text: "Select Studio Mode to edit a recording before sharing it.",+ anchor: "mode-studio",+ bx: 640,+ by: 420,+ },+ {+ text: "Turn on the camera to record yourself alongside your screen.",+ anchor: "row-camera",+ bx: 600,+ by: 645,+ },+ {+ text: "Click Display to select your screen.",+ anchor: "target-display",+ bx: 620,+ by: 480,+ },+ {+ text: "Studio saves the recording on your computer. Click Start Recording.",+ anchor: "overlay-start",+ bx: 360,+ by: 645,+ },+ {+ text: "Click Stop to open your recording in the editor.",+ anchor: "toolbar-stop",+ dim: false,+ bx: 400,+ by: 550,+ },+ {+ text: "Choose a wallpaper to change the video's background.",+ anchor: "editor-swatches",+ bx: 620,+ by: 620,+ },+ {+ text: "Click Export to finish the demo. In Cap, you can save a video file or share a link.",+ anchor: "editor-export",+ bx: 860,+ by: 230,+ },];-/** "i" hotspots: extra info for the curious, separate from the tour. */type InfoSpot = {key: string;anchor: string;title: string;text: string;- /** Dot position as a fraction of the anchor rect. */+fx: number;fy: number;side: "above" | "below" | "left" | "right";@@ -428,18 +461,69 @@ type InfoSpot = {const onDesktop = (s: DemoState) =>s.stage === "recorder" || s.stage === "overlay";-// biome-ignore format: keep one spot per lineconst INFO_SPOTS: InfoSpot[] = [- { key: "modes", anchor: "mode-info", title: "Recording modes", text: "Use Instant for quick video sharing, Studio for editing recordings, or Screenshot for still images.", fx: 0.5, fy: 0.5, side: "below", when: onDesktop },- { key: "mic", anchor: "row-mic", title: "Audio tracks", text: "Studio saves your microphone and system audio separately so you can adjust their volume in the editor.", fx: 1, fy: 0, side: "below", when: onDesktop },- { key: "camera", anchor: "camera-window", title: "Camera preview", text: "See your camera while recording. Studio saves it separately so you can adjust its size and position later.", fx: 0.85, fy: 0.1, side: "left", when: (s) => s.cameraOn && (onDesktop(s) || s.stage === "recording") },- { key: "tools", anchor: "toolbar-tools", title: "Recording controls", text: "Pause and resume from the toolbar. Try the pause button.", fx: 1, fy: 0, side: "above", when: (s) => s.stage === "recording" },- { key: "reactions", anchor: "share-reactions", title: "Comments and reactions", text: "Viewers can leave feedback at a specific point in the video. Click an emoji to add a reaction.", fx: 1, fy: 0.2, side: "above", when: (s) => s.shareVisible },- { key: "tracks", anchor: "editor-timeline", title: "Separate tracks", text: "Studio records your screen, camera, and audio separately, so you can edit them after recording.", fx: 0.5, fy: 0.06, side: "below", when: (s) => s.stage === "editor" },+ {+ key: "modes",+ anchor: "mode-info",+ title: "Recording modes",+ text: "Use Instant for quick video sharing, Studio for editing recordings, or Screenshot for still images.",+ fx: 0.5,+ fy: 0.5,+ side: "below",+ when: onDesktop,+ },+ {+ key: "mic",+ anchor: "row-mic",+ title: "Audio tracks",+ text: "Studio saves your microphone and system audio separately so you can adjust their volume in the editor.",+ fx: 1,+ fy: 0,+ side: "below",+ when: onDesktop,+ },+ {+ key: "camera",+ anchor: "camera-window",+ title: "Camera preview",+ text: "See your camera while recording. Studio saves it separately so you can adjust its size and position later.",+ fx: 0.85,+ fy: 0.1,+ side: "left",+ when: (s) => s.cameraOn && (onDesktop(s) || s.stage === "recording"),+ },+ {+ key: "tools",+ anchor: "toolbar-tools",+ title: "Recording controls",+ text: "Pause and resume from the toolbar. Try the pause button.",+ fx: 1,+ fy: 0,+ side: "above",+ when: (s) => s.stage === "recording",+ },+ {+ key: "reactions",+ anchor: "share-reactions",+ title: "Comments and reactions",+ text: "Viewers can leave feedback at a specific point in the video. Click an emoji to add a reaction.",+ fx: 1,+ fy: 0.2,+ side: "above",+ when: (s) => s.shareVisible,+ },+ {+ key: "tracks",+ anchor: "editor-timeline",+ title: "Separate tracks",+ text: "Studio records your screen, camera, and audio separately, so you can edit them after recording.",+ fx: 0.5,+ fy: 0.06,+ side: "below",+ when: (s) => s.stage === "editor",+ },];-/* ---------------------------------------------------------------- captions -- */-type Caption = {key: string;theme: ModeTheme;@@ -473,13 +557,10 @@ const CAPTIONS: [Caption, Caption, Caption] = [const phaseOf = (step: number) => (step >= 11 ? 2 : step >= 6 ? 1 : 0);-/** Where each phase starts, for the progress bar's chapter ticks. */const PHASE_TICKS = [6 / TOTAL_STEPS, 11 / TOTAL_STEPS];type Mark = { x: number; y: number; w: number; h: number };-/* --------------------------------------------------------------- component -- */-export const DesktopDemo = ({startRequested = false,}: {@@ -509,14 +590,9 @@ export const DesktopDemo = ({const [state, dispatch] = useReducer(reducer, INITIAL);const [marks, setMarks] = useState<Record<string, Mark>>({});const [openSpot, setOpenSpot] = useState<string | null>(null);- /** Attract mode: the tour only begins once the visitor opts in. */+const [idle, setIdle] = useState(true);- /** The demo dresses as the visitor's own OS. Everything but Windows (and- the first paint, before detection resolves) gets the macOS shell, the- same default the download button uses. Clicking the Apple glyph in the- menu bar (or Start on the taskbar) switches shells by hand, which is- how anyone sees the other platform. */const { platform } = useDetectPlatform();const [osOverride, setOsOverride] = useState<DemoPlatform | null>(null);const demoPlatform: DemoPlatform =@@ -532,7 +608,6 @@ export const DesktopDemo = ({if (startRequested) setIdle(false);}, [startRequested]);- /* The hero's "See how Cap works" hands the visitor straight into the tour. */useEffect(() => {const onStart = () => setIdle(false);window.addEventListener("ht-demo-start", onStart);@@ -553,16 +628,12 @@ export const DesktopDemo = ({[send],);- /* Fit the laptop into the space above the controls strip. Layout effect,- so the very first paint already uses the measured scale. */useLayoutEffect(() => {const box = frameBoxRef.current;if (!box) return;const fitLaptop = () => {const r = box.getBoundingClientRect();- // Slightly undersized (×0.95, capped): the laptop should read as an- // object on the page, not a takeover, but without leaving a dead band- // between it and the hero above.+setScale(Math.min(0.82,@@ -638,8 +709,6 @@ export const DesktopDemo = ({contentScrollRef.current.style.transform = "translate3d(0, 0, 0)";}, [state.stage]);- /* The recording clock: real elapsed time in the toolbar, and the recorded- window slowly "does some work" underneath. */useEffect(() => {if (state.stage !== "recording" || state.paused) return;clockRef.current.last = performance.now();@@ -676,14 +745,12 @@ export const DesktopDemo = ({if (timerRef.current) timerRef.current.textContent = "0:00";}, []);- /* Sofia's comment lands a beat after the share page opens. */useEffect(() => {if (!state.shareVisible) return;const id = setTimeout(() => dispatch({ type: "commentIn" }), 1400);return () => clearTimeout(id);}, [state.shareVisible]);- /* Editor playback: playhead + timecode loop while playing. */useEffect(() => {const playing =(state.stage === "editor" || state.stage === "done") &&@@ -713,8 +780,6 @@ export const DesktopDemo = ({};}, [state.stage, state.editorPlaying, active]);- /* Type the guide text in on every step change (and on nudges, which- re-pop the card). */// biome-ignore lint/correctness/useExhaustiveDependencies: a nudge remounts the keyed card, so the typed node must refilluseEffect(() => {if (idle) return;@@ -735,7 +800,6 @@ export const DesktopDemo = ({return () => clearInterval(id);}, [state.step, state.nudge, idle]);- /* Videos follow the discrete state. */const cameraWindowVisible =state.cameraOn && (onDesktop(state) || state.stage === "recording");const editorVisible = state.stage === "editor" || state.stage === "done";@@ -768,7 +832,6 @@ export const DesktopDemo = ({active,]);- /* Derived scene. */const recorderUi: RecorderUi = {visible: onDesktop(state),mode: state.mode,@@ -780,7 +843,6 @@ export const DesktopDemo = ({const phase = phaseOf(state.step);const caption = CAPTIONS[phase];- /* Spotlight + beacon geometry for the current objective. */const objectiveMark = stepDef?.anchor ? marks[stepDef.anchor] : undefined;const pad = stepDef?.pad ?? 10;const dimmed = Boolean(@@ -804,7 +866,6 @@ export const DesktopDemo = ({state.stage !== "done",);- /* Until measured, lay out at a placeholder scale behind opacity 0. */const fitScale = scale ?? 0.6;const laptopStyle = useMemo<React.CSSProperties>(() => ({ width: LAPTOP.w * fitScale, height: LAPTOP.h * fitScale }),@@ -863,12 +924,10 @@ export const DesktopDemo = ({}`}</style>- {/* Laptop */}<divref={frameBoxRef}className="relative flex min-h-0 w-full flex-1 items-center justify-center">- {/* Phase-coloured glow grounding the laptop on the band. */}<divaria-hidden="true"className={classNames(@@ -886,7 +945,6 @@ export const DesktopDemo = ({style={laptopStyle}><div style={laptopInnerStyle}>- {/* Lid / bezel */}<divaria-hidden="true"className="absolute"@@ -902,7 +960,6 @@ export const DesktopDemo = ({}}/>- {/* Screen */}<divref={screenRef}className="absolute overflow-hidden"@@ -915,7 +972,6 @@ export const DesktopDemo = ({background: "#000",}}>- {/* Wallpaper: one of the city paintings Cap Desktop ships. */}<Imagesrc="/backgrounds/sf.webp"alt=""@@ -925,7 +981,6 @@ export const DesktopDemo = ({className="object-cover"/>- {/* Desktop chrome */}{isWindows ? (<><WinDesktopFiles />@@ -945,7 +1000,6 @@ export const DesktopDemo = ({</>)}- {/* Target-select highlight around "the screen" */}<divclassName={classNames("pointer-events-none absolute inset-0 z-20 rounded-[14px] transition-opacity duration-300",@@ -958,7 +1012,6 @@ export const DesktopDemo = ({}}/>- {/* Windows layer, below the menu bar. */}<divinert={idle || state.stage === "done"}className="absolute left-0 top-7"@@ -1076,9 +1129,6 @@ export const DesktopDemo = ({</div></div>- {/* Spotlight: a soft dim with a bright cutout gliding to the- next objective. Pointer-events-free, so it guides without- locking anything. */}<divaria-hidden="true"className="pointer-events-none absolute left-0 top-0 z-30 rounded-[14px] transition-[transform,width,height,box-shadow] duration-500 ease-[cubic-bezier(0.4,0,0.2,1)]"@@ -1094,8 +1144,6 @@ export const DesktopDemo = ({}}/>- {/* Beacon: a pulsing ring hugging the objective's edge, so the- control itself stays fully visible. */}{beaconVisible && objectiveMark ? (<divaria-hidden="true"@@ -1114,7 +1162,6 @@ export const DesktopDemo = ({/>) : null}- {/* "i" hotspots: more info, on demand. */}{idle? null: visibleSpots.map((spot) => {@@ -1187,8 +1234,6 @@ export const DesktopDemo = ({);})}- {/* The guide bubble: numbered, typed-in, parked beside the- action. Wrong-turn clicks re-pop it with a wiggle. */}{!idle && stepDef && state.stage !== "done" ? (<divclassName="absolute left-0 top-0 z-40 transition-transform duration-500 ease-[cubic-bezier(0.4,0,0.2,1)]"@@ -1215,7 +1260,6 @@ export const DesktopDemo = ({"var(--font-ht-sans), ui-sans-serif, system-ui, sans-serif",}}>- {/* Mode attachment */}<spanclassName="absolute -top-3.5 left-4 flex items-center gap-1.5 rounded-full px-2.5 py-1 text-[12px] font-semibold shadow-[0_2px_8px_rgba(17,17,17,0.18)]"style={{@@ -1260,8 +1304,6 @@ export const DesktopDemo = ({</div>) : null}- {/* Idle state: an oversized cursor resting on the app, so the- screen reads as clickable before the tour chrome exists. */}<divaria-hidden="true"className={classNames(@@ -1276,7 +1318,6 @@ export const DesktopDemo = ({/></div>- {/* Restart, parked bottom-left of the screen once the tour runs. */}<buttontype="button"inert={idle}@@ -1332,7 +1373,6 @@ export const DesktopDemo = ({</div>) : null}- {/* Finish card. */}{state.stage === "done" ? (<div className="absolute inset-0 z-50 flex items-center justify-center bg-[rgba(9,12,20,0.5)]"><div@@ -1379,14 +1419,11 @@ export const DesktopDemo = ({</div>) : null}- {/* Camera notch: a MacBook tell, so the Windows shell gets a- plain lid instead. */}{isWindows ? null : (<div className="pointer-events-none absolute left-1/2 top-0 z-[60] h-[24px] w-[196px] -translate-x-1/2 rounded-b-[10px] bg-black" />)}</div>- {/* Base / deck */}<divaria-hidden="true"className="absolute"@@ -1402,7 +1439,6 @@ export const DesktopDemo = ({"inset 0 1px 0 rgba(255,255,255,0.85), 0 18px 40px -18px rgba(17,17,17,0.5)",}}>- {/* Thumb groove */}<divclassName="absolute left-1/2 top-0 h-[10px] w-[220px] -translate-x-1/2 rounded-b-[12px]"style={{@@ -1415,7 +1451,6 @@ export const DesktopDemo = ({</div></div>- {/* Controls: phase pills, tour progress, skip. Hidden until the tour starts. */}<divinert={idle}className={classNames(diff --git a/apps/web/components/pages/HomeTwo/demo/MacDesktop.tsx b/apps/web/components/pages/HomeTwo/demo/MacDesktop.tsxindex d348f8a62..d8aef1124 100644--- a/apps/web/components/pages/HomeTwo/demo/MacDesktop.tsx+++ b/apps/web/components/pages/HomeTwo/demo/MacDesktop.tsx@@ -11,14 +11,6 @@ import {} from "./chrome";import { useIsWindowsDemo } from "./platform";-/**- * The fake macOS environment the demo plays inside: menu bar, desktop files,- * dock, and the little app window that gets recorded. All chrome is drawn in- * CSS/SVG so it stays crisp at any scale.- */--/* ------------------------------------------------------------- menu bar -- */-const MenuGlyph = ({ children }: { children: React.ReactNode }) => (<span className="flex h-full items-center opacity-80">{children}</span>);@@ -55,7 +47,6 @@ export const MenuBar = ({))}<span className="flex-1" />- {/* macOS screen-recording indicator */}<spanclassName={classNames("flex items-center gap-1 rounded-full px-1.5 py-[1px] transition-opacity duration-300",@@ -78,7 +69,6 @@ export const MenuBar = ({</svg></span>- {/* battery */}<MenuGlyph><svg aria-hidden="true" viewBox="0 0 26 12" className="h-[11px] w-auto"><rect@@ -99,7 +89,6 @@ export const MenuBar = ({/></svg></MenuGlyph>- {/* wifi */}<MenuGlyph><svg aria-hidden="true" viewBox="0 0 16 12" className="h-[11px] w-auto"><path d="M8 10.8 1.2 4a9.6 9.6 0 0 1 13.6 0Z" fill="none" />@@ -109,7 +98,6 @@ export const MenuBar = ({/></svg></MenuGlyph>- {/* search */}<MenuGlyph><svg aria-hidden="true" viewBox="0 0 24 24" className="size-[13px]"><circle@@ -128,7 +116,6 @@ export const MenuBar = ({/></svg></MenuGlyph>- {/* control centre */}<MenuGlyph><svg aria-hidden="true" viewBox="0 0 24 24" className="size-[13px]"><rect@@ -161,8 +148,6 @@ export const MenuBar = ({</div>);-/* -------------------------------------------------------- desktop files -- */-const FolderIcon = () => (<svgaria-hidden="true"@@ -239,8 +224,6 @@ export const DesktopFiles = () => (</div>);-/* ----------------------------------------------------------------- dock -- */-const FinderIcon = () => (<svg aria-hidden="true" viewBox="0 0 48 48" className="size-full"><rect width="48" height="48" rx="11" fill="#3C9BF4" />@@ -387,8 +370,6 @@ export const Dock = () => (</div>);-/* -------------------------------------------- the window being recorded -- */-const SkeletonBar = ({w,tone = "rgba(17,17,17,0.08)",@@ -404,11 +385,6 @@ const SkeletonBar = ({/>);-/**- * A generic macOS app window (a little analytics dashboard) that plays the- * part of "the thing you're recording". The inner content scrolls via- * `scrollRef` while the demo cursor "works".- */export const ContentWindow = ({width,height,@@ -431,7 +407,6 @@ export const ContentWindow = ({boxShadow: "0 22px 60px rgba(0,0,0,0.18), 0 3px 12px rgba(0,0,0,0.08)",}}>- {/* titlebar */}<divclassName={classNames("flex h-10 items-center gap-2 border-b",@@ -479,9 +454,7 @@ export const ContentWindow = ({)}</div>- {/* app body */}<div className="flex h-[calc(100%-40px)]">- {/* sidebar */}<divclassName="flex w-[52px] shrink-0 flex-col items-center gap-4 border-r pt-4"style={{ borderColor: "rgba(0,0,0,0.06)", background: "#fafbfc" }}@@ -500,7 +473,6 @@ export const ContentWindow = ({))}</div>- {/* scrollable main */}<div className="relative flex-1 overflow-hidden"><divref={scrollRef}@@ -533,7 +505,6 @@ export const ContentWindow = ({))}</div>- {/* chart card */}<divclassName="rounded-xl border p-4"style={{ borderColor: "rgba(0,0,0,0.08)" }}@@ -560,7 +531,6 @@ export const ContentWindow = ({</div></div>- {/* table rows (revealed as the cursor scrolls) */}<divclassName="rounded-xl border"style={{ borderColor: "rgba(0,0,0,0.08)" }}diff --git a/apps/web/components/pages/HomeTwo/demo/WindowsShell.tsx b/apps/web/components/pages/HomeTwo/demo/WindowsShell.tsxindex b6120fa50..5de75e371 100644--- a/apps/web/components/pages/HomeTwo/demo/WindowsShell.tsx+++ b/apps/web/components/pages/HomeTwo/demo/WindowsShell.tsx@@ -6,17 +6,8 @@ import { OsSwitchButton } from "./chrome";import { CapFileIcon, ImageFileIcon } from "./MacDesktop";import { OS_FONT } from "./platform";-/**- * The Windows 11 dressing for the demo desktop: taskbar instead of a menu- * bar and dock, Segoe UI everywhere, and a bottom-right toast where macOS- * gets a banner. The Cap windows themselves are unchanged apart from their- * caption controls, which is exactly how the app ships on both platforms.- */-const WIN_FONT = OS_FONT.windows;-/* ------------------------------------------------------ taskbar glyphs -- */-const StartGlyph = () => (<svg aria-hidden="true" viewBox="0 0 24 24" className="size-[19px]">{[@@ -142,8 +133,6 @@ const TrayBattery = () => (</svg>);-/* ---------------------------------------------------------------- taskbar -- */-const TaskbarApp = ({children,running,@@ -183,7 +172,6 @@ export const WinTaskbar = ({fontFamily: WIN_FONT,}}>- {/* The centre cluster is centred on the bar, tray and spacer balance it. */}<div className="flex-1" /><div className="flex items-center gap-1"><OsSwitchButton@@ -210,7 +198,6 @@ export const WinTaskbar = ({</div><div className="flex flex-1 items-center justify-end gap-2.5">- {/* Windows shows recording apps in the tray, not in a menu bar. */}<spanclassName={classNames("flex items-center gap-1.5 rounded-[6px] px-2 py-1 text-[11px] font-semibold tracking-[0.02em] transition-opacity duration-300",@@ -233,8 +220,6 @@ export const WinTaskbar = ({</div>);-/* --------------------------------------------------------- desktop files -- */-const WinFolderIcon = () => (<svg aria-hidden="true" viewBox="0 0 64 52" className="h-11 w-auto"><pathdiff --git a/apps/web/components/pages/HomeTwo/demo/capIcons.tsx b/apps/web/components/pages/HomeTwo/demo/capIcons.tsxindex 1c61e75b1..14949a96a 100644--- a/apps/web/components/pages/HomeTwo/demo/capIcons.tsx+++ b/apps/web/components/pages/HomeTwo/demo/capIcons.tsx@@ -8,9 +8,6 @@type IconProps = { className?: string; style?: React.CSSProperties };-/* ------------------------------------------------------------------ brand -- */--/** cap:logo-full — rounded-square mark + "Cap" wordmark (light theme). */export const CapLogoFull = ({ className, style }: IconProps) => (<svgaria-hidden="true"@@ -48,7 +45,6 @@ export const CapLogoFull = ({ className, style }: IconProps) => (</svg>);-/** cap:logo — just the rounded-square mark with concentric circles. */export const CapLogoMark = ({ className, style }: IconProps) => (<svgaria-hidden="true"@@ -74,9 +70,6 @@ export const CapLogoMark = ({ className, style }: IconProps) => (</svg>);-/* ------------------------------------------------------------- mode icons -- */--/** cap:instant — lightning bolt. */export const CapInstant = ({ className, style }: IconProps) => (<svgaria-hidden="true"@@ -92,7 +85,6 @@ export const CapInstant = ({ className, style }: IconProps) => (</svg>);-/** cap:film-cut — clapperboard. */export const CapFilmCut = ({ className, style }: IconProps) => (<svgaria-hidden="true"@@ -108,7 +100,6 @@ export const CapFilmCut = ({ className, style }: IconProps) => (</svg>);-/** cap:screenshot. */export const CapScreenshot = ({ className, style }: IconProps) => (<svgaria-hidden="true"@@ -121,8 +112,6 @@ export const CapScreenshot = ({ className, style }: IconProps) => (</svg>);-/* -------------------------------------------------------------- cap 20×20 -- */-export const CapCamera = ({ className, style }: IconProps) => (<svgaria-hidden="true"@@ -300,7 +289,6 @@ export const CapTrash = ({ className, style }: IconProps) => (</svg>);-/** cap:settings — the 20×20 stroked gear used in the recording toolbar. */export const CapSettingsGear = ({ className, style }: IconProps) => (<svgaria-hidden="true"@@ -324,7 +312,6 @@ export const CapSettingsGear = ({ className, style }: IconProps) => (</svg>);-/** cap:gear — 16×16 filled gear (the round settings button on the target overlay). */export const CapGear = ({ className, style }: IconProps) => (<svgaria-hidden="true"@@ -372,8 +359,6 @@ export const CapMoreVertical = ({ className, style }: IconProps) => (</svg>);-/* -------------------------------------------- editor icons (cap package) -- */-export const CapClapperboard = ({ className, style }: IconProps) => (<svgaria-hidden="true"@@ -645,8 +630,6 @@ export const CapPause = ({ className, style }: IconProps) => (</svg>);-/* -------------------------------------------- target + third-party icons -- */-/** ph:monitor-bold — the system audio row icon. */export const PhMonitorBold = ({ className, style }: IconProps) => (<svg@@ -883,12 +866,6 @@ export const LucideLoader = ({ className, style }: IconProps) => (</Lucide>);-/* ----------------------------------------------------------------- cursor -- */--/**- * cap:cursor-macos — the real macOS arrow, white outline + black body with- * a soft drop shadow, exactly as shipped in the desktop icon set.- */export const MacCursor = ({ className, style }: IconProps) => (<svgaria-hidden="true"diff --git a/apps/web/components/pages/HomeTwo/demo/chrome.tsx b/apps/web/components/pages/HomeTwo/demo/chrome.tsxindex d0d594425..f9b01a1b3 100644--- a/apps/web/components/pages/HomeTwo/demo/chrome.tsx+++ b/apps/web/components/pages/HomeTwo/demo/chrome.tsx@@ -2,16 +2,8 @@import { classNames } from "@cap/utils/helpers";-/**- * Window decorations for the fake desktop. macOS gets traffic lights on the- * left; Windows gets the caption controls Cap Desktop actually draws, traced- * from `apps/desktop/src/components/titlebar/controls/CaptionControlsWindows11.tsx`- * (46px cells, 10px glyphs, #c42b1c on the close hover).- */-export const TrafficLights = ({size = 12,- /** The recorder window only offers close + zoom. */minimize = true,className,}: {@@ -30,8 +22,6 @@ export const TrafficLights = ({</div>);-/* ------------------------------------------------------- windows glyphs -- */-const MinimizeGlyph = () => (<svg aria-hidden="true" width="10" height="1" viewBox="0 0 10 1" fill="none"><path@@ -71,10 +61,6 @@ const CloseGlyph = () => (</svg>);-/**- * Minimise / maximise / close, stretched to the titlebar's height the way- * Windows does. `light` flips the glyph colour for dark titlebars.- */export const WindowsCaptionControls = ({light,className,@@ -113,14 +99,6 @@ export const WindowsCaptionControls = ({);};-/* ---------------------------------------------------------- os switcher -- */--/**- * The OS badge in the corner of the fake desktop doubles as the switch- * between the two shells: the Apple glyph in the menu bar, the Start button- * on the taskbar. A tooltip on hover says so, since nothing else on the- * chrome is clickable.- */export const OsSwitchButton = ({children,label,@@ -131,7 +109,6 @@ export const OsSwitchButton = ({onClick,}: {children: React.ReactNode;- /** Screen-reader label, e.g. "Switch the demo to Windows". */label: string;tooltip: string;side?: "below" | "above";diff --git a/apps/web/components/pages/HomeTwo/demo/platform.tsx b/apps/web/components/pages/HomeTwo/demo/platform.tsxindex 4af16f93c..9e12661ff 100644--- a/apps/web/components/pages/HomeTwo/demo/platform.tsx+++ b/apps/web/components/pages/HomeTwo/demo/platform.tsx@@ -21,7 +21,6 @@ export const useDemoPlatform = () => useContext(DemoPlatformContext);export const useIsWindowsDemo = () => useDemoPlatform() === "windows";-/** System UI stack per platform, for the OS chrome (not the Cap windows). */export const OS_FONT = {macos:"-apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif",diff --git a/apps/web/components/pages/HomeTwo/fonts.ts b/apps/web/components/pages/HomeTwo/fonts.tsindex b3f95faeb..7ca3b75d7 100644--- a/apps/web/components/pages/HomeTwo/fonts.ts+++ b/apps/web/components/pages/HomeTwo/fonts.ts@@ -5,14 +5,6 @@ import {Source_Serif_4,} from "next/font/google";-/**- * The /home-two type system mirrors Intercom's three-role setup:- * a regular-weight grotesk for display and UI, a light serif for body copy,- * and an uppercase mono for eyebrows. All loaded only on this page via the- * variable classes on the page's <main>.- */--/** Display + UI grotesk (Saans analog). Applied as the page's base font. */export const htSans = Instrument_Sans({subsets: ["latin"],weight: ["400", "500"],@@ -20,7 +12,6 @@ export const htSans = Instrument_Sans({variable: "--font-ht-sans",});-/** Light serif for body copy and quotes (Serrif analog). */export const htSerif = Source_Serif_4({subsets: ["latin"],weight: ["300", "400"],@@ -29,11 +20,6 @@ export const htSerif = Source_Serif_4({variable: "--font-ht-serif",});-/**- * The Cap desktop app's actual UI font (Geist Sans at weight 500), used only- * inside the "See how it works" desktop demo so the recreated app windows- * render with the same type as the real app.- */export const htGeist = Geist({subsets: ["latin"],weight: ["400", "500", "600"],@@ -41,7 +27,6 @@ export const htGeist = Geist({variable: "--font-ht-geist",});-/** Uppercase mono for eyebrows and small labels (SaansMono analog). */export const htMono = DM_Mono({subsets: ["latin"],weight: ["400"],diff --git a/apps/web/components/pages/HomeTwo/index.tsx b/apps/web/components/pages/HomeTwo/index.tsxindex 943387ad9..77f95ffc5 100644--- a/apps/web/components/pages/HomeTwo/index.tsx+++ b/apps/web/components/pages/HomeTwo/index.tsx@@ -32,9 +32,6 @@ export function HomeTwoPage() {className={`${CARD_RADIUS} shadow-[0_0_0_1px_rgba(17,17,17,0.045)]`}style={grainBg(CREAM)}>- {/* Band one: the hero flows straight into the pinned walkthrough so- the gradient card already peeks into the first viewport. It- carries the card's top corners because it paints over them. */}<divclassName={`${CARD_RADIUS} rounded-b-[28px]`}style={grainBg(BAND)}diff --git a/apps/web/components/pages/HomeTwo/studio/cardsB.tsx b/apps/web/components/pages/HomeTwo/studio/cardsB.tsxindex fba77bafb..9a9a2a3b2 100644--- a/apps/web/components/pages/HomeTwo/studio/cardsB.tsx+++ b/apps/web/components/pages/HomeTwo/studio/cardsB.tsx@@ -21,8 +21,6 @@ import {useLoop,} from "./shared";-/* ------------------------------------------------------------ 3D camera -- */-const THREE_D_DURATION = 9000;const threeDPoseAt = (t: number) => {@@ -169,8 +167,6 @@ export const ThreeDVisual = ({ playing }: { playing: boolean }) => {);};-/* --------------------------------------------------------------- canvas -- */-const CANVAS_DURATION = 10000;const WALLS = ["/backgrounds/monaco.webp",@@ -339,8 +335,6 @@ export const CanvasVisual = ({ playing }: { playing: boolean }) => {);};-/* --------------------------------------------------------------- grades -- */-type Grade = {name: string;filter: string;@@ -553,8 +547,6 @@ export const GradesVisual = ({ playing }: { playing: boolean }) => {);};-/* ---------------------------------------------------------------- clips -- */-const CLIPS_DURATION = 10000;const PANEL = { x: 16, y: 206, w: 568, h: 153 };const GUTTER = 68;diff --git a/apps/web/components/pages/HomeTwo/theme.ts b/apps/web/components/pages/HomeTwo/theme.tsindex 924714626..deb5f42f2 100644--- a/apps/web/components/pages/HomeTwo/theme.ts+++ b/apps/web/components/pages/HomeTwo/theme.ts@@ -1,71 +1,50 @@import type { CSSProperties } from "react";-/**- * Shared visual tokens for the /home-two prototype.- *- * Typography follows Intercom's system: a regular-weight grotesk set very- * tight (leading ~1.0, -0.03em) for display, a light serif for body copy,- * and 12px uppercase mono eyebrows. Colours are pastel takes on Cap's four- * mode hues on warm paper, and every coloured surface carries a film-grain- * texture baked into its background-image stack.- */-export type ModeKey = "instant" | "studio" | "screenshot" | "share";-/** Near-black ink. */export const INK = "#111111";-/** Page canvas. */+export const CREAM = "#F8FAFC";-/**- * The lighter shell the page sits on: navbar background plus the gutters- * around the inset page card, so the rounded corners read as a seam.- */+export const SHELL = "#FFFFFF";-/** Warm paper band and tile fill. */+export const BAND = "#EDF1F6";-/** Body copy on light surfaces. */+export const BODY_COLOR = "rgba(17,17,17,0.78)";-/** Muted labels and microcopy. */+export const MUTED = "rgba(17,17,17,0.5)";-/** Warm hairline rules. */+export const HAIRLINE = "#E1E7EE";-/** The cream the floating content cards sit on. */-export const CARD_BG = CREAM;-/* ----------------------------------------------------------------- grain -- */+export const CARD_BG = CREAM;-/** Tiling monochrome noise, alpha baked in. Prepend to any background stack. */export const GRAIN = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E")`;-/** A solid colour with grain. */export const grainBg = (color: string): CSSProperties => ({backgroundColor: color,backgroundImage: GRAIN,backgroundSize: "200px 200px",});-/* ------------------------------------------------------------ mode themes -- */-export type ModeTheme = {/** Radial layers of the mesh (exactly four, see meshStyle's size list). */image: string;- /** Base colour under the mesh. */+base: string;- /** Solid fill for the active nav pill. */+pill: string;- /** Softer fill for inline chips. */+chip: string;- /** Glyph colour on `chip`. On the solid `pill` glyphs use INK. */+glyph: string;- /** Wash behind the coded mockups. */+panel: string;- /** Decorative vertical bars inside the mockup panel. */+bars: string;- /** Accent for underlines, ticks, and eyebrow squares. */+accent: string;};-/** Mesh + grain, ready for a style prop. */export const meshStyle = (t: ModeTheme): CSSProperties => ({backgroundColor: t.base,backgroundImage: `${GRAIN}, ${t.image}`,@@ -135,8 +114,6 @@ export const MODE_THEME: Record<ModeKey, ModeTheme> = {},};-/* ------------------------------------------------------------- typography -- */-export const SANS ="[font-family:var(--font-ht-sans),ui-sans-serif,system-ui,sans-serif]";@@ -145,7 +122,6 @@ export const SERIF_BODY =export const MONO = "[font-family:var(--font-ht-mono),ui-monospace,monospace]";-/** 12px uppercase mono eyebrow. No colour: set it at the use site (Eyebrow.tsx). */export const EYEBROW = `${MONO} text-[12px] font-normal uppercase leading-none tracking-[0.05em]`;export const H_HERO = `${SANS} font-normal leading-[0.98] tracking-[-0.03em] text-[#111111]`;@@ -156,12 +132,6 @@ export const H_CARD = `${SANS} font-normal leading-[1.04] tracking-[-0.03em] texexport const BODY_TEXT = `${SERIF_BODY} tracking-[-0.01em]`;-/* ---------------------------------------------------------------- buttons -- */--/**- * Cap-blue primary action, glass finish: vertical gradient body, a bright- * inset top edge, a soft ambient blue glow, and a top-half sheen overlay.- */export const BTN_PRIMARY = ["group relative inline-flex h-[48px] items-center justify-center overflow-hidden rounded-[12px] px-6","text-[16px] font-medium text-[#111111] [text-shadow:0_1px_0_rgba(255,255,255,0.45)]",