# Sleepover

A late-night hangout look for friendly products. The page sits on a deep indigo night sky dotted with tiny stars and soft blurred glow orbs in violet, pink and mint. Headlines are huge, wide and all caps, with one phrase lit up in a sun yellow. Product shots are rounded dark app windows floating at a slight 3D tilt, with a phone and a round moon mascot tucked around them. Buttons are chunky and rounded, in white or periwinkle. One pale "dawn" section breaks up the night so the page breathes. It feels like staying up past bedtime with your favorite people: fun, warm and a little bit magic.

Use it for: community apps, hobby clubs, games and play, kids and family products, events, group chat and social tools, anything that happens after dark. Avoid it for: banks, legal, medical, serious B2B dashboards, anything that needs to look quiet and formal.

## How to use this file

Give this file, `tokens.css` and `components.css` to your AI coding tool and say:

> Build [your page] in the Sleepover style. Follow DESIGN.md exactly. Use the tokens in tokens.css and the classes in components.css; don't invent new colors, fonts, radii or shadows.

`demo.html` is a complete landing page built only with the kit. `pricing.html`, `blog.html` and `signup.html` show the other page types.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Unbounded:wght@600;700;800&family=Figtree:wght@400;500;600;700&family=DM+Mono:wght@500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Display | Unbounded 800 (700 for small headings) | Every headline, uppercase, tracking -0.02em, line-height 0.98. Prices and stats too. |
| Body | Figtree 400 to 700 | Paragraphs, buttons, nav, pills, forms. Buttons are 600. |
| Mono | DM Mono 500 | Small uppercase labels above headings, dates, read times, file-like titles in app windows. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--so-night` | #16175C | Main page background |
| `--so-deep` | #0C0D35 | Darker sections, footer, app window chrome |
| `--so-panel` | #23257A | Raised cards, FAQ rows and pills on night |
| `--so-dawn` | #F4F3FF | The pale section, form panels, article body |
| `--so-violet` | #5C5EF2 | Primary action, links, the featured plan |
| `--so-sun` | #FFD15C | Highlighted headline words, stickers, the moon |
| `--so-pink` | #EF7AD4 | Stickers, avatars, glow orbs, icon tiles |
| `--so-mint` | #5FDDB2 | Live dots, check marks, notes, icon tiles |
| `--so-haze` | #C6C8F4 | Secondary text on night |
| `--so-ink` | #191A42 | Text on dawn, white and candy colors |

Rules:
- The page starts on `.so-section--sky` (stars plus a night gradient that brightens toward the bottom). Sections then alternate night and dawn. Use `--deep` for a thin stats band or the footer.
- Headlines are white on night and ink on dawn. Light up one phrase per headline with `.so-hl` (sun). Use `.so-hl--pink` or `--mint` only in stat rows.
- Candy colors (sun, pink, mint) always carry ink text, never white.
- Glow orbs (`.so-orb`) are the only soft blur. Put one or two per section, partly off the edge.
- No other gradients on cards or buttons. Cards are flat panel color with a hairline ring.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--so-text-hero` | clamp(40px, 6.2vw, 84px) | The hero headline, 3 or 4 short lines |
| `--so-text-h1` | clamp(34px, 4.8vw, 64px) | Page titles and final call to action |
| `--so-text-h2` | clamp(28px, 3.6vw, 46px) | Section headings |
| `--so-text-h3` | 22px | Card titles |
| `--so-text-lead` | clamp(18px, 1.6vw, 21px) | The paragraph under a headline, max 34em, haze color |
| `--so-text-body` | 17px | Body; 19px inside articles |
| `--so-text-label` | 12px | Mono uppercase labels |

## Shape and space

- Radius: 16px on buttons and FAQ rows, 24px on cards and app windows, 32px on plans, art tiles and cover images, pills fully round.
- Shadows: deep and soft (`--so-shadow`, `--so-shadow-lg`) under floating things on night; a light violet shadow (`--so-shadow-dawn`) on dawn. Cards on night use a 1px haze ring instead of a shadow.
- Sections: 112px vertical padding, container 1200px. Hero art needs room to overlap: about 460px tall.
- Signature moves: app windows rotated in 3D (`rotateY(-10deg)`), a phone tilted 6deg overlapping the window's corner, a moon mascot overlapping the other corner, a tilted candy sticker on top, and slow floating motion on one or two of them.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.so-section--sky/night/deep/dawn/violet` | Full-width section on one surface; sky, night and violet include the star dots |
| `.so-orb`, `--pink`, `--mint`, `--sm` | Blurred glow circle, positioned absolutely behind content |
| `.so-sparkle`, `--pink`, `--sun`, `--blur` | Four-point star sparkle |
| `.so-hero-title`, `.so-h1`, `.so-h2`, `.so-h3`, `.so-lead`, `.so-label` | Type; `.so-hl` lights up a phrase in sun |
| `.so-btn--light/violet/ink/ghost`, `--sm`, `--block`, `--social` | Chunky rounded buttons; `--sm` is a pill for the nav |
| `.so-nav`, `.so-logo`, `.so-logo__mark` | Nav bar; links hide below 900px |
| `.so-pill`, `.so-pill__dot`, `--sun/pink/mint/dawn` | Labels and live status |
| `.so-sticker`, `--pink`, `--mint` | Tilted candy sticker that sits on top of art or a plan |
| `.so-hero`, `__grid`, `__copy`, `__art`, `--center` | Two-column hero with an art side, or centered |
| `.so-window`, `__bar`, `__body`, `__rail`, `__main`, `--flat` | Dark app window with a server rail, tilted in 3D unless `--flat` |
| `.so-row`, `__avatar`, `__name`, `__meta`, `--active` | Activity rows inside the window |
| `.so-phone`, `__screen` | Tilted phone that overlaps the window |
| `.so-moon`, `.so-moon__smile` | The round smiling moon mascot |
| `.so-split`, `--flip`, `.so-art` | Feature row: a night art tile beside copy, alternating sides |
| `.so-cards`, `.so-card`, `__icon` (`--pink/mint/sun`), `__text` | Three cards with a candy icon tile |
| `.so-stats`, `.so-stat__num`, `.so-stat__label` | Big number row |
| `.so-cta` | Centered final call to action |
| `.so-toggle` | Monthly or yearly switch using `aria-pressed`; a `<small>` inside is a mint badge |
| `.so-plans`, `.so-plan`, `--featured`, `__name/__price/__text/__list` | Pricing cards; the featured one is violet, lifted, with a sticker |
| `.so-table-wrap`, `.so-table`, `__yes`, `__no` | White comparison table with a night header, scrolls on phones |
| `.so-faq` | Native `<details>` rows; the plus turns pink and rotates to an x |
| `.so-article-head`, `.so-author`, `--card`, `.so-avatar`, `--lg` | Article header, byline and author bio card |
| `.so-media` | Night cover block for an article, draw inside it with CSS |
| `.so-prose`, `.so-note`, `__icon` | Article body on dawn, with a dark pull quote and a mint note |
| `.so-form`, `.so-field`, `.so-label-text`, `.so-input`, `.so-select` | Form fields with a violet focus ring |
| `.so-input-wrap`, `__btn`, `.so-help`, `.so-error`, `.so-field--error`, `.so-check`, `.so-divider-text` | Password show button, helper and error text, checkbox, "or" divider |
| `.so-footer`, `__grid`, `__base` | Deep footer with link columns |
| `.so-float`, `--slow` | Gentle bobbing animation, off with reduced motion |

## Pages in this kit

- `demo.html`: landing page with a tilted app window hero, three alternating feature rows on dawn, event cards, stats and a moonlit call to action.
- `pricing.html`: centered hero with the billing toggle, three plans with the middle one featured, a comparison table on dawn, FAQ and a violet closing band.
- `blog.html`: article with a sky header, a drawn meteor cover, prose on dawn with a note and pull quote, author card and related posts.
- `signup.html`: split screen, sky brand panel with moon and a tilted testimonial on the left, dawn form on the right.

## Page recipe

1. Wrap nav and hero together in one `.so-section--sky` block with two orbs and a couple of sparkles.
2. Nav: logo left, 3 or 4 links in the middle, a white `--sm` button right.
3. Hero: a pill with a live dot, the hero title with one `.so-hl` phrase, a lead, then a white button and a violet button. On the right, a tilted `.so-window` with a phone, the moon and a sticker overlapping its corners.
4. Dawn section with 2 or 3 `.so-split` rows, alternating with `--flip`. Each art tile is a night sky with a simple drawing.
5. Night section: centered heading with a sun pill, then `.so-cards`.
6. Optional deep `.so-stats` band.
7. Sky section with a large orb, the floating moon, an h1 with a `.so-hl` phrase and two buttons.
8. Deep footer.

## Pricing page recipe

1. Sky block: nav, centered hero with a sun pill, h1 with a highlight, lead and `.so-toggle`, then `.so-plans` on the same sky.
2. Featured plan in the middle with a pink sticker and a white button. Side plans use ghost and violet buttons.
3. Dawn section with `.so-table`.
4. Night section with `.so-faq`, about 760px wide.
5. Violet closing band with a white button, then a slim footer.

## Article page recipe

1. Sky block: nav, a mint category pill, h1 with a highlight, `.so-author` with mono date and read time, then a wide `.so-media` cover drawn in CSS.
2. Dawn body with `.so-prose`, at most one `.so-note` and one pull quote.
3. Author card at the end, then a night section of three related `.so-card` links.

## Sign-up page recipe

1. Two equal columns at full height. Left is `.so-section--sky` with the logo, an h1 with a highlight, a lead, the floating moon and a tilted white testimonial card.
2. Right is dawn with a 440px form: h2, one-line promise, two social buttons, the divider, then fields.
3. Show errors with `.so-field--error` and `.so-error` right under the field; helper text under the password.
4. Checkbox for terms, full-width violet submit, then a log-in link.
5. Below 760px the columns stack and the testimonial and moon hide.

## Don'ts

- Don't use sentence case or a thin font for headlines. They are wide, heavy and uppercase.
- Don't highlight more than one phrase per headline.
- Don't put white text on sun, pink or mint.
- Don't flatten the night: keep the star dots and at least one glow orb in each night section.
- Don't use sharp corners or hard offset shadows.
- Don't use em dashes in copy.
