sisyo 1.10.0 → 1.12.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.
@@ -0,0 +1,245 @@
1
+ # g6-style components
2
+
3
+ The base kit every screen is built from: what each piece looks like, its exact classes, and the behaviour that makes
4
+ it feel finished. Write them once in the project (`components/ui/`), then build screens only from them
5
+ (`app-screens.md`). Class names use the tokens of `tokens.md`.
6
+
7
+ ## 1. Buttons: keycaps
8
+
9
+ A button is a key with a visible 4 px depth that the face travels 3 px into when pressed. Shared classes:
10
+
11
+ ```
12
+ relative inline-flex max-w-full items-center justify-center gap-2 text-center no-underline select-none
13
+ transition-[transform,box-shadow,background-color,color] duration-200 ease-glide active:duration-100
14
+ disabled:pointer-events-none disabled:opacity-40 disabled:saturate-0 (+ the same for aria-disabled)
15
+ ```
16
+
17
+ | Variant | Face | Depth / hover / press |
18
+ |---|---|---|
19
+ | `primary` (gold key) | `bg-cta font-bold text-on-gold` | `shadow-[inset_0_1px_0_rgb(255_255_255/.6),0_4px_0_#9a6f22,0_0_22px_rgb(242_199_110/.35)]`; hover `-translate-y-px` + depth 5 px + glow 30 px at .5; active `translate-y-[3px]` + depth 1 px + glow 16 px |
20
+ | `secondary` (champagne key) | `bg-champagne/15 font-bold text-ink-champagne ring-1 ring-ink-champagne/60 ring-inset` | `shadow-[0_4px_0_var(--c-keycap-depth)]`; hover `bg-champagne/25` + `0_0_18px_rgb(236_214_166/.3)`; for the action next to the primary that must still stand out (プレビュー beside 保存) |
21
+ | `outline` (neutral key) | `bg-surface font-bold text-ink-title ring-1 ring-line-strong ring-inset` | same depth; hover `ring-gold/70` + `0_0_18px_rgb(242_199_110/.18)` |
22
+ | `ghost` | `font-bold text-ink-title hover:bg-ink-title/[.06] active:bg-ink-title/10` | no depth |
23
+ | `danger` | `bg-coral/10 font-bold text-ink-coral ring-1 ring-coral/50 ring-inset hover:bg-coral/15 active:translate-y-px` | no depth: danger never looks inviting |
24
+ | `accent` | `bg-(--card-accent) text-(--card-on-accent)`, depth `color-mix(in_srgb,var(--card-accent)_55%,black)` | only inside a user-themed card, in place of primary |
25
+
26
+ Sizes: `sm` `h-9 rounded-xl px-3 text-sm` · `md` `h-11 rounded-control px-4 text-[15px]` · `lg` `h-12 rounded-control
27
+ px-5 text-base` · `xl` `min-h-14 rounded-control px-6 py-2 text-base` (grows for a two-line label). `fullWidth` adds
28
+ `w-full`; `flow` (primary only, the one hero CTA of a page) adds `animate-flow bg-[length:200%_200%]`.
29
+
30
+ - **One primary per view**; the rest `secondary`, `outline` or `ghost`.
31
+ - **`max-w-full` on every button**: a long English or Vietnamese label wraps inside instead of sticking out of its
32
+ frame. A `className` cannot override a larger padding of the same utility (Tailwind sorts by value), so keep the base
33
+ paddings small and let pages widen them.
34
+ - Export the class builder (`buttonClasses({ variant, size })`) so links look the same: a framework `<Link>` for app
35
+ routes, a plain `<a>` for pages served outside the app (a public profile served by the API: a framework link would
36
+ prefetch a route file that does not exist).
37
+ - An icon in a button: 16–20 px, `tone="mono"`, `shrink-0`; the label in `<span class="min-w-0">`.
38
+
39
+ ## 2. Card, badge, chip
40
+
41
+ - **Card**: `.g6-card` + padding `p-4 sm:p-5` (md) or `p-5 sm:p-7` (lg) or none (lists that draw their own
42
+ dividers); `tone` adds `.g6-glow .tone-{tone}`: only for the card that matters on the screen.
43
+ - **Badge**: `inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-bold ring-1 ring-inset` + ink
44
+ text on a tint of its own tone: neutral `bg-surface-2 text-ink-soft ring-line`, accent `bg-champagne/12
45
+ text-ink-champagne ring-champagne/40`, success `bg-gold/15 text-ink-gold ring-gold/50`, warning `bg-amber/15
46
+ text-ink-amber ring-amber/45`, danger `bg-coral/12 text-ink-coral ring-coral/40`, bronze / rose `/12` + `/40`,
47
+ paid `bg-coin/20 text-ink-coin ring-coin/55`. Order states, 「プラン特典」, 「デモ」, 「未確定」.
48
+ - **Chip** (a tag or a filter): `inline-flex items-center gap-1 rounded-full px-3 py-1 text-sm leading-5 ring-1
49
+ ring-inset`; idle `bg-surface text-ink-title ring-line`, selected `bg-gold font-bold text-on-gold shadow-glow-sm
50
+ ring-gold`. With `onClick` it is a `<button aria-pressed>` with `hover:ring-gold/70`.
51
+
52
+ ## 3. Fields
53
+
54
+ Control classes (input, select, textarea):
55
+
56
+ ```
57
+ block w-full rounded-control border bg-field px-3.5 text-base text-ink-title placeholder:text-slate-400
58
+ transition-[border-color,box-shadow] duration-200 ease-glide focus:outline-none focus:ring-4
59
+ disabled:cursor-not-allowed disabled:bg-surface-2 disabled:text-muted
60
+ valid: border-line-strong hover:border-slate-400 focus:border-accent focus:ring-champagne/25
61
+ invalid: border-danger focus:border-danger focus:ring-coral/20
62
+ ```
63
+
64
+ - Input and select `h-12` (`text-base`, 16 px: smaller text makes iOS zoom in on focus); textarea `py-2.5
65
+ leading-relaxed`, 4 rows; select `appearance-none pr-10` with a 20 px chevron `pointer-events-none absolute top-1/2
66
+ right-3 -translate-y-1/2 text-muted`.
67
+ - Field shell: `flex flex-col gap-1.5`: label `text-sm font-bold text-ink-title` (required: a `text-danger` `*`,
68
+ `aria-hidden`), the control, then ONE line under it: the error `text-xs text-danger` or else the hint `text-xs
69
+ text-muted`, with `id="{id}-msg"`; the control gets `aria-invalid` and `aria-describedby` pointing at it.
70
+ - **Password field**: the input look with `pr-12` and a show / hide button at its right end (a real `type="button"`
71
+ with `aria-pressed`, `aria-controls`, an eye / eye-off icon, a label per language); a tap keeps the focus and the
72
+ caret in the field; it turns back into a password field when the form is sent; no auto-capitals or spell check
73
+ while shown. Every password field of the app uses it.
74
+
75
+ ## 4. Switch
76
+
77
+ A label row `flex items-start justify-between gap-4` (bold label + optional `mt-1 text-xs leading-relaxed
78
+ text-muted` line, in a `min-w-0` span) and a `<button role="switch" aria-checked>` track `relative mt-0.5 inline-flex
79
+ h-7 w-12 shrink-0 items-center rounded-full`: on `bg-cta shadow-glow-sm` (the gold key), off `bg-surface-3 ring-1
80
+ ring-line-strong ring-inset`. The white knob `absolute top-1 left-1 size-5 rounded-full bg-white
81
+ shadow-[0_1px_3px_rgb(0_0_0/.25)] transition-transform duration-200 ease-pop` slides with `translate-x-5`. Disabled
82
+ row `cursor-not-allowed opacity-60`. The whole label is the hit area.
83
+
84
+ ## 5. Stepper
85
+
86
+ For a multi-step flow (a setup wizard, an order's status). `<ol class="flex w-full items-start">`, each step `relative
87
+ flex flex-1 flex-col items-center gap-1.5 text-center`, `aria-current="step"` on the current one.
88
+
89
+ | State | Disc (`relative z-10 flex size-8 items-center justify-center rounded-full font-display text-sm font-bold tabular-nums`) | Label (`px-1 text-xs leading-tight text-balance`) |
90
+ |---|---|---|
91
+ | done | `bg-gold-face text-on-gold shadow-[inset_0_1px_0_rgb(255_255_255/.6),0_2px_0_#9a6f22]` + a check that pops in (`animate-pop-in`) | `font-bold text-ink-title` + sr-only 「(完了)」 |
92
+ | current | `bg-surface text-ink-gold shadow-glow ring-2 ring-gold` | `font-bold text-ink-title` |
93
+ | upcoming | `bg-surface-2 text-muted ring-1 ring-line` | `text-muted` |
94
+ | incomplete (passed, not finished) | `border-2 border-dashed border-line-strong bg-surface text-muted` | `text-muted` + sr-only 「(未完了)」 |
95
+
96
+ Connector before each step: `absolute top-4 right-[calc(50%+1.25rem)] left-[calc(-50%+1.25rem)] h-1 -translate-y-1/2
97
+ rounded-full`, passed `bg-[linear-gradient(90deg,var(--c-gold-ink),var(--c-champagne-ink))]
98
+ shadow-[0_0_10px_rgb(242_199_110/.45)]`, ahead `bg-[repeating-linear-gradient(90deg,var(--c-line-strong)_0_6px,transparent_6px_11px)]`
99
+ (dashed). When steps can be opened freely, each step is a `group` button and the disc lifts `-translate-y-px
100
+ shadow-glow-sm` on hover. A flow walked in any order passes the list of finished steps rather than "everything
101
+ before current".
102
+
103
+ ## 6. InfoTip: explanations on demand
104
+
105
+ A circled i beside a title for "how this works" text longer than a line, so the screen stays short.
106
+
107
+ - Button: a 20 px info glyph in a 40 px round hit area whose negative margin keeps the title's line height (`-m-2.5
108
+ inline-flex size-10 items-center justify-center rounded-full`), `text-muted hover:text-ink-title`,
109
+ `text-ink-champagne` while open. Give the title row `gap-1.5`; keep other buttons 10 px away. `aria-label`
110
+ 「説明」 / About unless a label names the topic, `aria-expanded`, `aria-describedby` to the popover.
111
+ - Popover, portalled to `<body>`: `fixed z-[60] w-max rounded-2xl bg-surface text-left text-sm leading-relaxed
112
+ text-ink-body shadow-float ring-1 ring-line`, body `px-3.5 py-3 [&>p+p]:mt-2`, a `size-3 rotate-45` arrow with two
113
+ borders pointing at the button; `role="tooltip"`, kept in the DOM while closed (`hidden`).
114
+ - Opens on hover and on focus with a mouse or keyboard, on tap with touch (a tap must not open on focus and close
115
+ on the click that follows: remember the last `pointerType`); a click pins it; a tap or click outside, Esc and
116
+ leaving the button close it.
117
+ - Placement (a pure function, unit-tested): centred under the button, kept 8 px inside the viewport, at most 288 px
118
+ wide and never wider than the viewport minus 16 px; above when the room below is short; when neither side fits,
119
+ on the larger side with its body scrolling; follows scroll and resize. `z-[60]` sits over a sheet (`z-50`).
120
+ - Plain text or short paragraphs only, no links (it takes no focus); never inside a `<label>` or another button.
121
+ - **What stays on screen instead**: warnings and consequences (public, irreversible, billing, a limit), lock and
122
+ price lines, empty states, errors, legal and consent text, and one short line where a section's purpose would be
123
+ unclear.
124
+
125
+ ## 7. Sheet (dialog)
126
+
127
+ One component for every modal: it slides up from the bottom on phones and centres as a dialog from `sm`.
128
+
129
+ - Root `fixed inset-0 z-50 flex items-end justify-center sm:items-center`; scrim `absolute inset-0
130
+ bg-[var(--c-scrim)] backdrop-blur-sm` (click closes); panel `role="dialog" aria-modal aria-labelledby tabIndex=-1`
131
+ `relative flex w-full flex-col bg-surface shadow-float ring-1 ring-line outline-none max-h-[92dvh] rounded-t-sheet
132
+ sm:rounded-sheet sm:max-w-md`.
133
+ - Header `flex items-center justify-between gap-3 border-b border-line px-5 py-3`: title `text-base font-bold
134
+ text-ink-title`, close button `-mr-2 flex size-11 items-center justify-center rounded-full text-muted
135
+ hover:bg-surface-2 hover:text-ink-title` with a 20 px close icon. Body `overflow-y-auto overscroll-contain p-5`.
136
+ - Behaviour: Esc closes; `document.body.style.overflow = 'hidden'` while open (restore the old value); focus moves
137
+ into the panel on open (unless a control inside already took it) and back to the opener on close; no focus trap
138
+ (Tab may leave). Keep the focus effect separate from the Esc effect: an `onClose` that is a new function on every
139
+ render must not move the focus.
140
+ - Wide variant for label / value rows or two columns: `sm:w-[calc(100%-2rem)] sm:max-w-2xl lg:max-w-4xl` (pass width
141
+ classes as a string, so a page with a JS budget never ships classes it does not use). Full variant for a preview
142
+ with its own layout on phones: `h-dvh`, no radius, a body `flex min-h-0 flex-1 flex-col` its child fills.
143
+ - A video or a celebration may use the native `<dialog>` with `showModal()` instead (`sections.md`, video dialog;
144
+ `app-screens.md`, the publish dialog).
145
+
146
+ ## 8. App shell
147
+
148
+ - Wrapper `flex min-h-dvh flex-col`; one `.g6-backdrop` (`aria-hidden`); `<main class="flex-1">` with the page's own
149
+ container width (`max-w-md` for a phone-first app page, `max-w-6xl` for a landing or a console).
150
+ - Header `group/header sticky top-0 z-30 border-b border-line/80 bg-surface-base/75 backdrop-blur-xl`, inner `mx-auto
151
+ flex h-14 max-w-6xl items-center justify-between gap-3 px-4`: the logo (links home), then nav, language picker,
152
+ theme switch.
153
+ - Nav pills: `items-center gap-1.5 rounded-full px-2.5 py-1.5 sm:px-3 whitespace-nowrap text-[13px] sm:text-sm`;
154
+ active `tone-{tone} bg-tone/12 font-bold text-ink-title ring-1 ring-tone/55 ring-inset` with its 16 px icon in its
155
+ tone and glowing; idle `text-ink-soft hover:bg-ink-title/[.05] hover:text-ink-title` with a mono icon.
156
+ `aria-current="page"` on the active one.
157
+ - Phones: the logo drops its wordmark below ~420–480 px (depending on how many items show); items drop their icons
158
+ in that range, and below 360 px show the icon only with the label kept for screen readers. Items that depend on
159
+ the account appear only once the account is known (no flicker from "Log in" to "My page"). Items for wide screens
160
+ only use `hidden md:flex` / `hidden lg:flex`; never add a second row under the header on phones (it eats the
161
+ screen): those pages are reached from the footer, the landing and the account menu.
162
+ - **Header slot**: the shell exposes an element in the header (`contents lg:hidden`) through context; a page portals
163
+ its own phone menu there with `data-header-menu`, and the site nav hides itself under `lg` with
164
+ `max-lg:group-has-[[data-header-menu]]/header:hidden`.
165
+ - Theme switch: `flex size-8 shrink-0 items-center justify-center rounded-full text-ink-soft hover:bg-ink-title/[.05]`
166
+ (sun / moon). Language picker: a popover `absolute top-full right-0 z-40 mt-2 w-48 rounded-2xl bg-surface p-1.5
167
+ shadow-float ring-1 ring-line` with flags. A language gate (`html[data-i18n-pending] .i18n-gate { visibility:
168
+ hidden }` with a 1.5 s CSS fallback) keeps the chrome hidden until a non-default language has replaced the static
169
+ text, so it never flashes first.
170
+ - Footer: `border-t border-line/80 bg-surface-base/60 backdrop-blur`, `mx-auto max-w-6xl px-4 py-10`, grid
171
+ `grid-cols-2 gap-x-6 gap-y-8 lg:grid-cols-[2fr_1fr_1fr_1.3fr]`: brand + one line (full width on phones), link
172
+ columns with headings `text-xs font-bold tracking-[.12em] text-ink-title`, links `inline-flex min-h-11 items-center
173
+ text-sm text-muted hover:text-ink-title` (44 px targets), the operator line under a `border-t` at the bottom.
174
+
175
+ ## 9. Headings inside the app
176
+
177
+ App sections (`py-8`, header `mb-5`): eyebrow `mb-1.5 font-display text-xs font-semibold tracking-[.16em]
178
+ text-ink-champagne uppercase`, h2 `text-xl leading-snug font-bold text-ink-title sm:text-2xl`, subtitle `mt-1.5
179
+ text-sm leading-relaxed text-muted sm:text-base`. The landing's larger heading with the LED dash is in `sections.md`.
180
+
181
+ ## 10. Logo
182
+
183
+ The mark on a white rounded tile in both themes (`rounded-[22%] bg-white ring-1 ring-black/10`, 28 px in the header)
184
+ + the wordmark `bg-gold-ink text-gradient font-display text-xl leading-none font-bold tracking-tight`. One script
185
+ makes the favicon, app icon, apple icon and in-page mark from one master.
186
+
187
+ ## 11. Icons: duotone
188
+
189
+ Lucide shapes re-layered on a 24 grid, stroke 1.75, painted with a per-tone gradient whose stops are CSS variables
190
+ per theme (`--ic-{tone}-0/1/2`: light tint → the tone → its neighbour; deep stops on ivory, light stops on black):
191
+
192
+ | Layer | Paint |
193
+ |---|---|
194
+ | `main` (silhouette) | tone stroke + the same paint as an 18 % fill |
195
+ | `detail` (inner lines, glyphs) | stroke |
196
+ | `fine` (sparks) | stroke 1.5 |
197
+ | `solid` (pips) | fill |
198
+ | `glint` | white stroke at 60 %, 1.25; dropped in mono |
199
+
200
+ Light stops: gold `#b58a2a #8a6211 #6e5526`, champagne `#8c6d33 #6e5526 #97502d`, bronze `#b0653c #97502d #a3413a`,
201
+ rose `#b8544c #a3413a #97502d`, amber `#b06a00 #955800 #c2410c`, coin `#9c7000 #8a6200 #9a4f00`, coral `#e0355a
202
+ #cc1a40 #a8124f`. Dark: gold `#fff0c4 #f2c76e #ecd6a6`, champagne `#fff6dd #ecd6a6 #e2a47c`, bronze `#ffd9c2 #e2a47c
203
+ #f2b8a8`, rose `#ffe1d8 #f2b8a8 #e2a47c`, amber `#ffe7b0 #ffb23e #ff7f3d`, coin `#fff2b0 #ffd65a #e0a21f`, coral
204
+ `#ffc2cd #ff5c7a #f0407e`.
205
+
206
+ - Generate the registry from recipes (Lucide name + which nodes go in which layer) with a script, pin the Lucide
207
+ version, keep its licence file; each icon has a default tone.
208
+ - Use: own tone in rows, tabs and tiles (20–24 px); `mono` (currentColor) inside buttons, on fills and when inactive
209
+ (16–20 px; 13–15 in chips); `glow` only for the active / current thing; `title` when the icon alone carries meaning,
210
+ otherwise `aria-hidden`. Brand marks of other services (LINE, X, Instagram…) are never tone-painted or glowing.
211
+ - A gradient id per instance (`useId`), so two icons never share one `<linearGradient>`.
212
+
213
+ ## 12. QR codes with the mark
214
+
215
+ Every QR the product draws comes from one module: inline SVG for pages, a canvas for PNG files and backgrounds, an
216
+ SVG file. The mark sits on a white rounded tile in the middle: the largest odd number of modules within 22 % of the
217
+ code's width, aligned to whole modules, the modules under it left out, the mark filling the tile less 3 % per side;
218
+ error correction H with the mark (M without); `shape-rendering="crispEdges"`; quiet zone kept. The QR library loads
219
+ with `import()` when a code is made, never with the page. A test reads every encoded URL back (jsQR) at each size
220
+ the product shows it. Wallet passes stay plain (Apple and Google draw those codes).
221
+
222
+ ## 13. Phones
223
+
224
+ Two different things:
225
+
226
+ - **Live preview** (an editor showing the real page): a 375 × 812 screen laid out at full size and scaled with
227
+ `transform: scale(s)` from the top left, the outer box sized `(375 + 24) × s` by `(812 + 24) × s` so the layout
228
+ shrinks with it. Bezel `relative origin-top-left rounded-[3.25rem] bg-[#0b0e17]` with 12 px padding and
229
+ `shadow-[0_0_0_1px_rgb(255_255_255/.08),0_30px_80px_rgb(16_24_40/.28),0_0_56px_rgb(236_214_166/.16)]`; screen
230
+ `relative h-full w-full overflow-hidden rounded-[2.5rem] bg-surface-base`; an island `absolute top-2 left-1/2 z-20
231
+ h-7 w-28 -translate-x-1/2 rounded-full bg-[#0b0e17]`; the scroller `scrollbar-none h-full w-full overflow-y-auto
232
+ overscroll-contain`. Every phone preview in the app is this component.
233
+ - **Screen capture in a phone** (marketing): `sections.md`, phone frame. Put the percentage bezel padding on an
234
+ inner wrapper (`p-[2.2%]`): a percentage padding reads the parent's width, and a small phone in a wide column
235
+ otherwise gets a thick bezel.
236
+
237
+ ## 14. Reveal
238
+
239
+ ```tsx
240
+ <motion.div initial={{ opacity: 0, y: 16 }} whileInView={{ opacity: 1, y: 0 }} viewport={{ once: true, margin: '-40px' }}
241
+ transition={reduce ? { duration: 0 } : { duration: 0.5, ease: [0.22, 1, 0.36, 1], delay }} />
242
+ ```
243
+
244
+ Render the same element on the server and the client: an early return to a plain div for reduced motion leaves the
245
+ server's inline `opacity: 0` after hydration and the block stays invisible.
@@ -7,6 +7,7 @@ The style mixes three kinds of picture. Use each where it is strongest:
7
7
  | Real screen captures of the product, in CSS phones | hero stack, "more than X", product tour | proof: the visitor sees the actual product, not an illustration |
8
8
  | Generated photos in the gold light | "N ways" (a hand tapping a card), closing CTA (an atrium) | mood and the human moment; same warm gold as the UI |
9
9
  | CSS-drawn mini scenes | the animated tiles (QR, NFC, wallet, URL) | crisp at any size, theme-aware, cost no download |
10
+ | Flat illustrations (one style anchor) | the business page: number cards, use cases, features, price badges | explains an abstract benefit (turnover, search, a dashboard) without a stock photo; 2–15 kB each |
10
11
 
11
12
  ## Generating photos with `codex exec`
12
13
 
@@ -42,6 +43,30 @@ Prompts that worked (adapt the subject):
42
43
  Always: "No text, no letters, no logos, no watermarks" (generated text is garbage and logos are a legal risk), and
43
44
  blank screens / blank cards so the real product goes on them.
44
45
 
46
+ ## Flat illustrations for a business page
47
+
48
+ Make ONE image first and approve it as the **style anchor**, then pass it (`-i ref/anchor.webp`) to every later
49
+ prompt with "match the attached style anchor exactly", so twenty pictures look like one set. No text inside any image:
50
+ words and numbers stay HTML (translatable, searchable, true).
51
+
52
+ Style block that worked (shared by every prompt): *Japanese flat illustration, thin warm dark-brown outlines
53
+ (#3a2a1c), soft flat fills, cute chibi business people with big heads, simple faces and rosy cheeks, small gold
54
+ sparkle stars, lots of calm empty space. Palette only warm ivory, cream (#f3e6c8), champagne gold (#e6bf6a, #d4a24a),
55
+ deep gold (#b07a1c), navy (#2c3550), light wood (#e9c99a), warm skin, dark-brown hair, rare soft terracotta
56
+ (#e08a6a). NO text, letters, numbers, digits, currency signs or logos anywhere.* Tiles add *background solid flat warm
57
+ ivory (#fbf6ea) edge to edge*; describe the scene concretely (who holds what, what floats where, "a dashboard made only
58
+ of shapes", "an obviously EMPTY box").
59
+
60
+ - Tiles: 480 px squares, WebP q78. They keep their ivory ground in both themes, like the phone screens.
61
+ - **Medallion badges** (price facts: "no setup fee", "per member", "two months free"): *ONE round medallion badge: a
62
+ perfect circle, centred, filling about 92 % of the square frame, flat, seen straight on; a champagne-gold rim of two
63
+ thin concentric rings (outer deep gold, inner lighter gold), a warm ivory disc inside; outside the circle pure flat
64
+ white, no shadow, nothing sticking out* + one small object inside. Cut out with an anti-aliased circular alpha mask,
65
+ 192 px (2x of 96), WebP with alpha; the fact itself in HTML under it.
66
+ - **The owner's own logo** (never generated): remove the white background so it sits on both themes: near-white
67
+ areas joined to the border are background; a ~3 px edge band gets colour-to-alpha against white with the colour
68
+ un-premultiplied (no white halo on black); everything inside stays opaque. Check it zoomed in on the dark ground.
69
+
45
70
  ## A real screen into a generated phone
46
71
 
47
72
  1. **Capture** the app at phone width (e.g. 390 px at 3x → 1170×2532, or 900×1948 stills from a recording).
@@ -33,6 +33,8 @@ use it on the hero (see §2).
33
33
  | `animate-tap` | `tap 5s ease-out infinite` | A finger tap: 0–28 % `opacity 0, scale(.4)`; 32 % `opacity .85, scale(.6)`; 48–100 % `opacity 0, scale(1.9)` |
34
34
  | `animate-toast` | `toast 5s cubic-bezier(0.34, 1.56, 0.64, 1) infinite` | 0–36 % `opacity 0, translateY(14px) scale(.92)`; 44–86 % visible, no transform; 94–100 % `opacity 0, translateY(-6px)`. Same 5 s clock as `tap`, so it answers the tap. |
35
35
  | `animate-scan` | `scan 2.6s ease-in-out infinite` | `translateY(0)` → `translateY(var(--scan-travel, 100%))` → back. Set `--scan-travel` to the height the line runs over (e.g. `[--scan-travel:5.9rem]` over a 104 px QR). |
36
+ | `animate-float-3` | `float 2.4s ease-in-out 3` | `translateY` 0 → -4px → 0, three times then still: a thing that just arrived asks for a look once, never forever |
37
+ | `animate-page-scroll` | `page-scroll 22s ease-in-out infinite` | A tall page capture scrolling inside a phone: 0 %, 12 %, 100 % `translateY(0)`; 50 %, 62 % `translateY(calc(-100% + 100cqh))` (a pause at each end). Needs a size container around it (`[container-type:size]`) so `100cqh` is the screen's height |
36
38
 
37
39
  Large soft light is always a radial gradient (`bg-[radial-gradient(closest-side,rgb(242_199_110/.32),transparent)]`)
38
40
  on a rounded div with `animate-aurora`, never `filter: blur()`: blur on big layers is what makes phones stutter.
@@ -88,7 +90,7 @@ SVG under the tile row (desktop only), `viewBox="0 0 1000 120"`, one path per ti
88
90
  - `.scan-down`: a line running down over a photo while it is read (absolute, `h-0.5`, in a relative box).
89
91
  `top: 0; animation: scan-down 1.4s ease-in-out infinite alternate`, `top` 0 → `calc(100% - 2px)`.
90
92
 
91
- The behaviour around it is in `sections.md` (Small controls).
93
+ The behaviour around it (order, timing, polling, never overwriting what the user typed) is in `app-screens.md` §10.
92
94
 
93
95
  ## 6. Reduced motion
94
96
 
@@ -15,10 +15,30 @@ Two patterns every section follows:
15
15
  ## Page order (a product homepage)
16
16
 
17
17
  1. Hero (headline + lead + CTA + video button, 3D phone stack) → 2. Strip (marquee) → 3. "N ways" animated tiles
18
- meeting at one card → 4. "More than X" (product visual + benefit grid) → 5. Product tour on the real screens
19
- (click to play) → 6. Plans (free featured + premium black-and-gold) → 7. Products row (scrolls sideways) →
20
- 8. FAQ → 9. Closing CTA on a photo. Bands (`bg-surface/55` + a `.led-line` on the top edge) alternate with plain
21
- sections so the page has rhythm.
18
+ meeting at one card → 4. "More than X" (product visual + benefit grid) → 4b. "The old way, plus one thing" (when the
19
+ product adds to something people already use, e.g. a paper card with a QR) → 5. Product tour on the real screens
20
+ (click to play) → 6. Plans (free featured + premium black-and-gold; optional: the owner may keep prices off the
21
+ homepage and show the plan card only in the app's billing screen) → 7. Products row → 7a. For teams (one big card) →
22
+ 7b. Latest posts → 8. FAQ → 9. Closing CTA on a photo. Bands (`bg-surface/55` + a `.led-line` on the top edge)
23
+ alternate with plain sections so the page has rhythm. A second page type, the business (B2B) landing, is at the end
24
+ of this file.
25
+
26
+ ### Phones: scroll decks
27
+
28
+ A section of several tall items (the "N ways" tiles below `sm`, the tour below `md`) becomes a **deck** on phones:
29
+ the items start stacked, showing only their titles; each opens when its title scrolls into the upper two thirds of
30
+ the screen (IntersectionObserver, `rootMargin: '0px 0px -35% 0px'`; also when its top is already above the screen,
31
+ for a fast flick) and **stays open** (closing one above the screen would pull the page under the thumb); a tap on a
32
+ title opens or closes it, and an item the visitor closed never reopens by scrolling. Reduced motion: all open.
33
+ Positions come from CSS variables set inline per item and read only below the breakpoint:
34
+
35
+ - open: `--deck-mt: 12px` (first item 0); closed right after an open one: the top layer of the stack; each further
36
+ closed one tucks under the one above: `--deck-mt: -14px`, `--deck-scale: 1 - depth × .035`, `--deck-o: 1 - depth ×
37
+ .16` (depth capped at 3), `--deck-z: count - index`;
38
+ - item classes `relative transition-[margin,scale,opacity] duration-500 ease-glide max-sm:z-(--deck-z)
39
+ max-sm:mt-(--deck-mt) max-sm:origin-top max-sm:scale-(--deck-scale) max-sm:opacity-(--deck-o)`;
40
+ - keep one DOM for both layouts where you can (the collapsing wrappers `display: contents` from `sm`); the tour may
41
+ need its own phone list where each step has its own screen and a ▶ that plays that clip only.
22
42
 
23
43
  ## Section shell
24
44
 
@@ -41,24 +61,37 @@ line never breaks inside a word (「プロフィー / ル。」). For body text
41
61
 
42
62
  A phone around a real screen capture (captures 900×1948: a 390 pt iPhone screen). Width from its column, height from
43
63
  the screen's ratio, so it scales:
44
- - Bezel: `rounded-[14%/6.5%] bg-[#15110b] p-[2.6%]` with `shadow-[0_0_0_1px_rgb(255_255_255/.1),inset_0_0_0_1px_rgb(255_255_255/.06),0_28px_70px_rgb(16_24_40/.3)]`;
64
+ - Phone: `rounded-[14%/6.5%] bg-[#15110b]` with `shadow-[0_0_0_1px_rgb(255_255_255/.1),inset_0_0_0_1px_rgb(255_255_255/.06),0_28px_70px_rgb(16_24_40/.3)]`;
45
65
  black in both themes. A featured phone adds a gold halo, e.g. `0_40px_90px_rgb(16_24_40/.36),0_0_70px_rgb(236_214_166/.22)`.
66
+ - Bezel: an inner wrapper `p-[2.2%]`. A percentage padding reads the PARENT's width, so on the phone itself it would
67
+ follow the column (a small phone in a wide column got a 9–18 px bezel); on the inner wrapper it follows the phone.
46
68
  - Screen: `data-theme="light"` (a screen stays light like a real one), `relative aspect-[900/1948] overflow-hidden
47
- rounded-[11.5%/5.4%] bg-white`, the capture as `fill` + `object-cover object-top` with real `sizes`.
69
+ rounded-[12.3%/5.6%] bg-white`, the capture as `fill` + `object-cover object-top` with real `sizes`. Files can be
70
+ 600×1298 (the same ratio): enough for a 300 px phone at 2x.
71
+ - A whole page scrolling slowly inside the phone (a tall capture): the screen holds `absolute inset-0
72
+ [container-type:size]` and the image `block h-auto w-full animate-page-scroll will-change-transform` (`motion.md`);
73
+ reduced motion shows the top.
48
74
  - The capture that can be the page's largest paint loads with `priority` and its phone has no entrance animation.
49
75
 
50
76
  ## 1. Hero
51
77
 
52
78
  - `<section class="relative overflow-hidden">`; a skylight div at the top (`pointer-events-none absolute inset-x-0
53
79
  top-0 -z-10 h-[70%] bg-(image:--c-skylight)`).
54
- - Grid `max-w-6xl px-4 pt-10 pb-12 gap-8`, from `lg` two columns `[minmax(0,1fr)_minmax(0,1.05fr)]`, `gap-10 pt-14 pb-16`.
80
+ - Grid `mx-auto grid max-w-6xl grid-cols-1 items-center px-4 pt-10 pb-12`, from `lg` two columns
81
+ `[minmax(0,1fr)_minmax(0,1.05fr)]`, `gap-10 pt-14 pb-16`.
82
+ - Order on phones (below `lg`): headline → the phone stack → lead → buttons, so the product is seen before the
83
+ reading. The text column is `max-lg:contents` and its parts carry `max-lg:order-3` / `max-lg:order-4`; the visual
84
+ `max-lg:order-2 max-lg:mt-6 max-lg:mb-12` (the stack sinks up to 56 px while scrolling and its toast must not cover
85
+ the lead). PC keeps text left, phones right.
55
86
  - h1: `text-[34px] leading-[1.22] font-extrabold tracking-tight text-ink-title sm:text-5xl sm:leading-[1.16]
56
87
  lg:text-[3.6rem]`, two lines as blocks. The copy is an array of parts per line; each part an `inline-block` so the
57
88
  line wraps only between parts (Japanese runs parts together, other languages put a space between them, and
58
89
  between the two lines). Second line: `bg-gold-ink text-gradient animate-flow bg-[length:200%_200%]` on each part.
59
- - Lead `mt-5 max-w-lg text-lg leading-relaxed text-ink-soft`; buttons `mt-8 flex flex-col gap-3 sm:flex-row`; a
60
- reassurance line `mt-6 text-sm font-bold text-ink-soft` with a check icon (e.g. "no purchase needed, viewers need no
61
- app").
90
+ - Lead `mt-5 max-w-lg text-lg leading-relaxed text-ink-soft` (Japanese in phrase blocks); buttons **one under the
91
+ other at every width**: `mt-8 flex flex-col gap-3 sm:max-w-lg`, full width on phones (`max-sm:min-h-12`,
92
+ `max-[359px]:px-3`), as wide as the lead from `sm`, one-line labels in every language (two buttons side by side
93
+ forced two-line labels that broke at random places). An optional reassurance line under them `mt-6 text-sm
94
+ font-bold text-ink-soft` with a check icon, only if the owner wants it.
62
95
  - Every text block rises with CSS on first paint: `animate-rise` + `animationDelay` `0.08 + 0.09 × step` s (steps
63
96
  0–4: line 1, line 2, lead, buttons, note). Never hide hero text behind JavaScript (it is the LCP candidate).
64
97
  - Buttons: the gold hero CTA (the only one with `flow`) + an outline button that opens the intro video in a dialog
@@ -153,6 +186,24 @@ Grid `items-center gap-10`, from `lg` `[minmax(0,0.9fr)_minmax(0,1.1fr)] gap-14`
153
186
  A paid feature gets a small badge like 「プラン特典」 rather than the plan's name.
154
187
  - Under it, one line about how it goes with the old way (e.g. paper cards), centred, `text-sm font-bold text-ink-soft`.
155
188
 
189
+ ## 4b. The old way, plus one thing
190
+
191
+ When people already use something the product joins (a paper business card), show both instead of replacing it: the
192
+ old thing is kept, one small addition (a printed QR) carries what it cannot. A band section.
193
+
194
+ - Top, "old vs page", grid `mt-10 grid items-center gap-6 lg:grid-cols-[minmax(0,1.1fr)_auto_minmax(0,1fr)] lg:gap-8`:
195
+ the old thing as a real-looking picture of a made-up person per language (`max-w-[520px] -rotate-1 overflow-hidden
196
+ rounded-[2.2%/3.6%] bg-white shadow-[0_24px_50px_rgb(60_42_12/.22),0_2px_6px_rgb(60_42_12/.12)] ring-1
197
+ ring-black/5`) → a middle pill "scan the QR" (`rounded-full bg-surface py-1.5 pr-3.5 pl-1.5 text-sm font-bold
198
+ shadow-float ring-1 ring-line` with a champagne icon disc) and an arrow in `text-coin` (down on phones, right on
199
+ `lg`) → that same person's whole page scrolling slowly in a phone (`w-[min(56vw,220px)]`, §Phone frame) with pills
200
+ of what the page adds (`tone-gold rounded-full bg-surface py-1 pr-3 pl-1 text-sm font-bold ring-1 ring-tone/35`, a
201
+ `size-6` icon disc): beside the phone on `sm`–`md`, under it on `lg`. Small Latin labels over each column
202
+ (`mb-3 text-center font-display text-xs font-semibold tracking-[.18em] text-muted uppercase`).
203
+ - Below, grid `mt-14 lg:grid-cols-[minmax(0,1.05fr)_minmax(0,0.95fr)] lg:gap-14`: a photo of the two together on a
204
+ desk (`rounded-3xl shadow-[0_30px_70px_rgb(60_42_12/.25)] ring-1 ring-line`) beside four benefit cards (`.g6-card
205
+ .tone-{tone} h-full p-4 sm:p-5`, 2-column Reveal stagger) and a "how" line with an icon.
206
+
156
207
  ## 5. Product tour
157
208
 
158
209
  A phone that shows the real app step by step (short silent screen recordings, ~5 s each, 540 px wide, `-an`), the
@@ -196,18 +247,54 @@ Grid `mx-auto max-w-5xl items-stretch gap-5 md:grid-cols-2`, the second card rev
196
247
 
197
248
  ## 7. Products row
198
249
 
199
- A band section. A row that scrolls sideways: `<ul data-scroll-x class="-mx-4 flex snap-x snap-mandatory gap-5
200
- overflow-x-auto px-4 pt-2 pb-4 [scrollbar-width:thin] sm:mx-auto sm:w-fit sm:max-w-full sm:px-1">`, items `w-[82%]
201
- max-w-[340px] shrink-0 snap-start sm:w-[340px]`. Centred while it fits; prev / next arrows (`size-11 rounded-full
202
- bg-surface shadow-edge ring-1 ring-line`, disabled at each end, scroll by 340 px smoothly) only once it overflows,
203
- from `sm`: watch `scrollLeft` / `scrollWidth` on scroll and with a ResizeObserver (4 px slack).
204
-
205
- Each card: `.g6-card .g6-glow .tone-gold group flex h-full flex-col overflow-hidden p-5 sm:p-6` with the card hover;
206
- the product image at 72 % width, tilted ±3°, `drop-shadow-xl`, scaling to 104 % on hover, on a `h-48`
250
+ A band section. On phones the cards stand one under the other (a sideways row on a phone hid the second product);
251
+ from `sm` a row that scrolls sideways: `<ul data-scroll-x class="flex flex-col items-center gap-5 pt-2 pb-4 sm:mx-auto
252
+ sm:w-fit sm:max-w-full sm:snap-x sm:snap-mandatory sm:flex-row sm:items-stretch sm:overflow-x-auto sm:px-1
253
+ sm:[scrollbar-width:thin]">`, items `w-full max-w-[340px] shrink-0 sm:w-[340px] sm:snap-start`. Centred while it
254
+ fits; prev / next arrows (`grid size-11 place-items-center rounded-full bg-surface text-ink-title shadow-edge ring-1
255
+ ring-line hover:ring-gold/70 disabled:opacity-30`, disabled at each end, scroll by 340 px smoothly) only once it
256
+ overflows: watch `scrollLeft` / `scrollWidth` on scroll and with a ResizeObserver (4 px slack).
257
+
258
+ Each card: `.g6-card .g6-glow .tone-gold group flex h-full flex-col overflow-hidden p-5 sm:p-6` with the card hover
259
+ (`hover:-translate-y-1 hover:shadow-float`, 300 ms); the product image at 72 % width, tilted ±3°, `drop-shadow-xl`,
260
+ scaling to 104 % on hover, on a `h-48 -mx-5 -mt-5 sm:-mx-6 sm:-mt-6`
207
261
  `radial-gradient(80%_70%_at_50%_40%,rgb(242_199_110/.22),transparent_70%)` that bleeds to the card edges; name
208
- `text-lg font-bold`, one line, the price big (`font-display text-4xl font-bold tracking-tight tabular-nums`) + tax /
209
- shipping note, three ticks, an outline CTA full width (with an `aria-label` naming the product). Adding a product =
210
- one entry in the list. A line under the row when the product is optional ("you can use it free without a card").
262
+ `mt-5 text-lg font-bold break-keep`, one line of description `text-sm text-muted`, the price big (`font-display
263
+ text-4xl font-bold tracking-tight tabular-nums`) + `text-sm text-muted` tax / shipping note in one baseline row, an
264
+ optional promo line (a live discount code the API names), three ticks (18 px gold check icons, `space-y-2 text-sm`).
265
+ **No button per card**: one outline button under the row ("See the shop →"), and a gold line about volume discounts
266
+ (`text-sm font-bold text-ink-gold`) above it when there are any. The shop page is where each product gets its own
267
+ button (`app-screens.md`, shop). Adding a product = one entry in the catalogue. A line under the row when the product
268
+ is optional ("you can use it free without a card").
269
+
270
+ ## 7a. For teams
271
+
272
+ One card that sells the team product, in a `.g6-sweep rounded-[1.75rem]` wrapper: `.g6-card .g6-glow .tone-gold
273
+ relative grid gap-8 overflow-hidden rounded-[1.75rem] p-5 sm:p-8 lg:grid-cols-[1.5fr_1fr] lg:gap-10 lg:p-10`, a top
274
+ light `pointer-events-none absolute inset-x-0 top-0 h-40
275
+ bg-[radial-gradient(60%_100%_at_30%_0%,rgb(242_199_110/.2),transparent_70%)]`.
276
+ - Left: six points `relative grid gap-x-6 gap-y-5 sm:grid-cols-2`, each `flex gap-3`: a `size-10 rounded-xl bg-tone/12
277
+ ring-1 ring-tone/40 ring-inset` icon tile, a bold title, `mt-0.5 text-sm leading-relaxed text-ink-soft`, an
278
+ optional `text-sm font-bold text-ink-champagne` link (e.g. to the comparison).
279
+ - Right: a panel `relative flex flex-col items-center justify-center gap-5 rounded-2xl bg-surface-2/60 p-6
280
+ text-center ring-1 ring-line`: the operator's emblem (the owner's own image, never generated, transparent with no
281
+ white halo; a short claim set in HTML over it, measured to sit inside the wreath), small Latin tags (`rounded-full
282
+ bg-surface px-2.5 py-0.5 font-display text-xs font-bold text-ink-soft ring-1 ring-line`: NFC, QR, OCR…), one
283
+ `text-xs font-bold text-ink-soft` line with an icon (where it runs), and the gold CTA full width to the business
284
+ page.
285
+ - Claims about infrastructure per market: say what is true for that reader (a data region in the home market, "fast
286
+ worldwide via a CDN" elsewhere).
287
+
288
+ ## 7b. Latest posts
289
+
290
+ The newest three posts of the site's blog, none dated after the build day (a static page picks future posts up at
291
+ the first deploy on or after their date). No post, no section. Phones: a row per post (`flex gap-4 p-3`, picture
292
+ `size-20 sm:size-28 rounded-xl`); from `md` cards with the cover on top (`md:flex-col md:gap-0 md:overflow-hidden
293
+ md:p-0`, cover `md:aspect-[16/9] md:w-full md:rounded-none`, body `md:p-5`). Card `.g6-card group flex h-full
294
+ transition-[transform,box-shadow] duration-300 ease-glide hover:-translate-y-1 hover:shadow-glow-sm`, cover scales to
295
+ 104 % on hover over 500 ms; a post without a picture shows the logo mark on a gold radial light. Category + date,
296
+ title `line-clamp-2 font-bold break-words md:text-lg`, lead `line-clamp-2 text-sm text-ink-soft md:line-clamp-3`. Under
297
+ them "See all posts →" as a `min-h-11` champagne link.
211
298
 
212
299
  ## 8. FAQ
213
300
 
@@ -224,15 +311,11 @@ headline `text-2xl font-extrabold text-white min-[400px]:text-3xl sm:text-4xl lg
224
311
  `bg-foil animate-flow text-gradient bg-[length:200%_200%]`, lead `text-white/80`, the gold CTA (no travelling light:
225
312
  that is the hero's), "photo for illustration" in `text-2xs text-white/50` in the bottom right corner.
226
313
 
227
- ## Buttons (if the project has none)
314
+ ## Buttons
315
+
316
+ The keycaps (gold, champagne, outline, ghost, danger) are in `components.md` §1; the hero's CTA is the gold key with
317
+ `flow`, the video button the outline key.
228
318
 
229
- - **Gold key**: `bg-cta font-bold text-on-gold` + `shadow-[inset_0_1px_0_rgb(255_255_255/.6),0_4px_0_#9a6f22,0_0_22px_rgb(242_199_110/.35)]`;
230
- hover lifts 1 px and the glow grows; active travels 3 px (`active:translate-y-[3px]`, depth 1 px). The hero's one
231
- adds `bg-[length:200%_200%] animate-flow`.
232
- - **Outline key**: `bg-surface ring-1 ring-line-strong` + `0_4px_0_var(--c-keycap-depth)`.
233
- - Heights 36 / 44 / 48 px, radius 1 rem (`rounded-control`), `inline-flex max-w-full items-center justify-center
234
- gap-2`, `transition-[transform,box-shadow] duration-200 ease-glide`. `max-w-full` so a long label (English,
235
- Vietnamese…) never makes the button wider than its box.
236
319
  - **Play glyph** (video buttons, the tour): a gold disc `#f2c76e` with a dark triangle `#0d0a06` (24-unit viewBox:
237
320
  circle r 12; triangle from about (9.6, 7.6) to (17.3, 12) to (9.6, 16.4) with rounded joins), the same in both
238
321
  themes, `aria-hidden`.
@@ -247,17 +330,45 @@ video `controls playsInline preload="none"` with a poster, `aspect-[9/16] w-auto
247
330
  shadow-float`, `height: min(86dvh, calc((100vw - 2rem) * 16 / 9))` (`w-auto`: the width attribute would otherwise
248
331
  beat aspect-ratio and letterbox it). A round close button (`size-11`) at `-top-3 -right-3`.
249
332
 
250
- ## Small controls
251
-
252
- - **Switch**: a label row (`flex items-start justify-between gap-4`: bold label + an optional `text-xs text-muted`
253
- line) and a `<button role="switch" aria-checked>` track `h-7 w-12 rounded-full`: on = `bg-cta shadow-glow-sm`
254
- (the gold key), off = `bg-surface-3 ring-1 ring-line-strong ring-inset`; the white knob (`size-5`, `top-1 left-1`,
255
- `shadow-[0_1px_3px_rgb(0_0_0/.25)]`) slides 1.25 rem (`translate-x-5`) with the pop ease, 200 ms. Disabled:
256
- `opacity-60 cursor-not-allowed`.
257
- - **A form filled by the app** (OCR, autofill): fill the fields one after the other, top to bottom (~260 ms apart),
258
- give each the `.fill-in` class and a new React `key` so the animation restarts; never overwrite what the user
259
- typed; while waiting, a `.scan-down` line over the photo and a status line that moves on every ~1.8 s (stopping on
260
- its last step) so a few seconds never look stuck. Around it: scale the photo in the browser to ≤ 1600 px and send
261
- it as JPEG (small uploads on a phone connection, EXIF rotation applied by the decode); when the reading runs
262
- longer than one request, ask again a bounded number of times (e.g. 6 long polls of ~9 s); drop an answer that
263
- belongs to an older photo (retaken or removed); a photo that cannot be read stays attached and the user types.
333
+ The switch, fields, sheets and the rest of the kit are in `components.md`; a form the app fills (OCR) is in
334
+ `app-screens.md`.
335
+
336
+ ## The business (B2B) landing
337
+
338
+ A second page type, for the team / company product. Same shell, heading and motion as the homepage; it sells with
339
+ numbers and proof instead of a phone story. Every number, comparison cell and security claim has a written source (a
340
+ sources file the page's tests read), and copy says only what is true today.
341
+
342
+ Order: 1. Hero → 2. Numbers → 3. "N ways" (the homepage's section, reused) + use cases → 4. Old way + one thing →
343
+ 5. Features (six short tiles) → 6. Dashboard and AI analyst (two large tiles) → 7. Diagrams → 8. Security → 9. Price
344
+ + comparison → 10. FAQ → 11. Inquiry form.
345
+
346
+ - **Hero**: one strong line (h1 in two phrases, the second in `bg-gold-ink text-gradient animate-flow
347
+ bg-[length:200%_200%]`), one sub line, the skylight, `animate-rise` stagger (`0.08 + 0.09 × step` s), two keys:
348
+ "create a team" (gold) and "contact us" (outline, to the form).
349
+ - **Numbers**: cards `.g6-card .g6-glow .tone-coin group p-5 sm:p-7` in Reveals (`(i % 3) × 0.06` s); big figures
350
+ `bg-gold-ink text-gradient font-display text-3xl lg:text-5xl tabular-nums`; a first card across the row comparing
351
+ the old way's costs with ours (theirs on `bg-surface-2/70`, ours `bg-gold/12 ring-1 ring-gold/45`), in the
352
+ visitor's currency where the price is billed in another ("about US$3 · billed in yen"); each figure carries a source
353
+ pill (`inline-flex items-center gap-2 rounded-full bg-surface-2/80 py-0.5 pr-1.5 pl-2.5 text-xs font-bold
354
+ text-ink-soft ring-1 ring-line`: 相場 / 実測 / 試算) with an
355
+ InfoTip naming the source. Layout on `lg`: 6 columns, the comparison card 6, then 2 + 2 + 2 and 3 + 3.
356
+ - **Illustrations** (use cases, features, insights): flat pictures from one style anchor (`imagery.md`) on a cream
357
+ paper panel that stays light in both themes: `data-theme="light" rounded-2xl bg-[#fbf6ea] ring-1 ring-line`, scaling
358
+ to 104 % on the card's hover (`group-hover:scale-[1.04] duration-500 ease-glide`). No words inside the pictures.
359
+ - **Diagrams** (how it flows, the architecture, who can do what): inline SVG drawn with token utilities so they follow
360
+ the theme (`fill-surface stroke-line-strong`, boxes `rx=14`, arrows `stroke-ink-gold`, numbered `fill-gold/20`
361
+ circles, text `text-[14px]` / `text-[12.5px]`), 360 units wide, `max-w-[440px]`, each a `<figure class="g6-card p-4
362
+ sm:p-6">` with a caption, in a `grid gap-5 lg:grid-cols-2`. Words come from the page's copy in the visitor's
363
+ language; layouts are pure functions (testable); Japanese wraps at marked breaks, then between characters with 禁則,
364
+ counting a CJK character as ~1.8 Latin units.
365
+ - **Security**: one statement across the top (who designs and runs it), then six facts of one line each, a link to
366
+ the privacy policy. Region claims per market (§7a).
367
+ - **Price**: a `.g6-sweep` wrapper around `.g6-card .g6-glow .tone-coin rounded-[1.75rem] p-6 sm:p-10` with a radial
368
+ gold wash; the price per member per month `bg-gold-ink text-gradient font-display text-6xl sm:text-7xl`, from the
369
+ catalogue; the yearly saving computed; three medallion badges (`imagery.md`) with the facts in HTML under them.
370
+ - **Comparison**: services in columns, ours first, the others anonymous (A社 / B社 / C社: naming competitors on a
371
+ product page invites legal trouble and is rare in Japanese B2B), rows of ✓ / text / 「非公開」, a line 「各社公開情報
372
+ をもとに当社作成(YYYY年M月時点)」. `.g6-card overflow-x-auto p-0` around `min-w-[300px] table-fixed
373
+ border-separate`, our column `bg-gold/12`.
374
+ - **Inquiry form**: the kit's fields, a consent line on screen, a success state that says when they will hear back.