{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "testimonials-stack",
  "title": "Testimonials Stack",
  "description": "Layered testimonial cards with prev/next. Editable CONTENT and TESTIMONIALS.",
  "dependencies": [
    "lucide-react",
    "motion"
  ],
  "files": [
    {
      "path": "registry/default/blocks/testimonials-stack.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { ArrowLeft, ArrowRight, Quote } from \"lucide-react\"\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\"\n\n/**\n * Edit CONTENT / TESTIMONIALS for your social proof. Layered card stack\n * with prev/next controls and an aria-live region.\n * After install this file lives in your repo.\n */\nconst CONTENT = {\n  stamp: \"Loved by builders\",\n  headlineBefore: \"Don't take\",\n  headlineAccent: \"our word\",\n  headlineAfter: \" for it.\",\n  lede: \"Replace these with your own customer quotes.\",\n}\n\nconst TESTIMONIALS = [\n  {\n    quote:\n      \"We scoped on Monday and shipped the following Monday. The fixed price meant zero awkward budget calls.\",\n    name: \"Maya Chen\",\n    role: \"Founder, Northline\",\n    initials: \"MC\",\n  },\n  {\n    quote:\n      \"It feels like a senior engineer joined for a week — PRs, docs, and opinions included.\",\n    name: \"Jonas Weber\",\n    role: \"CTO, Fieldwork\",\n    initials: \"JW\",\n  },\n  {\n    quote:\n      \"The landing page paid for itself in the first month. Copy, design, and speed — all handled.\",\n    name: \"Priya Nair\",\n    role: \"CEO, Kiln\",\n    initials: \"PN\",\n  },\n  {\n    quote:\n      \"Async updates every day, no meetings we didn't need. Easiest vendor experience we've had.\",\n    name: \"Tom Okafor\",\n    role: \"Product Lead, Harbor\",\n    initials: \"TO\",\n  },\n]\n\nconst EASE_SOFT = [0.32, 0.72, 0, 1] as const\n\nexport function TestimonialsStack() {\n  const [index, setIndex] = useState(0)\n  const [direction, setDirection] = useState(1)\n  const reduce = useReducedMotion()\n  const total = TESTIMONIALS.length\n  const current = TESTIMONIALS[index % total]!\n\n  const go = (dir: 1 | -1) => {\n    setDirection(dir)\n    setIndex((i) => (i + dir + total) % total)\n  }\n\n  return (\n    <section className=\"@container border-t border-border-subtle bg-background text-foreground\">\n      <div className=\"border-b border-border-subtle\">\n        <div className=\"mx-auto max-w-7xl border-x border-border-subtle px-6 py-12 @min-[40rem]:px-10 @min-[40rem]:py-16\">\n          <div className=\"mx-auto max-w-2xl text-center\">\n            <p className=\"text-[11px] font-semibold tracking-[0.14em] text-muted-foreground uppercase\">\n              {CONTENT.stamp}\n            </p>\n            <h2 className=\"mt-4 text-3xl font-medium tracking-tight text-foreground @min-[40rem]:text-5xl\">\n              {CONTENT.headlineBefore}{\" \"}\n              <span className=\"italic text-brand\">{CONTENT.headlineAccent}</span>\n              {CONTENT.headlineAfter}\n            </h2>\n            <p className=\"mt-4 text-[15px] leading-relaxed text-muted-foreground\">\n              {CONTENT.lede}\n            </p>\n          </div>\n\n          <div className=\"mx-auto mt-10 max-w-xl\">\n            {/* Stack only — keep controls outside so layered cards don't cover them */}\n            <div className=\"relative\">\n              <div\n                aria-hidden\n                className=\"absolute inset-x-6 -top-2.5 bottom-0 rounded-[var(--atro-panel-radius)] border border-border-subtle bg-card/60\"\n              />\n              <div\n                aria-hidden\n                className=\"absolute inset-x-3 -top-1.5 bottom-0 rounded-[var(--atro-panel-radius)] border border-border-subtle bg-card/80\"\n              />\n\n              <div\n                aria-live=\"polite\"\n                aria-atomic=\"true\"\n                className=\"relative min-h-64 overflow-hidden rounded-[var(--atro-panel-radius)] border border-border-subtle bg-card p-6 @min-[40rem]:min-h-56 @min-[40rem]:p-8\"\n              >\n                <Quote className=\"size-5 text-brand\" aria-hidden />\n                <AnimatePresence mode=\"wait\" initial={false}>\n                  <motion.figure\n                    key={index}\n                    initial={reduce ? false : { opacity: 0, x: 24 * direction }}\n                    animate={{ opacity: 1, x: 0 }}\n                    exit={\n                      reduce ? { opacity: 0 } : { opacity: 0, x: -24 * direction }\n                    }\n                    transition={\n                      reduce\n                        ? { duration: 0 }\n                        : { duration: 0.32, ease: EASE_SOFT }\n                    }\n                  >\n                    <blockquote className=\"mt-4 text-lg leading-relaxed font-medium tracking-tight text-foreground @min-[40rem]:text-xl\">\n                      “{current.quote}”\n                    </blockquote>\n                    <figcaption className=\"mt-6 flex items-center gap-3\">\n                      <span\n                        aria-hidden\n                        className=\"flex size-9 shrink-0 items-center justify-center rounded-full bg-muted text-[11px] font-semibold text-foreground\"\n                      >\n                        {current.initials}\n                      </span>\n                      <span>\n                        <span className=\"block text-sm font-medium text-foreground\">\n                          {current.name}\n                        </span>\n                        <span className=\"block text-sm text-muted-foreground\">\n                          {current.role}\n                        </span>\n                      </span>\n                    </figcaption>\n                  </motion.figure>\n                </AnimatePresence>\n              </div>\n            </div>\n\n            <div className=\"mt-5 flex items-center justify-between\">\n              <p\n                className=\"font-mono text-[11px] tabular-nums text-muted-foreground\"\n                aria-hidden\n              >\n                {String(index + 1).padStart(2, \"0\")} /{\" \"}\n                {String(total).padStart(2, \"0\")}\n              </p>\n              <div className=\"flex items-center gap-2\">\n                <button\n                  type=\"button\"\n                  onClick={() => go(-1)}\n                  aria-label=\"Previous testimonial\"\n                  className=\"inline-flex size-10 items-center justify-center rounded-[var(--atro-control-radius)] border border-border-subtle text-foreground transition-colors hover:bg-muted active:scale-[0.97]\"\n                >\n                  <ArrowLeft className=\"size-4\" aria-hidden />\n                </button>\n                <button\n                  type=\"button\"\n                  onClick={() => go(1)}\n                  aria-label=\"Next testimonial\"\n                  className=\"inline-flex size-10 items-center justify-center rounded-[var(--atro-control-radius)] border border-border-subtle text-foreground transition-colors hover:bg-muted active:scale-[0.97]\"\n                >\n                  <ArrowRight className=\"size-4\" aria-hidden />\n                </button>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/blocks/testimonials-stack.tsx"
    }
  ],
  "type": "registry:block"
}