Stock-Based Compensation Expense - Additional Information (Details) $ / shares in Units, $ in Thousands | | | 1 Months Ended | 3 Months Ended | 6 Months Ended | 12 Months Ended | 29 Months Ended | | |
Aug. 01, 2024 | Mar. 01, 2024 USD ($) measure installment shares | Feb. 28, 2021 USD ($) tranche $ / shares shares | Mar. 31, 2024 $ / shares shares | Jun. 30, 2023 measure | Jun. 30, 2022 USD ($) $ / shares shares | Dec. 31, 2024 USD ($) tranche period $ / shares shares | Dec. 31, 2023 USD ($) $ / shares shares | Dec. 31, 2022 USD ($) $ / shares shares | Dec. 31, 2020 shares | Dec. 31, 2017 shares | Dec. 31, 2004 | Dec. 31, 2024 USD ($) tranche period $ / shares shares | Dec. 31, 2021 $ / shares | Feb. 01, 2021 USD ($) |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Common stock shares reserved for future issuance (in shares) | shares | | | | | | | 177,567,000 | 175,012,000 | 165,630,000 | | | | 177,567,000 | | |
Share-based compensation arrangement options, exercises in period, intrinsic value | | | | | | | $ 530,000 | $ 373,400 | $ 423,300 | | | | | | |
Share-based compensation, options vested in period, fair value | | | | | | | 23,500 | 51,900 | 64,100 | | | | | | |
Share based payment arrangement, unvested award options, cost not yet recognized, amount | | | | | | | 2,600 | | | | | | $ 2,600 | | |
Stock-based compensation expense (benefit) | | | | | | | 1,015,794 | 867,967 | 589,498 | | | | | | |
Research and development | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Stock-based compensation expense (benefit) | | | | | | | 723,326 | 607,593 | 398,899 | | | | | | |
Holders of Ten Percent or More of The Voting Equity Capital | Common Class A | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Common stock shares reserved for future issuance (in shares) | shares | | | | | | | | | | 60,000,000 | | | | | |
2020 Equity Incentive Plan | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Stock options to be granted price as a percentage of fair value | | | | | | | | | | 110% | | | | | |
Percentage of voting stock eligible for options | | | | | | | | | | 10% | | | | | |
2020 Equity Incentive Plan | Common Class A | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Common stock shares reserved for future issuance, annual increase (in shares) | shares | | | | | | | | | | 75,000,000 | | | | | |
Common stock shares reserved for future issuance, annual increase, percent | | | | | | | | | | 5% | | | | | |
2020 Equity Incentive Plan | Holders of Ten Percent or More of The Voting Equity Capital | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Share based compensation by share based payment arrangement contractual term of stock options | | | | | | | | | | 5 years | | | | | |
2020 ESPP | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Stock-based compensation expense (benefit) | | | | | | | $ 18,500 | $ 32,000 | $ 25,700 | | | | | | |
2020 ESPP | Common Class A | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Stock options to be granted price as a percentage of fair value | | | | | | | | | | 85% | | | | | |
Common stock shares reserved for future issuance (in shares) | shares | | | | | | | | | | 6,000,000 | | | | | |
Common stock shares reserved for future issuance, annual increase (in shares) | shares | | | | | | | | 15,000,000 | | | | | | | |
Common stock shares reserved for future issuance, annual increase, percent | | | | | | | | 1% | | | | | | | |
Offering period, employee stock purchase plan | | | | | | | 24 months | | | | | | | | |
Number of purchase periods | period | | | | | | | 4 | | | | | | 4 | | |
Purchase period, employee stock purchase plan | | | | | | | 6 months | | | | | | | | |
2024 CEO PSUs And RSUs | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Stock-based compensation expense (benefit) | | $ 84,400 | | | | | | | | | | | | | |
Share-based payment arrangement, nonvested award, cost not yet recognized, amount | | | | | | | $ 38,700 | | | | | | $ 38,700 | | |
Share-based payment arrangement, nonvested award, cost not yet recognized, percentage | | 0.75 | | | | | | | | | | | | | |
Stock options outstanding | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Common stock shares reserved for future issuance (in shares) | shares | | | | | | | 27,458,000 | 40,159,000 | 51,591,000 | | | | 27,458,000 | | |
Share based payment arrangement, unvested award, period for recognition | | | | | | | 1 year | | | | | | | | |
Stock options outstanding | 2020 Equity Incentive Plan | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Percentage of voting stock eligible for options | | | | | | | | | | | 10% | | | | |
Share based compensation by share based payment arrangement number of shares available for issuance (in shares) | shares | | | | | | | | | | | 0 | | | | |
Stock options outstanding | 2020 Equity Incentive Plan | Holders of Ten Percent or More of The Voting Equity Capital | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Share based compensation by share based payment arrangement contractual term of stock options | | | | | | | | | | | 5 years | 5 years | | | |
RSUs | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Common stock shares reserved for future issuance (in shares) | shares | | | | | | | 35,012,000 | 39,846,000 | 30,322,000 | | | | 35,012,000 | | |
Unrecognized compensation, equity instruments other than options | | | | | | | $ 1,339,200 | | | | | | $ 1,339,200 | | |
Share based payment arrangement, unvested award, period for recognition | | | | | | | 1 year 10 months 24 days | | | | | | | | |
Service period | | | | | | | 4 years | | | | | | 3 years | | |
Grant date fair value (in dollars per share) | $ / shares | | | | | | | $ 41.07 | $ 42.25 | $ 48.73 | | | | $ 41.07 | $ 68.03 | |
Granted (in dollars per share) | $ / shares | | | | | | | $ 40.54 | $ 37.59 | $ 41.09 | | | | | | |
Granted (in shares) | shares | | | | | | | 22,604,000 | 27,377,000 | 25,540,000 | | | | | | |
RSUs | CEO Long Term Performance Award | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Share-based payment arrangement, nonvested award, cost not yet recognized, amount | | | | | | | | | | | | | | | $ 84,400 |
RSUs | CEO Long Term Performance Award | Founder CEO | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Unrecognized compensation, equity instruments other than options | | | $ 232,200 | | | | | | | | | | | | |
Number of RSUs eligible to vest (in shares) | shares | | | 11,500,000 | | | | | | | | | | | | |
Share-based compensation arrangement by share-based payment award, number of tranches | tranche | | | 7 | | | | | | | | | | | | |
Number of consecutive trading days for the stock hurdle price to be achieved | | | 90 days | | | | | | | | | | | | |
Grant date fair value (in dollars per share) | $ / shares | | | $ 20.19 | | | | | | | | | | | | |
RSUs | CEO Long Term Performance Award | Founder CEO | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Share-based compensation arrangement by share-based payment award, beginning of award performance period, period after effective date | | | 2 years | | | | | | | | | | | | |
Share-based compensation arrangement by share-based payment award, number of tranches | tranche | | | | | | | 7 | | | | | | 7 | | |
RSAs | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Unrecognized compensation, equity instruments other than options | | | | | | | $ 0 | | | | | | $ 0 | | |
Grant date fair value (in dollars per share) | $ / shares | | | | | | | $ 46 | $ 46 | $ 52.55 | | | | $ 46 | $ 57.37 | |
Granted (in dollars per share) | $ / shares | | | | | | | $ 0 | $ 0 | $ 46 | | | | | | |
Granted (in shares) | shares | | | | | | | 0 | 0 | 298,000 | | | | | | |
Performance-Based Restricted Stock Units (RSUs) | 2022 PSU Grants | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Stock-based compensation expense (benefit) | | | | | | | $ (300) | $ 3,200 | $ 3,000 | | | | | | |
PSU target number of shares (in shares) | shares | | | | | | 207,284 | | | | | | | | | |
Performance stock units, performance period | | | | | | 3 years | | | | | | | | | |
Granted (in dollars per share) | $ / shares | | | | | | $ 43.13 | | | | | | | | | |
Estimated total share-based payment expense | | | | | | $ 6,000 | | | | | | | | | |
Performance-Based Restricted Stock Units (RSUs) | 2023 PSU Grants | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Share based payment arrangement, unvested award options, cost not yet recognized, amount | | | | | | | 4,000 | | | | | | $ 4,000 | | |
Stock-based compensation expense (benefit) | | | | | | | $ 6,700 | 6,400 | | | | | | | |
Share-based compensation arrangement by share-based payment award, equity instruments other than options, number of performance measures | measure | | | | | 2 | | | | | | | | | | |
Shares earned (in shares) | shares | | | | | | | 373,029 | | | | | | | | |
PSU target number of shares (in shares) | shares | | | | | | | 213,502 | | | | | | 213,502 | | |
Performance stock units, performance period | | | | | 2 years | | | | | | | | | | |
Share-based compensation arrangement by share-based payment award, target number of shares, performance measures of cumulative, percentage | | | | | | | 80% | | | | | | | | |
Share-based compensation arrangement by share-based payment award, target number of shares, adjusted EBITDA, percentage | | | | | | | 20% | | | | | | | | |
Granted (in dollars per share) | $ / shares | | | | | | | $ 45.70 | | | | | | | | |
Performance-Based Restricted Stock Units (RSUs) | 2023 PSU Grants | Tranche One | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Share-based compensation arrangement by share-based payment award, award vesting rights, percentage | | | | | 50% | | | | | | | | | | |
Performance-Based Restricted Stock Units (RSUs) | 2023 PSU Grants | Tranche Two | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Share-based compensation arrangement by share-based payment award, award vesting rights, percentage | | | | | 50% | | | | | | | | | | |
Performance-Based Restricted Stock Units (RSUs) | CEO Long Term Performance Award | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Stock-based compensation expense (benefit) | | | | | | | | $ 48,900 | $ 48,900 | | | | | | |
Performance-Based Restricted Stock Units (RSUs) | 2024 CEO PSUs And RSUs | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Stock-based compensation expense (benefit) | | | | | | | $ 32,600 | | | | | | | | |
Service period | | 3 years | | | | | | | | | | | | | |
Share-based payment arrangement, nonvested award, cost not yet recognized, percentage | | 0.25 | | | | | | | | | | | | | |
Share-based compensation arrangement by share-based payment award, equity instruments other than options, number of performance measures | measure | | 2 | | | | | | | | | | | | | |
PSU target number of shares (in shares) | shares | | 446,534 | | | | | | | | | | | | | |
Performance stock units, performance period | | 2 years | | | | | | | | | | | | | |
Share-based compensation arrangement by share-based payment award, target number of shares, performance measures of cumulative, percentage | | 80% | | | | | | | | | | | | | |
Share-based compensation arrangement by share-based payment award, target number of shares, adjusted EBITDA, percentage | | 20% | | | | | | | | | | | | | |
Granted (in shares) | shares | | 148,844 | | | | | | | | | | | | | |
Performance-Based Restricted Stock Units (RSUs) | 2024 CEO PSUs And RSUs | Tranche One | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Share-based compensation arrangement by share-based payment award, award vesting rights, percentage | | 67% | | | | | | | | | | | | | |
Number of installments | installment | | 4 | | | | | | | | | | | | | |
Performance-Based Restricted Stock Units (RSUs) | 2024 Executive PSU Awards | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Share based payment arrangement, unvested award options, cost not yet recognized, amount | | | | | | | 17,800 | | | | | | $ 17,800 | | |
Stock-based compensation expense (benefit) | | | | | | | $ 11,300 | | | | | | | | |
PSU target number of shares (in shares) | shares | | | | 353,241 | | | | | | | | | | | |
Share-based compensation arrangement by share-based payment award, target number of shares, performance measures of cumulative, percentage | | | | 80% | | | | | | | | | | | |
Share-based compensation arrangement by share-based payment award, target number of shares, adjusted EBITDA, percentage | | | | 20% | | | | | | | | | | | |
Granted (in dollars per share) | $ / shares | | | | $ 41.32 | | | | | | | | | | | |
Performance-Based Restricted Stock Units (RSUs) | 2023 PSU Awards | Michael Guthrie | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Share-based compensation arrangement by share-based payment award, award vesting rights, percentage | 50% | | | | | | | | | | | | | | |
Minimum | 2020 Equity Incentive Plan | Holders of Ten Percent or More of The Voting Equity Capital | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Stock options to be granted price as a percentage of fair value | | | | | | | | | | 100% | | | | | |
Minimum | Stock options outstanding | 2020 Equity Incentive Plan | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Stock options to be granted price as a percentage of fair value | | | | | | | | | | | | 85% | | | |
Percentage of voting stock eligible for options | | | | | | | | | | | | 10% | | | |
Minimum | Stock options outstanding | 2020 Equity Incentive Plan | Holders of Ten Percent or More of The Voting Equity Capital | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Stock options to be granted price as a percentage of fair value | | | | | | | | | | | 110% | 110% | | | |
Minimum | RSUs | CEO Long Term Performance Award | Founder CEO | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Share based payment arrangement, unvested award, period for recognition | | | 3 years 5 months 12 days | | | | | | | | | | | | |
Minimum | Performance-Based Restricted Stock Units (RSUs) | 2022 PSU Grants | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Percentage of shares earned of the target number of shares | | | | | | 0% | | | | | | | | | |
Minimum | Performance-Based Restricted Stock Units (RSUs) | 2023 PSU Grants | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Percentage of shares earned of the target number of shares | | | | | 0% | | | | | | | | | | |
Minimum | Performance-Based Restricted Stock Units (RSUs) | 2024 CEO PSUs And RSUs | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Percentage of shares earned of the target number of shares | | 0% | | | | | | | | | | | | | |
Maximum | 2020 Equity Incentive Plan | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Share based compensation by share based payment arrangement contractual term of stock options | | | | | | | | | | 10 years | | | | | |
Maximum | Stock options outstanding | 2020 Equity Incentive Plan | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Share based compensation by share based payment arrangement contractual term of stock options | | | | | | | | | | | 10 years | 10 years | | | |
Maximum | RSUs | CEO Long Term Performance Award | Founder CEO | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Share based payment arrangement, unvested award, period for recognition | | | 5 years 4 months 17 days | | | | | | | | | | | | |
Maximum | Performance-Based Restricted Stock Units (RSUs) | 2022 PSU Grants | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Percentage of shares earned of the target number of shares | | | | | | 200% | | | | | | | | | |
Maximum | Performance-Based Restricted Stock Units (RSUs) | 2023 PSU Grants | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Percentage of shares earned of the target number of shares | | | | | 200% | | | | | | | | | | |
Maximum | Performance-Based Restricted Stock Units (RSUs) | 2024 CEO PSUs And RSUs | | | | | | | | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | | | | | | | | | | | | | | | |
Percentage of shares earned of the target number of shares | | 200% | | | | | | | | | | | | | |