Pricing sections
What it costs and what you get: three plans with a monthly or yearly switch, a full comparison table, one plan on its own, a usage calculator and a calm Free against Pro.
5 blocks below, each one file and one command. They wear whichever DressCode theme you install, in light and dark.
Three plans
Three plans with the middle one recommended and a monthly or yearly switch that changes the prices and says what yearly saves.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/pricing-tiers.json"use client"
// Pricing, three plans: a monthly or yearly switch (a radio group: arrow keys move between the two) and
// three plans with the middle one recommended. The switch changes every price, each plan says what yearly
// billing saves, and a polite live region tells screen-reader users the prices changed.
import { Check } from "lucide-react"
import { type KeyboardEvent, useId, useRef, useState } from "react"
import { Button } from "@/components/ui/button"
import { cn } from "@/lib/utils"
type Period = "monthly" | "yearly"
const PERIODS: { value: Period; label: string }[] = [
{ value: "monthly", label: "Monthly" },
{ value: "yearly", label: "Yearly" },
]
const PLANS = [
{
name: "Free",
monthly: 0,
yearly: 0,
body: "For your first few clients.",
features: ["Up to 3 clients", "Unlimited invoices", "Card and bank payments", "Basic reminders"],
cta: "Start free",
href: "#start",
},
{
name: "Studio",
monthly: 12,
yearly: 10,
body: "For freelancers and small studios.",
features: ["Unlimited clients", "Reminders in your tone", "Recurring invoices", "Cash-flow forecast", "Your own branding"],
cta: "Start a 14-day trial",
href: "#trial",
featured: true,
},
{
name: "Agency",
monthly: 39,
yearly: 32,
body: "For teams billing many clients.",
features: ["Everything in Studio", "5 seats, roles and approvals", "Multiple brands", "30 currencies", "Priority support"],
cta: "Talk to us",
href: "#sales",
},
]
function note(p: (typeof PLANS)[number], period: Period) {
if (!p.monthly) return "No card needed."
const saving = (p.monthly - p.yearly) * 12
return period === "yearly" ? `$${p.yearly * 12} a year. You save $${saving}.` : `Or $${p.yearly} a month billed yearly, saving $${saving}.`
}
function BillingSwitch({ value, onChange }: { value: Period; onChange: (v: Period) => void }) {
const refs = useRef<(HTMLButtonElement | null)[]>([])
const onKeyDown = (e: KeyboardEvent, i: number) => {
const step = e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : e.key === "ArrowLeft" || e.key === "ArrowUp" ? -1 : 0
if (!step) return
e.preventDefault()
const next = (i + step + PERIODS.length) % PERIODS.length
onChange(PERIODS[next].value)
refs.current[next]?.focus()
}
return (
<div role="radiogroup" aria-label="Billing period" className="inline-flex rounded-full border border-border bg-muted p-1 text-[14px]">
{PERIODS.map((p, i) => {
const on = value === p.value
return (
<button
key={p.value}
ref={(el) => {
refs.current[i] = el
}}
type="button"
role="radio"
aria-checked={on}
tabIndex={on ? 0 : -1}
onClick={() => onChange(p.value)}
onKeyDown={(e) => onKeyDown(e, i)}
className={cn(
"inline-flex h-9 items-center gap-2 rounded-full px-4 font-semibold text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",
on && "bg-card text-foreground shadow-sm",
)}
>
{p.label}
{p.value === "yearly" ? <span className="dc-pill dc-pill-hl h-5 px-1.5 text-[11px]">Save up to 18%</span> : null}
</button>
)
})}
</div>
)
}
export default function PricingTiers() {
const id = useId()
const [period, setPeriod] = useState<Period>("yearly")
const yearly = period === "yearly"
return (
<section aria-labelledby={`${id}-title`} className="py-16 sm:py-24">
<div className="mx-auto w-full max-w-[1200px] px-5 sm:px-8">
<div className="mx-auto max-w-[640px] text-center">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">Pricing</p>
<h2 id={`${id}-title`} className="dc-h mt-3 text-[32px] leading-[1.1] sm:text-[42px]">
Simple pricing that grows with you
</h2>
<p className="mt-4 text-[17px] leading-relaxed text-muted-foreground">Start free. Upgrade when Orbit is saving you more than it costs.</p>
</div>
<div className="mt-10 flex justify-center">
<BillingSwitch value={period} onChange={setPeriod} />
</div>
<p className="sr-only" aria-live="polite">
{yearly ? "Showing yearly prices: Studio $10 and Agency $32 a month, billed once a year." : "Showing monthly prices: Studio $12 and Agency $39 a month."}
</p>
<ul className="mt-10 grid gap-4 lg:grid-cols-3">
{PLANS.map((p) => {
const price = yearly ? p.yearly : p.monthly
return (
<li key={p.name} className={cn("dc-card relative flex flex-col p-7", p.featured && "ring-2 ring-[color:var(--dc-accent)]")}>
{p.featured ? <span className="dc-pill dc-pill-hl absolute top-7 right-7">Most popular</span> : null}
<h3 className="dc-h text-[22px] leading-tight">{p.name}</h3>
<p className="mt-1 text-muted-foreground">{p.body}</p>
<p className="mt-6 flex flex-wrap items-baseline gap-x-1.5">
<span className="dc-h dc-num text-[48px] leading-none">${price}</span>
<span className="text-muted-foreground">{price ? (yearly ? "/ month, billed yearly" : "/ month") : "forever"}</span>
</p>
<p className="mt-2 text-[14px] text-muted-foreground">{note(p, period)}</p>
<Button
size="lg"
variant={p.featured ? "default" : "outline"}
className="mt-6 h-11 w-full text-[15px] font-semibold"
nativeButton={false}
render={<a href={p.href} />}
>
{p.cta}
</Button>
<ul className="mt-7 space-y-3 border-t border-border pt-6 text-[15px]">
{p.features.map((f) => (
<li key={f} className="flex gap-3">
<Check className="mt-0.5 size-[18px] shrink-0 text-[color:var(--dc-accent)]" aria-hidden="true" />
{f}
</li>
))}
</ul>
</li>
)
})}
</ul>
<p className="mt-8 text-center text-[14px] text-muted-foreground">Prices in US dollars, before tax. Every plan sends unlimited invoices.</p>
</div>
</section>
)
}Comparison table
Every feature of every plan in one table. On phones it scrolls sideways inside its own box while the feature names stay put.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/pricing-compare.json// Pricing, comparison table: every feature of every plan, grouped, with each plan's price and action at
// the top of its column and the recommended plan's column tinted. On phones the table scrolls sideways
// inside its own box (the page never does) and the feature names stay pinned on the left. The box takes
// keyboard focus so it can be scrolled without a mouse.
import { Check, Minus } from "lucide-react"
import { Button } from "@/components/ui/button"
import { cn } from "@/lib/utils"
const PLANS = [
{ name: "Free", price: "$0", per: "forever", cta: "Start free", href: "#start" },
{ name: "Studio", price: "$12", per: "/ month", cta: "Start trial", href: "#trial", featured: true },
{ name: "Agency", price: "$39", per: "/ month", cta: "Talk to us", href: "#sales" },
]
type Cell = boolean | string
const GROUPS: { title: string; rows: [string, Cell, Cell, Cell][] }[] = [
{
title: "Invoicing",
rows: [
["Clients", "3", "Unlimited", "Unlimited"],
["Invoices", "Unlimited", "Unlimited", "Unlimited"],
["Quotes and estimates", false, true, true],
["Your own branding", false, true, true],
["Recurring invoices", false, true, true],
["Multiple brands", false, false, true],
],
},
{
title: "Getting paid",
rows: [
["Card and bank payments", true, true, true],
["Currencies", "1", "5", "30"],
["Client portal", true, true, true],
["Payment plans", false, true, true],
],
},
{
title: "Reminders and reports",
rows: [
["Automatic reminders", "Basic", "Your tone", "Your tone"],
["Late fees", false, true, true],
["Cash-flow forecast", false, true, true],
["Export for your accountant", true, true, true],
],
},
{
title: "Team",
rows: [
["Seats", "1", "2", "5"],
["Roles and approvals", false, false, true],
["Support", "Email", "Email", "Priority"],
],
},
]
// The pinned feature column needs an opaque fill so the plan columns slide under it; on phones a hairline
// on its right edge shows where the scrolling starts.
const PIN = "sticky left-0 z-10 w-[148px] min-w-[148px] px-4 text-left sm:w-[34%] sm:px-6 max-sm:shadow-[inset_-1px_0_0_var(--border)]"
const TINT = "bg-[color:color-mix(in_oklab,var(--dc-accent)_6%,var(--card))]"
function Value({ v }: { v: Cell }) {
if (v === true)
return (
<>
<Check className="mx-auto size-5 text-[color:var(--dc-accent)]" aria-hidden="true" />
<span className="sr-only">Included</span>
</>
)
if (v === false)
return (
<>
<Minus className="mx-auto size-5 text-muted-foreground" aria-hidden="true" />
<span className="sr-only">Not included</span>
</>
)
return <span>{v}</span>
}
export default function PricingCompare() {
return (
<section aria-labelledby="pricing-compare-title" className="py-16 sm:py-24">
<div className="mx-auto w-full max-w-[1200px] px-5 sm:px-8">
<div className="mx-auto max-w-[640px] text-center">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">Compare plans</p>
<h2 id="pricing-compare-title" className="dc-h mt-3 text-[32px] leading-[1.1] sm:text-[42px]">
Every feature, side by side
</h2>
<p className="mt-4 text-[17px] leading-relaxed text-muted-foreground">All plans send unlimited invoices. The differences are in how many clients, people and currencies you work with.</p>
</div>
<p className="mt-10 text-center text-[13px] text-muted-foreground sm:hidden">Swipe the table sideways to see every plan.</p>
<div
role="region"
aria-label="Plan comparison table"
tabIndex={0}
className="dc-card mt-3 overflow-x-auto outline-none focus-visible:ring-3 focus-visible:ring-ring/50 sm:mt-12"
>
<table className="w-full min-w-[560px] border-separate border-spacing-0 text-[15px]">
<caption className="sr-only">Orbit plans compared feature by feature</caption>
<thead>
<tr>
<th scope="col" className={cn(PIN, "bg-card py-6 align-bottom text-[14px] font-medium text-muted-foreground")}>
Features
</th>
{PLANS.map((p) => (
<th key={p.name} scope="col" className={cn("w-[22%] min-w-[136px] px-3 pt-6 pb-6 align-bottom font-normal sm:px-6", p.featured && TINT)}>
<div className="flex flex-col items-center text-center">
<span className="flex min-h-[22px] items-center">
{p.featured ? <span className="dc-pill dc-pill-hl">Most popular</span> : null}
</span>
<span className="mt-2 text-[16px] font-semibold">{p.name}</span>
<span className="mt-1 flex items-baseline gap-1">
<span className="dc-h dc-num text-[30px] leading-none">{p.price}</span>
<span className="text-[13px] whitespace-nowrap text-muted-foreground">{p.per}</span>
</span>
<Button
variant={p.featured ? "default" : "outline"}
className="mt-4 h-9 w-full max-w-[160px] font-semibold"
nativeButton={false}
render={<a href={p.href} />}
>
{p.cta}
<span className="sr-only">: {p.name} plan</span>
</Button>
</div>
</th>
))}
</tr>
</thead>
{GROUPS.map((g) => (
<tbody key={g.title}>
<tr>
<th scope="rowgroup" className={cn(PIN, "border-t border-border bg-muted py-2.5 text-[13px] font-semibold text-muted-foreground")}>
{g.title}
</th>
<td colSpan={PLANS.length} className="border-t border-border bg-muted" />
</tr>
{g.rows.map(([label, ...vals]) => (
<tr key={label}>
<th scope="row" className={cn(PIN, "border-t border-border bg-card py-3.5 font-normal")}>
{label}
</th>
{vals.map((v, i) => (
<td key={i} className={cn("border-t border-border px-3 py-3.5 text-center sm:px-6", PLANS[i].featured && TINT)}>
<Value v={v} />
</td>
))}
</tr>
))}
</tbody>
))}
</table>
</div>
</div>
</section>
)
}Single plan
One plan and one price, everything it includes as a two-column checklist, a single action and a line of reassurance.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/pricing-single.json// Pricing, single plan: one card with everything the plan includes as a two-column checklist on the left
// and the price, the one action and a line of reassurance on a tinted panel on the right. On phones the
// price panel comes first, so the price and the action are on the first screen.
import { ArrowRight, Check, ShieldCheck } from "lucide-react"
import { Button } from "@/components/ui/button"
const INCLUDED = [
"Unlimited clients and invoices",
"Reminders in your own tone",
"Card, bank and wallet payments",
"Recurring invoices",
"Quotes that turn into invoices",
"Your logo, colors and domain",
"Cash-flow forecast",
"Late fees, if you want them",
"30 currencies",
"Export for your accountant",
"Two-step sign-in",
"Email support from a person",
]
export default function PricingSingle() {
return (
<section aria-labelledby="pricing-single-title" className="py-16 sm:py-24">
<div className="mx-auto w-full max-w-[1200px] px-5 sm:px-8">
<div className="mx-auto max-w-[640px] text-center">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">Pricing</p>
<h2 id="pricing-single-title" className="dc-h mt-3 text-[32px] leading-[1.1] sm:text-[42px]">
One plan, with everything in it
</h2>
<p className="mt-4 text-[17px] leading-relaxed text-muted-foreground">No tiers to compare and no features held back. One price for all of Orbit, however many clients you bill.</p>
</div>
<div className="dc-card mx-auto mt-12 grid max-w-[1040px] overflow-hidden lg:grid-cols-[1.55fr_1fr]">
<div className="order-2 p-7 sm:p-10 lg:order-1">
<h3 className="dc-h text-[24px] leading-tight">Orbit Studio</h3>
<p className="mt-2 max-w-[460px] text-muted-foreground">For freelancers and small studios who want invoices out the door and money in, without the follow-up emails.</p>
<div className="mt-8 flex items-center gap-4">
<p className="shrink-0 text-[14px] font-semibold text-[color:var(--dc-accent)]">Everything included</p>
<span aria-hidden="true" className="h-px flex-1 bg-border" />
</div>
<ul className="mt-6 grid gap-x-8 gap-y-3.5 text-[15px] sm:grid-cols-2">
{INCLUDED.map((f) => (
<li key={f} className="flex gap-3">
<Check className="mt-0.5 size-[18px] shrink-0 text-[color:var(--dc-accent)]" aria-hidden="true" />
{f}
</li>
))}
</ul>
</div>
<div className="order-1 p-2 lg:order-2">
<div className="flex h-full flex-col items-center justify-center rounded-[calc(var(--dc-radius-card)-4px)] bg-[color:color-mix(in_oklab,var(--dc-accent)_8%,var(--card))] px-6 py-10 text-center sm:px-10">
<p className="font-semibold">Pay monthly, cancel any time</p>
<p className="mt-5 flex items-baseline justify-center gap-1.5">
<span className="dc-h dc-num text-[64px] leading-none">$12</span>
<span className="text-[15px] text-muted-foreground">/ month</span>
</p>
<p className="mt-3 text-[14px] text-muted-foreground">Or $120 a year, two months free</p>
<Button size="lg" className="mt-8 h-12 w-full max-w-[300px] text-[16px] font-semibold" nativeButton={false} render={<a href="#trial" />}>
Start a 14-day trial <ArrowRight className="size-4" aria-hidden="true" />
</Button>
<p className="mt-4 flex items-center justify-center gap-1.5 text-[13px] text-muted-foreground">
<ShieldCheck className="size-4 shrink-0 text-[color:var(--dc-accent)]" aria-hidden="true" />
No card needed for the trial
</p>
</div>
</div>
</div>
<p className="mt-8 text-center text-[14px] text-muted-foreground">
Billing a team of five or more?{" "}
<a href="#sales" className="rounded-sm font-semibold text-foreground underline underline-offset-4 outline-none hover:text-[color:var(--dc-accent)] focus-visible:ring-3 focus-visible:ring-ring/50">
Ask about Agency
</a>
</p>
</div>
</section>
)
}Usage calculator
Usage pricing with a slider for invoices a month: the price, the plan it falls in and the cost per invoice follow as you drag.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/pricing-calculator.json"use client"
// Pricing, usage calculator: graduated pricing per invoice, worked out live from a slider. The price, the
// plan the volume falls in and the cost per invoice follow the slider, and the rate card shows how the
// total is made up. A polite live region reads the result once the slider settles, not on every step.
import { ArrowRight } from "lucide-react"
import { useEffect, useId, useState } from "react"
import { Button } from "@/components/ui/button"
import { Slider } from "@/components/ui/slider"
import { cn } from "@/lib/utils"
const MAX = 1000
const TIERS = [
{ plan: "Free", from: 0, to: 10, rate: 0, range: "First 10 invoices" },
{ plan: "Studio", from: 10, to: 100, rate: 0.5, range: "11 to 100" },
{ plan: "Agency", from: 100, to: 500, rate: 0.3, range: "101 to 500" },
{ plan: "Scale", from: 500, to: Infinity, rate: 0.2, range: "501 and up" },
]
const money = (n: number) =>
new Intl.NumberFormat("en-US", { style: "currency", currency: "USD", minimumFractionDigits: Number.isInteger(n) ? 0 : 2, maximumFractionDigits: 2 }).format(n)
const count = (n: number) => new Intl.NumberFormat("en-US").format(n)
function quote(n: number) {
const lines = TIERS.map((t) => {
const used = Math.max(0, Math.min(n, t.to) - t.from)
return { ...t, used, subtotal: used * t.rate }
})
const total = lines.reduce((s, l) => s + l.subtotal, 0)
const tier = TIERS.find((t) => n <= t.to) ?? TIERS[TIERS.length - 1]
return { lines, total, plan: tier.plan, each: n ? total / n : 0 }
}
export default function PricingCalculator() {
const id = useId()
const [invoices, setInvoices] = useState(120)
const q = quote(invoices)
const summary = `${count(invoices)} invoices a month: ${money(q.total)} a month on the ${q.plan} plan${q.total ? `, ${money(q.each)} an invoice` : ""}.`
// Announce once the value has been still for a moment, so dragging doesn't read out every step.
const [announced, setAnnounced] = useState("")
useEffect(() => {
const t = setTimeout(() => setAnnounced(summary), 700)
return () => clearTimeout(t)
}, [summary])
return (
<section aria-labelledby={`${id}-title`} className="py-16 sm:py-24">
<div className="mx-auto w-full max-w-[1200px] px-5 sm:px-8">
<div className="mx-auto max-w-[640px] text-center">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">Usage pricing</p>
<h2 id={`${id}-title`} className="dc-h mt-3 text-[32px] leading-[1.1] sm:text-[42px]">
Pay for the invoices you send
</h2>
<p className="mt-4 text-[17px] leading-relaxed text-muted-foreground">The first ten each month are free, and every invoice costs less as you send more. Drafts and reminders never count.</p>
</div>
<div className="dc-card mx-auto mt-12 grid max-w-[1040px] overflow-hidden lg:grid-cols-[1.4fr_1fr]">
<div className="p-6 sm:p-9">
<div className="flex items-end justify-between gap-4">
<p id={`${id}-label`} className="font-semibold">
Invoices a month
</p>
<p className="dc-h dc-num text-[32px] leading-none" aria-hidden="true">
{count(invoices)}
</p>
</div>
<Slider
aria-labelledby={`${id}-label`}
value={[invoices]}
onValueChange={(v) => setInvoices(Array.isArray(v) ? v[0] : (v as number))}
min={0}
max={MAX}
step={5}
largeStep={50}
className="mt-6 py-2 **:data-[slot=slider-thumb]:size-5 **:data-[slot=slider-thumb]:border-2 **:data-[slot=slider-thumb]:border-primary **:data-[slot=slider-thumb]:bg-card **:data-[slot=slider-track]:h-2"
/>
<div aria-hidden="true" className="mt-2 flex justify-between text-[12px] text-muted-foreground">
{[0, 250, 500, 750, 1000].map((n) => (
<span key={n} className="dc-num">
{count(n)}
</span>
))}
</div>
<table className="mt-8 w-full text-[14px]">
<caption className="sr-only">How the price is made up</caption>
<thead>
<tr className="text-left text-[12px] text-muted-foreground">
<th scope="col" className="pb-2 font-medium">
Invoices
</th>
<th scope="col" className="pb-2 text-right font-medium">
Each
</th>
<th scope="col" className="hidden pb-2 text-right font-medium sm:table-cell">
Sent
</th>
<th scope="col" className="pb-2 text-right font-medium">
Cost
</th>
</tr>
</thead>
<tbody>
{q.lines.map((l) => {
const current = l.plan === q.plan
return (
<tr key={l.plan} className={cn("border-t border-border", !l.used && "text-muted-foreground")}>
<th scope="row" className="py-3 pr-3 text-left font-normal">
<span className={cn("font-semibold", l.used && "text-foreground", current && "text-[color:var(--dc-accent)]")}>{l.plan}</span>
<span className="ml-2 text-muted-foreground">{l.range}</span>
{current ? <span className="sr-only"> (your plan)</span> : null}
</th>
<td className="dc-num py-3 text-right">{l.rate ? `$${l.rate.toFixed(2)}` : "Free"}</td>
<td className="dc-num hidden py-3 text-right sm:table-cell">{count(l.used)}</td>
<td className="dc-num py-3 pl-3 text-right">{money(l.subtotal)}</td>
</tr>
)
})}
</tbody>
</table>
</div>
<div className="p-2 pt-0 lg:pt-2 lg:pl-0">
<div className="flex h-full flex-col rounded-[calc(var(--dc-radius-card)-4px)] bg-[color:color-mix(in_oklab,var(--dc-accent)_8%,var(--card))] p-6 sm:p-8">
<div className="flex items-center justify-between gap-3">
<p className="font-semibold">Your plan</p>
<span className="dc-pill dc-pill-hl">{q.plan}</span>
</div>
<p className="mt-6 flex items-baseline gap-1.5">
<span className="dc-h dc-num text-[56px] leading-none">{money(q.total)}</span>
<span className="text-[15px] text-muted-foreground">/ month</span>
</p>
<dl className="mt-6 grid grid-cols-2 gap-3 border-t border-border pt-5 text-[14px]">
<div>
<dt className="text-muted-foreground">Per invoice</dt>
<dd className="dc-num mt-0.5 text-[18px] font-semibold">{q.total ? money(q.each) : "Free"}</dd>
</div>
<div>
<dt className="text-muted-foreground">Per year</dt>
<dd className="dc-num mt-0.5 text-[18px] font-semibold">{money(q.total * 12)}</dd>
</div>
</dl>
<p className="sr-only" aria-live="polite">
{announced}
</p>
<div className="mt-auto pt-8">
<Button size="lg" className="h-12 w-full text-[16px] font-semibold" nativeButton={false} render={<a href="#start" />}>
{q.total ? `Start on ${q.plan}` : "Start free"} <ArrowRight className="size-4" aria-hidden="true" />
</Button>
<p className="mt-3 text-center text-[13px] text-muted-foreground">Billed monthly on what you send.</p>
</div>
</div>
</div>
</div>
<p className="mt-8 text-center text-[14px] text-muted-foreground">
Sending more than 1,000 a month?{" "}
<a href="#sales" className="rounded-sm font-semibold text-foreground underline underline-offset-4 outline-none hover:text-[color:var(--dc-accent)] focus-visible:ring-3 focus-visible:ring-ring/50">
Talk to us about volume pricing
</a>
</p>
</div>
</section>
)
}Free and Pro
Two plans side by side, Free and Pro, with what changes when you upgrade said in plain words.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/pricing-two-plans.json// Pricing, two plans: Free and Pro as the two halves of one card, each with its price, its action and
// what you get in plain sentences rather than ticks, and a footer that says switching is safe. Pro sits
// on a faint tint instead of a loud ring, to keep the section calm.
import { ArrowRight, RefreshCw } from "lucide-react"
import { Button } from "@/components/ui/button"
import { cn } from "@/lib/utils"
const PLANS = [
{
name: "Free",
price: "$0",
per: "forever",
body: "For getting started and for the odd side project.",
lead: "What you get",
points: [
"Up to three clients, with as many invoices as you like.",
"Clients pay by card or bank transfer from the invoice.",
"One polite reminder when an invoice is late.",
"A small Orbit line at the bottom of each invoice.",
],
cta: "Start free",
href: "#start",
},
{
name: "Pro",
price: "$12",
per: "a month",
body: "For when invoicing is how you pay the rent.",
lead: "Everything in Free, and",
points: [
"No limit on clients, so there is room to grow.",
"Reminders before and after due dates, in your voice.",
"Your logo and colors on invoices, and none of ours.",
"Recurring invoices, late fees and a forecast.",
],
cta: "Try Pro free for 14 days",
href: "#trial",
pro: true,
},
]
export default function PricingTwoPlans() {
return (
<section aria-labelledby="pricing-two-plans-title" className="py-16 sm:py-24">
<div className="mx-auto w-full max-w-[1200px] px-5 sm:px-8">
<div className="mx-auto max-w-[640px] text-center">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">Pricing</p>
<h2 id="pricing-two-plans-title" className="dc-h mt-3 text-[32px] leading-[1.1] sm:text-[42px]">
Free to start, Pro when it pays
</h2>
<p className="mt-4 text-[17px] leading-relaxed text-muted-foreground">Two plans and no small print. Most people stay on Free until their fourth client.</p>
</div>
<div className="dc-card mx-auto mt-12 max-w-[960px] overflow-hidden">
<ul className="grid md:grid-cols-2">
{PLANS.map((p) => (
<li
key={p.name}
className={cn(
"flex flex-col p-7 sm:p-10",
p.pro && "border-t border-border bg-[color:color-mix(in_oklab,var(--dc-accent)_5%,var(--card))] md:border-t-0 md:border-l",
)}
>
<div className="flex items-center justify-between gap-3">
<h3 className="dc-h text-[26px] leading-tight">{p.name}</h3>
{p.pro ? <span className="dc-pill dc-pill-hl">14 days free</span> : null}
</div>
<p className="mt-2 text-muted-foreground">{p.body}</p>
<p className="mt-7 flex items-baseline gap-1.5">
<span className="dc-h dc-num text-[48px] leading-none">{p.price}</span>
<span className="text-muted-foreground">{p.per}</span>
</p>
<Button
size="lg"
variant={p.pro ? "default" : "outline"}
className="mt-7 h-11 w-full text-[15px] font-semibold"
nativeButton={false}
render={<a href={p.href} />}
>
{p.cta}
{p.pro ? <ArrowRight className="size-4" aria-hidden="true" /> : null}
</Button>
<p className="mt-8 text-[14px] font-semibold">{p.lead}</p>
<ul className="mt-3 space-y-3 text-[15px] leading-relaxed text-muted-foreground">
{p.points.map((t) => (
<li key={t} className="flex gap-3 text-pretty">
<span aria-hidden="true" className={cn("mt-[0.6em] size-1.5 shrink-0 rounded-full", p.pro ? "bg-[color:var(--dc-accent)]" : "bg-muted-foreground/50")} />
{t}
</li>
))}
</ul>
</li>
))}
</ul>
<div className="flex items-start gap-3 border-t border-border px-7 py-5 text-[14px] sm:items-center sm:px-10">
<RefreshCw className="mt-0.5 size-4 shrink-0 text-[color:var(--dc-accent)] sm:mt-0" aria-hidden="true" />
<p className="text-muted-foreground">
<span className="font-semibold text-foreground">Change your mind any time.</span> Going back to Free keeps every client and invoice you have; only the Pro extras switch off.
</p>
</div>
</div>
</div>
</section>
)
}