Dual separated variables and scalar products