/* =============================================================
   BOUNTY — TIKTOK CLIPPING CAMPAIGNS
   Uses the site's own classes plus creator-clipping.css
   (article-hero, definition-card, compare-grid, steps-list).
   Self-contained.
   ============================================================= */

const PHONE = "+35796441020";
const BOOK_URL = "https://calendly.com/cyrusgrecobusiness/30min";

function Nav() {
  const [scrolled, setScrolled] = React.useState(false);
  React.useEffect(() => {
    const on = () => setScrolled(window.scrollY > 12);
    window.addEventListener("scroll", on, { passive: true });
    on();
    return () => window.removeEventListener("scroll", on);
  }, []);
  return (
    <nav className={`nav${scrolled ? " scrolled" : ""}`}>
      <div className="wrap nav-inner">
        <a href="/" className="brand"><span>Bounty</span></a>
        <div className="nav-links">
          <a href="/#how">How it works</a>
          <a href="/#trusted">Why Bounty</a>
          <a href="/#dashboard">For Brands</a>
        </div>
      </div>
    </nav>
  );
}

function Footer() {
  return (
    <footer className="footer">
      <div className="wrap foot-inner">
        <div className="left">
          <div className="brand"><span>Bounty</span></div>
          <span className="copy">© {new Date().getFullYear()} Bounty</span>
        </div>
        <div className="foot-links">
          <a href="/#how">How it works</a>
          <a href="/#trusted">Why Bounty</a>
          <a href="/#dashboard">For Brands</a>
          <span className="foot-divider">·</span>
          <a href={"tel:" + PHONE} className="foot-contact-link">Text us</a>
        </div>
      </div>
    </footer>
  );
}

function FAQItem({ item, idx, openIdx, setOpenIdx }) {
  const isOpen = openIdx === idx;
  return (
    <div className={`faq-item${isOpen ? ' open' : ''}`}>
      <button className="faq-q" onClick={() => setOpenIdx(isOpen ? null : idx)} aria-expanded={isOpen}>
        <span className="faq-q-text">{item.q}</span>
        <span className="faq-toggle">{isOpen ? '−' : '+'}</span>
      </button>
      <div className="faq-a-wrap">
        <div className="faq-a-inner">
          <p>{item.a}</p>
        </div>
      </div>
    </div>
  );
}

const FAQ_ITEMS = [
  { q: 'Do I need a TikTok account or ads account?', a: "No. Clips post from creators' own accounts, not yours. You don't need an existing TikTok presence to run a campaign." },
  { q: "Does this go against TikTok's guidelines?", a: "No. Creators are posting their own content from their own accounts — it's organic posting, not a policy workaround." },
  { q: 'Why TikTok specifically, instead of just Reels or Shorts?', a: "Every Bounty campaign runs across TikTok, Reels, and YouTube Shorts together — TikTok specifically because its For You Page surfaces content to people who've never seen your brand before, not just to a creator's existing followers." },
  { q: 'How much does a TikTok clipping campaign cost?', a: 'Same as any Bounty campaign: typically starts at $5,000, with smaller pilots from $1,000 possible. You pay per verified view.' },
];

function Page() {
  const [openIdx, setOpenIdx] = React.useState(null);

  return (
    <React.Fragment>
      <Nav />

      <header className="article-hero">
        <div className="wrap">
          <div className="eyebrow"><span className="dotbox" />For Brands</div>
          <h1 className="h1">TikTok clipping <span className="accent-bg">campaigns.</span></h1>
          <p className="lead">
            Creators cut your content into clips built for the For You Page — reaching
            people who've never seen your brand, not just an existing following.
          </p>
        </div>
      </header>

      <div className="wrap">
        <div className="definition-card">
          <span className="lbl">Quick answer</span>
          <p>
            A <b>TikTok clipping campaign</b> turns your existing content into short-form
            clips that creators post from their own accounts, built to earn algorithmic
            distribution on the For You Page rather than relying on a following you'd
            have to buy or build first. Every Bounty campaign runs across TikTok, Reels,
            and YouTube Shorts together — you pay per verified view.
          </p>
        </div>
      </div>

      <section className="section dark">
        <div className="wrap">
          <div className="kicker-row">
            <div>
              <span className="eyebrow"><span className="dotbox" />Why TikTok specifically</span>
              <h2 className="h2">Followers aren't the <span className="it">unlock.</span></h2>
            </div>
          </div>
          <div style={{ height: 56 }} />
          <div className="compare-grid">
            <div className="compare-item">
              <h4>The For You Page doesn't check follower count</h4>
              <p>Distribution is driven by engagement, not who's already following the account. A brand-new clipper account can still reach a real audience if the clip holds attention.</p>
            </div>
            <div className="compare-item">
              <h4>Sound and format travel</h4>
              <p>Clippers already know how to work with trending audio and native formats — the stuff a brand account posting on its own usually gets wrong.</p>
            </div>
            <div className="compare-item">
              <h4>Volume, not a single bet</h4>
              <p>One clip might not land. Dozens of clippers cutting the same source content, each finding their own angle, means more shots at the format that actually works.</p>
            </div>
          </div>
        </div>
      </section>

      <section className="section" id="how">
        <div className="wrap">
          <div className="kicker-row">
            <div>
              <span className="eyebrow"><span className="dotbox" />How it works</span>
              <h2 className="h2">Same model, built for <span className="it">TikTok.</span></h2>
            </div>
          </div>
          <div style={{ height: 56 }} />
          <div className="steps-list">
            <div className="step-row">
              <div className="step-row-n">01</div>
              <h3>Send the content</h3>
              <p>A podcast, a keynote, founder footage — whatever already exists.</p>
            </div>
            <div className="step-row">
              <div className="step-row-n">02</div>
              <h3>Clippers cut for TikTok</h3>
              <p>Creators turn it into TikTok-native clips, alongside versions for Reels and Shorts.</p>
            </div>
            <div className="step-row">
              <div className="step-row-n">03</div>
              <h3>Views get verified</h3>
              <p>Every submission is reviewed before a cent moves.</p>
            </div>
            <div className="step-row">
              <div className="step-row-n">04</div>
              <h3>You pay per verified view</h3>
              <p>No flat rate for posting. The budget spends exactly as far as the clips actually reach.</p>
            </div>
          </div>
        </div>
      </section>

      <section className="section tight" id="faq">
        <div className="wrap">
          <div className="kicker-row">
            <div>
              <span className="eyebrow"><span className="dotbox" />FAQ</span>
              <h2 className="h2">Questions, <span className="it">answered.</span></h2>
            </div>
          </div>
          <div className="faq-list">
            {FAQ_ITEMS.map((it, i) => (
              <FAQItem key={i} item={it} idx={i} openIdx={openIdx} setOpenIdx={setOpenIdx} />
            ))}
          </div>
        </div>
      </section>

      <section className="section">
        <div className="wrap">
          <div className="eyebrow"><span className="dotbox" />Next step</div>
          <h2 className="h2">See it built for your <span className="it">content.</span></h2>
          <p className="lead">No pitch deck, no commitment — just a 30-minute call about what a TikTok-first campaign would look like.</p>
          <div style={{ height: 8 }} />
          <a className="btn btn-primary btn-lg" href={BOOK_URL} target="_blank" rel="noreferrer">
            <span className="dot" />Book a call<span className="arrow">&rarr;</span>
          </a>
        </div>
      </section>

      <Footer />
    </React.Fragment>
  );
}

ReactDOM.createRoot(document.getElementById("root")).render(<Page />);
