Reducing inequality and carbon footprints within countries