{"id":587,"date":"2026-11-10T12:02:38","date_gmt":"2026-11-10T12:02:38","guid":{"rendered":"https:\/\/ongroundmedia.com\/?page_id=587"},"modified":"2026-11-12T12:12:10","modified_gmt":"2026-11-12T12:12:10","slug":"ad-creative-copy-targeting-tools","status":"publish","type":"page","link":"https:\/\/ongroundmedia.com\/?page_id=587","title":{"rendered":"Ad Creative, Copy &amp; Targeting Tools"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"587\" class=\"elementor elementor-587\">\n\t\t\t\t<div class=\"elementor-element elementor-element-723fd8f e-con e-atomic-element e-flexbox-base e-default-div e-7f203ca \" data-id=\"723fd8f\" data-element_type=\"e-flexbox\" data-e-type=\"e-flexbox\" data-interaction-id=\"723fd8f\">\n    \t\t<div class=\"elementor-element elementor-element-3fdc53a elementor-widget elementor-widget-html\" data-id=\"3fdc53a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n<meta charset=\"utf-8\">\r\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n<title>Free Ad Copy & Targeting Tools | Meta & Google Ads<\/title>\r\n<meta name=\"description\" content=\"Generate ad copy, hooks and UGC scripts, plan audiences and keywords, and set up campaigns. Free tools for Meta and Google Ads.\">\r\n<meta name=\"robots\" content=\"index, follow, max-image-preview:large\">\r\n<meta property=\"og:type\" content=\"website\">\r\n<meta property=\"og:title\" content=\"Free Ad Copy & Targeting Tools | Meta & Google Ads\">\r\n<meta property=\"og:description\" content=\"Generate ad copy, hooks and UGC scripts, plan audiences and keywords, and set up campaigns. Free tools for Meta and Google Ads.\">\r\n<meta name=\"twitter:card\" content=\"summary\">\r\n<meta name=\"theme-color\" content=\"#0F172A\">\r\n<link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\">\r\n<link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin>\r\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700;800&display=swap\" rel=\"stylesheet\">\r\n<style>\r\n:root{\r\n  --indigo:#4F46E5; --indigo-d:#4338CA; --navy:#0F172A; --orange:#FF6B35; --orange-d:#E85A24;\r\n  --green:#10B981; --bg:#F8FAFC; --card:#FFFFFF; --text:#1E293B; --muted:#64748B; --line:#E2E8F0;\r\n  --soft-indigo:#EEF2FF; --radius:16px;\r\n  --shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.06);\r\n}\r\n*{box-sizing:border-box}\r\nhtml{scroll-behavior:smooth}\r\nbody{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif;line-height:1.55;-webkit-font-smoothing:antialiased}\r\na{color:var(--indigo);text-decoration:none}\r\na:hover{text-decoration:underline}\r\n.wrap{max-width:1180px;margin:0 auto;padding:0 20px}\r\n\r\n\/* top bar *\/\r\n.topbar{background:var(--navy);color:#fff}\r\n.topbar .wrap{display:flex;align-items:center;justify-content:space-between;height:64px;gap:16px}\r\n.brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:700;letter-spacing:-.01em}\r\n.brand:hover{text-decoration:none}\r\n.brand svg{width:34px;height:34px;flex:none}\r\n.brand small{display:block;font-weight:500;font-size:11px;color:#94A3B8;letter-spacing:.04em;text-transform:uppercase;line-height:1}\r\n.topnav{display:flex;gap:6px;align-items:center;flex-wrap:wrap}\r\n.topnav a{color:#CBD5E1;font-size:14px;font-weight:500;padding:8px 12px;border-radius:10px}\r\n.topnav a:hover{background:rgba(255,255,255,.08);color:#fff;text-decoration:none}\r\n.topnav a.on{background:rgba(255,255,255,.12);color:#fff}\r\n\r\n\/* hero *\/\r\n.hero{background:radial-gradient(900px 300px at 85% -20%,rgba(255,107,53,.35),transparent 60%),radial-gradient(700px 300px at 0% 0%,rgba(79,70,229,.55),transparent 60%),var(--navy);color:#fff;padding:44px 0 64px}\r\n.crumbs{font-size:13px;color:#94A3B8;margin-bottom:14px}\r\n.crumbs a{color:#CBD5E1}\r\n.pill{display:inline-flex;align-items:center;gap:6px;background:rgba(16,185,129,.15);color:#6EE7B7;border:1px solid rgba(16,185,129,.35);font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;margin-bottom:14px}\r\n.hero h1{margin:0 0 10px;font-size:clamp(28px,4.4vw,44px);line-height:1.1;letter-spacing:-.025em;font-weight:800}\r\n.hero p{margin:0;max-width:680px;color:#CBD5E1;font-size:clamp(15px,1.6vw,18px)}\r\n.main{margin-top:-36px;padding-bottom:56px}\r\n\r\n\/* cards & layout *\/\r\n.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}\r\n.card h2{font-size:17px;margin:0 0 14px;letter-spacing:-.01em}\r\n.layout{display:grid;grid-template-columns:minmax(300px,400px) 1fr;gap:20px;align-items:start}\r\n.stack{display:grid;gap:16px}\r\n.sticky{position:sticky;top:16px}\r\n.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}\r\n.row3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}\r\n@media(max-width:900px){.layout{grid-template-columns:1fr}.sticky{position:static}}\r\n@media(max-width:520px){.row{grid-template-columns:1fr}.card{padding:16px}}\r\n\r\n\/* form controls *\/\r\nlabel,.lbl{display:block;font-size:13px;font-weight:600;color:var(--text);margin:0 0 6px}\r\n.field{margin-bottom:14px}\r\n.field:last-child{margin-bottom:0}\r\ninput[type=text],input[type=url],input[type=number],input[type=tel],input[type=password],input[type=search],select,textarea{\r\n  width:100%;font:inherit;font-size:15px;color:var(--text);background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:11px 13px;transition:border-color .15s, box-shadow .15s}\r\ntextarea{resize:vertical;min-height:96px}\r\ninput:focus,select:focus,textarea:focus{outline:none;border-color:var(--indigo);box-shadow:0 0 0 4px rgba(79,70,229,.14)}\r\ninput[type=color]{width:100%;height:44px;border:1.5px solid var(--line);border-radius:12px;padding:3px;background:#fff;cursor:pointer}\r\ninput[type=range]{width:100%;accent-color:var(--indigo)}\r\n.hint{font-size:12.5px;color:var(--muted);margin-top:6px}\r\n.val{float:right;font-weight:500;color:var(--muted)}\r\n.check{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;cursor:pointer;margin:0}\r\n.check input{width:18px;height:18px;accent-color:var(--indigo)}\r\n\r\n\/* buttons *\/\r\n.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-weight:600;font-size:14.5px;border:0;border-radius:12px;padding:11px 18px;cursor:pointer;transition:transform .08s, background .15s, box-shadow .15s;background:var(--indigo);color:#fff}\r\n.btn:hover{background:var(--indigo-d);text-decoration:none}\r\n.btn:active{transform:translateY(1px)}\r\n.btn.orange{background:var(--orange);box-shadow:0 6px 16px rgba(255,107,53,.3)}\r\n.btn.orange:hover{background:var(--orange-d)}\r\n.btn.ghost{background:#fff;color:var(--text);border:1.5px solid var(--line)}\r\n.btn.ghost:hover{background:var(--soft-indigo);border-color:#C7D2FE}\r\n.btn.sm{padding:7px 12px;font-size:13px;border-radius:10px}\r\n.btn:disabled{opacity:.5;cursor:not-allowed}\r\n.btns{display:flex;gap:10px;flex-wrap:wrap}\r\n\r\n\/* tabs \/ chips *\/\r\n.tabs{display:flex;gap:6px;flex-wrap:wrap}\r\n.tab{font:inherit;font-size:13.5px;font-weight:600;color:var(--muted);background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:7px 14px;cursor:pointer;transition:all .15s}\r\n.tab:hover{color:var(--indigo);border-color:#C7D2FE}\r\n.tab.on{background:var(--indigo);border-color:var(--indigo);color:#fff}\r\n.swatches{display:flex;gap:8px;flex-wrap:wrap}\r\n.sw{width:36px;height:36px;border-radius:10px;border:2px solid #fff;box-shadow:0 0 0 1.5px var(--line);cursor:pointer;transition:transform .1s}\r\n.sw:hover{transform:scale(1.08)}\r\n.sw.on{box-shadow:0 0 0 2.5px var(--indigo)}\r\n\r\n\/* SEO content *\/\r\n.seo{margin-top:28px;display:grid;grid-template-columns:1fr 1fr;gap:20px}\r\n@media(max-width:800px){.seo{grid-template-columns:1fr}}\r\n.seo ol{margin:0;padding-left:20px;display:grid;gap:8px;font-size:14.5px}\r\ndetails{border-bottom:1px solid var(--line);padding:10px 0}\r\ndetails:last-child{border:0}\r\nsummary{cursor:pointer;font-weight:600;font-size:14.5px}\r\ndetails p{margin:8px 0 0;font-size:14px;color:var(--muted)}\r\n\r\nfooter{border-top:1px solid var(--line);padding:22px 0;color:var(--muted);font-size:13.5px;background:#fff}\r\nfooter .wrap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}\r\n\r\n.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(20px);background:var(--navy);color:#fff;padding:11px 18px;border-radius:12px;font-size:14px;font-weight:500;opacity:0;pointer-events:none;transition:all .25s;z-index:99;box-shadow:0 10px 30px rgba(15,23,42,.3)}\r\n.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}\r\n.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}\r\n:focus-visible{outline:3px solid rgba(79,70,229,.45);outline-offset:2px}\r\n\r\n.topbar .wrap{height:60px}\r\n.switch{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.95);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}\r\n.switch>.wrap{display:flex;align-items:center;gap:10px;padding:9px 20px}\r\n.sp{flex:none;display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:14px;font-weight:600;color:var(--text);padding:8px 14px;border-radius:999px;white-space:nowrap;transition:all .15s;border:1.5px solid var(--line);background:#fff;cursor:pointer}\r\n.sp svg{width:17px;height:17px}\r\n.sp:hover{color:var(--indigo);background:var(--soft-indigo);text-decoration:none;border-color:#C7D2FE}\r\n.sp.on{background:var(--indigo);color:#fff;border-color:var(--indigo)}\r\n.cur{font-size:14px;font-weight:700;color:var(--indigo);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}\r\n.cur::before{content:\"\/\";color:var(--line);margin-right:10px;font-weight:400}\r\n.grow{flex:1}\r\n.sbox{position:relative;flex:1;max-width:380px;margin-left:auto}\r\n.sbox svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--muted);pointer-events:none}\r\n.sbox input{padding:9px 12px 9px 38px;border-radius:999px;font-size:14px;background:var(--bg)}\r\n.sres{position:absolute;left:0;right:0;top:calc(100% + 8px);background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 16px 40px rgba(15,23,42,.16);padding:6px;max-height:380px;overflow:auto;z-index:70;min-width:300px}\r\n.sres[hidden]{display:none}\r\n.sres a{display:flex;gap:10px;align-items:center;padding:9px 10px;border-radius:10px;color:var(--text)}\r\n.sres a:hover,.sres a.sel{background:var(--soft-indigo);text-decoration:none}\r\n.sres small{display:block;color:var(--muted);font-size:12.5px;line-height:1.3}\r\n.sres b{font-size:14px}\r\n.sres .none{padding:12px;color:var(--muted);font-size:14px}\r\n.mi{flex:none;width:30px;height:30px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;color:var(--c);background:color-mix(in srgb,var(--c) 12%,#fff)}\r\n.mi svg{width:16px;height:16px;position:static;transform:none}\r\n.mega{position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 24px 50px rgba(15,23,42,.14);z-index:65}\r\n.mega[hidden]{display:none}\r\n.mgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px 32px;padding-top:20px;padding-bottom:22px}\r\n.mcol h4{margin:0 0 8px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}\r\n.mcol a{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:10px;color:var(--text);font-size:14.5px;font-weight:500}\r\n.mcol a:hover{background:var(--soft-indigo);text-decoration:none;color:var(--indigo)}\r\n.panel[hidden]{display:none!important}\r\n.sticky{top:76px}\r\n.hero.compact{padding:26px 0 56px}\r\n.hero.compact h1{font-size:clamp(26px,3.6vw,38px)}\r\n.hero.compact p{font-size:clamp(14.5px,1.5vw,17px)}\r\n.hsearch{position:relative;max-width:560px;margin-top:24px}\r\n.hsearch svg{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:var(--muted);pointer-events:none}\r\n.hsearch input{padding:15px 16px 15px 46px;border-radius:14px;border:0;font-size:16px;box-shadow:0 10px 30px rgba(0,0,0,.25)}\r\n.hgroup{margin-bottom:30px}\r\n.hgroup[hidden]{display:none}\r\n.ghead{margin-bottom:14px}\r\n.ghead h2{margin:0;font-size:22px;letter-spacing:-.02em}\r\n.ghead p{margin:2px 0 0;color:var(--muted);font-size:14.5px}\r\n.hub{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px}\r\n.tool{display:block;position:relative;background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow);color:var(--text);transition:transform .18s,border-color .18s,box-shadow .18s}\r\n.tool:hover{text-decoration:none;transform:translateY(-4px);border-color:#C7D2FE;box-shadow:0 14px 34px rgba(79,70,229,.14)}\r\n.tool[hidden]{display:none}\r\n.tool .ic{width:50px;height:50px;border-radius:14px;display:flex;align-items:center;justify-content:center;color:var(--c);background:color-mix(in srgb,var(--c) 12%,#fff);margin-bottom:14px}\r\n.tool .ic svg{width:25px;height:25px}\r\n.tool .tg{position:absolute;top:20px;right:20px}\r\n.tg{font-size:11.5px;font-weight:700;color:var(--muted);background:var(--bg);border:1px solid var(--line);padding:3px 10px;border-radius:999px;white-space:nowrap}\r\n.tool h3{font-size:17px;margin:0 0 6px;letter-spacing:-.01em}\r\n.tool p{margin:0 0 12px;color:var(--muted);font-size:14.5px}\r\n.tool .go{font-weight:700;color:var(--indigo);font-size:14px}\r\n.tasks{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:10px}\r\n.task{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border:1.5px solid var(--line);border-radius:12px;color:var(--text);font-size:14.5px;font-weight:500;transition:all .15s}\r\n.task b{color:var(--indigo)}\r\n.task:hover{text-decoration:none;border-color:#C7D2FE;background:var(--soft-indigo)}\r\n.pn{display:flex;justify-content:space-between;gap:12px;margin-top:26px}\r\n.pn a{display:inline-flex;gap:8px;padding:11px 16px;border:1.5px solid var(--line);background:#fff;border-radius:12px;color:var(--text);font-weight:600;font-size:14px;max-width:48%}\r\n.pn a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\r\n.pn a:hover{text-decoration:none;border-color:#C7D2FE;background:var(--soft-indigo)}\r\n.more{margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}\r\n.more h2{font-size:18px;margin:0 0 14px}\r\n.minis{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}\r\n.mini{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;color:var(--text);transition:all .15s}\r\n.mini:hover{text-decoration:none;border-color:#C7D2FE;transform:translateY(-2px);box-shadow:var(--shadow)}\r\n.mini .ic{flex:none;width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--c);background:color-mix(in srgb,var(--c) 12%,#fff)}\r\n.mini .ic svg{width:20px;height:20px}\r\n.mini b{display:block;font-size:14px;line-height:1.25}\r\n.mini span{font-size:12.5px;color:var(--muted);line-height:1.3;display:block}\r\n\r\n\/* tool UI *\/\r\n.layout{grid-template-columns:minmax(300px,410px) minmax(0,1fr)}\r\n.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}\r\n.out{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:16px;align-content:start}\r\n.chk{display:flex;flex-wrap:wrap;gap:8px}\r\n.chip{display:inline-flex;margin:0;cursor:pointer}\r\n.chip input{position:absolute;opacity:0;pointer-events:none}\r\n.chip span{font-size:13px;font-weight:600;padding:6px 12px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--muted);transition:all .15s}\r\n.chip input:checked+span{background:var(--indigo);border-color:var(--indigo);color:#fff}\r\n.chip input:focus-visible+span{outline:3px solid rgba(79,70,229,.45);outline-offset:2px}\r\n.field[hidden]{display:none}\r\n.empty{text-align:center;background:#fff;border:1.5px dashed var(--line);border-radius:16px;padding:40px 20px}\r\n.empty .eic{width:52px;height:52px;margin:0 auto 10px;border-radius:14px;background:var(--soft-indigo);color:var(--indigo);display:flex;align-items:center;justify-content:center}\r\n.empty .eic svg{width:26px;height:26px}\r\n.empty p{color:var(--muted);margin:4px 0 14px;font-size:14.5px}\r\n.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}\r\n.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;box-shadow:var(--shadow)}\r\n.stat span{display:block;font-size:12.5px;color:var(--muted);font-weight:600}\r\n.stat b{display:block;font-size:22px;letter-spacing:-.02em;margin-top:2px}\r\n.stat em{display:block;font-style:normal;font-size:12.5px;color:var(--muted);margin-top:2px}\r\n.callout{border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.5;background:var(--soft-indigo);border:1px solid #C7D2FE;color:#312E81}\r\n.callout.warn{background:#FFFBEB;border-color:#FDE68A;color:#78350F}\r\n.rsec,.rcard,.tw,.doc{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}\r\n.rsec{padding:16px 18px}\r\n.rh{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}\r\n.rh h3,.rtitle{margin:0;font-size:16px;letter-spacing:-.01em}\r\n.rtitle{margin-bottom:4px}\r\n.rnote{margin:-4px 0 10px;font-size:13px;color:var(--muted)}\r\n.ritems{list-style:none;margin:0;padding:0}\r\n.ri{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 0;border-top:1px solid var(--line)}\r\n.ri:first-child{border-top:0}\r\n.rt{font-size:14.5px;line-height:1.5;white-space:pre-wrap;word-break:break-word;min-width:0}\r\n.rt small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}\r\n.rm{display:flex;align-items:center;gap:8px;flex:none}\r\n.cp{font:inherit;font-size:12.5px;font-weight:700;color:var(--indigo);background:var(--soft-indigo);border:0;border-radius:8px;padding:5px 10px;cursor:pointer;white-space:nowrap;transition:background .15s}\r\n.cp:hover{background:#E0E7FF}\r\n.cp:active{transform:translateY(1px)}\r\n.bdg{font-size:11.5px;font-weight:700;padding:3px 8px;border-radius:999px;background:var(--bg);color:var(--muted);border:1px solid var(--line);white-space:nowrap}\r\n.bdg.ok{background:#ECFDF5;color:#047857;border-color:#A7F3D0}\r\n.bdg.warn{background:#FFFBEB;color:#B45309;border-color:#FDE68A}\r\n.bdg.bad{background:#FEF2F2;color:#B91C1C;border-color:#FECACA}\r\n.rcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,310px),1fr));gap:14px}\r\n.rcard{padding:16px 18px}\r\n.rch{display:flex;align-items:center;gap:8px;margin-bottom:10px;flex-wrap:wrap}\r\n.rch b{font-size:15px}\r\n.rf{padding:10px 0;border-top:1px solid var(--line)}\r\n.rf label{font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:0 0 4px}\r\n.rtxt{font-size:14.5px;line-height:1.55;white-space:pre-wrap;word-break:break-word}\r\n.rf .rm{margin-top:8px}\r\n.tw{overflow:auto}\r\n.tw table{width:100%;border-collapse:collapse;font-size:14px}\r\n.tw th{background:var(--bg);text-align:left;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);padding:10px 14px;white-space:nowrap}\r\n.tw td{padding:10px 14px;border-top:1px solid var(--line);vertical-align:top}\r\n.tw td .cp{margin-left:6px;padding:3px 8px}\r\n.rh+.tw,.rnote+.tw{margin-top:0}\r\n.rpre{margin:0;background:var(--bg);border-radius:12px;padding:14px;font:13.5px\/1.55 ui-monospace,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-word;max-height:300px;overflow:auto}\r\n.doc{padding:20px 22px}\r\n.doc h4{margin:16px 0 4px;font-size:13px;letter-spacing:.05em;text-transform:uppercase;color:var(--indigo)}\r\n.doc p{margin:0;font-size:14.5px}\r\n.doc ul{margin:4px 0 0;padding-left:20px;font-size:14.5px}\r\n.prog{display:flex;align-items:center;gap:12px;margin-bottom:12px}\r\n.bar{flex:1;max-width:300px;height:10px;border-radius:999px;background:#E2E8F0;overflow:hidden}\r\n.bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--indigo),var(--green));transition:width .25s}\r\n.pt{font-size:13.5px;font-weight:700}\r\n.cl{display:grid;gap:14px}\r\n.cli{list-style:none;margin:0;padding:0}\r\n.clrow{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--line);cursor:pointer;margin:0;font-weight:400}\r\n.cli li:first-child .clrow{border-top:0}\r\n.clrow input{width:20px;height:20px;margin-top:2px;accent-color:var(--green);flex:none}\r\n.clrow b{font-weight:600;font-size:14.5px;display:block}\r\n.clrow small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}\r\n.done .clrow b{color:var(--muted);text-decoration:line-through}\r\n.tree ul{list-style:none;margin:0;padding-left:22px;border-left:2px solid var(--line)}\r\n.tree>ul{padding-left:0;border:0}\r\n.tree li{margin:8px 0}\r\n.tn{display:inline-flex;flex-direction:column;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:8px 12px;max-width:100%}\r\n.tn b{font-size:14px}\r\n.tn span{font-size:12.5px;color:var(--muted)}\r\n.tn.plat{background:var(--navy);border-color:var(--navy)}\r\n.tn.plat b{color:#fff}\r\n.tn.camp{background:var(--soft-indigo);border-color:#C7D2FE}\r\n.tn.adset{background:#fff}\r\n.tn.ad{background:#FFF7F3;border-color:#FFD9CA}\r\n\/* character checker *\/\r\n.lns{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}\r\n.lns li{display:flex;justify-content:space-between;gap:10px;align-items:center;background:var(--bg);border-radius:10px;padding:7px 10px;font-size:13.5px}\r\n.lns .tx{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}\r\n.meter{height:8px;border-radius:999px;background:#E2E8F0;overflow:hidden;margin-top:8px}\r\n.meter i{display:block;height:100%;background:var(--green);transition:width .15s}\r\n.meter.warn i{background:#F59E0B}\r\n.meter.bad i{background:#EF4444}\r\n.mrow{display:flex;justify-content:space-between;align-items:center;margin-top:6px;font-size:13px}\r\n.mrow .over{color:#B91C1C;font-weight:700}\r\n.mrow .left{color:var(--muted)}\r\n@media(max-width:700px){.mgrid{grid-template-columns:1fr}.mega{max-height:70vh;overflow:auto}.cur{display:none}.sbox{max-width:none}.switch>.wrap{flex-wrap:wrap}.sbox{flex:1 1 100%;order:3;margin:0}.sres{min-width:0}.ri{flex-direction:column}.rm{width:100%;justify-content:space-between}.pn a{max-width:none;flex:1}}\r\n@media(max-width:520px){.topbar .topnav{display:none}}\r\n\r\n.tw{overflow-x:auto;max-width:100%}\r\n.rsec,.rcard,.doc,.callout{min-width:0;overflow-wrap:anywhere}\r\n@media(max-width:700px){.layout{grid-template-columns:minmax(0,1fr)!important}}\r\n.pn a{min-width:0}.pn{min-width:0}\r\n.lns{grid-template-columns:minmax(0,1fr)}.lns li{min-width:0}\r\n.panel,.panel .wrap,.layout>*{min-width:0}\r\n#home-panel .main{margin-top:0;padding-top:32px}\r\n\r\n<\/style>\r\n<\/head>\r\n<body>\r\n<header class=\"topbar\"><div class=\"wrap\">\r\n  <a class=\"brand\" href=\"#home\"><svg viewBox=\"0 0 40 40\" aria-hidden=\"true\"><circle cx=\"20\" cy=\"20\" r=\"16\" fill=\"none\" stroke=\"#FF6B35\" stroke-width=\"4\"\/><rect x=\"12\" y=\"21\" width=\"4\" height=\"8\" rx=\"1\" fill=\"#fff\"\/><rect x=\"18\" y=\"16\" width=\"4\" height=\"13\" rx=\"1\" fill=\"#fff\"\/><rect x=\"24\" y=\"12\" width=\"4\" height=\"17\" rx=\"1\" fill=\"#fff\"\/><path d=\"M27 3l7 0-0 7\" fill=\"none\" stroke=\"#FF6B35\" stroke-width=\"3\" stroke-linecap=\"round\" stroke-linejoin=\"round\" transform=\"translate(-1 2)\"\/><\/svg><span>Onground Media<small>Free marketing tools<\/small><\/span><\/a>\r\n  <nav class=\"topnav\" aria-label=\"Main\"><a href=\"#home\">Ad Creative, Copy &amp; Targeting Tools<\/a><\/nav>\r\n<\/div><\/header>\r\n<nav class=\"switch\" aria-label=\"Ad tools\" id=\"bar\"><div class=\"wrap\">\r\n  <a class=\"sp\" href=\"#home\" data-route=\"home\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3 11l9-8 9 8\"\/><path d=\"M5 10v10h14V10\"\/><\/svg><span>All tools<\/span><\/a>\r\n  <button type=\"button\" class=\"sp\" id=\"mega-btn\" aria-expanded=\"false\" aria-controls=\"mega\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" rx=\"1.5\"\/><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" rx=\"1.5\"\/><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" rx=\"1.5\"\/><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\" rx=\"1.5\"\/><\/svg><span>Browse tools \u25be<\/span><\/button>\r\n  <span class=\"cur\" id=\"cur\" hidden><\/span>\r\n  <div class=\"sbox\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"\/><path d=\"M20 20l-3.5-3.5\"\/><\/svg><label for=\"top-q\" class=\"sr\">Search tools<\/label><input type=\"search\" id=\"top-q\" placeholder=\"Search 21 tools\u2026\" autocomplete=\"off\"><div class=\"sres\" id=\"top-res\" hidden><\/div><\/div>\r\n<\/div>\r\n<div class=\"mega\" id=\"mega\" hidden><\/div><\/nav>\r\n\r\n<div class=\"panel\" id=\"home-panel\" data-route=\"home\">\r\n<section class=\"hero\"><div class=\"wrap\">\r\n  <div class=\"crumbs\">Free Marketing Tools \/ Ads<\/div>\r\n  <span class=\"pill\">\u25cf 21 free tools \u00b7 No signup \u00b7 Runs in your browser<\/span>\r\n  <h1>Ad Creative, Copy &amp; Targeting Tools<\/h1>\r\n  <p>Write better ads, plan creative tests and set up targeting and campaigns the right way, with free generators, planners and checklists.<\/p>\r\n  <div class=\"hsearch\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"\/><path d=\"M20 20l-3.5-3.5\"\/><\/svg><label for=\"hm-q\" class=\"sr\">Find a tool<\/label><input type=\"search\" id=\"hm-q\" placeholder=\"Find a tool: try \u201chook\u201d, \u201ckeyword\u201d, \u201caudience\u201d, \u201csize\u201d\u2026\" autocomplete=\"off\"><\/div>\r\n<\/div><\/section>\r\n<main class=\"wrap main\">\r\n  <div id=\"hm-hub\"><\/div>\r\n  <p class=\"hint\" id=\"hm-empty\" style=\"display:none;text-align:center;padding:24px 0\">No tool matches that search. Try \u201chook\u201d, \u201ckeyword\u201d, \u201caudience\u201d or \u201cchecklist\u201d.<\/p>\r\n  <div class=\"card\" style=\"margin-top:8px\"><h2>What do you want to do?<\/h2><div class=\"tasks\"><a class=\"task\" href=\"#meta-ad-copy-generator\"><span>Write Facebook and Instagram ad copy<\/span><b>\u2192<\/b><\/a><a class=\"task\" href=\"#google-ads-headline-description-generator\"><span>Write Google Ads headlines that fit the limits<\/span><b>\u2192<\/b><\/a><a class=\"task\" href=\"#video-ad-hook-generator\"><span>Get hooks for a Reel or TikTok ad<\/span><b>\u2192<\/b><\/a><a class=\"task\" href=\"#ugc-script-generator\"><span>Create a UGC script for a creator<\/span><b>\u2192<\/b><\/a><a class=\"task\" href=\"#ad-angle-generator\"><span>Find 10 ways to sell one product<\/span><b>\u2192<\/b><\/a><a class=\"task\" href=\"#ad-character-limit-checker\"><span>Check my ad text length<\/span><b>\u2192<\/b><\/a><a class=\"task\" href=\"#ad-image-video-size-guide\"><span>Find the right ad image or video size<\/span><b>\u2192<\/b><\/a><a class=\"task\" href=\"#negative-keyword-generator\"><span>Stop wasted spend with negative keywords<\/span><b>\u2192<\/b><\/a><a class=\"task\" href=\"#campaign-structure-planner\"><span>Plan my campaigns and ad sets<\/span><b>\u2192<\/b><\/a><a class=\"task\" href=\"#ad-account-setup-checklist\"><span>Check my account is ready to launch<\/span><b>\u2192<\/b><\/a><a class=\"task\" href=\"#audience-idea-generator\"><span>Decide who to target<\/span><b>\u2192<\/b><\/a><a class=\"task\" href=\"#lead-form-question-builder\"><span>Build a lead form that gets better leads<\/span><b>\u2192<\/b><\/a><\/div><\/div>\r\n  <div class=\"seo\">\r\n    <div class=\"card\"><h2>How these tools work<\/h2><ol><li>Pick a tool from the cards, the menu or the search bar.<\/li><li>Fill in your details. Example text is already there, so you can see results straight away.<\/li><li>Copy what you like or download it as a text file. Nothing is sent to a server.<\/li><\/ol><\/div>\r\n    <div class=\"card\"><h2>Questions<\/h2>\r\n      <details><summary>Are the tools really free?<\/summary><p>Yes. They are free, need no account and add no watermark.<\/p><\/details>\r\n      <details><summary>Do the generators use AI?<\/summary><p>They use smart templates built on proven ad structures, so results are instant and private. Always edit the text so it is true for your business.<\/p><\/details>\r\n      <details><summary>Does my data leave my device?<\/summary><p>No. Everything runs in your browser. Your text and reports stay on your device.<\/p><\/details>\r\n    <\/div>\r\n  <\/div>\r\n<\/main><\/div>\r\n<div id=\"panels\"><\/div>\r\n<footer><div class=\"wrap\"><span>&copy; Onground Media &middot; Free ad creative, copy &amp; targeting tools<\/span><a href=\"#home\">All ad tools<\/a><\/div><\/footer>\r\n<div class=\"toast\" id=\"toast\" role=\"status\" aria-live=\"polite\"><\/div>\r\n<script>\r\n\/* shared helpers *\/\r\n(function(){\r\n  var t;\r\n  window.toast=function(msg){\r\n    var el=document.getElementById('toast');\r\n    if(!el)return;\r\n    el.textContent=msg;el.classList.add('show');\r\n    clearTimeout(t);t=setTimeout(function(){el.classList.remove('show');},2200);\r\n  };\r\n  window.$=function(s,r){return (r||document).querySelector(s);};\r\n  window.$$=function(s,r){return Array.prototype.slice.call((r||document).querySelectorAll(s));};\r\n  window.debounce=function(fn,ms){var h;return function(){var a=arguments,c=this;clearTimeout(h);h=setTimeout(function(){fn.apply(c,a);},ms||120);};};\r\n  window.downloadBlob=function(blob,name){\r\n    var a=document.createElement('a');\r\n    var url=URL.createObjectURL(blob);\r\n    a.href=url;a.download=name;document.body.appendChild(a);a.click();\r\n    setTimeout(function(){URL.revokeObjectURL(url);a.remove();},400);\r\n  };\r\n  window.downloadCanvas=function(canvas,name,type,quality){\r\n    type=type||'image\/png';\r\n    if(canvas.toBlob){\r\n      canvas.toBlob(function(b){if(b)downloadBlob(b,name);else toast('Could not create the file');},type,quality||0.92);\r\n    }else{\r\n      var a=document.createElement('a');a.href=canvas.toDataURL(type,quality);a.download=name;a.click();\r\n    }\r\n  };\r\n  window.copyText=function(txt){\r\n    if(navigator.clipboard&&navigator.clipboard.writeText){\r\n      return navigator.clipboard.writeText(txt).then(function(){toast('Copied');},function(){fallback();});\r\n    }\r\n    fallback();\r\n    function fallback(){\r\n      var ta=document.createElement('textarea');ta.value=txt;ta.style.position='fixed';ta.style.opacity='0';\r\n      document.body.appendChild(ta);ta.select();\r\n      try{document.execCommand('copy');toast('Copied');}catch(e){toast('Copy failed');}\r\n      ta.remove();\r\n    }\r\n  };\r\n  window.hexLum=function(hex){\r\n    var h=hex.replace('#','');if(h.length===3)h=h.replace(\/(.)\/g,'$1$1');\r\n    var c=[0,2,4].map(function(i){var v=parseInt(h.substr(i,2),16)\/255;return v<=0.03928?v\/12.92:Math.pow((v+0.055)\/1.055,2.4);});\r\n    return 0.2126*c[0]+0.7152*c[1]+0.0722*c[2];\r\n  };\r\n  window.contrast=function(a,b){var la=hexLum(a),lb=hexLum(b);var hi=Math.max(la,lb),lo=Math.min(la,lb);return (hi+0.05)\/(lo+0.05);};\r\n})();\r\n\r\n<\/script>\r\n<script>\r\nwindow.HOME_META={\"title\": \"Free Ad Copy & Targeting Tools | Meta & Google Ads\", \"meta\": \"Generate ad copy, hooks and UGC scripts, plan audiences and keywords, and set up campaigns. Free tools for Meta and Google Ads.\"};\r\n\/* Core helpers + tool registry. Tools are defined in tools-*.js via defineTool(). *\/\r\nvar TOOLS=[];\r\nfunction defineTool(t){TOOLS.push(t);}\r\nvar H={};\r\nH.esc=function(s){return String(s).replace(\/[&<>\"']\/g,function(c){return {'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;',\"'\":'&#39;'}[c];});};\r\nH.len=function(s){return Array.from(s).length;};\r\nH.rng=function(seed){var a=seed>>>0;return function(){a=(a+0x6D2B79F5)|0;var t=Math.imul(a^(a>>>15),1|a);t=(t+Math.imul(t^(t>>>7),61|t))^t;return((t^(t>>>14))>>>0)\/4294967296;};};\r\nH.shuffle=function(arr,r){var a=arr.slice(),i,j,t;for(i=a.length-1;i>0;i--){j=Math.floor(r()*(i+1));t=a[i];a[i]=a[j];a[j]=t;}return a;};\r\nH.cap=function(s){return s?s.charAt(0).toUpperCase()+s.slice(1):s;};\r\nH.lines=function(s){return (s||'').split(\/\\r?\\n\/).map(function(x){return x.trim();}).filter(Boolean);};\r\nH.uniq=function(a){var s={},o=[];a.forEach(function(x){var k=String(x).toLowerCase();if(!s[k]){s[k]=1;o.push(x);}});return o;};\r\nH.title=function(s){var small=\/^(a|an|and|as|at|but|by|for|in|of|on|or|the|to|vs|with)$\/i;return s.split(' ').map(function(w,i){if(!w)return w;if(i>0&&small.test(w))return w.toLowerCase();if(\/[A-Z]\/.test(w.slice(1)))return w;return w.charAt(0).toUpperCase()+w.slice(1);}).join(' ');};\r\nH.clean=function(s){return s.replace(\/[ \\t]+\/g,' ').replace(\/ +([,.!?;:])\/g,'$1').replace(\/([!?])\\.\/g,'$1').replace(\/([.!?,])\\1+\/g,'$1').replace(\/[ \\t]+\\n\/g,'\\n').replace(\/\\n[ \\t]+\/g,'\\n').trim();};\r\nH.sent=function(s){return s.replace(\/(^|[.!?]\\s+|\\n)([a-z])(?![A-Z])\/g,function(m,a,b){return a+b.toUpperCase();});};\r\nH.fill=function(tpl,v){var miss=false;var out=tpl.replace(\/\\{(\\w+)\\}\/g,function(m,k){var x=v[k];if(x===undefined||x===null||String(x).trim()===''){miss=true;return '';}return String(x).trim();});return miss?null:H.sent(H.clean(out));};\r\nH.gen=function(tpls,v,n,r){var o=[];tpls.forEach(function(t){var x=H.fill(t,v);if(x)o.push(x);});o=H.uniq(o);o=H.shuffle(o,r);return n?o.slice(0,n):o;};\r\nH.slug=function(s){return String(s).toLowerCase().replace(\/&\/g,' and ').replace(\/[^a-z0-9]+\/g,'-').replace(\/^-+|-+$\/g,'');};\r\nH.ratio=function(w,h){var C=[[1,'1:1'],[0.8,'4:5'],[0.75,'3:4'],[2\/3,'2:3'],[9\/16,'9:16'],[16\/9,'16:9'],[1.91,'1.91:1'],[4,'4:1'],[1.5,'3:2'],[4\/3,'4:3']],r=w\/h,i;for(i=0;i<C.length;i++){if(Math.abs(r-C[i][0])\/C[i][0]<0.02)return C[i][1];}return r>=1?(r.toFixed(2).replace(\/\\.?0+$\/,'')+':1'):('1:'+(1\/r).toFixed(2).replace(\/\\.?0+$\/,''));};\r\nH.num=function(x,d){if(x===''||x===null||x===undefined||isNaN(x))return '';d=d===undefined?0:d;return Number(x).toLocaleString('en-IN',{maximumFractionDigits:d,minimumFractionDigits:0});};\r\nH.chunk=function(a,n){var o=[],i;for(i=0;i<a.length;i+=n)o.push(a.slice(i,i+n));return o;};\r\nH.stat=function(label,value,sub){return {label:label,value:value,sub:sub||''};};\r\n\/* limits: {rec,max}. status: ok<=rec(or max), warn<=max, bad>max *\/\r\nH.limitBadge=function(text,lim){var n=H.len(text),rec=lim.rec||lim.max,max=lim.max||lim.rec,k=n<=rec?'ok':(n<=max?'warn':'bad');return {text:n+' \/ '+(lim.rec&&lim.max&&lim.rec!==lim.max?lim.rec+' rec.':max),kind:k};};\r\n\/* shared field builders *\/\r\nvar CUR_OPTS=[['\u20b9','\u20b9 INR'],['$','$ USD'],['\u00a3','\u00a3 GBP'],['\u20ac','\u20ac EUR'],['A$','A$ AUD'],['C$','C$ CAD'],['AED ','AED']];\r\nvar CTA_OPTS=['Shop Now','Learn More','Sign Up','Get Quote','Book Now','Order Now','Download','Contact Us','Get Offer','Apply Now','Subscribe','Try It Free'];\r\n\r\n\/* ===== 1. Meta Ad Copy Generator ===== *\/\r\ndefineTool({\r\n  slug:'meta-ad-copy-generator',group:'copy',tag:'Copy',icon:'pen',color:'#1877F2',\r\n  name:'Meta Ad Copy Generator',\r\n  card:'Write Facebook and Instagram ad copy in seconds.',\r\n  intro:'Create primary text, headlines and call-to-action ideas for Facebook and Instagram ads. Pick a tone, then copy what you like.',\r\n  title:'Free Meta Ad Copy Generator | Facebook & Instagram',\r\n  meta:'Create primary text, headlines and descriptions for Facebook and Instagram ads. Pick a tone and offer, then copy. Free ad copy tool.',\r\n  kw:'meta facebook instagram ad copy generator primary text headline caption advertising writer',\r\n  regen:true,required:['product','benefit'],\r\n  faqs:[['How long should Meta primary text be?','Only about the first 125 characters show before \u201cSee more\u201d, so put your hook and main benefit first. The counters on each result show how you are doing.'],['Can I use these ads as they are?','Treat them as strong first drafts. Edit claims so they are true for your business, and read Meta\u2019s ad policies before you publish.']],\r\n  fields:[\r\n    {id:'product',label:'Product or service name',type:'text',ex:'GlowSkin Vitamin C Serum',ph:'e.g. GlowSkin Vitamin C Serum'},\r\n    {id:'benefit',label:'Main benefit (result you give)',type:'text',ex:'brighter, smoother skin',ph:'e.g. brighter, smoother skin',hint:'Write it as a result, like \u201cmore leads\u201d or \u201cbrighter skin\u201d.'},\r\n    {id:'audience',label:'Who is it for?',type:'text',ex:'busy professionals',ph:'e.g. busy professionals',optional:true},\r\n    {id:'pain',label:'Problem it solves',type:'text',ex:'dull, uneven skin',ph:'e.g. dull, uneven skin',optional:true},\r\n    {id:'offer',label:'Offer',type:'text',ex:'20% off this week',ph:'e.g. 20% off this week',optional:true},\r\n    {id:'proof',label:'Proof point (must be true)',type:'text',ex:'',ph:'e.g. Rated 4.8 by 2,000 customers',optional:true},\r\n    {id:'cta',label:'Call-to-action button',type:'select',options:CTA_OPTS,ex:'Shop Now'},\r\n    {id:'tone',label:'Tone',type:'select',options:['Mix of tones','Friendly','Professional','Urgent','Bold','Playful'],ex:'Mix of tones'},\r\n    {id:'emoji',label:'Use a few emojis',type:'toggle',ex:true}\r\n  ],\r\n  run:function(v,c){\r\n    var HOOKS={\r\n      Friendly:['Hey {audience}, this one\u2019s for you.','Meet {product}.','Looking for {benefit}? We\u2019ve got you.','Struggling with {pain}? You\u2019re not alone.','Small change, big difference: {product}.'],\r\n      Professional:['Introducing {product}.','{product}: built for {audience}.','A smarter way to get {benefit}.','Still dealing with {pain}? There is a better way.','Designed for {audience} who want {benefit}.'],\r\n      Urgent:['{offer}. Don\u2019t miss it.','Last chance to get {benefit}.','{audience}: this won\u2019t last.','Stop putting up with {pain}.','Ready for {benefit}? Now is the time.'],\r\n      Bold:['Forget {pain}.','{benefit}. No excuses.','Most people settle for {pain}. Not you.','{product} raises the bar.','Ready for {benefit}?'],\r\n      Playful:['Say goodbye to {pain}. Hello, {benefit}!','Plot twist: {benefit} is easier than you think.','Okay, {audience}, we need to talk about {product}.','{product} just entered the chat.','Meet your new favorite: {product}.']\r\n    };\r\n    var EMO={Friendly:'\ud83d\udc4b',Professional:'',Urgent:'\u23f0',Bold:'\ud83d\udd25',Playful:'\ud83d\ude04'};\r\n    var BODY=['{product} helps you get {benefit}.','With {product}, getting {benefit} is simple.','Made for {audience} who want {benefit} without the hassle.','{proof}.','Say goodbye to {pain} and hello to {benefit}.','Why {audience} choose {product}: {benefit}.','Get {benefit} with {product}.'];\r\n    var CLOSE={\r\n      Friendly:['Tap \u201c{cta}\u201d below.','{offer}. Tap \u201c{cta}\u201d below.','Ready? Tap \u201c{cta}\u201d.'],\r\n      Professional:['{offer}. Tap \u201c{cta}\u201d below.','Tap \u201c{cta}\u201d below.','Ready? Tap \u201c{cta}\u201d.'],\r\n      Urgent:['{offer}. Ends soon, so tap \u201c{cta}\u201d today.','Don\u2019t wait: tap \u201c{cta}\u201d today.','Limited time. Tap \u201c{cta}\u201d before it\u2019s gone.'],\r\n      Bold:['Tap \u201c{cta}\u201d and see for yourself.','{offer}. Tap \u201c{cta}\u201d.','Ready? Tap \u201c{cta}\u201d.'],\r\n      Playful:['Tap \u201c{cta}\u201d and join in.','{offer}. Tap \u201c{cta}\u201d, you\u2019ve earned it.','Ready? Tap \u201c{cta}\u201d.']\r\n    };\r\n    var HEAD=['{product}','Get {benefit}','{offer}','Made for {audience}','Say goodbye to {pain}','Meet {product}','Try {product} today','Why {audience} choose {product}','Finally, {benefit}','{offer} on {product}','{benefit}'];\r\n    var tones=v.tone==='Mix of tones'?['Friendly','Professional','Urgent','Bold','Playful']:[v.tone];\r\n    var all=[];\r\n    tones.forEach(function(t){H.shuffle(HOOKS[t],c.r).forEach(function(x){var f=H.fill(x,v);if(f)all.push({t:t,x:f});});});\r\n    \/\/ spread tones when mixing\r\n    var picked=[],seen={};\r\n    if(v.tone==='Mix of tones'){tones=H.shuffle(tones,c.r);tones.forEach(function(t){var f=all.filter(function(a){return a.t===t;})[0];if(f&&!seen[f.x]){seen[f.x]=1;picked.push(f);}});}\r\n    all.forEach(function(a){if(picked.length<5&&!seen[a.x]){seen[a.x]=1;picked.push(a);}});\r\n    picked=picked.slice(0,5);\r\n    var bodies=H.gen(BODY,v,0,c.r),heads=H.gen(HEAD,v,0,c.r).filter(function(h){return H.len(h)<=40;});\r\n    var cards=picked.map(function(p,i){\r\n      var emoji=v.emoji&&EMO[p.t]?EMO[p.t]+' ':'';\r\n      var body=bodies[i%bodies.length]||H.fill('{product} helps you get {benefit}.',v);\r\n      var cl=H.gen(CLOSE[p.t],v,1,c.r)[0]||H.fill('Tap \u201c{cta}\u201d below.',v);\r\n      var primary=emoji+p.x+'\\n\\n'+body+'\\n\\n'+(v.emoji?'\ud83d\udc49 ':'')+cl;\r\n      var head=heads[i%Math.max(heads.length,1)]||v.product;\r\n      return {title:'Variation '+(i+1),tag:p.t,fields:[\r\n        {label:'Primary text',text:primary,limit:{max:2200}},\r\n        {label:'Headline',text:head,limit:{rec:40,max:255}},\r\n        {label:'Button',text:v.cta}\r\n      ]};\r\n    });\r\n    return [{type:'note',kind:'info',title:'Tip:',text:'Only the first ~125 characters of primary text show before \u201cSee more\u201d, so the hook comes first. Only use urgency or proof that is true for your business.'},{type:'cards',cards:cards}];\r\n  }\r\n});\r\n\r\n\/* ===== 2. Google Ads Headline & Description Generator ===== *\/\r\ndefineTool({\r\n  slug:'google-ads-headline-description-generator',group:'copy',tag:'Copy',icon:'search',color:'#4285F4',\r\n  name:'Google Ads Headline & Description Generator',\r\n  card:'Create headlines and descriptions within Google\u2019s limits.',\r\n  intro:'Generate responsive search ad headlines (30 characters) and descriptions (90 characters). Every result already fits the limits.',\r\n  title:'Free Google Ads Headline & Description Generator',\r\n  meta:'Generate Google Ads headlines (30 characters) and descriptions (90 characters) for search ads. Built-in length check. Free tool.',\r\n  kw:'google ads headline description generator search responsive rsa ppc copy 30 characters 90 characters',\r\n  regen:true,required:['keyword','product'],\r\n  faqs:[['What are the Google Ads limits?','Responsive search ads allow up to 15 headlines of 30 characters and up to 4 descriptions of 90 characters. Every line this tool shows is within those limits.'],['Why should I use many different headlines?','Google mixes headlines and descriptions to find the best combinations. More distinct headlines gives it more to test.']],\r\n  fields:[\r\n    {id:'keyword',label:'Main keyword',type:'text',ex:'running shoes',ph:'e.g. running shoes',maxlen:50},\r\n    {id:'product',label:'Business or product name',type:'text',ex:'StrideLab',ph:'e.g. StrideLab',maxlen:40},\r\n    {id:'benefit',label:'Main benefit',type:'text',ex:'all-day comfort',ph:'e.g. all-day comfort',optional:true},\r\n    {id:'offer',label:'Offer',type:'text',ex:'Free delivery',ph:'e.g. Free delivery',optional:true},\r\n    {id:'usp',label:'Extra selling point (must be true)',type:'text',ex:'30-day returns',ph:'e.g. 30-day returns',optional:true},\r\n    {id:'location',label:'Location',type:'text',ex:'Mumbai',ph:'e.g. Mumbai',optional:true},\r\n    {id:'cta',label:'Call to action',type:'select',options:['Shop Now','Get a Quote','Book Today','Call Now','Learn More','Sign Up','Order Online','Contact Us','Start Free Trial'],ex:'Shop Now'},\r\n    {id:'caps',label:'Headline capitalization',type:'select',options:['Title Case','Sentence case'],ex:'Title Case'}\r\n  ],\r\n  run:function(v,c){\r\n    var HT=['{keyword}','Buy {keyword} Online','{keyword} | {product}','{keyword} in {location}','{keyword} Near {location}','Shop {keyword} Today','{product}','{product}: {keyword}','{benefit}','Get {benefit}','{offer}','{offer} on {keyword}','{usp}','{cta}','{cta} Today','Order {keyword} Online','Quality {keyword}','Compare {keyword}','Find Your {keyword}','Explore {keyword} Options','See {keyword} Prices','{keyword} Made Easy','{keyword}, {offer}','{benefit} Guaranteed','{keyword} for Every Need','Discover {product}','Top Picks: {keyword}','{product} {keyword}','New {keyword} Range','{keyword} Deals'];\r\n    var heads=H.gen(HT,v,0,c.r).map(function(x){return v.caps==='Title Case'?H.title(x):x;}).filter(function(x){return H.len(x)<=30;});\r\n    heads=H.uniq(heads).slice(0,15);\r\n    var DT=['Looking for {keyword}? {product} offers {benefit}. {cta}.','Shop {keyword} from {product} and enjoy {benefit}. {offer}.','{product}: {keyword} designed for {benefit}. {cta} today.','Get {benefit} with {keyword} from {product}. {cta}.','{offer} on {keyword}. {cta} and see the difference.','Find {keyword} in {location}. {benefit}. {cta}.','Explore {keyword} with {usp}. {offer}. {cta}.','{keyword} from {product}. {benefit}, {usp}. {cta}.','Browse {keyword} at {product}. {offer}. {cta} online.','Discover {keyword} with {benefit}. {usp}. {cta}.','{product} makes {keyword} simple. {offer} and {usp}.','Need {keyword}? {product} is here to help. {cta}.'];\r\n    var descs=H.gen(DT,v,0,c.r).filter(function(x){return H.len(x)<=90&&H.len(x)>=40;}).slice(0,4);\r\n    var w=H.slug(v.keyword).split('-').filter(Boolean);\r\n    var p1=w.join('-').slice(0,15).replace(\/-$\/,''),p2=H.slug(v.product).slice(0,15).replace(\/-$\/,'');\r\n    var paths=[];if(p1)paths.push(p1);if(v.location&&H.slug(v.location))paths.push(H.slug(v.location).slice(0,15));else if(p2)paths.push(p2);\r\n    var parts=[{type:'sections',sections:[\r\n      {title:'Headlines ('+heads.length+')',note:'Up to 15 headlines, 30 characters each.',items:heads.map(function(x){return {text:x,limit:{max:30}};})},\r\n      {title:'Descriptions ('+descs.length+')',note:'Up to 4 descriptions, 90 characters each.',items:descs.map(function(x){return {text:x,limit:{max:90}};})}\r\n    ]}];\r\n    if(paths.length)parts.push({type:'sections',sections:[{title:'Display URL paths',note:'Optional. Up to 15 characters each.',items:paths.map(function(x){return {text:x,limit:{max:15}};})}]});\r\n    parts.push({type:'note',kind:'warn',title:'Check before you publish:',text:'Edit any claim so it is true for your business. Google requires accurate, relevant ad text, so avoid unproven superlatives like \u201cbest\u201d or \u201c#1\u201d. Don\u2019t put phone numbers in headlines; use a call asset instead.'});\r\n    if(heads.length<8)parts.unshift({type:'note',kind:'info',text:'Add a benefit, offer, selling point or location to get more headline options.'});\r\n    return parts;\r\n  }\r\n});\r\n\r\n\/* ===== 3. Hook Generator for Video Ads ===== *\/\r\ndefineTool({\r\n  slug:'video-ad-hook-generator',group:'copy',tag:'Video',icon:'play',color:'#E1306C',\r\n  name:'Hook Generator for Video Ads',\r\n  card:'Get scroll-stopping first lines for your video ads.',\r\n  intro:'Get opening hooks for Reels, TikTok, YouTube Shorts and Meta video ads. The first three seconds decide who keeps watching.',\r\n  title:'Free Video Ad Hook Generator | Reels, TikTok & Shorts',\r\n  meta:'Generate opening hooks for Reels, TikTok, YouTube Shorts and Meta video ads. Choose a product and angle, then copy. Free hook generator.',\r\n  kw:'video ad hook generator reels tiktok shorts opening line first three seconds ugc script',\r\n  regen:true,required:['product'],\r\n  faqs:[['What is a hook in a video ad?','The hook is the first line or visual, usually the first 3 seconds. Its job is to make someone stop scrolling and keep watching.'],['How many hooks should I test?','Make 3 to 5 versions of the same video with different hooks. Keep the rest of the video the same so you can see which opening works best.']],\r\n  fields:[\r\n    {id:'product',label:'Product or service',type:'text',ex:'the ErgoFlex posture chair',ph:'e.g. the ErgoFlex posture chair'},\r\n    {id:'audience',label:'Who is it for?',type:'text',ex:'desk workers',ph:'e.g. desk workers',optional:true},\r\n    {id:'problem',label:'Problem it solves',type:'text',ex:'back pain after work',ph:'e.g. back pain after work',optional:true},\r\n    {id:'result',label:'Result you give',type:'text',ex:'a pain-free workday',ph:'e.g. a pain-free workday',optional:true},\r\n    {id:'platform',label:'Platform',type:'select',options:['Instagram Reels','TikTok','YouTube Shorts','Facebook video'],ex:'Instagram Reels'},\r\n    {id:'styles',label:'Hook styles',type:'checks',options:['Question','Problem','Result','Curiosity','Callout','Contrarian','Story'],ex:['Question','Problem','Result','Curiosity','Callout']}\r\n  ],\r\n  run:function(v,c){\r\n    var S={\r\n      Question:['Are you still dealing with {problem}?','What if {result} was this simple?','Why do {audience} struggle with {problem}?','Want {result}? Watch this.','Is {problem} holding you back?','Do you know what {product} can do?'],\r\n      Problem:['{problem} is exhausting. Here\u2019s what helped.','If you hate {problem}, watch this.','I was so tired of {problem}.','Nobody warns you how annoying {problem} is.','Stop scrolling if you deal with {problem}.'],\r\n      Result:['I tried {product} for {result}. Here\u2019s what happened.','This is how I got {result}.','{result}? Here\u2019s how.','Before {product}: {problem}. After: {result}.','I tested {product} so you don\u2019t have to.'],\r\n      Curiosity:['The one thing I wish I knew about {problem}.','I didn\u2019t expect {product} to do this.','Wait for the end. {product} surprised me.','This is why I switched to {product}.','Here\u2019s what nobody tells you about {product}.'],\r\n      Callout:['{audience}, stop scrolling.','Calling all {audience}.','This is for {audience} who want {result}.','Attention {audience}: you need to see this.','If you\u2019re one of the {audience}, this is for you.'],\r\n      Contrarian:['Stop doing this if you want {result}.','Everyone says {problem} is normal. It isn\u2019t.','Unpopular opinion: {problem} is fixable.','You don\u2019t need more effort to fix {problem}. You need this.'],\r\n      Story:['Three months ago I was dealing with {problem}.','Let me show you what changed after {product}.','My friend asked how I got {result}. Here\u2019s my answer.','I almost didn\u2019t try {product}. Here\u2019s why I\u2019m glad I did.']\r\n    };\r\n    var sel=v.styles.length?v.styles:Object.keys(S);\r\n    var secs=sel.map(function(k){var items=H.gen(S[k],v,3,c.r);return items.length?{title:k+' hooks',items:items.map(function(x){return {text:x};})}:null;}).filter(Boolean);\r\n    var TIPS={'Instagram Reels':['Put the hook as big on-screen text in the first frame, and say it out loud too.','Keep key text inside the middle of the screen so buttons and captions don\u2019t cover it.','Start with motion or a close-up, not a logo.'],\r\n      'TikTok':['Speak the hook straight to camera in the first second, in a natural voice.','Add on-screen text that matches what you say.','Native-feeling, slightly raw video usually works better than polished ads.'],\r\n      'YouTube Shorts':['State the promise in the first 2 seconds, then show proof.','Use a vertical 9:16 frame and keep text away from the bottom edge.','End by looping back to the hook so people rewatch.'],\r\n      'Facebook video':['Add captions: many people watch with sound off.','Show the problem or result visually before you explain.','Keep the first 3 seconds free of logos and intros.']};\r\n    var parts=[];\r\n    if(!secs.length)return [{type:'note',kind:'info',text:'Add an audience, a problem or a result to unlock more hooks.'}];\r\n    parts.push({type:'sections',sections:secs});\r\n    parts.push({type:'sections',sections:[{title:'Make the first 3 seconds count on '+v.platform,items:TIPS[v.platform].map(function(x){return {text:x};})}]});\r\n    return parts;\r\n  }\r\n});\r\n\r\n\/* ===== 4. UGC Script Generator ===== *\/\r\ndefineTool({\r\n  slug:'ugc-script-generator',group:'copy',tag:'Video',icon:'user',color:'#8B5CF6',\r\n  name:'UGC Script Generator',\r\n  card:'Write simple UGC video scripts creators can film.',\r\n  intro:'Create a shot-by-shot UGC ad script with timing, visuals and the words to say. Ready to hand to a creator.',\r\n  title:'Free UGC Script Generator | UGC Video Ad Scripts',\r\n  meta:'Create UGC ad scripts with hook, problem, demo and call to action. Ready for creators to film. Free UGC script generator.',\r\n  kw:'ugc script generator user generated content video ad creator brief testimonial reel tiktok',\r\n  regen:false,required:['product','problem','benefit'],\r\n  faqs:[['How long should a UGC ad be?','15 to 30 seconds works for most products. Use 45 to 60 seconds only if the product needs a demo.'],['Should creators read the script word for word?','No. Ask them to say it in their own words and keep the key points. Natural delivery is what makes UGC work.']],\r\n  fields:[\r\n    {id:'product',label:'Product',type:'text',ex:'the CoolMug self-heating mug',ph:'e.g. the CoolMug self-heating mug'},\r\n    {id:'audience',label:'Who is it for?',type:'text',ex:'busy people',ph:'e.g. busy people',optional:true},\r\n    {id:'problem',label:'Problem it solves',type:'text',ex:'coffee going cold',ph:'e.g. coffee going cold'},\r\n    {id:'benefit',label:'Main result',type:'text',ex:'hot coffee all morning',ph:'e.g. hot coffee all morning'},\r\n    {id:'features',label:'Features to show (one per line)',type:'textarea',raw:true,rows:3,ex:'Keeps drinks hot for hours\\nCharges in 20 minutes\\nLooks great on any desk',ph:'One feature per line',optional:true},\r\n    {id:'proof',label:'Proof point (must be true)',type:'text',ex:'',ph:'e.g. 4.8 stars from 1,200 reviews',optional:true},\r\n    {id:'offer',label:'Offer',type:'text',ex:'15% off today',ph:'e.g. 15% off today',optional:true},\r\n    {id:'cta',label:'Call-to-action button',type:'select',options:CTA_OPTS,ex:'Shop Now'},\r\n    {id:'length',label:'Video length',type:'select',options:[['15','15 seconds'],['30','30 seconds'],['45','45 seconds'],['60','60 seconds']],ex:'30'},\r\n    {id:'style',label:'Script style',type:'select',options:['Problem to solution','Honest review','Before & after','Day-in-my-life','First impressions'],ex:'Problem to solution'}\r\n  ],\r\n  run:function(v,c){\r\n    var T=parseInt(v.length,10),feats=H.lines(v.features).slice(0,3);\r\n    var vv=Object.assign({},v);\r\n    var f1=feats[0]||'',f2=feats[1]||'',f3=feats[2]||'';\r\n    vv.f1=f1;vv.f2=f2;vv.f3=f3;\r\n    function S(name,wt,pri,visual,say){return {name:name,wt:wt,pri:pri,visual:visual,say:say};}\r\n    var seg=[];\r\n    var featSegs=function(){var o=[];[f1,f2,f3].forEach(function(f,i){if(f)o.push(S('Show feature '+(i+1),2,i===0?5:(i===1?3:2),'Hands-on close-up showing: '+f.toLowerCase()+'.',['Here\u2019s what I like: ','Another thing I love: ','And it also has '][i]+f.charAt(0).toLowerCase()+f.slice(1)+'.'));});if(!o.length)o.push(S('Demo',3,5,'Use the product on camera. Show it working.','Here\u2019s how it works. It\u2019s really easy to use.'));return o;};\r\n    var cta=S('Offer + call to action',2,9,'Hold the product up, smile, point to the button. Text on screen: '+(v.offer||v.cta)+'.',(v.offer?'Right now: '+v.offer+'. ':'')+'Tap \u201c'+v.cta+'\u201d to try it yourself.');\r\n    var proof=v.proof?S('Proof',1.5,4,'Show a review, rating or result on screen.',v.proof+'.'):null;\r\n    var st=v.style;\r\n    if(st==='Problem to solution'){\r\n      seg=[S('Hook',1.5,10,'Close-up of you looking at camera. Big text on screen: \u201c'+H.cap(v.problem)+'?\u201d','If you deal with '+v.problem+', you need to see this.'),\r\n        S('Problem',2,6,'Show the problem in real life (quick b-roll).','I got so tired of '+v.problem+'.'),\r\n        S('Meet the product',2,8,'Reveal the product. Hold it up to camera.',v.audience?'Then I found '+v.product+', made for '+v.audience+'.':'Then I found '+v.product+'.')].concat(featSegs());\r\n      seg.push(S('Result',2,7,'Show the \u201cafter\u201d: you enjoying the result.','Now I get '+v.benefit+'.'));\r\n    }else if(st==='Honest review'){\r\n      seg=[S('Hook',1.5,10,'Talk to camera, holding the product. Text: \u201cHonest review\u201d.','Honest review of '+v.product+' after using it.'),\r\n        S('Why I tried it',2,6,'Casual shot of you at home.','I wanted to fix '+v.problem+', so I gave it a go.')].concat(featSegs());\r\n      seg.push(S('Verdict',2,8,'Back to talking to camera.','My verdict: it gives me '+v.benefit+'.'));\r\n    }else if(st==='Before & after'){\r\n      seg=[S('Hook',1.5,10,'Split screen or quick cut: before on the left, after on the right.','Before and after: '+v.problem+' to '+v.benefit+'.'),\r\n        S('Before',2,6,'Show the \u201cbefore\u201d moment clearly.','This was me before: '+v.problem+'.'),\r\n        S('The change',2,8,'Show the product being used.','What changed? '+H.cap(v.product)+'.')].concat(featSegs());\r\n      seg.push(S('After',2,7,'Show the \u201cafter\u201d and your reaction.','And now I get '+v.benefit+'.'));\r\n    }else if(st==='Day-in-my-life'){\r\n      seg=[S('Hook',1.5,10,'Morning shot, you starting your day.','Come with me for a day with '+v.product+'.'),\r\n        S('Moment 1',2,6,'Show the product in your routine.','Normally '+v.problem+' would get in the way.'),\r\n        S('Moment 2',2,7,'Show the product in use again later in the day.','But with '+v.product+', I get '+v.benefit+'.')].concat(featSegs());\r\n    }else{\r\n      seg=[S('Hook',1.5,10,'Unboxing shot, hands opening the package.','Okay, let\u2019s open this. First impressions of '+v.product+'.'),\r\n        S('First look',2,6,'Close-up of the product from different angles.','Right away I noticed how it looks and feels.')].concat(featSegs());\r\n      seg.push(S('Result',2,7,'Use it for the first time on camera.','I bought it because of '+v.problem+', and I\u2019m already seeing '+v.benefit+'.'));\r\n    }\r\n    if(proof)seg.push(proof);\r\n    seg.push(cta);\r\n    \/\/ timing\r\n    function words(x){return x.say.split(\/\\s+\/).length;}\r\n    function est(a){return a.reduce(function(s,x){return s+words(x);},0)\/2.6;}\r\n    var dropped=[];\r\n    while(est(seg)>T*1.05&&seg.length>3){\r\n      var low=seg.filter(function(x){return x.pri<9&&x.pri<10;}).sort(function(a,b){return a.pri-b.pri;})[0];\r\n      if(!low)break;seg.splice(seg.indexOf(low),1);dropped.push(low.name);\r\n    }\r\n    var tw=seg.reduce(function(s,x){return s+x.wt;},0),t0=0,rows=[],i;\r\n    seg.forEach(function(x,i){var d=Math.max(1,Math.round(x.wt\/tw*T));var t1=i===seg.length-1?T:Math.min(T,t0+d);rows.push([t0+'\u2013'+t1+'s',x.name,x.visual,x.say]);t0=t1;});\r\n    var e=Math.round(est(seg));\r\n    var parts=[{type:'stats',items:[H.stat('Video length',T+' seconds'),H.stat('Spoken words',String(seg.reduce(function(s,x){return s+words(x);},0))),H.stat('Reads in about',e+' seconds',e>T*1.1?'A bit long: speak quickly or trim':'Fits the length')]},\r\n      {type:'table',title:'Shot-by-shot script',headers:['Time','Scene','What to show','What to say'],rows:rows,strong:1,note:'Ask the creator to say it naturally, in their own words.'}];\r\n    if(dropped.length)parts.push({type:'note',kind:'info',text:'To fit '+T+' seconds, I left out: '+dropped.join(', ')+'. Choose a longer video to include them.'});\r\n    parts.push({type:'sections',sections:[{title:'Filming tips for the creator',items:['Film vertical (9:16) in natural light and keep your phone steady.','Keep text and your face away from the top and bottom edges so buttons don\u2019t cover them.','Show the product in the first 3 seconds.','Record 2 or 3 different hooks so you can test them.'].map(function(x){return {text:x};})}]});\r\n    return parts;\r\n  }\r\n});\r\n\r\n\/* ===== 5. Ad Angle Generator ===== *\/\r\ndefineTool({\r\n  slug:'ad-angle-generator',group:'copy',tag:'Strategy',icon:'bulb',color:'#F59E0B',\r\n  name:'Ad Angle Generator',\r\n  card:'Get 10 selling angles for any product.',\r\n  intro:'Enter one product and get 10 different angles to sell it, each with a headline, primary text and creative idea.',\r\n  title:'Free Ad Angle Generator | 10 Selling Angles',\r\n  meta:'Enter a product and audience to get 10 ad angles such as pain point, benefit, proof and urgency. Plan stronger ads. Free tool.',\r\n  kw:'ad angle generator selling angles marketing angles hooks ideas creative strategy product positioning',\r\n  regen:true,required:['product','audience','benefit'],\r\n  faqs:[['What is an ad angle?','An angle is the reason someone should care. The same product can be sold on pain, price, proof, speed or identity. Each angle becomes its own ad.'],['How many angles should I test?','Start with 3 to 5 angles, one ad each. Keep the winners and make more versions of them.']],\r\n  fields:[\r\n    {id:'product',label:'Product or service',type:'text',ex:'GlowSkin Vitamin C Serum',ph:'e.g. GlowSkin Vitamin C Serum'},\r\n    {id:'audience',label:'Who is it for?',type:'text',ex:'busy professionals',ph:'e.g. busy professionals'},\r\n    {id:'benefit',label:'Main benefit',type:'text',ex:'brighter, smoother skin',ph:'e.g. brighter, smoother skin'},\r\n    {id:'pain',label:'Problem it solves',type:'text',ex:'dull, uneven skin',ph:'e.g. dull, uneven skin',optional:true},\r\n    {id:'offer',label:'Offer',type:'text',ex:'20% off this week',ph:'e.g. 20% off this week',optional:true},\r\n    {id:'proof',label:'Proof point (must be true)',type:'text',ex:'',ph:'e.g. Rated 4.8 by 2,000 customers',optional:true}\r\n  ],\r\n  run:function(v,c){\r\n    function one(t,fb){var x=H.gen(t,v,1,c.r)[0];return x||fb;}\r\n    var A=[\r\n     ['Pain point','Start with the problem your customer already feels.','Cold audiences who feel the problem but don\u2019t know you yet.',['Tired of {pain}?','Say goodbye to {pain}'],['{pain} is frustrating. {product} helps you get {benefit}.','If {pain} is slowing you down, {product} was made for you.'],'Open on the problem in real life, then reveal {product} as the fix.','Name the biggest everyday problem your product solves.'],\r\n     ['Main benefit','Lead with the result they get.','Almost every audience. A safe first test.',['Get {benefit}','{benefit} with {product}'],['{product} helps {audience} get {benefit}. Simple as that.','Get {benefit} with {product}.'],'Show the end result first, then how to get there.','Lead with the single best result of {product}.'],\r\n     ['Social proof','Let real customers do the selling.','People who need reassurance before buying.',['{proof}','Why {audience} choose {product}'],['{proof}. See what it\u2019s about.','Join {audience} who use {product}.'],'Real customer photos, reviews and ratings on screen.','Use a real review or rating as the headline.'],\r\n     ['Before and after','Show the change from problem to result.','Visual products and results-driven offers.',['From {pain} to {benefit}','Before and after {product}'],['Before: {pain}. After: {benefit}. That\u2019s the {product} difference.','Go from {pain} to {benefit} with {product}.'],'Side by side before and after. Only use real results and follow ad policy.','Show a real before and after of using {product}.'],\r\n     ['Urgency','Give a real reason to act now.','Warm audiences and sale periods.',['{offer}. Ends soon','Don\u2019t miss {offer}'],['{offer} on {product}. Don\u2019t wait.','Get {benefit} with {product}, and {offer}.'],'Countdown or deadline on screen. Only use real deadlines.','Add a real deadline or limited quantity to your offer.'],\r\n     ['Value and savings','Focus on what they save or get for the price.','Price-sensitive shoppers.',['{offer}','More {benefit} for less'],['Get {benefit} with {product} and {offer}.','{product}: great value for {audience}.'],'Show the price, the bundle or the savings clearly.','Add an offer, bundle or price point to use this angle.'],\r\n     ['Comparison','Show why this beats the usual way.','People who already use another option.',['Why switch to {product}?','A better way to get {benefit}'],['Still dealing with {pain} the old way? {product} gives you {benefit}.','There\u2019s a simpler way to get {benefit}: {product}.'],'Old way versus {product} in a simple two-column visual.','Compare {product} with the usual alternative.'],\r\n     ['Objection handling','Answer the doubt that stops people buying.','Warm audiences who visited but didn\u2019t buy.',['Not sure about {product}?','Will {product} work for you?'],['Think {benefit} is hard? {product} makes it easy for {audience}.','Questions about {product}? Here are the answers.'],'Answer the top 3 doubts (price, time, results) in a short video or carousel.','List the top doubts your customers have and answer them.'],\r\n     ['Identity and lifestyle','Speak to who they are or want to be.','Brands with a strong style or community.',['Made for {audience}','For {audience} who want {benefit}'],['{product} is made for {audience} who want {benefit}.','Built for {audience}. Designed for {benefit}.'],'Show the lifestyle or person your audience wants to be.','Describe the person who loves {product}.'],\r\n     ['Education','Teach something useful, then offer the product.','Cold audiences and complex products.',['How to get {benefit}','{pain}? Here\u2019s what to do'],['Here\u2019s a simple way to get {benefit}: {product}.','Want {benefit}? Learn how {audience} do it with {product}.'],'Teach one useful tip, then show {product} as the easy way.','Teach one useful tip related to {benefit}.']\r\n    ];\r\n    var cards=A.map(function(a,i){\r\n      return {title:(i+1)+'. '+a[0],tag:a[2],sub:a[1],fields:[\r\n        {label:'Headline',text:one(a[3],H.fill(a[6],v)||a[6])},\r\n        {label:'Primary text',text:one(a[4],H.fill(a[6],v)||a[6])},\r\n        {label:'Creative idea',text:H.fill(a[5],v)||a[5]}\r\n      ]};\r\n    });\r\n    return [{type:'note',kind:'info',title:'How to use:',text:'Pick 3 to 5 angles and make one ad for each. Where a field is empty, add the missing detail on the left to get stronger copy.'},{type:'cards',cards:cards}];\r\n  }\r\n});\r\n\r\n\/* ===== 6. Offer & Headline Variation Generator ===== *\/\r\ndefineTool({\r\n  slug:'ad-headline-variation-generator',group:'copy',tag:'Copy',icon:'tag',color:'#EF4444',\r\n  name:'Offer & Headline Variation Generator',\r\n  card:'Turn one offer into many headline variations.',\r\n  intro:'Turn one offer into many headline variations in different styles, ready for A\/B testing.',\r\n  title:'Free Ad Headline Variation Generator | Offer Ideas',\r\n  meta:'Turn one offer into many headline and offer variations for A\/B testing. Mix discount, urgency and benefit styles. Free tool.',\r\n  kw:'offer headline variation generator ad headlines ab test discount urgency sale promo copy',\r\n  regen:true,required:['offer','product'],\r\n  faqs:[['Why test several versions of one offer?','The same discount can perform very differently with a different headline. Testing finds the wording your audience responds to.'],['What do the badges mean?','They show whether the headline fits a Google headline (30 characters) or a typical Meta headline (40 characters).']],\r\n  fields:[\r\n    {id:'offer',label:'Offer',type:'text',ex:'20% off',ph:'e.g. 20% off'},\r\n    {id:'product',label:'Product or store',type:'text',ex:'GlowSkin',ph:'e.g. GlowSkin'},\r\n    {id:'benefit',label:'Main benefit',type:'text',ex:'glowing skin',ph:'e.g. glowing skin',optional:true},\r\n    {id:'audience',label:'Audience',type:'text',ex:'skincare lovers',ph:'e.g. skincare lovers',optional:true},\r\n    {id:'deadline',label:'Deadline (must be real)',type:'text',ex:'Sunday',ph:'e.g. Sunday',optional:true},\r\n    {id:'code',label:'Coupon code',type:'text',ex:'GLOW20',ph:'e.g. GLOW20',optional:true}\r\n  ],\r\n  run:function(v,c){\r\n    var G=[\r\n     ['Direct offer',['{offer} on {product}','{product}: {offer}','Get {offer}','Save with {product}: {offer}','{offer} at {product}']],\r\n     ['Urgency',['{offer} until {deadline}','Ends {deadline}: {offer}','Last chance: {offer}','Don\u2019t miss out: {offer}','Only until {deadline}','{offer}. Ends soon']],\r\n     ['Benefit + offer',['{benefit} and {offer}','Get {benefit} + {offer}','{product}: {benefit}, {offer}','{offer} on {benefit}']],\r\n     ['Coupon code',['Use code {code} for {offer}','Code {code}: {offer}','Enter {code} at checkout','{offer} with code {code}']],\r\n     ['Question and curiosity',['Ready for {offer}?','Want {benefit} for less?','Who wants {offer}?','Looking for {benefit}? {offer}']],\r\n     ['Audience call-out',['{audience}: {offer}','For {audience}: {offer}','{audience}, this is for you','Hey {audience}: {offer} on {product}']]\r\n    ];\r\n    var secs=G.map(function(g){var items=H.gen(g[1],v,5,c.r).map(function(x){var n=H.len(x);return {text:x,badge:{text:n+' chars \u00b7 '+(n<=30?'Google & Meta':(n<=40?'Meta':'Long')),kind:n<=40?'ok':'warn'}};});return items.length?{title:g[0],items:items}:null;}).filter(Boolean);\r\n    return [{type:'sections',sections:secs},{type:'note',kind:'warn',title:'Keep it honest:',text:'Only use a deadline, code or \u201clast chance\u201d wording if it is real. Misleading urgency can get ads rejected and hurts trust.'}];\r\n  }\r\n});\r\n\r\n\/* ===== 7. Ad Character Limit Checker (custom) ===== *\/\r\ndefineTool({\r\n  slug:'ad-character-limit-checker',group:'copy',tag:'Checker',icon:'ruler',color:'#0EA5E9',\r\n  name:'Ad Character Limit Checker',\r\n  card:'Check your ad text against platform limits.',\r\n  intro:'Pick a platform and type your ad text. See live character counts and whether each line fits the limit.',\r\n  title:'Free Ad Character Limit Checker | Google, Meta, LinkedIn',\r\n  meta:'Check headline and description length for Google, Meta, LinkedIn and other ads. See live counts and limits. Free character checker.',\r\n  kw:'ad character limit checker count characters headline description google meta linkedin tiktok microsoft',\r\n  how:['Choose the platform you are writing for.','Type or paste your text. Put one headline or description per line where it says so.','Fix anything marked red. Amber means longer than recommended.'],\r\n  faqs:[['Are these limits exact?','They are the limits and recommendations at the time of writing. Platforms change them, so check the ad platform if a limit matters for a big campaign.'],['What counts as a character?','Letters, numbers, spaces and punctuation each count as one. Emojis can count as more than one on some platforms.']],\r\n  custom:function(body,api){\r\n    var esc=api.esc;\r\n    var P={\r\n      'Google Search (responsive)':[{n:'Headlines',help:'One per line \u00b7 up to 15',lim:{max:30},multi:true,cnt:15,ex:'Buy Running Shoes Online\\nFree Delivery on All Orders\\nShop the New Range Today'},{n:'Descriptions',help:'One per line \u00b7 up to 4',lim:{max:90},multi:true,cnt:4,ex:'Shop running shoes with all-day comfort. Free delivery and easy 30-day returns.'},{n:'Display URL paths',help:'One per line \u00b7 up to 2',lim:{max:15},multi:true,cnt:2,ex:'running-shoes\\nmumbai'}],\r\n      'Google Display (responsive)':[{n:'Short headlines',help:'One per line \u00b7 up to 5',lim:{max:30},multi:true,cnt:5,ex:'Run Further, Feel Better'},{n:'Long headline',help:'One headline',lim:{max:90},ex:'Comfortable running shoes built for all-day wear, delivered free'},{n:'Descriptions',help:'One per line \u00b7 up to 5',lim:{max:90},multi:true,cnt:5,ex:'Free delivery and 30-day returns.'},{n:'Business name',help:'One name',lim:{max:25},ex:'StrideLab'}],\r\n      'Microsoft Advertising (responsive)':[{n:'Headlines',help:'One per line \u00b7 up to 15',lim:{max:30},multi:true,cnt:15,ex:'Buy Running Shoes Online\\nFree Delivery'},{n:'Descriptions',help:'One per line \u00b7 up to 4',lim:{max:90},multi:true,cnt:4,ex:'Shop running shoes with all-day comfort. Free delivery.'}],\r\n      'Meta (Facebook & Instagram) feed':[{n:'Primary text',help:'About 125 characters show before \u201cSee more\u201d',lim:{rec:125,max:2200},ex:'Meet GlowSkin. Brighter, smoother skin starts here.\\n\\nTap \u201cShop Now\u201d below.'},{n:'Headline',help:'40 recommended',lim:{rec:40,max:9999},ex:'Get brighter, smoother skin'},{n:'Link description',help:'30 recommended',lim:{rec:30,max:9999},ex:'20% off this week'}],\r\n      'LinkedIn single image':[{n:'Introductory text',help:'150 recommended, up to 600',lim:{rec:150,max:600},ex:'Struggling to generate qualified leads? Here is a simple 3-step guide.'},{n:'Headline',help:'70 recommended, up to 200',lim:{rec:70,max:200},ex:'Download the free B2B lead generation guide'}],\r\n      'TikTok in-feed':[{n:'Ad text',help:'Up to 100',lim:{max:100},ex:'Meet the mug that keeps coffee hot all morning'},{n:'Brand name',help:'Up to 20',lim:{max:20},ex:'CoolMug'}],\r\n      'Custom limit':[{n:'Your text',help:'Set your own limit below',lim:{max:100},custom:true,ex:'Type or paste your text here'}]\r\n    };\r\n    var names=Object.keys(P),cur=names[0];\r\n    body.innerHTML='<div class=\"layout\"><div class=\"card form\"><h2>Your ad text<\/h2><div class=\"field\"><label for=\"cc-plat\">Platform<\/label><select id=\"cc-plat\">'+names.map(function(n){return '<option>'+esc(n)+'<\/option>';}).join('')+'<\/select><\/div><div id=\"cc-custom\" class=\"field\" hidden><label for=\"cc-lim\">Character limit<\/label><input type=\"number\" id=\"cc-lim\" min=\"1\" value=\"100\"><\/div><div id=\"cc-els\"><\/div><div class=\"btns\" style=\"margin-top:12px\"><button type=\"button\" class=\"btn ghost sm\" id=\"cc-ex\">Use example<\/button><button type=\"button\" class=\"btn ghost sm\" id=\"cc-clear\">Clear<\/button><\/div><\/div><div class=\"resw\"><div class=\"card\"><h2 id=\"cc-ttl\">Limits at a glance<\/h2><div id=\"cc-sum\"><\/div><\/div><div class=\"callout info\" style=\"margin-top:16px\"><b>Tip:<\/b> Put the most important words first. On many platforms long text is cut off, and shorter lines are easier to read.<\/div><\/div><\/div>';\r\n    var $=function(s){return body.querySelector(s);};\r\n    function build(useEx){\r\n      var els=P[cur];\r\n      $('#cc-custom').hidden=cur!=='Custom limit';\r\n      $('#cc-els').innerHTML=els.map(function(e,i){return '<div class=\"field\"><label for=\"cc-t'+i+'\">'+esc(e.n)+' <span class=\"val\">'+esc(e.help)+'<\/span><\/label><textarea id=\"cc-t'+i+'\" data-i=\"'+i+'\" rows=\"'+(e.multi?4:3)+'\">'+(useEx?esc(e.ex):'')+'<\/textarea><div class=\"ccout\" id=\"cc-o'+i+'\"><\/div><\/div>';}).join('');\r\n      refresh();\r\n    }\r\n    function badgeFor(n,lim){var b=H.limitBadge(new Array(n+1).join('x'),lim);return b;}\r\n    function limitOf(e){return e.custom?{max:Math.max(1,parseInt($('#cc-lim').value,10)||100)}:e.lim;}\r\n    function refresh(){\r\n      var els=P[cur],rows=[];\r\n      els.forEach(function(e,i){\r\n        var lim=limitOf(e),ta=$('#cc-t'+i),txt=ta.value,out=$('#cc-o'+i),h='';\r\n        if(e.multi){\r\n          var ls=H.lines(txt),bad=0;\r\n          h='<ul class=\"lns\">'+ls.map(function(l){var b=badgeFor(H.len(l),lim);if(b.kind==='bad')bad++;return '<li><span class=\"tx\">'+esc(l)+'<\/span><span class=\"bdg '+b.kind+'\">'+b.text+'<\/span><\/li>';}).join('')+'<\/ul>';\r\n          if(ls.length>e.cnt)h+='<div class=\"callout warn\">You have '+ls.length+' lines but this platform uses up to '+e.cnt+'.<\/div>';\r\n          rows.push([e.n,lim.max+' each',ls.length+' of '+e.cnt+' lines',bad?bad+' too long':(ls.length?'All fit':'\u2014')]);\r\n        }else{\r\n          var n=H.len(txt),b=badgeFor(n,lim),max=lim.max===9999?lim.rec:lim.max,pct=Math.min(100,n\/(lim.rec||lim.max)*100);\r\n          h='<div class=\"meter '+b.kind+'\"><i style=\"width:'+pct+'%\"><\/i><\/div><div class=\"mrow\"><span class=\"bdg '+b.kind+'\">'+b.text+' characters<\/span>'+(n>(lim.rec||lim.max)?'<span class=\"over\">'+(n-(lim.rec||lim.max))+' over'+(lim.rec&&lim.max>lim.rec?' the recommended length':'')+'<\/span>':'<span class=\"left\">'+((lim.rec||lim.max)-n)+' left<\/span>')+'<\/div>';\r\n          rows.push([e.n,lim.rec&&lim.max>lim.rec&&lim.max<9999?lim.rec+' rec. \/ '+lim.max+' max':(lim.rec?lim.rec+' recommended':lim.max+' max'),n+' characters',b.kind==='bad'?'Too long':(b.kind==='warn'?'Over recommended':(n?'Fits':'\u2014'))]);\r\n        }\r\n        out.innerHTML=h;\r\n      });\r\n      $('#cc-ttl').textContent='Limits at a glance \u00b7 '+cur;\r\n      $('#cc-sum').innerHTML='<div class=\"tw\"><table><thead><tr><th>Field<\/th><th>Limit<\/th><th>Yours<\/th><th>Status<\/th><\/tr><\/thead><tbody>'+rows.map(function(r){return '<tr>'+r.map(function(x,k){return '<td>'+(k===0?'<b>':'')+esc(x)+(k===0?'<\/b>':'')+'<\/td>';}).join('')+'<\/tr>';}).join('')+'<\/tbody><\/table><\/div>';\r\n    }\r\n    body.addEventListener('input',function(e){if(e.target.matches('textarea,#cc-lim'))refresh();});\r\n    $('#cc-plat').addEventListener('change',function(){cur=this.value;build(true);});\r\n    $('#cc-ex').addEventListener('click',function(){build(true);});\r\n    $('#cc-clear').addEventListener('click',function(){build(false);});\r\n    build(true);\r\n  }\r\n});\r\n\r\n\/* ===== 8. Ad Image & Video Size Guide ===== *\/\r\n(function(){\r\nvar D=[\r\n ['Meta','Feed image \u00b7 square',1080,1080,'Works in Feed and carousels.'],\r\n ['Meta','Feed image \u00b7 portrait',1080,1350,'Takes more space on mobile. Strong choice.'],\r\n ['Meta','Landscape link ad',1200,628,'Link ads and desktop placements.'],\r\n ['Meta','Stories and Reels',1080,1920,'Keep text out of the top ~250 px and bottom ~340 px.'],\r\n ['Meta','Carousel card',1080,1080,'Use the same ratio on every card.'],\r\n ['Meta','Feed video \u00b7 portrait',1080,1350,'4:5 video. Add captions.'],\r\n ['Meta','Reels video',1080,1920,'Vertical 9:16, keep key content centered.'],\r\n ['Google Display','Landscape image',1200,628,'Responsive display ads. Minimum 600 \u00d7 314.'],\r\n ['Google Display','Square image',1200,1200,'Responsive display ads. Minimum 300 \u00d7 300.'],\r\n ['Google Display','Portrait image',960,1200,'Optional 4:5 image for responsive display ads.'],\r\n ['Google Display','Square logo',1200,1200,'Minimum 128 \u00d7 128.'],\r\n ['Google Display','Landscape logo',1200,300,'4:1. Minimum 512 \u00d7 128.'],\r\n ['Google Display','Medium rectangle',300,250,'Standard banner.'],\r\n ['Google Display','Large rectangle',336,280,'Standard banner.'],\r\n ['Google Display','Leaderboard',728,90,'Standard banner.'],\r\n ['Google Display','Half page',300,600,'Standard banner.'],\r\n ['Google Display','Large mobile banner',320,100,'Standard banner.'],\r\n ['Google Display','Mobile banner',320,50,'Standard banner.'],\r\n ['Google Display','Wide skyscraper',160,600,'Standard banner.'],\r\n ['Google Display','Billboard',970,250,'Standard banner.'],\r\n ['YouTube','Video \u00b7 landscape',1920,1080,'In-stream ads. 16:9.'],\r\n ['YouTube','Video \u00b7 vertical',1080,1920,'Shorts and vertical video ads. 9:16.'],\r\n ['YouTube','Video \u00b7 square',1080,1080,'1:1 video.'],\r\n ['YouTube','Bumper ad',1920,1080,'Maximum 6 seconds.'],\r\n ['YouTube','Thumbnail',1280,720,'16:9. Keep under 2 MB.'],\r\n ['YouTube','Companion banner',300,60,'Shown beside in-stream video on desktop.'],\r\n ['LinkedIn','Single image',1200,627,'1.91:1 sponsored content.'],\r\n ['LinkedIn','Square image',1200,1200,'Takes more mobile feed space.'],\r\n ['LinkedIn','Vertical image',720,900,'4:5 image.'],\r\n ['LinkedIn','Carousel card',1080,1080,'Square cards.'],\r\n ['LinkedIn','Video \u00b7 landscape',1920,1080,'16:9.'],\r\n ['LinkedIn','Video \u00b7 vertical',1080,1920,'9:16 mobile video.'],\r\n ['TikTok','In-feed video',1080,1920,'Minimum 540 \u00d7 960. Leave room for captions and buttons.'],\r\n ['TikTok','Video \u00b7 square',640,640,'Minimum size for 1:1.'],\r\n ['TikTok','Video \u00b7 landscape',960,540,'Minimum size for 16:9.'],\r\n ['Pinterest','Standard pin',1000,1500,'2:3 performs best.'],\r\n ['Pinterest','Square pin',1000,1000,'Simple graphics.'],\r\n ['Pinterest','Video pin',1080,1920,'Vertical 9:16.'],\r\n ['X (Twitter)','Image',1200,675,'16:9 shows well in the timeline.'],\r\n ['X (Twitter)','Square image',1200,1200,'1:1.'],\r\n ['X (Twitter)','Website card',800,418,'1.91:1 link card.'],\r\n ['X (Twitter)','Video',1920,1080,'16:9.']\r\n];\r\ndefineTool({\r\n  slug:'ad-image-video-size-guide',group:'copy',tag:'Guide',icon:'image',color:'#14B8A6',\r\n  name:'Ad Image & Video Size Guide',\r\n  card:'See the right ad sizes for each platform.',\r\n  intro:'Image and video sizes for Meta, Google, YouTube, LinkedIn, TikTok, Pinterest and X ads in one place. Filter, search and copy any size.',\r\n  title:'Ad Image & Video Size Guide | Meta, Google, YouTube',\r\n  meta:'Image and video sizes for Meta, Google, YouTube, LinkedIn and TikTok ads in one place. Free ad creative size cheat sheet.',\r\n  kw:'ad image video size guide dimensions creative sizes meta google display banner youtube linkedin tiktok pinterest x story reel',\r\n  how:['Pick a platform, or keep All platforms.','Search for a placement such as story, banner or thumbnail.','Click Copy next to a size and paste it into your design tool.'],\r\n  faqs:[['Do I have to match sizes exactly?','The ratio matters most. A larger image with the same ratio stays sharp and is resized by the platform. Stick to the sizes here for the cleanest result.'],['Do these sizes change?','Sometimes. They are widely used recommendations, so check the ad platform before a large campaign.']],\r\n  fields:[\r\n    {id:'platform',label:'Platform',type:'select',options:['All platforms','Meta','Google Display','YouTube','LinkedIn','TikTok','Pinterest','X (Twitter)'],ex:'All platforms'},\r\n    {id:'q',label:'Search placement',type:'text',ex:'',ph:'e.g. story, banner, thumbnail',optional:true}\r\n  ],\r\n  run:function(v,c){\r\n    var q=(v.q||'').toLowerCase(),rows=D.filter(function(d){\r\n      if(v.platform!=='All platforms'&&d[0]!==v.platform)return false;\r\n      return !q||(d[0]+' '+d[1]+' '+d[4]+' '+d[2]+'x'+d[3]).toLowerCase().indexOf(q)>-1;\r\n    }).map(function(d){return [d[0],d[1],d[2]+' \u00d7 '+d[3],H.ratio(d[2],d[3]),d[4]];});\r\n    if(!rows.length)return [{type:'note',kind:'info',text:'No sizes match. Try \u201cstory\u201d, \u201cbanner\u201d or \u201cvideo\u201d.'}];\r\n    return [{type:'stats',items:[H.stat('Sizes shown',String(rows.length)),H.stat('Platforms',String(H.uniq(rows.map(function(r){return r[0];})).length))]},{type:'table',title:'Ad creative sizes (pixels)',headers:['Platform','Placement','Size (px)','Ratio','Notes'],rows:rows,copyCol:2,strong:1},{type:'note',kind:'info',title:'Good to know:',text:'Keep logos and text inside the middle of vertical formats, so buttons and captions do not cover them. Sizes are commonly recommended specs. Confirm in the ad platform before launch.'}];\r\n  }\r\n});\r\n})();\r\n\r\n\/* ===== 9. Creative Brief Generator ===== *\/\r\ndefineTool({\r\n  slug:'creative-brief-generator',group:'copy',tag:'Planner',icon:'doc',color:'#6366F1',\r\n  name:'Creative Brief Generator',\r\n  card:'Build a clear brief for designers and editors.',\r\n  intro:'Fill in a few details and get a clear creative brief you can send to a designer, editor or creator.',\r\n  title:'Free Ad Creative Brief Generator | Brief Template',\r\n  meta:'Create a simple creative brief with goal, audience, message, format and deliverables. Share it with designers and editors. Free tool.',\r\n  kw:'creative brief generator ad brief template designer editor video brief campaign deliverables',\r\n  regen:false,required:['brand','message'],\r\n  faqs:[['What makes a good creative brief?','One clear message, one clear audience and one clear action. The shorter and more specific the brief, the better the work.'],['Who should I send it to?','Designers, video editors, UGC creators or an agency. Add reference links so they can see the style you like.']],\r\n  fields:[\r\n    {id:'brand',label:'Brand or product',type:'text',ex:'GlowSkin Vitamin C Serum',ph:'e.g. GlowSkin Vitamin C Serum'},\r\n    {id:'campaign',label:'Campaign name',type:'text',ex:'Festive Glow Sale',ph:'e.g. Festive Glow Sale',optional:true},\r\n    {id:'objective',label:'Objective',type:'select',options:['Sales','Leads','Brand awareness','Website traffic','App installs'],ex:'Sales'},\r\n    {id:'audience',label:'Target audience',type:'text',ex:'Women 25 to 40 in metro cities who care about skincare',ph:'Who is the ad for?',maxlen:240},\r\n    {id:'message',label:'Key message (one idea)',type:'text',ex:'Brighter skin in two weeks with one simple step',ph:'The one thing to remember',maxlen:240},\r\n    {id:'points',label:'Supporting points (one per line)',type:'textarea',raw:true,rows:3,ex:'Dermatologist-tested\\nLightweight, non-sticky\\n30-day money-back guarantee',ph:'One point per line',optional:true},\r\n    {id:'tone',label:'Tone and style',type:'text',ex:'Warm, clean, confident',ph:'e.g. warm, clean, confident',optional:true},\r\n    {id:'formats',label:'Formats needed',type:'checks',options:['Static image 1:1','Static image 4:5','Story or Reel 9:16 video','Carousel','UGC video','Banner set'],ex:['Static image 4:5','Story or Reel 9:16 video','UGC video']},\r\n    {id:'platforms',label:'Platforms',type:'checks',options:['Meta','Google','YouTube','LinkedIn','TikTok'],ex:['Meta']},\r\n    {id:'cta',label:'Call to action',type:'select',options:CTA_OPTS,ex:'Shop Now'},\r\n    {id:'offer',label:'Offer',type:'text',ex:'20% off this week',ph:'e.g. 20% off this week',optional:true},\r\n    {id:'must',label:'Must include (one per line)',type:'textarea',raw:true,rows:2,ex:'Logo\\nWebsite address\\nDisclaimer line',ph:'Logo, legal text, colors\u2026',optional:true},\r\n    {id:'refs',label:'Reference links or ads you like',type:'text',ex:'',ph:'Paste links here',optional:true},\r\n    {id:'deadline',label:'Deadline',type:'text',ex:'',ph:'e.g. First drafts by 25 Nov',optional:true}\r\n  ],\r\n  run:function(v,c){\r\n    var KPI={'Sales':['Cost per purchase','Return on ad spend (ROAS)','Conversion rate'],'Leads':['Cost per lead','Lead quality','Form completion rate'],'Brand awareness':['Reach','3-second video views','Cost per 1,000 impressions'],'Website traffic':['Click-through rate','Cost per click','Landing page views'],'App installs':['Cost per install','Install rate','Retention after 7 days']};\r\n    var del=[];v.formats.forEach(function(f){del.push(f+(v.platforms.length?' for '+v.platforms.join(', '):''));});\r\n    var blocks=[\r\n      {h:'Overview',ul:['Brand or product: '+v.brand].concat(v.campaign?['Campaign: '+v.campaign]:[]).concat(['Objective: '+v.objective]).concat(v.deadline?['Deadline: '+v.deadline]:[])},\r\n      {h:'Target audience',p:v.audience||'To be confirmed.'},\r\n      {h:'Key message',p:v.message},\r\n      {h:'Supporting points',ul:H.lines(v.points)},\r\n      {h:'Tone and style',p:v.tone||'To be confirmed.'},\r\n      {h:'Deliverables',ul:del.length?del:['To be confirmed']},\r\n      {h:'Call to action and offer',ul:['Button: '+v.cta].concat(v.offer?['Offer: '+v.offer]:[])},\r\n      {h:'Must include',ul:H.lines(v.must)},\r\n      {h:'References',p:v.refs||'None added.'},\r\n      {h:'How we will measure success',ul:KPI[v.objective]},\r\n      {h:'Notes for the creative team',ul:['Lead with the key message in the first 3 seconds or at first glance.','Keep text short and readable on a phone.','Keep key content inside safe zones for vertical formats.','Share 2 or 3 variations so we can test.']}\r\n    ].filter(function(b){return b.p||(b.ul&&b.ul.length);});\r\n    return [{type:'doc',title:'Creative brief: '+(v.campaign||v.brand),blocks:blocks}];\r\n  }\r\n});\r\n\r\n\/* ===== 10. Creative Testing Planner ===== *\/\r\ndefineTool({\r\n  slug:'creative-testing-planner',group:'copy',tag:'Planner',icon:'flask',color:'#EC4899',\r\n  name:'Creative Testing Planner',\r\n  card:'Plan which ad creatives to test and in what order.',\r\n  intro:'Plan your ad tests: what to change, how many versions to run, how much to spend and how long it takes.',\r\n  title:'Free Ad Creative Testing Planner | A\/B Test Plan',\r\n  meta:'Plan ad creative tests: choose what to change, how many variations to run and what to measure. Free creative testing planner.',\r\n  kw:'creative testing planner ab test ad variations budget plan hook angle format meta google testing roadmap',\r\n  regen:false,required:['budget','cpa','variants'],\r\n  faqs:[['How much should I spend per test version?','A common rule is to spend enough to get a handful of results for each version. This tool uses your target cost per result to work out that amount.'],['Should I test many things at once?','No. Change one thing per round, such as the hook, and keep everything else the same. Then you know what caused the difference.']],\r\n  fields:[\r\n    {id:'goal',label:'Goal',type:'select',options:['Sales','Leads','Website traffic'],ex:'Sales'},\r\n    {id:'cur',label:'Currency',type:'select',options:CUR_OPTS,ex:'\u20b9'},\r\n    {id:'budget',label:'Daily budget for testing',type:'number',ex:2000,ph:'e.g. 2000',min:1},\r\n    {id:'cpa',label:'Target cost per result',type:'number',ex:400,ph:'e.g. 400',min:1,hint:'What you can pay for one sale or lead.'},\r\n    {id:'variants',label:'Number of versions in the first test',type:'number',ex:4,ph:'e.g. 4',min:2,max:12},\r\n    {id:'results',label:'How sure do you want to be?',type:'select',options:[['3','Quick read (about 3 results each)'],['10','Standard (about 10 results each)'],['25','More reliable (about 25 results each)']],ex:'10'},\r\n    {id:'first',label:'What to test first',type:'select',options:['Angle or concept','Hook (first 3 seconds)','Format (image, video, carousel)','Offer','Visual or thumbnail','Call to action'],ex:'Angle or concept'}\r\n  ],\r\n  run:function(v,c){\r\n    var n=Math.max(2,Math.round(v.variants)),per=v.cpa*parseInt(v.results,10),total=per*n,days=Math.max(1,Math.ceil(total\/v.budget));\r\n    var ORDER=['Angle or concept','Hook (first 3 seconds)','Format (image, video, carousel)','Offer','Visual or thumbnail','Call to action'];\r\n    var seq=[v.first].concat(ORDER.filter(function(x){return x!==v.first;})).slice(0,4);\r\n    var KEEP={'Angle or concept':'Keep format, audience and offer the same. Change the main idea.','Hook (first 3 seconds)':'Keep the rest of the video the same. Change only the opening line and visual.','Format (image, video, carousel)':'Keep the message the same. Show it as image, video and carousel.','Offer':'Keep the creative the same. Change only the offer or price message.','Visual or thumbnail':'Keep the copy the same. Change only the image or cover frame.','Call to action':'Keep everything else the same. Change only the button or closing line.'};\r\n    var rows=seq.map(function(s,i){return ['Round '+(i+1),s,i===0?n+' versions':'3 versions: winner vs 2 new',KEEP[s]];});\r\n    var KPIS={'Sales':'cost per purchase and ROAS','Leads':'cost per lead and lead quality','Website traffic':'cost per click and landing page views'};\r\n    var parts=[{type:'stats',items:[H.stat('Spend per version',v.cur+H.num(per),'about '+v.results+' results each'),H.stat('Total test budget',v.cur+H.num(total),n+' versions'),H.stat('Test length',days+' day'+(days>1?'s':''),'at '+v.cur+H.num(v.budget)+' a day')]},\r\n      {type:'table',title:'Your testing roadmap',headers:['Round','What to test','How many','What stays the same'],rows:rows,strong:0}];\r\n    if(days>14)parts.push({type:'note',kind:'warn',title:'Long test:',text:'This would take '+days+' days. Try fewer versions, a smaller results target or a higher daily budget so you get answers faster.'});\r\n    else if(days<3)parts.push({type:'note',kind:'info',text:'Very short tests can be noisy. Let ads run at least 3 full days before judging, even if you hit the spend sooner.'});\r\n    parts.push({type:'sections',sections:[\r\n      {title:'Rules for fair testing',items:['Change one thing per round.','Give every version the same budget, audience and placements.','Judge on '+KPIS[v.goal]+', not on likes.','Don\u2019t switch ads off in the first day or two. Wait for enough spend.','When one version clearly wins, keep it and test the next round against it.'].map(function(x){return {text:x};})},\r\n      {title:'Keep a simple test log',items:['Date and round','What changed','Spend and results per version','Winner and what you learned','Next test'].map(function(x){return {text:x};})}]});\r\n    return parts;\r\n  }\r\n});\r\n\r\n\/* ===== 11. Creative Naming Convention Generator ===== *\/\r\ndefineTool({\r\n  slug:'ad-naming-convention-generator',group:'copy',tag:'Planner',icon:'label',color:'#64748B',\r\n  name:'Creative Naming Convention Generator',\r\n  card:'Name ads and creatives in a clean, trackable way.',\r\n  intro:'Create consistent names for campaigns, ad sets and ads, so every report is easy to read and filter.',\r\n  title:'Free Ad Naming Convention Generator | Creative Names',\r\n  meta:'Generate consistent names for campaigns, ad sets and creatives so reports are easy to read. Copy the format in one click. Free tool.',\r\n  kw:'ad naming convention generator campaign naming ad set names creative names utm reporting meta google',\r\n  regen:false,required:['campaign'],\r\n  faqs:[['Why use a naming convention?','Clear names let you filter and compare results quickly, especially when you run many ads or work in a team.'],['Which separator is best?','Underscores are common and safe in most tools. Pick one and stick to it everywhere.']],\r\n  fields:[\r\n    {id:'sep',label:'Separator',type:'select',options:[['_','Underscore ( _ )'],['-','Dash ( - )'],['|','Pipe ( | )']],ex:'_'},\r\n    {id:'style',label:'Text style',type:'select',options:['PascalCase','lowercase','UPPERCASE'],ex:'PascalCase'},\r\n    {id:'platform',label:'Platform',type:'select',options:['Meta','Google','YouTube','LinkedIn','TikTok'],ex:'Meta'},\r\n    {id:'objective',label:'Objective',type:'select',options:['Sales','Leads','Traffic','Awareness'],ex:'Sales'},\r\n    {id:'campaign',label:'Campaign name',type:'text',ex:'Festive Sale',ph:'e.g. Festive Sale'},\r\n    {id:'datefmt',label:'Date format',type:'select',options:['YYYY-MM','YYMM','MonYY','None'],ex:'YYYY-MM'},\r\n    {id:'audience',label:'Audience (for ad set)',type:'text',ex:'Lookalike 1%',ph:'e.g. Lookalike 1%',optional:true},\r\n    {id:'geo',label:'Location',type:'text',ex:'India',ph:'e.g. India',optional:true},\r\n    {id:'placement',label:'Placement',type:'text',ex:'Advantage+',ph:'e.g. Reels',optional:true},\r\n    {id:'ctype',label:'Creative type',type:'select',options:['Image','Video','Carousel','UGC','Static'],ex:'UGC'},\r\n    {id:'concepts',label:'Ad concepts (one per line)',type:'textarea',raw:true,rows:4,ex:'Hook Pain Point\\nHook Social Proof\\nFounder Story',ph:'One concept per line'},\r\n    {id:'format',label:'Format',type:'select',options:['1x1','4x5','9x16','16x9','Mixed'],ex:'9x16'},\r\n    {id:'versions',label:'Versions per concept',type:'select',options:['1','2','3'],ex:'2'}\r\n  ],\r\n  run:function(v,c){\r\n    var sep=v.sep;\r\n    function tok(s){\r\n      s=String(s).replace(\/[\\\\\\\/|_]\/g,' ').replace(\/[^\\w%+\\s-]\/g,'').replace(\/-\/g,' ').replace(\/\\s+\/g,' ').trim();if(!s)return '';\r\n      if(v.style==='lowercase')return s.toLowerCase().replace(\/ \/g,'');\r\n      if(v.style==='UPPERCASE')return s.toUpperCase().replace(\/ \/g,'');\r\n      return s.split(' ').map(function(w){return w.charAt(0).toUpperCase()+w.slice(1);}).join('');\r\n    }\r\n    var d=new Date(),M=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],yy=String(d.getFullYear()),mm=('0'+(d.getMonth()+1)).slice(-2);\r\n    var date=v.datefmt==='YYYY-MM'?yy+'-'+mm:v.datefmt==='YYMM'?yy.slice(2)+mm:v.datefmt==='MonYY'?M[d.getMonth()]+yy.slice(2):'';\r\n    function join(a){return a.filter(Boolean).join(sep);}\r\n    var camp=join([tok(v.platform),tok(v.objective),tok(v.campaign),date.replace(\/-\/g,sep==='-'?'':'-')]);\r\n    var adset=join([tok(v.audience),tok(v.geo),tok(v.placement)]);\r\n    var concepts=H.lines(v.concepts).slice(0,12),n=parseInt(v.versions,10),ads=[];\r\n    concepts.forEach(function(cn){for(var i=1;i<=n;i++)ads.push(join([tok(v.ctype),tok(cn),'V'+i,tok(v.format)]));});\r\n    var utm=(tok(v.campaign)||'campaign').toLowerCase();\r\n    var parts=[{type:'sections',sections:[\r\n      {title:'Campaign name',items:[{text:camp}]},\r\n      {title:'Ad set name',items:adset?[{text:adset}]:[{text:'Add an audience, location or placement to build an ad set name.'}]},\r\n      {title:'Ad names ('+ads.length+')',note:'Format: creative type, concept, version, format.',items:ads.map(function(x){return {text:x};})}\r\n    ]},{type:'sections',sections:[{title:'Matching UTM value',note:'Use the same name in your link tags so ad platform and analytics reports match.',items:[{text:'utm_campaign='+utm.replace(\/[^a-z0-9%+]+\/g,'_')}]}]}];\r\n    parts.push({type:'sections',sections:[{title:'Naming tips',items:['Order the parts from broad to specific.','Use the same words and spelling every time.','Avoid spaces and special characters.','Add the version number every time you change an ad.'].map(function(x){return {text:x};})}]});\r\n    return parts;\r\n  }\r\n});\r\n\r\n\/* ===== 12. Ad Policy Checklist ===== *\/\r\ndefineTool({\r\n  slug:'ad-policy-checklist',group:'copy',tag:'Checklist',icon:'shield',color:'#10B981',\r\n  name:'Ad Policy Checklist',\r\n  card:'Check your ad against common policy rules.',\r\n  intro:'Go through common Meta and Google ad policy checks before you submit, so fewer ads get rejected.',\r\n  title:'Free Ad Policy Checklist | Meta & Google Ads',\r\n  meta:'Check your ad text, images and landing page against common Meta and Google ad policy rules before you submit. Free checklist.',\r\n  kw:'ad policy checklist meta google ads rejected disapproved compliance rules restricted claims landing page',\r\n  regen:false,required:[],\r\n  faqs:[['Is this the official policy?','No. It is a practical checklist of common issues. Always read the current Meta and Google ad policies, which change often.'],['Why do ads get rejected?','Common reasons are misleading claims, restricted products, personal attributes, poor landing pages and missing disclosures.']],\r\n  fields:[\r\n    {id:'platform',label:'Platform',type:'select',options:['Meta (Facebook & Instagram)','Google Ads','Both'],ex:'Both'},\r\n    {id:'industry',label:'Industry',type:'select',options:['General','Health & wellness','Finance & loans','Education & courses','Real estate & housing','Jobs & employment','Ecommerce'],ex:'General'}\r\n  ],\r\n  run:function(v,c){\r\n    function I(id,text,hint){return {id:id,text:text,hint:hint};}\r\n    var G=[{title:'For every ad',items:[\r\n      I('a1','The ad matches the landing page (offer, price, product).'),\r\n      I('a2','All claims are true and you can back them up.','No guaranteed results or fake scarcity.'),\r\n      I('a3','Wording is clear, not misleading or clickbait.'),\r\n      I('a4','No ALL CAPS, repeated punctuation or odd symbols.','Example to avoid: \u201cBUY NOW!!!\u201d'),\r\n      I('a5','Spelling and grammar are correct.'),\r\n      I('a6','You own or have permission for every image, video, font and music track.'),\r\n      I('a7','Prices, fees, subscriptions and free-trial terms are clear.'),\r\n      I('a8','The landing page loads fast, works on mobile and is not broken or under construction.'),\r\n      I('a9','Business name, contact details and a privacy policy are easy to find.'),\r\n      I('a10','The product or service is allowed to be advertised.','Check prohibited and restricted lists.')]}];\r\n    var meta=v.platform!=='Google Ads',goog=v.platform!=='Meta (Facebook & Instagram)';\r\n    if(meta)G.push({title:'Meta checks',items:[\r\n      I('m1','The text does not imply you know personal attributes.','Avoid lines like \u201cAre you struggling with debt?\u201d or \u201cYour diabetes\u2026\u201d.'),\r\n      I('m2','No before-and-after images for health, weight-loss or cosmetic offers.'),\r\n      I('m3','If it is about credit, jobs, housing or social issues or politics, the right special ad category is selected.'),\r\n      I('m4','Restricted products (alcohol, gambling, dating, supplements, crypto) meet Meta\u2019s requirements and any approval needed.'),\r\n      I('m5','Images are clear, not distorted, and not misleading or shocking.'),\r\n      I('m6','You do not use Meta\u2019s logos in a way that suggests endorsement.'),\r\n      I('m7','Your Page and domain are set up and verified where required.')]});\r\n    if(goog)G.push({title:'Google Ads checks',items:[\r\n      I('g1','No gimmicky capitalization, repeated words or unneeded punctuation in headlines.'),\r\n      I('g2','Superlatives such as \u201cbest\u201d or \u201c#1\u201d are backed by proof on your page.'),\r\n      I('g3','No phone numbers in headlines or descriptions.','Use a call asset instead.'),\r\n      I('g4','You do not use someone else\u2019s trademark in your ad text without permission.'),\r\n      I('g5','The final URL works, matches the ad and has no unexpected pop-ups or auto-downloads.'),\r\n      I('g6','Restricted categories (healthcare, financial products, gambling, alcohol) have any needed certification for your country.'),\r\n      I('g7','If you collect data, your page has a clear privacy policy.')]});\r\n    var X={\r\n     'Health & wellness':[I('h1','No promises to cure, treat or prevent a disease.'),I('h2','No claims about a person\u2019s own health condition.','Avoid second-person health targeting language.'),I('h3','Disclaimers and ingredient or safety information are shown where needed.'),I('h4','Supplements, medicines and treatments follow your country\u2019s rules.')],\r\n     'Finance & loans':[I('f1','Rates, fees and repayment terms are stated clearly.'),I('f2','No guaranteed returns or \u201ceasy money\u201d claims.'),I('f3','Your licence or registration details are shown where required.'),I('f4','Financial products are approved for ads in the countries you target.')],\r\n     'Education & courses':[I('e1','Job placement, salary or result claims are real and can be proven.'),I('e2','Accreditation and certification are described accurately.'),I('e3','Course price, duration and what is included are clear.')],\r\n     'Real estate & housing':[I('r1','Housing ads do not discriminate by age, gender, race, religion or similar traits.'),I('r2','Meta housing special ad category is selected where it applies.'),I('r3','Property details and prices are accurate and up to date.')],\r\n     'Jobs & employment':[I('j1','Meta employment special ad category is selected where it applies.'),I('j2','Job ads do not exclude people unfairly by age, gender or background.'),I('j3','Pay, role and location claims are accurate.')],\r\n     'Ecommerce':[I('c1','Shipping costs, delivery times and return terms are easy to find.'),I('c2','The price in the ad matches the price on the page.'),I('c3','Counterfeit, replica or unauthorized brand products are not advertised.'),I('c4','Product images show the real product.')]\r\n    };\r\n    if(X[v.industry])G.push({title:v.industry+' checks',items:X[v.industry]});\r\n    return [{type:'note',kind:'warn',title:'This is a guide, not an official approval.',text:'Platform policies change often. Read the latest Meta and Google ad policies before you submit.'},{type:'checklist',key:'policy',groups:G}];\r\n  }\r\n});\r\n\r\n\/* Shared negative keyword bank (used by tools 16 and 18) *\/\r\nvar NEG={\r\n  'Jobs & careers':['jobs','job','careers','career','hiring','vacancy','vacancies','salary','salaries','internship','internships','resume','cv','recruitment','openings'],\r\n  'Free & freebies':['free','freebie','free download','crack','torrent','pirated','coupon code free'],\r\n  'Cheap & bargain':['cheap','cheapest','second hand','secondhand','used','refurbished'],\r\n  'DIY & how-to':['diy','how to','tutorial','tutorials','template','templates','example','examples','sample','samples','pdf','ppt'],\r\n  'Research & definitions':['wikipedia','wiki','definition','meaning','what is','history','news','statistics','facts','essay','research paper'],\r\n  'Reviews & complaints':['scam','fraud','complaint','complaints','lawsuit','legit'],\r\n  'Support & login':['login','log in','sign in','customer care','customer service number','helpline','contact number','toll free number'],\r\n  'Images & media':['images','image','pictures','photos','wallpaper','logo','clipart','icon','meme','lyrics','song','movie','youtube'],\r\n  'Students & learning':['homework','assignment','thesis','exam','syllabus','project report','notes','question paper']\r\n};\r\nvar NEG_INDUSTRY={\r\n  'Ecommerce \/ products':['wholesale','manufacturer','distributor','spare parts','repair','manual','olx'],\r\n  'Local services':['course','training','school','diploma','certification','franchise','salary'],\r\n  'Software \/ SaaS':['open source','github','crack','download free','api docs','tutorial'],\r\n  'Education \/ courses':['answers','solutions','free pdf','previous year','question paper','notes pdf'],\r\n  'Real estate':['agent salary','license exam','course','rental agreement format','interior design'],\r\n  'Healthcare \/ clinic':['home remedies','diy','symptoms','side effects','salary','course'],\r\n  'Restaurants \/ food':['recipe','recipes','how to make','ingredients','calories','franchise','wholesale'],\r\n  'Travel \/ hotels':['visa form','blog','packing list','how to','salary'],\r\n  'B2B services':['template','examples','course','certification','definition','what is'],\r\n  'Marketing agency':['course','certification','diy','tutorial','template','salary','free']\r\n};\r\nfunction normTok(s){return String(s).toLowerCase().replace(\/[^\\p{L}\\p{N}%+\\s]\/gu,' ').replace(\/\\s+\/g,' ').trim();}\r\nfunction fmtMatch(t,type){return type==='Exact'?'['+t+']':(type==='Phrase'?'\"'+t+'\"':t);}\r\nfunction termHasWord(term,word){var T=' '+normTok(term)+' ',W=' '+normTok(word)+' ';return T.indexOf(W)>-1;}\r\n\r\n\/* ===== 13. Audience Idea Generator ===== *\/\r\ndefineTool({\r\n  slug:'audience-idea-generator',group:'target',tag:'Audiences',icon:'users',color:'#2563EB',\r\n  name:'Audience Idea Generator',\r\n  card:'Get audience ideas for your product or service.',\r\n  intro:'Enter your product and get ready-to-use audience ideas, with how to target each one and what message to use.',\r\n  title:'Free Audience Idea Generator | Ad Targeting Ideas',\r\n  meta:'Enter your product to get audience ideas by interest, behavior, age and intent for Meta and Google ads. Free audience generator.',\r\n  kw:'audience idea generator ad targeting audiences meta google linkedin tiktok interests keywords retargeting lookalike',\r\n  regen:false,required:['product'],\r\n  faqs:[['Which audience should I start with?','Start with 2 or 3: people who already search for your product, people who visited your site, and one cold audience to find new customers.'],['Do I need a big budget to test audiences?','No. Test a few audiences with equal budgets and keep the ones with the lowest cost per result.']],\r\n  fields:[\r\n    {id:'product',label:'Product or service',type:'text',ex:'online yoga classes',ph:'e.g. online yoga classes'},\r\n    {id:'type',label:'Who buys it?',type:'select',options:['Consumers (B2C)','Businesses (B2B)','Local customers'],ex:'Consumers (B2C)'},\r\n    {id:'problem',label:'Problem it solves',type:'text',ex:'stress and back pain',ph:'e.g. stress and back pain',optional:true},\r\n    {id:'price',label:'Price level',type:'select',options:['Budget','Mid-range','Premium'],ex:'Mid-range'},\r\n    {id:'platform',label:'Platform',type:'select',options:['Meta (Facebook & Instagram)','Google Ads','LinkedIn','TikTok'],ex:'Meta (Facebook & Instagram)'},\r\n    {id:'location',label:'Location',type:'text',ex:'Pune',ph:'e.g. Pune',optional:true}\r\n  ],\r\n  run:function(v,c){\r\n    var vv=Object.assign({},v);vv.problem=v.problem||'the problem '+v.product+' solves';vv.location=v.location||'your area';\r\n    var key=v.platform.indexOf('Meta')===0?'meta':(v.platform==='Google Ads'?'google':(v.platform==='LinkedIn'?'linkedin':'tiktok'));\r\n    var t=v.type[0]==='C'?'b2c':(v.type[0]==='B'?'b2b':'local');\r\n    var priceWho={Budget:'Deal seekers who look for discounts, bundles and value.','Mid-range':'Smart shoppers who want good quality at a fair price.',Premium:'Quality-focused buyers who will pay more for the best.'}[v.price];\r\n    var A=[\r\n     {n:'People with the problem',s:'Cold',t:['b2c','b2b','local'],who:'People who feel {problem} but haven\u2019t picked a solution yet.',how:{meta:'Interests and behaviors linked to {problem}, and topics around {product}.',google:'Keywords like \u201chow to fix {problem}\u201d and \u201c{product} for {problem}\u201d.',linkedin:'Job titles, skills and groups that deal with {problem}.',tiktok:'Interest categories, hashtags and keywords around {problem}.'},msg:'Name the problem first, then show {product} as the fix.'},\r\n     {n:'People comparing options',s:'Warm',t:['b2c','b2b','local'],who:'People looking at several options before they decide.',how:{meta:'Interests in competitor brands and people who engage with reviews and comparison content.',google:'Keywords like \u201cbest {product}\u201d, \u201c{product} vs\u201d and \u201c{product} reviews\u201d.',linkedin:'Followers of competitor pages and industry groups, plus relevant job titles.',tiktok:'Interests and hashtags about product reviews, comparisons and \u201cworth it\u201d.'},msg:'Show why you are different: proof, reviews, results.'},\r\n     {n:'Ready to buy now',s:'Hot',t:['b2c','b2b','local'],who:'People who already know what they want and are ready to act.',how:{meta:'Retarget recent site visitors, product viewers and people who started checkout.',google:'High-intent keywords: \u201cbuy {product}\u201d, \u201c{product} price\u201d and \u201c{product} near me\u201d.',linkedin:'Retarget website visitors and people who opened your lead forms.',tiktok:'Retarget video viewers and site visitors from the last 7 to 30 days.'},msg:'Make the next step easy: offer, price, clear button.'},\r\n     {n:'Competitor audiences',s:'Cold',t:['b2c','b2b','local'],who:'People who already buy from or follow similar brands.',how:{meta:'Interests for competitor brands and similar pages.',google:'Competitor brand keywords (follow policy) and \u201calternative to\u201d searches.',linkedin:'Company targeting for competitor followers and similar firms.',tiktok:'Interests and creators connected to competing brands.'},msg:'Lead with what makes you a better choice.'},\r\n     {n:'Website visitors',s:'Warm',t:['b2c','b2b','local'],who:'People who visited your site but didn\u2019t buy.',how:{meta:'Custom audience of site visitors for 7, 14 and 30 days. Exclude buyers.',google:'Remarketing lists from the Google tag, by pages visited.',linkedin:'Website retargeting through the Insight Tag.',tiktok:'Custom audience from the TikTok Pixel.'},msg:'Remind, reassure and answer objections.'},\r\n     {n:'Past customers',s:'Existing',t:['b2c','b2b','local'],who:'People who already bought from you.',how:{meta:'Upload a customer list. Use it for upsells and as a lookalike source.',google:'Customer Match from your customer list.',linkedin:'Matched audiences from your customer list.',tiktok:'Customer file custom audience.'},msg:'Offer a refill, upgrade or referral reward.'},\r\n     {n:'Lookalikes of best customers',s:'Cold',t:['b2c','b2b','local'],who:'New people who look like your best customers.',how:{meta:'Lookalike audiences from your best customers, starting at 1%.',google:'Customer Match lists and Demand Gen lookalike segments.',linkedin:'Predictive audiences built from your customer list.',tiktok:'Lookalike audiences from your customer file or pixel events.'},msg:'Use your best-performing proof and offer.'},\r\n     {n:'Gift buyers',s:'Cold',t:['b2c'],who:'People buying for someone else around holidays and events.',how:{meta:'Interests in gifting, plus life events and seasonal windows.',google:'Keywords like \u201cgift for\u2026\u201d and \u201c{product} gift\u201d.',linkedin:'Not usually a LinkedIn audience. Use Meta or Google.',tiktok:'Gift-related hashtags and interests, shown in the weeks before key dates.'},msg:'Make it easy to give: gift wrap, delivery date, gift cards.'},\r\n     {n:'Decision makers',s:'Cold',t:['b2b'],who:'Owners, managers and team heads who can approve the purchase.',how:{meta:'Job title and industry interests (smaller reach).',google:'Business-intent keywords: \u201c{product} for business\u201d and \u201c{product} pricing\u201d.',linkedin:'Job titles, seniority, company size and industry.',tiktok:'Small-business owner interests. Works best for simple offers.'},msg:'Lead with business results, time saved and cost.'},\r\n     {n:'Local customers',s:'Cold',t:['local','b2c'],who:'People near {location} who can easily visit or book.',how:{meta:'Location targeting around {location} plus relevant interests.',google:'Location targeting for {location} with \u201cnear me\u201d keywords.',linkedin:'Location filter, combined with job or industry.',tiktok:'Location targeting for {location} with interests.'},msg:'Mention the area, opening times and an easy way to book.'},\r\n     {n:'Seasonal and event shoppers',s:'Cold',t:['b2c','local'],who:'People shopping around festivals, sales and holidays.',how:{meta:'Seasonal windows and interests tied to the event.',google:'Seasonal keywords such as \u201c{product} sale\u201d and \u201c{product} offers\u201d.',linkedin:'Time campaigns to budget cycles and industry events.',tiktok:'Trending hashtags and sounds during the season.'},msg:'Tie the offer to the occasion, with a clear end date.'},\r\n     {n:'Your price-level buyer',s:'Cold',t:['b2c','b2b','local'],who:priceWho,how:{meta:'Interests that match this buyer, such as deals and coupons, or premium brands.',google:'Keywords with price signals: \u201cbest price\u201d, \u201caffordable\u201d, \u201cpremium\u201d.',linkedin:'Company size and seniority that match your price level.',tiktok:'Hashtags and creators that match this buyer.'},msg:'Match the message to how they judge value.'},\r\n     {n:'Engaged social audience',s:'Warm',t:['b2c','local','b2b'],who:'People who watched your videos or follow your page.',how:{meta:'Video viewers (50%+) and page or Instagram engagers from the last 90 days.',google:'YouTube viewers and channel subscribers as remarketing lists.',linkedin:'People who engaged with your page, videos or lead forms.',tiktok:'Custom audience of people who watched or engaged with your videos.'},msg:'Continue the story with proof and an offer.'}\r\n    ];\r\n    var cards=A.filter(function(a){return a.t.indexOf(t)>-1;}).map(function(a,i){return {title:(i+1)+'. '+a.n,tag:a.s,fields:[{label:'Who they are',text:H.fill(a.who,vv)||a.who},{label:'How to reach them on '+v.platform,text:H.fill(a.how[key],vv)||a.how[key]},{label:'Message to use',text:H.fill(a.msg,vv)||a.msg}]};});\r\n    return [{type:'stats',items:[H.stat('Audience ideas',String(cards.length)),H.stat('Platform',v.platform.split(' (')[0])]},{type:'note',kind:'info',title:'Tip:',text:'Start with 3 audiences: one cold, one warm and one hot. Give each the same budget and keep the cheapest winners.'},{type:'cards',cards:cards}];\r\n  }\r\n});\r\n\r\n\/* ===== 14. Interest Targeting Planner ===== *\/\r\ndefineTool({\r\n  slug:'interest-targeting-planner',group:'target',tag:'Planner',icon:'heart',color:'#E11D48',\r\n  name:'Interest Targeting Planner',\r\n  card:'Group interests into clear ad set ideas.',\r\n  intro:'Paste your interest ideas and get them grouped into ad sets with budgets, exclusions and a simple test plan.',\r\n  title:'Free Interest Targeting Planner | Ad Set Ideas',\r\n  meta:'Plan interest targeting for Meta ads. Group interests into ad sets, add exclusions and test each audience. Free planner.',\r\n  kw:'interest targeting planner meta ads ad sets interests audience grouping budget exclusions test plan facebook instagram',\r\n  regen:false,required:['interests'],\r\n  faqs:[['How many interests should go in one ad set?','Keep related interests together, about 3 to 5 per ad set. That makes it easy to see which theme works.'],['Where do I find interest ideas?','Use the interest suggestions in Meta Ads Manager, competitor pages, magazines and communities in your niche, and the questions your customers ask.']],\r\n  fields:[\r\n    {id:'product',label:'Product or service',type:'text',ex:'online yoga classes',ph:'e.g. online yoga classes'},\r\n    {id:'goal',label:'Campaign goal',type:'select',options:['Sales','Leads','Traffic'],ex:'Sales'},\r\n    {id:'interests',label:'Interest ideas (one per line)',type:'textarea',raw:true,rows:6,ex:'Yoga\\nMeditation\\nWellness\\nPilates\\nMindfulness\\nHealthy living\\nFitness\\nStress management',ph:'One interest per line'},\r\n    {id:'competitors',label:'Competitor or similar brands (one per line)',type:'textarea',raw:true,rows:3,ex:'Cult.fit\\nYogaWorks',ph:'One brand per line',optional:true},\r\n    {id:'age',label:'Age range',type:'text',ex:'25-44',ph:'e.g. 25-44',optional:true},\r\n    {id:'location',label:'Location',type:'text',ex:'India',ph:'e.g. India',optional:true},\r\n    {id:'budget',label:'Daily budget for this campaign',type:'number',ex:1500,ph:'e.g. 1500',min:0,optional:true},\r\n    {id:'cur',label:'Currency',type:'select',options:CUR_OPTS,ex:'\u20b9'}\r\n  ],\r\n  run:function(v,c){\r\n    var ints=H.uniq(H.lines(v.interests)).slice(0,30),comps=H.uniq(H.lines(v.competitors)).slice(0,10);\r\n    var groups=H.chunk(ints,4).slice(0,6),sets=[];\r\n    groups.forEach(function(g,i){sets.push(['Interest set '+(i+1),g.join(', '),'Cold: related interests']);});\r\n    if(comps.length)sets.push(['Competitor set',comps.join(', '),'Cold: people who follow similar brands']);\r\n    sets.push(['Broad test','No interests (age and location only)','Cold: lets the platform find buyers']);\r\n    var n=sets.length,per=v.budget?Math.round(v.budget\/n):0,al=[v.age?'Age '+v.age:'',v.location||''].filter(Boolean).join(' \u00b7 ')||'Set in Ads Manager';\r\n    var rows=sets.map(function(s){return [s[0],s[1],al,per?v.cur+H.num(per):'Split equally',s[2]];});\r\n    var parts=[{type:'stats',items:[H.stat('Ad sets',String(n)),H.stat('Interests used',String(Math.min(ints.length,24))),H.stat('Budget per ad set',per?v.cur+H.num(per):'\u2014')]},\r\n      {type:'table',title:'Your ad set plan',headers:['Ad set','Targeting','Age and location','Daily budget','Type'],rows:rows,strong:0}];\r\n    if(ints.length>24)parts.push({type:'note',kind:'info',text:'You added '+ints.length+' interests. The first 24 are grouped here. Run the best sets first, then test the rest.'});\r\n    if(per&&per<v.budget\/50&&n>1)parts.push({type:'note',kind:'warn',text:'Budget per ad set is small. Test fewer ad sets at a time so each one gets enough spend.'});\r\n    parts.push({type:'sections',sections:[\r\n      {title:'Exclusions to add',items:['Existing customers (customer list)','People who bought in the last 30 days','Employees and partners'].map(function(x){return {text:x};})},\r\n      {title:'How to run the test',items:['Use the same ads and budget in every ad set so the comparison is fair.','Let each ad set spend enough to get a handful of results before you judge it.','Switch off the weakest sets and give their budget to the winners.','Always keep one broad ad set. It is often the cheapest.','Aim for a healthy audience size in Ads Manager. Avoid very narrow audiences.'].map(function(x){return {text:x};})},\r\n      {title:'More interest ideas to research',items:['Magazines, blogs and websites your customers read','Events, books and public figures in your niche','Competitor pages and their followers\u2019 other interests','Questions customers ask, and the words they use'].map(function(x){return {text:x};})}]});\r\n    return parts;\r\n  }\r\n});\r\n\r\n\/* ===== 15. Lookalike & Retargeting Audience Planner ===== *\/\r\ndefineTool({\r\n  slug:'lookalike-retargeting-audience-planner',group:'target',tag:'Planner',icon:'loop',color:'#7C3AED',\r\n  name:'Lookalike & Retargeting Audience Planner',\r\n  card:'Plan lookalike and retargeting audiences step by step.',\r\n  intro:'Tell us what customer data you have and get a clear map of lookalike and retargeting audiences, with time windows and messages.',\r\n  title:'Lookalike & Retargeting Audience Planner | Free',\r\n  meta:'Plan source audiences, lookalike sizes and retargeting windows for your ads. Get a simple audience map. Free planner.',\r\n  kw:'lookalike retargeting audience planner custom audience remarketing window source meta ads funnel cold warm hot',\r\n  regen:false,required:['sources'],\r\n  faqs:[['How big should a lookalike source be?','Meta needs at least 100 people from one country, and works best with about 1,000 to 5,000 of your best customers. Check Meta\u2019s current guidance.'],['How long should retargeting windows be?','Shorter windows (7 to 14 days) for people close to buying, and longer ones (30 to 90 days) for people who only looked around.']],\r\n  fields:[\r\n    {id:'type',label:'Business type',type:'select',options:['Ecommerce','Leads and services','Courses and education'],ex:'Ecommerce'},\r\n    {id:'sources',label:'Data you have',type:'checks',options:[['customers','Customer list'],['purchasers','Pixel purchasers'],['leads','Leads'],['visitors','Website visitors'],['cart','Add to cart or checkout'],['video','Video viewers'],['social','Instagram or Facebook engagers'],['email','Email subscribers']],ex:['customers','visitors','cart','video','social']},\r\n    {id:'customers',label:'Customers or purchasers (approx. count)',type:'number',ex:800,ph:'e.g. 800',min:0,optional:true},\r\n    {id:'traffic',label:'Website visitors per month',type:'number',ex:6000,ph:'e.g. 6000',min:0,optional:true},\r\n    {id:'budget',label:'Daily budget',type:'number',ex:3000,ph:'e.g. 3000',min:0,optional:true},\r\n    {id:'cur',label:'Currency',type:'select',options:CUR_OPTS,ex:'\u20b9'}\r\n  ],\r\n  run:function(v,c){\r\n    var s=v.sources,has=function(k){return s.indexOf(k)>-1;},cust=v.customers||0,tr=v.traffic||0;\r\n    var win=tr>=10000?7:(tr>=1000||!tr?30:90);\r\n    var rows=[],warn=[];\r\n    var buyer=has('purchasers')||has('customers')||has('leads')||has('email');\r\n    if(buyer){\r\n      var src=has('purchasers')?'Pixel purchasers':(has('customers')?'Customer list':(has('leads')?'Leads':'Email subscribers'));\r\n      if(cust&&cust<100)warn.push('Your best customer source is under 100 people, which is too small for a lookalike. Use interest and broad targeting for now and keep collecting customers.');\r\n      else{\r\n        rows.push(['Cold','Lookalike 1%',src+' (best customers)',cust&&cust<1000?'Works, but a larger source (1,000+) is better':'Strong starting point','Lead with your best proof and offer']);\r\n        if(!cust||cust>=1000)rows.push(['Cold','Lookalike 1\u20133%',src,'Wider reach once 1% is working','Same ads as 1%, test separately']);\r\n      }\r\n    }\r\n    rows.push(['Cold','Interests and broad','New people, no source needed','Always keep one broad test','Explain the problem and your solution']);\r\n    if(has('video'))rows.push(['Warm','Video viewers 50%+ (30 to 90 days)','Video views','Warms people who watched','Proof, demo or testimonial']);\r\n    if(has('social'))rows.push(['Warm','Social engagers (90 days)','Instagram or Facebook engagement','Low-cost audience','Story, reviews, soft offer']);\r\n    if(has('visitors'))rows.push(['Warm','Website visitors ('+win+' days)','Pixel or Google tag','Exclude buyers',v.type==='Ecommerce'?'Best sellers, reviews, small incentive':'Case studies, FAQs, free consult']);\r\n    if(has('cart'))rows.push(['Hot','Cart or checkout (7 to 14 days)','Add to cart and checkout events','Highest intent, smallest audience','Reminder, free shipping or limited bonus']);\r\n    if(has('customers')||has('purchasers'))rows.push(['Existing','Past customers (180 days)','Customer list or purchasers','Upsell and referrals','Refill, upgrade or new arrival']);\r\n    var splits=has('cart')||has('visitors')?[['Cold (find new people)',0.7],['Warm (visitors and engagers)',0.2],['Hot (cart and checkout)',0.1]]:[['Cold (find new people)',0.8],['Warm (video and social)',0.2]];\r\n    var parts=[{type:'table',title:'Your audience map',headers:['Stage','Audience','Source','Notes','Message idea'],rows:rows,strong:1}];\r\n    warn.forEach(function(w){parts.push({type:'note',kind:'warn',text:w});});\r\n    if(v.budget)parts.push({type:'table',title:'Suggested budget split',note:'A common starting point. Adjust as you see results.',headers:['Stage','Share','Daily budget'],rows:splits.map(function(x){return [x[0],Math.round(x[1]*100)+'%',v.cur+H.num(v.budget*x[1])];}),strong:0});\r\n    var excl=['Exclude purchasers (last 14 to 30 days) from cold and warm campaigns.','Exclude retargeting audiences from cold campaigns, so you don\u2019t pay twice for the same people.','Refresh retargeting creative every 2 to 3 weeks.'];\r\n    parts.push({type:'sections',sections:[{title:'Exclusion and setup rules',items:excl.map(function(x){return {text:x};})},{title:'Before you start',items:['Install the pixel or tag and check that events are firing.','Make sure customer lists follow privacy rules and have consent.','Audience windows and minimums change, so check the platform\u2019s current rules.'].map(function(x){return {text:x};})}]});\r\n    return parts;\r\n  }\r\n});\r\n\r\n\/* ===== 16. Negative Keyword Generator ===== *\/\r\ndefineTool({\r\n  slug:'negative-keyword-generator',group:'target',tag:'Keywords',icon:'minus',color:'#DC2626',\r\n  name:'Negative Keyword Generator',\r\n  card:'Find negative keywords to stop wasted clicks.',\r\n  intro:'Get a list of negative keyword ideas by industry and intent, formatted for Google Ads and checked against your own keywords.',\r\n  title:'Free Negative Keyword Generator | Google Ads',\r\n  meta:'Generate negative keyword ideas by industry and intent to cut wasted spend in Google Ads. Copy as broad, phrase or exact. Free tool.',\r\n  kw:'negative keyword generator google ads wasted spend irrelevant clicks exclude keywords phrase exact broad list',\r\n  regen:false,required:['keywords'],\r\n  faqs:[['What is a negative keyword?','A negative keyword stops your ad showing for searches that contain that word, so you don\u2019t pay for clicks you don\u2019t want.'],['Can negative keywords hurt my ads?','Yes, if you block a word your customers use. This tool skips words that match your own keywords, but always review the list before adding it.']],\r\n  fields:[\r\n    {id:'keywords',label:'Your keywords (one per line)',type:'textarea',raw:true,rows:4,ex:'yoga classes online\\nonline yoga teacher\\nyoga for beginners',ph:'One keyword per line'},\r\n    {id:'industry',label:'Industry',type:'select',options:['General'].concat(Object.keys(NEG_INDUSTRY)),ex:'Local services'},\r\n    {id:'cats',label:'Intent categories to block',type:'checks',options:Object.keys(NEG),ex:['Jobs & careers','Free & freebies','Research & definitions','Support & login','Images & media','Students & learning']},\r\n    {id:'custom',label:'Your own negatives, such as competitors (one per line)',type:'textarea',raw:true,rows:3,ex:'',ph:'One word or phrase per line',optional:true},\r\n    {id:'match',label:'Match type format',type:'select',options:['Phrase','Exact','Broad'],ex:'Phrase'}\r\n  ],\r\n  run:function(v,c){\r\n    var kws=H.lines(v.keywords).map(normTok);\r\n    var kwTokens={};kws.forEach(function(k){k.split(' ').forEach(function(w){if(w)kwTokens[w]=1;});});\r\n    var skipped=[],groups=[];\r\n    function ok(term){\r\n      var n=normTok(term);if(!n)return false;\r\n      var tk=n.split(' ');\r\n      for(var i=0;i<tk.length;i++){if(kwTokens[tk[i]]){skipped.push(term);return false;}}\r\n      return true;\r\n    }\r\n    v.cats.forEach(function(k){var list=H.uniq(NEG[k].filter(ok));if(list.length)groups.push([k,list]);});\r\n    if(NEG_INDUSTRY[v.industry]){var li=H.uniq(NEG_INDUSTRY[v.industry].filter(ok));if(li.length)groups.push([v.industry+' extras',li]);}\r\n    var cu=H.uniq(H.lines(v.custom).filter(ok));if(cu.length)groups.push(['Your own negatives',cu]);\r\n    var seen={},secs=[],total=0;\r\n    groups.forEach(function(g){var items=g[1].filter(function(t){var k=t.toLowerCase();if(seen[k])return false;seen[k]=1;return true;});if(!items.length)return;total+=items.length;secs.push({title:g[0]+' ('+items.length+')',items:items.map(function(t){return {text:fmtMatch(t,v.match)};})});});\r\n    if(!secs.length)return [{type:'note',kind:'info',text:'Pick at least one category, or add your own negatives.'}];\r\n    var all=[];secs.forEach(function(s){s.items.forEach(function(i){all.push(i.text);});});\r\n    var parts=[{type:'stats',items:[H.stat('Negative keywords',String(total)),H.stat('Format',v.match),H.stat('Skipped to protect you',String(H.uniq(skipped).length))]}];\r\n    parts.push({type:'text',title:'Copy-ready list ('+total+')',text:all.join('\\n')});\r\n    parts.push({type:'sections',sections:secs});\r\n    if(skipped.length)parts.push({type:'note',kind:'info',title:'Skipped:',text:H.uniq(skipped).join(', ')+' (they contain words from your own keywords).'});\r\n    parts.push({type:'note',kind:'warn',title:'Review before adding:',text:'Read the list once and delete any word your customers might use. In Google Ads, add them at account or campaign level as a negative keyword list. Check the search terms report weekly for new ones.'});\r\n    return parts;\r\n  }\r\n});\r\n\r\n\/* ===== 17. Keyword Match Type Guide ===== *\/\r\ndefineTool({\r\n  slug:'keyword-match-type-guide',group:'target',tag:'Guide',icon:'brackets',color:'#0891B2',\r\n  name:'Keyword Match Type Guide',\r\n  card:'Learn broad, phrase and exact match with examples.',\r\n  intro:'Understand broad, phrase and exact match in Google Ads, and turn a list of keywords into any match type in one click.',\r\n  title:'Google Ads Keyword Match Types Guide | Free Tool',\r\n  meta:'Understand broad, phrase and exact match with examples. Type a keyword to see each match type format. Free keyword match guide.',\r\n  kw:'keyword match type guide google ads broad phrase exact match brackets quotes converter format keywords',\r\n  regen:false,required:['keywords'],\r\n  faqs:[['What is the difference between broad, phrase and exact match?','Broad match reaches the widest range of related searches, phrase match matches searches that include the meaning of your keyword, and exact match matches searches with the same meaning or intent.'],['Which match type should I start with?','Many advertisers start with phrase and exact for control, then add broad match with strong conversion tracking and smart bidding.']],\r\n  fields:[\r\n    {id:'keywords',label:'Keywords (one per line)',type:'textarea',raw:true,rows:5,ex:'running shoes\\nbuy running shoes online\\nwomens trail running shoes',ph:'One keyword per line'},\r\n    {id:'types',label:'Match types to create',type:'checks',options:['Broad','Phrase','Exact'],ex:['Broad','Phrase','Exact']}\r\n  ],\r\n  run:function(v,c){\r\n    var ks=H.uniq(H.lines(v.keywords).map(function(k){return k.replace(\/^[\"\\[]+|[\"\\]]+$\/g,'').trim();}).filter(Boolean));\r\n    var types=v.types.length?v.types:['Broad','Phrase','Exact'];\r\n    var secs=types.map(function(t){return {title:t+' match',note:t==='Broad'?'Type the keyword as it is.':(t==='Phrase'?'Put the keyword in quotation marks.':'Put the keyword in square brackets.'),items:ks.map(function(k){return {text:fmtMatch(k,t)};})};});\r\n    var rows=[['Broad','keyword','Searches related to your keyword, including related ideas and synonyms.','Finding new searches, with good conversion data and smart bidding.'],\r\n      ['Phrase','\"keyword\"','Searches that include the meaning of your keyword, with extra words before or after.','A balance of reach and control.'],\r\n      ['Exact','[keyword]','Searches with the same meaning or intent as your keyword.','High-value keywords where you want tight control.']];\r\n    return [{type:'sections',sections:secs},{type:'table',title:'What each match type does',headers:['Type','Format','What it can match','Best for'],rows:rows,strong:0},{type:'note',kind:'info',title:'Remember:',text:'Add negative keywords for any match type. Check the search terms report often and move winning search terms into exact or phrase match.'}];\r\n  }\r\n});\r\n\r\n\/* ===== 18. Search Term Cleaner ===== *\/\r\ndefineTool({\r\n  slug:'search-term-cleaner',group:'target',tag:'Cleaner',icon:'broom',color:'#F97316',\r\n  name:'Search Term Cleaner',\r\n  card:'Clean search term reports and spot waste fast.',\r\n  intro:'Paste your Google Ads search terms. Remove duplicates, flag wasteful terms and get negative keyword ideas. Your data stays in your browser.',\r\n  title:'Free Search Term Cleaner | Google Ads Reports',\r\n  meta:'Paste your search terms report to remove duplicates, group similar terms and find negative keyword ideas. Free cleaner.',\r\n  kw:'search term cleaner google ads search terms report negative keywords duplicates wasted spend analyze paste csv',\r\n  regen:false,required:['terms'],\r\n  faqs:[['What format should I paste?','One search term per line. You can also paste columns copied from Google Ads in this order: search term, clicks, cost, conversions.'],['Is my data uploaded anywhere?','No. Everything runs in your browser, so your report never leaves your device.']],\r\n  fields:[\r\n    {id:'terms',label:'Search terms (one per line, optional columns)',type:'textarea',raw:true,rows:9,ex:'yoga classes online\\t40\\t800\\t5\\nfree yoga videos\\t55\\t900\\t0\\nyoga teacher jobs\\t20\\t450\\t0\\nbest online yoga classes\\t30\\t700\\t3\\nYoga Classes Online\\t10\\t200\\t1\\nyoga classes online reviews\\t12\\t260\\t0\\nhow to do yoga at home pdf\\t18\\t300\\t0\\nyoga certification course\\t9\\t240\\t0',ph:'search term, clicks, cost, conversions'},\r\n    {id:'keywords',label:'Your keywords (one per line)',type:'textarea',raw:true,rows:3,ex:'yoga classes\\nonline yoga',ph:'Used to spot off-topic terms',optional:true},\r\n    {id:'cats',label:'Flag terms about',type:'checks',options:['Jobs & careers','Free & freebies','DIY & how-to','Research & definitions','Reviews & complaints','Students & learning'],ex:['Jobs & careers','Free & freebies','DIY & how-to','Reviews & complaints','Students & learning']},\r\n    {id:'comp',label:'Competitor or brand names to flag (one per line)',type:'textarea',raw:true,rows:2,ex:'',ph:'One name per line',optional:true},\r\n    {id:'dedupe',label:'Remove duplicates (merge numbers)',type:'toggle',ex:true}\r\n  ],\r\n  run:function(v,c){\r\n    var lines=H.lines(v.terms),map={},order=[],hasNum=false;\r\n    lines.forEach(function(l,i){\r\n      var cells=l.split(\/\\t|,(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)\/).map(function(x){return x.replace(\/^\"|\"$\/g,'').trim();});\r\n      var term=cells[0];if(!term)return;\r\n      if(i===0&&\/^(search term|term|keyword)\/i.test(term))return;\r\n      var nums=cells.slice(1).map(function(x){var n=parseFloat(x.replace(\/[^0-9.\\-]\/g,''));return isNaN(n)?null:n;});\r\n      if(nums.some(function(n){return n!==null;}))hasNum=true;\r\n      var key=normTok(term);if(!key)return;\r\n      var rec={term:term.toLowerCase().replace(\/\\s+\/g,' '),clicks:nums[0]||0,cost:nums[1]||0,conv:nums[2]||0,n:1};\r\n      if(v.dedupe&&map[key]){var m=map[key];m.clicks+=rec.clicks;m.cost+=rec.cost;m.conv+=rec.conv;m.n++;}\r\n      else{var k=v.dedupe?key:key+'#'+i;map[k]=rec;order.push(k);}\r\n    });\r\n    var rows=order.map(function(k){return map[k];});\r\n    if(!rows.length)return [{type:'note',kind:'info',text:'Paste at least one search term.'}];\r\n    var kws=H.lines(v.keywords).map(normTok),kwTok={};kws.forEach(function(k){k.split(' ').forEach(function(w){if(w.length>2)kwTok[w]=1;});});\r\n    var comp=H.lines(v.comp);\r\n    var flagged=[],negWords={};\r\n    rows.forEach(function(r){\r\n      var reasons=[],words=[];\r\n      (v.cats||[]).forEach(function(cat){(NEG[cat]||[]).forEach(function(w){if(termHasWord(r.term,w)){if(reasons.indexOf(cat)<0)reasons.push(cat);if(words.indexOf(w)<0)words.push(w);}});});\r\n      comp.forEach(function(cn){if(termHasWord(r.term,cn)){reasons.push('Competitor or brand');words.push(cn);}});\r\n      var off=false;\r\n      if(kws.length){var tk=normTok(r.term).split(' ');off=!tk.some(function(w){return kwTok[w];});if(off&&!reasons.length)reasons.push('Possibly off-topic');}\r\n      if(reasons.length){\r\n        \/\/ protect: do not suggest words that are in the user's keywords\r\n        words.forEach(function(w){var nw=normTok(w);if(!nw.split(' ').some(function(x){return kwTok[x];}))negWords[w]=(negWords[w]||0)+1;});\r\n        flagged.push({r:r,reasons:reasons});\r\n      }\r\n    });\r\n    var wasted=0;flagged.forEach(function(f){if(!f.r.conv)wasted+=f.r.cost;});\r\n    var totalCost=rows.reduce(function(s,r){return s+r.cost;},0);\r\n    var stats=[H.stat('Terms pasted',String(lines.length)),H.stat('Unique terms',String(rows.length)),H.stat('Flagged',String(flagged.length))];\r\n    if(hasNum)stats.push(H.stat('Spend on flagged terms with no conversions',H.num(wasted),totalCost?Math.round(wasted\/totalCost*100)+'% of total spend':''));\r\n    var flaggedSet={};flagged.forEach(function(f){flaggedSet[f.r.term]=1;});\r\n    var clean=rows.filter(function(r){return !flaggedSet[r.term];}).map(function(r){return r.term;});\r\n    var parts=[{type:'stats',items:stats}];\r\n    if(flagged.length){\r\n      var ft=flagged.slice().sort(function(a,b){return b.r.cost-a.r.cost;}).slice(0,100);\r\n      parts.push({type:'table',title:'Flagged search terms ('+flagged.length+')',headers:hasNum?['Search term','Why flagged','Clicks','Cost','Conv.']:['Search term','Why flagged'],rows:ft.map(function(f){return hasNum?[f.r.term,f.reasons.join(', '),H.num(f.r.clicks),H.num(f.r.cost),H.num(f.r.conv,1)]:[f.r.term,f.reasons.join(', ')];}),strong:0});\r\n      var nw=Object.keys(negWords).sort(function(a,b){return negWords[b]-negWords[a];});\r\n      if(nw.length)parts.push({type:'sections',sections:[{title:'Negative keyword ideas ('+nw.length+')',note:'Words found in flagged terms. Review each one before adding it as a negative keyword.',items:nw.map(function(w){return {text:w,sub:'Found in '+negWords[w]+' flagged term'+(negWords[w]>1?'s':'')};})}]});\r\n    }else parts.push({type:'note',kind:'info',text:'No terms were flagged with these settings. Try turning on more categories.'});\r\n    if(clean.length)parts.push({type:'text',title:'Cleaned list: not flagged ('+clean.length+')',text:clean.join('\\n')});\r\n    return parts;\r\n  }\r\n});\r\n\r\n\/* ===== 19. Campaign Structure Planner ===== *\/\r\ndefineTool({\r\n  slug:'campaign-structure-planner',group:'target',tag:'Planner',icon:'tree',color:'#4F46E5',\r\n  name:'Campaign Structure Planner',\r\n  card:'Plan campaigns, ad sets and ads before you build.',\r\n  intro:'Get a clear campaign, ad set and ad structure for Meta or Google Search, with a budget split you can follow.',\r\n  title:'Free Ad Campaign Structure Planner | Meta & Google',\r\n  meta:'Plan your campaign, ad group or ad set and ad structure by goal and budget. Get a clear layout to follow. Free planner.',\r\n  kw:'campaign structure planner meta google ads account structure ad sets ad groups budget split prospecting retargeting search',\r\n  regen:false,required:['offers'],\r\n  faqs:[['How many campaigns do I need?','Fewer is better when you are small. Start with one prospecting campaign and one retargeting campaign, then add more as your budget grows.'],['How should I split the budget?','A common start is about 70% for finding new customers, 20% for retargeting and 10% for testing. Adjust it as you see results.']],\r\n  fields:[\r\n    {id:'platform',label:'Platform',type:'select',options:['Meta Ads','Google Search Ads','Both'],ex:'Meta Ads'},\r\n    {id:'goal',label:'Goal',type:'select',options:['Sales','Leads'],ex:'Sales'},\r\n    {id:'offers',label:'Products or services (one per line)',type:'textarea',raw:true,rows:4,ex:'Beginner yoga course\\nAdvanced yoga course\\nPrivate coaching',ph:'One per line'},\r\n    {id:'brand',label:'Brand name',type:'text',ex:'ZenFlow',ph:'e.g. ZenFlow',optional:true},\r\n    {id:'location',label:'Location',type:'text',ex:'India',ph:'e.g. India',optional:true},\r\n    {id:'budget',label:'Total daily budget',type:'number',ex:3000,ph:'e.g. 3000',min:0,optional:true},\r\n    {id:'cur',label:'Currency',type:'select',options:CUR_OPTS,ex:'\u20b9'}\r\n  ],\r\n  run:function(v,c){\r\n    var offers=H.lines(v.offers).slice(0,8),loc=v.location||'All locations';\r\n    var both=v.platform==='Both',doMeta=v.platform!=='Google Search Ads',doG=v.platform!=='Meta Ads';\r\n    var share=both?0.5:1;\r\n    function money(f){return v.budget?v.cur+H.num(v.budget*share*f)+'\/day':'';}\r\n    var tree=[],camps=0,groups=0;\r\n    if(doMeta){\r\n      var m={label:'Meta Ads',kind:'plat',children:[]};\r\n      var pros={label:'Prospecting \u00b7 '+v.goal+' \u00b7 '+loc,sub:'~70% of Meta budget'+(money(0.7)?' \u00b7 '+money(0.7):''),kind:'camp',children:[]};\r\n      ['Broad audience (no interests)','Interests: core topics','Lookalike 1% (when you have a customer list)'].forEach(function(a){\r\n        pros.children.push({label:'Ad set: '+a,kind:'adset',children:offers.slice(0,3).map(function(o){return {label:'Ads: '+o,sub:'3 to 5 creatives: image, video, UGC or carousel',kind:'ad'};})});groups++;\r\n      });\r\n      var ret={label:'Retargeting \u00b7 '+v.goal,sub:'~20% \u00b7 '+(money(0.2)||'smaller budget'),kind:'camp',children:[\r\n        {label:'Ad set: Website visitors, 30 days (exclude buyers)',kind:'adset',children:[{label:'Ads: proof, reviews, offer reminder',kind:'ad'}]},\r\n        {label:v.goal==='Sales'?'Ad set: Cart and checkout, 7 to 14 days':'Ad set: Form openers and engaged viewers, 30 to 90 days',kind:'adset',children:[{label:'Ads: reminder, objection handling',kind:'ad'}]}]};groups+=2;\r\n      var tst={label:'Creative testing',sub:'~10% \u00b7 '+(money(0.1)||'small budget'),kind:'camp',children:[{label:'Ad set per new concept, equal budget',kind:'adset',children:[{label:'Ads: 3 hooks of the same concept',kind:'ad'}]}]};groups++;\r\n      m.children=[pros,ret,tst];camps+=3;tree.push(m);\r\n    }\r\n    if(doG){\r\n      var g={label:'Google Search Ads',kind:'plat',children:[]};\r\n      var hasBrand=!!v.brand,nb=hasBrand?0.8:0.9;\r\n      if(hasBrand){g.children.push({label:'Brand \u00b7 '+v.brand,sub:'~10% \u00b7 '+(money(0.1)||'low budget'),kind:'camp',children:[{label:'Ad group: '+v.brand+' brand terms',sub:'Exact and phrase match',kind:'adset',children:[{label:'Ads: 1 responsive search ad, 8+ headlines',kind:'ad'}]}]});groups++;camps++;}\r\n      var nbc={label:'Non-brand \u00b7 '+v.goal+' \u00b7 '+loc,sub:'~'+Math.round(nb*100)+'% \u00b7 '+(money(nb)||'main budget'),kind:'camp',children:offers.map(function(o){return {label:'Ad group: '+o,sub:'Keywords: \u201c'+o.toLowerCase()+'\u201d, buy '+o.toLowerCase()+(v.location?', '+o.toLowerCase()+' '+v.location.toLowerCase():'')+' (phrase and exact)',kind:'adset',children:[{label:'Ads: 1 responsive search ad, 10+ headlines, 4 descriptions',kind:'ad'}]};})};\r\n      groups+=offers.length;camps++;\r\n      g.children.push(nbc);\r\n      g.children.push({label:'Shared: negative keyword list and assets',sub:'Sitelinks, callouts, structured snippets, call and location assets',kind:'adset',children:[]});\r\n      if(!both)camps+=0;tree.push(g);\r\n    }\r\n    var parts=[{type:'stats',items:[H.stat('Campaigns',String(camps)),H.stat('Ad sets or ad groups',String(groups)),H.stat('Daily budget',v.budget?v.cur+H.num(v.budget):'Not set')]},\r\n      {type:'tree',title:'Recommended structure',note:both?'Budget is split equally between platforms as a start. Move budget to the one with the lower cost per result.':'Percentages are a starting point. Adjust once you have results.',nodes:tree}];\r\n    if(offers.length>3&&doMeta)parts.push({type:'note',kind:'info',text:'The Meta plan shows ads for your first 3 offers. For more products, build a separate prospecting campaign for each product line.'});\r\n    parts.push({type:'sections',sections:[{title:'Launch notes',items:['Use one naming convention for campaigns, ad sets and ads.','Keep each ad set to one clear audience and one clear goal.','Give every ad set enough budget to get results. Fewer ad sets is better on a small budget.','Wait for enough data before changing things, then make one change at a time.'].map(function(x){return {text:x};})}]});\r\n    return parts;\r\n  }\r\n});\r\n\r\n\/* ===== 20. Account Setup Checklist ===== *\/\r\ndefineTool({\r\n  slug:'ad-account-setup-checklist',group:'target',tag:'Checklist',icon:'check',color:'#16A34A',\r\n  name:'Account Setup Checklist',\r\n  card:'Check your ad account is ready before you spend.',\r\n  intro:'A step-by-step checklist for setting up Meta, Google, LinkedIn or TikTok ad accounts: tracking, billing, policies and launch.',\r\n  title:'Free Ad Account Setup Checklist | Meta & Google',\r\n  meta:'Step-by-step checklist for setting up ad accounts: tracking, pixel, conversions, billing and policies. Free setup checklist.',\r\n  kw:'ad account setup checklist meta google linkedin tiktok pixel conversion tracking billing launch business manager',\r\n  regen:false,required:[],\r\n  faqs:[['Why does tracking come first?','Without correct conversion tracking, you can\u2019t tell which ads work, and automated bidding has nothing to learn from.'],['Can I change currency or time zone later?','In most ad platforms you cannot change currency or time zone after the account is created, so set them correctly from the start.']],\r\n  fields:[{id:'platform',label:'Platform',type:'select',options:['Meta Ads','Google Ads','LinkedIn Ads','TikTok Ads'],ex:'Meta Ads'}],\r\n  run:function(v,c){\r\n    function I(id,text,hint){return {id:id,text:text,hint:hint};}\r\n    var L={\r\n    'Meta Ads':[\r\n      {title:'Foundation',items:[I('m1','Business portfolio (Meta Business Suite) created for your business.'),I('m2','Facebook Page set up with a profile photo, cover and clear info.'),I('m3','Instagram professional account connected to the Page.'),I('m4','Ad account created with the right currency and time zone.','These usually can\u2019t be changed later.'),I('m5','Admin access uses two-factor authentication, and any agency has partner access instead of your password.')]},\r\n      {title:'Billing',items:[I('m6','Payment method added and verified.'),I('m7','Account spending limit set, if you want one.'),I('m8','Business details and tax information are correct.')]},\r\n      {title:'Tracking',items:[I('m9','Meta Pixel (and Conversions API if possible) installed on your site.'),I('m10','Domain verified in your business settings.'),I('m11','Key events set up: purchase, lead, add to cart, as needed.'),I('m12','Events tested in Events Manager with the Test Events tool.'),I('m13','UTM parameters added to ad links so analytics can match them.')]},\r\n      {title:'Audiences and policy',items:[I('m14','Website and engagement custom audiences created.'),I('m15','Customer list uploaded, with permission to use the data.'),I('m16','Special ad category selected if your ad is about credit, jobs, housing or social issues.'),I('m17','Ad content checked against Meta\u2019s advertising standards.')]},\r\n      {title:'Before launch',items:[I('m18','Creatives are in the right sizes, with captions on video.'),I('m19','Ad text and landing page proofread, and the page tested on mobile.'),I('m20','Campaign, ad set and ad naming convention applied.'),I('m21','Budget, schedule and goal double-checked.'),I('m22','Plan to review results after 24 to 48 hours without changing too much.')]}],\r\n    'Google Ads':[\r\n      {title:'Foundation',items:[I('g1','Google account for the business, with two-factor authentication.'),I('g2','Ads account created in Expert mode, not a simplified setup.'),I('g3','Correct currency and time zone chosen.','These usually can\u2019t be changed later.'),I('g4','Business name and website added.'),I('g5','Billing details and payment method added.')]},\r\n      {title:'Tracking',items:[I('g6','Google tag installed on every page.'),I('g7','Google Analytics 4 property linked to Google Ads.'),I('g8','Conversion actions created (purchase, lead, call, form) and tested.'),I('g9','Primary and secondary conversions set correctly.'),I('g10','Auto-tagging is on.'),I('g11','Enhanced conversions set up if you collect customer data.'),I('g12','Consent settings configured if you serve users in regions that require it.'),I('g13','Merchant Center linked for shopping ads, if you sell products.')]},\r\n      {title:'Campaign setup',items:[I('g14','Goal and campaign type chosen to match what you want.'),I('g15','Search campaigns: Display network turned off unless you want it.'),I('g16','Location and language settings correct, with the \u201cpresence\u201d option checked.'),I('g17','Bidding strategy suits the amount of conversion data you have.'),I('g18','Keyword themes organized by ad group, with match types chosen.'),I('g19','Negative keyword list added.'),I('g20','Responsive search ads have many headlines and descriptions.'),I('g21','Assets added: sitelinks, callouts, structured snippets, call and location.')]},\r\n      {title:'Before launch',items:[I('g22','Ads pass policy review and the landing page matches each ad.'),I('g23','Daily budget and schedule checked.'),I('g24','Plan to review the search terms report after 3 to 7 days.')]}],\r\n    'LinkedIn Ads':[\r\n      {title:'Foundation',items:[I('l1','LinkedIn Company Page complete, with logo and description.'),I('l2','Campaign Manager account created with the right currency.'),I('l3','Billing set up and the right people have access.')]},\r\n      {title:'Tracking',items:[I('l4','LinkedIn Insight Tag installed on your site.'),I('l5','Conversions defined and tested.'),I('l6','UTM tags added to ad links.')]},\r\n      {title:'Audience and creative',items:[I('l7','Audience defined by job title, industry, company size and seniority.'),I('l8','Audience size is in LinkedIn\u2019s recommended range.','Larger audiences usually work better.'),I('l9','Lead gen form questions kept short.'),I('l10','Ad images and text meet LinkedIn\u2019s limits.')]},\r\n      {title:'Before launch',items:[I('l11','Budget and bid reviewed. LinkedIn is usually higher cost per click than other platforms.'),I('l12','Ads checked against LinkedIn\u2019s ad policies.'),I('l13','Plan to review performance after the first week.')]}],\r\n    'TikTok Ads':[\r\n      {title:'Foundation',items:[I('t1','TikTok Business Center and Ads Manager account created.'),I('t2','Business details verified.'),I('t3','Billing and payment method added.')]},\r\n      {title:'Tracking',items:[I('t4','TikTok Pixel installed on your site (and Events API if possible).'),I('t5','Conversion events set up and tested.'),I('t6','UTM tags added to links.')]},\r\n      {title:'Creative',items:[I('t7','Videos are vertical 9:16 with the hook in the first 2 seconds.'),I('t8','Captions added and key text kept away from the edges.'),I('t9','Music is cleared for commercial use.'),I('t10','Spark Ads authorization set up if you want to promote organic posts.')]},\r\n      {title:'Before launch',items:[I('t11','Targeting, budget and schedule checked.'),I('t12','Ads checked against TikTok\u2019s advertising policies.'),I('t13','Plan to refresh creative often, because ads tire quickly on TikTok.')]}]\r\n    };\r\n    return [{type:'note',kind:'info',text:'Tick items as you go. Your progress stays on this page while it is open.'},{type:'checklist',key:'setup-'+v.platform,groups:L[v.platform]}];\r\n  }\r\n});\r\n\r\n\/* ===== 21. Lead Form Question Builder ===== *\/\r\ndefineTool({\r\n  slug:'lead-form-question-builder',group:'target',tag:'Builder',icon:'form',color:'#0D9488',\r\n  name:'Lead Form Question Builder',\r\n  card:'Build lead form questions that get better leads.',\r\n  intro:'Choose your goal and how strict you want the form to be. Get a ready list of lead form questions for Meta and Google lead ads.',\r\n  title:'Free Lead Form Question Builder | Lead Ad Forms',\r\n  meta:'Build lead form questions for Meta and Google lead ads. Balance more leads with better quality. Copy the question list. Free tool.',\r\n  kw:'lead form question builder lead ads meta instant form google lead form questions qualify leads quality volume',\r\n  regen:false,required:[],\r\n  faqs:[['Do more questions mean better leads?','Usually yes for quality, but you get fewer leads. Short forms bring more leads, and longer forms bring more serious ones. Choose based on what your sales team can handle.'],['What should I ask first?','Start with easy questions like name and phone, then ask the qualifying questions. Always add a privacy policy link.']],\r\n  fields:[\r\n    {id:'goal',label:'Goal of the form',type:'select',options:['Sales enquiry','Book an appointment','Get a quote','Webinar or event signup','Newsletter signup','Course enquiry','Real estate enquiry','B2B demo request'],ex:'Sales enquiry'},\r\n    {id:'level',label:'Form style',type:'select',options:[['more','More leads (short form)'],['balanced','Balanced'],['quality','Higher quality (more questions)']],ex:'balanced'},\r\n    {id:'choices',label:'Options for \u201cWhat are you interested in?\u201d (one per line)',type:'textarea',raw:true,rows:3,ex:'Option A\\nOption B\\nNot sure yet',ph:'One option per line',optional:true},\r\n    {id:'custom',label:'Your own extra question',type:'text',ex:'',ph:'e.g. Which city are you in?',optional:true}\r\n  ],\r\n  run:function(v,c){\r\n    function Q(q,type,req,why,opts){return {q:q,type:type,req:req,why:why,opts:opts};}\r\n    var name=Q('Full name','Short answer (prefilled)','Yes','Lets you address them personally.'),phone=Q('Phone number','Phone (prefilled)','Yes','Fastest way to reach them.'),email=Q('Email address','Email (prefilled)','Yes','Follow-up and nurturing.'),\r\n      city=Q('City or area','Short answer','Optional','Checks you serve their area.'),\r\n      timeline=Q('When do you plan to start?','Multiple choice','Optional','Shows how ready they are.',['This week','This month','Within 3 months','Just exploring']),\r\n      msg=Q('What do you need help with?','Short or long answer','Optional','Gives your team context for the call.');\r\n    var ch=H.lines(v.choices);var interest=Q('What are you interested in?','Multiple choice','Yes','Sends the lead to the right person.',ch.length?ch:['Option A','Option B','Not sure yet']);\r\n    var G={\r\n     'Sales enquiry':{more:[name,phone],bal:[name,phone,email,interest],q:[name,phone,email,interest,timeline,city]},\r\n     'Book an appointment':{more:[name,phone],bal:[name,phone,Q('Preferred time','Multiple choice','Yes','Helps you book faster.',['Morning','Afternoon','Evening'])],q:[name,phone,email,Q('Preferred day and time','Multiple choice','Yes','Helps you book faster.',['Weekday morning','Weekday afternoon','Weekday evening','Weekend']),msg,city]},\r\n     'Get a quote':{more:[name,phone],bal:[name,phone,email,msg],q:[name,phone,email,Q('Describe what you need','Long answer','Yes','So you can quote accurately.'),city,timeline]},\r\n     'Webinar or event signup':{more:[name,email],bal:[name,email,Q('Job title','Short answer','Optional','Helps tailor the session.')],q:[name,email,Q('Company name','Short answer','Optional','For follow-up.'),Q('Job title','Short answer','Optional','Helps tailor the session.'),Q('What topic do you most want covered?','Short answer','Optional','Improves the event content.')]},\r\n     'Newsletter signup':{more:[email],bal:[Q('First name','Short answer (prefilled)','Yes','Personalize emails.'),email],q:[Q('First name','Short answer (prefilled)','Yes','Personalize emails.'),email,Q('What topics do you want?','Multiple choice','Optional','Send relevant content.',['Tips and guides','Offers and news','Both'])]},\r\n     'Course enquiry':{more:[name,phone],bal:[name,phone,email,Q('Which course are you interested in?','Multiple choice','Yes','Routes the lead to the right adviser.',ch.length?ch:['Course A','Course B','Not sure yet'])],q:[name,phone,email,Q('Which course are you interested in?','Multiple choice','Yes','Routes the lead to the right adviser.',ch.length?ch:['Course A','Course B','Not sure yet']),Q('Highest qualification','Multiple choice','Optional','Checks eligibility.',['School','Diploma','Degree','Postgraduate']),Q('When do you want to start?','Multiple choice','Optional','Shows urgency.',['As soon as possible','Within 3 months','Later'])]},\r\n     'Real estate enquiry':{more:[name,phone],bal:[name,phone,Q('Buy or rent?','Multiple choice','Yes','Basic intent.',['Buy','Rent'])],q:[name,phone,email,Q('Buy or rent?','Multiple choice','Yes','Basic intent.',['Buy','Rent']),Q('Property type','Multiple choice','Yes','Matches listings.',ch.length?ch:['Apartment','House','Plot','Commercial']),Q('Preferred location','Short answer','Yes','Matches listings.'),Q('Budget range','Multiple choice','Optional','Add your own ranges.',['Range 1','Range 2','Range 3','Range 4']),timeline]},\r\n     'B2B demo request':{more:[Q('Work email','Email (prefilled)','Yes','Reach the decision maker.'),Q('Company name','Short answer (prefilled)','Yes','Qualify the company.')],bal:[name,Q('Work email','Email (prefilled)','Yes','Reach the decision maker.'),Q('Company name','Short answer (prefilled)','Yes','Qualify the company.'),Q('Job title','Short answer (prefilled)','Yes','Check seniority.')],q:[name,Q('Work email','Email (prefilled)','Yes','Reach the decision maker.'),phone,Q('Company name','Short answer (prefilled)','Yes','Qualify the company.'),Q('Job title','Short answer (prefilled)','Yes','Check seniority.'),Q('Company size','Multiple choice','Yes','Qualify by size.',['1\u201310','11\u201350','51\u2013200','201\u20131,000','1,000+']),Q('What do you want to solve?','Long answer','Optional','Prepare the demo.')]}\r\n    };\r\n    var g=G[v.goal],lvl=v.level==='more'?g.more:(v.level==='quality'?g.q:g.bal);\r\n    var qs=lvl.slice();\r\n    if(v.custom)qs.push(Q(v.custom,'Short answer','Optional','Your own question.'));\r\n    var rows=qs.map(function(x,i){return [String(i+1),x.q,x.type+(x.opts?': '+x.opts.join(' \/ '):''),x.req,x.why];});\r\n    var txt=qs.map(function(x,i){return (i+1)+'. '+x.q+(x.opts?'\\n   Options: '+x.opts.join(' \/ '):'')+'\\n   Type: '+x.type+' \u00b7 Required: '+x.req;}).join('\\n');\r\n    var exp={more:'Short forms bring the most leads, but quality can be lower. Good for awareness and cheap lead volume.',balanced:'A balanced form gets enough detail to qualify without scaring people away.',quality:'Longer forms bring fewer leads that are usually more serious. Good when your sales team has limited time.'}[v.level];\r\n    return [{type:'stats',items:[H.stat('Questions',String(qs.length)),H.stat('Style',v.level==='more'?'More leads':(v.level==='quality'?'Higher quality':'Balanced'))]},{type:'note',kind:'info',text:exp},\r\n      {type:'table',title:'Your form questions',headers:['#','Question','Type and options','Required','Why ask it'],rows:rows,strong:1},\r\n      {type:'text',title:'Copy-ready question list',text:txt},\r\n      {type:'sections',sections:[{title:'Form settings tips',items:['Use prefilled fields (name, email, phone) where the platform offers them, to cut effort.','Add a link to your privacy policy and any consent text required in your country.','Write a thank-you screen that says what happens next and when.','On Meta, a \u201chigher intent\u201d form with a review step gives fewer but better leads.','Call or message new leads quickly. Speed matters more than perfect questions.'].map(function(x){return {text:x};})}]}];\r\n  }\r\n});\r\n\r\n<\/script>\r\n<script>\r\n\/* Engine: builds tool panels, renders results, menu, search, router. *\/\r\n(function(){\r\nvar GROUPS={copy:{name:'Copy & Creative',desc:'Write ads, hooks and scripts, and plan creative.'},target:{name:'Targeting & Account Setup',desc:'Plan audiences, keywords and campaigns.'}};\r\nvar state={seed:{},checks:{},built:{}};\r\nvar ICONS={\r\n pen:'<path d=\"M4 20l4-1 11-11a2.1 2.1 0 0 0-3-3L5 16l-1 4z\"\/><path d=\"M14 7l3 3\"\/>',\r\n search:'<circle cx=\"11\" cy=\"11\" r=\"7\"\/><path d=\"M20 20l-3.5-3.5\"\/>',\r\n play:'<rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"3\"\/><path d=\"M10 9l5 3-5 3z\"\/>',\r\n user:'<circle cx=\"12\" cy=\"8\" r=\"4\"\/><path d=\"M4 21a8 8 0 0 1 16 0\"\/>',\r\n bulb:'<path d=\"M9 18h6M10 21h4\"\/><path d=\"M12 3a6 6 0 0 0-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0 0 12 3z\"\/>',\r\n tag:'<path d=\"M3 12V4h8l10 10-8 8L3 12z\"\/><circle cx=\"8\" cy=\"8\" r=\"1.5\"\/>',\r\n ruler:'<rect x=\"3\" y=\"8\" width=\"18\" height=\"8\" rx=\"1.5\"\/><path d=\"M7 8v3M11 8v4M15 8v3M19 8v4\"\/>',\r\n image:'<rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"3\"\/><circle cx=\"9\" cy=\"10\" r=\"1.8\"\/><path d=\"M21 16l-5-5-8 8\"\/>',\r\n doc:'<path d=\"M6 3h9l4 4v14H6z\"\/><path d=\"M14 3v5h5M9 13h7M9 17h7\"\/>',\r\n flask:'<path d=\"M9 3h6M10 3v6l-5 9a2 2 0 0 0 2 3h10a2 2 0 0 0 2-3l-5-9V3\"\/>',\r\n label:'<path d=\"M20 12l-8 8-9-9V3h8l9 9z\"\/><path d=\"M7.5 7.5h.01\"\/>',\r\n shield:'<path d=\"M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6l8-3z\"\/><path d=\"M9 12l2 2 4-4\"\/>',\r\n users:'<circle cx=\"9\" cy=\"8\" r=\"3.5\"\/><path d=\"M2 20a7 7 0 0 1 14 0\"\/><circle cx=\"17\" cy=\"9\" r=\"2.5\"\/><path d=\"M17 14a5 5 0 0 1 5 5\"\/>',\r\n heart:'<path d=\"M12 20s-8-5-8-11a4.5 4.5 0 0 1 8-2.5A4.5 4.5 0 0 1 20 9c0 6-8 11-8 11z\"\/>',\r\n loop:'<path d=\"M4 12a8 8 0 0 1 14-5l2 2\"\/><path d=\"M20 4v5h-5\"\/><path d=\"M20 12a8 8 0 0 1-14 5l-2-2\"\/><path d=\"M4 20v-5h5\"\/>',\r\n minus:'<circle cx=\"12\" cy=\"12\" r=\"9\"\/><path d=\"M8 12h8\"\/>',\r\n brackets:'<path d=\"M8 4H5v16h3M16 4h3v16h-3\"\/><path d=\"M10 12h4\"\/>',\r\n broom:'<path d=\"M14 3l7 7\"\/><path d=\"M12 7l5 5-7 9H3l2-5z\"\/>',\r\n tree:'<rect x=\"9\" y=\"3\" width=\"6\" height=\"5\" rx=\"1\"\/><rect x=\"3\" y=\"16\" width=\"6\" height=\"5\" rx=\"1\"\/><rect x=\"15\" y=\"16\" width=\"6\" height=\"5\" rx=\"1\"\/><path d=\"M12 8v4M6 16v-4h12v4\"\/>',\r\n check:'<rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"3\"\/><path d=\"M8 12l3 3 5-6\"\/>',\r\n form:'<rect x=\"5\" y=\"3\" width=\"14\" height=\"18\" rx=\"2\"\/><path d=\"M9 8h6M9 12h6M9 16h3\"\/>',\r\n home:'<path d=\"M3 11l9-8 9 8\"\/><path d=\"M5 10v10h14V10\"\/>'\r\n};\r\nfunction svg(k){return '<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">'+(ICONS[k]||ICONS.pen)+'<\/svg>';}\r\nwindow.ICONS=ICONS;\r\nvar esc=H.esc;\r\n\r\n\/* ---------- results rendering ---------- *\/\r\nfunction Renderer(){\r\n  var store=[];\r\n  function cp(text,label){store.push(text);return '<button type=\"button\" class=\"cp\" data-i=\"'+(store.length-1)+'\">'+(label||'Copy')+'<\/button>';}\r\n  function badge(b){return b?'<span class=\"bdg '+(b.kind||'')+'\">'+esc(b.text)+'<\/span>':'';}\r\n  function itemBadge(it){if(it.badge)return badge(it.badge);if(it.limit)return badge(H.limitBadge(it.text,it.limit));return '';}\r\n  var R={store:store};\r\n  R.part=function(p){\r\n    var h='',i;\r\n    switch(p.type){\r\n    case 'stats':\r\n      h='<div class=\"stats\">'+p.items.map(function(s){return '<div class=\"stat\"><span>'+esc(s.label)+'<\/span><b>'+esc(s.value)+'<\/b>'+(s.sub?'<em>'+esc(s.sub)+'<\/em>':'')+'<\/div>';}).join('')+'<\/div>';break;\r\n    case 'note':\r\n      h='<div class=\"callout '+(p.kind||'info')+'\">'+(p.title?'<b>'+esc(p.title)+'<\/b> ':'')+esc(p.text)+'<\/div>';break;\r\n    case 'sections':\r\n      p.sections.forEach(function(s){\r\n        h+='<section class=\"rsec\"><div class=\"rh\"><h3>'+esc(s.title)+'<\/h3>'+cp(s.items.map(function(x){return x.text;}).join('\\n'),'Copy all')+'<\/div>'+(s.note?'<p class=\"rnote\">'+esc(s.note)+'<\/p>':'')+'<ul class=\"ritems\">'+s.items.map(function(it){return '<li class=\"ri\"><div class=\"rt\">'+esc(it.text)+(it.sub?'<small>'+esc(it.sub)+'<\/small>':'')+'<\/div><div class=\"rm\">'+itemBadge(it)+cp(it.text)+'<\/div><\/li>';}).join('')+'<\/ul><\/section>';\r\n      });break;\r\n    case 'cards':\r\n      h=(p.title?'<h3 class=\"rtitle\">'+esc(p.title)+'<\/h3>':'')+'<div class=\"rcards\">'+p.cards.map(function(c,ci){\r\n        var all=c.fields.map(function(f){return (f.label?f.label+': ':'')+f.text;}).join('\\n\\n');\r\n        return '<article class=\"rcard\"><div class=\"rch\"><b>'+esc(c.title)+'<\/b>'+(c.tag?'<span class=\"tg\">'+esc(c.tag)+'<\/span>':'')+'<span class=\"grow\"><\/span>'+cp(all,'Copy all')+'<\/div>'+(c.sub?'<p class=\"rnote\">'+esc(c.sub)+'<\/p>':'')+c.fields.map(function(f){return '<div class=\"rf\"><label>'+esc(f.label)+'<\/label><div class=\"rtxt\">'+esc(f.text)+'<\/div><div class=\"rm\">'+itemBadge(f)+cp(f.text)+'<\/div><\/div>';}).join('')+'<\/article>';\r\n      }).join('')+'<\/div>';break;\r\n    case 'table':\r\n      h=(p.title?'<div class=\"rh\"><h3>'+esc(p.title)+'<\/h3>'+cp(tsv(p),'Copy table')+'<\/div>':'<div class=\"rh\"><span><\/span>'+cp(tsv(p),'Copy table')+'<\/div>')+(p.note?'<p class=\"rnote\">'+esc(p.note)+'<\/p>':'')+'<div class=\"tw\"><table><thead><tr>'+p.headers.map(function(x){return '<th>'+esc(x)+'<\/th>';}).join('')+'<\/tr><\/thead><tbody>'+p.rows.map(function(r){return '<tr>'+r.map(function(c,ci){var t=String(c);return '<td>'+(p.strong===ci?'<b>'+esc(t)+'<\/b>':esc(t))+(p.copyCol===ci?' '+cp(t,'Copy'):'')+'<\/td>';}).join('')+'<\/tr>';}).join('')+'<\/tbody><\/table><\/div>';break;\r\n    case 'text':\r\n      h='<section class=\"rsec\"><div class=\"rh\"><h3>'+esc(p.title||'Result')+'<\/h3>'+cp(p.text,'Copy')+'<\/div><pre class=\"rpre\">'+esc(p.text)+'<\/pre><\/section>';break;\r\n    case 'doc':\r\n      h='<section class=\"rsec doc\"><div class=\"rh\"><h3>'+esc(p.title||'Document')+'<\/h3>'+cp(docText(p),'Copy')+'<\/div>'+p.blocks.map(function(b){\r\n        var x='';if(b.h)x+='<h4>'+esc(b.h)+'<\/h4>';if(b.p)x+='<p>'+esc(b.p)+'<\/p>';if(b.ul&&b.ul.length)x+='<ul>'+b.ul.map(function(u){return '<li>'+esc(u)+'<\/li>';}).join('')+'<\/ul>';return x;}).join('')+'<\/section>';break;\r\n    case 'checklist':\r\n      h='<div class=\"cl\" data-cl=\"'+esc(p.key)+'\"><div class=\"prog\"><div class=\"bar\"><i><\/i><\/div><span class=\"pt\"><\/span><span class=\"grow\"><\/span>'+cp(p.groups.map(function(g){return g.title+'\\n'+g.items.map(function(x){return '[ ] '+x.text;}).join('\\n');}).join('\\n\\n'),'Copy list')+'<\/div>'+p.groups.map(function(g){\r\n        return '<section class=\"rsec\"><div class=\"rh\"><h3>'+esc(g.title)+'<\/h3><\/div><ul class=\"cli\">'+g.items.map(function(it){return '<li><label class=\"clrow\"><input type=\"checkbox\" data-id=\"'+esc(it.id)+'\"><span><b>'+esc(it.text)+'<\/b>'+(it.hint?'<small>'+esc(it.hint)+'<\/small>':'')+'<\/span><\/label><\/li>';}).join('')+'<\/ul><\/section>';}).join('')+'<\/div>';break;\r\n    case 'tree':\r\n      h='<section class=\"rsec\"><div class=\"rh\"><h3>'+esc(p.title||'Structure')+'<\/h3>'+cp(treeText(p.nodes,0),'Copy outline')+'<\/div>'+(p.note?'<p class=\"rnote\">'+esc(p.note)+'<\/p>':'')+'<div class=\"tree\">'+treeHTML(p.nodes)+'<\/div><\/section>';break;\r\n    }\r\n    return h;\r\n  };\r\n  function tsv(p){return [p.headers.join('\\t')].concat(p.rows.map(function(r){return r.join('\\t');})).join('\\n');}\r\n  function docText(p){return p.blocks.map(function(b){var x='';if(b.h)x+=b.h.toUpperCase()+'\\n';if(b.p)x+=b.p+'\\n';if(b.ul)x+=b.ul.map(function(u){return '- '+u;}).join('\\n')+'\\n';return x.trim();}).join('\\n\\n');}\r\n  function treeHTML(nodes){return '<ul>'+nodes.map(function(n){return '<li><div class=\"tn'+(n.kind?' '+n.kind:'')+'\"><b>'+esc(n.label)+'<\/b>'+(n.sub?'<span>'+esc(n.sub)+'<\/span>':'')+'<\/div>'+(n.children&&n.children.length?treeHTML(n.children):'')+'<\/li>';}).join('')+'<\/ul>';}\r\n  function treeText(nodes,d){return nodes.map(function(n){var pad=new Array(d+1).join('  ');return pad+'- '+n.label+(n.sub?' ('+n.sub+')':'')+(n.children&&n.children.length?'\\n'+treeText(n.children,d+1):'');}).join('\\n');}\r\n  R.text=function(parts){\r\n    return parts.map(function(p){\r\n      switch(p.type){\r\n        case 'stats':return p.items.map(function(s){return s.label+': '+s.value;}).join('\\n');\r\n        case 'note':return (p.title?p.title+' ':'')+p.text;\r\n        case 'sections':return p.sections.map(function(s){return s.title+'\\n'+s.items.map(function(x){return '- '+x.text;}).join('\\n');}).join('\\n\\n');\r\n        case 'cards':return p.cards.map(function(c){return c.title+'\\n'+c.fields.map(function(f){return f.label+': '+f.text;}).join('\\n');}).join('\\n\\n');\r\n        case 'table':return tsv(p);\r\n        case 'text':return (p.title?p.title+'\\n':'')+p.text;\r\n        case 'doc':return (p.title?p.title+'\\n\\n':'')+docText(p);\r\n        case 'checklist':return p.groups.map(function(g){return g.title+'\\n'+g.items.map(function(x){return '[ ] '+x.text;}).join('\\n');}).join('\\n\\n');\r\n        case 'tree':return (p.title?p.title+'\\n':'')+treeText(p.nodes,0);\r\n      }return '';\r\n    }).filter(Boolean).join('\\n\\n');\r\n  };\r\n  return R;\r\n}\r\n\r\n\/* ---------- form ---------- *\/\r\nfunction fid(t,f){return 'f-'+t.slug+'-'+f.id;}\r\nfunction fieldHTML(t,f){\r\n  var id=fid(t,f),h='<div class=\"field\" data-f=\"'+f.id+'\">',ex=f.ex===undefined?'':f.ex;\r\n  if(f.type==='toggle'){\r\n    h+='<label class=\"check\"><input type=\"checkbox\" id=\"'+id+'\"'+(f.ex?' checked':'')+'> '+esc(f.label)+'<\/label>';\r\n  }else if(f.type==='checks'){\r\n    h+='<span class=\"lbl\">'+esc(f.label)+'<\/span><div class=\"chk\">'+f.options.map(function(o,i){var val=Array.isArray(o)?o[0]:o,lab=Array.isArray(o)?o[1]:o;return '<label class=\"chip\"><input type=\"checkbox\" name=\"'+id+'\" value=\"'+esc(val)+'\"'+((f.ex||[]).indexOf(val)>-1?' checked':'')+'><span>'+esc(lab)+'<\/span><\/label>';}).join('')+'<\/div>';\r\n  }else{\r\n    h+='<label for=\"'+id+'\">'+esc(f.label)+(f.optional?' <span class=\"val\">optional<\/span>':'')+'<\/label>';\r\n    if(f.type==='select'){\r\n      h+='<select id=\"'+id+'\">'+f.options.map(function(o){var val=Array.isArray(o)?o[0]:o,lab=Array.isArray(o)?o[1]:o;return '<option value=\"'+esc(val)+'\"'+(String(val)===String(ex)?' selected':'')+'>'+esc(lab)+'<\/option>';}).join('')+'<\/select>';\r\n    }else if(f.type==='textarea'){\r\n      h+='<textarea id=\"'+id+'\" rows=\"'+(f.rows||3)+'\" placeholder=\"'+esc(f.ph||'')+'\">'+esc(ex)+'<\/textarea>';\r\n    }else if(f.type==='number'){\r\n      h+='<input type=\"number\" id=\"'+id+'\" inputmode=\"decimal\" min=\"'+(f.min===undefined?0:f.min)+'\"'+(f.max!==undefined?' max=\"'+f.max+'\"':'')+(f.step?' step=\"'+f.step+'\"':'')+' placeholder=\"'+esc(f.ph||'')+'\" value=\"'+esc(ex)+'\">';\r\n    }else{\r\n      h+='<input type=\"text\" id=\"'+id+'\" maxlength=\"'+(f.maxlen||160)+'\" placeholder=\"'+esc(f.ph||'')+'\" value=\"'+esc(ex)+'\" autocomplete=\"off\">';\r\n    }\r\n  }\r\n  if(f.hint)h+='<div class=\"hint\">'+esc(f.hint)+'<\/div>';\r\n  return h+'<\/div>';\r\n}\r\nfunction readVals(t,root){\r\n  var v={};\r\n  t.fields.forEach(function(f){\r\n    var id=fid(t,f),el=root.querySelector('#'+id);\r\n    if(f.type==='checks'){v[f.id]=Array.prototype.slice.call(root.querySelectorAll('input[name=\"'+id+'\"]:checked')).map(function(x){return x.value;});return;}\r\n    if(!el){v[f.id]='';return;}\r\n    if(f.type==='toggle'){v[f.id]=el.checked;return;}\r\n    var s=el.value;\r\n    if(f.type==='number'){v[f.id]=s===''?'':parseFloat(s);return;}\r\n    if(f.type==='textarea'&&f.raw){v[f.id]=s;return;}\r\n    if(f.type==='select'){v[f.id]=s;return;}\r\n    v[f.id]=s.replace(\/\\s+\/g,' ').trim().replace(\/[.!?,;:]+$\/,'');\r\n  });\r\n  return v;\r\n}\r\nfunction setExamples(t,root){\r\n  t.fields.forEach(function(f){\r\n    var id=fid(t,f),el=root.querySelector('#'+id),ex=f.ex===undefined?'':f.ex;\r\n    if(f.type==='checks'){root.querySelectorAll('input[name=\"'+id+'\"]').forEach(function(c){c.checked=(ex||[]).indexOf(c.value)>-1;});return;}\r\n    if(!el)return;\r\n    if(f.type==='toggle')el.checked=!!ex;else el.value=ex;\r\n  });\r\n}\r\nfunction clearForm(t,root){\r\n  t.fields.forEach(function(f){\r\n    var id=fid(t,f),el=root.querySelector('#'+id);\r\n    if(f.type==='checks'){root.querySelectorAll('input[name=\"'+id+'\"]').forEach(function(c){c.checked=false;});return;}\r\n    if(!el)return;\r\n    if(f.type==='toggle')el.checked=false;else if(f.type!=='select')el.value='';\r\n  });\r\n}\r\n\r\n\/* ---------- panel ---------- *\/\r\nfunction toolById(slug){return TOOLS.filter(function(t){return t.slug===slug;})[0];}\r\nfunction build(t){\r\n  var idx=TOOLS.indexOf(t),panel=document.getElementById('tool-'+t.slug);\r\n  var g=GROUPS[t.group];\r\n  var how=(t.how||['Fill in the form on the left. Example details are already filled in.','Review the results. They update as you type.','Copy what you like, then edit it to fit your brand.']);\r\n  var more=[1,2,3].map(function(k){return TOOLS[(idx+k)%TOOLS.length];}).filter(function(x){return x!==t;});\r\n  var prev=TOOLS[(idx+TOOLS.length-1)%TOOLS.length],next=TOOLS[(idx+1)%TOOLS.length];\r\n  var h='<section class=\"hero compact\"><div class=\"wrap\"><div class=\"crumbs\"><a href=\"#home\">All tools<\/a> \/ <a href=\"#home\" data-grp=\"'+t.group+'\">'+esc(g.name)+'<\/a> \/ '+esc(t.name)+'<\/div><span class=\"pill\">\u25cf '+esc(t.pill||'Free \u00b7 No signup \u00b7 Runs in your browser')+'<\/span><h1>'+esc(t.name)+'<\/h1><p>'+esc(t.intro)+'<\/p><\/div><\/section>';\r\n  h+='<main class=\"wrap main\"><div class=\"tool-body\"><\/div>';\r\n  h+='<div class=\"seo\"><div class=\"card\"><h2>How to use it<\/h2><ol>'+how.map(function(x){return '<li>'+esc(x)+'<\/li>';}).join('')+'<\/ol><\/div><div class=\"card\"><h2>Questions<\/h2>'+(t.faqs||[]).map(function(q){return '<details><summary>'+esc(q[0])+'<\/summary><p>'+esc(q[1])+'<\/p><\/details>';}).join('')+'<\/div><\/div>';\r\n  h+='<div class=\"pn\"><a href=\"#'+prev.slug+'\">\u2190 <span>'+esc(prev.name)+'<\/span><\/a><a href=\"#'+next.slug+'\"><span>'+esc(next.name)+'<\/span> \u2192<\/a><\/div>';\r\n  h+='<div class=\"more\"><h2>More free ad tools<\/h2><div class=\"minis\">'+more.map(function(m){return '<a class=\"mini\" href=\"#'+m.slug+'\"><div class=\"ic\" style=\"--c:'+m.color+'\">'+svg(m.icon)+'<\/div><div><b>'+esc(m.name)+'<\/b><span>'+esc(m.card)+'<\/span><\/div><\/a>';}).join('')+'<\/div><\/div><\/main>';\r\n  panel.innerHTML=h;\r\n  var body=panel.querySelector('.tool-body');\r\n  if(t.custom){t.custom(body,{H:H,toast:window.toast,copy:window.copyText,esc:esc});return;}\r\n  body.innerHTML='<div class=\"layout\"><div class=\"card form\"><h2>Your details<\/h2><div class=\"ff\">'+t.fields.map(function(f){return fieldHTML(t,f);}).join('')+'<\/div><div class=\"btns\" style=\"margin-top:14px\"><button type=\"button\" class=\"btn ghost sm\" data-act=\"example\">Use example<\/button><button type=\"button\" class=\"btn ghost sm\" data-act=\"clear\">Clear form<\/button><\/div><\/div><div class=\"resw\"><div class=\"toolbar\"><span class=\"grow\"><\/span>'+(t.regen?'<button type=\"button\" class=\"btn sm\" data-act=\"shuffle\">\u21bb Generate new ideas<\/button>':'')+'<button type=\"button\" class=\"btn ghost sm\" data-act=\"copyall\">Copy all<\/button><button type=\"button\" class=\"btn ghost sm\" data-act=\"dl\">Download .txt<\/button><\/div><div class=\"out\" aria-live=\"polite\"><\/div><\/div><\/div>';\r\n  var out=body.querySelector('.out'),R=null,lastText='';\r\n  function update(){\r\n    var v=readVals(t,body);\r\n    t.fields.forEach(function(f){if(f.show){var el=body.querySelector('[data-f=\"'+f.id+'\"]');if(el)el.hidden=!f.show(v);}});\r\n    var miss=(t.required||[]).filter(function(k){var x=v[k];return Array.isArray(x)?!x.length:(x===''||x===undefined||x===null);});\r\n    R=Renderer();\r\n    if(miss.length){\r\n      var names=miss.map(function(k){var f=t.fields.filter(function(x){return x.id===k;})[0];return f?f.label:k;});\r\n      out.innerHTML='<div class=\"empty\"><div class=\"eic\">'+svg(t.icon)+'<\/div><b>Fill in the required details<\/b><p>Add: '+esc(names.join(', '))+'<\/p><button type=\"button\" class=\"btn sm\" data-act=\"example\">Use example<\/button><\/div>';lastText='';return;\r\n    }\r\n    var seed=state.seed[t.slug]||1,res;\r\n    try{res=t.run(v,{seed:seed,r:H.rng(seed*2654435761),slug:t.slug,checks:state.checks[t.slug]||(state.checks[t.slug]={})});}\r\n    catch(e){out.innerHTML='<div class=\"callout warn\">Something went wrong: '+esc(e.message)+'<\/div>';return;}\r\n    var parts=Array.isArray(res)?res:(res.parts||[]);\r\n    if(res.stats&&!Array.isArray(res))parts=[{type:'stats',items:res.stats}].concat(parts);\r\n    if(!parts.length){out.innerHTML='<div class=\"empty\"><b>No results yet<\/b><p>Try adding more detail.<\/p><\/div>';lastText='';return;}\r\n    out.innerHTML=parts.map(function(p){return R.part(p);}).join('');\r\n    lastText=R.text(parts);\r\n    out.querySelectorAll('.cl').forEach(function(cl){\r\n      var map=state.checks[t.slug];\r\n      cl.querySelectorAll('input[type=checkbox]').forEach(function(cb){cb.checked=!!map[cl.dataset.cl+':'+cb.dataset.id];cb.closest('li').classList.toggle('done',cb.checked);});\r\n      progress(cl);\r\n    });\r\n  }\r\n  function progress(cl){var all=cl.querySelectorAll('input[type=checkbox]'),n=0;all.forEach(function(c){if(c.checked)n++;});cl.querySelector('.bar i').style.width=(all.length?n\/all.length*100:0)+'%';cl.querySelector('.pt').textContent=n+' of '+all.length+' done';}\r\n  var tm;function later(){clearTimeout(tm);tm=setTimeout(update,60);}\r\n  body.querySelector('.ff').addEventListener('input',later);\r\n  body.querySelector('.ff').addEventListener('change',later);\r\n  body.addEventListener('click',function(e){\r\n    var b=e.target.closest('button');if(!b)return;\r\n    if(b.classList.contains('cp')){window.copyText(R.store[+b.dataset.i]);return;}\r\n    var a=b.dataset.act;\r\n    if(a==='shuffle'){state.seed[t.slug]=(state.seed[t.slug]||1)+1;update();}\r\n    else if(a==='copyall'){if(lastText)window.copyText(lastText);else window.toast('Nothing to copy yet');}\r\n    else if(a==='dl'){if(!lastText){window.toast('Nothing to download yet');return;}window.downloadBlob(new Blob([lastText],{type:'text\/plain'}),t.slug+'.txt');}\r\n    else if(a==='example'){setExamples(t,body);update();}\r\n    else if(a==='clear'){clearForm(t,body);update();}\r\n  });\r\n  body.addEventListener('change',function(e){\r\n    var cb=e.target;if(!(cb.matches&&cb.matches('.cl input[type=checkbox]')))return;\r\n    var cl=cb.closest('.cl'),map=state.checks[t.slug];map[cl.dataset.cl+':'+cb.dataset.id]=cb.checked;cb.closest('li').classList.toggle('done',cb.checked);progress(cl);\r\n  });\r\n  update();\r\n}\r\nfunction ensure(slug){var t=toolById(slug);if(!t||state.built[slug])return;state.built[slug]=1;build(t);}\r\n\r\n\/* ---------- shell ---------- *\/\r\nfunction boot(){\r\n  var home=document.getElementById('home-panel'),mount=document.getElementById('panels');\r\n  TOOLS.forEach(function(t){var d=document.createElement('div');d.className='panel';d.id='tool-'+t.slug;d.dataset.route=t.slug;d.hidden=true;mount.appendChild(d);});\r\n  \/\/ home cards\r\n  var hub=document.getElementById('hm-hub');\r\n  hub.innerHTML=Object.keys(GROUPS).map(function(gk){\r\n    return '<div class=\"hgroup\" data-g=\"'+gk+'\" id=\"grp-'+gk+'\"><div class=\"ghead\"><h2>'+esc(GROUPS[gk].name)+'<\/h2><p>'+esc(GROUPS[gk].desc)+'<\/p><\/div><div class=\"hub\">'+TOOLS.filter(function(t){return t.group===gk;}).map(function(t){\r\n      return '<a class=\"tool\" href=\"#'+t.slug+'\" data-k=\"'+esc((t.name+' '+t.kw+' '+t.tag).toLowerCase())+'\"><div class=\"ic\" style=\"--c:'+t.color+'\">'+svg(t.icon)+'<\/div><span class=\"tg\">'+esc(t.tag)+'<\/span><h3>'+esc(t.name)+'<\/h3><p>'+esc(t.card)+'<\/p><span class=\"go\">Open tool \u2192<\/span><\/a>';}).join('')+'<\/div><\/div>';\r\n  }).join('');\r\n  \/\/ mega menu\r\n  var mm=document.getElementById('mega');\r\n  mm.innerHTML='<div class=\"wrap mgrid\">'+Object.keys(GROUPS).map(function(gk){return '<div class=\"mcol\"><h4>'+esc(GROUPS[gk].name)+'<\/h4>'+TOOLS.filter(function(t){return t.group===gk;}).map(function(t){return '<a href=\"#'+t.slug+'\" data-route=\"'+t.slug+'\"><span class=\"mi\" style=\"--c:'+t.color+'\">'+svg(t.icon)+'<\/span><span>'+esc(t.name)+'<\/span><\/a>';}).join('')+'<\/div>';}).join('')+'<\/div>';\r\n  var mb=document.getElementById('mega-btn');\r\n  function setMega(open){mm.hidden=!open;mb.setAttribute('aria-expanded',open?'true':'false');mb.classList.toggle('on',open);}\r\n  mb.addEventListener('click',function(e){e.stopPropagation();setMega(mm.hidden);});\r\n  mm.addEventListener('click',function(e){if(e.target.closest('a'))setMega(false);});\r\n  document.addEventListener('click',function(e){if(!mm.hidden&&!e.target.closest('#mega')&&!e.target.closest('#mega-btn'))setMega(false);if(!e.target.closest('.sbox'))sr.hidden=true;});\r\n  document.addEventListener('keydown',function(e){if(e.key==='Escape'){setMega(false);sr.hidden=true;}});\r\n  \/\/ search (top bar)\r\n  var si=document.getElementById('top-q'),sr=document.getElementById('top-res'),sel=-1;\r\n  function results(q){var terms=q.toLowerCase().split(\/\\s+\/).filter(Boolean);if(!terms.length)return [];return TOOLS.filter(function(t){var k=(t.name+' '+t.kw+' '+t.tag).toLowerCase();return terms.every(function(w){return k.indexOf(w)>-1;});}).slice(0,8);}\r\n  function showRes(){var r=results(si.value);sel=-1;if(!si.value.trim()){sr.hidden=true;return;}sr.innerHTML=r.length?r.map(function(t,i){return '<a href=\"#'+t.slug+'\" data-i=\"'+i+'\"><span class=\"mi\" style=\"--c:'+t.color+'\">'+svg(t.icon)+'<\/span><span><b>'+esc(t.name)+'<\/b><small>'+esc(t.card)+'<\/small><\/span><\/a>';}).join(''):'<div class=\"none\">No tool found. Try \u201chook\u201d, \u201ckeyword\u201d or \u201caudience\u201d.<\/div>';sr.hidden=false;}\r\n  si.addEventListener('input',showRes);si.addEventListener('focus',showRes);\r\n  si.addEventListener('keydown',function(e){\r\n    var links=sr.querySelectorAll('a');\r\n    if(e.key==='ArrowDown'&&links.length){e.preventDefault();sel=(sel+1)%links.length;}\r\n    else if(e.key==='ArrowUp'&&links.length){e.preventDefault();sel=(sel-1+links.length)%links.length;}\r\n    else if(e.key==='Enter'&&links.length){e.preventDefault();var l=links[sel>-1?sel:0];location.hash=l.getAttribute('href');si.value='';sr.hidden=true;si.blur();return;}\r\n    else return;\r\n    links.forEach(function(l,i){l.classList.toggle('sel',i===sel);});\r\n  });\r\n  sr.addEventListener('click',function(e){if(e.target.closest('a')){si.value='';sr.hidden=true;}});\r\n  \/\/ home search filter\r\n  var hq=document.getElementById('hm-q');\r\n  hq.addEventListener('input',function(){\r\n    var terms=hq.value.toLowerCase().split(\/\\s+\/).filter(Boolean),shown=0;\r\n    document.querySelectorAll('#hm-hub .tool').forEach(function(c){var ok=terms.every(function(w){return c.dataset.k.indexOf(w)>-1;});c.hidden=!ok;if(ok)shown++;});\r\n    document.querySelectorAll('#hm-hub .hgroup').forEach(function(g){g.hidden=!g.querySelector('.tool:not([hidden])');});\r\n    document.getElementById('hm-empty').style.display=shown?'none':'block';\r\n  });\r\n  \/\/ router\r\n  var ROUTES={home:window.HOME_META};TOOLS.forEach(function(t){ROUTES[t.slug]={title:t.title,meta:t.meta};});\r\n  var metaEl=document.querySelector('meta[name=\"description\"]'),bar=document.getElementById('bar');\r\n  function route(scroll){\r\n    var h=(location.hash||'').replace(\/^#\\\/?\/,'');\r\n    var grp=null;if(h.indexOf('grp-')===0){grp=h.slice(4);h='home';}\r\n    if(!ROUTES[h])h='home';\r\n    if(h!=='home')ensure(h);\r\n    document.querySelectorAll('.panel').forEach(function(p){p.hidden=p.dataset.route!==h;});\r\n    document.querySelectorAll('.sp').forEach(function(a){var on=a.dataset.route===h;a.classList.toggle('on',on);});\r\n    var cur=document.getElementById('cur');if(cur){var t=toolById(h);cur.textContent=t?t.name:'';cur.hidden=!t;}\r\n    document.title=ROUTES[h].title;metaEl.setAttribute('content',ROUTES[h].meta);\r\n    if(grp&&document.getElementById('grp-'+grp)){document.getElementById('grp-'+grp).scrollIntoView({block:'start'});}\r\n    else if(scroll)window.scrollTo(0,0);\r\n  }\r\n  window.addEventListener('hashchange',function(){route(true);setMega(false);});\r\n  document.addEventListener('click',function(e){var a=e.target.closest('a[data-grp]');if(a){e.preventDefault();location.hash='#grp-'+a.dataset.grp;}});\r\n  route(false);\r\n}\r\nwindow.addEventListener('DOMContentLoaded',boot);\r\n})();\r\n\r\n<\/script>\r\n<\/body>\r\n<\/html>\r\n\t\t\t\t<\/div>\n\t\t\n<\/div>\n\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Free Ad Copy &#038; Targeting Tools | Meta &#038; Google Ads Onground MediaFree marketing tools Ad Creative, Copy &amp; Targeting [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"","ast-site-content-layout":"full-width-container","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-587","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ongroundmedia.com\/index.php?rest_route=\/wp\/v2\/pages\/587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ongroundmedia.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ongroundmedia.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ongroundmedia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ongroundmedia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=587"}],"version-history":[{"count":7,"href":"https:\/\/ongroundmedia.com\/index.php?rest_route=\/wp\/v2\/pages\/587\/revisions"}],"predecessor-version":[{"id":610,"href":"https:\/\/ongroundmedia.com\/index.php?rest_route=\/wp\/v2\/pages\/587\/revisions\/610"}],"wp:attachment":[{"href":"https:\/\/ongroundmedia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}