{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "checkpoint-feature",
  "type": "registry:block",
  "title": "Checkpoint Feature",
  "description": "Feature Section built with Checkpoint (approval flow animation): payouts clear a policy one barrier at a time. A take on the flow diagram (flowchart). An approvals section for a payments product: three points down the left, and on the right payouts clearing a policy one barrier at a time. A large payout waits for sign-off, so a visitor can approve or deny it, and one to a bank outside the allowlist is turned away.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "blocks",
    "feature-sections",
    "features",
    "flow-diagram"
  ],
  "docs": "Live preview and the components it's built with: https://keyframeui.com/blocks/feature-sections/checkpoint-feature",
  "registryDependencies": [
    "https://keyframeui.com/r/checkpoint.json"
  ],
  "files": [
    {
      "path": "components/checkpoint-feature.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { Checkpoint, type CheckpointRequest, type CheckpointRule } from \"@/components/ui/checkpoint\";\n\n/* ── Content ─────────────────────────────────────────────────\n * Everything you'd change to make the section yours: the copy,\n * the points down the left, and the payouts policy the requests\n * on the right have to clear. A rule a request doesn't mention\n * passes; \"hold\" waits for sign-off and \"block\" turns it away.\n * ─────────────────────────────────────────────────────────── */\n\n/** The one accent: the checks, the barriers' token, the primary link. */\nconst ACCENT = \"#ff3b1f\";\nconst ACCENT_DARK = \"#ff5a3c\";\n\nconst EYEBROW = \"Approvals\";\nconst HEADLINE = \"Payouts wait for the right yes.\";\nconst SUBLINE =\n  \"Write your money-movement policy once. Every payout and refund clears it before it runs, and anything over the line waits for a second approver.\";\nconst POINTS = [\n  { title: \"Rules in plain words\", body: \"Amounts, payees, countries and limits, set per team and per environment.\" },\n  { title: \"Sign off where you work\", body: \"Approve or deny from the dashboard, Slack or email, with the reason attached.\" },\n  { title: \"Every decision on the record\", body: \"Who asked, which rule stopped it and who said yes, exported for your auditors.\" },\n];\nconst CTA = { label: \"See the policy builder\", href: \"#policies\" };\n\nconst PANEL = { title: \"Payouts policy\", scope: \"Production · 4 rules\" };\nconst APPROVER = \"Marta, CFO\";\n/** ms a held payout waits before the demo approves it. Visitors can approve or deny first. */\nconst APPROVE_AFTER = 3200;\n\nconst RULES: CheckpointRule[] = [\n  { id: \"payee\", label: \"Payee\", detail: \"A verified business\", value: \"VERIFIED\" },\n  { id: \"amount\", label: \"Amount\", detail: \"Over $10,000 needs a second approver\", value: \"≤ $10K\" },\n  { id: \"country\", label: \"Bank country\", detail: \"On your allowlist\", value: \"ALLOWLIST\" },\n  { id: \"velocity\", label: \"Velocity\", detail: \"Three payouts a day per payee\", value: \"≤ 3 / DAY\" },\n];\n\nconst REQUESTS: CheckpointRequest[] = [\n  { id: \"po1\", label: \"payout po_7Kd1\", meta: \"$2,480.00 to Lindqvist Design AB\" },\n  { id: \"po2\", label: \"payout po_8Qw3\", meta: \"$18,600.00 to Harbor Freight Co.\", verdicts: { amount: \"hold\" } },\n  {\n    id: \"po3\",\n    label: \"payout po_2Zc9\",\n    meta: \"$940.00 to a new bank account\",\n    verdicts: { country: \"block\" },\n    reason: \"Bank country isn't on your allowlist\",\n  },\n];\n\n/* ── Bits ── */\n\nfunction Tick({ className }: { className?: string }) {\n  return (\n    <svg viewBox=\"0 0 16 16\" className={className} fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden>\n      <path d=\"M3.5 8.5 6.5 11.5 12.5 5\" />\n    </svg>\n  );\n}\n\nfunction Arrow({ className }: { className?: string }) {\n  return (\n    <svg viewBox=\"0 0 16 16\" className={className} fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden>\n      <path d=\"M3.5 8h9M8.5 4l4 4-4 4\" />\n    </svg>\n  );\n}\n\n/* ── Section ── */\n\nexport function CheckpointFeature() {\n  return (\n    <section\n      style={{ \"--accent\": ACCENT, \"--accent-dark\": ACCENT_DARK } as React.CSSProperties}\n      className=\"overflow-x-clip bg-white text-zinc-950 dark:bg-zinc-950 dark:text-white\"\n    >\n      <div className=\"mx-auto grid max-w-6xl grid-cols-1 items-center gap-12 px-6 py-20 sm:py-24 lg:grid-cols-[minmax(0,26rem)_1fr] lg:gap-16\">\n        <div>\n          <p className=\"text-[13px] font-medium text-(--accent) dark:text-(--accent-dark)\">{EYEBROW}</p>\n          <h2 className=\"mt-2 text-balance text-[2rem] font-medium leading-[1.1] tracking-[-0.035em] sm:text-[2.6rem]\">{HEADLINE}</h2>\n          <p className=\"mt-4 text-pretty text-[15px] leading-relaxed text-zinc-500 dark:text-zinc-400\">{SUBLINE}</p>\n          <ul className=\"mt-8 space-y-5\">\n            {POINTS.map((p) => (\n              <li key={p.title} className=\"flex gap-3.5\">\n                <span className=\"mt-0.5 grid size-[18px] shrink-0 place-items-center rounded-[5px] bg-(--accent) text-white dark:bg-(--accent-dark)\">\n                  <Tick className=\"size-3\" />\n                </span>\n                <span>\n                  <span className=\"block text-[15px] font-medium tracking-tight\">{p.title}</span>\n                  <span className=\"mt-1 block text-sm leading-relaxed text-zinc-500 dark:text-zinc-400\">{p.body}</span>\n                </span>\n              </li>\n            ))}\n          </ul>\n          <a\n            href={CTA.href}\n            className=\"mt-9 inline-flex items-center gap-1.5 rounded-sm text-sm font-semibold text-(--accent) transition-[gap] duration-150 hover:gap-2.5 focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-(--accent) dark:text-(--accent-dark)\"\n          >\n            {CTA.label}\n            <Arrow className=\"size-4\" />\n          </a>\n        </div>\n\n        <div className=\"relative\">\n          <div\n            aria-hidden\n            className=\"pointer-events-none absolute -inset-10 bg-[radial-gradient(closest-side,color-mix(in_oklab,var(--accent)_10%,transparent),transparent)]\"\n          />\n          <div className=\"relative rounded-[28px] border border-zinc-950/[0.08] bg-[color-mix(in_oklab,var(--accent)_3%,white)] p-2 shadow-[0_1px_2px_rgba(0,0,0,0.04),0_24px_60px_-30px_rgba(0,0,0,0.18)] dark:border-white/10 dark:bg-zinc-900 dark:shadow-none\">\n            <div className=\"flex items-center justify-between gap-3 px-4 pb-3 pt-3\">\n              <p className=\"text-[13px] font-medium tracking-tight\">{PANEL.title}</p>\n              <p className=\"font-mono text-[11px] text-zinc-500 dark:text-zinc-400\">{PANEL.scope}</p>\n            </div>\n            <div className=\"rounded-[22px] border border-zinc-950/[0.06] bg-white p-4 sm:p-5 dark:border-white/[0.06] dark:bg-zinc-950\">\n              <Checkpoint\n                className=\"[--checkpoint-accent:var(--accent)] dark:[--checkpoint-accent:var(--accent-dark)]\"\n                rules={RULES}\n                requests={REQUESTS}\n                approveAfter={APPROVE_AFTER}\n                approver={APPROVER}\n              />\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}