-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsoul-map.html
More file actions
1121 lines (1049 loc) · 57.7 KB
/
soul-map.html
File metadata and controls
1121 lines (1049 loc) · 57.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>Soul Code Registry | The First Spark</title>
<meta name="description" content="Generate your Soul Code — a unique numerological signature combining Life Path, Expression, Soul Urge, and Sun Sign. Explore the Soul Code Registry.">
<meta property="og:title" content="Soul Code Registry | The First Spark">
<meta property="og:description" content="Your Soul Code is a 4-part numerological signature. Generate yours free — SC:7-11-22-LEO">
<meta property="og:type" content="website">
<meta property="og:url" content="https://soul-map.thefirstspark.shop">
<meta property="og:image" content="https://thefirstspark.shop/og-archetype-quiz.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Soul Code Registry | The First Spark">
<meta name="twitter:description" content="Generate your Soul Code — numerology meets astrology.">
<meta name="twitter:image" content="https://thefirstspark.shop/og-archetype-quiz.png">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "Soul Code Registry",
"url": "https://soul-map.thefirstspark.shop",
"description": "Generate your unique Soul Code combining numerology and astrology",
"applicationCategory": "LifestyleApplication",
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" }
}
</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SKL8XQ51ZH"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-SKL8XQ51ZH');
</script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
<style>
:root {
--black: #0a0a0f;
--gold: #d4af37;
--purple: #8b5cf6;
--cyan: #22d3ee;
--orange: #FF6A3D;
--heading: 'Cormorant Garamond', serif;
--body: 'Space Mono', monospace;
--dim: #2e2e3e;
--mid: #5a5a7a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: var(--black);
color: #c8c8d8;
font-family: var(--body);
font-size: 13px;
line-height: 1.6;
overflow-x: hidden;
}
#starfield {
position: fixed; top: 0; left: 0;
width: 100%; height: 100%;
z-index: 0; pointer-events: none;
}
.wrap {
position: relative; z-index: 1;
max-width: 920px; margin: 0 auto; padding: 0 24px;
}
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 300; letter-spacing: 0.04em; }
.eyebrow {
font-family: var(--body); font-size: 10px;
letter-spacing: 4px; color: var(--gold);
text-transform: uppercase; margin-bottom: 14px;
}
/* ── HERO ── */
#hero {
min-height: 100vh; display: flex;
align-items: center; justify-content: center;
text-align: center; padding: 80px 24px;
position: relative; z-index: 1;
}
#hero h1 {
font-size: clamp(3.2rem, 11vw, 7.5rem);
line-height: 0.95;
background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 45%, var(--purple) 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text; margin-bottom: 28px;
}
.hero-tagline {
font-family: var(--body); font-size: 11px;
letter-spacing: 3px; color: var(--mid);
margin-bottom: 52px; max-width: 480px;
margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-gold {
display: inline-block; padding: 16px 40px;
background: linear-gradient(135deg, var(--gold), var(--orange));
color: var(--black); font-family: var(--body);
font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
border: none; cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
text-decoration: none;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,175,55,0.35); }
.btn-ghost {
display: inline-block; padding: 14px 32px;
background: transparent; border: 1px solid var(--dim);
color: var(--mid); font-family: var(--body);
font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
cursor: pointer; transition: border-color 0.2s, color 0.2s;
text-decoration: none;
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.scroll-cue {
position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
display: flex; flex-direction: column; align-items: center;
gap: 8px; color: var(--dim); font-size: 9px; letter-spacing: 3px;
animation: floatCue 3s ease-in-out infinite;
}
.scroll-cue::after {
content: ''; width: 1px; height: 40px;
background: linear-gradient(to bottom, var(--gold), transparent);
}
@keyframes floatCue {
0%,100% { transform: translateX(-50%) translateY(0); }
50% { transform: translateX(-50%) translateY(-8px); }
}
/* ── DIVIDER ── */
.divider {
width: 1px; height: 80px;
background: linear-gradient(to bottom, transparent, var(--gold), transparent);
margin: 0 auto;
}
/* ── SECTION COMMON ── */
section { padding: 80px 0; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(2rem, 5vw, 3.8rem); color: #e8e8f0; margin-bottom: 16px; }
.section-header p { color: var(--mid); max-width: 500px; margin: 0 auto; line-height: 1.9; }
/* ── GENERATOR ── */
#generator { background: linear-gradient(180deg, transparent, rgba(139,92,246,0.03), transparent); }
.gen-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 10px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }
.field-hint { font-size: 10px; color: var(--mid); margin-top: 4px; line-height: 1.6; }
.gen-input {
width: 100%; padding: 16px 20px;
background: rgba(255,255,255,0.03);
border: 1px solid var(--dim); color: #e8e8f0;
font-family: var(--body); font-size: 14px;
outline: none; transition: border-color 0.2s;
}
.gen-input:focus { border-color: var(--gold); }
.gen-input::placeholder { color: var(--dim); }
.gen-submit {
padding: 20px; background: linear-gradient(135deg, var(--gold), var(--orange));
border: none; color: var(--black); font-family: var(--body);
font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.gen-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,175,55,0.3); }
/* ── CODE REVEAL ── */
#code-reveal { text-align: center; }
#code-reveal.hidden { display: none; }
.code-display {
font-family: var(--heading); font-weight: 300;
font-size: clamp(2.4rem, 8vw, 6rem); letter-spacing: 0.08em;
color: var(--gold); margin: 40px 0;
opacity: 0; animation: codeReveal 1.6s ease forwards;
}
@keyframes codeReveal {
0% { opacity: 0; transform: scale(0.85); filter: blur(12px); }
60% { opacity: 0.9; transform: scale(1.04); filter: blur(1px); }
100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
.code-breakdown {
display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 16px; max-width: 780px; margin: 0 auto 40px;
}
.breakdown-card {
background: rgba(255,255,255,0.02); border: 1px solid var(--dim);
padding: 28px 20px; text-align: center; transition: border-color 0.2s;
}
.breakdown-card:hover { border-color: var(--purple); }
.breakdown-label { font-size: 9px; letter-spacing: 3px; color: var(--mid); text-transform: uppercase; margin-bottom: 10px; }
.breakdown-value { font-family: var(--heading); font-size: 3rem; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.breakdown-name { font-family: var(--heading); font-size: 1.1rem; color: #e0e0f0; margin-bottom: 6px; }
.breakdown-desc { font-size: 10px; color: var(--mid); line-height: 1.6; }
.number-meanings {
background: rgba(255,255,255,0.015); border: 1px solid var(--dim);
padding: 32px; max-width: 560px; margin: 0 auto 40px;
}
.number-meanings h4 {
font-family: var(--heading); font-size: 1.3rem;
color: var(--gold); margin-bottom: 20px; text-align: center;
}
.meaning-row {
display: flex; gap: 16px; padding: 10px 0;
border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 11px; align-items: flex-start;
}
.meaning-row:last-child { border-bottom: none; }
.meaning-num { color: var(--gold); min-width: 30px; font-weight: 700; padding-top: 1px; }
.meaning-text { color: var(--mid); line-height: 1.7; }
.code-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.code-action-btn {
padding: 12px 24px; font-family: var(--body); font-size: 10px;
letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
transition: all 0.2s; border: 1px solid var(--dim);
background: transparent; color: var(--mid);
}
.code-action-btn.gold {
background: linear-gradient(135deg, var(--gold), var(--orange));
border: none; color: var(--black);
}
.code-action-btn:hover:not(.gold) { border-color: var(--cyan); color: var(--cyan); }
.code-action-btn.gold:hover { box-shadow: 0 4px 20px rgba(212,175,55,0.3); }
/* ── PIN MODAL ── */
.pin-overlay {
display: none; position: fixed; top:0;left:0;right:0;bottom:0;
background: rgba(10,10,15,0.96); z-index: 300;
align-items: center; justify-content: center;
}
.pin-overlay.active { display: flex; }
.pin-modal {
background: #0d0d16; border: 1px solid var(--dim);
padding: 48px 40px; max-width: 400px; width: 90%; text-align: center;
}
.pin-modal h3 { font-family: var(--heading); font-size: 2rem; color: #e8e8f0; margin-bottom: 12px; }
.pin-modal p { font-size: 11px; color: var(--mid); margin-bottom: 32px; line-height: 1.8; }
.pin-input {
width: 100%; padding: 16px; background: rgba(255,255,255,0.03);
border: 1px solid var(--dim); color: #e8e8f0;
font-family: var(--body); font-size: 28px;
letter-spacing: 10px; text-align: center; outline: none; margin-bottom: 20px;
}
.pin-input:focus { border-color: var(--gold); }
.pin-actions { display: flex; gap: 12px; }
.pin-actions button { flex: 1; }
/* ── REGISTRY ── */
#registry { border-top: 1px solid rgba(255,255,255,0.04); }
.registry-search { max-width: 480px; margin: 0 auto 48px; display: flex; }
.registry-search input {
flex: 1; padding: 14px 20px;
background: rgba(255,255,255,0.03); border: 1px solid var(--dim);
border-right: none; color: #e8e8f0;
font-family: var(--body); font-size: 12px; outline: none;
}
.registry-search input:focus { border-color: var(--gold); }
.registry-search button {
padding: 14px 24px; background: var(--gold); border: none;
color: var(--black); font-family: var(--body);
font-size: 10px; letter-spacing: 2px; cursor: pointer;
}
.registry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.registry-card {
background: rgba(255,255,255,0.02); border: 1px solid var(--dim);
padding: 28px 20px; text-align: center; cursor: default;
transition: border-color 0.2s; position: relative;
}
.registry-card:hover { border-color: rgba(139,92,246,0.4); }
.registry-card .badge {
position: absolute; top: 12px; right: 12px;
font-size: 8px; letter-spacing: 2px; padding: 3px 8px; border: 1px solid;
}
.registry-card .badge.public { border-color: var(--cyan); color: var(--cyan); }
.registry-card .badge.private { border-color: var(--orange); color: var(--orange); }
.registry-card .code-text { font-family: var(--heading); font-size: 1.5rem; color: var(--gold); margin: 14px 0 10px; }
.registry-card.private .code-text { filter: blur(6px); user-select: none; }
.registry-card .reg-handle { font-size: 10px; color: var(--mid); margin-bottom: 4px; }
.registry-card .reg-date { font-size: 9px; color: var(--dim); }
.registry-empty { text-align: center; padding: 60px; color: var(--mid); font-size: 11px; grid-column: 1/-1; }
.verify-btn {
margin-top: 14px; width: 100%; padding: 8px;
font-family: var(--body); font-size: 9px; letter-spacing: 2px;
background: transparent; border: 1px solid var(--dim);
color: var(--mid); cursor: pointer; transition: all 0.2s;
}
.verify-btn:hover { border-color: var(--orange); color: var(--orange); }
/* ── PRODUCTS ── */
#products {
border-top: 1px solid rgba(255,255,255,0.04);
background: linear-gradient(180deg, transparent, rgba(212,175,55,0.02), transparent);
}
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 20px; }
.product-card {
background: rgba(255,255,255,0.02); border: 1px solid var(--dim);
padding: 32px 24px; display: flex; flex-direction: column; transition: all 0.2s;
}
.product-card:hover { border-color: rgba(212,175,55,0.4); transform: translateY(-2px); background: rgba(212,175,55,0.02); }
.product-card.featured { border-color: var(--gold); background: rgba(212,175,55,0.04); }
.feat-badge {
font-size: 8px; letter-spacing: 3px; color: var(--gold);
border: 1px solid var(--gold); padding: 3px 10px;
display: inline-block; margin-bottom: 18px; width: fit-content;
}
.product-card h3 { font-family: var(--heading); font-size: 1.6rem; color: #e8e8f0; margin-bottom: 10px; }
.prod-desc { font-size: 11px; color: var(--mid); line-height: 1.8; flex: 1; margin-bottom: 24px; }
.price { font-family: var(--heading); font-size: 2.2rem; color: var(--gold); margin-bottom: 18px; }
.price small { font-size: 1rem; color: var(--mid); }
.prod-buy {
display: block; width: 100%; padding: 14px;
background: linear-gradient(135deg, var(--gold), var(--orange));
border: none; color: var(--black); font-family: var(--body);
font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
text-align: center; text-decoration: none; cursor: pointer; transition: box-shadow 0.2s;
}
.prod-buy:hover { box-shadow: 0 4px 24px rgba(212,175,55,0.35); }
.prod-buy.ghost {
background: transparent; border: 1px solid var(--dim); color: var(--mid);
}
.prod-buy.ghost:hover { border-color: var(--purple); color: var(--purple); box-shadow: none; }
/* ── SOUL MAP TOOL ── */
#soul-map-tool { border-top: 1px solid rgba(255,255,255,0.04); }
.soul-map-inner { max-width: 500px; margin: 0 auto; }
.soul-map-canvas-wrap { position: relative; width: 100%; aspect-ratio: 1; margin-bottom: 24px; }
#soulCanvas { width: 100%; height: 100%; border-radius: 50%; }
.map-legend { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--mid); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.aspect-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.aspect-item {
background: rgba(255,255,255,0.02); border: 1px solid var(--dim);
padding: 14px; display: flex; align-items: center; gap: 12px;
cursor: pointer; transition: border-color 0.2s;
}
.aspect-item:hover { border-color: rgba(139,92,246,0.4); }
.aspect-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.aspect-name { font-size: 13px; margin-bottom: 2px; }
.aspect-desc { font-size: 10px; color: var(--mid); }
.add-aspect {
border: 1px dashed var(--dim); padding: 16px; text-align: center;
cursor: pointer; color: var(--mid); font-size: 11px; letter-spacing: 2px; transition: all 0.2s;
}
.add-aspect:hover { border-color: var(--purple); color: var(--purple); }
.reflection-card {
background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(247,37,133,0.04));
border: 1px solid rgba(139,92,246,0.2); padding: 24px; margin-bottom: 24px;
}
.reflection-title { font-size: 9px; letter-spacing: 3px; color: #f72585; margin-bottom: 12px; }
.reflection-prompt { font-family: var(--heading); font-size: 1.1rem; font-style: italic; color: #b0b0c0; line-height: 1.7; }
.new-prompt-btn {
margin-top: 14px; padding: 8px 16px; background: transparent;
border: 1px solid var(--dim); color: var(--mid);
font-family: var(--body); font-size: 10px; cursor: pointer; transition: all 0.2s;
}
.new-prompt-btn:hover { border-color: var(--purple); color: var(--purple); }
.share-strip {
background: rgba(255,255,255,0.02); border: 1px solid var(--dim);
padding: 20px; margin-bottom: 24px; text-align: center;
}
.share-strip-title { font-size: 9px; letter-spacing: 3px; color: var(--cyan); margin-bottom: 14px; }
.share-strip-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.share-btn {
padding: 10px 16px; font-family: var(--body); font-size: 10px;
letter-spacing: 1px; cursor: pointer; transition: all 0.2s;
border: 1px solid var(--dim); background: transparent; color: var(--mid);
}
.share-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.share-btn.primary-share {
background: linear-gradient(135deg, var(--purple), #f72585);
border: none; color: white;
}
/* ── SOUL MAP MODAL ── */
.sm-modal {
display: none; position: fixed; top:0;left:0;right:0;bottom:0;
background: rgba(0,0,0,0.92); z-index: 200;
align-items: center; justify-content: center; padding: 20px;
}
.sm-modal.active { display: flex; }
.sm-modal-content {
background: #0d0d16; border: 1px solid var(--dim);
padding: 32px; width: 100%; max-width: 400px;
}
.sm-modal h3 { font-family: var(--heading); font-size: 1.6rem; margin-bottom: 20px; text-align: center; }
.sm-input {
width: 100%; padding: 14px 16px; background: rgba(255,255,255,0.03);
border: 1px solid var(--dim); color: #e8e8f0;
font-family: var(--body); font-size: 13px; outline: none; margin-bottom: 12px;
}
.sm-input:focus { border-color: var(--gold); }
.sm-input::placeholder { color: var(--dim); }
.type-selector { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.type-btn {
padding: 8px 14px; background: rgba(255,255,255,0.02);
border: 1px solid var(--dim); color: var(--mid);
font-family: var(--body); font-size: 10px; letter-spacing: 1px; cursor: pointer;
}
.type-btn.active { border-color: var(--purple); color: var(--purple); background: rgba(139,92,246,0.1); }
.sm-modal-actions { display: flex; gap: 10px; }
.sm-modal-btn { flex: 1; padding: 14px; font-family: var(--body); font-size: 10px; letter-spacing: 2px; cursor: pointer; }
.sm-modal-btn.cancel { background: transparent; border: 1px solid var(--dim); color: var(--mid); }
.sm-modal-btn.save { background: linear-gradient(135deg, var(--purple), #f72585); border: none; color: white; }
/* ── FOOTER ── */
footer { border-top: 1px solid rgba(255,255,255,0.04); padding: 48px 24px; text-align: center; position: relative; z-index: 1; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
footer a { font-size: 10px; letter-spacing: 3px; color: var(--dim); text-decoration: none; text-transform: uppercase; }
footer a:hover { color: var(--gold); }
@media (max-width: 600px) {
.products-grid { grid-template-columns: 1fr; }
.code-breakdown { grid-template-columns: repeat(2, 1fr); }
.pin-modal { padding: 32px 20px; }
.number-meanings { padding: 24px 16px; }
}
</style>
</head>
<body>
<canvas id="starfield"></canvas>
<!-- ══ HERO ══ -->
<section id="hero">
<div class="wrap" style="position:relative;">
<div class="eyebrow">The First Spark ✦ Soul Cartography</div>
<h1>Soul Code<br>Registry</h1>
<p class="hero-tagline">YOUR NUMEROLOGICAL FINGERPRINT<br>LIFE PATH · EXPRESSION · SOUL URGE · SUN SIGN</p>
<div class="hero-btns">
<button class="btn-gold" onclick="document.getElementById('generator').scrollIntoView({behavior:'smooth'})">Generate My Code</button>
<button class="btn-ghost" onclick="document.getElementById('registry').scrollIntoView({behavior:'smooth'})">Browse Registry</button>
</div>
<div class="scroll-cue">SCROLL</div>
</div>
</section>
<div class="wrap"><div class="divider"></div></div>
<!-- ══ GENERATOR ══ -->
<section id="generator">
<div class="wrap">
<div class="section-header">
<div class="eyebrow">Step 01 — Generate</div>
<h2>Find Your Code</h2>
<p>Enter your birth date and full birth name exactly as it appears on your birth certificate. Your Soul Code is calculated instantly.</p>
</div>
<form class="gen-form" id="soulCodeForm" onsubmit="handleGenerate(event)">
<div class="field-group">
<label class="field-label" for="birthDate">Birth Date</label>
<input type="date" id="birthDate" class="gen-input" required>
</div>
<div class="field-group">
<label class="field-label" for="birthName">Full Birth Name</label>
<input type="text" id="birthName" class="gen-input" placeholder="e.g. Katelin Jill Puzakulics" required>
<div class="field-hint">Use your name exactly as on your birth certificate, including middle name(s).</div>
</div>
<div class="field-group">
<label class="field-label" for="handle">Public Handle <span style="color:var(--mid);font-weight:400;font-size:9px;">(optional)</span></label>
<input type="text" id="handle" class="gen-input" placeholder="e.g. starseed_kate">
<div class="field-hint">Only shown if you register your code publicly.</div>
</div>
<button type="submit" class="gen-submit">CALCULATE SOUL CODE ✦</button>
</form>
</div>
</section>
<!-- ══ CODE REVEAL ══ -->
<section id="code-reveal" class="hidden">
<div class="wrap">
<div class="section-header">
<div class="eyebrow">Your Soul Code</div>
<h2>The Reading</h2>
</div>
<div class="code-display" id="codeDisplay"></div>
<div class="code-breakdown" id="codeBreakdown"></div>
<div class="number-meanings" id="numberMeanings"></div>
<div class="code-actions">
<button class="code-action-btn gold" onclick="copyCode()">Copy Code</button>
<button class="code-action-btn" onclick="shareCode()">Share</button>
<button class="code-action-btn" onclick="openPinModal('public')">Register Public — $5</button>
<button class="code-action-btn" onclick="openPinModal('private')">Register Private — $11</button>
</div>
</div>
</section>
<div class="wrap"><div class="divider"></div></div>
<!-- ══ REGISTRY ══ -->
<section id="registry">
<div class="wrap">
<div class="section-header">
<div class="eyebrow">Step 02 — Explore</div>
<h2>The Registry</h2>
<p>Browse Soul Codes that have been registered publicly. Search by zodiac sign or life path number.</p>
</div>
<div class="registry-search">
<input type="text" id="registrySearch" placeholder="Search by sign (LEO, SCO...) or number..." onkeyup="filterRegistry()">
<button onclick="filterRegistry()">SEARCH</button>
</div>
<div class="registry-grid" id="registryGrid"></div>
</div>
</section>
<div class="wrap"><div class="divider"></div></div>
<!-- ══ PRODUCTS ══ -->
<section id="products">
<div class="wrap">
<div class="section-header">
<div class="eyebrow">Step 03 — Go Deeper</div>
<h2>Unlock Your Map</h2>
<p>Your Soul Code is the key. These readings decode what the numbers mean for your specific path.</p>
</div>
<div class="products-grid" id="productsGrid"></div>
</div>
</section>
<div class="wrap"><div class="divider"></div></div>
<!-- ══ SOUL MAP TOOL ══ -->
<section id="soul-map-tool">
<div class="wrap">
<div class="section-header">
<div class="eyebrow">Interactive Tool</div>
<h2>Soul Map</h2>
<p>Plot your inner landscape — core self, light aspects, shadow, wounds, and gifts.</p>
</div>
<div class="soul-map-inner">
<div class="soul-map-canvas-wrap">
<canvas id="soulCanvas"></canvas>
</div>
<div class="map-legend">
<div class="legend-item"><div class="legend-dot" style="background:#f72585"></div>Core</div>
<div class="legend-item"><div class="legend-dot" style="background:#22d3ee"></div>Light</div>
<div class="legend-item"><div class="legend-dot" style="background:#8b5cf6"></div>Shadow</div>
<div class="legend-item"><div class="legend-dot" style="background:#FF6A3D"></div>Wound</div>
<div class="legend-item"><div class="legend-dot" style="background:#d4af37"></div>Gift</div>
</div>
<div class="share-strip">
<div class="share-strip-title">◇ SHARE YOUR SOUL MAP</div>
<div class="share-strip-btns">
<button class="share-btn primary-share" onclick="exportSoulMap()">Export Image</button>
<button class="share-btn" onclick="shareSoulMap()">Share</button>
<button class="share-btn" onclick="shareToTwitterSM()">𝕏 Twitter</button>
<button class="share-btn" onclick="shareToWhatsAppSM()">WhatsApp</button>
</div>
</div>
<div class="reflection-card">
<div class="reflection-title">◇ SOUL INQUIRY</div>
<p class="reflection-prompt" id="reflectionPrompt">What part of yourself have you been neglecting that needs attention?</p>
<button class="new-prompt-btn" id="newPromptBtn">New Prompt</button>
</div>
<div>
<div class="eyebrow" style="margin-bottom:14px;">Your Soul Aspects</div>
<div class="aspect-list" id="aspectList"></div>
<div class="add-aspect" id="addAspectBtn">+ Add Soul Aspect</div>
</div>
</div>
</div>
</section>
<footer>
<div class="footer-links">
<a href="https://thefirstspark.shop">The First Spark</a>
<a href="https://thefirstspark.shop/soul-contracts.html">Soul Contracts</a>
<a href="https://thefirstspark.shop/bloodline.html">Bloodline</a>
<a href="https://thefirstspark.shop/maps-of-consciousness.html">Maps of Consciousness</a>
</div>
</footer>
<!-- PIN MODAL -->
<div class="pin-overlay" id="pinOverlay">
<div class="pin-modal">
<h3 id="pinModalTitle">Claim Your Code</h3>
<p id="pinModalDesc">Set a 4-digit PIN to protect your code. Keep this safe — it cannot be recovered.</p>
<input type="number" class="pin-input" id="pinInput" placeholder="••••">
<div class="pin-actions">
<button class="code-action-btn" onclick="closePinModal()">Cancel</button>
<button class="code-action-btn gold" onclick="confirmPin()">Confirm</button>
</div>
</div>
</div>
<!-- SOUL MAP MODAL -->
<div class="sm-modal" id="aspectModal">
<div class="sm-modal-content">
<h3>Add Soul Aspect</h3>
<input type="text" class="sm-input" id="aspectName" placeholder="Name this aspect...">
<input type="text" class="sm-input" id="aspectDesc" placeholder="Brief description...">
<div class="type-selector">
<button class="type-btn" data-type="core">🔥 Core</button>
<button class="type-btn" data-type="light">✨ Light</button>
<button class="type-btn" data-type="shadow">🌑 Shadow</button>
<button class="type-btn" data-type="wound">💔 Wound</button>
<button class="type-btn" data-type="gift">🎁 Gift</button>
</div>
<div class="sm-modal-actions">
<button class="sm-modal-btn cancel" id="smCancelBtn">Cancel</button>
<button class="sm-modal-btn save" id="smSaveBtn">Save</button>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<script>
// ═══════════════════════════════════════
// STARFIELD
// ═══════════════════════════════════════
(function() {
const c = document.getElementById('starfield');
const x = c.getContext('2d');
let stars = [], W, H;
function resize() { W = c.width = window.innerWidth; H = c.height = window.innerHeight; }
function init() {
stars = [];
for (let i = 0; i < 220; i++) {
stars.push({ x: Math.random()*W, y: Math.random()*H, r: Math.random()*1.4+0.2,
phase: Math.random()*Math.PI*2, speed: Math.random()*0.4+0.15, drift: (Math.random()-0.5)*0.08 });
}
}
function draw() {
x.clearRect(0,0,W,H);
const now = Date.now() * 0.001;
stars.forEach(s => {
s.x += s.drift;
if (s.x < 0) s.x = W; if (s.x > W) s.x = 0;
const a = (Math.sin(now * s.speed + s.phase) + 1) * 0.5;
x.fillStyle = `rgba(212,175,55,${a * 0.65})`;
x.beginPath(); x.arc(s.x, s.y, s.r, 0, Math.PI*2); x.fill();
});
requestAnimationFrame(draw);
}
resize(); init(); draw();
window.addEventListener('resize', () => { resize(); init(); });
})();
// ═══════════════════════════════════════
// SOUL CODE MATH
// ═══════════════════════════════════════
const LETTER_VALUES = {
A:1,B:2,C:3,D:4,E:5,F:6,G:7,H:8,I:9,
J:1,K:2,L:3,M:4,N:5,O:6,P:7,Q:8,R:9,
S:1,T:2,U:3,V:4,W:5,X:6,Y:7,Z:8
};
function reduceToDigit(n) {
while (n > 9 && n !== 11 && n !== 22 && n !== 33) {
n = String(n).split('').reduce((a,b) => a + parseInt(b), 0);
}
return n;
}
function calculateLifePath(birthDate) {
const d = new Date(birthDate);
const m = d.getUTCMonth() + 1, day = d.getUTCDate(), y = d.getUTCFullYear();
return reduceToDigit(reduceToDigit(m) + reduceToDigit(day) + reduceToDigit(y));
}
function calculateExpression(name) {
const letters = name.toUpperCase().replace(/[^A-Z]/g, '');
return reduceToDigit([...letters].reduce((s,l) => s + (LETTER_VALUES[l]||0), 0));
}
function calculateSoulUrge(name) {
const vowels = name.toUpperCase().replace(/[^AEIOU]/g, '');
return reduceToDigit([...vowels].reduce((s,l) => s + (LETTER_VALUES[l]||0), 0));
}
function getSunSign(birthDate) {
const d = new Date(birthDate);
const m = d.getUTCMonth()+1, day = d.getUTCDate();
const ranges = [
[1,1,1,19,'CAP'],[1,20,2,18,'AQU'],[2,19,3,20,'PIS'],[3,21,4,19,'ARI'],
[4,20,5,20,'TAU'],[5,21,6,20,'GEM'],[6,21,7,22,'CAN'],[7,23,8,22,'LEO'],
[8,23,9,22,'VIR'],[9,23,10,22,'LIB'],[10,23,11,21,'SCO'],[11,22,12,21,'SAG'],[12,22,12,31,'CAP']
];
for (const [m1,d1,m2,d2,sign] of ranges) {
if ((m===m1&&day>=d1)||(m===m2&&day<=d2)) return sign;
}
return 'CAP';
}
function generateSoulCode(birthDate, fullName) {
const lp = calculateLifePath(birthDate);
const ex = calculateExpression(fullName);
const su = calculateSoulUrge(fullName);
const ss = getSunSign(birthDate);
return { code:`SC:${lp}-${ex}-${su}-${ss}`, lifePath:lp, expression:ex, soulUrge:su, sunSign:ss };
}
// ═══════════════════════════════════════
// MEANINGS
// ═══════════════════════════════════════
const NUM_MEANINGS = {
1:'Pioneer. Independence, leadership, originality. The initiator of new cycles.',
2:'Diplomat. Sensitivity, partnership, intuition. The weaver of deep relationships.',
3:'Creator. Expression, joy, communication. The voice that brings beauty into form.',
4:'Builder. Stability, discipline, loyalty. The one who turns vision into structure.',
5:'Explorer. Freedom, change, adaptability. The catalyst of transformation.',
6:'Nurturer. Responsibility, compassion, harmony. The heart of the community.',
7:'Seeker. Wisdom, introspection, mysticism. The bridge between visible and invisible worlds.',
8:'Architect. Power, abundance, mastery. The one who moves matter.',
9:'Sage. Completion, humanitarianism, surrender. The elder soul.',
11:'Illuminator. Master intuition, spiritual messenger, visionary channel.',
22:'Master Builder. Transforms dreams into reality at global scale.',
33:'Master Teacher. Compassion at the highest frequency. The embodied healer.'
};
const SIGN_MEANINGS = {
ARI:'Aries — Fire. Bold initiation, raw will, the first flame.',
TAU:'Taurus — Earth. Sensuality, endurance, embodied abundance.',
GEM:'Gemini — Air. Duality, communication, quicksilver mind.',
CAN:'Cancer — Water. Emotional depth, ancestral memory, sanctuary.',
LEO:'Leo — Fire. Radiance, sovereignty, the sacred performer.',
VIR:'Virgo — Earth. Precision, devotion, sacred analysis.',
LIB:'Libra — Air. Balance, beauty, the art of deep relating.',
SCO:'Scorpio — Water. Depth, transformation, the alchemist.',
SAG:'Sagittarius — Fire. Vision, philosophy, the eternal archer.',
CAP:'Capricorn — Earth. Mastery, legacy, the patient mountain climber.',
AQU:'Aquarius — Air. Innovation, liberation, the collective dreamer.',
PIS:'Pisces — Water. Dissolution, transcendence, the mystic ocean.'
};
// ═══════════════════════════════════════
// GENERATOR
// ═══════════════════════════════════════
let currentCode = null;
let pinTarget = null;
function handleGenerate(e) {
e.preventDefault();
const birthDate = document.getElementById('birthDate').value;
const birthName = document.getElementById('birthName').value.trim();
if (!birthDate || !birthName) return;
currentCode = generateSoulCode(birthDate, birthName);
currentCode.handle = document.getElementById('handle').value.trim() || 'anonymous';
gtag('event', 'soul_code_generated', { sign: currentCode.sunSign, life_path: currentCode.lifePath });
const section = document.getElementById('code-reveal');
section.classList.remove('hidden');
const display = document.getElementById('codeDisplay');
display.textContent = currentCode.code;
display.style.animation = 'none';
display.offsetHeight;
display.style.animation = 'codeReveal 1.6s ease forwards';
document.getElementById('codeBreakdown').innerHTML = `
<div class="breakdown-card">
<div class="breakdown-label">Life Path</div>
<div class="breakdown-value">${currentCode.lifePath}</div>
<div class="breakdown-name">The Journey</div>
<div class="breakdown-desc">Your soul's primary lesson and direction in this lifetime.</div>
</div>
<div class="breakdown-card">
<div class="breakdown-label">Expression</div>
<div class="breakdown-value">${currentCode.expression}</div>
<div class="breakdown-name">The Gift</div>
<div class="breakdown-desc">The talents and abilities you came here to express.</div>
</div>
<div class="breakdown-card">
<div class="breakdown-label">Soul Urge</div>
<div class="breakdown-value">${currentCode.soulUrge}</div>
<div class="breakdown-name">The Desire</div>
<div class="breakdown-desc">What your soul truly wants beneath all external goals.</div>
</div>
<div class="breakdown-card">
<div class="breakdown-label">Sun Sign</div>
<div class="breakdown-value" style="font-size:1.8rem;letter-spacing:0.05em;">${currentCode.sunSign}</div>
<div class="breakdown-name">The Filter</div>
<div class="breakdown-desc">The solar archetype through which your soul expresses.</div>
</div>
`;
const lp = currentCode.lifePath, ex = currentCode.expression, su = currentCode.soulUrge, ss = currentCode.sunSign;
const nums = [...new Set([lp, ex, su])];
document.getElementById('numberMeanings').innerHTML = `
<h4>What Your Numbers Mean</h4>
${nums.map(n => `<div class="meaning-row"><span class="meaning-num">${n}</span><span class="meaning-text">${NUM_MEANINGS[n]||''}</span></div>`).join('')}
<div class="meaning-row"><span class="meaning-num" style="font-size:9px;min-width:36px;letter-spacing:1px;">${ss}</span><span class="meaning-text">${SIGN_MEANINGS[ss]||''}</span></div>
`;
section.scrollIntoView({ behavior: 'smooth' });
}
// ═══════════════════════════════════════
// COPY + SHARE
// ═══════════════════════════════════════
function copyCode() {
if (!currentCode) return;
navigator.clipboard.writeText(currentCode.code).then(() => {
const btn = event.target;
const orig = btn.textContent;
btn.textContent = 'Copied!';
setTimeout(() => btn.textContent = orig, 2000);
});
}
function shareCode() {
if (!currentCode) return;
const text = `My Soul Code is ${currentCode.code} ✦ Find yours at soul-map.thefirstspark.shop`;
if (navigator.share) {
navigator.share({ title:'My Soul Code', text, url:'https://soul-map.thefirstspark.shop' });
} else {
navigator.clipboard.writeText(text).then(() => alert('Copied to clipboard!'));
}
}
// ═══════════════════════════════════════
// PIN + REGISTRATION
// ═══════════════════════════════════════
function openPinModal(type) {
if (!currentCode) return;
pinTarget = type;
document.getElementById('pinModalTitle').textContent = type === 'public' ? 'Register Publicly' : 'Register Privately';
document.getElementById('pinModalDesc').textContent = type === 'public'
? 'Your code will appear in the public registry. Set a 4-digit PIN to manage or remove it later. You\'ll be taken to checkout after.'
: 'Your code stays hidden until PIN-verified. Set a 4-digit PIN. You\'ll be taken to checkout after.';
document.getElementById('pinInput').value = '';
document.getElementById('pinOverlay').classList.add('active');
}
function closePinModal() {
document.getElementById('pinOverlay').classList.remove('active');
pinTarget = null;
}
function confirmPin() {
const pin = String(document.getElementById('pinInput').value).trim();
if (!pin || pin.length < 4) { alert('Please enter a 4-digit PIN.'); return; }
if (!currentCode) return;
const registry = JSON.parse(localStorage.getItem('soulRegistry') || '[]');
registry.push({
id: Date.now(),
code: currentCode.code,
handle: currentCode.handle,
type: pinTarget,
pin: btoa(pin),
date: new Date().toISOString().split('T')[0]
});
localStorage.setItem('soulRegistry', JSON.stringify(registry));
closePinModal();
renderRegistry();
const url = pinTarget === 'public'
? 'https://whop.com/checkout/plan_CODE_PUBLIC/'
: 'https://whop.com/checkout/plan_CODE_PRIVATE/';
window.open(url, '_blank');
gtag('event', 'code_registered', { type: pinTarget });
document.getElementById('registry').scrollIntoView({ behavior: 'smooth' });
}
// ═══════════════════════════════════════
// REGISTRY
// ═══════════════════════════════════════
const SEED_CODES = [
{ id:1, code:'SC:7-11-3-SCO', handle:'darkmoon_veil', type:'public', date:'2026-03-14' },
{ id:2, code:'SC:11-6-9-PIS', handle:'seawitchdreams', type:'public', date:'2026-03-22' },
{ id:3, code:'SC:3-8-2-ARI', handle:'firewalker', type:'public', date:'2026-04-01' },
{ id:4, code:'SC:22-4-7-CAP', handle:'mountainbuilder', type:'public', date:'2026-04-03' },
{ id:5, code:'SC:9-9-6-VIR', handle:'everyhealinghand', type:'public', date:'2026-04-07' },
{ id:6, code:'SC:5-3-1-SAG', handle:'freedomseeker', type:'public', date:'2026-04-10' },
{ id:7, code:'SC:?-?-?-???', handle:'anonymous', type:'private', date:'2026-04-11', pin: btoa('0000') },
{ id:8, code:'SC:2-5-4-LIB', handle:'peacemaker777', type:'public', date:'2026-04-12' },
{ id:9, code:'SC:4-7-22-LEO', handle:'starseed_k', type:'public', date:'2026-04-12' },
];
function getAllCodes() {
const stored = JSON.parse(localStorage.getItem('soulRegistry') || '[]');
return [...SEED_CODES, ...stored];
}
function renderRegistry(filter) {
filter = (filter || '').toUpperCase().trim();
let codes = getAllCodes();
if (filter) codes = codes.filter(c => c.code.toUpperCase().includes(filter) || c.handle.toUpperCase().includes(filter));
document.getElementById('registryGrid').innerHTML = codes.length === 0
? '<div class="registry-empty">No codes found matching that search.</div>'
: codes.map(c => `
<div class="registry-card ${c.type === 'private' ? 'private' : ''}">
<span class="badge ${c.type}">${c.type}</span>
<div style="font-size:10px;color:var(--dim);margin-bottom:2px;">✦</div>
<div class="code-text">${c.code}</div>
<div class="reg-handle">@${c.handle}</div>
<div class="reg-date">${c.date}</div>
${c.type === 'private' ? `<button class="verify-btn" onclick="verifyPin(${c.id})">ENTER PIN TO REVEAL</button>` : ''}
</div>
`).join('');
}
function filterRegistry() {
renderRegistry(document.getElementById('registrySearch').value);
}
function verifyPin(id) {
const entry = getAllCodes().find(c => c.id === id);
if (!entry) return;
const pin = prompt('Enter your 4-digit PIN:');
if (pin === null) return;
if (btoa(pin) === entry.pin) {
const grid = document.getElementById('registryGrid');
const cards = grid.querySelectorAll('.registry-card');
cards.forEach(card => {
if (card.querySelector('.verify-btn') && card.querySelector('.verify-btn').getAttribute('onclick').includes(id)) {
card.classList.remove('private');
card.querySelector('.code-text').textContent = entry.code;
const btn = card.querySelector('.verify-btn');
if (btn) btn.remove();
const badge = card.querySelector('.badge');
if (badge) { badge.className = 'badge public'; badge.textContent = 'verified'; }
}
});
} else {
alert('Incorrect PIN.');
}
}
// ═══════════════════════════════════════
// PRODUCTS
// ═══════════════════════════════════════
const PRODUCTS = [
{ name:'Base Soul Map', desc:'Your complete Soul Code reading — Life Path, Expression, and Soul Urge decoded across all dimensions of your chart.', price:'$22', url:'https://whop.com/checkout/plan_SOULMAP_BASE/', featured:true },
{ name:'Soul Code: Public', desc:'Register your Soul Code in the public registry. Visible to all.', price:'$5', url:'https://whop.com/checkout/plan_CODE_PUBLIC/' },
{ name:'Soul Code: Private', desc:'Register privately with PIN protection. Only you can reveal it.', price:'$11', url:'https://whop.com/checkout/plan_CODE_PRIVATE/' },
{ name:'Compatibility', desc:'Compare two Soul Codes. Where you align, where you clash, and the deeper pattern beneath.', price:'$11', url:'https://whop.com/checkout/plan_COMPAT/' },
{ name:'Family Constellation', desc:'Map your family system. Ancestral patterns, inherited codes, karmic threads.', price:'$33', url:'https://whop.com/checkout/plan_FAMILY/' },
{ name:'Squad Sync', desc:'Group Soul Code analysis for up to 6 people. Teams, covens, collectives.', price:'$55', url:'https://whop.com/checkout/plan_SQUAD/' },
{ name:'Personal Sigil', desc:'Sacred geometry sigil generated from your Soul Code. Digital + printable.', price:'$11', url:'https://whop.com/checkout/plan_SIGIL/' },
{ name:'Print-Ready PDF', desc:'Full Soul Map report formatted for print. Frame-worthy sacred document.', price:'$5', url:'https://whop.com/checkout/plan_PRINT/' },
{ name:'Yearly Update', desc:'Annual Soul Code refresh as your personal year cycles shift.', price:'$7', priceLabel:'/yr', url:'https://whop.com/checkout/plan_YEARLY/' },
{ name:'Transit Alerts', desc:'Monthly notifications when major transits activate your Soul Code numbers.', price:'$3', priceLabel:'/mo', url:'https://whop.com/checkout/plan_TRANSIT/' },
];
function renderProducts() {
document.getElementById('productsGrid').innerHTML = PRODUCTS.map(p => `
<div class="product-card ${p.featured ? 'featured' : ''}">
${p.featured ? '<div class="feat-badge">MOST POPULAR</div>' : ''}
<h3>${p.name}</h3>
<p class="prod-desc">${p.desc}</p>
<div class="price">${p.price}${p.priceLabel ? `<small>${p.priceLabel}</small>` : ''}</div>
<a class="prod-buy${p.featured ? '' : ' ghost'}" href="${p.url}" target="_blank"
onclick="gtag('event','product_click',{product:'${p.name}'})">Get Access</a>
</div>
`).join('');
}
// ═══════════════════════════════════════
// SOUL MAP CANVAS
// ═══════════════════════════════════════
const smCanvas = document.getElementById('soulCanvas');
const smCtx = smCanvas.getContext('2d');
let aspects = JSON.parse(localStorage.getItem('soulAspects') || '[]');
let selectedType = 'light';
const typeColors = { core:'#f72585', light:'#22d3ee', shadow:'#8b5cf6', wound:'#FF6A3D', gift:'#d4af37' };
const typeIcons = { core:'🔥', light:'✨', shadow:'🌑', wound:'💔', gift:'🎁' };
function resizeSoulCanvas() {
const size = smCanvas.parentElement.clientWidth;
smCanvas.width = size; smCanvas.height = size;
drawSoulMap();
}
function drawSoulMap() {
const cx = smCanvas.width/2, cy = smCanvas.height/2, mr = smCanvas.width/2 - 20;
smCtx.clearRect(0,0,smCanvas.width,smCanvas.height);
for (let i=3;i>=1;i--) {
smCtx.beginPath(); smCtx.arc(cx,cy,mr*(i/3),0,Math.PI*2);
smCtx.strokeStyle=`rgba(139,92,246,${0.1+(3-i)*0.05})`; smCtx.lineWidth=1; smCtx.stroke();
}
smCtx.strokeStyle='rgba(139,92,246,0.08)';
smCtx.beginPath(); smCtx.moveTo(cx,cy-mr); smCtx.lineTo(cx,cy+mr);
smCtx.moveTo(cx-mr,cy); smCtx.lineTo(cx+mr,cy); smCtx.stroke();
aspects.forEach((a,i) => {
const angle=(i/Math.max(aspects.length,1))*Math.PI*2-Math.PI/2;
const dist=a.type==='core'?0.2:(a.type==='shadow'||a.type==='wound'?0.8:0.5);
const x=cx+Math.cos(angle)*mr*dist, y=cy+Math.sin(angle)*mr*dist;
const g=smCtx.createRadialGradient(x,y,0,x,y,25);
g.addColorStop(0,typeColors[a.type]+'40'); g.addColorStop(1,'transparent');
smCtx.fillStyle=g; smCtx.beginPath(); smCtx.arc(x,y,25,0,Math.PI*2); smCtx.fill();
smCtx.fillStyle=typeColors[a.type]; smCtx.beginPath(); smCtx.arc(x,y,8,0,Math.PI*2); smCtx.fill();
smCtx.fillStyle='#888'; smCtx.font='11px monospace'; smCtx.textAlign='center';
smCtx.fillText(a.name,x,y+22);
});
const cg=smCtx.createRadialGradient(cx,cy,0,cx,cy,30);
cg.addColorStop(0,'rgba(247,37,133,0.3)'); cg.addColorStop(1,'transparent');
smCtx.fillStyle=cg; smCtx.beginPath(); smCtx.arc(cx,cy,30,0,Math.PI*2); smCtx.fill();
smCtx.fillStyle='#f72585'; smCtx.beginPath(); smCtx.arc(cx,cy,12,0,Math.PI*2); smCtx.fill();
}
function renderAspects() {
document.getElementById('aspectList').innerHTML = aspects.map((a,i) => `
<div class="aspect-item" data-index="${i}">
<div class="aspect-icon">${typeIcons[a.type]}</div>
<div><div class="aspect-name">${a.name}</div><div class="aspect-desc">${a.description||''}</div></div>
</div>
`).join('');