{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "plan-fit-cta",
  "type": "registry:block",
  "title": "Plan Fit CTA",
  "description": "CTA Section built with Plan Fit (usage-based pricing slider): a usage slider picks the plan that fits. A take on the range slider (range input) and pricing table (pricing cards). A closing call to action on a night band. Beside the headline, a plan picker on its own card: drag to how much video you publish and the cards swipe to the plan that fits, and the main button changes to name it.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "blocks",
    "cta-sections",
    "cta",
    "range-slider",
    "pricing-table"
  ],
  "docs": "Live preview and the components it's built with: https://keyframeui.com/blocks/cta-sections/plan-fit-cta",
  "registryDependencies": [
    "https://keyframeui.com/r/plan-fit.json"
  ],
  "files": [
    {
      "path": "components/plan-fit-cta.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { PlanFit, type PlanFitPlan } from \"@/components/ui/plan-fit\";\n\n/* ── Content ─────────────────────────────────────────────────\n * Everything you'd change to make the section yours: the copy,\n * the plans and the button. The section is a night band in both\n * schemes; the plan picker sits on its own card beside the copy,\n * and the main button always names the plan that fits.\n * ─────────────────────────────────────────────────────────── */\n\n/** The one accent: the slider, the best plan's highlight and the headline's last word. */\nconst ACCENT = \"#ff5a26\";\n\nconst HEADLINE = { before: \"Your first ten minutes are\", accent: \"on us.\" };\nconst BODY =\n  \"Upload a video, pick a language and hear yourself speak it before you choose a plan. Move to a bigger one the month you outgrow it.\";\nconst POINTS = [\"No card to start\", \"Cancel in two clicks\", \"Keep every dub you made\"];\nconst CTA = { label: (plan: string) => `Start with ${plan}`, href: \"#signup\" };\nconst SECONDARY = { label: \"Watch a 2-minute demo\", href: \"#demo\" };\n\nconst PICKER = { title: \"How much do you publish?\", unit: \"minutes\", readout: \"minutes of video a month\", start: 240 };\n\nconst PLANS: PlanFitPlan[] = [\n  {\n    id: \"creator\",\n    name: \"Creator\",\n    pitch: \"For a channel that publishes every week.\",\n    price: 24,\n    included: 120,\n    overage: { price: 8, per: 30 },\n    caption: \"Billed monthly\",\n    features: [\"32 languages\", \"1 cloned voice\"],\n  },\n  {\n    id: \"studio\",\n    name: \"Studio\",\n    pitch: \"For teams localizing a whole catalog.\",\n    price: 99,\n    included: 600,\n    overage: { price: 30, per: 150 },\n    caption: \"Billed monthly\",\n    features: [\"5 cloned voices\", \"Lip sync\"],\n  },\n  {\n    id: \"network\",\n    name: \"Network\",\n    pitch: \"For publishers releasing daily.\",\n    price: 399,\n    included: 3000,\n    caption: \"Billed monthly\",\n    features: [\"Unlimited voices\", \"API and webhooks\"],\n  },\n];\n\n/* ── Section ─────────────────────────────────────────────── */\n\nexport function PlanFitCta() {\n  // PlanFit reports the plan that fits on mount and whenever it changes.\n  const [plan, setPlan] = React.useState(PLANS[0].id);\n  const name = PLANS.find((p) => p.id === plan)?.name ?? PLANS[0].name;\n\n  return (\n    <section\n      aria-labelledby=\"plan-fit-cta-title\"\n      style={{ \"--accent\": ACCENT } as React.CSSProperties}\n      className=\"bg-[#09090b] text-white dark:bg-[#050506]\"\n    >\n      <div className=\"mx-auto grid max-w-6xl items-center gap-12 px-6 py-24 sm:py-28 lg:grid-cols-[1fr_27rem] lg:gap-16\">\n        <div>\n          <h2\n            id=\"plan-fit-cta-title\"\n            className=\"max-w-[14ch] text-4xl/[1.05] font-semibold tracking-[-0.04em] text-balance sm:text-6xl/[1.02]\"\n          >\n            {HEADLINE.before} <span className=\"text-(--accent)\">{HEADLINE.accent}</span>\n          </h2>\n          <p className=\"mt-6 max-w-md text-base/7 text-pretty text-zinc-400\">{BODY}</p>\n          <ul className=\"mt-6 flex flex-wrap gap-x-5 gap-y-2 text-sm text-zinc-300\">\n            {POINTS.map((point) => (\n              <li key={point} className=\"flex items-center gap-2\">\n                <svg\n                  viewBox=\"0 0 16 16\"\n                  fill=\"none\"\n                  stroke=\"currentColor\"\n                  strokeWidth={2}\n                  aria-hidden\n                  className=\"size-3.5 text-(--accent)\"\n                >\n                  <path d=\"m3.5 8.5 3 3 6-7\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                </svg>\n                {point}\n              </li>\n            ))}\n          </ul>\n          <div className=\"mt-9 flex flex-wrap items-center gap-x-6 gap-y-4\">\n            <a\n              href={CTA.href}\n              className=\"inline-flex h-12 items-center gap-2 rounded-full bg-(--accent) px-6 text-[15px] font-semibold text-zinc-950 transition-[filter,scale] duration-150 ease-out hover:brightness-110 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white active:scale-[0.97]\"\n            >\n              {CTA.label(name)}\n              <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden className=\"size-4\">\n                <path\n                  d=\"M3 8h10m-4-4 4 4-4 4\"\n                  stroke=\"currentColor\"\n                  strokeWidth=\"1.7\"\n                  strokeLinecap=\"round\"\n                  strokeLinejoin=\"round\"\n                />\n              </svg>\n            </a>\n            <a\n              href={SECONDARY.href}\n              className=\"rounded-sm text-sm font-medium text-zinc-300 underline decoration-white/30 underline-offset-4 transition-[color,text-decoration-color] duration-150 hover:text-white hover:decoration-white focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-white\"\n            >\n              {SECONDARY.label}\n            </a>\n          </div>\n        </div>\n\n        {/* The picker on its own card: white in light mode, raised night in dark. */}\n        <div className=\"rounded-[1.75rem] bg-white p-6 text-zinc-950 shadow-[0_40px_80px_-40px_rgb(0_0_0/0.8)] sm:p-7 dark:bg-[#141418] dark:text-white dark:shadow-[0_0_0_1px_rgb(255_255_255/0.08),0_40px_80px_-40px_rgb(0_0_0/0.9)]\">\n          <p className=\"text-[15px] font-semibold tracking-[-0.01em]\">{PICKER.title}</p>\n          <PlanFit\n            plans={PLANS}\n            unit={PICKER.unit}\n            readoutLabel={PICKER.readout}\n            defaultValue={PICKER.start}\n            onFitChange={setPlan}\n            className=\"mt-5 [--plan-fit-accent:var(--accent)] [--plan-fit-surface:#ffffff] dark:[--plan-fit-surface:#141418]\"\n          />\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}