{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-card",
  "type": "registry:component",
  "title": "PricingCard",
  "description": "A single pricing tier on the Onda glass Surface — tier name, a large price, billing period, an accent-checkmark feature list, and a CTA button. Rises in on the house spring; set recommended to lift + scale it and add an accent badge + glow. One card; the consumer arranges three.",
  "dependencies": [
    "remotion",
    "zod",
    "react"
  ],
  "registryDependencies": [
    "lib-canvas",
    "lib-hooks",
    "lib-primitives"
  ],
  "files": [
    {
      "path": "registry/components/pricing-card/PricingCard.tsx",
      "type": "registry:component",
      "target": "components/onda/pricing-card/PricingCard.tsx",
      "content": "import React from 'react';\nimport { useVideoConfig } from 'remotion';\nimport { PlacementBox, resolveSize } from '../../../lib/canvas';\nimport { Surface, Glow } from '../../../lib/primitives';\nimport { useEntrance } from '../../../lib/hooks';\nimport { pricingCardSchema, type PricingCardProps } from './schema';\n\nexport { pricingCardSchema, type PricingCardProps };\n\nconst BODY_FONT = 'var(--onda-font-body, \"Space Grotesk\", sans-serif)';\n\n/**\n * A single pricing tier on the Onda glass `Surface` — tier name, a large\n * price, billing period, an accent-checkmark feature list, and a CTA button.\n * The card rises in on the house spring. Set `recommended` to lift + scale it\n * slightly, add an accent badge, and float a soft accent glow behind it — the\n * highlighted tier in a three-up row. One card; the consumer arranges three.\n *\n * @example\n * <PricingCard tier=\"Pro\" price=\"$29\" recommended placement=\"center\" />\n */\nexport const PricingCard: React.FC<PricingCardProps> = ({\n  tier,\n  price,\n  period,\n  features,\n  cta,\n  recommended,\n  accent,\n  delay,\n  width,\n  size,\n  fontFamily,\n  placement,\n}) => {\n  const { width: cw, height: ch } = useVideoConfig();\n  const entrance = useEntrance({ type: 'rise', delay });\n  const priceFontSize = size ? resolveSize(size, { width: cw, height: ch }) : 64;\n\n  // The recommended tier sits a touch higher and larger — a static lift\n  // composed with the entrance transform, not an animation.\n  const lift = recommended ? ' translateY(-16px) scale(1.04)' : '';\n\n  return (\n    <PlacementBox placement={placement}>\n      <div style={{ opacity: entrance.opacity, transform: `${entrance.transform}${lift}` }}>\n        <Surface\n          variant=\"glass\"\n          width={width}\n          padding={40}\n          borderColor={recommended ? accent : undefined}\n        >\n          {recommended && <Glow color={accent} size={0.9} x={0.5} y={0.1} opacity={0.22} />}\n\n          <div style={{ position: 'relative', display: 'flex', flexDirection: 'column', gap: 24 }}>\n            {/* Tier name + recommended badge */}\n            <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}>\n              <div\n                style={{\n                  color: 'var(--onda-dim, #8E8E98)',\n                  fontFamily: BODY_FONT,\n                  fontSize: 15,\n                  fontWeight: 600,\n                  letterSpacing: '0.16em',\n                  textTransform: 'uppercase',\n                }}\n              >\n                {tier}\n              </div>\n              {recommended && (\n                <div\n                  style={{\n                    color: accent,\n                    fontFamily: BODY_FONT,\n                    fontSize: 12,\n                    fontWeight: 600,\n                    letterSpacing: '0.12em',\n                    textTransform: 'uppercase',\n                    border: `1px solid ${accent}`,\n                    borderRadius: 999,\n                    padding: '4px 12px',\n                    whiteSpace: 'nowrap',\n                  }}\n                >\n                  Recommended\n                </div>\n              )}\n            </div>\n\n            {/* Price + period */}\n            <div style={{ display: 'flex', alignItems: 'baseline', gap: 8 }}>\n              <span\n                style={{\n                  color: 'var(--onda-text, #F2F2F4)',\n                  fontFamily,\n                  fontSize: priceFontSize,\n                  fontWeight: 600,\n                  letterSpacing: '-0.03em',\n                  lineHeight: 1,\n                }}\n              >\n                {price}\n              </span>\n              {period && (\n                <span\n                  style={{\n                    color: 'var(--onda-faint, #56565F)',\n                    fontFamily: BODY_FONT,\n                    fontSize: 18,\n                    fontWeight: 500,\n                  }}\n                >\n                  {period}\n                </span>\n              )}\n            </div>\n\n            {/* Feature checklist — accent checkmarks */}\n            <div style={{ display: 'flex', flexDirection: 'column', gap: 14 }}>\n              {features.map((feature, i) => (\n                <div key={i} style={{ display: 'flex', alignItems: 'flex-start', gap: 12 }}>\n                  <svg\n                    width={18}\n                    height={18}\n                    viewBox=\"0 0 18 18\"\n                    fill=\"none\"\n                    aria-hidden\n                    style={{ flexShrink: 0, marginTop: 3 }}\n                  >\n                    <path\n                      d=\"M4 9.5L7.2 12.5L14 5.5\"\n                      stroke={accent}\n                      strokeWidth={2}\n                      strokeLinecap=\"round\"\n                      strokeLinejoin=\"round\"\n                    />\n                  </svg>\n                  <span\n                    style={{\n                      color: 'var(--onda-text, #F2F2F4)',\n                      fontFamily: BODY_FONT,\n                      fontSize: 18,\n                      fontWeight: 400,\n                      lineHeight: 1.4,\n                    }}\n                  >\n                    {feature}\n                  </span>\n                </div>\n              ))}\n            </div>\n\n            {/* CTA button */}\n            <div\n              style={{\n                marginTop: 8,\n                width: '100%',\n                textAlign: 'center',\n                fontFamily: BODY_FONT,\n                fontSize: 17,\n                fontWeight: 600,\n                letterSpacing: '0.01em',\n                padding: '14px 24px',\n                borderRadius: 12,\n                background: recommended ? accent : 'transparent',\n                color: recommended ? 'var(--onda-bg, #08080A)' : 'var(--onda-text, #F2F2F4)',\n                border: `1px solid ${recommended ? accent : 'var(--onda-border-lit, #26262E)'}`,\n              }}\n            >\n              {cta}\n            </div>\n          </div>\n        </Surface>\n      </div>\n    </PlacementBox>\n  );\n};\n\nexport default PricingCard;\n"
    },
    {
      "path": "registry/components/pricing-card/schema.ts",
      "type": "registry:component",
      "target": "components/onda/pricing-card/schema.ts",
      "content": "import { z } from 'zod';\nimport { placementSchema, sizeRoleSchema } from '../../../lib/canvas-schemas';\n\n/** Zod schema for {@link PricingCard} props. */\nexport const pricingCardSchema = z.object({\n  /** Discriminator literal — matches this entry's registry slug. Auto-populated when omitted (`schema.parse({})` works as before). Lets consumers build `z.discriminatedUnion('kind', [...])` directly over onda schemas. */\n  kind: z.literal('pricing-card').default('pricing-card'),\n  /** Tier name above the price (e.g. `'Pro'`). */\n  tier: z.string().default('Pro'),\n  /** The headline price, rendered large (display font). Free-form so you can pass `'$29'`, `'€19'`, or `'Free'`. */\n  price: z.string().default('$29'),\n  /** Billing period beneath the price (e.g. `'/month'`). Empty hides it. */\n  period: z.string().default('/month'),\n  /** Feature checklist — each item gets an accent checkmark. */\n  features: z.array(z.string()).default([\n    'Unlimited renders',\n    'Signature motion identity',\n    'Source you own, copied in',\n    'Priority support',\n  ]),\n  /** Call-to-action button label. */\n  cta: z.string().default('Get started'),\n  /** Lifts + scales the card and shows an accent badge — the highlighted tier. */\n  recommended: z.boolean().default(false),\n  /** The earned accent — checkmarks, badge, CTA, recommended glow. Defaults to `--onda-accent`. */\n  accent: z.string().default('var(--onda-accent, #D96B82)'),\n  /** Frames before the card enters. */\n  delay: z.number().int().min(0).default(0),\n  /** Card width in px. Wins over `size` if both are passed. */\n  width: z.number().default(380),\n  /** Semantic role for the price type — resolves to canvas-aware pixels. Overrides the price font size when set. */\n  size: sizeRoleSchema.optional(),\n  /** Onda display font. */\n  fontFamily: z.string().default('var(--onda-font-display, \"Clash Display\", sans-serif)'),\n  /** Where on the canvas this sits. Region (`'center'`, `'upper-third'`, ...) or `{ x, y, anchor }` in 0..1 canvas fractions. Coordinates may be negative or >1 for off-canvas. */\n  placement: placementSchema.optional(),\n});\n\n/** Inferred props for {@link PricingCard}. */\nexport type PricingCardProps = z.infer<typeof pricingCardSchema>;\n"
    },
    {
      "path": "registry/components/pricing-card/pricing-card.meta.json",
      "type": "registry:file",
      "target": "components/onda/pricing-card/pricing-card.meta.json",
      "content": "{\n  \"name\": \"pricing-card\",\n  \"title\": \"PricingCard\",\n  \"description\": \"A single pricing tier on the Onda glass Surface — tier name, a large price, billing period, an accent-checkmark feature list, and a CTA button. Rises in on the house spring; set recommended to lift + scale it and add an accent badge + glow. One card; the consumer arranges three.\",\n  \"pickWhen\": \"a pricing tier — solo or arranged as three across. Mark exactly one with `recommended` for the lift + glow signature.\",\n  \"category\": \"interface\",\n  \"tags\": [\n    \"card\",\n    \"pricing\",\n    \"tier\",\n    \"plan\",\n    \"cta\",\n    \"glass\"\n  ],\n  \"dependencies\": [\n    \"remotion\",\n    \"zod\",\n    \"react\"\n  ]\n}\n"
    },
    {
      "path": "registry/components/pricing-card/README.md",
      "type": "registry:file",
      "target": "components/onda/pricing-card/README.md",
      "content": "# PricingCard\n\nA single pricing tier on the Onda glass `Surface` — tier name, a large `price` in the display font, a billing `period`, an accent-checkmark feature list, and a CTA button. The card rises in on the house spring. Set `recommended` to lift and scale the card slightly, swap the CTA to a filled accent button, add a pill badge, and float a soft accent glow behind it — the highlighted tier in a three-up row. This is one card; arrange three side by side for a pricing table.\n\n## Props\n\n| Prop | Type | Default | Notes |\n| --- | --- | --- | --- |\n| `tier` | `string` | `\"Pro\"` | Tier name above the price. |\n| `price` | `string` | `\"$29\"` | Large headline price (free-form, e.g. `\"Free\"`, `\"€19\"`). |\n| `period` | `string` | `\"/month\"` | Billing period; empty hides it. |\n| `features` | `string[]` | sample list | Feature checklist with accent checkmarks. |\n| `cta` | `string` | `\"Get started\"` | CTA button label. |\n| `recommended` | `boolean` | `false` | Lifts + scales the card, fills the CTA, shows a badge + glow. |\n| `accent` | `string` | `#D96B82` | Earned accent — checkmarks, badge, CTA, glow. |\n| `delay` | `number` | `0` | Frames before entrance. |\n| `width` | `number` | `380` | Card width. |\n| `size` | size role | — | Semantic size for the price; overrides the px default. |\n| `fontFamily` | `string` | Clash Display | Price display font. |\n| `placement` | region or `{x,y,anchor}` | — | Canvas placement. |\n\n## Usage\n\n```tsx\nimport { PricingCard } from './components/onda/pricing-card/PricingCard';\n\nexport const PricingScene = () => (\n  <AbsoluteFill style={{ flexDirection: 'row', alignItems: 'center', justifyContent: 'center', gap: 32 }}>\n    <PricingCard tier=\"Starter\" price=\"$0\" period=\"/month\" cta=\"Start free\" delay={0} />\n    <PricingCard tier=\"Pro\" price=\"$29\" period=\"/month\" recommended delay={4} />\n    <PricingCard tier=\"Team\" price=\"$99\" period=\"/month\" cta=\"Contact sales\" delay={8} />\n  </AbsoluteFill>\n);\n```\n"
    }
  ]
}
