/* Mosaik website.
 *
 * The tokens below are the desktop app's own (mosaik-desktop:
 * src/mosaik/styles/palette.py and metrics.py), under the same names, so the
 * site and the app are one design. The rules carry over too: neutral
 * surfaces, amber as the one interaction colour, and the mosaic tiles kept
 * small and deliberate — the logo, the picture, the strips and the kind tags.
 */

/* Inter is cut down to the characters the site uses (tools: pyftsubset, all
   layout features kept), in two files like Fraunces, so a phone downloads
   about a third of the full font. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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+2190-2199, U+21E7, U+2212, U+2215,
    U+2318, U+2325, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-latin-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Fraunces";
  src: url("../fonts/Fraunces-latin-ext-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Fraunces";
  src: url("../fonts/Fraunces-latin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* --- tokens --------------------------------------------------------------- */

:root {
  /* The tesserae: the same glass in both themes. */
  --tile-navy: #2e4574;
  --tile-navy-deep: #1b2a4a;
  --tile-oxblood: #87302f;
  --tile-teal: #1b605a;
  --tile-gold: #f6c453;
  --tile-amber: #dc9a33;
  --tile-ochre: #c9862a;
  --tile-cream: #eedcb4;
  --grout: #141220;
  --on-picture-light: #fbf6ec;
  --on-picture-dark: #1c1814;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ui: "Inter", "Segoe UI Variable Text", "Segoe UI", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", "SF Mono", Consolas, monospace;

  --r-xs: 4px;
  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --page: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Light. Not dark inverted: white for the reading plane, the faintest grey for edges. */
  --bg: #ffffff;
  --sidebar: #f7f7f7;
  --surface: #ffffff;
  --surface-hover: #f1f1f1;
  --raised: #ffffff;
  --card: #fafafa;
  --card-hover: #f4f4f4;
  --border: #e6e6e6;
  --border-strong: #d4d4d4;
  --text: #191919;
  --text2: #5e5e5e;
  --text3: #8b8b8b;
  --accent: #dc9a33;
  --accent-hover: #cf8c26;
  --accent-pressed: #bd7d1d;
  --accent-text: #1f1a14;
  --accent-ink: #8a560e;
  --accent-wash: #fbf1e1;
  --danger: #b3352a;
  --added: #1f7a48;
  --input-bg: #ffffff;
  --shadow-cast: #1616161f;
  --shadow-soft: #16161612;
  --tag-code-bg: #f7e7e5; --tag-code-fg: #87302f;
  --tag-design-bg: #e3f0ee; --tag-design-fg: #1b605a;
  --tag-writing-bg: #e7ebf4; --tag-writing-fg: #2e4574;
  --tag-research-bg: #fbf0d8; --tag-research-fg: #8a560e;
  color-scheme: light;
}

/* Dark: true graphite, every step the same in all three channels. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171717; --sidebar: #111111; --surface: #1f1f1f; --surface-hover: #262626;
    --raised: #1d1d1d; --card: #1b1b1b; --card-hover: #212121; --border: #282828;
    --border-strong: #383838; --text: #ececec; --text2: #a3a3a3; --text3: #727272;
    --accent: #e0a23e; --accent-hover: #ebb050; --accent-pressed: #c98f2e;
    --accent-text: #1b1408; --accent-ink: #eab25a; --accent-wash: #2a2216;
    --danger: #e5776b; --added: #5fc98a; --input-bg: #1a1a1a;
    --shadow-cast: #00000070; --shadow-soft: #00000047;
    --tag-code-bg: #2e1a1a; --tag-code-fg: #e59a8f;
    --tag-design-bg: #15292a; --tag-design-fg: #7cc7bb;
    --tag-writing-bg: #1a2236; --tag-writing-fg: #9fb4e3;
    --tag-research-bg: #2a2413; --tag-research-fg: #e6be68;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171717; --sidebar: #111111; --surface: #1f1f1f; --surface-hover: #262626;
  --raised: #1d1d1d; --card: #1b1b1b; --card-hover: #212121; --border: #282828;
  --border-strong: #383838; --text: #ececec; --text2: #a3a3a3; --text3: #727272;
  --accent: #e0a23e; --accent-hover: #ebb050; --accent-pressed: #c98f2e;
  --accent-text: #1b1408; --accent-ink: #eab25a; --accent-wash: #2a2216;
  --danger: #e5776b; --added: #5fc98a; --input-bg: #1a1a1a;
  --shadow-cast: #00000070; --shadow-soft: #00000047;
  --tag-code-bg: #2e1a1a; --tag-code-fg: #e59a8f;
  --tag-design-bg: #15292a; --tag-design-fg: #7cc7bb;
  --tag-writing-bg: #1a2236; --tag-writing-fg: #9fb4e3;
  --tag-research-bg: #2a2413; --tag-research-fg: #e6be68;
  color-scheme: dark;
}

/* --- base ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h2 {
  font-family: var(--display);
  font-weight: 620;
  font-size: clamp(30px, 4.2vw, 46px);
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
kbd {
  font: 500 11.5px/1 var(--ui);
  padding: 3px 6px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  background: var(--surface);
  color: var(--text);
}
::selection { background: var(--accent-wash); color: var(--text); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
/* The honeypot is never shown, so browser autofill and password managers
   leave it empty and only a bot that fills every field trips it. */
.hp { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  padding: 8px 12px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-text); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: 600 13.5px/1 var(--ui);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--surface-hover); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-pressed); transform: translateY(1px); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14.5px; }
.btn[disabled] { opacity: .6; cursor: default; }

.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); }
.icon-btn svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* --- header --------------------------------------------------------------- */

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: 60px;
  /* the menu on the left, the wordmark in the middle, the actions on the right */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  transition: background .25s var(--ease), border-color .25s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Over the picture the header is transparent, as it is over the app's New Chat page. */
.top.solid {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -0.015em;
  line-height: 1;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
/* The heart stone spark stands before the name, in the text's own colour,
   centred on the capitals. */
.wordmark .mark { width: 1.12em; height: 1.12em; margin-right: .09em; flex: none; transform: translateY(-.03em); }

/* On the home page the header's wordmark starts large in the hero and moves
   up into the header as the page scrolls (site.js sets the transform and --big,
   1 while it is large). Large, the one-colour Star Window stands in for the
   "o"; small, it is the plain letter. The word stays whole in the page, so
   readers and translation see "Mosaik". The hero keeps an invisible copy. */
/* The letter and the tile share one grid cell lined up on the baseline, so the
   tile stands on the line in every browser, whatever its line-box metrics. */
.wordmark .o { display: inline-grid; align-items: baseline; justify-items: center; }
.wordmark .o > * { grid-area: 1 / 1; }
.wordmark .o-mark { width: .52em; height: .52em; margin: 0 -.0075em; opacity: var(--big, 0); }
.wordmark .o-letter { opacity: calc(1 - var(--big, 0)); }
.top .brand { grid-column: 2; grid-row: 1; }
.brand.flying { --big: 0; --k: 1; position: relative; z-index: 1; transform-origin: 50% 0; }
/* hidden until site.js has put it in the hero, then it fades in with the hero */
.brand.flying:not(.placed) { opacity: 0; }
/* the shadow is drawn before the scale, so it is divided by it to stay the same size */
.top.over .brand.flying { filter: drop-shadow(0 calc(1px / var(--k)) calc(2px / var(--k)) #0000008c) drop-shadow(0 0 calc(12px / var(--k)) #0e101c66); }
.hero-mark { visibility: hidden; display: flex; justify-content: center; margin-bottom: 26px; }
.hero-mark .wordmark { font-size: clamp(64px, 11.5vw, 136px); }
.nav { display: flex; gap: 4px; grid-column: 1; grid-row: 1; justify-self: start; }
.nav a {
  padding: 6px 10px; border-radius: var(--r-sm);
  color: var(--text2); text-decoration: none; font-size: 13.5px; font-weight: 500;
}
.nav a:hover { color: var(--text); background: var(--surface-hover); }
.top-actions { display: flex; align-items: center; gap: 8px; grid-column: 3; grid-row: 1; justify-self: end; }

/* The web chat, from every page. On a wide screen it's a button beside
   Download; on a narrower one the sections fold into the menu and it stays
   out on the left, on its own, and heads the menu when that opens. */
.nav a.nav-chat { display: none; }
.nav-chat svg, .top-chat svg {
  width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.top-chat { gap: 7px; }

/* The header takes the picture's side while it sits over it. */
.top.over .wordmark, .top.over .nav a, .top.over .icon-btn { color: var(--on-picture-light); }
.top.over.veil { background: #0e101c8c; backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); }
.top.over.on-light.veil { background: #ffffff8c; }
.top.over .nav a:hover, .top.over .icon-btn:hover { background: #ffffff1f; }
.top.over.on-light .wordmark, .top.over.on-light .nav a, .top.over.on-light .icon-btn { color: var(--on-picture-dark); }
.top.over.on-light .nav a:hover, .top.over.on-light .icon-btn:hover { background: #0000000f; }

/* --- hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: grid;
  place-items: center;
  padding: 96px var(--gutter) 88px;
  background: #1a1714; /* the grout the tiles are set in */
  overflow: hidden;
  isolation: isolate;
}
.scene { position: absolute; inset: 0; z-index: -1; }
.scene canvas { width: 100%; height: 100%; display: block; }
/* Until its tiles are cut, a later page of the visit shows a blurred
   preview of its picture (40 x 25, about 1 KB), so it never opens on a flat
   colour. Each page carries its own as --poster on its .scene. The first
   visit sets its tiles in from the grout instead. The home page shows a full
   still of its picture at once (.hero.home, below). */
.scene canvas { position: relative; }
.seen .scene::before {
  content: ""; position: absolute; inset: 0;
  background: var(--poster, none) center / cover no-repeat;
  filter: blur(18px) saturate(1.1); transform: scale(1.08);
}
/* A later page of the same visit fades its finished picture in. */
.scene.quiet canvas { opacity: 0; transition: opacity .35s var(--ease); }
.scene.quiet.ready canvas { opacity: 1; }
/* A wash of the page colour at the very top keeps the header readable. */
.scene::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 120px;
  background: linear-gradient(#0000004d, #0000);
  pointer-events: none;
}

/* Registered so a change of shade can be transitioned rather than snap. */
@property --scrim { syntax: "<number>"; inherits: true; initial-value: 0.45; }

.hero-copy {
  --scrim: 0.45;
  transition: --scrim .9s var(--ease);
  position: relative;
  width: min(820px, 100%);
  text-align: center;
  color: var(--on-picture-light);
}
/* Nothing dims the picture; the words carry a close shade of their own, as
   deep as the tiles under them are light. */
.hero-copy::before {
  content: ""; position: absolute; inset: -70px -90px; z-index: -1;
  background: radial-gradient(closest-side, rgb(14 16 28 / var(--scrim)), rgb(14 16 28 / 0));
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  background: #0e101c73; border: 1px solid #ffffff26;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--tile-gold); }
.hero h1 {
  font-family: var(--display);
  font-weight: 640;
  font-size: clamp(38px, 6.6vw, 76px);
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  text-shadow: 0 1px 2px #0000008c, 0 0 28px #0e101c80;
}
.lede {
  margin: 20px auto 0;
  max-width: 600px;
  font-size: clamp(16px, 1.8vw, 18.5px);
  line-height: 1.55;
  color: #fbf6ecf0;
  text-shadow: 0 1px 2px #000000d9, 0 0 10px #0e101ccc, 0 0 26px #0e101c99;
}

.hero-actions {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
/* A button that sits on the picture: dark glass, with no blur of what's behind
   it (a blur costs a pass over the screen each frame). */
.btn-glass { background: #0e101cc2; border-color: #ffffff38; color: var(--on-picture-light); }
.btn-glass:hover { background: #0e101ce6; }

/* A pill over the picture that points to something new, like the web chat. */
.hero-news {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: #0e101c8c; border: 1px solid #ffffff2e; color: var(--on-picture-light);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13.5px; font-weight: 500; text-decoration: none; text-shadow: none;
  transition: background .15s var(--ease);
}
.hero-news:hover { background: #0e101cb8; }
.hero-news b {
  padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-text);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hero-news span { transition: transform .15s var(--ease); }
.hero-news:hover span { transform: translateX(2px); }
.hero-news:not(:has(b)) { padding-left: 14px; }
.hero-copy > .lede + .hero-news { margin: 24px 0 0; }

/* Off Windows (site.js marks it), the app can't be installed yet, so the web
   chat becomes the main button and the download the second one. */
.no-app .get-chat { order: -1; }
.no-app .hero .get-chat, .no-app .join-card .get-chat {
  background: var(--accent); border-color: transparent; color: var(--accent-text);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.no-app .hero .get-chat:hover, .no-app .join-card .get-chat:hover { background: var(--accent-hover); }
.no-app .hero .get-app {
  background: #0e101c8c; border-color: #ffffff38; color: var(--on-picture-light);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.no-app .hero .get-app:hover { background: #0e101cb8; }
.no-app .join-card .get-app { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.no-app .join-card .get-app:hover { background: var(--surface-hover); }

/* The Turnstile check, which only shows itself when it needs a click. */
.ts:empty { display: none; }


/* --- strips --------------------------------------------------------------- */

canvas.strip { display: block; width: 100%; height: 6px; }

/* --- sections ------------------------------------------------------------- */

.section {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) var(--gutter);
}
.section.band {
  max-width: none;
  background: var(--sidebar);
  border-block: 1px solid var(--border);
}
.section.band > * { max-width: calc(var(--page) - 2 * var(--gutter)); margin-inline: auto; }
.section.band > .section-head { max-width: 720px; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin-top: 16px; color: var(--text2); font-size: 17px; }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  height: 24px; padding: 0 9px; border-radius: var(--r-xs);
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
}
.tag i { width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.tag-code { background: var(--tag-code-bg); color: var(--tag-code-fg); }
.tag-design { background: var(--tag-design-bg); color: var(--tag-design-fg); }
.tag-writing { background: var(--tag-writing-bg); color: var(--tag-writing-fg); }
.tag-research { background: var(--tag-research-bg); color: var(--tag-research-fg); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(64px, 9vw, 112px); }
.feature.flip .feature-text { order: 2; }
.feature-text h3 {
  margin: 16px 0 12px;
  font-family: var(--display); font-weight: 620;
  font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.feature-text p { color: var(--text2); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; font-size: 14.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}

.shot {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 70px var(--shadow-cast), 0 4px 14px var(--shadow-soft);
  background: var(--card);
}
.shot.wide { margin-bottom: 40px; }
.shot .on-light, .zoomable .on-light { display: none; }
:root[data-theme="light"] :is(.shot, .zoomable) .on-dark { display: none; }
:root[data-theme="light"] :is(.shot, .zoomable) .on-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) :is(.shot, .zoomable) .on-dark { display: none; }
  :root:not([data-theme="dark"]) :is(.shot, .zoomable) .on-light { display: block; }
}

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  padding: 22px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { margin: 14px 0 8px; font-size: 16px; }
.card p { color: var(--text2); font-size: 14px; line-height: 1.55; }

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.principle .tile {
  display: block; width: 28px; height: 28px; border-radius: 6px;
  background: var(--c);
  box-shadow: inset 0 0 0 2px var(--grout), 0 0 0 1px var(--border);
  margin-bottom: 18px;
}
.principle h3 { margin-bottom: 8px; }
.principle p { color: var(--text2); font-size: 14.5px; }

/* --- join ----------------------------------------------------------------- */

.join { padding-top: 0; }
.band + .join { padding-top: clamp(56px, 8vw, 96px); }
.join-card {
  position: relative;
  max-width: 720px; margin: 0 auto;
  padding: 52px clamp(20px, 5vw, 56px) 44px;
  border-radius: var(--r-lg);
  background: var(--raised);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px var(--shadow-cast), 0 4px 14px var(--shadow-soft);
  text-align: center;
  overflow: hidden;
}
.strip-top { position: absolute; inset: 0 0 auto 0; border-radius: 0; }

/* The home page's way into the web chat: a card with the chat in it. */
.web-card {
  position: relative; overflow: hidden;
  max-width: var(--page); margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) clamp(20px, 5vw, 56px);
  border-radius: var(--r-lg);
  background: var(--raised); border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px var(--shadow-cast), 0 4px 14px var(--shadow-soft);
}
.web-card h2 { margin: 16px 0 12px; font-size: clamp(26px, 3.2vw, 36px); }
.web-card .shot { box-shadow: 0 18px 44px var(--shadow-cast); }
.web-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.join-logo { margin: 0 auto 20px; }
.join-card > p { color: var(--text2); margin: 14px auto 32px; max-width: 520px; }

.waitlist-form.full { display: grid; gap: 20px; text-align: left; }
.field-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.field { display: grid; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 13px; font-weight: 600; color: var(--text); padding: 0; }
.field legend { margin-bottom: 9px; }
.opt { color: var(--text3); font-weight: 400; margin-left: 4px; }
.field input {
  height: 42px; padding: 0 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--input-bg); color: var(--text);
  font: 400 15px/1 var(--ui);
  width: 100%;
}
.field input:focus { border-color: var(--accent); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--danger); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13.5px; font-weight: 500; color: var(--text2);
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.chip span i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.chip:hover span { background: var(--surface-hover); color: var(--text); }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-wash); color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.waitlist-form.full .btn { justify-self: start; }
.form-msg { min-height: 1.5em; font-size: 14px; }
.form-msg.error { color: var(--danger); }
.waitlist-form.full .form-msg.ok { color: var(--added); font-weight: 500; }

.thanks {
  display: grid; gap: 10px; justify-items: center; text-align: center; padding: 8px 0 4px;
}
.thanks h3 { font-family: var(--display); font-size: 26px; font-weight: 620; }
.thanks p { color: var(--text2); }

/* --- faq ------------------------------------------------------------------ */

.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; font-weight: 600; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 1.8px solid var(--text3); border-bottom: 1.8px solid var(--text3);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding: 0 4px 22px; color: var(--text2); max-width: 640px; }

/* --- footer --------------------------------------------------------------- */

.foot { background: var(--sidebar); border-top: 1px solid var(--border); }
.foot-inner {
  max-width: var(--page); margin: 0 auto; padding: 28px var(--gutter) 36px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  color: var(--text2); font-size: 13.5px;
}
.foot-inner .wordmark { font-size: 18px; color: var(--text); }
.foot-inner p { margin-right: auto; }
.foot-inner > a:last-child { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.foot-inner > a:last-child:hover { text-decoration: underline; }

/* --- more pages ----------------------------------------------------------- */

/* Every page opens on a picture; inner pages on a shorter one. */
.hero.page {
  min-height: clamp(400px, 54svh, 540px);
  padding: 120px var(--gutter) 76px;
}
.hero.page h1 { font-size: clamp(34px, 5.2vw, 60px); }
.hero.page .lede { max-width: 640px; }

.nav a[aria-current="page"] { color: var(--text); background: var(--surface-hover); }
.top.over .nav a[aria-current="page"] { background: #ffffff1f; }
.top.over.on-light .nav a[aria-current="page"] { background: #0000000f; }

.menu-btn { display: none; }
.nav a.nav-cta { display: none; }
.menu-btn .i-close { display: none; }
.top.open .menu-btn .i-open { display: none; }
.top.open .menu-btn .i-close { display: block; }

.section.tight { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }
.section-head.left { margin-left: 0; text-align: left; }
.more { margin-top: 28px; text-align: center; }
.link {
  color: var(--accent-ink); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.link:hover { text-decoration: underline; }
.link::after { content: "→"; }

/* Jump links under a page's picture. */
.jump {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: var(--page); margin: 0 auto; padding: 28px var(--gutter) 0;
}
.jump a {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 13.5px; font-weight: 500; color: var(--text2); text-decoration: none;
}
.jump a:hover { background: var(--surface-hover); color: var(--text); }
.jump a i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* Numbered steps, each number set on a tile. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px; margin-bottom: 18px;
  background: var(--c, var(--tile-navy)); color: var(--on-picture-light);
  font: 650 15px/1 var(--ui);
  box-shadow: inset 0 0 0 2px var(--grout), 0 0 0 1px var(--border);
}
.step:nth-child(2)::before { background: var(--tile-teal); }
.step:nth-child(3)::before { background: var(--tile-gold); color: var(--on-picture-dark); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text2); font-size: 14.5px; }

.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.band .card { background: var(--bg); }
.card .card-link { display: inline-block; margin-top: 14px; margin-right: 14px; }

/* Plain reading pages: about, privacy. */
.prose { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.7; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 8px; margin: 14px 0 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}
.prose p, .prose li { color: var(--text2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-ink); text-underline-offset: 2px; }
.prose .meta { color: var(--text3); font-size: 14px; }
.prose blockquote {
  margin: 28px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  font-family: var(--display); font-size: 22px; line-height: 1.4; color: var(--text);
  font-variation-settings: "SOFT" 30, "WONK" 0;
}

.form-note { font-size: 13px; color: var(--text3); }
.form-note a { color: inherit; }
code {
  font: 500 .88em/1 var(--mono);
  padding: 2px 5px; border-radius: var(--r-xs);
  background: var(--surface-hover); color: var(--text);
}
.cta-card p a { color: var(--accent-ink); }

/* A note for the site's owner, left where it shows until it is filled in. */
.placeholder {
  display: inline; padding: 1px 6px; border-radius: var(--r-xs);
  background: var(--accent-wash); color: var(--accent-ink);
  border: 1px dashed var(--accent); font-weight: 500;
}

/* A plain table of facts: requirements, what is kept. */
.facts { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.facts th { width: 34%; font-weight: 600; color: var(--text); padding-right: 20px; }
.facts td { color: var(--text2); }
.facts tr:first-child th, .facts tr:first-child td { border-top: 1px solid var(--border); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.two-col h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.two-col > div > p { color: var(--text2); }

.faq-group + .faq-group { margin-top: 64px; }
.faq-group > h2 {
  max-width: 760px; margin: 0 auto 18px;
  font-size: clamp(22px, 2.6vw, 28px);
  display: flex; align-items: center; gap: 12px;
}
.faq-group > h2 .tile {
  width: 14px; height: 14px; border-radius: 3px; background: var(--c);
  box-shadow: inset 0 0 0 1.5px var(--grout);
}
.faq details p + p { margin-top: -10px; }
.faq a { color: var(--accent-ink); }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-grid .card h3 { margin-top: 0; }
.contact-grid a[href^="mailto:"] { color: var(--accent-ink); font-weight: 600; text-underline-offset: 2px; }
.contact-grid .card .tile {
  display: block; width: 22px; height: 22px; border-radius: 5px; margin-bottom: 16px;
  background: var(--c); box-shadow: inset 0 0 0 2px var(--grout), 0 0 0 1px var(--border);
}

/* The closing call on inner pages. */
.cta {
  max-width: var(--page); margin: 0 auto clamp(72px, 10vw, 120px); padding: 0 var(--gutter);
}
.cta-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 40px clamp(20px, 5vw, 48px) 36px;
  border-radius: var(--r-lg);
  background: var(--raised); border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px var(--shadow-cast), 0 4px 14px var(--shadow-soft);
}
.cta-card h2 { font-size: clamp(24px, 3vw, 32px); }
.cta-card p { color: var(--text2); margin-top: 8px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The footer, with a column of links per kind. */
.foot-grid {
  max-width: var(--page); margin: 0 auto; padding: 44px var(--gutter) 8px;
  display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 32px;
}
.foot-grid .brand + p { margin-top: 12px; color: var(--text2); font-size: 14px; max-width: 300px; }
.foot-grid h4 { margin: 0 0 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid ul a { color: var(--text2); text-decoration: none; font-size: 14px; }
.foot-grid ul a:hover { color: var(--text); }
.foot-inner.legal { padding-top: 20px; }
.foot-inner.legal p { margin-right: auto; }

/* --- reveal --------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
/* Frosted glass shows nothing through a parent that is fading (the fade
   becomes its backdrop), so it would snap to frosted at the end. The glass
   buttons fade on their own instead of with their row. */
.hero-copy > .hero-actions { animation: none; }
.hero-copy > .hero-actions > * { animation: rise .8s var(--ease) .24s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- small screens -------------------------------------------------------- */

@media (max-width: 980px) {
  .cards, .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.three, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .two-col { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
}
/* Narrower than the full header: the sections fold into a menu (site.js). */
@media (max-width: 1060px) {
  .menu-btn { display: grid; }
  .top:not(.open) .nav > a:not(.nav-chat) { display: none; }
  .top-actions .top-chat { display: none; }
  .top:not(.open) .nav a.nav-chat {
    display: inline-flex; align-items: center; gap: 7px;
    height: 32px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
    background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap;
  }
  .top:not(.open) .nav a.nav-chat:hover { background: var(--surface-hover); }
  .top.open {
    background: var(--bg); border-bottom-color: var(--border);
  }
  .top.open .wordmark, .top.open .icon-btn { color: var(--text) !important; }
  /* placed and stretched across the whole header, not fitted into the first column,
     and stacked above everything else in the header, the home page's large
     wordmark included (.brand.flying) */
  .top.open .nav {
    display: grid; gap: 2px; grid-column: auto; grid-row: auto; justify-self: stretch;
    position: absolute; top: 60px; left: 0; right: 0; z-index: 2;
    padding: 8px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px var(--shadow-cast);
  }
  .top.open .nav a { color: var(--text) !important; padding: 12px 10px; font-size: 15px; }
  .top.open .nav a.nav-chat { display: flex; align-items: center; gap: 10px; color: var(--accent-ink) !important; font-weight: 600; }
  .top.open .nav a.nav-chat svg { width: 17px; height: 17px; }
  .top.open .top-login { color: var(--text) !important; }
}
@media (max-width: 900px) {
  .top-actions .top-signup { display: none; }
}
@media (max-width: 720px) {
  .top.open .nav a.nav-cta { display: block; color: var(--accent-ink) !important; font-weight: 600; }
  .top-actions .btn { display: none; }
  .hero { padding-top: 88px; }
  .hero h1 br { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .waitlist-form.full .btn { justify-self: stretch; }
}
@media (max-width: 520px) {
  .cards, .principles { grid-template-columns: 1fr; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts th { width: 40%; }
}
.link-plain { color: var(--accent-ink); text-underline-offset: 2px; }

/* --- the release ---------------------------------------------------------- */

/* What hasn't shipped yet: Coming soon, Next, Later. The same shape as every other badge. */
.tag-soon { background: var(--accent-wash); color: var(--accent-ink); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.section-head > .tag { margin-bottom: 18px; }
.card .tags + h3 { margin-top: 14px; }
.soon-link { margin-top: 18px; }

/* The Download page's card: the button, then what it downloads. */
.join-card .hero-actions { margin-top: 0; }
.release-line { margin-top: 18px; color: var(--text2); font-size: 14px; }
.release-facts {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 24px;
  margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--border);
  text-align: left; font-size: 14.5px;
}
.release-facts dt { font-weight: 600; color: var(--text); }
.release-facts dd { margin: 0; min-width: 0; color: var(--text2); }
.release-facts a { color: var(--accent-ink); text-underline-offset: 2px; }
.hash { display: flex; align-items: flex-start; gap: 8px; }
.hash code {
  flex: 1; min-width: 0; padding: 7px 9px;
  font-size: 12.5px; line-height: 1.5; word-break: break-all;
  user-select: all; -webkit-user-select: all;
}
.release-state { margin-top: 18px; color: var(--text2); }
.release-state strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }

/* A note that asks for a moment's attention, with its tile. */
.callout {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px;
  padding: 26px clamp(18px, 3vw, 30px);
  border-radius: var(--r-lg); border: 1px solid var(--border-strong); background: var(--card);
}
.callout > .tile {
  width: 22px; height: 22px; border-radius: 5px; margin-top: 3px;
  background: var(--c, var(--tile-gold)); box-shadow: inset 0 0 0 2px var(--grout), 0 0 0 1px var(--border);
}
.callout h3 { margin-bottom: 8px; }
.callout p { color: var(--text2); }
.callout p + p { margin-top: 10px; }
.clicks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; list-style: none; padding: 0; }
.clicks li {
  display: inline-flex; align-items: center; gap: 9px;
  height: 34px; padding: 0 14px 0 6px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 13.5px; font-weight: 600; color: var(--text);
}
.clicks li::before {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px;
  background: var(--tile-navy); color: var(--on-picture-light); font-size: 12px;
}
.clicks li:nth-child(1)::before { content: "1"; }
.clicks li:nth-child(2)::before { content: "2"; background: var(--tile-teal); }
.narrow { max-width: 820px; margin-inline: auto; }

/* Docs: a guide, with the list of guides beside it. */
.docs {
  max-width: var(--page); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter);
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start;
}
.toc { position: sticky; top: 84px; font-size: 14px; }
.toc h2 {
  font: 600 12.5px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase;
  color: var(--text3); margin: 0 0 12px 10px;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.toc a { display: block; padding: 5px 10px; border-radius: var(--r-sm); color: var(--text2); text-decoration: none; }
.toc a:hover { background: var(--surface-hover); color: var(--text); }
.docs .prose { margin: 0; }
.docs .prose > section + section { margin-top: 64px; padding-top: 8px; }
.prose ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.prose ol li { padding-left: 4px; }
.prose ol li::marker { color: var(--text3); font-weight: 600; }
.prose :is(.facts, .callout, pre) { margin-top: 18px; }
.prose :is(ol, ul, .facts, .callout, pre) + :is(p, h3, ul, ol) { margin-top: 16px; }
.prose .callout h3 { margin-top: 0; }
.prose pre {
  margin-bottom: 0; padding: 12px 14px; overflow-x: auto;
  border-radius: var(--r-md); border: 1px solid var(--border); background: var(--card);
}
.prose pre code { padding: 0; background: none; font-size: 13px; line-height: 1.6; }
.prose .facts th, .prose .facts td { font-size: 14.5px; }
.prose .facts kbd { white-space: nowrap; }

/* A guide's own sections, under its name in the list. */
.toc li.here > a { color: var(--text); background: var(--surface-hover); font-weight: 600; }
.toc-sub { list-style: none; margin: 2px 0 8px 10px; padding: 0 0 0 10px; border-left: 1px solid var(--border); display: grid; gap: 1px; }
.toc-sub a { padding: 3px 10px; font-size: 13px; color: var(--text3); }
/* Docs pages open on a shorter picture. */
.hero.page.short { min-height: clamp(280px, 36svh, 360px); padding: 110px var(--gutter) 56px; }
.hero.page.short h1 { font-size: clamp(30px, 4.4vw, 50px); }
/* The guides, as a list of links on Getting started. */
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.guide {
  display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--card); text-decoration: none; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.guide:hover { border-color: var(--border-strong); background: var(--card-hover); }
.guide strong { color: var(--text); font-size: 15px; }
.guide span { color: var(--text2); font-size: 13.5px; line-height: 1.5; }
/* Previous and next at the foot of a guide. */
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border); }
.pager a { display: grid; gap: 2px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; }
.pager a small { color: var(--text3); font-weight: 500; font-size: 12.5px; }
.pager a.next { margin-left: auto; text-align: right; }
.pager a:hover { color: var(--accent-ink); }
.prose .shot { margin: 22px 0 6px; box-shadow: 0 16px 40px var(--shadow-cast), 0 2px 8px var(--shadow-soft); }
.prose .shot img { width: 100%; height: auto; vertical-align: top; }

/* A release's entry in the notes. */
.release-entry + .release-entry { margin-top: 72px; }
.release-entry h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.release-entry h2 small { font: 500 14px/1 var(--ui); color: var(--text3); letter-spacing: 0; }

/* The Terms draft note. */
.draft-note { margin-bottom: 28px; }

@media (max-width: 980px) {
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; padding: 18px 12px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card); }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .guides { grid-template-columns: 1fr; }
  .release-facts { grid-template-columns: 1fr; gap: 4px; }
  .release-facts dd + dt { margin-top: 12px; }
  .toc ol { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; gap: 12px; }
}

/* Under the big wordmark the home page's headline steps down a size. */
.hero-mark ~ h1 { font-size: clamp(30px, 4.6vw, 54px); }

/* A small line under the home page's buttons: what you get, at a glance. */
.hero-note {
  margin-top: 18px;
  font-size: 13.5px; font-weight: 500; color: #fbf6ecdb;
  text-shadow: 0 1px 2px #000000d9, 0 0 12px #0e101ccc;
}

/* --- log in, sign up and the profile button (site.js) ----------------------- */

.top-login {
  padding: 6px 10px; border-radius: var(--r-sm); white-space: nowrap;
  color: var(--text2); text-decoration: none; font-size: 13.5px; font-weight: 500;
}
.top-login:hover { color: var(--text); background: var(--surface-hover); }
.top.over .top-login { color: var(--on-picture-light); }
.top.over .top-login:hover { background: #ffffff1f; }
.top.over.on-light .top-login { color: var(--on-picture-dark); }
.top.over.on-light .top-login:hover { background: #0000000f; }
.signed-in [data-signed-out] { display: none !important; }
.profile-menu { display: none; position: relative; }
.signed-in .profile-menu { display: block; }
.avatar-btn {
  display: block; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer;
  box-shadow: 0 0 0 1px var(--border-strong);
  transition: box-shadow .15s var(--ease);
}
.avatar-btn:hover, .avatar-btn[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--accent); }
.avatar-btn svg, .avatar svg { display: block; width: 100%; height: 100%; border-radius: 50%; }
.avatar { display: inline-block; flex: none; border-radius: 50%; }
.profile-pop {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 260px;
  padding: 6px; border: 1px solid var(--border-strong); border-radius: var(--r-md, 12px);
  background: var(--bg); box-shadow: 0 18px 40px var(--shadow-cast);
}
.profile-pop[hidden] { display: none; }
.profile-pop .who { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.profile-pop .who .avatar { width: 40px; height: 40px; }
.profile-pop .who div { display: grid; gap: 2px; min-width: 0; }
.profile-pop .who b { font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-pop .who span { font-size: 12.5px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-pop a, .profile-pop button {
  display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--text); font: 500 13.5px/1.2 var(--ui); text-align: left; text-decoration: none; cursor: pointer;
}
.profile-pop a:hover, .profile-pop button:hover, .profile-pop a:focus-visible, .profile-pop button:focus-visible { background: var(--surface-hover); outline: none; }

/* A phone keeps the web chat's button as just its icon, beside the wordmark. */
@media (max-width: 440px) {
  .top:not(.open) .nav a.nav-chat { width: 36px; padding: 0; justify-content: center; gap: 0; font-size: 0; }
  .top:not(.open) .nav a.nav-chat svg { width: 17px; height: 17px; }
}

/* --- the home page ---------------------------------------------------------- */

/* The picture shows at once as a still of the same tiles (preloaded in the
   head). On a wide screen the live picture is cut at the still's own size
   and scaled the same way (site.js sets --cover), so when it fades in over
   the still nothing moves: it only sharpens, and the glints start. A tall
   screen keeps the still. */
.hero.home .scene {
  overflow: hidden;
  background: #1a1714 url("/img/scenes/home-afternoon-wide.avif?v=2") center / cover no-repeat;
}
[data-scene="dawn"] .hero.home .scene { background-image: url("/img/scenes/home-dawn-wide.avif?v=2"); }
[data-scene="sunset"] .hero.home .scene { background-image: url("/img/scenes/home-sunset-wide.avif?v=2"); }
[data-scene="night"] .hero.home .scene { background-image: url("/img/scenes/home-night-wide.avif?v=2"); }
.hero.home .scene canvas {
  position: absolute; left: 50%; top: 50%; width: 1440px; height: 900px;
  transform: translate(-50%, -50%) scale(var(--cover, 1));
  opacity: 0; transition: opacity .6s var(--ease);
}
.hero.home .scene.ready canvas { opacity: 1; }
@media (max-aspect-ratio: 4/5) {
  .hero.home .scene { background-image: url("/img/scenes/home-afternoon-tall.avif?v=2"); }
  [data-scene="dawn"] .hero.home .scene { background-image: url("/img/scenes/home-dawn-tall.avif?v=2"); }
  [data-scene="sunset"] .hero.home .scene { background-image: url("/img/scenes/home-sunset-tall.avif?v=2"); }
  [data-scene="night"] .hero.home .scene { background-image: url("/img/scenes/home-night-tall.avif?v=2"); }
  .hero.home .scene canvas { display: none; }
}
/* The words carry a deep, wide shade from the first paint, so they read over
   the brightest tiles before anything is measured. */
.hero.home .hero-copy { --scrim: 0.86; }
[data-scene="night"] .hero.home .hero-copy { --scrim: 0.76; }
.hero.home .hero-copy::before {
  inset: -110px -170px;
  background: radial-gradient(closest-side, rgb(14 16 28 / var(--scrim)) 0%, rgb(14 16 28 / var(--scrim)) 38%,
    rgb(14 16 28 / calc(var(--scrim) * .62)) 68%, rgb(14 16 28 / 0) 100%);
}

/* A phone gets a link to send to its computer; a computer the app doesn't run
   on yet gets a note (the head script marks which). */
.get-link, .for-phone, .for-other { display: none; }
.on-phone .get-app, .on-phone .for-app, .on-other .for-app { display: none; }
.on-phone .get-link { display: inline-flex; }
.on-phone .for-phone, .on-other .for-other { display: block; }

/* Feature headings beside a picture, and the steps under them. */
.feature-text h2 { margin: 16px 0 14px; font-size: clamp(28px, 3.4vw, 40px); }
.feature-text > p + p { margin-top: 14px; }
.beats { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: beat; }
.beats li { position: relative; padding-left: 44px; counter-increment: beat; }
.beats li::before {
  content: counter(beat);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px;
  background: var(--tile-navy); color: var(--on-picture-light);
  font: 650 13px/1 var(--ui);
  box-shadow: inset 0 0 0 2px var(--grout), 0 0 0 1px var(--border);
}
.beats li:nth-child(2)::before { background: var(--tile-teal); }
.beats li:nth-child(3)::before { background: var(--tile-gold); color: var(--on-picture-dark); }
.feature-text .beats h3 { margin: 3px 0 4px; font: 600 15.5px/1.35 var(--ui); letter-spacing: -0.01em; }
.beats p { font-size: 14.5px; }
.feature-text .aside-note { margin-top: 22px; font-size: 13.5px; color: var(--text3); }

/* An answer as Mosaik writes it: the short answer, then the parts. */
.demo {
  margin: 0; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--border-strong); background: var(--raised);
  box-shadow: 0 30px 70px var(--shadow-cast), 0 4px 14px var(--shadow-soft);
}
.demo-strip { height: 4px; }
.demo-top {
  display: flex; align-items: center; height: 40px; padding: 0 18px;
  border-bottom: 1px solid var(--border); background: var(--sidebar);
  font-size: 12.5px; font-weight: 600; color: var(--text2);
}
.demo-chat { display: grid; gap: 18px; padding: 22px clamp(16px, 3vw, 28px) 8px; font-size: 14px; line-height: 1.6; }
.demo-q {
  justify-self: end; max-width: 84%; padding: 10px 14px;
  border-radius: 14px 14px 4px 14px; background: var(--surface-hover);
}
.demo-a { display: grid; gap: 14px; }
.demo-lead { font-size: 15px; }
.src {
  display: inline-flex; align-items: center; height: 19px; padding: 0 7px; margin-left: 3px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  color: var(--text3); font-size: 11px; font-weight: 500; line-height: 1; vertical-align: 1px; white-space: nowrap;
}
.demo-title {
  margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--border);
  font-family: var(--display); font-weight: 620; font-size: 19px; letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.part h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
/* The waiting line and the part share one cell, so the box is the part's
   size from the start and nothing below it moves when it arrives. */
.part-box { display: grid; }
.part-wait, .part-body { grid-area: 1 / 1; }
.part-wait { display: grid; align-content: start; gap: 8px; color: var(--text3); font-size: 12.5px; opacity: 0; }
.part-wait i { height: 9px; border-radius: 5px; background: var(--surface-hover); }
.part-wait i:nth-of-type(2) { width: 86%; }
.part-wait i:nth-of-type(3) { width: 58%; }
.demo-bottom { padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-wash); }
.demo figcaption { padding: 6px clamp(16px, 3vw, 28px) 18px; font-size: 12.5px; color: var(--text3); }

/* Played once, when it comes into view (site.js): the outline first, then each
   part as it's ready, then the bottom line. Without script, or with reduced
   motion, the finished answer shows as it is. */
.demo.wait :is(.demo-title, .part h4, .part-body, .demo-bottom) { opacity: 0; transform: translateY(6px); }
.demo.play :is(.demo-title, .part h4) {
  opacity: 1; transform: none;
  transition: opacity .4s var(--ease) .35s, transform .4s var(--ease) .35s;
}
.demo.play .part-wait { opacity: 1; transition: opacity .3s var(--ease) .5s; }
.demo.play .part-wait i { animation: breathe 1.1s ease-in-out .5s 4 alternate; }
.demo.play .part.set .part-wait { opacity: 0; transition: opacity .2s var(--ease); }
.demo.play .part.set .part-body,
.demo.play.done .demo-bottom { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
@keyframes breathe { to { opacity: .45; } }

/* Charts and checklists, as Mosaik draws them in an answer. */
.mk-bars { display: grid; gap: 8px; font-size: 12.5px; }
.mk-bars .bar { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) auto; align-items: center; gap: 10px; color: var(--text2); }
.mk-bars .bar::before { content: ""; order: 1; height: 14px; width: calc(var(--v) * 100%); border-radius: 3px; background: var(--tile-oxblood); }
.mk-bars .bar:nth-child(2)::before { background: var(--tile-teal); }
.mk-bars .bar:nth-child(3)::before { background: var(--tile-amber); }
.mk-bars .bar b { order: 2; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.mk-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.mk-check label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13.5px; line-height: 1.45; }
.mk-check input {
  appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center;
  width: 17px; height: 17px; margin: 1px 0 0; border-radius: 5px;
  border: 1.5px solid var(--border-strong); background: var(--input-bg); cursor: pointer;
}
.mk-check input::after {
  content: ""; width: 8px; height: 4px; margin-top: -2px;
  border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg) scale(0); transition: transform .15s var(--ease);
}
.mk-check input:checked { background: var(--accent); border-color: var(--accent); }
.mk-check input:checked::after { transform: rotate(-45deg) scale(1); }
.mk-check label:has(input:checked) { color: var(--text3); text-decoration: line-through; text-decoration-color: var(--border-strong); }

/* The elements, one card each. */
.elements { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.el-card {
  display: grid; gap: 12px; align-content: start; padding: 18px 18px 20px;
  border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--border);
}
.el-kind { font-size: 12px; font-weight: 600; color: var(--text3); }
.el-title { margin-top: -6px; font-size: 15px; font-weight: 600; }
.el-note { font-size: 12.5px; color: var(--text3); }
.mk-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 128px; }
.mk-cols span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; font-size: 10.5px; color: var(--text3); }
.mk-cols span::before { content: ""; width: 100%; height: calc(var(--v) * (100% - 20px)); border-radius: 3px 3px 1px 1px; background: var(--tile-gold); }
.mk-calc { display: grid; gap: 8px; }
.mk-calc label { display: grid; grid-template-columns: minmax(0, 1fr) auto 6.5em; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); }
.mk-calc .unit { color: var(--text3); }
.mk-calc input {
  grid-column: 3; width: 100%; height: 32px; padding: 0 8px;
  border-radius: 6px; border: 1px solid var(--border-strong); background: var(--input-bg); color: var(--text);
  font: 500 13.5px/1 var(--ui); text-align: right; font-variant-numeric: tabular-nums;
  appearance: textfield; -moz-appearance: textfield;
}
.mk-calc input::-webkit-inner-spin-button, .mk-calc input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mk-calc input:focus { border-color: var(--accent); outline: none; }
.mk-calc output {
  margin-top: 4px; padding: 10px 12px; border-radius: 8px;
  background: var(--accent-wash); color: var(--accent-ink);
  font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums;
}
.mk-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-choices button {
  height: 32px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 500 13px/1 var(--ui); cursor: pointer;
}
.mk-choices button:hover { background: var(--surface-hover); }
.mk-choices button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-ink); }
.more-note { max-width: 620px; margin: 28px auto 0; text-align: center; font-size: 14.5px; color: var(--text2); }

/* Smart mode's two sliders, and what it picked for two messages. */
.smart-mock {
  margin: 0; padding: clamp(18px, 3vw, 28px); display: grid; gap: 22px;
  border-radius: var(--r-lg); border: 1px solid var(--border-strong); background: var(--raised);
  box-shadow: 0 30px 70px var(--shadow-cast), 0 4px 14px var(--shadow-soft);
}
.slider-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.slider-head b { font-weight: 600; }
.slider-head span { color: var(--accent-ink); font-weight: 600; }
.track { position: relative; height: 6px; margin: 14px 0 9px; border-radius: 3px; background: var(--surface-hover); }
.track::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--at) * 100%);
  border-radius: 3px; background: var(--accent);
}
.track.notched { display: flex; justify-content: space-between; align-items: center; }
.track.notched i { position: relative; width: 2px; height: 12px; border-radius: 1px; background: var(--border-strong); }
.thumb {
  position: absolute; top: 50%; left: calc(var(--at) * 100%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 1px 4px var(--shadow-cast);
  transform: translate(-50%, -50%);
}
.ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--text3); }
.picked { display: grid; gap: 16px; padding-top: 20px; border-top: 1px solid var(--border); }
.picked-head { font-size: 12px; font-weight: 600; color: var(--text3); }
.pick > p:first-child { font-size: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pills span {
  display: inline-flex; align-items: center; height: 23px; padding: 0 8px;
  border-radius: var(--r-xs); background: var(--surface-hover); color: var(--text2); font-size: 12px; font-weight: 500;
}

/* Screens, cropped to what matters; a click shows the whole window. */
.crops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.crop { margin: 0; }
.zoomable {
  display: block; width: 100%; padding: 0; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--card);
  box-shadow: 0 18px 44px var(--shadow-cast), 0 3px 10px var(--shadow-soft);
  transition: transform .2s var(--ease);
}
.zoomable:hover { transform: translateY(-2px); }
.zoomable img { width: 100%; height: auto; }
.crop figcaption { margin-top: 14px; font-size: 14.5px; color: var(--text2); }
.crop figcaption b { color: var(--text); font-weight: 600; }
.zoom {
  padding: 0; border: 0; background: transparent; overflow: visible;
  max-width: 94vw; max-height: 92vh;
}
.zoom::backdrop { background: #0b0a09e0; }
.zoom img {
  width: auto; height: auto; max-width: min(1440px, 94vw); max-height: 86vh;
  border-radius: var(--r-md); box-shadow: 0 30px 80px #000000a6;
}
.zoom-close { position: absolute; right: 0; top: -42px; color: #fbf6ec; background: #ffffff1f; }
.zoom-close:hover { color: #fff; background: #ffffff33; }
.zoom-close svg { stroke: currentColor; }
.zoom[open] { animation: zoom-in .2s var(--ease); }
@keyframes zoom-in { from { opacity: 0; transform: scale(.97); } }

/* Glyphs: small mosaics in the tile colours, the grout in the page's colour. */
.glyph { display: block; flex: none; width: 30px; height: 30px; margin-bottom: 16px; overflow: visible; }
.glyph * { stroke: var(--glyph-gap, var(--bg)); stroke-width: 1.3; stroke-linejoin: round; }
.band .glyph { --glyph-gap: var(--sidebar); }
.g-n { fill: var(--tile-navy); }
.g-o { fill: var(--tile-oxblood); }
.g-t { fill: var(--tile-teal); }
.g-g { fill: var(--tile-gold); }
.g-a { fill: var(--tile-amber); }
.g-c { fill: var(--tile-cream); }
/* On graphite the deep tiles would sink, so they're lit a little. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .g-n { fill: #4a68a6; }
  :root:not([data-theme="light"]) .g-o { fill: #a9443f; }
  :root:not([data-theme="light"]) .g-t { fill: #23807a; }
}
:root[data-theme="dark"] .g-n { fill: #4a68a6; }
:root[data-theme="dark"] .g-o { fill: #a9443f; }
:root[data-theme="dark"] .g-t { fill: #23807a; }

/* Everything else, in a grid of small notes. */
.handy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; margin-top: clamp(56px, 7vw, 80px); }
.handy .glyph { width: 30px; height: 30px; margin-bottom: 12px; }
.handy h3 { margin-bottom: 6px; font-size: 15.5px; }
.handy p { color: var(--text2); font-size: 14px; line-height: 1.55; }
.principle .glyph { margin-bottom: 18px; }

/* Who makes it, and what's coming. */
.two-col.open { align-items: center; }
.two-col.open h2 { margin: 16px 0; }
.two-col.open > div > p + p { margin-top: 14px; }
.reach { font-size: 14.5px; }
.reach a { color: var(--accent-ink); text-underline-offset: 2px; }
.road { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.road-item { padding: 18px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--border); }
.road-item h3 { margin: 12px 0 6px; font-size: 15.5px; }
.road-item p { color: var(--text2); font-size: 14px; }
.more.left { grid-column: 1 / -1; margin-top: 4px; text-align: left; }

@media (max-width: 980px) {
  .elements, .handy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature.answers { gap: 40px; }
}
/* On a phone the screens sit in a row you swipe through, at a size you can read. */
@media (max-width: 720px) {
  .section.band > .crops {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    max-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 22px;
  }
  .section.band > .crops::-webkit-scrollbar { display: none; }
  .crop { flex: 0 0 86%; scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .elements, .road { grid-template-columns: 1fr; }
  .handy { grid-template-columns: 1fr; gap: 22px; }
  .handy > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; }
  .handy .glyph { grid-row: span 2; margin: 2px 0 0; }
  .mk-bars .bar { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .mk-bars .bar::before { grid-column: 1 / -1; order: 3; }
  .demo-q { max-width: 92%; }
}

/* The Features page's pictures of the new answers. */
.team-mock {
  margin: 0; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--border-strong); background: var(--raised);
  box-shadow: 0 30px 70px var(--shadow-cast), 0 4px 14px var(--shadow-soft);
}
.team-body { display: grid; gap: 16px; padding: 22px clamp(16px, 3vw, 28px) 20px; font-size: 14px; }
.team-q { justify-self: end; max-width: 84%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--surface-hover); }
.team-lead { font-size: 15px; }
.team-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: part; }
.team-parts li {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: var(--r-md); border: 1px solid var(--border); background: var(--card);
  counter-increment: part;
}
.team-parts li::before {
  content: counter(part); flex: none; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 6px; font: 650 12px/1 var(--ui);
  background: var(--surface-hover); color: var(--text2);
}
.team-parts li.ok::before { background: var(--tile-teal); color: var(--on-picture-light); }
.team-parts span { flex: 1; min-width: 0; font-weight: 500; }
.team-parts b { flex: none; font-size: 12px; font-weight: 600; color: var(--text3); }
.team-parts li.ok b { color: var(--added); }
.team-foot { font-size: 12.5px; color: var(--text3); }
.el-pair { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .el-pair { grid-template-columns: 1fr; } }
