// --- Shared layout, nav, and HTML shell --- export interface NavOpts { userName?: string; orgName?: string; email?: string; plan?: string; banner?: { message: string; style?: "info" | "success" | "warning" }; } export interface SeoOpts { title?: string; description?: string; canonical?: string; } export function layout(body: string, title = "Polaris by Lightup", seo?: SeoOpts): Response { const pageTitle = seo?.title ?? title; const description = seo?.description ?? "It's like Gong for Claude Code sessions. Capture every prompt, response, and tool call. Stream to Slack. Collaborate in real time."; const canonical = seo?.canonical ?? "https://app.withpolaris.ai"; const ogImage = "https://app.withpolaris.ai/og-image.png"; return new Response( `