Higher order transversality in harmonic analysis