{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-faq-sections-timeline-faq","type":"registry:block","title":"Timeline FAQ","files":[{"path":"components/blocks/marketing/faq-sections/timeline-faq.tsx","content":"import { Button } from '@/components/ui/button';\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardFooter,\n  CardHeader,\n  CardTitle,\n} from '@/components/ui/card';\nimport { ArrowRight, CheckCircle } from 'lucide-react';\n\nconst timelineFaqs = [\n  {\n    title: 'Getting Started',\n    description: 'How does the onboarding process work?',\n    steps: [\n      {\n        title: 'Create an account',\n        description:\n          'Start by signing up for an account using your email address or by connecting with Google, Microsoft, or Apple accounts for faster registration.',\n        additionalInfo:\n          \"We'll send a verification email to confirm your email address. Personal information is only used to identify your account and is never shared with third parties.\",\n      },\n      {\n        title: 'Complete your profile',\n        description:\n          'Add your basic information including your name, organization, role, and profile picture to help others identify you on the platform.',\n        additionalInfo:\n          'Your profile information helps us personalize your experience and provide relevant recommendations. You can update your profile at any time from your account settings.',\n      },\n      {\n        title: 'Set up your workspace',\n        description:\n          'Create or join a workspace for your organization. This is where all your projects, tasks, and team collaborations will live.',\n        additionalInfo:\n          'Workspaces allow you to organize different areas of work. You can be part of multiple workspaces and switch between them easily.',\n      },\n      {\n        title: 'Invite team members',\n        description:\n          'Add colleagues to your workspace by sending invitation emails. Set appropriate permission levels for each team member.',\n        additionalInfo:\n          'Team members can have different roles including Admin, Editor, and Viewer. Only workspace admins can invite new members and manage permissions.',\n      },\n      {\n        title: 'Start your first project',\n        description:\n          'Create a new project, set goals and deadlines, and assign team members to specific tasks within the project.',\n        additionalInfo:\n          'Projects can be organized using boards, lists, or timelines depending on your preferred workflow. You can also import existing projects from other tools.',\n      },\n    ],\n  },\n  {\n    title: 'Billing Cycle',\n    description: 'How does your subscription and billing process work?',\n    steps: [\n      {\n        title: 'Choose a plan',\n        description:\n          'Select from our Free, Pro, or Enterprise plans based on your needs. Each plan includes different features and user limits.',\n        additionalInfo:\n          'You can start with our 14-day free trial of any paid plan to explore all features before committing. No credit card required for the trial.',\n      },\n      {\n        title: 'Enter payment details',\n        description:\n          'Provide your credit card or PayPal information. We use industry-standard encryption to protect your payment information.',\n        additionalInfo:\n          'We accept all major credit cards including Visa, Mastercard, American Express, and Discover. Enterprise plans can also pay via invoice.',\n      },\n      {\n        title: 'Billing cycle begins',\n        description:\n          \"Your subscription starts immediately, and you'll be charged according to your chosen billing cycle (monthly or annual).\",\n        additionalInfo:\n          'Annual plans come with a significant discount compared to monthly billing. You can change your billing cycle at any time.',\n      },\n      {\n        title: 'Receive invoices',\n        description:\n          \"After each payment, we'll email you a receipt and you can access all invoices from your billing dashboard.\",\n        additionalInfo:\n          'Invoices include detailed information about your plan, any add-ons, applicable taxes, and payment method used.',\n      },\n      {\n        title: 'Renewal or cancellation',\n        description:\n          'Subscriptions automatically renew at the end of each billing cycle. You can cancel anytime from your account settings.',\n        additionalInfo:\n          \"If you cancel, you'll maintain access until the end of your current billing period. We don't offer prorated refunds for unused time.\",\n      },\n    ],\n  },\n];\n\nexport default function TimelineFAQ() {\n  return (\n    <div className=\"container mx-auto max-w-[85rem] px-4 py-24 md:px-6 lg:py-32 2xl:max-w-[1400px]\">\n      {/* Title */}\n      <div className=\"mx-auto mb-10 max-w-2xl text-center lg:mb-16\">\n        <h2 className=\"text-2xl font-bold md:text-4xl md:leading-tight\">\n          How It Works\n        </h2>\n        <p className=\"text-muted-foreground mt-4\">\n          Step-by-step guides to common processes\n        </p>\n      </div>\n      {/* End Title */}\n\n      <div className=\"space-y-20\">\n        {timelineFaqs.map((faq, faqIndex) => (\n          <div key={faqIndex}>\n            <div className=\"mx-auto mb-10 max-w-3xl text-center\">\n              <h3 className=\"mb-2 text-xl font-semibold md:text-2xl\">\n                {faq.title}\n              </h3>\n              <p className=\"text-muted-foreground\">{faq.description}</p>\n            </div>\n\n            <div className=\"relative mx-auto max-w-4xl\">\n              {/* Timeline line */}\n              <div className=\"bg-border absolute top-0 bottom-0 left-12 z-0 hidden w-0.5 md:block\" />\n\n              {/* Timeline steps */}\n              <div className=\"relative space-y-8\">\n                {faq.steps.map((step, stepIndex) => (\n                  <div key={stepIndex} className=\"relative\">\n                    <div className=\"grid gap-6 md:grid-cols-[96px_1fr]\">\n                      {/* Timeline marker */}\n                      <div className=\"flex md:justify-center\">\n                        <div className=\"bg-primary text-primary-foreground border-background z-20 flex h-12 w-12 items-center justify-center rounded-full border-4\">\n                          <span className=\"font-semibold\">{stepIndex + 1}</span>\n                        </div>\n                      </div>\n\n                      {/* Content */}\n                      <Card>\n                        <CardHeader>\n                          <CardTitle>{step.title}</CardTitle>\n                          <CardDescription>{step.description}</CardDescription>\n                        </CardHeader>\n                        <CardContent>\n                          <div className=\"text-muted-foreground text-sm\">\n                            {step.additionalInfo}\n                          </div>\n                        </CardContent>\n                        {stepIndex === faq.steps.length - 1 && (\n                          <CardFooter className=\"flex items-center justify-between border-t pt-4\">\n                            <div className=\"text-primary flex items-center text-sm font-medium\">\n                              <CheckCircle className=\"mr-1.5 h-4 w-4\" />\n                              <span>Process complete</span>\n                            </div>\n                            <a href=\"#\">\n                              <Button\n                                variant=\"ghost\"\n                                size=\"sm\"\n                                className=\"gap-1\"\n                              >\n                                <span>Learn more</span>\n                                <ArrowRight className=\"h-3.5 w-3.5\" />\n                              </Button>\n                            </a>\n                          </CardFooter>\n                        )}\n                      </Card>\n                    </div>\n                  </div>\n                ))}\n              </div>\n            </div>\n          </div>\n        ))}\n      </div>\n\n      {/* Additional Help */}\n      <div className=\"mx-auto mt-20 max-w-xl text-center\">\n        <h3 className=\"mb-2 text-lg font-semibold\">Still have questions?</h3>\n        <p className=\"text-muted-foreground mb-6\">\n          Our support team is here to help with any specific questions you might\n          have about our services or processes.\n        </p>\n        <div className=\"flex flex-col justify-center gap-4 sm:flex-row\">\n          <a href=\"#\">\n            <Button variant=\"outline\">Browse FAQs</Button>\n          </a>\n          <a href=\"#\">\n            <Button>Contact Support</Button>\n          </a>\n        </div>\n      </div>\n    </div>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/faq-sections/timeline-faq.tsx"},{"path":"components/ui/button.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n  \"group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n        outline:\n          \"border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n        destructive:\n          \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default:\n          \"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        xs: \"h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n        sm: \"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5\",\n        lg: \"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        icon: \"size-9\",\n        \"icon-xs\":\n          \"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3\",\n        \"icon-sm\":\n          \"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md\",\n        \"icon-lg\": \"size-10\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nfunction Button({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"button\"> &\n  VariantProps<typeof buttonVariants> & {\n    asChild?: boolean\n  }) {\n  const Comp = asChild ? Slot.Root : \"button\"\n\n  return (\n    <Comp\n      data-slot=\"button\"\n      data-variant={variant}\n      data-size={size}\n      className={cn(buttonVariants({ variant, size, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Button, buttonVariants }\n","type":"registry:ui","target":"components/ui/button.tsx"},{"path":"components/ui/card.tsx","content":"import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Card({\n  className,\n  size = \"default\",\n  ...props\n}: React.ComponentProps<\"div\"> & { size?: \"default\" | \"sm\" }) {\n  return (\n    <div\n      data-slot=\"card\"\n      data-size={size}\n      className={cn(\n        \"group/card flex flex-col gap-6 overflow-hidden rounded-xl bg-card py-6 text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-header\"\n      className={cn(\n        \"group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-title\"\n      className={cn(\n        \"font-heading text-base leading-normal font-medium group-data-[size=sm]/card:text-sm\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-description\"\n      className={cn(\"text-sm text-muted-foreground\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-action\"\n      className={cn(\n        \"col-start-2 row-span-2 row-start-1 self-start justify-self-end\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-content\"\n      className={cn(\"px-6 group-data-[size=sm]/card:px-4\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-footer\"\n      className={cn(\n        \"flex items-center rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport {\n  Card,\n  CardHeader,\n  CardFooter,\n  CardTitle,\n  CardAction,\n  CardDescription,\n  CardContent,\n}\n","type":"registry:ui","target":"components/ui/card.tsx"}],"description":"An FAQ laid out as a vertical timeline, walking visitors through questions in order. Suited to onboarding or step by step guides where sequence matters.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}