import type { Metadata } from "next";
import Link from "next/link";
import { PageHero } from "@/components/patterns/PageHero";
import { FaqAccordion } from "@/components/patterns/FaqAccordion";
import { CtaSection } from "@/components/patterns/CtaSection";

export const metadata: Metadata = {
  title: "FAQ",
  description:
    "Answers to common questions about how ROPTS's fundraising advisory and introduction process works, cost, timelines, confidentiality, and who we serve.",
  alternates: { canonical: "/faq" },
  openGraph: {
    title: "FAQ — ROPTS Venture Capital",
    description: "Answers to common questions about how ROPTS's fundraising advisory and introduction process works.",
    type: "website",
    url: "/faq",
  },
};

const faqs = [
  {
    question: "Does ROPTS invest directly in my organization?",
    answer:
      "No. ROPTS is a fundraising advisory and connectivity firm, not a direct investor. We prepare your organization and introduce you to angel investors, VC firms, family offices, corporate investors, CSR partners, grant providers, philanthropic organizations, impact investors, foundations, and government funding programs. The investment or grant decision, and its terms, remain between you and them.",
  },
  {
    question: "What does it cost to apply?",
    answer:
      "There is no cost to apply, and no obligation on either side until an introduction is made.",
  },
  {
    question: "Who does ROPTS work with?",
    answer:
      "Startups, MSMEs, SMEs, NGOs, trusts, and social enterprises raising capital or seeking grant and CSR support, and the investors and partners who fund them.",
  },
  {
    question: "How do I apply as an organization raising capital?",
    answer:
      "Start with the Readiness Review — a short application covering your organization type, sector, funding stage, and funding need.",
  },
  {
    question: "How do investors and partners register their interest?",
    answer:
      "Investors, family offices, CSR programs, grant providers, and other partners register through a short form covering partner type, sectors of interest, and typical check size or budget range, so we can match inbound organization mandates against it.",
  },
  {
    question: "What happens if our application is declined?",
    answer:
      "You receive specific, constructive feedback on what would change the outcome, not a generic rejection. Many organizations reapply once the gap is addressed.",
  },
  {
    question: "How long does the process take?",
    answer:
      "Applications and registrations are reviewed within three business days. Time to introduction after that varies by sector and stage, and is communicated plainly once your Advisory Review is complete.",
  },
  {
    question: "Is our information kept confidential?",
    answer:
      "Yes. Application details are used only to assess fundraising readiness and to match you against relevant investors and partners. They are not shared beyond that process without your knowledge.",
  },
  {
    question: "What does ROPTS actually do, step by step?",
    answer:
      "Discovery, self-qualification, application, advisory review, preparation, and introduction. See the How It Works page for the full breakdown of each stage.",
  },
  {
    question: "Where can I find more detail on specific services?",
    answer:
      "The Services section covers fundraising advisory, capital raising, sector funding, and CSR & grants in detail — including pitch deck review, valuation guidance, investor discovery, and grant discovery.",
  },
  {
    question: "Does ROPTS guarantee an investment or grant outcome?",
    answer:
      "No. ROPTS's role ends at introduction. Introductions do not constitute an offer, solicitation, or guarantee of investment or funding.",
  },
];

const faqJsonLd = {
  "@context": "https://schema.org",
  "@type": "FAQPage",
  mainEntity: faqs.map((faq) => ({
    "@type": "Question",
    name: faq.question,
    acceptedAnswer: {
      "@type": "Answer",
      text: faq.answer,
    },
  })),
};

export default function FaqPage() {
  return (
    <>
      <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(faqJsonLd) }} />

      <PageHero
        breadcrumb={[{ label: "Home", href: "/" }, { label: "FAQ" }]}
        eyebrow="FAQ"
        title="Frequently Asked Questions"
        description="How the process works, what it costs, and what to expect — in plain terms."
      />

      <div className="container py-16">
        <div className="max-w-2xl">
          <h2 className="sr-only">Questions</h2>
          <FaqAccordion items={faqs} />
          <p className="mt-8 text-body-sm text-ink-soft">
            For a full breakdown of the process, see{" "}
            <Link href="/how-it-works" className="text-primary underline underline-offset-4">
              How It Works
            </Link>
            . For details on individual offerings, see{" "}
            <Link href="/services/fundraising-advisory" className="text-primary underline underline-offset-4">
              Services
            </Link>
            .
          </p>
        </div>
      </div>

      <CtaSection
        title="Ready to find out where you stand?"
        primaryLabel="Apply to Raise Capital"
        primaryHref="/apply/organization"
        secondaryLabel="Apply as an Investor or Partner"
        secondaryHref="/apply/investor-or-partner"
      />
    </>
  );
}
