Small nightly habits that help your brain learn that bed is a place to switch off.