{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faqs-17",
  "type": "registry:block",
  "description": "One-at-a-time flashcard carousel with tap to reveal answers, progress bar, dots and prev/next.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/faqs/faqs-17.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  ChevronLeft,\n  ChevronRight,\n  Eye,\n  RotateCcw,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst cards = [\n  {\n    topic: \"Getting started\",\n    q: \"What does Fieldnote actually do?\",\n    a: \"Fieldnote records your customer calls, transcribes them in real time and turns them into searchable highlights your whole product team can tag, clip and share.\",\n  },\n  {\n    topic: \"Privacy\",\n    q: \"Do participants know they are being recorded?\",\n    a: \"Yes. Fieldnote joins as a visible participant and plays a short consent notice. Anyone can ask to pause recording, and the host can delete a call at any time.\",\n  },\n  {\n    topic: \"Languages\",\n    q: \"Which languages can it transcribe?\",\n    a: \"Over 30 languages with automatic detection, including mixed-language calls. Translations into English are generated alongside the original transcript.\",\n  },\n  {\n    topic: \"Integrations\",\n    q: \"Where do my highlights end up?\",\n    a: \"Push clips to your roadmap tool, post them in a team channel, or embed them in docs with a single link. Every highlight keeps a timestamp back to the full call.\",\n  },\n  {\n    topic: \"Pricing\",\n    q: \"How is Fieldnote priced?\",\n    a: \"Per recorder, not per viewer. Anyone in your company can watch, search and comment for free. Recorders start at $18 per month on annual billing.\",\n  },\n  {\n    topic: \"Security\",\n    q: \"Where are recordings stored?\",\n    a: \"In your chosen region (US, EU or Australia), encrypted at rest. Enterprise plans can set retention rules that auto-delete recordings after a fixed period.\",\n  },\n]\n\nexport default function Faqs17() {\n  const [index, setIndex] = useState(0)\n  const [revealed, setRevealed] = useState(false)\n  const card = cards[index] ?? cards[0]!\n  const progress = ((index + 1) / cards.length) * 100\n\n  const go = (next: number) => {\n    setIndex((next + cards.length) % cards.length)\n    setRevealed(false)\n  }\n\n  return (\n    <section className=\"w-full bg-muted/30 py-20 md:py-28\">\n      <div className=\"mx-auto max-w-3xl px-6\">\n        <div className=\"text-center\">\n          <h2 className=\"text-3xl font-semibold tracking-tight md:text-4xl\">\n            Questions, one at a time\n          </h2>\n          <p className=\"mt-3 text-sm text-muted-foreground\">\n            Think you know the answer? Flip the card to check.\n          </p>\n        </div>\n\n        <div className=\"mt-10 flex items-center justify-between gap-4 text-xs text-muted-foreground\">\n          <span className=\"font-sans\">\n            {String(index + 1).padStart(2, \"0\")} /{\" \"}\n            {String(cards.length).padStart(2, \"0\")}\n          </span>\n          <span className=\"tracking-[0.15em] uppercase\">{card.topic}</span>\n        </div>\n        <div\n          className=\"mt-3 h-1 w-full bg-muted\"\n          role=\"progressbar\"\n          aria-valuemin={1}\n          aria-valuemax={cards.length}\n          aria-valuenow={index + 1}\n          aria-label=\"FAQ progress\"\n        >\n          <div\n            className=\"h-full bg-foreground transition-all duration-300\"\n            style={{ width: `${progress}%` }}\n          />\n        </div>\n\n        <button\n          type=\"button\"\n          onClick={() => setRevealed((value) => !value)}\n          aria-live=\"polite\"\n          className=\"mt-6 flex min-h-80 w-full flex-col justify-between border border-border bg-card p-6 text-start transition-colors outline-none hover:bg-card/80 focus-visible:ring-1 focus-visible:ring-ring md:p-10\"\n        >\n          <span className=\"block text-2xl font-semibold tracking-tight text-balance md:text-3xl\">\n            {card.q}\n          </span>\n          <span className=\"mt-8 block\">\n            {revealed ? (\n              <span className=\"block text-base leading-7 text-muted-foreground\">\n                {card.a}\n              </span>\n            ) : (\n              <span className=\"inline-flex items-center gap-2 text-sm text-muted-foreground\">\n                <Eye className=\"size-4\" />\n                Tap to reveal the answer\n              </span>\n            )}\n          </span>\n        </button>\n\n        <div className=\"mt-6 flex items-center justify-between gap-3\">\n          <Button\n            variant=\"outline\"\n            size=\"md\"\n            onClick={() => go(index - 1)}\n            aria-label=\"Previous question\"\n          >\n            <ChevronLeft data-icon=\"inline-start\" />\n            <span className=\"hidden sm:inline\">Previous</span>\n          </Button>\n          <div className=\"flex items-center gap-1.5\">\n            {cards.map((item, dot) => (\n              <button\n                key={item.q}\n                type=\"button\"\n                onClick={() => go(dot)}\n                aria-label={`Go to question ${dot + 1}`}\n                className={cn(\n                  \"h-1.5 transition-all\",\n                  dot === index\n                    ? \"w-6 bg-foreground\"\n                    : \"w-1.5 bg-muted-foreground/30 hover:bg-muted-foreground/60\"\n                )}\n              />\n            ))}\n          </div>\n          {index === cards.length - 1 ? (\n            <Button variant=\"outline\" size=\"md\" onClick={() => go(0)}>\n              <RotateCcw data-icon=\"inline-start\" />\n              <span className=\"hidden sm:inline\">Start over</span>\n            </Button>\n          ) : (\n            <Button\n              size=\"md\"\n              onClick={() => go(index + 1)}\n              aria-label=\"Next question\"\n            >\n              <span className=\"hidden sm:inline\">Next</span>\n              <ChevronRight data-icon=\"inline-end\" />\n            </Button>\n          )}\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "700px"
  },
  "categories": [
    "faqs"
  ]
}