-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathedge-delta-pre-demo.html
More file actions
436 lines (419 loc) · 39.8 KB
/
edge-delta-pre-demo.html
File metadata and controls
436 lines (419 loc) · 39.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Edge Delta · Pre-Demo Intake</title>
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet"/>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--black: #080808; --surface: #111111; --surface2: #181818;
--border: rgba(255,255,255,0.08); --border-focus: rgba(255,255,255,0.2);
--text: #ffffff; --muted: rgba(255,255,255,0.45);
--green: #3DFF8F; --green-dim: rgba(61,255,143,0.12);
--mono: 'JetBrains Mono', monospace; --sans: 'Space Grotesk', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--black); color: var(--text); min-height: 100vh; overflow-x: hidden; }
.gradient-bg {
position: fixed; inset: 0; z-index: 0; pointer-events: none;
background:
radial-gradient(ellipse 55% 55% at -5% -5%, rgba(34,197,94,0.65) 0%, transparent 60%),
radial-gradient(ellipse 40% 45% at 18% 8%, rgba(6,182,212,0.25) 0%, transparent 55%),
radial-gradient(ellipse 45% 40% at 50% -8%, rgba(99,102,241,0.3) 0%, transparent 55%),
radial-gradient(ellipse 50% 55% at 88% -5%, rgba(239,68,68,0.45) 0%, transparent 55%),
radial-gradient(ellipse 35% 40% at 100% 5%, rgba(251,146,60,0.3) 0%, transparent 50%);
-webkit-mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,0.5) 30%, transparent 55%);
mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,0.5) 30%, transparent 55%);
}
.page { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; padding: 0 24px 120px; }
.header { text-align: center; padding: 72px 0 60px; }
.logo-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 36px; }
h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(34px,6vw,54px); line-height: 1.07; letter-spacing: -2px; color: #fff; margin-bottom: 18px; }
.header-sub { font-family: var(--mono); font-size: 13.5px; color: var(--muted); line-height: 1.75; max-width: 520px; margin: 0 auto; }
.badge { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; margin-bottom: 20px; }
.badge-pre { background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.35); color: #a5b4fc; }
.badge-post { background: rgba(61,255,143,0.1); border: 1px solid rgba(61,255,143,0.3); color: var(--green); }
.progress-bar-wrap { position: sticky; top: 0; z-index: 20; padding: 10px 0 0; background: linear-gradient(to bottom, rgba(8,8,8,0.97) 75%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin-bottom: 32px; }
.progress-track { height: 1.5px; background: rgba(255,255,255,0.07); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--green), #06b6d4); width: 0%; border-radius: 100px; transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }
.progress-label { font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-align: right; margin-top: 5px; }
.section { background: rgba(255,255,255,0.025); border: 1px solid var(--border); border-radius: 10px; padding: 28px 32px; margin-bottom: 12px; transition: border-color 0.2s; }
.section:hover { border-color: rgba(255,255,255,0.12); }
.section-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.section-num { font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--green); letter-spacing: 0.05em; padding-top: 3px; flex-shrink: 0; }
.section-title h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 3px; }
.section-title p { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.field-grid { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 195px 1fr; gap: 14px; align-items: start; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .section { padding: 22px 18px; } }
label.field-label { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,0.7); padding-top: 9px; line-height: 1.4; }
label.field-label .hint { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); font-weight: 400; margin-top: 3px; }
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 7px; color: #fff; font-family: var(--sans); font-size: 13.5px; padding: 8px 12px; outline: none; transition: border-color 0.15s, background 0.15s; -webkit-appearance: none; }
input:focus, textarea:focus { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.18); font-family: var(--mono); font-size: 11.5px; }
textarea { resize: vertical; min-height: 74px; line-height: 1.55; }
.pill-group { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 100px; padding: 5px 12px; cursor: pointer; transition: border-color 0.15s, background 0.15s; user-select: none; }
.pill:hover { border-color: rgba(255,255,255,0.16); }
.pill input { display: none; }
.pill span { font-family: var(--mono); font-size: 11.5px; color: rgba(255,255,255,0.5); transition: color 0.15s; }
.pill.on { border-color: rgba(61,255,143,0.45); background: var(--green-dim); }
.pill.on span { color: var(--green); }
.pill-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.2); flex-shrink: 0; transition: background 0.15s; }
.pill.on .pill-dot { background: var(--green); }
.doc-block { border: 1px solid rgba(61,255,143,0.15); border-radius: 10px; padding: 24px 28px; margin-top: 28px; background: rgba(61,255,143,0.04); }
.doc-block h3 { font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--green); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.doc-links { display: flex; flex-direction: column; gap: 8px; }
.doc-link { display: flex; align-items: flex-start; gap: 10px; text-decoration: none; padding: 10px 14px; border-radius: 7px; border: 1px solid var(--border); background: rgba(255,255,255,0.025); transition: border-color 0.15s, background 0.15s; }
.doc-link:hover { border-color: rgba(61,255,143,0.3); background: rgba(61,255,143,0.06); }
.doc-link-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.doc-link-text strong { display: block; font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.doc-link-text span { font-family: var(--mono); font-size: 11px; color: var(--muted); line-height: 1.5; }
.next-wrap { border: 1px solid var(--border); border-radius: 10px; padding: 28px 32px; margin-top: 28px; background: rgba(255,255,255,0.025); }
.next-wrap h3 { font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--green); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step-n { font-family: var(--mono); font-size: 10px; color: var(--green); padding-top: 2px; flex-shrink: 0; }
.step p { font-size: 13.5px; color: rgba(255,255,255,0.65); line-height: 1.6; }
.step p strong { color: #fff; font-weight: 600; }
.cta-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: center; align-items: center; gap: 20px; padding: 14px 24px 22px; background: linear-gradient(to top, rgba(8,8,8,1) 55%, transparent); }
.btn-save { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1.5px solid var(--green); color: var(--green); font-family: var(--sans); font-weight: 600; font-size: 13.5px; padding: 11px 28px; border-radius: 7px; cursor: pointer; transition: background 0.18s, box-shadow 0.18s, transform 0.12s; }
.btn-save:hover { background: var(--green-dim); box-shadow: 0 0 20px rgba(61,255,143,0.18); transform: translateY(-1px); }
.btn-save:active { transform: translateY(0); }
.autosave { font-family: var(--mono); font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.autosave-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.2); transition: background 0.3s; }
.autosave.live .autosave-dot { background: var(--green); }
.toast { position: fixed; bottom: 76px; right: 24px; background: var(--surface); border: 1px solid rgba(61,255,143,0.35); color: var(--green); font-family: var(--mono); font-size: 11.5px; padding: 10px 16px; border-radius: 7px; display: flex; align-items: center; gap: 7px; opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1); pointer-events: none; z-index: 100; }
.toast.show { opacity: 1; transform: translateY(0); }
@keyframes spin { to { transform: rotate(360deg); } }
</style>
</head>
<body>
<div class="gradient-bg"></div>
<div class="page">
<div class="header">
<div class="logo-row"><img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADb/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eH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BCEIAQhCAEIQgBCEIAQhCAEIQgFY5zHh7HFrgcgg4IWhtuppQ1sFzYamMDAlHwjfz/zas6hA1c9ChENVD3+hqGVEfRvHWOCiOzfsWIpKmopJhNTTPieOLT/AJlae2ajpqrENzaKeXcKhjctPnN9qixm49DukjZIMPaHKvqqAty6HaPm8VbSwva1srcSROGQ9pyCo1BUonRyN3scOxDY5XeSxx6grsjnCBs3bEFyvp6Bxw6Y8kfNG9d7GMY0NY0ABKpWQvcwyEBkTdrpHnktA6ygGJ03eaWLv1bM2CI7idpd1Diq25ahpKYGK3RNmlGwzPHgjqHH/N6zNXVT1UxlqJXSvPFx/wAwpsWjDqXNx1HJ4UVsa6CPcZSfGO/T2belUL3Oe4ucSSdpJO0pqFJdKwIQhCQQhCAEIQgBCEIAQhCAEIQgBCEIAQhCAEIQgBCEIDutd1rbc/NPJ4B8qNwy13YtHR3q21uBJ/yUx4OOWE9fDtQhCGkyzZTOlaHQSQzA8Y5AU2SmfEMzSQQjnklAQhQZFdW3i10bSGPNbMPks2MB6Tx7Fm7ndKy4OHf5AIx5MTBhjez2nahCk1SSOJCEISCEIQAhCEAIQhACEIQAhCEB/9k=" alt="Edge Delta" style="height:112px; width:auto;" /></div>
<div class="badge badge-pre">Pre-Demo</div>
<h1>Let's build the<br/>right demo for you.</h1>
<p class="header-sub">A few quick questions so we can tailor what we show you and make the most of your time.</p>
</div>
<div class="progress-bar-wrap">
<div class="progress-track"><div class="progress-fill" id="pFill"></div></div>
<div class="progress-label"><span id="pPct">0%</span> complete</div>
</div>
<!-- 01 -->
<div class="section">
<div class="section-header">
<div class="section-num">01</div>
<div class="section-title"><h2>Company & Contact</h2><p>Who are we talking to?</p></div>
</div>
<div class="field-grid">
<div class="field-row">
<label class="field-label">Company Name</label>
<input type="text" name="company_name" placeholder="Acme Corp"/>
</div>
<div class="field-row">
<label class="field-label">Your Name & Title</label>
<input type="text" name="contact_name" placeholder="Jane Smith, VP Engineering"/>
</div>
<div class="field-row">
<label class="field-label">Email</label>
<input type="email" name="email" placeholder="jane@acme.com"/>
</div>
<div class="field-row">
<label class="field-label">Phone <span style="font-family:var(--mono);font-size:10px;color:var(--muted);">(optional)</span></label>
<input type="tel" name="phone" placeholder="+1 555 000 0000"/>
</div>
<div class="field-row">
<label class="field-label">Engineering Team Size<span class="hint">On-call or in incident response</span></label>
<input type="text" name="eng_size" placeholder="e.g., 12 engineers"/>
</div>
</div>
</div>
<!-- 02 -->
<div class="section">
<div class="section-header">
<div class="section-num">02</div>
<div class="section-title"><h2>Observability & Infrastructure Stack</h2><p>What's in place today?</p></div>
</div>
<div class="field-grid">
<div class="field-row">
<label class="field-label">Primary Monitoring</label>
<div class="pill-group">
<label class="pill"><input type="checkbox" name="monitoring" value="Datadog"/><div class="pill-dot"></div><span>Datadog</span></label>
<label class="pill"><input type="checkbox" name="monitoring" value="Grafana/Loki"/><div class="pill-dot"></div><span>Grafana / Loki</span></label>
<label class="pill"><input type="checkbox" name="monitoring" value="New Relic"/><div class="pill-dot"></div><span>New Relic</span></label>
<label class="pill"><input type="checkbox" name="monitoring" value="Dynatrace"/><div class="pill-dot"></div><span>Dynatrace</span></label>
<label class="pill"><input type="checkbox" name="monitoring" value="Splunk"/><div class="pill-dot"></div><span>Splunk</span></label>
<label class="pill"><input type="checkbox" name="monitoring" value="Elastic"/><div class="pill-dot"></div><span>Elastic</span></label>
<label class="pill"><input type="checkbox" name="monitoring" value="Other"/><div class="pill-dot"></div><span>Other</span></label>
</div>
</div>
<div class="field-row">
<label class="field-label">If Other</label>
<input type="text" name="monitoring_other" placeholder="Specify tool(s)"/>
</div>
<div class="field-row">
<label class="field-label">Alerting / On-Call</label>
<div class="pill-group">
<label class="pill"><input type="checkbox" name="alerting" value="PagerDuty"/><div class="pill-dot"></div><span>PagerDuty</span></label>
<label class="pill"><input type="checkbox" name="alerting" value="Opsgenie"/><div class="pill-dot"></div><span>Opsgenie</span></label>
<label class="pill"><input type="checkbox" name="alerting" value="Grafana OnCall"/><div class="pill-dot"></div><span>Grafana OnCall</span></label>
<label class="pill"><input type="checkbox" name="alerting" value="VictorOps"/><div class="pill-dot"></div><span>VictorOps</span></label>
<label class="pill"><input type="checkbox" name="alerting" value="Custom"/><div class="pill-dot"></div><span>Custom / in-house</span></label>
<label class="pill"><input type="checkbox" name="alerting" value="Other"/><div class="pill-dot"></div><span>Other</span></label>
</div>
</div>
<div class="field-row">
<label class="field-label">Cloud Provider(s)</label>
<div class="pill-group">
<label class="pill"><input type="checkbox" name="cloud" value="AWS"/><div class="pill-dot"></div><span>AWS</span></label>
<label class="pill"><input type="checkbox" name="cloud" value="GCP"/><div class="pill-dot"></div><span>GCP</span></label>
<label class="pill"><input type="checkbox" name="cloud" value="Azure"/><div class="pill-dot"></div><span>Azure</span></label>
<label class="pill"><input type="checkbox" name="cloud" value="On-Prem/Hybrid"/><div class="pill-dot"></div><span>On-Prem / Hybrid</span></label>
<label class="pill"><input type="checkbox" name="cloud" value="Other"/><div class="pill-dot"></div><span>Other</span></label>
</div>
</div>
<div class="field-row">
<label class="field-label">Container Orchestration</label>
<div class="pill-group">
<label class="pill"><input type="checkbox" name="container" value="K8s-managed"/><div class="pill-dot"></div><span>K8s (managed)</span></label>
<label class="pill"><input type="checkbox" name="container" value="K8s-self"/><div class="pill-dot"></div><span>K8s (self-hosted)</span></label>
<label class="pill"><input type="checkbox" name="container" value="ECS"/><div class="pill-dot"></div><span>ECS</span></label>
<label class="pill"><input type="checkbox" name="container" value="Docker Compose"/><div class="pill-dot"></div><span>Docker Compose</span></label>
<label class="pill"><input type="checkbox" name="container" value="None"/><div class="pill-dot"></div><span>None</span></label>
</div>
</div>
<div class="field-row">
<label class="field-label">CI/CD</label>
<div class="pill-group">
<label class="pill"><input type="checkbox" name="cicd" value="GitHub Actions"/><div class="pill-dot"></div><span>GitHub Actions</span></label>
<label class="pill"><input type="checkbox" name="cicd" value="GitLab CI"/><div class="pill-dot"></div><span>GitLab CI</span></label>
<label class="pill"><input type="checkbox" name="cicd" value="Jenkins"/><div class="pill-dot"></div><span>Jenkins</span></label>
<label class="pill"><input type="checkbox" name="cicd" value="ArgoCD"/><div class="pill-dot"></div><span>ArgoCD</span></label>
<label class="pill"><input type="checkbox" name="cicd" value="Other"/><div class="pill-dot"></div><span>Other</span></label>
</div>
</div>
<div class="field-row">
<label class="field-label">Other Key Infra</label>
<input type="text" name="other_infra" placeholder="e.g., Kafka, Redis, Postgres, Terraform"/>
</div>
</div>
</div>
<!-- 03 -->
<div class="section">
<div class="section-header">
<div class="section-num">03</div>
<div class="section-title"><h2>Telemetry Data Volumes</h2><p>Helps us scope the right configuration for you.</p></div>
</div>
<div class="field-grid">
<div class="field-row">
<label class="field-label">Log Volume</label>
<input type="text" name="log_vol" placeholder="e.g., 500 GB/day"/>
</div>
<div class="field-row">
<label class="field-label">Metrics Volume</label>
<input type="text" name="metrics_vol" placeholder="e.g., 50M active time series"/>
</div>
<div class="field-row">
<label class="field-label">Traces Volume</label>
<input type="text" name="traces_vol" placeholder="e.g., 100 GB/day"/>
</div>
<div class="field-row">
<label class="field-label">Monthly Obs. Spend<span class="hint">Approx. total across all tools</span></label>
<input type="text" name="obs_spend" placeholder="e.g., $80K/mo"/>
</div>
<div class="field-row">
<label class="field-label">Biggest Cost Driver</label>
<input type="text" name="cost_driver" placeholder="Which tool or data type?"/>
</div>
<div class="field-row">
<label class="field-label">Retention Requirements</label>
<div class="pill-group">
<label class="pill"><input type="checkbox" name="retention" value="7d"/><div class="pill-dot"></div><span>7 days</span></label>
<label class="pill"><input type="checkbox" name="retention" value="14d"/><div class="pill-dot"></div><span>14 days</span></label>
<label class="pill"><input type="checkbox" name="retention" value="30d"/><div class="pill-dot"></div><span>30 days</span></label>
<label class="pill"><input type="checkbox" name="retention" value="90d+"/><div class="pill-dot"></div><span>90+ days</span></label>
<label class="pill"><input type="checkbox" name="retention" value="Varies"/><div class="pill-dot"></div><span>Varies by type</span></label>
</div>
</div>
</div>
</div>
<!-- 04 -->
<div class="section">
<div class="section-header">
<div class="section-num">04</div>
<div class="section-title"><h2>Pain Points & Goals</h2><p>What's driving the conversation?</p></div>
</div>
<div class="field-grid">
<div class="field-row">
<label class="field-label">Which resonate?</label>
<div class="pill-group">
<label class="pill"><input type="checkbox" name="pain_tags" value="Alert fatigue"/><div class="pill-dot"></div><span>Alert fatigue</span></label>
<label class="pill"><input type="checkbox" name="pain_tags" value="Slow RCA"/><div class="pill-dot"></div><span>Slow root cause analysis</span></label>
<label class="pill"><input type="checkbox" name="pain_tags" value="MTTR too high"/><div class="pill-dot"></div><span>MTTR too high</span></label>
<label class="pill"><input type="checkbox" name="pain_tags" value="Cost growth"/><div class="pill-dot"></div><span>Costs growing fast</span></label>
<label class="pill"><input type="checkbox" name="pain_tags" value="Data silos"/><div class="pill-dot"></div><span>Data silos</span></label>
<label class="pill"><input type="checkbox" name="pain_tags" value="Manual investigation"/><div class="pill-dot"></div><span>Manual investigation</span></label>
<label class="pill"><input type="checkbox" name="pain_tags" value="Cross-platform"/><div class="pill-dot"></div><span>No cross-platform visibility</span></label>
<label class="pill"><input type="checkbox" name="pain_tags" value="Other"/><div class="pill-dot"></div><span>Other</span></label>
</div>
</div>
<div class="field-row">
<label class="field-label">What are your current pains today?</label>
<textarea name="current_pains" placeholder="Describe the biggest problems your team is running into with observability, incident response, or on-call today."></textarea>
</div>
<div class="field-row">
<label class="field-label">Alerts per Month</label>
<input type="text" name="alerts_month" placeholder="e.g., 200 PagerDuty alerts/month"/>
</div>
<div class="field-row">
<label class="field-label">Estimated MTTR</label>
<input type="text" name="mttr" placeholder="e.g., 45 min avg, 4+ hrs for complex"/>
</div>
</div>
</div>
<!-- 05 -->
<div class="section">
<div class="section-header">
<div class="section-num">05</div>
<div class="section-title"><h2>Anything Else?</h2><p>Open space before we head into the demo.</p></div>
</div>
<div class="field-grid">
<div class="field-row">
<label class="field-label">Who approves spend?<span class="hint">Name, title, and how decisions get made</span></label>
<textarea name="approver_info" placeholder="e.g., Sarah Lee, VP Eng — any purchase over $25K needs her sign-off plus a security review."></textarea>
</div>
<div class="field-row">
<label class="field-label">Timing</label>
<input type="text" name="timeline" placeholder="e.g., targeting end of quarter, or next 30 days"/>
</div>
<div class="field-row">
<label class="field-label">Additional Context<span class="hint">Anything else that would help us prepare</span></label>
<textarea name="context" style="min-height:90px;" placeholder="Environment details, team dynamics, open questions for Edge Delta..."></textarea>
</div>
</div>
</div>
<!-- What to expect -->
<div class="next-wrap">
<h3>// What to Expect in the Demo</h3>
<div class="steps">
<div class="step"><div class="step-n">01</div><p><strong>Tailored walkthrough</strong> — we map your environment to the scenarios most relevant to your stack and pain points before day one.</p></div>
<div class="step"><div class="step-n">02</div><p><strong>AI Teammates in action</strong> — see OnCall AI, SRE, and Code Analyzer collaborate on a real incident scenario from alert to resolution.</p></div>
<div class="step"><div class="step-n">03</div><p><strong>Connector ecosystem</strong> — we'll show how PagerDuty, Slack, GitHub, and your existing tools wire into Edge Delta with zero rip-and-replace.</p></div>
<div class="step"><div class="step-n">04</div><p><strong>Your questions answered</strong> — we reserve time to go deep on whatever matters most to your team.</p></div>
</div>
</div>
</div>
<div class="cta-bar">
<div class="autosave" id="autosave"><div class="autosave-dot"></div><span id="autosave-label">In progress</span></div>
<button class="btn-save" id="submitBtn" onclick="submitForm()">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/></svg>
Submit to Edge Delta
</button>
</div>
<div class="toast" id="toast">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>
<span id="toast-msg">Submitted!</span>
</div>
<script>const STORAGE_KEY = 'ed_pre_demo_v1';</script>
<script>
const FORMSPREE_URL = 'https://formspree.io/f/mkoqjpna';
document.querySelectorAll('.pill').forEach(pill => {
const input = pill.querySelector('input');
input.addEventListener('change', () => {
if (input.type === 'radio') {
document.querySelectorAll(`input[name="${input.name}"]`).forEach(r => {
r.closest('.pill').classList.toggle('on', r.checked);
});
} else { pill.classList.toggle('on', input.checked); }
updateProgress(); autosave();
});
});
document.querySelectorAll('input[type="text"],input[type="email"],input[type="tel"],textarea').forEach(el => {
el.addEventListener('input', () => { updateProgress(); autosave(); });
});
function updateProgress() {
const textEls = [...document.querySelectorAll('input[type="text"],input[type="email"],input[type="tel"],textarea')];
let filled = 0, total = textEls.length;
textEls.forEach(i => { if (i.value.trim()) filled++; });
const groups = {};
document.querySelectorAll('input[type="checkbox"],input[type="radio"]').forEach(i => {
groups[i.name] = groups[i.name] || []; groups[i.name].push(i);
});
Object.values(groups).forEach(g => { total++; if (g.some(i => i.checked)) filled++; });
const pct = total ? Math.round((filled / total) * 100) : 0;
document.getElementById('pFill').style.width = pct + '%';
document.getElementById('pPct').textContent = pct + '%';
const label = document.getElementById('autosave-label');
const dot = document.getElementById('autosave');
const wasSubmitted = localStorage.getItem(STORAGE_KEY + '_submitted') === '1';
if (wasSubmitted) { label.textContent = 'Previously submitted'; dot.classList.add('live'); }
else if (pct === 0) { label.textContent = 'In progress'; dot.classList.remove('live'); }
else if (pct < 100) { label.textContent = pct + '% complete — auto-saved'; dot.classList.add('live'); }
else { label.textContent = 'Ready to submit'; dot.classList.add('live'); }
}
function collect() {
const d = {};
document.querySelectorAll('input[type="text"],input[type="email"],input[type="tel"],textarea').forEach(i => { if (i.name) d[i.name] = i.value; });
const cbGroups = {};
document.querySelectorAll('input[type="checkbox"]').forEach(i => { cbGroups[i.name] = cbGroups[i.name] || []; if (i.checked) cbGroups[i.name].push(i.value); });
Object.entries(cbGroups).forEach(([k, v]) => { d[k] = v.join(', ') || ''; });
document.querySelectorAll('input[type="radio"]').forEach(i => { if (i.checked) d[i.name] = i.value; });
return d;
}
function restore(d) {
Object.entries(d).forEach(([name, val]) => {
const t = document.querySelector(`input[name="${name}"][type="text"],input[name="${name}"][type="email"],input[name="${name}"][type="tel"],textarea[name="${name}"]`);
if (t) { t.value = val; return; }
if (typeof val === 'string' && val.includes(',') || val !== '') {
const vals = typeof val === 'string' ? val.split(', ').map(v => v.trim()) : [val];
vals.forEach(v => { if (!v) return; const cb = document.querySelector(`input[name="${name}"][type="checkbox"][value="${CSS.escape(v)}"]`); if (cb) { cb.checked = true; cb.closest('.pill')?.classList.add('on'); } });
}
const radio = document.querySelector(`input[name="${name}"][type="radio"][value="${CSS.escape(val)}"]`);
if (radio) { radio.checked = true; radio.closest('.pill')?.classList.add('on'); }
});
}
let saveTimer;
function autosave() { clearTimeout(saveTimer); saveTimer = setTimeout(() => { try { localStorage.setItem(STORAGE_KEY, JSON.stringify(collect())); } catch(e) {} }, 600); }
function showToast(msg, isError) {
const t = document.getElementById('toast');
document.getElementById('toast-msg').textContent = msg;
t.style.borderColor = isError ? 'rgba(239,68,68,0.5)' : '';
t.style.color = isError ? '#f87171' : '';
t.classList.add('show');
setTimeout(() => t.classList.remove('show'), isError ? 5000 : 3500);
}
async function submitForm() {
const btn = document.getElementById('submitBtn');
const email = document.querySelector('input[name="email"]').value.trim();
if (!email) { showToast('Please enter your email address first', true); document.querySelector('input[name="email"]').focus(); return; }
btn.disabled = true;
btn.innerHTML = `<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" style="animation:spin 1s linear infinite"><path d="M21 12a9 9 0 1 1-6.219-8.56"/></svg> Submitting...`;
try { localStorage.setItem(STORAGE_KEY, JSON.stringify(collect())); } catch(e) {}
try {
const res = await fetch(FORMSPREE_URL, { method: 'POST', headers: { 'Content-Type': 'application/json', 'Accept': 'application/json' }, body: JSON.stringify(collect()) });
if (!res.ok) throw new Error('HTTP ' + res.status);
localStorage.setItem(STORAGE_KEY + '_submitted', '1');
btn.innerHTML = `<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg> Submitted`;
btn.style.borderColor = 'var(--green)'; btn.style.background = 'var(--green-dim)';
setTimeout(() => { btn.disabled = false; btn.innerHTML = `<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/></svg> Resubmit`; }, 4000);
document.getElementById('autosave-label').textContent = 'Submitted ✓ — state saved';
document.getElementById('autosave').classList.add('live');
showToast("Submitted! We'll be in touch soon.");
} catch(err) {
btn.disabled = false;
btn.innerHTML = `<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/></svg> Submit to Edge Delta`;
showToast('Submission failed — your answers are saved, please try again', true);
}
}
window.addEventListener('DOMContentLoaded', () => {
try { const saved = localStorage.getItem(STORAGE_KEY); if (saved) restore(JSON.parse(saved)); } catch(e) {}
updateProgress();
});
</script>
</body>
</html>