Brock Purdy threw for 303 yards and three touchdowns as San Francisco is now one win away from earning the NFC's top seed.