We’ve all done it—scrolled through our phones immediately before bedtime to read the latest news, only to wake up at 3 a.m. feeling anxious about all the things we’ve read. Then, having trouble falling back to sleep, we grab our phones again and distract ourselves with social media.