const {useState,useEffect,useRef,useMemo,useCallback}=React; /* ---------- store ---------- */ const SKEY='pausaos.beta.v1'; const DEFAULT_STATE={email:'mariana@northlight.io',name:'Mariana',fund:'Ananda Impact Ventures',company:'Northlight',drains:[12,3,15,6,9],eli:{ans:PD.DEMO_ANS,date:'2026-09-18'},booking:{clin:'steven',type:'first',date:'Mon 12 Oct 2026',time:'11:00',lang:'English'},firstSeen:true}; const store={s:(()=>{try{return Object.assign({},DEFAULT_STATE,JSON.parse(localStorage.getItem(SKEY)||'{}'))}catch(e){return {...DEFAULT_STATE}}})(),subs:new Set(), set(p){this.s={...this.s,...p};try{localStorage.setItem(SKEY,JSON.stringify(this.s))}catch(e){}this.subs.forEach(f=>f(this.s))}}; function useStore(){const[s,set]=useState(store.s);useEffect(()=>{store.subs.add(set);return()=>store.subs.delete(set)},[]);return[s,p=>store.set(p)]} /* ---------- router ---------- */ function parseHash(){const h=(location.hash||'#/').slice(1)||'/';const[p,qs]=h.split('?');const q={};(qs||'').split('&').filter(Boolean).forEach(kv=>{const[k,v]=kv.split('=');q[k]=decodeURIComponent(v||'')});return{path:p||'/',q}} function useRoute(){const[r,set]=useState(parseHash());useEffect(()=>{const init=parseHash();if(init.q.to)setTimeout(()=>{const el=document.getElementById(init.q.to);if(el)window.scrollTo(0,el.getBoundingClientRect().top+scrollY-90)},400);const f=()=>{const r=parseHash();set(r);if(r.q.to){setTimeout(()=>{const el=document.getElementById(r.q.to);if(el)window.scrollTo(0,el.getBoundingClientRect().top+scrollY-90)},120)}else window.scrollTo(0,0)};addEventListener('hashchange',f);return()=>removeEventListener('hashchange',f)},[]);return r} const go=p=>{location.hash=p}; /* ---------- icons ---------- */ const IC={ arrow:'M5 12h14M13 6l6 6-6 6',back:'M19 12H5M11 6l-6 6 6 6',check:'M5 12.5l4.5 4.5L19 7',x:'M6 6l12 12M18 6L6 18',plus:'M12 5v14M5 12h14', shield:'M12 3l7 3v6c0 4.5-3 7.8-7 9-4-1.2-7-4.5-7-9V6z',lock:'M7 11V8a5 5 0 0110 0v3M5 11h14v10H5z',mic:'M12 3a3 3 0 013 3v6a3 3 0 01-6 0V6a3 3 0 013-3zM5 11a7 7 0 0014 0M12 18v3', type:'M4 7V5h16v2M9 19h6M12 5v14',eye:'M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12zM12 15a3 3 0 100-6 3 3 0 000 6z',eyeoff:'M3 3l18 18M10.6 6.1A10 10 0 0112 6c6.5 0 10 6 10 6a17 17 0 01-3 3.6M6.6 6.6C3.8 8.4 2 12 2 12s3.5 7 10 7c1.7 0 3.2-.4 4.5-1', mail:'M3 6h18v12H3zM3 7l9 6 9-6',search:'M11 18a7 7 0 100-14 7 7 0 000 14zM21 21l-4.5-4.5',home:'M3 11l9-7 9 7v9a1 1 0 01-1 1h-5v-6H9v6H4a1 1 0 01-1-1z', users:'M9 11a4 4 0 100-8 4 4 0 000 8zM2 21v-1a6 6 0 0112 0v1M16 3.5a4 4 0 010 7.5M22 21v-1a6 6 0 00-4-5.6',cal:'M4 6h16v15H4zM4 10h16M9 3v4M15 3v4', gauge:'M12 21a9 9 0 119-9M12 12l4-4',grid:'M4 4h7v7H4zM13 4h7v7h-7zM4 13h7v7H4zM13 13h7v7h-7z',book:'M4 5a2 2 0 012-2h13v16H6a2 2 0 00-2 2zM4 5v16',leaf:'M5 19C5 10 11 4 20 4c0 9-6 15-15 15zM5 19l7-7', chev:'M9 6l6 6-6 6',chevl:'M15 6l-6 6 6 6',chevd:'M6 9l6 6 6-6',globe:'M12 21a9 9 0 100-18 9 9 0 000 18zM3 12h18M12 3c2.5 2.5 3.8 5.5 3.8 9s-1.3 6.5-3.8 9c-2.5-2.5-3.8-5.5-3.8-9S9.5 5.5 12 3z', pause:'M10 8v8M14 8v8M12 21a9 9 0 100-18 9 9 0 000 18z',edu:'M2 9l10-5 10 5-10 5zM6 11v5c3 2.5 9 2.5 12 0v-5',build:'M4 21V8l8-5 8 5v13M9 21v-6h6v6',circle:'M12 21a9 9 0 100-18 9 9 0 000 18zM12 16a4 4 0 100-8 4 4 0 000 8z', run:'M13 4a1.5 1.5 0 100 3 1.5 1.5 0 000-3zM8 21l3-6 3 2v4M6 12l3-3 4 1 2 3 3 1',wind:'M3 8h11a3 3 0 10-3-3M3 12h16a3 3 0 11-3 3M3 16h8', zap:'M13 2L4 14h7l-1 8 9-12h-7z',brain:'M9 4a3 3 0 00-3 3 3 3 0 00-2 5 3 3 0 002 5 3 3 0 006 1V5a2 2 0 00-3-1zM15 4a3 3 0 013 3 3 3 0 012 5 3 3 0 01-2 5 3 3 0 01-6 1', heart:'M12 20s-7-4.5-7-10a4 4 0 017-2.6A4 4 0 0119 10c0 5.5-7 10-7 10z',compass:'M12 21a9 9 0 100-18 9 9 0 000 18zM15.5 8.5l-2 5-5 2 2-5z', phone:'M5 3h4l2 5-2.5 1.5a11 11 0 005 5L15 12l5 2v4a2 2 0 01-2 2A16 16 0 013 5a2 2 0 012-2z',more:'M12 6h.01M12 12h.01M12 18h.01',dl:'M12 3v12M7 10l5 5 5-5M5 21h14', redo:'M4 12a8 8 0 0114-5.3L20 9M20 4v5h-5',video:'M3 6h12v12H3zM15 10l6-3v10l-6-3',file:'M6 3h9l4 4v14H6zM14 3v5h5',menu:'M4 7h16M4 12h16M4 17h16',spark:'M12 3v4M12 17v4M3 12h4M17 12h4M6 6l2.5 2.5M15.5 15.5L18 18M6 18l2.5-2.5M15.5 8.5L18 6'}; function Icon({n,s=18,w=1.5,style}){return } const SYS_IC={physical:'zap',mental:'brain',emotional:'heart',purpose:'compass'}; /* ---------- brand ---------- */ function Mark({s=28,c}){const cream=c&&c!=='currentColor';return } function Logo({href='#/',my}){return {my&&my}Pausa} function FlowLine({shape='pause'}){const id='fl'+Math.random().toString(36).slice(2,7); return } const Arrow=()=>; function Btn({children,href,onClick,ghost,sm,disabled,arrow=true,type,style,className=''}){const cls=`btn ${ghost?'btn-ghost':''} ${sm?'btn-sm':''} ${className}`; if(href)return {children}{arrow&&}; return } function Option({on,onClick,children}){return } function Tick({s=12}){return } function Eyebrow({children}){return {children}} function Toast({msg,onDone}){useEffect(()=>{if(msg){const t=setTimeout(onDone,2600);return()=>clearTimeout(t)}},[msg]);return msg?
{msg}
:null} function useToast(){const[m,set]=useState('');return[set('')}/>,set]} function Portrait({c,size,radius}){const st=size?{width:size,height:size,borderRadius:radius||8,aspectRatio:'auto'}:{}; if(c.photo)return
{c.name}
; if(c.real&&!(size&&size<100))return
; const ini=c.name.split(' ').map(w=>w[0]).slice(0,2).join(''); return
{ini}
} const DISCLAIMER='Pausa is not a clinic and does not provide therapy. Therapy is provided by independent licensed clinicians in the Pausa network.'; function Crisis(){return
Pausa is not an emergency service. If you are in immediate danger, call 112. For urgent support, 1411 or SNS 24 on 808 24 24 24, option 4, both 24 hours.
} /* ---------- public chrome ---------- */ function Nav({seg}){return
Log inPartner with Pausa
} function Footer(){const cols=[ ['Pausa',[['About','#/about'],['Mission and Values','#/mission'],['Careers','#/careers'],['Contact','mailto:hello@pausa.pt']]], ['For VC Funds',[['How it works','#/how'],['Pricing','#/funds'],['Trust centre','#/trust'],['Partner','#/partner']]], ['For Founders',[['Find a clinician','#/clinicians'],['Energy Load Index','#/app/index'],['Confidentiality','#/confidentiality'],['Start intake','#/intake']]], ['Resources',[['Founder\u2019s Manual','#/resources'],['The 17 Energy Drains','#/resources?to=drains'],['Protocols','#/resources?to=protocols'],['Evidence base','#/resources?to=evidence']]], ['For Psychologists',[['Join the network','#/psychologists'],['Rates','#/psychologists'],['Apply','#/psychologists?to=apply']]]]; return } function Page({seg,children}){return <>