/tʰeɪk ˈɡɹeːt peɪnz/
put in a lot of effort and care.
“She took great pains to bake the perfect cake.”