Differential phase-based detector