Coffee, soda, and late-night fried food can raise stomach acid and pressure, triggering heartburn. Here's the science and simple swaps that actually help.