Something that no one seems to mention is Vic Wertz comments. If you understand how proficiencies worth with weapons, then you understand how they work with armor.
To me this implies that your AC is first determined by the type of armor worn, then adjusted by rank, then adjusted by level, then...