@vocdoni/skills 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/.claude-plugin/marketplace.json +22 -2
  2. package/CHANGELOG.md +22 -0
  3. package/README.md +25 -0
  4. package/package.json +1 -1
  5. package/plugins/agentic-dev/.claude-plugin/plugin.json +1 -1
  6. package/plugins/agentic-dev/skills/subagent-driven-development/SKILL.md +10 -5
  7. package/plugins/agentic-dev/skills/subagent-driven-development/references/dispatch.md +20 -0
  8. package/plugins/agentic-dev/skills/subagent-driven-development/references/ledger.md +1 -0
  9. package/plugins/agentic-dev/skills/subagent-driven-development/scripts/task-brief.sh +2 -0
  10. package/plugins/agentic-dev/skills/subagent-driven-development/templates/plan.md +4 -0
  11. package/plugins/claude-pi-subagent/.claude-plugin/marketplace.json +1 -1
  12. package/plugins/claude-pi-subagent/plugins/pi-subagent/.claude-plugin/plugin.json +1 -1
  13. package/plugins/claude-pi-subagent/plugins/pi-subagent/dist/server.mjs +18072 -3144
  14. package/plugins/claude-pi-subagent/plugins/pi-subagent/package-lock.json +171 -184
  15. package/plugins/claude-pi-subagent/plugins/pi-subagent/package.json +4 -4
  16. package/plugins/claude-pi-subagent/plugins/pi-subagent/src/schemas.ts +4 -0
  17. package/plugins/claude-pi-subagent/plugins/pi-subagent/src/server.ts +1 -1
  18. package/plugins/claude-pi-subagent/plugins/pi-subagent/test/schemas.test.ts +30 -0
  19. package/plugins/vocdoni-comments/.claude-plugin/plugin.json +21 -0
  20. package/plugins/vocdoni-comments/skills/comments/SKILL.md +59 -0
  21. package/plugins/vocdoni-comments/skills/comments/trim.md +78 -0
  22. package/plugins/vocdoni-ui-style/.claude-plugin/plugin.json +25 -0
  23. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/SKILL.md +99 -0
  24. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/chakra/product.tsx +263 -0
  25. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/brand.tsx +195 -0
  26. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/button.tsx +67 -0
  27. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/status-badge.tsx +93 -0
  28. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo-ink.svg +15 -0
  29. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo-white.svg +15 -0
  30. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo.svg +15 -0
  31. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark-ink.svg +7 -0
  32. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark-white.svg +7 -0
  33. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark.svg +7 -0
  34. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-footer.webp +0 -0
  35. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-home-hero.webp +0 -0
  36. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-mobile.webp +0 -0
  37. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-stats-and-panels.webp +0 -0
  38. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-vertical-hero.webp +0 -0
  39. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-washes-and-comparison.webp +0 -0
  40. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/product-process-results.webp +0 -0
  41. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/product-signin.webp +0 -0
  42. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.chakra.ts +285 -0
  43. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.css +847 -0
  44. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.tailwind.css +352 -0
  45. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.chakra.ts +410 -0
  46. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.css +1116 -0
  47. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.tailwind.css +289 -0
  48. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/editorial-landing.html +358 -0
  49. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/email-vote-invitation.html +58 -0
  50. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-auth.html +81 -0
  51. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-builder.html +147 -0
  52. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-dashboard.html +185 -0
  53. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-voting.html +326 -0
  54. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/brand-core.md +166 -0
  55. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/editorial.md +198 -0
  56. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/product.md +173 -0
  57. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/recipes.md +264 -0
  58. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/stacks.md +196 -0
  59. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/ux-flows.md +110 -0
  60. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/bad-editorial.tsx +15 -0
  61. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/bad-product.tsx +9 -0
  62. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/doc.md +10 -0
  63. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/escaped.json +1 -0
  64. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/good-editorial.tsx +16 -0
  65. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/good-product.css +6 -0
  66. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/locale.json +1 -0
  67. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/multiline-attr.tsx +8 -0
  68. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/multiline-copy.tsx +10 -0
  69. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/regex-literal.tsx +5 -0
  70. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style.mjs +436 -0
@@ -0,0 +1,847 @@
1
+ /*
2
+ * Vocdoni editorial mode - plain CSS (no framework).
3
+ * Tokens mirror vocdoni.io layouts/tailwind.css; component classes reproduce
4
+ * what vocdoni.io renders (measured in the browser), in px so nothing depends on
5
+ * a Tailwind spacing base.
6
+ *
7
+ * Load the fonts before this file. Without a bundler, Google Fonts works:
8
+ * <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ * <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
+ * <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,100..900,0..100,0..1&family=Hanken+Grotesk:wght@100..900&family=JetBrains+Mono:wght@400;500&display=swap">
11
+ * The family names below list both the @fontsource ("... Variable") and the
12
+ * Google Fonts names, so either source works.
13
+ *
14
+ * Classes: tokens and base on :root/body/h1-h6; brand utilities keep vocdoni.io's
15
+ * names (.eyebrow, .press-scale, .card-hover, .image-outline, .mask-gradient-x);
16
+ * everything else is prefixed `vd-`.
17
+ */
18
+
19
+ :root {
20
+ --background: oklch(0.988 0.011 97);
21
+ --foreground: oklch(0.24 0.013 106);
22
+ --card: oklch(0.988 0.011 97);
23
+ --popover: oklch(0.988 0.011 97);
24
+ --secondary: oklch(0.962 0.022 97);
25
+ --muted: oklch(0.936 0.033 97);
26
+ --surface-dark: oklch(0.235 0.012 107);
27
+ --surface-dark-foreground: oklch(0.985 0.012 97);
28
+ --muted-foreground: oklch(0.24 0.013 106 / 0.64);
29
+ --faint: oklch(0.24 0.013 106 / 0.68);
30
+ --border: oklch(0.24 0.013 106 / 0.1);
31
+ --input: oklch(0.24 0.013 106 / 0.1);
32
+ --accent: oklch(0.24 0.013 106 / 0.07);
33
+ --nav-link: oklch(0.24 0.013 106 / 0.65);
34
+ --nav-divider: oklch(0.24 0.013 106 / 0.15);
35
+ --primary: oklch(0.47 0.085 158);
36
+ --primary-foreground: oklch(0.985 0.012 97);
37
+ --ring: oklch(0.47 0.085 158);
38
+ --signal: oklch(0.93 0.11 102);
39
+ --signal-halo: oklch(0.93 0.11 102 / 0.18);
40
+ --destructive: oklch(0.577 0.215 27.3); /* #dc2626: AA with white; vocdoni.io uses #ef4444 */
41
+ --error-fg: oklch(0.577 0.215 27.3); /* error text on cream */
42
+ --destructive-foreground: oklch(1 0 0);
43
+ --success: oklch(0.45 0.12 152);
44
+ --warning: oklch(0.48 0.17 45);
45
+ --brand-whatsapp: oklch(0.42 0.13 155);
46
+ --chart-1: oklch(0.7156 0.0605 248.6845);
47
+ --chart-2: oklch(0.7875 0.0917 35.9616);
48
+ --chart-3: oklch(0.5778 0.0759 254.1573);
49
+ --chart-4: oklch(0.5016 0.0849 259.4902);
50
+ --chart-5: oklch(0.4241 0.0952 264.0306);
51
+ --code-bg: #09090b; /* zinc-950: code is always a dark terminal window, in both modes */
52
+ --code-fg: #f4f4f5;
53
+
54
+ --font-sans: 'Hanken Grotesk Variable', 'Hanken Grotesk', 'Noto Sans Devanagari Variable', system-ui, sans-serif;
55
+ --font-serif: 'Fraunces Variable', 'Fraunces', 'Noto Sans Devanagari Variable', Georgia, serif;
56
+ --font-mono: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, monospace;
57
+
58
+ --radius-sm: 10px;
59
+ --radius-md: 12px;
60
+ --radius-lg: 16px;
61
+ --radius-xl: 20px;
62
+ --radius-card: 20px;
63
+ --radius-3xl: 24px;
64
+
65
+ --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.08);
66
+ --shadow-lg: 0 4px 14px 0 rgb(0 0 0 / 0.16);
67
+ --shadow-xl: 0 8px 24px -4px rgb(0 0 0 / 0.16), 0 2px 6px -2px rgb(0 0 0 / 0.08);
68
+ --shadow-panel: 0 12px 32px -8px oklch(0.24 0.013 106 / 0.16), 0 2px 6px -2px oklch(0.24 0.013 106 / 0.08);
69
+ --shadow-inset-top: inset 0 1px 1px rgb(255 255 255 / 0.14);
70
+ --shadow-button:
71
+ 0 2px 3px -1px oklch(0.24 0.013 106 / 0.12), 0 1px 0 0 oklch(0.24 0.013 106 / 0.03),
72
+ 0 0 0 1px oklch(0.24 0.013 106 / 0.1);
73
+
74
+ --section-y: 32px;
75
+ --ease-press: cubic-bezier(0.2, 0, 0, 1);
76
+ }
77
+ @media (min-width: 640px) {
78
+ :root {
79
+ --section-y: 64px;
80
+ }
81
+ }
82
+ @media (min-width: 1024px) {
83
+ :root {
84
+ --section-y: 96px;
85
+ }
86
+ }
87
+
88
+ .dark {
89
+ --background: oklch(0.22 0.012 106);
90
+ --foreground: oklch(0.95 0.012 97);
91
+ --card: oklch(0.25 0.013 106);
92
+ --popover: oklch(0.25 0.013 106);
93
+ --secondary: oklch(0.27 0.014 106);
94
+ --muted: oklch(0.29 0.016 106);
95
+ --muted-foreground: oklch(0.95 0.012 97 / 0.66);
96
+ --faint: oklch(0.95 0.012 97 / 0.5);
97
+ --border: oklch(1 0 0 / 0.1);
98
+ --input: oklch(1 0 0 / 0.1);
99
+ --accent: oklch(1 0 0 / 0.07);
100
+ --nav-link: oklch(0.95 0.012 97 / 0.65);
101
+ --nav-divider: oklch(1 0 0 / 0.15);
102
+ --primary: oklch(0.62 0.09 158);
103
+ --primary-foreground: oklch(0.2 0.012 106);
104
+ --ring: oklch(0.62 0.09 158);
105
+ --error-fg: oklch(0.75 0.14 25); /* lighter red: AA on the dark background */
106
+ --success: oklch(0.65 0.12 152);
107
+ --warning: oklch(0.78 0.15 50);
108
+ --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.25);
109
+ --shadow-lg: 0 4px 14px 0 rgb(0 0 0 / 0.35);
110
+ --shadow-xl: 0 8px 24px -4px rgb(0 0 0 / 0.35), 0 2px 6px -2px rgb(0 0 0 / 0.25);
111
+ --shadow-panel: 0 12px 32px -8px rgb(0 0 0 / 0.4), 0 2px 6px -2px rgb(0 0 0 / 0.25);
112
+ --shadow-inset-top: inset 0 1px 1px rgb(255 255 255 / 0.1);
113
+ }
114
+
115
+ /* ---------- Base ---------- */
116
+ *,
117
+ *::before,
118
+ *::after {
119
+ box-sizing: border-box;
120
+ border-color: var(--border);
121
+ }
122
+ html {
123
+ scroll-padding-top: 5.5rem;
124
+ }
125
+ @media (prefers-reduced-motion: no-preference) {
126
+ html {
127
+ scroll-behavior: smooth;
128
+ }
129
+ }
130
+ body {
131
+ margin: 0;
132
+ background: var(--background);
133
+ color: var(--foreground);
134
+ font-family: var(--font-sans);
135
+ font-size: 16px;
136
+ line-height: 1.5;
137
+ overflow-x: clip;
138
+ -webkit-font-smoothing: antialiased;
139
+ -moz-osx-font-smoothing: grayscale;
140
+ text-rendering: optimizeLegibility;
141
+ text-wrap: pretty;
142
+ }
143
+ h1,
144
+ h2,
145
+ h3,
146
+ h4,
147
+ h5,
148
+ h6 {
149
+ margin: 0;
150
+ font-family: var(--font-serif);
151
+ font-weight: 400;
152
+ font-variation-settings:
153
+ 'SOFT' 100,
154
+ 'WONK' 0;
155
+ letter-spacing: -0.03em;
156
+ line-height: 1.02;
157
+ text-wrap: balance;
158
+ }
159
+ p {
160
+ margin: 0;
161
+ }
162
+ a {
163
+ color: inherit;
164
+ text-decoration: none;
165
+ }
166
+ :focus-visible {
167
+ outline: 2px solid var(--ring);
168
+ outline-offset: 2px;
169
+ }
170
+ @media (prefers-reduced-motion: reduce) {
171
+ *,
172
+ *::before,
173
+ *::after {
174
+ animation-duration: 0.01ms !important;
175
+ animation-iteration-count: 1 !important;
176
+ transition-duration: 0.01ms !important;
177
+ }
178
+ }
179
+
180
+ /* ---------- Layout ---------- */
181
+ .vd-container {
182
+ width: 100%;
183
+ max-width: 1280px;
184
+ margin-inline: auto;
185
+ padding-inline: 16px;
186
+ }
187
+ @media (min-width: 640px) {
188
+ .vd-container {
189
+ padding-inline: 24px;
190
+ }
191
+ }
192
+ @media (min-width: 1024px) {
193
+ .vd-container {
194
+ padding-inline: 32px;
195
+ }
196
+ }
197
+ .vd-container--narrow {
198
+ max-width: 896px;
199
+ }
200
+ .vd-section {
201
+ padding-block: var(--section-y);
202
+ }
203
+ .vd-section--muted {
204
+ background: var(--muted);
205
+ }
206
+ .vd-section--tint {
207
+ background: color-mix(in oklch, var(--muted) 50%, var(--background));
208
+ }
209
+
210
+ /* ---------- Type ---------- */
211
+ .vd-display {
212
+ font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.75rem); /* 36 -> 60px */
213
+ }
214
+ .vd-h-section {
215
+ font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem); /* 30 -> 44px */
216
+ }
217
+ /* Hero headline: sized from its own measure, not the viewport, so it lands on
218
+ three lines at every width. Wrap it: <div class="vd-hero-measure"><h1 class="vd-hero-title">. */
219
+ .vd-hero-measure {
220
+ container-type: inline-size;
221
+ width: 100%;
222
+ max-width: 48rem;
223
+ }
224
+ .vd-hero-title {
225
+ font-size: clamp(1.5rem, 9cqw, 4.75rem);
226
+ line-height: 0.95;
227
+ overflow-wrap: break-word;
228
+ }
229
+ /* Very narrow phones (~320px): word-granular wrapping needs a slightly smaller ratio */
230
+ @container (max-width: 20rem) {
231
+ .vd-hero-title {
232
+ font-size: 8.4cqw;
233
+ }
234
+ }
235
+ .vd-lede {
236
+ font-size: 18px;
237
+ line-height: 1.625;
238
+ color: var(--muted-foreground);
239
+ max-width: 42rem;
240
+ }
241
+ .vd-muted {
242
+ color: var(--muted-foreground);
243
+ }
244
+ .vd-label {
245
+ font-size: 12px;
246
+ font-weight: 600;
247
+ text-transform: uppercase;
248
+ letter-spacing: 0.05em;
249
+ color: var(--faint);
250
+ }
251
+ .vd-card-title {
252
+ font-family: var(--font-sans);
253
+ font-size: 18px;
254
+ font-weight: 600;
255
+ letter-spacing: normal;
256
+ line-height: 1.375;
257
+ }
258
+
259
+ /* Eyebrow: dot + uppercase label. Signal yellow lives ONLY here. */
260
+ .eyebrow {
261
+ display: inline-flex;
262
+ align-items: center;
263
+ gap: 10px;
264
+ font-family: var(--font-sans);
265
+ font-size: 14px;
266
+ font-weight: 500;
267
+ text-transform: uppercase;
268
+ letter-spacing: 0.11em;
269
+ color: var(--muted-foreground);
270
+ }
271
+ .eyebrow-dot {
272
+ display: inline-block;
273
+ width: 10px; /* renders 10px on vocdoni.io (size-2 on its 5px spacing base) */
274
+ height: 10px;
275
+ flex-shrink: 0;
276
+ border-radius: 9999px;
277
+ background: var(--signal);
278
+ }
279
+ .eyebrow-dot-halo {
280
+ box-shadow: 0 0 0 4px var(--signal-halo);
281
+ }
282
+ .vd-section-header {
283
+ display: flex;
284
+ flex-direction: column;
285
+ gap: 20px;
286
+ }
287
+ .vd-section-header--center {
288
+ align-items: center;
289
+ text-align: center;
290
+ }
291
+ .vd-section-header--center .vd-lede {
292
+ margin-inline: auto;
293
+ }
294
+
295
+ /* ---------- Buttons ---------- */
296
+ .vd-btn {
297
+ display: inline-flex;
298
+ align-items: center;
299
+ justify-content: center;
300
+ gap: 10px;
301
+ height: 45px; /* navbar CTA as rendered; --lg (54px) is the hero/in-page size */
302
+ padding: 0 26px;
303
+ border: 0;
304
+ border-radius: var(--radius-md);
305
+ font-family: var(--font-sans);
306
+ font-size: 14px;
307
+ font-weight: 500;
308
+ line-height: 1;
309
+ white-space: nowrap;
310
+ cursor: pointer;
311
+ text-decoration: none;
312
+ transition:
313
+ color 150ms ease,
314
+ background-color 150ms ease,
315
+ border-color 150ms ease,
316
+ box-shadow 150ms ease,
317
+ scale 150ms var(--ease-press);
318
+ }
319
+ .vd-btn:active {
320
+ scale: 0.96;
321
+ }
322
+ .vd-btn:disabled,
323
+ .vd-btn[aria-disabled='true'] {
324
+ opacity: 0.5;
325
+ pointer-events: none;
326
+ }
327
+ .vd-btn svg {
328
+ width: 20px; /* size-4 on vocdoni.io's 5px spacing base */
329
+ height: 20px;
330
+ flex-shrink: 0;
331
+ }
332
+ /* The ONE top-level CTA per surface (navbar sign-in, hero primary) */
333
+ .vd-btn--dark {
334
+ background: var(--surface-dark);
335
+ color: var(--surface-dark-foreground);
336
+ font-weight: 600;
337
+ box-shadow: var(--shadow-inset-top);
338
+ }
339
+ .vd-btn--dark:hover {
340
+ background: color-mix(in oklch, var(--surface-dark) 90%, transparent);
341
+ }
342
+ /* In-page CTAs and form submits */
343
+ .vd-btn--primary {
344
+ background: var(--primary);
345
+ color: var(--primary-foreground);
346
+ box-shadow: var(--shadow-button);
347
+ }
348
+ .vd-btn--primary:hover {
349
+ background: color-mix(in oklch, var(--primary) 90%, transparent);
350
+ }
351
+ .vd-btn--outline {
352
+ background: var(--background);
353
+ border: 1px solid var(--input);
354
+ color: var(--foreground);
355
+ }
356
+ .vd-btn--outline:hover,
357
+ .vd-btn--ghost:hover {
358
+ background: var(--accent);
359
+ }
360
+ .vd-btn--secondary {
361
+ background: var(--secondary);
362
+ color: var(--foreground);
363
+ }
364
+ .vd-btn--ghost {
365
+ background: transparent;
366
+ color: var(--foreground);
367
+ }
368
+ .vd-btn--link {
369
+ height: auto;
370
+ padding: 0;
371
+ background: none;
372
+ color: var(--primary);
373
+ }
374
+ .vd-btn--link:hover {
375
+ text-decoration: underline;
376
+ text-underline-offset: 4px;
377
+ }
378
+ .vd-btn--link:active {
379
+ scale: 1;
380
+ }
381
+ .vd-btn--quiet {
382
+ /* secondary hero action: text link with icon, no chrome */
383
+ height: auto;
384
+ min-height: 44px;
385
+ padding: 0 10px;
386
+ background: none;
387
+ color: var(--muted-foreground);
388
+ }
389
+ .vd-btn--quiet:hover {
390
+ color: var(--foreground);
391
+ }
392
+ .vd-btn--lg {
393
+ /* the hero CTA: shadcn size='lg' + text-base, px-6 because it carries an icon */
394
+ height: 54px;
395
+ padding: 0 30px;
396
+ font-size: 16px;
397
+ }
398
+ .vd-btn--sm {
399
+ height: 36px;
400
+ padding: 0 14px;
401
+ }
402
+ .vd-btn--pill {
403
+ border-radius: 9999px;
404
+ }
405
+ .vd-btn--icon {
406
+ width: 50px; /* h-10 w-10 on the 5px base */
407
+ height: 50px;
408
+ padding: 0;
409
+ border-radius: 9999px;
410
+ }
411
+
412
+ /* ---------- Surfaces ---------- */
413
+ .vd-card {
414
+ background: var(--card);
415
+ border: 1px solid var(--border);
416
+ border-radius: var(--radius-card);
417
+ box-shadow: var(--shadow-sm);
418
+ }
419
+ .vd-card__body {
420
+ padding: 24px;
421
+ }
422
+ /* Panel vocabulary (vocdoni.io VerticalPanel): raised only on a tinted section,
423
+ outline/inset only on a plain one. A panel never carries a shadow it cannot cast. */
424
+ .vd-panel {
425
+ border-radius: var(--radius-card);
426
+ }
427
+ .vd-panel--raised {
428
+ background: var(--background);
429
+ border: 1px solid var(--border);
430
+ box-shadow: var(--shadow-sm);
431
+ }
432
+ .vd-panel--outline {
433
+ border: 1px solid var(--border);
434
+ }
435
+ .vd-panel--inset {
436
+ background: color-mix(in oklch, var(--muted) 50%, transparent);
437
+ border: 1px solid var(--border);
438
+ }
439
+ /* Ledger: many rows reading as one document; the 1px gap draws the hairlines */
440
+ .vd-panel--ledger {
441
+ display: grid;
442
+ gap: 1px;
443
+ overflow: hidden;
444
+ background: var(--border);
445
+ border: 1px solid var(--border);
446
+ }
447
+ .vd-panel--ledger > * {
448
+ background: var(--background);
449
+ }
450
+ .vd-panel--pad {
451
+ padding: 24px;
452
+ }
453
+ @media (min-width: 640px) {
454
+ .vd-panel--pad-lg {
455
+ padding: 32px;
456
+ }
457
+ }
458
+ .vd-icon-tile {
459
+ display: inline-flex;
460
+ align-items: center;
461
+ justify-content: center;
462
+ width: 44px;
463
+ height: 44px;
464
+ border-radius: var(--radius-lg);
465
+ background: color-mix(in oklch, var(--primary) 10%, transparent);
466
+ color: var(--primary);
467
+ }
468
+ .vd-icon-tile svg {
469
+ width: 20px;
470
+ height: 20px;
471
+ }
472
+
473
+ /* ---------- Badges / chips ---------- */
474
+ .vd-badge {
475
+ display: inline-flex;
476
+ align-items: center;
477
+ gap: 4px;
478
+ padding: 2px 10px;
479
+ border: 1px solid transparent;
480
+ border-radius: 9999px;
481
+ font-size: 12px;
482
+ font-weight: 600;
483
+ line-height: 1.33;
484
+ white-space: nowrap;
485
+ }
486
+ .vd-badge--primary {
487
+ background: var(--primary);
488
+ color: var(--primary-foreground);
489
+ }
490
+ .vd-badge--secondary {
491
+ background: var(--secondary);
492
+ color: var(--foreground);
493
+ }
494
+ .vd-badge--outline {
495
+ border-color: var(--border);
496
+ color: var(--foreground);
497
+ }
498
+ .vd-badge--success {
499
+ background: color-mix(in oklch, var(--success) 10%, transparent);
500
+ border-color: color-mix(in oklch, var(--success) 30%, transparent);
501
+ color: var(--success);
502
+ }
503
+ .vd-badge--warning {
504
+ background: color-mix(in oklch, var(--warning) 10%, transparent);
505
+ border-color: color-mix(in oklch, var(--warning) 40%, transparent);
506
+ color: var(--warning);
507
+ }
508
+ /* Outlined pill chip with icon, e.g. "Built for" verticals in the hero */
509
+ .vd-chip {
510
+ display: inline-flex;
511
+ align-items: center;
512
+ gap: 10px;
513
+ height: 38px;
514
+ padding: 0 14px;
515
+ border: 1px solid var(--border);
516
+ border-radius: 9999px;
517
+ background: var(--background);
518
+ font-size: 14px;
519
+ font-weight: 500;
520
+ transition:
521
+ background-color 150ms ease,
522
+ border-color 150ms ease;
523
+ }
524
+ .vd-chip:hover {
525
+ background: var(--accent);
526
+ }
527
+ .vd-chip svg {
528
+ width: 16px;
529
+ height: 16px;
530
+ color: var(--muted-foreground);
531
+ }
532
+
533
+ /* ---------- Forms ---------- */
534
+ .vd-field {
535
+ display: flex;
536
+ flex-direction: column;
537
+ gap: 8px;
538
+ }
539
+ .vd-field > label {
540
+ font-size: 14px;
541
+ font-weight: 500;
542
+ }
543
+ .vd-input,
544
+ .vd-textarea,
545
+ .vd-select {
546
+ width: 100%;
547
+ height: 40px;
548
+ padding: 8px 12px;
549
+ border: 1px solid var(--input);
550
+ border-radius: var(--radius-md);
551
+ background: var(--background);
552
+ color: var(--foreground);
553
+ font: inherit;
554
+ font-size: 16px; /* 16px on mobile prevents iOS zoom */
555
+ }
556
+ @media (min-width: 768px) {
557
+ .vd-input,
558
+ .vd-textarea,
559
+ .vd-select {
560
+ font-size: 14px;
561
+ }
562
+ }
563
+ .vd-textarea {
564
+ height: auto;
565
+ min-height: 96px;
566
+ }
567
+ .vd-input::placeholder,
568
+ .vd-textarea::placeholder {
569
+ color: var(--muted-foreground);
570
+ }
571
+ .vd-input:focus-visible,
572
+ .vd-textarea:focus-visible,
573
+ .vd-select:focus-visible {
574
+ outline: none;
575
+ box-shadow:
576
+ 0 0 0 2px var(--background),
577
+ 0 0 0 4px var(--ring);
578
+ }
579
+ .vd-field-error {
580
+ font-size: 13px;
581
+ color: var(--error-fg);
582
+ }
583
+
584
+ /* ---------- Navbar ---------- */
585
+ .vd-navbar {
586
+ position: sticky;
587
+ top: 0;
588
+ z-index: 50;
589
+ border-bottom: 1px solid var(--border);
590
+ background: color-mix(in oklch, var(--background) 75%, transparent);
591
+ backdrop-filter: blur(14px);
592
+ -webkit-backdrop-filter: blur(14px);
593
+ }
594
+ .vd-navbar__inner {
595
+ display: flex;
596
+ align-items: center;
597
+ justify-content: space-between;
598
+ gap: 20px;
599
+ max-width: 1408px;
600
+ margin-inline: auto;
601
+ padding: 10px 16px;
602
+ }
603
+ @media (min-width: 640px) {
604
+ .vd-navbar__inner {
605
+ padding-inline: 24px;
606
+ }
607
+ }
608
+ .vd-navbar__links {
609
+ display: none;
610
+ align-items: center;
611
+ gap: 5px;
612
+ list-style: none;
613
+ margin: 0;
614
+ padding: 0;
615
+ }
616
+ @media (min-width: 1280px) {
617
+ .vd-navbar__links {
618
+ display: flex;
619
+ }
620
+ }
621
+ .vd-navbar__link {
622
+ display: inline-flex;
623
+ align-items: center;
624
+ gap: 4px;
625
+ padding: 10px 12.5px;
626
+ border-radius: 9999px;
627
+ font-size: 15px;
628
+ color: var(--nav-link);
629
+ transition:
630
+ color 150ms ease,
631
+ background-color 150ms ease;
632
+ }
633
+ .vd-navbar__link:hover {
634
+ color: var(--foreground);
635
+ background: var(--accent);
636
+ }
637
+ .vd-navbar__divider {
638
+ width: 1px;
639
+ height: 12px;
640
+ background: var(--nav-divider);
641
+ }
642
+ /* Dropdown panel: intro column + item list */
643
+ .vd-menu-panel {
644
+ display: flex;
645
+ overflow: hidden;
646
+ border: 1px solid var(--border);
647
+ border-radius: 16px;
648
+ background: var(--popover);
649
+ box-shadow: var(--shadow-panel);
650
+ }
651
+ .vd-menu-panel__intro {
652
+ display: flex;
653
+ flex-direction: column;
654
+ gap: 14px;
655
+ width: 264px;
656
+ padding: 34px 30px;
657
+ background: var(--secondary);
658
+ }
659
+ .vd-menu-panel__intro-title {
660
+ font-family: var(--font-serif);
661
+ font-variation-settings: 'SOFT' 100;
662
+ font-size: 30px;
663
+ line-height: 1.05;
664
+ letter-spacing: -0.01em;
665
+ }
666
+ .vd-menu-panel__items {
667
+ display: flex;
668
+ flex-direction: column;
669
+ gap: 2px;
670
+ min-width: 316px;
671
+ padding: 17px;
672
+ }
673
+ .vd-menu-item {
674
+ display: block;
675
+ padding: 10px 14px;
676
+ border-radius: 10px;
677
+ }
678
+ .vd-menu-item:hover {
679
+ background: var(--accent);
680
+ }
681
+ .vd-menu-item__title {
682
+ font-size: 15px;
683
+ font-weight: 500;
684
+ }
685
+ .vd-menu-item__desc {
686
+ margin-top: 4px;
687
+ font-size: 13px;
688
+ line-height: 1.375;
689
+ color: var(--muted-foreground);
690
+ }
691
+
692
+ /* ---------- Footer ---------- */
693
+ .vd-footer {
694
+ border-top: 1px solid var(--border);
695
+ padding-block: 64px 40px;
696
+ font-size: 14px;
697
+ color: var(--muted-foreground);
698
+ }
699
+ .vd-footer__heading {
700
+ margin-bottom: 20px;
701
+ font-family: var(--font-sans);
702
+ font-size: 12px;
703
+ font-weight: 600;
704
+ letter-spacing: 0.05em;
705
+ text-transform: uppercase;
706
+ color: var(--faint);
707
+ }
708
+ .vd-footer a:hover {
709
+ color: var(--foreground);
710
+ }
711
+ .vd-footer__legal {
712
+ display: flex;
713
+ flex-wrap: wrap;
714
+ justify-content: center;
715
+ gap: 30px;
716
+ font-size: 12px;
717
+ letter-spacing: 0.2em;
718
+ text-transform: uppercase;
719
+ }
720
+
721
+ /* ---------- Accordion (FAQ) ---------- */
722
+ .vd-faq {
723
+ padding-inline: 24px;
724
+ border: 1px solid var(--border);
725
+ border-radius: var(--radius-3xl);
726
+ background: var(--background);
727
+ box-shadow: var(--shadow-sm);
728
+ }
729
+ .vd-faq details {
730
+ border-bottom: 1px solid var(--border);
731
+ }
732
+ .vd-faq details:last-child {
733
+ border-bottom: 0;
734
+ }
735
+ .vd-faq summary {
736
+ display: flex;
737
+ align-items: center;
738
+ justify-content: space-between;
739
+ gap: 16px;
740
+ padding-block: 20px;
741
+ cursor: pointer;
742
+ list-style: none;
743
+ font-family: var(--font-serif);
744
+ font-variation-settings: 'SOFT' 100;
745
+ font-size: 18px;
746
+ font-weight: 500;
747
+ }
748
+ .vd-faq summary::-webkit-details-marker {
749
+ display: none;
750
+ }
751
+ .vd-faq summary::after {
752
+ content: '';
753
+ flex-shrink: 0;
754
+ width: 8px;
755
+ height: 8px;
756
+ border-right: 1.5px solid currentColor;
757
+ border-bottom: 1.5px solid currentColor;
758
+ rotate: 45deg;
759
+ translate: 0 -2px;
760
+ transition: rotate 200ms ease;
761
+ }
762
+ .vd-faq details[open] summary::after {
763
+ rotate: 225deg;
764
+ }
765
+ .vd-faq details > div {
766
+ padding-bottom: 24px;
767
+ line-height: 1.75;
768
+ color: var(--muted-foreground);
769
+ }
770
+
771
+ /* ---------- Data bits ---------- */
772
+ .vd-progress {
773
+ height: 6px;
774
+ overflow: hidden;
775
+ border-radius: 9999px;
776
+ background: var(--muted);
777
+ }
778
+ .vd-progress > span {
779
+ display: block;
780
+ height: 100%;
781
+ background: var(--primary);
782
+ }
783
+ .vd-stat {
784
+ font-family: var(--font-sans);
785
+ font-size: 24px;
786
+ font-weight: 600;
787
+ color: var(--primary);
788
+ font-variant-numeric: tabular-nums;
789
+ }
790
+ .vd-code {
791
+ overflow-x: auto;
792
+ padding: 20px;
793
+ border-radius: var(--radius-lg);
794
+ background: var(--code-bg);
795
+ color: var(--code-fg);
796
+ font-family: var(--font-mono);
797
+ font-size: 13px;
798
+ line-height: 1.7;
799
+ }
800
+
801
+ /* ---------- Brand utilities (same names as vocdoni.io) ---------- */
802
+ .press-scale {
803
+ transition: scale 150ms var(--ease-press);
804
+ }
805
+ .press-scale:active {
806
+ scale: 0.96;
807
+ }
808
+ .card-hover {
809
+ transition:
810
+ transform 300ms ease,
811
+ box-shadow 300ms ease;
812
+ }
813
+ .card-hover:hover {
814
+ transform: translateY(-4px);
815
+ box-shadow: var(--shadow-xl);
816
+ }
817
+ .image-outline {
818
+ box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1);
819
+ }
820
+ .dark .image-outline {
821
+ box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
822
+ }
823
+ .mask-gradient-x {
824
+ mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
825
+ -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
826
+ }
827
+ .vd-sr-only {
828
+ position: absolute;
829
+ width: 1px;
830
+ height: 1px;
831
+ overflow: hidden;
832
+ clip: rect(0 0 0 0);
833
+ white-space: nowrap;
834
+ }
835
+ /* Skip links: visible when focused */
836
+ a.vd-sr-only:focus-visible {
837
+ top: 8px;
838
+ left: 8px;
839
+ z-index: 100;
840
+ width: auto;
841
+ height: auto;
842
+ padding: 10px 14px;
843
+ clip: auto;
844
+ border-radius: var(--radius-md);
845
+ background: var(--surface-dark);
846
+ color: var(--surface-dark-foreground);
847
+ }