Layouts vs Templates
A layout persists across navigations — great for navbars and sidebars. A template re-mounts on every navigation — useful for animations or per-page analytics.
Every Next.js app requires a root layout.tsx in app/ which must include the <html> and <body> tags.