v3.24.0.1
Stockholder's equity (deficit) - Common stock (Details)
1 Months Ended 12 Months Ended
May 16, 2023
USD ($)
$ / shares
shares
Mar. 17, 2023
USD ($)
Sep. 19, 2022
USD ($)
$ / shares
shares
Jun. 17, 2022
USD ($)
Jun. 15, 2022
$ / shares
shares
May 18, 2021
USD ($)
shares
Jul. 10, 2020
USD ($)
$ / shares
shares
Jun. 24, 2019
USD ($)
$ / shares
shares
May 31, 2023
$ / shares
shares
Apr. 30, 2023
$ / shares
shares
Dec. 31, 2023
USD ($)
Vote
$ / shares
shares
Dec. 31, 2022
USD ($)
$ / shares
shares
Jun. 18, 2019
shares
Class of Stock [Line Items]                          
Common stock, shares authorized                     150,000,000 150,000,000  
Common stock, par value (in dollars per share) | $ / shares                     $ 0.0001 $ 0.0001  
Number of votes per share | Vote                     1    
Cash dividend declared | $ / shares                     $ 0    
Cash dividend paid | $ / shares                     $ 0    
Net proceeds from the sales of common stock in equity offerings | $                     $ 818,900,000    
Share Issued value under agreement | $                       $ 24,647,000  
Common stock, shares issued                     55,754,445 46,865,206  
Common stock, shares outstanding                     55,754,445 46,865,206  
Common stock were reserved for issuance                          
Options available for future grant                     13,667,341 14,318,383  
Jeffries                          
Class of Stock [Line Items]                          
Net proceeds from the sales of common stock in equity offerings | $ $ 210,956,000                        
Offering costs | $ $ 9,061,000                        
Common stock, shares issued 5,238,500                        
Sale of stock under agreement 5,238,500                        
Sale of stock, price per share | $ / shares $ 42                        
Employee Stock Option                          
Common stock were reserved for issuance                          
Options available for future grant                     1,917,356 2,038,142  
Common stock Available under ATM Offering                          
Class of Stock [Line Items]                          
Net proceeds from the sales of common stock in equity offerings | $       $ 24,647,000             $ 123,824,000    
Offering costs | $                     $ 3,578,000    
Sale of stock under agreement                 3,006,052 3,006,052      
Sale of stock, price per share | $ / shares                 $ 42.38 $ 42.38      
Common stock were reserved for issuance                          
Options available for future grant           5,000,000         2,708,234 5,000,000  
Common stock Available under ATM Offering | Pfizer Inc                          
Class of Stock [Line Items]                          
Sale of stock under agreement         2,525,252                
Sale of stock, price per share | $ / shares         $ 9.9                
Warrants to Purchase Common Stock                          
Common stock were reserved for issuance                          
Options available for future grant                     45,898 36,718  
Warrants Available for Future Grant                          
Common stock were reserved for issuance                          
Options available for future grant                     137,700 146,880  
2018 Stock option and grant plan                          
Common stock were reserved for issuance                          
Options available for future grant                     1,114,189 1,633,173 107,635
2019 Stock Option and Incentive plan                          
Common stock were reserved for issuance                          
Options available for future grant                     5,785,788 4,146,831  
2019 Stock Option and Incentive plan | Restricted Stock Units                          
Common stock were reserved for issuance                          
Options available for future grant                     371,952 129,131  
2019 Employee Stock Purchase Plan                          
Common stock were reserved for issuance                          
Options available for future grant                     1,586,224 1,187,508  
Maximum | Common stock Available under ATM Offering                          
Class of Stock [Line Items]                          
Share Issued value under agreement | $   $ 200,000       $ 100,000              
IPO                          
Class of Stock [Line Items]                          
Public offering price | $ / shares               $ 16          
Net proceeds from the sales of common stock in equity offerings | $               $ 98,394,000          
Offering costs | $               $ 2,942,000          
Number of shares converted               21,056,136          
Common stock, shares issued               6,612,500          
Follow Up Public Offering                          
Class of Stock [Line Items]                          
Share Issued under agreement     8,846,154       6,012,390            
Public offering price | $ / shares     $ 26       $ 36            
Net proceeds from the sales of common stock in equity offerings | $     $ 216,200,000       $ 203,460,000            
Offering costs | $     $ 13,800,000                    
Over allotment | Maximum                          
Class of Stock [Line Items]                          
Share Issued under agreement     1,153,846       784,224            
Common stock, shares issued               862,500