{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "echo-reel-pricing",
  "type": "registry:block",
  "title": "Echo Reel Pricing",
  "description": "Pricing Section built with Echo Reel (rotating text headline) and Odometer (animated number counter): the plan picker is one giant rolling word. A take on the text animation (text effect) and number counter (count up). A pricing section where the plan picker is one giant word. Click the plan printed above or below, or press ↑ ↓, and the reel turns it into the middle and inks it in, while the card beside it rolls the price and the monthly photo count with an Odometer. A monthly or yearly switch rolls the price too.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "blocks",
    "pricing-sections",
    "pricing",
    "text-animation",
    "number-counter"
  ],
  "docs": "Live preview and the components it's built with: https://keyframeui.com/blocks/pricing-sections/echo-reel-pricing",
  "registryDependencies": [
    "https://keyframeui.com/r/echo-reel.json",
    "https://keyframeui.com/r/odometer.json"
  ],
  "files": [
    {
      "path": "components/echo-reel-pricing.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { EchoReel } from \"@/components/ui/echo-reel\";\nimport { Odometer } from \"@/components/ui/odometer\";\n\n/* ── Content ─────────────────────────────────────────────────\n * Everything you'd change to make the section yours: the\n * palette, the plans and the copy. The giant word is the plan\n * picker: click the word above or below, or focus it and use\n * the arrow keys, and the card beside it rolls to that plan.\n * ─────────────────────────────────────────────────────────── */\n\nconst PALETTE = {\n  light: { paper: \"#ffffff\", ink: \"#0b0b10\", accent: \"#5b2bff\", card: \"#f6f5fb\" },\n  dark: { paper: \"#07070c\", ink: \"#f5f5f7\", accent: \"#9b83ff\", card: \"#111018\" },\n};\n\nconst EYEBROW = \"Pricing\";\nconst HEADLINE = \"Pay for photos, not seats.\";\nconst HINT = \"Pick a plan on the reel, or focus it and press ↑ ↓\";\nconst YEARLY_SAVING = 0.2;\n\nconst PLANS = [\n  {\n    name: \"Starter\",\n    monthly: 19,\n    photos: 60,\n    blurb: \"For a shop with a few new products a month.\",\n    features: [\"Cutouts and soft shadows\", \"Every marketplace crop\", \"Alt text in English\", \"Exports up to 2K\", \"Email support\"],\n    cta: { label: \"Start with Starter\", href: \"#starter\" },\n  },\n  {\n    name: \"Studio\",\n    monthly: 79,\n    photos: 400,\n    blurb: \"For brands shooting a full catalog every season.\",\n    features: [\"Everything in Starter\", \"Lifestyle scenes, lit to match\", \"12 colorways from one shot\", \"Alt text in 9 languages\", \"4K exports for print\"],\n    cta: { label: \"Try Studio free for 14 days\", href: \"#studio\" },\n  },\n  {\n    name: \"Brand\",\n    monthly: 249,\n    photos: 2000,\n    blurb: \"For teams feeding a store, ads and wholesale at once.\",\n    features: [\"Everything in Studio\", \"Your own trained look\", \"Bulk uploads from a folder\", \"Five seats, review links\", \"A shoot lead on Slack\"],\n    cta: { label: \"Talk to us about Brand\", href: \"#brand\" },\n  },\n];\n\n/* ── Section ─────────────────────────────────────────────── */\n\nconst usd: Intl.NumberFormatOptions = { style: \"currency\", currency: \"USD\", maximumFractionDigits: 0 };\n\nexport function EchoReelPricing() {\n  const [plan, setPlan] = React.useState(1);\n  const [yearly, setYearly] = React.useState(true);\n  const current = PLANS[plan];\n  const price = Math.round(current.monthly * (yearly ? 1 - YEARLY_SAVING : 1));\n\n  return (\n    <section\n      style={\n        {\n          \"--paper-light\": PALETTE.light.paper,\n          \"--ink-light\": PALETTE.light.ink,\n          \"--accent-light\": PALETTE.light.accent,\n          \"--card-light\": PALETTE.light.card,\n          \"--paper-dark\": PALETTE.dark.paper,\n          \"--ink-dark\": PALETTE.dark.ink,\n          \"--accent-dark\": PALETTE.dark.accent,\n          \"--card-dark\": PALETTE.dark.card,\n        } as React.CSSProperties\n      }\n      className=\"relative overflow-hidden bg-(--paper) text-(--ink) [--accent:var(--accent-light)] [--card:var(--card-light)] [--ink:var(--ink-light)] [--paper:var(--paper-light)] dark:[--accent:var(--accent-dark)] dark:[--card:var(--card-dark)] dark:[--ink:var(--ink-dark)] dark:[--paper:var(--paper-dark)]\"\n    >\n      <div className=\"mx-auto max-w-6xl px-6 py-24 sm:py-28\">\n        <div className=\"flex flex-col items-start justify-between gap-6 sm:flex-row sm:items-end\">\n          <div>\n            <p className=\"text-sm font-semibold text-(--accent)\">{EYEBROW}</p>\n            <h2 className=\"mt-3 text-4xl font-semibold tracking-[-0.04em] text-balance sm:text-5xl\">{HEADLINE}</h2>\n          </div>\n          <div role=\"group\" aria-label=\"Billing\" className=\"flex rounded-full bg-(--card) p-1 text-sm font-medium\">\n            {[false, true].map((y) => (\n              <button\n                key={String(y)}\n                type=\"button\"\n                aria-pressed={yearly === y}\n                onClick={() => setYearly(y)}\n                className=\"flex h-9 items-center gap-1.5 rounded-full px-4 transition-[background-color,color,box-shadow] duration-200 ease-out focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--accent) aria-pressed:bg-(--paper) aria-pressed:shadow-[0_1px_2px_rgb(0_0_0/0.08),0_0_0_1px_rgb(0_0_0/0.04)] [&:not([aria-pressed=true])]:opacity-60\"\n              >\n                {y ? \"Yearly\" : \"Monthly\"}\n                {y && <span className=\"rounded-full bg-(--accent) px-1.5 py-0.5 text-[10px] leading-none font-semibold text-white dark:text-[#07070c]\">−20%</span>}\n              </button>\n            ))}\n          </div>\n        </div>\n\n        <div className=\"mt-12 grid items-center gap-10 lg:mt-16 lg:grid-cols-[minmax(0,1.2fr)_minmax(0,1fr)] lg:gap-14\">\n          <div>\n            <EchoReel\n              words={PLANS.map((p) => p.name)}\n              value={plan}\n              onValueChange={(index) => setPlan(index)}\n              interval={false}\n              className=\"text-(--accent)\"\n            />\n            <p className=\"mt-4 text-center text-[13px] opacity-55\">{HINT}</p>\n          </div>\n\n          <div className=\"rounded-[28px] bg-(--card) p-7 sm:p-8\">\n            <div className=\"flex items-baseline justify-between gap-4\">\n              <p className=\"text-sm font-semibold\">{current.name}</p>\n              <p className=\"text-sm opacity-60\">\n                <Odometer value={current.photos} className=\"font-semibold tabular-nums opacity-100\" /> photos a month\n              </p>\n            </div>\n            <p className=\"mt-5 flex items-baseline gap-1.5\">\n              <Odometer value={price} format={usd} className=\"text-5xl font-semibold tracking-[-0.04em]\" />\n              <span className=\"text-sm opacity-60\">/month</span>\n            </p>\n            <p className=\"mt-1.5 text-[13px] opacity-60\">\n              {yearly ? `Billed $${(price * 12).toLocaleString(\"en-US\")} a year` : \"Billed monthly, cancel anytime\"}\n            </p>\n            <p className=\"mt-5 text-[15px] leading-relaxed opacity-80\">{current.blurb}</p>\n            <ul className=\"mt-5 space-y-2.5 text-[14px]\">\n              {current.features.map((feature) => (\n                <li key={feature} className=\"flex gap-2.5\">\n                  <svg viewBox=\"0 0 16 16\" aria-hidden className=\"mt-0.5 size-4 shrink-0 text-(--accent)\">\n                    <path d=\"M3.5 8.5l3 3 6-7\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                  </svg>\n                  {feature}\n                </li>\n              ))}\n            </ul>\n            <a\n              href={current.cta.href}\n              className=\"mt-7 flex h-12 items-center justify-center rounded-full bg-(--accent) px-6 text-[15px] font-semibold text-white transition-[opacity,scale] duration-150 hover:opacity-90 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--accent) active:scale-[0.98] dark:text-[#07070c]\"\n            >\n              {current.cta.label}\n            </a>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}