Spaces:
Build error
Build error
File size: 37,424 Bytes
1ac9f32 | 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 | <!DOCTYPE html>
<html lang="en" style="scroll-behavior:smooth">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Algorithm | Decode Your Relationship</title>
<meta name="description" content="Upload your chat history and get deep behavioral insights, emotional analytics, and AI coaching. Securely and privately.">
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
<link rel="icon" type="image/png" href="{{ url_for('static', filename='favicon.png') }}">
</head>
<body class="comic-dots">
<!-- βββ NAV βββ -->
<header class="nav">
<div class="container">
<a href="/" class="nav-logo">
<span style="font-size:1.3rem;line-height:1;letter-spacing:-0.03em">The Algorithm</span>
<span style="font-size:.55rem;font-family:var(--font-body);font-weight:500;color:var(--gray-400);font-style:italic;letter-spacing:0.02em;text-transform:none">decode your chats</span>
</a>
<nav class="nav-links">
<a href="/instructions" class="nav-link" style="padding:.25rem .7rem;border:1.5px solid var(--gray-600);border-radius:var(--r-pill);font-size:.62rem">How to Export</a>
<a href="/privacy" class="nav-link" style="padding:.25rem .7rem;border:1.5px solid var(--gray-600);border-radius:var(--r-pill);font-size:.62rem">Privacy</a>
<a href="#upload" class="btn btn--yellow" style="font-size:.62rem;padding:.28rem .85rem;box-shadow:2px 2px 0 0 rgba(255,255,255,0.15);border-color:var(--yellow)">Try Now</a>
</nav>
</div>
</header>
<!-- βββ HERO βββ -->
<section class="section-py relative overflow-hidden" style="padding-bottom:6rem">
<!-- Decorative SVG blobs -->
<svg class="animate-float" style="position:absolute;top:5%;right:5%;width:180px;opacity:0.2;z-index:0;pointer-events:none" viewBox="0 0 200 200"><path fill="var(--orange)" d="M54.5,-63.9C68.9,-49.2,77.5,-28.5,80.1,-6.6C82.8,15.3,79.5,38.5,66.8,55.9C54.1,73.3,31.9,84.9,8.5,88.4C-15,91.9,-39.6,87.3,-56.9,73.6C-74.2,59.8,-84.1,36.9,-85.4,14.6C-86.7,-7.8,-79.4,-29.7,-64.7,-45.3C-49.9,-61,-25,-70.5,-1,-69.3C23,-68.2,40.1,-78.6,54.5,-63.9Z" transform="translate(100 100) scale(1.1)"/></svg>
<svg class="animate-float" style="position:absolute;bottom:0;left:5%;width:150px;opacity:0.15;z-index:0;pointer-events:none;animation-delay:1.5s" viewBox="0 0 200 200"><path fill="var(--pink)" d="M47.6,-53.4C61.4,-44.6,72,-28.9,73.5,-12.3C75,4.3,67.3,21.8,56.1,36.5C45,51.3,30.3,63.2,13.2,68.8C-4,74.5,-23.7,73.8,-40.4,65.3C-57.2,56.8,-71.1,40.4,-75.7,21.7C-80.3,3,-75.6,-18,-64.8,-34C-54,-50.1,-37,-61.2,-19.9,-65.3C-2.7,-69.5,14.5,-66.6,33.7,-62.1C53,-57.6,47.6,-53.4,47.6,-53.4Z" transform="translate(100 100)"/></svg>
<!-- Lightning bolt accents -->
<span class="lightning" style="position:absolute;top:15%;left:8%;font-size:2.5rem;z-index:0;opacity:0.4">β‘</span>
<span class="lightning" style="position:absolute;top:25%;right:12%;font-size:1.8rem;z-index:0;opacity:0.3;animation-delay:1s">β‘</span>
<div class="container text-center relative" style="z-index:1">
<div class="mb-4">
<span class="pill-label pill-label--pink" style="transform:rotate(-2deg)">relationship decoder</span>
</div>
<h1 style="margin-bottom:1.25rem">
Stop Guessing.<br>
<span class="font-heading-italic" style="color:var(--white);text-shadow: 4px 4px 0 var(--pink), -1px -1px 0 var(--black), 1px -1px 0 var(--black), -1px 1px 0 var(--black), 1px 1px 0 var(--black)">Start Knowing.</span>
</h1>
<div class="speech-bubble mx-auto mb-8" style="max-width:600px;transform:rotate(-0.5deg)">
<p style="font-size:1.15rem;font-weight:600;line-height:1.5">
Upload your chat history for deep behavioral insights and AI coaching. <strong style="color:var(--pink)">100% locally and privately.</strong>
</p>
</div>
<div class="mb-8">
<a href="#upload" class="btn btn--yellow btn--lg" style="transform:rotate(1deg)">Decode My Chat β</a>
</div>
<div class="flex flex-wrap justify-center gap-3">
<span class="pill-label pill-label--green" style="transform:rotate(1deg)">local compute</span>
<span class="pill-label pill-label--blue" style="transform:rotate(-1deg)">zero logs</span>
<span class="pill-label pill-label--orange" style="transform:rotate(1.5deg)">anonymous</span>
</div>
</div>
</section>
<!-- βββ HOW IT WORKS βββ -->
<section style="background:var(--purple);position:relative;padding:5rem 0">
<!-- Wave divider top -->
<svg class="wave-divider" style="position:absolute;top:0;left:0;transform:translateY(-98%)" preserveAspectRatio="none" viewBox="0 0 1440 64"><path fill="var(--purple)" d="M0,32L80,37.3C160,43,320,53,480,48C640,43,800,37,960,37.3C1120,37,1280,43,1360,48L1440,53L1440,64L0,64Z"/></svg>
<div class="container text-center mb-12">
<h2 style="color:var(--yellow);text-shadow:3px 3px 0 var(--black)">3 Steps to Clarity</h2>
</div>
<div class="container grid gap-8" style="grid-template-columns:repeat(auto-fit,minmax(280px,1fr))">
<!-- Step 1 -->
<div class="card rotate-left" style="border-width:4px;border-radius:var(--r-lg)">
<div style="width:52px;height:52px;background:var(--pink);border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:var(--font-heading);font-weight:900;font-size:1.5rem;color:var(--white);border:3px solid var(--black);box-shadow:3px 3px 0 0 var(--black);margin-bottom:1rem">1</div>
<h3>Export Chat</h3>
<p style="color:var(--gray-600);margin:.5rem 0 1rem;font-weight:500">Get your chat history from WhatsApp or Telegram as a .txt or .html file.</p>
<a href="/instructions" class="btn btn--yellow" style="font-size:0.75rem;padding:.4rem 1rem">View Guide β</a>
</div>
<!-- Step 2 -->
<div class="card rotate-right" style="border-width:4px;border-radius:var(--r-lg)">
<div style="width:52px;height:52px;background:var(--yellow);border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:var(--font-heading);font-weight:900;font-size:1.5rem;color:var(--black);border:3px solid var(--black);box-shadow:3px 3px 0 0 var(--black);margin-bottom:1rem">2</div>
<h3>Local Scrub</h3>
<p style="color:var(--gray-600);margin:.5rem 0;font-weight:500">Your file is scrubbed of phone numbers and emails right in your browser. Raw data never leaves your device.</p>
</div>
<!-- Step 3 -->
<div class="card rotate-left" style="border-width:4px;border-radius:var(--r-lg)">
<div style="width:52px;height:52px;background:var(--green);border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:var(--font-heading);font-weight:900;font-size:1.5rem;color:var(--white);border:3px solid var(--black);box-shadow:3px 3px 0 0 var(--black);margin-bottom:1rem">3</div>
<h3>Get Insights</h3>
<p style="color:var(--gray-600);margin:.5rem 0;font-weight:500">AI reads between the lines to reveal attachment styles, power dynamics, and communication gaps.</p>
</div>
</div>
<!-- wave divider bottom -->
<svg class="wave-divider" style="position:absolute;bottom:0;left:0;transform:translateY(98%) scaleY(-1)" preserveAspectRatio="none" viewBox="0 0 1440 64"><path fill="var(--purple)" d="M0,32L80,37.3C160,43,320,53,480,48C640,43,800,37,960,37.3C1120,37,1280,43,1360,48L1440,53L1440,64L0,64Z"/></svg>
</section>
<!-- βββ SOCIAL PROOF βββ -->
<section class="section-py">
<div class="container text-center mb-10">
<span class="pill-label pill-label--purple mb-4 inline-block">sample report</span>
<h2>What Your Report Looks Like</h2>
</div>
<div class="container grid gap-6" style="grid-template-columns:repeat(auto-fit,minmax(280px,1fr))">
<div class="card rotate-right" style="border-left:5px solid var(--pink)">
<span class="pill-label pill-label--pink mb-3" style="font-size:.7rem">attachment style</span>
<p style="font-size:1.5rem;font-weight:900;font-family:var(--font-heading);color:var(--purple);margin:.5rem 0">Secure-Anxious</p>
<p style="font-size:.85rem;color:var(--gray-500)">You show stable patterns but seek extra reassurance during stress periods.</p>
</div>
<div class="card" style="border-left:5px solid var(--green)">
<span class="pill-label pill-label--green mb-3" style="font-size:.7rem">compatibility score</span>
<p style="font-size:3rem;font-weight:900;font-family:var(--font-heading);color:var(--green);margin:.5rem 0">82<span style="font-size:1.25rem;color:var(--gray-400)">/100</span></p>
<p style="font-size:.85rem;color:var(--gray-500)">Strong alignment in values with room for communication growth.</p>
</div>
<div class="card rotate-left" style="border-left:5px solid var(--orange)">
<span class="pill-label pill-label--orange mb-3" style="font-size:.7rem">growth area</span>
<p style="font-size:1.5rem;font-weight:900;font-family:var(--font-heading);color:var(--orange);margin:.5rem 0">Active Listening</p>
<p style="font-size:.85rem;color:var(--gray-500)">Partner responds 2.3Γ faster but with shorter messages, which may indicate surface-level engagement.</p>
</div>
</div>
</section>
<!-- βββ MARQUEE βββ -->
<div class="marquee-strip">
<div class="marquee-content">
<span class="marquee-item">WhatsApp</span><span class="marquee-dot">β¦</span>
<span class="marquee-item">Telegram</span><span class="marquee-dot">β¦</span>
<span class="marquee-item">Instagram</span><span class="marquee-dot">β¦</span>
<span class="marquee-item">Discord</span><span class="marquee-dot">β¦</span>
<span class="marquee-item">iMessage (Soon)</span><span class="marquee-dot">β¦</span>
<!-- Duplicate for seamless loop -->
<span class="marquee-item">WhatsApp</span><span class="marquee-dot">β¦</span>
<span class="marquee-item">Telegram</span><span class="marquee-dot">β¦</span>
<span class="marquee-item">Instagram</span><span class="marquee-dot">β¦</span>
<span class="marquee-item">Discord</span><span class="marquee-dot">β¦</span>
<span class="marquee-item">iMessage (Soon)</span><span class="marquee-dot">β¦</span>
</div>
</div>
<!-- βββ UPLOAD FORM βββ -->
<section id="upload" class="section-py" style="padding-bottom:3rem">
<div class="container" style="max-width:900px">
<div class="card card--lg" style="border-width:3px;padding:1.5rem 1.75rem">
<div class="text-center" style="margin-bottom:1.25rem">
<span class="pill-label pill-label--pink mb-2 inline-block">drop your chat</span>
<h2 style="font-size:1.6rem">Start Your Analysis</h2>
</div>
<form id="uploadForm" style="display:grid;grid-template-columns:1fr 1fr;gap:1.75rem">
<!-- ββ LEFT: Configuration ββ -->
<div style="display:flex;flex-direction:column;gap:.85rem">
<h3 style="border-bottom:2px solid var(--black);padding-bottom:.35rem;display:inline-block;align-self:flex-start;font-size:1rem">1. Details</h3>
<div class="grid grid-2 gap-3">
<div>
<label for="myName" style="display:block;font-weight:700;font-size:.7rem;text-transform:uppercase;margin-bottom:.25rem">Your Name</label>
<input type="text" id="myName" required placeholder="e.g. Rahul" class="field-input" maxlength="100">
</div>
<div>
<label for="partnerName" style="display:block;font-weight:700;font-size:.7rem;text-transform:uppercase;margin-bottom:.25rem">Partner's Name</label>
<input type="text" id="partnerName" required placeholder="e.g. Priya" class="field-input" maxlength="100">
</div>
</div>
<div class="grid grid-2 gap-3">
<div>
<label style="display:block;font-weight:700;font-size:.7rem;text-transform:uppercase;margin-bottom:.25rem">Connection Type</label>
<select id="connectionType" class="sr-only" aria-hidden="true">
<option value="romantic" selected>Romantic Partner</option>
<option value="friendship">Close Friend</option>
<option value="professional">Professional / Work</option>
<option value="family">Family Member</option>
<option value="casual">Casual</option>
</select>
<div class="custom-select" data-target="connectionType">
<button type="button" class="custom-select-trigger" aria-haspopup="listbox" aria-expanded="false">
<span class="custom-select-label">Romantic Partner</span>
<svg class="custom-select-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>
</button>
<div class="custom-select-options" role="listbox">
<div class="custom-select-option selected" data-value="romantic" role="option">Romantic Partner</div>
<div class="custom-select-option" data-value="friendship" role="option">Close Friend</div>
<div class="custom-select-option" data-value="professional" role="option">Professional / Work</div>
<div class="custom-select-option" data-value="family" role="option">Family Member</div>
<div class="custom-select-option" data-value="casual" role="option">Casual</div>
</div>
</div>
</div>
<div>
<label style="display:block;font-weight:700;font-size:.7rem;text-transform:uppercase;margin-bottom:.25rem">Language</label>
<select id="outputLanguage" class="sr-only" aria-hidden="true">
<option value="english" selected>English</option>
<option value="hinglish">Hinglish</option>
<option value="hindi">Hindi</option>
</select>
<div class="custom-select" data-target="outputLanguage">
<button type="button" class="custom-select-trigger" aria-haspopup="listbox" aria-expanded="false">
<span class="custom-select-label">English</span>
<svg class="custom-select-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>
</button>
<div class="custom-select-options" role="listbox">
<div class="custom-select-option selected" data-value="english" role="option">English</div>
<div class="custom-select-option" data-value="hinglish" role="option">Hinglish</div>
<div class="custom-select-option" data-value="hindi" role="option">Hindi</div>
</div>
</div>
</div>
</div>
<div>
<label for="userContext" style="display:block;font-weight:700;font-size:.7rem;text-transform:uppercase;margin-bottom:.25rem">Context <span style="font-weight:500;text-transform:none;color:var(--gray-400)">(Optional)</span></label>
<textarea id="userContext" rows="2" maxlength="2000" placeholder="e.g. 'We just moved' or 'My partner started a stressful job'" class="field-input"></textarea>
<div id="userContextCharCount" style="text-align:right;font-size:.7rem;font-weight:600;color:var(--gray-400);margin-top:.25rem">0 / 2000</div>
</div>
<!-- Analysis Tone -->
<div style="padding:.75rem;border:var(--border);border-radius:var(--r-sm);background:var(--orange)">
<p style="font-family:var(--font-heading);font-weight:900;color:var(--white);margin-bottom:.4rem;font-size:.75rem">Analysis Tone</p>
<div id="toneSelector" style="display:flex;gap:0;border:2px solid var(--black);border-radius:var(--r-pill);overflow:hidden;background:var(--white)">
<button type="button" data-tone="playful" class="tone-btn" style="flex:1;padding:.4rem .5rem;font-size:.7rem;font-weight:700;border:none;cursor:pointer;background:transparent;color:var(--black);font-family:var(--font-body);transition:all .15s">Playful</button>
<button type="button" data-tone="balanced" class="tone-btn active" style="flex:1;padding:.4rem .5rem;font-size:.7rem;font-weight:700;border:none;cursor:pointer;background:var(--black);color:var(--white);font-family:var(--font-body);transition:all .15s">Balanced</button>
<button type="button" data-tone="direct" class="tone-btn" style="flex:1;padding:.4rem .5rem;font-size:.7rem;font-weight:700;border:none;cursor:pointer;background:transparent;color:var(--black);font-family:var(--font-body);transition:all .15s">Direct</button>
</div>
<input type="hidden" id="analysisTone" name="analysis_tone" value="balanced">
<p style="font-size:.65rem;font-weight:500;color:rgba(255,255,255,0.8);margin-top:.4rem" id="toneDesc">Clear, helpful insights with context.</p>
</div>
</div>
<!-- ββ RIGHT: Upload + Process ββ -->
<div style="display:flex;flex-direction:column;gap:.85rem">
<h3 style="border-bottom:2px solid var(--black);padding-bottom:.35rem;display:inline-block;align-self:flex-start;font-size:1rem">2. Chat Export</h3>
<div id="dropZone" class="dropzone" style="flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:130px;padding:1.25rem" role="button" tabindex="0" aria-label="Upload chat file">
<svg style="width:32px;height:32px;margin-bottom:.4rem;opacity:0.6" viewBox="0 0 24 24" fill="none" stroke="var(--purple)" stroke-width="1.5"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>
<p style="font-weight:700;margin-bottom:.5rem;font-size:.9rem">Drop your chats here</p>
<label for="chatFile" class="btn btn--purple" style="font-size:.65rem;padding:.3rem .85rem;cursor:pointer;margin:0">Browse Files</label>
<input type="file" id="chatFile" class="sr-only" accept=".txt,.html,.json" multiple required>
</div>
<div id="fileList" class="hidden" style="font-size:.85rem;font-weight:700;padding:.75rem 1rem;background:var(--green);color:var(--white);border:var(--border);border-radius:var(--r-sm);box-shadow:2px 2px 0 0 var(--black)"></div>
<div id="filename-display" class="hidden"></div>
<h3 style="border-bottom:2px solid var(--black);padding-bottom:.35rem;display:inline-block;align-self:flex-start;margin-top:.25rem;font-size:1rem">3. Process</h3>
<!-- API Key Status -->
<div style="display:flex;align-items:center;justify-content:space-between;padding:.75rem;border:var(--border);border-radius:var(--r-sm);background:var(--pink);box-shadow:var(--shadow)">
<div class="flex items-center gap-3">
<span id="apiKeyStatusIcon" style="font-size:.75rem;font-weight:900;background:var(--white);border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border:2px solid var(--black);flex-shrink:0;font-family:var(--font-heading)">API</span>
<div>
<p style="font-weight:900;font-family:var(--font-heading);font-size:.72rem;color:var(--black);margin:0;line-height:1.1">AI Provider</p>
<p id="apiKeyStatusText" style="font-size:.65rem;font-weight:600;color:var(--white);margin:0">API Key Required</p>
</div>
</div>
<button type="button" id="settingsBtn" class="btn btn--yellow" style="font-size:.62rem;padding:.28rem .65rem;margin:0">Configure</button>
</div>
<div id="errorContainer" class="hidden error-box" role="alert" aria-live="polite"></div>
<button id="analyzeBtn" type="submit" class="btn btn--primary btn--full btn--lg" style="font-size:.9rem;padding:.75rem">
Decode My Chat β
</button>
<div class="text-center">
<button type="button" id="trustCenterBtn" style="font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--gray-500);background:none;border:none;padding:0;cursor:pointer">
Wait, is this safe? (Trust Center)
</button>
</div>
<!-- Progress UI -->
<div id="progressUI" class="hidden" style="display:none;flex-direction:column;gap:.75rem;padding:1.25rem;border:var(--border-thick);border-radius:var(--r-card);background:var(--cream);box-shadow:var(--shadow)">
<div class="flex justify-between" style="font-weight:700;font-size:.8rem;text-transform:uppercase">
<span id="statusText" style="color:var(--purple)" class="animate-pulse">Initializing pipeline...</span>
<span id="estimatedTime" style="color:var(--black)">Est: ~30s</span>
</div>
<div class="progress-container" id="progressBarContainer" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
<div id="progressBar" class="progress-bar" style="width:0%"></div>
</div>
<div id="scrubbingIndicator" class="hidden" style="display:none;align-items:center;justify-content:center;gap:.5rem;font-weight:700;font-size:.8rem;background:var(--yellow);padding:.5rem;border:var(--border);border-radius:var(--r-sm);box-shadow:2px 2px 0 0 var(--black)">
Scrubbing PII Locallyβ¦
</div>
</div>
</div>
</form>
</div>
</div>
</section>
<!-- βββ FAQ βββ -->
<section style="padding-bottom:3rem">
<div class="container" style="max-width:700px">
<div class="text-center mb-6">
<span class="pill-label pill-label--yellow mb-3 inline-block">faq</span>
<h2>Frequently Asked Questions</h2>
</div>
<div id="faqList">
<div class="faq-item">
<button class="faq-question" type="button">Is my data safe? <span class="faq-icon">+</span></button>
<div class="faq-answer">Yes. Your chat file is scrubbed of PII (phone numbers, emails) entirely in your browser before anything is sent. The server processes data in RAM only. Nothing is written to disk or stored in any database. Data is destroyed within milliseconds of your report rendering.</div>
</div>
<div class="faq-item">
<button class="faq-question" type="button">Do you store my API key? <span class="faq-icon">+</span></button>
<div class="faq-answer">No. Your API key is stored only in your browser's sessionStorage and is sent directly to the LLM provider. We never log, store, or cache your key on our servers.</div>
</div>
<div class="faq-item">
<button class="faq-question" type="button">Which LLM gives the best results? <span class="faq-icon">+</span></button>
<div class="faq-answer">All supported models (GPT-4o, Claude 3.5, Gemini Pro) produce excellent results. GPT-4o tends to give the most detailed coaching recommendations, while Claude excels at nuanced emotional analysis.</div>
</div>
<div class="faq-item">
<button class="faq-question" type="button">How long does analysis take? <span class="faq-icon">+</span></button>
<div class="faq-answer">The analytics engine runs in under 1 second. The AI narrative generation takes 10β20 seconds depending on your LLM provider and chat length.</div>
</div>
<div class="faq-item">
<button class="faq-question" type="button">What file formats are supported? <span class="faq-icon">+</span></button>
<div class="faq-answer">WhatsApp (.txt export), Telegram (.html export), Instagram (.json export), and Discord (.json export). We're working on iMessage support.</div>
</div>
</div>
</div>
</section>
<!-- βββ PRIVACY PROMISE βββ -->
<section style="background:var(--green);padding:1.5rem 0;border-top:var(--border-thick);border-bottom:var(--border-thick)">
<div class="container flex flex-wrap justify-center gap-6 text-center" style="font-weight:900;font-family:var(--font-heading);color:var(--black);font-size:.95rem;text-transform:uppercase;letter-spacing:.03em">
<span>β’ Never stored on disk</span>
<span>β’ Anonymized before LLM</span>
<span>β’ Deleted after analysis</span>
<span>β’ Open source</span>
</div>
</section>
<!-- βββ FOOTER βββ -->
<footer style="background:var(--black);color:var(--white);padding:4rem 0 2.5rem;position:relative;overflow:hidden">
<!-- Wave divider -->
<svg style="position:absolute;top:0;left:0;width:100%;transform:translateY(-98%)" preserveAspectRatio="none" viewBox="0 0 1440 64"><path fill="var(--black)" d="M0,32L120,37.3C240,43,480,53,720,48C960,43,1200,37,1320,34.7L1440,32L1440,64L0,64Z"/></svg>
<!-- Decorative corner dots -->
<div style="position:absolute;top:2rem;left:2rem;display:flex;gap:6px;opacity:0.15">
<span style="width:8px;height:8px;border-radius:50%;background:var(--pink)"></span>
<span style="width:8px;height:8px;border-radius:50%;background:var(--yellow)"></span>
<span style="width:8px;height:8px;border-radius:50%;background:var(--green)"></span>
</div>
<div style="position:absolute;bottom:2rem;right:2rem;display:flex;gap:6px;opacity:0.15">
<span style="width:8px;height:8px;border-radius:50%;background:var(--orange)"></span>
<span style="width:8px;height:8px;border-radius:50%;background:var(--purple)"></span>
<span style="width:8px;height:8px;border-radius:50%;background:var(--blue)"></span>
</div>
<div class="container text-center" style="position:relative;z-index:1">
<!-- Brand -->
<p style="font-family:var(--font-heading);font-weight:900;font-size:2rem;color:var(--yellow);text-shadow:3px 3px 0 rgba(0,0,0,0.4);margin-bottom:.25rem;letter-spacing:-0.03em">The Algorithm</p>
<p style="font-family:var(--font-heading);font-style:italic;font-weight:700;font-size:.85rem;color:var(--gray-400);margin-bottom:2rem">Decode your digital relationships</p>
<!-- Nav links as pills -->
<div style="display:flex;justify-content:center;flex-wrap:wrap;gap:.5rem;margin-bottom:2rem">
<a href="#upload" style="font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--black);background:var(--yellow);padding:.35rem .9rem;border-radius:var(--r-pill);border:2px solid var(--black);box-shadow:2px 2px 0 0 rgba(255,255,255,0.1);text-decoration:none;transition:all .15s">Analyze</a>
<a href="/instructions" style="font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--white);background:transparent;padding:.35rem .9rem;border-radius:var(--r-pill);border:1.5px solid var(--gray-600);text-decoration:none;transition:all .15s">How to Export</a>
<a href="/privacy" style="font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--white);background:transparent;padding:.35rem .9rem;border-radius:var(--r-pill);border:1.5px solid var(--gray-600);text-decoration:none;transition:all .15s">Privacy</a>
</div>
<!-- Divider -->
<div style="width:60px;height:3px;background:var(--purple);margin:0 auto 1.5rem;border-radius:2px"></div>
<!-- Bottom line -->
<p style="font-size:.7rem;color:var(--gray-600);font-weight:500;margin:0">Privacy-first AI analysis. © 2026 The Algorithm.</p>
</div>
</footer>
<!-- βββββββββββββ MODALS & OVERLAYS βββββββββββ -->
<!-- Loading Overlay -->
<div id="loading-overlay" class="loading-overlay hidden">
<div style="font-family:var(--font-heading);font-weight:900;font-size:3rem;margin-bottom:1rem;color:var(--yellow);text-shadow:3px 3px 0 var(--black)">...</div>
<h2>Decoding<br>Relationshipβ¦</h2>
<p>Running local ML + LLM extraction. Hold tight, this takes 10β20 seconds.</p>
</div>
<!-- Settings Modal -->
<div id="settingsModal" class="modal-backdrop" role="dialog" aria-modal="true" aria-labelledby="settingsTitle">
<div id="settingsContent" class="modal-content" style="transform-origin:center;transform:scale(0.95) rotate(-1deg)">
<button id="closeSettings" class="modal-close" aria-label="Close">×</button>
<div class="text-center mb-6" style="border-bottom:3px solid var(--black);padding-bottom:1rem">
<div style="font-size:1.5rem;margin-bottom:.5rem;font-family:var(--font-heading);font-weight:900;color:var(--purple)">β</div>
<h2 id="settingsTitle" style="font-size:1.5rem">API Config</h2>
<p style="font-size:.8rem;color:var(--gray-500);font-weight:500;margin:0">Bring Your Own Key (BYOK)</p>
</div>
<div style="display:flex;flex-direction:column;gap:1.25rem">
<div>
<label for="llmProvider" style="display:block;font-weight:700;font-size:.8rem;text-transform:uppercase;margin-bottom:.35rem">Provider</label>
<select id="llmProvider" class="field-input">
<option value="openai">OpenAI (GPT-4o)</option>
<option value="anthropic">Anthropic (Claude 3.5)</option>
<option value="gemini">Google (Gemini 2.5 Flash)</option>
<option value="grok">xAI (Grok-2)</option>
</select>
</div>
<div>
<div class="flex justify-between items-center mb-2">
<label for="apiKey" style="font-weight:700;font-size:.8rem;text-transform:uppercase;margin:0">API Key</label>
<a href="/instructions#api-keys" style="font-size:.7rem;font-weight:600;color:var(--pink);text-decoration:none">Where to get this?</a>
</div>
<div style="position:relative">
<input type="password" id="apiKey" placeholder="sk-..." class="field-input" maxlength="512" style="padding-right:3rem">
<button type="button" id="toggleApiKey" aria-label="Show API Key" style="position:absolute;right:.75rem;top:50%;transform:translateY(-50%);background:var(--white);border:var(--border-thin);border-radius:4px;padding:3px 5px;cursor:pointer;display:flex">
<svg id="eyeIcon" width="16" height="16" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"/></svg>
</button>
</div>
<p id="providerHint" style="font-size:.65rem;font-weight:500;color:var(--gray-400);margin-top:.35rem;min-height:1rem"></p>
</div>
<div id="hfUrlContainer" class="hidden">
<label for="hfUrl" style="display:block;font-weight:700;font-size:.8rem;text-transform:uppercase;margin-bottom:.35rem">Lightning Studio API URL</label>
<input type="url" id="hfUrl" placeholder="https://xxxx-8000.lit.ai/analyze" class="field-input" maxlength="512">
</div>
<button id="saveSettingsBtn" class="btn btn--purple btn--full" style="margin-top:.5rem">Save & Close</button>
<p id="apiKeyFormatHint" style="font-size:.6rem;font-weight:600;color:var(--gray-400);text-align:center;margin:0;text-transform:uppercase">Locally stored β’ Never hits databases</p>
</div>
</div>
</div>
<!-- Trust Center Modal -->
<div id="trustCenterModal" class="modal-backdrop" role="dialog" aria-modal="true" aria-labelledby="trustCenterTitle">
<div id="trustCenterContent" class="modal-content" style="background:var(--blue);max-width:550px;transform:scale(0.95) rotate(1deg)">
<button id="closeTrustCenter" class="modal-close" style="background:var(--white)" aria-label="Close">×</button>
<div class="text-center mb-6">
<div style="width:64px;height:64px;background:var(--white);border-radius:50%;border:var(--border-thick);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow);margin:0 auto 1rem;transform:rotate(-6deg)"><svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="var(--black)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg></div>
<h2 id="trustCenterTitle" style="color:var(--white);text-shadow:2px 2px 0 var(--black);font-size:2rem">Trust Center</h2>
</div>
<div style="background:var(--white);border:var(--border-thick);border-radius:var(--r-card);padding:1.5rem;box-shadow:inset 3px 3px 0 0 rgba(0,0,0,0.07);margin-bottom:1.5rem;transform:rotate(-0.5deg)">
<div class="flex gap-3 mb-4" style="align-items:flex-start">
<span style="width:20px;height:20px;background:var(--pink);border-radius:50%;display:inline-block;flex-shrink:0;margin-top:4px"></span>
<div>
<strong style="font-family:var(--font-heading);color:var(--pink);display:block;margin-bottom:2px">Local Redaction</strong>
<span style="font-size:.85rem;font-weight:500;color:var(--gray-600);line-height:1.5">Before a single byte leaves your computer, phones and emails are replaced with placeholders.</span>
</div>
</div>
<div class="flex gap-3 mb-4" style="align-items:flex-start">
<span style="width:20px;height:20px;background:var(--orange);border-radius:50%;display:inline-block;flex-shrink:0;margin-top:4px"></span>
<div>
<strong style="font-family:var(--font-heading);color:var(--orange);display:block;margin-bottom:2px">Instant Destruction</strong>
<span style="font-size:.85rem;font-weight:500;color:var(--gray-600);line-height:1.5">No database. Data processed in RAM and destroyed 1ms after your report renders.</span>
</div>
</div>
<div class="flex gap-3" style="align-items:flex-start">
<span style="width:20px;height:20px;background:var(--purple);border-radius:50%;display:inline-block;flex-shrink:0;margin-top:4px"></span>
<div>
<strong style="font-family:var(--font-heading);color:var(--purple);display:block;margin-bottom:2px">Safe LLM Mode</strong>
<span style="font-size:.85rem;font-weight:500;color:var(--gray-600);line-height:1.5">AI models receive statistics, not your raw conversations. Never used for training.</span>
</div>
</div>
</div>
<button id="understoodBtn" class="btn btn--yellow btn--full btn--lg">Got it</button>
</div>
</div>
<script src="{{ url_for('static', filename='js/app.js') }}?v=5.0"></script>
</body>
</html> |