{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cta78",
  "title": "Studio Booking Split CTA",
  "description": "Closing call to action splitting a tall photo against an oversized heading, a short pitch, a pill CTA beside a plain email link, and a ruled two-column row stating reply time and next availability.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/cta78/cta78.tsx",
      "content": "\"use client\";\n\nimport Link from \"next/link\";\nimport { Badge7 } from \"@/components/beste/component/badge7\";\nimport { Button12 } from \"@/components/beste/component/button12\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Badge {\n  label: string;\n}\n\ninterface ActionButton {\n  label: string;\n  href: string;\n}\n\ninterface CtaImage {\n  src: string;\n  alt: string;\n}\n\ninterface DetailRow {\n  title: string;\n  value: string;\n}\n\ninterface Cta78Labels {\n  note?: string;\n}\n\ninterface Cta78Props {\n  badge?: Badge;\n  heading?: string;\n  description?: string;\n  image?: CtaImage;\n  button?: ActionButton;\n  link?: ActionButton;\n  details?: DetailRow[];\n  labels?: Cta78Labels;\n  className?: string;\n}\n\nexport const cta78Demo: Cta78Props = {\n  badge: { label: \"Open commissions\" },\n  heading: \"Bring the brief you keep rewriting.\",\n  description:\n    \"One hour, one room, and the version of the problem you have not managed to write down yet. We will tell you plainly whether we are the right studio for it.\",\n  image: {\n    src: \"https://images.unsplash.com/photo-1785293130707-d0ddb0ac8832?q=80&w=1887&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D\",\n    alt: \"Empty studio meeting room lit by a tall window\",\n  },\n  button: {\n    label: \"Book a studio hour\",\n    href: \"https://beste.co\",\n  },\n  link: {\n    label: \"Or send the brief by email\",\n    href: \"https://beste.co\",\n  },\n  details: [\n    { title: \"First reply\", value: \"Within two days\" },\n    { title: \"Next opening\", value: \"September\" },\n  ],\n  labels: {\n    note: \"No deck, no paid discovery phase. If it is not a fit we say so and point you somewhere better.\",\n  },\n};\n\nexport function Cta78({\n  badge,\n  heading,\n  description,\n  image,\n  button,\n  link,\n  details = [],\n  labels = {},\n  className,\n}: Cta78Props) {\n  const { note } = labels;\n\n  return (\n    <section className={cn(\"py-16 md:py-24 w-full\", className)}>\n      <div className=\"mx-auto max-w-7xl px-4 md:px-6\">\n        <div className=\"grid gap-10 md:grid-cols-2 md:items-center md:gap-16\">\n          {image && (\n            <div className=\"relative aspect-[4/5] overflow-hidden rounded-md bg-muted md:aspect-[3/4]\">\n              <img\n                className=\"absolute inset-0 size-full object-cover\"\n                src={image.src}\n                alt={image.alt}\n              />\n            </div>\n          )}\n\n          <div>\n            {badge && <Badge7 label={badge.label} />}\n\n            {heading && (\n              <h2 className=\"mt-6 text-balance text-4xl font-bold leading-[0.95] tracking-tight text-foreground md:text-5xl lg:text-6xl\">\n                {heading}\n              </h2>\n            )}\n\n            {description && (\n              <p className=\"mt-6 max-w-lg text-lg leading-relaxed text-muted-foreground md:text-xl\">\n                {description}\n              </p>\n            )}\n\n            {(button || link) && (\n              <div className=\"mt-10 flex flex-wrap items-center gap-8\">\n                {button && (\n                  <Button12 asChild label={button.label}>\n                    <Link href={button.href} />\n                  </Button12>\n                )}\n                {link && (\n                  <Link\n                    href={link.href}\n                    className=\"text-base font-bold text-foreground underline underline-offset-4 md:text-lg\"\n                  >\n                    {link.label}\n                  </Link>\n                )}\n              </div>\n            )}\n\n            {details.length > 0 && (\n              <dl className=\"mt-12 grid gap-x-8 gap-y-8 sm:grid-cols-2\">\n                {details.map((detail, index) => (\n                  <div key={index} className=\"border-t pt-5\">\n                    <dt className=\"text-base text-muted-foreground md:text-lg\">{detail.title}</dt>\n                    <dd className=\"mt-2 text-xl font-bold tracking-tight text-foreground md:text-2xl\">\n                      {detail.value}\n                    </dd>\n                  </div>\n                ))}\n              </dl>\n            )}\n\n            {note && (\n              <p className=\"mt-8 max-w-md text-base leading-relaxed text-muted-foreground md:text-lg\">\n                {note}\n              </p>\n            )}\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/cta78.tsx"
    },
    {
      "path": "registry-components/badge7/badge7.tsx",
      "content": "import { cn } from \"@/lib/utils\";\n\n/** Allowed wrapper styles, a fixed set, not arbitrary characters. */\ntype Badge7Bracket = \"round\" | \"square\" | \"curly\" | \"angle\" | \"none\";\n\nconst BRACKETS: Record<Badge7Bracket, [open: string, close: string]> = {\n  round: [\"(\", \")\"],\n  square: [\"[\", \"]\"],\n  curly: [\"{\", \"}\"],\n  angle: [\"<\", \">\"],\n  none: [\"\", \"\"],\n};\n\ntype Tone = \"muted\" | \"foreground\" | \"primary\";\n\ninterface Badge7Props {\n  /** Eyebrow label */\n  label: string;\n  /** Which characters wrap the label. Limited to the BRACKETS set. */\n  bracket?: Badge7Bracket;\n  /** Label color */\n  tone?: Tone;\n  /** Render rotated for vertical edge placement (e.g. along a hero side) */\n  vertical?: boolean;\n  /** Additional classes merged onto the root */\n  className?: string;\n}\n\nconst toneStyles: Record<Tone, string> = {\n  muted: \"text-muted-foreground\",\n  foreground: \"text-foreground\",\n  primary: \"text-primary\",\n};\n\nexport const badge7Demo: Badge7Props = {\n  label: \"About\",\n};\n\nexport function Badge7({\n  label,\n  bracket = \"round\",\n  tone = \"muted\",\n  vertical = false,\n  className,\n}: Badge7Props) {\n  const [open, close] = BRACKETS[bracket];\n\n  return (\n    <span\n      className={cn(\n        \"text-base font-medium\",\n        toneStyles[tone],\n        vertical ? \"rotate-180 [writing-mode:vertical-rl]\" : \"inline-block\",\n        className\n      )}\n    >\n      {`${open}${label}${close}`}\n    </span>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/component/badge7.tsx"
    },
    {
      "path": "registry-components/button12/button12.tsx",
      "content": "\"use client\";\n\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { ArrowUpRight, type LucideIcon } from \"lucide-react\";\nimport * as React from \"react\";\nimport { cn } from \"@/lib/utils\";\n\ntype Tone = \"dark\" | \"primary\" | \"outline\";\n\ninterface Button12Props {\n  /** Button label */\n  label: string;\n  /**\n   * Compose the rendered element shadcn-style (radix asChild): your element\n   * (e.g. a router Link) becomes the root and the button content is injected\n   * as its children. Pass the element without children of its own.\n   */\n  asChild?: boolean;\n  /** The element to render when `asChild` is set (e.g. your framework's Link) */\n  children?: React.ReactElement;\n  /**\n   * Fallback link: renders a plain `<a>`. Prefer `asChild` with your\n   * framework's Link component for client-side navigation.\n   */\n  href?: string;\n  /** Seal icon (defaults to ArrowUpRight) */\n  icon?: LucideIcon;\n  /** Surface tone: solid dark (default), solid primary, or bordered outline */\n  tone?: Tone;\n  /** Click handler (used when there is no href and no asChild) */\n  onClick?: React.MouseEventHandler<HTMLButtonElement>;\n  /** Additional classes merged onto the button */\n  className?: string;\n}\n\nconst toneStyles: Record<Tone, { pill: string; seal: string }> = {\n  dark: {\n    pill: \"bg-foreground text-background hover:bg-foreground/90\",\n    seal: \"bg-background text-foreground\",\n  },\n  primary: {\n    pill: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n    seal: \"bg-primary-foreground text-primary\",\n  },\n  outline: {\n    pill: \"border bg-background text-foreground hover:bg-muted\",\n    seal: \"bg-foreground text-background\",\n  },\n};\n\nexport const button12Demo: Button12Props = {\n  label: \"Book an intro call\",\n};\n\nexport function Button12({\n  label,\n  asChild = false,\n  children,\n  href,\n  icon: Icon = ArrowUpRight,\n  tone = \"dark\",\n  onClick,\n  className,\n}: Button12Props) {\n  const styles = toneStyles[tone];\n\n  const classes = cn(\n    \"group/button12 inline-flex w-fit cursor-pointer items-center gap-3 rounded-full py-2 pl-8 pr-2 text-base font-bold transition-colors\",\n    styles.pill,\n    className\n  );\n\n  const inner = (\n    <>\n      {/* Label slides out the bottom while a copy drops in from the top */}\n      <span className=\"relative block overflow-hidden\">\n        <span className=\"block transition-transform duration-300 ease-out motion-safe:group-hover/button12:translate-y-full\">\n          {label}\n        </span>\n        <span\n          aria-hidden=\"true\"\n          className=\"absolute inset-0 block -translate-y-full transition-transform duration-300 ease-out motion-safe:group-hover/button12:translate-y-0\"\n        >\n          {label}\n        </span>\n      </span>\n\n      {/* Seal: icon exits the top-right corner as a copy enters from bottom-left */}\n      <span\n        className={cn(\n          \"relative flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-full\",\n          styles.seal\n        )}\n      >\n        <Icon className=\"size-4 transition-transform duration-300 ease-out motion-safe:group-hover/button12:translate-x-[160%] motion-safe:group-hover/button12:-translate-y-[160%]\" />\n        <Icon\n          aria-hidden=\"true\"\n          className=\"absolute size-4 -translate-x-[160%] translate-y-[160%] transition-transform duration-300 ease-out motion-safe:group-hover/button12:translate-x-0 motion-safe:group-hover/button12:translate-y-0\"\n        />\n      </span>\n    </>\n  );\n\n  if (asChild && React.isValidElement(children)) {\n    return (\n      <Slot className={classes}>\n        {React.cloneElement(children, undefined, inner)}\n      </Slot>\n    );\n  }\n\n  if (href) {\n    return (\n      <a href={href} className={classes}>\n        {inner}\n      </a>\n    );\n  }\n\n  return (\n    <button type=\"button\" onClick={onClick} className={classes}>\n      {inner}\n    </button>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/component/button12.tsx"
    }
  ],
  "type": "registry:block"
}