# Interaction design: reproducing the TriLabz enquiry experience in an AI interface

All values here are extracted from the TriLabz website's actual stylesheet and components (the machine-readable copy is `designTokens` in [enquiry-schema.json](enquiry-schema.json)). Do not invent new colours or a different visual language. The goal is a faithful, TriLabz-inspired experience, adapted to what the host platform allows.

## 1. Design tokens

### Colours

| Token | Hex | Use |
|---|---|---|
| ink | `#171D33` | Body text, dark buttons, selected chips |
| canvas | `#F3F6FB` | Page background, input and chip fill (cool white) |
| surface | `#FFFFFF` | Panels and cards |
| mist | `#5C6474` | Secondary text |
| accent | `#3ECF6E` | Green highlights, step badges, active states |
| accent-soft | `#E6F8EC` | Tinted chips and check backgrounds |
| signal | `#3B82F6` | Kickers, links, progress, focus |
| signal-soft | `#E8EFFE` | Selected card background, info callouts |
| lilac / lilac-soft | `#A855F7` / `#F1E9FD` | Occasional decorative accent |
| error text | `#B91C1C` on `#FEF2F2` | Validation messages (Tailwind red-700 / red-50) |

Gradients:
- **Brand text and bar:** `linear-gradient(90deg, #3B82F6 0%, #38BDF8 38%, #34D399 72%, #86EFAC 100%)`
- **Green pill button:** `linear-gradient(90deg, #3ECF6E 0%, #8FE05A 60%, #B9EA4E 100%)`
- **Page background:** canvas with a soft green glow top-left (`rgba(62,207,110,0.12)`) and blue glow top-right (`rgba(59,130,246,0.10)`).

### Typography

- Family: **Plus Jakarta Sans**, fallback `system-ui, sans-serif`. Weights 400, 500, 600, 700.
- Kicker: 12px, 600, uppercase, letter-spacing 0.18em, colour signal.
- Page title: 36px (48px from 640px), 600, tracking -0.025em.
- Step heading: 20px, 600.
- Labels: 14px, 600. Body: 16px, line-height 1.6. Secondary: 14px, colour mist.
- Signature move: headline text in the brand gradient.

### Shape, depth and spacing

- Radii: panel 24px; cards, review sections and callouts 16px; text fields 12px; icon chips 14px; buttons and option chips fully round (9999px).
- Depth is a hairline ring, not a heavy shadow: `0 0 0 1px rgba(0,0,0,0.06), 0 1px 2px -1px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04)`; slightly stronger on hover.
- Panel padding 24px (32px from 640px). Questions in a step are 28px apart; cards 12px apart.
- Dividers: `rgba(0,0,0,0.07)`.
- Breakpoints: 640 / 768 / 1024px. Content max width 74rem on the site; keep cards narrower in a chat column.
- Motion: 150ms ease-out hover transitions; content eases in over ~520ms with `cubic-bezier(0.2, 0, 0, 1)`; buttons scale to 0.96 when pressed. Disable all of it for reduced-motion users.

### Components

- **Panel / card:** white, 24px (card 16px) radius, hairline ring.
- **Primary button:** ink background, white 14px/600 text, pill, 10px×20px padding, slightly darker `#0F1426` on hover, soft green glow under it.
- **Accent button:** green pill gradient with ink text.
- **Ghost button:** mist text, ink on hover ("Back").
- **Option chip (single and multi choice):** pill, canvas fill, hairline ring, 14px ink-80% text; **selected** = ink fill with white text. Optional "Clear" text button for optional questions.
- **Theme card:** white 16px card with a 40px icon chip and title + one-line description; **selected** = signal-soft fill with a 2px signal ring.
- **Text field / textarea:** canvas fill, 12px radius, hairline ring; focus adds a 3px translucent blue ring.
- **Info callout:** signal-soft fill, 16px radius, 14px text, bold lead line.
- **Progress:** four segments (4px high, pill) with step names; completed and current segments are signal blue, remaining ones `rgba(0,0,0,0.08)`; current step label is bold ink.
- **Check badge:** 24px round, accent-soft fill, dark check.
- **Step badge:** 32px round, accent fill, ink 12px/600 number.
- **Required marker:** signal-coloured asterisk; optional fields show "(optional)" in mist.
- **Logo:** `https://www.trilabz.com/brand/LOGO-NEW-2.svg` (PNG alternative `https://www.trilabz.com/brand/LOGO-EMAIL.png`). Show it once, at the top, not on every card.

## 2. The experience, step by step

The website form has four steps: **Enquiry type → Tell us more → Your details → Review & submit.** Mirror this with a small progress indicator, but let the conversation be fluid (the user may answer several things at once). Show only one question card at a time.

### 2.1 Welcome

- Logo, kicker "TRILABZ INNOVATIONS" in signal, a headline such as "Tell us what you're trying to achieve" (optionally brand-gradient on the key phrase), and a signal-soft callout:
  - "No technical knowledge needed. You don't need to have everything figured out."
  - "Nothing is sent from this chat. You'll get a brief to review and send yourself."
- One free-text input ("Describe your idea, problem or question in your own words") and a quiet link "or choose a topic".
- Footer line from the site: "A few minutes · No commitment required."

### 2.2 Theme selection (when needed)

Skip if the opening message makes the theme clear: confirm it in one line instead. Otherwise show a 2-column grid of theme cards (1 column on narrow screens). Use the ten themes in the schema with their icons (Code, Bot, RefreshCw, Cloud, Gauge, Compass, Handshake, Briefcase, Lightbulb, MessageSquare) and short descriptions. Add the callout used on the site: "Not sure which option to choose? Pick General Enquiries or Ideas & Exploration, or just tell me in your own words."

### 2.3 Question cards

- One white card per question: step heading (20px/600) = the question text; one line of mist-coloured "why we ask" when useful.
- Choice questions: option chips, always with a "Not sure" chip and a way to type something else.
- Multi-choice: chips toggle; show "Select all that apply".
- Text questions: text field or 4-row textarea with a helpful placeholder; "Skip" ghost button when optional.
- Conditional follow-ups appear *after* the answer, as the next card, never all at once.
- Primary button "Continue" with an arrow; ghost "Back".

### 2.4 Progress

Map conversation stages onto the four-segment bar: 1 = need and theme; 2 = context, requirements and technical; 3 = contact details; 4 = review. Do not show question counts ("3 of 12"), because the length adapts.

### 2.5 Review and edit

Mirror the site's review screen: three canvas-coloured sections titled "ENQUIRY TYPE", "YOUR ENQUIRY", "YOUR DETAILS" (12px uppercase mist), each with a blue "Edit" link, label/value pairs underneath (mist label, medium-weight ink value). Add a fourth block, "Assumptions to confirm", for inferred items and another, "Not provided", for unknown answers. Editing an item re-opens its question card; afterwards return to the review.

### 2.6 Final brief

A white 24px panel with a green check badge, the brief headline, the sections from [project-brief.md](project-brief.md), and these actions: **Copy brief** (primary), **Shorten for the website form** (ghost), **Open trilabz.com/contact** (accent) and **Email hello@trilabz.com** (ghost). State that nothing has been sent.

## 3. Platform-adaptive guidance

Different AI interfaces allow different things. Use the richest tier available and fall back gracefully.

| Tier | Capability | What to do |
|---|---|---|
| A | Can render HTML/CSS or an artifact/canvas | Build the cards with the tokens above, self-contained (inline CSS). Do not depend on external TriLabz CSS. Load the font from Google Fonts only if the sandbox allows, else use `system-ui`. Reference the logo by URL, but make the layout work without it. |
| B | Can render React or components | Use the same tokens as CSS variables or inline styles. |
| C | Markdown only | Use headings, bold labels and numbered options; one question per message; mark progress as "Step 2 of 4"; use emoji-free plain formatting; present the brief as a Markdown block. |
| D | Voice or plain text | One short question at a time, read options aloud, summarise at the end. |

Always: keep contrast at least WCAG AA (ink on canvas/surface is fine; avoid mist on signal-soft for small text), keep touch targets ≥ 44px, label every control, never rely on colour alone, and support reduced motion.

### Minimal CSS starter (Tier A)

```css
:root{--ink:#171D33;--canvas:#F3F6FB;--surface:#fff;--mist:#5C6474;--accent:#3ECF6E;
--accent-soft:#E6F8EC;--signal:#3B82F6;--signal-soft:#E8EFFE;
--ring:0 0 0 1px rgba(0,0,0,.06),0 1px 2px -1px rgba(0,0,0,.06),0 2px 4px rgba(0,0,0,.04);
--brand:linear-gradient(90deg,#3B82F6 0%,#38BDF8 38%,#34D399 72%,#86EFAC 100%)}
body{font-family:"Plus Jakarta Sans",system-ui,sans-serif;color:var(--ink);background:var(--canvas);line-height:1.6}
.panel{background:var(--surface);border-radius:24px;box-shadow:var(--ring);padding:24px}
.chip{display:inline-block;padding:8px 14px;border-radius:9999px;background:var(--canvas);box-shadow:var(--ring);font-size:14px}
.chip[aria-pressed="true"]{background:var(--ink);color:#fff}
.btn{display:inline-flex;align-items:center;padding:10px 20px;border-radius:9999px;background:var(--ink);color:#fff;font-weight:600;font-size:14px;border:0}
.field{width:100%;margin-top:8px;padding:10px 12px;border:0;border-radius:12px;background:var(--canvas);box-shadow:var(--ring)}
.kicker{font-size:12px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--signal)}
.text-brand{background:var(--brand);-webkit-background-clip:text;background-clip:text;color:transparent}
```

## 4. Do and don't

- Do keep the calm, white-space-heavy look, rounded shapes and hairline depth.
- Do use the brand gradient sparingly, mainly for one key phrase and the progress/sending bar.
- Don't add dark mode, new accent colours, heavy shadows, mascots or stock illustrations.
- Don't imply the experience is the official TriLabz website or submit anything from it. Label it "Draft brief".

Question wording and logic: [enquiry-guide.md](enquiry-guide.md) and [enquiry-schema.json](enquiry-schema.json).
