{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "waitlist-teaser-unlock",
  "type": "registry:component",
  "title": "Waitlist Teaser Unlock",
  "description": "A light split waitlist with a blurred product preview behind a lock badge and a scanning shimmer. Joining with email and team size sharpens the preview into focus and swaps the form for a confirmation.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "waitlist",
    "waitlist",
    "teaser",
    "blur reveal",
    "product preview",
    "form",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/waitlist-teaser-unlock",
  "files": [
    {
      "path": "registry/hyperblur/waitlist-teaser-unlock.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/waitlist-teaser-unlock.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface WaitlistTeaserValues {\n  email: string;\n  teamSize: string;\n}\n\nexport interface WaitlistTeaserUnlockProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\" | \"onSubmit\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  bullets?: string[];\n  teamSizes?: string[];\n  ctaLabel?: string;\n  productName?: string;\n  defaultUnlocked?: boolean;\n  onSubmit?: (values: WaitlistTeaserValues) => void | Promise<void>;\n  accent?: string;\n}\n\nconst css = `\n@keyframes hb-yg7-scan {\n  0% { transform: translateY(-100%); }\n  100% { transform: translateY(520%); }\n}\n@keyframes hb-yg7-float {\n  0%, 100% { transform: translateY(0); }\n  50% { transform: translateY(-8px); }\n}\n@keyframes hb-yg7-grow { from { transform: scaleY(0); } }\n@keyframes hb-yg7-spin { to { transform: rotate(360deg); } }\n@keyframes hb-yg7-in {\n  from { opacity: 0; transform: translateY(8px); }\n  to { opacity: 1; transform: none; }\n}\n.hb-yg7 {\n  --hb-yg7-accent: #7c3aed;\n  --hb-yg7-ink: #111014;\n  --hb-yg7-muted: #67646f;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  container-type: inline-size;\n  background: #ffffff;\n  color: var(--hb-yg7-ink);\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-yg7 *, .hb-yg7 *::before, .hb-yg7 *::after { box-sizing: border-box; }\n.hb-yg7-in {\n  position: relative;\n  display: grid;\n  gap: 48px;\n  max-width: 1120px;\n  margin: 0 auto;\n  padding: 88px 24px;\n}\n@container (min-width: 840px) {\n  .hb-yg7-in { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }\n}\n.hb-yg7-eyebrow {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  height: 28px;\n  padding: 0 12px;\n  border-radius: 999px;\n  background: color-mix(in srgb, var(--hb-yg7-accent) 9%, #fff);\n  color: var(--hb-yg7-accent);\n  font-size: 12.5px;\n  font-weight: 600;\n}\n.hb-yg7-title {\n  margin: 18px 0 0;\n  font-size: clamp(32px, 4.8cqw, 52px);\n  font-weight: 650;\n  line-height: 1.03;\n  letter-spacing: -0.045em;\n  text-wrap: balance;\n}\n.hb-yg7-sub {\n  margin: 16px 0 0;\n  color: var(--hb-yg7-muted);\n  font-size: 16px;\n  line-height: 1.6;\n  text-wrap: pretty;\n}\n.hb-yg7-bullets { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }\n.hb-yg7-bullets li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #34313b; }\n.hb-yg7-bullets svg { flex: none; color: var(--hb-yg7-accent); }\n.hb-yg7-form { display: grid; gap: 10px; margin-top: 28px; }\n@container (min-width: 520px) {\n  .hb-yg7-form { grid-template-columns: 1fr 150px; }\n  .hb-yg7-btn { grid-column: 1 / -1; }\n}\n.hb-yg7-field { position: relative; }\n.hb-yg7-field label {\n  display: block;\n  margin-bottom: 6px;\n  color: #4a4752;\n  font-size: 12.5px;\n  font-weight: 600;\n}\n.hb-yg7-control {\n  width: 100%;\n  height: 46px;\n  padding: 0 14px;\n  border: 1px solid rgba(17, 16, 20, 0.14);\n  border-radius: 12px;\n  background: #fff;\n  color: var(--hb-yg7-ink);\n  font: inherit;\n  font-size: 14.5px;\n  outline: none;\n  box-shadow: 0 1px 2px rgba(17, 16, 20, 0.04);\n  transition: border-color 0.2s ease, box-shadow 0.2s ease;\n  appearance: none;\n}\nselect.hb-yg7-control {\n  padding-right: 34px;\n  background-image: linear-gradient(45deg, transparent 50%, #67646f 50%), linear-gradient(135deg, #67646f 50%, transparent 50%);\n  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;\n  background-size: 5px 5px;\n  background-repeat: no-repeat;\n}\n.hb-yg7-control:focus { border-color: var(--hb-yg7-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hb-yg7-accent) 14%, transparent); }\n.hb-yg7-control[aria-invalid=\"true\"] { border-color: #e5484d; }\n.hb-yg7-err { min-height: 18px; margin: 5px 0 0; color: #d93036; font-size: 12.5px; }\n.hb-yg7-btn {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 8px;\n  height: 48px;\n  border: 0;\n  border-radius: 12px;\n  background: var(--hb-yg7-ink);\n  color: #fff;\n  font: inherit;\n  font-size: 15px;\n  font-weight: 600;\n  cursor: pointer;\n  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 12px 24px -14px rgba(17, 16, 20, 0.6);\n  transition: background 0.2s ease, transform 0.15s ease;\n}\n.hb-yg7-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--hb-yg7-accent) 30%, var(--hb-yg7-ink)); }\n.hb-yg7-btn:active:not(:disabled) { transform: scale(0.985); }\n.hb-yg7-btn:focus-visible { outline: 2px solid var(--hb-yg7-accent); outline-offset: 3px; }\n.hb-yg7-btn:disabled { cursor: progress; }\n.hb-yg7-spin {\n  width: 16px;\n  height: 16px;\n  border: 2px solid rgba(255, 255, 255, 0.3);\n  border-top-color: #fff;\n  border-radius: 50%;\n  animation: hb-yg7-spin 0.7s linear infinite;\n}\n.hb-yg7-done {\n  display: flex;\n  align-items: center;\n  gap: 14px;\n  margin-top: 28px;\n  padding: 16px 18px;\n  border: 1px solid color-mix(in srgb, var(--hb-yg7-accent) 30%, transparent);\n  border-radius: 14px;\n  background: color-mix(in srgb, var(--hb-yg7-accent) 6%, #fff);\n  animation: hb-yg7-in 0.5s ease both;\n  outline: none;\n}\n.hb-yg7-done b {\n  display: grid;\n  place-items: center;\n  flex: none;\n  width: 36px;\n  height: 36px;\n  border-radius: 50%;\n  background: var(--hb-yg7-accent);\n  color: #fff;\n}\n.hb-yg7-done strong { display: block; font-size: 15px; }\n.hb-yg7-done span { display: block; margin-top: 2px; color: var(--hb-yg7-muted); font-size: 13.5px; }\n.hb-yg7-stage {\n  position: relative;\n  padding: 18px;\n  border-radius: 28px;\n  background:\n    radial-gradient(60% 60% at 70% 20%, color-mix(in srgb, var(--hb-yg7-accent) 22%, transparent), transparent 70%),\n    radial-gradient(50% 60% at 10% 90%, rgba(255, 150, 120, 0.22), transparent 70%),\n    #f4f2f8;\n  box-shadow: inset 0 0 0 1px rgba(17, 16, 20, 0.06);\n}\n.hb-yg7-window {\n  position: relative;\n  overflow: hidden;\n  border: 1px solid rgba(17, 16, 20, 0.1);\n  border-radius: 16px;\n  background: #fff;\n  box-shadow: 0 30px 60px -30px rgba(40, 20, 80, 0.4);\n  animation: hb-yg7-float 8s ease-in-out infinite;\n}\n.hb-yg7-bar {\n  display: flex;\n  align-items: center;\n  gap: 6px;\n  height: 34px;\n  padding: 0 12px;\n  border-bottom: 1px solid rgba(17, 16, 20, 0.07);\n  background: #fbfafc;\n}\n.hb-yg7-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e3e1e8; }\n.hb-yg7-bar span { margin-left: 10px; color: #8c8994; font-size: 11.5px; font-weight: 500; }\n.hb-yg7-app {\n  display: grid;\n  grid-template-columns: 120px 1fr;\n  min-height: 300px;\n  filter: blur(var(--hb-yg7-blur));\n  transform: scale(var(--hb-yg7-zoom));\n  transition: filter 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);\n}\n.hb-yg7-side { display: grid; align-content: start; gap: 8px; padding: 14px 12px; border-right: 1px solid rgba(17, 16, 20, 0.06); }\n.hb-yg7-side span { height: 9px; border-radius: 5px; background: #ecebf0; }\n.hb-yg7-side span:first-child { width: 70%; height: 12px; background: var(--hb-yg7-accent); opacity: 0.8; margin-bottom: 8px; }\n.hb-yg7-main { padding: 16px; }\n.hb-yg7-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }\n.hb-yg7-kpi { padding: 10px 12px; border: 1px solid rgba(17, 16, 20, 0.07); border-radius: 10px; }\n.hb-yg7-kpi small { display: block; color: #8c8994; font-size: 10.5px; }\n.hb-yg7-kpi strong { display: block; margin-top: 3px; font-size: 17px; letter-spacing: -0.02em; }\n.hb-yg7-kpi em { color: #16a34a; font-size: 10.5px; font-style: normal; font-weight: 600; }\n.hb-yg7-chart {\n  display: flex;\n  align-items: flex-end;\n  gap: 6px;\n  height: 120px;\n  margin-top: 12px;\n  padding: 12px;\n  border: 1px solid rgba(17, 16, 20, 0.07);\n  border-radius: 10px;\n}\n.hb-yg7-chart span {\n  flex: 1;\n  border-radius: 4px 4px 2px 2px;\n  background: linear-gradient(180deg, var(--hb-yg7-accent), color-mix(in srgb, var(--hb-yg7-accent) 35%, #fff));\n  transform-origin: bottom;\n  animation: hb-yg7-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;\n}\n.hb-yg7-rows { display: grid; gap: 7px; margin-top: 12px; }\n.hb-yg7-rows div { display: flex; align-items: center; gap: 8px; }\n.hb-yg7-rows i { width: 18px; height: 18px; border-radius: 50%; background: #ecebf0; }\n.hb-yg7-rows span { flex: 1; height: 8px; border-radius: 4px; background: #f0eff3; }\n.hb-yg7-rows b { width: 40px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--hb-yg7-accent) 25%, #fff); }\n.hb-yg7-scan {\n  position: absolute;\n  left: 0;\n  right: 0;\n  top: 34px;\n  height: 22%;\n  pointer-events: none;\n  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--hb-yg7-accent) 18%, transparent), transparent);\n  animation: hb-yg7-scan 3.6s ease-in-out infinite;\n  transition: opacity 0.6s ease;\n}\n.hb-yg7-lock {\n  position: absolute;\n  inset: 34px 0 0;\n  display: grid;\n  place-items: center;\n  transition: opacity 0.6s ease, transform 0.6s ease;\n}\n.hb-yg7-lock div {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  padding: 10px 16px 10px 10px;\n  border: 1px solid rgba(17, 16, 20, 0.08);\n  border-radius: 999px;\n  background: rgba(255, 255, 255, 0.86);\n  -webkit-backdrop-filter: blur(8px);\n  backdrop-filter: blur(8px);\n  box-shadow: 0 12px 30px -14px rgba(17, 16, 20, 0.35);\n  font-size: 13.5px;\n  font-weight: 600;\n}\n.hb-yg7-lock b {\n  display: grid;\n  place-items: center;\n  width: 30px;\n  height: 30px;\n  border-radius: 50%;\n  background: var(--hb-yg7-ink);\n  color: #fff;\n}\n.hb-yg7[data-unlocked=\"true\"] .hb-yg7-scan, .hb-yg7[data-unlocked=\"true\"] .hb-yg7-lock { opacity: 0; pointer-events: none; }\n.hb-yg7[data-unlocked=\"true\"] .hb-yg7-lock { transform: scale(0.9); }\n.hb-yg7-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n@media (prefers-reduced-motion: reduce) {\n  .hb-yg7-window, .hb-yg7-scan, .hb-yg7-chart span, .hb-yg7-done { animation: none; }\n  .hb-yg7-app, .hb-yg7-lock, .hb-yg7-control, .hb-yg7-btn { transition: none; }\n}\n`;\n\nconst emailRe = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]{2,}$/;\nconst bars = [38, 52, 44, 63, 58, 72, 66, 81, 77, 90, 84, 96];\n\nexport function WaitlistTeaserUnlock({\n  eyebrow = \"Coming this fall\",\n  title = \"See the dashboard before anyone else\",\n  subtitle = \"Ledgerly reconciles every bank, card and payout account in real time. Join the waitlist to unlock the live preview right now.\",\n  bullets = [\"Real-time reconciliation across 14,000 banks\", \"Close the month in hours, not days\", \"SOC 2 Type II from day one\"],\n  teamSizes = [\"Just me\", \"2 to 10\", \"11 to 50\", \"51 to 200\", \"200+\"],\n  ctaLabel = \"Join and unlock preview\",\n  productName = \"app.ledgerly.com\",\n  defaultUnlocked = false,\n  onSubmit,\n  accent = \"#7c3aed\",\n  className = \"\",\n  style,\n  ...rest\n}: WaitlistTeaserUnlockProps) {\n  const id = React.useId();\n  const [email, setEmail] = React.useState(\"\");\n  const [teamSize, setTeamSize] = React.useState(\"\");\n  const [errors, setErrors] = React.useState<{ email?: string; teamSize?: string }>({});\n  const [status, setStatus] = React.useState<\"idle\" | \"loading\" | \"done\">(defaultUnlocked ? \"done\" : \"idle\");\n  const doneRef = React.useRef<HTMLDivElement>(null);\n  const unlocked = status === \"done\";\n\n  const submit = async (e: React.FormEvent) => {\n    e.preventDefault();\n    const next: { email?: string; teamSize?: string } = {};\n    if (!emailRe.test(email.trim())) next.email = email.trim() ? \"Enter a valid work email.\" : \"Email is required.\";\n    if (!teamSize) next.teamSize = \"Pick a size.\";\n    setErrors(next);\n    if (next.email || next.teamSize) return;\n    setStatus(\"loading\");\n    try {\n      await Promise.all([onSubmit?.({ email: email.trim(), teamSize }), new Promise((r) => setTimeout(r, 900))]);\n      setStatus(\"done\");\n      requestAnimationFrame(() => doneRef.current?.focus());\n    } catch {\n      setStatus(\"idle\");\n      setErrors({ email: \"Something went wrong. Please try again.\" });\n    }\n  };\n\n  return (\n    <section\n      className={`hb-yg7 ${className}`}\n      data-unlocked={unlocked}\n      style={{ \"--hb-yg7-accent\": accent, \"--hb-yg7-blur\": unlocked ? \"0px\" : \"9px\", \"--hb-yg7-zoom\": unlocked ? 1 : 1.04, ...style } as React.CSSProperties}\n      {...rest}\n    >\n      <style href=\"hb-waitlist-teaser-unlock\" precedence=\"default\">{css}</style>\n      <div className=\"hb-yg7-in\">\n        <div>\n          <span className=\"hb-yg7-eyebrow\">{eyebrow}</span>\n          <h2 className=\"hb-yg7-title\">{title}</h2>\n          <p className=\"hb-yg7-sub\">{subtitle}</p>\n          <ul className=\"hb-yg7-bullets\">\n            {bullets.map((b) => (\n              <li key={b}>\n                <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\"><path d=\"M5 12.5l4.5 4.5L19 7.5\" /></svg>\n                {b}\n              </li>\n            ))}\n          </ul>\n          {unlocked ? (\n            <div ref={doneRef} className=\"hb-yg7-done\" role=\"status\" tabIndex={-1}>\n              <b aria-hidden=\"true\">\n                <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\"><path d=\"M5 12.5l4.5 4.5L19 7.5\" /></svg>\n              </b>\n              <div>\n                <strong>Preview unlocked</strong>\n                <span>{email ? `Your invite will go to ${email.trim()}.` : \"Your invite is on the way.\"}</span>\n              </div>\n            </div>\n          ) : (\n            <form className=\"hb-yg7-form\" onSubmit={submit} noValidate>\n              <div className=\"hb-yg7-field\">\n                <label htmlFor={`${id}-email`}>Work email</label>\n                <input\n                  id={`${id}-email`}\n                  className=\"hb-yg7-control\"\n                  type=\"email\"\n                  autoComplete=\"email\"\n                  placeholder=\"maria@northwind.co\"\n                  value={email}\n                  onChange={(e) => setEmail(e.target.value)}\n                  aria-invalid={errors.email ? true : undefined}\n                  aria-describedby={`${id}-email-err`}\n                  disabled={status === \"loading\"}\n                />\n                <p id={`${id}-email-err`} className=\"hb-yg7-err\">{errors.email}</p>\n              </div>\n              <div className=\"hb-yg7-field\">\n                <label htmlFor={`${id}-size`}>Team size</label>\n                <select\n                  id={`${id}-size`}\n                  className=\"hb-yg7-control\"\n                  value={teamSize}\n                  onChange={(e) => setTeamSize(e.target.value)}\n                  aria-invalid={errors.teamSize ? true : undefined}\n                  aria-describedby={`${id}-size-err`}\n                  disabled={status === \"loading\"}\n                >\n                  <option value=\"\" disabled>Select</option>\n                  {teamSizes.map((s) => <option key={s} value={s}>{s}</option>)}\n                </select>\n                <p id={`${id}-size-err`} className=\"hb-yg7-err\">{errors.teamSize}</p>\n              </div>\n              <button type=\"submit\" className=\"hb-yg7-btn\" disabled={status === \"loading\"}>\n                {status === \"loading\" ? <><span className=\"hb-yg7-spin\" aria-hidden=\"true\" />Unlocking</> : ctaLabel}\n              </button>\n            </form>\n          )}\n        </div>\n        <div className=\"hb-yg7-stage\">\n          <div className=\"hb-yg7-window\" aria-label={unlocked ? \"Product preview\" : \"Locked product preview\"} role=\"img\">\n            <div className=\"hb-yg7-bar\" aria-hidden=\"true\"><i /><i /><i /><span>{productName}</span></div>\n            <div className=\"hb-yg7-app\" aria-hidden=\"true\">\n              <div className=\"hb-yg7-side\">\n                <span /><span style={{ width: \"80%\" }} /><span style={{ width: \"64%\" }} /><span style={{ width: \"74%\" }} /><span style={{ width: \"56%\" }} /><span style={{ width: \"68%\" }} />\n              </div>\n              <div className=\"hb-yg7-main\">\n                <div className=\"hb-yg7-kpis\">\n                  <div className=\"hb-yg7-kpi\"><small>Cash on hand</small><strong>$4.82M</strong><em>+6.4%</em></div>\n                  <div className=\"hb-yg7-kpi\"><small>Unmatched</small><strong>12</strong><em>-38</em></div>\n                  <div className=\"hb-yg7-kpi\"><small>Close progress</small><strong>94%</strong><em>Day 2</em></div>\n                </div>\n                <div className=\"hb-yg7-chart\">\n                  {bars.map((h, i) => <span key={i} style={{ height: `${h}%`, animationDelay: `${(i * 0.05).toFixed(2)}s` }} />)}\n                </div>\n                <div className=\"hb-yg7-rows\">\n                  {[78, 62, 70].map((w, i) => <div key={i}><i /><span style={{ maxWidth: `${w}%` }} /><b /></div>)}\n                </div>\n              </div>\n            </div>\n            <div className=\"hb-yg7-scan\" aria-hidden=\"true\" />\n            <div className=\"hb-yg7-lock\" aria-hidden=\"true\">\n              <div>\n                <b>\n                  <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.4\" strokeLinecap=\"round\" strokeLinejoin=\"round\"><rect x=\"5\" y=\"11\" width=\"14\" height=\"10\" rx=\"2\" /><path d=\"M8 11V8a4 4 0 0 1 8 0v3\" /></svg>\n                </b>\n                Join to unlock the preview\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}