I know... I do that when I am at the office or even elsewhere if it's a promising one and I believe it's worth going to my office or my phone to keep some notes about it.
But when I go to bed, I usually fall asleep quite rapidly, and my mind doesn't wander around. So I didn't bother to have pen and paper around. Yesterday I had an idea though, and it would be useful to have something to jot it down. Now I have, but it's already too late, lol.
You could maybe download a note on your phone, and just scribble the ideas down, it's more painful to forget ideas lol
I don't keep my phone around at night... Yeah, I know, I'm a curiosity of nature. 😀 Who doesn't keep their phones by the bed?