You americans don't have any trains, eh? :) Not exactly the ritz, but does the job: https://www.google.com/search?tbm=isch&q=sleeping+train
There is a sleeper train up the coast from Los Angeles to San Francisco: https://www.amtrak.com/coast-starlight-train
Amtrak's sleeper cars are also quite expensive when I last looked at it as an option for getting from Colorado to San Francisco. The price compared to a seat on the train was 2..3x or more (but it includes food).