Equity (Details) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended
Mar. 18, 2021
Jul. 20, 2018
Mar. 31, 2021
Dec. 31, 2020
Aug. 01, 2019
Equity          
Common stock, authorized (in shares)   150,000,000 150,000,000 150,000,000  
Shares authorized   160,000,000      
Common stock, par value (in dollars per share)   $ 0.001 $ 0.001 $ 0.001  
Preferred stock, share authorized (in shares)   10,000,000 10,000,000 10,000,000  
Preferred stock, par value (in dollars per share)   $ 0.001 $ 0.001 $ 0.001  
Net proceeds after deducting underwriting discounts and commissions     $ 188,000    
Estimated offering cost     $ 800    
Common stock          
Equity          
Shares issued (in shares)     6,896,552    
Conversion of redeemable convertible preferred stock to common stock (in shares)   51,845,438      
IPO          
Equity          
Shares issued (in shares)   12,055,450      
Net proceeds after deducting underwriting discounts and commissions   $ 254,300      
Overallotment          
Equity          
Shares issued (in shares)   1,572,450      
At the market offering          
Equity          
Shares issued (in shares)     0    
Percentage of commission         3.00%
Aggregate offering price         $ 100,000
Offering          
Equity          
Shares issued (in shares) 6,896,552        
Net proceeds after deducting underwriting discounts and commissions $ 188,000        
Estimated offering cost $ 800