Please reason step by step, and put your final answer within \boxed{}.
If the equation cos²x - cosx + a = 0 has exactly two distinct solutions in the domain x ∈ [π/4, 4π/3], find the range of the real number a.
user