Stock-Based Compensation (Details) - shares
12 Months Ended
Jan. 01, 2021
Jul. 06, 2018
Dec. 31, 2020
2014 Stock Incentive Plan | Service Based Stock Options | Minimum      
Fair value of stock-based awards granted to employees, directors, and, in 2018, non-employees, subsequent to the adoption of ASU 2018-07      
Vesting period     3 years
2014 Stock Incentive Plan | Service Based Stock Options | Maximum      
Fair value of stock-based awards granted to employees, directors, and, in 2018, non-employees, subsequent to the adoption of ASU 2018-07      
Vesting period     4 years
Expiration period     10 years
2014 Stock Incentive Plan | Unvested restricted common stock | Minimum      
Fair value of stock-based awards granted to employees, directors, and, in 2018, non-employees, subsequent to the adoption of ASU 2018-07      
Vesting period     3 years
2014 Stock Incentive Plan | Unvested restricted common stock | Maximum      
Fair value of stock-based awards granted to employees, directors, and, in 2018, non-employees, subsequent to the adoption of ASU 2018-07      
Vesting period     4 years
2018 Equity Incentive Plan      
Fair value of stock-based awards granted to employees, directors, and, in 2018, non-employees, subsequent to the adoption of ASU 2018-07      
Total number of shares of common stock authorized to issue   5,708,931  
Number of shares remained available for future issuance     4,666,559
Annual increase of shares reserved for awards (as a percent)   4.00%  
Increase in number of authorized shares reserved for issuance 2,431,609    
2018 Employee Stock Purchase Plan      
Fair value of stock-based awards granted to employees, directors, and, in 2018, non-employees, subsequent to the adoption of ASU 2018-07      
Total number of shares of common stock authorized to issue   951,488  
Number of shares remained available for future issuance     1,751,650
Annual increase of shares reserved for awards (as a percent)   1.00%  
Annual increase of shares reserved for awards if less than 1% of the outstanding stock   951,488  
Increase in number of authorized shares reserved for issuance 0