/* mssgs stickers — the mss.gs look (fancy-v2-light: cream, forest green,
   glass surfaces, Bricolage Grotesque over Hanken Grotesk) with the app's
   own dark sticker drawer for everything that shows stickers.
   No inline styles anywhere (CSP style-src 'self'): per-pack colours come
   from /web/style.css's generated tail, one .hue-N class per pack. */

/* ---- Typefaces: the same files the mssgs site self-hosts ---- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/web/fonts/bricolage/BricolageGrotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/web/fonts/bricolage/BricolageGrotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/web/fonts/hanken/HankenGrotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/web/fonts/hanken/HankenGrotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-matched fallbacks (numbers from the mssgs site), so the page does
   not jump when the real faces land. */
@font-face { font-family: 'Bricolage Fallback'; src: local('Arial'); size-adjust: 112.82%; ascent-override: 82.43%; descent-override: 23.93%; line-gap-override: 0%; }
@font-face { font-family: 'Hanken Fallback'; src: local('Arial'); size-adjust: 123.47%; ascent-override: 80.99%; descent-override: 24.54%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --green-400: #4f8f63;
  --green-500: #2f6e48;
  --green-600: #265f3e;
  --green-700: #1f4f34;
  --green-800: #193f2a;
  --brand: var(--green-500);
  --brand-hover: var(--green-600);
  --on-brand: #f7f3e8;
  --bg: #ebe4d3;
  --ink: #20301f;
  --ink2: #33402f;
  --mut: #4f5b48;
  --line: rgba(50, 55, 30, .14);
  --line2: rgba(50, 55, 30, .22);
  --glass: rgba(255, 255, 255, .55);
  --glass-strong: rgba(255, 253, 244, .82);
  --focus: rgba(51, 117, 77, .45);
  --app: #1b1e22;
  --app2: #23262b;
  --app-line: rgba(255, 255, 255, .13);
  --app-text: #dfe0e2;
  --app-mut: #a3a5ab;
  --danger: #b3261e;
  --shadow: 0 10px 30px rgba(31, 35, 33, .08);
  --shadow-lg: 0 18px 44px rgba(31, 35, 33, .14);
  --font-display: 'Bricolage Grotesque', 'Bricolage Fallback', 'Hanken Grotesk', sans-serif;
  --font-sans: 'Hanken Grotesk', 'Hanken Fallback', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --glow: hsl(150 84% 69% / .34);
  --ring: hsl(150 60% 62% / .55);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink2);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}
/* The aurora: two soft glows behind everything, as on mss.gs. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 700px at 50% -220px, rgba(51, 117, 77, .16), transparent 64%),
    radial-gradient(700px 700px at -12% 32%, rgba(176, 141, 87, .14), transparent 62%),
    radial-gradient(640px 640px at 112% 70%, rgba(51, 117, 77, .08), transparent 62%);
}
main { flex: 1; }
a { color: var(--green-700); }
a:hover { color: var(--green-800); }
::selection { background: rgba(51, 117, 77, .22); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 .5em; }
/* Named with the sectioning elements too: Chrome deprecates the UA's smaller
   h1 inside <section>/<article>, and warns unless the page sets it there. */
h1, :is(article, aside, nav, section) h1 { font-size: clamp(36px, 6.4vw, 64px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 20px; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
code { font-family: var(--font-mono); font-size: .9em; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 20px 8px; }
.section-head { margin-bottom: 22px; }
.section-head p { color: var(--mut); max-width: 640px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--green-700); margin-bottom: 10px; letter-spacing: .01em; }
.eyebrow a { text-decoration: none; }
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--mut); max-width: 640px; }
.more { margin-top: 18px; font-weight: 600; }
.more a { text-decoration: none; }
.facts { color: var(--mut); font-size: 15px; }

/* ---- Glass ---- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .045), var(--shadow);
  border-radius: 22px;
  padding: 26px;
}
.glass h3 { margin-bottom: 8px; }
.glass p:last-child { margin-bottom: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--brand); color: var(--on-brand);
  font: 600 15px/1 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: var(--brand-hover); color: var(--on-brand); box-shadow: 0 4px 20px rgba(38, 95, 62, .24); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: rgba(255, 255, 255, .8); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #8f1d17; box-shadow: none; }
.btn-full { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Top bar: the mss.gs glass pill ---- */
.topbar { position: sticky; top: 12px; z-index: 50; display: flex; justify-content: center; padding: 12px 12px 0; pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: 22px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(255, 253, 244, .72);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07), 0 4px 20px rgba(31, 35, 33, .08);
}
.nav-logo { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.nav-logo:hover { color: var(--ink); }
.nav-logo b { color: var(--green-600); font-weight: 700; }
.mark { width: 20px; height: 26px; display: block; flex: none; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { font-size: 14px; font-weight: 500; color: #56624f; text-decoration: none; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-links a.on { font-weight: 700; }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; width: 44px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.nav-menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 8px;
  border-radius: 16px; background: rgba(253, 250, 241, .97); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(0, 0, 0, .06);
  display: flex; flex-direction: column;
}
.nav-menu-panel a { padding: 11px 14px; border-radius: 10px; color: var(--ink2); text-decoration: none; font-weight: 500; }
.nav-menu-panel a:hover { background: rgba(51, 117, 77, .1); }

/* ---- Hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; color: var(--ink2); text-decoration: none; margin-bottom: 22px;
}
.pill .mark { width: 14px; height: 18px; }
.pill b { color: var(--green-700); }
.hero h1 { max-width: 12ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--mut); font-size: 15px; }
.stats b { color: var(--ink); }

.searchbar { display: flex; gap: 8px; max-width: 560px; margin: 22px 0 0; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .78); box-shadow: inset 0 0 0 1px var(--line2), var(--shadow); }
.searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 16px var(--font-sans); color: var(--ink); padding: 8px 14px; outline: none; }
.searchbar input::placeholder { color: #7a8274; }
.searchbar:focus-within { box-shadow: 0 0 0 3px var(--focus), var(--shadow); }

/* The hero's chat: a dark mssgs window with stickers sent in it. */
.chatmock { background: var(--app); border-radius: 24px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; transform: rotate(1.2deg); }
.chatmock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--app2); border-bottom: 1px solid var(--app-line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3a3d43; }
.chatmock-title { margin-left: 10px; color: var(--app-mut); font-size: 13px; font-weight: 600; }
.chatmock-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg p { margin: 0; }
.who { color: var(--app-text); font-weight: 700; font-size: 14px; }
.txt { color: var(--app-text); font-size: 15px; }
.av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #13241a; }
.av-a { background: #8fc7a5; }
.av-b { background: #d9b67a; }
.av-c { background: #a9b8ee; }
.sent { display: block; width: 130px; height: 130px; margin-top: 4px; }

/* ---- Pack tiles: the app's sticker drawer, card for card ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.tile {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, var(--glow), transparent 64%), #202327;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 22px rgba(31, 35, 33, .12);
  color: #fff; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.tile:hover { color: #fff; transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--ring), 0 14px 30px rgba(31, 35, 33, .2); }
.tile-art { position: absolute; left: 0; right: 0; top: 9%; bottom: 25%; }
.tile-art img, .packart img { position: absolute; bottom: 0; left: 50%; width: auto; aspect-ratio: 1 / 1; }
.t-front { height: 100%; transform: translateX(-50%); z-index: 2; }
/* The two behind it: 72% of the front's size, fanned ±10°, 0.49 of the
   front's height out to each side — the app's numbers. */
.t-left { height: 72%; transform: translateX(-118%) rotate(-10deg); opacity: .85; }
.t-right { height: 72%; transform: translateX(18%) rotate(10deg); opacity: .85; }
.tile:hover .t-front { transform: translateX(-50%) scale(1.05); }
.t-front { transition: transform .25s var(--ease); }
.tile-top { position: absolute; top: 7px; left: 8px; right: 8px; display: flex; justify-content: space-between; z-index: 3; }
.corner { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.5; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 0 7px; }
.tile-name { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; text-align: center; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }

/* ---- Sticker grids: the open pack, dark like the app ---- */
.picker { background: var(--app); border-radius: 24px; padding: 14px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; }
.cell { position: relative; display: flex; flex-direction: column; align-items: center; padding: 10px 6px 12px; border-radius: 16px; color: var(--app-text); text-decoration: none; transition: background .2s var(--ease); }
.cell:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.cell img { display: block; width: 100%; max-width: 150px; height: auto; aspect-ratio: 1 / 1; }
.cell picture { width: 100%; max-width: 150px; }
.cell span { font-size: 13px; font-weight: 500; text-align: center; margin-top: 4px; line-height: 1.3; }
/* Grids of stills: the animation loads on hover (a lazy image with no box is
   never fetched), so a page of 30 stickers weighs 30 thumbnails. */
.still .mv { display: none; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: calc(100% - 12px); max-width: 150px; }
.still:hover .mv, .still:focus-visible .mv { display: block; }
.still:hover .st, .still:focus-visible .st { visibility: hidden; }
/* Play them all: a checkbox, no script. Checked, every animation shows (and
   only then is fetched). A pack page plays by itself on anything wider than
   a phone; on a phone it starts as stills, 6 KB each instead of ~200 KB,
   and one tap plays them. Reduced motion always starts still. */
.play-label { margin: 0 0 12px; display: none; }
.play-label .play-off, .play-toggle:checked + .play-label .play-on { display: none; }
.play-toggle:checked + .play-label .play-off { display: inline; }
.play-always { display: inline-flex; }
.play-toggle:focus-visible + .play-label { box-shadow: 0 0 0 3px var(--focus); }
.play-toggle:checked ~ .picker .mv { display: block; }
.play-toggle:checked ~ .picker .st { visibility: hidden; }
@media (min-width: 521px) and (prefers-reduced-motion: no-preference) {
  .autoplay .mv { display: block; }
  .autoplay .st { visibility: hidden; }
}
/* Where a pack page plays by itself its toggle is hidden, and so is the
   checkbox: a focusable control with no visible label helps nobody. */
.play-auto { display: none; }
@media (max-width: 520px), (prefers-reduced-motion: reduce) {
  .play-label { display: inline-flex; }
  .play-auto { display: block; }
}

/* ---- Pack page ---- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 28px 0 0; font-size: 14px; color: var(--mut); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #8a9184; }
.crumbs a { color: var(--mut); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.packhead { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 22px; padding-bottom: 30px; }
.packart {
  position: relative; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, var(--glow), transparent 64%), #202327;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), var(--shadow-lg);
}
.packart img { bottom: 10%; }
.packart .t-front { height: 78%; }
.packart .t-left, .packart .t-right { height: 56%; }
.packcopy h1 { font-size: clamp(34px, 5vw, 54px); }
.empty { text-align: center; padding: 40px 26px; }

/* ---- Sticker page ---- */
.stickerhead { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 44px; align-items: start; padding-top: 22px; }
.stage {
  display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 28px; padding: 40px;
  background: radial-gradient(circle at 50% 45%, var(--glow), transparent 66%), #202327;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), var(--shadow-lg);
}
.stage img { width: 100%; max-width: 320px; height: auto; display: block; }
.stickercopy h1 { font-size: clamp(34px, 5vw, 52px); }
.byline { color: var(--mut); }
.chips { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, .66); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); font-size: 14px; text-decoration: none; }
a.chip:hover { background: #fff; color: var(--ink); }
.chip-plain { color: var(--mut); }
.chip .n { color: var(--mut); font-size: 12px; font-weight: 600; }
.chips-lg .chip { font-size: 15px; padding: 7px 15px; }
.facts-table { margin: 0 0 20px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts-table div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts-table dt { color: var(--mut); font-weight: 600; }
.facts-table dd { margin: 0; color: var(--ink2); overflow-wrap: anywhere; }
.api-snippet { margin-top: 18px; }
.api-snippet summary { cursor: pointer; font-weight: 600; color: var(--green-700); }
.wrap { overflow-wrap: anywhere; }

/* ---- Credit box ---- */
.credit-box { margin-top: 22px; padding: 18px 22px; border-radius: 18px; background: rgba(47, 110, 72, .08); box-shadow: inset 0 0 0 1px rgba(47, 110, 72, .22); }
.credit-label { font-size: 13px; font-weight: 700; color: var(--green-700); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.credit-line { font-size: 19px; margin-bottom: 6px; }
.credit-line code { font-family: var(--font-sans); font-weight: 700; color: var(--ink); font-size: 1em; }
.credit-note { font-size: 14px; color: var(--mut); margin: 0; }

/* ---- Content blocks ---- */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.split-top { align-items: start; }
.split-rev { align-items: stretch; }
.mssgs-card .mark { width: 34px; height: 44px; margin-bottom: 14px; }
.code {
  margin: 0 0 18px; padding: 18px 20px; border-radius: 18px; background: var(--app); color: var(--app-text);
  font: 13.5px/1.6 var(--font-mono); overflow-x: auto; box-shadow: var(--shadow-lg);
}
.code code { font-size: 1em; }
.pagehead { padding-top: 26px; padding-bottom: 20px; }
.pagehead h1 { font-size: clamp(34px, 5vw, 54px); max-width: 20ch; }
.prose { max-width: 720px; }
.prose.wide { max-width: 900px; }
.prose h2 { font-size: clamp(22px, 2.8vw, 28px); margin-top: 34px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose code { background: rgba(255, 255, 255, .6); padding: 1px 6px; border-radius: 6px; }
.prose .code code { background: none; padding: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--mut); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
td code { white-space: nowrap; }
.faq .qa { padding: 0; margin-bottom: 10px; border-radius: 18px; }
.qa summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; float: right; color: var(--green-700); font-size: 20px; line-height: 1; }
.qa[open] summary::after { content: "–"; }
.qa p { padding: 0 22px 18px; color: var(--mut); }

/* ---- Forms ---- */
.form { display: flex; flex-direction: column; }
.form h2 { font-size: 24px; }
.form label { font-weight: 600; color: var(--ink); font-size: 15px; margin: 14px 0 6px; }
.form input:not([type=checkbox]) {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .85); font: 400 16px var(--font-sans); color: var(--ink);
}
.form input:focus { outline: none; box-shadow: 0 0 0 3px var(--focus); border-color: var(--green-400); }
.form input[type=file] { padding: 10px; }
.form .btn { margin-top: 20px; }
.form + .form { margin-top: 16px; }
.opt { font-weight: 400; color: var(--mut); font-size: 13px; margin-left: 4px; }
.hint { font-size: 13.5px; color: var(--mut); margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--ink2) !important; margin-top: 18px !important; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.errors { background: rgba(179, 38, 30, .08); box-shadow: inset 0 0 0 1px rgba(179, 38, 30, .3); color: #7d1a14; border-radius: 14px; padding: 12px 16px; margin-bottom: 6px; }
.errors p { font-weight: 700; margin-bottom: 4px; }
.errors ul { margin: 0; padding-left: 20px; }
.keybox { margin-bottom: 26px; }
.keyline { font-size: clamp(15px, 2.4vw, 22px); margin: 6px 0; overflow-wrap: anywhere; }
.keyline code { font-weight: 700; color: var(--ink); }
.banner { padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.banner.ok { background: rgba(47, 110, 72, .12); color: var(--green-800); }
.banner.no { background: rgba(179, 38, 30, .1); color: #7d1a14; }
.review-stages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stage-dark { background: #202327; padding: 24px; }
.stage-light { background: #fbf8ef; padding: 24px; box-shadow: inset 0 0 0 1px var(--line); }

/* ---- Footer ---- */
.footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 44px 0 26px; }
.footer-row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 380px; }
.footer-brand p { color: var(--mut); font-size: 14px; margin-top: 12px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; }
.footer-h { font-size: 13px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.footer-cols a { color: var(--mut); text-decoration: none; font-size: 14px; padding: 5px 0; }
.footer-cols a:hover { color: var(--ink); }
.footer-small { margin-top: 26px; font-size: 13px; color: var(--mut); }

/* ---- Small screens ---- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu { display: block; }
  .nav { padding: 6px 6px 6px 16px; gap: 12px; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 34px; }
  .chatmock { max-width: 460px; transform: none; }
  .cards3, .split { grid-template-columns: 1fr; }
  .packhead, .stickerhead { grid-template-columns: 1fr; gap: 24px; }
  .packart { max-width: 420px; }
  .stage { max-width: 420px; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 16px 4px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
  .cell { padding: 6px 2px 8px; }
  .cell span { font-size: 12px; }
  .picker { padding: 8px; border-radius: 20px; }
  .searchbar .btn { padding: 10px 16px; }
  .facts-table div { grid-template-columns: 96px 1fr; }
  .review-stages { grid-template-columns: 1fr; }
  /* Smaller than the blurb beside it, so a pack page's first big paint is
     its text and not an image racing the grid's animations. */
  .packart { max-width: 280px; }
  /* The files are 320 px: on a 1.5–2× phone, drawing them wider than this
     only upscales them. */
  .stage img { max-width: 212px; }
  .stage { padding: 28px; }
  .cell img, .cell picture, .still .mv { max-width: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Share cards (tools/build-og.sh photographs these at 1200×630) ---- */
.og { background: #202327; margin: 0; min-height: 0; }
.og::before { display: none; }
.og-card { position: relative; width: 1200px; height: 630px; overflow: hidden; display: flex; align-items: center; background: radial-gradient(circle at 30% 50%, var(--glow), transparent 60%), #202327; }
.og-art { position: absolute; left: 40px; top: 60px; width: 620px; height: 510px; aspect-ratio: auto; border-radius: 0; background: none; box-shadow: none; }
.og-art .t-front { height: 88%; }
.og-art .t-left, .og-art .t-right { height: 62%; }
.og-copy { position: relative; margin-left: 680px; width: 470px; color: #fff; }
.og-home-card .og-copy { margin-left: 70px; width: 520px; z-index: 2; }
.og-brand { display: flex; align-items: center; gap: 12px; font: 600 30px var(--font-sans); color: #e9ecef; margin-bottom: 28px; }
.og-brand .mark { width: 30px; height: 39px; }
.og-brand b { color: #6fd39b; }
.og-series { display: inline-block; font: 600 24px var(--font-sans); color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 2px 16px; margin-bottom: 14px; }
.og-title { font: 700 76px/1.02 var(--font-display); letter-spacing: -.03em; color: #fff; margin-bottom: 22px; }
.og-sub { font: 500 26px var(--font-sans); color: rgba(255, 255, 255, .72); }
.og-wall { position: absolute; right: -40px; top: -30px; width: 640px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; transform: rotate(-6deg); }
.og-wall img { width: 100%; height: auto; }
.og-iconpage { width: 512px; height: 512px; }
.og-iconpage img { display: block; width: 512px; height: 512px; }

/* The domain is the credit line: never break it at its hyphen. */
.lede b, .glass b, .credit-note b, .check b, .nw { white-space: nowrap; }
/* Generated from the catalog at startup: one glow colour per pack. */
.hue-0{--glow:hsl(150.0 84% 69% / .34);--ring:hsl(150.0 60% 62% / .55)}
.hue-1{--glow:hsl(287.5 84% 69% / .34);--ring:hsl(287.5 60% 62% / .55)}
.hue-2{--glow:hsl(65.0 84% 69% / .34);--ring:hsl(65.0 60% 62% / .55)}
.hue-3{--glow:hsl(202.5 84% 69% / .34);--ring:hsl(202.5 60% 62% / .55)}
.hue-4{--glow:hsl(340.0 84% 69% / .34);--ring:hsl(340.0 60% 62% / .55)}
.hue-5{--glow:hsl(117.5 84% 69% / .34);--ring:hsl(117.5 60% 62% / .55)}
.hue-6{--glow:hsl(255.0 84% 69% / .34);--ring:hsl(255.0 60% 62% / .55)}
.hue-7{--glow:hsl(32.6 84% 69% / .34);--ring:hsl(32.6 60% 62% / .55)}
.hue-8{--glow:hsl(170.1 84% 69% / .34);--ring:hsl(170.1 60% 62% / .55)}
.hue-9{--glow:hsl(307.6 84% 69% / .34);--ring:hsl(307.6 60% 62% / .55)}
.hue-10{--glow:hsl(85.1 84% 69% / .34);--ring:hsl(85.1 60% 62% / .55)}
.hue-11{--glow:hsl(222.6 84% 69% / .34);--ring:hsl(222.6 60% 62% / .55)}
.hue-12{--glow:hsl(0.1 84% 69% / .34);--ring:hsl(0.1 60% 62% / .55)}
.hue-13{--glow:hsl(137.6 84% 69% / .34);--ring:hsl(137.6 60% 62% / .55)}
.hue-14{--glow:hsl(275.1 84% 69% / .34);--ring:hsl(275.1 60% 62% / .55)}
.hue-15{--glow:hsl(52.6 84% 69% / .34);--ring:hsl(52.6 60% 62% / .55)}
.hue-16{--glow:hsl(190.1 84% 69% / .34);--ring:hsl(190.1 60% 62% / .55)}
.hue-17{--glow:hsl(327.6 84% 69% / .34);--ring:hsl(327.6 60% 62% / .55)}
.hue-18{--glow:hsl(105.1 84% 69% / .34);--ring:hsl(105.1 60% 62% / .55)}
.hue-19{--glow:hsl(242.7 84% 69% / .34);--ring:hsl(242.7 60% 62% / .55)}
.hue-20{--glow:hsl(20.2 84% 69% / .34);--ring:hsl(20.2 60% 62% / .55)}
.hue-21{--glow:hsl(157.7 84% 69% / .34);--ring:hsl(157.7 60% 62% / .55)}
.hue-22{--glow:hsl(295.2 84% 69% / .34);--ring:hsl(295.2 60% 62% / .55)}
.hue-23{--glow:hsl(72.7 84% 69% / .34);--ring:hsl(72.7 60% 62% / .55)}
.hue-24{--glow:hsl(210.2 84% 69% / .34);--ring:hsl(210.2 60% 62% / .55)}
.hue-25{--glow:hsl(347.7 84% 69% / .34);--ring:hsl(347.7 60% 62% / .55)}
.hue-26{--glow:hsl(125.2 84% 69% / .34);--ring:hsl(125.2 60% 62% / .55)}
.hue-27{--glow:hsl(262.7 84% 69% / .34);--ring:hsl(262.7 60% 62% / .55)}
.hue-28{--glow:hsl(40.2 84% 69% / .34);--ring:hsl(40.2 60% 62% / .55)}
.hue-29{--glow:hsl(177.7 84% 69% / .34);--ring:hsl(177.7 60% 62% / .55)}
.hue-30{--glow:hsl(315.2 84% 69% / .34);--ring:hsl(315.2 60% 62% / .55)}
.hue-31{--glow:hsl(92.7 84% 69% / .34);--ring:hsl(92.7 60% 62% / .55)}
.hue-32{--glow:hsl(230.3 84% 69% / .34);--ring:hsl(230.3 60% 62% / .55)}
.hue-33{--glow:hsl(7.8 84% 69% / .34);--ring:hsl(7.8 60% 62% / .55)}
.hue-34{--glow:hsl(145.3 84% 69% / .34);--ring:hsl(145.3 60% 62% / .55)}
.hue-35{--glow:hsl(282.8 84% 69% / .34);--ring:hsl(282.8 60% 62% / .55)}
.hue-community{--glow:hsl(140 84% 69% / .34);--ring:hsl(140 60% 62% / .55)}
