{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "black-box-cta",
  "type": "registry:block",
  "title": "Black Box CTA",
  "description": "CTA Section built with Black Box (3D product explainer box): a glass box walks through the trial. A take on the 3D (three dimensional) and flow diagram (flowchart). A closing call to action on a night band with the product as a glass box: a wireframe with a lit core turning inside. Its faces open in turn to walk through the trial, each with a hairline label, and any of them opens under the pointer.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "blocks",
    "cta-sections",
    "cta",
    "3d",
    "flow-diagram"
  ],
  "docs": "Live preview and the components it's built with: https://keyframeui.com/blocks/cta-sections/black-box-cta",
  "registryDependencies": [
    "https://keyframeui.com/r/black-box.json"
  ],
  "files": [
    {
      "path": "components/black-box-cta.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { BlackBox, type BlackBoxFace } from \"@/components/ui/black-box\";\n\n/* ── Content ─────────────────────────────────────────────────\n * Everything you'd change to make the section yours: the\n * colors, the copy, the buttons and the three faces, which walk\n * through the trial. The band is night in both color schemes,\n * so the box is always glass: a wireframe with a lit core.\n * ─────────────────────────────────────────────────────────── */\n\nconst NIGHT = { paper: \"#07080c\", ink: \"#f4f5f7\", accent: \"#7088ff\" };\n\nconst HEADLINE = [\"Open the box\", \"on your own books.\"];\nconst SUBLINE = \"Connect a bank feed and watch Basalt close last month. It takes about ten minutes, and the books are yours to keep.\";\nconst PRIMARY_CTA = { label: \"Start free\", href: \"#start\" };\nconst SECONDARY_CTA = { label: \"Book a walkthrough\", href: \"#demo\" };\nconst FINE_PRINT = \"Read-only access · SOC 2 Type II · Cancel any time\";\n\nconst FACES: BlackBoxFace[] = [\n  {\n    id: \"connect\",\n    label: \"Connect\",\n    detail: \"Read-only bank and card feeds, in about ten minutes.\",\n    icon: (\n      <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.6} strokeLinecap=\"round\" strokeLinejoin=\"round\">\n        <path d=\"M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1\" />\n      </svg>\n    ),\n  },\n  {\n    id: \"close\",\n    label: \"Close\",\n    detail: \"Last month, reconciled while you watch.\",\n    icon: (\n      <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.6} strokeLinecap=\"round\" strokeLinejoin=\"round\">\n        <path d=\"M5 12.5l4.5 4.5L19 7.5\" />\n      </svg>\n    ),\n  },\n  {\n    id: \"keep\",\n    label: \"Keep\",\n    detail: \"The closed books are yours, even if you leave.\",\n    icon: (\n      <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.6} strokeLinecap=\"round\" strokeLinejoin=\"round\">\n        <path d=\"M5 8h14v11H5zM3.5 5h17v3h-17zM10 12h4\" />\n      </svg>\n    ),\n  },\n];\n\n/* ── Section ─────────────────────────────────────────────── */\n\nexport function BlackBoxCta() {\n  return (\n    <section\n      style={{ \"--paper\": NIGHT.paper, \"--ink\": NIGHT.ink, \"--accent\": NIGHT.accent } as React.CSSProperties}\n      className=\"relative isolate overflow-hidden bg-(--paper) text-(--ink) dark:border-y dark:border-white/[0.08]\"\n    >\n      {/* A low wash of the box's light, behind everything. */}\n      <div\n        aria-hidden\n        className=\"pointer-events-none absolute inset-0 -z-10 bg-[radial-gradient(60%_70%_at_75%_50%,color-mix(in_srgb,var(--accent)_16%,transparent),transparent)]\"\n      />\n      <div className=\"mx-auto grid max-w-6xl items-center gap-x-12 gap-y-4 px-6 py-20 sm:py-24 lg:grid-cols-[minmax(0,1fr)_minmax(0,1.15fr)]\">\n        <div>\n          <h2 className=\"text-4xl leading-[1.05] font-medium tracking-[-0.04em] sm:text-5xl\">\n            <span className=\"block\">{HEADLINE[0]}</span>{\" \"}\n            <span className=\"block text-white/45\">{HEADLINE[1]}</span>\n          </h2>\n          <p className=\"mt-5 max-w-md text-base leading-relaxed text-pretty text-white/65 sm:text-[17px]\">{SUBLINE}</p>\n          <div className=\"mt-8 flex flex-wrap items-center gap-3 text-sm font-medium\">\n            <a\n              href={PRIMARY_CTA.href}\n              className=\"rounded-full bg-(--ink) px-5 py-2.5 text-(--paper) transition-opacity duration-150 hover:opacity-85 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--accent)\"\n            >\n              {PRIMARY_CTA.label}\n            </a>\n            <a\n              href={SECONDARY_CTA.href}\n              className=\"rounded-full px-5 py-2.5 ring-1 ring-white/20 transition-colors duration-150 hover:bg-white/[0.06] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--accent)\"\n            >\n              {SECONDARY_CTA.label}\n            </a>\n          </div>\n          <p className=\"mt-6 text-xs text-white/45\">{FINE_PRINT}</p>\n        </div>\n\n        <BlackBox\n          faces={FACES}\n          material=\"glass\"\n          className=\"text-(--ink) [--black-box-light:var(--accent)]\"\n          aria-label=\"What happens when you start\"\n        />\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}