/* cvradar.bais.info — gli stessi colori e lo stesso carattere dell'app. */

@font-face { font-family: Onest; src: url(/fonts/onest-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Onest; src: url(/fonts/onest-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Onest; src: url(/fonts/onest-cyrillic-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; src: url(/fonts/onest-cyrillic-ext-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  --bg: #f3f5f8; --surface: #ffffff; --sunk: #e9edf2; --ink: #1c2433; --muted: #5b6577; --line: #dce1e8;
  --signal: #0f7b83; --signal-ink: #ffffff; --signal-soft: #d9eff1; --signal-hover: #0b636a;
  --yes: #2e8b57; --maybe: #a97a1f; --no: #b2483f;
  --shadow: 0 1px 2px rgba(28, 36, 51, .06), 0 12px 32px rgba(28, 36, 51, .09);
  --r-s: 6px; --r-m: 10px; --r-l: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a26; --surface: #1b2232; --sunk: #111723; --ink: #e6eaf0; --muted: #9aa4b5; --line: #2a3346;
    --signal: #45b8c0; --signal-ink: #0d1a1c; --signal-soft: #17353a; --signal-hover: #6ccbd2;
    --yes: #4db37c; --maybe: #d6a946; --no: #d86b62;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 Onest, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, dl, dd, figure { margin: 0; }
a { color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal-hover); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
code { font: inherit; font-size: .92em; background: var(--sunk); padding: 1px 4px; border-radius: 5px; white-space: nowrap; }

.wrap { width: 100%; max-width: 1224px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--r-m); box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------- barra */
.bar { border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 620; font-size: 1.15rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.sections { display: flex; gap: 4px; margin-left: auto; }
.sections a { color: var(--muted); text-decoration: none; font-size: .94rem; padding: 6px 10px; border-radius: var(--r-s); }
.sections a:hover { color: var(--ink); background: var(--sunk); }
.langs ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-m); }
.langs a { display: block; color: var(--muted); text-decoration: none; font-size: .82rem; font-weight: 560; padding: 4px 8px; border-radius: var(--r-s); letter-spacing: .02em; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { background: var(--signal-soft); color: var(--signal); }
.sections + .langs { margin-left: 8px; }

/* ------------------------------------------------------------- eroe */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 64px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(2.35rem, 1.1rem + 4.3vw, 4.5rem); font-weight: 660; line-height: 1.02;
  letter-spacing: -.035em; max-width: 13ch;
}
.lede { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); line-height: 1.55; color: var(--muted); max-width: 34em; }
.hero .lede { margin-top: 24px; color: var(--ink); opacity: .86; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 12px 22px; border-radius: var(--r-m); font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.btn.primary { background: var(--signal); color: var(--signal-ink); }
.btn.primary:hover { background: var(--signal-hover); color: var(--signal-ink); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--signal); color: var(--ink); }
.note { margin-top: 16px; font-size: .94rem; color: var(--muted); }

/* Il pulsante principale dipende dal sistema riconosciuto (data-os, messo da
   uno script inline). Senza script, o su un telefono, si va alla sezione
   download, dove ci sono tutte le versioni. */
.cta-win, .cta-mac, .cta-linux, .cta-android { display: none; }
html[data-os="win"] .cta-win, html[data-os="mac"] .cta-mac, html[data-os="linux"] .cta-linux, html[data-os="android"] .cta-android { display: inline-flex; }
html[data-os="win"] .cta-any, html[data-os="mac"] .cta-any, html[data-os="linux"] .cta-any, html[data-os="android"] .cta-any { display: none; }
.mobile-only { display: none; }
html[data-os="mobile"] .mobile-only { display: block; }

/* ------------------------------------------------------------- radar */
.hero-radar { justify-self: center; width: 100%; max-width: 520px; }
.radar { width: 100%; height: auto; overflow: visible; }
.radar .grid circle { fill: none; stroke: var(--line); stroke-width: 1.25; }
.radar .grid circle:first-child { fill: var(--surface); }
.radar .grid line { stroke: var(--line); stroke-width: 1.25; }
.radar .ringlabel { fill: var(--muted); font: 500 11px Onest, system-ui, sans-serif; }
.radar .slice { fill: var(--signal); fill-opacity: .028; }
.radar .edge { stroke: var(--signal); stroke-width: 1.6; stroke-opacity: .75; stroke-linecap: round; }
.radar .hub { fill: var(--muted); }
.radar .dot { stroke: var(--surface); stroke-width: 2.5; }
.radar .dot.yes { fill: var(--yes); }
.radar .dot.maybe { fill: var(--maybe); }
.radar .dot.todo { fill: var(--signal); }
.radar .dot.no { fill: var(--no); }
.radar .dot.hollow { fill: var(--surface); stroke-width: 2.25; }
.radar .dot.hollow.todo { stroke: var(--signal); }
.radar .dot.hollow.no { stroke: var(--no); }
.radar .ping { fill: none; stroke: var(--yes); stroke-width: 2; opacity: 0; }

/* Un solo momento in movimento: il fascio fa un giro, i candidati compaiono
   quando ci passa sopra, il migliore manda un'eco. Poi tutto sta fermo. */
@media (prefers-reduced-motion: no-preference) {
  .radar .sweep { transform-box: view-box; transform-origin: 200px 200px; animation: sweep 2.6s cubic-bezier(.4, 0, .25, 1) .35s both; }
  .radar .dot { transform-box: fill-box; transform-origin: center; animation: blip .55s cubic-bezier(.2, .9, .3, 1.35) both; }
  .radar .ping { transform-box: fill-box; transform-origin: center; animation: ping 1.3s cubic-bezier(.2, .6, .3, 1) both; }
}
@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes blip { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes ping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.4); } }

.hero-radar figcaption { display: grid; justify-items: center; gap: 8px; margin-top: 14px; text-align: center; font-size: .9rem; color: var(--muted); }
.radar-cap { color: var(--ink); font-weight: 560; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.key { display: inline-flex; align-items: center; gap: 7px; }
.key::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.key.yes::before { background: var(--yes); }
.key.maybe::before { background: var(--maybe); }
.key.todo::before { background: var(--signal); }
.key.no::before { background: var(--no); }
.key.hollow { display: inline; }
.key.hollow::before { display: inline-block; border: 2px solid var(--muted); margin-right: 7px; vertical-align: -1px; }

/* ------------------------------------------------------------- screenshot */
.shot img { width: 100%; height: auto; border-radius: var(--r-l); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.shot figcaption { margin-top: 14px; font-size: .92rem; color: var(--muted); max-width: 62ch; }

/* ------------------------------------------------------------- sezioni */
.block { padding-block: clamp(64px, 9vw, 120px); }
.block h2 { font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 640; line-height: 1.08; letter-spacing: -.025em; max-width: 18ch; }
.block h2 + .lede { margin-top: 16px; }
.aside { margin-top: 24px; font-size: .95rem; color: var(--muted); max-width: 46ch; border-left: 2px solid var(--signal); padding-left: 14px; }

/* Come funziona: e' davvero una sequenza, quindi i numeri. */
.how-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 32px 60px; counter-increment: step; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--signal);
  color: var(--signal); font-weight: 660; font-size: .98rem; background: var(--bg);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 6px; width: 2px; background: var(--line); }
.steps h3 { font-size: 1.22rem; font-weight: 620; letter-spacing: -.01em; line-height: 1.3; }
.steps p { margin-top: 6px; color: var(--muted); max-width: 52ch; }
.keys { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px !important; color: var(--ink) !important; font-size: .94rem; }
.keys span { display: inline-flex; align-items: center; gap: 6px; }
kbd {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 7px;
  font: 600 .88rem Onest, system-ui, sans-serif; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 7px;
}
kbd.k-yes { border-bottom-color: var(--yes); color: var(--yes); }
kbd.k-maybe { border-bottom-color: var(--maybe); color: var(--maybe); }
kbd.k-no { border-bottom-color: var(--no); color: var(--no); }
.shot-side { position: sticky; top: 28px; margin-top: 8px; justify-self: end; width: 100%; max-width: 440px; }

/* Fonti */
.sources { border-top: 1px solid var(--line); }
.sources-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.sources-head { position: sticky; top: 28px; }
.source-list { list-style: none; margin: 0; padding: 0; }
.source-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.source-list li:last-child { border-bottom: 1px solid var(--line); }
.source-list li:first-child { padding-top: 6px; border-top: 0; }
.ico { width: 30px; height: 30px; color: var(--signal); margin-top: 1px; }
.source-list h3 { font-size: 1.12rem; font-weight: 620; }
.source-list p { margin-top: 4px; color: var(--muted); max-width: 58ch; }

/* Privacy */
.privacy { background: var(--sunk); }
.privacy-head { max-width: 640px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px clamp(32px, 5vw, 72px); margin-top: 48px; }
.facts div { padding: 20px 0 24px; border-top: 2px solid var(--ink); }
.facts dt { font-weight: 640; font-size: 1.12rem; letter-spacing: -.005em; }
.facts dd { margin-top: 6px; color: var(--muted); max-width: 52ch; }
.privacy .aside { max-width: 62ch; margin-top: 20px; }

/* Download */
.platforms { margin-top: 40px; }
.platform {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center;
  padding: 22px 20px; border-top: 1px solid var(--line); border-radius: 0;
}
.platform:last-child { border-bottom: 1px solid var(--line); }
.platform h3 { font-size: 1.3rem; font-weight: 640; letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.platform-name p { margin-top: 2px; color: var(--muted); font-size: .95rem; }
.yours { display: none; font-size: .78rem; font-weight: 600; letter-spacing: 0; color: var(--signal); background: var(--surface); padding: 2px 9px; border-radius: 99px; }
.files { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.file {
  display: grid; gap: 1px; min-width: 210px; padding: 10px 16px; border-radius: var(--r-m);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
}
.file b { font-weight: 620; font-size: .98rem; }
.file span { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.file:hover { border-color: var(--signal); color: var(--ink); }
.file.main { border-color: var(--signal); }
html[data-os="win"] .p-win, html[data-os="mac"] .p-mac, html[data-os="linux"] .p-linux, html[data-os="android"] .p-linux {
  background: var(--signal-soft); border-radius: var(--r-l); border-color: transparent;
}
html[data-os="win"] .p-win + .platform, html[data-os="mac"] .p-mac + .platform { border-top-color: transparent; }
html[data-os="win"] .p-win .yours, html[data-os="mac"] .p-mac .yours, html[data-os="linux"] .p-linux .yours, html[data-os="android"] .p-linux .yours { display: inline-block; }
html[data-os="win"] .p-win .file.main, html[data-os="mac"] .p-mac .file.main, html[data-os="linux"] .p-linux .file.main, html[data-os="android"] .p-linux .file.main { background: var(--signal); color: var(--signal-ink); }
html[data-os="win"] .p-win .file.main span, html[data-os="mac"] .p-mac .file.main span, html[data-os="linux"] .p-linux .file.main span, html[data-os="android"] .p-linux .file.main span { color: inherit; opacity: .82; }
html[data-os="win"] .p-win .file.main:hover, html[data-os="mac"] .p-mac .file.main:hover, html[data-os="linux"] .p-linux .file.main:hover, html[data-os="android"] .p-linux .file.main:hover { background: var(--signal-hover); }

.release { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.release a { margin-left: 4px; }
.first-run { margin-top: 48px; max-width: 860px; }
.first-run h3 { font-size: 1.15rem; font-weight: 640; }
.first-run dl { margin-top: 12px; }
.first-run dl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.first-run dt { font-weight: 600; }
.first-run dd { color: var(--muted); max-width: 62ch; }
.donate { margin-top: 48px; padding: 20px 0 0; border-top: 1px solid var(--line); max-width: 62ch; }

/* ------------------------------------------------------------- piede */
.foot { border-top: 1px solid var(--line); padding-block: 32px 48px; font-size: .92rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.foot-about { max-width: 46ch; }
.foot ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* ------------------------------------------------------------- documenti */
.legal { padding-block: 28px 88px; }
.back { font-size: .94rem; }
.doc { max-width: 72ch; margin-top: 28px; }
.doc h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 650; line-height: 1.12; letter-spacing: -.02em; }
.doc h2 { font-size: 1.32rem; font-weight: 630; margin-top: 2.2em; line-height: 1.25; }
.doc h3 { font-size: 1.1rem; font-weight: 620; margin-top: 1.6em; }
.doc p, .doc ul, .doc ol { margin: .9em 0 0; line-height: 1.68; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: .35em; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.doc a { overflow-wrap: anywhere; }
.doc code { white-space: normal; overflow-wrap: anywhere; }

/* 404 */
.empty main { min-height: 80vh; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; }
.empty h1 { font-size: 4rem; font-weight: 660; letter-spacing: -.03em; }
.empty p a { margin: 0 6px; }

/* ------------------------------------------------------------- larghezze */
@media (max-width: 980px) {
  .how-in, .sources-in { grid-template-columns: minmax(0, 1fr); }
  .shot-side, .sources-head { position: static; }
  .shot-side { justify-self: start; }
}
@media (max-width: 860px) {
  .sections { display: none; }
  .langs { margin-left: auto; }
}
@media (max-width: 760px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-radar { max-width: 340px; }
  .hero h1 { max-width: 14ch; }
  .facts { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .platform { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; }
  .files { justify-content: flex-start; }
  .first-run dl div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .actions .btn { flex: 1 1 100%; }
  .file { min-width: 0; flex: 1 1 100%; }
  .hero-radar { max-width: 300px; }
}

/* generato da build.mjs */
.radar .c0{animation-delay:1.04s}
.radar .c1{animation-delay:1.63s}
.radar .c2{animation-delay:1.30s}
.radar .c3{animation-delay:0.78s}
.radar .c4{animation-delay:1.92s}
.radar .c5{animation-delay:1.17s}
.radar .c6{animation-delay:1.44s}
.radar .c7{animation-delay:2.48s}
.radar .c8{animation-delay:0.97s}
.radar .ping{animation-delay:2.85s}
