What is the restriction with going over 38t?
It will be frame clearance I suspect. This is the rear frame on my Sonder, with a 36 tooth chainring. There's no way I'm going any larger than 38t, there just isn't the room.
The OP's bike won't be as extreme as this, because I have boost rear hub spacing, the Scott has a narrower non boost rear end, so the chainstays are not as wide, however the chainstays will still restrict the maximum size of chainring available.
The Scott does run a 1x12 speed drivetrain and a 55mm chainline. The chainline is optimised to bring the chainring in line with the middle of the cassette, thus reducing wear and increasing shifting performance. Mucking about with this chainline in order to increase the size of the chainring will bring about a load of unintended consequences, especially with these wide range 12 speed cassettes.
There's an interesting deep dive into the murky world of SRAM chainlines here if anyone's interested:
https://theradavist.com/55mm_chainline/
If your going to be primarily going to be running on the road, I'd be looking at narrow tires, possibly gravel bike tires, as well as increasing the chainring to the maximum 38 tooth. Ultimately though, maybe you really need to be looking at a bike more suited to what you intend to do with it, maybe even a gravel bike would be better than a mountain bike running a 1x drivetrain?