How does fake tan work, and why does it sometimes smell 'cookie-like'?

Wait 5 sec.

Real tans come from UV-triggered pigment production in living skin; that same UV exposure increases the risk of skin cancer.