/* ── Pixel City company site ───────────────────────────────────────────────
   Every page on this site, no build step.

   WHITE PAPER, NEON INK. The ground is #ffffff — the logo stage the brand
   already uses (apps/tsunami/.artifacts/pixel-city-trailer.md, 2026-09-12) —
   and the only two accents are the mark's own violet #7c4dff and coral #ff5a6e.
   The old product site's indigo does not appear here on purpose.

   THE NAMES ARE THE APP'S NAMES. `--bg`, `--bg-card`, `--text`, `--border` and
   the radius scale are the Pixel City design tokens from
   packages/ui/src/tokens.css, so someone arriving from Luma World does not have
   to learn a second vocabulary to change a colour here. The VALUES are this
   site's light palette rather than the app's dark one, which is what a token
   name is for. See .claude/skills/pc-panel-ui.

   ONE THING IS DELIBERATELY NOT TAKEN. The app's `--accent` is sage green
   #5c9a7d. It does not appear here. The accent is the mark's violet → coral,
   because the mark is what a visitor is looking at.

   Coral is a SHAPE colour, never a text colour: #ff5a6e on white is 3.0:1 and
   fails AA. Violet at 4.8:1 passes, and carries the eyebrows.

   OLD NAMES, STILL HERE. `--ink`, `--copy`, `--muted`, `--line`, `--paper` are
   aliases onto the tokens so pages written against them keep working. New rules
   should use the token names.

   This file is the whole shared vocabulary — nav, buttons, hero, bands, cards,
   the product row, the closing CTA, partners, footer. Anything only one page
   uses stays inline in that page.
   ------------------------------------------------------------------------ */

:root {
  color-scheme: light;

  /* ── the app's token names, this site's light values ──────────────── */
  --bg:          #ffffff;   /* the page ground */
  --bg-card:     #ffffff;   /* a card surface — white on white, held by its border */
  --bg-hover:    #f2f2f7;   /* a card under the pointer */
  --bg-deep:     #f7f7fb;   /* the alternating band. On paper the alternate goes
                               DOWN into grey; on the dark build it went down
                               into black. Same token, same job. */
  --bg-popup:    #ffffff;
  --bg-input:    #ffffff;
  --text-bright: #06091a;   /* headings                     — 19.8:1 on white */
  --text:        #0b1030;   /* the hero lead                — 18.6:1 */
  --text-muted:  #39406b;   /* intros and card copy         —  9.9:1 */
  --text-dim:    #565f86;   /* nav, pills, captions, footer —  6.2:1 */
  --border:      #e7e8f1;
  --border-subtle: #efeff5;

  /* The graphite sheet, in its pale form — the same softening
     packages/ui/src/tokens.css applies under [data-theme="light"]. */
  --shadow-sheet:
    0 8px 22px rgba(11, 16, 48, .10),
    inset 0 1px 0 rgba(255, 255, 255, .5);

  /* radius scale at md — a child's corner is always smaller than its parent's */
  --ui-radius-xs: 3px;
  --ui-radius-sm: 5px;
  --ui-radius-md: 7px;
  --ui-radius-lg: 10px;
  --ui-radius-xl: 14px;

  /* ── ours, and only ours ──────────────────────────────────────────── */
  --violet:     #7c4dff;   /* the mark's violet */
  --coral:      #ff5a6e;   /* the mark's coral — a SHAPE colour, 3.0:1 on white */
  --violet-ink: #7c4dff;   /* violet as TEXT: 4.81:1 on --bg, and 4.50:1 on the
                              tint band — passing, with nothing to spare. The
                              dark build needed a lighter cut here; paper does
                              not, so this is the brand hex itself. */

  --shadow:    0 1px 2px rgba(11, 16, 48, .05), 0 14px 30px -20px rgba(11, 16, 48, .30);
  --shadow-up: 0 2px 4px rgba(11, 16, 48, .06), 0 22px 44px -22px rgba(11, 16, 48, .34);
  --ring:      rgba(11, 16, 48, .18);   /* the dark outline on white */

  /* ── aliases kept so existing pages keep working ──────────────────── */
  --paper:  var(--bg);
  --tint:   var(--bg-deep);
  --ink:    var(--text-bright);
  --body:   var(--text);
  --copy:   var(--text-muted);
  --muted:  var(--text-dim);
  --line:   var(--border);
  --line-2: #d9dbe9;

  /* exactly 16px at phone width, room to breathe above it */
  --gutter: clamp(16px, 3.6vw, 40px);
  --wrap:   1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  /* overflow-x is a guard, not a fix — nothing here should ever exceed the viewport. */
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(var(--wrap), 100% - (var(--gutter) * 2)); margin-inline: auto; }

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  color: var(--text-bright);
  font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin: 0;
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* ── nav ──────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 62px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand .mark { height: 23px; width: auto; }
.brand b { font-weight: 600; font-size: 1.0rem; letter-spacing: -.02em; color: var(--text-bright); }

/* Several links have to sit between the brand and the button at 768px, so the
   gap gives ground before anything else does. */
.nav-links { display: flex; gap: clamp(15px, 2.3vw, 26px); }
.nav-links a {
  text-decoration: none; color: var(--text-dim); font-size: .9rem; font-weight: 500;
  white-space: nowrap;
  transition: color .16s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text-bright); }
/* The page you are on: brighter, with the mark's gradient as a 2px rule under it. */
.nav-links a[aria-current="page"] { color: var(--text-bright); }
.nav-links a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--coral));
}

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .62em 1.15em; border-radius: 999px;
  font-size: .9rem; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-1px); }
/* The neon stays. White on this gradient is 4.8:1 at the violet end and 3.0:1
   at the coral end — under AA for body text, kept because the button IS the
   brand. A pill's radius is its own height, which is why these are not on the
   radius scale. */
.btn-solid {
  background: linear-gradient(110deg, var(--violet), var(--coral));
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(124, 77, 255, .55);
}
.btn-solid:hover { box-shadow: 0 12px 28px -10px rgba(124, 77, 255, .62); }
/* Dark-outlined on white — the paper form of panel-ui's "secondary": the same
   fill/border/text triple, with the border carrying the weight the dark build
   got from its fill. */
.btn-ghost { background: var(--bg-input); border-color: var(--ring); color: var(--text-bright); }
.btn-ghost:hover { background: var(--bg-hover); border-color: rgba(11, 16, 48, .42); }
.btn-lg { padding: .82em 1.5em; font-size: .97rem; }

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 108px) 0 clamp(52px, 8vw, 96px);
  background-repeat: no-repeat;
  /* A wash, not a vignette — low alpha, and the ramps fade to alpha-0 in their
     own hue rather than to `transparent`, so no grey fringe muddies the paper. */
  background-image:
    radial-gradient(820px 500px at 6% -16%, rgba(124, 77, 255, .13), rgba(124, 77, 255, 0) 62%),
    radial-gradient(700px 460px at 94% 2%,  rgba(255, 90, 110, .10), rgba(255, 90, 110, 0) 60%);
}

.pill {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .38em .9em; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-card);
  box-shadow: 0 1px 2px rgba(11, 16, 48, .04);
  font-size: .78rem; font-weight: 500; letter-spacing: .01em; color: var(--text-dim);
}
.pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px;
  background: linear-gradient(135deg, var(--violet), var(--coral));
}

h1 {
  margin: 22px 0 0;
  font-size: clamp(2.05rem, 6.2vw, 3.9rem);
  letter-spacing: -.038em;
  line-height: 1.04;
  max-width: 16ch;
}
.lead {
  margin: 22px 0 0; max-width: 54ch;
  color: var(--text); font-size: clamp(1rem, 1.7vw, 1.1rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── sections ─────────────────────────────────────────────────────────── */

.band { padding: clamp(56px, 8vw, 96px) 0; }
.tint { background: var(--bg-deep); border-block: 1px solid var(--border); }

.eyebrow {
  display: block; margin: 0 0 14px;
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--violet-ink);
}
.band h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); max-width: 20ch; }
.band .intro { margin: 18px 0 0; max-width: 58ch; color: var(--text-muted); }

/* ── cards ────────────────────────────────────────────────────────────── */

.cards { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  padding: 28px 26px 30px;
  border: 1px solid var(--border); border-radius: var(--ui-radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-up);
  background: var(--bg-hover); border-color: var(--line-2);
}
.card h3 { font-size: 1.1rem; margin: 20px 0 10px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--text-muted); font-size: .95rem; max-width: 62ch; }

/* the tick is the mark in miniature — one ring, or two where the card earns it */
.tick { position: relative; width: 34px; height: 30px; }
.tick i { position: absolute; width: 22px; height: 22px; border: 4px solid var(--violet); border-radius: var(--ui-radius-xs); inset: 0 auto auto 0; }
.tick.coral i { border-color: var(--coral); }
.tick.both i + i { border-color: var(--coral); inset: 8px auto auto 12px; }

/* ── the product row ──────────────────────────────────────────────────── */

/* A big surface, so it takes the graphite sheet rather than the card lift. */
.product {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px;
  margin-top: 40px; padding: 30px;
  border: 1px solid var(--border); border-radius: var(--ui-radius-xl);
  background:
    radial-gradient(640px 260px at 0% 0%, rgba(124, 77, 255, .09), rgba(124, 77, 255, 0) 70%),
    var(--bg-card);
  box-shadow: var(--shadow-sheet);
}
.product-body { flex: 1 1 280px; min-width: 0; }
.product h3 { font-size: 1.32rem; }
.product p { margin: 8px 0 0; color: var(--text-muted); }
.product-side { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.status {
  display: inline-block; padding: .34em .8em; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-input);
  font-size: .76rem; font-weight: 500; color: var(--text-dim); white-space: nowrap;
}

/* ── the closing band ─────────────────────────────────────────────────── */

.cta { text-align: center; }
.cta h2 { max-width: 24ch; margin-inline: auto; }
.cta .intro { margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ── partners ─────────────────────────────────────────────────────────── */

/* A flex row from the start, though there is one card in it: the next partner
   should be a second <a>, not a layout change. */
.partners { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 40px; }
.partner {
  flex: 1 1 320px; max-width: 430px; min-width: 0;
  display: block; text-decoration: none;
  padding: 26px 24px 22px;
  border: 1px solid var(--border); border-radius: var(--ui-radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.partner:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-up);
  background: var(--bg-hover); border-color: var(--line-2);
}
/* Their mark as they publish it, in the cut they publish for light grounds —
   coral glyph, #262626 wordmark, unrecoloured by us. */
.partner-logo { height: 30px; width: auto; }
.partner p { margin: 18px 0 0; color: var(--text-muted); font-size: .93rem; }
.partner-link { display: inline-block; margin-top: 16px; color: var(--text-dim); font-size: .85rem; font-weight: 500; }
.partner:hover .partner-link { color: var(--text-bright); }

/* ── footer ───────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--border);
  padding: 44px 0 52px;
  background:
    radial-gradient(820px 320px at 50% 135%, rgba(255, 90, 110, .10), rgba(255, 90, 110, 0) 66%),
    var(--bg-deep);
}
/* A tinted band running straight into the footer would draw its own bottom
   hairline against the footer's top one — one 2px line where the page uses 1px. */
.tint + .foot { border-top: 0; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
/* The marketing SVG is a 1774x887 sheet with the letters floating in the middle, so
   the viewBox in the markup is the INK box from
   packages/renderer/src/brand/wordmarkGeometry.ts. The cut is dark-v1 — black
   glyphs on a transparent ground, the one made for light surfaces. */
.wordmark { width: 172px; height: auto; }
.foot .copy { margin: 0; color: var(--text-dim); font-size: .86rem; margin-right: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-links a { color: var(--text-dim); text-decoration: none; font-size: .88rem; font-weight: 500; }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--text-bright); }
.foot-links a[aria-current="page"] { color: var(--text-bright); }

:where(a, button):focus-visible { outline: 2px solid var(--violet-ink); outline-offset: 3px; border-radius: var(--ui-radius-md); }

/* ── legal and support prose (/privacy, /terms, /support) ─────────────── */
/* Long-form reading pages: one column, body-size copy, headings that step down
   from the band h2. Nothing here is used by the marketing pages. */

.legal { max-width: 72ch; }
.legal .updated { margin: 14px 0 0; color: var(--text-dim); font-size: .9rem; }
.legal h2 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); margin: 48px 0 12px; max-width: none; }
.legal h3 { font-size: 1.02rem; margin: 26px 0 8px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--text-muted); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 1.2em; display: grid; gap: 8px; }
.legal a { color: var(--violet-ink); }
.legal strong { color: var(--text); font-weight: 600; }
.legal .note {
  margin: 20px 0; padding: 16px 20px;
  border: 1px solid var(--border); border-radius: var(--ui-radius-xl);
  background: var(--bg-deep);
}
.legal .note p:last-child { margin-bottom: 0; }
.legal details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.legal details:first-of-type { border-top: 1px solid var(--border); }
.legal summary { cursor: pointer; font-weight: 600; color: var(--text-bright); }
.legal details > :not(summary) { margin-top: 10px; }

/* ── responsive ───────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  h1 { max-width: 18ch; }
  .cards, .cards.two { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  /* The links go; a page here is one scroll and the button is the thing people want.
     The brand mark stays, so the way back to the front page is where it always is. */
  .nav-links { display: none; }
  .nav-inner { height: 58px; }
  .product { padding: 24px 22px; }
  .foot-inner { gap: 16px 24px; }
  .foot .copy { margin-right: 0; flex-basis: 100%; }
  .foot-links { gap: 14px 24px; }
  .wordmark { width: 146px; }
}

/* ── the neon phrase ──────────────────────────────────────────────────── */
/* Two phrases of the front-page headline carry the mark's own ramp. Headings
   only: at 62px/600 this is WCAG Large Text, where the bar is 3:1 — on white
   the violet end is 4.8:1 and the coral end 3.0:1. The same gradient on body
   copy would fail at the coral end, which is why this is not a text colour.
   `display: inline` keeps the phrase wrapping with the rest of the line; the
   solid colour underneath is what shows where background-clip:text is not. */
.neon {
  display: inline;
  color: var(--violet-ink);
  background-image: linear-gradient(104deg, var(--violet) 10%, var(--coral) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .neon { background-image: none; -webkit-text-fill-color: currentColor; }
}
