I get that, too, Rhi. I get ideas right before I go to sleep, and then I forget them by morning
Or I turn on the light and write them down, which keeps me awake!
I also get ideas when I'm driving to work, so I bought a digital voice recorder to save them