/* =============================================================
   micromamba.com — MAIN STYLESHEET (readable, easy to edit)

   HOW TO EDIT
   1. Colours and text sizes are in the "02 SETTINGS" block below.
      Change a value, save, upload — that's all.
   2. Sections in this file:
        01 Fonts              09 Install & first use
        02 SETTINGS (edit)    10 Tables & tags
        03 Base               11 Pros/cons, errors, perspectives
        04 Header & menu      12 FAQ & final band
        05 Buttons            13 Footer
        06 Section headings   14 Inner pages & guides
        07 Hero               15 Animations
        08 Features & download  16 Tablet / mobile
                              17 Ad banners (Adsterra)
   3. After uploading a change, press Ctrl+F5 once.
      (If you use Cloudflare/LiteSpeed cache, purge it.)
   ============================================================= */


/* ---------- 01 Fonts (self-hosted Poppins) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); }


/* ---------- 02 SETTINGS — EDIT HERE ---------- */
:root {
  /* ===== HERO H1 SIZE (homepage title) ===== */
  --hero-h1-desktop: 36px;   /* computers: wider than 900px */
  --hero-h1-tablet: 32px;    /* tablets: 641px – 900px      */
  --hero-h1-mobile: 28px;    /* phones: 640px and smaller   */

  /* ===== OTHER TEXT SIZES ===== */
  --page-h1-desktop: 44px;   /* H1 on guides, About, legal pages */
  --page-h1-mobile: 30px;
  --h2-desktop: 38px;        /* section headings */
  --h2-mobile: 27px;
  --h3-size: 19px;           /* small headings */
  --body-size: 16px;         /* paragraph text */
  --line: 1.75;              /* paragraph line height */

  /* ===== COLOURS (from the black & white snake logo + a green accent) ===== */
  --ink: #161614;            /* logo black: headings, dark bands */
  --ink-2: #2B2A27;          /* softer black */
  --ink-3: #3D3B37;
  --paper: #F7F6F2;          /* page background (warm off-white) */
  --white: #FFFFFF;          /* panels */
  --text: #55524C;           /* paragraph text */
  --muted: #7A766E;          /* small labels */
  --line-color: #DEDBD3;     /* hairlines / borders */
  --line-soft: #ECEAE4;
  --green: #2E7D4F;          /* accent: buttons, links ("mamba green") */
  --green-dark: #1F5C39;     /* accent hover */
  --green-soft: #E6F2EA;     /* light green backgrounds */
  --green-bright: #6CC793;   /* accent on dark backgrounds */
  --on-ink: #E9E7E1;         /* text on black */

  /* status colours (tables) */
  --ok: #1F6B41;
  --ok-bg: #E3F3E8;
  --warn: #9A4A0C;
  --warn-bg: #FBEEDF;
  --no: #A42B20;
  --no-bg: #FBE8E6;

  /* ===== FONTS ===== */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* ===== LAYOUT ===== */
  --container: 1140px;       /* max content width */
  --gutter: 24px;            /* side padding */
  --header-h: 76px;          /* header height */
  --radius: 6px;             /* corners (this design uses sharp-ish corners) */
  --radius-big: 14px;
  --section-space: 104px;    /* space above/below each homepage section */
}


/* ---------- 03 Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: var(--line);
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
h2 { font-size: var(--h2-desktop); font-weight: 700; }
h3 { font-size: var(--h3-size); font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 16px; }
ul, ol { padding-left: 20px; margin: 0 0 18px; }
li { margin: 5px 0; }

code, kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--line-soft);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 4px;
}

pre {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  background: var(--ink);
  color: var(--on-ink);
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0 0 20px;
}
pre code { background: none; color: inherit; padding: 0; }
pre .c { color: #8C887F; }          /* comments in code blocks */
pre .g { color: var(--green-bright); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
::selection { background: var(--green); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }


/* grid columns may shrink below their content (stops long code lines from widening the page) */
.hero-grid > *, .index-list > *, .ticket > *, .cols-2 > *, .os-wrap > *, .procon > *, .errors > *, .uses > * { min-width: 0; }


/* ---------- 04 Header & menu ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-color);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { height: 34px; width: auto; transition: transform 0.4s ease; }
.brand:hover img { transform: translateX(4px); }
.brand-word { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; color: var(--ink); }
.brand-word span { color: var(--green); }

.nav-desktop ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-desktop a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
}
.nav-desktop a::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  transform: scale(0);
  transition: transform 0.25s ease;
}
.nav-desktop a:hover::before,
.nav-desktop a[aria-current="page"]::before { transform: scale(1); }
.nav-desktop a:hover { background: var(--line-soft); }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 600; font-size: 14px; color: var(--ink);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile .bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.nav-mobile .bars::before, .nav-mobile .bars::after, .nav-mobile .bars i {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink);
  transition: transform 0.3s ease, opacity 0.2s;
}
.nav-mobile .bars::before { top: 0; }
.nav-mobile .bars i { top: 5px; }
.nav-mobile .bars::after { top: 10px; }
.nav-mobile[open] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-mobile[open] .bars i { opacity: 0; }
.nav-mobile[open] .bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-mobile ul {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px;
  background: var(--white); border: 1px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}
.nav-mobile li { margin: 0; }
.nav-mobile a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 500; border-radius: 4px; }
.nav-mobile a:hover { background: var(--green-soft); }

.read-progress {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%;
  background: var(--green); transform: scaleX(0); transform-origin: left;
}


/* ---------- 05 Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  padding: 15px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }

/* main green download button with a "stamp" shadow */
.btn-main { background: var(--green); color: #fff; box-shadow: 5px 5px 0 var(--ink); }
.btn-main:hover { background: var(--green-dark); color: #fff; transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn-main:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }

/* outline button */
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* button on black backgrounds */
.btn-light { background: var(--green-bright); color: var(--ink); border-color: var(--green-bright); box-shadow: 5px 5px 0 var(--paper); }
.btn-light:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--paper); }

.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateY(2px); }

.dl-status { min-height: 24px; margin: 12px 0 0; font-size: 14px; font-weight: 500; color: var(--green); }
.on-ink .dl-status { color: var(--green-bright); }


/* ---------- 06 Section headings ---------- */
.section { padding: var(--section-space) 0; position: relative; }
.section-white { background: var(--white); border-block: 1px solid var(--line-color); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.label b { color: var(--ink); font-weight: 600; }
.on-ink .label, .on-ink .label b { color: var(--green-bright); }

.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head p { font-size: 17px; margin: 0; }

/* hand-drawn snake divider between sections */
.snake-divider { height: 40px; overflow: hidden; }
.snake-divider svg { width: 100%; height: 40px; }
.snake-divider path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 1600; stroke-dashoffset: 1600; transition: stroke-dashoffset 2.4s ease; }
.snake-divider.in path { stroke-dashoffset: 0; }


/* ---------- 07 Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 0;
  overflow: hidden;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.pill-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--white); border: 1px solid var(--ink); padding: 5px 12px; border-radius: 999px;
}
.pill-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.6s ease-in-out infinite; }

.hero h1 {
  font-size: var(--hero-h1-desktop);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 980px;
  margin-bottom: 40px;
}
.hero h1 em { font-style: normal; color: var(--green); position: relative; white-space: nowrap; }
.hero h1 em svg { position: absolute; left: 0; bottom: -10px; width: 100%; height: 16px; overflow: visible; }
.hero h1 em path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s 0.6s ease forwards; }

/* three columns under the title: text | spec | terminal */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.7fr 1.25fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 64px;
}
.hero-text p { font-size: 17px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.spec-list { margin: 0; border-top: 2px solid var(--ink); }
.spec-list div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-color); font-size: 14px; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }

/* animated terminal */
.term {
  background: var(--ink);
  border-radius: var(--radius-big);
  color: var(--on-ink);
  font-family: var(--mono);
  font-size: 13.5px;
  box-shadow: 10px 10px 0 var(--green);
  overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--ink-3); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.term-bar i:first-child { background: var(--green-bright); }
.term-bar span { margin-left: auto; color: #8C887F; font-size: 12px; }
.term-body { padding: 18px; margin: 0; background: none; border-radius: 0; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.term-body .ln { display: block; }
.term-body .p { color: var(--green-bright); }
.term-body .o { color: #A9A59C; }
.term-body .ok { color: var(--green-bright); }
.cursor { display: inline-block; width: 8px; height: 16px; background: var(--green-bright); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
.hero-term { margin: 0; }
.term-cap { font-family: var(--font); font-size: 12px; color: var(--muted); margin: 12px 0 0; }

/* moving snake band at the bottom of the hero */
.hero-band { background: var(--ink); color: var(--on-ink); overflow: hidden; padding: 16px 0; }
.hero-track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.hero-track div { display: flex; gap: 40px; padding-right: 40px; }
.hero-track span { font-family: var(--mono); font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; gap: 14px; }
.hero-track span::before { content: "~"; color: var(--green-bright); font-weight: 700; }
.hero-band:hover .hero-track { animation-play-state: paused; }


/* ---------- 08 Features & download ---------- */
/* features: numbered index rows (no cards) */
.index-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 2px solid var(--ink); }
.ix {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-color);
  position: relative;
}
.ix::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 0.45s ease; }
.ix:hover::after { transform: scaleX(1); }
.ix-n { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--green); padding-top: 3px; }
.ix-ico { width: 34px; height: 34px; margin-bottom: 10px; color: var(--ink); }
.ix h3 { margin-bottom: 6px; }
.ix p { margin: 0; font-size: 15px; }

/* download "ticket" */
.ticket {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-big);
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
}
.ticket-stub {
  padding: 40px;
  background: var(--green-soft);
  border-right: 2px dashed var(--ink);
  position: relative;
}
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; right: -15px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink);
}
.ticket-stub::before { top: -16px; }
.ticket-stub::after { bottom: -16px; }
.ticket-stub .ticket-ver { font-size: 72px; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -0.05em; margin: 6px 0 4px; }
.ticket-stub .ticket-ver small { display: block; font-family: var(--mono); font-size: 14px; letter-spacing: 0; font-weight: 600; color: var(--green); margin-top: 8px; }
.ticket-stub p { font-size: 15px; }
.ticket-main { padding: 40px; }
.ticket-main h2 { margin-bottom: 10px; }

.leaders { margin: 18px 0 0; padding: 0; }
.leaders div { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 15px; }
.leaders dt { color: var(--muted); white-space: nowrap; }
.leaders div::after { content: none; }
.leaders .dots { flex: 1; border-bottom: 2px dotted var(--line-color); transform: translateY(-4px); min-width: 20px; }
.leaders dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }

.plat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.plat-grid li { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--ink); border: 1px solid var(--ink); border-radius: 4px; padding: 6px 8px; text-align: center; background: var(--paper); transition: background 0.2s, color 0.2s; }
.plat-grid li:hover { background: var(--ink); color: var(--paper); }
.pkg-note { font-size: 14px; margin-top: 18px; color: var(--muted); }

/* how to download: trail with wavy line */
.trail { list-style: none; margin: 0; padding: 0 0 0 64px; counter-reset: tr; position: relative; max-width: 820px; }
.trail-line { position: absolute; left: 14px; top: 0; height: 100%; width: 24px; }
.trail-line path { fill: none; stroke: var(--green); stroke-width: 3; stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: stroke-dashoffset 2.5s ease; }
.trail-wrap.in .trail-line path { stroke-dashoffset: 0; }
.trail-wrap { position: relative; }
.trail li { counter-increment: tr; position: relative; padding: 0 0 34px; margin: 0; }
.trail li::before {
  content: counter(tr); position: absolute; left: -64px; top: -2px;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 50%;
  font-weight: 800; color: var(--ink); z-index: 1;
}
.trail h3 { margin: 0 0 4px; padding-top: 10px; }
.trail p { margin: 0; }


/* ---------- 09 What it does & install ---------- */
.statement { font-size: 30px; line-height: 1.35; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 36px; max-width: 940px; }
.statement mark { background: var(--green-soft); color: var(--green-dark); padding: 0 6px; border-radius: 4px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border: 2px solid var(--ink); border-radius: var(--radius-big); background: var(--white); overflow: hidden; }
.use { padding: 28px; }
.use + .use { border-left: 1px solid var(--line-color); }
.use .label { margin-bottom: 8px; }
.use p { margin: 0; font-size: 15px; }

.os-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.os { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); margin-bottom: 12px; overflow: hidden; }
.os summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 600; color: var(--ink); position: relative; display: flex; align-items: center; gap: 10px; }
.os summary::-webkit-details-marker { display: none; }
.os summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; transition: transform 0.3s; }
.os[open] summary { background: var(--ink); color: var(--paper); }
.os[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.os .os-body { padding: 18px; }
.os .os-body pre { margin-bottom: 12px; }
.os .os-body p { font-size: 15px; }

.flow { list-style: none; margin: 0; padding: 0; counter-reset: fl; }
.flow li { counter-increment: fl; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line-color); margin: 0; }
.flow li::before { content: counter(fl, decimal-leading-zero); font-family: var(--mono); font-weight: 700; color: var(--green); padding-top: 2px; }
.flow h3 { font-size: 17px; margin-bottom: 4px; }
.flow p { margin: 0; font-size: 15px; }


/* ---------- 10 Tables & tags ---------- */
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); margin: 0 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-color); vertical-align: top; }
thead th { background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14px; }
tbody th { color: var(--ink); font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover { background: var(--paper); }
.col-hl { background: var(--green-soft); }
thead th.col-hl { background: var(--green); color: #fff; }

.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.no { background: var(--no-bg); color: var(--no); }
.tag.info { background: var(--line-soft); color: var(--ink); }


/* ---------- 11 Pros/cons, errors, perspectives ---------- */
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.procon h3 { font-size: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.procon ul { list-style: none; padding: 0; margin: 0; }
.procon li { position: relative; padding: 14px 0 14px 38px; border-bottom: 1px solid var(--line-color); margin: 0; }
.procon li::before { position: absolute; left: 0; top: 14px; width: 26px; height: 26px; display: grid; place-items: center; font-weight: 800; border-radius: 50%; }
.procon .pros li::before { content: "+"; background: var(--green); color: #fff; }
.procon .cons li::before { content: "\2212"; background: var(--ink); color: #fff; }
.procon li b { color: var(--ink); }

.errors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.err-card { background: var(--white); border: 1px solid var(--line-color); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 22px; transition: transform 0.25s, box-shadow 0.25s; }
.err-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(22, 22, 20, 0.45); }
.err-msg { display: block; font-family: var(--mono); font-size: 13px; background: var(--ink); color: var(--on-ink); padding: 8px 12px; border-radius: 4px; margin-bottom: 14px; word-break: break-word; }
.err-card h3 { font-size: 17px; }
.err-card p { margin: 0 0 8px; font-size: 15px; }
.tip-line { margin-top: 28px; padding: 18px 22px; border: 2px dashed var(--green); border-radius: var(--radius); background: var(--green-soft); }
.tip-line p { margin: 0; }

.persp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.persp-n { font-size: 80px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--ink); margin-bottom: 8px; }
.persp .label { margin-bottom: 8px; }
.persp p { margin: 0; font-size: 15px; }


/* ---------- 12 FAQ & final band ---------- */
.faq { max-width: 860px; margin: 0 auto; counter-reset: fq; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-color); counter-increment: fq; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 52px 1fr 28px; align-items: center; padding: 20px 0; font-weight: 600; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: counter(fq, decimal-leading-zero); font-family: var(--mono); font-size: 14px; color: var(--green); }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; text-align: center; transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 28px 22px 52px; }
.faq .ans p:last-child { margin: 0; }

.final-band { background: var(--ink); color: var(--on-ink); padding: 88px 0; position: relative; overflow: hidden; }
.final-band h2 { color: var(--paper); max-width: 760px; }
.final-band p { max-width: 640px; color: #BFBBB2; }
.final-snake { position: absolute; right: -40px; bottom: 20px; width: 520px; height: 160px; opacity: 0.9; }
.final-snake path { fill: none; stroke: var(--green-bright); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 3s ease; }
.final-band.in .final-snake path { stroke-dashoffset: 0; }
.final-band .container { position: relative; }


/* ---------- 13 Footer ---------- */
.site-footer { background: var(--white); border-top: 2px solid var(--ink); font-size: 15px; }
.footer-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 0 32px; border-bottom: 1px solid var(--line-color); flex-wrap: wrap; }
.footer-head .brand img { height: 46px; }
.footer-head .brand-word { font-size: 30px; }
.footer-head p { max-width: 540px; margin: 0; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 36px 0; }
.site-footer h2 { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 9px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }
.footer-note { border-top: 1px solid var(--line-color); padding: 18px 0; font-size: 14px; color: var(--muted); margin: 0; }
.footer-bottom { background: var(--ink); color: var(--on-ink); padding: 16px 0; font-size: 14px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: var(--green-bright); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }


/* ---------- 14 Inner pages & guides ---------- */
.page-hero { padding: 56px 0 40px; border-bottom: 2px solid var(--ink); background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 40px 40px; }
.page-hero h1 { font-size: var(--page-h1-desktop); font-weight: 800; letter-spacing: -0.03em; max-width: 900px; }
.page-hero p { max-width: 720px; font-size: 17px; margin: 0; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-family: var(--mono); font-size: 13px; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--muted); }
.crumbs a { color: var(--text); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.reading { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 30px; margin-top: 44px; }
.prose h3 { margin-top: 28px; }
.prose > :first-child { margin-top: 0; }
.prose table { min-width: 540px; }
.prose ul li::marker, .prose ol li::marker { color: var(--green); font-weight: 700; }

.cover { margin: 0 0 36px; border: 2px solid var(--ink); border-radius: var(--radius-big); overflow: hidden; background: var(--white); }
.cover img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.cover figcaption { font-size: 13px; padding: 8px 14px; border-top: 1px solid var(--line-color); color: var(--muted); }

.toc-box { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); padding: 20px 24px; margin: 0 0 32px; }
.toc-box h2 { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); margin: 0 0 10px; }
.toc-box ol { columns: 2; column-gap: 32px; margin: 0; padding-left: 22px; font-size: 15px; }
.toc-box li { break-inside: avoid; }
.toc-box a { color: var(--ink); text-decoration: none; }
.toc-box a:hover, .toc-box a.active { color: var(--green); text-decoration: underline; }

.callout { border-left: 4px solid var(--green); background: var(--green-soft); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 22px; }
.callout.warn { border-color: var(--warn); background: var(--warn-bg); }
.callout p:last-child { margin: 0; }

.cta-strip { margin: 44px 0 0; padding: 28px; background: var(--ink); color: var(--on-ink); border-radius: var(--radius-big); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.cta-strip h2 { color: var(--paper); font-size: 22px; margin: 0 0 4px; }
.cta-strip p { margin: 0; font-size: 15px; color: #BFBBB2; }

.related { margin-top: 64px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rcard { display: block; text-decoration: none; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.rcard:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--green); color: var(--ink); }
.rcard img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 2px solid var(--ink); }
.rcard span { display: block; padding: 14px 16px; font-weight: 600; line-height: 1.4; font-size: 15px; }

/* guides archive: numbered magazine rows */
.g-rows { border-top: 2px solid var(--ink); }
.g-row { display: grid; grid-template-columns: 80px 1fr 300px; gap: 28px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line-color); text-decoration: none; color: var(--text); transition: background 0.2s; }
.g-row:hover { background: var(--white); color: var(--text); }
.g-num { font-size: 44px; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--ink); line-height: 1; padding-left: 8px; }
.g-row:hover .g-num { color: var(--green); -webkit-text-stroke-color: var(--green); }
.g-row h2 { font-size: 22px; margin-bottom: 6px; }
.g-row p { margin: 0; font-size: 15px; }
.g-row img { border: 2px solid var(--ink); border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.contact-card { display: flex; gap: 18px; align-items: center; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); padding: 22px; margin: 0 0 24px; box-shadow: 6px 6px 0 var(--green); }
.contact-card svg { width: 30px; height: 30px; color: var(--green); flex: none; }
.contact-card p { margin: 0; }
.sitemap-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.err-page { text-align: center; padding: 100px 0; }
.err-page .code { font-family: var(--mono); font-size: 120px; font-weight: 800; line-height: 1; color: var(--ink); }
.err-page .cta-row { justify-content: center; }


/* ---------- 15 Animations ---------- */
@keyframes pulse { 50% { transform: scale(0.6); opacity: 0.5; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes typein { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* terminal lines appear one after another */
.js .term-body .ln { opacity: 0; animation: typein 0.4s ease forwards; }
.js .term-body .ln:nth-child(1) { animation-delay: 0.3s; }
.js .term-body .ln:nth-child(2) { animation-delay: 0.9s; }
.js .term-body .ln:nth-child(3) { animation-delay: 1.4s; }
.js .term-body .ln:nth-child(4) { animation-delay: 2.0s; }
.js .term-body .ln:nth-child(5) { animation-delay: 2.6s; }
.js .term-body .ln:nth-child(6) { animation-delay: 3.1s; }
.js .term-body .ln:nth-child(7) { animation-delay: 3.6s; }
.js .term-body .ln:nth-child(8) { animation-delay: 4.1s; }
.js .term-body .ln:nth-child(9) { animation-delay: 4.6s; }

/* scroll reveal (only when JavaScript runs) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.js .stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.js .stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.js .stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.js .stagger.in > *:nth-child(6) { transition-delay: 0.40s; }
.js .stagger.in > *:nth-child(7) { transition-delay: 0.48s; }
.js .stagger.in > *:nth-child(8) { transition-delay: 0.56s; }
.js .stagger.in > *:nth-child(9) { transition-delay: 0.64s; }
.js .stagger.in > *:nth-child(10) { transition-delay: 0.72s; }


/* ---------- 16 Tablet / mobile ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-term { grid-column: 1 / -1; }
  .plat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --section-space: 80px; }
  .hero h1 { font-size: var(--hero-h1-tablet); }
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .index-list, .cols-2, .os-wrap, .procon, .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-right: 0; border-bottom: 2px dashed var(--ink); }
  .ticket-stub::before, .ticket-stub::after { display: none; }
  .uses, .persp-grid { grid-template-columns: 1fr; }
  .use + .use { border-left: 0; border-top: 1px solid var(--line-color); }
  .g-row { grid-template-columns: 60px 1fr; }
  .g-row img { grid-column: 2; }
  .related-grid, .footer-links { grid-template-columns: 1fr 1fr; }
  .final-snake { opacity: 0.35; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 66px; --section-space: 64px; }
  .hero h1 { font-size: var(--hero-h1-mobile); }
  .hero h1 em { white-space: normal; }
  .page-hero h1 { font-size: var(--page-h1-mobile); }
  h2, .prose h2 { font-size: var(--h2-mobile); }
  .hero-grid { grid-template-columns: 1fr; }
  .statement { font-size: 22px; }
  .errors, .related-grid, .footer-links, .sitemap-cols { grid-template-columns: 1fr; }
  .ticket-stub, .ticket-main { padding: 26px 20px; }
  .ticket-stub .ticket-ver { font-size: 54px; }
  .leaders div { flex-wrap: wrap; }
  .leaders .dots { display: none; }
  .leaders dd { text-align: left; }
  .toc-box ol { columns: 1; }
  .cta-strip { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .brand img { height: 28px; }
  .brand-word { font-size: 18px; }
  .footer-head .brand img { height: 32px; }
  .footer-head .brand-word { font-size: 22px; }
  .trail { padding-left: 56px; }
  .trail li::before { left: -56px; width: 44px; height: 44px; }
  .faq summary { grid-template-columns: 40px 1fr 24px; font-size: 16px; }
  .faq .ans { padding-left: 40px; padding-right: 0; }
  .err-page .code { font-size: 80px; }
}

/* ---------- 17 Ad banners (Adsterra) ----------
   .ad-area  = full-width strip between homepage sections
   .ad-pair  = two 728x90 banners after the hero (side by side
               on wide screens, one under the other on smaller ones)
   .ad-320   = small 320x50 banner under each download button
   Banners keep their real size on desktop and shrink with "zoom"
   on small screens, so they never make the page scroll sideways.
   ------------------------------------------------ */
:root {
  --ad-space: 28px;          /* space above/below each ad strip */
  --ad-gap: 24px;            /* gap between the two hero banners */
  --ad-bg: var(--white);     /* strip background */
}

.ad-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--ad-gap);
  padding: var(--ad-space) var(--gutter);
  background: var(--ad-bg);
  border-bottom: 1px solid var(--line-color);
  overflow: hidden;
}

.ad-slot { display: flex; flex-direction: column; align-items: center; max-width: 100%; }

.ad-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1;
}

/* the box reserves the banner size, so nothing jumps while the ad loads */
.ad-box { overflow: hidden; background: var(--line-soft); }
.ad-box iframe { display: block; border: 0; }
.ad-728 .ad-box { width: 728px; height: 90px; }
.ad-320 .ad-box { width: 320px; height: 50px; }

/* small banner under download buttons */
.ad-320 { margin-top: 14px; }
.cta-row .ad-320 { flex-basis: 100%; align-items: flex-start; margin-top: 4px; }
.ticket-stub .ad-320 { align-items: flex-start; }
.final-band .ad-320 { align-items: flex-start; }
.on-ink .ad-label { color: #9C988F; }
.on-ink .ad-box { background: var(--ink-2); }

/* shrink the 728x90 banners step by step on smaller screens */
@media (max-width: 800px) { .ad-728 .ad-box { zoom: 0.85; } }   /* about 619px wide */
@media (max-width: 680px) { .ad-728 .ad-box { zoom: 0.7; } }    /* about 510px wide */
@media (max-width: 570px) { .ad-728 .ad-box { zoom: 0.56; } }   /* about 408px wide */
@media (max-width: 460px) { .ad-728 .ad-box { zoom: 0.45; } }   /* about 328px wide */
@media (max-width: 370px) { .ad-728 .ad-box { zoom: 0.4; } .ad-320 .ad-box { zoom: 0.88; } }
@media (max-width: 640px) {
  :root { --ad-space: 18px; --ad-gap: 16px; }
  .cta-row .ad-320, .ticket-stub .ad-320, .final-band .ad-320 { align-items: center; }
}


/* very small phones (380px and below): keep logo + menu inside the screen */
@media (max-width: 380px) {
  .header-inner { gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { height: 24px; }
  .brand-word { font-size: 16px; }
  .nav-mobile summary { padding: 8px 10px; gap: 8px; font-size: 13px; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .stagger > *, .js .term-body .ln { opacity: 1; transform: none; }
}

@media print { .site-header, .site-footer, .hero-band, .final-band, .ad-area, .ad-slot { display: none; } }