If you're looking mac I'd fall somewhere in the middle of the previous suggestions.
The switch to Apple Silicon (arm based) was a huge paradigm shift - Not your usual '10% faster' upgrade.
I have the 2020 macbook air, base model - That's the first generation with the lowest spec CPU/GPU,
and to this day I see no reason to upgrade. It is, for my workload, a beast.
For reference, it replaced a 12 core Xeon Mac Pro which was, essentially, server hardware at the time.
If I did extensive video editing then sure, I'd probably be looking to upgrade but for audio? No.
Personally I wouldn't recommend picking up an intel mac because they're getting a bit long in the tooth,
battery life sucks (where applicable), the run pretty hot, and the performance benefits of going to even the earliest Apple Silicon are astounding,
but I also wouldn't necessarily recommend going for the latest and greatest with ram upgrades.
Honestly, there's just no need.
The 16GB memory on my air has never held me back and I do a lot more than just audio work.
That would give you access to Garageband which is the gateway drug for Logic Pro although, personally, I'd just go with Reaper from the start.
Reaper operate something of an honour system - The software is free to download and try for as long as you like.
You're meant to buy a license after X days of usage. Whether you do or not is entirely up to you.
The software will continue to work, unrestricted, barring a brief nag window.
You can, of course, go the windows route and there'll be plenty of suggestions, I'm sure.
Ultimately that's your choice, but there's no reason you can't set up a great audio work station on either platform.
As with anything, just google thoroughly to ensure there are people successfully using your chosen combinations (audio interface, computer hardware, operating system)
before committing to buying.
Compatibility is applicable on any platform.
With regard to discussion of updates and upgrades and compatibility, I never understood it.
Get a combination of computer, OS, Daw, plugins, and interface that works, then leave it alone.
I'll never understand the overwhelming need to update OS, or whatever, and then have to chase your tail paying to update or replace everything else.
Just leave it alone, is my opinion.
I understood it, to some extent, maybe 15 years ago when the new features of DAWs were genuinely desirable and game changing,
but these days I'm not seeing it.
I have a 2009 Mac Pro with ProTools 12 (I think) in the corner gathering dust that I could plug in and make a record on right now. <shrugs>
My current mac runs Monterey. Again...<shrugs>
I had been on a 5/6 year cycle where upgrading/updating would coincide with the purchase of a new computer
but this time around I just don't see a need so I think I'll be driving the M1 air (docked) until something catastrophic happens to it.
That could be 6 months or 6 years...I guess we'll see.