';
c.appendChild(wrap);
c.appendChild(mk("div","rc-privacy","\uD83D\uDD12 No spam, ever. Just your results + a free training invite. Unsubscribe anytime."));
loadKartra();
return c;
}
function renderResults(result) {
var p=PERSONALITIES[result]||PERSONALITIES.A;
var wrap=mk("div","rc-results-wrap");
// Video card
var vc=mk("div","rc-card rc-fade-up");
var vf=mk("div","rc-video-frame");
var vd=mk("div","rc-kartra-video kartra_video_container"+p.videoId+" js_kartra_trackable_object");
vd.setAttribute("data-kt-type","video"); vd.setAttribute("data-kt-value",p.videoId); vd.setAttribute("data-kt-owner","8g85MA8k");
vf.appendChild(vd); vc.appendChild(vf);
var va=mk("div","rc-video-author");
va.appendChild(mkImg("rc-photo-circle rc-photo-xs",RACHEL_PHOTO,"Rachel Coons"));
var vat=mk("div");
vat.appendChild(mk("div","rc-video-author-name","RACHEL COONS \u00b7 MONEY COACH"));
vat.appendChild(mk("div","rc-video-author-sub","Watch the short video above \u2014 I recorded a personal message just for you based on your result."));
va.appendChild(vat); vc.appendChild(va); wrap.appendChild(vc);
// Result card
var rc2=mk("div","rc-card rc-fade-up");
rc2.appendChild(mk("div","rc-eyebrow","Your Money Personality Is\u2026"));
rc2.appendChild(mk("h1","rc-result-name",p.name));
rc2.appendChild(mk("div","rc-result-tagline","\u201c"+p.tagline+"\u201d"));
var banner=mk("div","rc-result-banner",p.description);
banner.style.background=p.bannerBg; banner.style.borderColor=p.bannerBorder; rc2.appendChild(banner);
rc2.appendChild(mk("div","rc-insights-title","What this actually looks like in your life:"));
var ul=mk("ul","rc-insights");
p.insights.forEach(function(it){
var li=mk("li","rc-insight"); li.appendChild(mk("span","rc-insight-icon","\u2736")); li.appendChild(mk("span",null,it)); ul.appendChild(li);
});
rc2.appendChild(ul); wrap.appendChild(rc2);
// Webinar CTA
var wb=mk("div","rc-webinar-block rc-fade-up");
wb.appendChild(mk("div","rc-eyebrow rc-eyebrow-light","\u2736 Free Live Training"));
wb.appendChild(mk("h2","rc-webinar-headline",p.webinarHeadline));
wb.appendChild(mk("p","rc-webinar-sub",p.webinarSubtext));
var eww=mk("div","rc-ew-widget-wrap");
var ewd=mk("div","ew-wid"); ewd.setAttribute("data-wid","eTH0GklykEk/+sL1fNiNTA=="); ewd.setAttribute("data-loaded","no"); ewd.setAttribute("data-schloaded","no");
eww.appendChild(ewd); wb.appendChild(eww);
wb.appendChild(mk("div","rc-privacy rc-privacy-light","Your spot is free. No credit card needed."));
wrap.appendChild(wb);
loadScript("https://ewpcdn-ecs.easywebinar.com/widget/js/new/ew-script.js","rc-ew");
loadScript("https://app.kartra.com/video/"+p.videoId,"rc-kv-"+p.videoId);
return wrap;
}
// ── Paint ──
function paint() {
var shell=document.getElementById("rcShell");
var footer=shell.querySelector(".rc-footer");
while(shell.firstChild&&shell.firstChild!==footer) shell.removeChild(shell.firstChild);
var node;
if(S.screen==="intro") node=renderIntro();
else if(S.screen==="question") node=renderQuestion();
else if(S.screen==="calculating") node=renderCalc();
else if(S.screen==="optin") node=renderOptIn();
else if(S.screen==="results") node=renderResults(S.result);
if(node) shell.insertBefore(node,footer);
window.scrollTo({top:0,behavior:"smooth"});
}
function setScreen(s){S.screen=s;paint();}
// ── Interactions ──
function startQuiz(){S.qIndex=0;S.answers=[];S.selected=null;setScreen("question");}
function pickOption(letter){
if(S.selected) return;
S.selected=letter; paint();
setTimeout(function(){
S.answers[S.qIndex]=letter; S.selected=null;
if(S.qIndex+1
I would like to receive future communications
I agree to the GDPR & CCPA Terms & Conditions
';
c.appendChild(wrap);
c.appendChild(mk("div","rc-privacy","\uD83D\uDD12 No spam, ever. Just your results + a free training invite. Unsubscribe anytime."));
loadKartra();
return c;
}
function renderResults(result) {
var p=PERSONALITIES[result]||PERSONALITIES.A;
var wrap=mk("div","rc-results-wrap");
// Video card
var vc=mk("div","rc-card rc-fade-up");
var vf=mk("div","rc-video-frame");
var vd=mk("div","rc-kartra-video kartra_video_container"+p.videoId+" js_kartra_trackable_object");
vd.setAttribute("data-kt-type","video"); vd.setAttribute("data-kt-value",p.videoId); vd.setAttribute("data-kt-owner","8g85MA8k");
vf.appendChild(vd); vc.appendChild(vf);
var va=mk("div","rc-video-author");
va.appendChild(mkImg("rc-photo-circle rc-photo-xs",RACHEL_PHOTO,"Rachel Coons"));
var vat=mk("div");
vat.appendChild(mk("div","rc-video-author-name","RACHEL COONS \u00b7 MONEY COACH"));
vat.appendChild(mk("div","rc-video-author-sub","Watch the short video above \u2014 I recorded a personal message just for you based on your result."));
va.appendChild(vat); vc.appendChild(va); wrap.appendChild(vc);
// Result card
var rc2=mk("div","rc-card rc-fade-up");
rc2.appendChild(mk("div","rc-eyebrow","Your Money Personality Is\u2026"));
rc2.appendChild(mk("h1","rc-result-name",p.name));
rc2.appendChild(mk("div","rc-result-tagline","\u201c"+p.tagline+"\u201d"));
var banner=mk("div","rc-result-banner",p.description);
banner.style.background=p.bannerBg; banner.style.borderColor=p.bannerBorder; rc2.appendChild(banner);
rc2.appendChild(mk("div","rc-insights-title","What this actually looks like in your life:"));
var ul=mk("ul","rc-insights");
p.insights.forEach(function(it){
var li=mk("li","rc-insight"); li.appendChild(mk("span","rc-insight-icon","\u2736")); li.appendChild(mk("span",null,it)); ul.appendChild(li);
});
rc2.appendChild(ul); wrap.appendChild(rc2);
// Webinar CTA
var wb=mk("div","rc-webinar-block rc-fade-up");
wb.appendChild(mk("div","rc-eyebrow rc-eyebrow-light","\u2736 Free Live Training"));
wb.appendChild(mk("h2","rc-webinar-headline",p.webinarHeadline));
wb.appendChild(mk("p","rc-webinar-sub",p.webinarSubtext));
var eww=mk("div","rc-ew-widget-wrap");
var ewd=mk("div","ew-wid"); ewd.setAttribute("data-wid","eTH0GklykEk/+sL1fNiNTA=="); ewd.setAttribute("data-loaded","no"); ewd.setAttribute("data-schloaded","no");
eww.appendChild(ewd); wb.appendChild(eww);
wb.appendChild(mk("div","rc-privacy rc-privacy-light","Your spot is free. No credit card needed."));
wrap.appendChild(wb);
loadScript("https://ewpcdn-ecs.easywebinar.com/widget/js/new/ew-script.js","rc-ew");
loadScript("https://app.kartra.com/video/"+p.videoId,"rc-kv-"+p.videoId);
return wrap;
}
// ── Paint ──
function paint() {
var shell=document.getElementById("rcShell");
var footer=shell.querySelector(".rc-footer");
while(shell.firstChild&&shell.firstChild!==footer) shell.removeChild(shell.firstChild);
var node;
if(S.screen==="intro") node=renderIntro();
else if(S.screen==="question") node=renderQuestion();
else if(S.screen==="calculating") node=renderCalc();
else if(S.screen==="optin") node=renderOptIn();
else if(S.screen==="results") node=renderResults(S.result);
if(node) shell.insertBefore(node,footer);
window.scrollTo({top:0,behavior:"smooth"});
}
function setScreen(s){S.screen=s;paint();}
// ── Interactions ──
function startQuiz(){S.qIndex=0;S.answers=[];S.selected=null;setScreen("question");}
function pickOption(letter){
if(S.selected) return;
S.selected=letter; paint();
setTimeout(function(){
S.answers[S.qIndex]=letter; S.selected=null;
if(S.qIndex+1