What is the hook in sports betting?

Say the San Francisco 49ers opened as a 2.5-point favorite at the Arizona Cardinals. It moved to a 3-point spread and closed at 3.5 points. If you got the …