import { useState } from 'react' import { ChevronDown, HelpCircle } from 'lucide-react' import { cn } from '@/lib/utils' const faqs = [ { question: "Are my emails secure?", answer: "Yes! We use OAuth – we never see your password. Content is only analyzed briefly, never stored." }, { question: "Which email providers work?", answer: "Gmail and Outlook. More coming soon." }, { question: "Can I create custom rules?", answer: "Absolutely! You can set VIP contacts and define custom categories." }, { question: "What about old emails?", answer: "The last 30 days are analyzed. You decide if they should be sorted too." }, { question: "Can I cancel anytime?", answer: "Yes, with one click. No tricks, no long commitments." }, { question: "Do I need a credit card?", answer: "No, the 14-day trial is completely free." }, { question: "Does it work on mobile?", answer: "Yes! Sorting runs on our servers – works in any email app." }, { question: "What if the AI sorts wrong?", answer: "Just correct it. The AI learns and gets better over time." }, ] export function FAQ() { const [openIndex, setOpenIndex] = useState(0) return (
{/* Section header */}

FAQ

Quick answers to common questions.

{/* FAQ items */}
{faqs.map((faq, index) => ( setOpenIndex(openIndex === index ? null : index)} /> ))}
{/* Contact CTA */}

Still have questions?

Contact us →
) } interface FAQItemProps { question: string answer: string isOpen: boolean onClick: () => void } function FAQItem({ question, answer, isOpen, onClick }: FAQItemProps) { return (

{answer}

) }