Store the bike upside down for a bit, see if the click disappears on first ride (due to oil reaching the important bits) if it starts again ‘half way’ through ride then it’s a lower service/inspection/oil top up.
Either way, keep an eye on stanchions for wear, especially before the warranty is finished.
At the same time, contact the shop for their advice, by email as it’s a record of a possible IN-warranty problem.
Thanks, I’ll give that a try. Not having much luck with the shop I bought it from (despite being a Specialized concept store!). I contacted them about another issue with the bike caused when they put it together, and they just said “take it to your local bike shop”.