-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatashield-v2.html
More file actions
892 lines (830 loc) · 49.8 KB
/
Copy pathdatashield-v2.html
File metadata and controls
892 lines (830 loc) · 49.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
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DataShield — Personal Data Removal</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fraunces:ital,wght@0,300;0,600;1,300&display=swap" rel="stylesheet">
<style>
:root {
--bg: #0a0c0f;
--surface: #111318;
--surface2: #181c24;
--border: #1e2330;
--accent: #00e5a0;
--accent2: #ff4d6d;
--warn: #ffb830;
--text: #e8eaf0;
--muted: #5a607a;
--mono: 'DM Mono', monospace;
--serif: 'Fraunces', serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
background: var(--bg); color: var(--text);
font-family: var(--mono); font-size: 13px;
min-height: 100vh; overflow-x: hidden;
}
body::before {
content: ''; position: fixed; inset: 0;
background-image:
repeating-linear-gradient(0deg, transparent, transparent 39px, var(--border) 39px, var(--border) 40px),
repeating-linear-gradient(90deg, transparent, transparent 39px, var(--border) 39px, var(--border) 40px);
opacity: 0.15; pointer-events: none; z-index: 0;
}
.app { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 40px 24px 80px; }
header { margin-bottom: 40px; }
.logo { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.logo-icon {
width: 30px; height: 30px; background: var(--accent); flex-shrink: 0;
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.logo h1 { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -.5px; }
.logo h1 span { color: var(--accent); }
.tagline { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.source-badge {
display: inline-flex; align-items: center; gap: 6px;
background: rgba(0,229,160,.08); border: 1px solid rgba(0,229,160,.2);
border-radius: 20px; padding: 4px 12px; font-size: 11px; color: var(--accent);
margin-top: 10px;
}
.steps {
display: flex; margin-bottom: 36px;
border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.step-btn {
flex: 1; padding: 10px 6px; background: var(--surface); border: none; cursor: pointer;
color: var(--muted); font-family: var(--mono); font-size: 11px;
text-transform: uppercase; letter-spacing: .06em;
border-right: 1px solid var(--border); transition: all .2s;
display: flex; align-items: center; justify-content: center; gap: 6px;
}
.step-btn:last-child { border-right: none; }
.step-btn.active { background: var(--surface2); color: var(--accent); }
.step-btn .num {
width: 18px; height: 18px; border-radius: 50%;
background: var(--border); display: flex; align-items: center; justify-content: center;
font-size: 10px; flex-shrink: 0;
}
.step-btn.active .num, .step-btn.done .num { background: var(--accent); color: var(--bg); }
.step-btn.done { color: var(--text); }
.panel { display: none; animation: fadeIn .3s ease; }
.panel.active { display: block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.label {
font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
color: var(--accent); margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.label::after { content:''; flex:1; height:1px; background: var(--border); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1/-1; }
label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
input, select {
background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
padding: 9px 12px; color: var(--text); font-family: var(--mono); font-size: 13px;
transition: border-color .2s; outline: none;
}
input:focus, select:focus { border-color: var(--accent); }
input::placeholder { color: var(--muted); }
select option { background: var(--surface2); }
.info-box {
background: var(--surface); border: 1px solid var(--border);
border-left: 3px solid var(--accent); border-radius: 4px;
padding: 13px 15px; margin-bottom: 20px; line-height: 1.7;
color: var(--muted); font-size: 12px;
}
.info-box strong { color: var(--text); }
.btn {
padding: 10px 22px; border-radius: 4px; border: none; cursor: pointer;
font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
text-transform: uppercase; transition: all .2s;
}
.btn-primary { background: var(--accent); color: var(--bg); font-weight: 500; }
.btn-primary:hover { background: #00ffb3; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 6px 13px; font-size: 11px; }
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; }
/* Top-10 banner */
.top10 {
background: linear-gradient(135deg, rgba(0,229,160,.08), rgba(0,229,160,.03));
border: 1px solid rgba(0,229,160,.25); border-radius: 6px;
padding: 16px 20px; margin-bottom: 24px;
}
.top10 h3 { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.top10-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.top10-tag {
background: rgba(0,229,160,.1); border: 1px solid rgba(0,229,160,.2);
color: var(--accent); border-radius: 4px; padding: 4px 10px; font-size: 11px;
}
.top10-note { color: var(--muted); font-size: 11px; margin-top: 10px; line-height: 1.6; }
/* Category tabs */
.cat-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.cat-tab {
padding: 5px 12px; border-radius: 3px; border: 1px solid var(--border);
background: transparent; color: var(--muted); cursor: pointer;
font-family: var(--mono); font-size: 11px; transition: all .15s;
}
.cat-tab.active { border-color: var(--accent); color: var(--accent); background: rgba(0,229,160,.06); }
/* Broker table */
.broker-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.broker-table th {
text-align: left; padding: 8px 12px; font-size: 10px; text-transform: uppercase;
letter-spacing: .1em; color: var(--muted); border-bottom: 1px solid var(--border);
background: var(--surface2);
}
.broker-table td {
padding: 10px 12px; border-bottom: 1px solid var(--border);
vertical-align: top; font-size: 12px;
}
.broker-table tr:hover td { background: rgba(255,255,255,.02); }
.broker-name-cell { font-weight: 500; white-space: nowrap; }
.broker-note { color: var(--muted); font-size: 11px; line-height: 1.5; max-width: 220px; }
.broker-contact { color: var(--muted); font-size: 11px; }
.risk-badge {
display: inline-block; padding: 2px 7px; border-radius: 10px; font-size: 10px;
text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.risk-high { background: rgba(255,77,109,.15); color: var(--accent2); }
.risk-med { background: rgba(255,184,48,.12); color: var(--warn); }
.risk-low { background: rgba(0,229,160,.1); color: var(--accent); }
.status-badge {
display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10px;
text-transform: uppercase; letter-spacing: .05em; cursor: pointer; white-space: nowrap;
}
.s-pending { background: rgba(255,184,48,.12); color: var(--warn); }
.s-submitted { background: rgba(0,229,160,.1); color: var(--accent); }
.s-confirmed { background: rgba(76,175,80,.12); color: #4caf50; }
.s-skipped { background: rgba(90,96,122,.15); color: var(--muted); }
.action-links { display: flex; gap: 8px; flex-wrap: wrap; }
.action-links a { text-decoration: none; }
/* Summary */
.summary-bar {
display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin-bottom: 28px;
}
.summary-stat {
background: var(--surface); border: 1px solid var(--border);
border-radius: 6px; padding: 14px; text-align: center;
}
.summary-stat .snum { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; }
.summary-stat .slbl { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 3px; }
.stat-total .snum { color: var(--text); }
.stat-top .snum { color: #c77dff; }
.stat-pending .snum { color: var(--warn); }
.stat-done .snum { color: var(--accent); }
.stat-confirmed .snum { color: #4caf50; }
/* Progress */
.progress-wrap { margin-bottom: 22px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 11px; color: var(--muted); }
.progress-track { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .5s ease; }
/* Filter bar */
.filter-bar { display: flex; gap: 7px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-btn {
padding: 5px 13px; border-radius: 20px; border: 1px solid var(--border);
background: transparent; color: var(--muted); cursor: pointer;
font-family: var(--mono); font-size: 11px; transition: all .15s;
}
.filter-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(0,229,160,.06); }
/* Profile display */
.profile-display {
background: var(--surface); border: 1px solid var(--border);
border-radius: 6px; padding: 16px; margin-bottom: 20px;
}
.profile-row { display: flex; gap: 28px; flex-wrap: wrap; }
.profile-field { display: flex; flex-direction: column; gap: 3px; }
.profile-field .k { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.profile-field .v { font-size: 14px; }
/* AI */
.ai-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 22px; }
.ai-header { background: var(--surface2); padding: 11px 15px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.ai-dot { width:8px;height:8px;border-radius:50%;background:var(--accent);animation:pulse 2s infinite; }
.ai-title { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.ai-body { padding: 16px; min-height: 80px; line-height: 1.7; font-size: 13px; }
.ai-body.loading { color: var(--muted); }
.ai-input-row { padding: 11px 15px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.ai-input-row input { flex: 1; }
.typing-cursor { display:inline-block;width:2px;height:14px;background:var(--accent);margin-left:2px;vertical-align:middle;animation:blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.alert { padding: 11px 15px; border-radius: 4px; margin-bottom: 14px; font-size: 12px; line-height: 1.6; display: none; }
.alert.show { display: block; }
.alert-warn { background: rgba(255,184,48,.1); border: 1px solid rgba(255,184,48,.3); color: var(--warn); }
.alert-info { background: rgba(0,229,160,.07); border: 1px solid rgba(0,229,160,.2); color: var(--accent); }
.search-row {
display: flex; gap: 10px; margin-bottom: 18px;
}
.search-row input { flex: 1; }
@media(max-width:700px) {
.form-grid { grid-template-columns: 1fr; }
.summary-bar { grid-template-columns: repeat(3,1fr); }
.step-btn span { display: none; }
.broker-table { font-size: 11px; }
}
</style>
</head>
<body>
<div class="app">
<header>
<div class="logo">
<div class="logo-icon"></div>
<h1>Data<span>Shield</span></h1>
</div>
<div class="tagline">Personal Data Broker Removal Assistant</div>
<div class="source-badge">
✓ Verified via IntelTechniques.com Workbook (Updated Oct 2024) — 60+ Brokers
</div>
</header>
<nav class="steps">
<button class="step-btn active" onclick="goStep(1)" id="step-btn-1"><span class="num">1</span><span>Profile</span></button>
<button class="step-btn" onclick="goStep(2)" id="step-btn-2"><span class="num">2</span><span>Search</span></button>
<button class="step-btn" onclick="goStep(3)" id="step-btn-3"><span class="num">3</span><span>Opt-Out</span></button>
<button class="step-btn" onclick="goStep(4)" id="step-btn-4"><span class="num">4</span><span>AI Help</span></button>
</nav>
<!-- STEP 1 -->
<div class="panel active" id="panel-1">
<div class="label">Your Information</div>
<div class="info-box">
<strong>Privacy first.</strong> Your data never leaves your browser. It's used only to generate opt-out links and templates — no servers, no tracking, no storage.
</div>
<div class="alert alert-warn" id="validation-alert">Please fill in at least First Name, Last Name, and State.</div>
<div class="form-grid">
<div class="field"><label>First Name *</label><input id="fname" placeholder="Jane" /></div>
<div class="field"><label>Last Name *</label><input id="lname" placeholder="Smith" /></div>
<div class="field"><label>Middle Name / Initial</label><input id="mname" placeholder="Optional" /></div>
<div class="field"><label>Birth Year</label><input id="age" placeholder="e.g. 1985" /></div>
<div class="field"><label>City</label><input id="city" placeholder="Your city" /></div>
<div class="field">
<label>State *</label>
<select id="state">
<option value="">— Select —</option>
<option>Alabama</option><option>Alaska</option><option>Arizona</option><option>Arkansas</option>
<option>California</option><option>Colorado</option><option>Connecticut</option><option>Delaware</option>
<option>Florida</option><option>Georgia</option><option>Hawaii</option><option>Idaho</option>
<option>Illinois</option><option>Indiana</option><option>Iowa</option><option>Kansas</option>
<option>Kentucky</option><option>Louisiana</option><option>Maine</option><option>Maryland</option>
<option>Massachusetts</option><option>Michigan</option><option>Minnesota</option><option>Mississippi</option>
<option>Missouri</option><option>Montana</option><option>Nebraska</option><option>Nevada</option>
<option>New Hampshire</option><option>New Jersey</option><option>New Mexico</option><option>New York</option>
<option>North Carolina</option><option>North Dakota</option><option>Ohio</option><option>Oklahoma</option>
<option>Oregon</option><option>Pennsylvania</option><option>Rhode Island</option><option>South Carolina</option>
<option>South Dakota</option><option>Tennessee</option><option>Texas</option><option>Utah</option>
<option>Vermont</option><option>Virginia</option><option>Washington</option><option>West Virginia</option>
<option>Wisconsin</option><option>Wyoming</option>
</select>
</div>
<div class="field"><label>Email (for opt-out forms)</label><input type="email" id="email" placeholder="burner or real" /></div>
<div class="field"><label>Phone (optional)</label><input id="phone" placeholder="For finding records" /></div>
<div class="field full"><label>Former / Maiden Names</label><input id="aliases" placeholder="Comma separated" /></div>
<div class="field full"><label>Former Cities / States</label><input id="prev_locations" placeholder="Comma separated" /></div>
</div>
<div class="btn-group">
<button class="btn btn-primary" onclick="saveProfile()">Continue to Search →</button>
</div>
</div>
<!-- STEP 2 -->
<div class="panel" id="panel-2">
<div class="label">Search Each Broker</div>
<div id="profile-summary" class="profile-display"></div>
<div class="top10">
<h3>⚡ Start Here — "Most Bang for Your Buck" (IntelTechniques Top 10)</h3>
<div class="top10-grid">
<span class="top10-tag">Spokeo</span><span class="top10-tag">MyLife</span>
<span class="top10-tag">Radaris</span><span class="top10-tag">WhitePages</span>
<span class="top10-tag">Intelius</span><span class="top10-tag">BeenVerified</span>
<span class="top10-tag">Acxiom</span><span class="top10-tag">InfoTracer</span>
<span class="top10-tag">LexisNexis</span><span class="top10-tag">TruePeopleSearch</span>
</div>
<div class="top10-note">These 10 brokers feed data to dozens of smaller sites. Complete these first, wait ~1 week, then tackle the rest. If a site requests a photo ID, use a generated face from <strong>thispersondoesnotexist.com</strong>.</div>
</div>
<div class="progress-wrap">
<div class="progress-label"><span>Search Progress</span><span id="search-progress-label">0 / 0 checked</span></div>
<div class="progress-track"><div class="progress-fill" id="search-progress-bar" style="width:0%"></div></div>
</div>
<div class="search-row">
<input id="search2-input" placeholder="Filter brokers..." oninput="filterSearch2(this.value)" />
</div>
<table class="broker-table" id="search-table">
<thead><tr>
<th>Broker</th><th>Priority</th><th>Search Link</th><th>Checked?</th>
</tr></thead>
<tbody id="search-tbody"></tbody>
</table>
<div class="btn-group">
<button class="btn btn-primary" onclick="goStep(3)">Proceed to Opt-Out →</button>
<button class="btn btn-outline" onclick="goStep(1)">← Edit Profile</button>
</div>
</div>
<!-- STEP 3 -->
<div class="panel" id="panel-3">
<div class="label">Opt-Out Tracker</div>
<div class="summary-bar">
<div class="summary-stat stat-total"><div class="snum" id="stat-total">0</div><div class="slbl">Total</div></div>
<div class="summary-stat stat-top"><div class="snum" id="stat-top10">10</div><div class="slbl">Top 10</div></div>
<div class="summary-stat stat-pending"><div class="snum" id="stat-pending">0</div><div class="slbl">Pending</div></div>
<div class="summary-stat stat-done"><div class="snum" id="stat-done">0</div><div class="slbl">Submitted</div></div>
<div class="summary-stat stat-confirmed"><div class="snum" id="stat-confirmed">0</div><div class="slbl">Confirmed</div></div>
</div>
<div class="progress-wrap">
<div class="progress-label"><span>Opt-Out Progress</span><span id="optout-progress-label">0%</span></div>
<div class="progress-track"><div class="progress-fill" id="optout-progress-bar" style="width:0%"></div></div>
</div>
<div class="filter-bar">
<button class="filter-btn active" onclick="filterBrokers('all',this)">All</button>
<button class="filter-btn" onclick="filterBrokers('top10',this)">⚡ Top 10</button>
<button class="filter-btn" onclick="filterBrokers('pending',this)">Pending</button>
<button class="filter-btn" onclick="filterBrokers('submitted',this)">Submitted</button>
<button class="filter-btn" onclick="filterBrokers('confirmed',this)">Confirmed</button>
<button class="filter-btn" onclick="filterBrokers('skipped',this)">Skipped</button>
</div>
<div class="search-row">
<input id="search3-input" placeholder="Search brokers..." oninput="renderBrokerTable()" />
</div>
<table class="broker-table" id="optout-table">
<thead><tr>
<th>Broker</th><th>Risk</th><th>Notes</th><th>Contact</th><th>Status</th><th>Actions</th>
</tr></thead>
<tbody id="optout-tbody"></tbody>
</table>
<div class="btn-group">
<button class="btn btn-outline" onclick="goStep(4)">AI Assistant →</button>
</div>
</div>
<!-- STEP 4 -->
<div class="panel" id="panel-4">
<div class="label">AI Privacy Assistant</div>
<div class="info-box">Ask the AI assistant anything about your rights, how to handle stubborn brokers, or how to write formal removal requests. Powered by Claude.</div>
<div class="ai-panel">
<div class="ai-header">
<div class="ai-dot"></div>
<div class="ai-title">DataShield AI — Privacy Expert</div>
</div>
<div class="ai-body" id="ai-output">Ask me anything — data broker rights (CCPA, GDPR, state laws), how to write opt-out letters, what to do when brokers refuse removal, or how to use a burner identity safely.</div>
<div class="ai-input-row">
<input id="ai-input" placeholder="e.g. How do I write a CCPA deletion request?" onkeydown="if(event.key==='Enter')sendAI()" />
<button class="btn btn-primary btn-sm" onclick="sendAI()">Ask</button>
</div>
</div>
<div class="label">Quick Prompts</div>
<div class="btn-group">
<button class="btn btn-outline btn-sm" onclick="quickPrompt('What are my rights under CCPA for data removal from brokers?')">CCPA Rights</button>
<button class="btn btn-outline btn-sm" onclick="quickPrompt('Write a formal data deletion request email I can send to a data broker who is ignoring me')">Opt-Out Email</button>
<button class="btn btn-outline btn-sm" onclick="quickPrompt('A data broker is ignoring my removal requests. What legal options do I have?')">Broker Won\'t Remove</button>
<button class="btn btn-outline btn-sm" onclick="quickPrompt('Why does IntelTechniques recommend starting with the top 10 data brokers first?')">Why Top 10 First?</button>
<button class="btn btn-outline btn-sm" onclick="quickPrompt('How often should I re-check data broker sites after opting out?')">How Often to Recheck?</button>
<button class="btn btn-outline btn-sm" onclick="quickPrompt('Is it safe to use a burner email address for data broker opt-out submissions?')">Burner Email Tips</button>
</div>
</div>
</div><!-- /app -->
<script>
// ── Broker Database (sourced from IntelTechniques workbook, Oct 2024) ──────────
const BROKERS = [
// ── TOP 10 (priority=true) ─────────────────────────────────────────────────
{ id:'spokeo', name:'Spokeo', risk:'high', top10:true, cat:'people',
desc:'Aggregates phone, address, email, relatives, social profiles.',
optout:'https://www.spokeo.com/optout',
search:(p)=>`https://www.spokeo.com/search?q=${e(p.fname)}+${e(p.lname)}+${e(p.state)}`,
notes:'Online removal + email verification required.',
contact:'[email protected], [email protected]' },
{ id:'mylife', name:'MyLife', risk:'high', top10:true, cat:'people',
desc:'Reputation scores, background reports, social aggregation.',
optout:'https://www.mylife.com/ccpa/index.pubview',
search:(p)=>`https://www.mylife.com/find-people/?firstName=${e(p.fname)}&lastName=${e(p.lname)}&state=${e(p.state)}`,
notes:'Online tool. Can also email privacy@mylife.com with name + profile link.',
contact:'privacy@mylife.com, (888) 704-1900' },
{ id:'radaris', name:'Radaris', risk:'high', top10:true, cat:'people',
desc:'Professional background, addresses, criminal records.',
optout:'https://radaris.com/control/privacy',
search:(p)=>`https://radaris.com/p/${e(p.fname)}_${e(p.lname)}/`,
notes:'Select your profile and submit to removal URL. Email verification required.',
contact:'[email protected], [email protected]' },
{ id:'whitepages', name:'WhitePages', risk:'high', top10:true, cat:'people',
desc:'Phone, address, background info, relatives. Also feeds 411.com.',
optout:'https://www.whitepages.com/suppression-requests',
search:(p)=>`https://www.whitepages.com/name/${e(p.fname)}-${e(p.lname)}/${e(p.state)}`,
notes:'Submit the URL of your listing. Process will call with a PIN for verification.',
contact:'[email protected]' },
{ id:'intelius', name:'Intelius', risk:'high', top10:true, cat:'people',
desc:'Background checks, phone, address history. Owns many subsidiaries.',
optout:'https://www.intelius.com/opt-out/submit/',
search:(p)=>`https://www.intelius.com/people-search/results/?firstName=${e(p.fname)}&lastName=${e(p.lname)}&state=${e(p.state)}`,
notes:'Intelius owns: Addresses.com, AddressSearch, Anywho, Classmates, InstantCheckmate, InstantPeopleFinder, PeopleFinder, PeopleLookup, TruthFinder, ZabaSearch, US Search.',
contact:'[email protected], (888) 245-1655' },
{ id:'beenverified', name:'BeenVerified', risk:'high', top10:true, cat:'people',
desc:'Criminal records, addresses, phone, social profiles.',
optout:'https://www.beenverified.com/faq/opt-out/',
search:(p)=>`https://www.beenverified.com/people?fname=${e(p.fname)}&lname=${e(p.lname)}&state=${e(p.state)}`,
notes:'Online removal tool. Also owns PeopleLooker and PeopleSmart.',
contact:'[email protected]' },
{ id:'acxiom', name:'Acxiom', risk:'high', top10:true, cat:'marketing',
desc:'Major data aggregator — marketing data sold to corporations worldwide.',
optout:'https://isapps.acxiom.com/optout/optout.aspx',
search:(p)=>`https://isapps.acxiom.com/optout/optout.aspx`,
notes:'Online removal tool. One of the largest data brokers in the world.',
contact:'[email protected]' },
{ id:'infotracer', name:'InfoTracer', risk:'high', top10:true, cat:'people',
desc:'Background reports, criminal records, contact info.',
optout:'https://www.infotracer.com/optout/',
search:(p)=>`https://www.infotracer.com/people?firstName=${e(p.fname)}&lastName=${e(p.lname)}&state=${e(p.state)}`,
notes:'Online removal tool. Alternative: https://members.infotracer.com/removeMyData. Also feeds StateRecords.org.',
contact:'https://www.infotracer.com/contact' },
{ id:'lexisnexis', name:'LexisNexis', risk:'high', top10:true, cat:'data',
desc:'Comprehensive consumer data used by insurance, legal, and financial industries.',
optout:'https://optout.lexisnexis.com/',
search:(p)=>`https://optout.lexisnexis.com/`,
notes:'May require documentation. Also visit consumer.risk.lexisnexis.com/request for CA residents.',
contact:'1-888-497-0011' },
{ id:'truepeoplesearch', name:'TruePeopleSearch', risk:'high', top10:true, cat:'people',
desc:'Free people search with addresses, phones, relatives. High traffic site.',
optout:'https://www.truepeoplesearch.com/removal',
search:(p)=>`https://www.truepeoplesearch.com/results?name=${e(p.fname)}+${e(p.lname)}&citystatezip=${e(p.city)}+${e(p.state)}`,
notes:'Online removal tool. Feed trickles down to many aggregator sites.',
contact:'https://www.truepeoplesearch.com/contact' },
// ── A ──────────────────────────────────────────────────────────────────────
{ id:'411', name:'411.com', risk:'med', top10:false, cat:'people',
desc:'Directory listings. Feeds through WhitePages suppression system.',
optout:'https://www.whitepages.com/suppression-requests',
search:(p)=>`https://www.411.com/name/${e(p.fname)}-${e(p.lname)}/${e(p.state)}/`,
notes:'Submit the URL of the entry via WhitePages suppression. Phone PIN required.',
contact:'[email protected]' },
{ id:'411info', name:'411.info', risk:'med', top10:false, cat:'people',
desc:'Separate directory service from 411.com.',
optout:'https://411.info/manage/',
search:(p)=>`https://411.info/people/${e(p.fname)}-${e(p.lname)}/`,
notes:'Online removal tool completes process.',
contact:'[email protected], [email protected]' },
{ id:'absolutepeoplesearch', name:'Absolute People Search', risk:'low', top10:false, cat:'people',
desc:'People search aggregator.',
optout:'https://absolutepeoplesearch.com/public.php?funct=optout',
search:(p)=>`https://absolutepeoplesearch.com/?name=${e(p.fname)}+${e(p.lname)}&state=${e(p.state)}`,
notes:'Online submission + email verification.',
contact:'https://absolutepeoplesearch.com/contact-us' },
{ id:'addresssearch', name:'AddressSearch', risk:'med', top10:false, cat:'people',
desc:'Address and phone lookup. Owned by Intelius.',
optout:'https://addresssearch.com/remove-info.php',
search:(p)=>`https://addresssearch.com/`,
notes:'Online removal tool. Intelius opt-out also covers this site.',
contact:'[email protected]' },
{ id:'advancedbackgroundchecks', name:'Advanced Background Checks', risk:'high', top10:false, cat:'background',
desc:'Background check reports including criminal and financial data.',
optout:'https://www.advancedbackgroundchecks.com/removal',
search:(p)=>`https://www.advancedbackgroundchecks.com/search?firstName=${e(p.fname)}&lastName=${e(p.lname)}&state=${e(p.state)}`,
notes:'Online removal tool completes process.',
contact:'https://www.advancedbackgroundchecks.com/contact' },
{ id:'arrestfacts', name:'Arrest Facts', risk:'high', top10:false, cat:'background',
desc:'Arrest records and mugshot data.',
optout:'https://arrestfacts.com/page/privacy',
search:(p)=>`https://arrestfacts.com/?name=${e(p.fname)}+${e(p.lname)}`,
notes:'Click "Information Control" on any record and follow removal instructions.',
contact:'https://arrestfacts.com/page/contact' },
// ── B ──────────────────────────────────────────────────────────────────────
{ id:'backgroundalert', name:'Background Alert', risk:'med', top10:false, cat:'background',
desc:'Background reports, addresses, contact information.',
optout:'https://www.backgroundalert.com/optout/',
search:(p)=>`https://www.backgroundalert.com/people/${e(p.fname)}+${e(p.lname)}/?state=${e(p.state)}`,
notes:'Online removal tool completes process.',
contact:'[email protected]' },
{ id:'backgroundcheckrun', name:'BackgroundCheck.run', risk:'med', top10:false, cat:'background',
desc:'Background reports aggregator.',
optout:'https://backgroundcheck.run/ng/control/privacy',
search:(p)=>`https://backgroundcheck.run/people/${e(p.fname)}-${e(p.lname)}`,
notes:'Online removal tool completes process.',
contact:'https://backgroundcheck.run/pg/contact' },
// ── C-E ──────────────────────────────────────────────────────────────────
{ id:'checkpeople', name:'CheckPeople', risk:'med', top10:false, cat:'people',
desc:'People search with address, phone, relatives.',
optout:'https://www.checkpeople.com/opt-out',
search:(p)=>`https://www.checkpeople.com/people-search?firstName=${e(p.fname)}&lastName=${e(p.lname)}&state=${e(p.state)}`,
notes:'Online removal tool completes process.',
contact:'https://www.checkpeople.com/contact' },
{ id:'clustrmaps', name:'ClustrMaps', risk:'low', top10:false, cat:'people',
desc:'Location-based people aggregation.',
optout:'https://clustrmaps.com/bl/opt-out',
search:(p)=>`https://clustrmaps.com/persons/${e(p.fname)}_${e(p.lname)}`,
notes:'Online removal tool.',
contact:'[email protected]' },
{ id:'cyberbackgroundcheck', name:'CyberBackgroundChecks', risk:'med', top10:false, cat:'background',
desc:'Criminal records, addresses, relatives.',
optout:'https://www.cyberbackgroundchecks.com/removal',
search:(p)=>`https://www.cyberbackgroundchecks.com/people/${e(p.fname)}-${e(p.lname)}/${e(p.state)}`,
notes:'Online removal tool completes process.',
contact:'[email protected]' },
{ id:'dataveria', name:'DataVeria', risk:'low', top10:false, cat:'people',
desc:'People search and public records.',
optout:'https://dataveria.com/ng/control/privacy',
search:(p)=>`https://dataveria.com/people/${e(p.fname)}-${e(p.lname)}`,
notes:'Online removal tool.',
contact:'https://dataveria.com/ng/contact' },
{ id:'epsilon', name:'Epsilon', risk:'high', top10:false, cat:'marketing',
desc:'Large-scale consumer data sold for targeted marketing.',
optout:'https://www.epsilon.com/us/privacy-policy/opt-out',
search:(p)=>`https://www.epsilon.com/us/privacy-policy/opt-out`,
notes:'Send email with removal request. CA residents can use the opt-out link directly.',
contact:'[email protected]' },
// ── F-I ──────────────────────────────────────────────────────────────────
{ id:'fastpeoplesearch', name:'FastPeopleSearch', risk:'med', top10:false, cat:'people',
desc:'Address history, phone numbers, email addresses.',
optout:'https://www.fastpeoplesearch.com/removal',
search:(p)=>`https://www.fastpeoplesearch.com/name/${e(p.fname)}-${e(p.lname)}_${e(p.state)}`,
notes:'Online removal tool completes process.',
contact:'https://www.fastpeoplesearch.com/contact' },
{ id:'golookup', name:'GoLookUp', risk:'med', top10:false, cat:'people',
desc:'People search with public records and background reports.',
optout:'https://golookup.com/privacygate',
search:(p)=>`https://golookup.com/people-search?firstName=${e(p.fname)}&lastName=${e(p.lname)}&state=${e(p.state)}`,
notes:'Online removal tool.',
contact:'[email protected]' },
{ id:'homemetry', name:'Homemetry', risk:'low', top10:false, cat:'property',
desc:'Property and home ownership records.',
optout:'https://homemetry.com/control/privacy',
search:(p)=>`https://homemetry.com/people/${e(p.fname)}_${e(p.lname)}`,
notes:'Online removal tool.',
contact:'https://homemetry.com/contact' },
{ id:'instantcheckmate', name:'Instant Checkmate', risk:'high', top10:false, cat:'background',
desc:'Criminal records, arrest records, addresses, contact info. Owned by Intelius.',
optout:'https://www.instantcheckmate.com/opt-out/',
search:(p)=>`https://www.instantcheckmate.com/people-search/?firstName=${e(p.fname)}&lastName=${e(p.lname)}&state=${e(p.state)}`,
notes:'Online removal tool. Intelius opt-out also covers this site.',
contact:'[email protected]' },
// ── N-P ──────────────────────────────────────────────────────────────────
{ id:'nuwber', name:'Nuwber', risk:'med', top10:false, cat:'people',
desc:'People profiles with address, phone, relatives.',
optout:'https://nuwber.com/removal/link',
search:(p)=>`https://nuwber.com/search?q=${e(p.fname)}+${e(p.lname)}+${e(p.state)}`,
notes:'Enter your profile URL and email. If URL fails, screenshot results and email support@nuwber.com.',
contact:'[email protected]' },
{ id:'peekyou', name:'PeekYou', risk:'low', top10:false, cat:'people',
desc:'Social media profile aggregation and web mentions.',
optout:'https://www.peekyou.com/about/contact/optout/index.php',
search:(p)=>`https://www.peekyou.com/${e(p.fname)}_${e(p.lname)}`,
notes:'Submit unique ID from your profile URL. Check "remove my entire listing."',
contact:'https://www.peekyou.com/about/contact' },
{ id:'peoplebyname', name:'PeopleByName', risk:'med', top10:false, cat:'people',
desc:'Name and phone-based people directory.',
optout:'https://www.peoplebyname.com/remove.php',
search:(p)=>`https://www.peoplebyname.com/people/${e(p.fname)}+${e(p.lname)}.htm`,
notes:'Online removal tool completes process.',
contact:'[email protected]' },
{ id:'peopledatalabs', name:'People Data Labs', risk:'high', top10:false, cat:'data',
desc:'B2B data enrichment — professional and personal data sold to businesses.',
optout:'https://www.peopledatalabs.com/opt-out-form',
search:(p)=>`https://www.peopledatalabs.com/opt-out-form`,
notes:'Online removal form. Also email privacy@peopledatalabs.com.',
contact:'[email protected]' },
{ id:'peoplefinder', name:'PeopleFinder', risk:'high', top10:false, cat:'people',
desc:'Full background reports. Owned by Intelius.',
optout:'https://www.peoplefinder.com/optout.php',
search:(p)=>`https://www.peoplefinder.com/results.php?full_name=${e(p.fname)}+${e(p.lname)}&state=${e(p.state)}`,
notes:'Intelius opt-out covers this site.',
contact:'[email protected]' },
{ id:'peoplefinders', name:'PeopleFinders', risk:'med', top10:false, cat:'people',
desc:'People search with public records.',
optout:'https://www.peoplefinders.com/opt-out',
search:(p)=>`https://www.peoplefinders.com/people/${e(p.fname)}-${e(p.lname)}?state=${e(p.state)}`,
notes:'Online removal tool. Select "Not Opt-out" when asked about your reason to complete.',
contact:'[email protected]' },
{ id:'privateeye', name:'Private Eye', risk:'med', top10:false, cat:'people',
desc:'People search and background reports.',
optout:'https://www.privateeye.com/static/view/optout/',
search:(p)=>`https://www.privateeye.com/people/${e(p.fname)}-${e(p.lname)}/${e(p.state)}/`,
notes:'Online removal tool.',
contact:'https://www.privateeye.com/static/view/contact/' },
{ id:'publicdatacheck', name:'PublicDataCheck', risk:'low', top10:false, cat:'people',
desc:'Public records aggregator.',
optout:'https://www.publicdatacheck.com/opt-out.php',
search:(p)=>`https://www.publicdatacheck.com/people/${e(p.fname)}-${e(p.lname)}.php`,
notes:'Online removal tool.',
contact:'[email protected]' },
// ── R-S ──────────────────────────────────────────────────────────────────
{ id:'rehold', name:'Rehold', risk:'low', top10:false, cat:'property',
desc:'Address and property records.',
optout:'https://rehold.com/page/privacy',
search:(p)=>`https://rehold.com/people?q=${e(p.fname)}+${e(p.lname)}`,
notes:'Click "Information Control" on right side of page and follow directions.',
contact:'[email protected]' },
{ id:'spyfly', name:'SpyFly', risk:'med', top10:false, cat:'people',
desc:'Background reports and people search.',
optout:'https://www.spyfly.com/help-center/remove-info',
search:(p)=>`https://www.spyfly.com/`,
notes:'Send email requesting removal.',
contact:'[email protected]' },
{ id:'spytox', name:'Spytox', risk:'low', top10:false, cat:'people',
desc:'Phone and address lookup.',
optout:'https://www.spytox.com/opt_out',
search:(p)=>`https://www.spytox.com/reverse_white_pages?name=${e(p.fname)}+${e(p.lname)}&state=${e(p.state)}`,
notes:'Online removal + email confirmation.',
contact:'[email protected]' },
{ id:'staterecords', name:'StateRecords.org', risk:'med', top10:false, cat:'background',
desc:'State-level public records. Uses InfoTracer opt-out.',
optout:'https://infotracer.com/optout/',
search:(p)=>`https://staterecords.org/people/${e(p.fname)}-${e(p.lname)}/${e(p.state)}/`,
notes:'Uses InfoTracer removal system.',
contact:'[email protected]' },
// ── T-Z ──────────────────────────────────────────────────────────────────
{ id:'truthfinder', name:'TruthFinder', risk:'high', top10:false, cat:'background',
desc:'Criminal and background reports. Owned by Intelius.',
optout:'https://www.truthfinder.com/opt-out/',
search:(p)=>`https://www.truthfinder.com/people-search/?firstName=${e(p.fname)}&lastName=${e(p.lname)}&state=${e(p.state)}`,
notes:'Online removal tool. Intelius opt-out also covers this site.',
contact:'[email protected], (800) 699-8081' },
{ id:'truepeoplesearchnet', name:'TruePeopleSearch.net', risk:'med', top10:false, cat:'people',
desc:'Separate from TruePeopleSearch.com — different operator.',
optout:'https://truepeoplesearch.net/remove-my-info',
search:(p)=>`https://truepeoplesearch.net/?name=${e(p.fname)}+${e(p.lname)}&state=${e(p.state)}`,
notes:'Email request required for this site.',
contact:'[email protected]' },
{ id:'usphonebook', name:'USPhoneBook', risk:'med', top10:false, cat:'people',
desc:'Phone number lookups tied to name and address.',
optout:'https://www.usphonebook.com/opt-out',
search:(p)=>`https://www.usphonebook.com/${e(p.fname)}-${e(p.lname)}/${e(p.state)}/`,
notes:'Online removal tool.',
contact:'https://www.usphonebook.com/contact' },
{ id:'ussearch', name:'US Search', risk:'med', top10:false, cat:'people',
desc:'People search with background reports. Owned by Intelius.',
optout:'https://www.ussearch.com/opt-out/submit/',
search:(p)=>`https://www.ussearch.com/people-search/results/?firstName=${e(p.fname)}&lastName=${e(p.lname)}&state=${e(p.state)}`,
notes:'Intelius opt-out also covers this site.',
contact:'[email protected]' },
{ id:'voterrecords', name:'VoterRecords', risk:'low', top10:false, cat:'background',
desc:'Public voter registration data.',
optout:'https://voterrecords.com/faq',
search:(p)=>`https://voterrecords.com/voter/${e(p.fname)}-${e(p.lname)}/1`,
notes:'Scroll to bottom of record and click "record opt-out" link.',
contact:'[email protected]' },
{ id:'zabasearch', name:'ZabaSearch', risk:'med', top10:false, cat:'people',
desc:'Public records. Owned by Intelius.',
optout:'https://www.zabasearch.com/block_records/',
search:(p)=>`https://www.zabasearch.com/people/${e(p.fname)}+${e(p.lname)}/${e(p.state)}/`,
notes:'Intelius opt-out also covers this site.',
contact:'[email protected]' },
];
function e(s){ return encodeURIComponent((s||'').trim()); }
let profile = {};
let brokerStatus = {};
let searchChecked = {};
let currentFilter = 'all';
// ── Navigation ─────────────────────────────────────────────────────────────
function goStep(n) {
document.querySelectorAll('.panel').forEach(p => p.classList.remove('active'));
document.getElementById('panel-' + n).classList.add('active');
document.querySelectorAll('.step-btn').forEach((b,i) => {
b.classList.remove('active','done');
if (i+1 < n) b.classList.add('done');
});
document.getElementById('step-btn-' + n).classList.add('active');
if (n === 2) renderSearchTable();
if (n === 3) renderBrokerTable();
}
function saveProfile() {
const fname = document.getElementById('fname').value.trim();
const lname = document.getElementById('lname').value.trim();
const state = document.getElementById('state').value;
if (!fname || !lname || !state) {
document.getElementById('validation-alert').classList.add('show');
return;
}
document.getElementById('validation-alert').classList.remove('show');
profile = {
fname, lname,
mname: document.getElementById('mname').value.trim(),
age: document.getElementById('age').value.trim(),
city: document.getElementById('city').value.trim(),
state,
email: document.getElementById('email').value.trim(),
phone: document.getElementById('phone').value.trim(),
aliases: document.getElementById('aliases').value.trim(),
prev_locations: document.getElementById('prev_locations').value.trim(),
};
BROKERS.forEach(b => {
if (!brokerStatus[b.id]) brokerStatus[b.id] = 'pending';
if (searchChecked[b.id] === undefined) searchChecked[b.id] = false;
});
goStep(2);
}
// ── Step 2 ─────────────────────────────────────────────────────────────────
function renderSearchTable() {
const ps = document.getElementById('profile-summary');
ps.innerHTML = `<div class="profile-row">
<div class="profile-field"><span class="k">Name</span><span class="v">${profile.fname} ${profile.mname?profile.mname+' ':''}${profile.lname}</span></div>
${profile.city?`<div class="profile-field"><span class="k">Location</span><span class="v">${profile.city}, ${profile.state}</span></div>`:`<div class="profile-field"><span class="k">State</span><span class="v">${profile.state}</span></div>`}
${profile.age?`<div class="profile-field"><span class="k">Birth Year</span><span class="v">${profile.age}</span></div>`:''}
${profile.email?`<div class="profile-field"><span class="k">Email</span><span class="v">${profile.email}</span></div>`:''}
</div>`;
filterSearch2('');
}
function filterSearch2(q) {
const tbody = document.getElementById('search-tbody');
const filtered = BROKERS.filter(b => !q || b.name.toLowerCase().includes(q.toLowerCase()));
tbody.innerHTML = filtered.map(b => `
<tr>
<td class="broker-name-cell">${b.top10?'⚡ ':''}${b.name}</td>
<td><span class="risk-badge risk-${b.risk}">${{high:'High',med:'Med',low:'Low'}[b.risk]}</span></td>
<td><a href="${b.search(profile)}" target="_blank" onclick="markSearched('${b.id}')" style="color:var(--accent);text-decoration:none">Search →</a></td>
<td>
<input type="checkbox" ${searchChecked[b.id]?'checked':''} onchange="toggleSearched('${b.id}',this.checked)" style="accent-color:var(--accent);width:15px;height:15px;cursor:pointer;" />
</td>
</tr>
`).join('');
updateSearchProgress();
}
function markSearched(id) {
setTimeout(() => { searchChecked[id] = true; filterSearch2(document.getElementById('search2-input').value); }, 2500);
}
function toggleSearched(id, v) { searchChecked[id] = v; updateSearchProgress(); }
function updateSearchProgress() {
const checked = Object.values(searchChecked).filter(Boolean).length;
const total = BROKERS.length;
document.getElementById('search-progress-label').textContent = `${checked} / ${total} checked`;
document.getElementById('search-progress-bar').style.width = (checked/total*100)+'%';
}
// ── Step 3 ─────────────────────────────────────────────────────────────────
function renderBrokerTable() {
updateStats();
const q = (document.getElementById('search3-input')?.value||'').toLowerCase();
let list = BROKERS.filter(b => !q || b.name.toLowerCase().includes(q));
if (currentFilter === 'top10') list = list.filter(b => b.top10);
else if (currentFilter !== 'all') list = list.filter(b => brokerStatus[b.id] === currentFilter);
const statusOpts = ['pending','submitted','confirmed','skipped'];
const statusLabels = {pending:'Pending',submitted:'Submitted',confirmed:'Confirmed',skipped:'Skipped'};
document.getElementById('optout-tbody').innerHTML = list.map(b => {
const st = brokerStatus[b.id] || 'pending';
return `
<tr>
<td class="broker-name-cell">${b.top10?'⚡ ':''}${b.name}</td>
<td><span class="risk-badge risk-${b.risk}">${{high:'High',med:'Med',low:'Low'}[b.risk]}</span></td>
<td class="broker-note">${b.notes}</td>
<td class="broker-contact">${b.contact||''}</td>
<td>
<select onchange="setStatus('${b.id}',this.value)" style="background:var(--surface);border:1px solid var(--border);color:var(--text);font-family:var(--mono);font-size:11px;padding:4px 8px;border-radius:4px;">
${statusOpts.map(s=>`<option value="${s}" ${st===s?'selected':''}>${statusLabels[s]}</option>`).join('')}
</select>
</td>
<td>
<div class="action-links">
<a href="${b.optout}" target="_blank" onclick="setStatus('${b.id}','submitted')">
<button class="btn btn-primary btn-sm">Opt-Out →</button>
</a>
</div>
</td>
</tr>
`;
}).join('');
}
function setStatus(id, status) {
brokerStatus[id] = status;
updateStats();
}
function updateStats() {
const vals = Object.values(brokerStatus);
document.getElementById('stat-total').textContent = BROKERS.length;
document.getElementById('stat-pending').textContent = vals.filter(s=>s==='pending').length;
document.getElementById('stat-done').textContent = vals.filter(s=>s==='submitted').length;
document.getElementById('stat-confirmed').textContent = vals.filter(s=>s==='confirmed').length;
const done = vals.filter(s=>s!=='pending').length;
const pct = Math.round(done/BROKERS.length*100);
document.getElementById('optout-progress-bar').style.width = pct+'%';
document.getElementById('optout-progress-label').textContent = pct+'%';
}
function filterBrokers(f, btn) {
currentFilter = f;
document.querySelectorAll('.filter-btn').forEach(b=>b.classList.remove('active'));
btn.classList.add('active');
renderBrokerTable();
}
// ── Step 4: AI ─────────────────────────────────────────────────────────────
async function sendAI() {
const input = document.getElementById('ai-input');
const output = document.getElementById('ai-output');
const q = input.value.trim();
if (!q) return;
input.value = '';
output.className = 'ai-body loading';
output.innerHTML = 'Thinking<span class="typing-cursor"></span>';
const ctx = profile.fname ? `The user is ${profile.fname} ${profile.lname} from ${profile.state}.` : '';
try {
const res = await fetch('https://api.anthropic.com/v1/messages', {
method: 'POST',
headers: {'Content-Type':'application/json'},
body: JSON.stringify({
model:'claude-sonnet-4-20250514',
max_tokens:1000,
system:`You are a privacy rights expert specializing in data broker opt-outs. ${ctx} Provide practical, specific advice. Reference relevant laws (CCPA, GDPR, state-level). Keep responses under 350 words. Use ** for bold headings. Reference IntelTechniques.com as a trusted resource when relevant.`,
messages:[{role:'user',content:q}]
})
});
const data = await res.json();
const text = data.content?.map(c=>c.text||'').join('')||'No response received.';
output.className = 'ai-body';
output.innerHTML = text.replace(/\n\n/g,'<br><br>').replace(/\*\*(.*?)\*\*/g,'<strong>$1</strong>').replace(/\*(.*?)\*/g,'<em>$1</em>');
} catch(err) {
output.className = 'ai-body';
output.innerHTML = '<span style="color:var(--accent2)">Connection error. Please try again.</span>';
}
}
function quickPrompt(t){ document.getElementById('ai-input').value=t; sendAI(); }
</script>
</body>
</html>