import { HelpCircle } from "lucide-react";
import {
  DocArticle,
  DocSection,
  DocContactCta,
} from "@/components/support/doc-article";

export const metadata = {
  title: "FAQ — Echo Help",
};

export default function FaqPage() {
  return (
    <DocArticle
      title="Frequently Asked Questions"
      description="Quick answers to what comes up most often."
      icon={<HelpCircle className="size-[18px]" />}
    >
      <DocSection title="How accurate is the OCR?">
        <p>
          For clean, typed-text cards Echo averages better than 98% accuracy.
          Handwriting varies widely &mdash; expect 85&ndash;95% on neat printing
          and lower on cursive. Every card passes through a{" "}
          <strong>Needs Review</strong> state so a human can correct anything
          the AI wasn&rsquo;t sure about before it hits your CRM.
        </p>
      </DocSection>

      <DocSection title="Is my data secure?">
        <p>
          Yes. Echo stores card images in encrypted object storage, encrypts
          integration credentials at rest, and transports everything over TLS.
          Access is scoped to your organization &mdash; nobody outside your
          team can see your cards. See the{" "}
          <a href="/privacy">Privacy Policy</a> for full details.
        </p>
      </DocSection>

      <DocSection title="How long are card images retained?">
        <p>
          By default, cards are retained for 2 years. Administrators can change
          the retention window under{" "}
          <strong>Settings &rarr; Organization</strong>, or delete individual
          cards at any time.
        </p>
      </DocSection>

      <DocSection title="Can I use Echo for non-English cards?">
        <p>
          Echo supports cards in most Latin-script languages out of the box
          (Spanish, Portuguese, French, German, etc.). For non-Latin scripts
          (Korean, Mandarin, Arabic), reach out &mdash; we can enable a
          different extraction model for your organization.
        </p>
      </DocSection>

      <DocSection title="What does it cost?">
        <p>
          Echo is priced per card processed, with a generous monthly free tier
          for small churches. See <a href="/pricing">the pricing page</a> for
          current tiers. Billing questions? Use the Contact button below &mdash;
          it opens a billing-tagged ticket.
        </p>
      </DocSection>

      <DocSection title="Can multiple people review the same batch?">
        <p>
          Yes. When you upload, cards go into the review queue for your whole
          org. Any reviewer or editor can pick up a card; Echo locks it while
          someone&rsquo;s editing to prevent conflicts.
        </p>
      </DocSection>

      <DocSection title="Why did a card end up in 'Failed'?">
        <p>
          Usually because the file was too blurry, too dark, or didn&rsquo;t
          look like a form at all (e.g., a blank envelope). The original file
          is kept &mdash; you can retry after adjusting the scan, or re-upload
          a better version. The{" "}
          <a href="/docs/troubleshooting">Troubleshooting guide</a> has more
          detail.
        </p>
      </DocSection>

      <DocSection title="How do I cancel my subscription?">
        <p>
          Go to <strong>Settings &rarr; Organization &rarr; Billing</strong> and
          click <strong>Cancel plan</strong>. Your data stays accessible until
          the end of the billing period.
        </p>
      </DocSection>

      <DocContactCta label="Didn't find an answer? Reach out and we'll help." />
    </DocArticle>
  );
}
