{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-tiers",
  "title": "Pricing Tiers",
  "description": "Toggleable pricing tiers with editable CONTENT and TIERS.",
  "dependencies": [
    "lucide-react",
    "next"
  ],
  "files": [
    {
      "path": "registry/default/blocks/pricing-tiers.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport Link from \"next/link\"\nimport { ArrowRight, Check } from \"lucide-react\"\n\n/**\n * Edit CONTENT / TIERS to match your pricing. Monthly/yearly toggle with\n * aria-pressed, one highlighted tier. Self-contained — prices are plain\n * spans (no sibling ui imports).\n * After install this file lives in your repo.\n */\nconst CONTENT = {\n  stamp: \"Pricing\",\n  headlineBefore: \"Simple plans,\",\n  headlineAccent: \"cancel anytime\",\n  headlineAfter: \".\",\n  lede: \"Start free, upgrade when it pays for itself. Prices in USD.\",\n  toggleMonthly: \"Monthly\",\n  toggleYearly: \"Yearly\",\n  yearlyNote: \"2 months free\",\n}\n\ntype Billing = \"monthly\" | \"yearly\"\n\nconst TIERS = [\n  {\n    name: \"Starter\",\n    blurb: \"For side projects finding shape.\",\n    monthly: \"$12\",\n    yearly: \"$10\",\n    per: \"/mo\",\n    billed: { monthly: \"Billed monthly\", yearly: \"Billed yearly\" },\n    cta: { label: \"Start free\", href: \"/signup?plan=starter\" },\n    features: [\"3 projects\", \"Community support\", \"Basic analytics\"],\n    highlight: false,\n  },\n  {\n    name: \"Pro\",\n    blurb: \"For teams shipping every week.\",\n    monthly: \"$29\",\n    yearly: \"$24\",\n    per: \"/mo\",\n    billed: { monthly: \"Billed monthly\", yearly: \"Billed yearly\" },\n    cta: { label: \"Start 14-day trial\", href: \"/signup?plan=pro\" },\n    features: [\n      \"Unlimited projects\",\n      \"Priority support\",\n      \"Advanced analytics\",\n      \"Custom domains\",\n    ],\n    highlight: true,\n    badge: \"Most popular\",\n  },\n  {\n    name: \"Scale\",\n    blurb: \"For products with real traffic.\",\n    monthly: \"$79\",\n    yearly: \"$66\",\n    per: \"/mo\",\n    billed: { monthly: \"Billed monthly\", yearly: \"Billed yearly\" },\n    cta: { label: \"Talk to us\", href: \"/contact?plan=scale\" },\n    features: [\"Everything in Pro\", \"SSO & audit logs\", \"Dedicated manager\"],\n    highlight: false,\n  },\n]\n\nexport function PricingTiers() {\n  const [billing, setBilling] = useState<Billing>(\"monthly\")\n\n  return (\n    <section className=\"@container border-t border-border-subtle bg-background text-foreground\">\n      <div className=\"border-b border-border-subtle\">\n        <div className=\"mx-auto max-w-7xl border-x border-border-subtle px-6 py-12 @min-[40rem]:px-10 @min-[40rem]:py-16\">\n          <div className=\"mx-auto max-w-2xl text-center\">\n            <p className=\"text-[11px] font-semibold tracking-[0.14em] text-muted-foreground uppercase\">\n              {CONTENT.stamp}\n            </p>\n            <h2 className=\"mt-4 text-3xl font-medium tracking-tight text-foreground @min-[40rem]:text-5xl\">\n              {CONTENT.headlineBefore}{\" \"}\n              <span className=\"italic text-brand\">{CONTENT.headlineAccent}</span>\n              {CONTENT.headlineAfter}\n            </h2>\n            <p className=\"mt-4 text-[15px] leading-relaxed text-muted-foreground\">\n              {CONTENT.lede}\n            </p>\n\n            <div\n              role=\"group\"\n              aria-label=\"Billing period\"\n              className=\"mt-6 inline-flex items-center gap-1 rounded-[var(--atro-control-radius)] border border-border-subtle bg-muted/50 p-1\"\n            >\n              {([\"monthly\", \"yearly\"] as const).map((period) => (\n                <button\n                  key={period}\n                  type=\"button\"\n                  aria-pressed={billing === period}\n                  onClick={() => setBilling(period)}\n                  className={\n                    billing === period\n                      ? \"rounded-[calc(var(--atro-control-radius)-4px)] bg-background px-4 py-1.5 text-sm font-medium text-foreground shadow-sm ring-1 ring-border-subtle\"\n                      : \"rounded-[calc(var(--atro-control-radius)-4px)] px-4 py-1.5 text-sm text-muted-foreground transition-colors hover:text-foreground\"\n                  }\n                >\n                  {period === \"monthly\"\n                    ? CONTENT.toggleMonthly\n                    : CONTENT.toggleYearly}\n                </button>\n              ))}\n            </div>\n            {billing === \"yearly\" ? (\n              <p className=\"mt-2 text-xs font-medium text-brand\">\n                {CONTENT.yearlyNote}\n              </p>\n            ) : null}\n          </div>\n\n          <ul className=\"mx-auto mt-10 grid max-w-5xl grid-cols-1 gap-4 @min-[64rem]:grid-cols-3\">\n            {TIERS.map((tier) => (\n              <li\n                key={tier.name}\n                className={\n                  tier.highlight\n                    ? \"flex flex-col rounded-[var(--atro-panel-radius)] border bg-card p-6 ring-1 @min-[40rem]:p-7 border-[color-mix(in_oklch,var(--brand)_50%,var(--border-subtle))] ring-[color-mix(in_oklch,var(--brand)_30%,transparent)]\"\n                    : \"flex flex-col rounded-[var(--atro-panel-radius)] border border-border-subtle bg-card p-6 @min-[40rem]:p-7\"\n                }\n              >\n                {tier.highlight && \"badge\" in tier && tier.badge ? (\n                  <p className=\"mb-3 inline-flex w-fit items-center rounded-full bg-[color-mix(in_oklch,var(--brand)_12%,transparent)] px-2.5 py-1 text-[11px] font-semibold tracking-wide text-brand uppercase\">\n                    {tier.badge}\n                  </p>\n                ) : null}\n                <h3 className=\"text-lg font-medium text-foreground\">\n                  {tier.name}\n                </h3>\n                <p className=\"mt-1 text-sm text-muted-foreground\">\n                  {tier.blurb}\n                </p>\n                <p className=\"mt-5 flex items-baseline gap-1\">\n                  <span\n                    aria-live=\"polite\"\n                    className=\"text-4xl font-medium tracking-tight tabular-nums text-foreground\"\n                  >\n                    {billing === \"monthly\" ? tier.monthly : tier.yearly}\n                  </span>\n                  <span className=\"text-sm text-muted-foreground\">\n                    {tier.per}\n                  </span>\n                </p>\n                <p className=\"mt-1 text-xs text-muted-foreground\">\n                  {billing === \"monthly\" ? tier.billed.monthly : tier.billed.yearly}\n                </p>\n                <ul className=\"mt-5 space-y-2 border-t border-border-subtle pt-5\">\n                  {tier.features.map((feature) => (\n                    <li\n                      key={feature}\n                      className=\"flex items-start gap-2 text-sm text-foreground/90\"\n                    >\n                      <Check\n                        className=\"mt-0.5 size-3.5 shrink-0 text-brand\"\n                        strokeWidth={2.5}\n                        aria-hidden\n                      />\n                      <span>{feature}</span>\n                    </li>\n                  ))}\n                </ul>\n                <Link\n                  href={tier.cta.href}\n                  className={\n                    tier.highlight\n                      ? \"atro-btn mt-6 w-full justify-center\"\n                      : \"atro-btn-ghost mt-6 w-full justify-center\"\n                  }\n                >\n                  {tier.cta.label}\n                  <ArrowRight className=\"size-3.5\" aria-hidden />\n                </Link>\n              </li>\n            ))}\n          </ul>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/blocks/pricing-tiers.tsx"
    }
  ],
  "type": "registry:block"
}