When people seem to behave irrationally or illogically, there's almost always a rational explanation — and finding it changes how you design decisions.