{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-03",
  "title": "Pricing 03",
  "description": "A focused two-plan pricing section with an ambient fluid treatment for the popular plan.",
  "dependencies": [
    "lucide-react"
  ],
  "files": [
    {
      "path": "src/registry/blocks/pricing-03/pricing-03.tsx",
      "content": "\"use client\";\n\nimport { ArrowUpRight, Check } from \"lucide-react\";\n\nimport FluidWave from \"./fluid-wave\";\n\ntype Plan = {\n\tname: string;\n\tdescription: string;\n\tprice: number;\n\tfeatures: readonly string[];\n\tcta: string;\n\thref: string;\n\tpopular?: boolean;\n};\n\nconst PLANS: readonly Plan[] = [\n\t{\n\t\tname: \"Core\",\n\t\tdescription: \"For individuals turning focused ideas into real products.\",\n\t\tprice: 12,\n\t\tfeatures: [\n\t\t\t\"3 active projects\",\n\t\t\t\"Unlimited collaborators\",\n\t\t\t\"5 GB file storage\",\n\t\t\t\"Community support\",\n\t\t],\n\t\tcta: \"Start with Core\",\n\t\thref: \"/signup?plan=core\",\n\t},\n\t{\n\t\tname: \"Studio\",\n\t\tdescription: \"For ambitious teams shipping together, without the busywork.\",\n\t\tprice: 29,\n\t\tfeatures: [\n\t\t\t\"Unlimited projects\",\n\t\t\t\"Advanced permissions\",\n\t\t\t\"100 GB file storage\",\n\t\t\t\"Priority support\",\n\t\t],\n\t\tcta: \"Choose Studio\",\n\t\thref: \"/signup?plan=studio\",\n\t\tpopular: true,\n\t},\n];\n\nfunction PlanCard({ plan }: { plan: Plan }) {\n\treturn (\n\t\t<article\n\t\t\taria-label={`${plan.name} plan`}\n\t\t\tclassName={`relative isolate flex min-h-[34rem] overflow-hidden rounded-[2rem] border p-7 sm:p-9 ${\n\t\t\t\tplan.popular\n\t\t\t\t\t? \"border-white/10 bg-[#0a0a0a] text-white shadow-[0_24px_70px_-32px_rgba(252,76,1,0.42)]\"\n\t\t\t\t\t: \"border-border bg-card text-card-foreground shadow-[0_24px_70px_-42px_rgba(15,23,42,0.3)]\"\n\t\t\t}`}\n\t\t>\n\t\t\t{plan.popular ? (\n\t\t\t\t<>\n\t\t\t\t\t<div\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tclassName=\"absolute inset-0 -z-20 bg-[radial-gradient(circle_at_70%_100%,rgba(252,76,1,0.66),transparent_66%)]\"\n\t\t\t\t\t/>\n\t\t\t\t\t<div aria-hidden=\"true\" className=\"absolute inset-0 -z-10\">\n\t\t\t\t\t\t<FluidWave />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tclassName=\"absolute inset-0 -z-10 bg-[linear-gradient(to_bottom,#0a0a0a_8%,rgba(10,10,10,0.9)_38%,rgba(10,10,10,0.36)_72%,rgba(10,10,10,0.08))]\"\n\t\t\t\t\t/>\n\t\t\t\t</>\n\t\t\t) : null}\n\n\t\t\t<div className=\"flex w-full flex-col\">\n\t\t\t\t<div className=\"flex items-start justify-between gap-4\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<h3 className=\"font-medium text-2xl tracking-[-0.03em]\">\n\t\t\t\t\t\t\t{plan.name}\n\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t<p\n\t\t\t\t\t\t\tclassName={`mt-3 max-w-sm text-sm leading-6 ${\n\t\t\t\t\t\t\t\tplan.popular ? \"text-white/62\" : \"text-muted-foreground\"\n\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{plan.description}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{plan.popular ? (\n\t\t\t\t\t\t<span className=\"shrink-0 whitespace-nowrap rounded-full border border-white/15 bg-white/10 px-3 py-1 font-medium text-[0.68rem] text-white/90 uppercase tracking-[0.14em] backdrop-blur-md\">\n\t\t\t\t\t\t\tMost popular\n\t\t\t\t\t\t</span>\n\t\t\t\t\t) : null}\n\t\t\t\t</div>\n\n\t\t\t\t<div className=\"mt-10 flex items-end gap-2\">\n\t\t\t\t\t<span className=\"font-medium text-5xl tracking-[-0.055em]\">\n\t\t\t\t\t\t${plan.price}\n\t\t\t\t\t</span>\n\t\t\t\t\t<span\n\t\t\t\t\t\tclassName={`pb-1 text-sm ${\n\t\t\t\t\t\t\tplan.popular ? \"text-white/58\" : \"text-muted-foreground\"\n\t\t\t\t\t\t}`}\n\t\t\t\t\t>\n\t\t\t\t\t\tper month\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\n\t\t\t\t<div\n\t\t\t\t\tclassName={`my-8 h-px ${plan.popular ? \"bg-white/12\" : \"bg-border\"}`}\n\t\t\t\t/>\n\n\t\t\t\t<ul className=\"space-y-4\">\n\t\t\t\t\t{plan.features.map((feature) => (\n\t\t\t\t\t\t<li className=\"flex items-center gap-3 text-sm\" key={feature}>\n\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\tclassName={`flex size-5 shrink-0 items-center justify-center rounded-full ${\n\t\t\t\t\t\t\t\t\tplan.popular ? \"bg-white/14\" : \"bg-muted\"\n\t\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Check\n\t\t\t\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\t\t\t\tclassName=\"size-3\"\n\t\t\t\t\t\t\t\t\tstrokeWidth={2.5}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span className={plan.popular ? \"text-white/82\" : undefined}>\n\t\t\t\t\t\t\t\t{feature}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t))}\n\t\t\t\t</ul>\n\n\t\t\t\t<a\n\t\t\t\t\tclassName={`group mt-auto inline-flex h-12 touch-manipulation items-center justify-between rounded-full px-5 font-medium text-sm outline-none transition-[transform,background-color,color] duration-150 ease-[cubic-bezier(0.23,1,0.32,1)] focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 active:scale-[0.97] motion-reduce:transition-none ${\n\t\t\t\t\t\tplan.popular\n\t\t\t\t\t\t\t? \"bg-white text-[#111217] [@media(hover:hover)_and_(pointer:fine)]:hover:bg-white/88\"\n\t\t\t\t\t\t\t: \"bg-foreground text-background [@media(hover:hover)_and_(pointer:fine)]:hover:bg-foreground/86\"\n\t\t\t\t\t}`}\n\t\t\t\t\thref={plan.href}\n\t\t\t\t>\n\t\t\t\t\t{plan.cta}\n\t\t\t\t\t<span className=\"flex size-7 items-center justify-center rounded-full bg-current/10\">\n\t\t\t\t\t\t<ArrowUpRight aria-hidden=\"true\" className=\"size-3.5\" />\n\t\t\t\t\t</span>\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</article>\n\t);\n}\n\nexport function Pricing03() {\n\treturn (\n\t\t<section className=\"relative overflow-hidden bg-background px-4 py-20 text-foreground sm:px-6 sm:py-28 lg:px-8\">\n\t\t\t<div\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tclassName=\"absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-border to-transparent\"\n\t\t\t/>\n\t\t\t<div className=\"mx-auto max-w-5xl\">\n\t\t\t\t<div className=\"mb-12 grid gap-7 md:mb-16 md:grid-cols-[1fr_0.72fr] md:items-end\">\n\t\t\t\t\t<h2 className=\"max-w-xl text-balance font-medium text-4xl tracking-[-0.045em] sm:text-5xl sm:leading-[1.02]\">\n\t\t\t\t\t\tPlans that scale with the work.\n\t\t\t\t\t</h2>\n\t\t\t\t\t<p className=\"max-w-md text-pretty text-muted-foreground text-sm leading-6 md:justify-self-end\">\n\t\t\t\t\t\tStart small, then move up when your team is ready. Every plan\n\t\t\t\t\t\tincludes a 14-day trial and no long-term contract.\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\n\t\t\t\t<div className=\"grid gap-5 lg:grid-cols-2\">\n\t\t\t\t\t{PLANS.map((plan) => (\n\t\t\t\t\t\t<PlanCard key={plan.name} plan={plan} />\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\n\t\t\t\t<p className=\"mt-7 text-center text-muted-foreground text-xs\">\n\t\t\t\t\tPrices are in USD. Cancel or change your plan at any time.\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t</section>\n\t);\n}\n\nexport default Pricing03;\n",
      "type": "registry:component",
      "target": "@components/pricing-03/pricing-03.tsx"
    },
    {
      "path": "src/registry/blocks/pricing-03/fluid-wave.tsx",
      "content": "\"use client\";\n\nimport { useEffect, useRef } from \"react\";\n\nimport { bindFullscreenQuad, createProgram, hexToRgb } from \"@/lib/webgl\";\n\n// Render below native resolution, then upscale with CSS to soften the field and reduce pixel cost.\nconst RESOLUTION_SCALE = 0.5;\n\n// Begin with a developed field instead of exposing the noise origin.\nconst TIME_OFFSET = 18;\n\nconst VERT = `\nattribute vec2 a_pos;\nvoid main() {\n\tgl_Position = vec4(a_pos, 0.0, 1.0);\n}\n`;\n\nconst FRAG = `\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n\nuniform vec2 u_resolution;\nuniform float u_time;\nuniform vec3 u_color;\n\nfloat hash(vec2 p) {\n\treturn fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453123);\n}\n\nfloat noise(vec2 p) {\n\tvec2 i = floor(p);\n\tvec2 f = fract(p);\n\tvec2 u = f * f * (3.0 - 2.0 * f);\n\treturn mix(\n\t\tmix(hash(i + vec2(0.0, 0.0)), hash(i + vec2(1.0, 0.0)), u.x),\n\t\tmix(hash(i + vec2(0.0, 1.0)), hash(i + vec2(1.0, 1.0)), u.x),\n\t\tu.y\n\t);\n}\n\nfloat fbm(vec2 p) {\n\tfloat v = 0.0;\n\tfloat a = 0.6;\n\tfor (int i = 0; i < 3; i++) {\n\t\tv += a * noise(p);\n\t\tp *= 2.0;\n\t\ta *= 0.5;\n\t}\n\treturn v;\n}\n\nvoid main() {\n\tvec2 uv = gl_FragCoord.xy / u_resolution.xy;\n\tfloat t = u_time * 0.18;\n\n\tfloat x = uv.x + 0.05 * sin(uv.y * 3.2 + t * 0.6);\n\tfloat a = fbm(vec2(x * 2.6, uv.y * 1.6 - t));\n\tfloat b = fbm(vec2(x * 5.3 + 4.2, uv.y * 2.9 - t * 1.5));\n\tfloat f = a * 0.72 + b * 0.34;\n\tfloat e = clamp(f * 2.4 - uv.y * 2.3, 0.0, 1.0);\n\tfloat alpha = 0.3 * smoothstep(0.06, 0.5, e) + 0.7 * smoothstep(0.5, 0.96, e);\n\n\tgl_FragColor = vec4(u_color * alpha, alpha);\n}\n`;\n\nexport default function FluidWave({ color = \"#FC4C01\" }: { color?: string }) {\n\tconst canvasRef = useRef<HTMLCanvasElement>(null);\n\n\tuseEffect(() => {\n\t\tconst canvas = canvasRef.current;\n\t\tif (!canvas) return;\n\n\t\tconst gl = canvas.getContext(\"webgl\", { antialias: false, alpha: true });\n\t\tif (!gl) return;\n\n\t\tconst compiled = createProgram(gl, VERT, FRAG);\n\t\tif (!compiled) return;\n\n\t\tconst activateProgram = gl.useProgram.bind(gl);\n\t\tactivateProgram(compiled.program);\n\n\t\tconst quad = bindFullscreenQuad(gl, compiled.program, \"a_pos\");\n\t\tif (!quad) {\n\t\t\tcompiled.dispose();\n\t\t\treturn;\n\t\t}\n\n\t\tconst resolution = gl.getUniformLocation(compiled.program, \"u_resolution\");\n\t\tconst time = gl.getUniformLocation(compiled.program, \"u_time\");\n\t\tgl.uniform3f(\n\t\t\tgl.getUniformLocation(compiled.program, \"u_color\"),\n\t\t\t...hexToRgb(color),\n\t\t);\n\n\t\tconst reduceMotion = window.matchMedia(\n\t\t\t\"(prefers-reduced-motion: reduce)\",\n\t\t).matches;\n\t\tconst startedAt = performance.now();\n\t\tconst elapsed = () => (performance.now() - startedAt) / 1000;\n\t\tlet frame = 0;\n\n\t\tconst draw = () => {\n\t\t\tgl.uniform1f(time, TIME_OFFSET + (reduceMotion ? 0 : elapsed()));\n\t\t\tgl.drawArrays(gl.TRIANGLES, 0, 6);\n\t\t};\n\n\t\tconst loop = () => {\n\t\t\tdraw();\n\t\t\tframe = requestAnimationFrame(loop);\n\t\t};\n\n\t\tconst play = () => {\n\t\t\tif (frame || reduceMotion) return;\n\t\t\tframe = requestAnimationFrame(loop);\n\t\t};\n\n\t\tconst pause = () => {\n\t\t\tcancelAnimationFrame(frame);\n\t\t\tframe = 0;\n\t\t};\n\n\t\tconst resize = () => {\n\t\t\tconst width = Math.max(\n\t\t\t\t1,\n\t\t\t\tMath.round(canvas.clientWidth * RESOLUTION_SCALE),\n\t\t\t);\n\t\t\tconst height = Math.max(\n\t\t\t\t1,\n\t\t\t\tMath.round(canvas.clientHeight * RESOLUTION_SCALE),\n\t\t\t);\n\t\t\tif (canvas.width === width && canvas.height === height) return;\n\n\t\t\tcanvas.width = width;\n\t\t\tcanvas.height = height;\n\t\t\tgl.viewport(0, 0, width, height);\n\t\t\tgl.uniform2f(resolution, width, height);\n\t\t\tdraw();\n\t\t};\n\n\t\tresize();\n\t\tdraw();\n\n\t\tconst resizeObserver = new ResizeObserver(resize);\n\t\tresizeObserver.observe(canvas);\n\n\t\tconst visibilityObserver = new IntersectionObserver(([entry]) => {\n\t\t\tif (entry?.isIntersecting) play();\n\t\t\telse pause();\n\t\t});\n\t\tvisibilityObserver.observe(canvas);\n\n\t\treturn () => {\n\t\t\tpause();\n\t\t\tresizeObserver.disconnect();\n\t\t\tvisibilityObserver.disconnect();\n\t\t\tgl.deleteBuffer(quad);\n\t\t\tcompiled.dispose();\n\t\t};\n\t}, [color]);\n\n\treturn (\n\t\t// biome-ignore lint/a11y/noAriaHiddenOnFocusable: Decorative canvas with no interactive fallback content.\n\t\t<canvas\n\t\t\tref={canvasRef}\n\t\t\taria-hidden=\"true\"\n\t\t\tclassName=\"pointer-events-none absolute inset-0 h-full w-full\"\n\t\t/>\n\t);\n}\n",
      "type": "registry:component",
      "target": "@components/pricing-03/fluid-wave.tsx"
    },
    {
      "path": "src/lib/webgl.ts",
      "content": "type CompiledProgram = {\n\tprogram: WebGLProgram;\n\tdispose: () => void;\n};\n\nfunction compileShader(\n\tgl: WebGLRenderingContext,\n\ttype: number,\n\tsource: string,\n) {\n\tconst shader = gl.createShader(type);\n\tif (!shader) return null;\n\n\tgl.shaderSource(shader, source);\n\tgl.compileShader(shader);\n\n\tif (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {\n\t\tconsole.error(gl.getShaderInfoLog(shader));\n\t\tgl.deleteShader(shader);\n\t\treturn null;\n\t}\n\n\treturn shader;\n}\n\nexport function createProgram(\n\tgl: WebGLRenderingContext,\n\tvertexSource: string,\n\tfragmentSource: string,\n): CompiledProgram | null {\n\tconst vertexShader = compileShader(gl, gl.VERTEX_SHADER, vertexSource);\n\tconst fragmentShader = compileShader(gl, gl.FRAGMENT_SHADER, fragmentSource);\n\tconst program = gl.createProgram();\n\n\tif (!vertexShader || !fragmentShader || !program) {\n\t\tif (vertexShader) gl.deleteShader(vertexShader);\n\t\tif (fragmentShader) gl.deleteShader(fragmentShader);\n\t\tif (program) gl.deleteProgram(program);\n\t\treturn null;\n\t}\n\n\tgl.attachShader(program, vertexShader);\n\tgl.attachShader(program, fragmentShader);\n\tgl.linkProgram(program);\n\n\tif (!gl.getProgramParameter(program, gl.LINK_STATUS)) {\n\t\tconsole.error(gl.getProgramInfoLog(program));\n\t\tgl.deleteProgram(program);\n\t\tgl.deleteShader(vertexShader);\n\t\tgl.deleteShader(fragmentShader);\n\t\treturn null;\n\t}\n\n\treturn {\n\t\tprogram,\n\t\tdispose: () => {\n\t\t\tgl.deleteProgram(program);\n\t\t\tgl.deleteShader(vertexShader);\n\t\t\tgl.deleteShader(fragmentShader);\n\t\t},\n\t};\n}\n\nexport function bindFullscreenQuad(\n\tgl: WebGLRenderingContext,\n\tprogram: WebGLProgram,\n\tattributeName: string,\n) {\n\tconst buffer = gl.createBuffer();\n\tconst attribute = gl.getAttribLocation(program, attributeName);\n\tif (!buffer || attribute < 0) {\n\t\tif (buffer) gl.deleteBuffer(buffer);\n\t\treturn null;\n\t}\n\n\tgl.bindBuffer(gl.ARRAY_BUFFER, buffer);\n\tgl.bufferData(\n\t\tgl.ARRAY_BUFFER,\n\t\tnew Float32Array([-1, -1, 1, -1, -1, 1, -1, 1, 1, -1, 1, 1]),\n\t\tgl.STATIC_DRAW,\n\t);\n\tgl.enableVertexAttribArray(attribute);\n\tgl.vertexAttribPointer(attribute, 2, gl.FLOAT, false, 0, 0);\n\n\treturn buffer;\n}\n\nexport function hexToRgb(hex: string): [number, number, number] {\n\tlet value = hex.replace(\"#\", \"\").trim();\n\n\tif (value.length === 3) {\n\t\tvalue = `${value[0]}${value[0]}${value[1]}${value[1]}${value[2]}${value[2]}`;\n\t}\n\n\tconst parsed = Number.parseInt(value, 16);\n\tif (value.length !== 6 || Number.isNaN(parsed)) return [1, 0.3, 0];\n\n\treturn [\n\t\t((parsed >> 16) & 255) / 255,\n\t\t((parsed >> 8) & 255) / 255,\n\t\t(parsed & 255) / 255,\n\t];\n}\n",
      "type": "registry:lib",
      "target": "@lib/webgl.ts"
    }
  ],
  "meta": {
    "createdAt": "2026-07-30",
    "iframeHeight": 940,
    "previewClassName": "min-h-screen"
  },
  "categories": [
    "pricing"
  ],
  "type": "registry:block"
}