File size: 26,608 Bytes
c97ad08
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ca2bb8e
 
 
 
c97ad08
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ca2bb8e
c97ad08
ca2bb8e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c97ad08
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7303ce7
 
 
 
 
 
 
 
 
 
 
 
 
 
c97ad08
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0e8e243
 
 
 
 
 
 
 
 
c97ad08
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e34beb2
 
 
 
 
 
 
 
 
 
 
 
 
 
c97ad08
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ee8ca43
 
 
 
 
 
 
bca1ea2
 
 
 
ee8ca43
 
 
 
 
 
 
bca1ea2
ee8ca43
 
 
 
1bbff15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e34beb2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12d2e34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
869c297
 
 
1bbff15
 
ca2bb8e
 
12d2e34
 
 
 
 
 
 
c97ad08
 
 
 
 
 
 
 
 
 
 
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
/* ============================================================
   FitCheck — design system
   Dark-first. Every text/status colour clears WCAG AA on the
   card surface (#181B20). Tokens verified by research agent.
   ============================================================ */

:root {
  /* Background layers */
  --bg-base:    #0F1115;
  --bg-raised:  #181B20;
  --bg-inset:   #22262E;
  --border:     #2A2F38;
  --border-hi:  #3A4150;

  /* Text */
  --text-primary:   #ECEEF2;
  --text-secondary: #B4BAC4;
  --text-muted:     #868E9C;

  /* Accent — warm indigo */
  --accent:        #818CF8;
  --accent-strong: #6366F1;
  --accent-soft:   rgba(129,140,248,0.14);

  /* Status */
  --ok:   #4ADE80;
  --warn: #FBBF24;
  --no:   #F87171;
  --ok-soft:   rgba(74,222,128,0.13);
  --warn-soft: rgba(251,191,36,0.13);
  --no-soft:   rgba(248,113,113,0.13);

  /* Spacing scale (4px base) */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px;
  --s-5:24px; --s-6:32px; --s-7:48px; --s-8:64px;

  /* Radius */
  --r-sm:8px; --r-md:14px; --r-lg:20px; --r-pill:999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.30);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.45);
  --glow: 0 0 0 1px var(--accent-soft), 0 8px 24px rgba(99,102,241,0.22);

  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(99,102,241,0.10), transparent 60%),
    radial-gradient(1000px 500px at -10% 10%, rgba(74,222,128,0.05), transparent 55%),
    var(--bg-base);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1,h2,h3 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.02em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

.label {
  display: block;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: var(--s-2);
}
.hint { font-size: 13px; color: var(--text-muted); margin-top: var(--s-1); }

/* Icons (inline SVG; lucide uses stroke, brand logos use fill) */
.ic { display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex: none; }
.ic svg { width: 1em; height: 1em; display: block; }
.optional { font-weight: 500; color: var(--text-muted); font-size: 13px; }

/* ----------------------------------------------------------- Topbar */
.topbar {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  max-width: 1180px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-head); font-weight: 800; font-size: 20px;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: grid; place-items: center;
  box-shadow: var(--glow);
  color: #fff;
}
.logo-mark .ic { font-size: 18px; }
.logo-mark .ic svg { stroke-width: 3; }
.logo .tick { color: var(--ok); }
.topbar .spacer { flex: 1; }
.topbar nav a { color: var(--text-secondary); font-size: 14px; font-weight: 500; margin-left: var(--s-4); }
.topbar nav a:hover { color: var(--text-primary); text-decoration: none; }

/* ----------------------------------------------------------- Layout */
.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--s-5) var(--s-8); }

.hero { text-align: center; padding: var(--s-6) 0 var(--s-7); }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 5px 12px; border-radius: var(--r-pill);
  margin-bottom: var(--s-4);
}
.hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.hero h1 .accent { color: var(--accent); }
.hero p { color: var(--text-secondary); font-size: clamp(15px,1.6vw,18px); max-width: 620px; margin: var(--s-4) auto 0; }

.layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--s-5);
  align-items: start;
}
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

.panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.form-panel { padding: var(--s-5); position: sticky; top: var(--s-4); }
@media (min-width: 901px) {
  /* tall forms (long descriptions, many pickers) scroll inside the panel */
  .form-panel { max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; }
}
@media (max-width: 900px) { .form-panel { position: static; } }

.step { margin-bottom: var(--s-5); }
.step-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.step-num {
  width: 26px; height: 26px; border-radius: var(--r-pill); flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  font-family: var(--font-head);
}
.step-head h2 { font-size: 17px; font-weight: 700; }

.field { margin-bottom: var(--s-4); }

/* Segmented control */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.segmented.cols-3 { grid-template-columns: repeat(3, 1fr); }
.seg-btn {
  background: var(--bg-inset); border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: var(--s-2); justify-content: center;
  transition: transform .15s, border-color .15s, color .15s, background .15s;
}
.seg-btn:hover { border-color: var(--border-hi); color: var(--text-primary); }
.seg-btn.active {
  background: var(--accent-soft); border-color: var(--accent);
  color: var(--text-primary); box-shadow: var(--shadow-sm);
}
.seg-btn .ic { font-size: 17px; color: var(--text-muted); }
.seg-btn.active .ic { color: var(--segc, var(--accent)); }
.seg-btn .ic.brand { color: var(--text-secondary); }
.seg-btn.active .ic.brand { color: var(--segc, var(--text-primary)); }
.seg-btn.disabled { opacity: .3; pointer-events: none; }

/* Each position gets its own accent when selected — coloured boundaries,
   line icons stay line icons. */
.segmented .seg-btn:nth-child(1) { --segc: #60A5FA; }
.segmented .seg-btn:nth-child(2) { --segc: #4ADE80; }
.segmented .seg-btn:nth-child(3) { --segc: #F472B6; }
.segmented .seg-btn:nth-child(4) { --segc: #FBBF24; }
.segmented .seg-btn:nth-child(5) { --segc: #2DD4BF; }
.segmented .seg-btn:nth-child(6) { --segc: #C084FC; }
.seg-btn.active {
  border-color: var(--segc, var(--accent)) !important;
  background: color-mix(in srgb, var(--segc, var(--accent)) 13%, transparent);
}

/* Native select / input styling */
select, input[type="text"], input[type="number"], textarea {
  width: 100%; font-family: inherit; font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-inset);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
select:hover, input:hover, textarea:hover { border-color: var(--border-hi); }
select:focus, input:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23868E9C' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 38px;
}
textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }

/* Use-case picker */
.uc-group { margin-bottom: var(--s-4); }
.uc-cat {
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: var(--s-2); display: flex; align-items: center; gap: 6px;
}
.uc-grid { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.uc-pill {
  background: var(--bg-inset); border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: var(--r-pill);
  padding: 7px 13px; font-size: 13.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .15s, border-color .15s, color .15s, background .15s;
}
.uc-pill:hover { border-color: var(--border-hi); color: var(--text-primary); transform: translateY(-1px); }
.uc-pill.active {
  background: var(--accent-soft); border-color: var(--accent); color: var(--text-primary);
}
.uc-pill .pic { font-size: 15px; color: var(--text-muted); }
.uc-pill:hover .pic { color: var(--text-secondary); }
.uc-pill.active .pic { color: var(--accent); }
.uc-cat .ic { font-size: 14px; color: var(--text-muted); }

/* Same coloured-boundary treatment as the segmented rows: each position in a
   group gets its own accent when selected (palette cycles past 6 items). */
.uc-grid .uc-pill:nth-child(6n+1) { --segc: #60A5FA; }
.uc-grid .uc-pill:nth-child(6n+2) { --segc: #4ADE80; }
.uc-grid .uc-pill:nth-child(6n+3) { --segc: #F472B6; }
.uc-grid .uc-pill:nth-child(6n+4) { --segc: #FBBF24; }
.uc-grid .uc-pill:nth-child(6n+5) { --segc: #2DD4BF; }
.uc-grid .uc-pill:nth-child(6n)   { --segc: #C084FC; }
.uc-pill.active {
  border-color: var(--segc, var(--accent));
  background: color-mix(in srgb, var(--segc, var(--accent)) 13%, transparent);
}
.uc-pill.active .pic { color: var(--segc, var(--accent)); }

/* Disclosure (advanced / accordions) */
details.disc {
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg-inset); margin-top: var(--s-3); overflow: hidden;
}
details.disc > summary {
  list-style: none; cursor: pointer; padding: 12px 14px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  display: flex; align-items: center; gap: var(--s-2);
}
details.disc > summary::-webkit-details-marker { display: none; }
details.disc > summary .chev { margin-left: auto; transition: transform .2s; color: var(--text-muted); font-size: 16px; }
details.disc[open] > summary .chev { transform: rotate(180deg); }
details.disc > summary .sum-ic { font-size: 16px; color: var(--text-muted); }
details.disc > summary:hover { color: var(--text-primary); }
.disc-body { padding: 0 14px 14px; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.disc-body code {
  background: var(--bg-base); border: 1px solid var(--border); border-radius: 5px;
  padding: 1px 6px; font-size: 13px; color: var(--text-primary);
}
.disc-body dl { display: grid; gap: var(--s-3); }
.disc-body dt { font-weight: 700; color: var(--text-primary); font-family: var(--font-head); }
.disc-body dd { color: var(--text-muted); }

.parse-btn {
  margin-top: var(--s-2); width: 100%;
  background: var(--accent-soft); border: 1px solid var(--accent);
  color: var(--text-primary); border-radius: var(--r-sm);
  padding: 9px 12px; font-size: 13.5px; font-weight: 600;
  transition: filter .15s, transform .15s;
}
.parse-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* Primary CTA */
.cta {
  width: 100%; border: none; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff; font-weight: 700; font-size: 16px; font-family: var(--font-head);
  padding: 14px; margin-top: var(--s-2);
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.cta:hover { transform: translateY(-2px); box-shadow: var(--glow); filter: brightness(1.05); }
.cta:active { transform: translateY(0); }
.cta .ic { font-size: 18px; }

/* ----------------------------------------------------------- Results */
.results-panel { padding: var(--s-5); min-height: 400px; }

.empty-state { text-align: center; color: var(--text-muted); padding: var(--s-8) var(--s-4); }
.empty-state .big { font-size: 46px; margin-bottom: var(--s-3); color: var(--text-muted); display: flex; justify-content: center; }
.empty-state p { max-width: 360px; margin: var(--s-2) auto 0; }

.verdict {
  border: 1px solid var(--border); border-left: 4px solid var(--status, var(--accent));
  border-radius: var(--r-md); background: var(--bg-raised);
  padding: var(--s-5); margin-bottom: var(--s-5);
}
.verdict .badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--status-soft, var(--accent-soft)); color: var(--status, var(--accent));
  font: 700 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: var(--s-3);
}
.verdict .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.verdict h2 { font-size: 22px; margin-bottom: var(--s-3); }
.verdict p { color: var(--text-secondary); margin-bottom: var(--s-2); }
.verdict .note {
  font-size: 13.5px; color: var(--text-muted); margin-top: var(--s-3);
  padding-top: var(--s-3); border-top: 1px solid var(--border);
}

.section-title {
  font-size: 15px; font-weight: 700; font-family: var(--font-head);
  color: var(--text-primary); margin: var(--s-5) 0 var(--s-3);
  display: flex; align-items: center; gap: var(--s-2);
}
.section-title .sub { font-size: 13px; font-weight: 500; color: var(--text-muted); font-family: var(--font-body); }

/* Gauge */
.gauge-card { background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4) var(--s-4) var(--s-3); }
.gauge-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.gauge-top .need { font-weight: 700; color: var(--status, var(--text-primary)); font-family: var(--font-head); }
.gauge {
  position: relative; height: 16px; border-radius: var(--r-pill);
  background: var(--bg-base); overflow: hidden; border: 1px solid var(--border);
}
.gauge-fill {
  height: 100%; width: calc(var(--pct,0) * 1%); border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gcolor, var(--accent)), color-mix(in srgb, var(--gcolor, var(--accent)) 65%, #fff));
  transition: width .8s cubic-bezier(.22,1,.36,1), background .4s;
}
.gauge-need {
  position: absolute; top: -4px; width: 2px; height: 24px;
  background: var(--text-primary); border-radius: 2px; opacity: .85;
  left: calc(var(--needpct,50)*1%); transition: left .8s cubic-bezier(.22,1,.36,1);
}
.gauge-legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: 12px; font-size: 12.5px; color: var(--text-muted); }
.gauge-legend .item { display: inline-flex; align-items: center; gap: 6px; }
.gauge-legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.gauge-legend .marker { font-weight: 600; color: var(--text-secondary); }

/* Option cards (the matrix, re-imagined) */
.opt-grid { display: grid; gap: var(--s-3); }
.opt {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: var(--s-3);
  background: var(--bg-raised); border: 1px solid var(--border);
  border-left: 4px solid var(--status, var(--border)); border-radius: var(--r-md);
  padding: var(--s-4);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.opt:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.opt .vdot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--status-soft); color: var(--status);
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.opt .name { font-weight: 700; font-family: var(--font-head); font-size: 15px; }
.opt .name a { color: var(--text-primary); }
.opt .name a:hover { color: var(--accent); text-decoration: none; }
.lic {
  display: inline-block; margin-left: 8px; padding: 1px 8px; vertical-align: 1px;
  border-radius: var(--r-pill); border: 1px solid var(--border-hi);
  font: 600 10.5px/1.6 var(--font-body); letter-spacing: .02em;
  color: var(--text-muted); text-transform: uppercase;
}
.lic.warn { color: var(--warn); border-color: var(--warn); opacity: .9; }
.lic.gatechip { color: var(--accent); border-color: var(--accent); }
.prov {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted); line-height: 1.55;
}
.opt .desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.opt .meta { text-align: right; font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
.opt .meta b { color: var(--text-primary); font-family: var(--font-head); }
.opt .feel { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* Tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: var(--s-3); }
.tool {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--s-4);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tool:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-hi); }
.tool .tool-head { display: flex; align-items: center; justify-content: space-between; }
.tool .tname { font-weight: 700; font-family: var(--font-head); font-size: 15px; }
.tool .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 9px; border-radius: var(--r-pill); }
.tool .tag.best { background: var(--ok-soft); color: var(--ok); }
.tool .tag.mid  { background: var(--accent-soft); color: var(--accent); }
.tool .twhat { font-size: 13.5px; color: var(--text-secondary); margin: var(--s-2) 0; line-height: 1.5; }
.tool .tinstall { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.tool .tinstall .ic { font-size: 14px; }

/* Command block */
.cmd-intro { font-size: 14px; color: var(--text-secondary); margin: var(--s-2) 0 var(--s-3); }
.cmd { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 620px) { .cmd { grid-template-columns: 1fr; } }
.cmd-box { background: var(--bg-base); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.cmd-box .cmd-label { font-size: 12px; font-weight: 600; color: var(--text-muted); padding: 10px 13px 0; display:flex; justify-content:space-between; align-items:center; }
.cmd-box pre { padding: 8px 13px 13px; overflow-x: auto; }
.cmd-box code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; color: #a5f3c4; }
.copy-btn {
  background: var(--bg-inset); border: 1px solid var(--border); color: var(--text-secondary);
  border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 600;
}
.copy-btn:hover { color: var(--text-primary); border-color: var(--border-hi); }
.copy-btn.done { color: var(--ok); border-color: var(--ok); }

/* "Why this speed?" roofline visualizer */
.viz-disc { margin-top: var(--s-5); background: var(--bg-raised); }
.viz-disc > summary .sub-inline { font-weight: 500; color: var(--text-muted); font-size: 12.5px; margin-left: 4px; }
.roofline-wrap svg { width: 100%; height: auto; display: block; }
.rl-grid { stroke: var(--border); stroke-width: 1; opacity: .5; }
.rl-tick { fill: var(--text-muted); font: 500 10.5px var(--font-body); }
.rl-axis { fill: var(--text-secondary); font: 600 11.5px var(--font-body); }
.rl-dot { opacity: .6; }
.rl-p1 { fill: #2DD4BF; }   /* ~1B runs: teal */
.rl-p8 { fill: #F472B6; }   /* ~8B runs: pink */
.rl-p14 { fill: #93C5FD; }  /* ~14B runs: light blue */
.rl-roof { stroke: var(--warn); stroke-width: 1.8; stroke-dasharray: 6 5; opacity: .9; }
.rl-band { stroke: var(--accent); stroke-width: 5; opacity: .35; stroke-linecap: round; }
.rl-you { fill: var(--accent); stroke: #fff; stroke-width: 1.5; }
.rl-you-label { fill: var(--text-primary); font: 700 12px var(--font-head); }
.rl-legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-2); font-size: 12px; color: var(--text-muted); }
.rl-legend .item { display: inline-flex; align-items: center; gap: 6px; }
.rl-legend .sw { width: 10px; height: 10px; border-radius: 50%; }
.rl-p1-sw { background: #2DD4BF; } .rl-p8-sw { background: #F472B6; } .rl-p14-sw { background: #93C5FD; }
.rl-roof-sw { background: var(--warn); border-radius: 2px; height: 3px; width: 14px; }
.rl-you-sw { background: var(--accent); }
.viz-caption { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-top: var(--s-3); }

/* Multi-goal overview */
.goal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s-3); }
.goal-card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-left: 4px solid var(--status, var(--border)); border-radius: var(--r-md);
  padding: var(--s-4); cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.goal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.goal-card .badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--status-soft); color: var(--status);
  font: 700 11.5px/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em;
}
.goal-card .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.goal-name { font: 700 15px/1.3 var(--font-head); margin-top: var(--s-3); }
.goal-pick { font-size: 13.5px; color: var(--text-secondary); margin-top: 4px; }
.goal-need { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.goal-more { font-size: 12.5px; font-weight: 600; color: var(--accent); margin-top: var(--s-3); }
.back-link {
  background: var(--bg-inset); border: 1px solid var(--border); color: var(--text-secondary);
  border-radius: var(--r-pill); padding: 6px 14px; font-size: 13px; font-weight: 600;
  margin-bottom: var(--s-4); display: inline-block;
}
.back-link:hover { color: var(--text-primary); border-color: var(--border-hi); }
.goal-lines { list-style: none; padding: 0; margin: var(--s-2) 0 0; }
.goal-lines li {
  display: flex; justify-content: space-between; gap: var(--s-3);
  font-size: 13px; color: var(--text-secondary); padding: 3px 0;
  border-bottom: 1px dashed var(--border);
}
.goal-lines li:last-child { border-bottom: none; }
.goal-lines li b { color: var(--text-primary); font-weight: 600; text-align: right; }
.goal-lines li i { color: var(--text-muted); font-style: normal; font-size: 12px; }

/* Live single-model lookup card */
.lookup-card {
  border: 1px solid var(--border); border-left: 4px solid var(--status, var(--accent));
  border-radius: var(--r-md); background: var(--bg-raised);
  padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5);
}
.lookup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-2); }
.live-tag {
  font: 600 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em;
  color: var(--accent); border: 1px dashed var(--accent); border-radius: var(--r-pill);
  padding: 4px 10px; opacity: .85;
}
.lookup-explain { color: var(--text-secondary); font-size: 14.5px; }
.lookup-meta { display: flex; gap: var(--s-4); margin-top: var(--s-2); font-size: 13.5px; color: var(--text-secondary); }

/* Ask a follow-up (the model brick) */
.ask-row { display: flex; gap: var(--s-2); }
.ask-row input {
  flex: 1; background: var(--bg-inset); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 14px; font-size: 15px;
}
.ask-btn {
  flex: none; width: 46px; border: none; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff; display: grid; place-items: center;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.ask-btn:hover { transform: translateY(-2px); box-shadow: var(--glow); filter: brightness(1.05); }
.ask-btn .ic { font-size: 18px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.ask-chip {
  background: var(--bg-inset); border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: var(--r-pill);
  padding: 6px 13px; font-size: 13px; font-weight: 500;
  transition: border-color .15s, color .15s, background .15s;
}
.ask-chip:hover { border-color: var(--accent); color: var(--text-primary); background: var(--accent-soft); }

.ask-answer { margin-top: var(--s-4); }
.ans-card {
  background: var(--bg-inset); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
}
.ans-card h3 { font-size: 17px; font-weight: 700; margin-bottom: var(--s-2); }
.ans-card p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }
.ans-next {
  display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3);
  font-size: 14px; font-weight: 600; color: var(--accent);
}
.ans-next .ic { font-size: 15px; flex: none; }
.ans-card.ans-error { border-left-color: var(--no); }
.ans-card.ans-error h3 { color: var(--no); }
.ans-card.ans-error p { color: var(--text-secondary); font-size: 13.5px; word-break: break-word; }
.ans-loading { display: flex; align-items: center; gap: var(--s-2); color: var(--text-muted); font-size: 14px; padding: var(--s-2) 0; flex-wrap: wrap; }
.ans-cold { font-size: 12px; color: var(--text-muted); opacity: .75; }
.tick-note { font-size: 12px; color: var(--text-muted); opacity: .8; }
#parse-hint .spinner, .ans-loading .spinner { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.spinner {
  width: 15px; height: 15px; flex: none; border-radius: 50%;
  border: 2px solid var(--border-hi); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.foot { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: var(--s-7); line-height: 1.6; }
.foot b { color: var(--text-secondary); }

/* Reveal animation */
.reveal { animation: reveal .5s cubic-bezier(.22,1,.36,1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}