{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pricing-compare-cards",
  "type": "registry:component",
  "title": "Pricing Compare Cards",
  "description": "A light paper layout with two large plan cards whose feature rows tick, dash or show a value side by side, and a dark enterprise strip underneath.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "pricing",
    "pricing",
    "plans",
    "light",
    "compare",
    "enterprise",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/pricing-compare-cards",
  "files": [
    {
      "path": "registry/hyperblur/pricing-compare-cards.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/pricing-compare-cards.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface PricingComparePlan {\n  name: string;\n  description: string;\n  price: string;\n  period?: string;\n  note?: string;\n  values: (boolean | string)[];\n  cta: { label: string; href: string };\n  highlighted?: boolean;\n  badge?: string;\n}\n\nexport interface PricingCompareCardsProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  features?: string[];\n  plans?: PricingComparePlan[];\n  enterprise?: { title: string; text: string; points: string[]; cta: { label: string; href: string } } | null;\n  accent?: string;\n}\n\nconst defaultFeatures = [\n  \"Projects\",\n  \"Version history\",\n  \"Comments and reviews\",\n  \"Export to production code\",\n  \"Custom domains\",\n  \"Shared component libraries\",\n  \"Brand kits and tokens\",\n  \"Priority support\",\n];\n\nconst defaultPlans: PricingComparePlan[] = [\n  {\n    name: \"Starter\",\n    description: \"Everything one designer needs to ship polished sites.\",\n    price: \"$12\",\n    period: \"per editor / month\",\n    note: \"Billed yearly or $15 month to month\",\n    values: [\"3\", \"30 days\", true, true, false, false, false, false],\n    cta: { label: \"Start with Starter\", href: \"#\" },\n  },\n  {\n    name: \"Studio\",\n    description: \"For teams that share systems, review together and own their brand.\",\n    price: \"$32\",\n    period: \"per editor / month\",\n    note: \"Billed yearly or $39 month to month\",\n    values: [\"Unlimited\", \"Unlimited\", true, true, true, true, true, true],\n    cta: { label: \"Try Studio free for 14 days\", href: \"#\" },\n    highlighted: true,\n    badge: \"Best for teams\",\n  },\n];\n\nconst defaultEnterprise = {\n  title: \"Enterprise\",\n  text: \"Custom contracts, SAML SSO, EU or US data residency and a named success manager.\",\n  points: [\"SOC 2 Type II\", \"99.99% SLA\", \"Invoice billing\"],\n  cta: { label: \"Contact sales\", href: \"#\" },\n};\n\nconst css = `\n.hb-kc3 {\n  --hb-kc3-accent: #ff5c39;\n  container-type: inline-size;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  background: #f7f5ef;\n  color: #141414;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-kc3 *, .hb-kc3 *::before, .hb-kc3 *::after { box-sizing: border-box; }\n.hb-kc3-inner { max-width: 1120px; margin: 0 auto; padding: 72px 18px 64px; }\n.hb-kc3-head { max-width: 660px; margin: 0 auto; text-align: center; }\n.hb-kc3-eyebrow { margin: 0 0 14px; color: var(--hb-kc3-accent); font-size: 13px; font-weight: 650; letter-spacing: .02em; }\n.hb-kc3-title {\n  margin: 0;\n  font-size: clamp(30px, 5cqi, 50px);\n  font-weight: 700;\n  line-height: 1.04;\n  letter-spacing: -.04em;\n  text-wrap: balance;\n}\n.hb-kc3-sub { margin: 16px auto 0; max-width: 500px; color: #5f5d57; font-size: 16px; line-height: 1.6; text-wrap: pretty; }\n.hb-kc3-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 940px; margin: 44px auto 0; padding: 0; list-style: none; }\n.hb-kc3-card {\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  padding: 26px 22px 24px;\n  border: 1px solid rgba(20, 20, 20, .1);\n  border-radius: 22px;\n  background: rgba(255, 255, 255, .45);\n  animation: hb-kc3-rise .8s cubic-bezier(.2, .8, .2, 1) both;\n  animation-delay: var(--hb-kc3-d, 0ms);\n}\n.hb-kc3-card[data-hl=\"true\"] {\n  border-color: rgba(20, 20, 20, .06);\n  background: #fff;\n  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 4px rgba(20, 20, 20, .04), 0 24px 60px -24px rgba(20, 20, 20, .25);\n}\n.hb-kc3-card[data-hl=\"true\"]::before {\n  content: \"\";\n  position: absolute;\n  left: 22px;\n  right: 22px;\n  top: -1px;\n  height: 3px;\n  border-radius: 0 0 4px 4px;\n  background: var(--hb-kc3-accent);\n}\n.hb-kc3-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n.hb-kc3-name { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }\n.hb-kc3-badge {\n  height: 26px;\n  padding: 0 11px;\n  border-radius: 999px;\n  background: color-mix(in srgb, var(--hb-kc3-accent) 12%, #fff);\n  color: color-mix(in srgb, var(--hb-kc3-accent) 80%, #000);\n  font-size: 12px;\n  font-weight: 650;\n  line-height: 26px;\n  white-space: nowrap;\n}\n.hb-kc3-desc { margin: 8px 0 0; max-width: 340px; color: #5f5d57; font-size: 14.5px; line-height: 1.5; }\n.hb-kc3-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 22px; }\n.hb-kc3-amount { font-size: clamp(44px, 6cqi, 56px); font-weight: 700; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }\n.hb-kc3-period { color: #5f5d57; font-size: 14px; }\n.hb-kc3-note { margin: 8px 0 0; color: #8b8880; font-size: 12.5px; }\n.hb-kc3-cta {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  height: 46px;\n  margin-top: 22px;\n  border: 1px solid rgba(20, 20, 20, .16);\n  border-radius: 12px;\n  background: transparent;\n  color: #141414;\n  font-size: 14.5px;\n  font-weight: 650;\n  text-decoration: none;\n  transition: background-color .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease;\n}\n.hb-kc3-cta:hover { border-color: rgba(20, 20, 20, .32); background: rgba(20, 20, 20, .03); }\n.hb-kc3-cta:active { transform: scale(.985); }\n.hb-kc3-cta:focus-visible { outline: 2px solid var(--hb-kc3-accent); outline-offset: 3px; }\n.hb-kc3-card[data-hl=\"true\"] .hb-kc3-cta {\n  border-color: #141414;\n  background: #141414;\n  color: #fff;\n  box-shadow: 0 10px 24px -12px rgba(20, 20, 20, .6);\n}\n.hb-kc3-card[data-hl=\"true\"] .hb-kc3-cta:hover { background: #2a2a2a; }\n.hb-kc3-list { margin: 24px 0 0; padding: 0; list-style: none; }\n.hb-kc3-list li {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n  min-height: 44px;\n  border-top: 1px solid rgba(20, 20, 20, .07);\n  font-size: 14px;\n}\n.hb-kc3-list li[data-off=\"true\"] .hb-kc3-label { color: #a5a29a; }\n.hb-kc3-label { color: #34322e; }\n.hb-kc3-val { flex: none; color: #141414; font-weight: 650; font-size: 13.5px; }\n.hb-kc3-tick {\n  display: grid;\n  place-items: center;\n  flex: none;\n  width: 22px;\n  height: 22px;\n  border-radius: 50%;\n  background: color-mix(in srgb, var(--hb-kc3-accent) 14%, #fff);\n  color: var(--hb-kc3-accent);\n}\n.hb-kc3-tick svg { width: 12px; height: 12px; }\n.hb-kc3-tick path { stroke-dasharray: 16; stroke-dashoffset: 16; animation: hb-kc3-draw .5s cubic-bezier(.65, 0, .35, 1) forwards; animation-delay: var(--hb-kc3-d, 0ms); }\n.hb-kc3-dash { flex: none; width: 22px; height: 22px; display: grid; place-items: center; }\n.hb-kc3-dash::before { content: \"\"; width: 10px; height: 2px; border-radius: 2px; background: #c9c6bd; }\n.hb-kc3-ent {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr);\n  gap: 18px;\n  max-width: 940px;\n  margin: 16px auto 0;\n  padding: 22px;\n  border-radius: 22px;\n  background: #141414;\n  color: #f7f5ef;\n  animation: hb-kc3-rise .8s cubic-bezier(.2, .8, .2, 1) .3s both;\n}\n.hb-kc3-ent-main { display: flex; gap: 16px; align-items: flex-start; }\n.hb-kc3-ent-icon {\n  display: grid;\n  place-items: center;\n  flex: none;\n  width: 42px;\n  height: 42px;\n  border-radius: 12px;\n  background: rgba(255, 255, 255, .08);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);\n}\n.hb-kc3-ent-icon svg { width: 20px; height: 20px; }\n.hb-kc3-ent h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }\n.hb-kc3-ent p { margin: 4px 0 0; color: rgba(247, 245, 239, .62); font-size: 14px; line-height: 1.5; }\n.hb-kc3-points { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }\n.hb-kc3-points li {\n  padding: 4px 10px;\n  border: 1px solid rgba(255, 255, 255, .12);\n  border-radius: 999px;\n  color: rgba(247, 245, 239, .8);\n  font-size: 12px;\n  font-weight: 550;\n}\n.hb-kc3-ent-cta {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 8px;\n  align-self: center;\n  height: 44px;\n  padding: 0 20px;\n  border-radius: 12px;\n  background: #f7f5ef;\n  color: #141414;\n  font-size: 14px;\n  font-weight: 650;\n  text-decoration: none;\n  white-space: nowrap;\n  transition: background-color .2s ease;\n}\n.hb-kc3-ent-cta:hover { background: #fff; }\n.hb-kc3-ent-cta:focus-visible { outline: 2px solid var(--hb-kc3-accent); outline-offset: 3px; }\n.hb-kc3-ent-cta svg { width: 14px; height: 14px; transition: transform .25s ease; }\n.hb-kc3-ent-cta:hover svg { transform: translateX(3px); }\n@keyframes hb-kc3-rise {\n  from { opacity: 0; transform: translateY(18px); }\n  to { opacity: 1; transform: none; }\n}\n@keyframes hb-kc3-draw { to { stroke-dashoffset: 0; } }\n@container (min-width: 720px) {\n  .hb-kc3-inner { padding: 104px 32px 96px; }\n  .hb-kc3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }\n  .hb-kc3-card { padding: 34px 32px 28px; }\n  .hb-kc3-card[data-hl=\"true\"]::before { left: 32px; right: 32px; }\n  .hb-kc3-ent { grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin-top: 20px; padding: 24px 28px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-kc3-card, .hb-kc3-ent { animation: none; }\n  .hb-kc3-tick path { animation: none; stroke-dashoffset: 0; }\n  .hb-kc3-cta, .hb-kc3-ent-cta, .hb-kc3-ent-cta svg { transition: none; }\n}\n`;\n\nfunction Tick({ delay }: { delay: number }) {\n  return (\n    <span className=\"hb-kc3-tick\" role=\"img\" aria-label=\"Included\" style={{ \"--hb-kc3-d\": `${delay}ms` } as React.CSSProperties}>\n      <svg viewBox=\"0 0 12 12\" aria-hidden=\"true\">\n        <path d=\"M2.5 6.3l2.3 2.3 4.7-5.1\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n      </svg>\n    </span>\n  );\n}\n\nexport function PricingCompareCards({\n  eyebrow = \"Plans\",\n  title = \"Two plans. Pick the one that fits your team.\",\n  subtitle = \"Start on Starter, move to Studio when your team grows. We prorate the difference to the day.\",\n  features = defaultFeatures,\n  plans = defaultPlans,\n  enterprise = defaultEnterprise,\n  accent = \"#ff5c39\",\n  className = \"\",\n  style,\n  ...rest\n}: PricingCompareCardsProps) {\n  const vars = { \"--hb-kc3-accent\": accent, ...style } as React.CSSProperties;\n\n  return (\n    <section className={`hb-kc3 ${className}`} style={vars} {...rest}>\n      <style href=\"hb-pricing-compare-cards\" precedence=\"default\">{css}</style>\n      <div className=\"hb-kc3-inner\">\n        <div className=\"hb-kc3-head\">\n          {eyebrow ? <p className=\"hb-kc3-eyebrow\">{eyebrow}</p> : null}\n          <h2 className=\"hb-kc3-title\">{title}</h2>\n          {subtitle ? <p className=\"hb-kc3-sub\">{subtitle}</p> : null}\n        </div>\n        <ul className=\"hb-kc3-grid\">\n          {plans.map((plan, p) => (\n            <li\n              key={plan.name}\n              className=\"hb-kc3-card\"\n              data-hl={plan.highlighted ? \"true\" : \"false\"}\n              style={{ \"--hb-kc3-d\": `${p * 120}ms` } as React.CSSProperties}\n            >\n              <div className=\"hb-kc3-top\">\n                <h3 className=\"hb-kc3-name\">{plan.name}</h3>\n                {plan.badge ? <span className=\"hb-kc3-badge\">{plan.badge}</span> : null}\n              </div>\n              <p className=\"hb-kc3-desc\">{plan.description}</p>\n              <div className=\"hb-kc3-price\">\n                <span className=\"hb-kc3-amount\">{plan.price}</span>\n                {plan.period ? <span className=\"hb-kc3-period\">{plan.period}</span> : null}\n              </div>\n              {plan.note ? <p className=\"hb-kc3-note\">{plan.note}</p> : null}\n              <a className=\"hb-kc3-cta\" href={plan.cta.href}>{plan.cta.label}</a>\n              <ul className=\"hb-kc3-list\">\n                {features.map((feature, f) => {\n                  const v = plan.values[f];\n                  const off = v === false || v === undefined;\n                  return (\n                    <li key={feature} data-off={off ? \"true\" : \"false\"}>\n                      <span className=\"hb-kc3-label\">{feature}</span>\n                      {typeof v === \"string\" ? (\n                        <span className=\"hb-kc3-val\">{v}</span>\n                      ) : v ? (\n                        <Tick delay={500 + p * 120 + f * 70} />\n                      ) : (\n                        <span className=\"hb-kc3-dash\" role=\"img\" aria-label=\"Not included\" />\n                      )}\n                    </li>\n                  );\n                })}\n              </ul>\n            </li>\n          ))}\n        </ul>\n        {enterprise ? (\n          <div className=\"hb-kc3-ent\">\n            <div className=\"hb-kc3-ent-main\">\n              <span className=\"hb-kc3-ent-icon\" aria-hidden=\"true\">\n                <svg viewBox=\"0 0 20 20\">\n                  <path d=\"M3.5 17V5.5L10 3l6.5 2.5V17M3.5 17h13M7 8h1.5M11.5 8H13M7 11h1.5M11.5 11H13M8.5 17v-3h3v3\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.4\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                </svg>\n              </span>\n              <div>\n                <h3>{enterprise.title}</h3>\n                <p>{enterprise.text}</p>\n                <ul className=\"hb-kc3-points\">\n                  {enterprise.points.map((pt) => (\n                    <li key={pt}>{pt}</li>\n                  ))}\n                </ul>\n              </div>\n            </div>\n            <a className=\"hb-kc3-ent-cta\" href={enterprise.cta.href}>\n              {enterprise.cta.label}\n              <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n                <path d=\"M3 8h9.5M8.5 4l4 4-4 4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n              </svg>\n            </a>\n          </div>\n        ) : null}\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}