'use client';

import {useMemo, useState, type PointerEvent} from 'react';
import Link from 'next/link';
import {
  ArrowRight, ArrowUpRight, BarChart3, Bell, Check,
  ChevronUp, CirclePlay, CreditCard,
  LockKeyhole, Menu, Plus, Settings2, ShieldCheck,
  SlidersHorizontal, Smartphone, Sparkles, X
} from 'lucide-react';
import type {LarpTemplate} from '@/lib/catalog';
import type {SiteConfig} from '@/lib/studio-types';
import {BrandIcon} from '@/components/brand-icon';
import {AppPreview} from '@/components/app-preview';
import {CommunityIcon} from '@/components/community-links';
import {useAccount} from '@/components/providers';
import './green-landing.css';

type PublicPackage = {id:string;name:string;description:string;cycle:string;priceCents:number;features:string[]};
type Props={catalog:LarpTemplate[];site:SiteConfig;packages:PublicPackage[]};
type Period='Week'|'Month'|'Year';
const spotlight=(event:PointerEvent<HTMLElement>)=>{
  const rect=event.currentTarget.getBoundingClientRect();
  event.currentTarget.style.setProperty('--mx', `${event.clientX-rect.left}px`);
  event.currentTarget.style.setProperty('--my', `${event.clientY-rect.top}px`);
};
const priority=['cash-app','shopify','youtube-studio','prizepicks','robinhood','chase','coinbase','paypal','airbnb','phantom','venmo','tradingview','tiktok-studio'];
const sections=[
  {name:'Featured',test:(_t:LarpTemplate)=>true},
  {name:'Banking & Payments',test:(t:LarpTemplate)=>/Banking|Payments/i.test(t.category)},
  {name:'Crypto & Trading',test:(t:LarpTemplate)=>/Crypto|Trading/i.test(t.category)},
  {name:'Creators & Business',test:(t:LarpTemplate)=>/Social|Creator|Business|Streaming|E-commerce|Shopping/i.test(t.category)},
  {name:'Lifestyle',test:(t:LarpTemplate)=>/Travel|Lifestyle|Cars|Entertainment|Media/i.test(t.category)},
];
const faqItems=[
  {q:'What is Larpdevice?',a:'Larpdevice is a creative platform for fictional app simulations used in stories, roleplay and content. These experiences are not real banking, payment or trading services.'},
  {q:'Can I explore before purchasing?',a:'Yes. Public previews and designated free demo apps are available. Other apps and certain saved-project features require the appropriate plan.'},
  {q:'Will my custom details save?',a:'Supported settings are saved to your account-owned LARP. Some imported app controls still need separate integration and are not guaranteed to work just because they appear in a preview.'},
  {q:'Does it work on phones?',a:'The Larpdevice website and its project viewer support mobile screens. You can also add the website to your phone Home Screen using your browser.'},
  {q:'How do the plans work?',a:'The current pricing below comes from the Owner Studio package settings. One-day and three-day passes expire automatically; recurring plans can be managed through account billing.'},
  {q:'Is this connected to the real financial apps?',a:'No. The interfaces are independent, fictional simulations. Larpdevice does not provide financial services or connect to real bank or exchange accounts.'}
];
const usd=(value:number)=>new Intl.NumberFormat('en-US',{style:'currency',currency:'USD'}).format(value);
const parseAmount=(s:string)=>Math.min(999999999,Math.max(0,Number(s.replace(/,/g,''))||0));
function SectionIntro({eyebrow,title,description}:{eyebrow:string;title:string;description:string}){
  return <div className="g-section-title"><span className="g-kicker">{eyebrow}</span><h2>{title}</h2><p>{description}</p></div>;
}
function AnalyticsPhone(){
  const [period,setPeriod]=useState<Period>('Week');
  const bars:Record<Period,number[]>={Week:[35,48,28,66,84,52,39],Month:[25,42,36,81,52,69,42],Year:[23,35,46,37,63,78,94]};
  const sums:Record<Period,string>={Week:'$1,244.26',Month:'$5,983.19',Year:'$72,440.00'};
  return <div className="g-device g-device-analytics" aria-label="Illustrative phone with interactive fictional analytics">
    <div className="g-device-hardware"><div className="g-device-camera"/><div className="g-device-side side-a"/><div className="g-device-side side-b"/>
      <div className="g-device-screen">
        <div className="g-device-status"><span>9:41</span><span>◕ ▮▮ ▰</span></div>
        <div className="g-device-screen-title"><span>‹</span><span>ANALYTICS</span><span>•••</span></div>
        <div className="g-analytics-neon">
          <div className="g-chart-switch" role="tablist" aria-label="Chart period">{(['Week','Month','Year'] as const).map(p=><button key={p} role="tab" aria-selected={period===p} type="button" className={p===period?'selected':''} onClick={()=>setPeriod(p)}>{p}</button>)}</div>
          <div className="g-analytics-total"><strong>{sums[period]}</strong><small>Fictional analytics · {period.toLowerCase()} view</small></div>
          <div className="g-chart-bars">{bars[period].map((height,i)=><div className="g-chart-bar-slot" key={i}><span className={i===3?'active':''} style={{height:`${height}%`}}/><small>{['MON','TUE','WED','THU','FRI','SAT','SUN'][i]}</small></div>)}</div>
        </div>
        <div className="g-analytics-tiles"><div><span>◈</span><small>Shopping</small><strong>$192.35</strong></div><div><span>▣</span><small>Travel</small><strong>$97.89</strong></div><div><span>◐</span><small>Food</small><strong>$48.72</strong></div><div><span>✦</span><small>Wellness</small><strong>$34.58</strong></div></div>
        <div className="g-device-tabbar"><span>⌂</span><span>▥</span><span>⌁</span><span>◉</span></div>
        <div className="g-device-homebar"/>
      </div>
    </div>
  </div>;
}
function WalletPhone({amount}:{amount:number}){
  const [tab,setTab]=useState<'Overview'|'Cards'|'Activity'>('Overview');
  return <div className="g-device g-device-wallet" aria-label="Illustrative phone with interactive fictional demo account">
    <div className="g-device-hardware"><div className="g-device-camera"/><div className="g-device-side side-a"/><div className="g-device-side side-b"/>
      <div className="g-device-screen">
        <div className="g-device-status"><span>9:41</span><span>◕ ▮▮ ▰</span></div>
        <div className="g-wallet-top"><span className="g-demo-symbol">L.</span><Bell size={13}/></div>
        <div className="g-wallet-balance"><span>Total demo balance</span><strong>{usd(amount)}</strong><div className="g-wallet-actions"><button type="button" onClick={()=>setTab('Activity')}>Activity <ArrowUpRight size={10}/></button><button type="button" onClick={()=>setTab('Cards')}>Cards <CreditCard size={10}/></button><span aria-hidden="true">⊞</span></div></div>
        <div className="g-wallet-content">
          {tab==='Overview'&&<>
            <strong className="g-wallet-section-title">Your cards <span>•••</span></strong>
            <div className="g-wallet-cards"><div className="g-wallet-card black"><span>◉◉</span><b>LARP</b><small>DEMO · •••• 4315</small></div><div className="g-wallet-card gray"><span>◉◉</span><b>STUDIO</b><small>DEMO · •••• 5616</small></div><div className="g-wallet-add">+</div></div>
            <div className="g-wallet-progress"><div className="g-wallet-ring"/><div><strong>Monthly scene budget</strong><small>Sample content only</small></div><span>64%</span></div>
            <strong className="g-wallet-section-title">Recent demo activity</strong>
            <div className="g-wallet-transaction"><span className="g-trans-icon">◈</span><span><b>Project preview</b><small>Today · sample</small></span><strong>−$124.99</strong></div>
            <div className="g-wallet-transaction"><span className="g-trans-icon">✦</span><span><b>Demo credits</b><small>Yesterday · sample</small></span><strong>+$750.00</strong></div>
            <div className="g-wallet-transaction"><span className="g-trans-icon">◉</span><span><b>Creative assets</b><small>Friday · sample</small></span><strong>−$47.49</strong></div>
          </>}
          {tab==='Cards'&&<div className="g-phone-alt"><CreditCard size={30}/><h3>Cards, your way.</h3><p>Preview fictional card designs inside an available LARP.</p><span>NO REAL CARD DATA</span></div>}
          {tab==='Activity'&&<div className="g-phone-alt"><BarChart3 size={30}/><h3>Every story has details.</h3><p>Edit supported transactions and activity using an app’s built-in editor.</p><span>SAMPLE ACTIVITY ONLY</span></div>}
        </div>
        <div className="g-wallet-nav" role="tablist" aria-label="Demo phone pages"><button type="button" role="tab" aria-label="Overview" aria-selected={tab==='Overview'} onClick={()=>setTab('Overview')}>⌂</button><button type="button" role="tab" aria-label="Cards" aria-selected={tab==='Cards'} onClick={()=>setTab('Cards')}>▣</button><button type="button" role="tab" aria-label="Activity" aria-selected={tab==='Activity'} onClick={()=>setTab('Activity')}>▥</button></div>
        <div className="g-device-homebar"/>
      </div>
    </div>
  </div>;
}
function Donut(){return <div className="g-donut"><span><b>24/7</b><small>Your ideas</small></span></div>}
export function GreenLanding({catalog,site,packages}:Props){
  const {user}=useAccount();
  const [menuOpen,setMenuOpen]=useState(false);
  const [category,setCategory]=useState('Featured');
  const [compare,setCompare]=useState(54);
  const [balance,setBalance]=useState('8312.64');
  const [faq,setFaq]=useState<number|null>(0);
  const [activeApp,setActiveApp]=useState<LarpTemplate|null>(null);
  const available=useMemo(()=>catalog.filter(a=>a.uiReady&&['available','early'].includes(a.status)&&a.publicVisible!==false),[catalog]);
  const featured=useMemo(()=>[...available].sort((a,b)=>{const aa=priority.indexOf(a.slug),bb=priority.indexOf(b.slug);return (aa<0?999:aa)-(bb<0?999:bb)}),[available]);
  const displayApps=featured.filter(sections.find(s=>s.name===category)?.test||sections[0].test).slice(0,8);
  const sampleBalance=parseAmount(balance);
  const startHref=user?'/dashboard':'/signup';
  const customTitle=site.heroTitle?.trim() && site.heroTitle!=='Make it look like';
  const customEmphasis=site.heroEmphasis?.trim() && site.heroEmphasis!=='you made it.';
  const customDescription=site.heroDescription?.trim() && !site.heroDescription.startsWith('Browse LARP experiences. Each app opens its own assigned UI file');
  return <div className="green-home" id="top">
    <div className="g-shell">
      <header className="g-header">
        <Link href="/" className="g-brand" aria-label="Larpdevice home"><span>larpdevice<span className="g-brand-period">.</span></span></Link>
        <nav className="g-nav-links" aria-label="Main navigation"><a href="#features">Features</a><a href="#how-it-works">How it works</a><a href="#apps">Experiences</a><a href="#plans">Pricing</a></nav>
        <div className="g-nav-actions"><Link href={user?'/dashboard':'/login'} className="g-nav-signin">{user?'Dashboard':'Sign in'}</Link><Link href={startHref} className="g-header-cta">{user?'Open Studio':'Start Larping'}<ArrowUpRight size={15}/></Link><button className="g-menu-toggle" type="button" aria-label={menuOpen?'Close menu':'Open menu'} aria-expanded={menuOpen} onClick={()=>setMenuOpen(!menuOpen)}>{menuOpen?<X size={19}/>:<Menu size={19}/>}</button></div>
        {menuOpen&&<nav className="g-mobile-menu" aria-label="Mobile menu">{[['Features','#features'],['How it works','#how-it-works'],['Experiences','#apps'],['Pricing','#plans'],['FAQ','#faq'],['Sign in','/login']].map(([name,href])=><Link key={href} href={href} onClick={()=>setMenuOpen(false)}>{name}<ArrowUpRight size={14}/></Link>)}</nav>}
      </header>
      <main>
        <section className="g-hero-grid" aria-label="Larpdevice introduction">
          <div className="g-hero-copy g-premium-card" onPointerMove={spotlight}>
            <div className="g-hero-upper"><span className="g-eyebrow"><span className="g-live-dot"/> {site.eyebrow && site.eyebrow!=='THE WORLD OF LARP EXPERIENCES'?site.eyebrow:'THE CREATIVE APP STUDIO'}</span>
              <h1>{customTitle?<>{site.heroTitle}<br/><span>{customEmphasis?site.heroEmphasis:'Your story.'}</span></>:<>Your story,<br/><span>beautifully told.</span></>}</h1>
              <p>{customDescription?site.heroDescription:'Your favorite app experiences, reimagined for content and storytelling. Create something that looks extraordinary—and make every detail your own.'}</p>
              <div className="g-hero-buttons"><Link href={startHref} className="g-btn">{user?'Open Dashboard':'Get Started'}<ArrowUpRight size={17}/></Link><a href="#how-it-works" className="g-outline-btn"><CirclePlay size={17}/> How it works</a></div>
            </div>
            <div className="g-hero-points"><span><ShieldCheck size={15}/> Fictional by design</span><span><Sparkles size={15}/> Made for creators</span><span><Smartphone size={15}/> Phone-ready</span></div>
          </div>
          <div className="g-hero-visual g-premium-card" onPointerMove={spotlight}>
            <div className="g-visual-glow" aria-hidden="true"/>
            <div className="g-hero-phone-group"><AnalyticsPhone/><WalletPhone amount={sampleBalance}/></div>
            <span className="g-visual-label">INTERACTIVE DESIGN PREVIEW <span>•</span> NOT A REAL FINANCIAL ACCOUNT</span>
          </div>
        </section>
        <section className="g-bento" id="features" aria-label="Platform features">
          <div className="g-feature-main g-premium-card" onPointerMove={spotlight}>
            <div className="g-bento-heading"><span className="g-kicker">MADE FOR THE DETAILS</span><h2>Your scenes. Your rules.</h2><p>Create and manage fictional app experiences with the tools already built into supported interfaces.</p></div>
            <div className="g-feature-mini-grid"><div className="g-mini-card"><span className="g-mini-icon"><LockKeyhole size={24}/></span><h3>Private by default.</h3><p>Your projects live in your account—not someone else's feed.</p></div><div className="g-mini-card"><span className="g-mini-icon"><SlidersHorizontal size={24}/></span><h3>Built-in editing.</h3><p>Use supported original in-app settings, not a replacement interface.</p></div></div>
            <Link className="g-text-link" href="/library">Explore all experiences <ArrowUpRight size={16}/></Link>
          </div>
          <div className="g-feature-graph g-premium-card" onPointerMove={spotlight}>
            <div className="g-bento-heading"><span className="g-kicker">MAKE THE EXPERIENCE YOURS</span><h2>Design without the noise.</h2><p>Spend less time looking for the right screen. More time creating.</p></div>
            <div className="g-graph-center"><Donut/><div className="g-graph-legends"><span><i/> Details</span><span><i/> Design</span><span><i/> Your story</span></div></div>
            <span className="g-graph-caption">Built for fictional creative experiences.</span>
          </div>
        </section>
        <section className="g-section g-experiences" id="apps">
          <div className="g-section-head"><SectionIntro eyebrow="THE COLLECTION" title="A whole world of experiences." description="Browse published local app previews, each with its own original UI style. What you see is a fictional simulation—not an official service."/><Link className="g-text-link" href="/library">View all apps <ArrowUpRight size={15}/></Link></div>
          <div className="g-category-tabs" role="tablist" aria-label="Experience categories">{sections.map(s=><button key={s.name} type="button" role="tab" aria-selected={category===s.name} className={category===s.name?'active':''} onClick={()=>{setCategory(s.name);setActiveApp(null)}}>{s.name}</button>)}</div>
          <div className="g-app-grid">{displayApps.map(app=><button type="button" className={'g-app-tile g-premium-card '+(activeApp?.slug===app.slug?'selected':'')} onPointerMove={spotlight} key={app.slug} onClick={()=>setActiveApp(activeApp?.slug===app.slug?null:app)} aria-pressed={activeApp?.slug===app.slug} title={'Preview '+app.name}><span className="g-app-icon"><BrandIcon template={app} size={52}/></span><strong>{app.name}</strong><span>{app.category}</span><i><ArrowUpRight size={15}/></i></button>)}</div>
          {displayApps.length===0&&<p className="g-empty">No published previews in this category yet. See the full app library for upcoming releases.</p>}
          {activeApp&&<div className="g-original-preview"><div className="g-original-preview-head"><div><strong>{activeApp.name} original UI preview</strong><p>This is the captured app interface—not a generated replacement. Some built-in features still require integration.</p></div><button type="button" onClick={()=>setActiveApp(null)} aria-label="Close original preview"><X size={19}/></button></div><div className="g-original-preview-device"><AppPreview template={activeApp} homepagePreview/></div><Link href={'/larp/'+encodeURIComponent(activeApp.slug)} className="g-btn">Open {activeApp.name}<ArrowUpRight size={15}/></Link></div>}
          <div className="g-app-bottom"><span><span className="g-live-dot"/> {available.length} published previews</span><span>Independent, fictional app experiences</span></div>
        </section>
        <section className="g-section g-how" id="how-it-works"><SectionIntro eyebrow="THREE SIMPLE STEPS" title="From idea to on-screen." description="No complicated workflow. Choose an experience, customize its supported details, and create your story."/>
          <div className="g-steps"><div className="g-step g-premium-card" onPointerMove={spotlight}><span>01 / DISCOVER</span><div className="g-step-art"><div className="g-step-icon-stack">{featured.slice(0,4).map(a=><BrandIcon key={a.slug} template={a} size={48}/>)}</div></div><h3>Find your experience.</h3><p>Browse available original app previews and pick what fits the scene.</p></div><div className="g-step g-premium-card" onPointerMove={spotlight}><span>02 / PERSONALIZE</span><div className="g-step-art g-step-settings"><Settings2 size={40}/><div className="g-step-input"><span>Sample balance</span><strong>{usd(sampleBalance)}</strong></div></div><h3>Make it yours.</h3><p>Edit the supported native fields in your own saved project.</p></div><div className="g-step g-premium-card" onPointerMove={spotlight}><span>03 / PRESENT</span><div className="g-step-art"><Smartphone size={78} strokeWidth={1.2}/><span className="g-step-live">LIVE PREVIEW <ArrowUpRight size={11}/></span></div><h3>Bring it to life.</h3><p>Open your fictional experience in its own tab or on your phone.</p></div></div>
        </section>
        <section className="g-section g-interactive" id="demo"><div className="g-interactive-card g-premium-card" onPointerMove={spotlight}><div className="g-interactive-copy"><span className="g-kicker">TRY THE FEEL</span><h2>See what a small change can do.</h2><p>Drag the slider and try a sample amount. This is just a preview—it never changes a real account or a saved project.</p><label htmlFor="g-demo-number">Fictional demo balance</label><div className="g-demo-input"><span>$</span><input id="g-demo-number" inputMode="decimal" value={balance} onChange={e=>setBalance(e.target.value.replace(/[^0-9.,]/g,'').slice(0,16))} aria-label="Fictional demo balance"/></div><div className="g-preset-row">{[['Starter',3000],['Creator',8312.64],['Studio',25000],['Showcase',150000]].map(([label,amount])=><button type="button" key={label} onClick={()=>setBalance(String(amount))}>{label}</button>)}</div><Link className="g-text-link" href={startHref}>Create your own <ArrowRight size={16}/></Link></div><div className="g-compare" aria-label="Before and after fictional balance comparison"><div className="g-compare-stage"><div className="g-compare-before"><span>BEFORE / SAMPLE</span><strong>$3,000.00</strong><small>An ordinary starting point</small></div><div className="g-compare-after" style={{clipPath:`inset(0 ${100-compare}% 0 0)`}}><span>AFTER / FICTIONAL PREVIEW</span><strong>{usd(sampleBalance)}</strong><small>Styled to tell your story</small></div><div className="g-compare-line" style={{left:`${compare}%`}}><span>↔</span></div></div><input type="range" min="8" max="92" value={compare} onChange={e=>setCompare(Number(e.target.value))} aria-label="Move comparison slider"/><div className="g-compare-labels"><span>BEFORE</span><span>DRAG TO COMPARE</span><span>AFTER</span></div></div></div></section>
        <section className="g-section g-media" id="media"><div className="g-section-head"><SectionIntro eyebrow="CREATIVE RESOURCES" title="Everything in its place." description="Browse the visual assets and app previews available to your account, all organized for your next project."/><Link className="g-text-link" href="/media">Media Library <ArrowUpRight size={16}/></Link></div><div className="g-media-grid">{featured.slice(0,6).map((a,i)=><Link key={a.slug} href="/media" className={'g-media-tile g-premium-card g-media-'+i} onPointerMove={spotlight}><img loading="lazy" src={a.thumbnail||`/app-thumbnails/${a.slug}.webp`} alt={`${a.name} preview image`}/><span><BrandIcon template={a} size={25}/><b>{a.name}</b><ArrowUpRight size={14}/></span></Link>)}</div></section>
        <section className="g-section g-pricing" id="plans"><SectionIntro eyebrow="STRAIGHTFORWARD PRICING" title="Your plan. Your pace." description="Packages below use the live Owner Studio pricing configuration—including temporary passes when enabled."/><div className="g-plan-grid">{packages.slice(0,6).map(p=><article key={p.id} className={'g-plan g-premium-card '+(p.cycle==='month'?'featured':'')} onPointerMove={spotlight}><div className="g-plan-top"><span>{p.cycle==='day1'||p.cycle==='day3'?'ONE-TIME ACCESS':'RECURRING ACCESS'}</span>{p.cycle==='month'&&<b>MOST POPULAR</b>}</div><h3>{p.name}</h3><p>{p.description}</p><div className="g-plan-price">${(p.priceCents/100).toFixed(2)}<small>{p.cycle==='day1'?'/ 24 hours':p.cycle==='day3'?'/ 72 hours':p.cycle==='week'?'/ week':p.cycle==='month'?'/ month':p.cycle==='quarter'?'/ quarter':''}</small></div><ul>{p.features.map(f=><li key={f}><Check size={14}/>{f}</li>)}</ul><Link href={'/pricing#'+p.id} className={p.cycle==='month'?'g-btn':'g-outline-btn'}>Explore plan <ArrowUpRight size={15}/></Link></article>)}</div><p className="g-plan-note"><ShieldCheck size={15}/> Purchases use Larpdevice’s existing secure billing flow. No live charges happen on this page.</p></section>
        <section className="g-section g-faq" id="faq"><SectionIntro eyebrow="THE ESSENTIALS" title="Good questions. Clear answers." description="Everything you need to know before bringing your next fictional experience to life."/><div className="g-faqs">{faqItems.map((f,i)=><div className={'g-faq-item '+(faq===i?'open':'')} key={f.q}><button type="button" aria-expanded={faq===i} onClick={()=>setFaq(faq===i?null:i)}><span>{f.q}</span>{faq===i?<ChevronUp size={19}/>:<Plus size={19}/>}</button>{faq===i&&<p>{f.a}</p>}</div>)}</div><p className="g-faq-help">Still curious? <Link href="/support">Visit support <ArrowUpRight size={14}/></Link></p></section>
        <section className="g-final-cta g-premium-card"><div><span className="g-kicker">YOUR NEXT STORY STARTS HERE</span><h2>Create something<br/><em>worth looking at.</em></h2><p>Open a new chapter in your creative work.</p><Link href={startHref} className="g-btn">Start Larping <ArrowUpRight size={17}/></Link></div><div className="g-cta-orb" aria-hidden="true"><span>L.</span></div></section>
      </main>
      <footer className="g-footer"><div className="g-footer-top"><div><Link className="g-brand" href="/">larpdevice<span className="g-brand-period">.</span></Link><p>A place for fictional app experiences, creative storytelling, and your next big idea.</p><div className="g-community"><a href="https://discord.gg/zzXCJFcyyR" target="_blank" rel="noopener noreferrer" aria-label="Larpdevice Discord"><CommunityIcon type="discord" size={22}/></a><a href="https://t.me/+kt5212Lhy0MwNWNh" target="_blank" rel="noopener noreferrer" aria-label="Larpdevice Telegram"><CommunityIcon type="telegram" size={22}/></a></div></div><div><strong>DISCOVER</strong><Link href="/library">Experiences</Link><Link href="/pricing">Pricing</Link><Link href="/media">Media</Link><Link href="/dashboard">Dashboard</Link></div><div><strong>LEARN</strong><Link href="/guides">Tutorials</Link><Link href="/support">Support</Link><Link href="/updates">Updates</Link><Link href="/free-upgrade">Free Upgrade</Link></div><div><strong>POLICIES</strong><Link href="/terms">Terms</Link><Link href="/privacy">Privacy</Link><Link href="/anti-scam">Anti-scam</Link></div></div><div className="g-footer-bottom"><span>© {new Date().getFullYear()} Larpdevice. Fictional simulations for entertainment and roleplay; not affiliated with the represented services.</span><a href="#top">Back to top ↑</a></div></footer>
    </div>
  </div>;
}
