--- globs: src/app/**/*.tsx --- # Routing and Layout Rules ## App Router Structure - **Pages**: Live in `src/app/` directory - **Server Components**: Default to server components, promote to client only when needed - **Layout Hierarchy**: Root layout owns global providers, navigation, and footer - **Route Groups**: Use `(marketing)` for grouped routes without affecting URL structure ## Layout Rules ### Root Layout ([src/app/layout.tsx](mdc:src/app/layout.tsx)) - Owns global providers and theme class - Contains `` and `