1. What are practical use cases for route groups and how do you implement multiple layouts with them?
Route groups enable having different layouts for different sections like (marketing) with a public layout and (app) with an authenticated dashboard layout, both living at the root URL level without affecting paths. Create folders like app/(marketing)/layout.js for marketing pages and app/(app)/layout.js for application pages, where each can have completely different navigation, styling, or authentication requirements. Use route groups to organize routes by feature like (admin), (customer), (public) for better code structure, implement A/B testing with different layouts, or opt certain routes out of the root layout by creating multiple root layouts in different groups. The parentheses convention keeps your folder structure organized while maintaining clean URLs, and you can nest route groups for even more granular organization.