Files
components/pricing-01.tsx
import Link from "next/link"
import {
  Check,
} from "@designali/icons"

import { Button } from "@/components/ui/button"

import { CounterNumber } from "@/components/ui/counter-number"
import { GridPattern } from "@/components/ui/grid-pattern"

export function Pricing() {
    return (
        <section id="pricing" className="scroll-mt-40 flex h-screen relative w-full flex-col items-center px-3 justify-center">
            <div className="z-10 flex justify-center">
                <div className="grid max-w-5xl items-center gap-6 md:grid-cols-5 md:gap-0 md:px-12">
                    <div className="bg-background/50 flex h-min flex-col justify-between space-y-8 border-y p-6 backdrop-blur-lg md:col-span-2 md:my-2 md:rounded-l-md md:border md:border-r-0 lg:p-10">
                        <div className="space-y-4">
                            <div>
                                <h2 className="text-md font-thin">Free Forever</h2>
                                <span className="my-3 block text-3xl font-semibold md:text-7xl">
                                    $0
                                </span>
                                <p className="text-muted-foreground text-sm">
                                    Perfect for individual designers and engineers getting started
                                    with design.
                                </p>
                            </div>

                            <Button variant={"outline"}>
                                <Link href="/blocks">Get Started</Link>
                            </Button>



                            <div>
                                <h3 className="text-muted-foreground mb-2 text-xs">Included</h3>
                                <ul className="list-outside space-y-2 text-sm">
                                    <li className="flex items-center gap-2">
                                        <Check className="size-3 text-primary" />
                                        Access to free all designs
                                    </li>
                                    <li className="flex items-center gap-2">
                                        <Check className="size-3 text-primary" />
                                        Community forum access
                                    </li>
                                </ul>

                                <p className="text-muted-foreground mt-3 text-xs">
                                    *Free plan features are limited but enough to get you started
                                    with your first designs.
                                </p>
                            </div>
                        </div>
                    </div>

                    <div className="bg-background rounded-md border p-6 shadow-2xl/10 md:col-span-3 lg:p-10">
                        <div className="space-y-4">
                            <div>
                                <h2 className="text-xl font-thin">Business Plan</h2>
                                <div className="flex items-end gap-1">
                                    <CounterNumber
                                        value={1995}
                                        prefix="$"
                                        separator=""
                                        className="my-3 block text-7xl font-semibold tracking-tighter"
                                    />
                                    <span className="mb-4 block text-xl font-thin">/ Month</span>
                                </div>
                                <p className="text-muted-foreground text-sm">
                                    Designed for brands and teams managing multiple clients and
                                    high-volume projects.
                                </p>
                            </div>
                            <div className="flex gap-2">
                                <Button >
                                    <Link href="https://cal.com/designali/30min" target="_blank">
                                        Join Today
                                    </Link>
                                </Button>
                                <Button variant={"outline"}>
                                    <Link href="https://cal.com/designali/30min" target="_blank">
                                        Book a Call
                                    </Link>
                                </Button>
                            </div>
 
                            <div>
                                <h3 className="text-muted-foreground mb-2 text-xs font-light">
                                    What’s included:
                                </h3>
                                <ul className="list-outside space-y-2 text-sm">
                                    <li className="flex items-center gap-2">
                                        <Check className="size-3 text-primary" />I personally
                                        handle all design work
                                    </li>
                                    <li className="flex items-center gap-2">
                                        <Check className="size-3 text-primary" />
                                        Unlimited design revisions
                                    </li>
                                    <li className="flex items-center gap-2">
                                        <Check className="size-3 text-primary" />
                                        Daily updates on your requests
                                    </li>
                                    <li className="flex items-center gap-2">
                                        <Check className="size-3 text-primary" />
                                        One active request at a time for better quality
                                    </li>
                                    <li className="flex items-center gap-2">
                                        <Check className="size-3 text-primary" />
                                        Pause or cancel anytime
                                    </li>
                                </ul>

                                <p className="text-muted-foreground mt-3 text-xs">
                                    *Pro plan is ideal for professionals and brands who need full
                                    access to all design creatives of my work.
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div
                className="absolute inset-0 z-0"
                style={{
                    background: 'radial-gradient(ellipse at 50% 50%, var(--primary) 0%, var(--background) 70%)',
                    opacity: 0.7
                }}
            >
                <GridPattern
                    width={40}
                    height={40}
                    className="stroke-primary/40 [mask-image:radial-gradient(ellipse_at_center,black_0%,transparent_75%)]"
                />
            </div>

        </section>
    )
}
A simple pricing section.
pricing-01
pricing-01
Files
components/pricing-02.tsx
"use client"

import { useState } from "react"
import {
  CircleCheck,
} from "@designali/icons"
import { cn } from "@/lib/utils"
import { Button } from "@/components/ui/button"
import {
  Card,
  CardContent,
  CardFooter,
  CardHeader,
} from "@/components/ui/card"
import { Switch } from "@/components/ui/switch"
import { Separator } from "@/components/ui/separator"

interface Plan {
  name: string
  description?: string
  prices: {
    monthly: string
    yearly: string
  }
  features: string[]
  popular?: boolean
  cta: {
    text: string
    url: string
  }
}

interface Pricing01Props {
  title?: string
  description?: string
  plans?: Plan[]
  className?: string
}

export const Pricing01 = ({
  title = "Simple, transparent pricing",
  description = "Everything you need to build beautiful products with Designali.",
  plans = [
    {
      name: "Free",
      description: "For personal projects and experimentation.",
      prices: {
        monthly: "$0",
        yearly: "$0",
      },
      features: [
        "Core UI components",
        "Designali components",
        "Copy & paste code",
        "Community support",
      ],
      cta: {
        text: "Get Started",
        url: "/blocks",
      },
    },
    {
      name: "Pro",
      description: "For designers and developers building products.",
      prices: {
        monthly: "$19",
        yearly: "$190",
      },
      popular: true,
      features: [
        "Everything in Free",
        "Premium components",
        "Advanced templates",
        "Figma resources",
        "Priority support",
        "Early access",
      ],
      cta: {
        text: "Start Building",
        url: "/pricing",
      },
    },
    {
      name: "Team",
      description: "For teams shipping products at scale.",
      prices: {
        monthly: "$49",
        yearly: "$490",
      },
      features: [
        "Everything in Pro",
        "Team collaboration",
        "Private components",
        "Custom templates",
        "Dedicated support",
        "Early access",
      ],
      cta: {
        text: "Contact Sales",
        url: "/contact",
      },
    },
  ],
  className,
}: Pricing01Props) => {
  const [isAnnual, setIsAnnual] = useState(false)

  return (
    <section
      className={cn(
        "relative w-full h-screen flex items-center justify-center overflow-hidden py-10",
        className
      )}
    >
      <div className="max-w-6xl w-full  mx-auto px-4">
        {/* Header */}
        <div className="mx-auto flex max-w-2xl flex-col items-center gap-5 text-center">
          <h2 className="text-4xl font-medium tracking-tight md:text-5xl">
            {title}
          </h2>

          <p className="max-w-lg text-muted-foreground">
            {description}
          </p>

          {/* Billing Toggle */}
          <div className="mt-2 flex items-center gap-4 border bg-background px-4 py-2">
            <span
              className={cn(
                "text-sm transition-colors",
                !isAnnual
                  ? "font-medium text-foreground"
                  : "text-muted-foreground"
              )}
            >
              Monthly
            </span>

            <Switch
              checked={isAnnual}
              onCheckedChange={setIsAnnual}
            />

            <span
              className={cn(
                "text-sm transition-colors",
                isAnnual
                  ? "font-medium text-foreground"
                  : "text-muted-foreground"
              )}
            >
              Yearly
            </span>

            <span className="bg-muted px-2 py-0.5 text-xs font-medium">
              Save 20%
            </span>
          </div>
        </div>

        {/* Pricing Cards */}
        <div className="mt-14 flex flex-col items-stretch justify-center gap-6 lg:flex-row">
          {plans.map((plan) => (
            <Card
              key={plan.name}
              className={cn(
                "relative flex w-full max-w-md flex-col",
                plan.popular && "border-2 border-foreground shadow-lg"
              )}
            >
              {plan.popular && (
                <div className="absolute -top-3.5 left-1/2 -translate-x-1/2">
                  <span className="rounded-full bg-foreground px-4 py-1.5 text-xs font-medium whitespace-nowrap text-background">
                    Most Popular
                  </span>
                </div>
              )}

              <CardHeader className="gap-3 p-6">
                <h3 className="text-xl font-medium">{plan.name}</h3>

                {plan.description && (
                  <p className="text-sm text-muted-foreground">
                    {plan.description}
                  </p>
                )}

                <div className="flex items-baseline gap-1 pt-3">
                  <span className="text-5xl font-semibold tracking-tight">
                    {isAnnual
                      ? plan.prices.yearly
                      : plan.prices.monthly}
                  </span>

                  <span className="text-sm text-muted-foreground">
                    {isAnnual ? "/year" : "/month"}
                  </span>
                </div>
              </CardHeader>

              <CardContent className="flex flex-1 flex-col gap-5 px-6">
                <Separator />

                <ul className="flex flex-1 flex-col gap-3.5">
                  {plan.features.map((feature) => (
                    <li
                      key={feature}
                      className="flex items-center gap-3 text-sm"
                    >
                      <CircleCheck className="size-4 shrink-0" />
                      <span>{feature}</span>
                    </li>
                  ))}
                </ul>
              </CardContent>

              <CardFooter className="p-6">
                <Button
                  size="lg"
                  variant={plan.popular ? "default" : "outline"}
                  className="w-full"
                   
                >
                  <a href={plan.cta.url}>{plan.cta.text}</a>
                </Button>
              </CardFooter>
            </Card>
          ))}
        </div>
      </div>
    </section>
  )
}
 
A simple pricing section.
pricing-02
pricing-02
Files
components/pricing-03.tsx
import {
  Check,
} from "@designali/icons"
import { cn } from "@/lib/utils"
import { Button } from "@/components/ui/button"

interface Plan {
  name: string
  price: string
  popular?: boolean
  cta?: {
    text: string
    url: string
  }
}

interface FeatureItem {
  name: string
  values: (string | boolean)[]
}

interface Pricing02Props {
  title?: string
  description?: string
  plans?: Plan[]
  features?: FeatureItem[]
  className?: string
}

export const Pricing02 = ({
  title = "Compare plans",
  description = "Choose the plan that fits your needs.",
  plans = [
    {
      name: "Free",
      price: "$0",
      cta: {
        text: "Get Started",
        url: "/blocks",
      },
    },
    {
      name: "Pro",
      price: "$19",
      popular: true,
      cta: {
        text: "Start Building",
        url: "/pricing",
      },
    },
    {
      name: "Team",
      price: "$49",
      cta: {
        text: "Get Started",
        url: "/blocks",
      },
    },
    {
      name: "Enterprise",
      price: "$99",
      cta: {
        text: "Contact Sales",
        url: "/contact",
      },
    },
  ],
  features = [
    {
      name: "Components",
      values: ["50+", "460+", "460+", "460+ & custom"],
    },
    {
      name: "Templates",
      values: ["5", "240+", "240+", "240+ & custom"],
    },
    {
      name: "Support",
      values: ["Community", "Priority", "Priority", "Dedicated"],
    },
    {
      name: "Design resources",
      values: [true, true, true, true],
    },
    {
      name: "Figma resources",
      values: [false, true, true, true],
    },
    {
      name: "Premium components",
      values: [false, true, true, true],
    },
    {
      name: "Team collaboration",
      values: [false, false, true, true],
    },
    {
      name: "Custom components",
      values: [false, false, true, true],
    },
    {
      name: "Priority updates",
      values: [false, true, true, true],
    },
  ],
  className,
}: Pricing02Props) => (
  <section
    className={cn(
      "relative w-full h-screen flex items-center justify-center overflow-hidden py-10",
      className
    )}
  >
    <div className="max-w-6xl w-full mx-auto px-4">
      {/* Header */}
      <div className="mx-auto flex max-w-2xl flex-col items-center gap-4 text-center">
        <h2 className="text-4xl font-medium tracking-tight md:text-5xl">
          {title}
        </h2>

        <p className="text-muted-foreground">{description}</p>
      </div>

      {/* Comparison */}
      <div className="mt-14 overflow-x-auto border">
        <table className="w-full min-w-[900px] border-collapse">
          <thead>
            <tr className="border-b">
              <th className="w-[220px] p-6 text-left" />

              {plans.map((plan) => (
                <th
                  key={plan.name}
                  className={cn(
                    "min-w-[170px] p-3 text-center align-top",
                    plan.popular && "bg-muted/50"
                  )}
                >
                  <div className="flex flex-col items-center gap-2">
                    {plan.popular && (
                      <span className="mb-1 rounded-full bg-foreground px-3 py-1 text-[11px] font-medium text-background">
                        Most Popular
                      </span>
                    )}

                    <span className="text-sm font-medium">
                      {plan.name}
                    </span>

                    <div className="flex items-baseline gap-1">
                      <span className="text-3xl font-semibold tracking-tight">
                        {plan.price}
                      </span>

                      <span className="text-xs text-muted-foreground">
                        /month
                      </span>
                    </div>
                  </div>
                </th>
              ))}
            </tr>
          </thead>

          <tbody>
            {features.map((feature) => (
              <tr
                key={feature.name}
                className="border-b last:border-b-0"
              >
                <td className="p-3 px-5 text-sm font-medium">
                  {feature.name}
                </td>

                {feature.values.map((value, index) => (
                  <td
                    key={index}
                    className={cn(
                      "p-3 text-center text-sm",
                      plans[index]?.popular && "bg-muted/30"
                    )}
                  >
                    {value === true ? (
                      <div className="flex justify-center">
                        <div className="flex size-6 items-center justify-center rounded-full bg-foreground text-background">
                          <Check className="size-3.5" strokeWidth={2.5} />
                        </div>
                      </div>
                    ) : value === false ? (
                      <span className="text-muted-foreground/50">
                        —
                      </span>
                    ) : (
                      <span className="text-muted-foreground">
                        {value}
                      </span>
                    )}
                  </td>
                ))}
              </tr>
            ))}

            {/* CTA */}
            <tr>
              <td className="p-5" />

              {plans.map((plan) => (
                <td
                  key={plan.name}
                  className={cn(
                    "p-5",
                    plan.popular && "bg-muted/30"
                  )}
                >
                  <Button
                    variant={plan.popular ? "default" : "outline"}
                    className="w-full"
                     
                  >
                    <a href={plan.cta?.url ?? "#"}>
                      {plan.cta?.text ?? "Get Started"}
                    </a>
                  </Button>
                </td>
              ))}
            </tr>
          </tbody>
        </table>
      </div>
    </div>
  </section>
)
 
A simple pricing section.
pricing-03
pricing-03
Files
components/pricing-04.tsx
"use client"

import { useState } from "react"
import {
  Check,
} from "@designali/icons"
import { cn } from "@/lib/utils"
import { Button } from "@/components/ui/button"
import { Card } from "@/components/ui/card"
import {
  Tabs,
  TabsList,
  TabsTrigger,
} from "@/components/ui/tabs"

import { CounterNumber } from "@/components/ui/counter-number"

interface Plan {
  name: string
  prices: {
    monthly: {
      amount: string
      suffix: string
    }
    yearly: {
      amount: string
      suffix: string
    }
  }
  description: string
  features: string[]
  popular?: boolean
  cta: {
    text: string
    url: string
    disabled?: boolean
  }
}

interface Pricing04Props {
  title?: string
  plans?: Plan[]
  className?: string
}

export const Pricing04 = ({
  title = "Choose your plan",
  plans = [
    {
      name: "Free",
      prices: {
        monthly: {
          amount: "0",
          suffix: "USD / month",
        },
        yearly: {
          amount: "0",
          suffix: "USD / year",
        },
      },
      description:
        "Everything you need to explore Designali and start building.",
      features: [
        "Access to core components",
        "Designali UI library",
        "Copy & paste components",
        "Community support",
        "Free updates",
      ],
      cta: {
        text: "Get Started",
        url: "#",
      },
    },
    {
      name: "Pro",
      prices: {
        monthly: {
          amount: "19",
          suffix: "USD / month",
        },
        yearly: {
          amount: "15",
          suffix: "USD / month",
        },
      },
      description:
        "For designers and developers building production-ready products.",
      features: [
        "Everything in Free",
        "Premium components",
        "Advanced templates",
        "Figma resources",
        "Priority support",
        "Early access",
      ],
      popular: true,
      cta: {
        text: "Start Building",
        url: "#",
      },
    },
    {
      name: "Team",
      prices: {
        monthly: {
          amount: "49",
          suffix: "USD / month",
        },
        yearly: {
          amount: "39",
          suffix: "USD / month",
        },
      },
      description:
        "For teams that need a shared design system and faster workflow.",
      features: [
        "Everything in Pro",
        "Team collaboration",
        "Private components",
        "Custom templates",
        "Dedicated support",
        "Priority updates",
      ],
      cta: {
        text: "Get Team",
        url: "#",
      },
    },
  ],
  className,
}: Pricing04Props) => {
  const [billing, setBilling] = useState<"monthly" | "yearly">("monthly")

  return (
    <section
      className={cn(
        "relative w-full h-screen flex items-center justify-center overflow-hidden py-10",
        className
      )}
    >
      <div className="max-w-6xl w-full mx-auto px-4">
        {/* Header */}
        <div className="flex flex-col items-center gap-6 text-center">
          <h2 className="text-4xl font-medium tracking-tight md:text-5xl">
            {title}
          </h2>

          <p className="max-w-xl text-muted-foreground">
            Build faster with a modern collection of components,
            templates, and resources for Design Engineers.
          </p>

          {/* Billing */}
          <Tabs
            value={billing}
            onValueChange={(value) =>
              setBilling(value as "monthly" | "yearly")
            }
          >
            <TabsList className="h-10 gap-1 bg-muted p-1">
              <TabsTrigger
                value="monthly"
                className="px-5 text-sm data-[state=active]:bg-background data-[state=active]:shadow-sm"
              >
                Monthly
              </TabsTrigger>

              <TabsTrigger
                value="yearly"
                className="flex items-center gap-2 px-5 text-sm data-[state=active]:bg-background data-[state=active]:shadow-sm"
              >
                Yearly

                <span
                  className={cn(
                    "rounded-full px-1.5 py-0.5 text-[10px] font-medium",
                    billing === "yearly"
                      ? "bg-foreground text-background"
                      : "bg-background text-muted-foreground"
                  )}
                >
                  Save 20%
                </span>
              </TabsTrigger>
            </TabsList>
          </Tabs>
        </div>

        {/* Plans */}
        <div className="mt-12 flex flex-col items-stretch justify-center gap-5 lg:flex-row">
          {plans.map((plan) => {
            const price =
              billing === "yearly"
                ? plan.prices.yearly
                : plan.prices.monthly

            return (
              <Card
                key={plan.name}
                className={cn(
                  "flex w-full max-w-sm flex-col gap-0 overflow-hidden p-0 shadow-none",
                  plan.popular && "border-foreground/30"
                )}
              >
                {/* Plan Header */}
                <div
                  className={cn(
                    "relative flex h-[72px] items-center overflow-hidden bg-muted px-6 pb-5",
                    plan.popular &&
                      "bg-foreground text-background"
                  )}
                >
                  {plan.popular && (
                    <div
                      className="pointer-events-none absolute inset-0 opacity-20"
                      style={{
                        background:
                          "radial-gradient(circle at 75% 10%, white 0%, transparent 55%)",
                      }}
                    />
                  )}

                  <div className="relative flex w-full items-center justify-between">
                    <h3 className="text-lg font-semibold">
                      {plan.name}
                    </h3>

                    {plan.popular && (
                      <span className="border border-background/20 px-2.5 py-1 text-[10px] font-medium">
                        Popular
                      </span>
                    )}
                  </div>
                </div>

                {/* Plan Body */}
                <div className="relative z-10 -mt-5 flex flex-1 flex-col gap-5 border-t bg-background p-6">
                  <p className="min-h-[2.5rem] text-sm leading-snug text-muted-foreground">
                    {plan.description}
                  </p>

                  {/* Price */}
                  <div className="flex flex-col gap-5">
                    <div className="flex items-baseline gap-1">
                      <span className="self-start pt-1 text-base font-medium">
                        $
                      </span>

                      <CounterNumber
                        value={Number(price.amount)}
                        className="text-5xl font-semibold tracking-tight"
                      />

                      <span className="self-end pb-1 text-xs text-muted-foreground">
                        {price.suffix}
                      </span>
                    </div>

                    <Button
                      variant={plan.popular ? "default" : "outline"}
                      className={cn(
                        "w-full",
                        plan.popular &&
                          "bg-foreground text-background hover:bg-foreground/90"
                      )}
                      disabled={plan.cta.disabled}
                      
                    >
                      {plan.cta.disabled ? (
                        <span>{plan.cta.text}</span>
                      ) : (
                        <a href={plan.cta.url}>
                          {plan.cta.text}
                        </a>
                      )}
                    </Button>
                  </div>

                  {/* Features */}
                  <ul className="flex flex-col gap-3 border-t pt-5">
                    {plan.features.map((feature) => (
                      <li
                        key={feature}
                        className="flex items-center gap-2.5 text-sm text-muted-foreground"
                      >
                        <Check className="size-4 shrink-0 text-foreground" />
                        <span>{feature}</span>
                      </li>
                    ))}
                  </ul>
                </div>
              </Card>
            )
          })}
        </div>
      </div>
    </section>
  )
}
 
A simple pricing section.
pricing-04
pricing-04
Files
components/pricing-05.tsx
"use client"

import { useState } from "react"
import {
  Check,
} from "@designali/icons"

import { Button } from "@/components/ui/button"
import { Switch } from "@/components/ui/switch"
import { cn } from "@/lib/utils"

import { CounterNumber } from "@/components/ui/counter-number"

const plans = [
  {
    name: "Starter",
    monthly: 0,
    description: "For individuals exploring the library.",
    features: ["40 free Designali blocks", "Free icons and logos", "Personal projects"],
  },
  {
    name: "Pro",
    monthly: 24,
    description: "For freelancers shipping client work.",
    features: [
      "All 460+ Designali blocks",
      "Figma source files",
      "Commercial license",
      "Priority updates",
    ],
    featured: true,
  },
  {
    name: "Team",
    monthly: 79,
    description: "For studios with shared libraries.",
    features: [
      "Everything in Pro",
      "10 seats included",
      "Private registry",
      "Direct line to Ali Imam",
    ],
  },
]

export function Pricing05() {
  const [yearly, setYearly] = useState(true)

  return (
    <section className="w-full bg-background py-20">
      <div className="mx-auto max-w-6xl px-6">
        <div className="text-center">
          <h2 className="text-3xl font-semibold tracking-tight md:text-5xl">
            Simple, honest Designali pricing
          </h2>
          <div className="mt-6 inline-flex items-center gap-3 text-sm">
            <span className={cn(!yearly && "font-medium")}>Monthly</span>
            <Switch
              checked={yearly}
              onCheckedChange={setYearly}
              aria-label="Toggle yearly billing"
            />
            <span className={cn(yearly && "font-medium")}>
              Yearly <span className="text-muted-foreground">(save 20%)</span>
            </span>
          </div>
        </div>
        <div className="mt-12 grid border-t border-l border-border md:grid-cols-3">
          {plans.map((plan) => {
            const price = yearly ? Math.round(plan.monthly * 0.8) : plan.monthly
            return (
              <div
                key={plan.name}
                className={cn(
                  "flex flex-col border-r border-b border-border p-8",
                  plan.featured && "bg-muted/50"
                )}
              >
                <div className="flex items-center justify-between">
                  <h3 className="font-medium">{plan.name}</h3>
                  {plan.featured && (
                    <span className="bg-primary px-2 py-0.5 text-xs text-primary-foreground">
                      Popular
                    </span>
                  )}
                </div>
                <p className="mt-2 text-sm text-muted-foreground">
                  {plan.description}
                </p>
                <p className="mt-8 flex items-end gap-1">
                  <CounterNumber
                    value={price}
                    prefix="$"
                    className="text-5xl font-semibold tracking-tighter"
                  />
                  <span className="mb-1 text-sm text-muted-foreground">
                    / month
                  </span>
                </p>
                <Button
                  className="mt-8 w-full"
                  variant={plan.featured ? "default" : "outline"}
                >
                  {plan.monthly === 0
                    ? "Start for free"
                    : `Choose ${plan.name}`}
                </Button>
                <ul className="mt-8 space-y-3 text-sm">
                  {plan.features.map((feature) => (
                    <li key={feature} className="flex items-center gap-2">
                      <Check className="size-4 text-muted-foreground" />
                      {feature}
                    </li>
                  ))}
                </ul>
              </div>
            )
          })}
        </div>
      </div>
    </section>
  )
}
Three pricing tiers with a monthly and yearly billing switch.
pricing-05
pricing-05
Files
components/pricing-06.tsx
import {
  Check,
  Minus,
} from "@designali/icons"

import { Button } from "@/components/ui/button"

const plans = ["Free", "Pro", "Team"]

const rows: { feature: string; values: (boolean | string)[] }[] = [
  { feature: "Designali blocks", values: ["40", "460+", "460+"] },
  { feature: "Team members", values: ["1", "Up to 15", "Unlimited"] },
  { feature: "@designali/icons and logos", values: [true, true, true] },
  { feature: "Figma source files", values: [false, true, true] },
  { feature: "Private registry", values: [false, true, true] },
  { feature: "Landing pages and templates", values: [false, true, true] },
  { feature: "Custom blocks from the studio", values: [false, false, true] },
  {
    feature: "Support",
    values: ["Community", "support@designali.com, 24h", "Direct with Ali Imam"],
  },
]

export function Pricing06() {
  return (
    <section className="w-full bg-background py-20">
      <div className="mx-auto max-w-5xl px-6">
        <h2 className="text-3xl font-semibold tracking-tight md:text-4xl">
          Compare plans
        </h2>
        <p className="mt-3 text-muted-foreground">
          Every Designali plan includes free updates for life.
        </p>
        <div className="mt-10 overflow-x-auto border border-border">
          <table className="w-full min-w-[640px] text-sm">
            <thead>
              <tr className="border-b border-border">
                <th className="p-4 text-left font-normal text-muted-foreground">
                  Features
                </th>
                {plans.map((plan, i) => (
                  <th
                    key={plan}
                    className="border-l border-border p-4 text-left"
                  >
                    <p className="font-medium">{plan}</p>
                    <p className="mt-1 text-2xl font-semibold tracking-tight">
                      {["$12", "$48", "Custom"][i]}
                    </p>
                    <Button
                      size="sm"
                      variant={i === 1 ? "default" : "outline"}
                      className="mt-3 w-full"
                    >
                      {i === 2 ? "Contact sales" : "Get started"}
                    </Button>
                  </th>
                ))}
              </tr>
            </thead>
            <tbody>
              {rows.map((row) => (
                <tr
                  key={row.feature}
                  className="border-b border-border last:border-b-0"
                >
                  <td className="p-4">{row.feature}</td>
                  {row.values.map((value, i) => (
                    <td key={i} className="border-l border-border p-4">
                      {value === true ? (
                        <Check className="size-4" aria-label="Included" />
                      ) : value === false ? (
                        <Minus
                          className="size-4 text-muted-foreground"
                          aria-label="Not included"
                        />
                      ) : (
                        value
                      )}
                    </td>
                  ))}
                </tr>
              ))}
            </tbody>
          </table>
        </div>
      </div>
    </section>
  )
}
A detailed plan comparison table with grouped feature rows.
pricing-06
pricing-06
Files
components/pricing-07.tsx
"use client"

import { useState } from "react"

import { Button } from "@/components/ui/button"
import { Slider } from "@/components/ui/slider"

import { CounterNumber } from "@/components/ui/counter-number"

const pricePerSeat = 14
const included = [
  "All 460+ Designali blocks",
  "Shared Figma and code library",
  "Version history",
  "Role-based permissions",
]

export function Pricing07() {
  const [seats, setSeats] = useState(12)
  const discount = seats >= 50 ? 0.2 : seats >= 20 ? 0.1 : 0
  const total = Math.round(seats * pricePerSeat * (1 - discount))

  return (
    <section className="w-full bg-muted/40 py-20">
      <div className="mx-auto max-w-5xl px-6">
        <div className="grid border border-border bg-background lg:grid-cols-[3fr_2fr]">
          <div className="p-8 md:p-12">
            <p className="text-xs tracking-widest text-muted-foreground uppercase">
              Designali Team
            </p>
            <h2 className="mt-3 text-3xl font-semibold tracking-tight">
              Pay only for the designers and developers you add
            </h2>
            <p className="mt-3 text-sm text-muted-foreground">
              ${pricePerSeat} per seat each month. Volume discounts apply
              automatically at 20 and 50 seats.
            </p>
            <div className="mt-10">
              <div className="flex items-baseline justify-between text-sm">
                <span>Team size</span>
                <span className="text-2xl font-semibold tabular-nums">
                  {seats} seats
                </span>
              </div>
              <Slider
                className="mt-4"
                min={1}
                max={100}
                value={[seats]}
                onValueChange={(value) =>
                  setSeats(Array.isArray(value) ? value[0]! : value)
                }
              />
              <div className="mt-2 flex justify-between text-xs text-muted-foreground">
                <span>1</span>
                <span>100</span>
              </div>
            </div>
          </div>
          <div className="flex flex-col justify-between gap-8 border-t border-border bg-muted/50 p-8 md:p-12 lg:border-t-0 lg:border-l">
            <div>
              <p className="text-sm text-muted-foreground">
                Estimated monthly total
              </p>
              <CounterNumber
                value={total}
                prefix="$"
                className="mt-2 block text-5xl font-semibold tracking-tighter tabular-nums"
              />
              {discount > 0 && (
                <p className="mt-2 text-xs text-muted-foreground">
                  Includes {discount * 100}% volume discount
                </p>
              )}
              <ul className="mt-6 space-y-2 text-sm">
                {included.map((item) => (
                  <li key={item}>&mdash; {item}</li>
                ))}
              </ul>
            </div>
            <Button size="lg" className="w-full">
              Start with Designali Team
            </Button>
          </div>
        </div>
      </div>
    </section>
  )
}
A usage-based pricing calculator with a seat slider and live total.
pricing-07
pricing-07
Files
components/pricing-08.tsx
import {
  ArrowRight,
} from "@designali/icons"

const packages = [
  {
    name: "Brand sprint",
    price: "$4,800",
    duration: "2 weeks",
    summary:
      "Logo, colour, type and a one-page brand guide, designed by Ali Imam.",
  },
  {
    name: "Website build",
    price: "$12,500",
    duration: "5 weeks",
    summary: "UI/UX design and a production-ready Next.js site built on Designali blocks.",
  },
  {
    name: "Design partner",
    price: "$6,900/mo",
    duration: "Ongoing",
    summary:
      "Designali as your design and development partner, one active request at a time.",
  },
]

export function Pricing08() {
  return (
    <section className="w-full bg-background py-20">
      <div className="mx-auto max-w-5xl px-6">
        <div className="grid gap-6 md:grid-cols-2 md:items-end">
          <h2 className="text-3xl font-semibold tracking-tight md:text-5xl">
            Designali studio packages.
          </h2>
          <p className="text-muted-foreground md:text-right">
            Fixed scope, fixed price, no surprises. Every Designali engagement
            starts with a free 30-minute call.
          </p>
        </div>
        <div className="mt-12 border-t border-border">
          {packages.map((pkg, i) => (
            <a
              key={pkg.name}
              href="/contact"
              className="group grid gap-4 border-b border-border py-8 transition-colors hover:bg-muted/50 md:grid-cols-[3rem_1.2fr_2fr_auto] md:items-center md:px-4"
            >
              <span className="text-sm text-muted-foreground tabular-nums">
                0{i + 1}
              </span>
              <div>
                <h3 className="text-xl font-medium">{pkg.name}</h3>
                <p className="text-xs text-muted-foreground">{pkg.duration}</p>
              </div>
              <p className="text-sm text-muted-foreground">{pkg.summary}</p>
              <div className="flex items-center gap-4">
                <span className="text-2xl font-semibold tracking-tight">
                  {pkg.price}
                </span>
                <ArrowRight className="size-5 transition-transform group-hover:translate-x-1" />
              </div>
            </a>
          ))}
        </div>
      </div>
    </section>
  )
}
Fixed-scope service packages presented as two editorial price cards.
pricing-08
pricing-08
Files
components/pricing-09.tsx
import {
  Check,
  ShieldCheck,
} from "@designali/icons"

import { Button } from "@/components/ui/button"

import { CounterNumber } from "@/components/ui/counter-number"

const included = [
  "All 460+ blocks and 240+ page templates",
  "Figma source with auto-layout and variables",
  "React, TypeScript and Tailwind CSS code",
  "Lifetime updates, no renewals",
  "Commercial licence for unlimited projects",
  "4000+ icons in @designali/icons",
  "shadcn CLI install into any Next.js project",
  "Theme generator and token export",
]

export function Pricing09() {
  return (
    <section className="w-full bg-background py-20 md:py-28">
      <div className="mx-auto max-w-7xl px-6">
        <div className="mx-auto max-w-2xl text-center">
          <h2 className="text-3xl font-semibold tracking-tight md:text-5xl">
            One price. Everything included.
          </h2>
          <p className="mt-4 text-base text-muted-foreground">
            No tiers to compare and no features held back. Pay once and keep
            every future release.
          </p>
        </div>
        <div className="mx-auto mt-14 grid max-w-5xl border border-border lg:grid-cols-[1.5fr_1fr]">
          <div className="p-8 md:p-12">
            <h3 className="text-lg font-medium">Designali lifetime access</h3>
            <p className="mt-2 text-sm leading-6 text-muted-foreground">
              For freelancers, studios and in-house teams who want a complete
              system without a subscription.
            </p>
            <div className="mt-8 flex items-center gap-4">
              <span className="text-xs tracking-widest text-muted-foreground uppercase">
                What&apos;s included
              </span>
              <span className="h-px flex-1 bg-border" />
            </div>
            <ul className="mt-6 grid gap-4 text-sm sm:grid-cols-2">
              {included.map((item) => (
                <li key={item} className="flex gap-3">
                  <Check className="mt-0.5 size-4 shrink-0" />
                  {item}
                </li>
              ))}
            </ul>
          </div>
          <div className="flex flex-col items-center justify-center gap-6 border-t border-border bg-muted/50 p-8 text-center md:p-12 lg:border-t-0 lg:border-l">
            <p className="text-sm font-medium text-muted-foreground">
              Pay once, own it forever
            </p>
            <p className="flex items-baseline gap-2">
              <CounterNumber
                value={249}
                prefix="$"
                className="text-6xl font-semibold tracking-tight"
              />
              <span className="text-sm text-muted-foreground line-through">
                $399
              </span>
            </p>
            <Button
              size="lg"
              className="w-full"
              nativeButton={false}
              render={<a href="/pricing" />}
            >
              Get lifetime access
            </Button>
            <p className="text-xs text-muted-foreground">
              Team licence for up to 10 seats: $699
            </p>
            <p className="flex items-center gap-2 text-xs text-muted-foreground">
              <ShieldCheck className="size-4" />
              30-day no-questions refund
            </p>
          </div>
        </div>
      </div>
    </section>
  )
}
Single lifetime-deal panel with an included features list beside a one-time price, strikethrough and refund note.
pricing-09
pricing-09
Files
components/pricing-10.tsx
"use client"

import {
  Check,
} from "@designali/icons"

import { Button } from "@/components/ui/button"
import {
  Tabs,
  TabsContent,
  TabsList,
  TabsTrigger,
} from "@/components/ui/tabs"
import { cn } from "@/lib/utils"

type Plan = {
  name: string
  price: string
  unit: string
  blurb: string
  features: string[]
  featured?: boolean
}

const audiences: { id: string; label: string; plans: Plan[] }[] = [
  {
    id: "individuals",
    label: "Individuals",
    plans: [
      {
        name: "Free",
        price: "$0",
        unit: "forever",
        blurb: "Side projects and learning.",
        features: ["40 Designali blocks", "Free icons and logos", "Personal use"],
      },
      {
        name: "Pro",
        price: "$12",
        unit: "per month",
        blurb: "Freelancers shipping client work.",
        features: [
          "All 460+ blocks",
          "240+ landing pages",
          "Figma source files",
          "Commercial license",
        ],
        featured: true,
      },
    ],
  },
  {
    id: "teams",
    label: "Teams",
    plans: [
      {
        name: "Team",
        price: "$29",
        unit: "per seat / month",
        blurb: "Small teams up to 20 people.",
        features: ["Everything in Pro", "Shared Figma library", "Priority support"],
      },
      {
        name: "Studio",
        price: "$49",
        unit: "per seat / month",
        blurb: "Agencies building for many clients.",
        features: [
          "Everything in Team",
          "Client project licenses",
          "Private registry",
          "Early access to new blocks",
        ],
        featured: true,
      },
    ],
  },
  {
    id: "enterprise",
    label: "Studio services",
    plans: [
      {
        name: "Design + build",
        price: "Custom",
        unit: "per project",
        blurb: "Brand, UI/UX and Next.js, end to end.",
        features: [
          "Brand identity",
          "UI/UX design in Figma",
          "Production-ready Next.js site",
          "Direct with Ali Imam",
        ],
        featured: true,
      },
      {
        name: "Students",
        price: "$0",
        unit: "with a student email",
        blurb: "Free Pro access for students.",
        features: ["All 460+ blocks", "Figma source files", "Personal projects"],
      },
    ],
  },
]

export function Pricing10() {
  return (
    <section className="w-full bg-background py-20 md:py-24">
      <div className="mx-auto max-w-5xl px-6">
        <Tabs defaultValue="teams" className="items-center gap-0">
          <h2 className="text-center text-3xl font-semibold tracking-tight md:text-4xl">
            Designali pricing that fits how you work
          </h2>
          <p className="mt-3 text-center text-sm text-muted-foreground">
            Choose who you are buying for to see the plans that make sense.
          </p>
          <TabsList className="mt-8 h-10 w-full max-w-md">
            {audiences.map((audience) => (
              <TabsTrigger
                key={audience.id}
                value={audience.id}
                className="text-sm"
              >
                {audience.label}
              </TabsTrigger>
            ))}
          </TabsList>
          {audiences.map((audience) => (
            <TabsContent
              key={audience.id}
              value={audience.id}
              className="mt-12 w-full"
            >
              <div className="grid gap-6 md:grid-cols-2">
                {audience.plans.map((plan) => (
                  <div
                    key={plan.name}
                    className={cn(
                      "flex flex-col border p-8",
                      plan.featured
                        ? "border-foreground bg-card"
                        : "border-border"
                    )}
                  >
                    <div className="flex items-center justify-between">
                      <h3 className="text-lg font-medium">{plan.name}</h3>
                      {plan.featured && (
                        <span className="bg-foreground px-2 py-0.5 text-xs text-background">
                          Recommended
                        </span>
                      )}
                    </div>
                    <p className="mt-2 text-sm text-muted-foreground">
                      {plan.blurb}
                    </p>
                    <p className="mt-6">
                      <span className="text-4xl font-semibold tracking-tight">
                        {plan.price}
                      </span>{" "}
                      <span className="text-sm text-muted-foreground">
                        {plan.unit}
                      </span>
                    </p>
                    <ul className="mt-6 flex-1 space-y-3 text-sm">
                      {plan.features.map((feature) => (
                        <li key={feature} className="flex items-center gap-3">
                          <Check className="size-4 shrink-0" />
                          {feature}
                        </li>
                      ))}
                    </ul>
                    <Button
                      className="mt-8 w-full"
                      variant={plan.featured ? "default" : "outline"}
                      nativeButton={false}
                      render={<a href="/pricing" />}
                    >
                      {plan.price === "Custom" ? "Contact sales" : `Choose ${plan.name}`}
                    </Button>
                  </div>
                ))}
              </div>
            </TabsContent>
          ))}
        </Tabs>
      </div>
    </section>
  )
}
Audience tabs that swap between pairs of plan cards with a recommended badge and feature checklists.
pricing-10
pricing-10
Files
components/pricing-11.tsx
"use client"

import { useState } from "react"
import {
  Lock,
} from "@designali/icons"

import { Button } from "@/components/ui/button"
import { cn } from "@/lib/utils"

import { CounterNumber } from "@/components/ui/counter-number"

const plans = [
  {
    id: "starter",
    name: "Starter",
    price: 9,
    detail: "1 site, 10k monthly visitors, basic analytics",
  },
  {
    id: "growth",
    name: "Growth",
    price: 29,
    detail: "5 sites, 100k visitors, A/B testing, form logic",
    tag: "Most chosen",
  },
  {
    id: "scale",
    name: "Scale",
    price: 79,
    detail: "Unlimited sites, 1M visitors, roles, priority support",
  },
]

export function Pricing11() {
  const [selected, setSelected] = useState("growth")
  const [annual, setAnnual] = useState(true)
  const plan = plans.find((p) => p.id === selected)!
  const monthly = annual ? Math.round(plan.price * 0.8) : plan.price
  const dueToday = annual ? monthly * 12 : monthly

  return (
    <section className="w-full bg-muted/30 py-20 md:py-24">
      <div className="mx-auto grid max-w-6xl gap-10 px-6 lg:grid-cols-[1.4fr_1fr]">
        <div>
          <h2 className="text-3xl font-semibold tracking-tight md:text-4xl">
            Pick a plan and check out
          </h2>
          <p className="mt-3 text-sm text-muted-foreground">
            Switch plans or cancel anytime from your dashboard.
          </p>
          <div
            role="radiogroup"
            aria-label="Plan"
            className="mt-8 divide-y divide-border border border-border bg-background"
          >
            {plans.map((p) => (
              <button
                key={p.id}
                type="button"
                role="radio"
                aria-checked={selected === p.id}
                onClick={() => setSelected(p.id)}
                className={cn(
                  "flex w-full items-start gap-4 p-5 text-start transition-colors md:p-6",
                  selected === p.id ? "bg-muted/60" : "hover:bg-muted/30"
                )}
              >
                <span
                  className={cn(
                    "mt-1 flex size-4 shrink-0 items-center justify-center rounded-full border",
                    selected === p.id ? "border-foreground" : "border-border"
                  )}
                >
                  {selected === p.id && (
                    <span className="size-2 rounded-full bg-foreground" />
                  )}
                </span>
                <span className="flex-1">
                  <span className="flex flex-wrap items-center gap-2">
                    <span className="font-medium">{p.name}</span>
                    {p.tag && (
                      <span className="border border-border px-1.5 py-0.5 text-[10px] tracking-wider text-muted-foreground uppercase">
                        {p.tag}
                      </span>
                    )}
                  </span>
                  <span className="mt-1 block text-sm text-muted-foreground">
                    {p.detail}
                  </span>
                </span>
                <span className="text-end">
                  <span className="block text-lg font-semibold">
                    ${annual ? Math.round(p.price * 0.8) : p.price}
                  </span>
                  <span className="block text-xs text-muted-foreground">
                    /mo
                  </span>
                </span>
              </button>
            ))}
          </div>
        </div>
        <aside className="h-fit border border-border bg-background p-6 md:p-8 lg:sticky lg:top-24">
          <p className="text-xs tracking-widest text-muted-foreground uppercase">
            Order summary
          </p>
          <div className="mt-6 grid grid-cols-2 border border-border p-1 text-sm">
            {[
              { label: "Monthly", value: false },
              { label: "Yearly -20%", value: true },
            ].map((option) => (
              <button
                key={option.label}
                type="button"
                onClick={() => setAnnual(option.value)}
                className={cn(
                  "py-2 transition-colors",
                  annual === option.value
                    ? "bg-foreground text-background"
                    : "text-muted-foreground hover:text-foreground"
                )}
              >
                {option.label}
              </button>
            ))}
          </div>
          <dl className="mt-6 space-y-3 text-sm">
            <div className="flex justify-between">
              <dt className="text-muted-foreground">{plan.name} plan</dt>
              <dd>${monthly}/mo</dd>
            </div>
            <div className="flex justify-between">
              <dt className="text-muted-foreground">Billing</dt>
              <dd>{annual ? "12 months" : "1 month"}</dd>
            </div>
            {annual && (
              <div className="flex justify-between text-primary dark:text-primary">
                <dt>Annual saving</dt>
                <dd>-${(plan.price - monthly) * 12}</dd>
              </div>
            )}
          </dl>
          <div className="mt-6 flex items-baseline justify-between border-t border-border pt-6">
            <span className="text-sm font-medium">Due today</span>
            <CounterNumber
              value={dueToday}
              prefix="$"
              className="text-3xl font-semibold tracking-tight"
            />
          </div>
          <Button size="lg" className="mt-6 w-full">
            Continue to payment
          </Button>
          <p className="mt-4 flex items-center justify-center gap-2 text-xs text-muted-foreground">
            <Lock className="size-3.5" />
            Secure checkout. Taxes calculated at next step.
          </p>
        </aside>
      </div>
    </section>
  )
}
Checkout-style plan picker with radio rows beside a sticky order summary and monthly/yearly toggle.
pricing-11
pricing-11
Files
components/pricing-12.tsx
import {
  ArrowRight,
  Check,
} from "@designali/icons"

import { Button } from "@/components/ui/button"

const plans = [
  {
    name: "Solo",
    price: "$19",
    note: "per month, billed yearly",
    description: "Everything one designer-developer needs to ship fast.",
    features: [
      "Full block library",
      "Figma kit",
      "Personal commercial licence",
      "Email support",
    ],
    cta: "Start 14-day trial",
  },
  {
    name: "Agency",
    price: "$79",
    note: "per month, billed yearly",
    description: "For studios delivering sites to many clients at once.",
    features: [
      "Up to 12 seats",
      "Client handoff workspaces",
      "White-label exports",
      "Priority support in 4h",
    ],
    cta: "Start 14-day trial",
    featured: true,
  },
]

export function Pricing12() {
  return (
    <section className="w-full bg-foreground py-20 text-background md:py-28">
      <div className="mx-auto grid max-w-7xl gap-14 px-6 lg:grid-cols-[1fr_1.6fr] lg:gap-20">
        <div className="flex flex-col justify-between gap-10">
          <div>
            <p className="text-xs tracking-[0.2em] text-background/50 uppercase">
              Pricing
            </p>
            <h2 className="mt-4 text-3xl font-semibold tracking-tight md:text-5xl">
              Two plans. Zero surprises.
            </h2>
            <p className="mt-5 max-w-sm text-base leading-7 text-background/60">
              No seat minimums, no usage caps, no feature gates hidden behind a
              sales call.
            </p>
          </div>
          <div className="border-t border-background/15 pt-6">
            <p className="text-sm font-medium">60-day money-back guarantee</p>
            <p className="mt-2 text-sm leading-6 text-background/60">
              If it doesn&apos;t save you time, email us and we&apos;ll refund
              every cent. No forms, no retention call.
            </p>
          </div>
        </div>
        <div className="grid gap-px bg-background/15 md:grid-cols-2">
          {plans.map((plan) => (
            <div
              key={plan.name}
              className={
                plan.featured
                  ? "flex flex-col bg-background p-8 text-foreground md:p-10"
                  : "flex flex-col bg-foreground p-8 md:p-10"
              }
            >
              <h3 className="text-lg font-medium">{plan.name}</h3>
              <p
                className={
                  plan.featured
                    ? "mt-2 text-sm text-muted-foreground"
                    : "mt-2 text-sm text-background/60"
                }
              >
                {plan.description}
              </p>
              <p className="mt-8 text-5xl font-semibold tracking-tight">
                {plan.price}
              </p>
              <p
                className={
                  plan.featured
                    ? "mt-1 text-xs text-muted-foreground"
                    : "mt-1 text-xs text-background/50"
                }
              >
                {plan.note}
              </p>
              <ul className="mt-8 flex-1 space-y-3 text-sm">
                {plan.features.map((feature) => (
                  <li key={feature} className="flex items-center gap-3">
                    <Check className="size-4 shrink-0" />
                    {feature}
                  </li>
                ))}
              </ul>
              <Button
                size="lg"
                className={
                  plan.featured
                    ? "mt-10 w-full"
                    : "mt-10 w-full bg-background text-foreground hover:bg-background/90"
                }
                nativeButton={false}
                render={<a href="#" />}
              >
                {plan.cta}
                <ArrowRight data-icon="inline-end" />
              </Button>
            </div>
          ))}
        </div>
      </div>
    </section>
  )
}
Inverted dark section with a guarantee note beside two contrasting plan cards with arrow CTAs.
pricing-12
pricing-12
Files
components/pricing-13.tsx
"use client"

import { useState } from "react"
import {
  Coins,
  Infinity as InfinityIcon,
  Sparkles,
} from "@designali/icons"

import { Button } from "@/components/ui/button"
import { cn } from "@/lib/utils"

const packs = [
  { credits: 500, price: 10, bonus: 0, renders: "~120 image renders" },
  { credits: 2000, price: 36, bonus: 10, renders: "~520 image renders" },
  { credits: 6000, price: 96, bonus: 20, renders: "~1,700 image renders", best: true },
  { credits: 20000, price: 280, bonus: 30, renders: "~6,200 image renders" },
]

export function Pricing13() {
  const [selected, setSelected] = useState(2)
  const pack = packs[selected]!
  const total = Math.round(pack.credits * (1 + pack.bonus / 100))

  return (
    <section className="w-full bg-background py-20 md:py-24">
      <div className="mx-auto max-w-6xl px-6">
        <div className="flex flex-col gap-4 md:flex-row md:items-end md:justify-between">
          <div>
            <p className="flex items-center gap-2 text-xs tracking-[0.2em] text-muted-foreground uppercase">
              <Coins className="size-4" />
              Credit packs
            </p>
            <h2 className="mt-4 text-3xl font-semibold tracking-tight md:text-4xl">
              Pay as you go. No subscription.
            </h2>
          </div>
          <p className="flex items-center gap-2 text-sm text-muted-foreground">
            <InfinityIcon className="size-4" />
            Credits never expire
          </p>
        </div>
        <div className="mt-10 grid grid-cols-2 gap-3 lg:grid-cols-4">
          {packs.map((item, index) => (
            <button
              key={item.credits}
              type="button"
              aria-pressed={selected === index}
              onClick={() => setSelected(index)}
              className={cn(
                "relative flex flex-col border p-5 text-start transition-colors md:p-6",
                selected === index
                  ? "border-foreground bg-muted/50"
                  : "border-border hover:border-foreground/40"
              )}
            >
              {item.best && (
                <span className="absolute -top-2.5 left-5 flex items-center gap-1 bg-foreground px-2 py-0.5 text-[10px] tracking-wider text-background uppercase">
                  <Sparkles className="size-3" />
                  Best value
                </span>
              )}
              <span className="text-2xl font-semibold tracking-tight md:text-3xl">
                {item.credits.toLocaleString("en-US")}
              </span>
              <span className="text-xs text-muted-foreground">credits</span>
              <span className="mt-6 text-lg font-medium">${item.price}</span>
              <span className="text-xs text-muted-foreground">
                ${((item.price / item.credits) * 100).toFixed(2)} per 100
              </span>
              {item.bonus > 0 && (
                <span className="mt-4 w-fit bg-primary/10 px-2 py-0.5 text-xs font-medium text-chart-3 dark:text-primary">
                  +{item.bonus}% bonus
                </span>
              )}
            </button>
          ))}
        </div>
        <div className="mt-6 flex flex-col gap-6 border border-border bg-card p-6 md:flex-row md:items-center md:justify-between md:p-8">
          <div>
            <p className="text-sm text-muted-foreground">You receive</p>
            <p className="mt-1 text-2xl font-semibold tracking-tight">
              {total.toLocaleString("en-US")} credits
            </p>
            <p className="mt-1 text-sm text-muted-foreground">{pack.renders}</p>
          </div>
          <Button size="lg" className="md:w-56">
            Buy for ${pack.price}
          </Button>
        </div>
      </div>
    </section>
  )
}
Pay-as-you-go credit pack selector with per-100 rates, bonus badges and a live total purchase bar.
pricing-13
pricing-13
Files
components/pricing-14.tsx
"use client"

import { useState } from "react"
import {
  Check,
  Plus,
} from "@designali/icons"

import { Button } from "@/components/ui/button"
import { Checkbox } from "@/components/ui/checkbox"
import { cn } from "@/lib/utils"

import { CounterNumber } from "@/components/ui/counter-number"

const base = {
  name: "Core workspace",
  price: 39,
  features: ["5 editors", "Unlimited viewers", "Shared component library", "Version history"],
}

const addons = [
  { id: "seats", name: "Extra 5 editors", description: "Grow without changing plans.", price: 25 },
  { id: "sso", name: "SAML SSO", description: "Okta, Entra ID and Google Workspace.", price: 30 },
  { id: "ai", name: "AI layout assistant", description: "Generate pages from a prompt or brief.", price: 15 },
  { id: "storage", name: "1 TB asset storage", description: "Video, 3D and raw image uploads.", price: 10 },
  { id: "support", name: "Priority support", description: "1-hour response, shared Slack channel.", price: 49 },
]

export function Pricing14() {
  const [chosen, setChosen] = useState<string[]>(["sso"])
  const toggle = (id: string) =>
    setChosen((current) =>
      current.includes(id) ? current.filter((x) => x !== id) : [...current, id]
    )
  const total =
    base.price +
    addons.filter((a) => chosen.includes(a.id)).reduce((sum, a) => sum + a.price, 0)

  return (
    <section className="w-full bg-background py-20 md:py-24">
      <div className="mx-auto max-w-6xl px-6">
        <h2 className="text-3xl font-semibold tracking-tight md:text-4xl">
          Start with the core. Add only what you need.
        </h2>
        <div className="mt-12 grid gap-6 lg:grid-cols-[1fr_1.3fr_0.9fr]">
          <div className="border border-border p-6 md:p-8">
            <p className="text-xs tracking-widest text-muted-foreground uppercase">
              Included
            </p>
            <h3 className="mt-3 text-lg font-medium">{base.name}</h3>
            <p className="mt-4 text-4xl font-semibold tracking-tight">
              ${base.price}
              <span className="text-sm font-normal text-muted-foreground">
                /mo
              </span>
            </p>
            <ul className="mt-6 space-y-3 text-sm">
              {base.features.map((feature) => (
                <li key={feature} className="flex items-center gap-3">
                  <Check className="size-4 shrink-0" />
                  {feature}
                </li>
              ))}
            </ul>
          </div>
          <div className="border border-border">
            <p className="flex items-center gap-2 border-b border-border px-6 py-4 text-xs tracking-widest text-muted-foreground uppercase">
              <Plus className="size-3.5" />
              Add-ons
            </p>
            <ul className="divide-y divide-border">
              {addons.map((addon) => (
                <li key={addon.id}>
                  <label
                    className={cn(
                      "flex cursor-pointer items-start gap-4 px-6 py-4 transition-colors",
                      chosen.includes(addon.id) ? "bg-muted/50" : "hover:bg-muted/30"
                    )}
                  >
                    <Checkbox
                      className="mt-0.5"
                      checked={chosen.includes(addon.id)}
                      onCheckedChange={() => toggle(addon.id)}
                    />
                    <span className="flex-1">
                      <span className="block text-sm font-medium">
                        {addon.name}
                      </span>
                      <span className="block text-xs text-muted-foreground">
                        {addon.description}
                      </span>
                    </span>
                    <span className="text-sm whitespace-nowrap">
                      +${addon.price}
                    </span>
                  </label>
                </li>
              ))}
            </ul>
          </div>
          <div className="flex h-fit flex-col bg-foreground p-6 text-background md:p-8 lg:sticky lg:top-24">
            <p className="text-xs tracking-widest text-background/60 uppercase">
              Your monthly total
            </p>
            <CounterNumber
              value={total}
              prefix="$"
              className="mt-4 block text-5xl font-semibold tracking-tight text-background"
            />
            <p className="mt-2 text-sm text-background/60">
              Core + {chosen.length} add-on{chosen.length === 1 ? "" : "s"}
            </p>
            <Button
              size="lg"
              className="mt-8 w-full bg-background text-foreground hover:bg-background/90"
            >
              Start free trial
            </Button>
            <p className="mt-4 text-xs text-background/60">
              Add or remove add-ons any time. Changes are prorated daily.
            </p>
          </div>
        </div>
      </div>
    </section>
  )
}
Core plan card, checkbox add-on list and a sticky dark running monthly total.
pricing-14
pricing-14
Files
components/pricing-15.tsx
import {
  ArrowRight,
  Building2,
  Check,
  GraduationCap,
  Rocket,
} from "@designali/icons"

import { Button } from "@/components/ui/button"

export function Pricing15() {
  return (
    <section className="w-full bg-muted/30 py-20 md:py-24">
      <div className="mx-auto max-w-7xl px-6">
        <div className="max-w-2xl">
          <h2 className="text-3xl font-semibold tracking-tight md:text-4xl">
            Pricing for every stage
          </h2>
          <p className="mt-3 text-muted-foreground">
            Most teams start on Pro. Everything else is here when you need it.
          </p>
        </div>
        <div className="mt-12 grid gap-4 md:grid-cols-6">
          <div className="relative overflow-hidden border border-foreground bg-background p-8 md:col-span-4 md:row-span-2 md:p-10">
            <div
              aria-hidden="true"
              className="absolute -right-24 -bottom-24 size-72 rounded-full bg-gradient-to-tr from-primary/25 to-primary/0 blur-2xl"
            />
            <div className="relative flex h-full flex-col">
              <div className="flex items-center justify-between">
                <h3 className="text-xl font-medium">Pro</h3>
                <span className="bg-foreground px-2 py-0.5 text-xs text-background">
                  Most popular
                </span>
              </div>
              <p className="mt-6 flex items-baseline gap-2">
                <span className="text-6xl font-semibold tracking-tight">$24</span>
                <span className="text-sm text-muted-foreground">
                  per editor / month
                </span>
              </p>
              <ul className="mt-8 grid flex-1 gap-3 text-sm sm:grid-cols-2">
                {[
                  "Unlimited projects and pages",
                  "Custom domains with SSL",
                  "Staging environments",
                  "Form submissions to Slack",
                  "Role-based permissions",
                  "Analytics and heatmaps",
                ].map((feature) => (
                  <li key={feature} className="flex items-center gap-3">
                    <Check className="size-4 shrink-0" />
                    {feature}
                  </li>
                ))}
              </ul>
              <div className="mt-10 flex flex-col gap-3 sm:flex-row">
                <Button size="lg" nativeButton={false} render={<a href="#" />}>
                  Start 14-day trial
                </Button>
                <Button
                  size="lg"
                  variant="ghost"
                  nativeButton={false}
                  render={<a href="#" />}
                >
                  Compare all features
                </Button>
              </div>
            </div>
          </div>
          <div className="flex flex-col border border-border bg-background p-6 md:col-span-2">
            <Rocket className="size-5 text-muted-foreground" />
            <h3 className="mt-4 font-medium">Free</h3>
            <p className="mt-1 text-sm text-muted-foreground">
              1 project, our subdomain, community support.
            </p>
            <p className="mt-auto pt-6 text-2xl font-semibold">$0</p>
          </div>
          <div className="flex flex-col border border-border bg-background p-6 md:col-span-2">
            <GraduationCap className="size-5 text-muted-foreground" />
            <h3 className="mt-4 font-medium">Students and nonprofits</h3>
            <p className="mt-1 text-sm text-muted-foreground">
              Pro features at no cost with a verified account.
            </p>
            <a
              href="#"
              className="mt-auto pt-6 text-sm font-medium underline-offset-4 hover:underline"
            >
              Apply in 2 minutes
            </a>
          </div>
          <a
            href="#"
            className="group flex flex-col gap-6 border border-border bg-background p-6 transition-colors hover:bg-muted/50 sm:flex-row sm:items-center sm:justify-between md:col-span-6 md:p-8"
          >
            <div className="flex items-start gap-4">
              <Building2 className="mt-0.5 size-5 shrink-0 text-muted-foreground" />
              <div>
                <h3 className="font-medium">Enterprise</h3>
                <p className="mt-1 text-sm text-muted-foreground">
                  SSO, SCIM, audit logs, custom contracts and a 99.99% SLA. Volume
                  pricing from 50 editors.
                </p>
              </div>
            </div>
            <span className="inline-flex shrink-0 items-center gap-1 text-sm font-medium">
              Talk to sales
              <ArrowRight className="size-4 transition-transform group-hover:translate-x-1" />
            </span>
          </a>
        </div>
      </div>
    </section>
  )
}
Pricing bento with a large featured Pro tile, Free and nonprofit tiles and an Enterprise banner link.
pricing-15
pricing-15
Files
components/pricing-16.tsx
"use client"

import { useState } from "react"
import {
  Check,
  Users,
} from "@designali/icons"

import { Button } from "@/components/ui/button"
import { cn } from "@/lib/utils"

const sizes = [
  { label: "Just me", seats: 1 },
  { label: "2-5", seats: 5 },
  { label: "6-20", seats: 20 },
  { label: "21-100", seats: 100 },
  { label: "100+", seats: 0 },
]

function recommend(seats: number) {
  if (seats === 1)
    return {
      plan: "Personal",
      perSeat: 0,
      reason: "Free forever for a single workspace owner.",
      features: ["3 projects", "Core blocks", "Community support"],
    }
  if (seats <= 5)
    return {
      plan: "Team",
      perSeat: 15,
      reason: "Shared libraries and reviews for a small crew.",
      features: ["Unlimited projects", "Shared libraries", "Review links", "Email support"],
    }
  if (seats <= 20)
    return {
      plan: "Studio",
      perSeat: 13,
      reason: "Volume discount kicks in and you get permissions.",
      features: ["Everything in Team", "Roles and permissions", "Branded exports", "Priority support"],
    }
  if (seats <= 100)
    return {
      plan: "Business",
      perSeat: 11,
      reason: "SSO and audit logs for growing organisations.",
      features: ["Everything in Studio", "SAML SSO", "Audit log", "Quarterly business reviews"],
    }
  return {
    plan: "Enterprise",
    perSeat: -1,
    reason: "Custom terms, security review and a dedicated team.",
    features: ["Everything in Business", "SCIM provisioning", "99.99% SLA", "Dedicated CSM"],
  }
}

export function Pricing16() {
  const [step, setStep] = useState(2)
  const seats = sizes[step]!.seats
  const rec = recommend(seats)
  const total = rec.perSeat > 0 ? rec.perSeat * seats : rec.perSeat

  return (
    <section className="w-full bg-background py-20 md:py-24">
      <div className="mx-auto max-w-4xl px-6">
        <div className="text-center">
          <h2 className="text-3xl font-semibold tracking-tight md:text-4xl">
            How big is your team?
          </h2>
          <p className="mt-3 text-sm text-muted-foreground">
            We&apos;ll recommend the plan most companies your size choose.
          </p>
        </div>
        <div className="mt-10">
          <div className="relative grid grid-cols-5">
            <span className="absolute top-4 right-[10%] left-[10%] h-px bg-border" />
            <span
              className="absolute top-4 left-[10%] h-px bg-foreground transition-all"
              style={{ width: `${step * 20}%` }}
            />
            {sizes.map((size, index) => (
              <button
                key={size.label}
                type="button"
                onClick={() => setStep(index)}
                aria-pressed={step === index}
                className="relative flex flex-col items-center gap-3"
              >
                <span
                  className={cn(
                    "flex size-8 items-center justify-center rounded-full border text-xs transition-colors",
                    index <= step
                      ? "border-foreground bg-foreground text-background"
                      : "border-border bg-background text-muted-foreground"
                  )}
                >
                  {index === step ? <Users className="size-3.5" /> : index + 1}
                </span>
                <span
                  className={cn(
                    "text-xs sm:text-sm",
                    index === step ? "font-medium" : "text-muted-foreground"
                  )}
                >
                  {size.label}
                </span>
              </button>
            ))}
          </div>
        </div>
        <div className="mt-12 grid border border-border md:grid-cols-[1.2fr_1fr]">
          <div className="p-8">
            <p className="text-xs tracking-widest text-muted-foreground uppercase">
              Recommended
            </p>
            <h3 className="mt-2 text-2xl font-semibold tracking-tight">
              {rec.plan}
            </h3>
            <p className="mt-2 text-sm text-muted-foreground">{rec.reason}</p>
            <ul className="mt-6 grid gap-3 text-sm sm:grid-cols-2">
              {rec.features.map((feature) => (
                <li key={feature} className="flex items-center gap-3">
                  <Check className="size-4 shrink-0" />
                  {feature}
                </li>
              ))}
            </ul>
          </div>
          <div className="flex flex-col justify-between gap-6 border-t border-border bg-muted/50 p-8 md:border-t-0 md:border-l">
            <div>
              <p className="text-5xl font-semibold tracking-tight">
                {total === -1 ? "Custom" : `$${total}`}
              </p>
              <p className="mt-2 text-sm text-muted-foreground">
                {total === -1
                  ? "Annual contract, volume pricing"
                  : total === 0
                    ? "Free forever"
                    : `per month for ${seats} seats ($${rec.perSeat} each)`}
              </p>
            </div>
            <Button size="lg" className="w-full">
              {total === -1 ? "Book a call" : `Get ${rec.plan}`}
            </Button>
          </div>
        </div>
      </div>
    </section>
  )
}
Team size stepper that recommends a plan with features and a calculated monthly total.
pricing-16
pricing-16
Files
components/pricing-17.tsx
"use client"

import { useState } from "react"
import {
  Check,
  ChevronDown,
  Minus,
} from "@designali/icons"

import { Button } from "@/components/ui/button"
import {
  Collapsible,
  CollapsibleContent,
  CollapsibleTrigger,
} from "@/components/ui/collapsible"
import { cn } from "@/lib/utils"

const plans = [
  { name: "Launch", price: "$0" },
  { name: "Grow", price: "$32" },
  { name: "Scale", price: "$96" },
]

type Value = boolean | string

const groups: { name: string; rows: { feature: string; values: Value[] }[] }[] = [
  {
    name: "Publishing",
    rows: [
      { feature: "Sites", values: ["1", "10", "Unlimited"] },
      { feature: "Custom domains", values: [false, true, true] },
      { feature: "Scheduled publishing", values: [false, true, true] },
    ],
  },
  {
    name: "Collaboration",
    rows: [
      { feature: "Editors", values: ["1", "5", "25"] },
      { feature: "Comments and approvals", values: [false, true, true] },
      { feature: "Branching", values: [false, false, true] },
    ],
  },
  {
    name: "Security",
    rows: [
      { feature: "Two-factor auth", values: [true, true, true] },
      { feature: "SAML SSO", values: [false, false, true] },
      { feature: "Audit log retention", values: ["-", "30 days", "1 year"] },
    ],
  },
]

function Cell({ value }: { value: Value }) {
  if (value === true) return <Check className="size-4" aria-label="Included" />
  if (value === false || value === "-")
    return (
      <Minus className="size-4 text-muted-foreground" aria-label="Not included" />
    )
  return <span>{value}</span>
}

export function Pricing17() {
  const [mobilePlan, setMobilePlan] = useState(1)

  return (
    <section className="w-full bg-background py-20 md:py-24">
      <div className="mx-auto max-w-5xl px-6">
        <h2 className="text-3xl font-semibold tracking-tight md:text-4xl">
          Every feature, side by side
        </h2>
        <p className="mt-3 text-sm text-muted-foreground">
          Expand a category to see what each plan includes.
        </p>

        <div className="mt-8 grid grid-cols-3 border border-border md:hidden">
          {plans.map((plan, index) => (
            <button
              key={plan.name}
              type="button"
              onClick={() => setMobilePlan(index)}
              className={cn(
                "py-3 text-sm transition-colors",
                mobilePlan === index
                  ? "bg-foreground text-background"
                  : "text-muted-foreground"
              )}
            >
              {plan.name}
            </button>
          ))}
        </div>

        <div className="mt-6 grid grid-cols-[1fr_6rem] border-b border-border pb-6 md:mt-12 md:grid-cols-[1.4fr_repeat(3,1fr)]">
          <span />
          {plans.map((plan, index) => (
            <div
              key={plan.name}
              className={cn(index !== mobilePlan && "hidden md:block")}
            >
              <p className="text-sm font-medium">{plan.name}</p>
              <p className="mt-1 text-2xl font-semibold tracking-tight">
                {plan.price}
                <span className="text-xs font-normal text-muted-foreground">
                  /mo
                </span>
              </p>
              <Button
                size="sm"
                variant={index === 1 ? "default" : "outline"}
                className="mt-3 hidden md:inline-flex"
              >
                Choose
              </Button>
            </div>
          ))}
        </div>

        {groups.map((group, groupIndex) => (
          <Collapsible
            key={group.name}
            defaultOpen={groupIndex === 0}
            className="border-b border-border"
          >
            <CollapsibleTrigger className="group flex w-full items-center justify-between py-4 text-start text-sm font-medium">
              {group.name}
              <ChevronDown className="size-4 text-muted-foreground transition-transform group-data-[panel-open]:rotate-180" />
            </CollapsibleTrigger>
            <CollapsibleContent>
              <div className="pb-4">
                {group.rows.map((row) => (
                  <div
                    key={row.feature}
                    className="grid grid-cols-[1fr_6rem] items-center py-2.5 text-sm md:grid-cols-[1.4fr_repeat(3,1fr)]"
                  >
                    <span className="text-muted-foreground">{row.feature}</span>
                    {row.values.map((value, index) => (
                      <span
                        key={index}
                        className={cn(index !== mobilePlan && "hidden md:block")}
                      >
                        <Cell value={value} />
                      </span>
                    ))}
                  </div>
                ))}
              </div>
            </CollapsibleContent>
          </Collapsible>
        ))}
        <Button size="lg" className="mt-8 w-full md:hidden">
          Choose {plans[mobilePlan]!.name}
        </Button>
      </div>
    </section>
  )
}
Feature comparison table with collapsible category groups and a plan switcher on mobile.
pricing-17
pricing-17
Files
components/pricing-18.tsx
"use client"

import { useState } from "react"
import {
  Check,
} from "@designali/icons"

import { Button } from "@/components/ui/button"
import { Switch } from "@/components/ui/switch"
import { cn } from "@/lib/utils"

const currencies = {
  USD: { symbol: "$", rate: 1 },
  EUR: { symbol: "€", rate: 0.92 },
  GBP: { symbol: "£", rate: 0.79 },
  INR: { symbol: "₹", rate: 83 },
} as const

type Currency = keyof typeof currencies

const tiers = [
  {
    name: "Basic",
    usd: 0,
    for: "Try it out",
    features: ["1 inbox", "100 contacts", "Email channel"],
  },
  {
    name: "Starter",
    usd: 15,
    for: "Solo support",
    features: ["2 inboxes", "2,500 contacts", "Email and chat", "Saved replies"],
  },
  {
    name: "Team",
    usd: 45,
    for: "Growing support teams",
    features: ["10 inboxes", "25,000 contacts", "All channels", "SLA rules", "Reports"],
    featured: true,
  },
  {
    name: "Scale",
    usd: 120,
    for: "Multi-brand operations",
    features: ["Unlimited inboxes", "Unlimited contacts", "Custom roles", "SSO", "Sandbox"],
  },
]

export function Pricing18() {
  const [currency, setCurrency] = useState<Currency>("USD")
  const [yearly, setYearly] = useState(true)
  const { symbol, rate } = currencies[currency]

  const format = (usd: number) => {
    const value = Math.round(usd * rate * (yearly ? 0.83 : 1))
    return `${symbol}${value.toLocaleString("en-US")}`
  }

  return (
    <section className="w-full bg-background py-20 md:py-24">
      <div className="mx-auto max-w-7xl px-6">
        <div className="flex flex-col gap-6 border-b border-border pb-8 lg:flex-row lg:items-end lg:justify-between">
          <div>
            <h2 className="text-3xl font-semibold tracking-tight md:text-4xl">
              Plans and pricing
            </h2>
            <p className="mt-2 text-sm text-muted-foreground">
              Prices shown per agent, excluding local taxes.
            </p>
          </div>
          <div className="flex flex-wrap items-center gap-4">
            <label className="flex items-center gap-3 text-sm">
              <Switch checked={yearly} onCheckedChange={setYearly} />
              Billed yearly
              <span className="text-xs text-primary dark:text-primary">
                2 months free
              </span>
            </label>
            <div className="flex border border-border">
              {(Object.keys(currencies) as Currency[]).map((code) => (
                <button
                  key={code}
                  type="button"
                  onClick={() => setCurrency(code)}
                  aria-pressed={currency === code}
                  className={cn(
                    "px-3 py-1.5 text-xs font-medium transition-colors",
                    currency === code
                      ? "bg-foreground text-background"
                      : "text-muted-foreground hover:text-foreground"
                  )}
                >
                  {code}
                </button>
              ))}
            </div>
          </div>
        </div>
        <div className="grid sm:grid-cols-2 lg:grid-cols-4">
          {tiers.map((tier, index) => (
            <div
              key={tier.name}
              className={cn(
                "flex flex-col border-b border-border py-8 sm:px-6 lg:border-b-0",
                index % 2 === 1 && "sm:border-l",
                index > 0 && "lg:border-l",
                tier.featured && "bg-muted/50"
              )}
            >
              <p className="text-sm font-medium">{tier.name}</p>
              <p className="text-xs text-muted-foreground">{tier.for}</p>
              <p className="mt-6 text-4xl font-semibold tracking-tight tabular-nums">
                {format(tier.usd)}
              </p>
              <p className="mt-1 text-xs text-muted-foreground">
                per agent / month
              </p>
              <Button
                className="mt-6 w-full"
                variant={tier.featured ? "default" : "outline"}
              >
                {tier.usd === 0 ? "Start free" : "Start trial"}
              </Button>
              <ul className="mt-6 space-y-2.5 text-sm">
                {tier.features.map((feature) => (
                  <li key={feature} className="flex items-center gap-2.5">
                    <Check className="size-3.5 shrink-0 text-muted-foreground" />
                    {feature}
                  </li>
                ))}
              </ul>
            </div>
          ))}
        </div>
      </div>
    </section>
  )
}
Four-tier pricing row with a yearly billing switch and USD/EUR/GBP currency selector.
pricing-18
pricing-18
Files
components/pricing-19.tsx
import {
  Check,
  X,
} from "@designali/icons"

import { Button } from "@/components/ui/button"

const rows: { label: string; free: boolean | string; pro: boolean | string }[] = [
  { label: "Notes and documents", free: "Unlimited", pro: "Unlimited" },
  { label: "File uploads", free: "5 MB each", pro: "2 GB each" },
  { label: "Page history", free: "7 days", pro: "Forever" },
  { label: "Offline mode", free: true, pro: true },
  { label: "Guest collaborators", free: "2", pro: "100" },
  { label: "AI summaries", free: false, pro: true },
  { label: "Custom publishing domain", free: false, pro: true },
  { label: "Priority support", free: false, pro: true },
]

function Value({ value }: { value: boolean | string }) {
  if (value === true)
    return <Check className="size-4 text-foreground" aria-label="Included" />
  if (value === false)
    return <X className="size-4 text-muted-foreground/60" aria-label="Not included" />
  return <span>{value}</span>
}

export function Pricing19() {
  return (
    <section className="w-full bg-background py-20 md:py-24">
      <div className="mx-auto max-w-4xl px-6">
        <h2 className="text-center text-3xl font-semibold tracking-tight md:text-5xl">
          Free vs Pro
        </h2>
        <p className="mt-4 text-center text-muted-foreground">
          Free is genuinely useful. Pro is for when your notes become your
          business.
        </p>
        <div className="mt-12 grid grid-cols-[1fr_5.5rem_5.5rem] sm:grid-cols-[1fr_10rem_10rem]">
          <div />
          <div className="flex flex-col items-center gap-1 border border-b-0 border-border p-3 text-center sm:p-5">
            <span className="text-sm font-medium">Free</span>
            <span className="text-xl font-semibold sm:text-3xl">$0</span>
          </div>
          <div className="flex flex-col items-center gap-1 border border-b-0 border-l-0 border-foreground bg-foreground p-3 text-center text-background sm:p-5">
            <span className="text-sm font-medium">Pro</span>
            <span className="text-xl font-semibold sm:text-3xl">$8</span>
          </div>
          {rows.map((row) => (
            <div key={row.label} className="contents">
              <div className="flex items-center border-t border-border py-4 pe-3 text-sm">
                {row.label}
              </div>
              <div className="flex items-center justify-center border-t border-l border-border px-2 py-4 text-center text-xs text-muted-foreground sm:text-sm">
                <Value value={row.free} />
              </div>
              <div className="flex items-center justify-center border-t border-l border-border bg-muted/60 px-2 py-4 text-center text-xs font-medium sm:text-sm">
                <Value value={row.pro} />
              </div>
            </div>
          ))}
          <div className="border-t border-border" />
          <div className="border-t border-border p-2 sm:p-4">
            <Button
              variant="outline"
              className="w-full px-2"
              nativeButton={false}
              render={<a href="#" />}
            >
              Sign up
            </Button>
          </div>
          <div className="border-t border-border bg-muted/60 p-2 sm:p-4">
            <Button
              className="w-full px-2"
              nativeButton={false}
              render={<a href="#" />}
            >
              Go Pro
            </Button>
          </div>
        </div>
        <p className="mt-6 text-center text-xs text-muted-foreground">
          Pro is $8 per month billed yearly, or $10 month to month.
        </p>
      </div>
    </section>
  )
}
Two-column Free vs Pro comparison grid with a highlighted Pro column and signup buttons.
pricing-19
pricing-19
Files
components/pricing-20.tsx
"use client"

import { useState } from "react"
import {
  Activity,
} from "@designali/icons"

import { Input } from "@/components/ui/input"
import { cn } from "@/lib/utils"

import { CounterNumber } from "@/components/ui/counter-number"

const tiers = [
  { upTo: 1_000_000, rate: 0, label: "First 1M" },
  { upTo: 10_000_000, rate: 0.04, label: "1M - 10M" },
  { upTo: 100_000_000, rate: 0.025, label: "10M - 100M" },
  { upTo: Infinity, rate: 0.012, label: "100M+" },
]

function estimate(events: number) {
  let remaining = events
  let previous = 0
  let cost = 0
  const breakdown = tiers.map((tier) => {
    const span = Math.min(remaining, tier.upTo - previous)
    const used = Math.max(span, 0)
    const subtotal = (used / 1_000_000) * tier.rate * 1000
    cost += subtotal
    remaining -= used
    previous = tier.upTo
    return { ...tier, used, subtotal }
  })
  return { cost, breakdown }
}

const compact = new Intl.NumberFormat("en-US", {
  notation: "compact",
  maximumFractionDigits: 1,
})

export function Pricing20() {
  const [millions, setMillions] = useState(25)
  const events = Math.max(0, millions) * 1_000_000
  const { cost, breakdown } = estimate(events)
  const maxRate = Math.max(...tiers.map((t) => t.rate))

  return (
    <section className="w-full bg-background py-20 md:py-24">
      <div className="mx-auto grid max-w-6xl gap-12 px-6 lg:grid-cols-[1fr_1.2fr]">
        <div>
          <p className="flex items-center gap-2 text-xs tracking-[0.2em] text-muted-foreground uppercase">
            <Activity className="size-4" />
            Usage-based
          </p>
          <h2 className="mt-4 text-3xl font-semibold tracking-tight md:text-4xl">
            The more you track, the less you pay per event.
          </h2>
          <p className="mt-4 text-sm leading-6 text-muted-foreground">
            Graduated volume pricing: each band is billed at its own rate, so
            crossing a threshold never makes your earlier events more
            expensive. The first million events every month are free.
          </p>
          <div className="mt-10 border border-border p-6">
            <label htmlFor="events" className="text-sm font-medium">
              Monthly events (millions)
            </label>
            <Input
              id="events"
              type="number"
              min={0}
              value={millions}
              onChange={(event) => setMillions(Number(event.target.value) || 0)}
              className="mt-3 h-11 text-base md:text-base"
            />
            <div className="mt-6 flex items-baseline justify-between border-t border-border pt-6">
              <span className="text-sm text-muted-foreground">
                Estimated monthly bill
              </span>
              <CounterNumber
                value={Math.round(cost)}
                prefix="$"
                className="text-3xl font-semibold tracking-tight tabular-nums"
              />
            </div>
          </div>
        </div>
        <div className="border border-border">
          <div className="grid grid-cols-[1fr_auto] border-b border-border px-6 py-4 text-xs tracking-widest text-muted-foreground uppercase">
            <span>Band</span>
            <span>Per 1k events</span>
          </div>
          <ul>
            {breakdown.map((tier) => (
              <li
                key={tier.label}
                className={cn(
                  "border-b border-border px-6 py-5 last:border-b-0",
                  tier.used > 0 ? "bg-background" : "bg-muted/30"
                )}
              >
                <div className="flex items-center justify-between gap-4">
                  <span className="text-sm font-medium">{tier.label}</span>
                  <span className="font-sans text-sm">
                    {tier.rate === 0 ? "Free" : `$${tier.rate.toFixed(3)}`}
                  </span>
                </div>
                <div className="mt-3 h-1.5 bg-muted">
                  <div
                    className="h-full bg-foreground transition-all"
                    style={{
                      width: `${tier.rate === 0 ? 4 : (tier.rate / maxRate) * 100}%`,
                    }}
                  />
                </div>
                <div className="mt-2 flex justify-between text-xs text-muted-foreground">
                  <span>{compact.format(tier.used)} events in this band</span>
                  <span className="tabular-nums">
                    ${Math.round(tier.subtotal).toLocaleString("en-US")}
                  </span>
                </div>
              </li>
            ))}
          </ul>
        </div>
      </div>
    </section>
  )
}
Usage-based calculator with a monthly events input, estimated bill and graduated band breakdown bars.
pricing-20
pricing-20