unfortunately iMac doesn't make it easy. I do use a mac for Garageband, but not much else. While it does have a screen record function, it does not allow for system audio recording unless you install something like "Blackhole". I have not done this myself so can't speak to it.
But if you can get your hands on a Windows 11 machine or even Chromebook, it is baked in.
One more pizza for the road!