{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-spotlight-grid",
  "type": "registry:component",
  "title": "Pricing Spotlight Grid",
  "description": "A single light follows the pointer across three plan cards, lighting their borders, inner surface and a dotted field in the gaps between them. When the pointer leaves, the light settles on a resting point.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "pricing",
    "pricing",
    "spotlight",
    "pointer",
    "glow border",
    "plans",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/pricing-spotlight-grid",
  "files": [
    {
      "path": "registry/hyperblur/pricing-spotlight-grid.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/pricing-spotlight-grid.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface PricingSpotlightTier {\n  name: string;\n  description: string;\n  price: number | null;\n  priceNote: string;\n  features: string[];\n  cta: { label: string; href: string };\n  recommended?: boolean;\n}\n\nexport interface PricingSpotlightGridProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  tiers?: PricingSpotlightTier[];\n  currency?: string;\n  locale?: string;\n  customLabel?: string;\n  recommendedLabel?: string;\n  radius?: number;\n  restPosition?: { x: number; y: number } | null;\n  accent?: string;\n}\n\nconst defaultTiers: PricingSpotlightTier[] = [\n  {\n    name: \"Basic\",\n    description: \"Everything one designer needs to run client reviews.\",\n    price: 12,\n    priceNote: \"per editor / month\",\n    features: [\"5 active projects\", \"Unlimited reviewers\", \"Version history, 30 days\", \"Figma and Slack import\"],\n    cta: { label: \"Get Basic\", href: \"#\" },\n  },\n  {\n    name: \"Team\",\n    description: \"Shared libraries and approvals for growing studios.\",\n    price: 28,\n    priceNote: \"per editor / month\",\n    features: [\"Unlimited projects\", \"Approval workflows\", \"Version history, forever\", \"Custom domains for share links\", \"Priority support\"],\n    cta: { label: \"Start free trial\", href: \"#\" },\n    recommended: true,\n  },\n  {\n    name: \"Enterprise\",\n    description: \"Security reviews, SSO and a contract that fits.\",\n    price: null,\n    priceNote: \"annual agreement\",\n    features: [\"Everything in Team\", \"SAML SSO and SCIM\", \"Data residency in EU or US\", \"Audit log export\", \"Named account team\"],\n    cta: { label: \"Book a demo\", href: \"#\" },\n  },\n];\n\nconst defaultRest = { x: 0.5, y: 0.12 };\n\nconst css = `\n.hb-vh3 {\n  --hb-vh3-accent: #7fb3ff;\n  --hb-vh3-r: 280px;\n  container-type: inline-size;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  background: #070708;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-vh3 *, .hb-vh3 *::before, .hb-vh3 *::after { box-sizing: border-box; }\n.hb-vh3-inner { max-width: 1080px; margin: 0 auto; padding: 72px 20px; }\n.hb-vh3-head { display: grid; gap: 12px; justify-items: center; text-align: center; }\n.hb-vh3-eyebrow {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  height: 28px;\n  padding: 0 12px;\n  border: 1px solid rgba(255, 255, 255, .1);\n  border-radius: 999px;\n  background: rgba(255, 255, 255, .03);\n  color: #a1a1a1;\n  font-size: 12.5px;\n  font-weight: 500;\n}\n.hb-vh3-eyebrow i { width: 6px; height: 6px; border-radius: 999px; background: var(--hb-vh3-accent); box-shadow: 0 0 10px var(--hb-vh3-accent); font-style: normal; }\n.hb-vh3-title { margin: 6px 0 0; max-width: 640px; font-family: var(--font-grotesk), var(--font-sans), sans-serif; font-size: clamp(30px, 5cqi, 50px); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }\n.hb-vh3-sub { margin: 0; max-width: 520px; color: #8f8f8f; font-size: 15.5px; line-height: 1.6; }\n.hb-vh3-field { position: relative; margin-top: 44px; }\n.hb-vh3-field::before {\n  content: \"\";\n  position: absolute;\n  inset: -40px;\n  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.5px);\n  background-size: 18px 18px;\n  -webkit-mask-image: radial-gradient(var(--hb-vh3-r) circle at var(--gx, -999px) var(--gy, -999px), #000, transparent 70%);\n  mask-image: radial-gradient(var(--hb-vh3-r) circle at var(--gx, -999px) var(--gy, -999px), #000, transparent 70%);\n  pointer-events: none;\n  transition: opacity .4s ease;\n  opacity: var(--go, 0);\n}\n.hb-vh3-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }\n@container (min-width: 760px) { .hb-vh3-grid { grid-template-columns: repeat(3, 1fr); } }\n.hb-vh3-card {\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  padding: 28px 24px 24px;\n  border-radius: 18px;\n  background: rgba(255, 255, 255, .06);\n  isolation: isolate;\n}\n.hb-vh3-card::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  border-radius: inherit;\n  padding: 1px;\n  background: radial-gradient(var(--hb-vh3-r) circle at var(--x, -999px) var(--y, -999px), var(--hb-vh3-accent), rgba(255, 255, 255, .08) 45%, rgba(255, 255, 255, .06));\n  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);\n  -webkit-mask-composite: xor;\n  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);\n}\n.hb-vh3-card::after {\n  content: \"\";\n  position: absolute;\n  inset: 1px;\n  z-index: -2;\n  border-radius: 17px;\n  background:\n    radial-gradient(calc(var(--hb-vh3-r) * .9) circle at var(--x, -999px) var(--y, -999px), color-mix(in srgb, var(--hb-vh3-accent) 10%, transparent), transparent 70%),\n    linear-gradient(180deg, #111113, #0b0b0d);\n}\n.hb-vh3-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }\n.hb-vh3-name { margin: 0; font-size: 15px; font-weight: 600; }\n.hb-vh3-rec {\n  height: 24px;\n  padding: 0 10px;\n  border-radius: 999px;\n  background: color-mix(in srgb, var(--hb-vh3-accent) 16%, transparent);\n  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hb-vh3-accent) 40%, transparent);\n  color: color-mix(in srgb, var(--hb-vh3-accent) 40%, #fff);\n  font-size: 11.5px;\n  font-weight: 600;\n  line-height: 24px;\n  white-space: nowrap;\n}\n.hb-vh3-desc { margin: 8px 0 0; min-height: 40px; color: #8f8f8f; font-size: 13.5px; line-height: 1.5; }\n.hb-vh3-price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }\n.hb-vh3-price strong { font-family: var(--font-grotesk), var(--font-sans), sans-serif; font-size: 44px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }\n.hb-vh3-price span { color: #8f8f8f; font-size: 13px; }\n.hb-vh3-cta {\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 8px;\n  height: 42px;\n  margin-top: 22px;\n  border-radius: 11px;\n  border: 1px solid rgba(255, 255, 255, .12);\n  background: rgba(255, 255, 255, .04);\n  color: #ededed;\n  font-size: 14px;\n  font-weight: 600;\n  text-decoration: none;\n  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;\n}\n.hb-vh3-cta svg { width: 14px; height: 14px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }\n.hb-vh3-cta:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }\n.hb-vh3-cta:hover svg { transform: translateX(3px); }\n.hb-vh3-cta:active { transform: scale(.98); }\n.hb-vh3-cta:focus-visible { outline: 2px solid var(--hb-vh3-accent); outline-offset: 2px; }\n.hb-vh3-card[data-rec=\"true\"] .hb-vh3-cta { border-color: transparent; background: #ededed; color: #0a0a0a; }\n.hb-vh3-card[data-rec=\"true\"] .hb-vh3-cta:hover { background: #fff; }\n.hb-vh3-list { display: grid; gap: 11px; margin: 24px 0 0; padding: 0; list-style: none; }\n.hb-vh3-list li { display: flex; align-items: flex-start; gap: 10px; color: #b3b3b3; font-size: 13.5px; line-height: 1.4; }\n.hb-vh3-list svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: #6f6f6f; transition: color .3s ease; }\n.hb-vh3-card:hover .hb-vh3-list svg { color: var(--hb-vh3-accent); }\n@media (hover: none) { .hb-vh3-card::before { background: rgba(255, 255, 255, .1); } .hb-vh3-card[data-rec=\"true\"]::before { background: var(--hb-vh3-accent); } }\n@media (prefers-reduced-motion: reduce) {\n  .hb-vh3 *, .hb-vh3 *::before, .hb-vh3 *::after { transition: none !important; }\n}\n`;\n\nexport function PricingSpotlightGrid({\n  eyebrow = \"Plans for every studio\",\n  title = \"Pricing that grows with your client list\",\n  subtitle = \"Move across the plans. Every tier includes unlimited reviewers, so clients never need a seat.\",\n  tiers = defaultTiers,\n  currency = \"USD\",\n  locale = \"en-US\",\n  customLabel = \"Custom\",\n  recommendedLabel = \"Most teams pick this\",\n  radius = 280,\n  restPosition = defaultRest,\n  accent = \"#7fb3ff\",\n  className = \"\",\n  style,\n  onPointerMove,\n  onPointerLeave,\n  ...rest\n}: PricingSpotlightGridProps) {\n  const fieldRef = React.useRef<HTMLDivElement>(null);\n  const money = React.useMemo(\n    () => new Intl.NumberFormat(locale, { style: \"currency\", currency, maximumFractionDigits: 0 }),\n    [locale, currency],\n  );\n\n  const paint = React.useCallback((clientX: number, clientY: number, on: boolean) => {\n    const field = fieldRef.current;\n    if (!field) return;\n    const fr = field.getBoundingClientRect();\n    const k = field.offsetWidth ? fr.width / field.offsetWidth : 1;\n    field.style.setProperty(\"--gx\", `${((clientX - fr.left) / k + 40).toFixed(1)}px`);\n    field.style.setProperty(\"--gy\", `${((clientY - fr.top) / k + 40).toFixed(1)}px`);\n    field.style.setProperty(\"--go\", on ? \"1\" : \"0\");\n    field.querySelectorAll<HTMLElement>(\"[data-spot]\").forEach((card) => {\n      const r = card.getBoundingClientRect();\n      card.style.setProperty(\"--x\", `${((clientX - r.left) / k).toFixed(1)}px`);\n      card.style.setProperty(\"--y\", `${((clientY - r.top) / k).toFixed(1)}px`);\n    });\n  }, []);\n\n  const settle = React.useCallback(() => {\n    const field = fieldRef.current;\n    if (!field) return;\n    if (!restPosition) {\n      field.style.setProperty(\"--go\", \"0\");\n      field.querySelectorAll<HTMLElement>(\"[data-spot]\").forEach((card) => {\n        card.style.removeProperty(\"--x\");\n        card.style.removeProperty(\"--y\");\n      });\n      return;\n    }\n    const fr = field.getBoundingClientRect();\n    paint(fr.left + fr.width * restPosition.x, fr.top + fr.height * restPosition.y, false);\n  }, [paint, restPosition]);\n\n  React.useEffect(() => {\n    settle();\n  }, [settle]);\n\n  const move = (e: React.PointerEvent<HTMLElement>) => {\n    onPointerMove?.(e);\n    paint(e.clientX, e.clientY, true);\n  };\n\n  const leave = (e: React.PointerEvent<HTMLElement>) => {\n    onPointerLeave?.(e);\n    settle();\n  };\n\n  return (\n    <section\n      className={`hb-vh3 ${className}`}\n      style={{ \"--hb-vh3-accent\": accent, \"--hb-vh3-r\": `${radius}px`, ...style } as React.CSSProperties}\n      onPointerMove={move}\n      onPointerLeave={leave}\n      {...rest}\n    >\n      <style href=\"hb-pricing-spotlight-grid\" precedence=\"default\">{css}</style>\n      <div className=\"hb-vh3-inner\">\n        <div className=\"hb-vh3-head\">\n          {eyebrow ? <span className=\"hb-vh3-eyebrow\"><i aria-hidden=\"true\" />{eyebrow}</span> : null}\n          <h2 className=\"hb-vh3-title\">{title}</h2>\n          {subtitle ? <p className=\"hb-vh3-sub\">{subtitle}</p> : null}\n        </div>\n        <div ref={fieldRef} className=\"hb-vh3-field\">\n          <ul className=\"hb-vh3-grid\">\n            {tiers.map((t) => (\n              <li key={t.name} className=\"hb-vh3-card\" data-spot=\"\" data-rec={t.recommended ? \"true\" : undefined}>\n                <div className=\"hb-vh3-top\">\n                  <h3 className=\"hb-vh3-name\">{t.name}</h3>\n                  {t.recommended && recommendedLabel ? <span className=\"hb-vh3-rec\">{recommendedLabel}</span> : null}\n                </div>\n                <p className=\"hb-vh3-desc\">{t.description}</p>\n                <div className=\"hb-vh3-price\">\n                  <strong>{t.price === null ? customLabel : money.format(t.price)}</strong>\n                  <span>{t.priceNote}</span>\n                </div>\n                <a className=\"hb-vh3-cta\" href={t.cta.href}>\n                  {t.cta.label}\n                  <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n                    <path d=\"M3 8h9M8.5 4.5L12 8l-3.5 3.5\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                  </svg>\n                </a>\n                <ul className=\"hb-vh3-list\">\n                  {t.features.map((f) => (\n                    <li key={f}>\n                      <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n                        <circle cx=\"8\" cy=\"8\" r=\"6.25\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.3\" />\n                        <path d=\"M5.4 8.2l1.8 1.8 3.5-3.8\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                      </svg>\n                      {f}\n                    </li>\n                  ))}\n                </ul>\n              </li>\n            ))}\n          </ul>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}