{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faq-two-column",
  "type": "registry:component",
  "title": "FAQ Two Column",
  "description": "A light FAQ with a sticky left column holding the title and a support card with online status, and numbered questions on the right that open with a smooth height animation.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "faq",
    "faq",
    "accordion",
    "support",
    "sticky",
    "light",
    "numbered"
  ],
  "docs": "https://hyperblur.dev/effects/faq-two-column",
  "files": [
    {
      "path": "registry/hyperblur/faq-two-column.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/faq-two-column.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface FaqTwoColumnItem {\n  question: string;\n  answer: React.ReactNode;\n}\n\nexport interface FaqTwoColumnLink {\n  label: string;\n  href: string;\n}\n\nexport interface FaqTwoColumnSupport {\n  title: string;\n  text: string;\n  people?: string[];\n  status?: string;\n}\n\nexport interface FaqTwoColumnProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  items?: FaqTwoColumnItem[];\n  support?: FaqTwoColumnSupport | null;\n  contact?: FaqTwoColumnLink | null;\n  secondary?: FaqTwoColumnLink | null;\n  accent?: string;\n  defaultOpen?: number;\n  onOpenChange?: (index: number) => void;\n}\n\nconst css = `\n.hb-kd6 {\n  --hb-kd6-accent: #4f46e5;\n  box-sizing: border-box;\n  container-type: inline-size;\n  position: relative;\n  width: 100%;\n  background: #ffffff;\n  color: #111114;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-kd6 *, .hb-kd6 *::before, .hb-kd6 *::after { box-sizing: border-box; }\n.hb-kd6-in {\n  display: grid;\n  grid-template-columns: minmax(0, 4.2fr) minmax(0, 7fr);\n  gap: 72px;\n  align-items: start;\n  max-width: 1120px;\n  margin: 0 auto;\n  padding: 104px 32px 112px;\n}\n.hb-kd6-side { position: sticky; top: 32px; }\n.hb-kd6-eyebrow {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  margin: 0;\n  padding: 4px 10px;\n  border-radius: 999px;\n  background: color-mix(in srgb, var(--hb-kd6-accent) 9%, #fff);\n  color: var(--hb-kd6-accent);\n  font-size: 12.5px;\n  font-weight: 600;\n}\n.hb-kd6-title {\n  margin: 18px 0 0;\n  font-size: clamp(32px, 4.6cqi, 50px);\n  font-weight: 650;\n  line-height: 1.02;\n  letter-spacing: -.035em;\n  text-wrap: balance;\n}\n.hb-kd6-sub { margin: 18px 0 0; max-width: 380px; color: #5f5f68; font-size: 16px; line-height: 1.6; }\n.hb-kd6-card {\n  position: relative;\n  margin-top: 36px;\n  padding: 22px;\n  border: 1px solid #e8e8ec;\n  border-radius: 20px;\n  background: linear-gradient(180deg, #fbfbfc, #f4f4f7);\n  box-shadow: 0 1px 0 #fff inset, 0 12px 32px -18px rgba(17, 17, 20, .25);\n  overflow: hidden;\n}\n.hb-kd6-card::after {\n  content: \"\";\n  position: absolute;\n  right: -60px;\n  top: -60px;\n  width: 180px;\n  height: 180px;\n  border-radius: 50%;\n  background: radial-gradient(closest-side, color-mix(in srgb, var(--hb-kd6-accent) 16%, transparent), transparent);\n  pointer-events: none;\n}\n.hb-kd6-people { display: flex; align-items: center; }\n.hb-kd6-face {\n  display: grid;\n  place-items: center;\n  width: 38px;\n  height: 38px;\n  margin-left: -10px;\n  border-radius: 50%;\n  border: 2.5px solid #f8f8fa;\n  color: #fff;\n  font-size: 12px;\n  font-weight: 600;\n}\n.hb-kd6-face:first-child { margin-left: 0; }\n.hb-kd6-status {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  margin-left: 12px;\n  color: #3f3f46;\n  font-size: 12.5px;\n  font-weight: 500;\n}\n.hb-kd6-status i {\n  position: relative;\n  width: 8px;\n  height: 8px;\n  border-radius: 50%;\n  background: #16a34a;\n}\n.hb-kd6-status i::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  border-radius: 50%;\n  background: #16a34a;\n  animation: hb-kd6-ping 2s cubic-bezier(0, 0, .2, 1) infinite;\n}\n@keyframes hb-kd6-ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }\n.hb-kd6-card-title { position: relative; margin: 18px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }\n.hb-kd6-card-text { position: relative; margin: 6px 0 0; color: #5f5f68; font-size: 14px; line-height: 1.55; }\n.hb-kd6-ctas { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }\n.hb-kd6-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  min-height: 42px;\n  padding: 0 18px;\n  border: 1px solid transparent;\n  border-radius: 999px;\n  background: #111114;\n  color: #fff;\n  font-size: 14px;\n  font-weight: 600;\n  text-decoration: none;\n  box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 6px 16px -6px rgba(17, 17, 20, .5);\n  transition: background-color .25s ease, transform .25s cubic-bezier(.2, .8, .2, 1);\n}\n.hb-kd6-btn:hover { background: var(--hb-kd6-accent); transform: translate3d(0, -1px, 0); }\n.hb-kd6-btn svg { width: 14px; height: 14px; transition: transform .25s ease; }\n.hb-kd6-btn:hover svg { transform: translate3d(2px, 0, 0); }\n.hb-kd6-btn[data-ghost=\"true\"] { border-color: #dcdce2; background: #fff; color: #111114; box-shadow: none; }\n.hb-kd6-btn[data-ghost=\"true\"]:hover { border-color: #b9b9c3; background: #fff; }\n.hb-kd6-btn:focus-visible { outline: 2px solid var(--hb-kd6-accent); outline-offset: 3px; }\n.hb-kd6-list { margin: 0; padding: 0; list-style: none; }\n.hb-kd6-item {\n  position: relative;\n  border-bottom: 1px solid #ececf0;\n  transition: background-color .3s ease;\n}\n.hb-kd6-item:first-child { border-top: 1px solid #ececf0; }\n.hb-kd6-item::before {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  top: -1px;\n  bottom: -1px;\n  width: 2px;\n  background: var(--hb-kd6-accent);\n  transform: scaleY(0);\n  transform-origin: top;\n  transition: transform .45s cubic-bezier(.2, .8, .2, 1);\n}\n.hb-kd6-item[data-open=\"true\"]::before { transform: scaleY(1); }\n.hb-kd6-h { margin: 0; font: inherit; }\n.hb-kd6-trigger {\n  display: grid;\n  grid-template-columns: 44px minmax(0, 1fr) 28px;\n  align-items: center;\n  gap: 8px;\n  width: 100%;\n  margin: 0;\n  padding: 24px 4px 24px 20px;\n  border: 0;\n  background: transparent;\n  color: #111114;\n  font: inherit;\n  font-size: 17px;\n  font-weight: 550;\n  line-height: 1.35;\n  letter-spacing: -.01em;\n  text-align: left;\n  cursor: pointer;\n}\n.hb-kd6-trigger:focus-visible { outline: 2px solid var(--hb-kd6-accent); outline-offset: -2px; border-radius: 10px; }\n.hb-kd6-num {\n  color: #a1a1aa;\n  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n  font-size: 13px;\n  font-weight: 500;\n  font-variant-numeric: tabular-nums;\n  transition: color .3s ease;\n}\n.hb-kd6-item[data-open=\"true\"] .hb-kd6-num, .hb-kd6-trigger:hover .hb-kd6-num { color: var(--hb-kd6-accent); }\n.hb-kd6-plus {\n  position: relative;\n  justify-self: end;\n  width: 28px;\n  height: 28px;\n  border-radius: 50%;\n  background: #f2f2f5;\n  transition: background-color .3s ease, transform .45s cubic-bezier(.2, .8, .2, 1);\n}\n.hb-kd6-plus::before, .hb-kd6-plus::after {\n  content: \"\";\n  position: absolute;\n  left: 9px;\n  top: 13.25px;\n  width: 10px;\n  height: 1.5px;\n  border-radius: 2px;\n  background: #3f3f46;\n  transition: transform .45s cubic-bezier(.2, .8, .2, 1), background-color .3s ease;\n}\n.hb-kd6-plus::after { transform: rotate(90deg); }\n.hb-kd6-trigger:hover .hb-kd6-plus { background: #e9e9ee; }\n.hb-kd6-item[data-open=\"true\"] .hb-kd6-plus { background: var(--hb-kd6-accent); transform: rotate(180deg); }\n.hb-kd6-item[data-open=\"true\"] .hb-kd6-plus::before, .hb-kd6-item[data-open=\"true\"] .hb-kd6-plus::after { background: #fff; }\n.hb-kd6-item[data-open=\"true\"] .hb-kd6-plus::after { transform: rotate(0deg); }\n.hb-kd6-panel {\n  display: grid;\n  grid-template-rows: 0fr;\n  visibility: hidden;\n  transition: grid-template-rows .45s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .45s;\n}\n.hb-kd6-item[data-open=\"true\"] .hb-kd6-panel {\n  grid-template-rows: 1fr;\n  visibility: visible;\n  transition: grid-template-rows .45s cubic-bezier(.2, .8, .2, 1), visibility 0s linear 0s;\n}\n.hb-kd6-clip { min-height: 0; overflow: hidden; }\n.hb-kd6-a {\n  padding: 0 40px 26px 72px;\n  color: #52525b;\n  font-size: 15.5px;\n  line-height: 1.65;\n  opacity: 0;\n  transition: opacity .3s ease;\n}\n.hb-kd6-item[data-open=\"true\"] .hb-kd6-a { opacity: 1; transition-delay: .1s; }\n@container (max-width: 860px) {\n  .hb-kd6-in { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 72px 20px 80px; }\n  .hb-kd6-side { position: static; }\n  .hb-kd6-sub { max-width: 520px; }\n  .hb-kd6-card { max-width: 480px; }\n}\n@container (max-width: 480px) {\n  .hb-kd6-trigger { grid-template-columns: 32px minmax(0, 1fr) 28px; padding: 20px 0 20px 12px; font-size: 16px; }\n  .hb-kd6-a { padding: 0 8px 22px 52px; font-size: 15px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-kd6-panel, .hb-kd6-item[data-open=\"true\"] .hb-kd6-panel, .hb-kd6-a, .hb-kd6-plus, .hb-kd6-plus::before, .hb-kd6-plus::after, .hb-kd6-item::before, .hb-kd6-btn, .hb-kd6-btn svg { transition: none; }\n  .hb-kd6-status i::after { animation: none; }\n  .hb-kd6-btn:hover { transform: none; }\n}\n`;\n\nconst defaultItems: FaqTwoColumnItem[] = [\n  { question: \"How long does it take to get set up?\", answer: \"Most teams connect their calendar and send the first booking link in under ten minutes. Importing past appointments from another tool takes about an hour, and we can do it for you on any paid plan.\" },\n  { question: \"Can clients book without creating an account?\", answer: \"Yes. Clients pick a time, enter their name and email, and get a confirmation with a calendar invite. Returning clients are recognized by email, so their history stays in one place.\" },\n  { question: \"Which calendars and video tools do you support?\", answer: \"Google Calendar, Outlook and iCloud sync both ways in real time. Zoom, Google Meet and Microsoft Teams links are created automatically for every booking.\" },\n  { question: \"How do payments and deposits work?\", answer: \"Connect Stripe to collect full payments or a deposit at booking. Payouts arrive on your usual Stripe schedule, and we never add a fee on top of Stripe's own.\" },\n  { question: \"What happens if a client cancels late?\", answer: \"You set the rules. Charge a cancellation fee, keep the deposit, or allow free rescheduling up to a cutoff you choose. Clients see the policy before they confirm.\" },\n  { question: \"Is there a discount for nonprofits and schools?\", answer: \"Registered nonprofits and accredited schools get 40% off every plan. Send us proof of status from your workspace settings and the discount applies to your next invoice.\" },\n];\n\nconst faces = [\n  \"linear-gradient(135deg, #6366f1, #a855f7)\",\n  \"linear-gradient(135deg, #f97316, #ec4899)\",\n  \"linear-gradient(135deg, #14b8a6, #3b82f6)\",\n  \"linear-gradient(135deg, #eab308, #f97316)\",\n];\n\nfunction initialsOf(name: string) {\n  return name\n    .split(/\\s+/)\n    .filter(Boolean)\n    .slice(0, 2)\n    .map((part) => part[0]?.toUpperCase() ?? \"\")\n    .join(\"\");\n}\n\nexport function FaqTwoColumn({\n  eyebrow = \"FAQ\",\n  title = \"Questions, answered\",\n  subtitle = \"Everything about booking, payments and calendars. If something is missing, our support team is one message away.\",\n  items = defaultItems,\n  support = {\n    title: \"Talk to a real person\",\n    text: \"Our support team in Lisbon and Austin replies in about two hours, seven days a week.\",\n    people: [\"Inês Rocha\", \"Caleb Hart\", \"Mei Lin\"],\n    status: \"Online now\",\n  },\n  contact = { label: \"Contact support\", href: \"#contact\" },\n  secondary = { label: \"Help center\", href: \"#help\" },\n  accent = \"#4f46e5\",\n  defaultOpen = 0,\n  onOpenChange,\n  className = \"\",\n  style,\n  ...rest\n}: FaqTwoColumnProps) {\n  const uid = React.useId();\n  const [open, setOpen] = React.useState(defaultOpen);\n  const vars = { \"--hb-kd6-accent\": accent, ...style } as React.CSSProperties;\n  const focusTrigger = (index: number) => {\n    const el = document.getElementById(`${uid}-q${index}`);\n    el?.focus();\n  };\n\n  return (\n    <section className={`hb-kd6 ${className}`} style={vars} aria-labelledby={`${uid}-t`} {...rest}>\n      <style href=\"hb-faq-two-column\" precedence=\"default\">{css}</style>\n      <div className=\"hb-kd6-in\">\n        <div className=\"hb-kd6-side\">\n          {eyebrow && <p className=\"hb-kd6-eyebrow\">{eyebrow}</p>}\n          <h2 id={`${uid}-t`} className=\"hb-kd6-title\">{title}</h2>\n          {subtitle && <p className=\"hb-kd6-sub\">{subtitle}</p>}\n          {(support || contact || secondary) && (\n            <div className=\"hb-kd6-card\">\n              {support && (\n                <>\n                  {(support.people?.length || support.status) && (\n                    <div className=\"hb-kd6-people\">\n                      {support.people?.slice(0, 4).map((name, i) => (\n                        <span key={name} className=\"hb-kd6-face\" style={{ background: faces[i % faces.length] }} title={name} aria-hidden=\"true\">\n                          {initialsOf(name)}\n                        </span>\n                      ))}\n                      {support.status && (\n                        <span className=\"hb-kd6-status\">\n                          <i aria-hidden=\"true\" />\n                          {support.status}\n                        </span>\n                      )}\n                    </div>\n                  )}\n                  <p className=\"hb-kd6-card-title\">{support.title}</p>\n                  <p className=\"hb-kd6-card-text\">{support.text}</p>\n                </>\n              )}\n              {(contact || secondary) && (\n                <div className=\"hb-kd6-ctas\">\n                  {contact && (\n                    <a className=\"hb-kd6-btn\" href={contact.href}>\n                      {contact.label}\n                      <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                        <path d=\"M3 8h10M9 4l4 4-4 4\" />\n                      </svg>\n                    </a>\n                  )}\n                  {secondary && (\n                    <a className=\"hb-kd6-btn\" data-ghost=\"true\" href={secondary.href}>\n                      {secondary.label}\n                    </a>\n                  )}\n                </div>\n              )}\n            </div>\n          )}\n        </div>\n        <ol className=\"hb-kd6-list\">\n          {items.map((item, i) => {\n            const isOpen = open === i;\n            const tid = `${uid}-q${i}`;\n            const pid = `${uid}-a${i}`;\n            return (\n              <li key={`${item.question}-${i}`} className=\"hb-kd6-item\" data-open={isOpen ? \"true\" : \"false\"}>\n                <h3 className=\"hb-kd6-h\">\n                  <button\n                    id={tid}\n                    type=\"button\"\n                    className=\"hb-kd6-trigger\"\n                    aria-expanded={isOpen}\n                    aria-controls={pid}\n                    onClick={() => {\n                      const next = isOpen ? -1 : i;\n                      setOpen(next);\n                      onOpenChange?.(next);\n                    }}\n                    onKeyDown={(e) => {\n                      if (e.key === \"ArrowDown\") {\n                        e.preventDefault();\n                        focusTrigger((i + 1) % items.length);\n                      } else if (e.key === \"ArrowUp\") {\n                        e.preventDefault();\n                        focusTrigger((i - 1 + items.length) % items.length);\n                      } else if (e.key === \"Home\") {\n                        e.preventDefault();\n                        focusTrigger(0);\n                      } else if (e.key === \"End\") {\n                        e.preventDefault();\n                        focusTrigger(items.length - 1);\n                      }\n                    }}\n                  >\n                    <span className=\"hb-kd6-num\" aria-hidden=\"true\">{String(i + 1).padStart(2, \"0\")}</span>\n                    <span>{item.question}</span>\n                    <span className=\"hb-kd6-plus\" aria-hidden=\"true\" />\n                  </button>\n                </h3>\n                <div id={pid} className=\"hb-kd6-panel\" role=\"region\" aria-labelledby={tid}>\n                  <div className=\"hb-kd6-clip\">\n                    <div className=\"hb-kd6-a\">{item.answer}</div>\n                  </div>\n                </div>\n              </li>\n            );\n          })}\n        </ol>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}