Block phone after alarm

When I wake up, I tend to grab my phone and then proceed to stare at it for hours before getting out of bed, defeating the point of waking up early. I think I’d be awesome to be able to set a certain time, let’s say the first 30 minutes after your alarm goes off, in which the app disables you for using your phone, just like the CAPTCHA does.