Stocks climb as megacaps lead; inflation data, earnings on deck