// Frame / Clarity public website. Examples are deliberately local and labelled;
// this walkthrough never invokes booking, stock, payment or message APIs.
const CLARITY_EXAMPLE_ROWS = [
  {id:'appointment',kind:'Appointments',time:'09:00',title:"Bike fit",customer:'Alex Morgan',detail:'One hour · workshop',status:'Confirmed',amount:'£45.00',impact:'One appointment reserves this time in the calendar.'},
  {id:'group',kind:'Group bookings',time:'10:30',title:"Forest trail ride",customer:'Jamie Taylor',detail:'2 places · 12-place session',status:'Confirmed',amount:'£90.00',impact:'Two places are reserved against the session’s shared capacity.'},
  {id:'stay',kind:'Overnight stays',time:'15:00',title:"Meadow pitch",customer:'Robin Ellis',detail:'2 nights · 2 guests',status:'Confirmed',amount:'£70.00',impact:'The pitch is reserved for both nights. Departure does not occupy another night.'},
  {id:'product',kind:'Products & stock',time:'16:00',title:"Gloves & water bottle",customer:'Charlie Reed',detail:'2 products · collection',status:'Ready to collect',amount:'£43.00',impact:'Tracked products are reserved until collection. Collection updates physical stock.'}
];
function ClarityGlyph({kind='calendar',...props}) {
  const paths={calendar:'M7 3v4m10-4v4M4 10h16M5 5h14a1 1 0 0 1 1 1v14H4V6a1 1 0 0 1 1-1Z',product:'m3 11 8-8h8v8l-8 8-8-8ZM15 7h.01',group:'M16 21v-3a5 5 0 0 0-10 0v3M11 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8m8 1a4 4 0 0 1 3 4v5M18 3a4 4 0 0 1 0 8',stay:'m3 11 9-8 9 8M5 10v11h14V10M9 21v-7h6v7',arrow:'M5 12h14m-6-6 6 6-6 6',check:'m5 12 4 4L19 6',customer:'M19 21a7 7 0 0 0-14 0M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10',history:'M3 5v6h6M4 10a9 9 0 1 1 0 5m8-9v6l4 2'};
  return <svg aria-hidden="true" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.65" strokeLinecap="round" strokeLinejoin="round" {...props}><path d={paths[kind]||paths.calendar}/></svg>;
}
function claritySection(event,id) {
  if(event.metaKey||event.ctrlKey||event.shiftKey||event.altKey)return;
  const section=document.getElementById(id);if(!section)return;
  event.preventDefault();section.scrollIntoView({block:'start'});section.querySelector('h2')?.focus({preventScroll:true});
}
function ClaritySiteHeader() {
  const [open,setOpen]=React.useState(false),toggle=React.useRef(null);
  const links=[['product','The workspace'],['businesses','For your business'],['pricing','Pricing']];
  return <header className="cs-header" onKeyDown={e=>{if(e.key==='Escape'&&open){setOpen(false);toggle.current?.focus();}}}>
    <div className="cs-nav cs-wrap">
      <a className="cs-logo" href="/" aria-label={uiText("Bookuno home")}><img src="/business-app/brand/frame-lockup-blue.svg" width="171" height="40" alt="Bookuno"/></a>
      <nav className="cs-desktop-links" aria-label={uiText("Main navigation")}>{links.map(([id,label])=><a key={id} href={'/business.html#'+id} onClick={e=>claritySection(e,id)}>{uiText(label)}</a>)}</nav>
      <div className="cs-nav-actions"><a className="cs-signin" href="/app.html#/auth?type=business&mode=login">{uiText("Sign in")}</a><a className="cs-button cs-primary cs-nav-start" href="/app.html#/business/start">{uiText("Start Free ")}<ClarityGlyph kind="arrow"/></a><button ref={toggle} className="cs-menu-toggle" aria-expanded={open} aria-controls="clarity-mobile-menu" onClick={()=>setOpen(!open)}>{open?uiText("Close"):uiText("Menu")}<span aria-hidden="true">{open?'×':'☰'}</span></button></div>
    </div>
    {open&&<nav id="clarity-mobile-menu" className="cs-mobile-links cs-wrap" aria-label={uiText("Mobile navigation")}>{links.map(([id,label])=><a key={id} href={'/business.html#'+id} onClick={e=>{claritySection(e,id);setOpen(false);}}>{uiText(label)}<ClarityGlyph kind="arrow"/></a>)}<a href="/app.html#/auth?type=business&mode=login">{uiText("Business sign in")}</a><a href="/order.html">{uiText("Manage my orders & bookings")}</a></nav>}
  </header>;
}
function ClarityProductPreview() {
  const [filter,setFilter]=React.useState('All'),[detail,setDetail]=React.useState(null),[view,setView]=React.useState('business'),recordButtons=React.useRef({});
  const rows=CLARITY_EXAMPLE_ROWS.filter(r=>filter==='All'||r.kind===filter);
  return <div className="cs-preview" aria-label={uiText("Interactive example workspace")}>
    <div className="cs-preview-caption"><span><span className="cs-example-dot"/>{uiText(" Interactive product preview")}</span><span>{uiText("Fictional business & customer details")}</span></div>
    <div className="cs-preview-layout">
      <aside className="cs-preview-side" aria-label={uiText("Example workspace context")}><img src="/business-app/brand/frame-lockup-blue.svg" alt="Bookuno" width="128" height="30"/><div className="cs-example-business"><strong>{uiText("Northline Cycle Co.")}</strong><span>{uiText("Products & bookings")}</span></div><span className="cs-side-current"><ClarityGlyph/>{uiText(" Today")}</span><span><ClarityGlyph/>{uiText(" Calendar")}</span><span><ClarityGlyph kind="history"/>{uiText(" Orders & bookings")}</span><span><ClarityGlyph kind="customer"/>{uiText(" Customers")}</span><p>{uiText("A clearer day ahead.")}</p></aside>
      <div className="cs-preview-main">
        <div className="cs-preview-top"><span>{uiText("Example · Tuesday 17 November")}</span><span className="cs-example-avatar" aria-hidden="true">{uiText("NM")}</span></div>
        <div className="cs-preview-heading"><div><h2 tabIndex="-1">{uiText("Your whole day, in view.")}</h2><p>{uiText("Bookings, orders and the details that matter.")}</p></div><div className="cs-view-switch" role="group" aria-label={uiText("Example view")}><button aria-pressed={view==='business'} onClick={()=>{setView('business');setDetail(null);}}>{uiText("Business")}</button><button aria-pressed={view==='customer'} onClick={()=>{setView('customer');setDetail(null);}}>{uiText("Customer")}</button></div></div>
        {view==='business'?<>
          <div className="cs-example-metrics"><div><span>{uiText("Bookings & orders")}</span><strong>4</strong></div><div><span>{uiText("Group places")}</span><strong>2</strong></div><div><span>{uiText("Arriving today")}</span><strong>1</strong></div><div><span>{uiText("Ready to collect")}</span><strong>1</strong></div></div>
          <div className="cs-preview-filters" role="group" aria-label={uiText("Filter example workspace")}>{['All','Appointments','Group bookings','Overnight stays','Products & stock'].map(label=><button key={label} aria-pressed={filter===label} onClick={()=>{setFilter(label);setDetail(null);}}>{uiText(label)}</button>)}</div>
          <div className="cs-example-list" aria-live="polite"><div className="cs-example-list-label"><span>{uiText("Today’s activity")}</span><span>{rows.length}{uiText(" of 4 entries")}</span></div>{rows.map(r=><button key={r.id} ref={node=>{recordButtons.current[r.id]=node;}} className="cs-example-row" aria-label={uiText("View example ")+r.title} aria-expanded={detail===r.id} aria-controls={"clarity-example-detail-"+r.id} onClick={()=>setDetail(detail===r.id?null:r.id)}><time>{r.time}</time><span className={'cs-type-icon cs-'+r.id}><ClarityGlyph kind={r.id==='appointment'?'calendar':r.id}/></span><span className="cs-row-description"><strong>{r.title}</strong><span>{r.customer} · {r.detail}</span></span><span className={'cs-status '+(r.id==='product'?'cs-status-blue':'')}>{r.status}</span><ClarityGlyph kind="arrow"/></button>)}</div>
          {detail&&<div id={"clarity-example-detail-"+detail} className="cs-example-detail" role="region" aria-label={uiText("Example record details")}><div><strong>{CLARITY_EXAMPLE_ROWS.find(r=>r.id===detail).title}</strong><button onClick={()=>{recordButtons.current[detail]?.focus();setDetail(null);}} aria-label={uiText("Close example details")}>×</button></div><p>{CLARITY_EXAMPLE_ROWS.find(r=>r.id===detail).impact}</p><dl><div><dt>{uiText("Saved total")}</dt><dd>{CLARITY_EXAMPLE_ROWS.find(r=>r.id===detail).amount}</dd></div><div><dt>{uiText("Recorded payment")}</dt><dd>£0.00</dd></div></dl><span>{uiText("Illustration only. No payment has been taken.")}</span></div>}
        </>:<div className="cs-customer-example"><div className="cs-customer-example-head"><span className="cs-type-icon cs-group"><ClarityGlyph kind="group"/></span><div><span>{uiText("Jamie’s example booking")}</span><h3>{uiText("Forest trail ride")}</h3></div><span className="cs-status">{uiText("Confirmed")}</span></div><dl><div><dt>{uiText("When")}</dt><dd>{uiText("Tuesday 17 November · 10:30")}</dd></div><div><dt>{uiText("Booked with")}</dt><dd>{uiText("Northline Cycle Co.")}</dd></div><div><dt>{uiText("People")}</dt><dd>{uiText("2 places")}</dd></div><div><dt>{uiText("Saved total")}</dt><dd>£90.00</dd></div></dl><p>{uiText("The same saved details, presented clearly for the customer. Payment collection and changes depend on the business’s settings.")}</p></div>}
        <p className="cs-preview-note">{uiText("Explore the example. No bookings, payments or messages are submitted.")}</p>
      </div>
    </div>
  </div>;
}
function ClarityPlanCards() {
  return <><div className="cs-plans"><article><span className="cs-eyebrow">{uiText("A useful place to start")}</span><h3>{uiText("Free")}</h3><p className="cs-price">£0 <span>{uiText("with no expiry")}</span></p><p>{uiText("Your own booking page and a clear everyday diary.")}</p><ul><li><ClarityGlyph kind="check"/>{uiText(" One calendar")}</li><li><ClarityGlyph kind="check"/>{uiText(" Unlimited bookings")}</li><li><ClarityGlyph kind="check"/>{uiText(" Booking page & customer diary")}</li><li><ClarityGlyph kind="check"/>{uiText(" No card needed")}</li></ul><a className="cs-button cs-primary" href="/app.html#/business/start">{uiText("Start Free ")}<ClarityGlyph kind="arrow"/></a></article><article className="cs-pro-plan"><span className="cs-eyebrow">{uiText("More room for your team")}</span><h3>{uiText("Pro")}</h3><p className="cs-price">£7.99 <span>{uiText("per month")}</span></p><p>{uiText("Team calendars and additional bookable resources.")}</p><ul><li><ClarityGlyph kind="check"/>{uiText(" Multiple staff calendars")}</li><li><ClarityGlyph kind="check"/>{uiText(" Additional bookable resources")}</li><li><ClarityGlyph kind="check"/>{uiText(" Or £79 billed yearly")}</li><li><ClarityGlyph kind="check"/>{uiText(" Cancel future renewal in billing")}</li></ul><a className="cs-button cs-secondary" href="/app.html#/pricing">{uiText("Compare plans ")}<ClarityGlyph kind="arrow"/></a></article></div><p className="cs-pricing-terms">{uiText("Pro renews at £7.99 each month or £79 each year until cancelled. Free stays available. SMS and payment processing are separate. No booking commission under the current plans.")}</p></>;
}
function ClaritySiteFooter() {
  return <footer className="cs-footer"><div className="cs-wrap cs-footer-main"><div><a className="cs-logo" href="/" aria-label={uiText("Bookuno home")}><img src="/business-app/brand/frame-lockup-blue.svg" alt="Bookuno" width="171" height="40"/></a><p>{uiText("A clearer day ahead.")}<br/>{uiText("One place to run your business.")}</p></div><nav aria-label={uiText("Business links")}><strong>Bookuno</strong><a href="/business.html">{uiText("For business")}</a><a href="/app.html#/pricing">{uiText("Pricing")}</a><a href="/app.html#/auth?type=business&mode=login">{uiText("Business sign in")}</a></nav><nav aria-label={uiText("Customer links")}><strong>{uiText("Your bookings")}</strong><a href="/order.html">{uiText("Orders & bookings")}</a><a href="/#/discover">{uiText("Find a business")}</a><a href="/help.html">{uiText("Help & support")}</a></nav><nav aria-label={uiText("Company links")}><strong>{uiText("Company")}</strong><a href="/help.html">{uiText("Contact Bookuno support")}</a><a href="/privacy.html">{uiText("Privacy")}</a><a href="/terms.html">{uiText("Terms")}</a><a href="/terms.html#cancellations">{uiText("Refunds & cancellations")}</a></nav></div><div className="cs-wrap cs-footer-legal">{uiText("© 2026 SVE Ventures Ltd trading as Bookuno · Company no. 16822306, England & Wales")}</div></footer>;
}
function PageBizSales({vertical=null}) {
 useBookunoLocale();
  React.useEffect(()=>{const id=location.hash.slice(1);if(['product','businesses','pricing','questions'].includes(id))document.getElementById(id)?.scrollIntoView({block:'start'});},[]);
  const capabilities=[
    {icon:'product',title:"Sell products.",body:'Organise your catalogue, reserve tracked stock and keep collection orders moving.',examples:'Shops · workshops · on-site sales'},
    {icon:'calendar',title:"Book someone’s time.",body:'Bring appointments, customer details and team availability into a clear calendar.',examples:'Services · lessons · appointments'},
    {icon:'group',title:"Make every place count.",body:'Manage dated sessions, shared capacity and the people booked onto them.',examples:'Tours · tracks · classes · activities'},
    {icon:'stay',title:"Welcome overnight guests.",body:'Organise pitches and overnight spaces, stay dates, arrivals and departures.',examples:'Campsites · pitches · overnight stays'}
  ];
  return <div className="web clarity-site"><a className="cs-skip" href="#clarity-main" onClick={e=>{e.preventDefault();document.getElementById('clarity-main')?.focus();}}>{uiText("Skip to content")}</a><ClaritySiteHeader/><main id="clarity-main" tabIndex="-1">
    <section className="cs-hero cs-wrap"><span className="cs-eyebrow">{uiText("Bookings. Orders. A clearer day.")}</span><h1>{vertical==='barbers'?<>{uiText("Your clients.")}<br/><span>{uiText("Your day, in order.")}</span></>:<>{uiText("Your business.")}<br/><span>{uiText("Beautifully in order.")}</span></>}</h1><p>{uiText("Bookings, products, customers and stock.")}<br className="cs-desktop-break"/>{uiText(" One calm workspace, built around the way you work.")}</p><div className="cs-hero-actions"><a className="cs-button cs-primary" href="/app.html#/business/start">{uiText("Start Free ")}<ClarityGlyph kind="arrow"/></a><a className="cs-button cs-secondary" href="/business.html#product" onClick={e=>claritySection(e,'product')}>{uiText("Explore the workspace")}</a></div><span className="cs-hero-note">{uiText("No card needed. Free has no expiry.")}</span></section>
    <section className="cs-product-section cs-wrap" id="product" aria-label={uiText("Explore the Bookuno workspace")}><ClarityProductPreview/></section>
    <section className="cs-section cs-wrap cs-intro"><div><span className="cs-eyebrow">{uiText("Room for the whole business")}</span><h2 tabIndex="-1">{uiText("Less switching.")}<br/>{uiText("More getting on with it.")}</h2></div><p>{uiText("A booking is part of a bigger day. Keep the customer, the availability, the order and its history together, so you can see what needs doing and get back to the work you love.")}</p></section>
    <section className="cs-pains" aria-labelledby="clarity-pains-title"><div className="cs-wrap"><div className="cs-section-heading"><span className="cs-eyebrow">{uiText("The busywork adds up")}</span><h2 id="clarity-pains-title" tabIndex="-1">{uiText("Your day is complicated enough.")}<br/>{uiText("Your software should bring it together.")}</h2><p>{uiText("Bookuno connects the details that are easy to lose between a diary, a spreadsheet and a message thread.")}</p></div><div className="cs-pain-grid"><article><span>{uiText("FROM SCATTERED RECORDS")}</span><h3>{uiText("One customer. The whole picture.")}</h3><p>{uiText("Find products, visits and saved balances in one orders workspace. Open the history without piecing it together from separate conversations.")}</p></article><article><span>{uiText("FROM GUESSING AVAILABILITY")}</span><h3>{uiText("The right space, place or time.")}</h3><p>{uiText("Use timed appointments, shared session capacity and occupied nights. Each has the availability rules it needs, in one calendar.")}</p></article><article><span>{uiText("FROM CHASING THE NEXT STEP")}</span><h3>{uiText("A clear view on both sides.")}</h3><p>{uiText("Your team sees what needs preparing. Your customer has a private page for the order or booking, with its current status and details.")}</p></article></div></div></section>
    <section className="cs-capabilities" id="businesses"><div className="cs-wrap"><div className="cs-section-heading"><span className="cs-eyebrow">{uiText("Make it yours")}</span><h2 tabIndex="-1">{uiText("One platform.")}<br/>{uiText("The right tools for you.")}</h2><p>{uiText("Choose any combination. A shop can sell products and run workshops. A tour business can manage places and on-site sales. Start with what you need.")}</p></div><div className="cs-capability-grid">{capabilities.map(c=><article key={uiText(c.title)}><span className="cs-capability-icon"><ClarityGlyph kind={c.icon}/></span><h3>{uiText(c.title)}</h3><p>{uiText(c.body)}</p><span>{uiText(c.examples)}</span>{c.icon==='group'&&<a className="cs-text-link" href="/tours.html">Explore Bookuno for tour operators →</a>}</article>)}</div></div></section>
    <section className="cs-section cs-wrap cs-working-day"><div className="cs-section-heading"><span className="cs-eyebrow">{uiText("From the first detail to the next step")}</span><h2 tabIndex="-1">{uiText("A clear view.")}<br/>{uiText("On both sides.")}</h2><p>{uiText("Give your team the working details, and your customer a simple place to find what they’ve booked or ordered.")}</p><a className="cs-text-link" href="/business.html#product" onClick={e=>claritySection(e,'product')}>{uiText("Try the customer view above ")}<ClarityGlyph kind="arrow"/></a></div><ol className="cs-steps"><li><span>01</span><div><h3>{uiText("Set up the way you work.")}</h3><p>{uiText("Add your products or bookable offerings. Choose the tools that fit your business.")}</p></div></li><li><span>02</span><div><h3>{uiText("Keep each customer together.")}</h3><p>{uiText("See orders, booking details and saved balances in one shared workspace.")}</p></div></li><li><span>03</span><div><h3>{uiText("Know what happens next.")}</h3><p>{uiText("Prepare a collection, check an arrival or review a session’s remaining places.")}</p></div></li></ol></section>
    <section className="cs-pricing-section" id="pricing"><div className="cs-wrap"><div className="cs-section-heading cs-centred"><span className="cs-eyebrow">{uiText("Straightforward plans")}</span><h2 tabIndex="-1">{uiText("Start Free.")}<br/>{uiText("Grow when you’re ready.")}</h2><p>{uiText("Get your core diary in place. Choose Pro when your team needs more calendars and resources.")}</p></div><ClarityPlanCards/></div></section>
    <section className="cs-section cs-wrap cs-faq" id="questions"><div><span className="cs-eyebrow">{uiText("A few useful answers")}</span><h2 tabIndex="-1">{uiText("Before you begin.")}</h2></div><div>{[
      ['Is Bookuno just for one kind of business?','No. The workspace is organised around what you manage: products, appointments, group places and overnight spaces. Combine those tools to suit your business. Specialist requirements may need further support.'],
      ['Can I use it alongside my website?','You can share your Bookuno booking-page link from your website and other places customers find you. Embedded checkout and synchronisation with other booking systems are planned; they are not included yet.'],
      ['Can customers manage their booking?','Signed-in customers can view their saved orders, booking details and history. Available changes depend on the booking and the business’s rules; some changes still need the business to help.'],
      ['Can I take payments through Bookuno?','Payment collection is being prepared for launch. Until enabled for your business, continue using your current payment method. Saved balances and recorded payments are shown separately.'],
      ['Does Free expire?','No. Free has no expiry and needs no card. Pro is optional at £7.99 per month or £79 per year. SMS and payment processing are separate.'],
      ['Will Bookuno send customers to my business?','You bring your audience and share your booking link. Bookuno helps you organise the work; a listing does not guarantee enquiries, bookings or sales.']
    ].map(([q,a])=><details key={q}><summary>{uiText(q)}<span aria-hidden="true">+</span></summary><p>{uiText(a)}</p></details>)}</div></section>
    <section className="cs-support-callout cs-wrap"><div><h2>{uiText("Help belongs in the product.")}</h2><p>{uiText("Practical guides for getting set up, managing availability and understanding an order. A private support conversation when you need a hand.")}</p></div><a className="cs-button cs-secondary" href="/help.html">{uiText("Explore help & support ")}<ClarityGlyph kind="arrow"/></a></section>
    <section className="cs-closing"><div className="cs-wrap"><img src="/business-app/brand/frame-icon-blue.svg" alt="" width="48" height="48"/><h2>{uiText("A little more clarity.")}<br/>{uiText("Every working day.")}</h2><a className="cs-button cs-primary" href="/app.html#/business/start">{uiText("Start Free ")}<ClarityGlyph kind="arrow"/></a><p>{uiText("Your business. Your customers. Your next step.")}</p></div></section>
  </main><ClaritySiteFooter/></div>;
}
