/* justos.dev: sempre scuro. La home è un racconto che segue lo scroll, senza bloccarlo.
   Tutti gli stati nascosti stanno sotto .motion: senza JavaScript o con meno movimento si legge tutto, fermo. */

/* Allo, di Josh Puckett (SIL OFL 1.1, vedi /fonts/Allo-OFL.txt) */
@font-face { font-family: "Allo"; src: url("/fonts/AlloVariableFriendly.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0b0a;
  --raise: #181816;
  --raise-2: #222220;
  --text: #f2efe6;
  --muted: #9a958a;
  --dim: rgba(242, 239, 230, .2);
  --line: rgba(242, 239, 230, .12);
  --orange: #ff5a1f;
  --ink: #141414;
  --ok: #5cc48a;
  --part: #f0a540;
  --no: #8f8a7e;
  --gutter: clamp(18px, 5vw, 72px);
  --max: 1320px;
  --bar: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 24px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Allo, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: var(--ink); }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 850; letter-spacing: -.035em; line-height: 1; text-wrap: balance; overflow-wrap: break-word; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--orange); }
p { margin: 0; }
.lede { max-width: 38em; font-size: 18px; color: var(--muted); }
.sub { margin-top: 20px; max-width: 36em; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.fine { margin-top: 20px; max-width: 52em; font-size: 14px; color: var(--muted); }
.frame { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.shot-frame { border-radius: clamp(12px, 1.4vw, 20px); overflow: hidden; background: #1b1a18; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.shot-frame img { width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

code, kbd, pre { font-family: var(--mono); font-size: .86em; }
code { background: color-mix(in srgb, var(--text) 7%, transparent); padding: .12em .4em; border-radius: 6px; }
kbd { display: inline-block; padding: 0 .5em; line-height: 1.6; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 7px; background: var(--bg); }
pre { margin: .8em 0; padding: 16px 18px; border-radius: 14px; background: #1b1a18; color: var(--text); overflow-x: auto; line-height: 1.55; }
pre code { background: none; padding: 0; color: inherit; font-size: .86rem; }
h3 code { font-size: .7em; font-weight: 400; margin-left: .5em; vertical-align: .12em; letter-spacing: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 60; background: var(--orange); color: var(--ink); padding: 8px 14px; border-radius: 999px; }

/* Il marchio */
.name { font-family: "Google Sans Flex", Allo, system-ui, sans-serif; font-variation-settings: "ROND" 100; font-weight: 200; letter-spacing: -.02em; white-space: nowrap; }
.just { position: relative; font-weight: 600; }
.just i { position: absolute; left: .016em; top: .206em; width: .2em; height: .2em; border-radius: 50%; background: var(--orange); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 24px; line-height: 1; }
.brand:hover { color: inherit; }

/* Bottoni */
.btn { display: inline-flex; flex-direction: column; gap: 1px; padding: 14px 26px 13px; border-radius: 999px; text-decoration: none; line-height: 1.2; white-space: nowrap; transition: transform .3s var(--ease), background-color .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-label { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.btn-meta { font-size: 13px; font-weight: 600; opacity: .75; }
.btn-main { background: var(--orange); color: var(--ink); }
.btn-main:hover { background: #ff6f3a; color: var(--ink); }
.btn-quiet { background: var(--text); color: var(--bg); }
.btn-quiet:hover { background: #fff; color: var(--bg); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(242, 239, 230, .3); }
.btn-ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn-xl { padding: 18px clamp(24px, 3vw, 36px) 16px; }
.btn-xl .btn-label { font-size: clamp(20px, 2.2vw, 26px); }
button.btn { border: 0; font: inherit; cursor: pointer; text-align: left; }
.link { font-weight: 750; text-decoration: none; }
@media (max-width: 380px) { .btn { white-space: normal; } }

/* La barra in alto */
.bar { position: sticky; top: 0; z-index: 50; height: var(--bar); border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); transition: border-color .2s; }
.bar.scrolled { border-bottom-color: var(--line); }
.bar-in { display: flex; align-items: center; gap: 28px; height: 100%; }
.bar-nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 650; }
.bar-nav a { color: var(--muted); text-decoration: none; }
.bar-nav a:hover, .bar-nav a[aria-current="page"] { color: var(--text); }
.pill { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; background: var(--orange); color: var(--ink); font-weight: 800; font-size: 15px; text-decoration: none; transition: background-color .15s; }
.pill:hover { background: #ff6f3a; color: var(--ink); }
@media (max-width: 720px) {
  .bar-nav { display: none; }
  .pill { margin-left: auto; }
}

/* Comparsa leggera mentre scorri */
.motion .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion .rv.in { opacity: 1; transform: none; }

.sec { padding-block: clamp(88px, 14vh, 180px); }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec h2 { font-size: clamp(40px, 6.4vw, 96px); }
.next { justify-self: center; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--muted); text-decoration: none; font-size: 20px; transition: opacity .4s, border-color .15s; }
.next:hover { border-color: var(--text); color: var(--text); }
@keyframes bob { 50% { transform: translateY(6px); } }

/* 1. La chat di ottobre */
.origin { display: grid; grid-template-rows: minmax(0, 1fr); min-height: calc(100svh - var(--bar)); }
.motion .origin { height: calc(100svh - var(--bar)); min-height: 360px; }
.origin-in { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px; min-height: 0; max-width: calc(720px + 2 * var(--gutter)); padding-block: 20px 24px; }
.day { justify-self: center; padding: 5px 12px; border-radius: 999px; background: var(--raise); color: var(--muted); font-size: 13px; font-weight: 700; }
.chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: clamp(14px, min(2.1svh, 4.2vw), 19px); line-height: 1.35; }
.chat::before { content: ""; flex: 1 0 0; }
.motion .chat { min-height: 0; overflow-y: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent, #000 56px); mask-image: linear-gradient(transparent, #000 56px); }
.motion .chat::-webkit-scrollbar { display: none; }
.m { max-width: 80%; padding: .5em .8em .45em; border-radius: 1.1em; overflow-wrap: anywhere; }
.m time { margin-left: .7em; font-size: .68em; opacity: .5; white-space: nowrap; }
.m.a { align-self: flex-end; background: var(--text); color: var(--ink); border-bottom-right-radius: .3em; transform-origin: 100% 100%; }
.m.b { align-self: flex-start; background: var(--raise-2); border-bottom-left-radius: .3em; transform-origin: 0 100%; }
.m.a.big { max-width: 88%; font-size: 1.55em; font-weight: 850; line-height: 1.15; letter-spacing: -.02em; background: var(--orange); color: var(--ink); }
.m.photo { width: 11.5em; max-width: 70%; padding: .3em; }
.m.photo img { width: 100%; border-radius: .85em; }
.m.photo figcaption { padding: .35em .5em .15em; }
.m.a + .m.b, .m.b + .m.a { margin-top: 8px; }
.m.typing { display: inline-flex; gap: .28em; padding: .8em .9em; }
.m.typing i { width: .42em; height: .42em; border-radius: 50%; background: currentColor; opacity: .35; animation: dot 1s infinite; }
.m.typing i:nth-child(2) { animation-delay: .15s; }
.m.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: .9; transform: translateY(-.25em); } }
.motion .chat > li:not(.shown) { display: none; }
.motion .chat > li.shown { animation: pop .34s var(--ease) both; }
.motion .chat.all > li { animation: none; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.motion .origin:not(.done) .next { opacity: 0; visibility: hidden; }
.origin.done .next { animation: bob 2.4s var(--ease) infinite; }

/* 2. So we did. Il titolo nasce dai pezzi del logo */
.hero { position: relative; display: grid; align-content: center; min-height: calc(100svh - var(--bar)); padding-block: 48px 104px; }
.kicker { margin-bottom: .35em; font-size: clamp(20px, 3vw, 36px); font-weight: 750; letter-spacing: -.02em; color: var(--muted); }
.hero h1 { font-size: clamp(56px, 17vw, 240px); line-height: .9; letter-spacing: -.045em; }
.hero .lede { max-width: 34em; margin-top: 28px; font-size: clamp(17px, 1.6vw, 21px); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero > .next { position: absolute; left: 50%; bottom: 28px; margin-left: -24px; animation: bob 2.4s var(--ease) infinite; }

.word { display: inline-block; white-space: nowrap; }
.ch { position: relative; display: inline-block; }
.ch .g { display: inline-block; }
.ch .sh { --z: .62em; position: absolute; left: 50%; bottom: .07em; width: var(--z); height: var(--z); margin-left: calc(var(--z) / -2); background: var(--text); border-radius: 8%; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.motion [data-shapes]:not(.done) .g { opacity: 0; }
.sh.p0 { border-radius: 100% 8% 8% 8%; }
.sh.p1 { border-radius: 8%; }
.sh.p2 { border-radius: 50%; background: var(--orange); }
.sh.p3 { border-radius: 8% 8% 100% 8%; }
.ch.dot .sh { --z: .2em; }

/* 3. Non eravamo solo noi */
.us .big-h { margin-bottom: clamp(40px, 6vw, 80px); font-size: clamp(44px, 9vw, 140px); }
.wall { list-style: none; margin: 0; padding: 0; font-size: clamp(28px, 5.4vw, 80px); font-weight: 850; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.wall li { padding: .18em 0; }
.punch { margin-top: clamp(64px, 10vw, 140px); font-size: clamp(36px, 7vw, 112px); font-weight: 850; line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.punch.o { margin-top: .3em; color: var(--orange); }
.motion .wall li, .motion .rule { color: var(--dim); transition: color .45s; }
.motion .wall li.lit, .motion .rule.lit { color: var(--text); }

/* 4. Ogni strato, da zero */
.layers-in { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: 24px; }
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 8px; }
.stack li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding: clamp(12px, 1.8svh, 20px) clamp(16px, 2vw, 24px); border-radius: 14px; background: var(--raise); border: 1px solid var(--line); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.ly { font-size: clamp(17px, min(3vw, 3.4svh), 34px); font-weight: 850; letter-spacing: -.03em; line-height: 1.1; }
.log { padding: 0; background: none; font-size: clamp(11px, min(1.6vw, 1.7svh), 15px); color: var(--muted); }
.log b { font-weight: 700; color: var(--orange); }
.stack .desk { background: var(--text); color: var(--ink); border-color: transparent; }
.stack .apps { background: var(--orange); color: var(--ink); border-color: transparent; }
.stack .desk .log, .stack .apps .log { color: rgba(20, 20, 20, .68); }
.stack .desk .log b, .stack .apps .log b { color: var(--ink); }
@media (min-width: 900px) { .layers-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* 5. Il desktop e la barra che cambia forma */
.bar-h { margin-bottom: 24px; font-size: clamp(28px, 3.6vw, 52px); }
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 32px 24px; }
.fr figcaption { margin-top: 12px; max-width: 36em; font-size: 15px; color: var(--muted); }
.motion .frames.rv { transform: scale(.92); }
.motion .frames.rv.in { transform: none; }
.bar-labels { list-style: none; display: none; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; padding: 0; }
.bar-labels li { padding: 6px 14px; border-radius: 999px; background: var(--raise); color: var(--muted); font-size: 14px; font-weight: 700; transition: background-color .25s, color .25s; }
.bar-labels li.on { background: var(--orange); color: var(--ink); }

/* Le sequenze fisse: il palco resta, lo scroll va avanti. Sotto 540 px di altezza restano statiche. */
@media (min-height: 540px) {
  .motion [data-seq]:not(.flat) { height: calc(100svh + var(--steps) * 50svh); padding-block: 0; }
  .motion [data-seq]:not(.flat) .seq-stage { position: sticky; top: var(--bar); height: calc(100svh - var(--bar)); overflow: hidden; display: grid; align-items: center; }
  .motion [data-seq="stack"]:not(.flat) .stack li:not(.on) { opacity: 0; transform: translateY(-48px); }
  .motion [data-seq="frames"]:not(.flat) .seq-in { text-align: center; }
  .motion [data-seq="frames"]:not(.flat) .frames { grid-template-columns: minmax(0, 1fr); width: min(100%, max(260px, calc((100svh - var(--bar) - 300px) * 4 / 3))); margin-inline: auto; }
  .motion [data-seq="frames"]:not(.flat) .fr { grid-area: 1 / 1; opacity: 0; transition: opacity .35s; }
  .motion [data-seq="frames"]:not(.flat) .fr.on { opacity: 1; }
  .motion [data-seq="frames"]:not(.flat) .fr figcaption { margin-inline: auto; }
  .motion [data-seq="frames"]:not(.flat) .bar-labels { display: flex; }
}

/* 6. Il tuo PC non è troppo vecchio */
.vs { width: 100%; margin-top: clamp(32px, 5vw, 56px); border-collapse: collapse; font-size: clamp(16px, 1.5vw, 20px); }
.vs th, .vs td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); }
.vs thead th, .vs thead td { padding-bottom: 12px; border-bottom: 2px solid var(--text); font-size: clamp(18px, 2.2vw, 30px); font-weight: 850; letter-spacing: -.03em; }
.vs thead .us { color: var(--orange); }
.vs tbody th { width: 26%; font-weight: 600; color: var(--muted); }
.vs .j { width: 37%; font-weight: 800; }
.vs .w { color: var(--muted); }
.stats { list-style: none; margin: clamp(56px, 8vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.stats li { padding-top: 16px; border-top: 2px solid var(--text); font-size: 16px; color: var(--muted); }
.stats b { display: block; margin-bottom: 8px; font-size: clamp(44px, 8vw, 150px); font-weight: 850; letter-spacing: -.045em; line-height: 1; color: var(--text); }
@media (max-width: 600px) {
  .vs { font-size: 15px; }
  .vs th, .vs td { padding-right: 10px; }
}

/* 7. Gira i tuoi programmi: la striscia da scorrere */
.apps-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.strip-nav { display: none; gap: 10px; }
.js .strip-nav { display: flex; }
.strip-nav button { width: 48px; height: 48px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1.5px rgba(242, 239, 230, .3); background: transparent; color: var(--text); font: inherit; font-size: 20px; cursor: pointer; transition: box-shadow .15s, opacity .15s; }
.strip-nav button:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--text); }
.strip-nav button:disabled { opacity: .3; cursor: default; }
.strip { --pad: max(var(--gutter), calc((100% - var(--max)) / 2)); list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0 var(--pad) 8px; display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 560px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); overscroll-behavior-x: contain; }
.strip:focus-visible { outline-offset: -2px; border-radius: 0; }
.strip li { scroll-snap-align: start; }
.js .strip { scrollbar-width: none; }
.js .strip::-webkit-scrollbar { display: none; }
.strip .shot-frame { aspect-ratio: 4 / 3; }
.strip .shot-frame img { height: 100%; object-fit: cover; }
.strip figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.strip figcaption b { display: block; font-size: 18px; font-weight: 800; color: var(--text); }

/* 8. Cosa non funziona ancora */
.ny { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; border-top: 2px solid var(--text); }
.ny li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6px 32px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ny b { font-size: clamp(22px, 2.6vw, 36px); font-weight: 850; letter-spacing: -.03em; line-height: 1.1; }
.ny span { color: var(--muted); }
.more { display: inline-block; margin-top: 28px; }
@media (max-width: 720px) { .ny li { grid-template-columns: minmax(0, 1fr); } }

/* 9. JustOS Connect */
.connect-body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.feats { list-style: none; margin: 36px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.feats b { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 800; }
.feats span { font-size: 15px; color: var(--muted); }
.app-dl { padding-top: 24px; border-top: 1px solid var(--line); }
.app-dl h3 { margin-bottom: 8px; font-size: 22px; }
.app-dl > p { margin-bottom: 18px; color: var(--muted); }
@media (max-width: 520px) { .feats { grid-template-columns: minmax(0, 1fr); } }

/* 10. Il manifesto */
.rules .manifesto { font-size: clamp(34px, 8.4vw, 136px); line-height: .95; }
.rule-list { list-style: none; margin: clamp(48px, 7vw, 96px) 0 0; padding: 0; counter-reset: r; }
.rule-list li { counter-increment: r; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.rule-list li::before { content: counter(r, decimal-leading-zero); display: block; margin-bottom: 12px; font-family: var(--mono); font-size: 14px; color: var(--orange); }
.rule { font-size: clamp(32px, 6.4vw, 100px); font-weight: 850; letter-spacing: -.04em; line-height: 1; text-wrap: balance; }
.rule-list li > p:not(.rule) { max-width: 40em; margin-top: 16px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }
.join { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(48px, 7vw, 96px); padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--raise); }
.join em { font-style: normal; color: var(--orange); }
.join p { max-width: 14em; font-size: clamp(28px, 4vw, 56px); font-weight: 850; letter-spacing: -.035em; line-height: 1.05; }

/* 11. Why are you here? La card */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head prev" "form prev" "act prev" "fine prev" ". prev"; grid-template-rows: auto auto auto auto 1fr; column-gap: clamp(40px, 6vw, 96px); }
.why-head { grid-area: head; }
.why-grid h2 { font-size: clamp(44px, 8vw, 128px); }
.why-form { grid-area: form; margin-top: 36px; }
.why-prev { grid-area: prev; align-self: start; }
.why-act { grid-area: act; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.why-fine { grid-area: fine; margin-top: 22px; font-size: 14px; color: var(--muted); }
.why-fine a { font-weight: 700; color: var(--text); text-decoration: none; margin-left: .6em; }
.why-fine a:hover { color: var(--orange); }
.reasons { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-r { position: relative; display: inline-block; max-width: 100%; }
.chip-r input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-r span { display: block; padding: 11px 18px; border-radius: 22px; background: var(--raise); font-size: 16px; font-weight: 700; line-height: 1.3; transition: background-color .15s, color .15s; }
.chip-r:hover span { background: var(--raise-2); }
.chip-r input:checked + span { background: var(--text); color: var(--ink); }
.chip-r input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.own { display: block; margin-top: 24px; font-size: 15px; font-weight: 700; color: var(--muted); }
.own-in { display: block; width: 100%; max-width: 30em; margin-top: 8px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--raise); color: var(--text); font: inherit; font-size: 18px; }
.own-in::placeholder { color: var(--muted); }
.own-in:focus { outline: none; border-color: var(--orange); }
.why-prev canvas, .card-fallback { display: block; width: min(380px, calc((100svh - var(--bar) - 48px) * 9 / 16)); min-width: 220px; height: auto; aspect-ratio: 9 / 16; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); }
.card-fallback { container-type: inline-size; background: var(--bg); overflow: hidden; }
.cf-in { display: flex; flex-direction: column; justify-content: center; gap: 5cqw; height: 100%; padding: 8.9cqw; }
.cf-k { font-size: 5.9cqw; font-weight: 700; color: var(--muted); }
.cf-r { font-size: 11cqw; font-weight: 850; line-height: 1.02; letter-spacing: -.035em; }
.cf-t { font-size: 8.9cqw; font-weight: 850; color: var(--orange); }
@media (max-width: 860px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "form" "prev" "act" "fine"; grid-template-rows: none; }
  .why-prev { justify-self: center; margin-top: 36px; }
  .why-prev canvas, .card-fallback { width: min(100%, 300px, 64vw); min-width: 0; }
  .why-act { justify-content: center; }
  .why-fine { text-align: center; }
}

/* 12. Tocca a te: il download */
.dl .huge { font-size: clamp(64px, 16vw, 260px); line-height: .88; letter-spacing: -.05em; }
.dl-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.dl-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(24px, 3.4vw, 44px); border-radius: 28px; }
.dl-card h3 { font-size: clamp(26px, 2.8vw, 40px); }
.dl-card p { flex: 1; max-width: 36em; }
.dl-card .btn { margin-top: 10px; }
.dl-main { background: var(--text); color: var(--ink); }
.dl-main code { background: rgba(20, 20, 20, .08); }
.dl-main p { color: rgba(20, 20, 20, .7); }
.dl-alt { background: var(--raise); }
.dl-alt p { color: var(--muted); }
.dl-after { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; margin-top: 28px; }
.dl-after .fine { margin-top: 0; }
@media (max-width: 860px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.foot { padding-block: 48px 56px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot p { width: 100%; font-size: 14px; color: var(--muted); }

/* Le pagine interne: /start/, /status/, /press/, 404 */
.page { padding-block: clamp(56px, 9vw, 120px) clamp(80px, 12vw, 160px); }
.page-head { margin-bottom: clamp(40px, 6vw, 72px); }
.page-head h1 { font-size: clamp(48px, 9vw, 128px); line-height: .95; }
.page-head .lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 21px); }
.page h2 { margin: clamp(56px, 8vw, 96px) 0 24px; font-size: clamp(32px, 4vw, 56px); }
.page .page-head + h2, .page .page-head + section > h2:first-child { margin-top: 0; }
.panel-h { margin: 0 0 24px; }
.js .panel-h { display: none; }

/* La guida */
.tabs { display: none; gap: 4px; padding: 4px; margin-bottom: clamp(28px, 4vw, 44px); border-radius: 999px; background: var(--raise); }
.js .tabs { display: inline-flex; }
.tabs button { padding: 10px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.tabs button:focus-visible { outline-offset: -4px; }
.panel { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
.panel + .panel { margin-top: clamp(64px, 9vw, 112px); }
.js .panel + .panel { margin-top: 0; }
.panel[hidden] { display: none; }
#panel-vm { display: block; }
#panel-vm[hidden] { display: none; }
.needs { align-self: start; position: sticky; top: 96px; padding: 24px 24px 10px; border-radius: 20px; background: var(--raise); }
.needs h3 { font-size: 20px; }
.needs ul { margin: 10px 0 0; padding-left: 1.1em; }
.needs li { margin-bottom: 12px; font-size: 16px; }
.needs li::marker { color: var(--orange); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 40px 64px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -6px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 19px; background: var(--orange); color: var(--ink); }
.steps > li::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: 8px; font-size: clamp(22px, 2vw, 28px); }
.steps p { margin: 0 0 10px; max-width: 44em; }
.keys { border-collapse: collapse; margin: 14px 0 6px; font-size: 15px; min-width: min(100%, 460px); }
.keys caption { text-align: left; font-weight: 800; padding-bottom: 6px; }
.keys th, .keys td { text-align: left; padding: 8px 18px 8px 0; border-bottom: 1px solid var(--line); }
.keys th { font-weight: 700; font-size: 13px; color: var(--muted); }
.panel-lede { margin: 0 0 28px; max-width: 46em; }
.vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); }
.vm > div { padding-top: 20px; border-top: 2px solid var(--text); }
.vm h3 { margin-bottom: 10px; font-size: clamp(24px, 2.4vw, 32px); }
.vm p { margin: 0 0 10px; }

/* La tabella di stato */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.chip.part { color: var(--part); background: color-mix(in srgb, var(--part) 13%, transparent); }
.chip.no { color: var(--no); background: color-mix(in srgb, var(--no) 13%, transparent); }
.chip.no::before { background: transparent; border: 1.5px solid currentColor; }
.state { width: 100%; border-collapse: collapse; }
.state th, .state td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); }
.state thead th { font-weight: 700; font-size: 13px; color: var(--muted); border-bottom-color: var(--text); }
.state td:first-child { width: 30%; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.state td:nth-child(2) { width: 140px; }
.state td:last-child { color: var(--muted); }

/* Press */
.story3 p { max-width: 26em; font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.story3 p + p { margin-top: .5em; }
.story3 p:last-child { color: var(--orange); }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); margin: 0; border-top: 2px solid var(--text); }
.facts dt, .facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { padding-right: 20px; font-weight: 800; }
.facts dd { color: var(--muted); }
.shots, .logos { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.logos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.shots a, .logos a { display: block; text-decoration: none; }
.shots span, .logos span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
.shots b, .logos b { color: var(--text); }
.shots a:hover b, .logos a:hover b { color: var(--orange); }
.tile { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 12%; border-radius: 16px; background: var(--raise); }
.tile.light { background: var(--text); }
.tile img { max-height: 100%; }
@media (max-width: 600px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts dd { padding-top: 4px; }
}

/* 404 */
.lost { display: grid; align-content: center; gap: 24px; min-height: calc(100svh - var(--bar) - 160px); }
.lost h1 { font-size: clamp(48px, 9vw, 128px); line-height: .95; }
.lost .btn { justify-self: start; }

@media (max-width: 960px) {
  .panel { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .needs { position: static; }
  .vm, .connect-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 720px) {
  .steps > li { padding-left: 56px; }
  .state thead { display: none; }
  .state tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .state td { padding: 0; border: 0; width: auto !important; }
  .state td:last-child { grid-column: 1 / -1; }
  .js .tabs { display: flex; }
  .tabs button { flex: 1; padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* La collab nel footer: just × ticly, con i loghi ufficiali (da www.ticly.it) */
.collab { display: flex; align-items: center; gap: 16px; width: 100%; }
.collab img { height: 30px; width: auto; }
.collab-x { font-size: 20px; color: var(--muted); }

/* JustOS Link: il riquadro breve nella home e la pagina link.justos.dev */
.link-teaser { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.link-teaser .cta { margin-top: 36px; }
.link-teaser .phones { max-width: 460px; justify-self: end; width: 100%; }
.brand-tag { margin-left: 2px; padding: 3px 10px 4px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.lk-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; min-height: calc(100svh - var(--bar)); padding-block: clamp(40px, 6vw, 80px); }
.lk-hero h1 { font-size: clamp(52px, 8.4vw, 132px); line-height: .92; letter-spacing: -.045em; }
.lk-hero .lede { margin-top: 28px; font-size: clamp(17px, 1.6vw, 21px); }
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); align-items: start; }
.phones img { width: 100%; border-radius: clamp(18px, 2.4vw, 30px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); }
.phones img:nth-child(2) { margin-top: 18%; }
.lk-feats { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.lk-feats li { padding: 24px 0 32px; border-top: 2px solid var(--text); }
.lk-feats b { display: block; margin-bottom: 8px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 850; letter-spacing: -.03em; line-height: 1.1; }
.lk-feats span { color: var(--muted); }
.lk-gallery { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.lk-gallery img { width: 100%; border-radius: clamp(14px, 2vw, 24px); box-shadow: 0 0 0 1px var(--line); }
.lk-gallery figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.lk-steps { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.lk-steps li { counter-increment: s; padding-top: 20px; border-top: 2px solid var(--text); }
.lk-steps li::before { content: counter(s); display: block; margin-bottom: 12px; font-size: clamp(48px, 6vw, 88px); font-weight: 850; line-height: 1; letter-spacing: -.04em; color: var(--orange); }
.lk-steps h3 { margin-bottom: 8px; font-size: clamp(22px, 2.2vw, 30px); }
.lk-steps p { color: var(--muted); }
@media (max-width: 960px) {
  .link-teaser, .lk-hero { grid-template-columns: minmax(0, 1fr); }
  .link-teaser .phones { justify-self: start; }
  .lk-hero { min-height: 0; }
  .lk-hero .phones { max-width: 460px; }
  .lk-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lk-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lk-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .lk-feats { grid-template-columns: minmax(0, 1fr); } }
