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

export const metadata: Metadata = {
  title: "Due Diligence Support",
  description:
    "Document readiness, data room preparation, and gap remediation ahead of an investor's own diligence process — not a replacement for it.",
  alternates: { canonical: "/services/capital-raising/due-diligence-support" },
  openGraph: {
    title: "Due Diligence Support — ROPTS Venture Capital",
    description:
      "Getting your documentation and data room in order before an investor begins their own diligence — so the process runs smoothly rather than surfacing avoidable gaps.",
    type: "website",
    url: "/services/capital-raising/due-diligence-support",
  },
};

const stages = [
  {
    label: "Stage 1",
    title: "Document Inventory",
    description: "A review of what an investor will typically request — corporate, financial, legal, and operational — mapped against what you currently have.",
  },
  {
    label: "Stage 2",
    title: "Gap Identification",
    description: "Missing, outdated, or inconsistent documents are flagged specifically, along with why each one matters to a diligence reviewer.",
  },
  {
    label: "Stage 3",
    title: "Data Room Preparation",
    description: "Documents are organized into a structure an investor's team can navigate quickly and without back-and-forth.",
  },
  {
    label: "Stage 4",
    title: "Handover to Investor Diligence",
    description: "Once the data room is ready, the investor conducts their own diligence — ROPTS does not perform or substitute for it.",
  },
];

const faqs = [
  {
    question: "Does ROPTS conduct due diligence on our organization?",
    answer:
      "No. Due Diligence Support prepares your documentation and data room ahead of the investor's own diligence process — it does not replace or substitute for the investor's independent review.",
  },
  {
    question: "What kind of gaps does this typically catch?",
    answer:
      "Common issues include outdated cap tables, missing board resolutions, inconsistent financial statements across documents, and incomplete IP or contract records — the kind of gaps that stall diligence once it's underway.",
  },
  {
    question: "How long does data room preparation take?",
    answer:
      "It depends on how much documentation already exists and how many gaps surface during the inventory stage. Organizations with reasonably current records move through this faster than those starting from scratch.",
  },
  {
    question: "Is this only relevant once we already have investor interest?",
    answer:
      "It's most valuable just before or during active investor conversations, but organizations often benefit from starting the document inventory earlier, since remediation takes time.",
  },
];

export default function DueDiligenceSupportPage() {
  const serviceJsonLd = {
    "@context": "https://schema.org",
    "@type": "Service",
    name: "Due Diligence Support",
    description:
      "Document readiness and data room preparation services ahead of an investor's independent due diligence process.",
    provider: { "@type": "Organization", name: "ROPTS Venture Capital" },
  };

  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{ __html: JSON.stringify(serviceJsonLd) }}
      />

      <PageHero
        breadcrumb={[
          { label: "Home", href: "/" },
          { label: "Services", href: "/services" },
          { label: "Capital Raising", href: "/services/capital-raising" },
          { label: "Due Diligence Support" },
        ]}
        eyebrow="Capital Raising"
        title="Due Diligence Support"
        description="Diligence stalls raises more often than valuation disputes do. Due Diligence Support gets your documentation and data room in order before an investor's own review begins."
        primaryLabel="Apply to Raise Capital"
        primaryHref="/apply/organization"
        secondaryLabel="How It Works"
        secondaryHref="/how-it-works"
      />

      <section className="container py-16 md:py-20">
        <div className="max-w-2xl">
          <p className="text-body-md text-ink-soft">
            Investor diligence typically surfaces the same categories of problems — an outdated cap table, missing
            resolutions, financials that don&apos;t reconcile across documents, or a data room that&apos;s
            disorganized enough to slow a reviewer down. Due Diligence Support works through your documentation
            ahead of time, identifies these gaps, and helps you remediate them before an investor&apos;s team starts
            asking questions.
          </p>
          <p className="mt-4 text-body-md text-ink-soft">
            This service prepares you for diligence — it does not conduct it. The investor always performs their own
            independent review; our role is to make sure that review runs on complete, organized, and consistent
            documentation rather than surfacing avoidable problems partway through.
          </p>
        </div>

        <div className="mt-16 max-w-2xl">
          <h2 className="mb-6 font-display text-h1 font-normal text-ink">The Process</h2>
          <Timeline steps={stages} />
        </div>

        <div className="mt-20 max-w-2xl">
          <h2 className="mb-6 font-display text-h1 font-normal text-ink">Frequently Asked</h2>
          <FaqAccordion items={faqs} />
        </div>
      </section>

      <CtaSection
        title="Ready to prepare your data room?"
        description="Apply in minutes. There is no cost, and no obligation until an introduction is made."
        primaryLabel="Apply to Raise Capital"
        primaryHref="/apply/organization"
        secondaryLabel="How It Works"
        secondaryHref="/how-it-works"
      />
    </>
  );
}
