:root {
  --paper: #f5f4f0;
  --white: #ffffff;
  --ink: #1d1d1b;
  --muted: #66655f;
  --line: #dcdad3;
  --line-2: #c9c6bd;
  --accent: #d9480f;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: inline-block; vertical-align: middle; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .86em; background: var(--white); border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; word-break: break-word; }
kbd { font-family: var(--mono); font-size: .8em; padding: 1px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; background: var(--white); white-space: nowrap; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(245, 244, 240, .94); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; text-decoration: none; font-size: 17px; }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.links a { text-decoration: none; color: var(--muted); }
.links a:hover { color: var(--ink); }

.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 4px; border: 1px solid var(--ink); }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-small { padding: 6px 14px; font-size: 14px; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }
.link { color: var(--ink); font-weight: 500; text-underline-offset: 4px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }

/* hero */
.hero { padding-top: 72px; padding-bottom: 40px; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 0 0 16px; }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -.025em; margin: 0; font-weight: 700; }
.lead { font-size: clamp(17px, 2vw, 20px); color: #3d3c38; max-width: 680px; margin: 22px 0 0; }
.lead em { font-style: normal; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

h2 { font-size: 28px; letter-spacing: -.015em; margin: 0 0 10px; }
h3 { font-size: 17px; margin: 0 0 6px; }
.section { padding-top: 70px; padding-bottom: 10px; }
.section-lead { color: var(--muted); max-width: 640px; margin: 0 0 28px; }

/* demo */
.demo-wrap { padding-top: 30px; position: relative; }
.demo-head p { color: var(--muted); margin: 0 0 16px; max-width: 760px; }
.only-touch { display: none; }
@media (hover: none) { .only-touch { display: block; } .only-desktop { display: none; } }

.explorer { position: relative; background: var(--white); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(0, 0, 0, .35); overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; font-family: "Segoe UI", system-ui, sans-serif; font-size: 14px; }
.ex-title { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #ebebeb; background: #fafafa; }
.ex-path { color: #444; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-reset { margin-left: auto; font: inherit; font-size: 12.5px; color: #555; background: #fff; border: 1px solid #d5d5d5; border-radius: 4px; padding: 3px 10px; cursor: pointer; flex: none; }
.ex-reset:hover { background: #f2f2f2; }
.ex-cols, .ex-row { display: grid; grid-template-columns: 1fr 150px 100px; gap: 10px; align-items: center; padding: 0 14px; }
.ex-cols { font-size: 12.5px; color: #777; height: 32px; border-bottom: 1px solid #f0f0f0; }
.r { text-align: right; }
.ex-list { list-style: none; margin: 0; padding: 4px 0; min-height: 330px; }
.ex-row { height: 34px; cursor: default; border: 1px solid transparent; margin: 1px 4px; border-radius: 3px; }
.ex-row:hover { background: #f3f6fb; }
.ex-row.sel { background: #dbe8fb; border-color: #c2d6f4; }
.ex-row.new { animation: newrow 1.6s ease-out; }
@keyframes newrow { from { background: #fde7d9; } }
.ex-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ex-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-name .fi { flex: none; width: 18px; height: 20px; }
.ex-type, .ex-size { color: #666; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-size { text-align: right; }
.ex-note { flex: none; font-size: 11px; background: #f3e39a; color: #4a3f0e; border: 1px solid #dcc96d; padding: 0 5px; border-radius: 2px; }
.ex-status { font-size: 12.5px; color: #666; padding: 6px 14px; border-top: 1px solid #ebebeb; background: #fafafa; }
@media (max-width: 640px) {
  .ex-cols, .ex-row { grid-template-columns: 1fr 70px; }
  .ex-type, .ex-cols span:nth-child(2) { display: none; }
}

/* menu circolare (stesso stile dell'app) */
.ring { position: absolute; left: 0; top: 0; width: 400px; height: 400px; margin: -200px 0 0 -200px; pointer-events: none; opacity: 0; transform: scale(.92); transition: opacity .1s linear, transform .12s ease-out; z-index: 5; }
.ring.open { opacity: 1; transform: none; pointer-events: auto; }
.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .35)); }
.ring-disc { fill: #232323; stroke: #3a3a3a; }
.ring-wedge { fill: #303030; opacity: 0; }
.ring-wedge.on { opacity: 1; }
.ring-center { fill: #1b1b1b; stroke: #343434; }
#dividers line { stroke: #343434; }
.r-item { position: absolute; left: 200px; top: 200px; width: 96px; margin: -24px 0 0 -48px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #d0d0d0; font-family: "Segoe UI", system-ui, sans-serif; }
.r-item span { font-size: 11.5px; line-height: 1.2; text-align: center; color: #b9b9b9; }
.r-item.sel, .r-item.sel span { color: #fff; }
.r-item.sel svg { color: var(--accent); }
.ring-label { position: absolute; left: 140px; top: 140px; width: 120px; height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #eee; font-family: "Segoe UI", system-ui, sans-serif; padding: 10px; }
.ring-label #rcIcon { color: #999; height: 22px; }
.ring-label b { font-size: 12px; font-weight: 600; line-height: 1.2; max-width: 96px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.ring-label small { font-size: 10.5px; color: #8d8d8d; line-height: 1.25; max-width: 100px; }
@media (max-width: 520px) { .ring { transform: scale(.8); } .ring.open { transform: scale(.86); } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; background: #262626; color: #eee; border: 1px solid #3a3a3a; border-radius: 6px; padding: 10px 16px; font-family: "Segoe UI", system-ui, sans-serif; font-size: 14px; display: flex; gap: 10px; align-items: baseline; max-width: calc(100% - 32px); z-index: 50; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: #fff; white-space: nowrap; }
.toast span { color: #bbb; }

/* cosa fa */
.types { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.type { padding: 18px 20px 6px 0; }
.type + .type { padding-left: 20px; border-left: 1px solid var(--line); }
.type ul { margin: 10px 0 0; padding: 0; list-style: none; font-size: 15.5px; }
.type li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.tag { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 860px) { .types { grid-template-columns: 1fr 1fr; } .type:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .types { grid-template-columns: 1fr; } .type + .type { padding-left: 0; border-left: 0; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); margin-top: 18px; }
.features article { padding: 20px 22px 22px 0; border-bottom: 1px solid var(--line); }
.features article:not(:nth-child(3n + 1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.features p { margin: 0; color: #4a4944; font-size: 15.5px; }
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
  .features article:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .features article:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .features article:nth-child(2n) { padding-left: 0; border-left: 0; } }

.offline p { max-width: 720px; color: #3d3c38; margin: 0; }

.download { display: flex; gap: 26px; align-items: flex-start; }
.download > div { border-top: 2px solid var(--ink); padding-top: 16px; flex: 1; }
.download p { margin: 0; color: #3d3c38; }
.download .small { font-size: 14px; color: var(--muted); margin-top: 18px; max-width: 640px; }
@media (max-width: 560px) { .download { flex-direction: column; } }

.faq { border-top: 2px solid var(--ink); margin-top: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: #3d3c38; max-width: 760px; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 50px; padding-bottom: 40px; margin-top: 60px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot span:first-child { color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 7px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .links { display: none; }
  .nav-in .btn-small { margin-left: auto; }
  .hero { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

section[id] { scroll-margin-top: 72px; }
