Duolingo said heavier use of AI features such as Duolingo Max could reduce margins later in the year.