Text this: Mastering cosmological amplitudes using generalized Ramanujan's theorem.