How AI-Powered Search Works: A Guide for Devs on AI Visibility