/* pixel-stroke.com — shared chrome + layout for every non-landing
 * page (about, donate, download, login, signup, docs).
 *
 * Tokens + visual treatment mirror landing.css so each marketing page
 * feels like a slice of the same site, not a generic template. The
 * landing's design language: full-dark navy palette (`--bg-*`,
 * `--text-*`, `--accent` indigo), RGB-cube logo, "icon-signature"
 * treatment on every primary surface (thick navy outline + solid
 * bottom-offset shadow), Söhne-style display headlines.
 *
 * This file owns: page-level layout, the sticky header + nav, the
 * footer, prose/article styles, button system, form chrome (used by
 * /login + /signup), docs-page chrome (/docs/*).
 *
 * Breakpoints (mobile-first):
 *   mobile  ≤ 640px    (default)
 *   tablet  641-1024px (--tablet)
 *   desktop > 1024px   (--desktop)
 */

:root {
  /* Palette mirrors landing.css. Defined at :root so EVERY page
   * inherits them — landing.css's `.stroke {...}` block shadows
   * these on the home page with the same values. */
  --bg-0:        #06070f;
  --bg-1:        #0a0a1e;
  --bg-2:        #10142a;
  --bg-3:        #161b35;
  --bg-hover:    #1e2442;
  --bg-active:   #242a4a;

  --text-1:      #e8e9f2;
  --text-2:      #a0a4b8;
  --text-3:      #6d7290;
  --text-4:      #4a4e68;

  --brand-red:    #e02948;
  --brand-green:  #3fc26a;
  --brand-blue:   #3a8fff;
  --brand-yellow: #ffd24c;

  --red:    #ec2a2a;
  --coral:  #ff5b3e;
  --yellow: #ffd23c;
  --lime:   #c4f024;
  --blue:   #3060ff;
  --cyan:   #00d4ff;
  --violet: #7a3bff;

  --accent:      #6c5ce7;
  --accent-soft: rgba(108, 92, 231, 0.18);

  --rule:    rgba(255, 255, 255, 0.08);
  --outline: var(--bg-0);

  /* Families come from fonts.css. */
  --font-ui: var(--font-body);

  --ledge:       var(--outline);
  --shadow-deep: rgba(0, 0, 0, 0.5);
  --yellow-ink:  var(--brand-yellow);
  --green-ink:   var(--brand-green);
}

/* Light theme, picked in the hero or taken from the system setting (see
 * static/assets/theme.js). Same values as the landing's light tokens. */
html[data-theme="pixel-stroke-light"] {
  --bg-0:        #d9d4c6;
  --bg-1:        #efeae0;
  --bg-2:        #f7f3e9;
  --bg-3:        #ffffff;
  --bg-hover:    #e8e3d8;
  --bg-active:   #d5cebf;

  --text-1:      #161b35;
  --text-2:      #3a4170;
  --text-3:      #6d7290;
  --text-4:      #9aa0b8;

  --brand-red:    #cc1f3a;
  --brand-green:  #2ea65b;
  --brand-blue:   #2667d6;
  --brand-yellow: #cf9a18;

  --red:    #d12340;
  --coral:  #d65b3e;
  --yellow: #d49b1f;
  --lime:   #8ba81a;
  --blue:   #2848d0;
  --cyan:   #1aa3c4;
  --violet: #6533c0;

  --accent:      #5142c2;
  --accent-soft: rgba(81, 66, 194, 0.16);

  --rule:    rgba(20, 24, 50, 0.10);
  --outline: #1c2040;
  --ledge:       #cdc5b3;
  --shadow-deep: rgba(74, 60, 36, 0.16);
  --text-3:      #5d6282;
  --text-4:      #767b96;
  --yellow-ink:  #855c00;
  --green-ink:   #1b7439;
}

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

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

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

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-feature-settings: 'ss01' on, 'cv11' on;
}

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

a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 160ms cubic-bezier(0.2, 0.9, 0.25, 1);
}
a:hover { color: var(--yellow-ink); }

button, input, select, textarea { font: inherit; color: inherit; }

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  background: var(--bg-3);
  color: var(--text-1);
  padding: 10px 16px;
  border-radius: 6px;
  border: 2px solid var(--outline);
  text-decoration: none;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------------------- *
 * Header — sticky, blurred, brand-mark + nav. Mirrors the landing's
 * `.stroke-header` so visually the site reads as one product.
 * ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg-1) 86%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-1);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.site-brand-mark {
  display: block;
  width: auto;
  height: 26px;
}
.site-brand:hover { color: var(--text-1); }
.site-nav ul {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 160ms ease;
}
.site-nav a:hover { color: var(--text-1); }
.site-nav .site-nav-cta {
  background: transparent;
  color: var(--text-1);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--text-1) 30%, transparent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.site-nav .site-nav-cta:hover {
  border-color: var(--brand-red);
  background: color-mix(in srgb, var(--brand-red) 12%, transparent);
  color: var(--text-1);
}

/* ---------------------------------------------------------------- *
 * Main
 * ---------------------------------------------------------------- */

.site-main {
  flex: 1;
  padding: 80px 32px 120px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* above #stroke-canvas */
}

/* Live painterly scroll-stroke. The canvas is viewport-fixed and
 * sits behind the page content; site-stroke.js draws a morphing
 * brushstroke down the right side that breathes, transitions
 * smooth → paint → pixel → smooth as you scroll, swells around the
 * cursor, and pulses ambiently when the cursor's away from the
 * stroke band. Falls back to nothing when prefers-reduced-motion
 * is set. */
#stroke-canvas {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 520px) {
  #stroke-canvas { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #stroke-canvas { display: none; }
}

/* ---------------------------------------------------------------- *
 * Prose article — used by /about, /donate, /download, /docs
 * ---------------------------------------------------------------- */

.prose {
  max-width: 760px;
  font-size: 18px;
}
.prose h1, .prose h2, .prose h3 {
  font-family: var(--font-display);
}
.prose h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--text-1);
}
.prose h1 + p {
  font-size: 21px;
  color: var(--text-2);
  margin-bottom: 48px;
  line-height: 1.5;
}
.prose h2 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 56px 0 16px;
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.prose h2::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--brand-red);
  display: inline-block;
}
.prose p {
  margin: 0 0 20px;
  color: var(--text-2);
  line-height: 1.65;
}
.prose p a {
  color: var(--brand-blue);
  font-weight: 500;
}
.prose ul, .prose ol {
  margin: 0 0 24px;
  padding-left: 24px;
  color: var(--text-2);
}
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--brand-yellow);
}
.prose pre {
  background: var(--bg-0);
  border: 2px solid var(--outline);
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
  box-shadow: 0 4px 0 var(--ledge);
  margin: 24px 0;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-1);
  display: block;
}
.prose blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--bg-2);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--text-2);
  font-style: italic;
}

/* ---------------------------------------------------------------- *
 * Buttons — icon-signature treatment shared with the landing
 * ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--outline);
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.2, 0.9, 0.25, 1);
  white-space: nowrap;
}
.btn-red {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 4px 0 0 var(--ledge);
}
.btn-red:hover {
  background: var(--brand-yellow);
  color: var(--bg-0);
  transform: translate(0, -2px);
  box-shadow: 0 6px 0 0 var(--ledge);
}
.btn-ghost {
  background: transparent;
  color: var(--text-1);
}
.btn-ghost:hover {
  background: var(--text-1);
  color: var(--bg-1);
}

/* ---------------------------------------------------------------- *
 * Auth: /login and /signup. A scene on one side, the form on the other.
 * ---------------------------------------------------------------- */

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: min(760px, calc(100vh - 220px));
  border: 2px solid var(--outline);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 6px 0 var(--ledge), 0 30px 70px -30px var(--shadow-deep);
}
.auth-showcase {
  display: flex;
  flex-direction: column;
  background: #0a0a1e;
  color: #e8e9f2;
}
.auth-scene {
  flex: 1 1 auto;
  min-height: 240px;
  position: relative;
  image-rendering: pixelated;
}
.auth-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-showcase-copy { padding: 28px 36px 36px; }
.auth-showcase .show-eyebrow { color: #b39dff; }
.auth-showcase-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 10px 0 18px;
}
.auth-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-perks li { position: relative; padding-left: 22px; color: #c9cbe0; line-height: 1.5; }
.auth-perks li::before {
  content: "";
  position: absolute; left: 0; top: 0.45em;
  width: 10px; height: 10px;
  background: #3fc26a;
  clip-path: polygon(0 50%, 20% 50%, 20% 70%, 40% 70%, 40% 50%, 60% 50%, 60% 30%, 80% 30%, 80% 10%, 100% 10%, 100% 30%, 80% 30%, 80% 50%, 60% 50%, 60% 70%, 40% 70%, 40% 90%, 20% 90%, 20% 70%, 0 70%);
}
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
}
.auth-heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 750;
  margin: 0 0 14px;
  color: var(--text-1);
}
.auth-lede { margin: 0 0 32px; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.auth-error {
  margin: -16px 0 24px;
  padding: 12px 16px;
  border: 1px solid var(--brand-red);
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand-red) 10%, transparent);
  color: var(--text-1);
  font-size: 14px;
}
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; }
.auth-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.auth-field input {
  height: 54px;
  padding: 0 18px;
  background: var(--bg-3);
  border: 2px solid color-mix(in srgb, var(--text-1) 16%, transparent);
  border-radius: 12px;
  color: var(--text-1);
  font: inherit;
  font-size: 17px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.auth-field input::placeholder { color: var(--text-4); }
.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.auth-hint { margin: 0; font-size: 14px; color: var(--text-3); line-height: 1.5; }
.auth-submit {
  margin-top: 16px;
  height: 54px;
  background: var(--brand-red);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 3px 0 0 color-mix(in srgb, var(--brand-red) 55%, #000),
    0 12px 28px -14px color-mix(in srgb, var(--brand-red) 80%, transparent);
  transition: transform 160ms ease, background 160ms ease;
}
.auth-submit:hover { background: color-mix(in srgb, var(--brand-red) 88%, #fff); transform: translateY(-1px); }
.auth-alt { margin-top: 28px; color: var(--text-3); font-size: 15px; }
.auth-alt a { color: var(--accent); font-weight: 600; }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: minmax(0, 1fr); }
  .auth-scene { min-height: 200px; aspect-ratio: 16 / 9; flex: none; }
}

/* ---------------------------------------------------------------- *
 * Showcase pages: about, download, plans
 * ---------------------------------------------------------------- */

.showcase { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 120px); }

.show-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.show-hero.is-centered { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
.show-hero.is-centered .show-lede { margin-inline: auto; }
.show-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.show-eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--brand-red); }
.show-title {
  margin: 14px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--text-1);
  text-wrap: balance;
}
.show-lede { max-width: 34em; margin: 0; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; color: var(--text-2); }
.show-lede a, .show-card a, .plan-fine a { color: var(--text-1); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.show-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--outline);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(232, 233, 242, 0.08) 1px, transparent 0) 0 0 / 16px 16px,
    linear-gradient(180deg, #14193f 0%, #0a0a1e 70%);
  box-shadow: 0 6px 0 var(--ledge), 0 30px 70px -30px var(--shadow-deep);
  image-rendering: pixelated;
}
.show-stage canvas, .plan-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.show-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.show-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--text-1) 30%, transparent);
  color: var(--text-1);
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.show-btn:hover { border-color: var(--brand-red); color: var(--text-1); transform: translateY(-1px); }
.show-btn-primary {
  background: var(--brand-red);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 3px 0 0 color-mix(in srgb, var(--brand-red) 55%, #000),
    0 12px 28px -14px color-mix(in srgb, var(--brand-red) 80%, transparent);
}
.show-btn-primary:hover { background: color-mix(in srgb, var(--brand-red) 88%, #fff); border-color: transparent; color: #fff; }

.show-section-title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 720;
  letter-spacing: -0.025em;
  color: var(--text-1);
}

.show-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.show-card {
  padding: 30px 28px;
  background: var(--bg-2);
  border: 2px solid var(--outline);
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--ledge);
}
.show-card-tag {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.show-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 720;
  letter-spacing: -0.02em;
  color: var(--text-1);
}
.show-card p { margin: 0 0 12px; color: var(--text-2); line-height: 1.6; }
.show-card p:last-child { margin-bottom: 0; }

/* Platforms (download) */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.platform {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 24px;
  background: var(--bg-2);
  border: 2px solid var(--outline);
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--ledge);
}
.platform.is-live { border-color: var(--brand-green); box-shadow: 0 5px 0 color-mix(in srgb, var(--brand-green) 45%, var(--ledge)); }
.platform-glyph { width: 64px; height: 64px; margin-bottom: 12px; }
.platform-glyph .g-ink { fill: var(--text-1); }
.platform-glyph .g-paper { fill: var(--bg-1); }
.platform-glyph .g-accent { fill: var(--accent); }
.platform-glyph .g-red { fill: var(--brand-red); }
.platform-glyph .g-yellow { fill: var(--brand-yellow); }
.platform-glyph .g-green { fill: var(--brand-green); }
.platform h3 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 720; color: var(--text-1); }
.platform-status {
  align-self: flex-start;
  margin: 2px 0 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid color-mix(in srgb, var(--text-1) 20%, transparent);
}
.platform.is-live .platform-status { color: var(--green-ink); border-color: var(--brand-green); }
.platform p { margin: 0; color: var(--text-2); line-height: 1.55; }
.platform-link { margin-top: auto; padding-top: 14px; color: var(--text-1); font-weight: 650; text-decoration: none; }
.platform-link:hover { color: var(--brand-red); }
.platforms-note {
  margin: 36px 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 650;
  color: var(--text-1);
}

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 2px solid var(--outline);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 6px 0 var(--ledge), 0 30px 70px -36px var(--shadow-deep);
}
.plan.is-supporter {
  border-color: var(--brand-yellow);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--brand-yellow) 55%, var(--ledge)), 0 30px 80px -30px color-mix(in srgb, var(--brand-yellow) 45%, transparent);
}
.plan-art {
  position: relative;
  aspect-ratio: 16 / 7;
  background:
    radial-gradient(circle at 1px 1px, rgba(232, 233, 242, 0.08) 1px, transparent 0) 0 0 / 14px 14px,
    linear-gradient(180deg, #14193f 0%, #0a0a1e 80%);
  border-bottom: 2px solid var(--outline);
  image-rendering: pixelated;
}
.plan.is-supporter .plan-art { background: radial-gradient(ellipse at 50% 120%, rgba(255, 210, 76, 0.28), transparent 60%), linear-gradient(180deg, #2a1846 0%, #0a0a1e 85%); }
.plan-head { padding: 26px 30px 0; }
.plan-badge {
  position: absolute; top: 16px; right: 16px;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ffd24c;
  color: #1a1206;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.plan-head h2 { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 750; letter-spacing: -0.02em; color: var(--text-1); }
.plan-price { margin: 6px 0 0; color: var(--text-3); }
.plan-amount { font-family: var(--font-display); font-size: 40px; font-weight: 750; letter-spacing: -0.03em; color: var(--text-1); margin-right: 6px; }
.plan-pitch { margin: 10px 0 0; color: var(--text-2); }
.plan-list { list-style: none; margin: 22px 30px 0; padding: 0; display: grid; gap: 11px; }
.plan-list li { position: relative; padding-left: 24px; color: var(--text-1); line-height: 1.5; }
.plan-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.42em;
  width: 11px; height: 11px;
  background: var(--brand-green);
  clip-path: polygon(0 50%, 20% 50%, 20% 70%, 40% 70%, 40% 50%, 60% 50%, 60% 30%, 80% 30%, 80% 10%, 100% 10%, 100% 30%, 80% 30%, 80% 50%, 60% 50%, 60% 70%, 40% 70%, 40% 90%, 20% 90%, 20% 70%, 0 70%);
}
.plan-list.is-premium li::before { background: var(--brand-yellow); clip-path: polygon(40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%, 0 40%, 40% 40%); }
.plan-list.is-excluded { margin-top: 16px; padding-top: 16px; border-top: 1px dashed color-mix(in srgb, var(--text-1) 18%, transparent); }
.plan-list.is-excluded li { color: var(--text-3); }
.plan-list.is-excluded li::before { background: var(--text-4); clip-path: inset(40% 0 40% 0); }
.plan-soon {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text-1) 22%, transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  vertical-align: 2px;
}
.plan-cta { margin: 28px 30px 0; }
.plan-fine { margin: 16px 30px 28px; font-size: 13px; line-height: 1.55; color: var(--text-3); }
.plan:not(.is-supporter) .plan-cta { margin-bottom: 30px; }

.supporters { text-align: center; }
.supporters-lede { margin: -12px 0 28px; color: var(--text-2); }
.supporter-wall { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.supporter {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 2px solid var(--brand-yellow);
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--text-1);
}
.supporter.is-empty { border-style: dashed; border-color: color-mix(in srgb, var(--text-1) 25%, transparent); color: var(--text-3); font-family: var(--font-body); font-weight: 400; }

@media (max-width: 900px) {
  .show-hero { grid-template-columns: minmax(0, 1fr); }
  .show-stage { max-width: 520px; width: 100%; }
}

/* ---------------------------------------------------------------- *
 * Docs — TOC sidebar + content
 * ---------------------------------------------------------------- */

.docs-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.docs-toc {
  position: sticky;
  top: 100px;
  padding: 24px;
  background: var(--bg-2);
  border: 2px solid var(--outline);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--ledge);
}
.docs-toc-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 16px;
}
.docs-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.docs-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: all 140ms ease;
}
.docs-toc a:hover {
  color: var(--text-1);
  background: var(--bg-hover);
}
.docs-toc a.is-active {
  background: var(--accent-soft);
  color: var(--text-1);
  font-weight: 600;
}
.docs-content { min-width: 0; } /* prevent grid overflow */
.docs-content .prose { max-width: none; }

/* Pill badges next to docs headings. Used to mark API status (stable
 * / experimental / coming soon) without writing it in prose. */
.doc-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: var(--bg-2);
  color: var(--text-2);
  vertical-align: middle;
  margin-left: 8px;
}
.doc-badge.is-stable { color: var(--green-ink); border-color: rgba(63, 194, 106, 0.4); }
.doc-badge.is-soon   { color: var(--yellow-ink); border-color: rgba(255, 210, 76, 0.4); }
.doc-badge.is-exp    { color: var(--accent); border-color: rgba(108, 92, 231, 0.4); }

/* ---------------------------------------------------------------- *
 * Footer
 * ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-0);
}
.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer-tagline {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}
.site-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}
.site-footer-links a {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-footer-links a:hover { color: var(--text-1); }

/* ---------------------------------------------------------------- *
 * Responsive
 * ---------------------------------------------------------------- */

@media (max-width: 1024px) {
  .docs-shell { grid-template-columns: 1fr; gap: 32px; }
  .docs-toc { position: static; }
}
@media (max-width: 640px) {
  .site-header-inner { padding: 14px 20px; gap: 14px; }
  .site-nav ul { gap: 12px; }
  .site-nav a:not(.site-nav-cta) { display: none; }
  .site-main { padding: 48px 20px 80px; }
  .auth-card { padding: 28px 20px; }
  .site-footer-inner { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}

/* Light theme: a paper footer instead of gray on gray. */
html[data-theme="pixel-stroke-light"] .site-footer {
  background: var(--bg-2);
  border-top-color: rgba(28, 32, 64, 0.10);
}
html[data-theme="pixel-stroke-light"] .site-footer-tagline { color: var(--text-3); }
html[data-theme="pixel-stroke-light"] .site-footer-links a { color: var(--text-2); }
html[data-theme="pixel-stroke-light"] .prose code { color: var(--yellow-ink); }
