Throw (someone) a curve (ball)

To surprise someone by doing something unexpected, to pitch a curve ball to someone in baseball.

The lawyer threw the witness a curve with his very complex questions.