{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"pricing-1","type":"registry:block","title":"Three-Tier Pricing","description":"A three-column pricing section with a billing toggle and clear plan differentiation.","isPro":false,"category":"pricing","dependencies":["lucide-react"],"registryDependencies":["button","badge","card"],"files":[{"path":"components/blocks/pricing/pricing-1.tsx","type":"registry:component","content":"\"use client\";\n\nimport { Check, Crown, Users } from \"lucide-react\";\nimport { useState } from \"react\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardHeader,\n  CardTitle,\n} from \"@/components/ui/card\";\n\ninterface PricingOneProps {\n  headline?: string;\n  subheadline?: string;\n}\n\nconst plans = [\n  {\n    name: \"Hobby\",\n    monthly: \"$0\",\n    annual: \"$0\",\n    description: \"Free blocks for side projects and prototypes.\",\n    icon: Users,\n    features: [\"Core components\", \"Responsive sections\", \"Community updates\"],\n    featured: false,\n  },\n  {\n    name: \"Pro\",\n    monthly: \"$97\",\n    annual: \"$97\",\n    description: \"Lifetime access for builders shipping commercial SaaS.\",\n    icon: Crown,\n    features: [\"Advanced sections\", \"Lifetime updates\", \"Commercial license\"],\n    featured: true,\n  },\n  {\n    name: \"Team\",\n    monthly: \"$297\",\n    annual: \"$297\",\n    description: \"A shared license for small product teams.\",\n    icon: Users,\n    features: [\"Shared workspace\", \"Reusable patterns\", \"Priority support\"],\n    featured: false,\n  },\n];\n\nexport function PricingOne({\n  headline = \"Simple pricing for serious shipping.\",\n  subheadline = \"Start free, unlock every pro block once, and keep the updates.\",\n}: PricingOneProps) {\n  const [billing, setBilling] = useState<\"monthly\" | \"annual\">(\"annual\");\n\n  return (\n    <section className=\"px-4 py-20 sm:px-6 lg:px-8\">\n      <div className=\"mx-auto max-w-6xl\">\n        <div className=\"mx-auto max-w-2xl text-center\">\n          <h2 className=\"text-3xl font-semibold tracking-normal sm:text-4xl\">\n            {headline}\n          </h2>\n          <p className=\"mt-4 text-base text-muted-foreground\">{subheadline}</p>\n          <div className=\"mt-8 inline-flex rounded-lg border bg-muted p-1\">\n            {([\"monthly\", \"annual\"] as const).map((value) => (\n              <button\n                key={value}\n                type=\"button\"\n                onClick={() => setBilling(value)}\n                className={`rounded-md px-4 py-2 text-sm font-medium capitalize transition ${\n                  billing === value\n                    ? \"bg-background text-foreground shadow-sm\"\n                    : \"text-muted-foreground\"\n                }`}\n              >\n                {value}\n              </button>\n            ))}\n          </div>\n        </div>\n        <div className=\"mt-10 grid gap-4 lg:grid-cols-3\">\n          {plans.map((plan) => {\n            const Icon = plan.icon;\n\n            return (\n              <Card\n                key={plan.name}\n                className={plan.featured ? \"border-primary shadow-lg\" : undefined}\n              >\n                <CardHeader>\n                  <div className=\"flex items-center justify-between gap-4\">\n                    <div className=\"flex items-center gap-3\">\n                      <span className=\"flex size-10 items-center justify-center rounded-md bg-muted\">\n                        <Icon aria-hidden=\"true\" className=\"size-5\" />\n                      </span>\n                      <CardTitle className=\"text-xl\">{plan.name}</CardTitle>\n                    </div>\n                    {plan.featured ? <Badge>Best value</Badge> : null}\n                  </div>\n                  <CardDescription>{plan.description}</CardDescription>\n                </CardHeader>\n                <CardContent>\n                  <div className=\"flex items-end gap-2\">\n                    <span className=\"text-4xl font-semibold\">\n                      {billing === \"annual\" ? plan.annual : plan.monthly}\n                    </span>\n                    <span className=\"pb-1 text-sm text-muted-foreground\">\n                      one-time\n                    </span>\n                  </div>\n                  <Button\n                    className=\"mt-6 w-full\"\n                    variant={plan.featured ? \"default\" : \"outline\"}\n                  >\n                    Choose {plan.name}\n                  </Button>\n                  <ul className=\"mt-6 space-y-3 text-sm text-muted-foreground\">\n                    {plan.features.map((feature) => (\n                      <li key={feature} className=\"flex items-center gap-2\">\n                        <Check aria-hidden=\"true\" className=\"size-4 text-foreground\" />\n                        {feature}\n                      </li>\n                    ))}\n                  </ul>\n                </CardContent>\n              </Card>\n            );\n          })}\n        </div>\n      </div>\n    </section>\n  );\n}\n"}]}