Employee stock purchase plans can make buying company stock feel like an easy win, especially when a discount is involved. But before you enroll, it’s important to understand the tax rules, holding periods, and risks that can turn a promising perk into a costly mistake.