You don't have to ban your phone from the bedroom — just use it standing up only. Within 7 or 8 minutes, you'll naturally want to sit down, and the moment you do, the phone goes away. A simple friction-based hack that works with human nature rather than against it.