/* ==========================================================================
   Celery Executor — site styles
   Base layer keeps the minimal "line field" hero from the starter kit.
   Section components below use the .clr- namespace so the markup stays easy
   to lift into other pages without class collisions.
   ========================================================================== */
:root {
  /* page surfaces */
  --bg: #141b12;                          /* hero backdrop — dark celery leaf */
  --bg-deep: #0f140d;                     /* everything below the fold */
  --panel: rgba(23, 31, 19, 0.66);        /* card fill */
  --panel-solid: #141a10;                 /* opaque card fill */
  --ink: #eef3e6;                         /* primary type */
  --ink-dim: rgba(238, 243, 230, 0.64);   /* captions, lede */
  --ink-faint: rgba(238, 243, 230, 0.4);  /* meta, timestamps */
  --rule: rgba(173, 214, 140, 0.16);      /* hairlines */
  --rule-soft: rgba(238, 243, 230, 0.08);

  /* accents */
  --leaf: #7fd14b;                        /* main celery green */
  --leaf-bright: #a6f15f;                 /* highlight */
  --leaf-deep: #3f8f1f;                   /* shaded green */
  --amber: #e8c35a;                       /* secondary status */
  --warn: #e67a5a;                        /* problem markers */
  --sky: #6fb8e8;                         /* informational markers */

  /* line-field shader reads these four (see script/script.js).
     Saturated greens on a near-black base give the threads their contrast
     and let the moving highlight read as actual light. */
  --field-bg: #11170f;
  --field-line: #0b7a14;
  --field-light-a: #35f01a;
  --field-light-b: #10b81a;

  /* type */
  --font-display: "Unbounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* rhythm */
  --pad: clamp(20px, 4vw, 56px);
  --header-h: 72px;
  --wrap: 1200px;
}

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

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

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, p, dl, dd, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg-deep);
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Header — floats over the hero
   ========================================================================== */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 6;
  min-height: var(--header-h);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand b {
  font: 400 1.02rem/1 var(--font-display);
  letter-spacing: -0.01em;
}
.brand span {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.site-nav {
  display: none;
  gap: clamp(16px, 2.6vw, 34px);
  font-size: 0.9375rem;
}
.site-nav a { text-decoration: none; color: var(--ink-dim); transition: color 0.2s; }
.site-nav a:hover { color: var(--ink); }
@media (min-width: 820px) { .site-nav { display: flex; } }

/* ==========================================================================
   Buttons / links
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0.82em 1.5em;
  border-radius: 999px;
  background: var(--leaf);
  color: #0c1208;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-text);
  font-size: 1rem;
  transition: background-color 0.2s, transform 0.2s;
}
.button:hover { background: var(--leaf-bright); transform: translateY(-1px); }
.button svg { width: 18px; height: 18px; }

.button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.button.ghost:hover { background: rgba(173, 214, 140, 0.08); border-color: var(--leaf); }

.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: var(--leaf); }

/* ==========================================================================
   Hero (kept from starter kit)
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + var(--pad)) var(--pad) var(--pad);
  display: grid;
  align-items: end;
  /* Fallback shown when the canvas hasn't painted (no JS / no WebGL yet) —
     the opaque canvas covers it once the line field is running. */
  background:
    radial-gradient(72% 60% at 72% 30%, rgba(166, 241, 95, 0.1), transparent 70%),
    var(--field-bg);
}

.field {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--field-bg) 70%, transparent), transparent 150px),
    linear-gradient(
      to top,
      color-mix(in srgb, var(--field-bg) 90%, transparent),
      color-mix(in srgb, var(--field-bg) 52%, transparent) 32%,
      transparent 64%
    );
}

.hero-body { display: grid; gap: clamp(20px, 3vw, 40px); align-items: end; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leaf-bright);
}
.hero-eyebrow i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--leaf-bright);
  box-shadow: 0 0 10px var(--leaf-bright);
  display: inline-block;
}

.hero-title {
  margin-top: 16px;
  max-width: 13em;
  font: 300 clamp(2.05rem, 1.05rem + 4.4vw, 4.8rem)/1.05 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero-side { display: grid; gap: 24px; max-width: 27rem; }
.hero-lede { color: var(--ink-dim); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--ink-dim);
}
.hero-note svg { width: 15px; height: 15px; color: var(--leaf); }

@media (min-width: 900px) {
  .hero-body { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .hero-side { justify-self: end; }
}
@media (max-width: 899px) {
  .hero::after {
    background:
      linear-gradient(to bottom, color-mix(in srgb, var(--field-bg) 70%, transparent), transparent 130px),
      linear-gradient(
        to top,
        color-mix(in srgb, var(--field-bg) 93%, transparent),
        color-mix(in srgb, var(--field-bg) 72%, transparent) 42%,
        transparent 78%
      );
  }
}

/* ==========================================================================
   Generic section scaffold
   ========================================================================== */
.section { padding: clamp(60px, 9vw, 120px) 0; border-top: 1px solid var(--rule-soft); }
.section-grid { display: grid; gap: clamp(22px, 4vw, 60px); }
.section-head { max-width: 46rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 14px;
}
.section-title {
  font: 400 clamp(1.5rem, 1.05rem + 1.8vw, 2.4rem)/1.12 var(--font-display);
  letter-spacing: -0.02em;
}
.section-text { display: grid; gap: 1.1em; max-width: 42rem; color: var(--ink-dim); }
.section-head.center .section-text { margin-inline: auto; }
.section-text strong { color: var(--ink); font-weight: 500; }

@media (min-width: 900px) {
  .section-grid.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
}

/* shared screenshot frame ------------------------------------------------- */
.clr-frame {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  background: #0b1007;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.clr-frame .bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--rule-soft);
  background: rgba(255, 255, 255, 0.02);
}
.clr-frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.clr-frame .bar i:first-child { background: var(--warn); opacity: 0.75; }
.clr-frame .bar i:nth-child(2) { background: var(--amber); opacity: 0.75; }
.clr-frame .bar i:nth-child(3) { background: var(--leaf); opacity: 0.85; }
.clr-frame .bar span { margin-left: auto; font: 400 0.72rem/1 var(--font-mono); color: var(--ink-faint); }
/* height:auto is required — without it the HTML height attribute wins
   and aspect-ratio is ignored */
.clr-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* the shot spans the full content column, like every other section block */
.clr-shot { width: 100%; }
.clr-shot figcaption {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ==========================================================================
   Overview — heading, lede, then the body split into two readable columns
   ========================================================================== */
.ov-lede {
  margin-top: 20px;
  max-width: 62ch;
  font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink);
}
.ov-cols {
  display: grid;
  gap: clamp(18px, 2.6vw, 44px);
  margin-top: clamp(24px, 3vw, 38px);
  color: var(--ink-dim);
}
.ov-cols p { max-width: 54ch; }
.ov-cols strong { color: var(--ink); font-weight: 500; }
@media (min-width: 840px) { .ov-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   Status cards (the strip under the overview)
   ========================================================================== */
.clr-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 900px) { .clr-status { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.st-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
  transition: border-color 0.25s, transform 0.25s;
}
.st-card:hover { border-color: var(--rule); transform: translateY(-3px); }

.st-top { display: flex; align-items: center; gap: 10px; }
.st-ico {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 9px;
  color: var(--leaf);
  background: rgba(127, 209, 75, 0.06);
}
.st-ico svg { width: 16px; height: 16px; }
.st-label {
  font: 500 0.66rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.st-flag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 400 0.6rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
}
.st-flag i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 0 rgba(127, 209, 75, 0.6);
  animation: st-pulse 2.4s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes st-pulse { to { box-shadow: 0 0 0 9px rgba(127, 209, 75, 0); } }

.st-value {
  font: 300 clamp(1.6rem, 1rem + 2vw, 2.3rem)/1 var(--font-display);
  letter-spacing: -0.02em;
}
.st-value em { font-style: normal; color: var(--leaf); }
.st-value small { font-size: 0.46em; color: var(--ink-faint); letter-spacing: 0; margin-left: 4px; }

.st-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--ink-dim);
  border-top: 1px solid var(--rule-soft);
  padding-top: 12px;
}
.st-foot svg { width: 13px; height: 13px; flex: none; color: var(--leaf); }

/* tiny bar meter inside a status card */
.st-bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.st-bars i {
  flex: 1;
  background: var(--leaf-deep);
  border-radius: 2px;
  opacity: 0.55;
  animation: st-bar 2.6s ease-in-out infinite;
}
.st-bars i:nth-child(2n) { background: var(--leaf); opacity: 0.8; }
.st-bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.st-bars i:nth-child(2) { height: 70%; animation-delay: 0.2s; }
.st-bars i:nth-child(3) { height: 50%; animation-delay: 0.4s; }
.st-bars i:nth-child(4) { height: 85%; animation-delay: 0.6s; }
.st-bars i:nth-child(5) { height: 60%; animation-delay: 0.8s; }
.st-bars i:nth-child(6) { height: 95%; animation-delay: 1s; }
.st-bars i:nth-child(7) { height: 45%; animation-delay: 1.2s; }
.st-bars i:nth-child(8) { height: 75%; animation-delay: 1.4s; }
@keyframes st-bar { 0%, 100% { transform: scaleY(0.72); } 50% { transform: scaleY(1); } }

/* small sparkline */
.st-spark { width: 100%; height: 26px; display: block; color: var(--leaf); }
.st-spark path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* five-dot rating row */
.st-dots { display: flex; gap: 5px; }
.st-dots i { width: 100%; height: 4px; border-radius: 999px; background: var(--rule); }
.st-dots i.on { background: var(--leaf); }
.st-dots i.half { background: linear-gradient(to right, var(--leaf) 60%, var(--rule) 60%); }

/* ==========================================================================
   Feature bento
   ========================================================================== */
.bento { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 680px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.bx {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: 18px;
  padding: clamp(18px, 2.2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.bx:hover {
  border-color: var(--rule);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.bx::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 100% at 100% 0%, rgba(127, 209, 75, 0.07), transparent 55%);
}
.bx > * { position: relative; z-index: 1; }

@media (min-width: 1000px) {
  .bx.lg { grid-column: span 2; grid-row: span 2; }
  .bx.wide { grid-column: span 2; }
  .bx.full { grid-column: 1 / -1; }
}
@media (min-width: 680px) and (max-width: 999px) {
  .bx.lg, .bx.wide, .bx.full { grid-column: 1 / -1; }
}

.bx-head { display: flex; align-items: center; gap: 11px; }
.bx-ico {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 9px;
  color: var(--leaf);
  background: rgba(127, 209, 75, 0.06);
}
.bx-ico svg { width: 15px; height: 15px; }
.bx-head h3 {
  font: 500 1.04rem/1.2 var(--font-text);
  letter-spacing: -0.01em;
}
.bx.lg .bx-head h3 { font-size: 1.22rem; }
.bx-flag {
  margin-left: auto;
  flex: none;
  font: 400 0.58rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  padding: 5px 8px;
  white-space: nowrap;
}
.bx-flag.on { color: var(--leaf); border-color: rgba(127, 209, 75, 0.35); background: rgba(127, 209, 75, 0.06); }
.bx p { color: var(--ink-dim); font-size: 0.94rem; }
.bx p b { color: var(--ink); font-weight: 500; }
.bx code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: var(--leaf-bright);
  background: rgba(173, 214, 140, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
}
.bx-vis { margin-top: auto; }

/* flowing wave line (execution engine) */
.vis-wave { width: 100%; height: clamp(110px, 17vw, 210px); display: block; color: var(--leaf); }
.vis-wave .base { fill: none; stroke: var(--rule-soft); stroke-width: 1.4; }
.vis-wave .flow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  filter: drop-shadow(0 0 6px rgba(127, 209, 75, 0.5));
  animation: vis-flow 2.4s linear infinite;
}
@keyframes vis-flow { to { stroke-dashoffset: -32; } }
.vis-wave .node { fill: var(--leaf-bright); }

/* keyless: a track that fills */
.vis-track { display: flex; align-items: center; gap: 10px; }
.vis-track .line {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--rule-soft);
}
.vis-track .line::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 45%;
  background: linear-gradient(to right, transparent, var(--leaf));
  animation: vis-fill 3.2s ease-in-out infinite;
}
@keyframes vis-fill { 0%, 100% { width: 25%; } 50% { width: 92%; } }
.vis-track .end {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--leaf-bright);
  box-shadow: 0 0 10px var(--leaf-bright);
  flex: none;
}
.vis-track .tag { font: 400 0.6rem/1 var(--font-mono); color: var(--ink-faint); letter-spacing: 0.08em; }

/* radar sweep */
.vis-radar {
  width: 86px; height: 86px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid var(--rule-soft);
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle, rgba(127, 209, 75, 0.07), transparent 70%);
}
.vis-radar::before {
  content: "";
  position: absolute;
  inset: 22%;
  border: 1px solid var(--rule-soft);
  border-radius: 50%;
}
.vis-radar .sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(127, 209, 75, 0.45) 55deg, transparent 90deg);
  animation: vis-spin 3.4s linear infinite;
}
@keyframes vis-spin { to { transform: rotate(360deg); } }
.vis-radar .blip {
  position: absolute;
  top: 30%; left: 64%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--leaf-bright);
  box-shadow: 0 0 9px var(--leaf-bright);
}

/* cross-platform device link */
.vis-link { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); }
.vis-link svg { width: 20px; height: 20px; flex: none; }
.vis-link .dots {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--rule) 0 3px, transparent 3px 8px);
  position: relative;
}
.vis-link .dots::after {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--leaf-bright);
  box-shadow: 0 0 9px var(--leaf-bright);
  animation: vis-travel 3.6s ease-in-out infinite;
}
@keyframes vis-travel { 0%, 100% { left: 0; } 50% { left: calc(100% - 7px); } }

/* script chips */
.vis-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.vis-chips span {
  font: 400 0.68rem/1 var(--font-mono);
  color: var(--ink-faint);
  border: 1px solid var(--rule-soft);
  border-radius: 7px;
  padding: 6px 9px;
  white-space: nowrap;
}
.vis-chips span.hot {
  color: var(--leaf-bright);
  border-color: rgba(166, 241, 95, 0.4);
  background: rgba(127, 209, 75, 0.08);
}

/* function coverage grid inside the full-width card */
.vis-fns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
@media (min-width: 640px) { .vis-fns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .vis-fns { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.vis-fns div {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--rule-soft);
  border-radius: 9px;
  padding: 9px 10px;
  font: 400 0.72rem/1 var(--font-mono);
  color: var(--ink-dim);
}
.vis-fns svg { width: 12px; height: 12px; flex: none; color: var(--leaf); }

/* ==========================================================================
   Install / download
   ========================================================================== */
.clr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.clr-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  font: 500 0.9rem/1 var(--font-text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.clr-tab svg { width: 15px; height: 15px; }
.clr-tab[aria-selected="true"] { background: var(--leaf); color: #0c1208; }
.clr-tab:not([aria-selected="true"]):hover { color: var(--ink); background: rgba(173, 214, 140, 0.06); }

.clr-panel { display: none; }
.clr-panel.on { display: block; animation: clr-fade 0.35s ease; }
@keyframes clr-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.clr-steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
  margin-bottom: 32px;
}
@media (min-width: 760px) { .clr-steps { grid-template-columns: repeat(5, 1fr); } }
.clr-step { position: relative; padding-top: 34px; }
.clr-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font: 300 0.78rem/1 var(--font-display);
  color: var(--leaf);
  letter-spacing: 0.08em;
}
.clr-step::after {
  content: "";
  position: absolute;
  top: 6px; left: 34px; right: 0;
  height: 1px;
  background: var(--rule-soft);
}
@media (max-width: 759px) { .clr-step::after { display: none; } }
.clr-step h4 { font: 500 0.82rem/1.2 var(--font-text); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.clr-step p { color: var(--ink-dim); font-size: 0.85rem; }

.clr-grab {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--panel);
}
.clr-grab .meta { display: flex; align-items: center; gap: 14px; }
.clr-grab .glyph {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 12px;
  color: var(--leaf);
}
.clr-grab .glyph svg { width: 20px; height: 20px; }
.clr-grab h4 { font: 500 1rem/1.2 var(--font-text); }
.clr-grab small { color: var(--ink-faint); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ==========================================================================
   Changelog — rendered inside a desktop window
   ========================================================================== */
.mac {
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  background: #0b1007;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.mac-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--rule-soft);
  background: rgba(255, 255, 255, 0.025);
}
.mac-bar .dots { display: flex; gap: 7px; flex: none; }
.mac-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mac-bar .dots i:nth-child(1) { background: var(--warn); opacity: 0.8; }
.mac-bar .dots i:nth-child(2) { background: var(--amber); opacity: 0.8; }
.mac-bar .dots i:nth-child(3) { background: var(--leaf); opacity: 0.85; }
.mac-bar .title {
  font: 400 0.76rem/1 var(--font-mono);
  color: var(--ink-faint);
  margin-inline: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mac-bar .title svg { width: 13px; height: 13px; }
.mac-bar .right {
  flex: none;
  font: 400 0.68rem/1 var(--font-mono);
  color: var(--ink-faint);
  display: none;
}
@media (min-width: 620px) { .mac-bar .right { display: inline-flex; align-items: center; gap: 6px; } }
.mac-bar .right i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 8px var(--leaf);
}

.mac-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 880px) { .mac-body { grid-template-columns: 212px minmax(0, 1fr); } }

.mac-side {
  padding: 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--rule-soft);
  scrollbar-width: none;
}
.mac-side::-webkit-scrollbar { display: none; }
@media (min-width: 880px) {
  .mac-side {
    flex-direction: column;
    overflow: visible;
    border-bottom: 0;
    border-right: 1px solid var(--rule-soft);
    align-content: start;
  }
}
.mac-side .side-cap {
  display: none;
  font: 500 0.6rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 6px 10px 10px;
}
@media (min-width: 880px) { .mac-side .side-cap { display: block; } }

.clr-rel {
  flex: none;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-dim);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  min-width: 132px;
  display: grid;
  gap: 4px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.clr-rel:hover { color: var(--ink); background: rgba(173, 214, 140, 0.05); }
.clr-rel[aria-selected="true"] {
  border-color: var(--rule);
  background: rgba(127, 209, 75, 0.08);
  color: var(--ink);
}
.clr-rel .v { display: flex; align-items: center; gap: 7px; font: 500 0.92rem/1 var(--font-text); }
.clr-rel .v i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rule);
  flex: none;
}
.clr-rel[aria-selected="true"] .v i { background: var(--leaf); box-shadow: 0 0 8px var(--leaf); }
.clr-rel .d { font: 400 0.68rem/1 var(--font-mono); color: var(--ink-faint); }
.clr-rel em {
  font-style: normal;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0c1208;
  background: var(--leaf);
  border-radius: 4px;
  padding: 3px 5px;
  margin-left: auto;
}

.mac-side-foot {
  display: none;
  margin-top: auto;
  padding: 12px 10px 4px;
  border-top: 1px solid var(--rule-soft);
  font: 400 0.66rem/1.6 var(--font-mono);
  color: var(--ink-faint);
}
@media (min-width: 880px) { .mac-side-foot { display: block; } }
.mac-side-foot b { display: block; color: var(--ink-dim); font-weight: 500; }

.mac-main { padding: clamp(18px, 2.6vw, 30px); min-height: 420px; }

/* editor-style status bar across the bottom of the window */
.mac-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 10px 14px;
  border-top: 1px solid var(--rule-soft);
  background: rgba(255, 255, 255, 0.02);
  font: 400 0.66rem/1 var(--font-mono);
  color: var(--ink-faint);
}
.mac-foot span { display: inline-flex; align-items: center; gap: 6px; }
.mac-foot svg { width: 11px; height: 11px; color: var(--leaf); }
.mac-foot .sep { margin-left: auto; }
.clr-rel-body { display: none; }
.clr-rel-body.on { display: block; animation: clr-fade 0.35s ease; }

.rel-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 18px;
  margin-bottom: 20px;
}
.rel-top h3 { font: 300 1.6rem/1 var(--font-display); letter-spacing: -0.02em; }
.rel-top .sub { font: 400 0.78rem/1.5 var(--font-mono); color: var(--ink-faint); }
.rel-meta { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.rel-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 400 0.66rem/1 var(--font-mono);
  color: var(--ink-dim);
  border: 1px solid var(--rule-soft);
  border-radius: 7px;
  padding: 6px 9px;
}
.rel-meta svg { width: 12px; height: 12px; color: var(--leaf); }

.rel-list { display: grid; gap: 10px; }
.rel-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 13px;
  padding: 14px;
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.rel-entry:hover { border-color: var(--rule); background: rgba(173, 214, 140, 0.03); }
/* fixed tag column keeps every row's body text on the same left edge */
@media (min-width: 560px) { .rel-entry { grid-template-columns: auto 104px 1fr; } }
.rel-no {
  font: 400 0.68rem/1 var(--font-mono);
  color: var(--ink-faint);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  padding: 6px 7px;
  align-self: start;
}
.rel-entry p { font-size: 0.92rem; color: var(--ink-dim); grid-column: 1 / -1; }
@media (min-width: 560px) { .rel-entry p { grid-column: 3; } }
.rel-entry p b { color: var(--ink); font-weight: 500; display: block; margin-bottom: 3px; }

/* small platform / scope chips under an entry */
.ent-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ent-meta i {
  font: 400 0.58rem/1 var(--font-mono);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--rule-soft);
  border-radius: 5px;
  padding: 4px 7px;
}
.ent-meta i.hit { color: var(--leaf); border-color: rgba(127, 209, 75, 0.3); }
.rel-entry code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: var(--leaf-bright);
  background: rgba(173, 214, 140, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.clr-tag {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 400 0.6rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--rule-soft);
  color: var(--ink-dim);
  white-space: nowrap;
}
.clr-tag svg { width: 11px; height: 11px; }
.clr-tag.add { color: var(--leaf-bright); border-color: rgba(166, 241, 95, 0.35); background: rgba(127, 209, 75, 0.07); }
.clr-tag.fix { color: var(--amber); border-color: rgba(232, 195, 90, 0.35); background: rgba(232, 195, 90, 0.06); }
.clr-tag.up { color: var(--sky); border-color: rgba(111, 184, 232, 0.35); background: rgba(111, 184, 232, 0.06); }

/* ==========================================================================
   Compatibility / coverage table
   ========================================================================== */
.clr-cover { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.clr-cover th, .clr-cover td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--rule-soft);
}
.clr-cover th { color: var(--ink-faint); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.clr-cover td:first-child { color: var(--ink); }
.clr-cover .ok { color: var(--leaf); }
.clr-cover .no { color: var(--ink-faint); }
.clr-cover-wrap { overflow-x: auto; border: 1px solid var(--rule-soft); border-radius: 14px; }
.clr-cover-wrap table { min-width: 560px; }

/* ==========================================================================
   Reviews
   ========================================================================== */
.clr-reviews { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .clr-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .clr-reviews { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.rv {
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: border-color 0.25s, transform 0.25s;
}
.rv:hover { border-color: var(--rule); transform: translateY(-3px); }

.rv-who { display: flex; align-items: center; gap: 11px; }
.rv-av {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font: 500 0.92rem/1 var(--font-display);
  color: #0c1208;
}
.rv-av.c1 { background: #9aa39a; }
.rv-av.c2 { background: #7fd14b; }
.rv-av.c3 { background: #e8a95a; }
.rv-av.c4 { background: #e07a6a; }
.rv-av.c5 { background: #6fb8e8; }
.rv-av.c6 { background: #d98ec9; }
.rv-av.c7 { background: #b79ae8; }
.rv-av.c8 { background: #5fc9a8; }

.rv-id { min-width: 0; }
.rv-name { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.rv-name b { font: 500 0.88rem/1 var(--font-text); }
.rv-tag {
  font: 400 0.54rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 4px 6px;
  border: 1px solid var(--rule-soft);
  color: var(--ink-faint);
  white-space: nowrap;
}
.rv-tag.ver { color: var(--leaf); border-color: rgba(127, 209, 75, 0.35); background: rgba(127, 209, 75, 0.07); }
.rv-tag.og { color: var(--amber); border-color: rgba(232, 195, 90, 0.35); background: rgba(232, 195, 90, 0.06); }
.rv-date { display: block; margin-top: 5px; font: 400 0.68rem/1 var(--font-mono); color: var(--ink-faint); }

.rv-stars { display: flex; gap: 3px; color: var(--amber); }
.rv-stars svg { width: 13px; height: 13px; }
.rv-stars svg.off { color: var(--rule); }

.rv p { color: var(--ink-dim); font-size: 0.9rem; flex: 1; }

.rv-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 12px;
  font: 400 0.7rem/1 var(--font-mono);
  color: var(--ink-faint);
}
.rv-foot svg { width: 13px; height: 13px; color: var(--leaf); }

/* rating summary bar above the grid */
.rv-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  padding: 20px clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  background: var(--panel);
  margin-bottom: 16px;
}
.rv-score { display: flex; align-items: center; gap: 14px; }
.rv-score b { font: 300 2.4rem/1 var(--font-display); letter-spacing: -0.02em; }
.rv-score span { font: 400 0.72rem/1.5 var(--font-mono); color: var(--ink-faint); }
.rv-split { display: grid; gap: 6px; flex: 1; min-width: 220px; }
.rv-row { display: flex; align-items: center; gap: 10px; font: 400 0.68rem/1 var(--font-mono); color: var(--ink-faint); }
.rv-row .track { flex: 1; height: 4px; border-radius: 999px; background: var(--rule-soft); overflow: hidden; }
.rv-row .track i { display: block; height: 100%; background: var(--leaf); border-radius: 999px; }

/* ==========================================================================
   Support centre (troubleshooting)
   ========================================================================== */
.sup { display: grid; gap: 18px; }
@media (min-width: 940px) { .sup { grid-template-columns: 252px minmax(0, 1fr); align-items: start; } }

.sup-side {
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  padding: 14px;
  background: var(--panel);
}
@media (min-width: 940px) { .sup-side { position: sticky; top: 24px; } }
.sup-cap {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 0.62rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 6px 8px 12px;
}
.sup-cap svg { width: 13px; height: 13px; }

.clr-filter { display: grid; gap: 4px; }
.clr-filter button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-dim);
  border-radius: 10px;
  padding: 10px 12px;
  font: 500 0.86rem/1 var(--font-text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.clr-filter button svg { width: 15px; height: 15px; flex: none; color: var(--ink-faint); }
.clr-filter button:hover { color: var(--ink); background: rgba(173, 214, 140, 0.04); }
.clr-filter button[aria-pressed="true"] {
  border-color: var(--rule);
  color: var(--ink);
  background: rgba(127, 209, 75, 0.08);
}
.clr-filter button[aria-pressed="true"] svg { color: var(--leaf); }
.clr-filter .n {
  margin-left: auto;
  font: 400 0.66rem/1 var(--font-mono);
  color: var(--ink-faint);
  border: 1px solid var(--rule-soft);
  border-radius: 5px;
  padding: 4px 6px;
}

.sup-state {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  padding-inline: 8px;
}
.sup-state .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 0.64rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
}
.sup-state .live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 0 rgba(127, 209, 75, 0.6);
  animation: st-pulse 2.4s infinite cubic-bezier(0.66, 0, 0, 1);
}
.sup-state p { margin-top: 9px; font: 400 0.68rem/1.6 var(--font-mono); color: var(--ink-faint); }

.clr-acc { display: grid; gap: 10px; }
.clr-item {
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  transition: border-color 0.2s;
}
.clr-item.open { border-color: var(--rule); }
.clr-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  background: transparent;
  border: 0;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: 500 0.97rem/1.35 var(--font-text);
}
.clr-q .ico { width: 17px; height: 17px; flex: none; color: var(--ink-faint); }
.clr-item.open .clr-q .ico { color: var(--leaf); }
/* pushes the badge and the +/× marker to the right edge of every row,
   including FAQ rows that have no badge */
.clr-q .txt { min-width: 0; margin-right: auto; }
.clr-q .label {
  flex: none;
  font: 400 0.58rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--rule-soft);
  border-radius: 5px;
  padding: 5px 8px;
  color: var(--ink-faint);
  white-space: nowrap;
}
.clr-q .label.setup { color: var(--leaf); border-color: rgba(127, 209, 75, 0.35); background: rgba(127, 209, 75, 0.07); }
.clr-q .label.attach { color: var(--warn); border-color: rgba(230, 122, 90, 0.35); background: rgba(230, 122, 90, 0.07); }
.clr-q .label.android { color: var(--amber); border-color: rgba(232, 195, 90, 0.35); background: rgba(232, 195, 90, 0.06); }
.clr-q .label.script { color: var(--sky); border-color: rgba(111, 184, 232, 0.35); background: rgba(111, 184, 232, 0.06); }
.clr-q .pm { flex: none; width: 17px; height: 17px; position: relative; transition: transform 0.3s; }
.clr-q .pm::before, .clr-q .pm::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--leaf);
}
.clr-q .pm::before { width: 100%; height: 1.5px; }
.clr-q .pm::after { width: 1.5px; height: 100%; }
.clr-item.open .pm { transform: rotate(45deg); }
@media (max-width: 560px) { .clr-q .label { display: none; } }

.clr-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.clr-a .inner { padding: 0 18px 18px 48px; color: var(--ink-dim); font-size: 0.93rem; }
.clr-a .inner p + p { margin-top: 0.9em; }
.clr-a ol { margin: 0.7em 0 0; padding-left: 1.2em; display: grid; gap: 0.5em; }
.clr-a code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: var(--leaf-bright);
  background: rgba(173, 214, 140, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
}
@media (max-width: 560px) { .clr-a .inner { padding-left: 18px; } }

/* ==========================================================================
   CTA band
   ========================================================================== */
.clr-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--rule);
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 85% 20%, rgba(127, 209, 75, 0.1), transparent 60%),
    var(--panel);
}
.clr-cta h2 { font: 300 clamp(1.4rem, 1rem + 1.6vw, 2.1rem)/1.1 var(--font-display); letter-spacing: -0.02em; }
.clr-cta p { color: var(--ink-dim); margin-top: 6px; }

/* ==========================================================================
   spec list (term / description)
   ========================================================================== */
.spec-list { max-width: 48rem; }
.spec-row {
  display: grid;
  gap: 4px 32px;
  padding: 18px 0;
  border-top: 1px solid var(--rule-soft);
}
.spec-row:last-child { border-bottom: 1px solid var(--rule-soft); }
.spec-row dt { font-weight: 500; }
.spec-row dd { color: var(--ink-dim); }
@media (min-width: 620px) { .spec-row { grid-template-columns: 11rem minmax(0, 1fr); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--rule-soft); padding: clamp(48px, 7vw, 80px) 0 32px; }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-about p { color: var(--ink-dim); font-size: 0.9rem; margin-top: 14px; max-width: 30ch; }
.foot-col h5 { font: 500 0.78rem/1 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.foot-col ul { display: grid; gap: 10px; font-size: 0.9rem; }
.foot-col a { color: var(--ink-dim); text-decoration: none; transition: color 0.2s; }
.foot-col a:hover { color: var(--leaf); }

.foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--rule-soft);
  border-radius: 9px;
  color: var(--ink-dim);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.foot-social a:hover { color: var(--leaf); border-color: var(--rule); transform: translateY(-2px); }
.foot-social svg { width: 15px; height: 15px; fill: currentColor; }
.foot-legal { font-size: 0.78rem; color: var(--ink-faint); max-width: 52ch; line-height: 1.6; }
.foot-legal b { color: var(--ink-dim); font-weight: 500; }

/* ==========================================================================
   On-this-page TOC + app-info table
   ========================================================================== */
.ov-two {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  margin-top: clamp(30px, 4vw, 48px);
}
@media (min-width: 880px) { .ov-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.toc {
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  background: var(--panel);
  padding: clamp(18px, 2.2vw, 24px);
}
.toc h3 {
  font: 500 0.72rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}
.toc a:hover { background: rgba(127, 209, 75, 0.06); color: var(--ink); }
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font: 400 0.72rem/1.4 var(--font-mono);
  color: var(--leaf);
  flex: none;
}

.appinfo {
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
  align-self: start;
}
.appinfo h3 {
  font: 500 0.72rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: clamp(18px, 2.2vw, 24px) clamp(18px, 2.2vw, 24px) 0;
}
.appinfo dl { margin: 14px 0 0; }
.appinfo .r {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 16px;
  padding: 11px clamp(18px, 2.2vw, 24px);
  border-top: 1px solid var(--rule-soft);
  font-size: 0.9rem;
}
.appinfo dt { color: var(--ink-faint); }
.appinfo dd { margin: 0; color: var(--ink); font-family: var(--font-mono); font-size: 0.86rem; }
.appinfo dd.leaf { color: var(--leaf); }

/* ==========================================================================
   Pros / cons
   ========================================================================== */
.pc { display: grid; gap: 14px; }
@media (min-width: 760px) { .pc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pc-card {
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  background: var(--panel);
  padding: clamp(20px, 2.4vw, 28px);
}
.pc-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 1rem/1.2 var(--font-text);
  margin-bottom: 16px;
}
.pc-card h3 svg { width: 18px; height: 18px; }
.pc-card.pro h3 svg { color: var(--leaf); }
.pc-card.con h3 svg { color: var(--amber); }
.pc-card ul { display: grid; gap: 11px; }
.pc-card li {
  display: flex;
  gap: 11px;
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.pc-card li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.pc-card.pro li svg { color: var(--leaf); }
.pc-card.con li svg { color: var(--ink-faint); }

/* ==========================================================================
   Safety / doubt block
   ========================================================================== */
.safe { display: grid; gap: 14px; }
@media (min-width: 900px) { .safe { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.safe-body {
  border: 1px solid var(--rule-soft);
  border-radius: 18px;
  background: var(--panel);
  padding: clamp(22px, 2.8vw, 32px);
}
.safe-body p { color: var(--ink-dim); }
.safe-body p + p { margin-top: 1em; }
.safe-body strong { color: var(--ink); font-weight: 500; }
.safe-checks { display: grid; gap: 12px; align-content: start; }
.safe-check {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
  background: var(--panel);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s;
}
.safe-check:hover { border-color: var(--leaf); transform: translateY(-2px); }
.safe-check .ic {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--leaf);
}
.safe-check .ic svg { width: 18px; height: 18px; }
.safe-check b { display: block; font: 500 0.92rem/1.2 var(--font-text); }
.safe-check span { display: block; margin-top: 4px; font: 400 0.72rem/1.3 var(--font-mono); color: var(--ink-faint); }
.safe-check .arr { margin-left: auto; color: var(--ink-faint); flex: none; }
.safe-check:hover .arr { color: var(--leaf); }

/* ==========================================================================
   Comparison table
   ========================================================================== */
.cmp-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule-soft);
  border-radius: 18px;
  background: var(--panel);
  -webkit-overflow-scrolling: touch;
}
.cmp { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 0.92rem; }
.cmp th, .cmp td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: middle;
}
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th {
  font: 500 0.7rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.cmp tbody th {
  font: 500 0.9rem/1.3 var(--font-text);
  color: var(--ink);
  white-space: nowrap;
}
.cmp td { color: var(--ink-dim); }
.cmp .num { font-family: var(--font-mono); font-size: 0.86rem; }
.cmp svg { width: 15px; height: 15px; vertical-align: -3px; }
.cmp .yes { color: var(--leaf); }
.cmp .no { color: var(--ink-faint); }

/* the highlighted Celery column */
.cmp .me {
  background: rgba(127, 209, 75, 0.07);
  box-shadow: inset 1px 0 0 rgba(127, 209, 75, 0.28), inset -1px 0 0 rgba(127, 209, 75, 0.28);
  color: var(--ink);
}
.cmp thead .me { box-shadow: inset 1px 1px 0 rgba(127, 209, 75, 0.28), inset -1px 0 0 rgba(127, 209, 75, 0.28); }
.cmp tbody tr:last-child .me { box-shadow: inset 1px 0 0 rgba(127, 209, 75, 0.28), inset -1px -1px 0 rgba(127, 209, 75, 0.28); }
.cmp-me-head { display: grid; gap: 7px; }
.cmp-me-head b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 0.95rem/1 var(--font-text);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.cmp-me-head b img { width: 20px; height: 20px; object-fit: contain; }
.cmp-pick {
  justify-self: start;
  font: 400 0.56rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: #0c1208;
  background: var(--leaf);
  border-radius: 4px;
  padding: 4px 6px;
}
.cmp-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--ink-faint);
  max-width: 70ch;
}

/* ==========================================================================
   Game script cards
   ========================================================================== */
.gm-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 680px) { .gm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .gm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.gm {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.gm:hover { border-color: var(--rule); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28); }

.gm-head { display: flex; align-items: center; gap: 12px; }
.gm-ico {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  font: 500 1.02rem/1 var(--font-display);
  color: #0c1208;
}
.gm-ico.g1 { background: linear-gradient(140deg, #7fd14b, #3f8f1f); }
.gm-ico.g2 { background: linear-gradient(140deg, #e8c35a, #c0862c); }
.gm-ico.g3 { background: linear-gradient(140deg, #6fb8e8, #3b7fb5); }
.gm-ico.g4 { background: linear-gradient(140deg, #d98ec9, #a3558f); }
.gm-ico.g5 { background: linear-gradient(140deg, #e67a5a, #b4452a); }
.gm-ico.g6 { background: linear-gradient(140deg, #5fc9a8, #2d8a6d); }
.gm-ico.g7 { background: linear-gradient(140deg, #b79ae8, #7352bb); }
.gm-ico.g8 { background: linear-gradient(140deg, #a6f15f, #58b32c); }

.gm-title { min-width: 0; }
.gm-title h3 { font: 500 0.98rem/1.25 var(--font-text); letter-spacing: -0.01em; }
.gm-title span {
  display: block;
  margin-top: 4px;
  font: 400 0.7rem/1 var(--font-mono);
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gm-state {
  margin-left: auto;
  flex: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 400 0.56rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--ink-faint);
}
.gm-state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.gm-state.ok { color: var(--leaf); border-color: rgba(127, 209, 75, 0.32); }
.gm-state.new { color: var(--amber); border-color: rgba(232, 195, 90, 0.32); }

.gm p { color: var(--ink-dim); font-size: 0.9rem; }

.gm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-chips i {
  font: 400 0.64rem/1 var(--font-mono);
  font-style: normal;
  color: var(--ink-dim);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  padding: 5px 8px;
}
.gm-chips i.key { color: var(--leaf-bright); border-color: rgba(166, 241, 95, 0.32); background: rgba(127, 209, 75, 0.07); }

.gm-meter { display: grid; gap: 6px; }
.gm-meter .lab {
  display: flex;
  justify-content: space-between;
  font: 400 0.62rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.gm-meter .lab b { color: var(--leaf); font-weight: 400; }
.gm-meter .track { height: 4px; border-radius: 999px; background: var(--rule-soft); overflow: hidden; }
.gm-meter .track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(to right, var(--leaf-deep), var(--leaf)); }

.gm-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 12px;
  font: 400 0.68rem/1 var(--font-mono);
  color: var(--ink-faint);
}
.gm-foot svg { width: 12px; height: 12px; color: var(--leaf); flex: none; }
.gm-foot b { margin-left: auto; color: var(--ink-dim); font-weight: 400; }

/* ==========================================================================
   Telemetry — dial gauges, an hour-of-day heatmap and a latency dot plot
   ========================================================================== */
.tl-dials { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
@media (min-width: 760px) { .tl-dials { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tl-card {
  border: 1px solid var(--rule-soft);
  border-radius: 18px;
  background: var(--panel);
  padding: clamp(18px, 2.4vw, 26px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s;
}
.tl-card:hover { border-color: var(--rule); }

/* the card itself is a column, so the ring sits above the copy — pinned left
   rather than centred so it lines up with the text below it */
.tl-dial { align-items: flex-start; gap: 18px; }
.tl-ring { position: relative; width: 96px; flex: none; }
.tl-ring svg { width: 100%; height: auto; display: block; }
.tl-ring .track { fill: none; stroke: var(--rule-soft); stroke-width: 7; stroke-linecap: round; }
.tl-ring .val {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 7;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(127, 209, 75, 0.45));
}
.tl-ring .val.amber { stroke: var(--amber); filter: drop-shadow(0 0 5px rgba(232, 195, 90, 0.4)); }
.tl-ring b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 300 1.34rem/1 var(--font-display);
  letter-spacing: -0.02em;
}
.tl-ring b em {
  font-style: normal;
  margin-left: 2px;
  font-size: 0.56em;
  color: var(--ink-faint);
}
.tl-meta { min-width: 0; }
.tl-meta h3 { font: 500 0.96rem/1.25 var(--font-text); letter-spacing: -0.01em; }
.tl-meta p { margin-top: 6px; font-size: 0.8rem; color: var(--ink-faint); }
.tl-chg {
  margin-top: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 400 0.64rem/1 var(--font-mono);
  color: var(--leaf);
}
.tl-chg svg { width: 11px; height: 11px; }
.tl-chg.flat { color: var(--ink-faint); }

.tl-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 18px; }
.tl-head h3 { font: 500 1.02rem/1.2 var(--font-text); letter-spacing: -0.01em; }
.tl-head p { margin-top: 5px; font-size: 0.82rem; color: var(--ink-faint); }
.tl-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 400 0.62rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
  border: 1px solid rgba(127, 209, 75, 0.3);
  border-radius: 999px;
  padding: 6px 11px;
}
.tl-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 0 rgba(127, 209, 75, 0.6);
  animation: st-pulse 2.4s infinite cubic-bezier(0.66, 0, 0, 1);
}

.tl-row { display: grid; gap: 14px; }
@media (min-width: 1020px) { .tl-row { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }

/* hour-of-day heatmap: label column + 24 hour columns, 7 day rows */
/* auto block margins split any leftover height evenly above and below,
   so this card lines up with the dot plot instead of trailing empty space */
.heat-body { margin-block: auto; }

.heat {
  display: grid;
  grid-template-columns: auto repeat(24, minmax(0, 1fr));
  gap: 3px 4px;
  margin-top: 22px;
  align-items: center;
}
.heat .d {
  font: 400 0.6rem/1 var(--font-mono);
  color: var(--ink-faint);
  padding-right: 8px;
  text-align: right;
  white-space: nowrap;
}
.heat i { height: clamp(14px, 2.7vw, 37px); border-radius: 2px; background: rgba(127, 209, 75, 0.06); }
.heat i[data-l="1"] { background: rgba(127, 209, 75, 0.18); }
.heat i[data-l="2"] { background: rgba(127, 209, 75, 0.36); }
.heat i[data-l="3"] { background: rgba(127, 209, 75, 0.58); }
.heat i[data-l="4"] { background: rgba(166, 241, 95, 0.85); }

.heat-hours {
  display: grid;
  grid-template-columns: auto repeat(24, minmax(0, 1fr));
  gap: 0 4px;
  margin-top: 9px;
  font: 400 0.58rem/1 var(--font-mono);
  color: var(--ink-faint);
}
.heat-hours .d { padding-right: 8px; }

/* three read-outs pulled from the grid above — they also keep this card
   close in height to the dot plot beside it */
.heat-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
}
.heat-stats b {
  display: block;
  font: 300 1.15rem/1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--leaf);
}
.heat-stats span {
  display: block;
  margin-top: 7px;
  font: 400 0.62rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.heat-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  font: 400 0.64rem/1 var(--font-mono);
  color: var(--ink-faint);
}
.heat-key { display: flex; gap: 3px; }
.heat-key i { width: 11px; height: 11px; border-radius: 2px; }
.heat-foot .note { margin-left: auto; }

/* latency dot plot */
.dp { margin-top: 22px; }
.dp-row {
  display: grid;
  grid-template-columns: minmax(74px, auto) minmax(0, 1fr) 52px;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.dp-row:last-of-type { border-bottom: 0; }
.dp-name { font-size: 0.84rem; color: var(--ink); }
.dp-name span {
  display: block;
  margin-top: 4px;
  font: 400 0.6rem/1 var(--font-mono);
  color: var(--ink-faint);
}
.dp-track { position: relative; height: 2px; background: var(--rule-soft); border-radius: 999px; }
.dp-track b {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(127, 209, 75, 0.05), var(--leaf));
}
.dp-track i {
  position: absolute;
  top: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--leaf-bright);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 9px rgba(166, 241, 95, 0.7);
}
.dp-ms { text-align: right; font: 400 0.78rem/1 var(--font-mono); color: var(--ink); }
.dp-axis {
  display: grid;
  grid-template-columns: minmax(74px, auto) minmax(0, 1fr) 52px;
  gap: 14px;
  margin-top: 10px;
}
.dp-axis .ticks {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  font: 400 0.58rem/1 var(--font-mono);
  color: var(--ink-faint);
}
.dp-note {
  margin-top: auto;
  padding-top: 16px;
  font: 400 0.68rem/1.6 var(--font-mono);
  color: var(--ink-faint);
}

/* ==========================================================================
   Download page
   ========================================================================== */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font: 400 0.78rem/1 var(--font-mono);
  color: var(--ink-faint);
}
.crumbs a { color: var(--ink-dim); text-decoration: none; transition: color 0.2s; }
.crumbs a:hover { color: var(--leaf); }
.crumbs svg { width: 13px; height: 13px; opacity: 0.6; }
.crumbs b { color: var(--ink); font-weight: 500; }

.dl-hero { padding: calc(var(--header-h) + clamp(26px, 5vw, 56px)) 0 clamp(40px, 6vw, 72px); }
.dl-head { max-width: 40rem; margin-top: clamp(18px, 3vw, 30px); }
.dl-head h1 {
  font: 300 clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem)/1.08 var(--font-display);
  letter-spacing: -0.025em;
}
.dl-head h1 em { font-style: normal; color: var(--leaf); }
.dl-head p { margin-top: 16px; color: var(--ink-dim); font-size: 1.06rem; max-width: 34rem; }

.dl-card {
  margin-top: clamp(28px, 4vw, 44px);
  border: 1px solid var(--rule);
  border-radius: 20px;
  background:
    radial-gradient(120% 150% at 88% 10%, rgba(127, 209, 75, 0.1), transparent 55%),
    var(--panel);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: clamp(20px, 3vw, 30px);
}
@media (min-width: 820px) { .dl-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

.dl-meta { display: grid; gap: 16px; }
.dl-ver {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 0.72rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
  border: 1px solid rgba(127, 209, 75, 0.3);
  border-radius: 999px;
  padding: 7px 13px;
  width: max-content;
}
.dl-ver i { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 8px var(--leaf); }
.dl-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.dl-facts div { display: grid; gap: 4px; }
.dl-facts dt { font: 400 0.66rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.dl-facts dd { margin: 0; font: 500 0.98rem/1 var(--font-text); color: var(--ink); }
.dl-cta { display: grid; gap: 12px; justify-items: start; }
@media (min-width: 820px) { .dl-cta { justify-items: center; } }
.dl-big {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 1em 1.9em;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--leaf);
  color: #0c1208;
  font: 600 1.08rem/1 var(--font-text);
  transition: background 0.2s, transform 0.2s;
}
.dl-big:hover { background: var(--leaf-bright); transform: translateY(-1px); }
.dl-big svg { width: 20px; height: 20px; }
.dl-cta small { font: 400 0.74rem/1.4 var(--font-mono); color: var(--ink-faint); text-align: center; }
.dl-direct { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 0.3em; text-decoration-color: var(--rule); font-size: 0.82rem; }
.dl-direct:hover { text-decoration-color: var(--leaf); }

.dl-grid { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 900px) { .dl-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.dl-req { display: grid; gap: 0; }
.dl-req .r {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.92rem;
}
.dl-req .r:last-child { border-bottom: 1px solid var(--rule-soft); }
.dl-req dt { color: var(--ink-faint); }
.dl-req dd { margin: 0; color: var(--ink); font-family: var(--font-mono); font-size: 0.84rem; }

.dl-steps { display: grid; gap: 10px; counter-reset: dls; }
.dl-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  padding: 15px 16px;
}
.dl-step::before {
  counter-increment: dls;
  content: counter(dls, decimal-leading-zero);
  font: 300 0.82rem/1.4 var(--font-display);
  color: var(--leaf);
}
.dl-step b { font: 500 0.92rem/1.3 var(--font-text); }
.dl-step p { margin-top: 4px; color: var(--ink-dim); font-size: 0.86rem; }

.dl-log { display: grid; gap: 10px; }
.dl-rel {
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  padding: 14px 16px;
}
.dl-rel .t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-rel .t b { font: 500 0.95rem/1 var(--font-text); }
.dl-rel .t span { font: 400 0.7rem/1 var(--font-mono); color: var(--ink-faint); }
.dl-rel .t em {
  font-style: normal;
  font: 400 0.56rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0c1208;
  background: var(--leaf);
  border-radius: 4px;
  padding: 3px 5px;
}
.dl-rel ul { margin: 11px 0 0; display: grid; gap: 6px; }
.dl-rel li { display: flex; gap: 9px; font-size: 0.86rem; color: var(--ink-dim); }
.dl-rel li svg { width: 13px; height: 13px; flex: none; color: var(--leaf); margin-top: 3px; }

/* ==========================================================================
   Rate-it form (star control, itemprops) + review foot
   ========================================================================== */
.rate {
  border: 1px solid var(--rule-soft);
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 88% 15%, rgba(127, 209, 75, 0.08), transparent 60%),
    var(--panel);
  padding: clamp(22px, 2.8vw, 32px);
  margin-top: 16px;
  display: grid;
  gap: 16px;
  align-items: center;
}
@media (min-width: 760px) { .rate { grid-template-columns: minmax(0, 1fr) auto; } }
.rate h3 { font: 500 1.08rem/1.25 var(--font-text); letter-spacing: -0.01em; }
.rate p { margin-top: 6px; color: var(--ink-dim); font-size: 0.92rem; }
.rate-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; justify-self: start; }
@media (min-width: 760px) { .rate-box { justify-self: end; } }

/* the star control: radios drive the fill via sibling selectors */
.stars-input { display: inline-flex; flex-direction: row-reverse; border: 0; margin: 0; padding: 0; min-inline-size: auto; }
.stars-input input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.stars-input label {
  cursor: pointer;
  padding: 2px;
  color: var(--rule);
  transition: color 0.15s, transform 0.15s;
  line-height: 0;
}
.stars-input label svg { width: 30px; height: 30px; display: block; }
.stars-input label:hover,
.stars-input label:hover ~ label,
.stars-input input:checked ~ label { color: var(--amber); }
.stars-input label:hover svg { transform: scale(1.12); }
.stars-input input:focus-visible + label { outline: 2px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }

.rate-send {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0.7em 1.3em;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--leaf);
  color: #0c1208;
  font: 600 0.95rem/1 var(--font-text);
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}
.rate-send:hover { background: var(--leaf-bright); transform: translateY(-1px); }
.rate-send svg { width: 16px; height: 16px; }
.rate-done {
  display: none;
  align-items: center;
  gap: 9px;
  font: 400 0.9rem/1.3 var(--font-text);
  color: var(--leaf);
}
.rate-done svg { width: 18px; height: 18px; flex: none; }
.rate.sent .rate-box { display: none; }
.rate.sent .rate-done { display: inline-flex; }
.rate .agg {
  font: 400 0.76rem/1.5 var(--font-mono);
  color: var(--ink-faint);
}
.rate .agg b { color: var(--ink); font-weight: 500; }

/* ==========================================================================
   Community wall (Discord-style feedback)
   ========================================================================== */
.cw-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: clamp(24px, 3vw, 34px);
}
.cw-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font: 500 0.82rem/1 var(--font-text);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.cw-badge:hover { border-color: #5865f2; background: rgba(88, 101, 242, 0.08); }
.cw-badge svg { width: 18px; height: 18px; color: #9aa6f5; }
.cw-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 0.76rem/1 var(--font-mono);
  color: var(--ink-faint);
}
.cw-online i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 8px var(--leaf);
}
.cw-online b { color: var(--leaf); font-weight: 400; }

.cw-grid { columns: 1; column-gap: 14px; }
@media (min-width: 680px) { .cw-grid { columns: 2; } }
@media (min-width: 1040px) { .cw-grid { columns: 3; } }
.cw-msg {
  break-inside: avoid;
  margin-bottom: 14px;
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
  background: var(--panel);
  padding: 16px 17px;
  transition: border-color 0.25s;
}
.cw-msg:hover { border-color: var(--rule); }
.cw-msg .m-head { display: flex; align-items: center; gap: 10px; }
.cw-msg .av {
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font: 500 0.82rem/1 var(--font-display);
  color: #0c1208;
}
.cw-msg .who { min-width: 0; }
.cw-msg .who b { font: 500 0.84rem/1 var(--font-text); display: inline-flex; align-items: center; gap: 6px; }
.cw-msg .who b em {
  font-style: normal;
  font: 400 0.56rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa6f5;
  border: 1px solid rgba(88, 101, 242, 0.4);
  border-radius: 4px;
  padding: 3px 5px;
}
.cw-msg .who span { display: block; margin-top: 3px; font: 400 0.64rem/1 var(--font-mono); color: var(--ink-faint); }
.cw-msg p { margin-top: 11px; color: var(--ink-dim); font-size: 0.9rem; }
.cw-msg .react { display: flex; gap: 7px; margin-top: 12px; }
.cw-msg .react i {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 400 0.72rem/1 var(--font-mono);
  color: var(--ink-dim);
  background: rgba(127, 209, 75, 0.07);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  padding: 4px 9px;
}

/* ==========================================================================
   Author card
   ========================================================================== */
.author {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  border: 1px solid var(--rule-soft);
  border-radius: 20px;
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(127, 209, 75, 0.07), transparent 55%),
    var(--panel);
  padding: clamp(24px, 3.4vw, 44px);
}
@media (min-width: 760px) { .author { grid-template-columns: auto minmax(0, 1fr); } }
.author-face {
  display: flex;
  align-items: center;
  gap: 18px;
}
.author-av {
  width: 72px; height: 72px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font: 400 1.6rem/1 var(--font-display);
  color: #0c1208;
  background: linear-gradient(140deg, var(--leaf-bright), var(--leaf-deep));
}
.author-face b { font: 500 1.1rem/1.2 var(--font-text); }
.author-face > div span { display: block; margin-top: 5px; font: 400 0.76rem/1 var(--font-mono); color: var(--ink-faint); }
.author-body p { color: var(--ink-dim); }
.author-body p + p { margin-top: 0.9em; }
.author-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.author-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font: 500 0.84rem/1 var(--font-text);
  transition: border-color 0.2s, background 0.2s;
}
.author-links a:hover { border-color: var(--leaf); background: rgba(127, 209, 75, 0.07); }
.author-links a svg { width: 15px; height: 15px; }

/* ==========================================================================
   Leave a comment
   ========================================================================== */
.cmt { max-width: 760px; }
.cmt-form { display: grid; gap: 14px; }
.cmt-row { display: grid; gap: 14px; }
@media (min-width: 600px) { .cmt-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cmt-form label { display: grid; gap: 7px; }
.cmt-form .lab { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.cmt-form input,
.cmt-form textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--ink);
  font: 400 0.95rem/1.5 var(--font-text);
  transition: border-color 0.2s;
}
.cmt-form input:focus,
.cmt-form textarea:focus { outline: none; border-color: var(--leaf); }
.cmt-form textarea { resize: vertical; min-height: 120px; }
.cmt-form input::placeholder,
.cmt-form textarea::placeholder { color: var(--ink-faint); }
.cmt-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cmt-note { font: 400 0.74rem/1.5 var(--font-mono); color: var(--ink-faint); }
.cmt-done {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(127, 209, 75, 0.3);
  border-radius: 12px;
  background: rgba(127, 209, 75, 0.06);
  padding: 14px 16px;
  color: var(--ink);
  font-size: 0.92rem;
}
.cmt-done svg { width: 18px; height: 18px; color: var(--leaf); flex: none; }
.cmt.sent .cmt-form { display: none; }
.cmt.sent .cmt-done { display: flex; }

/* ==========================================================================
   Reveal on scroll — progressive enhancement.
   Content is visible by default; it only starts hidden once the inline
   head script marks the document with .js, so a JS failure never blanks
   the page. The observer (or the load failsafe) then adds .seen.
   ========================================================================== */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.seen { opacity: 1; transform: none; }

/* ==========================================================================
   WebGL fallback (class set by script)
   ========================================================================== */
.no-webgl .field { display: none; }
.no-webgl .hero {
  background:
    radial-gradient(60% 50% at 68% 36%, rgba(166, 241, 95, 0.12), transparent 70%),
    repeating-linear-gradient(to bottom, rgba(47, 109, 26, 0.5) 0 1px, transparent 1px 9px),
    var(--field-bg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { transition: none; opacity: 1; transform: none; }
  * { transition: none !important; }
  .st-flag i, .st-bars i, .vis-wave .flow, .vis-track .line::after,
  .vis-radar .sweep, .vis-link .dots::after, .sup-state .live i, .tl-live i {
    animation: none !important;
  }
}