How does input variability shape language and cognition in children?