/* =============================================================
   BOUNTY — PODCAST CLIPPING CAMPAIGNS
   Uses the site's own classes plus creator-clipping.css
   (article-hero, definition-card, split-grid, check-list, 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: 'Is this the same as hiring a podcast editing service?', a: "No. An editing service hands you clips you still have to post and distribute yourself. A clipping campaign is the distribution — creators post the clips from their own accounts and you pay based on the verified views they earn." },
  { q: 'Do you need the full episode or just a highlight?', a: 'Either works. A single strong segment is enough source content for a bounty — a full episode gives clippers more moments to choose from.' },
  { q: 'Can this run alongside our existing clip editor or social team?', a: "Yes. A clipping campaign adds distribution on top of whatever content you already have — it doesn't replace an editing workflow, it's what happens after the clips exist." },
  { q: 'How much does a podcast 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 Podcasts</div>
          <h1 className="h1">Podcast clipping <span className="accent-bg">campaigns.</span></h1>
          <p className="lead">
            One episode has dozens of moments in it. Clip them, and creators carry each
            one further than a feed of subscribers ever could.
          </p>
        </div>
      </header>

      <div className="wrap">
        <div className="definition-card">
          <span className="lbl">Quick answer</span>
          <p>
            A <b>podcast clipping campaign</b> turns an episode into short-form clips
            that creators post across TikTok, Reels, and YouTube Shorts from their own
            accounts. It's distribution, not editing — you're not paying for the clips
            to exist, you're paying for the verified views they earn once they're out.
          </p>
        </div>
      </div>

      <section className="section dark">
        <div className="wrap">
          <div className="kicker-row">
            <div>
              <span className="eyebrow"><span className="dotbox" />Editing vs. clipping</span>
              <h2 className="h2">Cutting the clip isn't the <span className="it">hard part.</span></h2>
            </div>
          </div>
          <div style={{ height: 48 }} />
          <div className="split-grid">
            <div>
              <h4>A podcast editing service</h4>
              <ul className="check-list">
                <li><span className="check-mark">&#10003;</span><span>Cuts clips from your episode</span></li>
                <li><span className="check-mark">&#10003;</span><span>Hands them back to you</span></li>
                <li><span className="check-mark">&#10003;</span><span>You post and distribute them yourself</span></li>
              </ul>
            </div>
            <div>
              <h4>A Bounty clipping campaign</h4>
              <ul className="check-list">
                <li><span className="check-mark">&#10003;</span><span>Creators cut clips from your episode</span></li>
                <li><span className="check-mark">&#10003;</span><span>Post them from their own accounts</span></li>
                <li><span className="check-mark">&#10003;</span><span>You pay based on the verified views they earn</span></li>
              </ul>
            </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">One episode, dozens of <span className="it">angles.</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 episode</h3>
              <p>A full episode or a strong segment — whatever has the moments worth cutting.</p>
            </div>
            <div className="step-row">
              <div className="step-row-n">02</div>
              <h3>Clippers find the angles</h3>
              <p>Different clippers pull different moments — a hot take, a story, a punchline — instead of one editor's single cut.</p>
            </div>
            <div className="step-row">
              <div className="step-row-n">03</div>
              <h3>Clips post from real accounts</h3>
              <p>TikTok, Reels, YouTube Shorts — not a podcast clip page nobody follows yet.</p>
            </div>
            <div className="step-row">
              <div className="step-row-n">04</div>
              <h3>You pay per verified view</h3>
              <p>No flat editing invoice. 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">Send an episode. We'll show you the <span className="it">angles.</span></h2>
          <p className="lead">No pitch deck, no commitment — just a 30-minute call about what a 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 />);
