Note that the Sun here is point-like and there is no refraction.
What have I done wrong?
Your supposition that the altitude of the Sun is directly related to the length of the day is wrong. Proof with counterexample: observe the altitude of the Sun on the equator and in the Moscow on the equinox; but still, the lengths are the same.
And what is the correct ...