Summary of Significant Accounting Policies - Summary of Outstanding Potentially Dilutive Shares of Common Stock Excluded from Calculation of Diluted Net Loss Per Share (Details) - shares |
9 Months Ended | |
|---|---|---|
Sep. 30, 2024 |
Sep. 30, 2023 |
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Anti-dilutive shares of stock (in shares) | 21,886,617 | 20,828,610 |
| Common stock issuable upon conversion of convertible notes | ||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Anti-dilutive shares of stock (in shares) | 9,964,247 | 9,964,247 |
| Options to purchase common stock and restricted stock units | ||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Anti-dilutive shares of stock (in shares) | 11,853,261 | 10,814,495 |
| Employee stock purchase plan contingently issuable | ||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Anti-dilutive shares of stock (in shares) | 69,109 | 49,868 |