πŸ— KeyzHub
19Keys Β· community archive
56765 bytes raw
  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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<!-- keyzhub-allow: replace YOUR_PROJECT_REF with your own Supabase project ref -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline'; connect-src https://YOUR_PROJECT_REF.supabase.co; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src https://fonts.gstatic.com; img-src 'self' data:; media-src 'self';">
<title>Get a Key from 19Keys</title>
<meta name="description" content="Request a personal video from 19Keys β€” a birthday, a shout-out, a dropped key, some wisdom, or an answer to your question. Delivered in 24 hours.">
<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=Chivo+Mono:ital,wght@0,300..700;1,300..700&family=Doto:wght@400..900&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
<style>
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:var(--font-body);
  background:#000000;
  color:#fff;
  line-height:1.6;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  position:relative;
}
:root{
  --gold:#d5a078;
  --gold-soft:rgba(213,160,120,0.5);
  --gold-glow:rgba(213,160,120,0.15);
  --font-body: "Chivo Mono", "Chivo Mono Fallback", monospace;
  --font-label: "Space Mono", monospace;
  --font-counter: "Doto", monospace;
}

*:focus-visible{outline:2px solid rgba(213,160,120,0.7);outline-offset:2px}
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{
  outline:none;border-color:rgba(213,160,120,0.5);box-shadow:0 0 0 3px rgba(213,160,120,0.15);
}
.skip-nav{position:absolute;top:-100px;left:50%;transform:translateX(-50%);padding:12px 24px;background:#0a0a0a;color:#fff;border:2px solid rgba(213,160,120,0.6);border-radius:999px;z-index:200;font-size:13px;transition:top .2s}
.skip-nav:focus{top:10px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ── Ambient background ── */
.bg-gradient{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.bg-gradient img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:140%;height:140%;object-fit:cover;opacity:0.03;filter:blur(48px) saturate(1.5)}
.bg-orb{position:fixed;border-radius:50%;filter:blur(120px);pointer-events:none;z-index:0}
.bg-orb-1{width:600px;height:600px;top:-180px;right:-220px;background:radial-gradient(circle,rgba(213,120,80,0.05),transparent 70%)}
.bg-orb-2{width:520px;height:520px;bottom:-140px;left:-160px;background:radial-gradient(circle,rgba(180,140,100,0.035),transparent 70%)}
.bg-orb-3{width:420px;height:420px;top:42%;left:50%;transform:translateX(-50%);background:radial-gradient(circle,rgba(255,200,150,0.025),transparent 70%)}

.page-content{position:relative;z-index:1}

/* ── Shell (mobile-app framing) ── */
.shell{max-width:520px;margin:0 auto;padding:0 18px 140px}

/* ── Top bar ── */
.topbar{display:flex;align-items:center;justify-content:space-between;padding:22px 2px 8px}
.brandmark{font-family:var(--font-label);font-weight:700;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,0.55)}
.sound-toggle{width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,0.1);background:rgba(255,255,255,0.04);color:rgba(255,255,255,0.6);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .25s;font-size:15px}
.sound-toggle:hover{background:rgba(255,255,255,0.08);color:#fff}
.sound-toggle.on{border-color:var(--gold-soft);color:var(--gold)}

/* ── Profile header ── */
.profile{display:flex;align-items:center;gap:16px;padding:12px 2px 4px}
.avatar-ring{
  width:74px;height:74px;border-radius:50%;padding:2.5px;flex-shrink:0;
  background:conic-gradient(from 140deg,var(--gold),rgba(255,200,150,0.7),rgba(213,120,80,0.9),var(--gold));
  box-shadow:0 0 26px rgba(213,160,120,0.28);
}
.avatar-ring img{width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:center 22%;display:block;border:2.5px solid #000000;background:#111}
.profile-meta{min-width:0}
.profile-name{display:flex;align-items:center;gap:7px;font-family:var(--font-body);font-weight:600;font-size:20px;letter-spacing:-.02em}
.verified{width:17px;height:17px;flex-shrink:0}
.profile-role{font-size:12.5px;color:rgba(255,255,255,0.55);letter-spacing:.3px;margin-top:2px}
.profile-reply{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--gold);margin-top:6px;letter-spacing:.4px}
.pulse-dot{width:6px;height:6px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 0 rgba(74,222,128,0.6);animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(74,222,128,0.5)}70%{box-shadow:0 0 0 7px rgba(74,222,128,0)}100%{box-shadow:0 0 0 0 rgba(74,222,128,0)}}

/* ── Sample clips ── */
.clips{display:flex;gap:12px;overflow-x:auto;padding:20px 2px 6px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.clips::-webkit-scrollbar{display:none}
.clip{position:relative;flex:0 0 auto;width:132px;height:180px;border-radius:18px;overflow:hidden;scroll-snap-align:start;cursor:pointer;border:1px solid rgba(255,255,255,0.08);background:#111;transition:transform .3s ease}
.clip:hover{transform:translateY(-3px)}
.clip img{width:100%;height:100%;object-fit:cover;opacity:.85}
.clip::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,0.75))}
.clip-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,0.16);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,0.35);display:flex;align-items:center;justify-content:center;z-index:2}
.clip-play svg{width:16px;height:16px;margin-left:2px;fill:#fff}
.clip-label{position:absolute;bottom:12px;left:12px;z-index:2;font-size:12px;font-weight:600;letter-spacing:.3px}

/* ── Scarcity + stats ── */
.scarcity{display:inline-flex;align-items:center;gap:8px;margin:18px 2px 4px;font-size:13.5px;font-weight:600;color:#ff8a6a;letter-spacing:.2px}
.flame{animation:flick 1.6s ease-in-out infinite}
@keyframes flick{0%,100%{transform:scale(1) rotate(-2deg)}50%{transform:scale(1.12) rotate(2deg)}}
.info-i{width:15px;height:15px;border-radius:50%;border:1px solid rgba(255,255,255,0.3);color:rgba(255,255,255,0.55);font-size:10px;display:inline-flex;align-items:center;justify-content:center;cursor:help;font-style:italic}
.stats{display:flex;align-items:stretch;gap:0;margin:16px 2px 8px;padding:2px 0}
.stat{flex:1;padding:2px 4px}
.stat + .stat{border-left:1px solid rgba(255,255,255,0.08)}
.stat-k{font-size:11px;text-transform:uppercase;letter-spacing:1.2px;color:rgba(255,255,255,0.4);margin-bottom:5px}
.stat-v{font-size:15px;font-weight:600;display:flex;align-items:center;gap:5px}
.stat-v .bolt{color:#ffd66a}
.stat-v .star{color:var(--gold)}
.stat-v small{font-weight:400;color:rgba(255,255,255,0.45);font-size:12px}

/* ── Recent activity ticker ── */
.ticker{overflow:hidden;height:26px;margin:6px 2px 2px;border-top:1px solid rgba(255,255,255,0.05);border-bottom:1px solid rgba(255,255,255,0.05);position:relative}
.ticker-row{position:absolute;width:100%;display:flex;align-items:center;gap:8px;height:26px;font-size:11.5px;color:rgba(255,255,255,0.5);letter-spacing:.2px;opacity:0;transition:opacity .5s,transform .5s}
.ticker-row.show{opacity:1}
.ticker-row .dot{width:5px;height:5px;border-radius:50%;background:#4ade80;flex-shrink:0}

/* ── Step rail ── */
.steprail{display:flex;align-items:center;gap:8px;margin:26px 2px 18px}
.stepnode{display:flex;align-items:center;gap:8px;flex:1}
.stepnode:last-child{flex:0 0 auto}
.stepdot{width:26px;height:26px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;border:1px solid rgba(255,255,255,0.14);color:rgba(255,255,255,0.45);background:rgba(255,255,255,0.03);transition:all .4s}
.stepnode.done .stepdot,.stepnode.active .stepdot{border-color:var(--gold-soft);color:#fff;background:rgba(213,160,120,0.18);box-shadow:0 0 18px rgba(213,160,120,0.15)}
.stepnode.done .stepdot{background:var(--gold);color:#111}
.stepbar{flex:1;height:2px;border-radius:2px;background:rgba(255,255,255,0.1);overflow:hidden}
.stepbar > i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--gold),rgba(255,200,150,0.9));transition:width .5s ease}
.steplabel{font-size:10.5px;text-transform:uppercase;letter-spacing:1px;color:rgba(255,255,255,0.4);white-space:nowrap}
.stepnode.active .steplabel,.stepnode.done .steplabel{color:rgba(255,255,255,0.75)}

/* ── Section heading ── */
.sec-head{font-size:12px;text-transform:uppercase;letter-spacing:2.5px;color:rgba(255,255,255,0.45);margin:8px 2px 16px;font-weight:600}
.sec-head span{color:var(--gold)}

/* ── Choice grid ── */
.choices{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.choice{
  position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;
  padding:18px 16px;min-height:104px;text-align:left;
  background:rgba(255,255,255,0.035);border:1px solid rgba(255,255,255,0.07);border-radius:20px;
  color:#fff;cursor:pointer;overflow:hidden;
  transition:transform .18s cubic-bezier(.34,1.56,.64,1),background .25s,border-color .25s,box-shadow .25s;
  backdrop-filter:blur(14px);
}
.choice:hover{background:rgba(255,255,255,0.06);border-color:rgba(255,255,255,0.14);transform:translateY(-2px)}
.choice:active{transform:scale(.97)}
.choice.selected{background:rgba(213,180,140,0.14);border-color:rgba(213,180,140,0.4);box-shadow:0 10px 40px rgba(213,160,120,0.14)}
.choice-emoji{font-family:var(--font-counter);font-weight:800;font-size:28px;line-height:1;color:var(--gold);letter-spacing:.04em}
.choice.selected .choice-emoji{color:#ffd9b0}
.choice-title{font-size:15px;font-weight:600;letter-spacing:.2px}
.choice-sub{font-size:11.5px;color:rgba(255,255,255,0.5);line-height:1.35;font-weight:400}
.choice-price{position:absolute;top:14px;right:14px;font-size:10.5px;letter-spacing:.5px;color:rgba(255,255,255,0.4);font-weight:500}
.choice.selected .choice-price{color:var(--gold)}
.choice-check{position:absolute;top:12px;right:12px;width:22px;height:22px;border-radius:50%;background:var(--gold);color:#111;display:none;align-items:center;justify-content:center;font-size:13px;font-weight:700;animation:popIn .35s cubic-bezier(.34,1.56,.64,1)}
.choice.selected .choice-check{display:flex}
.choice.selected .choice-price{display:none}
@keyframes popIn{0%{transform:scale(0)}60%{transform:scale(1.2)}100%{transform:scale(1)}}
/* ripple burst */
.burst{position:fixed;width:8px;height:8px;border-radius:50%;pointer-events:none;z-index:80}

/* ── Request panel ── */
.panel{max-height:0;opacity:0;overflow:hidden;transition:max-height .6s cubic-bezier(.4,0,.2,1),opacity .4s ease .12s;margin-top:0}
.panel.open{max-height:2600px;opacity:1;margin-top:22px}
.panel-glass{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.07);border-radius:26px;padding:26px 22px;backdrop-filter:blur(24px)}
.chosen-chip{display:inline-flex;align-items:center;gap:9px;padding:9px 16px 9px 12px;background:rgba(213,180,140,0.13);border:1px solid rgba(213,180,140,0.32);border-radius:999px;font-size:13.5px;font-weight:600;margin-bottom:20px}
.chosen-chip .cc-emoji{font-family:var(--font-counter);font-weight:800;font-size:17px;color:var(--gold);letter-spacing:.04em}
.chosen-chip .cc-change{margin-left:4px;font-size:11px;color:rgba(255,255,255,0.5);text-decoration:underline;text-underline-offset:2px;cursor:pointer;font-weight:400;letter-spacing:.3px}
.chosen-chip .cc-change:hover{color:#fff}

.field{display:flex;flex-direction:column;gap:7px;margin-bottom:15px}
.field label{font-size:11px;font-weight:600;letter-spacing:1.3px;text-transform:uppercase;color:rgba(255,255,255,0.6);padding-left:16px}
.field label .req{color:var(--gold-soft)}
.field label .opt{color:rgba(255,255,255,0.3);font-weight:400;text-transform:none;letter-spacing:0}
.row2{display:grid;grid-template-columns:1fr;gap:0}
@media(min-width:440px){.row2{grid-template-columns:1fr 1fr;gap:12px}}
.field input,.field select,.field textarea{
  background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:14px;
  padding:14px 18px;font-size:14px;color:#fff;font-family:var(--font-body);outline:none;
  transition:all .25s;appearance:none;-webkit-appearance:none;min-height:50px;width:100%;
}
.field input[type=date]{border-radius:14px}
.field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 18px center;padding-right:42px}
.field textarea{border-radius:16px;resize:vertical;min-height:104px;line-height:1.55}
.field input:focus,.field select:focus,.field textarea:focus{border-color:rgba(213,160,120,0.4);box-shadow:0 0 0 3px rgba(213,160,120,0.07);background:rgba(255,255,255,0.06)}
.field input::placeholder,.field textarea::placeholder{color:rgba(255,255,255,0.22);font-weight:300}
.char-count{font-size:10.5px;color:rgba(255,255,255,0.3);text-align:right;padding-right:4px;margin-top:-2px}
.field.error input,.field.error select,.field.error textarea{border-color:rgba(255,110,110,0.55)}
.error-msg{font-size:11px;color:rgba(255,120,120,0.95);display:none;padding-left:16px}
.field.error .error-msg{display:block}

/* ── Add-on level-ups ── */
.addons-head{font-size:11px;text-transform:uppercase;letter-spacing:1.6px;color:rgba(255,255,255,0.4);margin:22px 0 12px;padding-left:2px;font-weight:600}
.addon{display:flex;align-items:center;gap:13px;padding:14px 16px;border:1px solid rgba(255,255,255,0.07);border-radius:16px;background:rgba(255,255,255,0.02);cursor:pointer;margin-bottom:10px;transition:all .25s;user-select:none}
.addon:hover{border-color:rgba(255,255,255,0.14);background:rgba(255,255,255,0.04)}
.addon.on{border-color:rgba(213,180,140,0.4);background:rgba(213,180,140,0.1)}
.addon-ico{font-size:20px;flex-shrink:0}
.addon-body{flex:1;min-width:0}
.addon-title{font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px}
.addon-tag{font-size:9.5px;letter-spacing:.6px;text-transform:uppercase;color:var(--gold);border:1px solid var(--gold-soft);border-radius:5px;padding:1px 5px}
.addon-sub{font-size:11.5px;color:rgba(255,255,255,0.5);margin-top:2px}
.addon-price{font-size:13.5px;font-weight:700;color:rgba(255,255,255,0.75);flex-shrink:0}
.addon.on .addon-price{color:var(--gold)}
.addon-box{width:24px;height:24px;border-radius:8px;border:1.5px solid rgba(255,255,255,0.2);flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:all .25s;color:transparent;font-size:14px;font-weight:700}
.addon.on .addon-box{background:var(--gold);border-color:var(--gold);color:#111}

/* consent */
.consent{display:flex;align-items:flex-start;gap:12px;margin:18px 0 6px;padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,0.06);background:rgba(255,255,255,0.02);cursor:pointer}
.consent.error{border-color:rgba(255,110,110,0.5)}
.consent input{margin-top:2px;min-width:22px;width:22px;height:22px;accent-color:var(--gold);cursor:pointer;flex-shrink:0}
.consent span{font-size:12.5px;color:rgba(255,255,255,0.55);line-height:1.55}
.consent a{color:var(--gold);text-decoration:underline;text-underline-offset:2px}

/* ── Claim CTA ── */
.claimwrap{margin-top:22px}
.total-line{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:14px;padding:0 4px}
.total-line .tl-k{font-size:12px;text-transform:uppercase;letter-spacing:1.5px;color:rgba(255,255,255,0.45)}
.total-line .tl-v{font-family:var(--font-counter);font-weight:800;font-size:34px;letter-spacing:.02em;transition:transform .25s}
.total-line .tl-v.bump{transform:scale(1.14)}
.claim-btn{
  width:100%;padding:19px;border:none;border-radius:16px;cursor:pointer;position:relative;overflow:hidden;
  background:linear-gradient(135deg,rgba(213,160,120,0.32),rgba(255,200,150,0.14));
  border:1px solid rgba(213,160,120,0.4);color:#fff;
  font-family:var(--font-body);font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  min-height:58px;transition:all .3s;backdrop-filter:blur(12px);
}
.claim-btn::before{content:'';position:absolute;top:0;left:-120%;width:60%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,0.22),transparent);transform:skewX(-18deg);animation:shimmer 3.4s ease-in-out infinite}
@keyframes shimmer{0%,100%{left:-120%}55%,100%{left:160%}}
.claim-btn:hover{background:linear-gradient(135deg,rgba(213,160,120,0.42),rgba(255,200,150,0.2));box-shadow:0 12px 46px rgba(213,160,120,0.22);transform:translateY(-1px)}
.claim-btn:active{transform:translateY(0)}
.claim-btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.claim-btn .spinner{display:none;width:20px;height:20px;border:2.5px solid transparent;border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;margin:0 auto}
.claim-btn.loading .btn-text{display:none}
.claim-btn.loading .spinner{display:block}
.claim-btn.loading::before{display:none}
@keyframes spin{to{transform:rotate(360deg)}}
.claim-safe{text-align:center;font-size:11px;color:rgba(255,255,255,0.4);margin-top:12px;letter-spacing:.3px;display:flex;align-items:center;justify-content:center;gap:6px}

/* ── What happens next ── */
.next{margin:38px 2px 0;padding:24px 20px;border:1px solid rgba(255,255,255,0.06);border-radius:22px;background:rgba(255,255,255,0.02)}
.next h3{font-size:12px;text-transform:uppercase;letter-spacing:2px;color:rgba(255,255,255,0.5);margin-bottom:18px;font-weight:600}
.next-step{display:flex;gap:14px;align-items:flex-start;padding:10px 0}
.next-num{width:28px;height:28px;border-radius:50%;flex-shrink:0;border:1px solid var(--gold-soft);color:var(--gold);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;font-family:var(--font-label)}
.next-txt strong{font-size:14px;font-weight:600;display:block;margin-bottom:2px}
.next-txt span{font-size:12.5px;color:rgba(255,255,255,0.5)}

/* ── Reviews ── */
.reviews{margin:34px 2px 0}
.reviews-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.reviews-head .rh-t{font-size:12px;text-transform:uppercase;letter-spacing:2px;color:rgba(255,255,255,0.5);font-weight:600}
.reviews-head .rh-s{font-family:var(--font-label);font-size:12px;color:var(--gold);font-weight:700;letter-spacing:.04em}
.review{padding:16px 18px;border:1px solid rgba(255,255,255,0.06);border-radius:18px;background:rgba(255,255,255,0.02);margin-bottom:11px}
.review-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.review-name{font-size:13.5px;font-weight:600}
.review-stars{font-family:var(--font-label);color:var(--gold);font-size:11px;font-weight:700;letter-spacing:.06em}
.review-txt{font-size:13px;color:rgba(255,255,255,0.62);line-height:1.55}

/* ── Footer ── */
.footer{text-align:center;padding:44px 20px 30px;margin-top:20px;border-top:1px solid rgba(255,255,255,0.05)}
.footer p{font-size:11px;color:rgba(255,255,255,0.45);font-weight:300;letter-spacing:.5px}
.footer a{color:rgba(255,255,255,0.55);text-decoration:underline;text-underline-offset:2px}

/* ── Confirmation / states ── */
.state{display:none;text-align:center;padding:70px 14px 40px;max-width:460px;margin:0 auto}
.state.show{display:block}
.state-icon{width:88px;height:88px;border-radius:50%;background:rgba(213,160,120,0.14);border:1px solid rgba(213,160,120,0.32);display:flex;align-items:center;justify-content:center;margin:0 auto 28px;font-size:36px;animation:popIn .5s cubic-bezier(.34,1.56,.64,1);box-shadow:0 0 50px rgba(213,160,120,0.2)}
.state-title{font-family:var(--font-body);font-weight:600;font-size:24px;letter-spacing:-.01em;margin-bottom:14px}
.state-text{font-size:15px;color:rgba(255,255,255,0.62);font-weight:300;line-height:1.75;margin-bottom:26px}
.state-text strong{color:#fff;font-weight:600}
.mint-badge{display:inline-flex;flex-direction:column;gap:2px;padding:14px 30px;border:1px solid rgba(213,160,120,0.3);border-radius:16px;background:rgba(213,160,120,0.06);margin-bottom:8px}
.mint-badge .mb-k{font-size:10px;text-transform:uppercase;letter-spacing:2.5px;color:rgba(255,255,255,0.45)}
.mint-badge .mb-v{font-family:var(--font-counter);font-weight:800;font-size:26px;color:var(--gold);letter-spacing:.06em}
.state-btn{display:inline-flex;align-items:center;gap:6px;margin-top:26px;padding:13px 32px;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.09);border-radius:999px;color:rgba(255,255,255,0.65);font-family:var(--font-label);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;cursor:pointer;transition:all .3s}
.state-btn:hover{background:rgba(255,255,255,0.1);color:#fff}

/* confetti canvas */
#confetti{position:fixed;inset:0;pointer-events:none;z-index:90;display:none}

/* ── ZIION type system: Space Mono for micro uppercase labels ── */
.steplabel,.sec-head,.stat-k,.addons-head,.field label,.choice-price,.addon-tag,
.mint-badge .mb-k,.stepdot,.next h3,.reviews-head .rh-t{font-family:var(--font-label)}

@media(max-width:400px){
  .choices{gap:9px}
  .choice{padding:15px 13px;min-height:98px}
  .avatar-ring{width:66px;height:66px}
  .profile-name{font-size:18px}
}
</style>

<!-- ── Analytics: PostHog (privacy-first, cookieless). No-op until a real phc_ key is set. ── -->
<script>
(function(){
  var PH_KEY = '__POSTHOG_KEY__'; /* paste your PostHog Project API key (phc_…) here to activate */
  if (PH_KEY.indexOf('phc_') !== 0) return; /* placeholder β†’ analytics never loads */
  !function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug getPageViewId captureTraceFeedback captureTraceMetric".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
  posthog.init(PH_KEY,{
    api_host:'https://us.i.posthog.com',
    persistence:'memory',            /* cookieless β€” no consent banner required */
    autocapture:true,                /* clicks β†’ heatmaps; form input VALUES are never captured */
    capture_pageview:true,
    enable_heatmaps:true,            /* coordinate heatmaps + scrollmaps */
    disable_session_recording:true,  /* never record the booking form */
    respect_dnt:true,                /* honor Do Not Track / Global Privacy Control */
    person_profiles:'identified_only'
  });
})();
</script>
</head>
<body>
<div id="particle-bg" style="position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden"></div>
<script src="sovereign-particles/sovereign-particles.js"></script>
<script>try{sovereignParticles('#particle-bg',{preset:'cognitive-field',opacity:0.28})}catch(e){}</script>

<div class="bg-gradient"><img src="images/booking-gradient-bg.png" alt=""></div>
<div class="bg-orb bg-orb-1"></div>
<div class="bg-orb bg-orb-2"></div>
<div class="bg-orb bg-orb-3"></div>
<canvas id="confetti"></canvas>

<a href="#choicesAnchor" class="skip-nav">Skip to content</a>

<div class="page-content">
<div class="shell">

  <!-- ══ MAIN VIEW ══ -->
  <div id="mainView">

    <div class="topbar">
      <div class="brandmark">19KEYS Β· DIRECT</div>
      <button class="sound-toggle" id="soundToggle" aria-label="Toggle sound" title="Sound">
        <span id="soundIcon"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 5 6 9H2v6h4l5 4V5z"/><line x1="23" y1="9" x2="17" y2="15"/><line x1="17" y1="9" x2="23" y2="15"/></svg></span>
      </button>
    </div>

    <!-- Profile -->
    <div class="profile">
      <div class="avatar-ring">
        <!-- swap: your best headshot -->
        <img src="images/19keys-test.jpg" alt="19Keys">
      </div>
      <div class="profile-meta">
        <div class="profile-name">19Keys
          <svg class="verified" viewBox="0 0 24 24" fill="none" aria-label="Verified"><path d="M12 2l2.4 1.8 3 .1 1 2.8 2.4 1.8-.9 2.9.9 2.9-2.4 1.8-1 2.8-3 .1L12 22l-2.4-1.8-3-.1-1-2.8L3.2 15.5l.9-2.9-.9-2.9 2.4-1.8 1-2.8 3-.1L12 2z" fill="#d5a078"/><path d="M8.5 12.2l2.3 2.3 4.7-4.7" stroke="#111" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
        </div>
        <div class="profile-role">Author &middot; Futurist &middot; Sovereign Architect</div>
        <div class="profile-reply"><span class="pulse-dot"></span> Usually delivers within 24 hours</div>
      </div>
    </div>

    <!-- Sample clips (swap posters for real sample videos) -->
    <div class="clips" id="clips" aria-label="Sample clips">
      <button class="clip" data-clip="1"><img src="images/19keys-test.jpg" alt=""><span class="clip-play"><svg viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/></svg></span><span class="clip-label">Drop a Key</span></button>
      <button class="clip" data-clip="2"><img src="images/19keys-site2.jpg" alt=""><span class="clip-play"><svg viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/></svg></span><span class="clip-label">Shout-Out</span></button>
      <button class="clip" data-clip="3"><img src="images/19keys-site1.jpg" alt=""><span class="clip-play"><svg viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/></svg></span><span class="clip-label">Wisdom</span></button>
    </div>

    <!-- Scarcity -->
    <div class="scarcity">Only <span id="leftCount">9</span> Keys left at this price <span class="info-i" title="Founding price. It goes up once these are claimed.">i</span></div>

    <!-- Stats -->
    <div class="stats">
      <div class="stat"><div class="stat-k">Price</div><div class="stat-v">$100+</div></div>
      <div class="stat"><div class="stat-k">Delivery</div><div class="stat-v">24hr</div></div>
      <div class="stat"><div class="stat-k">Reviews</div><div class="stat-v">5.0 <small>/ 5</small></div></div>
    </div>

    <!-- Live activity ticker -->
    <div class="ticker" id="ticker" aria-hidden="true"></div>

    <!-- Step rail -->
    <div class="steprail" id="steprail">
      <div class="stepnode active" data-step="1"><span class="stepdot">1</span><span class="steplabel">Pick</span><span class="stepbar"><i></i></span></div>
      <div class="stepnode" data-step="2"><span class="stepdot">2</span><span class="steplabel">Details</span><span class="stepbar"><i></i></span></div>
      <div class="stepnode" data-step="3"><span class="stepdot">3</span><span class="steplabel">Claim</span></div>
    </div>

    <!-- Choices -->
    <div class="sec-head" id="choicesAnchor">What do you want <span>19Keys</span> to make?</div>
    <div class="choices" id="choices">
      <button class="choice" data-key="birthday" data-emoji="01" data-label="Happy Birthday">
        <span class="choice-price">from $100</span><span class="choice-check"><svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 6.5"/></svg></span>
        <span class="choice-emoji">01</span>
        <span class="choice-title">Happy Birthday</span>
        <span class="choice-sub">A personal birthday message they'll never forget.</span>
      </button>
      <button class="choice" data-key="dropkey" data-emoji="02" data-label="Drop a Key">
        <span class="choice-price">from $100</span><span class="choice-check"><svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 6.5"/></svg></span>
        <span class="choice-emoji">02</span>
        <span class="choice-title">Drop a Key</span>
        <span class="choice-sub">A blessing, a jewel, a word for someone you love.</span>
      </button>
      <button class="choice" data-key="shoutout" data-emoji="03" data-label="Shout-Out">
        <span class="choice-price">from $100</span><span class="choice-check"><svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 6.5"/></svg></span>
        <span class="choice-emoji">03</span>
        <span class="choice-title">Shout-Out</span>
        <span class="choice-sub">Hype up a friend, a launch, a milestone, a movement.</span>
      </button>
      <button class="choice" data-key="wisdom" data-emoji="04" data-label="Get Wisdom">
        <span class="choice-price">from $100</span><span class="choice-check"><svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 6.5"/></svg></span>
        <span class="choice-emoji">04</span>
        <span class="choice-title">Get Wisdom</span>
        <span class="choice-sub">Real advice on money, mind, moves &amp; mission.</span>
      </button>
      <button class="choice" data-key="question" data-emoji="05" data-label="Ask a Question">
        <span class="choice-price">from $100</span><span class="choice-check"><svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 6.5"/></svg></span>
        <span class="choice-emoji">05</span>
        <span class="choice-title">Ask a Question</span>
        <span class="choice-sub">Ask 19Keys anything &mdash; get it answered on camera.</span>
      </button>
      <button class="choice" data-key="other" data-emoji="06" data-label="Something Else">
        <span class="choice-price">from $100</span><span class="choice-check"><svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 6.5"/></svg></span>
        <span class="choice-emoji">06</span>
        <span class="choice-title">Something Else</span>
        <span class="choice-sub">Your own idea. Tell us what you're dreaming up.</span>
      </button>
    </div>

    <!-- Request panel -->
    <div class="panel" id="panel">
      <div class="panel-glass">
        <div class="chosen-chip" id="chosenChip">
          <span class="cc-emoji" id="ccEmoji">02</span>
          <span id="ccLabel">Drop a Key</span>
          <span class="cc-change" id="ccChange">change</span>
        </div>

        <form id="requestForm" novalidate>
          <div class="field" id="messageField">
            <label for="messageInput">What should 19Keys say? <span class="req">*</span></label>
            <textarea id="messageInput" maxlength="600" placeholder="Who is it for, what's the occasion, and exactly what you want him to say. The more you give, the better it hits."></textarea>
            <div class="char-count"><span id="charCount">0</span>/600</div>
            <span class="error-msg" role="alert">Tell 19Keys what to say (at least a sentence).</span>
          </div>

          <div class="row2">
            <div class="field" id="forField">
              <label for="forInput">Who's it for? <span class="opt">optional</span></label>
              <input type="text" id="forInput" placeholder="Recipient's name" autocomplete="off">
            </div>
            <div class="field">
              <label for="occasionInput">Occasion date <span class="opt">optional</span></label>
              <input type="date" id="occasionInput">
            </div>
          </div>

          <div class="addons-head">Level it up</div>
          <div class="addon" id="addonExpress" data-price="50">
            <div class="addon-body">
              <div class="addon-title">24-Hour Express <span class="addon-tag">Priority</span></div>
              <div class="addon-sub">Skip the line. Delivered within 24 hours.</div>
            </div>
            <span class="addon-price">+$50</span>
            <span class="addon-box"><svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 6.5"/></svg></span>
          </div>
          <div class="addon" id="addonExtended" data-price="50">
            <div class="addon-body">
              <div class="addon-title">Extended Cut</div>
              <div class="addon-sub">Double the length &mdash; more depth, more keys.</div>
            </div>
            <span class="addon-price">+$50</span>
            <span class="addon-box"><svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 6.5"/></svg></span>
          </div>

          <div class="addons-head" style="margin-top:22px">Where do we send it &amp; who's claiming?</div>
          <div class="row2">
            <div class="field" id="nameField">
              <label for="nameInput">Your name <span class="req">*</span></label>
              <input type="text" id="nameInput" placeholder="Full name" autocomplete="name">
              <span class="error-msg" role="alert">Please enter your name</span>
            </div>
            <div class="field" id="emailField">
              <label for="emailInput">Email <span class="req">*</span></label>
              <input type="email" id="emailInput" placeholder="you@email.com" autocomplete="email">
              <span class="error-msg" role="alert">Valid email required</span>
            </div>
          </div>
          <div class="row2">
            <div class="field">
              <label for="phoneInput">Phone <span class="opt">optional</span></label>
              <input type="tel" id="phoneInput" placeholder="(optional)" autocomplete="tel">
            </div>
            <div class="field">
              <label for="igInput">Instagram <span class="opt">optional</span></label>
              <input type="text" id="igInput" placeholder="@yourusername" autocomplete="off" style="text-transform:lowercase">
            </div>
          </div>

          <label class="consent" id="consentField">
            <input type="checkbox" id="consentCheck">
            <span>I agree to the <a href="privacy.html" target="_blank" rel="noopener">Privacy Policy</a> and understand this is a request &mdash; if 19Keys can't fulfill it, I'm refunded in full.</span>
          </label>

          <div class="claimwrap">
            <div class="total-line">
              <span class="tl-k">Your total</span>
              <span class="tl-v" id="totalVal">$100</span>
            </div>
            <button type="submit" class="claim-btn" id="claimBtn">
              <span class="btn-text">Claim Your Key &rarr;</span>
              <div class="spinner"></div>
            </button>
            <div class="claim-safe"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="11" width="16" height="10" rx="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg> Secure checkout &middot; Full refund if not fulfilled</div>
          </div>
        </form>
      </div>
    </div>

    <!-- What happens next -->
    <div class="next">
      <h3>How it works</h3>
      <div class="next-step"><div class="next-num">1</div><div class="next-txt"><strong>Pick &amp; claim</strong><span>Choose what you want, tell 19Keys what to say, lock it in.</span></div></div>
      <div class="next-step"><div class="next-num">2</div><div class="next-txt"><strong>He records it</strong><span>19Keys personally films your video &mdash; real, direct, one-of-one.</span></div></div>
      <div class="next-step"><div class="next-num">3</div><div class="next-txt"><strong>It lands in your inbox</strong><span>Delivered to your email, yours to keep and share. 24hr with Express.</span></div></div>
    </div>

    <!-- Reviews -->
    <div class="reviews">
      <div class="reviews-head"><span class="rh-t">What people say</span><span class="rh-s">5.0 / 5</span></div>
      <div class="review">
        <div class="review-top"><span class="review-name">Verified claim</span><span class="review-stars">5.0 / 5</span></div>
        <div class="review-txt">"Sent this to my brother for his birthday. He watched it five times. Felt like getting a word from the source."</div>
      </div>
    </div>

    <div class="footer">
      <p><a href="privacy.html">Privacy</a> &middot; <a href="mailto:19key@protonmail.com">Contact</a></p>
      <p style="margin-top:8px">&copy; 2026 19Keys. All rights reserved.</p>
    </div>

  </div><!-- /mainView -->

  <!-- ══ CLAIM SUBMITTED (pre-payment fallback) ══ -->
  <div class="state" id="submittedView">
    <div class="state-icon"><svg viewBox="0 0 24 24" width="36" height="36" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6"/></svg></div>
    <div class="state-title" id="submittedTitle">REQUEST LOCKED</div>
    <div class="state-text" id="submittedText">Your Key request is in. Complete checkout to secure it, or 19Keys will reach out.</div>
    <div class="mint-badge"><span class="mb-k">Your Key</span><span class="mb-v" id="submittedRef">#0000</span></div>
    <br>
    <button class="state-btn" onclick="window.location.href=window.location.pathname">Request Another</button>
  </div>

  <!-- ══ PAYMENT SUCCESS ══ -->
  <div class="state" id="successView">
    <div class="state-icon" style="background:rgba(74,222,128,0.12);border-color:rgba(74,222,128,0.35);box-shadow:0 0 50px rgba(74,222,128,0.18)"><svg viewBox="0 0 24 24" width="36" height="36" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="7.5" cy="16.5" r="4.2"/><path d="M10.6 13.4 20 4"/><path d="M16.5 7.5 19 10M14.5 9.5 17 12"/></svg></div>
    <div class="state-title">KEY SECURED</div>
    <div class="state-text">You're locked in. 19Keys got your request and is on it.<br><br>Your video lands in your inbox &mdash; <strong>within 24 hours</strong> on Express.</div>
    <div class="mint-badge"><span class="mb-k">Your Key</span><span class="mb-v" id="successRef">#0000</span></div>
    <br>
    <button class="state-btn" onclick="window.location.href=window.location.pathname">Request Another</button>
  </div>

  <!-- ══ PAYMENT CANCELLED ══ -->
  <div class="state" id="cancelledView">
    <div class="state-icon" style="background:rgba(255,200,150,0.14);border-color:rgba(255,200,150,0.3)"><svg viewBox="0 0 24 24" width="34" height="34" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M9 14 4 9l5-5"/><path d="M4 9h11a5 5 0 0 1 0 10h-2"/></svg></div>
    <div class="state-title">CHECKOUT PAUSED</div>
    <div class="state-text">Your request was saved but the Key isn't secured yet. Priority goes to paid claims &mdash; you can finish anytime.</div>
    <div class="mint-badge"><span class="mb-k">Your Key</span><span class="mb-v" id="cancelledRef">#0000</span></div>
    <br>
    <button class="state-btn" onclick="window.location.href=window.location.pathname">Try Again</button>
  </div>

</div><!-- /shell -->
</div><!-- /page-content -->

<script>
(function(){
  'use strict';
  const SUPABASE_URL = 'https://YOUR_PROJECT_REF.supabase.co/rest/v1/bookings'; // keyzhub-allow
  const SUPABASE_KEY = 'YOUR_SUPABASE_ANON_KEY'; // keyzhub-allow
  const FUNCTIONS_BASE = 'https://YOUR_PROJECT_REF.supabase.co/functions/v1'; // keyzhub-allow
  const BASE_PRICE = 100;

  const $ = function(id){ return document.getElementById(id); };
  const params = new URLSearchParams(window.location.search);

  function mint(id){ var s = String(id).replace(/[^a-zA-Z0-9]/g,''); return '#' + (s.slice(-4) || '0000').toUpperCase(); }

  // ── Payment redirect handling ──
  if(params.get('payment') === 'success'){
    try{ sessionStorage.removeItem('_pendingKey'); }catch(e){}
    $('mainView').style.display = 'none';
    $('successView').classList.add('show');
    var sid = params.get('booking_id'); if(sid) $('successRef').textContent = mint(sid);
    window.history.replaceState({}, '', window.location.pathname);
    setTimeout(fireConfetti, 350);
  } else if(params.get('payment') === 'cancelled'){
    $('mainView').style.display = 'none';
    $('cancelledView').classList.add('show');
    var cid = params.get('booking_id'); if(cid) $('cancelledRef').textContent = mint(cid);
    window.history.replaceState({}, '', window.location.pathname);
  }

  // ── Sound (optional, off by default) ──
  var soundOn = false, actx = null;
  function blip(freq, dur){
    if(!soundOn) return;
    try{
      actx = actx || new (window.AudioContext||window.webkitAudioContext)();
      var o = actx.createOscillator(), g = actx.createGain();
      o.type = 'sine'; o.frequency.value = freq;
      g.gain.setValueAtTime(0.0001, actx.currentTime);
      g.gain.exponentialRampToValueAtTime(0.14, actx.currentTime + 0.01);
      g.gain.exponentialRampToValueAtTime(0.0001, actx.currentTime + (dur||0.14));
      o.connect(g); g.connect(actx.destination);
      o.start(); o.stop(actx.currentTime + (dur||0.14));
    }catch(e){}
  }
  var SND_ON = '<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 5 6 9H2v6h4l5 4V5z"/><path d="M15.5 8.5a5 5 0 0 1 0 7"/><path d="M18.5 6a8 8 0 0 1 0 12"/></svg>';
  var SND_OFF = '<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 5 6 9H2v6h4l5 4V5z"/><line x1="23" y1="9" x2="17" y2="15"/><line x1="17" y1="9" x2="23" y2="15"/></svg>';
  $('soundToggle').addEventListener('click', function(){
    soundOn = !soundOn;
    this.classList.toggle('on', soundOn);
    $('soundIcon').innerHTML = soundOn ? SND_ON : SND_OFF;
    if(soundOn){ try{ actx = actx || new (window.AudioContext||window.webkitAudioContext)(); }catch(e){} blip(660,0.1); }
  });
  function haptic(ms){ try{ if(navigator.vibrate) navigator.vibrate(ms||12); }catch(e){} }

  // ── Selection burst ──
  function spawnBurst(x, y){
    var colors = ['#d5a078','#ffd0a0','#ffffff','#ffb37a'];
    for(var i=0;i<12;i++){
      (function(i){
        var p = document.createElement('div');
        p.className = 'burst';
        p.style.left = x+'px'; p.style.top = y+'px';
        p.style.background = colors[i%colors.length];
        document.body.appendChild(p);
        var ang = (Math.PI*2)*(i/12), dist = 34 + (i%4)*10;
        var dx = Math.cos(ang)*dist, dy = Math.sin(ang)*dist;
        p.animate([
          {transform:'translate(0,0) scale(1)',opacity:1},
          {transform:'translate('+dx+'px,'+dy+'px) scale(0)',opacity:0}
        ],{duration:520,easing:'cubic-bezier(.2,.8,.3,1)'});
        setTimeout(function(){ p.remove(); }, 560);
      })(i);
    }
  }

  // ── Step rail ──
  function setStep(n){
    var nodes = document.querySelectorAll('.stepnode');
    nodes.forEach(function(node){
      var s = parseInt(node.dataset.step);
      node.classList.toggle('done', s < n);
      node.classList.toggle('active', s === n);
      var bar = node.querySelector('.stepbar > i');
      if(bar) bar.style.width = (s < n) ? '100%' : '0';
    });
  }

  // ── Live activity ticker ──
  var tickerLines = [
    'Marcus just claimed a Birthday Key',
    'A Wisdom Key was delivered in 19 hours',
    'Aisha claimed a Drop-a-Key for her son',
    'A Shout-Out just went out to a launch',
    'Someone in ATL claimed a Key 4 min ago',
    'A Question Key got answered on camera'
  ];
  (function runTicker(){
    var el = $('ticker'); if(!el) return;
    var i = 0;
    function show(){
      el.innerHTML = '';
      var row = document.createElement('div');
      row.className = 'ticker-row';
      row.innerHTML = '<span class="dot"></span>' + tickerLines[i % tickerLines.length];
      el.appendChild(row);
      requestAnimationFrame(function(){ row.classList.add('show'); });
      setTimeout(function(){ row.classList.remove('show'); }, 3600);
      i++;
    }
    show();
    setInterval(show, 4300);
  })();

  // ── State ──
  var selectedKey = null, selectedLabel = '', selectedEmoji = '';
  var addons = { express:false, extended:false };

  function currentTotal(){
    return BASE_PRICE + (addons.express?50:0) + (addons.extended?50:0);
  }
  function renderTotal(){
    var v = $('totalVal');
    v.textContent = '$' + currentTotal();
    v.classList.add('bump');
    setTimeout(function(){ v.classList.remove('bump'); }, 260);
    var bt = $('claimBtn').querySelector('.btn-text');
    if(bt) bt.innerHTML = 'Claim Your Key &middot; $' + currentTotal() + ' &rarr;';
  }

  // ── Choice selection ──
  var choices = document.querySelectorAll('.choice');
  choices.forEach(function(choice){
    choice.addEventListener('click', function(ev){
      choices.forEach(function(c){ c.classList.remove('selected'); });
      choice.classList.add('selected');
      selectedKey = choice.dataset.key;
      selectedLabel = choice.dataset.label;
      selectedEmoji = choice.dataset.emoji;

      $('ccEmoji').innerHTML = selectedEmoji;
      $('ccLabel').textContent = selectedLabel;

      // tailor the prompt a touch
      var ph = {
        birthday:"Whose birthday, how old, and what you want 19Keys to say to make their day.",
        dropkey:"Who it's for and the message, blessing, or jewel you want dropped on them.",
        shoutout:"Who or what to hype β€” the name, the win, and the energy you want.",
        wisdom:"The situation you want advice on β€” money, mindset, business, purpose.",
        question:"Your question for 19Keys β€” be specific so the answer hits.",
        other:"Describe exactly what you want 19Keys to make for you."
      };
      $('messageInput').setAttribute('placeholder', ph[selectedKey] || ph.other);

      // feedback
      haptic(14); blip(720, 0.12);
      var r = choice.getBoundingClientRect();
      spawnBurst(r.left + r.width/2, r.top + r.height/2);

      // open panel + advance
      $('panel').classList.add('open');
      setStep(2);
      setTimeout(function(){ $('panel').scrollIntoView({behavior:'smooth', block:'start'}); }, 260);
    });
  });

  // change / re-pick
  $('ccChange').addEventListener('click', function(){
    $('choices').scrollIntoView({behavior:'smooth', block:'center'});
  });

  // ── Add-ons ──
  function bindAddon(id, key){
    $(id).addEventListener('click', function(){
      addons[key] = !addons[key];
      this.classList.toggle('on', addons[key]);
      haptic(10); blip(addons[key]?880:520, 0.09);
      renderTotal();
    });
  }
  bindAddon('addonExpress','express');
  bindAddon('addonExtended','extended');

  // ── Char count ──
  $('messageInput').addEventListener('input', function(){
    $('charCount').textContent = this.value.length;
  });

  // ── Sample clips (placeholder tap feedback until real videos wired) ──
  document.querySelectorAll('.clip').forEach(function(clip){
    clip.addEventListener('click', function(){
      haptic(8); blip(600,0.08);
      this.animate([{transform:'scale(1)'},{transform:'scale(0.96)'},{transform:'scale(1)'}],{duration:220});
      // TODO: when real sample videos exist, open a video modal here.
    });
  });

  // ── Validation helpers ──
  function validEmail(e){ return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e); }
  function clearErrors(){ document.querySelectorAll('.error').forEach(function(f){ f.classList.remove('error'); }); }

  // ── Restore pending (survive refresh before payment) ──
  (function restore(){
    try{
      var saved = sessionStorage.getItem('_pendingKey');
      if(saved && !params.get('payment')){
        window._pendingKey = JSON.parse(saved);
      }
    }catch(e){ sessionStorage.removeItem('_pendingKey'); }
  })();

  // ── Submit / Claim ──
  var submitting = false;
  var form = $('requestForm');
  form.addEventListener('submit', async function(e){
    e.preventDefault();
    if(submitting) return;
    clearErrors();

    if(!selectedKey){
      $('choices').scrollIntoView({behavior:'smooth', block:'center'});
      return;
    }

    var message = $('messageInput').value.trim();
    var forName = $('forInput').value.trim();
    var occasion = $('occasionInput').value;
    var name = $('nameInput').value.trim();
    var email = $('emailInput').value.trim();
    var phone = $('phoneInput').value.trim();
    var instagram = $('igInput').value.trim().replace(/^@/,'');

    var valid = true;
    if(message.length < 8){ $('messageField').classList.add('error'); valid = false; }
    if(!name){ $('nameField').classList.add('error'); valid = false; }
    if(!email || !validEmail(email)){ $('emailField').classList.add('error'); valid = false; }
    if(!$('consentCheck').checked){ $('consentField').classList.add('error'); valid = false; }
    if(!valid){
      var firstErr = document.querySelector('.error');
      if(firstErr) firstErr.scrollIntoView({behavior:'smooth', block:'center'});
      return;
    }

    var total = currentTotal();
    var today = new Date().toISOString().split('T')[0];

    // Compose a rich details string for 19Keys (maps into existing schema)
    var details =
      'VIDEO TYPE: ' + selectedLabel + '\n' +
      (forName ? 'FOR: ' + forName + '\n' : '') +
      (occasion ? 'OCCASION DATE: ' + occasion + '\n' : '') +
      'SCRIPT / MESSAGE: ' + message + '\n' +
      'EXPRESS 24HR: ' + (addons.express?'YES':'no') + '\n' +
      'EXTENDED CUT: ' + (addons.extended?'YES':'no') + '\n' +
      'TOTAL: $' + total;

    // Generate the booking id client-side β€” the bookings table is write-only (no anon read access).
    var bookingId = (window.crypto && crypto.randomUUID) ? crypto.randomUUID()
      : 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c){var r=Math.random()*16|0,v=c==='x'?r:(r&0x3|0x8);return v.toString(16);});

    var payload = {
      id: bookingId,
      service: 'Video Β· ' + selectedLabel,
      name: name,
      email: email,
      phone: phone || null,
      instagram: instagram || null,
      duration: (addons.extended ? 'Extended' : 'Standard'),
      preferred_date: occasion || today,
      preferred_time: null,
      location: addons.express ? '24hr Express' : 'Standard',
      offer_amount: total,
      details: details,
      status: 'pending'
    };

    submitting = true;
    var btn = $('claimBtn');
    btn.classList.add('loading');
    btn.disabled = true;
    var bt = btn.querySelector('.btn-text'); if(bt) bt.textContent = 'Minting…';

    try{
      // 1) Insert request
      var ctrl = new AbortController();
      var to = setTimeout(function(){ ctrl.abort(); }, 15000);
      var res = await fetch(SUPABASE_URL, {
        method:'POST',
        headers:{
          'Content-Type':'application/json',
          'apikey':SUPABASE_KEY,
          'Authorization':'Bearer ' + SUPABASE_KEY,
          'Prefer':'return=minimal'
        },
        body: JSON.stringify(payload),
        signal: ctrl.signal
      });
      clearTimeout(to);
      if(!res.ok) throw new Error('insert failed');
      // No response body needed β€” the id was generated client-side.

      // 2) Notify 19Keys (fire-and-forget)
      fetch(FUNCTIONS_BASE + '/booking-email', {
        method:'POST',
        headers:{'Content-Type':'application/json'},
        body: JSON.stringify(Object.assign({}, payload, { booking_id: bookingId }))
      }).catch(function(){});

      window._pendingKey = { bookingId: bookingId, total: total };
      try{ sessionStorage.setItem('_pendingKey', JSON.stringify(window._pendingKey)); }catch(e){}

      // 3) Straight to Stripe (pay in full β€” 100% deposit path)
      var cc = new AbortController();
      var cto = setTimeout(function(){ cc.abort(); }, 20000);
      var checkout = await fetch(FUNCTIONS_BASE + '/create-checkout', {
        method:'POST',
        headers:{'Content-Type':'application/json'},
        body: JSON.stringify({
          booking_id: bookingId,
          offer_amount: String(total),
          email: email,
          name: name,
          service: 'Video Β· ' + selectedLabel,
          deposit_percent: 100
        }),
        signal: cc.signal
      });
      clearTimeout(cto);

      if(checkout.ok){
        var cd = await checkout.json();
        if(cd.checkout_url){
          window.location.href = cd.checkout_url;
          return;
        }
      }

      // Checkout unavailable β€” request is still captured. Show fallback.
      $('submittedRef').textContent = mint(bookingId);
      $('mainView').style.display = 'none';
      $('submittedView').classList.add('show');
      window.scrollTo({top:0, behavior:'smooth'});
      fireConfetti();

    }catch(err){
      console.error('Claim error:', err);
      alert('Something went wrong sending your request. Please try again or email 19key@protonmail.com directly.');
    }finally{
      submitting = false;
      btn.classList.remove('loading');
      btn.disabled = false;
      renderTotal();
    }
  });

  // ── Confetti burst ──
  function fireConfetti(){
    var canvas = $('confetti');
    if(!canvas) return;
    canvas.style.display = 'block';
    var ctx = canvas.getContext('2d');
    canvas.width = window.innerWidth; canvas.height = window.innerHeight;
    var colors = ['#d5a078','#ffd0a0','#ffffff','#ffb37a','#4ade80'];
    var parts = [];
    for(var i=0;i<130;i++){
      parts.push({
        x: canvas.width/2 + (Math.random()-0.5)*140,
        y: canvas.height*0.32 + (Math.random()-0.5)*60,
        vx:(Math.random()-0.5)*11, vy:Math.random()*-13-4,
        s:5+Math.random()*6, c:colors[(Math.random()*colors.length)|0],
        rot:Math.random()*6.28, vr:(Math.random()-0.5)*0.35, life:0
      });
    }
    var frames = 0;
    (function loop(){
      ctx.clearRect(0,0,canvas.width,canvas.height);
      var alive = false;
      parts.forEach(function(p){
        p.vy += 0.4; p.x += p.vx; p.y += p.vy; p.rot += p.vr; p.life++;
        if(p.y < canvas.height + 40){ alive = true; }
        ctx.save(); ctx.translate(p.x,p.y); ctx.rotate(p.rot);
        ctx.fillStyle = p.c; ctx.globalAlpha = Math.max(0, 1 - p.life/150);
        ctx.fillRect(-p.s/2,-p.s/2,p.s,p.s*1.5);
        ctx.restore();
      });
      frames++;
      if(alive && frames < 200){ requestAnimationFrame(loop); }
      else { canvas.style.display = 'none'; }
    })();
  }

  // init
  renderTotal();
  setStep(1);
})();
</script>
</body>
</html>