A sail is not a bag that catches wind and gets pushed. Set right, it is a wing stood on end. Wind flowing across its curve speeds up on the outside and slows on the inside, and that pressure difference pulls the sail — mostly sideways. This pull is the sail force (the red arrow).
That one red pull does two different jobs. Split it along the boat and across it:
• Drive — the part pointing where the bow points. This is what moves you.
• Side force — the part pushing sideways. This just tips the boat and shoves it sideways.
Close to the wind the pull is mostly side force and only a little drive. That sliver of drive is still enough — if something stops the sideways part.
Under the boat is the keel — a deep fin. Water is hard to push sideways through, so the keel refuses the side force (the blue arrow) while letting the boat slide forward easily. Kill the big sideways part and the small forward part is all that's left: the boat goes forward.
Flip the keel off in the panel and watch: the same wind now just shoves the boat sideways. The keel is what turns wind into a course.
You can point to about 45° off the wind and the wing still works. Any closer and the wind hits the sail head-on, it just flaps, and there is no lift at all — the no-go zone. To reach something dead upwind you zig-zag across the no-go zone in a series of 45° legs. Turning the bow through the wind from one side to the other is a tack.
• Start at 0° — the sail flaps, no force, no drive.
• Bear away to 45° — the sail fills, drive appears, you sail upwind.
• Swing out to 90° (wind across the boat) — drive is at its biggest.
• At any angle, toggle the keel off and watch the green track arrow swing sideways.