Apple raised Mac and iPad prices as an AI memory shortage lifted costs, and the stock fell on demand fears.