{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"cta-section","type":"registry:block","title":"CTA section","description":"Closing CTA panel with headline, two actions and a reassurance line. Dark on light pages, light on dark.","dependencies":["lucide-react","motion"],"registryDependencies":["utils"],"files":[{"path":"registry/items/cta-section/cta-section.tsx","type":"registry:block","target":"components/facade/cta-section.tsx","content":"\"use client\";\n\nimport * as React from \"react\";\nimport { motion, useReducedMotion } from \"motion/react\";\nimport { ArrowRight, Check, Phone } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface CtaSectionProps {\n  eyebrow?: string;\n  title?: string;\n  description?: string;\n  primaryCta?: { label: string; href: string };\n  secondaryCta?: { label: string; href: string };\n  /** Short reassurance points shown below the buttons. */\n  reassurance?: string[];\n  /** \"inverted\" is a dark panel on light pages (light on dark pages). \"muted\" is a soft grey tile. */\n  tone?: \"inverted\" | \"muted\";\n  className?: string;\n}\n\nconst EASE = [0.16, 1, 0.3, 1] as const;\n\nexport function CtaSection({\n  eyebrow = \"Booking now for this week\",\n  title = \"Your neighbors already switched. Your turn.\",\n  description = \"Get a written, flat-rate quote in under 10 minutes. If we can't beat your last invoice, the first service call is on us.\",\n  primaryCta = { label: \"Get my free quote\", href: \"#quote\" },\n  secondaryCta = { label: \"(303) 555-0187\", href: \"tel:+13035550187\" },\n  reassurance = [\"No obligation\", \"Licensed and insured in Colorado\", \"Same day slots open\"],\n  tone = \"inverted\",\n  className,\n}: CtaSectionProps) {\n  const reduce = useReducedMotion();\n  const inverted = tone === \"inverted\";\n\n  return (\n    <section className={cn(\"bg-background px-6 py-20 text-foreground sm:py-28\", className)}>\n      <motion.div\n        initial={reduce ? false : { opacity: 0, y: 24 }}\n        whileInView={{ opacity: 1, y: 0 }}\n        viewport={{ once: true, margin: \"-80px 0px\" }}\n        transition={{ duration: 0.9, ease: EASE }}\n        className={cn(\n          \"mx-auto max-w-[1120px] rounded-[28px] px-6 py-16 text-center sm:px-12 sm:py-24\",\n          inverted ? \"bg-foreground text-background\" : \"bg-muted text-foreground\",\n        )}\n      >\n        <div className=\"mx-auto max-w-[720px]\">\n          {eyebrow && (\n            <p className={cn(\"text-[13px] font-medium uppercase tracking-[0.08em]\", inverted ? \"text-background/60\" : \"text-muted-foreground\")}>\n              {eyebrow}\n            </p>\n          )}\n\n          <h2 className=\"mt-5 font-display text-[40px] font-semibold leading-[1.05] tracking-[-0.03em] text-balance sm:text-[56px]\">\n            {title}\n          </h2>\n\n          <p\n            className={cn(\n              \"mx-auto mt-5 max-w-[560px] text-[17px] leading-relaxed text-pretty sm:text-[19px]\",\n              inverted ? \"text-background/70\" : \"text-muted-foreground\",\n            )}\n          >\n            {description}\n          </p>\n\n          <div className=\"mt-10 flex flex-col items-stretch justify-center gap-3 sm:flex-row sm:items-center\">\n            <a\n              href={primaryCta.href}\n              className={cn(\n                \"group inline-flex h-12 items-center justify-center gap-2 rounded-full bg-brand px-6 text-[15px] font-medium text-brand-foreground transition-colors hover:bg-brand/90\",\n                \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\",\n                inverted ? \"focus-visible:ring-offset-foreground\" : \"focus-visible:ring-offset-muted\",\n              )}\n            >\n              {primaryCta.label}\n              <ArrowRight className=\"size-4 transition-transform duration-300 group-hover:translate-x-0.5\" aria-hidden />\n            </a>\n            <a\n              href={secondaryCta.href}\n              className={cn(\n                \"inline-flex h-12 items-center justify-center gap-2 rounded-full px-6 text-[15px] font-medium transition-colors\",\n                \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\",\n                inverted\n                  ? \"bg-background/10 text-background hover:bg-background/15 focus-visible:ring-offset-foreground\"\n                  : \"bg-background text-foreground hover:bg-background/70 focus-visible:ring-offset-muted\",\n              )}\n            >\n              <Phone className=\"size-4\" aria-hidden />\n              {secondaryCta.label}\n            </a>\n          </div>\n\n          {reassurance.length > 0 && (\n            <ul\n              className={cn(\n                \"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2 text-[14px]\",\n                inverted ? \"text-background/60\" : \"text-muted-foreground\",\n              )}\n            >\n              {reassurance.map((r) => (\n                <li key={r} className=\"flex items-center gap-1.5\">\n                  <Check className=\"size-3.5\" aria-hidden />\n                  {r}\n                </li>\n              ))}\n            </ul>\n          )}\n        </div>\n      </motion.div>\n    </section>\n  );\n}\n\nexport default CtaSection;\n"}],"categories":["conversion"],"meta":{"tier":"free","demo":"import { CtaSection } from \"./cta-section\";\n\nexport default function Demo() {\n  return <CtaSection />;\n}\n"}}