{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-16",
  "type": "registry:block",
  "description": "Team size stepper that recommends a plan with features and a calculated monthly total.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/pricing/pricing-16.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Check,\n  Users,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst sizes = [\n  { label: \"Just me\", seats: 1 },\n  { label: \"2-5\", seats: 5 },\n  { label: \"6-20\", seats: 20 },\n  { label: \"21-100\", seats: 100 },\n  { label: \"100+\", seats: 0 },\n]\n\nfunction recommend(seats: number) {\n  if (seats === 1)\n    return {\n      plan: \"Personal\",\n      perSeat: 0,\n      reason: \"Free forever for a single workspace owner.\",\n      features: [\"3 projects\", \"Core blocks\", \"Community support\"],\n    }\n  if (seats <= 5)\n    return {\n      plan: \"Team\",\n      perSeat: 15,\n      reason: \"Shared libraries and reviews for a small crew.\",\n      features: [\"Unlimited projects\", \"Shared libraries\", \"Review links\", \"Email support\"],\n    }\n  if (seats <= 20)\n    return {\n      plan: \"Studio\",\n      perSeat: 13,\n      reason: \"Volume discount kicks in and you get permissions.\",\n      features: [\"Everything in Team\", \"Roles and permissions\", \"Branded exports\", \"Priority support\"],\n    }\n  if (seats <= 100)\n    return {\n      plan: \"Business\",\n      perSeat: 11,\n      reason: \"SSO and audit logs for growing organisations.\",\n      features: [\"Everything in Studio\", \"SAML SSO\", \"Audit log\", \"Quarterly business reviews\"],\n    }\n  return {\n    plan: \"Enterprise\",\n    perSeat: -1,\n    reason: \"Custom terms, security review and a dedicated team.\",\n    features: [\"Everything in Business\", \"SCIM provisioning\", \"99.99% SLA\", \"Dedicated CSM\"],\n  }\n}\n\nexport default function Pricing16() {\n  const [step, setStep] = useState(2)\n  const seats = sizes[step]!.seats\n  const rec = recommend(seats)\n  const total = rec.perSeat > 0 ? rec.perSeat * seats : rec.perSeat\n\n  return (\n    <section className=\"w-full bg-background py-20 md:py-24\">\n      <div className=\"mx-auto max-w-4xl px-6\">\n        <div className=\"text-center\">\n          <h2 className=\"text-3xl font-semibold tracking-tight md:text-4xl\">\n            How big is your team?\n          </h2>\n          <p className=\"mt-3 text-sm text-muted-foreground\">\n            We&apos;ll recommend the plan most companies your size choose.\n          </p>\n        </div>\n        <div className=\"mt-10\">\n          <div className=\"relative grid grid-cols-5\">\n            <span className=\"absolute top-4 right-[10%] left-[10%] h-px bg-border\" />\n            <span\n              className=\"absolute top-4 left-[10%] h-px bg-foreground transition-all\"\n              style={{ width: `${step * 20}%` }}\n            />\n            {sizes.map((size, index) => (\n              <button\n                key={size.label}\n                type=\"button\"\n                onClick={() => setStep(index)}\n                aria-pressed={step === index}\n                className=\"relative flex flex-col items-center gap-3\"\n              >\n                <span\n                  className={cn(\n                    \"flex size-8 items-center justify-center rounded-full border text-xs transition-colors\",\n                    index <= step\n                      ? \"border-foreground bg-foreground text-background\"\n                      : \"border-border bg-background text-muted-foreground\"\n                  )}\n                >\n                  {index === step ? <Users className=\"size-3.5\" /> : index + 1}\n                </span>\n                <span\n                  className={cn(\n                    \"text-xs sm:text-sm\",\n                    index === step ? \"font-medium\" : \"text-muted-foreground\"\n                  )}\n                >\n                  {size.label}\n                </span>\n              </button>\n            ))}\n          </div>\n        </div>\n        <div className=\"mt-12 grid border border-border md:grid-cols-[1.2fr_1fr]\">\n          <div className=\"p-8\">\n            <p className=\"text-xs tracking-widest text-muted-foreground uppercase\">\n              Recommended\n            </p>\n            <h3 className=\"mt-2 text-2xl font-semibold tracking-tight\">\n              {rec.plan}\n            </h3>\n            <p className=\"mt-2 text-sm text-muted-foreground\">{rec.reason}</p>\n            <ul className=\"mt-6 grid gap-3 text-sm sm:grid-cols-2\">\n              {rec.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=\"flex flex-col justify-between gap-6 border-t border-border bg-muted/50 p-8 md:border-t-0 md:border-l\">\n            <div>\n              <p className=\"text-5xl font-semibold tracking-tight\">\n                {total === -1 ? \"Custom\" : `$${total}`}\n              </p>\n              <p className=\"mt-2 text-sm text-muted-foreground\">\n                {total === -1\n                  ? \"Annual contract, volume pricing\"\n                  : total === 0\n                    ? \"Free forever\"\n                    : `per month for ${seats} seats ($${rec.perSeat} each)`}\n              </p>\n            </div>\n            <Button size=\"lg\" className=\"w-full\">\n              {total === -1 ? \"Book a call\" : `Get ${rec.plan}`}\n            </Button>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "650px"
  },
  "categories": [
    "pricing"
  ]
}