{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-14",
  "type": "registry:block",
  "description": "Core plan card, checkbox add-on list and a sticky dark running monthly total.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "checkbox"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/pricing/pricing-14.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Check,\n  Plus,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { Checkbox } from \"@workspace/ui/components/checkbox\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nimport { CounterNumber } from \"@/registry/designali/ui/counter-number\"\n\nconst base = {\n  name: \"Core workspace\",\n  price: 39,\n  features: [\"5 editors\", \"Unlimited viewers\", \"Shared component library\", \"Version history\"],\n}\n\nconst addons = [\n  { id: \"seats\", name: \"Extra 5 editors\", description: \"Grow without changing plans.\", price: 25 },\n  { id: \"sso\", name: \"SAML SSO\", description: \"Okta, Entra ID and Google Workspace.\", price: 30 },\n  { id: \"ai\", name: \"AI layout assistant\", description: \"Generate pages from a prompt or brief.\", price: 15 },\n  { id: \"storage\", name: \"1 TB asset storage\", description: \"Video, 3D and raw image uploads.\", price: 10 },\n  { id: \"support\", name: \"Priority support\", description: \"1-hour response, shared Slack channel.\", price: 49 },\n]\n\nexport default function Pricing14() {\n  const [chosen, setChosen] = useState<string[]>([\"sso\"])\n  const toggle = (id: string) =>\n    setChosen((current) =>\n      current.includes(id) ? current.filter((x) => x !== id) : [...current, id]\n    )\n  const total =\n    base.price +\n    addons.filter((a) => chosen.includes(a.id)).reduce((sum, a) => sum + a.price, 0)\n\n  return (\n    <section className=\"w-full bg-background py-20 md:py-24\">\n      <div className=\"mx-auto max-w-6xl px-6\">\n        <h2 className=\"text-3xl font-semibold tracking-tight md:text-4xl\">\n          Start with the core. Add only what you need.\n        </h2>\n        <div className=\"mt-12 grid gap-6 lg:grid-cols-[1fr_1.3fr_0.9fr]\">\n          <div className=\"border border-border p-6 md:p-8\">\n            <p className=\"text-xs tracking-widest text-muted-foreground uppercase\">\n              Included\n            </p>\n            <h3 className=\"mt-3 text-lg font-medium\">{base.name}</h3>\n            <p className=\"mt-4 text-4xl font-semibold tracking-tight\">\n              ${base.price}\n              <span className=\"text-sm font-normal text-muted-foreground\">\n                /mo\n              </span>\n            </p>\n            <ul className=\"mt-6 space-y-3 text-sm\">\n              {base.features.map((feature) => (\n                <li key={feature} className=\"flex items-center gap-3\">\n                  <Check className=\"size-4 shrink-0\" />\n                  {feature}\n                </li>\n              ))}\n            </ul>\n          </div>\n          <div className=\"border border-border\">\n            <p className=\"flex items-center gap-2 border-b border-border px-6 py-4 text-xs tracking-widest text-muted-foreground uppercase\">\n              <Plus className=\"size-3.5\" />\n              Add-ons\n            </p>\n            <ul className=\"divide-y divide-border\">\n              {addons.map((addon) => (\n                <li key={addon.id}>\n                  <label\n                    className={cn(\n                      \"flex cursor-pointer items-start gap-4 px-6 py-4 transition-colors\",\n                      chosen.includes(addon.id) ? \"bg-muted/50\" : \"hover:bg-muted/30\"\n                    )}\n                  >\n                    <Checkbox\n                      className=\"mt-0.5\"\n                      checked={chosen.includes(addon.id)}\n                      onCheckedChange={() => toggle(addon.id)}\n                    />\n                    <span className=\"flex-1\">\n                      <span className=\"block text-sm font-medium\">\n                        {addon.name}\n                      </span>\n                      <span className=\"block text-xs text-muted-foreground\">\n                        {addon.description}\n                      </span>\n                    </span>\n                    <span className=\"text-sm whitespace-nowrap\">\n                      +${addon.price}\n                    </span>\n                  </label>\n                </li>\n              ))}\n            </ul>\n          </div>\n          <div className=\"flex h-fit flex-col bg-foreground p-6 text-background md:p-8 lg:sticky lg:top-24\">\n            <p className=\"text-xs tracking-widest text-background/60 uppercase\">\n              Your monthly total\n            </p>\n            <CounterNumber\n              value={total}\n              prefix=\"$\"\n              className=\"mt-4 block text-5xl font-semibold tracking-tight text-background\"\n            />\n            <p className=\"mt-2 text-sm text-background/60\">\n              Core + {chosen.length} add-on{chosen.length === 1 ? \"\" : \"s\"}\n            </p>\n            <Button\n              size=\"lg\"\n              className=\"mt-8 w-full bg-background text-foreground hover:bg-background/90\"\n            >\n              Start free trial\n            </Button>\n            <p className=\"mt-4 text-xs text-background/60\">\n              Add or remove add-ons any time. Changes are prorated daily.\n            </p>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "650px"
  },
  "categories": [
    "pricing"
  ]
}