sisyo 1.7.0 → 1.8.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 (61) hide show
  1. package/LICENSE +16 -16
  2. package/README.md +167 -166
  3. package/bin/known-hashes.json +6 -1
  4. package/bin/sisyo.js +285 -285
  5. package/package.json +30 -30
  6. package/templates/.claude/rules/agents-and-tests.md +32 -24
  7. package/templates/.claude/rules/docs.md +19 -19
  8. package/templates/.claude/skills/fastapi-best-practices/ASYNC-PATTERNS.md +121 -121
  9. package/templates/.claude/skills/fastapi-best-practices/DATABASE.md +153 -153
  10. package/templates/.claude/skills/fastapi-best-practices/DEPENDENCIES.md +140 -140
  11. package/templates/.claude/skills/fastapi-best-practices/PROJECT-STRUCTURE.md +90 -90
  12. package/templates/.claude/skills/fastapi-best-practices/PYDANTIC-GUIDE.md +155 -155
  13. package/templates/.claude/skills/fastapi-best-practices/SKILL.md +123 -123
  14. package/templates/.claude/skills/g6-style/SKILL.md +125 -125
  15. package/templates/.claude/skills/g6-style/references/checks.md +58 -58
  16. package/templates/.claude/skills/g6-style/references/imagery.md +103 -103
  17. package/templates/.claude/skills/g6-style/references/motion.md +121 -121
  18. package/templates/.claude/skills/g6-style/references/sections.md +263 -263
  19. package/templates/.claude/skills/g6-style/references/tokens.md +197 -197
  20. package/templates/.claude/skills/hindsight/SKILL.md +175 -175
  21. package/templates/.claude/skills/hoang-auth/SKILL.md +188 -0
  22. package/templates/.claude/skills/html-docs/SKILL.md +207 -207
  23. package/templates/.claude/skills/i18n-multilang/SKILL.md +153 -153
  24. package/templates/.claude/skills/i18n-multilang/assets/languages.json +47 -47
  25. package/templates/.claude/skills/i18n-multilang/assets/plural-vectors.json +46 -46
  26. package/templates/.claude/skills/i18n-multilang/assets/project/README.md +17 -17
  27. package/templates/.claude/skills/i18n-multilang/assets/project/gitattributes.txt +6 -6
  28. package/templates/.claude/skills/i18n-multilang/assets/project/gitignore.txt +4 -4
  29. package/templates/.claude/skills/i18n-multilang/assets/project/glossary.json +6 -6
  30. package/templates/.claude/skills/i18n-multilang/assets/project/i18n.config.json +22 -22
  31. package/templates/.claude/skills/i18n-multilang/assets/project/locales/__source__/common.json +10 -10
  32. package/templates/.claude/skills/i18n-multilang/assets/project/notes/common.json +5 -5
  33. package/templates/.claude/skills/i18n-multilang/assets/project/style.md +20 -20
  34. package/templates/.claude/skills/i18n-multilang/references/format.md +100 -100
  35. package/templates/.claude/skills/i18n-multilang/references/languages.md +97 -97
  36. package/templates/.claude/skills/i18n-multilang/references/layout-and-versioning.md +256 -256
  37. package/templates/.claude/skills/i18n-multilang/references/numbers.md +161 -161
  38. package/templates/.claude/skills/i18n-multilang/references/platform-unity.md +142 -142
  39. package/templates/.claude/skills/i18n-multilang/references/platform-web.md +107 -107
  40. package/templates/.claude/skills/i18n-multilang/references/translation.md +143 -143
  41. package/templates/.claude/skills/i18n-multilang/references/voice.md +271 -271
  42. package/templates/.claude/skills/i18n-multilang/scripts/i18n.py +1041 -1041
  43. package/templates/.claude/skills/i18n-multilang/scripts/numwords.py +1013 -1013
  44. package/templates/.claude/skills/i18n-multilang/scripts/voice.py +478 -478
  45. package/templates/.claude/skills/neon-game-ui-ux-skill/COMPONENTS.md +490 -490
  46. package/templates/.claude/skills/neon-game-ui-ux-skill/GAMIFICATION.md +246 -246
  47. package/templates/.claude/skills/neon-game-ui-ux-skill/ICONS.md +249 -249
  48. package/templates/.claude/skills/neon-game-ui-ux-skill/LAYOUT-NAV.md +362 -362
  49. package/templates/.claude/skills/neon-game-ui-ux-skill/MOTION-A11Y.md +168 -168
  50. package/templates/.claude/skills/neon-game-ui-ux-skill/SKILL.md +137 -137
  51. package/templates/.claude/skills/neon-game-ui-ux-skill/TOKENS.md +323 -323
  52. package/templates/.claude/skills/react-page-oriented/SKILL.md +407 -407
  53. package/templates/.claude/skills/react-page-oriented/triggers.md +12 -12
  54. package/templates/.claude/skills/terraform-best-practices/SKILL.md +341 -341
  55. package/templates/.claude/skills/typesafe-jev/SKILL.md +148 -148
  56. package/templates/.claude/skills/vibe-docs/SKILL.md +242 -242
  57. package/templates/SISYO.md +37 -37
  58. package/templates/docs/99_progress/features.md +7 -7
  59. package/templates/docs/99_progress/handoff.md +19 -19
  60. package/templates/docs/99_progress/todo.md +15 -15
  61. package/templates/docs/MAP.md +26 -26
@@ -1,263 +1,263 @@
1
- # g6-style section blueprints
2
-
3
- Each blueprint: what the section is for, its layout, its motion, and the measurements that make it look right. The
4
- reference stack is React + Tailwind v4 + framer-motion (`next/image` for pictures); class names below use the tokens
5
- of `tokens.md` and the animations of `motion.md`. Write the components in the project's own structure, with its
6
- i18n, icon set (duotone Lucide shapes work), logo and button helpers.
7
-
8
- Two patterns every section follows:
9
- - **One media map.** Every image and video of the page, with its alt text per language, in one file
10
- (`visuals.ts`): sections read from it, nobody hard-codes a path.
11
- - **Copy per component** in every language the site has. Prices, limits and plan facts come from the product
12
- catalogue or shared constants, never typed into the copy (a missing catalogue id should fail the build rather
13
- than show a wrong price).
14
-
15
- ## Page order (a product homepage)
16
-
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.
22
-
23
- ## Section shell
24
-
25
- `<section id aria-labelledby="{id}-title" class="relative overflow-x-clip py-16 md:py-24">` (+ `bg-surface/55` and an
26
- absolute `.led-line inset-x-0 top-0` when it is a band), content `mx-auto max-w-6xl px-4`. `overflow-x-clip` (not
27
- hidden) so glows never widen the page and sticky still works.
28
-
29
- Heading block (in a Reveal, `max-w-2xl`, `mx-auto text-center` when centred; centred is the default):
30
- - Eyebrow: Latin word, `flex items-center gap-3 font-display text-xs font-semibold tracking-[.22em] uppercase
31
- text-ink-gold`, a `.led-line w-8` dash before it and, when centred, after it.
32
- - h2 `id="{id}-title"`: `mt-2 text-2xl leading-snug font-bold text-ink-title sm:text-3xl lg:text-4xl lg:leading-tight`.
33
- - Lead: `mt-3 text-base leading-relaxed text-ink-soft`.
34
- - Section content starts at `mt-10`.
35
-
36
- Japanese headings and leads: split the text after each 、 / 。 and wrap every phrase in an `inline-block` span, so a
37
- line never breaks inside a word (「プロフィー / ル。」). For body text in narrow columns use `[word-break:auto-phrase]`
38
- + `text-pretty` instead (inline-block phrases leave ragged lines in a 250 px column).
39
-
40
- ## Phone frame (shared)
41
-
42
- A phone around a real screen capture (captures 900×1948: a 390 pt iPhone screen). Width from its column, height from
43
- 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)]`;
45
- 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)`.
46
- - 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`.
48
- - The capture that can be the page's largest paint loads with `priority` and its phone has no entrance animation.
49
-
50
- ## 1. Hero
51
-
52
- - `<section class="relative overflow-hidden">`; a skylight div at the top (`pointer-events-none absolute inset-x-0
53
- 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`.
55
- - h1: `text-[34px] leading-[1.22] font-extrabold tracking-tight text-ink-title sm:text-5xl sm:leading-[1.16]
56
- 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
- line wraps only between parts (Japanese runs parts together, other languages put a space between them, and
58
- 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").
62
- - Every text block rises with CSS on first paint: `animate-rise` + `animationDelay` `0.08 + 0.09 × step` s (steps
63
- 0–4: line 1, line 2, lead, buttons, note). Never hide hero text behind JavaScript (it is the LCP candidate).
64
- - Buttons: the gold hero CTA (the only one with `flow`) + an outline button that opens the intro video in a dialog
65
- (label with its length, "Watch the intro (45s)") and a play glyph. No video yet: the second button scrolls to the
66
- tour (`#how`).
67
- - **Visual** (`relative mx-auto h-[430px] w-full max-w-[560px] [perspective:1400px] sm:h-[540px] lg:h-[600px]`):
68
- - Aurora behind (`absolute inset-0 -z-10 sm:-inset-12`): three `animate-aurora` round divs, `closest-side` radial
69
- gradients: 62 % at top 4 % / left 6 % champagne `.34`; 58 % at right 2 % / bottom 6 % bronze `.28`, delay -6 s;
70
- 46 % at top 26 % / right 18 % gold `.32`, delay -11 s.
71
- - A `preserve-3d` layer carrying the tilt and the sink. Two phones behind (`w-[35%] sm:w-[34%]`, top 13 % left
72
- 1 % / top 10 % right 1 %, `sm:` 3 %), rotated -8° / +8°, opacity .95, entering at 0.35 s / 0.5 s, drifting with
73
- phases -2 s / -4 s. The front phone `top-[3%] left-1/2 w-[44%] sm:w-[42%] -translate-x-1/2
74
- [transform:translateZ(60px)]`.
75
- - Tilt (mouse only): pointer position in the box mapped -0.5…0.5 → `rotateY` -10…10°, `rotateX` 8…-8°, through
76
- `useSpring({ stiffness: 110, damping: 18, mass: 0.6 })`; back to 0 on pointer leave.
77
- - Scroll (`useScroll({ target, offset: ['start start', 'end start'] })`): back phones spread `x` 0 → -48 / +48 px,
78
- the stack sinks `y` 0 → 56 px. Reduced motion: no tilt, no spread.
79
- - A looping tap on a real button of the front screen: a span at the measured spot (percent of the capture, e.g.
80
- 43 % across / 62.7 % down), `size-[22%]`, holding an `animate-tap` circle `bg-white/70 ring-2 ring-white`.
81
- - The toast that answers it (`animate-toast`, same 5 s clock) at the bottom centre: `rounded-2xl bg-[#15110b]/90
82
- py-2 pr-4 pl-2 text-white shadow-float ring-1 ring-white/10 backdrop-blur`, a gold icon tile (`bg-gold/20
83
- ring-gold/50`) + a bold line + a `text-2xs text-white/70` line.
84
- - Chips at the edges (URL, "QR too", "no app"): `flex items-center gap-2 rounded-2xl bg-surface/90 py-1.5 pr-3
85
- pl-1.5 shadow-float ring-1 ring-line backdrop-blur` with a tone icon tile (`size-8 sm:size-9 rounded-xl bg-tone/15
86
- ring-1 ring-tone/40 ring-inset`). Each in three wrappers: position + `[transform:translateZ(90px)]` →
87
- `animate-rise` (delays 0.7 / 0.85 / 1 s) → `animate-drift` (phases -1 / -3 / -4.5 s). On phones only the URL
88
- chip, tucked in the corner; the others from `sm`.
89
- - Floating things sit at `translateZ(90px)`, above the front phone's 60 px, or the phone hides them.
90
-
91
- ## 2. Strip (marquee)
92
-
93
- `aria-hidden` (every item is said again on the page), `data-scroll-x`, `relative overflow-hidden py-3`, a
94
- `.led-line` at the top and the bottom. Inside, `animate-marquee flex w-max` with
95
- `[mask-image:linear-gradient(90deg,transparent,#000_8%,#000_92%,transparent)]` and
96
- `hover:[animation-play-state:paused]`, holding the same `<ul>` twice (`flex shrink-0 gap-3 pr-3`) so the loop is
97
- seamless. Items: `rounded-full bg-surface/80 px-4 py-2 text-sm font-bold whitespace-nowrap text-ink-title shadow-edge
98
- ring-1 ring-line` with an 18 px icon; short benefits (free, no app, share by URL, QR, save contact, update anytime,
99
- the languages).
100
-
101
- ## 3. "N ways" tiles meeting at one card
102
-
103
- The strongest section of the style: each way to use the product is a tile whose top is a small looping story that
104
- SHOWS how it works, then a number, a title and two lines that SAY it. A band section; grid `grid-cols-1 gap-4
105
- sm:grid-cols-2 lg:grid-cols-4`.
106
-
107
- - Tile: `.g6-card .g6-glow .tone-gold group flex h-full flex-col p-3 sm:p-4` with the card hover (motion.md §1),
108
- revealed with `index × 0.08` s. Under the stage: `mt-4` row with the icon tile (`size-9 rounded-xl bg-tone/12
109
- ring-1 ring-tone/40 ring-inset`, scales on hover) and the number `01`–`04` (`font-display text-xs font-semibold
110
- tracking-[.16em] text-muted`); title `mt-2 text-lg font-bold`; body `mt-1 text-sm leading-relaxed text-pretty
111
- text-muted [word-break:auto-phrase]`. Keep labels like "subscription" off these tiles: they explain, they do not
112
- sell, and none of the stage pretends to be a button.
113
- - Stage (decorative, `aria-hidden`): `relative h-40 overflow-hidden rounded-2xl bg-surface-2/70 ring-1 ring-line` +
114
- an inner `bg-[radial-gradient(70%_60%_at_50%_0%,rgb(242_199_110/.18),transparent_70%)]`.
115
- - Mini phone (CSS): `rounded-[14px] bg-[#15110b] p-[3px]` with `shadow-[0_10px_30px_rgb(20_14_4/.35),0_0_0_1px_rgb(255_255_255/.08)]`,
116
- screen `data-theme="light" rounded-[11px] bg-[#fffdf8]` and a notch `h-1.5 w-6 rounded-full` at the top. A mini
117
- profile inside: 30 % cover in `linear-gradient(135deg,#f6d58e,#e2a47c)`, a round avatar (30 %) overlapping it,
118
- bars for name and rows.
119
- - **QR**: a real QR of the site's home page, generated client-side (`qrcode`, SVG, margin 0, level M, dark
120
- `#15110b`, transparent light) when the tile comes near, so scanning it opens the site, never a 404. A 104 px white
121
- card (`p-2.5 rounded-xl shadow-edge`, `data-theme="light"`), camera corner brackets (four `size-4` spans with
122
- 2 px borders in `ink-gold`, `-2` outside each corner, rounded on the outer corner), a scan line (`animate-scan h-0.5
123
- bg-ink-gold shadow-glow [--scan-travel:5.9rem]`) and an `animate-toast` pill at the bottom ("open page",
124
- `bg-[#15110b] text-white text-xs`).
125
- - **NFC**: a mini phone (68 × 136 px) and a dark card (`h-10 w-16`, `linear-gradient(135deg,#2a2116,#120e09)`,
126
- `ring-1 ring-[#f2c76e]/70`, a gold chip and a tiny "NFC" in `#f6d58e`) that slides to the back of the phone
127
- (`.nfc-card`), two rings at the contact point (`.nfc-ring`, border `ink-gold`), a notification dropping in on the
128
- screen (`.nfc-banner`: white, "NFC tag" + "Open {host}") and the profile fading in (`.nfc-page`).
129
- - **Wallet**: a mini phone (74 × 144 px) with "Wallet", two passes in the stack (`#e9dcc2→#cdb98f`,
130
- `#d9a27c→#a8653f`) and the brand pass (`linear-gradient(160deg,#2a2116,#120e09)`, `ring-[#f2c76e]/60`, logo + name
131
- in tracked `#f6d58e`, a white QR square) that rises (`.wallet-pass`, `[--stack-y:58%]`) and shows its QR
132
- (`.wallet-qr`) after a tap (`.wallet-tap`).
133
- - **URL**: a browser card (`inset-3 rounded-xl bg-surface shadow-edge ring-1 ring-line`), three dots (coral, amber,
134
- gold), an address field with a lock in `ink-gold` where `{host}/{name}` types itself (motion.md §7), a `bg-cta`
135
- progress line, then the mini page.
136
- - Under the row: on `lg` the SVG of lines of light (motion.md §4); on phones an arrow chip instead (`animate-drift
137
- size-10 rounded-full bg-surface text-ink-gold shadow-glow-sm ring-1 ring-gold/50`). Then "your page" in
138
- `.g6-sweep rounded-[1.75rem]` around a `.g6-card .g6-glow .tone-gold` (`p-5 sm:p-6`, `max-w-xl`): the logo (64 px)
139
- over an `animate-glow-pulse` halo, an eyebrow, `{host}/{name}` (`font-display text-lg sm:text-xl`, truncating) and
140
- pills of what the page holds. Then one closing line `text-xl sm:text-2xl font-bold` in `bg-gold-ink text-gradient`.
141
-
142
- ## 4. "More than X"
143
-
144
- Grid `items-center gap-10`, from `lg` `[minmax(0,0.9fr)_minmax(0,1.1fr)] gap-14`.
145
- - Left (`max-w-[420px] py-6`): an aurora pool (gold `.3` → bronze `.12`) behind a phone at 56 % width with the real
146
- screen, and three glass chips (`rounded-2xl bg-surface/90 shadow-float ring-1 ring-line backdrop-blur`) floating
147
- with `animate-drift` on phases 0 / -2 / -4 s, one per thing the product does: a post (top left, 42 % wide, an image
148
- block + bars), a contact just added (right, at 44 %), a card being read under a scan line (bottom left, 44 % wide,
149
- a white `aspect-[91/55]` card with `animate-scan [--scan-travel:2.6rem]`).
150
- - Right: `grid gap-3 sm:grid-cols-2` of benefit cards: `.g6-card .tone-{tone} p-4 sm:p-5` with the smaller hover,
151
- icon tile `size-10`, title `mt-3 font-bold`, body `text-sm text-muted [word-break:auto-phrase]`, an optional caveat
152
- `text-xs text-muted/80`. The tone follows the meaning (bronze = identity, gold = done/connect, champagne = sharing).
153
- A paid feature gets a small badge like 「プラン特典」 rather than the plan's name.
154
- - 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
-
156
- ## 5. Product tour
157
-
158
- A phone that shows the real app step by step (short silent screen recordings, ~5 s each, 540 px wide, `-an`), the
159
- list of steps beside it. Grid `items-center gap-8 md:grid-cols-2 lg:gap-14`; the phone `md:order-2`, `w-[66%]
160
- max-w-[300px] md:w-[72%]`, an aurora pool behind it, a `1 / 6` counter under it (`font-display tabular-nums`).
161
-
162
- - All steps' media stacked in the phone: a poster (still) per step and, over it, its clip (`muted playsInline
163
- preload="none"`); the active one at opacity 100, the others 0 (`transition-opacity duration-500`). The last step can
164
- be a still that stays 4.5 s.
165
- - **Nothing plays or loads until the visitor presses ▶ or a step.** Until then a play overlay over the phone
166
- (`bg-[#15110b]/10`, a 56 px play glyph over an `animate-glow-pulse` halo, a "Play the screens" pill). Once started:
167
- play the active clip from 0, pause every other one, advance on `ended`, play only while `useInView(…, { amount:
168
- 0.4 })`; after the last step, rest on the first step, not started. A pause button (`size-10 rounded-full
169
- bg-[#15110b]/75 backdrop-blur`, two bars) at the bottom right while it runs.
170
- - Steps (`<ol class="space-y-2">`): each a button (`rounded-2xl px-4 py-3 text-left`, `aria-current="step"` on the
171
- active one) with a number disc (`size-8`: active `bg-cta text-on-gold shadow-glow-sm`, done `bg-gold/20
172
- text-ink-gold` with a check, upcoming `bg-surface-2 text-muted ring-1 ring-line`), a label (`text-2xs font-bold
173
- tracking-[.14em] uppercase text-ink-champagne`) and a title. Active: `bg-surface shadow-edge ring-1 ring-gold/70`,
174
- its description opening with a grid-rows `0fr → 1fr` transition (500 ms) and a `bg-cta` progress bar (`h-0.5`,
175
- `scaleX` = clip time / duration) on its bottom edge. Others `opacity-70`, full on hover.
176
- - A note under the list when the screens show made-up data ("demo sample, a made-up person").
177
-
178
- ## 6. Plans
179
-
180
- Grid `mx-auto max-w-5xl items-stretch gap-5 md:grid-cols-2`, the second card revealed 0.1 s later.
181
- - **Free first and featured**: `.g6-card .g6-glow .tone-gold border-gold shadow-glow p-6 sm:p-8`, name `text-2xl
182
- font-bold` with a "Start here" badge, a tagline, ¥0 (`font-display text-5xl font-bold tracking-tight tabular-nums`)
183
- + "monthly", its benefits listed with gold check icons (show that free is enough), the gold CTA full width at the
184
- bottom (`mt-auto pt-8`).
185
- - **The paid plan as a black-and-gold card in both themes**: a `.g6-sweep rounded-card` wrapper around a `.g6-card`
186
- with `data-theme="dark"` (the dark tokens apply inside) and `bg-[linear-gradient(160deg,#1e1912,#0b0906)]`; the
187
- plan name in `bg-foil text-gradient`; monthly and yearly prices (`text-4xl`, a tax note) in a `<dl>`, both read from
188
- the product catalogue; the yearly saving COMPUTED from them (`round(12 − yearly / monthly)` months), never typed in
189
- the copy, shown as a badge and as a gift line (`tone-gold rounded-2xl bg-tone/12 p-3 text-sm font-bold
190
- text-tone-ink ring-1 ring-tone/40 ring-inset`) only when it is above 0; its CTA a 48 px `bg-foil` key with
191
- `shadow-[0_4px_0_#9a6f22,0_0_22px_rgb(242_199_110/.35)]`, pressed `active:translate-y-[3px]
192
- active:shadow-[0_1px_0_#9a6f22]`.
193
- - Renewal terms and secondary products stay off the homepage. If the project tracks it, send a "pricing viewed"
194
- event once per visit when the section's top enters the upper 60 % of the screen (IntersectionObserver with
195
- `rootMargin: '0px 0px -40% 0px'`).
196
-
197
- ## 7. Products row
198
-
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`
207
- `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").
211
-
212
- ## 8. FAQ
213
-
214
- The project's accordion in the section shell; answers short, facts true today.
215
-
216
- ## 9. Closing CTA
217
-
218
- A Reveal block `relative isolate mx-auto max-w-5xl overflow-hidden rounded-[2rem] bg-[#0d0a06] px-6 py-16
219
- text-center shadow-float ring-1 ring-white/10 sm:px-12 sm:py-20` over a photo (an atrium in warm gold light works:
220
- generated, see imagery.md): the photo `fill -z-20 scale-105 object-cover object-[50%_45%] opacity-80`, an overlay
221
- `bg-[radial-gradient(90%_80%_at_50%_100%,rgb(5_6_10/.92),rgb(5_6_10/.55)_60%,rgb(5_6_10/.35))]`, an aurora pool
222
- rising from the bottom. Dark in both themes, so the text is always white: eyebrow `tracking-[.18em] text-[#ecd6a6]`,
223
- headline `text-2xl font-extrabold text-white min-[400px]:text-3xl sm:text-4xl lg:text-5xl` with the second part in
224
- `bg-foil animate-flow text-gradient bg-[length:200%_200%]`, lead `text-white/80`, the gold CTA (no travelling light:
225
- that is the hero's), "photo for illustration" in `text-2xs text-white/50` in the bottom right corner.
226
-
227
- ## Buttons (if the project has none)
228
-
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
- - **Play glyph** (video buttons, the tour): a gold disc `#f2c76e` with a dark triangle `#0d0a06` (24-unit viewBox:
237
- 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
- themes, `aria-hidden`.
239
-
240
- ## Video dialog
241
-
242
- A button that opens a native modal `<dialog>` (focus, Esc and the top layer come from the browser): `showModal()`
243
- then `play()` (the press is the user's gesture, so sound is allowed); closing pauses. Click on the backdrop closes
244
- (`event.target === dialog`). Dialog `m-auto max-h-none max-w-none overflow-visible bg-transparent p-0
245
- backdrop:bg-[rgb(5_6_10/.84)] backdrop:backdrop-blur-sm open:animate-pop-in`, `aria-label` = the video's title. The
246
- video `controls playsInline preload="none"` with a poster, `aspect-[9/16] w-auto rounded-card bg-black
247
- shadow-float`, `height: min(86dvh, calc((100vw - 2rem) * 16 / 9))` (`w-auto`: the width attribute would otherwise
248
- beat aspect-ratio and letterbox it). A round close button (`size-11`) at `-top-3 -right-3`.
249
-
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.
1
+ # g6-style section blueprints
2
+
3
+ Each blueprint: what the section is for, its layout, its motion, and the measurements that make it look right. The
4
+ reference stack is React + Tailwind v4 + framer-motion (`next/image` for pictures); class names below use the tokens
5
+ of `tokens.md` and the animations of `motion.md`. Write the components in the project's own structure, with its
6
+ i18n, icon set (duotone Lucide shapes work), logo and button helpers.
7
+
8
+ Two patterns every section follows:
9
+ - **One media map.** Every image and video of the page, with its alt text per language, in one file
10
+ (`visuals.ts`): sections read from it, nobody hard-codes a path.
11
+ - **Copy per component** in every language the site has. Prices, limits and plan facts come from the product
12
+ catalogue or shared constants, never typed into the copy (a missing catalogue id should fail the build rather
13
+ than show a wrong price).
14
+
15
+ ## Page order (a product homepage)
16
+
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.
22
+
23
+ ## Section shell
24
+
25
+ `<section id aria-labelledby="{id}-title" class="relative overflow-x-clip py-16 md:py-24">` (+ `bg-surface/55` and an
26
+ absolute `.led-line inset-x-0 top-0` when it is a band), content `mx-auto max-w-6xl px-4`. `overflow-x-clip` (not
27
+ hidden) so glows never widen the page and sticky still works.
28
+
29
+ Heading block (in a Reveal, `max-w-2xl`, `mx-auto text-center` when centred; centred is the default):
30
+ - Eyebrow: Latin word, `flex items-center gap-3 font-display text-xs font-semibold tracking-[.22em] uppercase
31
+ text-ink-gold`, a `.led-line w-8` dash before it and, when centred, after it.
32
+ - h2 `id="{id}-title"`: `mt-2 text-2xl leading-snug font-bold text-ink-title sm:text-3xl lg:text-4xl lg:leading-tight`.
33
+ - Lead: `mt-3 text-base leading-relaxed text-ink-soft`.
34
+ - Section content starts at `mt-10`.
35
+
36
+ Japanese headings and leads: split the text after each 、 / 。 and wrap every phrase in an `inline-block` span, so a
37
+ line never breaks inside a word (「プロフィー / ル。」). For body text in narrow columns use `[word-break:auto-phrase]`
38
+ + `text-pretty` instead (inline-block phrases leave ragged lines in a 250 px column).
39
+
40
+ ## Phone frame (shared)
41
+
42
+ A phone around a real screen capture (captures 900×1948: a 390 pt iPhone screen). Width from its column, height from
43
+ 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)]`;
45
+ 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)`.
46
+ - 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`.
48
+ - The capture that can be the page's largest paint loads with `priority` and its phone has no entrance animation.
49
+
50
+ ## 1. Hero
51
+
52
+ - `<section class="relative overflow-hidden">`; a skylight div at the top (`pointer-events-none absolute inset-x-0
53
+ 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`.
55
+ - h1: `text-[34px] leading-[1.22] font-extrabold tracking-tight text-ink-title sm:text-5xl sm:leading-[1.16]
56
+ 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
+ line wraps only between parts (Japanese runs parts together, other languages put a space between them, and
58
+ 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").
62
+ - Every text block rises with CSS on first paint: `animate-rise` + `animationDelay` `0.08 + 0.09 × step` s (steps
63
+ 0–4: line 1, line 2, lead, buttons, note). Never hide hero text behind JavaScript (it is the LCP candidate).
64
+ - Buttons: the gold hero CTA (the only one with `flow`) + an outline button that opens the intro video in a dialog
65
+ (label with its length, "Watch the intro (45s)") and a play glyph. No video yet: the second button scrolls to the
66
+ tour (`#how`).
67
+ - **Visual** (`relative mx-auto h-[430px] w-full max-w-[560px] [perspective:1400px] sm:h-[540px] lg:h-[600px]`):
68
+ - Aurora behind (`absolute inset-0 -z-10 sm:-inset-12`): three `animate-aurora` round divs, `closest-side` radial
69
+ gradients: 62 % at top 4 % / left 6 % champagne `.34`; 58 % at right 2 % / bottom 6 % bronze `.28`, delay -6 s;
70
+ 46 % at top 26 % / right 18 % gold `.32`, delay -11 s.
71
+ - A `preserve-3d` layer carrying the tilt and the sink. Two phones behind (`w-[35%] sm:w-[34%]`, top 13 % left
72
+ 1 % / top 10 % right 1 %, `sm:` 3 %), rotated -8° / +8°, opacity .95, entering at 0.35 s / 0.5 s, drifting with
73
+ phases -2 s / -4 s. The front phone `top-[3%] left-1/2 w-[44%] sm:w-[42%] -translate-x-1/2
74
+ [transform:translateZ(60px)]`.
75
+ - Tilt (mouse only): pointer position in the box mapped -0.5…0.5 → `rotateY` -10…10°, `rotateX` 8…-8°, through
76
+ `useSpring({ stiffness: 110, damping: 18, mass: 0.6 })`; back to 0 on pointer leave.
77
+ - Scroll (`useScroll({ target, offset: ['start start', 'end start'] })`): back phones spread `x` 0 → -48 / +48 px,
78
+ the stack sinks `y` 0 → 56 px. Reduced motion: no tilt, no spread.
79
+ - A looping tap on a real button of the front screen: a span at the measured spot (percent of the capture, e.g.
80
+ 43 % across / 62.7 % down), `size-[22%]`, holding an `animate-tap` circle `bg-white/70 ring-2 ring-white`.
81
+ - The toast that answers it (`animate-toast`, same 5 s clock) at the bottom centre: `rounded-2xl bg-[#15110b]/90
82
+ py-2 pr-4 pl-2 text-white shadow-float ring-1 ring-white/10 backdrop-blur`, a gold icon tile (`bg-gold/20
83
+ ring-gold/50`) + a bold line + a `text-2xs text-white/70` line.
84
+ - Chips at the edges (URL, "QR too", "no app"): `flex items-center gap-2 rounded-2xl bg-surface/90 py-1.5 pr-3
85
+ pl-1.5 shadow-float ring-1 ring-line backdrop-blur` with a tone icon tile (`size-8 sm:size-9 rounded-xl bg-tone/15
86
+ ring-1 ring-tone/40 ring-inset`). Each in three wrappers: position + `[transform:translateZ(90px)]` →
87
+ `animate-rise` (delays 0.7 / 0.85 / 1 s) → `animate-drift` (phases -1 / -3 / -4.5 s). On phones only the URL
88
+ chip, tucked in the corner; the others from `sm`.
89
+ - Floating things sit at `translateZ(90px)`, above the front phone's 60 px, or the phone hides them.
90
+
91
+ ## 2. Strip (marquee)
92
+
93
+ `aria-hidden` (every item is said again on the page), `data-scroll-x`, `relative overflow-hidden py-3`, a
94
+ `.led-line` at the top and the bottom. Inside, `animate-marquee flex w-max` with
95
+ `[mask-image:linear-gradient(90deg,transparent,#000_8%,#000_92%,transparent)]` and
96
+ `hover:[animation-play-state:paused]`, holding the same `<ul>` twice (`flex shrink-0 gap-3 pr-3`) so the loop is
97
+ seamless. Items: `rounded-full bg-surface/80 px-4 py-2 text-sm font-bold whitespace-nowrap text-ink-title shadow-edge
98
+ ring-1 ring-line` with an 18 px icon; short benefits (free, no app, share by URL, QR, save contact, update anytime,
99
+ the languages).
100
+
101
+ ## 3. "N ways" tiles meeting at one card
102
+
103
+ The strongest section of the style: each way to use the product is a tile whose top is a small looping story that
104
+ SHOWS how it works, then a number, a title and two lines that SAY it. A band section; grid `grid-cols-1 gap-4
105
+ sm:grid-cols-2 lg:grid-cols-4`.
106
+
107
+ - Tile: `.g6-card .g6-glow .tone-gold group flex h-full flex-col p-3 sm:p-4` with the card hover (motion.md §1),
108
+ revealed with `index × 0.08` s. Under the stage: `mt-4` row with the icon tile (`size-9 rounded-xl bg-tone/12
109
+ ring-1 ring-tone/40 ring-inset`, scales on hover) and the number `01`–`04` (`font-display text-xs font-semibold
110
+ tracking-[.16em] text-muted`); title `mt-2 text-lg font-bold`; body `mt-1 text-sm leading-relaxed text-pretty
111
+ text-muted [word-break:auto-phrase]`. Keep labels like "subscription" off these tiles: they explain, they do not
112
+ sell, and none of the stage pretends to be a button.
113
+ - Stage (decorative, `aria-hidden`): `relative h-40 overflow-hidden rounded-2xl bg-surface-2/70 ring-1 ring-line` +
114
+ an inner `bg-[radial-gradient(70%_60%_at_50%_0%,rgb(242_199_110/.18),transparent_70%)]`.
115
+ - Mini phone (CSS): `rounded-[14px] bg-[#15110b] p-[3px]` with `shadow-[0_10px_30px_rgb(20_14_4/.35),0_0_0_1px_rgb(255_255_255/.08)]`,
116
+ screen `data-theme="light" rounded-[11px] bg-[#fffdf8]` and a notch `h-1.5 w-6 rounded-full` at the top. A mini
117
+ profile inside: 30 % cover in `linear-gradient(135deg,#f6d58e,#e2a47c)`, a round avatar (30 %) overlapping it,
118
+ bars for name and rows.
119
+ - **QR**: a real QR of the site's home page, generated client-side (`qrcode`, SVG, margin 0, level M, dark
120
+ `#15110b`, transparent light) when the tile comes near, so scanning it opens the site, never a 404. A 104 px white
121
+ card (`p-2.5 rounded-xl shadow-edge`, `data-theme="light"`), camera corner brackets (four `size-4` spans with
122
+ 2 px borders in `ink-gold`, `-2` outside each corner, rounded on the outer corner), a scan line (`animate-scan h-0.5
123
+ bg-ink-gold shadow-glow [--scan-travel:5.9rem]`) and an `animate-toast` pill at the bottom ("open page",
124
+ `bg-[#15110b] text-white text-xs`).
125
+ - **NFC**: a mini phone (68 × 136 px) and a dark card (`h-10 w-16`, `linear-gradient(135deg,#2a2116,#120e09)`,
126
+ `ring-1 ring-[#f2c76e]/70`, a gold chip and a tiny "NFC" in `#f6d58e`) that slides to the back of the phone
127
+ (`.nfc-card`), two rings at the contact point (`.nfc-ring`, border `ink-gold`), a notification dropping in on the
128
+ screen (`.nfc-banner`: white, "NFC tag" + "Open {host}") and the profile fading in (`.nfc-page`).
129
+ - **Wallet**: a mini phone (74 × 144 px) with "Wallet", two passes in the stack (`#e9dcc2→#cdb98f`,
130
+ `#d9a27c→#a8653f`) and the brand pass (`linear-gradient(160deg,#2a2116,#120e09)`, `ring-[#f2c76e]/60`, logo + name
131
+ in tracked `#f6d58e`, a white QR square) that rises (`.wallet-pass`, `[--stack-y:58%]`) and shows its QR
132
+ (`.wallet-qr`) after a tap (`.wallet-tap`).
133
+ - **URL**: a browser card (`inset-3 rounded-xl bg-surface shadow-edge ring-1 ring-line`), three dots (coral, amber,
134
+ gold), an address field with a lock in `ink-gold` where `{host}/{name}` types itself (motion.md §7), a `bg-cta`
135
+ progress line, then the mini page.
136
+ - Under the row: on `lg` the SVG of lines of light (motion.md §4); on phones an arrow chip instead (`animate-drift
137
+ size-10 rounded-full bg-surface text-ink-gold shadow-glow-sm ring-1 ring-gold/50`). Then "your page" in
138
+ `.g6-sweep rounded-[1.75rem]` around a `.g6-card .g6-glow .tone-gold` (`p-5 sm:p-6`, `max-w-xl`): the logo (64 px)
139
+ over an `animate-glow-pulse` halo, an eyebrow, `{host}/{name}` (`font-display text-lg sm:text-xl`, truncating) and
140
+ pills of what the page holds. Then one closing line `text-xl sm:text-2xl font-bold` in `bg-gold-ink text-gradient`.
141
+
142
+ ## 4. "More than X"
143
+
144
+ Grid `items-center gap-10`, from `lg` `[minmax(0,0.9fr)_minmax(0,1.1fr)] gap-14`.
145
+ - Left (`max-w-[420px] py-6`): an aurora pool (gold `.3` → bronze `.12`) behind a phone at 56 % width with the real
146
+ screen, and three glass chips (`rounded-2xl bg-surface/90 shadow-float ring-1 ring-line backdrop-blur`) floating
147
+ with `animate-drift` on phases 0 / -2 / -4 s, one per thing the product does: a post (top left, 42 % wide, an image
148
+ block + bars), a contact just added (right, at 44 %), a card being read under a scan line (bottom left, 44 % wide,
149
+ a white `aspect-[91/55]` card with `animate-scan [--scan-travel:2.6rem]`).
150
+ - Right: `grid gap-3 sm:grid-cols-2` of benefit cards: `.g6-card .tone-{tone} p-4 sm:p-5` with the smaller hover,
151
+ icon tile `size-10`, title `mt-3 font-bold`, body `text-sm text-muted [word-break:auto-phrase]`, an optional caveat
152
+ `text-xs text-muted/80`. The tone follows the meaning (bronze = identity, gold = done/connect, champagne = sharing).
153
+ A paid feature gets a small badge like 「プラン特典」 rather than the plan's name.
154
+ - 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
+
156
+ ## 5. Product tour
157
+
158
+ A phone that shows the real app step by step (short silent screen recordings, ~5 s each, 540 px wide, `-an`), the
159
+ list of steps beside it. Grid `items-center gap-8 md:grid-cols-2 lg:gap-14`; the phone `md:order-2`, `w-[66%]
160
+ max-w-[300px] md:w-[72%]`, an aurora pool behind it, a `1 / 6` counter under it (`font-display tabular-nums`).
161
+
162
+ - All steps' media stacked in the phone: a poster (still) per step and, over it, its clip (`muted playsInline
163
+ preload="none"`); the active one at opacity 100, the others 0 (`transition-opacity duration-500`). The last step can
164
+ be a still that stays 4.5 s.
165
+ - **Nothing plays or loads until the visitor presses ▶ or a step.** Until then a play overlay over the phone
166
+ (`bg-[#15110b]/10`, a 56 px play glyph over an `animate-glow-pulse` halo, a "Play the screens" pill). Once started:
167
+ play the active clip from 0, pause every other one, advance on `ended`, play only while `useInView(…, { amount:
168
+ 0.4 })`; after the last step, rest on the first step, not started. A pause button (`size-10 rounded-full
169
+ bg-[#15110b]/75 backdrop-blur`, two bars) at the bottom right while it runs.
170
+ - Steps (`<ol class="space-y-2">`): each a button (`rounded-2xl px-4 py-3 text-left`, `aria-current="step"` on the
171
+ active one) with a number disc (`size-8`: active `bg-cta text-on-gold shadow-glow-sm`, done `bg-gold/20
172
+ text-ink-gold` with a check, upcoming `bg-surface-2 text-muted ring-1 ring-line`), a label (`text-2xs font-bold
173
+ tracking-[.14em] uppercase text-ink-champagne`) and a title. Active: `bg-surface shadow-edge ring-1 ring-gold/70`,
174
+ its description opening with a grid-rows `0fr → 1fr` transition (500 ms) and a `bg-cta` progress bar (`h-0.5`,
175
+ `scaleX` = clip time / duration) on its bottom edge. Others `opacity-70`, full on hover.
176
+ - A note under the list when the screens show made-up data ("demo sample, a made-up person").
177
+
178
+ ## 6. Plans
179
+
180
+ Grid `mx-auto max-w-5xl items-stretch gap-5 md:grid-cols-2`, the second card revealed 0.1 s later.
181
+ - **Free first and featured**: `.g6-card .g6-glow .tone-gold border-gold shadow-glow p-6 sm:p-8`, name `text-2xl
182
+ font-bold` with a "Start here" badge, a tagline, ¥0 (`font-display text-5xl font-bold tracking-tight tabular-nums`)
183
+ + "monthly", its benefits listed with gold check icons (show that free is enough), the gold CTA full width at the
184
+ bottom (`mt-auto pt-8`).
185
+ - **The paid plan as a black-and-gold card in both themes**: a `.g6-sweep rounded-card` wrapper around a `.g6-card`
186
+ with `data-theme="dark"` (the dark tokens apply inside) and `bg-[linear-gradient(160deg,#1e1912,#0b0906)]`; the
187
+ plan name in `bg-foil text-gradient`; monthly and yearly prices (`text-4xl`, a tax note) in a `<dl>`, both read from
188
+ the product catalogue; the yearly saving COMPUTED from them (`round(12 − yearly / monthly)` months), never typed in
189
+ the copy, shown as a badge and as a gift line (`tone-gold rounded-2xl bg-tone/12 p-3 text-sm font-bold
190
+ text-tone-ink ring-1 ring-tone/40 ring-inset`) only when it is above 0; its CTA a 48 px `bg-foil` key with
191
+ `shadow-[0_4px_0_#9a6f22,0_0_22px_rgb(242_199_110/.35)]`, pressed `active:translate-y-[3px]
192
+ active:shadow-[0_1px_0_#9a6f22]`.
193
+ - Renewal terms and secondary products stay off the homepage. If the project tracks it, send a "pricing viewed"
194
+ event once per visit when the section's top enters the upper 60 % of the screen (IntersectionObserver with
195
+ `rootMargin: '0px 0px -40% 0px'`).
196
+
197
+ ## 7. Products row
198
+
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`
207
+ `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").
211
+
212
+ ## 8. FAQ
213
+
214
+ The project's accordion in the section shell; answers short, facts true today.
215
+
216
+ ## 9. Closing CTA
217
+
218
+ A Reveal block `relative isolate mx-auto max-w-5xl overflow-hidden rounded-[2rem] bg-[#0d0a06] px-6 py-16
219
+ text-center shadow-float ring-1 ring-white/10 sm:px-12 sm:py-20` over a photo (an atrium in warm gold light works:
220
+ generated, see imagery.md): the photo `fill -z-20 scale-105 object-cover object-[50%_45%] opacity-80`, an overlay
221
+ `bg-[radial-gradient(90%_80%_at_50%_100%,rgb(5_6_10/.92),rgb(5_6_10/.55)_60%,rgb(5_6_10/.35))]`, an aurora pool
222
+ rising from the bottom. Dark in both themes, so the text is always white: eyebrow `tracking-[.18em] text-[#ecd6a6]`,
223
+ headline `text-2xl font-extrabold text-white min-[400px]:text-3xl sm:text-4xl lg:text-5xl` with the second part in
224
+ `bg-foil animate-flow text-gradient bg-[length:200%_200%]`, lead `text-white/80`, the gold CTA (no travelling light:
225
+ that is the hero's), "photo for illustration" in `text-2xs text-white/50` in the bottom right corner.
226
+
227
+ ## Buttons (if the project has none)
228
+
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
+ - **Play glyph** (video buttons, the tour): a gold disc `#f2c76e` with a dark triangle `#0d0a06` (24-unit viewBox:
237
+ 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
+ themes, `aria-hidden`.
239
+
240
+ ## Video dialog
241
+
242
+ A button that opens a native modal `<dialog>` (focus, Esc and the top layer come from the browser): `showModal()`
243
+ then `play()` (the press is the user's gesture, so sound is allowed); closing pauses. Click on the backdrop closes
244
+ (`event.target === dialog`). Dialog `m-auto max-h-none max-w-none overflow-visible bg-transparent p-0
245
+ backdrop:bg-[rgb(5_6_10/.84)] backdrop:backdrop-blur-sm open:animate-pop-in`, `aria-label` = the video's title. The
246
+ video `controls playsInline preload="none"` with a poster, `aspect-[9/16] w-auto rounded-card bg-black
247
+ shadow-float`, `height: min(86dvh, calc((100vw - 2rem) * 16 / 9))` (`w-auto`: the width attribute would otherwise
248
+ beat aspect-ratio and letterbox it). A round close button (`size-11`) at `-top-3 -right-3`.
249
+
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.