Skip to content

Commit 7d2beb1

Browse files
marioDamnjclaude
andcommitted
feat(pricing): design system alignment pass
- Replace hardcoded color values with DS CSS variables (color-mix for primary tints, var(--primary), var(--muted-foreground), etc.) - Add responsive calculator layout (two-column desktop / stacked mobile) via CSS Grid classes in index.css - Add collapsible overages section after feature table with correct rates - Remove stats proof bar (hidden) - Fix table group header backgrounds and add missing borderTop separators - Standardize all spacing to DS multiples of 8 - Bump pricing page max-width from 1160 to 1280 - Add overflow-x: hidden to html/body to prevent mobile jiggle Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7b00ff5 commit 7d2beb1

3 files changed

Lines changed: 790 additions & 576 deletions

File tree

src/index.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,56 @@
2323
animation-play-state: paused;
2424
}
2525

26+
/* ─── Calculator output — responsive two-column (desktop) / stacked (mobile) ── */
27+
.calc-output {
28+
display: grid;
29+
grid-template-columns: 1fr auto;
30+
row-gap: var(--spacing-2, 8px);
31+
margin-bottom: var(--spacing-2, 8px);
32+
}
33+
34+
.calc-output-label,
35+
.calc-output-switch {
36+
align-self: center;
37+
}
38+
39+
.calc-output-switch {
40+
justify-self: end;
41+
}
42+
43+
.calc-output-number {
44+
grid-column: 1 / -1;
45+
}
46+
47+
.calc-output-rate {
48+
grid-column: 1 / -1;
49+
display: flex;
50+
align-items: center;
51+
gap: var(--spacing-4, 16px);
52+
flex-wrap: wrap;
53+
}
54+
55+
@media (min-width: 640px) {
56+
.calc-output-number {
57+
grid-column: 1;
58+
align-self: end;
59+
}
60+
61+
.calc-output-rate {
62+
grid-column: 2;
63+
flex-direction: column;
64+
align-items: flex-end;
65+
gap: var(--spacing-1, 4px);
66+
justify-self: end;
67+
align-self: end;
68+
}
69+
}
70+
71+
html,
72+
body {
73+
overflow-x: hidden;
74+
}
75+
2676
body {
2777
margin: 0;
2878
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;

0 commit comments

Comments
 (0)