function CcCta({ size = "lg", light, label = "Start Free", center }) {
  return <div className="cd-cta" style={center ? { justifyContent: "center" } : undefined}><Button variant="primary" size={size} arrow href={CH.APP} target="_blank" rel="noopener noreferrer" style={light ? { background: "#fff", color: "var(--accent-primary)" } : undefined}>{label}</Button></div>;
}

function CCHero() {
  return (
    <section id="hero" className="cd-hero" data-screen-label="Hero">
      <div className="hero-lines"></div>
      <div className="wrap cd-hero-g">
        <div className="cd-hero-c">
          <span className="eb rv"><i></i>Capital Connect</span>
          <h1 className="rv" style={{ "--d": "60ms" }}>Share Your Round. Let Investors <span className="hl">Raise Their Hand First.</span></h1>
          <p className="lead rv" style={{ "--d": "120ms" }}>Capital Connect puts your raise in front of investors inside Capital Hunt. They see your details anonymized, signal interest with one click, and only then does a chat open between you — with scheduling built in. Every conversation starts with an investor who is already interested.</p>
          <div className="rv" style={{ "--d": "180ms", alignSelf: "stretch" }}><CcCta size="xl" /><p className="cd-note">Free for startups, up to 5 investor connections a month. No card needed.</p></div>
        </div>
        <HeroOrbit />
      </div>
    </section>
  );
}

function Problem() {
  const pts = [["Hand", "Every investor you speak with has already said they're interested."], ["Target", "Your round reaches investors whose stage, sector and cheque size fit."], ["ShieldCheck", "Your sensitive numbers stay private until you choose to share them."], ["CalendarCheck", "Chat, book the call and track every conversation in one place."]];
  const flow = [["Hand", "Interest comes first."], ["MessagesSquare", "The conversation follows."], ["KanbanSquare", "Everything stays in one place."]];
  return (
    <section id="problem" className="cd-sec" data-screen-label="How we help"><div className="wrap">
      <div className="cc-prob">
        <SecHead align="l" eyebrow="How We Help" title="Speak With 5–10 Warm and Interested Investors Every Month" lead="Capital Connect matches your round with investors who fit what you're building. They review it, raise their hand, and you start the conversation with people who already want to talk." />
        <ul className="cc-pts">{pts.map(([ic, t], i) => <li key={t} className="rv" style={{ "--d": i * 70 + "ms" }}><div className="cc-pt"><span className="ic" aria-hidden="true"><Icon name={ic} size={18} /></span>{t}</div></li>)}</ul>
      </div>
      <div className="cc-flow navy dk rv">
        <h3>Capital Connect fixes the order of operations.</h3>
        <div className="cc-nodes">{flow.map(([ic, t]) => <div key={t} className="cc-node"><div className="top" aria-hidden="true"><span className="ic"><Icon name={ic} size={20} /></span><i className="ln"></i></div><span className="t">{t}</span></div>)}</div>
      </div>
    </div></section>
  );
}

function CcSteps({ items }) {
  return <div className="cc-steps">{items.map(([t, d, Art], i) => <div key={t} className="rv" style={{ "--d": i * 70 + "ms" }}><article className="cc-step"><div className="cc-sart" aria-hidden="true"><Art /></div><div className="tx"><span className="num">STEP 0{i + 1}</span><h3>{t}</h3><p>{d}</p></div></article></div>)}</div>;
}
function Under({ text, label }) {
  return <div className="cc-under rv"><p>{text}</p>{label && <CcCta label={label} center />}</div>;
}

function ForStartups() {
  const steps = [
    ["Connect your data room, fill the form, or both", "Link your existing data room and answer a short onboarding form — stage, round size, sector, traction, what you're raising. This becomes your profile.", ArtOnboard],
    ["We anonymize the sensitive parts", "Investors see your stage, sector, geography and round size up front. Your name, your metrics and anything you mark private stay masked until you choose to reveal them.", ArtAnon],
    ["Share with investors", "Your anonymized round goes in front of relevant investors on the platform. Every conversation starts with their interest.", ArtShare],
    ["Talk when they raise their hand", "When an investor clicks interested, a chat opens between you. Book the call from inside the chat and track every conversation in your pipeline.", ArtRaise]
  ];
  return (
    <section id="for-startups" className="cd-sec" data-screen-label="How it works, startups"><div className="wrap">
      <SecHead eyebrow="For Startups" title="Share Once. Talk Only to Investors Who Want In." lead="Four steps from signup to a live conversation." />
      <CcSteps items={steps} />
      <Under text="You stay in control of your data. Investors stay in control of their inbox. The platform handles the introduction." label="Start Free" />
    </div></section>
  );
}

function ForInvestors() {
  const steps = [
    ["Browse rounds that match your thesis", "Filter by stage, sector, geography and cheque size. Every round shows up anonymized first — enough to judge fit, nothing that identifies the company.", ArtBrowse],
    ["Raise your hand with one click", "See something you'd back? Hit interested. That single click is the only signal a founder ever gets from you, and it's only on deals you actually chose.", Click],
    ["A chat opens", "The moment you opt in, a direct chat with the founder opens and the full details unlock. Schedule the call without leaving the thread.", ArtUnlock],
    ["Track it in your pipeline", "Keep every founder conversation in one simple view, from first interest to decision.", ArtPipe]
  ];
  return (
    <section id="for-investors" className="cd-sec cc-panel" data-screen-label="How it works, investors"><div className="wrap">
      <SecHead eyebrow="For Investors" title="See Deals Anonymized. Opt In With One Click." lead="You decide who reaches you. Nothing lands in your inbox until you ask for it." />
      <CcSteps items={steps} />
      <Under text="Founders can share with you, but you opt in before any connection or chat happens. You are always the one who decides." label="Browse as an Investor" />
    </div></section>
  );
}

function CCFeatures() {
  const feats = [
    ["Anonymized by default", "Investors see your stage, sector, geography and round size. Your identity and your sensitive numbers stay masked until interest is real and you choose to reveal them. Your data room never leaks to someone just browsing.", FeatVis],
    ["One-click interest", "Investors signal with a single click, only on deals they picked. No forms, no intro emails, no noise. For founders, every signal that arrives is a real one.", FeatClick],
    ["Built-in chat and scheduling", "When an investor opts in, a chat opens between you. Scheduling is built right in — connect Google Calendar, Calendly and the rest, and book the call without leaving the conversation.", FeatChat],
    ["A pipeline, not a CRM", "A light, on-platform pipeline tracks every conversation from first interest to decision. Simple enough to actually use, so nothing slips. No heavy CRM to set up or maintain.", FeatPipe]
  ];
  return (
    <section id="features" className="cd-sec" data-screen-label="Features"><div className="wrap">
      <SecHead eyebrow="Features" title="Everything the Connection Needs. Nothing It Doesn't." lead="Four things Capital Connect does, and does well." />
      <div className="cc-feats">{feats.map(([t, d, Art], i) => <div key={t} className="rv" style={{ "--d": (i % 2) * 80 + "ms" }}><article className="cc-feat"><div className="cc-fart" aria-hidden="true"><Art /></div><div className="tx"><h3>{t}</h3><p>{d}</p></div></article></div>)}</div>
    </div></section>
  );
}

function WhoFor() {
  const cards = [
    ["Founders raising a round", "Pre-seed through growth. Share once, protect your data, and spend your time only on investors who have already said they're interested.", WhoFounders],
    ["Angels and VCs", "See a steady flow of deals that fit your thesis, anonymized up front. Opt in to the ones you want, and keep your inbox yours.", WhoAngels],
    ["Family offices and funds", "Source privately. Review anonymized rounds on your own terms and open a direct line only when something is worth your time.", WhoOffices]
  ];
  return (
    <section id="who" className="cd-sec" data-screen-label="Who it's for"><div className="wrap">
      <SecHead eyebrow="Who It's For" title="Built for Both Sides of the Round" />
      <div className="cc-who">{cards.map(([t, d, Art], i) => <div key={t} className="rv" style={{ "--d": i * 70 + "ms" }}><article className="cc-step"><div className="cc-sart" aria-hidden="true"><Art /></div><div className="tx"><h3>{t}</h3><p>{d}</p></div></article></div>)}</div>
    </div></section>
  );
}

function Why() {
  const cols = [
    ["ShieldCheck", "It protects your data", "Nothing sensitive is public. Investors see enough to judge fit and no more. Your identity, your metrics and your data room stay masked until interest is real and you choose to reveal them. You decide what unlocks and when.", WhyData],
    ["BellOff", "It protects the investor", "Investors browse on their own terms and opt in with one click, only on deals they chose. Founders can share, but an investor opts in before any chat opens. They are always in control of who reaches them.", WhyInvestor]
  ];
  return (
    <section id="why" className="cd-sec" data-screen-label="Why it's different"><div className="wrap">
      <SecHead eyebrow="Why Capital Connect" title="It Protects Both Sides" lead="Most tools make the founder expose everything to get a reply, and make the investor wade through everything to find a fit. Capital Connect flips that." />
      <div className="cc-why rv">{cols.map(([ic, t, d, Art]) => <div key={t} className="cc-wcol"><span className="cc-ib" aria-hidden="true"><Icon name={ic} size={20} /></span><h3>{t}</h3><p>{d}</p><div className="cc-wart" aria-hidden="true"><Art /></div></div>)}</div>
      <Under text="Interest first, conversation second. That single rule is what makes the whole thing work." label="Start Free" />
    </div></section>
  );
}

function CCPricing() {
  const free = ["Up to 5 investor connections a month", "Anonymized sharing, one-click interest, chat and scheduling", "The on-platform pipeline", "No card required"];
  const up = ["More investor connections beyond the free 5 a month", "Everything on the Free plan"];
  const terms = [["Quarterly", "$97", "$291 billed every quarter", null], ["Semi-annual", "$82.45", "$494.70 billed every 6 months", "15% off"], ["Annual", "$67.90", "$814.80 billed every year", "30% off"]];
  const Li = ({ x }) => <li><Icon name="Check" size={15} strokeWidth={2.5} />{x}</li>;
  return (
    <section id="pricing" className="cd-sec" data-screen-label="Pricing"><div className="wrap">
      <SecHead eyebrow="Pricing" title="Free to Start. Flat $97 When You Grow." lead="Startups join free and get up to 5 investor connections every month. Need more? Upgrade to a flat $97 a month. We don't bill monthly — you pick a longer term and save, so the effective rate drops the longer you commit." />
      <div className="cc-tiers">
        <div className="rv"><article className="cc-tier free"><h3>Free</h3><div className="cc-price">$0<small>forever</small></div><p className="cc-bill">Free for startups.</p><ul>{free.map(x => <Li key={x} x={x} />)}</ul></article></div>
        {terms.map(([t, p, b, off], i) => <div key={t} className="rv" style={{ "--d": (i + 1) * 70 + "ms" }}><article className={"cc-tier" + (i === 2 ? " pop" : "")}>{off && <span className="cc-off">{off}</span>}<h3>{t}</h3><div className="cc-price">{p}<small>/ month</small></div><p className="cc-bill">{b}</p><ul>{up.map(x => <Li key={x} x={x} />)}</ul></article></div>)}
      </div>
      <p className="cc-unlock rv"><Icon name="Info" size={16} /><span><b>What the upgrade unlocks:</b> more investor connections beyond the free 5 a month. Everything else — anonymized sharing, one-click interest, chat, scheduling and the pipeline — is included on every plan, free one included.</span></p>
      <Under text="No monthly billing. Pick quarterly, semi-annual or annual. The longer the term, the lower the effective monthly rate." label="Start Free" />
    </div></section>
  );
}

function CCFaq() {
  const h = Math.ceil(CC_FAQ.length / 2);
  return (
    <section id="faq" className="cd-sec" data-screen-label="FAQ"><div className="wrap">
      <SecHead eyebrow="FAQ" title="Questions About Capital Connect" />
      <div className="faq2">
        <div className="rv"><FAQAccordion items={CC_FAQ.slice(0, h)} defaultOpen={0} /></div>
        <div className="rv" style={{ "--d": "100ms" }}><FAQAccordion items={CC_FAQ.slice(h)} defaultOpen={-1} /></div>
      </div>
    </div></section>
  );
}

function CCFinal() {
  return (
    <section id="get-started" className="cd-final navy dk" data-screen-label="Final call to action">
      <div className="wrap cd-final-in">
        <span className="eb rv"><i></i>Get Started</span>
        <h2 className="h2 rv">Put Your Round in Front of the Right Investors</h2>
        <p className="lead rv">Share once. Investors come to you, one click at a time. Start free, with up to 5 connections a month.</p>
        <ul className="cd-points rv">{["Free for startups, up to 5 connections a month", "Anonymized until interest is real", "Chat and scheduling built in, investors opt in first"].map(p => <li key={p}><Icon name="Check" size={16} />{p}</li>)}</ul>
        <div className="rv" style={{ alignSelf: "stretch" }}><CcCta size="xl" light /></div>
        <a className="cc-alt rv" href={CH.APP} target="_blank" rel="noopener noreferrer">Browse as an Investor</a>
      </div>
    </section>
  );
}

function CapitalConnect() {
  return <div className="cd cc"><CCHero /><Problem /><ForStartups /><ForInvestors /><CCFeatures /><WhoFor /><Why /><CCPricing /><CCFaq /><CCFinal /></div>;
}

mountPage(<CapitalConnect />, { current: "Capital Connect" });
