Cosmic inflation after Planck