Unified analysis of cosmological perturbations in generalized gravity | Synapse