Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
604 lines (560 loc) · 30.9 KB
/
Copy pathindex.html
File metadata and controls
604 lines (560 loc) · 30.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CalScan — Snap. Know. Eat Better.</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Instrument+Serif:ital@0;1&family=DM+Sans:wght@300;400;500&display=swap" rel="stylesheet">
<!-- ✅ Supabase JS SDK (CDN) -->
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
<style>
:root {
--saffron: #FF6B1A;
--turmeric: #F5A623;
--cream: #FDF6EC;
--deep: #1A0F00;
--muted: #7A6A55;
--card: #FFF9F2;
--border: #EAD9C5;
--green: #2D7A4F;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
background: var(--cream);
color: var(--deep);
font-family: 'DM Sans', sans-serif;
overflow-x: hidden;
}
/* NAV */
nav {
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
display: flex; align-items: center; justify-content: space-between;
padding: 18px 5%;
background: rgba(253,246,236,0.85);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
}
.logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--saffron); letter-spacing: -0.5px; }
.logo span { color: var(--deep); }
nav a {
background: var(--saffron); color: white; text-decoration: none;
padding: 9px 22px; border-radius: 50px; font-size: 0.85rem; font-weight: 500;
transition: background 0.2s, transform 0.2s;
}
nav a:hover { background: var(--deep); transform: translateY(-1px); }
/* HERO */
.hero {
min-height: 100vh; display: flex; flex-direction: column;
align-items: center; justify-content: center;
text-align: center; padding: 120px 5% 80px;
position: relative; overflow: hidden;
}
.hero-bg {
position: absolute; inset: 0; z-index: 0;
background:
radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,107,26,0.12) 0%, transparent 70%),
radial-gradient(ellipse 40% 40% at 80% 80%, rgba(245,166,35,0.1) 0%, transparent 60%);
}
.floating-emoji {
position: absolute; font-size: 2.5rem; opacity: 0.15;
animation: floatAround 8s ease-in-out infinite; user-select: none;
}
.fe1 { top: 15%; left: 8%; animation-delay: 0s; font-size: 3rem; }
.fe2 { top: 20%; right: 10%; animation-delay: 1.5s; }
.fe3 { bottom: 20%; left: 12%; animation-delay: 3s; font-size: 2rem; }
.fe4 { bottom: 25%; right: 8%; animation-delay: 2s; font-size: 3.5rem; }
.fe5 { top: 45%; left: 3%; animation-delay: 4s; font-size: 2rem; }
.fe6 { top: 50%; right: 4%; animation-delay: 1s; font-size: 2.2rem; }
@keyframes floatAround {
0%, 100% { transform: translateY(0px) rotate(0deg); }
33% { transform: translateY(-18px) rotate(5deg); }
66% { transform: translateY(8px) rotate(-3deg); }
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.badge {
display: inline-flex; align-items: center; gap: 8px;
background: rgba(255,107,26,0.1); border: 1px solid rgba(255,107,26,0.25);
color: var(--saffron); padding: 6px 16px; border-radius: 50px;
font-size: 0.78rem; font-weight: 500; letter-spacing: 0.5px;
text-transform: uppercase; margin-bottom: 28px;
animation: fadeUp 0.6s ease both;
}
.badge-dot {
width: 7px; height: 7px; background: var(--saffron); border-radius: 50%;
animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.5; transform: scale(1.4); }
}
h1 {
font-family: 'Syne', sans-serif;
font-size: clamp(2.8rem, 7vw, 5.2rem);
font-weight: 800; line-height: 1.05; letter-spacing: -2px;
margin-bottom: 10px; animation: fadeUp 0.6s 0.1s ease both;
}
h1 .italic { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--saffron); }
.hero-sub {
font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--muted);
line-height: 1.65; margin: 22px auto 38px; max-width: 560px;
font-weight: 300; animation: fadeUp 0.6s 0.2s ease both;
}
.hero-cta {
display: flex; align-items: center; justify-content: center; gap: 14px;
flex-wrap: wrap; animation: fadeUp 0.6s 0.3s ease both;
}
.btn-primary {
background: var(--saffron); color: white; border: none;
padding: 16px 36px; border-radius: 50px; font-size: 1rem;
font-weight: 600; cursor: pointer; transition: all 0.25s;
font-family: 'DM Sans', sans-serif;
box-shadow: 0 8px 32px rgba(255,107,26,0.3);
}
.btn-primary:hover { background: var(--deep); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(26,15,0,0.2); }
.hero-note { font-size: 0.82rem; color: var(--muted); }
/* STATS */
.stats {
display: flex; justify-content: center; gap: 0; flex-wrap: wrap;
margin: 60px auto 0; max-width: 640px;
border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
background: var(--card); animation: fadeUp 0.6s 0.4s ease both;
}
.stat { flex: 1; min-width: 140px; padding: 22px 20px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--saffron); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
@keyframes fadeUp {
from { opacity: 0; transform: translateY(24px); }
to { opacity: 1; transform: translateY(0); }
}
/* HOW IT WORKS */
.section { padding: 100px 5%; }
.section-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--saffron); font-weight: 600; margin-bottom: 14px; }
.section-title { font-family: 'Syne', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 16px; }
.section-desc { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 500px; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1100px; margin: 0 auto; }
.steps { display: flex; flex-direction: column; gap: 28px; margin-top: 50px; }
.step { display: flex; gap: 20px; align-items: flex-start; opacity: 0; transform: translateX(-20px); transition: all 0.5s ease; }
.step.visible { opacity: 1; transform: translateX(0); }
.step-num { width: 44px; height: 44px; min-width: 44px; background: var(--saffron); color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; }
.step-body h3 { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 5px; }
.step-body p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.phone-mock { background: var(--deep); border-radius: 36px; padding: 28px 22px; max-width: 300px; margin: 0 auto; box-shadow: 0 40px 80px rgba(26,15,0,0.25); }
.phone-notch { width: 90px; height: 10px; background: #333; border-radius: 10px; margin: 0 auto 20px; }
.chat-bubble { border-radius: 16px 16px 16px 4px; padding: 12px 16px; margin-bottom: 10px; font-size: 0.82rem; line-height: 1.5; }
.chat-in { background: #2a2a2a; color: #ccc; max-width: 85%; }
.chat-label { font-size: 0.68rem; color: #666; margin-bottom: 6px; padding-left: 4px; }
.chat-image-placeholder { background: #333; border-radius: 12px; height: 100px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin-bottom: 10px; }
.chat-time { font-size: 0.65rem; opacity: 0.6; text-align: right; margin-top: 4px; }
/* PAIN POINTS */
.pain-section { background: var(--deep); color: var(--cream); padding: 100px 5%; position: relative; overflow: hidden; }
.pain-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse 60% 60% at 20% 50%, rgba(255,107,26,0.12) 0%, transparent 70%); }
.pain-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.pain-section .section-title { color: var(--cream); }
.pain-section .section-desc { color: rgba(253,246,236,0.6); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.pain-card { border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 28px; background: rgba(255,255,255,0.03); transition: all 0.3s; opacity: 0; transform: translateY(20px); }
.pain-card.visible { opacity: 1; transform: translateY(0); }
.pain-card:hover { border-color: rgba(255,107,26,0.3); background: rgba(255,107,26,0.05); }
.pain-icon { font-size: 2rem; margin-bottom: 14px; }
.pain-card h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--cream); }
.pain-card p { font-size: 0.85rem; color: rgba(253,246,236,0.5); line-height: 1.6; }
.pain-strike { text-decoration: line-through; color: rgba(255,107,26,0.7); }
/* FORM SECTION */
.form-section { padding: 100px 5%; background: var(--cream); }
.form-wrapper { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.form-left { position: sticky; top: 100px; }
.early-tag { display: inline-block; background: rgba(45,122,79,0.1); color: var(--green); border: 1px solid rgba(45,122,79,0.2); padding: 5px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 18px; }
.perks { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.perk { display: flex; gap: 12px; align-items: flex-start; }
.perk-icon { width: 32px; height: 32px; min-width: 32px; background: rgba(255,107,26,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.perk-text h4 { font-size: 0.9rem; font-weight: 600; font-family: 'Syne', sans-serif; margin-bottom: 2px; }
.perk-text p { font-size: 0.8rem; color: var(--muted); }
/* FORM CARD */
.form-card { background: white; border: 1px solid var(--border); border-radius: 24px; padding: 40px; box-shadow: 0 20px 60px rgba(26,15,0,0.06); }
.form-card h3 { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.form-card > div > p { font-size: 0.88rem; color: var(--muted); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--deep); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.4px; }
input, select, textarea {
width: 100%; padding: 13px 16px; border: 1.5px solid var(--border);
border-radius: 12px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
color: var(--deep); background: var(--cream);
transition: border-color 0.2s, box-shadow 0.2s; outline: none; -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(255,107,26,0.1); background: white; }
textarea { resize: vertical; min-height: 90px; }
select { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-group { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.checkbox-item { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.checkbox-item input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; padding: 0; margin: 0; accent-color: var(--saffron); cursor: pointer; }
.checkbox-item span { font-size: 0.88rem; color: var(--deep); }
.submit-btn {
width: 100%; background: var(--saffron); color: white; border: none;
padding: 16px; border-radius: 12px; font-family: 'Syne', sans-serif;
font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.25s;
margin-top: 10px; letter-spacing: 0.3px;
}
.submit-btn:hover { background: var(--deep); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,15,0,0.15); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.form-footer { text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 14px; }
/* ERROR TOAST */
.error-msg {
background: #fff0f0; border: 1px solid #ffcccc; color: #c0392b;
border-radius: 10px; padding: 10px 14px; font-size: 0.85rem;
margin-top: 12px; display: none;
}
/* SUCCESS */
.success-state { display: none; text-align: center; padding: 20px 0; }
.success-icon { font-size: 3.5rem; margin-bottom: 16px; }
.success-state h3 { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; color: var(--green); }
.success-state p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
/* SOCIAL PROOF */
.proof-strip { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 60px 5%; text-align: center; }
.proof-strip p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 24px; }
.avatars { display: flex; justify-content: center; align-items: center; gap: 0; margin-bottom: 16px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; border: 2px solid white; margin-left: -10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; color: white; font-family: 'Syne', sans-serif; }
.a1 { background: #FF6B1A; } .a2 { background: #F5A623; } .a3 { background: #2D7A4F; } .a4 { background: #c0392b; } .a5 { background: #8e44ad; }
.proof-count { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--deep); }
.proof-count span { color: var(--saffron); }
/* FOOTER */
footer { text-align: center; padding: 40px 5%; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--border); }
footer strong { color: var(--saffron); }
/* RESPONSIVE */
@media (max-width: 768px) {
.how-grid { grid-template-columns: 1fr; gap: 40px; }
.phone-mock { display: none; }
.pain-grid { grid-template-columns: 1fr; }
.form-wrapper { grid-template-columns: 1fr; gap: 40px; }
.form-left { position: static; }
.form-row { grid-template-columns: 1fr; }
h1 { letter-spacing: -1px; }
.stats { flex-direction: column; }
.stat { border-right: none; border-bottom: 1px solid var(--border); }
.stat:last-child { border-bottom: none; }
}
</style>
</head>
<body>
<!-- NAV -->
<nav>
<div class="logo">Cal<span>Scan</span></div>
<a href="#early-access" onclick="event.preventDefault(); document.getElementById('early-access').scrollIntoView({behavior:'smooth'})">Get Early Access</a>
</nav>
<!-- HERO -->
<section class="hero">
<div class="hero-bg"></div>
<span class="floating-emoji fe1">🍛</span>
<span class="floating-emoji fe2">📸</span>
<span class="floating-emoji fe3">🥗</span>
<span class="floating-emoji fe4">🍱</span>
<span class="floating-emoji fe5">🫓</span>
<span class="floating-emoji fe6">⚡</span>
<div class="hero-content">
<div class="badge"><span class="badge-dot"></span> Early Access — Limited Spots</div>
<h1>Snap Your<br><span class="italic">Indian Food.</span><br>Know Your Calories.</h1>
<p class="hero-sub">No more manual logging. No more guessing. Just photograph your dal, roti, sabzi — and get instant calorie counts built for real Indian meals.</p>
<div class="hero-cta">
<button class="btn-primary" onclick="document.getElementById('early-access').scrollIntoView({behavior:'smooth'})">Join the Waitlist — Free →</button>
<span class="hero-note">🔒 No spam. Unsubscribe anytime.</span>
</div>
<div class="stats">
<div class="stat"><div class="stat-num">3s</div><div class="stat-label">Scan Time</div></div>
<div class="stat"><div class="stat-num">500+</div><div class="stat-label">Indian Dishes</div></div>
<div class="stat"><div class="stat-num">0</div><div class="stat-label">Manual Logging</div></div>
<div class="stat"><div class="stat-num">₹0</div><div class="stat-label">Early Access Cost</div></div>
</div>
</div>
</section>
<!-- HOW IT WORKS -->
<section class="section">
<div class="how-grid">
<div>
<div class="section-label">How It Works</div>
<h2 class="section-title">Three steps.<br>That's actually it.</h2>
<p class="section-desc">We rebuilt calorie tracking from scratch for Indian food — because MyFitnessPal was built for salads, not thalis.</p>
<div class="steps">
<div class="step">
<div class="step-num">1</div>
<div class="step-body"><h3>📸 Snap a photo</h3><p>Open the app and photograph your meal. One photo covers the whole plate — dal, roti, sabzi and all.</p></div>
</div>
<div class="step">
<div class="step-num">2</div>
<div class="step-body"><h3>⚡ AI reads it instantly</h3><p>Our model is trained specifically on Indian cuisine — it knows the difference between palak paneer and matar paneer, and accounts for ghee.</p></div>
</div>
<div class="step">
<div class="step-num">3</div>
<div class="step-body"><h3>📊 Get your breakdown</h3><p>Calories, protein, carbs, fat — plus one personalised insight every meal. No typing, no searching, no guessing.</p></div>
</div>
</div>
</div>
<div class="phone-mock">
<div class="phone-notch"></div>
<div class="chat-label">You sent a photo</div>
<div class="chat-image-placeholder">🍛</div>
<div class="chat-bubble chat-in">
<strong style="color:#25D366">CalScan ⚡</strong><br><br>
🍽️ <strong>Meal Scan</strong><br>────────────<br>
Dal Tadka (1 katori) → 180 cal<br>Roti ×2 → 210 cal<br>
Aloo Gobi → 95 cal<br>Chaas → 40 cal<br>────────────<br>
<strong>Total: 525 cal</strong><br>Protein: ~14g · Fat: ~16g<br><br>
💡 <em>Ghee adds 60 cal to this dal. Half the amount = 900 cal saved/month.</em>
<div class="chat-time">3:41 PM ✓✓</div>
</div>
</div>
</div>
</section>
<!-- PAIN POINTS -->
<section class="pain-section">
<div class="pain-inner">
<div class="section-label" style="color: rgba(255,107,26,0.8)">The Problem</div>
<h2 class="section-title">Every calorie app<br>fails Indian users.</h2>
<p class="section-desc">They were built for Western food with Western databases. Indian diets are an afterthought.</p>
<div class="pain-grid">
<div class="pain-card">
<div class="pain-icon">🔍</div>
<h3><span class="pain-strike">Search "dal makhani"</span><br>→ 47 different results</h3>
<p>Which one is your mom's recipe? None of them. Every entry is wrong in a different way.</p>
</div>
<div class="pain-card">
<div class="pain-icon">⏱️</div>
<h3><span class="pain-strike">Log every ingredient</span><br>→ Takes 8 minutes</h3>
<p>By the time you've logged the meal, you've already eaten it and moved on. Nobody does this consistently.</p>
</div>
<div class="pain-card">
<div class="pain-icon">🫙</div>
<h3><span class="pain-strike">Ghee? Tadka? Oil?</span><br>→ Invisible calories</h3>
<p>The biggest calorie drivers in Indian food are never visible in the dish. Current apps completely miss them.</p>
</div>
</div>
</div>
</section>
<!-- SOCIAL PROOF -->
<div class="proof-strip">
<p>Join people already on the waitlist</p>
<div class="avatars">
<div class="avatar a1">R</div><div class="avatar a2">P</div>
<div class="avatar a3">A</div><div class="avatar a4">S</div><div class="avatar a5">M</div>
</div>
<div class="proof-count"><span>127+</span> health-conscious Indians already signed up</div>
</div>
<!-- FORM SECTION -->
<section class="form-section" id="early-access">
<div class="form-wrapper">
<div class="form-left">
<div class="early-tag">✦ Early Access</div>
<h2 class="section-title">Be the first to<br><span style="color:var(--saffron)">eat smarter.</span></h2>
<p class="section-desc" style="margin-bottom: 0">Be among the first to try CalScan and directly shape what we build for Indian users like you.</p>
<div class="perks">
<div class="perk"><div class="perk-icon">⚡</div><div class="perk-text"><h4>First in Line</h4><p>Access before public launch</p></div></div>
<div class="perk"><div class="perk-icon">🎙️</div><div class="perk-text"><h4>Shape the Product</h4><p>Your feedback directly influences features</p></div></div>
<div class="perk"><div class="perk-icon">💬</div><div class="perk-text"><h4>WhatsApp Updates</h4><p>Direct founder updates, no newsletter fluff</p></div></div>
</div>
</div>
<!-- FORM CARD -->
<div class="form-card">
<div id="form-state">
<h3>Request Early Access</h3>
<p>Takes 60 seconds. We'll reach out personally before launch.</p>
<div class="form-group">
<label>Full Name *</label>
<input type="text" id="name" placeholder="Rahul Sharma" required>
</div>
<div class="form-row">
<div class="form-group">
<label>Mobile Number *</label>
<input type="tel" id="phone" placeholder="+91 98765 43210" required>
</div>
<div class="form-group">
<label>Email Address *</label>
<input type="email" id="email" placeholder="rahul@gmail.com" required>
</div>
</div>
<div class="form-row">
<div class="form-group">
<label>City *</label>
<input type="text" id="city" placeholder="Ahmedabad">
</div>
<div class="form-group">
<label>Age Group</label>
<select id="age">
<option value="">Select</option>
<option>18–24</option><option>25–34</option>
<option>35–44</option><option>45+</option>
</select>
</div>
</div>
<div class="form-group">
<label>Your Health Goal *</label>
<select id="goal">
<option value="">What are you trying to achieve?</option>
<option>Lose weight</option>
<option>Build muscle / gain weight</option>
<option>Manage diabetes / blood sugar</option>
<option>Eat mindfully / be more aware</option>
<option>Track macros for fitness</option>
<option>Postpartum / new mom nutrition</option>
<option>Just curious about my food</option>
</select>
</div>
<div class="form-group">
<label>Biggest struggle with calorie tracking?</label>
<div class="checkbox-group">
<label class="checkbox-item"><input type="checkbox" value="Too much manual effort"> <span>Too much manual effort</span></label>
<label class="checkbox-item"><input type="checkbox" value="Indian dishes not in database"> <span>Indian dishes not in the database</span></label>
<label class="checkbox-item"><input type="checkbox" value="Hard to stay consistent"> <span>Hard to stay consistent</span></label>
<label class="checkbox-item"><input type="checkbox" value="Don't know portion sizes"> <span>Don't know portion sizes</span></label>
<label class="checkbox-item"><input type="checkbox" value="Home-cooked food hard to estimate"> <span>Home-cooked food is hard to estimate</span></label>
</div>
</div>
<div class="form-group">
<label>Anything else you'd want? (optional)</label>
<textarea id="feedback" placeholder="e.g. I want it to track my diabetic diet, or remind me before meals..."></textarea>
</div>
<button class="submit-btn" id="submit-btn" onclick="handleSubmit()">
Claim My Early Access Spot →
</button>
<div class="error-msg" id="error-msg"></div>
<p class="form-footer">🔒 We never share your data. You'll hear from us personally.</p>
</div>
<!-- SUCCESS STATE -->
<div class="success-state" id="success-state">
<div class="success-icon">🎉</div>
<h3>You're on the list!</h3>
<p>We've saved your spot. You'll be among the <strong>first 100 users</strong> to access CalScan before public launch.<br><br>
Expect a WhatsApp message from us within <strong>48 hours</strong> — we'd love to hear more about your goals.</p>
<br>
<p style="font-size:0.8rem; color:var(--muted)">In the meantime, share with a friend who'd find this useful 🙌</p>
</div>
</div>
</div>
</section>
<!-- FOOTER -->
<footer>
<strong>CalScan</strong> · Built with ❤️ for Indian kitchens · © 2025<br>
<span style="margin-top:8px; display:block">Questions? WhatsApp us directly.</span>
</footer>
<script>
// ╔══════════════════════════════════════════════════════════╗
// ║ SUPABASE SETUP — 5 MINUTES ║
// ╠══════════════════════════════════════════════════════════╣
// ║ STEP 1: Go to https://supabase.com → Sign up (free) ║
// ║ STEP 2: Create a new project (any name, any password) ║
// ║ STEP 3: Go to SQL Editor → New Query → paste & run: ║
// ║ ║
// ║ CREATE TABLE waitlist ( ║
// ║ id BIGSERIAL PRIMARY KEY, ║
// ║ created_at TIMESTAMPTZ DEFAULT NOW(), ║
// ║ name TEXT NOT NULL, ║
// ║ phone TEXT NOT NULL, ║
// ║ email TEXT NOT NULL, ║
// ║ city TEXT, ║
// ║ age TEXT, ║
// ║ goal TEXT, ║
// ║ struggles TEXT, ║
// ║ feedback TEXT ║
// ║ ); ║
// ║ ║
// ║ STEP 4: Enable public insert (Row Level Security): ║
// ║ Run this in SQL Editor too: ║
// ║ ║
// ║ ALTER TABLE waitlist ENABLE ROW LEVEL SECURITY; ║
// ║ ║
// ║ CREATE POLICY "Allow public insert" ║
// ║ ON waitlist FOR INSERT ║
// ║ TO anon WITH CHECK (true); ║
// ║ ║
// ║ STEP 5: Get your keys: ║
// ║ Project Settings → API → ║
// ║ Copy "Project URL" → paste in SUPABASE_URL below ║
// ║ Copy "anon public" → paste in SUPABASE_KEY below ║
// ║ ║
// ║ STEP 6: View all signups anytime: ║
// ║ Supabase Dashboard → Table Editor → waitlist ║
// ╚══════════════════════════════════════════════════════════╝
// 👇 PASTE YOUR VALUES HERE
const SUPABASE_URL = 'https://kzoyaypdmqjvfnjpzvcz.supabase.co';
const SUPABASE_KEY = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imt6b3lheXBkbXFqdmZuanB6dmN6Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzQ3OTQ2MjYsImV4cCI6MjA5MDM3MDYyNn0.wGMl9hR558cr5bq0so3htpjLLe0DGXGEOu81Lws0Nvo';
// Init Supabase client
const { createClient } = supabase;
const db = createClient(SUPABASE_URL, SUPABASE_KEY);
// Scroll animations
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry, i) => {
if (entry.isIntersecting) {
setTimeout(() => entry.target.classList.add('visible'), entry.target.dataset.delay || 0);
}
});
}, { threshold: 0.15 });
document.querySelectorAll('.step, .pain-card').forEach((el, i) => {
el.dataset.delay = i * 100;
observer.observe(el);
});
async function handleSubmit() {
const name = document.getElementById('name').value.trim();
const phone = document.getElementById('phone').value.trim();
const email = document.getElementById('email').value.trim();
const goal = document.getElementById('goal').value;
const errorEl = document.getElementById('error-msg');
// Validation
errorEl.style.display = 'none';
if (!name || !phone || !email || !goal) {
showError('Please fill in all required fields (Name, Mobile, Email, Goal).');
return;
}
if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) {
showError('Please enter a valid email address.');
return;
}
const btn = document.getElementById('submit-btn');
btn.textContent = 'Saving your spot...';
btn.disabled = true;
const struggles = [...document.querySelectorAll('.checkbox-group input:checked')]
.map(cb => cb.value).join(', ') || null;
const payload = {
name,
phone,
email,
city: document.getElementById('city').value.trim() || null,
age: document.getElementById('age').value || null,
goal,
struggles: struggles,
feedback: document.getElementById('feedback').value.trim() || null
};
try {
const { error } = await db.from('waitlist').insert([payload]);
if (error) {
console.error('Supabase error:', error);
// Friendly error for duplicate email
if (error.code === '23505') {
showError('This email is already on the waitlist! 🎉 You\'re already in.');
} else {
showError('Something went wrong. Please try again in a moment.');
}
btn.textContent = 'Claim My Early Access Spot →';
btn.disabled = false;
return;
}
// ✅ Success
console.log('✅ Saved to Supabase:', payload);
document.getElementById('form-state').style.display = 'none';
document.getElementById('success-state').style.display = 'block';
document.getElementById('early-access').scrollIntoView({ behavior: 'smooth' });
} catch (err) {
console.error('Network error:', err);
showError('Network error. Please check your connection and try again.');
btn.textContent = 'Claim My Early Access Spot →';
btn.disabled = false;
}
}
function showError(msg) {
const el = document.getElementById('error-msg');
el.textContent = msg;
el.style.display = 'block';
}
</script>
</body>
</html>