{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "plan-fit-pricing",
  "type": "registry:block",
  "title": "Plan Fit Pricing",
  "description": "Pricing Section built with Plan Fit (usage-based pricing slider): a usage slider finds the cheapest plan. A take on the range slider (range input) and pricing table (pricing cards). A pricing section for an AI dubbing tool, priced by the minutes you dub. Drag the usage slider and four plan cards measure it against their allowances: past one, its overage shows as a hatched stretch and its price climbs, until the highlight glides to the plan that costs less. Monthly and yearly billing count every price over, and a volume card beside \"In every plan\" lights up at the slider's far end.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "blocks",
    "pricing-sections",
    "pricing",
    "range-slider",
    "pricing-table"
  ],
  "docs": "Live preview and the components it's built with: https://keyframeui.com/blocks/pricing-sections/plan-fit-pricing",
  "registryDependencies": [
    "https://keyframeui.com/r/plan-fit.json"
  ],
  "files": [
    {
      "path": "components/plan-fit-pricing.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { PlanFit, type PlanFitBilling, 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 their allowances, what every plan includes and\n * the volume card. The slider picks the plan that costs least\n * for the minutes a visitor dubs; drag it to the far end and\n * the volume card lights up.\n * ─────────────────────────────────────────────────────────── */\n\n/** The one accent: the slider, the best plan's highlight and button, and the headline's last words. */\nconst ACCENT = { light: \"#ff4a17\", dark: \"#ff6a3d\" };\n\nconst EYEBROW = \"Pricing\";\nconst HEADLINE = { before: \"Pay for the minutes\", accent: \"you dub.\" };\nconst SUBLINE =\n  \"Every plan speaks 32 languages in your own voice. Drag to how much video you publish a month and the plan that costs least lights up.\";\n\nconst UNIT = \"minutes\";\nconst READOUT = \"minutes of video dubbed per month\";\nconst START = 90;\nconst MAX = 6000;\n\nconst BILLING: PlanFitBilling[] = [\n  { id: \"monthly\", label: \"Monthly\" },\n  { id: \"yearly\", label: \"Yearly\", note: \"Save 20%\" },\n];\n\nconst PLANS: PlanFitPlan[] = [\n  {\n    id: \"free\",\n    name: \"Free\",\n    pitch: \"Hear yourself in another language.\",\n    price: 0,\n    included: 10,\n    caption: \"No card needed\",\n    features: [\"3 languages\", \"720p export\", \"Mynah watermark\"],\n    cta: { label: \"Start free\", href: \"#signup\" },\n  },\n  {\n    id: \"creator\",\n    name: \"Creator\",\n    pitch: \"For a channel that publishes every week.\",\n    price: { monthly: 24, yearly: 19 },\n    included: 120,\n    overage: { price: 8, per: 30 },\n    caption: { monthly: \"Billed monthly\", yearly: \"Billed $228 a year\" },\n    features: [\"32 languages\", \"1 cloned voice\", \"1080p, no watermark\"],\n    cta: { label: \"Start dubbing\", href: \"#creator\" },\n  },\n  {\n    id: \"studio\",\n    name: \"Studio\",\n    pitch: \"For teams localizing a whole catalog.\",\n    price: { monthly: 99, yearly: 79 },\n    included: 600,\n    overage: { price: 30, per: 150 },\n    caption: { monthly: \"Billed monthly\", yearly: \"Billed $948 a year\" },\n    features: [\"5 cloned voices\", \"Lip sync\", \"Review links for translators\"],\n    cta: { label: \"Choose Studio\", href: \"#studio\" },\n  },\n  {\n    id: \"network\",\n    name: \"Network\",\n    pitch: \"For publishers releasing daily, everywhere.\",\n    price: { monthly: 399, yearly: 319 },\n    included: 3000,\n    overage: { price: 120, per: 750 },\n    caption: { monthly: \"Billed monthly\", yearly: \"Billed $3,828 a year\" },\n    features: [\"Unlimited voices\", \"API and webhooks\", \"Priority render queue\"],\n    cta: { label: \"Choose Network\", href: \"#network\" },\n  },\n];\n\nconst INCLUDED = {\n  title: \"In every plan\",\n  items: [\n    { title: \"Your voice, cloned\", body: \"From a minute of clean audio.\" },\n    { title: \"Lip-matched edits\", body: \"Fix a line and only that line re-renders.\" },\n    { title: \"Music and effects kept\", body: \"Only the speech is replaced.\" },\n    { title: \"Subtitles included\", body: \"SRT and VTT for every language.\" },\n  ],\n};\n\n/** The card beside \"In every plan\". It lights up when the slider reaches `from` minutes. */\nconst VOLUME = {\n  from: MAX,\n  title: \"Over 6,000 minutes a month?\",\n  body: \"Volume pricing, custom voice models trained on your talent, a dedicated render queue and SSO.\",\n  cta: { label: \"Talk to sales\", href: \"#sales\" },\n  link: { label: \"Read the security brief\", href: \"#security\" },\n};\n\n/* ── Section ─────────────────────────────────────────────── */\n\nexport function PlanFitPricing() {\n  const [volume, setVolume] = React.useState(false);\n\n  return (\n    <section\n      aria-labelledby=\"plan-fit-pricing-title\"\n      style={{ \"--accent-light\": ACCENT.light, \"--accent-dark\": ACCENT.dark } as React.CSSProperties}\n      className=\"bg-[#fafafa] text-zinc-950 [--accent:var(--accent-light)] dark:bg-[#09090b] dark:text-white dark:[--accent:var(--accent-dark)]\"\n    >\n      <div className=\"mx-auto max-w-6xl px-6 pt-16 pb-24 sm:pt-20 sm:pb-28\">\n        <div className=\"mx-auto max-w-2xl text-center\">\n          <p className=\"inline-flex items-center gap-2 rounded-full bg-white px-3 py-1 text-xs font-semibold shadow-[0_0_0_1px_rgb(9_9_11/0.08)] dark:bg-white/[0.06] dark:shadow-[0_0_0_1px_rgb(255_255_255/0.1)]\">\n            <span aria-hidden className=\"size-1.5 rounded-full bg-(--accent)\" />\n            {EYEBROW}\n          </p>\n          <h2\n            id=\"plan-fit-pricing-title\"\n            className=\"mt-5 text-4xl/[1.05] font-semibold tracking-[-0.04em] text-balance sm:text-[3.5rem]/[1.02]\"\n          >\n            {HEADLINE.before} <span className=\"text-(--accent)\">{HEADLINE.accent}</span>\n          </h2>\n          <p className=\"mx-auto mt-5 max-w-xl text-base/7 text-pretty text-zinc-600 dark:text-zinc-400\">{SUBLINE}</p>\n        </div>\n\n        <PlanFit\n          plans={PLANS}\n          unit={UNIT}\n          readoutLabel={READOUT}\n          defaultValue={START}\n          max={MAX}\n          billing={BILLING}\n          onValueChange={(usage) => setVolume(usage >= VOLUME.from)}\n          className=\"mt-12 [--plan-fit-accent:var(--accent)] [--plan-fit-surface:#ffffff] dark:[--plan-fit-surface:#0f0f12]\"\n        />\n\n        <div className=\"mt-6 grid gap-6 lg:grid-cols-5\">\n          <div className=\"rounded-2xl bg-white p-6 shadow-[0_0_0_1px_rgb(9_9_11/0.09)] sm:p-8 lg:col-span-3 dark:bg-[#0f0f12] dark:shadow-[0_0_0_1px_rgb(255_255_255/0.1)]\">\n            <h3 className=\"text-[15px] font-semibold tracking-[-0.01em]\">{INCLUDED.title}</h3>\n            <ul className=\"mt-5 grid gap-x-8 gap-y-5 sm:grid-cols-2\">\n              {INCLUDED.items.map((item) => (\n                <li key={item.title} className=\"flex gap-3\">\n                  <span\n                    aria-hidden\n                    className=\"mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full bg-(--accent)/12 text-(--accent)\"\n                  >\n                    <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth={2} className=\"size-3\">\n                      <path d=\"m3.5 8.5 3 3 6-7\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                    </svg>\n                  </span>\n                  <span className=\"min-w-0\">\n                    <span className=\"block text-sm font-medium\">{item.title}</span>\n                    <span className=\"mt-0.5 block text-sm text-zinc-500 dark:text-zinc-400\">{item.body}</span>\n                  </span>\n                </li>\n              ))}\n            </ul>\n          </div>\n\n          {/* Volume: a night card in both schemes. Its ring takes the accent once the slider reaches the far end. */}\n          <div\n            data-active={volume || undefined}\n            className=\"flex flex-col rounded-2xl bg-zinc-950 p-6 text-white shadow-[0_0_0_1px_rgb(255_255_255/0.06)] transition-shadow duration-200 ease-out data-active:shadow-[0_0_0_2px_var(--accent),0_24px_48px_-24px_var(--accent)] sm:p-8 lg:col-span-2 dark:bg-[#141418] dark:shadow-[0_0_0_1px_rgb(255_255_255/0.1)]\"\n          >\n            <h3 className=\"text-[15px] font-semibold tracking-[-0.01em]\">{VOLUME.title}</h3>\n            <p className=\"mt-2 text-sm/6 text-pretty text-zinc-400\">{VOLUME.body}</p>\n            <div className=\"mt-6 flex flex-wrap items-center gap-x-5 gap-y-3 lg:mt-auto lg:pt-6\">\n              <a\n                href={VOLUME.cta.href}\n                className=\"inline-flex h-9 items-center rounded-full bg-white px-4 text-[13px] font-semibold text-zinc-950 transition-[background-color,scale] duration-150 ease-out hover:bg-zinc-200 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--accent) active:scale-[0.97]\"\n              >\n                {VOLUME.cta.label}\n              </a>\n              <a\n                href={VOLUME.link.href}\n                className=\"rounded-sm text-[13px] 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-(--accent)\"\n              >\n                {VOLUME.link.label}\n              </a>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}