-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1070 lines (1008 loc) · 34.7 KB
/
Copy pathindex.html
File metadata and controls
1070 lines (1008 loc) · 34.7 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
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ReachPulse — Find Out Exactly Why Your Content Flopped</title>
<meta name="description" content="Free AI diagnostic tool for TikTok, Instagram Reels, and YouTube Shorts creators. Input your stats, get a specific diagnosis and action plan in seconds.">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0A0A0F;
--surface: #111118;
--card: #16161F;
--border: #1E1E2E;
--border-light: #2A2A3E;
--purple: #7C3AED;
--purple-light: #8B5CF6;
--pink: #EC4899;
--teal: #14B8A6;
--green: #10B981;
--amber: #F59E0B;
--red: #EF4444;
--text: #F1F5F9;
--text-mid: #94A3B8;
--text-dim: #475569;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
min-height: 100vh;
}
/* NAV */
nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 48px;
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
background: rgba(10,10,15,0.9);
backdrop-filter: blur(12px);
z-index: 100;
}
.logo {
font-size: 1.2rem;
font-weight: 800;
letter-spacing: -0.5px;
background: linear-gradient(135deg, #8B5CF6, #EC4899);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.nav-badge {
background: rgba(124,58,237,0.15);
border: 1px solid rgba(124,58,237,0.3);
color: #A78BFA;
font-size: 0.75rem;
font-weight: 600;
padding: 6px 14px;
border-radius: 999px;
}
/* HERO */
.hero {
padding: 90px 48px 60px;
text-align: center;
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
top: -200px;
left: 50%;
transform: translateX(-50%);
width: 600px;
height: 600px;
background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
pointer-events: none;
}
.hero-tag {
display: inline-flex;
align-items: center;
gap: 6px;
background: rgba(124,58,237,0.1);
border: 1px solid rgba(124,58,237,0.25);
color: #A78BFA;
font-size: 0.78rem;
font-weight: 600;
padding: 6px 14px;
border-radius: 999px;
margin-bottom: 28px;
text-transform: uppercase;
letter-spacing: 0.8px;
}
.hero h1 {
font-size: clamp(2.2rem, 5.5vw, 3.8rem);
font-weight: 900;
letter-spacing: -2px;
line-height: 1.05;
max-width: 820px;
margin: 0 auto 20px;
}
.hero h1 .grad {
background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #F59E0B 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero p {
font-size: 1.1rem;
color: var(--text-mid);
max-width: 560px;
margin: 0 auto 40px;
}
.hero-arrow {
font-size: 2rem;
animation: bounce 2s infinite;
display: block;
margin-top: 16px;
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(8px); }
}
/* SOCIAL PROOF STRIP */
.proof-strip {
display: flex;
justify-content: center;
gap: 40px;
padding: 20px 48px;
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
background: var(--surface);
flex-wrap: wrap;
}
.proof-item {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.85rem;
color: var(--text-mid);
}
.proof-item strong { color: var(--text); }
/* TOOL SECTION */
.tool-section {
max-width: 780px;
margin: 64px auto;
padding: 0 24px;
}
.tool-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 20px;
overflow: hidden;
}
.tool-header {
background: linear-gradient(135deg, rgba(124,58,237,0.2) 0%, rgba(236,72,153,0.1) 100%);
border-bottom: 1px solid var(--border);
padding: 28px 32px;
}
.tool-header h2 {
font-size: 1.4rem;
font-weight: 800;
letter-spacing: -0.5px;
margin-bottom: 6px;
}
.tool-header p { font-size: 0.9rem; color: var(--text-mid); }
.tool-body { padding: 32px; }
/* FORM */
.form-step {
display: none;
}
.form-step.active { display: block; }
.step-indicator {
display: flex;
gap: 8px;
margin-bottom: 28px;
}
.step-dot {
height: 4px;
flex: 1;
border-radius: 2px;
background: var(--border);
transition: background 0.3s;
}
.step-dot.done { background: var(--purple); }
.step-dot.active { background: linear-gradient(90deg, var(--purple), var(--pink)); }
.field-group {
margin-bottom: 20px;
}
.field-label {
display: block;
font-size: 0.82rem;
font-weight: 600;
color: var(--text-mid);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 8px;
}
.field-label span { color: var(--purple-light); font-size: 0.75rem; text-transform: none; letter-spacing: 0; font-weight: 400; }
.platform-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
.platform-btn {
background: var(--surface);
border: 1.5px solid var(--border);
border-radius: 12px;
padding: 14px 10px;
cursor: pointer;
text-align: center;
transition: all 0.2s;
font-size: 0.85rem;
font-weight: 600;
color: var(--text-mid);
}
.platform-btn .icon { font-size: 1.4rem; display: block; margin-bottom: 4px; }
.platform-btn:hover { border-color: var(--purple-light); color: var(--text); }
.platform-btn.selected {
border-color: var(--purple);
background: rgba(124,58,237,0.1);
color: var(--text);
}
.stats-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
}
input[type="text"], input[type="number"], input[type="email"], select, textarea {
width: 100%;
background: var(--surface);
border: 1.5px solid var(--border);
border-radius: 10px;
padding: 12px 14px;
color: var(--text);
font-size: 0.9rem;
font-family: inherit;
outline: none;
transition: border-color 0.2s;
appearance: none;
}
input:focus, select:focus, textarea:focus {
border-color: var(--purple-light);
}
select option { background: var(--card); }
textarea { resize: none; height: 80px; }
.input-suffix {
position: relative;
}
.input-suffix input { padding-right: 36px; }
.input-suffix::after {
content: attr(data-suffix);
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
color: var(--text-dim);
font-size: 0.82rem;
pointer-events: none;
}
.step-nav {
display: flex;
gap: 12px;
margin-top: 28px;
}
.btn-back {
background: var(--surface);
border: 1.5px solid var(--border);
color: var(--text-mid);
padding: 13px 24px;
border-radius: 10px;
font-weight: 600;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.2s;
}
.btn-back:hover { border-color: var(--border-light); color: var(--text); }
.btn-next {
flex: 1;
background: linear-gradient(135deg, var(--purple), var(--pink));
border: none;
color: #fff;
padding: 13px 24px;
border-radius: 10px;
font-weight: 700;
font-size: 0.95rem;
cursor: pointer;
transition: opacity 0.2s, transform 0.15s;
}
.btn-next:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-next:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
/* RESULTS */
#results { display: none; }
.result-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 20px;
overflow: hidden;
margin-top: 24px;
}
.result-header {
padding: 24px 28px;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
gap: 14px;
}
.result-icon {
width: 44px;
height: 44px;
border-radius: 12px;
background: rgba(124,58,237,0.15);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.3rem;
flex-shrink: 0;
}
.result-header h3 { font-size: 1rem; font-weight: 700; }
.result-header p { font-size: 0.82rem; color: var(--text-mid); }
.result-body { padding: 28px; }
.result-body .diagnosis {
font-size: 1.05rem;
font-weight: 600;
color: var(--text);
line-height: 1.5;
padding: 16px;
background: rgba(124,58,237,0.08);
border-left: 3px solid var(--purple);
border-radius: 0 8px 8px 0;
margin-bottom: 20px;
}
.result-body .section-label {
font-size: 0.72rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-dim);
margin-bottom: 10px;
margin-top: 20px;
}
.result-body ul { list-style: none; }
.result-body ul li {
display: flex;
gap: 10px;
margin-bottom: 10px;
font-size: 0.88rem;
color: var(--text-mid);
line-height: 1.5;
}
.result-body ul li::before { content: '→'; color: var(--purple-light); flex-shrink: 0; }
.action-list li::before { content: ''; flex-shrink: 0; }
.action-num {
width: 22px;
height: 22px;
border-radius: 6px;
background: var(--purple);
color: #fff;
font-size: 0.72rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-top: 1px;
}
/* EMAIL CAPTURE */
.email-capture {
background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(236,72,153,0.08) 100%);
border: 1px solid rgba(124,58,237,0.25);
border-radius: 14px;
padding: 24px;
margin-top: 24px;
text-align: center;
}
.email-capture h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.email-capture p { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 16px; }
.email-row {
display: flex;
gap: 10px;
max-width: 420px;
margin: 0 auto;
}
.email-row input { flex: 1; }
.email-row button {
background: linear-gradient(135deg, var(--purple), var(--pink));
border: none;
color: #fff;
padding: 12px 20px;
border-radius: 10px;
font-weight: 700;
font-size: 0.88rem;
cursor: pointer;
white-space: nowrap;
transition: opacity 0.2s;
}
.email-row button:hover { opacity: 0.9; }
/* LOADING */
.loading-state {
text-align: center;
padding: 48px 32px;
}
.spinner {
width: 44px;
height: 44px;
border: 3px solid var(--border);
border-top-color: var(--purple);
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state p { color: var(--text-mid); font-size: 0.9rem; }
.loading-state .loading-steps {
margin-top: 20px;
display: flex;
flex-direction: column;
gap: 8px;
align-items: center;
}
.loading-step {
font-size: 0.8rem;
color: var(--text-dim);
opacity: 0;
transition: opacity 0.4s;
}
.loading-step.visible { opacity: 1; color: var(--text-mid); }
/* HOW IT WORKS */
.how-section {
max-width: 1000px;
margin: 80px auto;
padding: 0 48px;
}
.how-section h2 {
font-size: 2rem;
font-weight: 800;
letter-spacing: -1px;
text-align: center;
margin-bottom: 48px;
}
.how-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
}
.how-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 14px;
padding: 24px;
}
.how-num {
width: 32px;
height: 32px;
border-radius: 8px;
background: linear-gradient(135deg, var(--purple), var(--pink));
display: flex;
align-items: center;
justify-content: center;
font-weight: 800;
font-size: 0.85rem;
margin-bottom: 14px;
}
.how-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.how-card p { font-size: 0.83rem; color: var(--text-mid); }
/* PLATFORM PROBLEMS */
.problems-section {
background: var(--surface);
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
padding: 80px 48px;
text-align: center;
}
.problems-section h2 {
font-size: 2rem;
font-weight: 800;
letter-spacing: -1px;
margin-bottom: 12px;
}
.problems-section p { color: var(--text-mid); margin-bottom: 48px; }
.problems-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 16px;
max-width: 900px;
margin: 0 auto;
}
.problem-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 20px;
text-align: left;
}
.problem-platform {
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
color: var(--purple-light);
margin-bottom: 8px;
}
.problem-card p {
font-size: 0.85rem;
color: var(--text-mid);
margin: 0;
font-style: italic;
}
/* FOOTER */
footer {
padding: 32px 48px;
border-top: 1px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.82rem;
color: var(--text-dim);
flex-wrap: wrap;
gap: 12px;
}
/* RESET LINK */
.reset-link {
color: var(--text-dim);
font-size: 0.82rem;
cursor: pointer;
text-decoration: underline;
margin-top: 16px;
display: inline-block;
}
.reset-link:hover { color: var(--text-mid); }
@media (max-width: 640px) {
nav, .hero, .how-section, .problems-section, footer { padding-left: 20px; padding-right: 20px; }
.hero h1 { font-size: 2rem; letter-spacing: -1px; }
.stats-grid { grid-template-columns: 1fr; }
.platform-grid { grid-template-columns: 1fr 1fr 1fr; }
.email-row { flex-direction: column; }
}
</style>
</head>
<body>
<nav>
<div class="logo">ReachPulse</div>
<div class="nav-badge">Free AI Diagnostic</div>
</nav>
<section class="hero">
<div class="hero-tag">✦ For TikTok, Instagram & YouTube Shorts Creators</div>
<h1>Find out <span class="grad">exactly why</span> your content flopped</h1>
<p>Input your video stats and get a specific AI diagnosis with an action plan — in seconds. No generic advice. Real answers.</p>
<span class="hero-arrow">↓</span>
</section>
<div class="proof-strip">
<div class="proof-item"><strong>Free</strong> — no account required</div>
<div class="proof-item"><strong>Specific</strong> — references your actual numbers</div>
<div class="proof-item"><strong>Actionable</strong> — exact steps, not vague tips</div>
<div class="proof-item"><strong>Multi-platform</strong> — TikTok, Reels, Shorts</div>
</div>
<!-- TOOL -->
<div class="tool-section">
<div class="tool-card" id="tool-form">
<div class="tool-header">
<h2>Creator Performance Diagnostic</h2>
<p>Answer 3 quick steps. Takes 90 seconds.</p>
</div>
<div class="tool-body">
<div class="step-indicator">
<div class="step-dot active" id="dot-1"></div>
<div class="step-dot" id="dot-2"></div>
<div class="step-dot" id="dot-3"></div>
</div>
<!-- STEP 1: Platform + Basics -->
<div class="form-step active" id="step-1">
<div class="field-group">
<label class="field-label">Which platform?</label>
<div class="platform-grid">
<button class="platform-btn" onclick="selectPlatform('TikTok', this)">
<span class="icon">🎵</span>TikTok
</button>
<button class="platform-btn" onclick="selectPlatform('Instagram Reels', this)">
<span class="icon">📸</span>Reels
</button>
<button class="platform-btn" onclick="selectPlatform('YouTube Shorts', this)">
<span class="icon">▶️</span>Shorts
</button>
</div>
</div>
<div class="field-group">
<label class="field-label">Your niche / content type</label>
<input type="text" id="niche" placeholder="e.g. fitness, comedy, personal finance, cooking…">
</div>
<div class="field-group">
<label class="field-label">Account size</label>
<select id="followers">
<option value="" disabled selected>Select your follower count</option>
<option value="under 1K">Under 1,000 followers</option>
<option value="1K–10K">1,000 – 10,000 followers</option>
<option value="10K–50K">10,000 – 50,000 followers</option>
<option value="50K–100K">50,000 – 100,000 followers</option>
<option value="100K–500K">100,000 – 500,000 followers</option>
<option value="500K+">500,000+ followers</option>
</select>
</div>
<div class="step-nav">
<button class="btn-next" onclick="goToStep(2)">Continue →</button>
</div>
</div>
<!-- STEP 2: Video Stats -->
<div class="form-step" id="step-2">
<div class="field-group">
<label class="field-label">Video stats <span>(from your analytics — be as accurate as possible)</span></label>
<div class="stats-grid">
<div>
<label class="field-label" style="margin-bottom:6px">Total views</label>
<input type="number" id="views" placeholder="e.g. 847">
</div>
<div>
<label class="field-label" style="margin-bottom:6px">Average watch time %</label>
<div class="input-suffix" data-suffix="%">
<input type="number" id="watchtime" placeholder="e.g. 38" min="0" max="100">
</div>
</div>
<div>
<label class="field-label" style="margin-bottom:6px">Like rate (likes ÷ views)</label>
<div class="input-suffix" data-suffix="%">
<input type="number" id="likerate" placeholder="e.g. 4.2" step="0.1">
</div>
</div>
<div>
<label class="field-label" style="margin-bottom:6px">Share rate (shares ÷ views)</label>
<div class="input-suffix" data-suffix="%">
<input type="number" id="sharerate" placeholder="e.g. 0.8" step="0.1">
</div>
</div>
<div>
<label class="field-label" style="margin-bottom:6px">Comment rate (comments ÷ views)</label>
<div class="input-suffix" data-suffix="%">
<input type="number" id="commentrate" placeholder="e.g. 0.3" step="0.1">
</div>
</div>
<div>
<label class="field-label" style="margin-bottom:6px">Save rate <span>(if available)</span></label>
<div class="input-suffix" data-suffix="%">
<input type="number" id="saverate" placeholder="e.g. 1.2" step="0.1">
</div>
</div>
</div>
</div>
<div class="field-group">
<label class="field-label">Posting frequency</label>
<select id="frequency">
<option value="" disabled selected>How often do you post?</option>
<option value="multiple times a day">Multiple times a day</option>
<option value="once a day">Once a day</option>
<option value="4-6 times a week">4-6 times a week</option>
<option value="2-3 times a week">2-3 times a week</option>
<option value="once a week or less">Once a week or less</option>
</select>
</div>
<div class="step-nav">
<button class="btn-back" onclick="goToStep(1)">← Back</button>
<button class="btn-next" onclick="goToStep(3)">Continue →</button>
</div>
</div>
<!-- STEP 3: Context -->
<div class="form-step" id="step-3">
<div class="field-group">
<label class="field-label">What changed recently? <span>(optional but important)</span></label>
<select id="changed">
<option value="nothing obvious changed">Nothing obvious changed</option>
<option value="tried a new content format">Tried a new content format</option>
<option value="posted at a different time">Posted at a different time than usual</option>
<option value="used trending audio">Used a trending sound/audio</option>
<option value="changed video length">Changed video length significantly</option>
<option value="my last video went viral">My previous video went viral</option>
<option value="took a break from posting">Took a break from posting</option>
<option value="switched niche or topic">Switched niche or topic</option>
<option value="used different hashtags">Used different hashtags</option>
</select>
</div>
<div class="field-group">
<label class="field-label">Anything else we should know? <span>(optional)</span></label>
<textarea id="context" placeholder="e.g. This video got 50K on my first post but I can't replicate it. My last 5 posts averaged 300 views…"></textarea>
</div>
<div class="field-group">
<label class="field-label">Your email <span>(get your diagnosis + weekly creator insights)</span></label>
<input type="email" id="email" placeholder="your@email.com">
</div>
<div class="step-nav">
<button class="btn-back" onclick="goToStep(2)">← Back</button>
<button class="btn-next" id="diagnose-btn" onclick="runDiagnosis()">Diagnose My Content →</button>
</div>
</div>
</div>
</div>
<!-- LOADING -->
<div id="loading" style="display:none">
<div class="tool-card">
<div class="loading-state">
<div class="spinner"></div>
<p>Analyzing your content performance…</p>
<div class="loading-steps">
<div class="loading-step" id="ls-1">Reviewing your watch time and engagement signals</div>
<div class="loading-step" id="ls-2">Comparing against platform benchmarks</div>
<div class="loading-step" id="ls-3">Identifying root cause patterns</div>
<div class="loading-step" id="ls-4">Building your action plan</div>
</div>
</div>
</div>
</div>
<!-- RESULTS -->
<div id="results">
<div class="result-card">
<div class="result-header">
<div class="result-icon">🔍</div>
<div>
<h3>Your Content Diagnosis</h3>
<p id="result-meta">TikTok · Fitness · 10K–50K followers</p>
</div>
</div>
<div class="result-body" id="result-content">
<!-- Filled by JS -->
</div>
</div>
<div class="email-capture">
<h4>Get weekly creator insights + algorithm updates</h4>
<p>We'll email you when TikTok or Instagram changes something that could affect your reach.</p>
<div class="email-row">
<input type="email" id="subscribe-email" placeholder="your@email.com">
<button onclick="subscribe()">Get Updates</button>
</div>
</div>
<div style="text-align:center">
<span class="reset-link" onclick="resetTool()">← Run another diagnosis</span>
</div>
</div>
</div>
<!-- HOW IT WORKS -->
<section class="how-section">
<h2>How it works</h2>
<div class="how-grid">
<div class="how-card">
<div class="how-num">1</div>
<h3>Enter your stats</h3>
<p>Pull the numbers from your analytics dashboard. Views, watch time %, engagement rates.</p>
</div>
<div class="how-card">
<div class="how-num">2</div>
<h3>AI analyzes patterns</h3>
<p>Our system compares your metrics against platform benchmarks and known algorithm signals.</p>
</div>
<div class="how-card">
<div class="how-num">3</div>
<h3>Get a specific diagnosis</h3>
<p>Not "post better content." The actual reason, referencing your actual numbers.</p>
</div>
<div class="how-card">
<div class="how-num">4</div>
<h3>Act on the fix</h3>
<p>3 specific actions you can implement on your next post. No fluff, no generic tips.</p>
</div>
</div>
</section>
<!-- REAL CREATOR PROBLEMS -->
<section class="problems-section">
<h2>Sound familiar?</h2>
<p>These are the questions creators search for every day. ReachPulse gives you real answers.</p>
<div class="problems-grid">
<div class="problem-card">
<div class="problem-platform">TikTok</div>
<p>"My last video got 80K views and now I can't break 500. What happened?"</p>
</div>
<div class="problem-card">
<div class="problem-platform">Instagram Reels</div>
<p>"My reach dropped 80% overnight. I didn't change anything. Why?"</p>
</div>
<div class="problem-card">
<div class="problem-platform">TikTok</div>
<p>"I'm posting every day and getting 200 views per video. I've been stuck here for months."</p>
</div>
<div class="problem-card">
<div class="problem-platform">YouTube Shorts</div>
<p>"People swipe away in the first 2 seconds. I don't know what I'm doing wrong."</p>
</div>
<div class="problem-card">
<div class="problem-platform">Instagram Reels</div>
<p>"I have 40K followers and my Reels only reach 300 people. Something is broken."</p>
</div>
<div class="problem-card">
<div class="problem-platform">TikTok</div>
<p>"I went viral once and now the algorithm won't push anything else I post."</p>
</div>
</div>
</section>
<footer>
<div class="logo" style="font-size:1rem">ReachPulse</div>
<div>Free creator diagnostic tool · Built with AI</div>
</footer>
<script>
let selectedPlatform = '';
let formData = {};
function selectPlatform(name, el) {
selectedPlatform = name;
document.querySelectorAll('.platform-btn').forEach(b => b.classList.remove('selected'));
el.classList.add('selected');
}
function goToStep(n) {
// Validate current step
if (n === 2 && !selectedPlatform) {
alert('Please select a platform first.');
return;
}
if (n === 2 && !document.getElementById('niche').value.trim()) {
alert('Please enter your niche/content type.');
return;
}
document.querySelectorAll('.form-step').forEach(s => s.classList.remove('active'));
document.getElementById('step-' + n).classList.add('active');
// Update dots
for (let i = 1; i <= 3; i++) {
const dot = document.getElementById('dot-' + i);
dot.className = 'step-dot';
if (i < n) dot.classList.add('done');
else if (i === n) dot.classList.add('active');
}
}
async function runDiagnosis() {
const email = document.getElementById('email').value;
const views = document.getElementById('views').value;
const watchtime = document.getElementById('watchtime').value;
if (!views || !watchtime) {
alert('Please enter at least your total views and watch time %.');
return;
}
// Collect all data
formData = {
platform: selectedPlatform,
niche: document.getElementById('niche').value,
followers: document.getElementById('followers').value,
views: views,
watchtime: watchtime,
likerate: document.getElementById('likerate').value || 'not provided',
sharerate: document.getElementById('sharerate').value || 'not provided',
commentrate: document.getElementById('commentrate').value || 'not provided',
saverate: document.getElementById('saverate').value || 'not provided',
frequency: document.getElementById('frequency').value,
changed: document.getElementById('changed').value,
context: document.getElementById('context').value,
email: email
};
// Show loading
document.getElementById('tool-form').style.display = 'none';
document.getElementById('loading').style.display = 'block';
// Animate loading steps
const steps = ['ls-1', 'ls-2', 'ls-3', 'ls-4'];
steps.forEach((id, i) => {
setTimeout(() => {
document.getElementById(id).classList.add('visible');
}, i * 900);
});
try {
// Try Netlify function if available (falls back gracefully on GitHub Pages)
const response = await fetch('/.netlify/functions/diagnose', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(formData)
});
if (!response.ok) throw new Error('API error');
const data = await response.json();
showResults(data.diagnosis);
} catch (err) {
// Client-side diagnostic engine (works on any host, no API required)
showResults(getFallbackDiagnosis(formData));
}
}
function showResults(diagnosis) {
document.getElementById('loading').style.display = 'none';
document.getElementById('results').style.display = 'block';
document.getElementById('result-meta').textContent =
`${formData.platform} · ${formData.niche} · ${formData.followers}`;
// Pre-fill subscribe email
if (formData.email) {
document.getElementById('subscribe-email').value = formData.email;
}
// Render diagnosis (supports markdown-like formatting)
const content = document.getElementById('result-content');
content.innerHTML = renderDiagnosis(diagnosis);
// Scroll to results
document.getElementById('results').scrollIntoView({ behavior: 'smooth', block: 'start' });
}
function renderDiagnosis(text) {
// Parse sections from the AI response
const sections = text.split('\n\n').filter(s => s.trim());
let html = '';
sections.forEach(section => {
const lines = section.split('\n');
const header = lines[0];
if (header.includes('PRIMARY DIAGNOSIS') || header.startsWith('**Primary')) {
const body = lines.slice(1).join(' ').replace(/\*\*/g, '');
html += `<div class="diagnosis">${body || section}</div>`;
} else if (header.includes('WHAT THE DATA') || header.includes('DATA TELLS')) {
html += `<p class="section-label">What the data tells us</p><ul>`;
lines.slice(1).forEach(l => {
const clean = l.replace(/^[-•*]\s*/, '').replace(/\*\*/g, '').trim();
if (clean) html += `<li>${clean}</li>`;
});
html += '</ul>';
} else if (header.includes('ROOT CAUSE')) {
html += `<p class="section-label">Root cause</p>`;
const body = lines.slice(1).join(' ').replace(/\*\*/g, '');
html += `<ul><li>${body}</li></ul>`;
} else if (header.includes('SPECIFIC FIXES') || header.includes('ACTION')) {
html += `<p class="section-label">Your action plan</p><ul class="action-list">`;
let count = 1;
lines.slice(1).forEach(l => {
const clean = l.replace(/^\d+\.\s*/, '').replace(/^[-•*]\s*/, '').replace(/\*\*/g, '').trim();
if (clean) {
html += `<li><span class="action-num">${count}</span><span>${clean}</span></li>`;
count++;
}
});
html += '</ul>';
} else if (header.includes('WATCH NEXT') || header.includes('TRACK')) {
html += `<p class="section-label">What to watch next</p><ul>`;
lines.slice(1).forEach(l => {
const clean = l.replace(/^[-•*]\s*/, '').replace(/\*\*/g, '').trim();
if (clean) html += `<li>${clean}</li>`;
});
html += '</ul>';
} else {
// Generic section — just render as bullet points or paragraph
const body = section.replace(/\*\*/g, '').replace(/^[-•*]\s*/gm, '').trim();
if (body) html += `<p style="font-size:0.88rem;color:var(--text-mid);margin-bottom:12px">${body}</p>`;
}
});
return html || `<div class="diagnosis">${text}</div>`;
}
function getFallbackDiagnosis(data) {
// Client-side fallback when Netlify function isn't configured
const wt = parseFloat(data.watchtime) || 0;
const lr = parseFloat(data.likerate) || 0;
const sr = parseFloat(data.sharerate) || 0;
let primary = '';