| Dec 31, 2019 | Dec 31, 2020 | Dec 31, 2021 | Dec 31, 2022 | Dec 31, 2023 | Dec 31, 2024 |
|---|
| Net loss | -106 | -119 | -260 | -193 | -184 | -79 |
|---|
| Depreciation and amortization expense | 29 | 49 | 67 | 102 | 136 | 128 |
|---|
| Operating Lease Cost, Noncash | - | 20 | 25 | 36 | 45 | 49 |
|---|
| Capitalized Contract Cost, Amortization | 11 | 17 | 29 | 45 | 61 | 78 |
|---|
| Stock-based compensation expense | 37 | 56 | 90 | 203 | 274 | 338 |
|---|
| Amortization of debt issuance costs | - | - | - | - | - | 4 |
|---|
| Net accretion of discounts and amortization of premiums on available-for-sale securities | 2 | -2 | -8 | 0 | 44 | 42 |
|---|
| Deferred income taxes | 0 | -7 | 9 | -0 | 2 | 2 |
|---|
| Provision for bad debt | 2 | 3 | 4 | 5 | 14 | 10 |
|---|
| Loss on extinguishment of debt | - | - | -72 | - | -50 | - |
|---|
| Other | - | - | - | - | 1 | 1 |
|---|
| Accounts receivable, net | 11 | 33 | 36 | 56 | 113 | 79 |
|---|
| Contract assets | 1 | 1 | 3 | 2 | 3 | 6 |
|---|
| Deferred contract acquisition costs | 20 | 36 | 55 | 68 | 101 | 117 |
|---|
| Prepaid expenses and other current assets | 8 | 12 | 2 | 8 | 22 | 38 |
|---|
| Other noncurrent assets | 2 | 2 | -2 | 1 | -1 | -2 |
|---|
| Accounts payable | -1 | 2 | 2 | -10 | 12 | 19 |
|---|
| Accrued expenses and other current liabilities | 12 | 17 | 59 | -5 | 26 | 10 |
|---|
| Accrued compensation | - | - | - | - | - | 19 |
|---|
| Operating lease liabilities | - | -21 | -23 | -32 | -40 | -55 |
|---|
| Deferred revenue | 15 | 25 | 64 | 102 | 134 | 135 |
|---|
| Other noncurrent liabilities | 2 | 0 | -5 | -0 | 2 | 1 |
|---|
| Net cash provided by operating activities | -39 | -17 | 65 | 124 | 254 | 380 |
|---|
| Purchases of property and equipment | 43 | 56 | 93 | 144 | 114 | 185 |
|---|
| Capitalized internal-use software | 14 | 19 | 15 | 20 | 21 | 28 |
|---|
| Asset acquisitions and business combinations, net of cash acquired | - | - | - | - | - | 38 |
|---|
| Purchases of available-for-sale securities | 537 | 1,267 | 1,589 | 1,133 | 1,878 | 1,572 |
|---|
| Sales of available-for-sale securities | 2 | - | 26 | - | 20 | - |
|---|
| Maturities of available-for-sale securities | 175 | 840 | 968 | 1,149 | 1,812 | 1,493 |
|---|
| Other investing activities | -0 | -0 | -0 | -0 | -0 | -0 |
|---|
| Net cash used in investing activities | -418 | -515 | -709 | -236 | -186 | -330 |
|---|
| Repayments of convertible senior notes | - | - | - | 17 | 208 | - |
|---|
| Cash paid for issuance costs on revolving credit facility | - | - | - | - | - | 2 |
|---|
| Proceeds from Stock Options Exercised | 3 | 7 | 21 | 10 | 15 | 13 |
|---|
| Proceeds From Stock Options Exercised Early | 3 | 0 | 0 | 0 | - | 0 |
|---|
| Repurchases of unvested common stock | 0 | 0 | 0 | 0 | 0 | - |
|---|
| Proceeds from Issuance of Common Stock | - | - | - | - | 19 | 20 |
|---|
| Payment of tax withholding obligation on RSU settlement | - | - | - | - | 8 | 17 |
|---|
| Payment of indemnity holdback | - | - | 2 | - | 10 | 1 |
|---|
| Net cash provided by (used in) financing activities | 571 | 505 | 847 | 6 | -192 | 13 |
|---|
| Net increase (decrease) in cash, cash equivalents, and restricted cash | 114 | -27 | 203 | -106 | -124 | 63 |
|---|
| Cash paid for interest | 1 | 2 | 4 | 1 | 1 | 0 |
|---|
| Income Taxes Paid, Net | 2 | 1 | 2 | 2 | 4 | 5 |
|---|
| Cash paid for operating lease liabilities | - | 21 | 23 | 29 | 41 | 51 |
|---|
| Share-Based Payment Arrangement, Amount Capitalized | 2 | 3 | 3 | 5 | 7 | 11 |
|---|
| Capital Expenditures Incurred but Not yet Paid | 4 | 3 | 14 | 29 | 26 | 57 |
|---|
| Vesting of early exercised stock options | 4 | 5 | 4 | 3 | 2 | 0 |
|---|
| Business Combination And Asset Acquisition, Indemnity Holdback Consideration | - | - | - | - | - | 7 |
|---|
| Stock Issued | - | 2 | 2 | 66 | - | - |
|---|
| Right-of-Use Asset Obtained in Exchange for Operating Lease Liability | - | 10 | 110 | 33 | 45 | 72 |
|---|