CSNET commited on
Commit
db38bd0
·
verified ·
1 Parent(s): 702e2c5

Create a complete mobile-style HTML5 web app demo in a SINGLE FILE (HTML + CSS + JS inline, no external libraries, no CDN, no images except inline SVG).

Browse files

Goal:
This is a clickable demo that looks like a premium mobile app similar to WHOOP, but more beautiful, compact, and rich with mock data & graphs. It will be used to pitch investors.

Technical constraints:
- One HTML file only
- Inline <style> and <script>
- No external JS/CSS frameworks
- No external fonts
- Use simple inline SVG or CSS shapes for icons and charts
- Must be fully responsive but optimized for mobile viewport (375–430px width)
- All main menus must be clickable and change screens using JavaScript (SPA behavior)

Overall style:
- Dark wellness theme with clean gradients (deep navy + teal + purple)
- Rounded cards, soft shadows, smooth transitions
- Typography similar to modern fitness apps
- Layout like a real mobile app: top status bar, main content, bottom navigation bar

========================
MAIN APP STRUCTURE
========================

Simulate a mobile app with these main screens, all navigable via a bottom tab bar:

Bottom Nav Tabs (all clickable):
1) Home
2) Recovery
3) Sleep
4) Strain
5) Body
6) Labs
7) Coach
8) Programs

Clicking each tab should:
- Highlight the active icon/tab
- Switch the main content area to that screen (no page reload, pure JS DOM swapping)

Use mock data everywhere, but make it look realistic and rich.

========================
SCREEN DETAILS
========================

1) HOME SCREEN
- Top card: "Today’s Health Overview"
- Recovery score (e.g. 78/100) with circular progress ring
- Sleep score (e.g. 82/100)
- Strain level (e.g. 9.4)
- Mini metrics row:
- HRV (e.g. 62 ms)
- Resting HR (e.g. 58 bpm)
- Temp deviation (e.g. +0.2°C)
- Small chart: 7-day Recovery line chart (mock data)
- Small chart: 7-day Strain bar chart (mock data)

2) RECOVERY SCREEN
- Big headline: “Recovery 78 — Green Zone”
- Donut chart: Recovery percentage
- Tiles:
- Sleep contribution
- HRV trend
- Resting HR
- Simple line chart of HRV over 7 days (mock data)
- Text insight: 2–3 lines explaining recovery state (static text)

3) SLEEP SCREEN
- Big number: “7h 25m” sleep
- Sleep performance score (0–100)
- Hypnogram-like bar chart (Awake / Light / Deep / REM) simulated using colored bars
- Metrics row:
- Sleep consistency
- Sleep latency
- Wake episodes
- Simple 7-day sleep duration bar chart (mock)

4) STRAIN SCREEN
- Big strain score: e.g. “9.4 — Moderate”
- Progress bar for Daily Strain Goal
- “Activities” list (mock):
- Morning Run — 45 min — Strain 6.2
- Walking — 25 min — Strain 2.1
- 7-day strain line chart
- Suggested strain target range (e.g. 8–11) text

5) BODY SCREEN (Digital Body Simulation MOCK)
- Title: “Body Composition Simulator”
- Central silhouette placeholder (use simple inline SVG body shape)
- Metrics row:
- Body Fat: 27.5%
- Visceral Fat: 13
- Muscle Mass: 34%
- Weight: 78 kg, Height: 175 cm
- Three small buttons or toggles:
- View Fat
- View Muscle
- View Visceral
- When clicking these toggles, slightly adjust:
- silhouette width / belly curve / outline thickness using CSS classes
- Underneath: a mini “30-Day Projection” card with a simple before/after comparison bar chart (mock values)

6) LABS SCREEN (Blood Panel Mock)
- Section: “Key Biomarkers”
- Rows with mock values:
- Fasting Glucose: 98 mg/dL (green)
- HbA1c: 5.6% (yellow)
- Triglycerides: 210 mg/dL (red)
- LDL: 135 mg/dL (yellow)
- HDL: 42 mg/dL (yellow)
- Vitamin D: 18 ng/mL (red)
- hs-CRP: 2.8 mg/L (yellow)
- Risk tags displayed as pills: “Metabolic Risk”, “Visceral Fat High”, “Vitamin D Low”
- Small horizontal bar chart showing “Metabolic Score”, “Cardio Score”, “Inflammation Score” (mock 0–100 values)

7) COACH SCREEN (AI Coach Mock Chat)
- Title: “AI Health Coach”
- Chat-style bubbles with 3–5 example messages:
- Insight about sleep & recovery
- Advice on today’s strain
- Suggestion on nutrition/hydration
- At bottom, fake input field (not functional) that looks like user can type
- Auto-rotating highlight card like:
- “Today’s Focus: Recovery”
- “Key Action: Go to bed before 23:00”

8) PROGRAMS SCREEN
- Grid/List of Programs:
- Metabolic Reset 30 Days
- Deep Sleep 14 Days
- Stress Reset Program
- Muscle Gain 60 Days
- Female Hormone Balance 30 Days
- Each program card shows:
- Name
- Short description
- Difficulty tag (Beginner/Intermediate/Advanced)
- Clicking a program opens a modal overlay:
- Program Overview
- 4-week breakdown (Week 1–4) with bullet mock tasks
- Include a “Start Program” button (non-functional)

========================
INTERACTIVITY REQUIREMENTS
========================
- All bottom nav tabs must be clickable and must switch the main screen content.
- Program cards must open a modal with more details.
- In BODY screen, toggling view should visually change the silhouette using CSS classes.
- Use simple JavaScript for:
- Tab navigation
- Content switching
- Small animations (adding/removing CSS classes)
- No external frameworks (no React, no Vue, no Bootstrap).

========================
DESIGN & IMPLEMENTATION
========================
- Use a fixed-width container centered with max-width ~430px to simulate a phone frame.
- Add a fake “status bar” at top (time, battery icon placeholder).
- Use CSS flexbox and grid for layout.
- Use CSS transitions for hover/tap feedback and screen changes.
- Use mock data arrays in JavaScript to render charts using simple div-based bars/lines (no canvas, no chart library needed).

========================
OUTPUT REQUIREMENT
========================
Output ONLY the final, complete HTML file contents as a single <html> document, with:
- <head> containing <style>
- <body> containing the app
- <script> at the bottom with all logic

No explanations.
No comments outside the code.
Just the finished HTML file ready to save and open in a browser.

Files changed (2) hide show
  1. README.md +8 -5
  2. index.html +1109 -19
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Vitality Tracker Pro
3
- emoji: 🌍
4
- colorFrom: green
5
- colorTo: pink
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: Vitality Tracker Pro 🌟
3
+ colorFrom: gray
4
+ colorTo: gray
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
index.html CHANGED
@@ -1,19 +1,1109 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Vitality Tracker Pro</title>
7
+ <style>
8
+ * {
9
+ margin: 0;
10
+ padding: 0;
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ body {
15
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
16
+ background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #fef3c7 100%);
17
+ min-height: 100vh;
18
+ display: flex;
19
+ justify-content: center;
20
+ align-items: center;
21
+ padding: 20px;
22
+ }
23
+
24
+ .phone-container {
25
+ width: 100%;
26
+ max-width: 430px;
27
+ height: 900px;
28
+ background: #ffffff;
29
+ border-radius: 40px;
30
+ box-shadow: 0 30px 60px rgba(0,0,0,0.12);
31
+ overflow: hidden;
32
+ position: relative;
33
+ display: flex;
34
+ flex-direction: column;
35
+ }
36
+
37
+ .status-bar {
38
+ height: 44px;
39
+ background: linear-gradient(135deg, #10b981, #14b8a6);
40
+ display: flex;
41
+ justify-content: space-between;
42
+ align-items: center;
43
+ padding: 0 20px;
44
+ color: white;
45
+ font-size: 14px;
46
+ font-weight: 600;
47
+ }
48
+
49
+ .main-content {
50
+ flex: 1;
51
+ overflow-y: auto;
52
+ padding: 20px;
53
+ padding-bottom: 100px;
54
+ }
55
+
56
+ .screen {
57
+ display: none;
58
+ animation: fadeIn 0.3s ease;
59
+ }
60
+
61
+ .screen.active {
62
+ display: block;
63
+ }
64
+
65
+ @keyframes fadeIn {
66
+ from { opacity: 0; transform: translateY(10px); }
67
+ to { opacity: 1; transform: translateY(0); }
68
+ }
69
+
70
+ .card {
71
+ background: white;
72
+ border-radius: 20px;
73
+ padding: 20px;
74
+ margin-bottom: 20px;
75
+ box-shadow: 0 4px 20px rgba(0,0,0,0.06);
76
+ transition: transform 0.2s, box-shadow 0.2s;
77
+ }
78
+
79
+ .card:hover {
80
+ transform: translateY(-2px);
81
+ box-shadow: 0 6px 30px rgba(0,0,0,0.1);
82
+ }
83
+
84
+ .metric-card {
85
+ background: linear-gradient(135deg, #10b981, #14b8a6);
86
+ color: white;
87
+ text-align: center;
88
+ padding: 25px;
89
+ border-radius: 20px;
90
+ margin-bottom: 15px;
91
+ }
92
+
93
+ .score-circle {
94
+ width: 120px;
95
+ height: 120px;
96
+ border-radius: 50%;
97
+ background: conic-gradient(#10b981 0deg 280deg, #e5e7eb 280deg);
98
+ display: flex;
99
+ align-items: center;
100
+ justify-content: center;
101
+ margin: 0 auto 15px;
102
+ position: relative;
103
+ }
104
+
105
+ .score-circle::before {
106
+ content: '';
107
+ position: absolute;
108
+ width: 100px;
109
+ height: 100px;
110
+ background: white;
111
+ border-radius: 50%;
112
+ }
113
+
114
+ .score-text {
115
+ position: relative;
116
+ font-size: 28px;
117
+ font-weight: bold;
118
+ color: #10b981;
119
+ }
120
+
121
+ .bottom-nav {
122
+ position: absolute;
123
+ bottom: 0;
124
+ left: 0;
125
+ right: 0;
126
+ height: 80px;
127
+ background: white;
128
+ border-top: 1px solid #e5e7eb;
129
+ display: flex;
130
+ justify-content: space-around;
131
+ align-items: center;
132
+ padding-bottom: 10px;
133
+ }
134
+
135
+ .nav-item {
136
+ flex: 1;
137
+ display: flex;
138
+ flex-direction: column;
139
+ align-items: center;
140
+ cursor: pointer;
141
+ transition: all 0.3s;
142
+ padding: 8px;
143
+ }
144
+
145
+ .nav-item:hover {
146
+ transform: scale(1.1);
147
+ }
148
+
149
+ .nav-item.active {
150
+ color: #10b981;
151
+ }
152
+
153
+ .nav-icon {
154
+ width: 24px;
155
+ height: 24px;
156
+ margin-bottom: 4px;
157
+ }
158
+
159
+ .nav-label {
160
+ font-size: 10px;
161
+ font-weight: 500;
162
+ }
163
+
164
+ .mini-metric {
165
+ background: #f9fafb;
166
+ border-radius: 12px;
167
+ padding: 12px;
168
+ text-align: center;
169
+ margin-bottom: 10px;
170
+ }
171
+
172
+ .mini-metric-value {
173
+ font-size: 20px;
174
+ font-weight: bold;
175
+ color: #10b981;
176
+ }
177
+
178
+ .mini-metric-label {
179
+ font-size: 12px;
180
+ color: #6b7280;
181
+ margin-top: 4px;
182
+ }
183
+
184
+ .chart-container {
185
+ background: #f9fafb;
186
+ border-radius: 12px;
187
+ padding: 15px;
188
+ margin-top: 15px;
189
+ height: 150px;
190
+ position: relative;
191
+ }
192
+
193
+ .bar-chart {
194
+ display: flex;
195
+ align-items: flex-end;
196
+ justify-content: space-around;
197
+ height: 100%;
198
+ }
199
+
200
+ .bar {
201
+ width: 30px;
202
+ background: linear-gradient(to top, #10b981, #14b8a6);
203
+ border-radius: 4px 4px 0 0;
204
+ transition: all 0.3s;
205
+ cursor: pointer;
206
+ }
207
+
208
+ .bar:hover {
209
+ opacity: 0.8;
210
+ transform: scaleY(1.05);
211
+ }
212
+
213
+ .line-chart {
214
+ width: 100%;
215
+ height: 100%;
216
+ position: relative;
217
+ }
218
+
219
+ .line-chart svg {
220
+ width: 100%;
221
+ height: 100%;
222
+ }
223
+
224
+ .sleep-bar-container {
225
+ display: flex;
226
+ height: 60px;
227
+ border-radius: 10px;
228
+ overflow: hidden;
229
+ margin: 20px 0;
230
+ }
231
+
232
+ .sleep-stage {
233
+ flex: 1;
234
+ display: flex;
235
+ align-items: center;
236
+ justify-content: center;
237
+ color: white;
238
+ font-size: 11px;
239
+ font-weight: 600;
240
+ }
241
+
242
+ .awake { background: #ef4444; }
243
+ .light { background: #3b82f6; }
244
+ .deep { background: #6366f1; }
245
+ .rem { background: #a855f7; }
246
+
247
+ .body-silhouette {
248
+ width: 200px;
249
+ height: 300px;
250
+ margin: 20px auto;
251
+ transition: all 0.5s ease;
252
+ }
253
+
254
+ .body-silhouette.fat {
255
+ transform: scale(1.1, 1.15);
256
+ opacity: 0.8;
257
+ }
258
+
259
+ .body-silhouette.muscle {
260
+ transform: scale(1.05, 1.1);
261
+ opacity: 0.9;
262
+ }
263
+
264
+ .body-silhouette.visceral {
265
+ transform: scale(1.1, 1.05);
266
+ opacity: 0.85;
267
+ }
268
+
269
+ .toggle-button {
270
+ background: #e5e7eb;
271
+ border: none;
272
+ padding: 10px 20px;
273
+ border-radius: 20px;
274
+ margin: 5px;
275
+ cursor: pointer;
276
+ transition: all 0.3s;
277
+ font-weight: 500;
278
+ }
279
+
280
+ .toggle-button:hover {
281
+ background: #d1d5db;
282
+ transform: translateY(-2px);
283
+ }
284
+
285
+ .toggle-button.active {
286
+ background: linear-gradient(135deg, #10b981, #14b8a6);
287
+ color: white;
288
+ }
289
+
290
+ .lab-row {
291
+ display: flex;
292
+ justify-content: space-between;
293
+ align-items: center;
294
+ padding: 12px;
295
+ background: #f9fafb;
296
+ border-radius: 10px;
297
+ margin-bottom: 10px;
298
+ }
299
+
300
+ .lab-label {
301
+ font-weight: 500;
302
+ color: #374151;
303
+ }
304
+
305
+ .lab-value {
306
+ font-weight: bold;
307
+ padding: 4px 12px;
308
+ border-radius: 12px;
309
+ }
310
+
311
+ .lab-green { background: #d1fae5; color: #065f46; }
312
+ .lab-yellow { background: #fef3c7; color: #92400e; }
313
+ .lab-red { background: #fee2e2; color: #991b1b; }
314
+
315
+ .risk-pill {
316
+ display: inline-block;
317
+ background: #fee2e2;
318
+ color: #991b1b;
319
+ padding: 6px 12px;
320
+ border-radius: 20px;
321
+ font-size: 12px;
322
+ margin: 4px;
323
+ }
324
+
325
+ .chat-bubble {
326
+ background: #f3f4f6;
327
+ border-radius: 18px;
328
+ padding: 15px;
329
+ margin: 10px 0;
330
+ max-width: 85%;
331
+ animation: slideIn 0.3s ease;
332
+ }
333
+
334
+ @keyframes slideIn {
335
+ from { transform: translateX(-20px); opacity: 0; }
336
+ to { transform: translateX(0); opacity: 1; }
337
+ }
338
+
339
+ .coach-bubble {
340
+ background: linear-gradient(135deg, #10b981, #14b8a6);
341
+ color: white;
342
+ align-self: flex-start;
343
+ }
344
+
345
+ .user-bubble {
346
+ background: #e5e7eb;
347
+ color: #374151;
348
+ align-self: flex-end;
349
+ margin-left: auto;
350
+ }
351
+
352
+ .program-card {
353
+ background: white;
354
+ border-radius: 15px;
355
+ padding: 15px;
356
+ margin-bottom: 15px;
357
+ box-shadow: 0 2px 10px rgba(0,0,0,0.08);
358
+ cursor: pointer;
359
+ transition: all 0.3s;
360
+ }
361
+
362
+ .program-card:hover {
363
+ transform: translateY(-3px);
364
+ box-shadow: 0 4px 20px rgba(0,0,0,0.12);
365
+ }
366
+
367
+ .difficulty-tag {
368
+ display: inline-block;
369
+ padding: 4px 10px;
370
+ border-radius: 10px;
371
+ font-size: 11px;
372
+ font-weight: 600;
373
+ margin-left: 10px;
374
+ }
375
+
376
+ .beginner { background: #d1fae5; color: #065f46; }
377
+ .intermediate { background: #fef3c7; color: #92400e; }
378
+ .advanced { background: #fee2e2; color: #991b1b; }
379
+
380
+ .modal {
381
+ display: none;
382
+ position: fixed;
383
+ top: 0;
384
+ left: 0;
385
+ right: 0;
386
+ bottom: 0;
387
+ background: rgba(0,0,0,0.5);
388
+ z-index: 1000;
389
+ align-items: center;
390
+ justify-content: center;
391
+ }
392
+
393
+ .modal.active {
394
+ display: flex;
395
+ }
396
+
397
+ .modal-content {
398
+ background: white;
399
+ border-radius: 20px;
400
+ padding: 30px;
401
+ max-width: 90%;
402
+ max-height: 80%;
403
+ overflow-y: auto;
404
+ animation: modalSlide 0.3s ease;
405
+ }
406
+
407
+ @keyframes modalSlide {
408
+ from { transform: translateY(50px); opacity: 0; }
409
+ to { transform: translateY(0); opacity: 1; }
410
+ }
411
+
412
+ .close-modal {
413
+ position: absolute;
414
+ top: 20px;
415
+ right: 20px;
416
+ width: 30px;
417
+ height: 30px;
418
+ background: #e5e7eb;
419
+ border: none;
420
+ border-radius: 50%;
421
+ cursor: pointer;
422
+ display: flex;
423
+ align-items: center;
424
+ justify-content: center;
425
+ }
426
+
427
+ .close-modal:hover {
428
+ background: #d1d5db;
429
+ }
430
+
431
+ .progress-bar {
432
+ width: 100%;
433
+ height: 8px;
434
+ background: #e5e7eb;
435
+ border-radius: 4px;
436
+ overflow: hidden;
437
+ margin: 10px 0;
438
+ }
439
+
440
+ .progress-fill {
441
+ height: 100%;
442
+ background: linear-gradient(90deg, #10b981, #14b8a6);
443
+ border-radius: 4px;
444
+ transition: width 1s ease;
445
+ }
446
+
447
+ .highlight-card {
448
+ background: linear-gradient(135deg, #fbbf24, #f59e0b);
449
+ color: white;
450
+ padding: 15px;
451
+ border-radius: 15px;
452
+ margin: 15px 0;
453
+ animation: pulse 2s infinite;
454
+ }
455
+
456
+ @keyframes pulse {
457
+ 0%, 100% { transform: scale(1); }
458
+ 50% { transform: scale(1.02); }
459
+ }
460
+ </style>
461
+ </head>
462
+ <body>
463
+ <div class="phone-container">
464
+ <div class="status-bar">
465
+ <span>9:41</span>
466
+ <span>VITALITY PRO</span>
467
+ <span>100% 🔋</span>
468
+ </div>
469
+
470
+ <div class="main-content">
471
+ <!-- HOME SCREEN -->
472
+ <div id="home-screen" class="screen active">
473
+ <div class="card">
474
+ <h2 style="margin-bottom: 20px; color: #1f2937;">Today's Health Overview</h2>
475
+ <div style="display: flex; justify-content: space-around; text-align: center;">
476
+ <div>
477
+ <div class="score-circle">
478
+ <span class="score-text">78</span>
479
+ </div>
480
+ <div style="color: #6b7280; font-size: 12px;">Recovery</div>
481
+ </div>
482
+ <div>
483
+ <div class="score-circle" style="background: conic-gradient(#3b82f6 0deg 295deg, #e5e7eb 295deg);">
484
+ <span class="score-text" style="color: #3b82f6;">82</span>
485
+ </div>
486
+ <div style="color: #6b7280; font-size: 12px;">Sleep</div>
487
+ </div>
488
+ <div>
489
+ <div class="score-circle" style="background: conic-gradient(#f59e0b 0deg 273deg, #e5e7eb 273deg);">
490
+ <span class="score-text" style="color: #f59e0b;">9.4</span>
491
+ </div>
492
+ <div style="color: #6b7280; font-size: 12px;">Strain</div>
493
+ </div>
494
+ </div>
495
+ </div>
496
+
497
+ <div class="card">
498
+ <div style="display: flex; justify-content: space-between; margin-bottom: 15px;">
499
+ <div class="mini-metric" style="width: 30%;">
500
+ <div class="mini-metric-value">62 ms</div>
501
+ <div class="mini-metric-label">HRV</div>
502
+ </div>
503
+ <div class="mini-metric" style="width: 30%;">
504
+ <div class="mini-metric-value">58 bpm</div>
505
+ <div class="mini-metric-label">Resting HR</div>
506
+ </div>
507
+ <div class="mini-metric" style="width: 30%;">
508
+ <div class="mini-metric-value">+0.2°C</div>
509
+ <div class="mini-metric-label">Temp Dev</div>
510
+ </div>
511
+ </div>
512
+ </div>
513
+
514
+ <div class="chart-container">
515
+ <div style="font-size: 12px; color: #6b7280; margin-bottom: 10px;">7-Day Recovery Trend</div>
516
+ <div class="bar-chart" id="recovery-chart"></div>
517
+ </div>
518
+
519
+ <div class="chart-container">
520
+ <div style="font-size: 12px; color: #6b7280; margin-bottom: 10px;">7-Day Strain Levels</div>
521
+ <div class="bar-chart" id="strain-chart"></div>
522
+ </div>
523
+ </div>
524
+
525
+ <!-- RECOVERY SCREEN -->
526
+ <div id="recovery-screen" class="screen">
527
+ <div class="metric-card">
528
+ <h1 style="font-size: 36px; margin-bottom: 10px;">Recovery 78</h1>
529
+ <div style="font-size: 18px; opacity: 0.9;">Green Zone</div>
530
+ <div style="margin-top: 20px; font-size: 14px;">
531
+ Your body is well-recovered and ready for optimal performance today.
532
+ </div>
533
+ </div>
534
+
535
+ <div class="card">
536
+ <h3 style="margin-bottom: 15px; color: #1f2937;">Recovery Breakdown</h3>
537
+ <div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
538
+ <div style="text-align: center;">
539
+ <div style="font-size: 24px; font-weight: bold; color: #10b981;">85%</div>
540
+ <div style="font-size: 12px; color: #6b7280;">Sleep Quality</div>
541
+ </div>
542
+ <div style="text-align: center;">
543
+ <div style="font-size: 24px; font-weight: bold; color: #10b981;">62</div>
544
+ <div style="font-size: 12px; color: #6b7280;">HRV (ms)</div>
545
+ </div>
546
+ <div style="text-align: center;">
547
+ <div style="font-size: 24px; font-weight: bold; color: #10b981;">58</div>
548
+ <div style="font-size: 12px; color: #6b7280;">Resting HR</div>
549
+ </div>
550
+ </div>
551
+ </div>
552
+
553
+ <div class="chart-container">
554
+ <div style="font-size: 12px; color: #6b7280; margin-bottom: 10px;">HRV Trend (7 Days)</div>
555
+ <div class="line-chart" id="hrv-line-chart"></div>
556
+ </div>
557
+
558
+ <div class="card" style="background: linear-gradient(135deg, #f0fdf4, #dcfce7);">
559
+ <h4 style="color: #065f46; margin-bottom: 10px;">💡 Recovery Insight</h4>
560
+ <p style="color: #047857; font-size: 14px; line-height: 1.5;">
561
+ Your recovery score is in the green zone, indicating good physiological recovery.
562
+ Continue maintaining consistent sleep patterns and consider moderate-intensity activities
563
+ for optimal performance without overtraining.
564
+ </p>
565
+ </div>
566
+ </div>
567
+
568
+ <!-- SLEEP SCREEN -->
569
+ <div id="sleep-screen" class="screen">
570
+ <div class="metric-card">
571
+ <h1 style="font-size: 36px; margin-bottom: 10px;">7h 25m</h1>
572
+ <div style="font-size: 18px; opacity: 0.9;">Sleep Performance: 82/100</div>
573
+ </div>
574
+
575
+ <div class="card">
576
+ <h3 style="margin-bottom: 15px; color: #1f2937;">Sleep Stages</h3>
577
+ <div class="sleep-bar-container">
578
+ <div class="sleep-stage awake" style="flex: 0.1;">5%</div>
579
+ <div class="sleep-stage light" style="flex: 0.5;">50%</div>
580
+ <div class="sleep-stage deep" style="flex: 0.2;">20%</div>
581
+ <div class="sleep-stage rem" style="flex: 0.2;">25%</div>
582
+ </div>
583
+ <div style="display: flex; justify-content: space-between; font-size: 11px; color: #6b7280;">
584
+ <span>Awake</span>
585
+ <span>Light</span>
586
+ <span>Deep</span>
587
+ <span>REM</span>
588
+ </div>
589
+ </div>
590
+
591
+ <div class="card">
592
+ <h3 style="margin-bottom: 15px; color: #1f2937;">Sleep Metrics</h3>
593
+ <div style="display: flex; justify-content: space-between;">
594
+ <div class="mini-metric" style="width: 30%;">
595
+ <div class="mini-metric-value">87%</div>
596
+ <div class="mini-metric-label">Consistency</div>
597
+ </div>
598
+ <div class="mini-metric" style="width: 30%;">
599
+ <div class="mini-metric-value">12 min</div>
600
+ <div class="mini-metric-label">Latency</div>
601
+ </div>
602
+ <div class="mini-metric" style="width: 30%;">
603
+ <div class="mini-metric-value">2</div>
604
+ <div class="mini-metric-label">Wake Episodes</div>
605
+ </div>
606
+ </div>
607
+ </div>
608
+
609
+ <div class="chart-container">
610
+ <div style="font-size: 12px; color: #6b7280; margin-bottom: 10px;">7-Day Sleep Duration</div>
611
+ <div class="bar-chart" id="sleep-chart"></div>
612
+ </div>
613
+ </div>
614
+
615
+ <!-- STRAIN SCREEN -->
616
+ <div id="strain-screen" class="screen">
617
+ <div class="metric-card" style="background: linear-gradient(135deg, #f59e0b, #f97316);">
618
+ <h1 style="font-size: 36px; margin-bottom: 10px;">9.4</h1>
619
+ <div style="font-size: 18px; opacity: 0.9;">Moderate Strain</div>
620
+ <div class="progress-bar" style="margin-top: 20px;">
621
+ <div class="progress-fill" style="width: 94%;"></div>
622
+ </div>
623
+ <div style="font-size: 12px; opacity: 0.9;">Daily Strain Goal: 10.0</div>
624
+ </div>
625
+
626
+ <div class="card">
627
+ <h3 style="margin-bottom: 15px; color: #1f2937;">Today's Activities</h3>
628
+ <div style="padding: 10px 0; border-bottom: 1px solid #f3f4f6;">
629
+ <div style="display: flex; justify-content: space-between; align-items: center;">
630
+ <div>
631
+ <div style="font-weight: 600; color: #1f2937;">Morning Run</div>
632
+ <div style="font-size: 12px; color: #6b7280;">45 minutes</div>
633
+ </div>
634
+ <div style="font-weight: bold; color: #f59e0b;">6.2</div>
635
+ </div>
636
+ </div>
637
+ <div style="padding: 10px 0; border-bottom: 1px solid #f3f4f6;">
638
+ <div style="display: flex; justify-content: space-between; align-items: center;">
639
+ <div>
640
+ <div style="font-weight: 600; color: #1f2937;">Walking</div>
641
+ <div style="font-size: 12px; color: #6b7280;">25 minutes</div>
642
+ </div>
643
+ <div style="font-weight: bold; color: #f59e0b;">2.1</div>
644
+ </div>
645
+ </div>
646
+ <div style="padding: 10px 0;">
647
+ <div style="display: flex; justify-content: space-between; align-items: center;">
648
+ <div>
649
+ <div style="font-weight: 600; color: #1f2937;">Desk Work</div>
650
+ <div style="font-size: 12px; color: #6b7280;">120 minutes</div>
651
+ </div>
652
+ <div style="font-weight: bold; color: #f59e0b;">1.1</div>
653
+ </div>
654
+ </div>
655
+ </div>
656
+
657
+ <div class="chart-container">
658
+ <div style="font-size: 12px; color: #6b7280; margin-bottom: 10px;">7-Day Strain Trend</div>
659
+ <div class="line-chart" id="strain-line-chart"></div>
660
+ </div>
661
+
662
+ <div class="card" style="background: linear-gradient(135deg, #fef3c7, #fde68a);">
663
+ <h4 style="color: #92400e; margin-bottom: 10px;">📊 Target Range</h4>
664
+ <p style="color: #78350f; font-size: 14px;">
665
+ Recommended daily strain: 8-11 for optimal fitness gains without overtraining
666
+ </p>
667
+ </div>
668
+ </div>
669
+
670
+ <!-- BODY SCREEN -->
671
+ <div id="body-screen" class="screen">
672
+ <div class="card">
673
+ <h2 style="margin-bottom: 20px; color: #1f2937; text-align: center;">Body Composition Simulator</h2>
674
+
675
+ <svg class="body-silhouette" id="body-silhouette" viewBox="0 0 200 300">
676
+ <path d="M100 20 C120 20 140 40 140 60 L140 100 C140 120 135 140 125 160 L125 200 C125 220 120 240 100 240 C80 240 75 220 75 200 L75 160 C65 140 60 120 60 100 L60 60 C60 40 80 20 100 20 Z"
677
+ fill="#e5e7eb" stroke="#9ca3af" stroke-width="2"/>
678
+ <circle cx="100" cy="50" r="25" fill="#e5e7eb" stroke="#9ca3af" stroke-width="2"/>
679
+ </svg>
680
+
681
+ <div style="text-align: center; margin-bottom: 20px;">
682
+ <button class="toggle-button" onclick="toggleBodyView('normal')">Normal</button>
683
+ <button class="toggle-button" onclick="toggleBodyView('fat')">View Fat</button>
684
+ <button class="toggle-button" onclick="toggleBodyView('muscle')">View Muscle</button>
685
+ <button class="toggle-button" onclick="toggleBodyView('visceral')">View Visceral</button>
686
+ </div>
687
+
688
+ <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px;">
689
+ <div class="mini-metric">
690
+ <div class="mini-metric-value">27.5%</div>
691
+ <div class="mini-metric-label">Body Fat</div>
692
+ </div>
693
+ <div class="mini-metric">
694
+ <div class="mini-metric-value">13</div>
695
+ <div class="mini-metric-label">Visceral Fat</div>
696
+ </div>
697
+ <div class="mini-metric">
698
+ <div class="mini-metric-value">34%</div>
699
+ <div class="mini-metric-label">Muscle Mass</div>
700
+ </div>
701
+ <div class="mini-metric">
702
+ <div class="mini-metric-value">78 kg</div>
703
+ <div class="mini-metric-label">Weight</div>
704
+ </div>
705
+ </div>
706
+ </div>
707
+
708
+ <div class="card">
709
+ <h3 style="margin-bottom: 15px; color: #1f2937;">30-Day Projection</h3>
710
+ <div style="margin-bottom: 10px;">
711
+ <div style="font-size: 14px; color: #6b7280;">Body Fat: 27.5% → 25.8%</div>
712
+ <div class="progress-bar">
713
+ <div class="progress-fill" style="width: 65%;"></div>
714
+ </div>
715
+ </div>
716
+ <div>
717
+ <div style="font-size: 14px; color: #6b7280;">Muscle Mass: 34% → 35.2%</div>
718
+ <div class="progress-bar">
719
+ <div class="progress-fill" style="width: 40%;"></div>
720
+ </div>
721
+ </div>
722
+ </div>
723
+ </div>
724
+
725
+ <!-- LABS SCREEN -->
726
+ <div id="labs-screen" class="screen">
727
+ <div class="card">
728
+ <h2 style="margin-bottom: 20px; color: #1f2937;">Key Biomarkers</h2>
729
+
730
+ <div class="lab-row">
731
+ <span class="lab-label">Fasting Glucose</span>
732
+ <span class="lab-value lab-green">98 mg/dL</span>
733
+ </div>
734
+ <div class="lab-row">
735
+ <span class="lab-label">HbA1c</span>
736
+ <span class="lab-value lab-yellow">5.6%</span>
737
+ </div>
738
+ <div class="lab-row">
739
+ <span class="lab-label">Triglycerides</span>
740
+ <span class="lab-value lab-red">210 mg/dL</span>
741
+ </div>
742
+ <div class="lab-row">
743
+ <span class="lab-label">LDL</span>
744
+ <span class="lab-value lab-yellow">135 mg/dL</span>
745
+ </div>
746
+ <div class="lab-row">
747
+ <span class="lab-label">HDL</span>
748
+ <span class="lab-value lab-yellow">42 mg/dL</span>
749
+ </div>
750
+ <div class="lab-row">
751
+ <span class="lab-label">Vitamin D</span>
752
+ <span class="lab-value lab-red">18 ng/mL</span>
753
+ </div>
754
+ <div class="lab-row">
755
+ <span class="lab-label">hs-CRP</span>
756
+ <span class="lab-value lab-yellow">2.8 mg/L</span>
757
+ </div>
758
+ </div>
759
+
760
+ <div class="card">
761
+ <h3 style="margin-bottom: 15px; color: #1f2937;">Risk Assessment</h3>
762
+ <div style="margin-bottom: 15px;">
763
+ <span class="risk-pill">Metabolic Risk</span>
764
+ <span class="risk-pill">Visceral Fat High</span>
765
+ <span class="risk-pill">Vitamin D Low</span>
766
+ </div>
767
+ </div>
768
+
769
+ <div class="chart-container">
770
+ <div style="font-size: 12px; color: #6b7280; margin-bottom: 10px;">Health Scores</div>
771
+ <div style="margin-bottom: 10px;">
772
+ <div style="font-size: 12px; color: #374151;">Metabolic Score: 65/100</div>
773
+ <div class="progress-bar">
774
+ <div class="progress-fill" style="width: 65%;"></div>
775
+ </div>
776
+ </div>
777
+ <div style="margin-bottom: 10px;">
778
+ <div style="font-size: 12px; color: #374151;">Cardio Score: 72/100</div>
779
+ <div class="progress-bar">
780
+ <div class="progress-fill" style="width: 72%;"></div>
781
+ </div>
782
+ </div>
783
+ <div>
784
+ <div style="font-size: 12px; color: #374151;">Inflammation Score: 58/100</div>
785
+ <div class="progress-bar">
786
+ <div class="progress-fill" style="width: 58%;"></div>
787
+ </div>
788
+ </div>
789
+ </div>
790
+ </div>
791
+
792
+ <!-- COACH SCREEN -->
793
+ <div id="coach-screen" class="screen">
794
+ <div class="card">
795
+ <h2 style="margin-bottom: 20px; color: #1f2937;">AI Health Coach</h2>
796
+
797
+ <div class="highlight-card">
798
+ <h3 style="margin-bottom: 10px;">Today's Focus: Recovery</h3>
799
+ <div style="font-size: 14px;">🎯 Key Action: Go to bed before 23:00</div>
800
+ </div>
801
+
802
+ <div style="display: flex; flex-direction: column; padding: 20px 0;">
803
+ <div class="chat-bubble coach-bubble">
804
+ Good morning! Your recovery score of 78 indicates you're well-rested. This is an excellent day for moderate to high-intensity training.
805
+ </div>
806
+
807
+ <div class="chat-bubble user-bubble">
808
+ What type of workout would you recommend?
809
+ </div>
810
+
811
+ <div class="chat-bubble coach-bubble">
812
+ Based on your strain history, a combination of cardio (45 min) and strength training (30 min) would be optimal. Aim for a total strain of 10-12.
813
+ </div>
814
+
815
+ <div class="chat-bubble coach-bubble">
816
+ Also, remember to stay hydrated. Your temperature deviation suggests you may need extra fluids today.
817
+ </div>
818
+ </div>
819
+
820
+ <div style="display: flex; align-items: center; background: #f3f4f6; padding: 15px; border-radius: 30px;">
821
+ <span style="flex: 1; color: #9ca3af;">Type your message...</span>
822
+ <button style="background: #10b981; color: white; border: none; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center;">
823
+ ➤
824
+ </button>
825
+ </div>
826
+ </div>
827
+ </div>
828
+
829
+ <!-- PROGRAMS SCREEN -->
830
+ <div id="programs-screen" class="screen">
831
+ <h2 style="margin-bottom: 20px; color: #1f2937;">Wellness Programs</h2>
832
+
833
+ <div class="program-card" onclick="openProgramModal('Metabolic Reset')">
834
+ <div style="display: flex; justify-content: space-between; align-items: center;">
835
+ <div>
836
+ <h3 style="color: #1f2937; margin-bottom: 5px;">Metabolic Reset</h3>
837
+ <p style="font-size: 13px; color: #6b7280;">30 days to improve metabolic health</p>
838
+ </div>
839
+ <span class="difficulty-tag intermediate">Intermediate</span>
840
+ </div>
841
+ </div>
842
+
843
+ <div class="program-card" onclick="openProgramModal('Deep Sleep')">
844
+ <div style="display: flex; justify-content: space-between; align-items: center;">
845
+ <div>
846
+ <h3 style="color: #1f2937; margin-bottom: 5px;">Deep Sleep</h3>
847
+ <p style="font-size: 13px; color: #6b7280;">14 days to optimize sleep quality</p>
848
+ </div>
849
+ <span class="difficulty-tag beginner">Beginner</span>
850
+ </div>
851
+ </div>
852
+
853
+ <div class="program-card" onclick="openProgramModal('Stress Reset')">
854
+ <div style="display: flex; justify-content: space-between; align-items: center;">
855
+ <div>
856
+ <h3 style="color: #1f2937; margin-bottom: 5px;">Stress Reset Program</h3>
857
+ <p style="font-size: 13px; color: #6b7280;">21 days of mindfulness and recovery</p>
858
+ </div>
859
+ <span class="difficulty-tag beginner">Beginner</span>
860
+ </div>
861
+ </div>
862
+
863
+ <div class="program-card" onclick="openProgramModal('Muscle Gain')">
864
+ <div style="display: flex; justify-content: space-between; align-items: center;">
865
+ <div>
866
+ <h3 style="color: #1f2937; margin-bottom: 5px;">Muscle Gain</h3>
867
+ <p style="font-size: 13px; color: #6b7280;">60 days of progressive strength training</p>
868
+ </div>
869
+ <span class="difficulty-tag advanced">Advanced</span>
870
+ </div>
871
+ </div>
872
+
873
+ <div class="program-card" onclick="openProgramModal('Hormone Balance')">
874
+ <div style="display: flex; justify-content: space-between; align-items: center;">
875
+ <div>
876
+ <h3 style="color: #1f2937; margin-bottom: 5px;">Female Hormone Balance</h3>
877
+ <p style="font-size: 13px; color: #6b7280;">30 days cycle tracking support</p>
878
+ </div>
879
+ <span class="difficulty-tag intermediate">Intermediate</span>
880
+ </div>
881
+ </div>
882
+ </div>
883
+ </div>
884
+
885
+ <div class="bottom-nav">
886
+ <div class="nav-item active" onclick="switchScreen('home')">
887
+ <svg class="nav-icon" fill="currentColor" viewBox="0 0 24 24">
888
+ <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
889
+ </svg>
890
+ <span class="nav-label">Home</span>
891
+ </div>
892
+ <div class="nav-item" onclick="switchScreen('recovery')">
893
+ <svg class="nav-icon" fill="currentColor" viewBox="0 0 24 24">
894
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
895
+ </svg>
896
+ <span class="nav-label">Recovery</span>
897
+ </div>
898
+ <div class="nav-item" onclick="switchScreen('sleep')">
899
+ <svg class="nav-icon" fill="currentColor" viewBox="0 0 24 24">
900
+ <path d="M17.75 4.09l-2.53 1.94.91 3.06-2.63-1.81-2.63 1.81.91-3.06-2.53-1.94L12.44 4l1.06-3 1.06 3 3.19.09m3.5 6.91l-1.64 1.25.59 1.98-1.7-1.17-1.7 1.17.59-1.98L15.75 11l2.06-.05L18.5 9l.69 1.95 2.06.05m-2.28 4.95c.83-.08 1.72 1.1 1.88 1.85.27 1.3-.36 2.23-1.65 2.49s-2.19-.4-2.46-1.72c-.12-.59.25-2.41 1.23-2.62m-8.52 0c.98.21 1.35 2.03 1.23 2.62-.27 1.32-1.18 1.96-2.46 1.72S4.3 19.8 4.57 18.5c.16-.75 1.05-1.93 1.88-1.85m4.78 3.93c-.87-.39-1.58-1.24-1.58-2.15 0-1.18.87-2.14 1.95-2.14s1.95.96 1.95 2.14c0 .91-.71 1.76-1.58 2.15.75.43 1.28 1.12 1.28 1.96v2.23h-6.3v-2.23c0-.84.53-1.53 1.28-1.96z"/>
901
+ </svg>
902
+ <span class="nav-label">Sleep</span>
903
+ </div>
904
+ <div class="nav-item" onclick="switchScreen('strain')">
905
+ <svg class="nav-icon" fill="currentColor" viewBox="0 0 24 24">
906
+ <path d="M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8z"/>
907
+ </svg>
908
+ <span class="nav-label">Strain</span>
909
+ </div>
910
+ <div class="nav-item" onclick="switchScreen('body')">
911
+ <svg class="nav-icon" fill="currentColor" viewBox="0 0 24 24">
912
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/>
913
+ </svg>
914
+ <span class="nav-label">Body</span>
915
+ </div>
916
+ <div class="nav-item" onclick="switchScreen('labs')">
917
+ <svg class="nav-icon" fill="currentColor" viewBox="0 0 24 24">
918
+ <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"/>
919
+ </svg>
920
+ <span class="nav-label">Labs</span>
921
+ </div>
922
+ <div class="nav-item" onclick="switchScreen('coach')">
923
+ <svg class="nav-icon" fill="currentColor" viewBox="0 0 24 24">
924
+ <path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
925
+ </svg>
926
+ <span class="nav-label">Coach</span>
927
+ </div>
928
+ <div class="nav-item" onclick="switchScreen('programs')">
929
+ <svg class="nav-icon" fill="currentColor" viewBox="0 0 24 24">
930
+ <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/>
931
+ </svg>
932
+ <span class="nav-label">Programs</span>
933
+ </div>
934
+ </div>
935
+ </div>
936
+
937
+ <div class="modal" id="program-modal">
938
+ <div class="modal-content">
939
+ <button class="close-modal" onclick="closeProgramModal()">✕</button>
940
+ <h2 id="modal-title" style="margin-bottom: 20px; color: #1f2937;"></h2>
941
+ <p id="modal-description" style="margin-bottom: 20px; color: #6b7280; line-height: 1.6;"></p>
942
+
943
+ <h3 style="margin-bottom: 15px; color: #1f2937;">4-Week Breakdown</h3>
944
+ <div id="modal-weeks" style="margin-bottom: 20px;"></div>
945
+
946
+ <button style="width: 100%; padding: 15px; background: linear-gradient(135deg, #10b981, #14b8a6); color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer;">
947
+ Start Program
948
+ </button>
949
+ </div>
950
+ </div>
951
+
952
+ <script>
953
+ function switchScreen(screen) {
954
+ document.querySelectorAll('.screen').forEach(s => s.classList.remove('active'));
955
+ document.getElementById(screen + '-screen').classList.add('active');
956
+
957
+ document.querySelectorAll('.nav-item').forEach(n => n.classList.remove('active'));
958
+ event.currentTarget.classList.add('active');
959
+ }
960
+
961
+ function toggleBodyView(view) {
962
+ const silhouette = document.getElementById('body-silhouette');
963
+ silhouette.className = 'body-silhouette';
964
+
965
+ document.querySelectorAll('.toggle-button').forEach(btn => btn.classList.remove('active'));
966
+ event.currentTarget.classList.add('active');
967
+
968
+ if (view !== 'normal') {
969
+ silhouette.classList.add(view);
970
+ }
971
+ }
972
+
973
+ function openProgramModal(programName) {
974
+ const modal = document.getElementById('program-modal');
975
+ const title = document.getElementById('modal-title');
976
+ const description = document.getElementById('modal-description');
977
+ const weeks = document.getElementById('modal-weeks');
978
+
979
+ const programData = {
980
+ 'Metabolic Reset': {
981
+ description: 'Transform your metabolic health through targeted nutrition, exercise, and lifestyle interventions. This program focuses on improving insulin sensitivity and reducing visceral fat.',
982
+ weeks: [
983
+ 'Week 1: Foundation - Establish baseline metrics, start low-carb nutrition',
984
+ 'Week 2: Acceleration - Add HIIT workouts, monitor glucose',
985
+ 'Week 3: Optimization - Fine-tune macros, increase activity',
986
+ 'Week 4: Consolidation - Build sustainable habits'
987
+ ]
988
+ },
989
+ 'Deep Sleep': {
990
+ description: 'Master the art of restorative sleep. Learn sleep hygiene techniques, optimize your environment, and develop a consistent sleep routine.',
991
+ weeks: [
992
+ 'Week 1: Assessment - Track current sleep patterns',
993
+ 'Week 2: Environment - Optimize bedroom setup',
994
+ 'Week 3: Routine - Establish wind-down protocols',
995
+ 'Week 4: Optimization - Fine-tune timing and quality'
996
+ ]
997
+ },
998
+ 'Stress Reset': {
999
+ description: 'Reduce chronic stress and build resilience through mindfulness, breathwork, and recovery-focused lifestyle changes.',
1000
+ weeks: [
1001
+ 'Week 1: Awareness - Identify stress triggers',
1002
+ 'Week 2: Techniques - Learn breathing and meditation',
1003
+ 'Week 3: Application - Integrate practices into daily life',
1004
+ 'Week 4: Maintenance - Build long-term resilience'
1005
+ ]
1006
+ },
1007
+ 'Muscle Gain': {
1008
+ description: 'Build lean muscle mass through progressive resistance training, optimal nutrition, and strategic recovery periods.',
1009
+ weeks: [
1010
+ 'Week 1: Foundation - Master compound movements',
1011
+ 'Week 2: Volume - Increase training intensity',
1012
+ 'Week 3: Strength - Focus on progressive overload',
1013
+ 'Week 4: Hypertrophy - Optimize for muscle growth'
1014
+ ]
1015
+ },
1016
+ 'Hormone Balance': {
1017
+ description: 'Support hormonal health through cycle-aligned training, nutrition, and recovery strategies tailored for female physiology.',
1018
+ weeks: [
1019
+ 'Week 1: Tracking - Understand your cycle patterns',
1020
+ 'Week 2: Follicular Phase - High-intensity focus',
1021
+ 'Week 3: Ovulation - Peak performance window',
1022
+ 'Week 4: Luteal Phase - Recovery and maintenance'
1023
+ ]
1024
+ }
1025
+ };
1026
+
1027
+ const program = programData[programName];
1028
+ title.textContent = programName;
1029
+ description.textContent = program.description;
1030
+
1031
+ weeks.innerHTML = program.weeks.map((week, index) =>
1032
+ `<div style="padding: 10px; background: #f9fafb; border-radius: 8px; margin-bottom: 10px;">
1033
+ <strong>${week}</strong>
1034
+ </div>`
1035
+ ).join('');
1036
+
1037
+ modal.classList.add('active');
1038
+ }
1039
+
1040
+ function closeProgramModal() {
1041
+ document.getElementById('program-modal').classList.remove('active');
1042
+ }
1043
+
1044
+ function createBarChart(containerId, data, color) {
1045
+ const container = document.getElementById(containerId);
1046
+ if (!container) return;
1047
+
1048
+ container.innerHTML = data.map(value =>
1049
+ `<div class="bar" style="height: ${value}%; background: ${color || 'linear-gradient(to top, #10b981, #14b8a6)'};"></div>`
1050
+ ).join('');
1051
+ }
1052
+
1053
+ function createLineChart(containerId, data, color) {
1054
+ const container = document.getElementById(containerId);
1055
+ if (!container) return;
1056
+
1057
+ const width = 100;
1058
+ const height = 100;
1059
+ const points = data.map((value, index) => {
1060
+ const x = (index / (data.length - 1)) * width;
1061
+ const y = height - (value / 100) * height;
1062
+ return `${x},${y}`;
1063
+ }).join(' ');
1064
+
1065
+ container.innerHTML = `
1066
+ <svg viewBox="0 0 100 100">
1067
+ <polyline
1068
+ points="${points}"
1069
+ fill="none"
1070
+ stroke="${color || '#10b981'}"
1071
+ stroke-width="2"
1072
+ />
1073
+ ${data.map((value, index) => {
1074
+ const x = (index / (data.length - 1)) * width;
1075
+ const y = height - (value / 100) * height;
1076
+ return `<circle cx="${x}" cy="${y}" r="3" fill="${color || '#10b981'}"/>`;
1077
+ }).join('')}
1078
+ </svg>
1079
+ `;
1080
+ }
1081
+
1082
+ // Initialize charts
1083
+ window.addEventListener('load', () => {
1084
+ // Recovery chart
1085
+ createBarChart('recovery-chart', [65, 72, 78, 70, 82, 75, 78]);
1086
+
1087
+ // Strain chart
1088
+ createBarChart('strain-chart', [8.2, 9.1, 7.8, 10.2, 8.9, 9.7, 9.4], 'linear-gradient(to top, #f59e0b, #f97316)');
1089
+
1090
+ // Sleep chart
1091
+ createBarChart('sleep-chart', [6.5, 7.2, 8.1, 6.8, 7.5, 7.8, 7.4], 'linear-gradient(to top, #3b82f6, #6366f1)');
1092
+
1093
+ // HRV line chart
1094
+ createLineChart('hrv-line-chart', [55, 58, 62, 60, 64, 61, 62]);
1095
+
1096
+ // Strain line chart
1097
+ createLineChart('strain-line-chart', [82, 91, 78, 102, 89, 97, 94], '#f59e0b');
1098
+ });
1099
+
1100
+ // Close modal on outside click
1101
+ document.getElementById('program-modal').addEventListener('click', (e) => {
1102
+ if (e.target.id === 'program-modal') {
1103
+ closeProgramModal();
1104
+ }
1105
+ });
1106
+ </script>
1107
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
1108
+ </body>
1109
+ </html>