Civil lawsuits generally proceed through distinct steps: pleadings, discovery, trial, and possibly an appeal.