/* Ava Solutions — products page root.
   Reuses TopTicker, Footer (components.jsx) and the lead-id helpers (chat.jsx).

   The Toros assistant was withdrawn from the site 2026-09-20 (owner decision)
   while the agent moves to its own cloud cell: no floating CTA, no drawer, and
   "Discuss the task" now goes to the homepage contact form instead of the chat.
   To bring it back, restore FloatingChatCta/WebChatDrawer here and in app.jsx. */

function ProductsApp() {
  // Once, after mount: honour an incoming #hash (e.g. #nogis-solutions from the
  // shared footer on index.html) — the target only exists post-render, so the
  // browser's own fragment jump is too early and lands at the top.
  React.useEffect(() => {
    const el = window.location.hash && document.getElementById(window.location.hash.slice(1));
    if (el) el.scrollIntoView({ behavior: 'smooth', block: 'start' });
  }, []);
  return (
    <LangProvider>
      <Grain />
      <TopTicker active={0} />
      <main><ProductsPage onDiscuss={() => { window.location.href = '/#contact'; }} /></main>
      <Footer />
    </LangProvider>
  );
}
ReactDOM.createRoot(document.getElementById('root')).render(<ProductsApp />);
