{"version":3,"file":"PurpleProblemShell.D6gsQ89H.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/Q7dgfwTkr80FLyHWrDcU/QmOlnvRv88rGITA6VEsN/PurpleProblemShell.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import PurpleNav from\"https://framerusercontent.com/modules/aS9oBLNZLOGQ24Mmqp7e/UGXBNGUZeGtp27jpItJD/PurpleNav.js\";import PurpleDemoCTA from\"https://framerusercontent.com/modules/X8ap0ydQhZ3v5Eq44hEO/TWxlWkiDp835BlyZKp18/PurpleDemoCTA.js\";import PurpleFooter from\"https://framerusercontent.com/modules/edq8JO75u2Sqmv0qvygr/PUtJmQXUEe3HVAFJzBZI/PurpleFooter.js\";/**\n * Shared shell for \"Problems We're Solving\" article pages.\n * Renders Nav + the page body (scoped CSS) + Demo CTA + Footer, and drives the\n * scroll-reveal / count-up animations. Each problem page passes its own `html`.\n * CSS is scoped under `.e6prob` so the page's generic class/element selectors\n * (a, header, .wrap, .body, …) never leak onto the nav, footer, or other pages.\n */export const PROBLEM_CSS=`\n.e6prob{--ink:#1C1C1E;--muted:rgba(28,28,30,.72);--faint:rgba(28,28,30,.55);--line:rgba(28,28,30,.16);--line2:rgba(28,28,30,.1);--purple:#6D28D9;--purple-d:#4C1D95;--green:#35E29B;--green-d:#22C77F;--cream:#FBFAF5;--bg:#FFFFFF;--mono:'IBM Plex Mono',ui-monospace,monospace;background:#FFFFFF;font-family:Inter,'Helvetica Neue',Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;color:#1C1C1E}\n.e6prob *{box-sizing:border-box}\n.e6prob a{color:var(--purple);text-decoration:none}\n.e6prob a:hover{color:var(--purple-d)}\n.e6prob ::selection{background:var(--green);color:#0A1410}\n.e6prob .wrap{max-width:1240px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}\n.e6prob .row{display:flex;flex-wrap:wrap;gap:14px 48px}\n.e6prob .rail{margin:0;flex:0 0 190px;font-family:var(--mono);font-weight:400;font-size:11.5px;letter-spacing:.14em;color:var(--faint);padding-top:6px}\n.e6prob .rail.accent{color:var(--purple)}\n.e6prob .body{flex:1 1 420px;min-width:0;max-width:720px}\n.e6prob .sec{border-top:1px solid var(--line);padding:30px 0 38px}\n.e6prob .tag{font-family:var(--mono);font-size:11.5px;letter-spacing:.1em;color:rgba(28,28,30,.7);border:1px solid rgba(28,28,30,.2);padding:6px 11px;display:inline-block;transition:border-color .2s,color .2s}\n.e6prob .tag:hover{border-color:var(--purple);color:var(--purple)}\n.e6prob h1{margin:0 0 22px;font-weight:500;font-size:clamp(34px,4.2vw,56px);line-height:1.08;letter-spacing:-.015em;max-width:30ch;text-wrap:balance}\n.e6prob h3{margin:0 0 8px;font-weight:600;font-size:16px}\n.e6prob .lead{margin:0;font-size:clamp(21px,2vw,26px);font-weight:500;line-height:1.4;text-wrap:pretty}\n.e6prob p.copy{font-size:16px;line-height:1.65;color:var(--muted);text-wrap:pretty}\n.e6prob ul.list{margin:0;padding-left:18px;font-size:16px;line-height:1.6;color:var(--muted);display:flex;flex-direction:column;gap:9px}\n.e6prob ul.list b{color:var(--ink);font-weight:600}\n.e6prob header{background:var(--bg)}\n.e6prob .header-inner{padding:calc(60px + clamp(56px,6vw,88px)) 0 clamp(30px,4vw,44px)}\n.e6prob .crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin-bottom:26px;font-family:var(--mono);font-size:12px;letter-spacing:.14em}\n.e6prob .crumbs a{color:var(--faint)}\n.e6prob .crumbs a:hover{color:var(--ink)}\n.e6prob .crumbs .sep{color:rgba(28,28,30,.3)}\n.e6prob .crumbs .cat{color:var(--purple)}\n.e6prob .sub{margin:0 0 26px;font-size:clamp(17px,1.4vw,19px);line-height:1.6;color:var(--muted);max-width:62ch}\n.e6prob .spikewrap{margin-top:30px;border:1px solid var(--line2);background:linear-gradient(180deg,#fff,#FBFAF5);border-radius:4px;overflow:hidden}\n.e6prob .spikewrap .cap{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;color:var(--faint);border-bottom:1px solid var(--line2)}\n.e6prob .spikewrap .cap b{color:var(--purple);font-weight:600}\n.e6prob .spike{display:block;width:100%;height:140px}\n.e6prob .spike-area{fill:url(#g6);opacity:0;transition:opacity 1.2s ease .6s}\n.e6prob .spike-line{fill:none;stroke:var(--purple);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}\n.e6prob .spike-dot{fill:var(--purple)}\n.e6prob .in .spike-area{opacity:.16}\n.e6prob .roles{display:flex;flex-direction:column}\n.e6prob .role{display:flex;gap:16px;padding:16px 0;border-top:1px solid var(--line2)}\n.e6prob .role:first-child{border-top:none;padding-top:2px}\n.e6prob .role .who{flex:0 0 170px;font-weight:600;font-size:14px}\n.e6prob .role .desc{margin:0;font-size:15px;line-height:1.55;color:var(--muted)}\n.e6prob .costs{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:0 32px}\n.e6prob .costcol{border-top:1px solid var(--line2);padding:16px 0 24px}\n.e6prob .costcol h4{margin:0 0 10px;font-family:var(--mono);font-weight:400;font-size:11px;letter-spacing:.14em;color:rgba(28,28,30,.5)}\n.e6prob .costcol ul{margin:0;padding-left:18px;font-size:15px;line-height:1.55;color:var(--muted);display:flex;flex-direction:column;gap:8px}\n.e6prob .costcol ul b{color:var(--ink);font-weight:600}\n.e6prob .wayout{background:var(--cream);border-top:1px solid var(--line)}\n.e6prob .wayout-pad{padding:clamp(40px,5vw,64px) 0 clamp(56px,7vw,88px)}\n.e6prob .prop{display:flex;gap:22px;border-top:1px solid var(--line2);padding:20px 0}\n.e6prob .prop .n{font-family:var(--mono);font-size:13px;color:var(--purple);flex:0 0 28px;padding-top:3px}\n.e6prob .prop p{margin:0;font-size:16.5px;line-height:1.6;color:var(--ink);text-wrap:pretty}\n.e6prob .prop p b{font-weight:600}\n.e6prob .metrics{margin-top:26px}\n.e6prob .metric-rule{height:10px;background-image:linear-gradient(rgba(28,28,30,.3),rgba(28,28,30,.3)),linear-gradient(rgba(28,28,30,.3),rgba(28,28,30,.3)),linear-gradient(rgba(28,28,30,.3),rgba(28,28,30,.3));background-size:100% 1px,1px 9px,1px 9px;background-position:left center,left center,right center;background-repeat:no-repeat;margin-bottom:6px}\n.e6prob .metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0 32px}\n.e6prob .metric{border-top:1px solid var(--line);padding:18px 0 22px}\n.e6prob .metric .num{font-family:var(--mono);font-weight:500;font-size:clamp(26px,2.4vw,38px);line-height:1}\n.e6prob .metric .lbl{margin-top:9px;font-size:14px;color:rgba(28,28,30,.65);line-height:1.5}\n.e6prob .closer{margin:6px 0 0;font-size:15px;line-height:1.6;color:var(--muted);max-width:64ch}\n.e6prob .cta{display:flex;align-items:center;flex-wrap:wrap;gap:16px 32px;margin-top:32px}\n.e6prob .btn{display:inline-block;background:var(--green);color:#0A1410;font-weight:600;font-size:16px;padding:13px 24px;border-radius:2px;transition:background .15s,transform .15s}\n.e6prob .go2{display:block;width:max-content;margin-top:16px;font-weight:600;font-size:15.5px;color:var(--purple);border-bottom:1px solid rgba(109,40,217,.4);padding-bottom:2px;transition:color .12s,border-color .12s}\n.e6prob .go2:hover{color:var(--purple-d);border-color:var(--purple-d)}\n.e6prob .btn:hover{background:var(--green-d);color:#0A1410;transform:translateY(-1px)}\n.e6prob .lnk{color:var(--ink);font-size:16px;border-bottom:1px solid rgba(28,28,30,.35);padding-bottom:2px;transition:color .15s,border-color .15s}\n.e6prob .lnk:hover{color:var(--purple);border-color:var(--purple)}\n.e6prob .reveal{opacity:0;transform:translateY(16px);transition:opacity .6s cubic-bezier(.2,.7,.2,1),transform .6s cubic-bezier(.2,.7,.2,1)}\n.e6prob .reveal.in{opacity:1;transform:none}\n.e6prob .stagger>*{opacity:0;transform:translateY(12px);transition:opacity .5s ease,transform .5s ease}\n.e6prob .stagger.in>*{opacity:1;transform:none}\n.e6prob .stagger.in>*:nth-child(1){transition-delay:.05s}.e6prob .stagger.in>*:nth-child(2){transition-delay:.12s}\n.e6prob .stagger.in>*:nth-child(3){transition-delay:.19s}.e6prob .stagger.in>*:nth-child(4){transition-delay:.26s}\n.e6prob .stagger.in>*:nth-child(5){transition-delay:.33s}.e6prob .stagger.in>*:nth-child(6){transition-delay:.40s}\n.e6prob .h-anim>*{opacity:0;animation:e6phpop .7s cubic-bezier(.2,.7,.2,1) forwards}\n.e6prob .h-anim>*:nth-child(1){animation-delay:.05s}.e6prob .h-anim>*:nth-child(2){animation-delay:.15s}\n.e6prob .h-anim>*:nth-child(3){animation-delay:.28s}.e6prob .h-anim>*:nth-child(4){animation-delay:.42s}\n.e6prob .h-anim>*:nth-child(5){animation-delay:.56s}\n.e6prob .spike-dot{animation:e6ppulse 1.8s ease-in-out infinite}\n@keyframes e6phpop{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}\n@keyframes e6ppulse{0%,100%{r:5;opacity:1}50%{r:8;opacity:.55}}\n@media (prefers-reduced-motion:reduce){\n.e6prob *{transition:none!important;animation:none!important}\n.e6prob .reveal,.e6prob .stagger>*,.e6prob .h-anim>*{opacity:1!important;transform:none!important}\n.e6prob .in .spike-area{opacity:.16}\n}\n`;export default function ProblemPage({html}){const ref=useRef(null);useEffect(()=>{const root=ref.current;if(!root)return;const nodes=root.querySelectorAll(\".reveal, .stagger\");const run=el=>{if(el.dataset.done)return;el.dataset.done=\"1\";const target=parseFloat(el.dataset.count);const pre=el.dataset.prefix||\"\";const suf=el.dataset.suffix||\"\";const dur=1100;let start=null;const fmt=n=>n>=1e3?n.toLocaleString(\"en-US\"):String(n);const step=ts=>{if(!start)start=ts;const p=Math.min((ts-start)/dur,1);const e2=1-Math.pow(1-p,3);el.textContent=pre+fmt(Math.round(target*e2))+suf;if(p<1)requestAnimationFrame(step);};requestAnimationFrame(step);};const countUp=scope=>{const list=scope.querySelectorAll?scope.querySelectorAll(\"[data-count]\"):[];list.forEach(run);};const reduce=window.matchMedia&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;if(reduce){nodes.forEach(el=>{el.classList.add(\"in\");countUp(el);});return;}const io=new IntersectionObserver(entries=>{entries.forEach(e=>{if(e.isIntersecting){e.target.classList.add(\"in\");countUp(e.target);io.unobserve(e.target);}});},{threshold:.18,rootMargin:\"0px 0px -8% 0px\"});nodes.forEach(el=>io.observe(el));return()=>io.disconnect();},[]);return /*#__PURE__*/_jsxs(\"div\",{style:{background:\"#FFFFFF\"},children:[/*#__PURE__*/_jsx(PurpleNav,{}),/*#__PURE__*/_jsxs(\"div\",{ref:ref,className:\"e6prob\",children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:PROBLEM_CSS}}),/*#__PURE__*/_jsx(\"div\",{dangerouslySetInnerHTML:{__html:html}})]}),/*#__PURE__*/_jsx(PurpleDemoCTA,{}),/*#__PURE__*/_jsx(PurpleFooter,{})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProblemPage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"PROBLEM_CSS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"kQA2FE,SAAwB,EAAY,CAAC,QAAM,CAAC,IAAM,EAAIA,EAAO,IAAI,EAAmnC,OAAjnC,MAAc,CAAC,IAAM,EAAK,EAAI,QAAQ,GAAG,CAAC,EAAK,OAAO,IAAM,EAAM,EAAK,iBAAiB,mBAAmB,EAAQ,EAAI,GAAI,CAAC,GAAG,EAAG,QAAQ,KAAK,OAAO,EAAG,QAAQ,KAAK,IAAI,IAAM,EAAO,WAAW,EAAG,QAAQ,KAAK,EAAQ,EAAI,EAAG,QAAQ,QAAQ,GAAS,EAAI,EAAG,QAAQ,QAAQ,GAAsB,EAAM,KAAW,EAAI,GAAG,GAAG,IAAI,E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