Definitely a badly written spell. However, I would rule that the slot is expended when you flourish the card as that is when you actually cast the spell ("you can use a bonus action to flourish the card and cast the spell within"). I have no idea what "imbue" means mechanically, but when you...