{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cta-card",
  "type": "registry:block",
  "title": "Call to action, card",
  "description": "A contained, rounded card with a centred headline, two actions and a row of short reassurances (no card needed, cancel any time). Sits inside the page column instead of spanning it.",
  "categories": [
    "cta"
  ],
  "dependencies": [
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/editing.json",
    "https://ui.klarhimmel.com/r/kit-c-proof.json"
  ],
  "files": [
    {
      "path": "src/blocks/cta-card/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/cta-card/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, t } from '../_shared/schema';\n\nconst schema = z.object({\n  eyebrow: t(60),\n  title: t(120),\n  description: t(300),\n  primary: link,\n  secondary: link,\n  points: z.array(t(80)).max(4),\n  note: t(120),\n  // panel: 'plain' draws the section straight on the page, with no tinted card and a headline at ordinary heading size.\n  panel: z.enum(['card', 'plain']).optional(),\n});\n\nexport const spec = defineSpec({\n  type: 'cta-card',\n  aliases: ['cta/card'],\n  sourceRuns: ['rmwj0yvlcef4224'],\n  name: 'Call to action, card',\n  category: 'cta',\n  role: 'body',\n  description: 'A contained, rounded card with a centred headline, two actions and a row of short reassurances (no card needed, cancel any time). Sits inside the page column instead of spanning it.',\n  schema,\n  defaults: {\n    eyebrow: 'Name the section',\n    title: 'Say what the visitor can do next',\n    description: 'Say in a sentence or two what the first step is, what it costs and how fast it goes.',\n    primary: { label: 'Main action', href: '/signup' },\n    secondary: { label: 'Second action', href: '/contact' },\n    points: ['First reassurance', 'Second reassurance', 'Third reassurance'],\n    note: 'Say who already uses it, with a number',\n  },\n});\n"
    },
    {
      "path": "src/blocks/cta-card/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/cta-card/index.tsx",
      "content": "import { Text, withHeadingLevel } from '../../editing';\nimport { ActionLink, Container, Opt, Section, Eyebrow } from '../_shared/kit';\nimport { CheckItem, useHeadingId } from '../_shared/c-proof-kit';\nimport { spec } from './spec';\nimport type { BlockProps } from '../types';\nimport type { z } from 'zod';\n\nexport { spec };\ntype Props = z.infer<typeof spec.schema>;\n\nfunction CtaCard({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  const plain = props.panel === 'plain';\n  return (\n    <Section labelledBy={id}>\n      <Container>\n        <div className={plain ? 'mx-auto max-w-kh-narrow py-8 text-center' : 'mx-auto max-w-kh-narrow rounded-kh-xl border border-kh-line bg-kh-accent-soft px-6 py-14 text-center @2xl:px-14 @2xl:py-20'}>\n          <Eyebrow path={['eyebrow']} value={props.eyebrow} />\n          <div id={id}>\n            <Text path={['title']} value={props.title} as=\"h2\" className={plain ? 'text-kh-heading font-semibold' : 'text-kh-title font-semibold'} />\n          </div>\n          <Opt path={['description']} value={props.description} multiline className=\"mx-auto mt-4 max-w-kh-lead text-kh-lead text-kh-muted\" placeholder=\"Description\" />\n          <div className=\"mt-9 flex flex-wrap justify-center gap-3\">\n            <ActionLink path={['primary']} value={props.primary} />\n            <ActionLink path={['secondary']} value={props.secondary} variant=\"secondary\" />\n          </div>\n          {props.points.length > 0 && (\n            <ul className=\"mt-8 flex flex-wrap justify-center gap-x-6 gap-y-2\">\n              {props.points.map((p, i) => (\n                <CheckItem key={i} path={['points', i]} value={p} />\n              ))}\n            </ul>\n          )}\n          <Opt path={['note']} value={props.note} className=\"mt-6 text-kh-caption text-kh-muted\" placeholder=\"Note\" />\n        </div>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(CtaCard);\n"
    }
  ]
}
