When I come up with an amazing riff, I pull out my phone and record it immediately using SoundCloud (I hum or sing or something) and then I map them out on the fretboard when I have more time. Frighteningly often I realize it’s a Metallica riff I’ve hummed :-/