Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(web): redesign the pricing page

Richie McIlroyb6e58d2a5958
diff --git a/apps/web/app/(site)/pricing/page.tsx b/apps/web/app/(site)/pricing/page.tsx
index 33f718a4f..a0a9175d2 100644
--- a/apps/web/app/(site)/pricing/page.tsx
+++ b/apps/web/app/(site)/pricing/page.tsx
@@ -1,5 +1,5 @@
import type { Metadata } from "next";
-import { PricingPage } from "@/components/pages/PricingPage";
+import { PricingPage } from "@/components/pages/pricing/PricingPage";
import { buildMarketingMetadata } from "@/lib/og/url";
export const metadata: Metadata = buildMarketingMetadata({
diff --git a/apps/web/components/pages/HomeTwo/Faq.tsx b/apps/web/components/pages/HomeTwo/Faq.tsx
index 9e49716a3..7e2c6b9d7 100644
--- a/apps/web/components/pages/HomeTwo/Faq.tsx
+++ b/apps/web/components/pages/HomeTwo/Faq.tsx
@@ -1,16 +1,26 @@
-import { homepageCopy } from "@/data/homepage-copy";
+import { type FaqCopy, homepageCopy } from "@/data/homepage-copy";
import { Eyebrow } from "./Eyebrow";
import { BODY_TEXT, H_SECTION, MODE_THEME } from "./theme";
-export const Faq = () => (
+export const Faq = ({
+ items = homepageCopy.faq.items,
+ title = "Questions? We've got answers.",
+ accent = MODE_THEME.screenshot.accent,
+ eyebrow = true,
+}: {
+ items?: FaqCopy["items"];
+ title?: string;
+ accent?: string;
+ eyebrow?: boolean;
+}) => (
<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">
<div className="lg:sticky lg:top-28 lg:self-start">
- <Eyebrow accent={MODE_THEME.screenshot.accent}>FAQ</Eyebrow>
+ {eyebrow ? <Eyebrow accent={accent}>FAQ</Eyebrow> : null}
<h2
- className={`${H_SECTION} mt-6 text-balance text-[clamp(34px,3.9vw,48px)]`}
+ className={`${H_SECTION} ${eyebrow ? "mt-6" : ""} text-balance text-[clamp(34px,3.9vw,48px)]`}
>
- Questions? We've got answers.
+ {title}
</h2>
<p
className={`${BODY_TEXT} mt-5 max-w-[320px] text-[16px] leading-[1.5] text-[rgba(17,17,17,0.72)]`}
@@ -27,7 +37,7 @@ export const Faq = () => (
</div>
<div>
- {homepageCopy.faq.items.map((item) => (
+ {items.map((item) => (
<details
key={item.question}
className="group border-t border-[#E1E7EE] last:border-b"
diff --git a/apps/web/components/pages/HomeTwo/HeroSky.tsx b/apps/web/components/pages/HomeTwo/HeroSky.tsx
index ab61e1a2a..f9a7ebd45 100644
--- a/apps/web/components/pages/HomeTwo/HeroSky.tsx
+++ b/apps/web/components/pages/HomeTwo/HeroSky.tsx
@@ -1,5 +1,6 @@
"use client";
+import { classNames } from "@cap/utils/helpers";
import Image from "next/image";
import { useRef } from "react";
import { BAND, GRAIN } from "./theme";
@@ -141,7 +142,7 @@ const SKY = [
`linear-gradient(180deg, #C8DDF6 0%, #D9E7F8 34%, #E6EDF6 66%, ${BAND} 100%)`,
].join(",");
-export const HeroSky = () => {
+export const HeroSky = ({ className }: { className?: string }) => {
const rootRef = useRef<HTMLDivElement | null>(null);
const inView = useInView(rootRef, "0px");
const pageVisible = usePageVisible();
@@ -150,9 +151,11 @@ export const HeroSky = () => {
<div
ref={rootRef}
aria-hidden="true"
- className={`pointer-events-none absolute inset-0 overflow-hidden rounded-t-[24px] ${
- drifting ? "" : "ht-sky-idle"
- }`}
+ className={classNames(
+ "pointer-events-none absolute inset-0 overflow-hidden",
+ className ?? "rounded-t-[24px]",
+ drifting ? "" : "ht-sky-idle",
+ )}
style={{
backgroundColor: BAND,
backgroundImage: SKY,
diff --git a/apps/web/components/pages/HomeTwo/Testimonials.tsx b/apps/web/components/pages/HomeTwo/Testimonials.tsx
index 2cf5e091a..1bf400f02 100644
--- a/apps/web/components/pages/HomeTwo/Testimonials.tsx
+++ b/apps/web/components/pages/HomeTwo/Testimonials.tsx
@@ -21,13 +21,15 @@ const QUOTES = PICKS.map((name) =>
testimonials.find((item) => item.name === name),
).filter((item): item is (typeof testimonials)[number] => Boolean(item));
-export const Testimonials = () => (
+export const Testimonials = ({ eyebrow = true }: { eyebrow?: boolean }) => (
<section className="px-5 py-20 lg:py-28">
<div className="mx-auto max-w-[1200px]">
<div className="mx-auto flex max-w-[760px] flex-col items-center text-center">
- <Eyebrow accent={MODE_THEME.share.accent}>Testimonials</Eyebrow>
+ {eyebrow ? (
+ <Eyebrow accent={MODE_THEME.share.accent}>Testimonials</Eyebrow>
+ ) : null}
<h2
- className={`${H_SECTION} mt-6 text-balance text-[clamp(38px,5vw,56px)]`}
+ className={`${H_SECTION} ${eyebrow ? "mt-6" : ""} text-balance text-[clamp(38px,5vw,56px)]`}
>
Loved by builders, trusted by teams
</h2>
diff --git a/apps/web/components/pages/PricingPage.tsx b/apps/web/components/pages/PricingPage.tsx
deleted file mode 100644
index f0835bb3f..000000000
--- a/apps/web/components/pages/PricingPage.tsx
+++ /dev/null
@@ -1,132 +0,0 @@
-"use client";
-
-import { faHeart } from "@fortawesome/free-solid-svg-icons";
-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import { motion } from "framer-motion";
-import { type MouseEvent, useId } from "react";
-import { Testimonials } from "../ui/Testimonials";
-import ComparePlans from "./_components/ComparePlans";
-import Faq from "./HomePage/Faq";
-import { CommercialCard } from "./HomePage/Pricing/CommercialCard";
-import { EnterpriseCard } from "./HomePage/Pricing/EnterpriseCard";
-import { ProCard } from "./HomePage/Pricing/ProCard";
-
-const fadeIn = {
- hidden: { opacity: 0, y: 20 },
- visible: (custom: number = 0) => ({
- opacity: 1,
- y: 0,
- transition: {
- delay: custom * 0.1,
- duration: 0.5,
- ease: "easeOut",
- },
- }),
-};
-
-const fadeInFromBottom = {
- hidden: { opacity: 0, y: 40 },
- visible: (custom: number = 0) => ({
- opacity: 1,
- y: 0,
- transition: {
- delay: 0.3 + custom * 0.1,
- duration: 0.6,
- ease: "easeOut",
- },
- }),
-};
-
-const staggerContainer = {
- hidden: { opacity: 0 },
- visible: {
- opacity: 1,
- transition: {
- staggerChildren: 0.1,
- delayChildren: 0.2,
- },
- },
-};
-
-export const PricingPage = () => {
- const testimonialsId = useId();
-
- const scrollToTestimonials = (e: MouseEvent) => {
- e.preventDefault();
- const testimonials = document.getElementById(testimonialsId);
- if (testimonials) {
- const offset = 80;
- const topPos =
- testimonials.getBoundingClientRect().top + window.pageYOffset - offset;
- window.scrollTo({
- top: topPos,
- behavior: "smooth",
- });
- }
- };
-
- return (
- <motion.div initial="hidden" animate="visible" variants={staggerContainer}>
- <div className="py-32 space-y-[120px] md:py-40 wrapper">
- <div>
- <motion.div
- className="mb-12 text-center"
- variants={fadeIn}
- custom={0}
- >
- <motion.h1
- className="mt-3 text-4xl font-medium tracking-tight md:text-5xl text-gray-12"
- variants={fadeIn}
- custom={2}
- >
- Simple, flexible pricing
- </motion.h1>
- <motion.button
- type="button"
- onClick={scrollToTestimonials}
- className="hidden sm:flex justify-center cursor-pointer items-center px-5 py-2.5 gap-2 mx-auto mt-6 rounded-full border bg-gray-1 border-gray-5 w-fit hover:bg-gray-2 transition-colors"
- variants={fadeIn}
- custom={4}
- whileHover={{ scale: 1.03 }}
- whileTap={{ scale: 0.98 }}
- >
- <FontAwesomeIcon
- className="text-red-500 size-3.5"
- icon={faHeart}
- />
- <span className="text-sm font-medium text-gray-12">
- Trusted by 50,000+ teams, builders and creators
- </span>
- </motion.button>
- </motion.div>
-
- <motion.div
- className="grid gap-6 items-stretch mx-auto w-full max-w-[1080px] pt-3 lg:grid-cols-3"
- variants={fadeInFromBottom}
- custom={0}
- >
- <CommercialCard />
- <ProCard />
- <EnterpriseCard />
- </motion.div>
- </div>
-
- <div>
- <ComparePlans />
- </div>
-
- <div>
- <Faq />
- </div>
-
- <div className="mb-32 wrapper" id={testimonialsId}>
- <Testimonials
- amount={24}
- title="Teams & creators love Cap"
- subtitle="Don't just take our word for it. Here's what our users are saying about their experience with Cap."
- />
- </div>
- </div>
- </motion.div>
- );
-};
diff --git a/apps/web/components/pages/pricing/ComparePlans.tsx b/apps/web/components/pages/pricing/ComparePlans.tsx
new file mode 100644
index 000000000..776da45c8
--- /dev/null
+++ b/apps/web/components/pages/pricing/ComparePlans.tsx
@@ -0,0 +1,505 @@
+"use client";
+
+import { classNames } from "@cap/utils/helpers";
+import { useCurrency } from "hooks/useCurrency";
+import { Check } from "lucide-react";
+import { Fragment, useMemo, useState } from "react";
+import { toast } from "sonner";
+import { useCurrentUser } from "@/app/Layout/AuthContext";
+import { useStripeContext } from "@/app/Layout/StripeContext";
+import { trackEvent } from "@/app/utils/analytics";
+import {
+ BODY_TEXT,
+ H_SECTION,
+ MODE_THEME,
+ MONO,
+} from "@/components/pages/HomeTwo/theme";
+import { PRICING } from "@/data/pricing";
+
+type PlanKey = "free" | "desktop" | "pro";
+
+type Plan = {
+ key: PlanKey;
+ name: string;
+ short: string;
+ price: string;
+ compactPrice: string;
+};
+
+type FeatureValue = boolean | string;
+
+type FeatureRow = {
+ label: string;
+ free: FeatureValue;
+ desktop: FeatureValue;
+ pro: FeatureValue;
+};
+
+type FeatureSection = {
+ title: string;
+ rows: FeatureRow[];
+};
+
+const sections: FeatureSection[] = [
+ {
+ title: "Recording & editing",
+ rows: [
+ {
+ label: "Studio Mode with full editor",
+ free: true,
+ desktop: true,
+ pro: true,
+ },
+ {
+ label: "Unlimited local recordings & editing",
+ free: false,
+ desktop: true,
+ pro: true,
+ },
+ { label: "4K / 60fps export", free: true, desktop: true, pro: true },
+ { label: "Export to any format", free: true, desktop: true, pro: true },
+ { label: "Commercial usage", free: false, desktop: true, pro: true },
+ ],
+ },
+ {
+ title: "Cloud & sharing",
+ rows: [
+ {
+ label: "Shareable links",
+ free: "Up to 5 min",
+ desktop: "Up to 5 min",
+ pro: "Unlimited",
+ },
+ {
+ label: "Unlimited cloud storage & bandwidth",
+ free: false,
+ desktop: false,
+ pro: true,
+ },
+ {
+ label: "Custom domain (cap.yourdomain.com)",
+ free: false,
+ desktop: false,
+ pro: true,
+ },
+ {
+ label: "Password protected shares",
+ free: false,
+ desktop: false,
+ pro: true,
+ },
+ {
+ label: "Custom S3 bucket & Google Drive support",
+ free: false,
+ desktop: false,
+ pro: true,
+ },
+ { label: "Loom video importer", free: false, desktop: false, pro: true },
+ ],
+ },
+ {
+ title: "AI & collaboration",
+ rows: [
+ {
+ label: "Auto titles, summaries & chapters",
+ free: false,
+ desktop: false,
+ pro: true,
+ },
+ { label: "Transcriptions", free: false, desktop: false, pro: true },
+ {
+ label: "Viewer analytics & engagement",
+ free: false,
+ desktop: false,
+ pro: true,
+ },
+ { label: "Team workspaces", free: true, desktop: true, pro: true },
+ ],
+ },
+ {
+ title: "Security, support & licensing",
+ rows: [
+ {
+ label: "SOC 2 Type II, ISO 27001 & HIPAA compliance",
+ free: false,
+ desktop: false,
+ pro: true,
+ },
+ { label: "Community support", free: true, desktop: true, pro: true },
+ {
+ label: "Priority support & early features",
+ free: false,
+ desktop: false,
+ pro: true,
+ },
+ {
+ label: "License",
+ free: "Personal use",
+ desktop: "Yearly or lifetime",
+ pro: "Subscription",
+ },
+ ],
+ },
+];
+
+const BUTTON_TEXT: Record<PlanKey, string> = {
+ free: "Download",
+ desktop: "Get license",
+ pro: "Get Cap Pro",
+};
+
+const BTN_BASE =
+ "inline-flex h-[38px] w-full items-center justify-center rounded-[9px] px-3 text-[13.5px] font-medium transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50";
+
+const BTN_QUIET = `${BTN_BASE} border border-[#D3DCE6] bg-white text-[#111111] hover:bg-[#EDF1F6]`;
+
+const BTN_INK = `${BTN_BASE} bg-[#111111] text-white hover:bg-[#2A2A2A]`;
+
+const PRO_TINT = "rgba(143,193,247,0.12)";
+
+const PlanButton = ({
+ plan,
+ disabled,
+ onClick,
+}: {
+ plan: Plan;
+ disabled: boolean;
+ onClick: (key: PlanKey) => void;
+}) => (
+ <button
+ type="button"
+ disabled={disabled}
+ onClick={() => onClick(plan.key)}
+ className={plan.key === "pro" ? BTN_INK : BTN_QUIET}
+ >
+ {BUTTON_TEXT[plan.key]}
+ </button>
+);
+
+const Cell = ({
+ value,
+ compact = false,
+}: {
+ value: FeatureValue;
+ compact?: boolean;
+}) => {
+ if (typeof value === "string") {
+ return (
+ <span
+ className={classNames(
+ "text-[#111111]",
+ compact ? "text-[11px] leading-[1.25]" : "text-[13.5px]",
+ )}
+ >
+ {value}
+ </span>
+ );
+ }
+ return value ? (
+ <>
+ <span
+ className="grid size-5 place-items-center rounded-full"
+ style={{
+ background: MODE_THEME.instant.chip,
+ color: MODE_THEME.instant.glyph,
+ }}
+ >
+ <Check className="size-3" strokeWidth={2.5} />
+ </span>
+ <span className="sr-only">Included</span>
+ </>
+ ) : (
+ <>
+ <span
+ aria-hidden="true"
+ className="block h-px w-3 rounded-full bg-[rgba(17,17,17,0.2)]"
+ />
+ <span className="sr-only">Not included</span>
+ </>
+ );
+};
+
+export const ComparePlans = () => {
+ const user = useCurrentUser();
+ const { symbol } = useCurrency();
+ const stripeCtx = useStripeContext();
+ const [loading, setLoading] = useState(false);
+
+ const disabled = Boolean((user?.email && user.isPro) || loading);
+
+ const plans: Plan[] = useMemo(
+ () => [
+ {
+ key: "free",
+ name: "Free",
+ short: "Free",
+ price: "Free forever",
+ compactPrice: "$0",
+ },
+ {
+ key: "desktop",
+ name: "Desktop License",
+ short: "Desktop",
+ price: `${symbol}${PRICING.commercial.yearly} per year`,
+ compactPrice: `${symbol}${PRICING.commercial.yearly}/yr`,
+ },
+ {
+ key: "pro",
+ name: "Cap Pro",
+ short: "Pro",
+ price: `${symbol}${PRICING.pro.monthly} per user / mo`,
+ compactPrice: `${symbol}${PRICING.pro.monthly}/user/mo`,
+ },
+ ],
+ [symbol],
+ );
+
+ const postCheckout = async (
+ url: string,
+ body: Record<string, unknown>,
+ errorMessage: string,
+ ) => {
+ const response = await fetch(url, {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify(body),
+ });
+ const data = await response.json();
+ if (response.ok && data.url) {
+ window.location.href = data.url;
+ return;
+ }
+ throw new Error(data.message || errorMessage);
+ };
+
+ const proCheckout = async () => {
+ const priceId = stripeCtx.plans.monthly;
+ const response = await fetch("/api/settings/billing/subscribe", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ priceId, quantity: 1 }),
+ });
+ const data = await response.json();
+
+ if (data.auth === false) {
+ await postCheckout(
+ "/api/settings/billing/guest-checkout",
+ { priceId, quantity: 1 },
+ "Failed to create checkout session",
+ );
+ return;
+ }
+ if (data.subscription === true) {
+ toast.success("You are already on the Cap Pro plan");
+ return;
+ }
+ if (data.url) {
+ window.location.href = data.url;
+ }
+ };
+
+ const handlePlanClick = async (key: PlanKey) => {
+ trackEvent("pricing_cta_clicked", {
+ source_page: "pricing_compare",
+ plan_name: key,
+ authenticated: Boolean(user?.email),
+ is_pro: Boolean(user?.isPro),
+ cta_action:
+ key === "free"
+ ? "download"
+ : key === "desktop"
+ ? "commercial_checkout"
+ : user?.email
+ ? "checkout"
+ : "guest_checkout",
+ target_billing_period: key === "pro" ? "monthly" : null,
+ });
+
+ if (key === "free") {
+ window.location.href = "/download";
+ return;
+ }
+
+ setLoading(true);
+ try {
+ if (key === "desktop") {
+ await postCheckout(
+ "/api/commercial/checkout",
+ { type: "yearly", quantity: 1 },
+ "Failed to start checkout process",
+ );
+ } else {
+ await proCheckout();
+ }
+ } catch (error) {
+ console.error("Checkout error:", error);
+ toast.error(
+ key === "desktop"
+ ? "Failed to start checkout process"
+ : "Failed to start subscription process",
+ );
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ return (
+ <section className="px-5 py-20 lg:py-28">
+ <div className="mx-auto max-w-[1060px]">
+ <div className="mx-auto flex max-w-[760px] flex-col items-center text-center">
+ <h2
+ className={`${H_SECTION} text-balance text-[clamp(34px,4.6vw,56px)]`}
+ >
+ Every plan, side by side
+ </h2>
+ <p
+ className={`${BODY_TEXT} mt-6 max-w-[520px] text-balance text-[16.5px] leading-[1.5] text-[rgba(17,17,17,0.78)] sm:text-[17.5px]`}
+ >
+ Free covers personal use with no time limit on local recordings.
+ Paid plans add commercial rights, and Cap Pro adds the cloud.
+ </p>
+ </div>
+
+ <div className="mt-14 hidden rounded-[22px] bg-white p-3 shadow-[0_0_0_1px_rgba(17,17,17,0.06),0_24px_48px_-32px_rgba(17,17,17,0.2)] md:block">
+ <table className="w-full table-fixed border-separate border-spacing-0">
+ <thead>
+ <tr className="align-bottom">
+ <th className="w-[37%] px-5 pb-5" />
+ {plans.map((plan) => {
+ const pro = plan.key === "pro";
+ return (
+ <th
+ key={plan.key}
+ className={classNames(
+ "w-[21%] px-4 pb-5 pt-6 text-left align-bottom font-normal",
+ pro && "rounded-t-[16px]",
+ )}
+ style={pro ? { background: PRO_TINT } : undefined}
+ >
+ <p className="text-[16px] font-medium leading-none tracking-[-0.01em] text-[#111111]">
+ {plan.name}
+ </p>
+ <p className="mt-2 mb-4 text-[13px] text-[rgba(17,17,17,0.5)]">
+ {plan.price}
+ </p>
+ <PlanButton
+ plan={plan}
+ disabled={disabled}
+ onClick={handlePlanClick}
+ />
+ </th>
+ );
+ })}
+ </tr>
+ </thead>
+ <tbody>
+ {sections.map((section) => (
+ <Fragment key={section.title}>
+ <tr>
+ <td
+ className={`${MONO} px-5 pb-3 pt-8 text-[11.5px] uppercase leading-none tracking-[0.05em] text-[rgba(17,17,17,0.5)]`}
+ >
+ {section.title}
+ </td>
+ <td />
+ <td />
+ <td style={{ background: PRO_TINT }} />
+ </tr>
+ {section.rows.map((row) => (
+ <tr key={row.label}>
+ <td className="border-t border-[#E1E7EE] px-5 py-3.5 text-[14.5px] text-[rgba(17,17,17,0.78)]">
+ {row.label}
+ </td>
+ {plans.map((plan) => (
+ <td
+ key={plan.key}
+ className="border-t border-[#E1E7EE] px-4 py-3.5"
+ style={
+ plan.key === "pro"
+ ? { background: PRO_TINT }
+ : undefined
+ }
+ >
+ <span className="flex items-center">
+ <Cell value={row[plan.key]} />
+ </span>
+ </td>
+ ))}
+ </tr>
+ ))}
+ </Fragment>
+ ))}
+ <tr>
+ <td className="h-5" />
+ <td />
+ <td />
+ <td
+ className="rounded-b-[16px]"
+ style={{ background: PRO_TINT }}
+ />
+ </tr>
+ </tbody>
+ </table>
+ </div>
+
+ <div className="mt-10 md:hidden">
+ <div className="sticky top-[72px] z-[5] -mx-5 border-b border-[#E1E7EE] bg-[#F8FAFC] px-5">
+ <div className="flex items-end gap-1 py-3">
+ <span className="flex-1 text-[12px] text-[rgba(17,17,17,0.5)]">
+ Feature
+ </span>
+ {plans.map((plan) => (
+ <span
+ key={plan.key}
+ className="w-[52px] text-center min-[360px]:w-[58px]"
+ >
+ <span className="block text-[13px] font-medium leading-none text-[#111111]">
+ {plan.short}
+ </span>
+ <span className="mt-1 block text-[10.5px] leading-none text-[rgba(17,17,17,0.5)]">
+ {plan.compactPrice}
+ </span>
+ </span>
+ ))}
+ </div>
+ </div>
+
+ {sections.map((section) => (
+ <div key={section.title}>
+ <p
+ className={`${MONO} pb-2 pt-7 text-[11px] uppercase leading-none tracking-[0.05em] text-[rgba(17,17,17,0.5)]`}
+ >
+ {section.title}
+ </p>
+ <div className="divide-y divide-[#E1E7EE] border-y border-[#E1E7EE]">
+ {section.rows.map((row) => (
+ <div
+ key={row.label}
+ className="flex items-center gap-1 py-2.5"
+ >
+ <span className="flex-1 pr-2 text-[13.5px] leading-snug text-[rgba(17,17,17,0.78)]">
+ {row.label}
+ </span>
+ {plans.map((plan) => (
+ <span
+ key={plan.key}
+ className="flex min-h-[36px] w-[52px] items-center justify-center rounded-[8px] px-0.5 text-center min-[360px]:w-[58px]"
+ style={
+ plan.key === "pro"
+ ? { background: PRO_TINT }
+ : undefined
+ }
+ >
+ <Cell value={row[plan.key]} compact />
+ </span>
+ ))}
+ </div>
+ ))}
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+ </section>
+ );
+};
diff --git a/apps/web/components/pages/pricing/DesktopLicenseCard.tsx b/apps/web/components/pages/pricing/DesktopLicenseCard.tsx
new file mode 100644
index 000000000..6882d79df
--- /dev/null
+++ b/apps/web/components/pages/pricing/DesktopLicenseCard.tsx
@@ -0,0 +1,137 @@
+"use client";
+
+import { classNames } from "@cap/utils/helpers";
+import NumberFlow from "@number-flow/react";
+import { useCurrency } from "hooks/useCurrency";
+import { ArrowUpRight } from "lucide-react";
+import Link from "next/link";
+import { useState } from "react";
+import { toast } from "sonner";
+import { trackEvent } from "@/app/utils/analytics";
+import { BTN_SECONDARY, MODE_THEME } from "@/components/pages/HomeTwo/theme";
+import { homepageCopy } from "@/data/homepage-copy";
+import { Segmented, Stepper } from "./controls";
+import { PLAN_LINK, PlanCard, type PlanToggle } from "./PlanCard";
+
+const copy = homepageCopy.pricing.commercial;
+const theme = MODE_THEME.screenshot;
+
+export const DesktopLicenseCard = ({ collapsed, onToggle }: PlanToggle) => {
+ const { symbol } = useCurrency();
+ const [licenses, setLicenses] = useState(1);
+ const [yearly, setYearly] = useState(true);
+ const [loading, setLoading] = useState(false);
+
+ const perLicense = yearly ? copy.pricing.yearly : copy.pricing.lifetime;
+ const total = licenses * perLicense;
+
+ const checkout = async () => {
+ trackEvent("pricing_cta_clicked", {
+ source_page: "pricing_cards",
+ plan_name: "desktop",
+ cta_action: "commercial_checkout",
+ target_billing_period: yearly ? "yearly" : "lifetime",
+ quantity: licenses,
+ });
+ setLoading(true);
+ try {
+ const response = await fetch("/api/commercial/checkout", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({
+ type: yearly ? "yearly" : "lifetime",
+ quantity: licenses,
+ }),
+ });
+ const data = await response.json();
+ if (response.ok && data.url) {
+ window.location.href = data.url;
+ } else {
+ throw new Error(data.message);
+ }
+ } catch (error) {
+ console.error("Error during commercial checkout:", error);
+ toast.error("Failed to start checkout process");
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ return (
+ <PlanCard
+ name={copy.title}
+ tag="Local only"
+ theme={theme}
+ summary={`${symbol}${copy.pricing.yearly} per license, per year`}
+ collapsed={collapsed}
+ onToggle={onToggle}
+ blurb="A commercial license for the Cap desktop app. Unlimited local recording and editing, no cloud subscription required."
+ price={
+ <>
+ {symbol}
+ <NumberFlow value={perLicense} />
+ </>
+ }
+ cadence={yearly ? "per license, per year" : "per license, one time"}
+ note={
+ yearly
+ ? `Or ${symbol}${copy.pricing.lifetime} once, for a license that never renews.`
+ : `Or ${symbol}${copy.pricing.yearly} a year if you would rather pay as you go.`
+ }
+ controls={
+ <>
+ <Segmented
+ ariaLabel="Billing option for Desktop License"
+ value={yearly ? "yearly" : "lifetime"}
+ onChange={(value) => setYearly(value === "yearly")}
+ options={[
+ { value: "yearly", label: "Annual" },
+ { value: "lifetime", label: "Lifetime" },
+ ]}
+ theme={theme}
+ />
+ <Stepper
+ label="Licenses"
+ value={licenses}
+ onIncrement={() => setLicenses((prev) => prev + 1)}
+ onDecrement={() => setLicenses((prev) => Math.max(1, prev - 1))}
+ decrementLabel="Decrease license count"
+ incrementLabel="Increase license count"
+ />
+ <p className="flex items-baseline justify-between text-[14px] text-[rgba(17,17,17,0.6)]">
+ <span>Total</span>
+ <span>
+ <span className="font-medium tabular-nums text-[#111111]">
+ {symbol}
+ <NumberFlow value={total} />
+ </span>{" "}
+ {yearly ? "per year" : "one time"}
+ </span>
+ </p>
+ </>
+ }
+ cta={
+ <button
+ type="button"
+ onClick={checkout}
+ disabled={loading}
+ className={classNames(
+ BTN_SECONDARY,
+ "w-full disabled:cursor-not-allowed disabled:opacity-60",
+ )}
+ >
+ {loading ? "Opening checkout..." : copy.cta}
+ </button>
+ }
+ ctaNote="One user per license. Works fully offline."
+ featuresTitle="What's included"
+ features={copy.features}
+ footer={
+ <Link href="/docs/commercial-license" className={PLAN_LINK}>
+ About the commercial license
+ <ArrowUpRight className="size-3.5" />
+ </Link>
+ }
+ />
+ );
+};
diff --git a/apps/web/components/pages/pricing/EnterpriseCard.tsx b/apps/web/components/pages/pricing/EnterpriseCard.tsx
new file mode 100644
index 000000000..bcf7010e0
--- /dev/null
+++ b/apps/web/components/pages/pricing/EnterpriseCard.tsx
@@ -0,0 +1,119 @@
+"use client";
+
+import { classNames } from "@cap/utils/helpers";
+import { ArrowUpRight } from "lucide-react";
+import Link from "next/link";
+import { trackEvent } from "@/app/utils/analytics";
+import { BTN_SECONDARY, MODE_THEME } from "@/components/pages/HomeTwo/theme";
+import { PLAN_LINK, PlanCard, type PlanToggle } from "./PlanCard";
+
+const theme = MODE_THEME.studio;
+
+const BOOK_A_CALL_URL = "https://calendar.app.google/BrQRrAeCzVR8Fd136";
+
+const ADD_ONS = [
+ {
+ label: "SAML SSO",
+ detail: "Flat rate, unlimited users",
+ price: "$199/mo",
+ },
+ { label: "Signed BAA", detail: "Per organization", price: "$99/mo" },
+];
+
+const FEATURES = [
+ "SOC 2 Type II compliant",
+ "ISO 27001 compliant",
+ "HIPAA compliant",
+ "SCIM provisioning can be arranged",
+ "Custom S3 & Google Drive storage",
+ "Volume discounts available",
+];
+
+export const EnterpriseCard = ({ collapsed, onToggle }: PlanToggle) => {
+ return (
+ <PlanCard
+ name="Enterprise"
+ tag="Self-serve"
+ theme={theme}
+ summary="Cap Pro price + optional add-ons"
+ collapsed={collapsed}
+ onToggle={onToggle}
+ blurb="Cap Pro for organizations with thousands of members, with optional extras when you need them."
+ lede={
+ <p className="text-[16px] leading-[1.4] tracking-[-0.01em] text-[#111111] lg:text-[17px]">
+ Everything in Cap Pro, at the Cap Pro price.
+ <span className="text-[rgba(17,17,17,0.55)]">
+ {" "}
+ Add SAML SSO for your whole organization, or a signed BAA, only if
+ you need them.
+ </span>
+ </p>
+ }
+ controls={
+ <>
+ <p className="text-[13px] font-medium text-[#111111]">
+ Optional add-ons
+ </p>
+ <dl className="divide-y divide-[#E1E7EE] rounded-[12px] bg-[#F8FAFC] px-4">
+ {ADD_ONS.map((addOn) => (
+ <div
+ key={addOn.label}
+ className="flex items-center justify-between py-2.5 text-[14px]"
+ >
+ <dt>
+ <span className="block text-[#111111]">{addOn.label}</span>
+ <span className="block text-[12.5px] text-[rgba(17,17,17,0.5)]">
+ {addOn.detail}
+ </span>
+ </dt>
+ <dd className="font-medium tabular-nums text-[#111111]">
+ {addOn.price}
+ </dd>
+ </div>
+ ))}
+ </dl>
+ <p className="text-[13.5px] leading-[1.5] text-[rgba(17,17,17,0.5)]">
+ Fully self-serve. Turn either one on from your dashboard whenever
+ you need it, no enterprise contract required.
+ </p>
+ </>
+ }
+ cta={
+ <Link
+ href="/dashboard/settings/organization"
+ onClick={() =>
+ trackEvent("pricing_cta_clicked", {
+ source_page: "pricing_cards",
+ plan_name: "enterprise",
+ cta_action: "manage_add_ons",
+ })
+ }
+ className={classNames(BTN_SECONDARY, "w-full")}
+ >
+ Manage add-ons
+ </Link>
+ }
+ ctaNote="No sales call, no minimum seats. Book a call if you want one."
+ featuresTitle="Security and control at scale"
+ features={FEATURES}
+ footer={
+ <a
+ href={BOOK_A_CALL_URL}
+ target="_blank"
+ rel="noopener noreferrer"
+ onClick={() =>
+ trackEvent("pricing_cta_clicked", {
+ source_page: "pricing_cards",
+ plan_name: "enterprise",
+ cta_action: "book_call",
+ })
+ }
+ className={PLAN_LINK}
+ >
+ Book a call with the team
+ <ArrowUpRight className="size-3.5" />
+ </a>
+ }
+ />
+ );
+};
diff --git a/apps/web/components/pages/pricing/PlanCard.tsx b/apps/web/components/pages/pricing/PlanCard.tsx
new file mode 100644
index 000000000..3c1f9d877
--- /dev/null
+++ b/apps/web/components/pages/pricing/PlanCard.tsx
@@ -0,0 +1,191 @@
+import { classNames } from "@cap/utils/helpers";
+import { Check, ChevronDown } from "lucide-react";
+import type { ReactNode } from "react";
+import {
+ BODY_TEXT,
+ type ModeTheme,
+ meshStyle,
+} from "@/components/pages/HomeTwo/theme";
+
+export type PlanToggle = {
+ collapsed: boolean;
+ onToggle: () => void;
+};
+
+export const PlanCard = ({
+ name,
+ tag,
+ theme,
+ featured,
+ blurb,
+ price,
+ cadence,
+ note,
+ lede,
+ controls,
+ cta,
+ ctaNote,
+ featuresTitle,
+ features,
+ footer,
+ summary,
+ collapsed = false,
+ onToggle,
+}: {
+ name: string;
+ tag: string;
+ theme: ModeTheme;
+ featured?: boolean;
+ blurb: string;
+ price?: ReactNode;
+ cadence?: string;
+ note?: ReactNode;
+ lede?: ReactNode;
+ controls: ReactNode;
+ cta: ReactNode;
+ ctaNote: string;
+ featuresTitle: string;
+ features: readonly string[];
+ footer?: ReactNode;
+ summary: string;
+ collapsed?: boolean;
+ onToggle?: () => void;
+}) => {
+ const card = (
+ <article
+ className={classNames(
+ "relative flex h-full flex-col bg-white p-6 lg:p-8",
+ featured
+ ? "rounded-[18px]"
+ : "rounded-[22px] shadow-[0_0_0_1px_rgba(17,17,17,0.06),0_24px_48px_-32px_rgba(17,17,17,0.28)]",
+ )}
+ >
+ {onToggle ? (
+ <button
+ type="button"
+ onClick={onToggle}
+ aria-expanded={!collapsed}
+ aria-label={`${name} plan details`}
+ className={classNames(
+ "absolute inset-x-0 top-0 z-10 rounded-[inherit] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[#111111] lg:hidden",
+ collapsed ? "bottom-0" : "h-20",
+ )}
+ />
+ ) : null}
+ <div className="flex items-start justify-between gap-3">
+ <h2 className="text-[22px] font-normal leading-[1.1] tracking-[-0.02em] text-[#111111]">
+ {name}
+ </h2>
+ <span className="flex shrink-0 items-center gap-2">
+ <span
+ className="hidden rounded-full px-2.5 py-[6px] text-[12px] font-medium leading-none tracking-[-0.01em] lg:inline-block"
+ style={{ background: theme.chip, color: theme.glyph }}
+ >
+ {tag}
+ </span>
+ {onToggle ? (
+ <span
+ aria-hidden="true"
+ className="grid size-7 place-items-center rounded-full bg-[#EDF1F6] text-[#111111] lg:hidden"
+ >
+ <ChevronDown
+ className={classNames(
+ "size-3.5 transition-transform duration-200",
+ collapsed ? "" : "rotate-180",
+ )}
+ />
+ </span>
+ ) : null}
+ </span>
+ </div>
+
+ <div className="mt-2.5 flex flex-wrap items-center gap-x-2.5 gap-y-1.5 lg:hidden">
+ <span
+ className="rounded-full px-2.5 py-[6px] text-[12px] font-medium leading-none tracking-[-0.01em]"
+ style={{ background: theme.chip, color: theme.glyph }}
+ >
+ {tag}
+ </span>
+ {collapsed ? (
+ <span className="text-[14px] text-[rgba(17,17,17,0.6)]">
+ {summary}
+ </span>
+ ) : null}
+ </div>
+
+ <div
+ className={classNames(
+ "flex-col lg:flex lg:flex-1",
+ collapsed ? "hidden" : "flex flex-1",
+ )}
+ >
+ <p
+ className={`${BODY_TEXT} mt-3 min-h-[46px] text-[15px] leading-[1.5] text-[rgba(17,17,17,0.72)]`}
+ >
+ {blurb}
+ </p>
+
+ {price ? (
+ <>
+ <div className="mt-7 flex flex-wrap items-baseline gap-x-2 gap-y-1.5">
+ <span className="whitespace-nowrap text-[46px] font-normal leading-none tracking-[-0.03em] tabular-nums text-[#111111]">
+ {price}
+ </span>
+ <span className="text-[14px] text-[rgba(17,17,17,0.5)]">
+ {cadence}
+ </span>
+ </div>
+ <p className="mt-2 min-h-[20px] text-[13.5px] text-[rgba(17,17,17,0.5)]">
+ {note}
+ </p>
+ </>
+ ) : (
+ <div className="mt-7 border-t border-[#E1E7EE] pt-6">{lede}</div>
+ )}
+
+ <div className="mt-6 min-h-[132px] space-y-3">{controls}</div>
+
+ <div className="mt-6">{cta}</div>
+ <p className="mt-3 text-center text-[13px] text-[rgba(17,17,17,0.5)]">
+ {ctaNote}
+ </p>
+
+ <div className="mt-8 border-t border-[#E1E7EE] pt-7">
+ <p className="text-[13px] font-medium text-[#111111]">
+ {featuresTitle}
+ </p>
+ <ul className="mt-4 space-y-3">
+ {features.map((feature) => (
+ <li key={feature} className="flex items-start gap-3">
+ <span
+ className="mt-px grid size-5 shrink-0 place-items-center rounded-full"
+ style={{ background: theme.chip, color: theme.glyph }}
+ >
+ <Check className="size-3" strokeWidth={2.5} />
+ </span>
+ <span className="text-[14px] leading-snug text-[rgba(17,17,17,0.72)]">
+ {feature}
+ </span>
+ </li>
+ ))}
+ </ul>
+ {footer ? <div className="mt-6">{footer}</div> : null}
+ </div>
+ </div>
+ </article>
+ );
+
+ if (!featured) return card;
+
+ return (
+ <div
+ className="flex rounded-[24px] p-[6px] shadow-[0_28px_56px_-36px_rgba(61,119,194,0.55)]"
+ style={meshStyle(theme)}
+ >
+ <div className="flex-1">{card}</div>
+ </div>
+ );
+};
+
+export const PLAN_LINK =
+ "inline-flex items-center gap-1.5 text-[14px] text-[rgba(17,17,17,0.6)] underline decoration-[rgba(17,17,17,0.25)] underline-offset-[4px] transition-colors duration-200 hover:text-[#111111] hover:decoration-[#111111] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-4 focus-visible:ring-offset-white";
diff --git a/apps/web/components/pages/pricing/PricingPage.tsx b/apps/web/components/pages/pricing/PricingPage.tsx
new file mode 100644
index 000000000..3fc8b9b47
--- /dev/null
+++ b/apps/web/components/pages/pricing/PricingPage.tsx
@@ -0,0 +1,219 @@
+"use client";
+
+import { ArrowDown, ArrowRight } from "lucide-react";
+import Link from "next/link";
+import { useState } from "react";
+import { trackEvent } from "@/app/utils/analytics";
+import { Faq } from "@/components/pages/HomeTwo/Faq";
+import { htMono, htSans, htSerif } from "@/components/pages/HomeTwo/fonts";
+import { HeroSky } from "@/components/pages/HomeTwo/HeroSky";
+import { Testimonials } from "@/components/pages/HomeTwo/Testimonials";
+import {
+ BAND,
+ BODY_TEXT,
+ BTN_PRIMARY,
+ BTN_SECONDARY,
+ CREAM,
+ grainBg,
+ H_HERO,
+ H_SECTION,
+ MONO,
+ SHELL,
+} from "@/components/pages/HomeTwo/theme";
+import { homepageCopy } from "@/data/homepage-copy";
+import { ComparePlans } from "./ComparePlans";
+import { DesktopLicenseCard } from "./DesktopLicenseCard";
+import { EnterpriseCard } from "./EnterpriseCard";
+import { ProCard } from "./ProCard";
+
+const PRICING_FAQ = [
+ "What is the difference between Cap Pro and Desktop License?",
+ "Is there a free version?",
+ "What happens to my recordings if I cancel?",
+ "Can I use Cap for commercial purposes?",
+ "Do you offer team plans?",
+ "What about SOC 2, ISO 27001, GDPR, and HIPAA compliance?",
+ "How does Cap AI work?",
+];
+
+const faqItems = PRICING_FAQ.map((question) =>
+ homepageCopy.faq.items.find((item) => item.question === question),
+).filter((item): item is (typeof homepageCopy.faq.items)[number] =>
+ Boolean(item),
+);
+
+const TRUST = ["SOC 2 Type II", "ISO 27001", "HIPAA", "Open source"];
+
+const scrollTo = (id: string) => {
+ document.getElementById(id)?.scrollIntoView({ behavior: "smooth" });
+};
+
+const Hero = () => (
+ <section className="relative px-5 pb-[168px] pt-12 sm:pt-14 lg:pb-[188px] lg:pt-[56px]">
+ <HeroSky className="rounded-[24px] rounded-b-[28px]" />
+ <div className="relative mx-auto flex max-w-[860px] flex-col items-center text-center">
+ <h1 className={`${H_HERO} text-balance text-[clamp(42px,6.2vw,80px)]`}>
+ Simple, honest pricing
+ </h1>
+ <p
+ className={`${BODY_TEXT} mt-7 max-w-[600px] text-balance text-[16.5px] leading-[1.5] text-[rgba(17,17,17,0.78)] sm:text-[19px]`}
+ >
+ Start free. Pay when you need commercial rights or the cloud, and cancel
+ whenever you like.
+ </p>
+ <button
+ type="button"
+ onClick={() => scrollTo("testimonials")}
+ className="group mt-8 inline-flex max-w-full items-center gap-2.5 rounded-full bg-[#111111] py-1.5 pl-1.5 pr-3.5 text-[13px] leading-none text-white shadow-[0_1px_2px_rgba(17,17,17,0.12),0_10px_24px_-14px_rgba(17,17,17,0.6)] transition-colors duration-200 hover:bg-[#2A2A2A] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-2 focus-visible:ring-offset-[#EDF1F6]"
+ >
+ <span
+ className={`${MONO} hidden rounded-full bg-[#8DBCF0] px-2 py-[5px] text-[10.5px] uppercase leading-none tracking-[0.06em] text-[#111111] sm:inline-block`}
+ >
+ 50,000+
+ </span>
+ <span className="truncate pl-2 sm:hidden">
+ Trusted by 50,000+ users
+ </span>
+ <span className="hidden truncate sm:inline">
+ Trusted by teams and creators
+ </span>
+ <ArrowDown className="hidden size-3.5 text-white/70 transition-transform duration-200 group-hover:translate-y-0.5 group-hover:text-white sm:block" />
+ </button>
+ <ul className="mt-6 flex flex-wrap items-center justify-center gap-x-1 gap-y-2">
+ {TRUST.map((item, i) => (
+ <li key={item} className="flex items-center gap-1">
+ {i > 0 ? (
+ <span
+ aria-hidden="true"
+ className="mx-2 size-[3px] rounded-full bg-[rgba(17,17,17,0.25)]"
+ />
+ ) : null}
+ <span
+ className={`${MONO} text-[11.5px] uppercase leading-none tracking-[0.05em] text-[rgba(17,17,17,0.55)]`}
+ >
+ {item}
+ </span>
+ </li>
+ ))}
+ </ul>
+ <span
+ data-header-sentinel
+ aria-hidden="true"
+ className="pointer-events-none absolute bottom-0 left-0 size-px"
+ />
+ </div>
+ </section>
+);
+
+type PlanKey = "desktop" | "pro" | "enterprise";
+
+const Plans = () => {
+ const [open, setOpen] = useState<PlanKey>("pro");
+ const toggle = (key: PlanKey) => ({
+ collapsed: open !== key,
+ onToggle: () => setOpen(key),
+ });
+ return (
+ // biome-ignore lint/correctness/useUniqueElementIds: stable anchor target for the closing "Get Cap Pro" button
+ <section id="plans" className="relative -mt-[136px] px-5 lg:-mt-[152px]">
+ <div className="mx-auto max-w-[1120px]">
+ <div className="grid items-stretch gap-3 lg:grid-cols-3 lg:gap-4">
+ <DesktopLicenseCard {...toggle("desktop")} />
+ <ProCard {...toggle("pro")} />
+ <EnterpriseCard {...toggle("enterprise")} />
+ </div>
+
+ <div className="mt-8 flex flex-col items-center justify-center gap-x-6 gap-y-2 text-center sm:flex-row">
+ <p
+ className={`${BODY_TEXT} text-[15.5px] text-[rgba(17,17,17,0.65)]`}
+ >
+ Just want to try it? Cap is free for personal use, with no time
+ limit on local recordings.
+ </p>
+ <Link
+ href="/download"
+ onClick={() =>
+ trackEvent("download_cta_clicked", {
+ source_page: "pricing",
+ cta_location: "under_plans",
+ target_url: "/download",
+ })
+ }
+ className="group inline-flex shrink-0 items-center gap-1.5 text-[14.5px] font-medium text-[#111111] underline decoration-[rgba(17,17,17,0.25)] underline-offset-[4px] transition-colors duration-200 hover:decoration-[#111111] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-4 focus-visible:ring-offset-[#F8FAFC]"
+ >
+ Download free
+ <ArrowRight className="size-3.5 transition-transform duration-200 group-hover:translate-x-0.5" />
+ </Link>
+ </div>
+ </div>
+ </section>
+ );
+};
+
+const Closing = () => (
+ <section className="px-5 pb-24 pt-4 lg:pb-28 lg:pt-8">
+ <div className="mx-auto flex max-w-[760px] flex-col items-center text-center">
+ <h2 className={`${H_SECTION} text-balance text-[clamp(36px,4.6vw,56px)]`}>
+ Start free. Upgrade when it earns it.
+ </h2>
+ <p
+ className={`${BODY_TEXT} mt-6 max-w-[520px] text-balance text-[16.5px] leading-[1.5] text-[rgba(17,17,17,0.78)] sm:text-[18px]`}
+ >
+ Record locally today. Move to Cap Pro the moment you need unlimited
+ sharing, AI, or a team workspace.
+ </p>
+ <div className="mt-9 flex flex-col items-stretch gap-3 sm:flex-row sm:items-center">
+ <button
+ type="button"
+ onClick={() => scrollTo("plans")}
+ className={`${BTN_PRIMARY} cursor-pointer`}
+ >
+ Get Cap Pro
+ </button>
+ <Link href="/download" className={BTN_SECONDARY}>
+ Download for free
+ </Link>
+ </div>
+ <p className="mt-6 text-[14px] text-[rgba(17,17,17,0.5)]">
+ Students save 30%.{" "}
+ <Link
+ href="/student-discount"
+ className="text-[#111111] underline decoration-[rgba(17,17,17,0.25)] underline-offset-[4px] transition-colors duration-200 hover:decoration-[#111111]"
+ >
+ Claim the discount
+ </Link>
+ </p>
+ </div>
+ </section>
+);
+
+export const PricingPage = () => (
+ <div
+ data-header-flat
+ className={`${htSans.className} ${htSans.variable} ${htSerif.variable} ${htMono.variable} text-[#111111]`}
+ style={grainBg(SHELL)}
+ >
+ <div className="px-2.5 pb-2.5 pt-[68px] sm:px-4 sm:pb-4 lg:pt-[76px]">
+ <div
+ className="rounded-[24px] shadow-[0_0_0_1px_rgba(17,17,17,0.045)]"
+ style={grainBg(CREAM)}
+ >
+ <div className="rounded-[24px] rounded-b-[28px]" style={grainBg(BAND)}>
+ <Hero />
+ </div>
+ <Plans />
+ <ComparePlans />
+ <Faq
+ items={faqItems}
+ title="Pricing questions, answered."
+ eyebrow={false}
+ />
+ {/* biome-ignore lint/correctness/useUniqueElementIds: stable anchor target for the hero trust pill */}
+ <div id="testimonials" className="scroll-mt-24">
+ <Testimonials eyebrow={false} />
+ </div>
+ <Closing />
+ </div>
+ </div>
+ </div>
+);
diff --git a/apps/web/components/pages/pricing/ProCard.tsx b/apps/web/components/pages/pricing/ProCard.tsx
new file mode 100644
index 000000000..a8e08c9d6
--- /dev/null
+++ b/apps/web/components/pages/pricing/ProCard.tsx
@@ -0,0 +1,162 @@
+"use client";
+
+import { classNames } from "@cap/utils/helpers";
+import NumberFlow from "@number-flow/react";
+import { useMutation } from "@tanstack/react-query";
+import { useCurrency } from "hooks/useCurrency";
+import { useState } from "react";
+import { toast } from "sonner";
+import { useCurrentUser } from "@/app/Layout/AuthContext";
+import { useStripeContext } from "@/app/Layout/StripeContext";
+import { trackEvent } from "@/app/utils/analytics";
+import { BTN_PRIMARY, MODE_THEME } from "@/components/pages/HomeTwo/theme";
+import { homepageCopy } from "@/data/homepage-copy";
+import { PRICING } from "@/data/pricing";
+import { Segmented, Stepper } from "./controls";
+import { PlanCard, type PlanToggle } from "./PlanCard";
+
+const copy = homepageCopy.pricing.pro;
+const theme = MODE_THEME.instant;
+
+export const ProCard = ({ collapsed, onToggle }: PlanToggle) => {
+ const stripeCtx = useStripeContext();
+ const user = useCurrentUser();
+ const { symbol } = useCurrency();
+ const [users, setUsers] = useState(1);
+ const [annual, setAnnual] = useState(false);
+
+ const perUser = annual ? copy.pricing.annual : copy.pricing.monthly;
+ const total = annual
+ ? PRICING.pro.yearlyTotal * users
+ : copy.pricing.monthly * users;
+
+ const guestCheckout = useMutation({
+ mutationFn: async (priceId: string) => {
+ const response = await fetch("/api/settings/billing/guest-checkout", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ priceId, quantity: users }),
+ });
+ const data = await response.json();
+ if (data.url) {
+ window.location.href = data.url;
+ } else {
+ toast.error("Failed to create checkout session");
+ }
+ },
+ onError: () => {
+ toast.error("An error occurred. Please try again.");
+ },
+ });
+
+ const planCheckout = useMutation({
+ mutationFn: async () => {
+ const priceId = stripeCtx.plans[annual ? "yearly" : "monthly"];
+ trackEvent("pricing_cta_clicked", {
+ source_page: "pricing_cards",
+ plan_name: "pro",
+ authenticated: Boolean(user?.email),
+ is_pro: Boolean(user?.isPro),
+ cta_action: user?.email ? "checkout" : "guest_checkout",
+ target_billing_period: annual ? "annual" : "monthly",
+ quantity: users,
+ });
+
+ const response = await fetch("/api/settings/billing/subscribe", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ priceId, quantity: users }),
+ });
+ const data = await response.json();
+
+ if (data.auth === false) {
+ await guestCheckout.mutateAsync(priceId);
+ return;
+ }
+ if (data.subscription === true) {
+ toast.success("You are already on the Cap Pro plan");
+ }
+ if (data.url) {
+ window.location.href = data.url;
+ }
+ },
+ onError: () => {
+ toast.error("Failed to start subscription process");
+ },
+ });
+
+ const loading = planCheckout.isPending || guestCheckout.isPending;
+
+ return (
+ <PlanCard
+ name={copy.title}
+ tag="Most popular"
+ theme={theme}
+ summary={`${symbol}${copy.pricing.monthly} per user, per month`}
+ collapsed={collapsed}
+ onToggle={onToggle}
+ featured
+ blurb="Everything in Desktop, plus unlimited cloud sharing, AI, and team collaboration."
+ price={
+ <>
+ {symbol}
+ <NumberFlow value={perUser} />
+ </>
+ }
+ cadence="per user, per month"
+ note={
+ annual
+ ? "Billed annually. Save 32% against monthly."
+ : `Billed monthly. Switch to annual for ${symbol}${copy.pricing.annual} a month.`
+ }
+ controls={
+ <>
+ <Segmented
+ ariaLabel="Billing cycle for Cap Pro"
+ value={annual ? "annual" : "monthly"}
+ onChange={(value) => setAnnual(value === "annual")}
+ options={[
+ { value: "monthly", label: "Monthly" },
+ { value: "annual", label: "Annual", badge: "Save 32%" },
+ ]}
+ theme={theme}
+ />
+ <Stepper
+ label="Users"
+ value={users}
+ onIncrement={() => setUsers((prev) => prev + 1)}
+ onDecrement={() => setUsers((prev) => Math.max(1, prev - 1))}
+ decrementLabel="Decrease user count"
+ incrementLabel="Increase user count"
+ />
+ <p className="flex items-baseline justify-between text-[14px] text-[rgba(17,17,17,0.6)]">
+ <span>Total</span>
+ <span>
+ <span className="font-medium tabular-nums text-[#111111]">
+ {symbol}
+ <NumberFlow value={total} />
+ </span>{" "}
+ {annual ? "per year" : "per month"}
+ </span>
+ </p>
+ </>
+ }
+ cta={
+ <button
+ type="button"
+ onClick={() => planCheckout.mutate()}
+ disabled={loading}
+ className={classNames(
+ BTN_PRIMARY,
+ "w-full disabled:cursor-not-allowed disabled:opacity-60",
+ )}
+ >
+ {loading ? "Opening checkout..." : "Get Cap Pro"}
+ </button>
+ }
+ ctaNote="Cancel anytime. Your recordings stay yours."
+ featuresTitle="Everything in Desktop License, plus:"
+ features={copy.features.slice(1)}
+ />
+ );
+};
diff --git a/apps/web/components/pages/pricing/controls.tsx b/apps/web/components/pages/pricing/controls.tsx
new file mode 100644
index 000000000..9baf231c9
--- /dev/null
+++ b/apps/web/components/pages/pricing/controls.tsx
@@ -0,0 +1,109 @@
+"use client";
+
+import { classNames } from "@cap/utils/helpers";
+import NumberFlow from "@number-flow/react";
+import { Minus, Plus } from "lucide-react";
+import { MONO, type ModeTheme } from "@/components/pages/HomeTwo/theme";
+
+type SegmentOption = {
+ value: string;
+ label: string;
+ badge?: string;
+};
+
+export const Segmented = ({
+ options,
+ value,
+ onChange,
+ ariaLabel,
+ theme,
+}: {
+ options: readonly [SegmentOption, SegmentOption];
+ value: string;
+ onChange: (value: string) => void;
+ ariaLabel: string;
+ theme: ModeTheme;
+}) => (
+ <fieldset
+ aria-label={ariaLabel}
+ className="m-0 grid min-w-0 grid-cols-2 gap-1 rounded-full border border-[#DDE4EB] bg-white/70 p-1"
+ >
+ {options.map((option) => {
+ const active = option.value === value;
+ return (
+ <button
+ key={option.value}
+ type="button"
+ aria-pressed={active}
+ onClick={() => onChange(option.value)}
+ className={classNames(
+ "flex h-8 items-center justify-center gap-1.5 rounded-full px-2 text-[13px] font-medium sm:px-3 transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-1 focus-visible:ring-offset-white",
+ active
+ ? "text-[#111111]"
+ : "text-[rgba(17,17,17,0.5)] hover:bg-[#EDF1F6] hover:text-[#111111]",
+ )}
+ style={active ? { background: theme.chip } : undefined}
+ >
+ {option.label}
+ {option.badge ? (
+ <span
+ className={`${MONO} hidden whitespace-nowrap rounded-full px-1.5 py-[3px] text-[9.5px] uppercase leading-none tracking-[0.05em] min-[360px]:inline-block`}
+ style={
+ active
+ ? { background: theme.glyph, color: "#FFFFFF" }
+ : { background: theme.chip, color: theme.glyph }
+ }
+ >
+ {option.badge}
+ </span>
+ ) : null}
+ </button>
+ );
+ })}
+ </fieldset>
+);
+
+const STEP_BTN =
+ "grid size-8 place-items-center rounded-full bg-[#EDF1F6] text-[#111111] transition-colors duration-200 hover:bg-[#DCE4EC] disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-[#EDF1F6] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111]";
+
+export const Stepper = ({
+ label,
+ value,
+ onIncrement,
+ onDecrement,
+ decrementLabel,
+ incrementLabel,
+}: {
+ label: string;
+ value: number;
+ onIncrement: () => void;
+ onDecrement: () => void;
+ decrementLabel: string;
+ incrementLabel: string;
+}) => (
+ <div className="flex items-center justify-between">
+ <span className="text-[14px] text-[rgba(17,17,17,0.72)]">{label}</span>
+ <div className="flex items-center gap-1">
+ <button
+ type="button"
+ onClick={onDecrement}
+ disabled={value <= 1}
+ className={STEP_BTN}
+ aria-label={decrementLabel}
+ >
+ <Minus className="size-3.5" strokeWidth={2} />
+ </button>
+ <span className="w-9 text-center text-[15px] font-medium tabular-nums text-[#111111]">
+ <NumberFlow value={value} />
+ </span>
+ <button
+ type="button"
+ onClick={onIncrement}
+ className={STEP_BTN}
+ aria-label={incrementLabel}
+ >
+ <Plus className="size-3.5" strokeWidth={2} />
+ </button>
+ </div>
+ </div>
+);