/* Cool Apps — site stylesheet. One file, no external fonts, light and dark themes from prefers-color-scheme.
   The build appends one --plugin-accent rule per plugin and per game and serves the file under a content hash.
   (A game's play page does not use this file: see games-play.css.)
   Order matters: base, then article typography (low specificity through :where), then components. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f7fb;
  --surface-2: #eef2f8;
  --text: #0f1729;
  --muted: #4a5568;
  --border: #dde3ec;
  --border-strong: #c3ccda;
  --accent: #0b5cad;
  --accent-hover: #094c8f;
  --accent-soft: #e7f0fb;
  --on-accent: #ffffff;
  --ok: #1f7a4d;
  --code-bg: #f3f5f9;
  --code-text: #1c2536;
  --note-bg: #eef5fd;
  --note-border: #9cc3ec;
  --tip-bg: #ecf8f1;
  --tip-border: #8fd1ad;
  --warn-bg: #fff8e6;
  --warn-border: #e9c46a;
  --warn-text: #8a5a00;
  --shadow: 0 1px 2px rgba(15, 23, 41, 0.06), 0 4px 16px rgba(15, 23, 41, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --gutter: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --plugin-accent: var(--accent);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111b2d;
    --surface-2: #16223a;
    --text: #e6ecf5;
    --muted: #9fb0c8;
    --border: #233149;
    --border-strong: #31415e;
    --accent: #5cc8ff;
    --accent-hover: #8ed9ff;
    --accent-soft: #10263d;
    --on-accent: #04111f;
    --ok: #3ddc97;
    --code-bg: #0f1828;
    --code-text: #dbe4f0;
    --note-bg: #0f2033;
    --note-border: #24527c;
    --tip-bg: #0f2620;
    --tip-border: #23664a;
    --warn-bg: #1c1608;
    --warn-border: #6b5114;
    --warn-text: #f5c76a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
  }
}

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

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 900px) {
  :root { --gutter: 24px; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 8px; color: var(--on-accent); }

code {
  padding: 0.1em 0.35em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--code-text);
  font: 0.875em/1.5 var(--mono);
  overflow-wrap: break-word;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 64px;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand svg { width: 32px; height: 32px; flex: none; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"], .site-nav a.is-active { color: var(--text); background: var(--surface-2); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface); color: var(--text); }
.btn-block { width: 100%; }
/* In place of a Buy button while a plugin's checkout is not open yet: same size, dashed, not a link. */
.soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ------------------------------------------------------------------------------------------------ article typography
   Rendered Markdown lives in .prose. Every rule here goes through :where() so its specificity stays at one class:
   the components further down override it without fighting. */

.prose { min-width: 0; max-width: 50rem; }
.prose > :first-child { margin-top: 0; }
.prose :where(h1) {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.prose :where(h2) {
  margin: 48px 0 12px;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.prose :where(h3) { margin: 32px 0 8px; font-size: 1.1875rem; line-height: 1.35; }
.prose :where(h4) { margin: 24px 0 8px; font-size: 1rem; }
.prose :where(h2, h3) { scroll-margin-top: 16px; }
.prose :where(p, ul, ol, dl, pre, blockquote, .table-wrap) { margin: 0 0 16px; }
.prose :where(ul, ol) { padding-left: 1.5rem; }
.prose :where(li) { margin: 4px 0; }
.prose :where(li > ul, li > ol) { margin: 4px 0 0; }
.prose :where(li > p) { margin: 0 0 8px; }
.prose :where(hr) { margin: 40px 0; border: 0; border-top: 1px solid var(--border); }
.prose :where(blockquote) {
  padding: 4px 16px;
  border-left: 4px solid var(--border-strong);
  color: var(--muted);
}
.prose :where(.lead) { margin-top: 0; }

.anchor {
  margin-left: 6px;
  color: var(--border-strong);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
}
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }
.anchor:hover { color: var(--accent); }

pre.code {
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  line-height: 1.55;
}
pre.code code {
  padding: 0;
  background: none;
  border: 0;
  font-size: 0.875rem;
  overflow-wrap: normal;
  white-space: pre;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
th, td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
thead th {
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 500; }
td code, th code { white-space: normal; }
.align-center { text-align: center; }
.align-right { text-align: right; }

.callout {
  margin: 0 0 16px;
  padding: 14px 18px;
  border: 1px solid var(--note-border);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: var(--note-bg);
}
.callout > :last-child { margin-bottom: 0; }
.callout-title { margin: 0 0 6px; font-weight: 700; }
.callout-tip { background: var(--tip-bg); border-color: var(--tip-border); }
.callout-warning { background: var(--warn-bg); border-color: var(--warn-border); }
.callout-warning .callout-title { color: var(--warn-text); }

/* ------------------------------------------------------------------------------------------------ page + toc */

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-block: 32px 64px;
}
.page-grid.has-toc .toc-desktop { display: none; }

@media (min-width: 1100px) {
  .page-grid.has-toc { grid-template-columns: minmax(0, 1fr) 15rem; }
  .page-grid.has-toc .toc-desktop { display: block; }
  .page-grid.has-toc .toc-mobile { display: none; }
}

.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.toc-desktop {
  position: sticky;
  top: 20px;
  align-self: start;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding-left: 16px;
  border-left: 1px solid var(--border);
  font-size: 0.875rem;
}
.toc-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc-mobile {
  margin: 0 0 24px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}
.toc-mobile summary { cursor: pointer; font-weight: 600; }
.toc-mobile ul { margin-top: 8px; columns: 2 12rem; column-gap: 24px; }
.toc-mobile li { break-inside: avoid; }

/* ------------------------------------------------------------------------------------------------ home */

.hero {
  padding-block: 56px 48px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60rem 24rem at 85% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}
.hero-art { display: none; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 20rem; }
  .hero-art { display: block; width: 100%; height: auto; }
}

/* The hero pyramid of the home page and the plugins hub (lib/brand.mjs heroCubes): the decorative cubes in one SVG and,
   over each plugin's cube, a link as large as that cube with the cube drawn again in the plugin's colours and a card
   (logo and name) that opens on hover and on keyboard focus. Only the cube's faces take the pointer (a link's box is a
   rectangle, the cube is not). The build appends each link's box and where its card opens. Unlike the other hero art it
   also shows on phones, smaller, under the text. */
.hero-cubes {
  display: block;
  position: relative;
  width: min(100%, 18rem);
  margin-inline: auto;
}
@media (min-width: 900px) {
  .hero-cubes { width: 100%; margin-inline: 0; }
}
.hero-cubes-base { display: block; width: 100%; height: auto; }
.cube-link {
  position: absolute;
  pointer-events: none;
  text-decoration: none;
}
.cube-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible; /* the focus ring goes round the cube, outside its box */
  transition: filter 0.18s ease;
}
.cube-lift { transition: transform 0.18s ease; }
.cube-faces { pointer-events: auto; }
.cube-ring, .cube-ring-halo {
  fill: none;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
/* Two rings, light and dark, so the focus shows on any cube colour and in both themes. */
.cube-ring-halo { stroke: var(--bg); stroke-width: 7px; }
.cube-ring { stroke: var(--text); stroke-width: 3px; }
.cube-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 6px 12px 6px 6px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  transform: translate(var(--card-x, 0%), var(--card-y, -50%));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s;
}
.cube-card img { flex: none; width: 24px; height: 24px; border-radius: 6px; }
.cube-link:focus-visible { z-index: 2; outline: none; }
.cube-link:focus-visible .cube-ring, .cube-link:focus-visible .cube-ring-halo { opacity: 1; }
.cube-link:focus-visible .cube-card { opacity: 1; visibility: visible; }
.cube-link:focus-visible .cube-svg { filter: brightness(1.08); }
.cube-link:focus-visible .cube-lift { transform: translateY(-3px); }
/* Hover only where there is a real pointer: on touch screens a tap goes straight to the plugin. */
@media (hover: hover) {
  .cube-link:hover { z-index: 3; }
  .cube-link:hover .cube-card { opacity: 1; visibility: visible; }
  .cube-link:hover .cube-svg { filter: brightness(1.08); }
  .cube-link:hover .cube-lift { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .cube-svg, .cube-lift, .cube-card { transition: none; }
  .cube-link:hover .cube-lift, .cube-link:focus-visible .cube-lift { transform: none; }
}
@media (forced-colors: active) {
  .cube-ring { stroke: Highlight; }
  .cube-ring-halo { stroke: Canvas; }
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead {
  max-width: 44rem;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

/* The two entry blocks of the home page: plugins and games. */
.entries {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 640px) {
  .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.entry {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 4px 0 var(--accent);
}
.entry h2 { margin: 0; font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.01em; }
.entry h2 a { color: var(--text); text-decoration: none; }
.entry h2 a:hover { color: var(--accent); }
.entry p { margin: 6px 0 16px; color: var(--muted); font-size: 0.9375rem; }
.entry .btn { align-self: flex-start; margin-top: auto; }

.section { padding-block: 48px; }
.section + .section { border-top: 1px solid var(--border); }
.section-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.section-intro { margin: 0 0 24px; color: var(--muted); max-width: 44rem; }
.section-actions { margin-top: 8px; }
.empty-note { margin: 0 0 16px; color: var(--muted); }

/* ------------------------------------------------------------------------------------------------ cards */

/* Plugin and game cards: as many columns as cards, at most 3 (the build adds cards-1, cards-2 or cards-3 from the number
   of cards). A row that is not full is centred under the one above: with 3 columns the 4th and 5th cards sit side by
   side in the middle of row 2. A single card is as wide as one of two, under the section title. */
.cards {
  --cols: 2;
  --gap: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  margin: 0 0 16px;
}
.cards-1 { --cols: 2; justify-content: flex-start; }
.cards-2 { --cols: 2; }
.cards-3 { --cols: 3; }
.cards > .card { flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
@media (max-width: 1000px) {
  .cards > .card { flex-basis: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 720px) {
  .cards > .card { flex-basis: 100%; }
}
.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* Plugin cards and game cards share one layout. */
.plugin-card-head, .card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.plugin-card-head img, .card-head img { width: 52px; height: 52px; flex: none; border-radius: 12px; }
.plugin-card-title, .card-title { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.plugin-card-title a, .card-title a { color: var(--text); text-decoration: none; }
.plugin-card-title a:hover, .card-title a:hover { color: var(--accent); }
.card .tagline { margin: 2px 0 0; color: var(--muted); font-size: 0.9375rem; }
.card .summary { margin: 16px 0 0; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.chip {
  margin: 0;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.price-line { margin: 16px 0 0; font-weight: 600; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 14px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}
.features li {
  margin: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.features h3 { margin: 0 0 6px; font-size: 1.0625rem; line-height: 1.35; }
.features p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 16px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  margin: 0;
  padding: 18px 20px 18px 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.9375rem;
}
.steps h3 { margin: 0 0 4px; font-size: 1.0625rem; line-height: 1.35; }
.steps p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

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

.plugin-top {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--bg));
  box-shadow: inset 0 4px 0 var(--plugin-accent);
}
.plugin-id {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
}
.plugin-id img { width: 56px; height: 56px; flex: none; border-radius: 14px; }
.plugin-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.plugin-name a { color: var(--text); text-decoration: none; }
.plugin-name a:hover { color: var(--accent); }
.plugin-tagline { margin: 2px 0 0; color: var(--muted); }

.plugin-top.is-overview .plugin-id { padding-top: 40px; }
.plugin-top.is-overview .plugin-id img { width: 72px; height: 72px; border-radius: 18px; }
.plugin-top.is-overview .plugin-name { font-size: clamp(1.875rem, 5vw, 2.75rem); }
.plugin-intro { max-width: 46rem; margin: 20px 0 0; font-size: 1.0625rem; }

.plugin-nav { padding-block: 20px 16px; }
.plugin-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plugin-nav a {
  display: block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.plugin-nav a:hover { color: var(--text); border-color: var(--border-strong); }
.plugin-nav a[aria-current="page"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

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

.game-top {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--bg));
  box-shadow: inset 0 4px 0 var(--plugin-accent);
  padding-bottom: 28px;
}
.game-id {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 40px;
}
.game-id img { width: 72px; height: 72px; flex: none; border-radius: 18px; }
.game-name {
  margin: 0;
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.game-tagline { margin: 2px 0 0; color: var(--muted); }
.game-intro { max-width: 46rem; margin: 20px 0 0; font-size: 1.0625rem; }

/* ------------------------------------------------------------------------------------------------ plans + matrix */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 16px;
  margin: 8px 0 16px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.plan.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-name { margin: 0; font-size: 1.125rem; line-height: 1.3; }
.plan-price { margin: 10px 0 0; }
.plan-price .amount { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.plan-price .period { color: var(--muted); font-size: 0.9375rem; }
.plan-note { margin: 8px 0 0; color: var(--muted); font-size: 0.9375rem; }
.plan-features {
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.plan-features li { position: relative; margin: 6px 0; padding-left: 24px; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.plan .btn, .plan .soon { margin-top: auto; }
.plan .soon { width: 100%; }

.matrix td:nth-child(2), .matrix td:nth-child(3), .matrix th:nth-child(2), .matrix th:nth-child(3) { width: 26%; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--muted); }

.fineprint { color: var(--muted); font-size: 0.875rem; }

/* ------------------------------------------------------------------------------------------------ boxes */

.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }
@media (min-width: 640px) {
  .facts > div { grid-template-columns: 11rem minmax(0, 1fr); }
}

.download-box {
  margin: 0 0 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.download-box.is-pending { border-style: dashed; border-color: var(--border-strong); }
.download-title { margin: 0 0 6px; font-size: 1.125rem; font-weight: 700; }
.download-box p { margin: 0 0 8px; }
.download-box > :last-child { margin-bottom: 0; }
.download-meta { color: var(--muted); font-size: 0.9375rem; }

.link-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 16px; padding: 0; list-style: none; }
.link-list li { margin: 0; }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 16px;
  margin: 8px 0 16px;
}
.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.shot figcaption { margin-top: 6px; color: var(--muted); font-size: 0.875rem; }

/* ------------------------------------------------------------------------------------------------ pricing page */

.pricing-plugin { padding-block: 8px 24px; }
.pricing-plugin + .pricing-plugin { border-top: 1px solid var(--border); padding-top: 24px; }
.pricing-plugin-head { display: flex; align-items: center; gap: 12px; margin: 24px 0 8px; }
.pricing-plugin-head img { width: 40px; height: 40px; border-radius: 10px; }
.pricing-plugin-head h2 { margin: 0; font-size: 1.375rem; }
.pricing-plugin > p { margin: 0 0 12px; color: var(--muted); }

/* ------------------------------------------------------------------------------------------------ 404 */

.notfound { padding-block: 80px; text-align: center; }
.notfound .code-404 {
  margin: 0;
  color: var(--accent);
  font: 800 4rem/1 var(--mono);
}
.notfound h1 { margin: 12px 0 8px; font-size: 1.75rem; }
.notfound p { margin: 0 auto; max-width: 32rem; color: var(--muted); }
.notfound .actions { justify-content: center; }

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-inner {
  display: grid;
  gap: 12px;
  padding-block: 28px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { margin: 0; }
.footer-copy a { color: var(--muted); }
.legal-note { margin: 0; font-size: 0.8125rem; }

/* Plugin and game accents (generated). */
.plugin-chatshield { --plugin-accent: #2EC27E; }
.plugin-afkwarden { --plugin-accent: #8B5CF6; }
.game-skimline { --plugin-accent: #2A50D8; }

/* Hero pyramid: each plugin's link box and where its card opens (generated by lib/brand.mjs heroCubes). */
.cube-link[data-plugin="chatshield"] { left: 40.257%; top: 11%; width: 19.486%; height: 24%; }
.cube-link[data-plugin="chatshield"] .cube-card { left: 50%; top: 108.333%; max-width: 500.37%; --card-x: -50%; --card-y: 0%; }
.cube-link[data-plugin="afkwarden"] { left: 30.514%; top: 29%; width: 19.486%; height: 24%; }
.cube-link[data-plugin="afkwarden"] .cube-card { left: 109.623%; top: 50%; max-width: 240.563%; --card-x: 0%; --card-y: -50%; }
