/* Spriteria – stile del sito, con gli stessi token del tema Grafite dell'app
   (components/theme/UThemeTokens.pas): grigi neutri, un solo accento blu per gli
   stati attivi, bordi di 1 px, raggi piccoli, Inter per il testo e JetBrains Mono per i numeri. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/Inter-Regular.ttf?v=tp1xt1") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/Inter-SemiBold.ttf?v=tp1xt1") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/assets/fonts/Inter-Bold.ttf?v=tp1xt0") format("truetype"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/assets/fonts/JetBrainsMono-Regular.ttf?v=tp1xt2") format("truetype"); }

:root {
  --bg: #1F1F1F;          /* BgApp */
  --bg-alt: #1A1A1A;      /* BgInput */
  --panel: #272727;       /* BgPanel */
  --raised: #303030;      /* BgRaised */
  --hover: #3A3A3A;       /* BgHover */
  --pressed: #242424;     /* BgPressed */
  --line: #3A3A3A;        /* Line */
  --surround: #333333;    /* CanvasSurround */
  --checker-a: #3D3D3D;
  --checker-b: #4A4A4A;
  --text: #E8E8E8;
  --muted: #A6A6A6;
  --accent: #2F6BD8;
  --accent-fg: #7AAAFF;
  --on-accent: #FFFFFF;
  --selection: #2B3A55;
  --r-field: 2px;
  --r-btn: 4px;
  --r-panel: 6px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-fg); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--selection); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .3em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -40px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: 6px 12px; border-radius: var(--r-btn); }
.skip:focus { top: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow > * { max-width: 820px; }
.px { display: inline-block; flex: none; vertical-align: -3px; }

/* ------------------------------------------------------------ pulsanti */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: var(--raised); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-btn);
  font: 600 15px/1.3 var(--font);
  cursor: pointer; text-decoration: none;
  transition: background-color .12s, border-color .12s;
}
.btn:hover { background: var(--hover); text-decoration: none; }
.btn:active { background: var(--pressed); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #3A78E6; border-color: #3A78E6; }
.btn-primary:active { background: #285FC2; }
.btn-small { padding: 6px 12px; font-size: 14px; }
.btn-large { padding: 13px 22px; font-size: 16px; }
.btn .mono { font-weight: 400; opacity: .85; }

/* ------------------------------------------------------------ intestazione */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.logo { image-rendering: pixelated; display: block; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--text); text-decoration: none; }
/* selettore della lingua: una tendina come le combo dell'app */
.langs { position: relative; }
.langs summary {
  display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 10px 0 8px;
  background: var(--raised); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-btn);
  font-size: 14px; cursor: pointer; list-style: none; user-select: none;
  transition: background-color .12s, border-color .12s;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { background: var(--hover); }
.langs[open] summary { border-color: var(--accent); }
.lang-code {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 18px; padding: 0 4px;
  font-size: 11px; font-weight: 400; letter-spacing: .04em;
  color: var(--muted); background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--r-field);
}
.lang-chevron { color: var(--muted); transition: transform .12s; }
.langs[open] .lang-chevron { transform: rotate(180deg); color: var(--accent-fg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
  min-width: 190px; padding: 4px;
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel);
  box-shadow: 0 14px 36px rgba(0,0,0,.5);
}
.lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--r-btn);
  color: var(--text); font-size: 14px;
}
.lang-menu a:hover { background: var(--hover); text-decoration: none; }
.lang-menu a[aria-current] { background: var(--selection); }
.lang-menu a[aria-current] .lang-code { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.lang-menu a[aria-current]::after {
  content: ""; margin-left: auto; width: 6px; height: 6px; background: var(--accent-fg);
}

/* ------------------------------------------------------------ hero */
.hero {
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(31,31,31,.6), var(--bg) 85%),
    repeating-conic-gradient(#232323 0 25%, #1F1F1F 0 50%) 0 0 / 32px 32px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.eyebrow { color: var(--accent-fg); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.hero-title { display: flex; align-items: flex-end; gap: 14px; font-size: clamp(48px, 7vw, 76px); letter-spacing: -.03em; margin-bottom: 18px; }
.slime {
  display: inline-block; flex: none;
  width: 96px; height: 96px;
  background: url("/assets/img/slime.png?v=tp1xt4") 0 0 / 576px 96px no-repeat;
  image-rendering: pixelated;
  animation: slime .72s steps(6) infinite;
  margin: 0 -6px -.02em -10px;
}
@keyframes slime { to { background-position: -576px 0; } }
.lead { font-size: 19px; color: #CFCFCF; max-width: 34em; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 28px; }
.pills li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; font-size: 14px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
}
.pills li::before { content: ""; width: 6px; height: 6px; background: var(--accent-fg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* finestra dell'app attorno alle schermate */
.window {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
}
.window > a { display: block; line-height: 0; }
.window > a img { display: block; width: 100%; }
.window-bar .logo { width: 14px; height: 14px; }
.window-bar {
  display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 0 0 10px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
}
.window-bar span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-bar i { position: relative; width: 40px; height: 30px; flex: none; }
.window-bar i::before { content: ""; position: absolute; left: 15px; top: 14px; width: 10px; height: 1px; background: var(--muted); }
.window-bar i:nth-of-type(2)::before { top: 10px; height: 10px; background: none; border: 1px solid var(--muted); width: 10px; box-sizing: border-box; }
.window-bar i:nth-of-type(3)::before, .window-bar i:nth-of-type(3)::after {
  content: ""; position: absolute; left: 14px; top: 14px; width: 12px; height: 1px; background: var(--muted); transform: rotate(45deg);
}
.window-bar i:nth-of-type(3)::after { transform: rotate(-45deg); }
.window figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); background: var(--panel); }

/* ------------------------------------------------------------ sezioni */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--muted); font-size: 18px; margin-bottom: 32px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.about-grid p { color: #CFCFCF; font-size: 17px; }

/* pannelli come quelli della colonna destra dell'app */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.panel-head .px { color: var(--text); }
.panel-body { padding: 14px; color: var(--muted); font-size: 15px; }
.panel-body > :last-child { margin-bottom: 0; }
.panel-accent { border-color: var(--accent); }
.panel-accent .panel-head { background: var(--selection); }
.panel-accent .panel-body { color: var(--text); }
.features-guide { margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.features-guide .btn { gap: 8px; }

/* le sei funzioni principali: dettaglio dell'app e testo, alternati riga per riga */
.feature-rows { display: flex; flex-direction: column; gap: 56px; margin: 32px 0 64px; }
.feature-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.feature-row-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.feature-row-reverse .feature-shot { order: 2; }
.feature-shot { margin: 0; }
.feature-shot img { height: auto; }
.feature-text h3 { margin: 12px 0 10px; font-size: 26px; line-height: 1.2; }
.feature-text p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.feature-icon {
  display: inline-flex; padding: 8px; color: var(--accent-fg);
  background: var(--selection); border: 1px solid var(--accent); border-radius: var(--r-btn);
}

/* tutte le altre funzioni, in breve */
.feature-more-title { margin: 0 0 6px; font-size: 22px; }
.feature-grid {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 10px;
}
.feature-grid li {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); transition: border-color .12s;
}
.feature-grid li:hover { border-color: var(--accent); }
.feature-grid strong { color: var(--text); }
.feature-grid-icon { flex: none; margin-top: 2px; color: var(--accent-fg); }

/* roadmap: cose in arrivo e link alle novità delle versioni */
.rm-next { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr)); gap: 16px; }
.rm-next .rm-feats { grid-template-columns: 1fr; }
.rm-plan .rm-status { color: var(--accent-fg); border-color: var(--accent); background: rgba(47,107,216,.12); }
.rm-plan .rm-feats .px { color: var(--accent-fg); }
.rm-wish { border-style: dashed; }
.rm-wish .rm-status { color: var(--muted); border-style: dashed; }
.rm-notes { margin: 0; padding: 0 14px 12px; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.cards .panel-head .px {
  box-sizing: content-box; padding: 7px;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-btn);
}
.cards .panel:hover .panel-head .px { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.teaser { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.teaser > div { max-width: 640px; }
.teaser .mono { color: var(--accent-fg); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 4px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq .chevron { color: var(--muted); transition: transform .12s; }
.faq details[open] .chevron { transform: rotate(90deg); color: var(--accent-fg); }
.faq details p { padding: 0 4px 18px 32px; color: var(--muted); margin: 0; }

.support { padding: 48px 0; border-top: 1px solid var(--line); }
.support-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.support h2 { font-size: 22px; margin-bottom: .4em; }
.support p { margin: 0; max-width: 680px; }

/* ------------------------------------------------------------ piè di pagina */
.foot { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 48px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot nav { display: flex; flex-direction: column; gap: 6px; }
.foot nav a, .foot-langs a { color: var(--muted); }
.foot nav a:hover, .foot-langs a:hover { color: var(--text); }
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot .brand { margin-bottom: 12px; }
.foot-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 10px 20px;
  background: var(--panel); border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.cookie p { margin: 0; }

/* ------------------------------------------------------------ roadmap
   Le versioni come frame della film strip dell'app: le pubblicate sono i frame precedenti
   (tinta rossa della traccia dei frame vicini), quella in lavorazione è il frame corrente con
   la testina, le successive hanno la tinta blu. Sotto, la timeline con le funzioni. */
.rm-strip-scroll { overflow-x: auto; margin: 0 0 40px; padding: 2px 2px 8px; }
.rm-strip { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; min-width: max-content; }
.rm-cell { display: flex; flex-direction: column; gap: 14px; flex: 1 0 112px; max-width: 168px; }
/* pezzo del tag sopra il frame: si allunga nello spazio tra i frame dello stesso gruppo */
.rm-seg {
  height: 20px; margin-right: -10px; padding: 0 8px;
  font: 600 12px/20px var(--font); white-space: nowrap; overflow: visible;
  color: var(--on-accent); background: var(--accent);
  position: relative; z-index: 1;
}
.rm-seg-end { margin-right: 0; }
.rm-seg-start { border-top-left-radius: var(--r-field); border-bottom-left-radius: var(--r-field); }
.rm-seg-end { border-top-right-radius: var(--r-field); border-bottom-right-radius: var(--r-field); }
.rm-seg-done { color: var(--muted); background: var(--raised); }
.rm-frame { position: relative; display: flex; width: 100%; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); }
.rm-frame:hover { text-decoration: none; color: var(--text); }
.rm-thumb {
  position: relative; display: grid; place-items: center;
  width: 100%; height: 84px;
  color: var(--text);
  background: repeating-conic-gradient(var(--checker-a) 0 25%, var(--checker-b) 0 50%) 0 0 / 16px 16px;
  border: 1px solid var(--line); border-radius: var(--r-btn);
  transition: border-color .12s;
}
.rm-thumb .px { position: relative; z-index: 1; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.rm-thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rm-done .rm-thumb::after { background: rgba(255,90,90,.20); }      /* OnionPrevious */
.rm-planned .rm-thumb::after { background: rgba(74,163,255,.20); }  /* OnionNext */
.rm-planned .rm-thumb .px { opacity: .7; }
.rm-frame:hover .rm-thumb { border-color: var(--muted); }
.rm-work .rm-thumb { border: 2px solid var(--accent-fg); }
.rm-work .rm-label { color: var(--accent-fg); }
.rm-frame.rm-work::before {
  content: ""; position: absolute; top: -12px; left: 50%; margin-left: -6px; z-index: 2;
  border: 6px solid transparent; border-top: 7px solid var(--accent-fg); border-bottom: 0;
  animation: rm-blink 1.1s steps(2, jump-none) infinite;
}
@keyframes rm-blink { 50% { opacity: .25; } }
.rm-label { font-size: 12px; }

.roadmap { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.rm-step { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; }
.rm-step::before, .rm-now::after {
  content: ""; position: absolute; left: 37px; top: 0; bottom: -16px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 11px);
}
.rm-step.rm-done::before { background: var(--accent); }
.rm-step:last-child::before { bottom: 0; }
.rm-mark {
  position: relative; z-index: 1; margin-top: 8px;
  display: grid; place-items: center; height: 30px;
  font-size: 13px; color: var(--muted);
  background: var(--panel); border: 1px dashed var(--line); border-radius: var(--r-btn);
}
.rm-done .rm-mark { color: var(--on-accent); background: var(--accent); border: 1px solid var(--accent); }
.rm-work .rm-mark { color: var(--accent-fg); background: var(--selection); border: 1px solid var(--accent-fg); }
.rm-card { transition: border-color .12s; }
.rm-planned .rm-card { border-style: dashed; }
.rm-work .rm-card { border-color: var(--accent); }
.rm-work .rm-card .panel-head { background: var(--selection); }
.rm-card .panel-head { flex-wrap: wrap; }
.rm-status {
  margin-left: auto; padding: 1px 8px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-btn);
}
.rm-done .rm-status { color: var(--accent-fg); border-color: var(--accent); background: rgba(47,107,216,.12); }
.rm-work .rm-status { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.rm-feats {
  list-style: none; margin: 0; padding: 12px 14px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 8px 20px;
}
.rm-feats li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 15px; }
.rm-feats .px { margin-top: 3px; color: var(--text); }
.rm-done .rm-feats .px { color: var(--accent-fg); }
.rm-step:target .rm-card { border-color: var(--accent-fg); }

/* testina "oggi": la linea del frame corrente della timeline */
.rm-now { position: relative; height: 26px; margin: -2px 0; }
.rm-now::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--accent-fg); }
.rm-now::after { background: var(--accent); bottom: 50%; }
.rm-now-label {
  position: absolute; left: 0; top: 0; z-index: 1;
  min-width: 76px; height: 26px; padding: 0 10px;
  display: grid; place-items: center;
  font-size: 12px; white-space: nowrap;
  color: var(--bg); background: var(--accent-fg); border-radius: var(--r-btn);
}
.rm-note { margin: 20px 0 0 92px; }

/* ------------------------------------------------------------ download */
.page-head { padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -.02em; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }
.badge {
  display: inline-block; margin: 0 0 16px;
  padding: 3px 10px; font-size: 13px;
  color: var(--accent-fg); border: 1px solid var(--accent); border-radius: var(--r-btn);
  background: rgba(47,107,216,.12);
}
.note { padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent-fg); border-radius: var(--r-btn); width: fit-content; margin-top: 0; }
.packages { padding-top: 40px; padding-bottom: 40px; }
.platform { font-size: 20px; margin: 8px 0 16px; color: var(--muted); font-weight: 600; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-bottom: 24px; }
.pkg .panel-body { display: flex; flex-direction: column; gap: 14px; height: calc(100% - 45px); }
.pkg .panel-body p { margin: 0; flex: 1; }
.pkg .btn { align-self: flex-start; }
.pkg-main { border-color: var(--accent); }
.file-info { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 12px; }
.file-info dt { color: var(--muted); }
.file-info dd { margin: 0; color: var(--text); word-break: break-all; }
.hash { color: var(--muted) !important; }
.store { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; margin-bottom: 24px; }
.store h2, .store h3 { margin: 0 0 .3em; font-size: 20px; }
.store p { margin: 0; color: var(--muted); }
.mac-soon { display: flex; align-items: center; gap: 10px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.steps, .ticks { margin: 0; padding-left: 20px; }
.steps li, .ticks li { margin-bottom: 8px; }
.code { margin: 0; padding: 10px 12px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-field); overflow-x: auto; color: var(--text); font-size: 13px; }

.changelog { color: #CFCFCF; }
.changelog h3 { font-size: 18px; margin-top: 1.4em; color: var(--text); }
.changelog h4 { font-size: 15px; margin-top: 1.2em; color: var(--accent-fg); text-transform: uppercase; letter-spacing: .06em; }
.changelog ul, .prose ul { list-style: none; padding: 0; margin: 0 0 1em; }
.changelog li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.changelog li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; background: var(--accent-fg); }
.changelog code { background: var(--panel); padding: 1px 5px; border-radius: var(--r-field); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-panel); }
.versions { width: 100%; border-collapse: collapse; font-size: 15px; }
.versions th, .versions td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.versions thead th { background: var(--panel); color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.versions tbody tr:last-child > * { border-bottom: 0; }
.versions tbody tr:hover { background: var(--panel); }
.tag { display: inline-block; padding: 1px 8px; margin: 2px 0; font-size: 12px; font-weight: 600; color: var(--text); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-btn); }
.tag:hover { background: var(--hover); text-decoration: none; }

.prose h2 { font-size: 22px; margin-top: 1.6em; }
.prose p { color: #CFCFCF; }
.prose .table-scroll { margin: 0 0 1em; }

.notfound { padding: 96px 0; border: 0; }
.big-code { font-size: 96px; line-height: 1; color: var(--line); margin-bottom: 12px; }

/* ------------------------------------------------------------ guida */
.guide { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.guide-section { padding-top: 32px; }
.guide-toc { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 4px; }
.guide-search input {
  width: 100%; padding: 8px 10px; font: inherit; font-size: 14px;
  color: var(--text); background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--r-field);
}
.guide-search input:focus { border-color: var(--accent); outline: none; }
.guide-none { margin: 8px 0 0; }
.guide-toc-box { margin-top: 14px; }
.guide-toc-box summary { cursor: pointer; list-style: none; }
.guide-toc-box summary::-webkit-details-marker { display: none; }
.guide-toc ol { list-style: none; margin: 6px 0 0; padding: 0; }
.guide-toc li a {
  display: flex; align-items: center; gap: 8px; padding: 5px 8px;
  color: var(--muted); font-size: 14px; border-radius: var(--r-btn); border-left: 2px solid transparent;
}
.guide-toc li a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.guide-toc li a.is-current { color: var(--text); background: var(--panel); border-left-color: var(--accent); }
.guide-toc li a .px { flex: none; color: var(--accent-fg); }
.guide-toc li[hidden] { display: none; }
.guide-body { min-width: 0; }
.guide-sec { padding-bottom: 8px; scroll-margin-top: 76px; }
.guide-sec[hidden] { display: none; }
.guide-sec + .guide-sec { border-top: 1px solid var(--line); margin-top: 24px; }
.guide-sec h2 { display: flex; align-items: center; gap: 12px; margin-top: 1.2em; }
.guide-h-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  color: var(--accent-fg); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-btn);
}
.guide-anchor { margin-left: auto; color: var(--line); font-weight: 400; }
.guide-sec h2:hover .guide-anchor { color: var(--muted); }
.guide-body ul, .guide-body ol { margin: 0 0 1em; padding-left: 0; color: #CFCFCF; }
.guide-body ul { list-style: none; }
.guide-body ul li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.guide-body ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; background: var(--accent-fg); }
.guide-body ol { list-style: none; counter-reset: gstep; }
.guide-body ol li { position: relative; padding-left: 34px; margin-bottom: 8px; counter-increment: gstep; }
.guide-body ol li::before {
  content: counter(gstep); position: absolute; left: 0; top: 0; width: 24px; height: 24px;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  color: var(--on-accent); background: var(--accent); border-radius: var(--r-btn);
}
.guide-body code { background: var(--panel); padding: 1px 5px; border-radius: var(--r-field); font-size: .92em; }
.keys { white-space: nowrap; }
.keys .plus { color: var(--muted); margin: 0 2px; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 6px; text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; line-height: 1.5;
  color: var(--text); background: var(--raised);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--r-btn);
}
.guide-tip {
  display: flex; gap: 12px; align-items: flex-start; margin: 0 0 1em; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-panel);
}
.guide-tip .px { flex: none; margin-top: 3px; color: var(--accent-fg); }
.guide-tip p { margin: 0; }
.guide-code { margin: 0 0 1em; padding: 12px 14px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-field); overflow-x: auto; color: var(--text); font-size: 13px; }
.guide-shot { margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; background: var(--panel); }
.guide-shot img { display: block; width: 100%; height: auto; }
.guide-shot figcaption { padding: 8px 12px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.guide-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 1.2em; }
.guide-gallery figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; background: var(--checker-b); }
.guide-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; }
.guide-gallery figcaption { padding: 6px 10px; font-size: 13px; color: var(--muted); background: var(--panel); border-top: 1px solid var(--line); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.guide-table caption { caption-side: top; text-align: left; padding: 10px 14px; font-weight: 600; color: var(--text); background: var(--panel); border-bottom: 1px solid var(--line); }
.guide-table th, .guide-table td { padding: 8px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide-table thead th { background: var(--panel); color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.guide-table tbody th { font-weight: 600; color: var(--text); }
.guide-table tbody tr:last-child > * { border-bottom: 0; }
.guide-table tbody tr:hover { background: var(--panel); }
.guide-table td { color: #CFCFCF; }
.guide-tools tbody th { white-space: nowrap; }
.guide-tool { display: inline-flex; align-items: center; gap: 8px; }
.guide-tool .px { color: var(--accent-fg); }
.guide-options { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.guide-keys td:last-child, .guide-keys td:first-child { white-space: nowrap; }
.guide-keys tbody th { font-weight: 400; color: #CFCFCF; }
.guide-menus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin-bottom: 1em; }
.guide-menus .table-scroll { margin: 0; }
mark.guide-hit { background: rgba(47, 107, 216, .45); color: var(--text); border-radius: 2px; padding: 0 1px; }

/* ------------------------------------------------------------ lightbox */
.lightbox {
  max-width: min(1320px, 96vw); max-height: 96vh; padding: 0;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-panel);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0,0,0,.8); }
.lightbox img { display: block; max-width: 100%; max-height: calc(96vh - 64px); width: auto; margin: 0 auto; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }

/* ------------------------------------------------------------ schermi piccoli */
@media (max-width: 1120px) {
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 960px) {
  .feature-row, .feature-row-reverse { grid-template-columns: 1fr; gap: 18px; }
  .feature-row-reverse .feature-shot { order: 0; }
  .feature-rows { gap: 40px; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav { display: none; }
  .langs { margin-left: auto; }
  .info-grid, .foot-grid, .shots { grid-template-columns: minmax(0, 1fr); }
  .teaser, .support-row, .store { flex-direction: column; align-items: flex-start; }
  .guide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .guide-toc { position: static; max-height: none; overflow: visible; }
  .guide-menus { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
  .top-row { gap: 12px; }
  .top .btn { display: none; }
  .lang-name { display: none; }
  .brand span { font-size: 17px; }
  .cookie { flex-direction: column; align-items: flex-start; gap: 8px; }
  .slime { width: 64px; height: 64px; background-size: 384px 64px; animation-name: slime-small; }
  .rm-step { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
  .rm-step::before, .rm-now::after { left: 29px; }
  .rm-mark { font-size: 12px; }
  .rm-now-label { min-width: 60px; padding: 0 6px; }
  .rm-note { margin-left: 0; }
  .guide-h-icon { width: 36px; height: 36px; }
  .guide-h-icon .px { width: 24px; height: 24px; }
  .guide-tools thead { display: none; }
  .guide-tools tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--line); }
  .guide-tools tbody tr:last-child { border-bottom: 0; }
  .guide-tools th, .guide-tools td { display: block; border-bottom: 0; }
  .guide-tools tbody th { white-space: normal; }
  .guide-tools td:last-child { grid-column: 1 / -1; padding-top: 0; }
  @keyframes slime-small { to { background-position: -384px 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slime { animation: none; }
  .rm-frame.rm-work::before { animation: none; }
}

/* ------------------------------------------------------------ donate */
.goals { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; }
.goal .panel-head { flex-wrap: wrap; }
.goal .panel-body p { margin: 0 0 8px; }
.goal-status {
  margin-left: auto; padding: 2px 8px; font-size: 12px;
  color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-btn);
}
.goal-current { border-color: var(--accent); }
.goal-current .panel-head { background: var(--selection); }
.goal-current .panel-body { color: var(--text); }
.goal-current .goal-status { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.goal-reached .goal-status { color: var(--accent-fg); border-color: var(--accent); background: rgba(47,107,216,.12); }
.goal-amount { color: var(--accent-fg); font-size: 18px; }
.donate-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
.donate-cta .btn { gap: 10px; }
.donate-cta p { margin: 0; }
.support .btn { gap: 8px; }
.donate-other { padding-left: 1.2em; }
.donate-other li { margin-bottom: 6px; }
.donate-top { gap: 10px; margin-top: 8px; }
.donate-next { margin-bottom: 16px; }
