{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cta-split-light",
  "type": "registry:component",
  "title": "CTA Split Light",
  "description": "A light paper split with a serif headline whose key word gets a hand-drawn underline, bullet promises, a compact signup card and a row of trust logos.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "cta",
    "cta",
    "signup",
    "light",
    "serif",
    "split",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/cta-split-light",
  "files": [
    {
      "path": "registry/hyperblur/cta-split-light.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/cta-split-light.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface CtaSplitLightProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\" | \"onSubmit\"> {\n  eyebrow?: string;\n  title?: string;\n  highlight?: string;\n  subtitle?: string;\n  promises?: string[];\n  formTitle?: string;\n  formSubtitle?: string;\n  buttonLabel?: string;\n  ssoLabel?: string;\n  finePrint?: string;\n  successMessage?: string;\n  logosLabel?: string;\n  logos?: string[];\n  onSubmit?: (data: { name: string; email: string }) => void | Promise<void>;\n  onSso?: () => void;\n  headingFont?: string;\n  accent?: string;\n}\n\nconst css = `\n.hb-kca {\n  --hb-kca-accent: #0f8a5f;\n  --hb-kca-serif: var(--font-sans, ui-sans-serif, system-ui, sans-serif);\n  container-type: inline-size;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  isolation: isolate;\n  background: #f7f5ef;\n  color: #161512;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-kca *, .hb-kca *::before, .hb-kca *::after { box-sizing: border-box; }\n.hb-kca::before {\n  content: \"\";\n  position: absolute;\n  right: -12%;\n  top: -20%;\n  z-index: -1;\n  width: 60%;\n  height: 90%;\n  background: radial-gradient(closest-side, color-mix(in srgb, var(--hb-kca-accent) 12%, transparent), transparent);\n  pointer-events: none;\n}\n.hb-kca-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 1120px; margin: 0 auto; padding: 72px 18px 64px; }\n.hb-kca-eyebrow {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  margin: 0;\n  padding: 5px 12px;\n  border: 1px solid rgba(22, 21, 18, .12);\n  border-radius: 999px;\n  background: rgba(255, 255, 255, .6);\n  color: #4a4842;\n  font-size: 12.5px;\n  font-weight: 600;\n}\n.hb-kca-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--hb-kca-accent); }\n.hb-kca-title {\n  margin: 22px 0 0;\n  max-width: 560px;\n  font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);\n  font-size: clamp(42px, 7.4cqi, 76px);\n  font-weight: 400;\n  line-height: .98;\n  letter-spacing: -.02em;\n  text-wrap: balance;\n}\n.hb-kca-hl { position: relative; display: inline-block; color: var(--hb-kca-accent); white-space: nowrap; }\n.hb-kca-hl svg { position: absolute; left: -4%; bottom: -.12em; width: 108%; height: .32em; overflow: visible; }\n.hb-kca-hl path { stroke-dasharray: 220; stroke-dashoffset: 220; animation: hb-kca-draw 1.2s cubic-bezier(.65, 0, .35, 1) .4s forwards; }\n.hb-kca-sub { margin: 20px 0 0; max-width: 470px; color: #5b5850; font-size: 16.5px; line-height: 1.6; text-wrap: pretty; }\n.hb-kca-list { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }\n.hb-kca-list li {\n  display: flex;\n  align-items: flex-start;\n  gap: 12px;\n  color: #2c2a25;\n  font-size: 15px;\n  line-height: 1.45;\n  animation: hb-kca-up .7s cubic-bezier(.2, .8, .2, 1) both;\n  animation-delay: var(--hb-kca-d, 0ms);\n}\n.hb-kca-check { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--hb-kca-accent) 14%, #fff); color: var(--hb-kca-accent); }\n.hb-kca-check svg { width: 12px; height: 12px; }\n.hb-kca-card {\n  align-self: center;\n  width: 100%;\n  max-width: 440px;\n  padding: 26px 22px 22px;\n  border: 1px solid rgba(22, 21, 18, .08);\n  border-radius: 22px;\n  background: #fff;\n  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 1px 2px rgba(22, 21, 18, .05), 0 30px 70px -30px rgba(22, 21, 18, .3);\n  animation: hb-kca-up .9s cubic-bezier(.2, .8, .2, 1) .15s both;\n}\n.hb-kca-ftitle { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }\n.hb-kca-fsub { margin: 4px 0 0; color: #77746b; font-size: 14px; }\n.hb-kca-form { display: grid; gap: 12px; margin-top: 20px; }\n.hb-kca-field { display: grid; gap: 6px; }\n.hb-kca-field label { color: #3c3a34; font-size: 12.5px; font-weight: 600; }\n.hb-kca-input {\n  width: 100%;\n  height: 44px;\n  padding: 0 13px;\n  border: 1px solid rgba(22, 21, 18, .14);\n  border-radius: 11px;\n  background: #fbfaf7;\n  color: #161512;\n  font: inherit;\n  font-size: 14.5px;\n  outline: none;\n  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;\n}\n.hb-kca-input::placeholder { color: #a9a59b; }\n.hb-kca-input:hover { border-color: rgba(22, 21, 18, .24); }\n.hb-kca-input:focus { border-color: var(--hb-kca-accent); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--hb-kca-accent) 16%, transparent); }\n.hb-kca-btn {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 8px;\n  height: 46px;\n  margin-top: 4px;\n  border: 0;\n  border-radius: 11px;\n  background: var(--hb-kca-accent);\n  color: #fff;\n  font: inherit;\n  font-size: 14.5px;\n  font-weight: 650;\n  cursor: pointer;\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 20px -10px var(--hb-kca-accent);\n  transition: transform .2s cubic-bezier(.2, .8, .2, 1), filter .2s ease;\n}\n.hb-kca-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }\n.hb-kca-btn:active { transform: scale(.985); }\n.hb-kca-btn:disabled { cursor: progress; opacity: .75; }\n.hb-kca-btn:focus-visible, .hb-kca-sso:focus-visible { outline: 2px solid var(--hb-kca-accent); outline-offset: 3px; }\n.hb-kca-or { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: #a09c92; font-size: 12px; }\n.hb-kca-or::before, .hb-kca-or::after { content: \"\"; flex: 1; height: 1px; background: rgba(22, 21, 18, .1); }\n.hb-kca-sso {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 10px;\n  height: 44px;\n  border: 1px solid rgba(22, 21, 18, .14);\n  border-radius: 11px;\n  background: #fff;\n  color: #2c2a25;\n  font: inherit;\n  font-size: 14px;\n  font-weight: 600;\n  cursor: pointer;\n  transition: background-color .2s ease, border-color .2s ease;\n}\n.hb-kca-sso:hover { border-color: rgba(22, 21, 18, .26); background: #faf9f5; }\n.hb-kca-sso svg { width: 16px; height: 16px; }\n.hb-kca-fine { margin: 14px 0 0; color: #95918a; font-size: 12px; line-height: 1.5; text-align: center; }\n.hb-kca-done { display: grid; justify-items: center; gap: 10px; padding: 28px 8px 18px; text-align: center; animation: hb-kca-up .5s cubic-bezier(.2, .8, .2, 1); }\n.hb-kca-done span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: color-mix(in srgb, var(--hb-kca-accent) 14%, #fff); color: var(--hb-kca-accent); }\n.hb-kca-done svg { width: 22px; height: 22px; }\n.hb-kca-done p { margin: 0; color: #3c3a34; font-size: 15px; line-height: 1.5; }\n.hb-kca-logos { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(22, 21, 18, .08); }\n.hb-kca-logos p { margin: 0 0 16px; color: #8a867d; font-size: 12.5px; font-weight: 550; letter-spacing: .04em; text-transform: uppercase; }\n.hb-kca-logos ul { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin: 0; padding: 0; list-style: none; }\n.hb-kca-logo { display: inline-flex; align-items: center; gap: 8px; color: #6e6a61; font-size: 17px; font-weight: 700; letter-spacing: -.02em; transition: color .2s ease; }\n.hb-kca-logo:hover { color: #161512; }\n.hb-kca-logo svg { width: 20px; height: 20px; }\n.hb-kca-logo[data-v=\"1\"] { font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif); font-weight: 400; font-size: 21px; }\n.hb-kca-logo[data-v=\"2\"] { font-weight: 800; letter-spacing: .1em; font-size: 13.5px; text-transform: uppercase; }\n.hb-kca-logo[data-v=\"3\"] { font-weight: 500; letter-spacing: -.01em; }\n@keyframes hb-kca-draw { to { stroke-dashoffset: 0; } }\n@keyframes hb-kca-up {\n  from { opacity: 0; transform: translateY(14px); }\n  to { opacity: 1; transform: none; }\n}\n@container (min-width: 820px) {\n  .hb-kca-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px 72px; padding: 104px 32px 88px; }\n  .hb-kca-card { justify-self: end; padding: 30px 28px 24px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-kca-hl path { animation: none; stroke-dashoffset: 0; }\n  .hb-kca-list li, .hb-kca-card, .hb-kca-done { animation: none; }\n  .hb-kca-input, .hb-kca-btn, .hb-kca-sso, .hb-kca-logo { transition: none; }\n}\n`;\n\nconst defaultLogos = [\"Halcyon\", \"Northwind\", \"Parable\", \"Kestrel\", \"Lumen & Co\"];\n\nconst glyphs = [\n  \"M10 2a8 8 0 100 16 8 8 0 000-16zm0 3a5 5 0 110 10 5 5 0 010-10z\",\n  \"M3 15L10 3l7 12H3z\",\n  \"M3 3h6v6H3zM11 11h6v6h-6zM11 3h6v6h-6z\",\n  \"M2 10c3-6 13-6 16 0-3 6-13 6-16 0zm8-3a3 3 0 100 6 3 3 0 000-6z\",\n  \"M10 2l2.4 5.6L18 10l-5.6 2.4L10 18l-2.4-5.6L2 10l5.6-2.4z\",\n];\n\nfunction Check() {\n  return (\n    <span className=\"hb-kca-check\" aria-hidden=\"true\">\n      <svg viewBox=\"0 0 12 12\">\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 CtaSplitLight({\n  eyebrow = \"For finance teams\",\n  title = \"Close the books in days, not weeks.\",\n  highlight = \"days,\",\n  subtitle = \"Ledgerline reconciles every account overnight, flags what looks off and hands your auditors a clean trail.\",\n  promises = [\n    \"Bank feeds from 11,000 institutions, matched automatically\",\n    \"Month-end checklist with owners, due dates and sign-off\",\n    \"Live in under a week, with a migration specialist included\",\n  ],\n  formTitle = \"Start your free trial\",\n  formSubtitle = \"14 days of full access. No card needed.\",\n  buttonLabel = \"Create account\",\n  ssoLabel = \"Continue with SSO\",\n  finePrint = \"By signing up you agree to our Terms and Privacy Policy.\",\n  successMessage = \"Check your inbox. We sent a link to finish setting up your workspace.\",\n  logosLabel = \"Trusted by finance teams at\",\n  logos = defaultLogos,\n  onSubmit,\n  onSso,\n  headingFont,\n  accent = \"#0f8a5f\",\n  className = \"\",\n  style,\n  ...rest\n}: CtaSplitLightProps) {\n  const [name, setName] = React.useState(\"\");\n  const [email, setEmail] = React.useState(\"\");\n  const [state, setState] = React.useState<\"idle\" | \"busy\" | \"done\">(\"idle\");\n  const id = React.useId();\n\n  const submit = async (e: React.FormEvent<HTMLFormElement>) => {\n    e.preventDefault();\n    if (state !== \"idle\") return;\n    setState(\"busy\");\n    try {\n      await onSubmit?.({ name: name.trim(), email: email.trim() });\n      setState(\"done\");\n    } catch {\n      setState(\"idle\");\n    }\n  };\n\n  const at = highlight ? title.indexOf(highlight) : -1;\n  const vars = {\n    \"--hb-kca-accent\": accent,\n    ...(headingFont ? { \"--hb-kca-serif\": headingFont } : null),\n    ...style,\n  } as React.CSSProperties;\n\n  return (\n    <section className={`hb-kca ${className}`} style={vars} {...rest}>\n      <style href=\"hb-cta-split-light\" precedence=\"default\">{css}</style>\n      <div className=\"hb-kca-inner\">\n        <div>\n          {eyebrow ? (\n            <p className=\"hb-kca-eyebrow\">\n              <i aria-hidden=\"true\" />\n              {eyebrow}\n            </p>\n          ) : null}\n          <h2 className=\"hb-kca-title\">\n            {at >= 0 ? (\n              <>\n                {title.slice(0, at)}\n                <span className=\"hb-kca-hl\">\n                  {highlight}\n                  <svg viewBox=\"0 0 200 20\" preserveAspectRatio=\"none\" aria-hidden=\"true\">\n                    <path d=\"M3 14c38-9 84-12 128-8 22 2 44 5 66 2\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"5\" strokeLinecap=\"round\" />\n                  </svg>\n                </span>\n                {title.slice(at + highlight.length)}\n              </>\n            ) : (\n              title\n            )}\n          </h2>\n          {subtitle ? <p className=\"hb-kca-sub\">{subtitle}</p> : null}\n          {promises.length ? (\n            <ul className=\"hb-kca-list\">\n              {promises.map((p, i) => (\n                <li key={p} style={{ \"--hb-kca-d\": `${300 + i * 110}ms` } as React.CSSProperties}>\n                  <Check />\n                  {p}\n                </li>\n              ))}\n            </ul>\n          ) : null}\n        </div>\n        <div className=\"hb-kca-card\">\n          {state === \"done\" ? (\n            <div className=\"hb-kca-done\" role=\"status\">\n              <span aria-hidden=\"true\">\n                <svg viewBox=\"0 0 22 22\">\n                  <path d=\"M3 6.5l8 5.5 8-5.5M4 5h14a1 1 0 011 1v10a1 1 0 01-1 1H4a1 1 0 01-1-1V6a1 1 0 011-1z\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                </svg>\n              </span>\n              <p>{successMessage}</p>\n            </div>\n          ) : (\n            <>\n              <h3 className=\"hb-kca-ftitle\">{formTitle}</h3>\n              {formSubtitle ? <p className=\"hb-kca-fsub\">{formSubtitle}</p> : null}\n              <form className=\"hb-kca-form\" onSubmit={submit}>\n                <div className=\"hb-kca-field\">\n                  <label htmlFor={`${id}-name`}>Full name</label>\n                  <input\n                    id={`${id}-name`}\n                    className=\"hb-kca-input\"\n                    type=\"text\"\n                    autoComplete=\"name\"\n                    placeholder=\"Maria Chen\"\n                    required\n                    value={name}\n                    onChange={(e) => setName(e.target.value)}\n                  />\n                </div>\n                <div className=\"hb-kca-field\">\n                  <label htmlFor={`${id}-email`}>Work email</label>\n                  <input\n                    id={`${id}-email`}\n                    className=\"hb-kca-input\"\n                    type=\"email\"\n                    autoComplete=\"email\"\n                    placeholder=\"maria@halcyon.co\"\n                    required\n                    value={email}\n                    onChange={(e) => setEmail(e.target.value)}\n                  />\n                </div>\n                <button type=\"submit\" className=\"hb-kca-btn\" disabled={state === \"busy\"}>\n                  {state === \"busy\" ? \"Creating account...\" : buttonLabel}\n                </button>\n                {ssoLabel ? (\n                  <>\n                    <span className=\"hb-kca-or\">or</span>\n                    <button type=\"button\" className=\"hb-kca-sso\" onClick={() => onSso?.()}>\n                      <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n                        <path d=\"M4.5 7V5a3.5 3.5 0 017 0v2M3.5 7h9a1 1 0 011 1v5a1 1 0 01-1 1h-9a1 1 0 01-1-1V8a1 1 0 011-1z\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.4\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                      </svg>\n                      {ssoLabel}\n                    </button>\n                  </>\n                ) : null}\n              </form>\n              {finePrint ? <p className=\"hb-kca-fine\">{finePrint}</p> : null}\n            </>\n          )}\n        </div>\n        {logos.length ? (\n          <div className=\"hb-kca-logos\">\n            <p>{logosLabel}</p>\n            <ul>\n              {logos.map((l, i) => (\n                <li key={l} className=\"hb-kca-logo\" data-v={String(i % 4)}>\n                  <svg viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n                    <path d={glyphs[i % glyphs.length]} fill=\"currentColor\" fillRule=\"evenodd\" />\n                  </svg>\n                  {l}\n                </li>\n              ))}\n            </ul>\n          </div>\n        ) : null}\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}