Apple combines hardware, software and services in a large consumer ecosystem. Its shares reflect device demand, recurring revenue and the durability of customer retention.