I know, it can be confusing.

Allow me to try again.
The statement “Outside the Church there is no salvation” (Latin:
Extra Ecclesiam nulla salus) is definitive Church teaching. It goes back to St. Cyprian in the third century and was used definitively at the Fourth Lateran Council in the thirteenth century. It will not change. That’s why the Catechism retains that language. Historically speaking, many have used that teaching to incorrectly assert that only practicing Catholics can get to heaven. The Catechism attempts to clarify what the statement really means.
Look at what the CCC says: “Re-formulated positively, it means that all salvation comes from Christ the Head through the Church which is his Body”.
So it’s not that visible
membership in the Catholic Church is
necessarily required. But if a non-Catholic is saved, it is still
through the Church.
In other words, the statement does not mean that “Outside of visible
membership to the Church, there is no salvation.” Rather, it means that “One is not saved apart from the action of the Church.”
If you think about it, it makes sense. Jesus said that He is the Way, the Truth, and the Life, and no one gets to the Father but through Him (see
John 14:6). So no one is saved apart from the action of Christ (whether they are aware of it on earth or not). And the Church is the Mystical Body of Christ here on earth (see
1 Corinthians 12:12-27). So, if no one is saved apart from Christ, and the Church is the Body of Christ here on earth, then no one is saved apart from the Church.
What all this means practically is that the only way I would
recommend someone be saved is by becoming Catholic. I would never tell someone that they’re fine just where they’re at because it doesn’t really matter what religion they practice as long as they’re a “good person.” However, I also would never
judge the state of anyone’s soul. I would not presume to say that anyone is in hell.
I think sometimes God wants to keep us confused so that we don’t get lax nor judgmental.