// Hero + audience toggle + product peek
const HEADLINES = {
company: { default: "Hire closers who actually close.", italic: "close." },
rep: { default: "Stop chasing leads. Start closing deals.", italic: "closing" },
};
const SUB = {
company: "Clozer connects you with a pre-verified network of commission-only sales reps. Pay once. No retainers. No recruiters. Hire people who only win when you do.",
rep: "A curated marketplace of high-ticket, remote, commission-only roles. Reach 500+ vetted companies hiring closers like you. No applications that go nowhere."
};
const CTA = {
company: { primary: "Post a role", secondary: "See sample reps" },
rep: { primary: "Create your profile", secondary: "Browse open roles" },
};
const TICKERS = {
company: [
{ n: "250+", l: "verified closers" },
{ n: "$0", l: "up-front to hire" },
{ n: "5.1 days", l: "avg. to first interview" },
{ n: "96%", l: "company satisfaction" },
],
rep: [
{ n: "500+", l: "companies hiring now" },
{ n: "$82k", l: "avg. commission earned" },
{ n: "90 days",l: "listing stays active" },
{ n: "$0", l: "recurring fees, ever" },
],
};
function useIsMobile(bp){ bp=bp||768; const [m,setM]=React.useState(window.innerWidth<=bp); React.useEffect(()=>{const h=()=>setM(window.innerWidth<=bp);window.addEventListener("resize",h);return()=>window.removeEventListener("resize",h)},[bp]);return m;}
function Hero({ audience, setAudience, headline }){
const isMobile = useIsMobile();
const h = headline || HEADLINES[audience].default;
const highlight = (text) => {
const words = text.split(" ");
return words.map((w, i) => {
if (i === words.length - 1) return {w};
return {w} ;
});
};
return (
{SUB[audience]}{highlight(h)}